Home / Learn Verilog / Simulator Differences and Portability

Simulator Differences and Portability

Same code, different results?

Quick summarySame code, different results?

How to think about this

Portablerace-free codesame result everywhereracesdepends on tool
Portable

In plain terms

Races, unspecified order and x handling can differ between simulators.

Why we use it

Race-free code behaves the same everywhere.

Under the hood

Follow the nonblocking rules and avoid #0 tricks.

Real-world use

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

Try it

Race-free patternVerilog: edit and run

Deterministic in every simulator.

Quick quiz

1. Portable RTL uses...