2017q3 Homework1 (ternary)
平衡三進位(Balanced Ternary)
平衡三進位,是一種以3為基數以(T,0,1)為基本數位的進位。
T
表示-1
0
表示 0
1
表示 1
Balanced Ternary基礎運算操作
+ |
T |
0 |
1 |
T |
T1 |
T |
0 |
0 |
T |
0 |
1 |
1 |
0 |
1 |
1T |
− |
T |
0 |
1 |
T |
0 |
T |
T1 |
0 |
1 |
0 |
T |
1 |
1T |
1 |
0 |
× |
T |
0 |
1 |
T |
1 |
0 |
T |
0 |
0 |
0 |
0 |
1 |
T |
0 |
1 |
÷ |
T |
0 |
1 |
T |
1 |
NAN |
T |
0 |
0 |
NAN |
0 |
1 |
T |
NAN |
1 |
使用Balanced Ternary多工器
- 多工器腳位介紹
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- 多工器實現半加法器
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- 前半段先計算好結果,後半段再由B決定OUTPUT哪個結果
- 多工器實現全加法器(包含進位)
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- 多工器實現Consensus
- consensus=-1 , if A=B=-1.
- consensus= 1 , if A=B= 1.
- consensus= 0 , otherwise.
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- 多工器實現Overflow
Image Not Showing
Possible Reasons
- The image file may be corrupted
- The server hosting the image is unavailable
- The image path is incorrect
- The image format is not supported
Learn More →
- 跟前面的有點像,先配好正確的輸出再從SEL去做選擇,只是變成兩階式的
Reference
Wikipedia-Balanced ternary
Ternary computing: basics