Advertisement
Schknheit

4

Mar 20th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. 4. Elabore um algoritmo que simula o meio somador localizado dentro de uma ula usando as portas: and e xor
  2.  
  3. xor (b(barrado) * a + a(barrado)* b)2 and e 1 or (soma)
  4. 0 0 | 0
  5. 0 1 | 1
  6. 1 0 | 1
  7. 1 1 | 0
  8.  
  9. and (a*b) (carry)
  10. 0 0 | 0
  11. 0 1 | 0
  12. 1 0 | 0
  13. 1 1 | 1
  14.  
  15. a | b | s1 = carry | s2 = soma
  16. 0 | 0 | 0 | 0
  17. 0 | 1 | 0 | 1
  18. 1 | 0 | 0 | 1
  19. 1 | 1 | 1 | 0
  20.  
  21. 10110
  22. 10101 =
  23. 101011
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement