fixed tables

This commit is contained in:
Medium Fries 2018-10-02 17:51:36 -07:00
parent 7985a0f767
commit 2a4346af8e

View File

@ -82,19 +82,19 @@ For now we'll take two inputs and get 1 output, with a carry-output.
Let's add 2 bits
ab |out
00 |0
01 |1
10 |1
11 |0
|a|b|out|
|0|0|0
|0|1|1
|1|0|1
|1|1|0
What about the carry bit however? What would _it_ look like given the preivous operations?
ab |carryout
00 |0
01 |0
10 |0
11 |1
|a|b |carryout
|0|0 |0
|0|1 |0
|1|0 |0
|1|1 |1
Before what this implies note that the result of the carryout resembles
@ -104,12 +104,12 @@ Two inputs, One output, One carry-out, One carry-in
Here we'll add up `a & b`(inputs) and `c` carry-in
cab |output
000 |0
001 |1
010 |1
011 |0
100 |1
101 |0
110 |0
111 |1
|c|a|b |output|
|0|0|0 |0
|0|0|1 |1
|0|1|0 |1
|0|1|1 |0
|1|0|0 |1
|1|0|1 |0
|1|1|0 |0
|1|1|1 |1