Skip to content

Commit

Permalink
Restore sim output from initial $display
Browse files Browse the repository at this point in the history
  • Loading branch information
daglem committed Jan 14, 2024
1 parent 1eb823b commit f41822e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion passes/sat/sim.cc
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ struct SimInstance
if (!en.as_bool())
goto update_print;

if (cell->getParam(ID::TRG_ENABLE).as_bool()) {
if (trg.size() > 0 && cell->getParam(ID::TRG_ENABLE).as_bool()) {
Const trg_pol = cell->getParam(ID::TRG_POLARITY);
for (int i = 0; i < trg.size(); i++) {
bool pol = trg_pol[i] == State::S1;
Expand Down

0 comments on commit f41822e

Please sign in to comment.