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

Added g_bsn=0.

parent 3a69f5e1
No related branches found
No related tags found
No related merge requests found
......@@ -54,10 +54,11 @@ ENTITY dp_block_gen IS
GENERIC (
g_use_src_in : BOOLEAN := TRUE; -- when true use src_in.ready else use snk_in.valid for flow control
g_nof_data : POSITIVE := 1; -- nof data per block
g_nof_blk_per_sync : NATURAL := 8;
g_nof_blk_per_sync : POSITIVE := 8;
g_empty : NATURAL := 0;
g_channel : NATURAL := 0;
g_error : NATURAL := 0;
g_bsn : NATURAL := 0;
g_preserve_sync : BOOLEAN := FALSE;
g_preserve_bsn : BOOLEAN := FALSE
);
......@@ -87,7 +88,7 @@ ARCHITECTURE rtl OF dp_block_gen IS
src_out : t_dp_sosi;
END RECORD;
CONSTANT c_reg_rst : t_reg := (s_sop, 0, 0, (OTHERS=>'0'), c_dp_sosi_rst);
CONSTANT c_reg_rst : t_reg := (s_sop, 0, 0, TO_DP_BSN(g_bsn), c_dp_sosi_rst);
SIGNAL ready : STD_LOGIC;
......@@ -135,7 +136,7 @@ BEGIN
nxt_r.data_cnt <= 0; -- for clarity init data count to 0 (because it will become 1 anyway at sop)
IF en='0' THEN -- if disabled then reset block generator
nxt_r.blk_cnt <= 0;
nxt_r.bsn <= (OTHERS=>'0');
nxt_r.bsn <= TO_DP_BSN(g_bsn);
ELSE -- enabled block generator
IF ready='1' THEN -- once enabled the complete block will be output
IF g_preserve_sync = FALSE THEN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment