diff --git a/libraries/base/common/tb/vhdl/tb_tb_round.vhd b/libraries/base/common/tb/vhdl/tb_tb_round.vhd new file mode 100644 index 0000000000000000000000000000000000000000..d3645dc0f2acca72e157c48a983be59fb63563b4 --- /dev/null +++ b/libraries/base/common/tb/vhdl/tb_tb_round.vhd @@ -0,0 +1,39 @@ +-- -------------------------------------------------------------------------- +-- 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, 4 nov 2021 +-- Purpose: Multi tb for common_round.vhd and s_round(), u_round() in common_pkg.vhd + +LIBRARY IEEE; +USE IEEE.std_logic_1164.ALL; + +ENTITY tb_tb_round IS +END tb_tb_round; + +ARCHITECTURE tb OF tb_tb_round IS + SIGNAL tb_end : STD_LOGIC := '0'; -- declare tb_end to avoid 'No objects found' error on 'when -label tb_end' +BEGIN + -- -- Supported for RESIZE_NUM() and common_round.vhd + -- g_in_dat_w : NATURAL := 5; + -- g_out_dat_w : NATURAL := 3 + + u_extend : ENTITY work.tb_round GENERIC MAP (5, 6); + u_wires : ENTITY work.tb_round GENERIC MAP (5, 5); + u_round_w4_r1 : ENTITY work.tb_round GENERIC MAP (4, 3); -- -r = 4 - 3 = 1 + u_round_w5_r2 : ENTITY work.tb_round GENERIC MAP (5, 3); -- -r = 5 - 3 = 2 +END tb;