Skip to content
Snippets Groups Projects
Commit 84cd83be authored by Pepping's avatar Pepping
Browse files

Initial commti

parent ce1cd80a
Branches
No related tags found
No related merge requests found
-------------------------------------------------------------------------------
--
-- Copyright (C) 2012
-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
-- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-------------------------------------------------------------------------------
--
-- Purpose: Testbench for the fringe_stop_unit.
--
--
-- Usage
-- > as 8
-- > run -all
-- > Testbench is self-checking
-- > Evalute the WAVE window.
LIBRARY IEEE, common_lib, technology_lib, mm_lib, diag_lib, dp_lib;
USE IEEE.std_logic_1164.ALL;
USE IEEE.numeric_std.ALL;
USE common_lib.common_pkg.ALL;
USE common_lib.common_mem_pkg.ALL;
USE common_lib.common_str_pkg.ALL;
USE common_lib.tb_common_pkg.ALL;
USE common_lib.tb_common_mem_pkg.ALL;
USE technology_lib.technology_select_pkg.ALL;
USE mm_lib.mm_file_unb_pkg.ALL;
USE mm_lib.mm_file_pkg.ALL;
USE dp_lib.dp_stream_pkg.ALL;
USE diag_lib.diag_pkg.ALL;
USE work.fringe_stop_pkg.ALL;
ENTITY tb_tb_fringe_stop_unit IS
END tb_tb_fringe_stop_unit;
ARCHITECTURE tb OF tb_tb_fringe_stop_unit IS
SIGNAL tb_end : STD_LOGIC := '0'; -- declare tb_end to avoid 'No objects found' error on 'when -label tb_end'
BEGIN
-- Usage
-- > as 8
-- > run -all
-- > Testbenches are self-checking
-- g_sim_type : NATURAL := 0; -- 0 = Increment, 1 = Increment over the maximum, 2 = Decrease, 3 = Decrease over the minimum
-- g_in_dat_w : POSITIVE := 8; -- Width of the incoming data.
-- g_fs_offset_w : POSITIVE := 10; -- Width of the offset of the linear coefficient
-- g_accu_w : POSITIVE := 31; -- Width of the accumulation register
-- g_fs_step_w : POSITIVE := 17; -- Width of the step of the linear coefficient
-- g_nof_channels : POSITIVE := 4; -- Number of serial channels for which the fringe stopping must be applied uniquely
-- g_phasor_w : POSITIVE := 9 -- Width of the phasor values in the lookup table
--
gen_sim_types : FOR I IN 0 TO 3 GENERATE
sim : ENTITY work.tb_fringe_stop_unit GENERIC MAP (I, 8, 10, 31, 17, 4, 9);
END GENERATE;
END tb;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment