-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdac_parallel_tb.vhdl
More file actions
35 lines (30 loc) · 900 Bytes
/
dac_parallel_tb.vhdl
File metadata and controls
35 lines (30 loc) · 900 Bytes
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
LIBRARY ieee;
USE ieee.std_logic_1164.ALL;
ENTITY dac_parallel_test IS
END dac_parallel_test;
ARCHITECTURE test OF dac_parallel_test IS
COMPONENT dac_parallel IS
PORT (
inputVoltage : IN std_logic_vector(2 DOWNTO 0);
outputVoltage : OUT std_logic_vector(4 DOWNTO 0)
);
END COMPONENT;
SIGNAL inputVoltage : std_logic_vector(2 DOWNTO 0);
SIGNAL outputVoltage : std_logic_vector(4 DOWNTO 0);
BEGIN
dac_parallel_tb : dac_parallel PORT MAP
(inputVoltage => inputVoltage, outputVoltage => outputVoltage);
PROCESS BEGIN
inputVoltage <= "000";
WAIT FOR 1 fs;
inputVoltage <= "001";
WAIT FOR 1 fs;
inputVoltage <= "010";
WAIT FOR 1 fs;
inputVoltage <= "011";
WAIT FOR 1 fs;
inputVoltage <= "100";
WAIT FOR 1 fs;
WAIT;
END PROCESS;
END test;