formalff: Proper error messages on async inputs for the -clk2ff mode

This commit is contained in:
Jannis Harder 2022-12-09 15:22:21 +01:00
parent 7ad7b550cb
commit 967529abb1
1 changed files with 3 additions and 0 deletions

View File

@ -479,6 +479,9 @@ struct FormalFfPass : public Pass {
if (ff.sig_clk.is_fully_const())
log_error("Const CLK on %s (%s) from module %s, run async2sync first.\n",
log_id(cell), log_id(cell->type), log_id(module));
if (ff.has_aload || ff.has_arst || ff.has_sr)
log_error("Async inputs on %s (%s) from module %s, run async2sync first.\n",
log_id(cell), log_id(cell->type), log_id(module));
auto clk_wire = ff.sig_clk.is_wire() ? ff.sig_clk.as_wire() : nullptr;