mirror of https://github.com/YosysHQ/yosys.git
read_aiger to also rename 0 index lut when wideports
This commit is contained in:
parent
01f8d50ba2
commit
abc1c2672e
|
@ -162,9 +162,15 @@ void AigerReader::parse_aiger()
|
|||
int width = wp.second + 1;
|
||||
|
||||
RTLIL::Wire *wire = module->wire(name);
|
||||
if (wire)
|
||||
if (wire) {
|
||||
RTLIL::Cell* driver = module->cell(stringf("%slut", wire->name.c_str()));
|
||||
|
||||
module->rename(wire, RTLIL::escape_id(stringf("%s[%d]", name.c_str(), 0)));
|
||||
|
||||
if (driver)
|
||||
module->rename(driver, stringf("%slut", wire->name.c_str()));
|
||||
}
|
||||
|
||||
// Do not make ports with a mix of input/output into
|
||||
// wide ports
|
||||
bool port_input = false, port_output = false;
|
||||
|
@ -408,9 +414,15 @@ void AigerReader::parse_xaiger()
|
|||
int width = wp.second + 1;
|
||||
|
||||
RTLIL::Wire *wire = module->wire(name);
|
||||
if (wire)
|
||||
if (wire) {
|
||||
RTLIL::Cell* driver = module->cell(stringf("%slut", wire->name.c_str()));
|
||||
|
||||
module->rename(wire, RTLIL::escape_id(stringf("%s[%d]", name.c_str(), 0)));
|
||||
|
||||
if (driver)
|
||||
module->rename(driver, stringf("%slut", wire->name.c_str()));
|
||||
}
|
||||
|
||||
// Do not make ports with a mix of input/output into
|
||||
// wide ports
|
||||
bool port_input = false, port_output = false;
|
||||
|
|
Loading…
Reference in New Issue