Update always_statement.rs

This commit is contained in:
Yanting Zhang 2022-06-20 22:05:14 +08:00
parent 371991accf
commit de4572d8fc
1 changed files with 5 additions and 1 deletions

View File

@ -258,7 +258,11 @@ impl AlwaysStatement {
let eq = builder.ins().eq(prb, zero); let eq = builder.ins().eq(prb, zero);
(String::from("negedge"), builder.ins().and(neq, eq)) (String::from("negedge"), builder.ins().and(neq, eq))
} }
_ => (String::from("impledge"), builder.ins().neq(prb_init, prb)), _ => {
let _neq = builder.ins().neq(prb_init, prb);
context.syntax_table.insert_value(builder.unit(), _neq, json);
(String::from("impledge"), builder.ins().neq(prb_init, prb))
}
}; };
if i > 0 { if i > 0 {
n = format!("{}{}", n, i); n = format!("{}{}", n, i);