mirror of
https://github.com/verilator/verilator.git
synced 2025-01-08 15:47:36 +00:00
Fix sc_main test to make trace data.
This commit is contained in:
parent
41701673a0
commit
591075a8ed
@ -134,10 +134,10 @@ int sc_main(int argc, char* argv[]) {
|
|||||||
cout <<("Test beginning...\n");
|
cout <<("Test beginning...\n");
|
||||||
|
|
||||||
reset_l = 1;
|
reset_l = 1;
|
||||||
while (VL_TIME_Q() < 60 && !passed && !Verilated::gotFinish()) {
|
while (VL_TIME_Q() < 60 && !Verilated::gotFinish()) {
|
||||||
#if VM_TRACE
|
#if VM_TRACE
|
||||||
// Flush the wave files each cycle so we can immediately see the output
|
// Flush the wave files each cycle so we can immediately see the output
|
||||||
// Don't do this in "real" programs, do it in a abort() handler instead
|
// Don't do this in "real" programs, do it in an abort() handler instead
|
||||||
if (tfp) tfp->flush();
|
if (tfp) tfp->flush();
|
||||||
#endif
|
#endif
|
||||||
if (VL_TIME_Q() > 10) {
|
if (VL_TIME_Q() > 10) {
|
||||||
|
Loading…
Reference in New Issue
Block a user