mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 06:03:23 +00:00
Merge remote-tracking branch 'origin/master' into eddie/abc9_refactor
This commit is contained in:
commit
03ce2c72bb
3 changed files with 16 additions and 3 deletions
|
@ -922,9 +922,9 @@ void AigerReader::post_process()
|
|||
if (cell->type != "$lut") continue;
|
||||
auto y_port = cell->getPort("\\Y").as_bit();
|
||||
if (y_port.wire->width == 1)
|
||||
module->rename(cell, stringf("%s$lut", y_port.wire->name.c_str()));
|
||||
module->rename(cell, stringf("$lut%s", y_port.wire->name.c_str()));
|
||||
else
|
||||
module->rename(cell, stringf("%s[%d]$lut", y_port.wire->name.c_str(), y_port.offset));
|
||||
module->rename(cell, stringf("$lut%s[%d]", y_port.wire->name.c_str(), y_port.offset));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue