Merge pull request #3127 from whitequark/cxxrtl-no-reset-elided

cxxrtl: don't reset elided wires with \init attribute
This commit is contained in:
Catherine 2021-12-25 12:29:44 +00:00 committed by GitHub
commit ebe396a2ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1838,6 +1838,8 @@ struct CxxrtlWorker {
int mem_init_idx = 0;
inc_indent();
for (auto wire : module->wires()) {
const auto &wire_type = wire_types[wire];
if (!wire_type.is_named() || wire_type.is_local()) continue;
if (!wire_init.count(wire)) continue;
f << indent << mangle(wire) << " = ";