3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-10 08:03:26 +00:00

cxxrtl: Add debug items for state with private names

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2025-05-26 11:11:51 +02:00 committed by myrtle
parent 4f7ea38b49
commit 45a6940f40
3 changed files with 8 additions and 2 deletions

View file

@ -2429,8 +2429,6 @@ struct CxxrtlWorker {
inc_indent();
for (auto wire : module->wires()) {
const auto &debug_wire_type = debug_wire_types[wire];
if (!wire->name.isPublic())
continue;
count_public_wires++;
switch (debug_wire_type.type) {
case WireType::BUFFERED:
@ -2438,6 +2436,9 @@ struct CxxrtlWorker {
// Member wire
std::vector<std::string> flags;
if (!wire->name.isPublic())
flags.push_back("GENERATED");
if (wire->port_input && wire->port_output)
flags.push_back("INOUT");
else if (wire->port_output)