-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpacket_tb6.vhd
More file actions
64 lines (49 loc) · 1.18 KB
/
Copy pathpacket_tb6.vhd
File metadata and controls
64 lines (49 loc) · 1.18 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
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
ENTITY packet_tb6 IS
END packet_tb6;
ARCHITECTURE behavior OF packet_tb6 IS
COMPONENT packet
PORT(
inputRdy : IN std_logic;
RST : IN std_logic;
input : IN std_logic;
output : OUT std_logic;
outputRdy : OUT std_logic;
clk : IN std_logic;
error : OUT std_logic
);
END COMPONENT;
signal inputRdy : std_logic := '0';
signal RST : std_logic := '0';
signal input : std_logic := '0';
signal clk : std_logic := '0';
signal output : std_logic;
signal outputRdy : std_logic;
signal error : std_logic;
constant clk_period : time := 10 ns;
BEGIN
uut: packet PORT MAP (
inputRdy => inputRdy,
RST => RST,
input => input,
output => output,
outputRdy => outputRdy,
clk => clk,
error => error
);
clk_process :process
begin
clk <= '0';
wait for clk_period/2;
clk <= '1';
wait for clk_period/2;
end process;
stim_proc: process
begin
-- check ram init data
input <= '1';
wait for 10 * clk_period;
wait;
end process;
END;