- fixed command size
git-svn-id: http://moon:8086/svn/vhdl/trunk@1282 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
@@ -57,8 +57,8 @@ ARCHITECTURE behavior OF spi_master IS
|
||||
signal spi_rst_count : unsigned(5 downto 0);
|
||||
signal spi_rst : std_logic;
|
||||
|
||||
signal cat_fifo_din : unsigned(to_unsigned(cmd)'length-1 downto 0);
|
||||
signal cat_fifo_dout : unsigned(to_unsigned(cmd)'length-1 downto 0);
|
||||
signal cat_fifo_din : unsigned(SIZEOF_CMD-1 downto 0);
|
||||
signal cat_fifo_dout : unsigned(SIZEOF_CMD-1 downto 0);
|
||||
signal cat_fifo_full : std_logic;
|
||||
signal cat_fifo_empty : std_logic;
|
||||
|
||||
@@ -113,7 +113,7 @@ begin
|
||||
GENERIC MAP
|
||||
(
|
||||
addr_width => NextExpBaseTwo(CAT_FIFO_DEPTH),
|
||||
data_width => cmd_size
|
||||
data_width => SIZEOF_CMD
|
||||
)
|
||||
PORT MAP
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user