Docsity

Truth Table & Implementation of 1-Bit Binary Full-Adder & Full-Subtractor with Basic Gates, Assignments of Electrical and Electronics Engineering

Partial preview of the text

Download Truth Table & Implementation of 1-Bit Binary Full-Adder & Full-Subtractor with Basic Gates and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

Arithmetic Units

Part A Complete the truth table for a one bit binary full-adder.

X Y C AR R Yin S U M C AR R Yout 0 0 0

1 0 0

Part B Implement a one bit binary full-adder using AND, OR, NAND, NOR, NOT, XOR, and XNOR gates. Lab el the inputs A, B , and C AR R Yin. Lab el the outputs S U M and C AR R Yout. Use mixed logic design metho dology.

Part C The truth table for a one bit binary full-subtractor is given b elow. First determine the simpli ed expression for D I F F E R E N C E and B O R R O Wout. Then implement this truth table using basic gates (AND, OR, NAND, NOR, NOT, XOR, and XNOR). Be sure to lab el the inputs X , Y , B O R R O Win , and the outputs D I F F E R E N C E , and B O R R O Wout. Assume that you have the input signals and their complements.

X Y B O R R O Win D I F F E R E N C E B O R R O Wout 0 0 0 0 0 1 0 0 1 0 0 1 0 1 1 1 1 0 0 0 0 0 1 1 1 1 0 1 0 0 0 1 1 0 1 1 1 1 1 1

D I F F E R E N C E =

B O R R O Wout =

Part D Using a four bit adder, build a four bit adder/subtractors. Use AND, OR, NAND, NOR, NOT, XOR, and XNOR gates plus the adder drawn b elow. Lab el your inputs X 3 , X 2 , X 1 , X 0 , Y 3 , Y 2 , Y 1 , Y 0 , and Add =S ubtr act. Lab el your outputs Z 3 , Z 2 , Z 1 , and Z 0.

four-bit adder

A3 A2 A1 A0 B3 B2 B1 B

SUM3 SUM2 SUM1 SUM

CARRY in