Skip to content
Snippets Groups Projects
Commit 2dea6766 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Add rsn to sensitivity list.

parent 6b431af8
Branches
No related tags found
1 merge request!317Resolve L2SDP-7
......@@ -79,6 +79,7 @@ END dp_rsn_source;
ARCHITECTURE rtl OF dp_rsn_source IS
CONSTANT c_block_size_cnt_w : NATURAL := ceil_log2(g_block_size);
CONSTANT c_rsn_product_w : NATURAL := g_bsn_w + c_block_size_cnt_w;
TYPE t_state_enum IS (s_off, s_on_sop, s_on, s_on_eop);
......@@ -86,7 +87,7 @@ ARCHITECTURE rtl OF dp_rsn_source IS
SIGNAL nxt_state : t_state_enum;
SIGNAL prev_state : t_state_enum;
SIGNAL rsn : STD_LOGIC_VECTOR(g_bsn_w + c_block_size_cnt_w - 1 DOWNTO 0);
SIGNAL rsn : STD_LOGIC_VECTOR(c_rsn_product_w-1 DOWNTO 0);
SIGNAL nxt_sync : STD_LOGIC;
SIGNAL sync : STD_LOGIC;
......@@ -110,11 +111,11 @@ BEGIN
rs_restart <= i_rs_restart;
rs_new_interval <= i_rs_new_interval;
-- Use sum of inputs nof bits for product, but actual RSN fits in g_bsn_w.
rsn <= MULT_UVEC(bs_sosi.bsn, TO_UVEC(g_block_size, c_block_size_cnt_w));
p_state : PROCESS(sync, sync_size_cnt, nof_clk_per_sync,
state, prev_state, i_rs_sosi, block_size_cnt)
state, prev_state,
i_rs_sosi, block_size_cnt, rsn)
BEGIN
-- Maintain sync_size_cnt for nof_clk_per_sync
-- . nof_clk_per_sync is the number of clk per sync interval and the
......@@ -143,7 +144,7 @@ BEGIN
CASE state IS
WHEN s_off =>
nxt_rs_sosi <= c_dp_sosi_rst;
nxt_rs_sosi.bsn <= rsn(g_bsn_w-1 DOWNTO 0); -- RSN
nxt_rs_sosi.bsn <= rsn(g_bsn_w-1 DOWNTO 0); -- RSN fits in g_bsn_w
nxt_sync <= '0';
nxt_sync_size_cnt <= (OTHERS=>'0');
IF bs_sosi.sync = '1' THEN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment