-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_driver_control.vhd
155 lines (130 loc) · 3.32 KB
/
test_driver_control.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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use std.textio.all;
use IEEE.STD_LOGIC_TEXTIO.ALL;
entity test_driver_control is
end test_driver_control;
architecture Behavioral of test_driver_control is
signal clk_in : std_logic;
signal vgaAdd : std_logic;
signal vgaDel : std_logic;
signal ascii_in : std_logic_vector(6 downto 0);
signal vgaWrite : std_logic;
signal vgaAddr : std_logic_vector(17 downto 0);
signal vgaData : std_logic_vector(15 downto 0);
signal rst : std_logic;
component driver_control is port(
clk_in : in std_logic;
vgaAdd : in std_logic;
vgaDel : in std_logic;
ascii_in : in std_logic_vector(6 downto 0);
vgaWrite : out std_logic;
vgaAddr : out std_logic_vector(17 downto 0);
vgaData : out std_logic_vector(15 downto 0);
rst : in std_logic
);
end component;
begin
driver_control_0: driver_control port map(clk_in, vgaAdd, vgaDel,
ascii_in, vgaWrite, vgaAddr, vgaData, rst);
process
variable l : line;
begin
rst <= '1';
clk_in <= '1';
vgaAdd <= '0';
vgaDel <= '0';
wait for 25 ps;
rst <= '1';
clk_in <= '0';
wait for 25 ps;
rst <= '1';
clk_in <= '1';
vgaDel <= '1';
ascii_in <= "1000001";
wait for 25 ps;
rst <= '1';
clk_in <= '0';
wait for 25 ps;
rst <= '1';
clk_in <= '1';
vgaAdd <= '0';
ascii_in <= "1000001";
wait for 25 ps;
rst <= '1';
clk_in <= '0';
wait for 25 ps;
rst <= '1';
clk_in <= '1';
vgaAdd <= '0';
ascii_in <= "1000001";
wait for 25 ps;
rst <= '1';
clk_in <= '0';
wait for 25 ps;
rst <= '1';
clk_in <= '1';
vgaAdd <= '0';
ascii_in <= "1000001";
wait for 25 ps;
rst <= '1';
clk_in <= '0';
wait for 25 ps;
rst <= '1';
clk_in <= '1';
vgaAdd <= '0';
ascii_in <= "1000001";
wait for 25 ps;
rst <= '1';
clk_in <= '0';
wait for 25 ps;
rst <= '1';
clk_in <= '1';
vgaAdd <= '0';
ascii_in <= "1000001";
wait for 25 ps;
rst <= '1';
clk_in <= '0';
wait for 25 ps;
rst <= '1';
clk_in <= '1';
vgaAdd <= '0';
ascii_in <= "1000001";
wait for 25 ps;
rst <= '1';
clk_in <= '0';
wait for 25 ps;
rst <= '1';
clk_in <= '1';
vgaAdd <= '0';
ascii_in <= "1000001";
wait for 25 ps;
rst <= '1';
clk_in <= '0';
wait for 25 ps;
rst <= '1';
clk_in <= '1';
vgaAdd <= '0';
ascii_in <= "1000001";
wait for 25 ps;
rst <= '1';
clk_in <= '0';
wait for 25 ps;
rst <= '1';
clk_in <= '1';
vgaAdd <= '0';
ascii_in <= "1000001";
wait for 25 ps;
rst <= '1';
clk_in <= '0';
wait for 25 ps;
rst <= '1';
clk_in <= '1';
vgaAdd <= '0';
ascii_in <= "1000001";
wait for 25 ps;
rst <= '1';
clk_in <= '0';
wait for 25 ps;
end process;
end Behavioral;