Bus Parity: XOR the Nibble
Buses are convenient — until you need to reason about individual bits. The Splitter breaks a bus back into its bit lanes so scalar gates can chew on them, and that boundary between bus-land and bit-land is exactly where real datapath bugs live.
Build an even-parity checker for a 4-bit bus D: the output P must be 1 when D contains an odd number of 1 bits (so that D plus P together always carry an even number of ones).
P = D[3] XOR D[2] XOR D[1] XOR D[0]
Constraints
- Split the bus with a Splitter from the Buses palette group — do not change the input to four scalar INPUTs.
- Use XOR gates only after the split.
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.