Академический Документы
Профессиональный Документы
Культура Документы
-- Created:
-- by - student.student (pc44)
-- at - 11:26:33 08/08/19
--
-- using Mentor Graphics HDL Designer(TM) 2018.1 (Build 12)
--
LIBRARY ieee;
USE ieee.std_logic_1164.all;
USE ieee.std_logic_arith.all;
end component;
begin
u1:nand2 port map(i1,i2,i3);
u2:nand2 port map(i1,i3,i4);
u3:nand2 port map(i2,i3,i5);
u4:nand2 port map(i4,i5,o);
end netlist;
--XNOR GATE STRUCTURAL LOGIC I1:5ns delay,I2:2ns delay
end component;
begin
u1:nand2 port map(i1,i2,i3);
u2:nand2 port map(i1,i3,i4);
u3:nand2 port map(i2,i3,i5);
u4:nand2 port map(i4,i5,i6);
u5:nand2 port map(i6,i6,o);
end netlist;
--XOR GATE Behavioral LOGIC I1:5ns delay,I2:2ns delay
ENTITY xor_gate IS
port(i1,i2:in bit;
o1:out bit);
END ENTITY xor_gate;
architecture xor_gate of xor_gate is
signal i3,i4,i5:bit;
begin
i3<=i1 nand i2;
i4<=i1 nand i3;
i5<=i2 nand i3;
o1<=i4 nand i5;
end xor_gate;
--XNOR GATE Behavioral LOGIC I1:5ns delay,I2:2ns delay
ENTITY xnor_gate IS
port(i1,i2: in bit;
o1:out bit);
END ENTITY xnor_gate;
architecture xnor_gate of xnor_gate is
signal i3,i4,i5,i6 :bit;
begin
i3 <=i1 nand i2;
i4 <=i1 nand i3;
i5 <= i2 nand i3;
i6 <= i4 nand i5;
o1 <= i6 nand i6;
end xnor_gate;
--HALF ADDER Behavioral(DATA FLOW) LOGIC I1:5ns delay,I2:2ns delay
ENTITY Half_adder IS
port( a, b : in bit;
s, c : out bit);
END ENTITY Half_adder;
ENTITY Full_adder IS
port(a,b,ci : in bit;
s,co : out bit);
END ENTITY Full_adder;
ENTITY Half_adder IS
END ENTITY Half_adder;
ENTITY full_adder IS
END ENTITY full_adder;