1 |
5 |
danv |
-------------------------------------------------------------------------------
|
2 |
|
|
--
|
3 |
|
|
-- Copyright (C) 2009
|
4 |
|
|
-- ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/>
|
5 |
|
|
-- P.O.Box 2, 7990 AA Dwingeloo, The Netherlands
|
6 |
|
|
--
|
7 |
|
|
-- This program is free software: you can redistribute it and/or modify
|
8 |
|
|
-- it under the terms of the GNU General Public License as published by
|
9 |
|
|
-- the Free Software Foundation, either version 3 of the License, or
|
10 |
|
|
-- (at your option) any later version.
|
11 |
|
|
--
|
12 |
|
|
-- This program is distributed in the hope that it will be useful,
|
13 |
|
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14 |
|
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15 |
|
|
-- GNU General Public License for more details.
|
16 |
|
|
--
|
17 |
|
|
-- You should have received a copy of the GNU General Public License
|
18 |
|
|
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19 |
|
|
--
|
20 |
|
|
-------------------------------------------------------------------------------
|
21 |
|
|
|
22 |
|
|
-- Usage:
|
23 |
|
|
-- > as 3
|
24 |
|
|
-- > run -all
|
25 |
|
|
|
26 |
|
|
LIBRARY IEEE;
|
27 |
|
|
USE IEEE.std_logic_1164.ALL;
|
28 |
|
|
|
29 |
|
|
ENTITY tb_tb_common_mult IS
|
30 |
|
|
END tb_tb_common_mult;
|
31 |
|
|
|
32 |
|
|
ARCHITECTURE tb OF tb_tb_common_mult IS
|
33 |
|
|
SIGNAL tb_end : STD_LOGIC := '0'; -- declare tb_end to avoid 'No objects found' error on 'when -label tb_end'
|
34 |
|
|
BEGIN
|
35 |
|
|
-- g_in_dat_w : NATURAL := 7;
|
36 |
|
|
-- g_out_dat_w : NATURAL := 11; -- = 2*g_in_dat_w, or smaller to truncate MSbits, or larger to extend MSbits
|
37 |
|
|
-- g_nof_mult : NATURAL := 2;
|
38 |
|
|
-- g_pipeline_input : NATURAL := 1;
|
39 |
|
|
-- g_pipeline_product : NATURAL := 1;
|
40 |
|
|
-- g_pipeline_output : NATURAL := 1
|
41 |
|
|
|
42 |
|
|
|
43 |
|
|
-- Vary g_out_dat_w
|
44 |
|
|
u_mult_7_12_nof_2_pipe_1_1_1 : ENTITY work.tb_common_mult GENERIC MAP (7, 12, 2, 1, 1, 1); -- truncate extra bit
|
45 |
|
|
u_mult_7_13_nof_2_pipe_1_1_1 : ENTITY work.tb_common_mult GENERIC MAP (7, 13, 2, 1, 1, 1); -- truncate double sign bit
|
46 |
|
|
u_mult_7_14_nof_2_pipe_1_1_1 : ENTITY work.tb_common_mult GENERIC MAP (7, 14, 2, 1, 1, 1); -- preserve full product range
|
47 |
|
|
u_mult_7_15_nof_2_pipe_1_1_1 : ENTITY work.tb_common_mult GENERIC MAP (7, 15, 2, 1, 1, 1); -- extend product
|
48 |
|
|
|
49 |
|
|
-- Vary g_nof_mult
|
50 |
|
|
u_mult_7_11_nof_1_pipe_1_1_1 : ENTITY work.tb_common_mult GENERIC MAP (7, 11, 1, 1, 1, 1);
|
51 |
|
|
u_mult_7_11_nof_3_pipe_1_1_1 : ENTITY work.tb_common_mult GENERIC MAP (7, 11, 3, 1, 1, 1);
|
52 |
|
|
|
53 |
|
|
-- Vary g_pipeline_*
|
54 |
|
|
u_mult_7_11_nof_1_pipe_0_0_0 : ENTITY work.tb_common_mult GENERIC MAP (7, 11, 2, 0, 0, 0);
|
55 |
|
|
u_mult_7_11_nof_1_pipe_1_0_0 : ENTITY work.tb_common_mult GENERIC MAP (7, 11, 2, 1, 0, 0);
|
56 |
|
|
u_mult_7_11_nof_1_pipe_0_1_0 : ENTITY work.tb_common_mult GENERIC MAP (7, 11, 2, 0, 1, 0);
|
57 |
|
|
u_mult_7_11_nof_1_pipe_0_0_1 : ENTITY work.tb_common_mult GENERIC MAP (7, 11, 2, 0, 0, 1);
|
58 |
|
|
|
59 |
|
|
END tb;
|