entity test is end entity;
architecture test of test is
begin
process is
begin
report "Hello Dolly!" severity warning;
wait;
end process;
end architecture;
Most simulation result analysis scripts count the number of warnings, errors or failures simply by counting occurrences of warning, error, and failure words. nvc prints the level twice, so the analysis scripts count roughly two times more warnings etc., than there are. Alternative approach is to count lines with words, not words. However, some testbenches might report multiple warnings or errors in one line.
There are no formal rules requiring that single warning/error/failure emits single warning/error/failure word in the output. However, this is very handy and common practice, as it eases writing parsing scripts.
As a side note, xsim does not add the "report/Report" word to meet 10.4 from LRM.
Example:
nvc output:
GHDL output:
xsim output:
Most simulation result analysis scripts count the number of warnings, errors or failures simply by counting occurrences of
warning
,error
, andfailure
words. nvc prints the level twice, so the analysis scripts count roughly two times more warnings etc., than there are. Alternative approach is to count lines with words, not words. However, some testbenches might report multiple warnings or errors in one line.There are no formal rules requiring that single warning/error/failure emits single warning/error/failure word in the output. However, this is very handy and common practice, as it eases writing parsing scripts.
As a side note,
xsim
does not add the "report/Report" word to meet 10.4 from LRM.