I am currently developing my own e-UVC and completed implementing checking monitor. Overall my environment is not mature and while running my tests, I would like to silence my checkers since I expect the failures yet would like to run the tests any a. Does specman support checking severity reduction today? how can I do it? b. Can I reduce severity of checks for specific instances?
6 Answers
You can use set_check(...) to disable checks based on the error message:
extend sys {
setup() is also {
set_check("<match_string>", <new_severity>);
};
};
<match_string> can be any regular expression and <new_severity> can be IGNORE, WARNING, ERROR_CONTINUE, ... Have a look at section 10.1.4 in the Specman Language Reference.
You can also disable specific checks in a specific struct/unit based on their name:
extend sys {
setup() is also {
set_check_by_name("<struct_type>", "<check_name>", <new_severity>);
};
};
<struct_type> is the type of the struct (including subtype) and <check_name> is the name of the check (defined like check <check_name> that ...). Again, have a look at section 10.1.5
set_check(...) and set_check_by_name(...) are actions you can call from your e code. There is also the set check command you can call from the command line that emulates these.
This info is valid for Specman 13.20. Apparently in newer versions it will be possible to disable checks on specific instances.