aboutsummaryrefslogtreecommitdiffstats
path: root/frontends/verific/verific.cc
diff options
context:
space:
mode:
authorClaire Xenia Wolf <claire@clairexen.net>2023-01-11 04:10:12 +0100
committerClaire Xenia Wolf <claire@clairexen.net>2023-01-11 04:10:12 +0100
commit6d56d4ecfc2c9afda3fd58f945a5f10daf87a999 (patch)
tree8b2e2cd5018674f287ae8b2c20877615fec8b555 /frontends/verific/verific.cc
parent029b0aac7f10ff5e1d927fb6ec1d9571a5350176 (diff)
parent7b476996df962b63656152f643ff2181143f516e (diff)
downloadyosys-6d56d4ecfc2c9afda3fd58f945a5f10daf87a999.tar.gz
yosys-6d56d4ecfc2c9afda3fd58f945a5f10daf87a999.tar.bz2
yosys-6d56d4ecfc2c9afda3fd58f945a5f10daf87a999.zip
Merge branch 'master' of github.com:YosysHQ/yosys into claire/eqystuff
Diffstat (limited to 'frontends/verific/verific.cc')
-rw-r--r--frontends/verific/verific.cc27
1 files changed, 24 insertions, 3 deletions
diff --git a/frontends/verific/verific.cc b/frontends/verific/verific.cc
index 1e61b3a31..a93d79c80 100644
--- a/frontends/verific/verific.cc
+++ b/frontends/verific/verific.cc
@@ -1125,6 +1125,12 @@ void VerificImporter::import_netlist(RTLIL::Design *design, Netlist *nl, std::ma
NetBus *netbus;
Instance *inst;
PortRef *pr;
+ Att *attr;
+
+ FOREACH_ATTRIBUTE(nl, mi, attr) {
+ if (!strcmp(attr->Key(), "noblackbox"))
+ module->set_bool_attribute(ID::blackbox, false);
+ }
FOREACH_PORT_OF_NETLIST(nl, mi, port)
{
@@ -2289,6 +2295,7 @@ std::string verific_import(Design *design, const std::map<std::string,std::strin
#ifdef YOSYSHQ_VERIFIC_EXTENSIONS
VerificExtensions::ElaborateAndRewrite("work", &verific_params);
+ verific_error_msg.clear();
#endif
if (top.empty()) {
@@ -2539,6 +2546,8 @@ struct VerificPass : public Pass {
log("\n");
log("Set message severity. <msg_id> is the string in square brackets when a message\n");
log("is printed, such as VERI-1209.\n");
+ log("Also errors, warnings, infos and comments could be used to set new severity for\n");
+ log("all messages of certain type.\n");
log("\n");
log("\n");
log(" verific -import [options] <top>..\n");
@@ -2782,9 +2791,20 @@ struct VerificPass : public Pass {
else
log_abort();
- for (argidx++; argidx < GetSize(args); argidx++)
- Message::SetMessageType(args[argidx].c_str(), new_type);
-
+ for (argidx++; argidx < GetSize(args); argidx++) {
+ if (Strings::compare(args[argidx].c_str(), "errors")) {
+ Message::SetMessageType("VERI-1063", new_type);
+ Message::SetAllMessageType(VERIFIC_ERROR, new_type);
+ } else if (Strings::compare(args[argidx].c_str(), "warnings")) {
+ Message::SetAllMessageType(VERIFIC_WARNING, new_type);
+ } else if (Strings::compare(args[argidx].c_str(), "infos")) {
+ Message::SetAllMessageType(VERIFIC_INFO, new_type);
+ } else if (Strings::compare(args[argidx].c_str(), "comments")) {
+ Message::SetAllMessageType(VERIFIC_COMMENT, new_type);
+ } else {
+ Message::SetMessageType(args[argidx].c_str(), new_type);
+ }
+ }
goto check_error;
}
@@ -3217,6 +3237,7 @@ struct VerificPass : public Pass {
#ifdef YOSYSHQ_VERIFIC_EXTENSIONS
VerificExtensions::ElaborateAndRewrite(work, &parameters);
+ verific_error_msg.clear();
#endif
if (!ppfile.empty())
veri_file::PrettyPrint(ppfile.c_str(), nullptr, work.c_str());