Skip allocating monitor structure until the start of simulation

This commit is contained in:
Cary R 2026-02-06 01:49:15 -08:00
parent 26ba3f62e3
commit 9df3cc3126
1 changed files with 5 additions and 4 deletions

View File

@ -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 */