-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontrolMem_tb.vhd
More file actions
executable file
·102 lines (79 loc) · 2.42 KB
/
controlMem_tb.vhd
File metadata and controls
executable file
·102 lines (79 loc) · 2.42 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
--------------------------------------------------------------------------------
--control memory 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 controlMem_tb IS
END controlMem_tb;
ARCHITECTURE behavior OF controlMem_tb IS
-- Component Declaration for the Unit Under Test (UUT)
COMPONENT control_memory
PORT(
MW : OUT std_logic;
MM : OUT std_logic;
RW : OUT std_logic;
MD : OUT std_logic;
FS_out : OUT std_logic_vector(4 downto 0);
MB : OUT std_logic;
TB : OUT std_logic;
TA : OUT std_logic;
TD : OUT std_logic;
PL : OUT std_logic;
PI : OUT std_logic;
IL : OUT std_logic;
MC : OUT std_logic;
MS_out : OUT std_logic_vector(2 downto 0);
NA : OUT std_logic_vector(7 downto 0);
IN_CAR : IN std_logic_vector(7 downto 0)
);
END COMPONENT;
--Inputs
signal IN_CAR : std_logic_vector(7 downto 0) := (others => '0');
--Outputs
signal MW : std_logic;
signal MM : std_logic;
signal RW : std_logic;
signal MD : std_logic;
signal FS_out : std_logic_vector(4 downto 0);
signal MB : std_logic;
signal TB : std_logic;
signal TA : std_logic;
signal TD : std_logic;
signal PL : std_logic;
signal PI : std_logic;
signal IL : std_logic;
signal MC : std_logic;
signal MS_out : std_logic_vector(2 downto 0);
signal NA : 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: control_memory PORT MAP (
MW => MW,
MM => MM,
RW => RW,
MD => MD,
FS_out => FS_out,
MB => MB,
TB => TB,
TA => TA,
TD => TD,
PL => PL,
PI => PI,
IL => IL,
MC => MC,
MS_out => MS_out,
NA => NA,
IN_CAR => IN_CAR
);
-- Stimulus process
stim_proc: process
begin
IN_CAR<=x"00";
wait;
end process;
END;