From e23d14269aec99c744664ab77e91ece2a0ade1e8 Mon Sep 17 00:00:00 2001 From: Cary R Date: Thu, 16 Apr 2009 14:24:58 -0700 Subject: [PATCH] Dump the streams when entering interactive mode. This patch adds code to automatically dump the output stream including any dump file when entering interactive mode. When the user typed ^C or $stop was executed. --- vvp/stop.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vvp/stop.cc b/vvp/stop.cc index 2a1366974..0b6aad7a3 100644 --- a/vvp/stop.cc +++ b/vvp/stop.cc @@ -488,6 +488,9 @@ void stop_handler(int rc) } vpi_mcd_printf(1,"** VVP Stop(%d) **\n", rc); + vpi_mcd_printf(1,"** Flushing output streams.\n"); + invoke_command("$fflush"); + invoke_command("$dumpflush"); vpi_mcd_printf(1,"** Current simulation time is %" TIME_FMT_U " ticks.\n", schedule_simtime());