forked from SpinalHDL/SpinalHDL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFixedPointTester
38 lines (33 loc) · 1.01 KB
/
FixedPointTester
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
library work;
use work.pkg_scala2hdl.all;
use work.all;
use work.pkg_enum.all;
-- #spinalBegin userLibrary
-- #spinalEnd userLibrary
entity FixedPointTester_tb is
end FixedPointTester_tb;
architecture arch of FixedPointTester_tb is
signal io_inSFix_0 : signed(15 downto 0);
signal io_inSFix_1 : signed(11 downto 0);
signal io_outSFix_0 : signed(15 downto 0);
signal io_outSFix_1 : signed(23 downto 0);
signal io_inBundleA_a_sfix : signed(7 downto 0);
signal io_outBundleA_a_sfix : signed(5 downto 0);
-- #spinalBegin userDeclarations
-- #spinalEnd userDeclarations
begin
-- #spinalBegin userLogics
-- #spinalEnd userLogics
uut : entity work.FixedPointTester
port map (
io_inSFix_0 => io_inSFix_0,
io_inSFix_1 => io_inSFix_1,
io_outSFix_0 => io_outSFix_0,
io_outSFix_1 => io_outSFix_1,
io_inBundleA_a_sfix => io_inBundleA_a_sfix,
io_outBundleA_a_sfix => io_outBundleA_a_sfix
);
end arch;