??? 11/13/06 16:10 Read: times |
#127885 - Yep you can its called gate level design Responding to: ???'s previous message |
You could implement an adder like this if you wanted to and just string as many as you needed together.:-
------------------------------------------------------------------------------- library IEEE; use IEEE.STD_LOGIC_1164.ALL; entity fulladder is port ( addend : in bit; augend : in bit; carry_in : in bit; sum : out bit; carry : out bit ); end fulladder; architecture data_flow of fulladder is begin sum <= ((addend xor augend) xor carry_in); carry <= ((addend and augend) or (carry_in and (addend or augend))); end data_flow; |