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

Register cnt_en to avoid combinational loop.

parent 58fd2ec1
No related branches found
No related tags found
1 merge request!292Use default 0 for nxt_info to avoid X to decimal conversion error in sim_io.py...
...@@ -149,7 +149,18 @@ BEGIN ...@@ -149,7 +149,18 @@ BEGIN
-- . clear strobe counters immediately at cnt_clr -- . clear strobe counters immediately at cnt_clr
-- . start strobe counters after ref_sync, e.g. to align strobe counters in different nodes in -- . start strobe counters after ref_sync, e.g. to align strobe counters in different nodes in
-- case the input was (already) active during the cnt_clr -- case the input was (already) active during the cnt_clr
cnt_en <= '0' WHEN cnt_clr = '1' ELSE '1' WHEN ref_sync_reg = '1' ELSE cnt_en; p_cnt_en : PROCESS(dp_rst, dp_clk)
BEGIN
IF dp_rst = '1' THEN
cnt_en <= '0';
ELSIF rising_edge(dp_clk) THEN
IF cnt_clr = '1' THEN
cnt_en <= '0';
ELSIF ref_sync = '1' THEN -- use ref_sync have cnt_en aligned with ref_sync_reg
cnt_en <= '1';
END IF;
END IF;
END PROCESS;
-- strobe counters -- strobe counters
gen_counters : FOR I IN 0 TO g_nof_counts-1 GENERATE gen_counters : FOR I IN 0 TO g_nof_counts-1 GENERATE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment