forked from salb545/VHDLWhizCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreset_tb.vhd
More file actions
60 lines (39 loc) · 1.02 KB
/
Copy pathreset_tb.vhd
File metadata and controls
60 lines (39 loc) · 1.02 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
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
use std.env.finish;
library dot_matrix_sim;
use dot_matrix_sim.sim_subprograms.all;
entity reset_tb is
end reset_tb;
architecture sim of reset_tb is
-- DUT signals
signal clk : std_logic := '1';
signal rst_in : std_logic := '1'; -- Pullup
signal rst_out : std_logic;
begin
DUT : entity dot_matrix_sim.reset(rtl)
port map (
clk => clk,
rst_in => rst_in,
rst_out => rst_out
);
PROC_SEQUENCER : process
begin
assert rst_out = '1'
report "rst_out was not asserted on power-on"
severity failure;
wait for 200 ns; -- TODO: delete later
print_test_ok;
finish;
end process; -- PROC_SEQUENCER
------------- CLOCK PRODUCING PROCESS -------------------------------
clk_process: process
begin
clk <= '0';
wait for 5 ns;
clk <= '1';
wait for 5 ns;
end process;
------------- END CLOCK PRODUCING PROCESS -------------------------------
end architecture;