Skip to content

Commit

Permalink
Don't issue stall warnings if RTL is disabled.
Browse files Browse the repository at this point in the history
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 <sidneym@quicinc.com>
  • Loading branch information
SidManning committed Nov 19, 2024
1 parent 5d4ef13 commit a401efc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions systemc-components/realtimelimiter/include/realtimelimiter.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))) {
Expand Down

0 comments on commit a401efc

Please sign in to comment.