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

Complete if then else statement to avoid latch in p_cnt.

parent 71cd4808
Branches
No related tags found
No related merge requests found
...@@ -87,6 +87,7 @@ BEGIN ...@@ -87,6 +87,7 @@ BEGIN
-- Count valid per block -- Count valid per block
p_cnt : PROCESS(snk_in, cnt_reg) p_cnt : PROCESS(snk_in, cnt_reg)
BEGIN BEGIN
cnt <= cnt_reg;
IF snk_in.sop='1' THEN IF snk_in.sop='1' THEN
cnt <= 0; cnt <= 0;
ELSIF snk_in.valid='1' THEN ELSIF snk_in.valid='1' THEN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment