Home / Learn Verilog / Four-State Logic and Resolution

Four-State Logic and Resolution

How conflicting drivers combine.

In shortHow conflicting drivers combine.

What's actually going on

ResolutionDrivers 0 and zresult 0Drivers 0 and 1result x (conflict)
Resolution

The basic idea

Two drivers on one wire: equal values stay, 0 against 1 gives x, z loses to anything.

Why this comes up

Explains bus contention and tri-state design.

The mechanics

Resolution happens per bit.

Where it is used

  • Everyday RTL design
  • FPGA and ASIC projects
  • Testbenches and debugging

Try it

Resolve two driversVerilog: edit and run

Two assigns on one wire are legal; the simulator resolves them.

Quick check

1. 0 and 1 driven on one wire give...