-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTH14.vhd
More file actions
27 lines (26 loc) · 808 Bytes
/
TH14.vhd
File metadata and controls
27 lines (26 loc) · 808 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
-- TH14.vhd
-- N=4 M=1
--
-- Z <= A + B + C + D
------------------------------------------------------------
------------------------------------------------------------
------------------------------------------------------------
library ieee,work;
use ieee.std_logic_1164.all;
entity TH14 is
port(A,B,C,D: in std_logic;
Z: out std_logic);
end ;
architecture STRUCTURAL of TH14 is
component LUT4
generic(M : std_logic_vector(15 downto 0):="0000000000000000");
port(I: in std_logic_vector(3 downto 0);
O: out std_logic);
end component; -- LUT4
signal ZERO : std_logic;
begin
------------------------------------------------------------
ZERO <= '0';
L1:LUT4 generic map (M => "1111111111111110")
port map (I(0) => A,I(1) => B,I(2) => C,I(3) => D,O => Z);
end ;