From 9df3cc312680c908ca07765384aa4ceec8507791 Mon Sep 17 00:00:00 2001 From: Cary R Date: Fri, 6 Feb 2026 01:49:15 -0800 Subject: [PATCH] Skip allocating monitor structure until the start of simulation --- vpi/sys_display.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/vpi/sys_display.c b/vpi/sys_display.c index d7e11fff9..dad17f127 100644 --- a/vpi/sys_display.c +++ b/vpi/sys_display.c @@ -1908,6 +1908,11 @@ static PLI_INT32 sys_end_of_compile(p_cb_data cb_data) (void)cb_data; /* Parameter is not used. */ /* The default timeformat prints times in unit of simulation precision. */ + + // Allocate the first entry in monitor_info for use by $monitor + // based tasks. + (void)allocate_monitor_info(); + free(timeformat_info.suff); timeformat_info.suff = strdup(""); timeformat_info.units = vpi_get(vpiTimePrecision, 0); @@ -2273,10 +2278,6 @@ void sys_display_register(void) s_vpi_systf_data tf_data; vpiHandle res; - // Allocate the first entry in monitor_info for use by $monitor - // based tasks. - (void)allocate_monitor_info(); - check_command_line_args(); /*============================== display */