- fixed command size

git-svn-id: http://moon:8086/svn/vhdl/trunk@1282 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2015-06-04 13:44:21 +00:00
parent ca0b04c733
commit bae4ed7e62
2 changed files with 6 additions and 12 deletions
+3 -3
View File
@@ -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
(