From 7b0989706aa586f788e8355d6f0363443066c433 Mon Sep 17 00:00:00 2001
From: Eric Kooistra <kooistra@astron.nl>
Date: Tue, 5 Apr 2022 14:48:38 +0200
Subject: [PATCH] Define constant for DC gain of FIR filter with
 Coeffs16384Kaiser-quant.dat used in LOFAR1.

---
 libraries/dsp/filter/src/vhdl/fil_pkg.vhd | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libraries/dsp/filter/src/vhdl/fil_pkg.vhd b/libraries/dsp/filter/src/vhdl/fil_pkg.vhd
index d1e0789f8d..1263519969 100644
--- a/libraries/dsp/filter/src/vhdl/fil_pkg.vhd
+++ b/libraries/dsp/filter/src/vhdl/fil_pkg.vhd
@@ -61,6 +61,11 @@ package fil_pkg is
   
   constant c_fil_ppf_pipeline : t_fil_ppf_pipeline := (1, 1, 1, 1, 1, 1, 0);
   
+  -- DC gain of FIR filter with Coeffs16384Kaiser-quant.dat used in LOFAR1.
+  -- . Calculated with applications/lofar2/model/run_pfir_coef.m using application = 'lofar_subband'
+  -- . Not used in RTL, only used in test benches to verify expected subband levels
+  constant c_fil_lofar1_fir_filter_dc_gain : real := 0.994817;
+
 end package fil_pkg;
 
 package body fil_pkg is
-- 
GitLab