[英]How to simplify Logic Gate - mux simulation
当尝试制作一个多路复用器时,您如何去做:
Not(in=a, out=nota);
Not(in=b, out=notb);
Not(in=sel, out=notsel);
And(a=a, b=b, out=aAndb);
And(a=a, b=notb, out=aAndNotb);
And(a=nota, b=b, out=bAndNota);
And(a=aAndb, b=sel, out=aAndBAndSel);
And(a=aAndb, b=notsel, out=aAndBAndNotSel);
And(a=aAndNotb, b=notsel, out=aAndNotBAndNotSel);
And(a=bAndNota, b=sel, out=bAndNotaAndSel);
Or(a=aAndBAndSel, b=aAndBAndNotSel, out=o1);
Or(a=o1, b=aAndNotBAndNotSel, out=o2);
Or(a=o2, b=bAndNotaAndSel, out=out);
对此:
Nand(a=sel, b=sel, out=notsel);
Nand(a=a, b=notsel, out=asel);
Nand(a=b, b=sel, out=bnotsel);
Nand(a=asel, b=bnotsel, out=out);
我的回答总是很长,我不确定您将如何寻找更优雅的解决方案。
MUX Truth Table Answers
| a | b | sel | out |
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 1 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 |
写下您拥有的表达式的真值表,使用卡诺图将其最小化,然后使用布尔代数获得第二个表达式。 (通过加倍不适用并适用摩根法律)
简化为:
BS + AS'
或使用其他符号:
(B & S) ∨ (A & ~S)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.