Skip to content
Snippets Groups Projects
Commit cfe8a744 authored by Daniel van der Schuur's avatar Daniel van der Schuur
Browse files

-Now resetting RAM clear data counter at snk_in.sync instead of after

 g_nof_data_per_sync input samples.
-Test benches still pass OK.
parent 295d0d1e
No related branches found
No related tags found
1 merge request!154Updated st_histogram (instance) to support 200M+-512 samples per sync in LOFAR2.
......@@ -455,7 +455,7 @@ BEGIN
-- Clear the RAM just before the next sync interval
-------------------------------------------------------------------------------
-- Count input data for automatic RAM clear before next sync interval
nxt_data_cnt <= (OTHERS=>'0') WHEN TO_UINT(data_cnt)=g_nof_data_per_sync-1 ELSE INCR_UVEC(data_cnt, 1) WHEN snk_in.valid='1' ELSE data_cnt;
nxt_data_cnt <= (OTHERS=>'0') WHEN snk_in.sync='1' ELSE INCR_UVEC(data_cnt, 1) WHEN snk_in.valid='1' ELSE data_cnt;
-- Clear all g_nof_bins RAM addresses just before the next sync
ram_clear <= '1' WHEN TO_UINT(data_cnt)=g_nof_data_per_sync-g_nof_bins-1 ELSE '0';
......
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