https://hackmd.io/@zxcj04/i2c-logic
助教: 黃爾群
FanRende (030Mortal#5525)
Input 1 | Input 2 | Output |
---|---|---|
False | False | False |
False | True | False |
True | False | False |
True | True | True |
Input 1 | Input 2 | Output |
---|---|---|
False | False | False |
False | True | True |
True | False | True |
True | True | True |
Input 1 | Output |
---|---|
False | True |
True | False |
Input 1 | Input 2 | Output |
---|---|---|
False | False | True |
False | True | False |
True | False | False |
True | True | False |
Input 1 | Input 2 | Output |
---|---|---|
False | False | False |
False | True | True |
True | False | True |
True | True | False |
用來將 1-bit 二進位的數字相加
結果以 S 表示 進位以 Cout 表示
A | B | S | Cout |
---|---|---|---|
0 | 0 | 0 | 0 |
0 | 1 | 1 | 0 |
1 | 0 | 1 | 0 |
1 | 1 | 0 | 1 |
用來將 1-bit 二進位的數字相加
有前一步的進位
A | B | Cin | S | Cout |
---|---|---|---|---|
0 | 0 | 0 | 0 | 0 |
0 | 0 | 1 | 1 | 0 |
0 | 1 | 0 | 1 | 0 |
0 | 1 | 1 | 0 | 1 |
1 | 0 | 0 | 1 | 0 |
1 | 0 | 1 | 0 | 1 |
1 | 1 | 0 | 0 | 1 |
1 | 1 | 1 | 1 | 1 |
作業做完請上傳到 http://140.121.197.13/tutorial
並且注意上傳時間限制、檔名、其他規範
上課時提前做完可以直接給助教 demo 登記
就不需要上傳 demo 過的部分
利用 LogicCircuit 畫出前面介紹過的 1-bit Full Adder
並產生出他的 Truth Table
請注意接點位置及工整度
結合上面的 1-bit Full Adder 做出 2-bit Full Adder
(*) 結合上面的 2-bit Full Adder 做出 4-bit Full Adder
(不計分)
6. 多 bit 的 Full Adder 被稱為 Ripple Carry Adder
請查閱與 Carry Lookahead Adder 的差別