-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCAR_tb.vhd
executable file
·59 lines (40 loc) · 1.33 KB
/
CAR_tb.vhd
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
--------------------------------------------------------------------------------
--CAR test bench
--------------------------------------------------------------------------------
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
-- Uncomment the following library declaration if using
-- arithmetic functions with Signed or Unsigned values
--USE ieee.numeric_std.ALL;
ENTITY CAR_tb IS
END CAR_tb;
ARCHITECTURE behavior OF CAR_tb IS
-- Component Declaration for the Unit Under Test (UUT)
COMPONENT CAR
PORT(
mux_c_out : IN std_logic_vector(7 downto 0);
mux_s_out : IN std_logic;
car_out : OUT std_logic_vector(7 downto 0)
);
END COMPONENT;
--Inputs
signal mux_c_out : std_logic_vector(7 downto 0) := (others => '0');
signal mux_s_out : std_logic := '0';
--Outputs
signal car_out : std_logic_vector(7 downto 0);
-- No clocks detected in port list. Replace <clock> below with
-- appropriate port name
BEGIN
-- Instantiate the Unit Under Test (UUT)
uut: CAR PORT MAP (
mux_c_out => mux_c_out,
mux_s_out => mux_s_out,
car_out => car_out
);
-- Stimulus process
stim_proc: process
begin
wait;
end process;
END;