CodiodeCodiode
Home
Problem Solving
Skill Tracks
My Assignments
Contests
Leaderboard
Community
Settings
Codiode/Problems/Combinational Logic

Bus Parity: XOR the Nibble

MediumLogic CircuitBuild

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

xorparitybusessplitter

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.

Sign in to solveSee what Pro unlocks

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.

Related problems

  • Binary to HexEasy
  • 1-to-4 Demultiplexer from AND and NOT GatesEasy
  • 2-to-4 Line Decoder with Active-High EnableEasy
  • Hex Nibble to BinaryEasy
  • Odd Parity Bit Generator for 3-bit DataEasy
  • Full Adder from Half AddersEasy
  • Modulo ArithmeticMedium
  • Two's Complement: Encode a Negative DecimalEasy

Browse all problems · Learning tracks