mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-28 03:15:50 +00:00
Added addBufGate module method
This commit is contained in:
parent
d6592d5b99
commit
ba407da187
3 changed files with 8 additions and 0 deletions
|
@ -186,6 +186,11 @@ static bool import_netlist_instance_gates(RTLIL::Module *module, std::map<Net*,
|
|||
return true;
|
||||
}
|
||||
|
||||
if (inst->Type() == PRIM_BUF) {
|
||||
module->addBufGate(RTLIL::escape_id(inst->Name()), net_map.at(inst->GetInput()), net_map.at(inst->GetOutput()));
|
||||
return true;
|
||||
}
|
||||
|
||||
if (inst->Type() == PRIM_INV) {
|
||||
module->addNotGate(RTLIL::escape_id(inst->Name()), net_map.at(inst->GetInput()), net_map.at(inst->GetOutput()));
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue