| |
LCS-2016-050 |
| |
6 |
| |
24-Mar-2017 |
| |
Voting |
| |
Jim Lewis Patrick Lehmann Martin Zabel |
| |
Main.JimLewis |
| |
API for Assert |
| |
history |
| |
LCS2016-050-Assert-API |
| |
API for Assert |
GetVhdlAssertFailed to GetVhdlAssertCount
@MZSetVhdlAssertEnable applies the Enable parameter to either enable or disable all severity flags. With
a severity parameter, SetVhdlAssertEnable applies the Enable parameter to either enable or disable the specified severity value.
This is fixed in version 3. I added the final sentence to the paragraph on SetVhdlAssertEnable: Severity parameter, SetVhdlAssertEnable applies the enable to all SEVERITY_LEVEL values
-- GetVhdlAssertCount GetVhdlAssertCount(WARNING) + GetVhdlAssertCount(ERROR) + GetVhdlAssertCount(FAILURE)=,
IsAssertFailed(sev) (GetVhdlAssertCount(sev) /!= 0)=, and IsAssertFailed (GetVhdlAssertCount /!= 0)=. Is that reading right?
Also, why the explicit rejection of NOTE level assertions? I understand the logic of the above of not including them into the math of the
argumentless calls, but according to that text I'm actively barred from requesting GetVhdlAssertCount(NOTE).
-- format_specification appears to introduce a spurious closing brace.
TBP #2: Consider these clarifying substitutions:
FROM: The string supports format specifiers in string replacements. A string replacement is a string starting with a left curly bracket,
followed by the format variable and closed by a right curly bracket. The format variable can be followed by an optional colon and format
specification string.
TO: The format string may contain string replacements extending from a singular left curly bracket to the next right curly bracket. These
brackets delimit the name of a format variable with an optionally following colon and format specification string.
FROM: The curly bracket characters can be escaped by doubling the same.
TO: Doubled left curly brackets do not introduce string replacements but translate to single left curly brackets in the derived formatted
output.
TBP #3: Curly brackets are regularly referred to as braces. The current LRM is inconsistent in its use of these names. If we could decide
on one name, we should probably make the LRM fully consistent with another LCS in this respect.
--