Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 4. Elabore um algoritmo que simula o meio somador localizado dentro de uma ula usando as portas: and e xor
- xor (b(barrado) * a + a(barrado)* b)2 and e 1 or (soma)
- 0 0 | 0
- 0 1 | 1
- 1 0 | 1
- 1 1 | 0
- and (a*b) (carry)
- 0 0 | 0
- 0 1 | 0
- 1 0 | 0
- 1 1 | 1
- a | b | s1 = carry | s2 = soma
- 0 | 0 | 0 | 0
- 0 | 1 | 0 | 1
- 1 | 0 | 0 | 1
- 1 | 1 | 1 | 0
- 10110
- 10101 =
- 101011
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement