Andrew
FPGA wrote:
> But I can imagine for more complicated testbenches, it won't be so easy
> to step out quickly. I'm trying to move away from the modelsim gui and
> be more automated about my testing. Say I run the testbench in batch
> mode overnight and the assert happens near the end of the run...
There are two phases to simulation:
debugging errors and regressing changes.
The GUI is useful for ad hoc debugging phase.
I want as much information as possible
to find the errors. But one they are
found and fixed, this effort is reduced to
comments in the code.
Once everything is working and meets timing
I need to close the loop on the testbench.
Here, I run a simulation to quickly verify that my small
change has not broken any major function that was
working before. I want to verify all the critical
expected values and see either
a PASS at the end or a break at the first
failure.
Have a look at my reference testbench for
an example.
-- Mike Treseler