diff options
| author | Catherine <whitequark@whitequark.org> | 2021-12-25 12:29:44 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-25 12:29:44 +0000 |
| commit | ebe396a2ab0269e3c89dfb8161b934228b6a2451 (patch) | |
| tree | 5ef6388e49c796a377773f91feef7ce2f2eb97d1 | |
| parent | 7407a7f3ef465c6cbaf35fd5c5660e721f36787e (diff) | |
| parent | fc049e84a91dcfbdbd654be6db222673f6c8f26c (diff) | |
| download | yosys-ebe396a2ab0269e3c89dfb8161b934228b6a2451.tar.gz yosys-ebe396a2ab0269e3c89dfb8161b934228b6a2451.tar.bz2 yosys-ebe396a2ab0269e3c89dfb8161b934228b6a2451.zip | |
Merge pull request #3127 from whitequark/cxxrtl-no-reset-elided
cxxrtl: don't reset elided wires with \init attribute
| -rw-r--r-- | backends/cxxrtl/cxxrtl_backend.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/cxxrtl/cxxrtl_backend.cc b/backends/cxxrtl/cxxrtl_backend.cc index ba11179c6..7a336f8c1 100644 --- a/backends/cxxrtl/cxxrtl_backend.cc +++ b/backends/cxxrtl/cxxrtl_backend.cc @@ -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) << " = "; |
