- FIFO-depth of CMD-FIFO is not hardwired anymore. It's set to top-level FIFO-depth
Committed on the Free edition of March Hare Software CVSNT Server. Upgrade to CVS Suite for more features and support: http://march-hare.com/cvsnt/ git-svn-id: http://moon:8086/svn/vhdl/trunk@592 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
@@ -204,7 +204,8 @@ begin
|
|||||||
Generic map
|
Generic map
|
||||||
(
|
(
|
||||||
BL => BL,
|
BL => BL,
|
||||||
f_sysclk => f_sysclk
|
f_sysclk => f_sysclk,
|
||||||
|
fifo_depth => fifo_depth
|
||||||
)
|
)
|
||||||
Port map
|
Port map
|
||||||
(
|
(
|
||||||
|
|||||||
@@ -204,7 +204,8 @@ begin
|
|||||||
Generic map
|
Generic map
|
||||||
(
|
(
|
||||||
BL => BL,
|
BL => BL,
|
||||||
f_sysclk => f_sysclk
|
f_sysclk => f_sysclk,
|
||||||
|
fifo_depth => fifo_depth
|
||||||
)
|
)
|
||||||
Port map
|
Port map
|
||||||
(
|
(
|
||||||
|
|||||||
@@ -32,7 +32,8 @@ entity sdram_ctrl_top is
|
|||||||
Generic
|
Generic
|
||||||
(
|
(
|
||||||
BL : natural := 2;
|
BL : natural := 2;
|
||||||
f_sysclk : natural := 100E6
|
f_sysclk : natural := 100E6;
|
||||||
|
fifo_depth : natural := 3
|
||||||
);
|
);
|
||||||
Port
|
Port
|
||||||
(
|
(
|
||||||
@@ -96,7 +97,6 @@ architecture rtl of sdram_ctrl_top is
|
|||||||
|
|
||||||
-- SD command FIFO
|
-- SD command FIFO
|
||||||
|
|
||||||
constant CMD_FIFO_ADDR_WIDTH : positive := 5; -- lower than 3 won't give sustained throuhput (for sys_clk == sdram_clk)
|
|
||||||
constant CMD_FIFO_DATA_WIDTH : positive := user_tag_t'length + 4 + mode_word_t'length + col_addr_t'length;
|
constant CMD_FIFO_DATA_WIDTH : positive := user_tag_t'length + 4 + mode_word_t'length + col_addr_t'length;
|
||||||
signal cmd_fifo_din : unsigned(CMD_FIFO_DATA_WIDTH-1 downto 0);
|
signal cmd_fifo_din : unsigned(CMD_FIFO_DATA_WIDTH-1 downto 0);
|
||||||
signal cmd_fifo_dout : unsigned(CMD_FIFO_DATA_WIDTH-1 downto 0);
|
signal cmd_fifo_dout : unsigned(CMD_FIFO_DATA_WIDTH-1 downto 0);
|
||||||
@@ -166,7 +166,7 @@ begin
|
|||||||
inst_sd_cmd_fifo: entity work.fifo_async
|
inst_sd_cmd_fifo: entity work.fifo_async
|
||||||
GENERIC MAP
|
GENERIC MAP
|
||||||
(
|
(
|
||||||
addr_width => CMD_FIFO_ADDR_WIDTH,
|
addr_width => fifo_depth,
|
||||||
data_width => CMD_FIFO_DATA_WIDTH
|
data_width => CMD_FIFO_DATA_WIDTH
|
||||||
)
|
)
|
||||||
PORT MAP
|
PORT MAP
|
||||||
|
|||||||
Reference in New Issue
Block a user