Changeset 8226

Show
Ignore:
Timestamp:
08/28/08 14:23:10 (5 years ago)
Author:
mcarrick
Message:

removed carry out, full_adder component dependence

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/branches/mcarrick/VHDL/full_adder_pg/full_adder_pg.vhd

    r8215 r8226  
    1 -- Full Adder with Propogate and Generate Functions 
     1-- Adder with Propogate and Generate Functions 
    22-- 
    3 -- This component is an implementation of a full adder 
    4 -- with the propagate and generate functions to be 
    5 -- used in a carry look ahead adder. 
    6 -- 
    7 -- This component requires the full_adder component. 
     3-- This component is slightly different from a  
     4-- real full adder which computes both the sum 
     5-- and the carry out. This computes only the sum 
     6-- and the propagate and generate functions for 
     7-- use in a carry look ahead adder. 
    88 
    99library ieee; 
     
    2222architecture full_adder_pg_behav of full_adder_pg is 
    2323 
    24         -- full adder to be instantiated 
    25         component full_adder is 
    26                 port (  a               : in    std_logic; 
    27                                 b               : in    std_logic; 
    28                                 cIn             : in    std_logic; 
    29                                 s               : out   std_logic; 
    30                                 cOut    : out   std_logic 
    31                 ); 
    32         end component full_adder; 
    33  
    3424        begin 
    3525 
    36                 -- use sum and carry out function defined 
    37                 -- in the full adder 
    38                 full_adder_inst : full_adder 
    39                         port map (      a               => a, 
    40                                                 b               => b, 
    41                                                 cIn             => cIn, 
    42                                                 s               => s, 
    43                                                 cOut    => open 
    44                         ); 
     26                -- only calculate sum 
     27                s <= (a xor b) xor cIn; 
    4528 
    4629                -- calculate the propagate and generate functions 
     
    5235 
    5336 
    54