mirror of https://github.com/YosysHQ/yosys.git
Support PRIM_BUFIF1 primitive
This commit is contained in:
parent
a0f5ba8501
commit
1aa6896966
|
@ -371,7 +371,7 @@ bool VerificImporter::import_netlist_instance_gates(Instance *inst, RTLIL::IdStr
|
|||
return true;
|
||||
}
|
||||
|
||||
if (inst->Type() == PRIM_TRI) {
|
||||
if ((inst->Type() == PRIM_TRI) || (inst->Type() == PRIM_BUFIF1)) {
|
||||
module->addMuxGate(inst_name, RTLIL::State::Sz, net_map_at(inst->GetInput()), net_map_at(inst->GetControl()), net_map_at(inst->GetOutput()));
|
||||
return true;
|
||||
}
|
||||
|
@ -497,7 +497,7 @@ bool VerificImporter::import_netlist_instance_cells(Instance *inst, RTLIL::IdStr
|
|||
return true;
|
||||
}
|
||||
|
||||
if (inst->Type() == PRIM_TRI) {
|
||||
if ((inst->Type() == PRIM_TRI) || (inst->Type() == PRIM_BUFIF1)) {
|
||||
cell = module->addMux(inst_name, RTLIL::State::Sz, net_map_at(inst->GetInput()), net_map_at(inst->GetControl()), net_map_at(inst->GetOutput()));
|
||||
import_attributes(cell->attributes, inst);
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue