Codiode

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.

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.

Part of Arithmetic and ALU Design

Problem 10 of 32 in the Arithmetic and ALU Design track.

Related problems

Browse all problems · Digital logic design practice problems · Learning tracks

Solve this on a laptopSend yourself the link and continue there.