diff --git a/applications/lofar2/designs/lofar2_unb2c_sdp_station/revisions/lofar2_unb2c_sdp_station_bf/hdllib.cfg b/applications/lofar2/designs/lofar2_unb2c_sdp_station/revisions/lofar2_unb2c_sdp_station_bf/hdllib.cfg index 2dbc42a190d69aae9720163ca219e905cd8cce2a..621e23f9915cbe547dffb998a42a755054646c3b 100644 --- a/applications/lofar2/designs/lofar2_unb2c_sdp_station/revisions/lofar2_unb2c_sdp_station_bf/hdllib.cfg +++ b/applications/lofar2/designs/lofar2_unb2c_sdp_station/revisions/lofar2_unb2c_sdp_station_bf/hdllib.cfg @@ -9,10 +9,11 @@ hdl_lib_technology = ip_arria10_e2sg test_bench_files = tb_lofar2_unb2c_sdp_station_bf.vhd + tb_tb_lofar2_unb2c_sdp_station_bf.vhd tb_lofar2_unb2c_sdp_station_bf_bst_offload.vhd regression_test_vhdl = - tb_lofar2_unb2c_sdp_station_bf.vhd + tb_tb_lofar2_unb2c_sdp_station_bf.vhd tb_lofar2_unb2c_sdp_station_bf_bst_offload.vhd [modelsim_project_file] diff --git a/applications/lofar2/designs/lofar2_unb2c_sdp_station/revisions/lofar2_unb2c_sdp_station_bf/tb_tb_lofar2_unb2c_sdp_station_bf.vhd b/applications/lofar2/designs/lofar2_unb2c_sdp_station/revisions/lofar2_unb2c_sdp_station_bf/tb_tb_lofar2_unb2c_sdp_station_bf.vhd new file mode 100644 index 0000000000000000000000000000000000000000..4a2efdd08f6e4c34610a9aa75985319ffeea463f --- /dev/null +++ b/applications/lofar2/designs/lofar2_unb2c_sdp_station/revisions/lofar2_unb2c_sdp_station_bf/tb_tb_lofar2_unb2c_sdp_station_bf.vhd @@ -0,0 +1,66 @@ +-- -------------------------------------------------------------------------- +-- Copyright 2021 +-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/> +-- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands +-- +-- Licensed under the Apache License, Version 2.0 (the "License"); +-- you may not use this file except in compliance with the License. +-- You may obtain a copy of the License at +-- +-- http://www.apache.org/licenses/LICENSE-2.0 +-- +-- Unless required by applicable law or agreed to in writing, software +-- distributed under the License is distributed on an "AS IS" BASIS, +-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +-- See the License for the specific language governing permissions and +-- limitations under the License. +-- -------------------------------------------------------------------------- +-- +-- Author: E. Kooistra, 10 march 2022 +-- Purpose: Regression multi tb for tb_lofar2_unb2c_sdp_station_bf +-- Description: +-- The multi tb only has one instance, so the tb_tb is more a wrapper to +-- ensure that always the same tb generics are used in the regression test. +-- This allows modifying the generics in the tb. +-- Usage: +-- > as 4 +-- > run -all + +LIBRARY IEEE; +USE IEEE.std_logic_1164.ALL; +USE work.tb_dp_pkg.ALL; + + +ENTITY tb_tb_lofar2_unb2c_sdp_station_bf IS +END tb_tb_lofar2_unb2c_sdp_station_bf; + + +ARCHITECTURE tb OF tb_tb_lofar2_unb2c_sdp_station_bf IS + + SIGNAL tb_end : STD_LOGIC := '0'; -- declare tb_end to avoid 'No objects found' error on 'when -label tb_end' + +BEGIN + + u_bf : ENTITY work.tb_lofar2_unb2c_sdp_station_bf + GENERIC MAP ( + g_sp => 3, -- WG signal path (SP) index in range(S_pn = 12) + g_sp_ampl => 0.5 -- WG normalized amplitude + g_sp_phase => -110.0, -- WG phase in degrees = subband phase + g_sp_remnant_ampl => 0.1, -- WG normalized amplitude for remnant sp + g_sp_remnant_phase => 15.0, -- WG phase in degrees for remnant sp + g_subband => 102, -- select g_subband at index 102 = 102/1024 * 200MHz = 19.921875 MHz + g_beamlet => 10, -- map g_subband to g_beamlet index in beamset in range(c_sdp_S_sub_bf = 488) + g_beamlet_scale => 1.0 / 2.0**9, -- g_beamlet output scale factor + g_bf_x_gain => 0.7, -- g_beamlet X BF weight normalized gain for g_sp + g_bf_y_gain => 0.6, -- g_beamlet Y BF weight normalized gain for g_sp + g_bf_x_phase => 30.0, -- g_beamlet X BF weight phase rotation in degrees for g_sp + g_bf_y_phase => 40.0, -- g_beamlet Y BF weight phase rotation in degrees for g_sp + g_bf_remnant_x_gain => 0.05, -- g_beamlet X BF weight normalized gain for remnant sp + g_bf_remnant_y_gain => 0.04, -- g_beamlet Y BF weight normalized gain for remnant sp + g_bf_remnant_x_phase => 170.0, -- g_beamlet X BF weight phase rotation in degrees for g_sp + g_bf_remnant_y_phase => -135.0, -- g_beamlet Y BF weight phase rotation in degrees for g_sp + g_read_all_SST => FALSE, -- when FALSE only read SST for g_subband, to save sim time + g_read_all_BST => FALSE -- when FALSE only read BST for g_beamlet, to save sim time + ); + +END tb;