A solicitação
“Draw a two-bit binary comparator with A1, A0, B1 and B0 inputs and EQ, GT and LT outputs using XNOR, AND, NOT and OR gates.”
Depois, tenteAdd a cascade input for larger words.Change it to a three-bit comparator.
O que há neste desenho
Entenda as decisões por trás dele.
01XNOR gates produce 1 when bits are equal
used by both EQ and the conditional GT/LT logic.
02MSB checked first
if A1>B1, GT=1 regardless of lower bits.
03
All intermediate signals named explicitly so gate count and critical path are traceable.
Cascade two 2-bit comparators with equality carry-in/carry-out for a 4-bit comparator.
Mais como este