Skip to content
Snippets Groups Projects
Commit 40619fc1 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Added multi tb for round().

parent 8d1c2b4f
No related branches found
No related tags found
1 merge request!168Add support for round half to even via g_round_even. Not yet fully tested....
-- --------------------------------------------------------------------------
-- 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;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment