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

ALU Zero Flag Logic

EasyLogic CircuitBuild

The zero flag determines whether a conditional branch instruction executes in modern processors, placing it directly on the critical timing path. It must rapidly evaluate an entire multi-bit arithmetic result and assert high only when all bits are logic low.

The circuit receives an 8-bit bus Result. The output Z must evaluate to 1 if and only if all 8 bits of Result are 0.

| Result | Z | |----------|-----| | 00000000 | 1 | | 00000001 | 0 | | 00010000 | 0 | | 10000000 | 0 | | 11111111 | 0 |

Constraints

  • Limit gate fan-in to a maximum of 2 inputs.
  • Construct a balanced logic tree to minimize propagation delay.
  • Use strictly combinational logic.

Topics

ALULogic DesignStatus Flags

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

  • Half Adder Using Only XOR and ANDEasy
  • Floating Point Exception FlagsMedium
  • 1-Bit ALU SliceMedium
  • 4-bit Carry Lookahead BlockHard
  • BCD Adder Correction BlockMedium
  • IEEE 754 Mantissa Alignment ShifterHard
  • Four-Bit Bus AdderEasy
  • Debugging Twos Complement OverflowMedium

Browse all problems · Learning tracks