A problem that exists for synthesis tools is that most HDLs have been created for simulation and not specifically for synthesis. Therefore, only a subset of any HDL can be used to write synthesizable code. Synthesis vendors seem to arbitrarily support only the minimum subset that gets_the_job_done. I find that this "limitation" makes the code less readable and thus less maintainable than TestBench code. |
Another HDL problem is that it's easy to write nonsense code. If functional simulation doesn't find the nonsense you wind up with some very interesting hardware. BTW, formal verification won't find the nonsense either. |
Sandstrom Engineering has created a program (actually a VHDL model, PreSynth.vhd) that reads a non-synthesizable VHDL file and annotates a copy of it with synthesizable VHDL (where possible). The program also flags nonsense constructs which I hope will finally make formal verification realizable. This new, annotated code is then submitted to synthesis. |
Constructs like FILE are truly not synthesizable. An error message is generated: -- ERR_001 : File constructs
not supported by synthesis tools,
-- WRN_001 : Arrays are not the same size. Good_design_practice checks include drawing attention
to any outputs that are not registered.
|