cxxrtl: preserve interior memory pointers across reset.
authorCatherine <whitequark@whitequark.org>
Sat, 11 Dec 2021 15:38:43 +0000 (15:38 +0000)
committerCatherine <whitequark@whitequark.org>
Sat, 11 Dec 2021 16:40:06 +0000 (16:40 +0000)
commit55c9fb3b18cee0e2171486f9d4dfbd9b9e106354
treef3d7b963bdb7a4adc4efb9eea4900ec8d31464f7
parent7c9e498662c378ea5e20aebd14918ac3d8df7c05
cxxrtl: preserve interior memory pointers across reset.

Before this commit, values, wires, and memories with an initializer
were value-initialized in emitted C++ code. After this commit, all
values, wires, and memories are default-initialized, and the default
constructor of generated modules calls the reset() method, which
assigns the members that have an initializer.
backends/cxxrtl/cxxrtl.h
backends/cxxrtl/cxxrtl_backend.cc