Skip to content
Snippets Groups Projects
Commit 1042f8ff authored by BRONES Romain's avatar BRONES Romain
Browse files

Fix feature Sequence Frame Counter

* Reset the register properly
* Add register in memory map bank
parent 549f3b07
No related branches found
No related tags found
No related merge requests found
......@@ -294,6 +294,12 @@ begin
cnt_invalid_r <= (others => '0');
rate_valid_r <= (others => '0');
rate_invalid_r <= (others => '0');
frame_valid_rate<= (others => '0');
frame_invalid_rate<= (others => '0');
last_seq <= (others => '0');
last_cnt_seq_r <= (others => '0');
seq_discontinuity <= '0';
cnt_seq_mismatch <= '0';
elsif rising_edge(clk) then
if soft_reset = '1' then
......@@ -302,6 +308,12 @@ begin
cnt_invalid_r <= (others => '0');
rate_valid_r <= (others => '0');
rate_invalid_r <= (others => '0');
frame_valid_rate<= (others => '0');
frame_invalid_rate<= (others => '0');
last_seq <= (others => '0');
last_cnt_seq_r <= (others => '0');
seq_discontinuity <= '0';
cnt_seq_mismatch <= '0';
else
-- Valid frame counter
if flag_all = '1' then
......
......@@ -255,6 +255,7 @@ begin
framecnt_invalidframecnt_i => frame_invalid_cnt,
framerate_validframerate_i => frame_valid_rate,
framerate_invalidframerate_i => frame_invalid_rate,
frameseq_framecnt_i => frame_seq_cnt,
clk => usrclk,
reset => sync_reset,
......
......@@ -146,5 +146,15 @@ addrmap combpm_ctrl {
} INVALIDFRAMERATE[16];
} FRAMERATE;
reg {
name="Protocol frame sequence";
field {
desc="Number of frames in sequence";
hw=w;sw=r;
} FRAMECNT[16];
} FRAMESEQ;
};
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