diff options
author | Clifford Wolf <clifford@clifford.at> | 2019-11-22 16:00:07 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2019-11-22 16:00:07 +0100 |
commit | e93e4a7a2c6875e87b7e2635470cf02aa45af23a (patch) | |
tree | 5d7a941c8dd12e651325c05986bad59467a4a1a4 /frontends | |
parent | 6af0d03faede4a8d87292a76ae70dd1362dfcbb3 (diff) | |
download | yosys-e93e4a7a2c6875e87b7e2635470cf02aa45af23a.tar.gz yosys-e93e4a7a2c6875e87b7e2635470cf02aa45af23a.tar.bz2 yosys-e93e4a7a2c6875e87b7e2635470cf02aa45af23a.zip |
Improve handling of verific primitives in "verific -import -V" mode
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'frontends')
-rw-r--r-- | frontends/verific/verific.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontends/verific/verific.cc b/frontends/verific/verific.cc index de41e1a5c..843e7b9b4 100644 --- a/frontends/verific/verific.cc +++ b/frontends/verific/verific.cc @@ -789,7 +789,7 @@ void VerificImporter::import_netlist(RTLIL::Design *design, Netlist *nl, std::se std::string netlist_name = nl->GetAtt(" \\top") ? nl->CellBaseName() : nl->Owner()->Name(); std::string module_name = netlist_name; - if (nl->IsOperator()) { + if (nl->IsOperator() || nl->IsPrimitive()) { module_name = "$verific$" + module_name; } else { if (!norename && *nl->Name()) { @@ -1409,7 +1409,7 @@ void VerificImporter::import_netlist(RTLIL::Design *design, Netlist *nl, std::se std::string inst_type = inst->View()->Owner()->Name(); - if (inst->View()->IsOperator()) { + if (inst->View()->IsOperator() || inst->View()->IsPrimitive()) { inst_type = "$verific$" + inst_type; } else { if (*inst->View()->Name()) { |