-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathzeroFill_tb.vhd
More file actions
executable file
·59 lines (39 loc) · 1.26 KB
/
zeroFill_tb.vhd
File metadata and controls
executable file
·59 lines (39 loc) · 1.26 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
--------------------------------------------------------------------------------
--zero fill test bench
--------------------------------------------------------------------------------
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
-- Uncomment the following library declaration if using
-- arithmetic functions with Signed or Unsigned values
--USE ieee.numeric_std.ALL;
ENTITY zeroFill_tb IS
END zeroFill_tb;
ARCHITECTURE behavior OF zeroFill_tb IS
-- Component Declaration for the Unit Under Test (UUT)
COMPONENT zero_fill
PORT(
SBin : IN std_logic_vector(2 downto 0);
SBout : OUT std_logic_vector(15 downto 0)
);
END COMPONENT;
--Inputs
signal SBin : std_logic_vector(2 downto 0) := (others => '0');
--Outputs
signal SBout : std_logic_vector(15 downto 0);
-- No clocks detected in port list. Replace <clock> below with
-- appropriate port name
BEGIN
-- Instantiate the Unit Under Test (UUT)
uut: zero_fill PORT MAP (
SBin => SBin,
SBout => SBout
);
-- Stimulus process
stim_proc: process
begin
SBin<="101";
wait for 400 ns;
SBin<="111";
wait;
end process;
END;