Skip to content

Commit 03a8341

Browse files
committed
Disable VERI-1063 during static elaboration
1 parent 2ca611b commit 03a8341

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

frontends/verific/verific.cc

+8-1
Original file line numberDiff line numberDiff line change
@@ -2691,8 +2691,12 @@ struct VerificExtNets
26912691
void import_all(const char* work, std::map<std::string,Netlist*> *nl_todo, Map *parameters, bool show_message, std::string ppfile YS_MAYBE_UNUSED)
26922692
{
26932693
#ifdef YOSYSHQ_VERIFIC_EXTENSIONS
2694+
msg_type_t prev_1063 = Message::GetMessageType("VERI-1063") ;
2695+
Message::SetMessageType("VERI-1063", VERIFIC_INFO);
26942696
VerificExtensions::ElaborateAndRewrite(work, parameters);
26952697
verific_error_msg.clear();
2698+
Message::ClearMessageType("VERI-1063") ;
2699+
Message::SetMessageType("VERI-1063", prev_1063);
26962700
#endif
26972701
#ifdef VERIFIC_SYSTEMVERILOG_SUPPORT
26982702
if (!ppfile.empty())
@@ -2823,8 +2827,12 @@ std::set<std::string> import_tops(const char* work, std::map<std::string,Netlist
28232827

28242828
#ifdef YOSYSHQ_VERIFIC_EXTENSIONS
28252829
if (static_elaborate) {
2830+
msg_type_t prev_1063 = Message::GetMessageType("VERI-1063") ;
2831+
Message::SetMessageType("VERI-1063", VERIFIC_INFO);
28262832
VerificExtensions::ElaborateAndRewrite(work, &veri_modules, &vhdl_units, parameters);
28272833
verific_error_msg.clear();
2834+
Message::ClearMessageType("VERI-1063") ;
2835+
Message::SetMessageType("VERI-1063", prev_1063);
28282836
#endif
28292837
#ifdef VERIFIC_SYSTEMVERILOG_SUPPORT
28302838
if (!ppfile.empty())
@@ -3424,7 +3432,6 @@ struct VerificPass : public Pass {
34243432
RuntimeFlags::SetVar("veri_preserve_assignments", 1);
34253433
RuntimeFlags::SetVar("veri_preserve_comments", 1);
34263434
RuntimeFlags::SetVar("veri_preserve_drivers", 1);
3427-
RuntimeFlags::SetVar("veri_create_empty_box", 1);
34283435

34293436
// Workaround for VIPER #13851
34303437
RuntimeFlags::SetVar("veri_create_name_for_unnamed_gen_block", 1);

0 commit comments

Comments
 (0)