Fix regression caused by UDP delay patch

translate_time_expr cannot be passed a NULL ivl_expr_t.
This commit is contained in:
Nick Gasson 2008-08-11 20:53:13 +01:00
parent c404b761b7
commit a3929330b0
1 changed files with 5 additions and 1 deletions

View File

@ -148,7 +148,11 @@ static void udp_logic(vhdl_arch *arch, ivl_net_logic_t log)
vhdl_expr *value = new vhdl_const_bit(row[nin]);
vhdl_expr *cond = new vhdl_const_bits(row, nin, false);
vhdl_expr *delay = translate_time_expr(ivl_logic_delay(log, 1));
ivl_expr_t delay_ex = ivl_logic_delay(log, 1);
vhdl_expr *delay = NULL;
if (delay_ex)
delay = translate_time_expr(delay_ex);
ws->add_condition(value, cond, delay);
}