我知道什么是比较器,但我不知道如何用 Mux 实现
请给出使用 2x1 多路复用器设计 1 位比较器的答案,我创建第一个 1 位幅度比较器,我们有两个输入 A 和 B,我们有三个输出 (AB),但我不知道如何实现多路复用器。
要使用 2x1 MUX 实现您想要的功能,您需要实现异或门:
https://vlsiuniverse.blogspot.com/2016/12/XOR-gate-using-mux.html
与门:
https://vlsiuniverse.blogspot.com/2016/12/AND-gate-using-mux.html
和非门:
https://vlsiuniverse.blogspot.com/2016/12/NOT-gate-using-mux.html
一旦你有了这些:
A==B --> NOT(A XOR B)
A>B --> NOT(B) AND A
A 不是(A)和B