diff --git a/vpi/sys_sdf.c b/vpi/sys_sdf.c index 82f46644e..139ebcc74 100644 --- a/vpi/sys_sdf.c +++ b/vpi/sys_sdf.c @@ -195,6 +195,10 @@ void sdf_iopath_delays(int vpi_edge, const char*src, const char*dst, delay_vals[idx].type = vpiScaledRealTime; if (delval_list->val[idx].defined) { delay_vals[idx].real = delval_list->val[idx].value; + /* Simulation cannot support negative delays. */ + if (delay_vals[idx].real < 0.0) { + delay_vals[idx].real = 0.0; + } } }