Difference between revisions of "Message handling"
From Verific Design Automation FAQ
m |
|||
Line 1: | Line 1: | ||
'''Q: How do I upgrade/downgrade messages from Verific?''' | '''Q: How do I upgrade/downgrade messages from Verific?''' | ||
+ | |||
+ | Verific message table, with notation as whether the error can be safely downgraded: | ||
+ | |||
+ | [http://www.verific.com/docs/index.php?title=Message_Downgrading_Table "Verific Message Table"] | ||
+ | |||
+ | (Access to Verific On-line Documentation requires login. Contact Verific if you don't know/don't have credentials). | ||
You can set any message to any type below: | You can set any message to any type below: |
Revision as of 15:39, 24 August 2018
Q: How do I upgrade/downgrade messages from Verific?
Verific message table, with notation as whether the error can be safely downgraded:
(Access to Verific On-line Documentation requires login. Contact Verific if you don't know/don't have credentials).
You can set any message to any type below:
VERIFIC_NONE, // print no prefix VERIFIC_ERROR, // print ERROR: VERIFIC_WARNING, // print WARNING: VERIFIC_IGNORE, // ignore message (do not print message): VERIFIC_INFO, // print INFO: VERIFIC_COMMENT, // print -- VERIFIC_PROGRAM_ERROR // print PROGRAM_ERROR
For C++, use the following APIs:
Message::SetMessageType() - Force a message type by message id Message::GetMessageType() - Get the message type by message id Message::ClearMessageType() - Clear a message type by message id Message::SetAllMessageType() - Force all messages of type 'orig' to behave as type 'type'. Message::ClearAllMessageTypes() - Clear all forced message types
For Tcl, use the following commands:
setmsgtype clearmsgtype
Some Perl command examples:
# ignore message VNLR-1015 Verific::Message::SetMessageType("VNLR-1015", $Verific::VERIFIC_IGNORE); # ignore all warning messages Verific::Message::SetAllMessageType($Verific::VERIFIC_WARNING, $Verific::VERIFIC_IGNORE);
Note that downgrading an error may have unpredictable/undesirable results.