KB 05: Synthesizable Coding of Verilog
The synthesis is to convert the description language into a circuit that can be implemented in hardware. However, most Verilog courses do not tell us whether you have to consider that the code is synthesizable or not, while you use Verilog to design the system.
When you use Verilog to describe your circuit, keep in mind the following:
- Do not use the initialization block.
- Do not use delay statements.
- Do not use statements with uncertain loop times, such as: forever, while, etc.
- Use synchronous methods to design the circuit as possible.
- Use behavioral modeling to design the circuit as possible.
- When using an always block describes the combinational circuit, all the inputs should be listed in the sensitivity list.
- All the User-Defined Primitives (UDP) are not synthesizable.
- The repeat, wait, fork/join, deassign, event, force/release statements are not supported by synthesis tools.
- Hierarchical references of registers and nets inside the modules are not supported.