Home / Learn Verilog / Procedural vs Continuous Assignment
Procedural vs Continuous Assignment
assign vs always.
In shortassign vs always.
What's actually going on
The basic idea
Continuous (assign) drives nets forever; procedural assigns inside blocks drive regs when the block runs.
Why this comes up
Knowing which to use prevents type errors.
The mechanics
Combinational: either style. Sequential: only procedural.
Where it is used
- Everyday RTL design
- FPGA and ASIC projects
- Testbenches and debugging
Try it
Same function both waysVerilog: edit and run
Both give 8.
Quick check
1. Sequential logic uses...
Procedural.