Skip to content

Commit

Permalink
write_cxxrtl: reset state value of comb $print cells.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark authored and daglem committed Jan 11, 2024
1 parent 1159e48 commit d493225
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backends/cxxrtl/cxxrtl_backend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2002,6 +2002,8 @@ struct CxxrtlWorker {
}
}
for (auto cell : module->cells()) {
if (cell->type == ID($print) && !cell->getParam(ID::TRG_ENABLE).as_bool())
f << indent << mangle(cell) << " = value<" << (1 + cell->getParam(ID::ARGS_WIDTH).as_int()) << ">();\n";
if (is_internal_cell(cell->type))
continue;
f << indent << mangle(cell);
Expand Down

0 comments on commit d493225

Please sign in to comment.