From a401efc093914795176977b1d723c75f5f0ee9c9 Mon Sep 17 00:00:00 2001 From: Sid Manning Date: Mon, 18 Nov 2024 08:25:39 -0800 Subject: [PATCH] Don't issue stall warnings if RTL is disabled. Users doing system debugging will want to disable this to prevent aborts and seeing extraneous stall messages is distracting. --param 'platform.rtl.SCTimeout_ms=0' will disable the RTL module. Signed-off-by: Sid Manning --- .../realtimelimiter/include/realtimelimiter.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/systemc-components/realtimelimiter/include/realtimelimiter.h b/systemc-components/realtimelimiter/include/realtimelimiter.h index 5044d8c7..01b0e78b 100644 --- a/systemc-components/realtimelimiter/include/realtimelimiter.h +++ b/systemc-components/realtimelimiter/include/realtimelimiter.h @@ -91,9 +91,11 @@ SC_MODULE (realtimelimiter) { startSC; if (last > sc_core::SC_ZERO_TIME && sc_core::sc_time_stamp() == last) { p_RTquantum_ms.set_value(p_RTquantum_ms.get_value() + 100); - SCP_WARN(()) - ("Stalled ? (runto is {}s ahead, systemc time has not changed, new limit {}ms {}s)", - (runto - sc_core::sc_time_stamp()).to_seconds(), p_RTquantum_ms.get_value(), runto.to_seconds()); + if (p_SCTimeout_ms) { + SCP_WARN(()) + ("Stalled ? (runto is {}s ahead, systemc time has not changed, new limit {}ms {}s)", + (runto - sc_core::sc_time_stamp()).to_seconds(), p_RTquantum_ms.get_value(), runto.to_seconds()); + } /* Only check for exsessive runto's if we're stalled */ if (p_SCTimeout_ms && (runto > sc_core::sc_time_stamp() + sc_core::sc_time(p_SCTimeout_ms, sc_core::SC_MS))) {