xaiger: fix twines

This commit is contained in:
Emil J. Tywoniak 2026-06-24 11:53:37 +02:00
parent d8e09f4e0c
commit a3e982a5e2
1 changed files with 2 additions and 1 deletions

View File

@ -648,7 +648,8 @@ struct XAigerWriter
holes_design = it->second;
else
holes_design = nullptr;
RTLIL::Module *holes_module = holes_design ? holes_design->module(module->meta_->name) : nullptr;
RTLIL::Module *holes_module = holes_design ?
holes_design->module(holes_design->twines.add(std::string{module->name.str()})) : nullptr;
if (holes_module) {
std::stringstream a_buffer;
XAigerWriter writer(holes_module, false /* dff_mode */);