From 0b803b8d08e4e94aaccd6a9ed4aa72dd0a9cde47 Mon Sep 17 00:00:00 2001 From: Pepping <pepping> Date: Tue, 12 May 2015 13:13:19 +0000 Subject: [PATCH] Added constant that sets the bsn_monitor time out. Updated defintion of c_integration_period --- .../src/vhdl/apertif_unb1_correlator.vhd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/applications/apertif/designs/apertif_unb1_correlator/src/vhdl/apertif_unb1_correlator.vhd b/applications/apertif/designs/apertif_unb1_correlator/src/vhdl/apertif_unb1_correlator.vhd index cc4b813b05..5ad3491187 100644 --- a/applications/apertif/designs/apertif_unb1_correlator/src/vhdl/apertif_unb1_correlator.vhd +++ b/applications/apertif/designs/apertif_unb1_correlator/src/vhdl/apertif_unb1_correlator.vhd @@ -147,6 +147,8 @@ ARCHITECTURE str OF apertif_unb1_correlator IS CONSTANT c_bsn_align_xoff_timeout : NATURAL := c_bsn_align_latency * 2 * c_block_period; -- flush factor 2 longer than needed CONSTANT c_dp_fifo_size : NATURAL := (c_bsn_align_latency + 5) * c_block_size; -- be able to fit blocks for as long as sop time out; CONSTANT c_dp_fifo_fill : NATURAL := c_block_size; + CONSTANT c_nof_blocks_per_sync : NATURAL := 800000; + CONSTANT c_bsn_sync_time_out : NATURAL := c_block_period * c_nof_blocks_per_sync; -- Re- and Deinterleaver CONSTANT c_use_complex : BOOLEAN := TRUE; @@ -158,7 +160,7 @@ ARCHITECTURE str OF apertif_unb1_correlator IS CONSTANT c_nof_pre_mult_folds : NATURAL := 1; CONSTANT c_conjugate : BOOLEAN := TRUE; --FIXME: Used for verification/validation (phase shifts) in first stages but should be set to FALSE for final version. CONSTANT c_nof_channels : NATURAL := 64; - CONSTANT c_integration_period : NATURAL := 12207; + CONSTANT c_integration_period : NATURAL := c_nof_blocks_per_sync/c_nof_channels; --12207; CONSTANT c_nof_visibilities : NATURAL := (c_nof_inputs*(c_nof_inputs+1))/2; -- . Inter Channel Delay: -- . With no inter channel output delay, channels are output back-to-back, creating a short full valid burst of 64 channels (12.8 Gbps burst, 158Mbps on average). @@ -585,6 +587,7 @@ BEGIN u_dp_bsn_monitor : ENTITY dp_lib.mms_dp_bsn_monitor GENERIC MAP ( g_nof_streams => 5, + g_sync_timeout => c_bsn_sync_time_out, g_log_first_bsn => TRUE ) PORT MAP ( -- GitLab