Debug: 4-Bit Comparator
A 4-bit comparator determines if two 4-bit binary values are identical in hardware applications like memory addressing and control logic.
Expected behavior:
The output Eq is 1 if and only if all corresponding bits match: A3 = B3, A2 = B2, A1 = B1, and A0 = B0. For all other input combinations, Eq must be 0.
Simulation shows Eq = 0 for inputs A = 0000 and B = 0000. Furthermore, Eq = 1 for inputs A = 0100 and B = 0000. Inspect the circuit and correct the fault.
Constraints
- Do not add or remove input or output pins.
- Modify only the single faulty gate.
- The circuit must use standard basic logic gates.
Topics
Solve this problem
Place the gates, wire them up and watch the signals settle. Every submission runs on the same simulation engine that grades it.
This problem is part of Codiode Pro. The statement above is free to read.
The circuit builder and code editor need a desktop screen. On a phone, read the problem here and open it on a laptop to solve.