O slideshow foi denunciado.
Seu SlideShare está sendo baixado. ×

adder and subtractor

Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Anúncio
Próximos SlideShares
Subtractor (1)
Subtractor (1)
Carregando em…3
×

Confira estes a seguir

1 de 28 Anúncio

Mais Conteúdo rRelacionado

Diapositivos para si (20)

Semelhante a adder and subtractor (20)

Anúncio

Mais de Unsa Shakir (20)

Mais recentes (20)

Anúncio

adder and subtractor

  1. 1. BY UNSA SHAKIR ADDER AND SUBTRACTOR
  2. 2. Example: derive truth table from logic diagram
  3. 3. Truth Table
  4. 4. Circuit implementation
  5. 5. Design 3-to-8 decoder with enable implement the 4-to-16 decoder
  6. 6. Boolean function implementation  A more efficient method for implementing a Boolean function of n variables with a multiplexer. F(x, y, z) = (1,2,6,7)
  7. 7. 4-input function with a multiplexer F(A, B, C, D) = (1, 3, 4, 11, 12, 13, 14, 15)
  8. 8. Binary Adder  A combinational circuit that performs the addition of two bits is called a half adder.  The truth table for the half adder is listed below: S = x’y + xy’ C = xy S: Sum C: Carry
  9. 9. K-map for half adder 9
  10. 10. Implementation of Half-Adder
  11. 11. Full-Adder  One that performs the addition of three bits(two significant bits and a previous carry) is a full adder.
  12. 12. Full Adder  A combinational circuit that adds 3 input bits to generate a Sum bit and a Carry bit X Y Z C S 0 0 0 0 0 0 0 1 0 1 0 1 0 0 1 0 1 1 1 0 1 0 0 0 1 1 0 1 1 0 1 1 0 1 0 1 1 1 1 1
  13. 13. Logic Diagram of Full Adder
  14. 14. Logic Diagram of Full Adder S = m(1,2,4,7) = X’ Y’ Cin + X’ Y Cin’ + X Y’ Cin’ + X Y Cin = X’ (Y’ Cin + Y Cin’) + X (Y’ Cin’ + Y Cin) = X’ (Y  Cin) + X (Y  Cin)’ = X  Y  Cin Cout = m(3,5,6,7) = X’ Y Cin + X Y’ Cin + X Y Cin’ + X Y Cin = (X’ Y + X Y’) Cin + XY(Cin’ + Cin) = (X  Y) Cin + XY
  15. 15. 15
  16. 16. 4-Bit Full Adder Binary adder
  17. 17. Subtractor is an electronic logic circuit for calculating the difference between two binary numbers which provides the difference and borrow as output.
  18. 18.  Halfsubtractor Half Subtractor is used for subtracting one single bit binary number from another single bit binary number. It has two inputs; Minuend (A) and Subtrahend (B) and two outputs; Difference (D) and Borrow (Bout).
  19. 19.  TruthTable Input Output A B Difference (D) Borrow (Bout) 0 0 0 0 0 1 1 1 1 0 1 0 1 1 0 0
  20. 20.  SolvingtruthtableusingK-map Borrow = Ā.B Difference = A ⊕ B
  21. 21.  LogicalCircuit
  22. 22.  fULL subtractor A logic Circuit Which is used for subtracting three single bit binary numbers is known as Full Subtractor. • It has three inputs; 1. Minuend (A), 2. Subtrahend(B) 3. Subtrahend(C) • two outputs; 1.Difference (D) 2.Borrow (Bout).
  23. 23.  TruthTable Input Output A B C D B(out) 0 0 0 0 0 0 0 1 1 1 0 1 0 1 1 0 1 1 0 1 1 0 0 1 0 1 0 1 0 0 1 1 0 0 0 1 1 1 1 1
  24. 24.  SolvingTruthTableusingK-Map
  25. 25.  K-MapMinimization From the Truth Table The Difference and Borrow will written as, Difference=A'B'C+A'BC'+AB'C'+ABC Difference=A ⊕B⊕C Borrow=A'B'C+A'BC'+A'BC+ABC =A'B'C+A'BC'+A'BC+A'BC+A'BC+ABC =A'C(B'+B)+A'B(C'+C)+BC(A'+A) Borrow=A'C+A'B+BC B(out) = BC + (B ⊕ C) A
  26. 26.  LogicalCircuit
  27. 27.  LogicalCircuit
  28. 28.  Diagram

×