Why You Need Timing in Your Simulation

Engineers often ask “Do I have to use timing with FMF models?” The answer, as usual, is “It depends”. In most cases, the engineer is working on an ASIC or FPGA which they are simulating at the register transfer level. The FPGA model has no timing, cycle accurate simulation is sufficient so, why should any of the components around it need timing?

If the models being used are only of descrete logic, gates and flip-flops, than backannotation of an SDF file to provide timing values can be skipped. However, if the models are of memories, complex or source synchronous parts, than results may not be cycle accurate without timing.

To turn the question around, why wouldn’t a designer want timing in a simulation? The first answer I hear is that it will slow things down. In my experience, there has been no discernable difference in simulation speed between with and without timing. Next, it is too much trouble. True, it does take a little time to generate the SDF file but, once it is created, it does not have to be changed unless the board-level schematic changes. FMF provides a perl script to read your VHDL netlist and generate an SDF file. It is an automated process.

Finally, timing wrappers can be added to your RTL design. This will not only make your board-level simulations run an order of magnatude faster than using the gate-level representation but, it can also be used to derive the timing constraints needed for the FPGA place and route process. A paper on how to do this was just published on the FMF website at http://www.FreeModelFoundry.com/pdf/Verification_Beyond_Chip.pdf.

As always, your feedback on this or any other topic is welcome.

Rick Munden

1 comment

  1. While initial work will not require timing for functional simulation (during this phase your simulation speed will certainly benefit from not having the overhead), board-level simulation and especially handling high-speed interfaces will be meaningless without proper timing.This is also important in initial special analysis simulations early out to ensure the strategy works. So, while not all simulations you do require timing, there are simulation needs throughout the design process that does need them. When you only do functional simulations, timing is rarely important and the gained simulation speed is the benefit.

    Like all good tools, wise usage and timing of use is the key. You want as many cool tools in the toolbox, but you also want to know when to apply which tool.

Leave a comment

Your email address will not be published. Required fields are marked *