-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsim_Ejer5.vhd
78 lines (51 loc) · 1.47 KB
/
sim_Ejer5.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
--------------------------------------------------------------------------------
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 sim_Ejercicio5 IS
END sim_Ejercicio5;
ARCHITECTURE behavior OF sim_Ejercicio5 IS
-- Component Declaration for the Unit Under Test (UUT)
COMPONENT Ejercicio5
PORT(
A : IN std_logic_vector(5 downto 0);
B : IN std_logic_vector(5 downto 0);
Salida : OUT std_logic_vector(5 downto 0)
);
END COMPONENT;
--Inputs
signal A : std_logic_vector(5 downto 0) := (others => '0');
signal B : std_logic_vector(5 downto 0) := (others => '0');
--Outputs
signal Salida : std_logic_vector(5 downto 0);
-- No clocks detected in port list. Replace <clock> below with
-- appropriate port name
BEGIN
-- Instantiate the Unit Under Test (UUT)
uut: Ejercicio5 PORT MAP (
A => A,
B => B,
Salida => Salida
);
-- Stimulus process
stim_proc: process
begin
-- hold reset state for 100 ns.
wait for 100 ns;
A <= "000111";
B <= "000011";
wait for 100 ns;
A <= "001111";
B <= "000111";
wait for 100 ns;
A <= "000011";
B <= "001111";
wait for 100 ns;
A <= "000111";
B <= "011111";
-- insert stimulus here
wait;
end process;
END;