Commit 43aca69f authored by gilsoriano's avatar gilsoriano

Small modifications in some generics.

parent 24498b25
......@@ -145,10 +145,11 @@ signal s_spi_clk_rst_i : STD_LOGIC;
signal s_STATUS_pull_byte_already : STD_LOGIC;
signal s_spi_counter_manual_rst_clk_already : STD_LOGIC;
signal s_BINST : UNSIGNED (r_SPI0.BINST'length - 1 downto 0);
signal s_BADDR : UNSIGNED (r_SPI0.BADDR'length - 1 downto 0);
signal s_BDATA : UNSIGNED (r_SPI0.BDATA'length - 1 downto 0);
--! Watch out here, 9 is the length of those fields
signal s_BINST : UNSIGNED (9 - 1 downto 0);
signal s_BADDR : UNSIGNED (9 - 1 downto 0);
signal s_BDATA : UNSIGNED (9 - 1 downto 0);
signal s_spi_clk_fsm_d0clk : SPI_spi_clk_fsm;
signal s_clk_fsm_d0 : SPI_clk_fsm;
......
......@@ -132,8 +132,7 @@ package spi_master_pkg is
constant c_ADDR_LENGTH : NATURAL := 3;
constant c_DATA_LENGTH : NATURAL := 256;
constant c_CLK_DIV : UNSIGNED (15 downto 12) := to_unsigned( 2,
r_SPI1.CLK_DIV'length);
constant c_CLK_DIV : UNSIGNED (15 downto 12) := to_unsigned( 2, 4);
constant c_SPI0_default : r_SPI0 := (CPOL => '0',
CPHA => '0',
x => (others => '0'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment