Home / Learn Verilog / The Synthesizable Subset

The Synthesizable Subset

What tools accept.

The gistWhat tools accept.

The idea, explained simply

RTL vs testbenchSynthesizableassign, always @(posedge clk)for with constant boundscase, ifSimulation only#delay$display, $finishreal, file I/Oinitial (mostly)
RTL vs testbench

What it is

Delays, initial blocks (on ASIC), file I/O, $display and real numbers are for simulation only.

Why it matters

Non-synthesizable code is silently ignored or rejected.

Mechanically speaking

Keep testbench constructs out of RTL.

Shows up in

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

Try it

Same function, two stylesVerilog: edit and run

Mark each line as RTL or simulation-only.

Check yourself

1. #delay in RTL is...