From 6dd4ee642fbe43b2d1d135c65d2818b848b52ab7 Mon Sep 17 00:00:00 2001 From: Medium Fries Date: Tue, 2 Oct 2018 18:04:13 -0700 Subject: [PATCH] perfected table formatting --- cst337/lec/lec9.md | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/cst337/lec/lec9.md b/cst337/lec/lec9.md index 3a6246a..cad2879 100644 --- a/cst337/lec/lec9.md +++ b/cst337/lec/lec9.md @@ -83,18 +83,18 @@ For now we'll take two inputs and get 1 output, with a carry-output. Let's add 2 bits |a|b|out| -|0|0|0 -|0|1|1 -|1|0|1 -|1|1|0 +|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? -|a|b |carryout -|0|0 |0 -|0|1 |0 -|1|0 |0 -|1|1 |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 @@ -105,11 +105,11 @@ Two inputs, One output, One carry-out, One carry-in Here we'll add up `a & b`(inputs) and `c` carry-in |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 +|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|