Problem Solutions – Chapter 3
3-65.
— Full Adder: Structural VHDL Description
— (See Figure 4-28 for logic diagram)
library ieee, lcdf_vhdl;
use ieee.std_logic_1164.all, lcdf_vhdl.func_prims.all; —X is input vector (A0, B0, C0).
entity full_adder_st is
end component;
component NOR2
port(in1, in2: in std_logic;
out1: out std_logic);
end component;
component AND2
port(in1, in2: in std_logic;
— from upper left to lower right.
—The following is the circuit netlist.
begin
g0: NAND2 port map (X(1), X(0), S(0));
g1: NOR2 port map (X(1), X(0), S(1));
24