From ab2d8e5c8cc78eb60f380fbdf5b09f2401ce27f6 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Tue, 24 Nov 2015 12:16:19 +0100 Subject: [PATCH] Added PRIM_DLATCHRS support to verific front-end --- frontends/verific/verific.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontends/verific/verific.cc b/frontends/verific/verific.cc index e40f24cb0..45cd4f3fc 100644 --- a/frontends/verific/verific.cc +++ b/frontends/verific/verific.cc @@ -314,6 +314,16 @@ static bool import_netlist_instance_cells(RTLIL::Module *module, std::mapType() == PRIM_DLATCHRS) + { + if (inst->GetSet()->IsGnd() && inst->GetReset()->IsGnd()) + module->addDlatch(RTLIL::escape_id(inst->Name()), net_map.at(inst->GetControl()), net_map.at(inst->GetInput()), net_map.at(inst->GetOutput())); + else + module->addDlatchsr(RTLIL::escape_id(inst->Name()), net_map.at(inst->GetControl()), net_map.at(inst->GetSet()), net_map.at(inst->GetReset()), + net_map.at(inst->GetInput()), net_map.at(inst->GetOutput())); + return true; + } + #define IN operatorInput(inst, net_map) #define IN1 operatorInput1(inst, net_map) #define IN2 operatorInput2(inst, net_map)