partial adder design

partial adder design - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 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 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 ----------------------------------------------------------------------------------- Company: CSUN -- Engineer: HARSHIT JARIWALA --- Create Date: 20:29:28 09/13/2009 -- Design Name: PARTIAL ADDER -- Module Name: partialadder - Behavioral -- Project Name: -- Target Devices: -- Tool versions: -- Description: --- Dependencies: --- Revision: -- Revision 0.01 - File Created -- Additional Comments: ----------------------------------------------------------------------------------library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL; ---- Uncomment the following library declaration if instantiating ---- any Xilinx primitives in this code. --library UNISIM; --use UNISIM.VComponents.all; entity partialadder is Port ( ai : in STD_LOGIC; bi : in STD_LOGIC; cin : in STD_LOGIC; cgi : out STD_LOGIC; cpi : out STD_LOGIC; sum : out STD_LOGIC); end partialadder; architecture Behavioral of partialadder is begin sum<=ai xor bi xor cin; cgi<=ai and bi; cpi<=ai xor bi; end Behavioral; ...
View Full Document

Page1 / 2

partial adder design - 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online