From 0ead0b22fdcd7c5962e6b8489ffacdc0d88299d1 Mon Sep 17 00:00:00 2001
From: Eric Kooistra <kooistra@astron.nl>
Date: Wed, 2 Nov 2022 16:17:33 +0100
Subject: [PATCH] Correct quant_sosi width in comment.

---
 .../lofar2/libraries/sdp/src/vhdl/node_sdp_filterbank.vhd   | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/applications/lofar2/libraries/sdp/src/vhdl/node_sdp_filterbank.vhd b/applications/lofar2/libraries/sdp/src/vhdl/node_sdp_filterbank.vhd
index 5381775015..b0f7af320e 100644
--- a/applications/lofar2/libraries/sdp/src/vhdl/node_sdp_filterbank.vhd
+++ b/applications/lofar2/libraries/sdp/src/vhdl/node_sdp_filterbank.vhd
@@ -34,7 +34,7 @@
 --
 -- . Subband widths:
 --   - raw_sosi   : c_subband_raw_dat_w bits
---   - quant_sosi : c_subband_quant_dat_w = c_sdp_W_subband bits
+--   - quant_sosi : g_wpfb.fft_out_dat = c_sdp_W_subband bits
 --   The quantized subbands are output and used for the SST.
 --   The raw subbands are weighted by the equalizer and are output to allow
 --   further weighting by the beamformer weights (in the BF) or to allow
@@ -125,7 +125,6 @@ ARCHITECTURE str OF node_sdp_filterbank IS
   CONSTANT c_fft                    : t_fft := func_wpfb_map_wpfb_parameters_to_fft(g_wpfb);
   CONSTANT c_subband_raw_dat_w      : NATURAL := func_fft_raw_dat_w(c_fft);
   CONSTANT c_subband_raw_fraction_w : NATURAL := func_fft_raw_fraction_w(c_fft);
-  CONSTANT c_subband_quant_dat_w    : NATURAL := c_subband_raw_dat_w - c_subband_raw_fraction_w;
 
   CONSTANT c_si_pipeline : NATURAL := 1;
 
@@ -165,12 +164,9 @@ ARCHITECTURE str OF node_sdp_filterbank IS
   signal dbg_g_wpfb                   : t_wpfb := g_wpfb;
   signal dbg_c_subband_raw_dat_w      : natural := c_subband_raw_dat_w;
   signal dbg_c_subband_raw_fraction_w : natural := c_subband_raw_fraction_w;
-  signal dbg_c_subband_quant_dat_w    : natural := c_subband_quant_dat_w;
 
 BEGIN
 
-  ASSERT c_subband_quant_dat_w = c_sdp_W_subband REPORT "FSub: Quantized subband width mismatch." SEVERITY FAILURE;
-
   ---------------------------------------------------------------
   -- SPECTRAL INVERSION 
   ---------------------------------------------------------------
-- 
GitLab