tables again

This commit is contained in:
Medium Fries 2018-10-02 18:23:44 -07:00
parent 6dd4ee642f
commit 240db3c86b
2 changed files with 16 additions and 10 deletions

3
cst337/lec/lec11.md Normal file
View File

@ -0,0 +1,3 @@
# lec11

View File

@ -82,19 +82,21 @@ For now we'll take two inputs and get 1 output, with a carry-output.
Let's add 2 bits Let's add 2 bits
|a|b|out| |a |b |out|
|0|0|0| |---|---|---|
|0|1|1| |0 |0 |0 |
|1|0|1| |0 |1 |1 |
|1|1|0| |1 |0 |1 |
|1 |1 |0 |
What about the carry bit however? What would _it_ look like given the preivous operations? What about the carry bit however? What would _it_ look like given the preivous operations?
|a|b |carryout| |a |b |carryout|
|0|0 |0| |---|---|---|
|0|1 |0| |0 |0 |0 |
|1|0 |0| |0 |1 |0 |
|1|1 |1| |1 |0 |0 |
|1 |1 |1 |
Before what this implies note that the result of the carryout resembles Before what this implies note that the result of the carryout resembles
@ -105,6 +107,7 @@ Two inputs, One output, One carry-out, One carry-in
Here we'll add up `a & b`(inputs) and `c` carry-in Here we'll add up `a & b`(inputs) and `c` carry-in
|c|a|b |output| |c|a|b |output|
|---|---|---|---|
|0|0|0 |0| |0|0|0 |0|
|0|0|1 |1| |0|0|1 |1|
|0|1|0 |1| |0|1|0 |1|