From 2aeb4d4e1231807144e62930ce9c95795265f6b3 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 26 Feb 2018 15:20:27 +0100 Subject: Add handling of verific OPER_SELECTOR and OPER_WIDE_SELECTOR Signed-off-by: Clifford Wolf --- frontends/verific/verific.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'frontends/verific') diff --git a/frontends/verific/verific.cc b/frontends/verific/verific.cc index 4c28d4c43..1a16f7508 100644 --- a/frontends/verific/verific.cc +++ b/frontends/verific/verific.cc @@ -569,6 +569,19 @@ bool VerificImporter::import_netlist_instance_cells(Instance *inst, RTLIL::IdStr return true; } + if (inst->Type() == OPER_SELECTOR) + { + module->addPmux(inst_name, State::S0, IN2, IN1, net_map_at(inst->GetOutput())); + return true; + } + + if (inst->Type() == OPER_WIDE_SELECTOR) + { + SigSpec out = OUT; + module->addPmux(inst_name, SigSpec(State::S0, GetSize(out)), IN2, IN1, out); + return true; + } + if (inst->Type() == OPER_WIDE_TRI) { module->addMux(inst_name, RTLIL::SigSpec(RTLIL::State::Sz, inst->OutputSize()), IN, net_map_at(inst->GetControl()), OUT); return true; -- cgit v1.2.3