Skip to content

Commit 640c0db

Browse files
committed
Flush stdout after eval-ing verilog
1 parent 75aba50 commit 640c0db

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

corev_apu/tb/tb_testRig_cheri/src/cva6_dii_toplevel.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,14 @@ int main(int argc, char **argv) {
257257
top->clk_i = 0;
258258
top->rtc_i = 0;
259259
top->eval();
260+
fflush(stdout);
260261
#if VM_TRACE
261262
if (vcdfile || fst_fname)
262263
tfp->dump(static_cast<vluint64_t>(main_time * 2));
263264
#endif
264265
top->clk_i = 1;
265266
top->eval();
267+
fflush(stdout);
266268
#if VM_TRACE
267269
if (vcdfile || fst_fname)
268270
tfp->dump(static_cast<vluint64_t>(main_time * 2 + 1));
@@ -295,12 +297,14 @@ int main(int argc, char **argv) {
295297
}
296298
top->clk_i = 0;
297299
top->eval();
300+
fflush(stdout);
298301
#if VM_TRACE
299302
if (vcdfile || fst_fname)
300303
tfp->dump(static_cast<vluint64_t>(main_time * 2));
301304
#endif
302305
top->clk_i = 1;
303306
top->eval();
307+
fflush(stdout);
304308
#if VM_TRACE
305309
if (vcdfile || fst_fname)
306310
tfp->dump(static_cast<vluint64_t>(main_time * 2 + 1));
@@ -319,12 +323,14 @@ int main(int argc, char **argv) {
319323
top->clk_i = 0;
320324
top->rtc_i = 0;
321325
top->eval();
326+
fflush(stdout);
322327
#if VM_TRACE
323328
if (vcdfile || fst_fname)
324329
tfp->dump(static_cast<vluint64_t>(main_time * 2));
325330
#endif
326331
top->clk_i = 1;
327332
top->eval();
333+
fflush(stdout);
328334
#if VM_TRACE
329335
if (vcdfile || fst_fname)
330336
tfp->dump(static_cast<vluint64_t>(main_time * 2 + 1));

0 commit comments

Comments
 (0)