-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tester.vhd.bak
51 lines (36 loc) · 969 Bytes
/
Tester.vhd.bak
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
library ieee;
use ieee.std_logic_1164.all;
entity Tester is port (
MC_TESTMODE : in std_logic;
I1EQI2,I1GTI2,I1LTI2 : in std_logic;
input1 : in std_logic_vector(3 downto 0);
input2 : in std_logic_vector(3 downto 0);
TEST_PASS : out std_logic
);
end Tester;
architecture Test_ckt of Tester is
signal EQ_PASS, GT_PASS, LT_PASS : std_logic;
begin
Tester1:
PROCESS (MC_TESTMODE, input1, input2, I1EQI2, I1GTI2, I1LTI2) is
begin
IF ((input1 input2) AND (I1EQI2 = '1')) THEN
EQ_PASS <= '1';
GT_PASS <= '0';
LT_PASS <= '0';
ELSIF ((input1 input2) AND (I1GTI2 = '1')) THEN
GT_PASS <= '1';
EQ_PASS <= '0';
LT_PASS <= '0';
ELSIF ((input1 input2) AND (I1LTI2 = '1')) THEN
LT_PASS <= '1';
EQ_PASS <= '0';
GT_PASS <= '0';
ELSE
EQ_PASS <= '0';
GT_PASS <= '0';
LT_PASS <= '0';
END IF;
TEST_PASS <= MC_TESTMODE AND (EQ_PASS OR GT_PASS OR LT_PASS);
end process;
end;