-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtb.vhd
47 lines (38 loc) · 912 Bytes
/
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
`timescale 1ns/ 1ps
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
--library std;
--use std.env.all;
library work;
use work.all;
entity tb is
end tb;
architecture behavior of tb is
signal isys_clk: std_logic := '0';
signal istart: std_logic := '0';
signal itick: std_logic := '0';
begin
isys_clk <= not isys_clk after 5ns;
istart <= '1' after 300ns, '0' after 350ns;
process
begin
for i in 1 to 10 loop
wait for 50ns;
itick <= '1';
wait for 50ns;
itick <= '0';
end loop;
-- stop(1);
end process;
dut: entity work.top(struct)
port map (
isys_clk => isys_clk,
istart => istart,
itick => itick,
ovga_hs => open,
ovga_vs => open,
R => open,
G => open,
B => open
);
end behavior;