ricl
Newbie level 1
I have this assertion statement:
...
begin
assert (data_out = expect);
report "data mismatch"
severity error;
...
my understanding is, only when data_out not equal to expect, the message "data mismatch" will display
I checked that data_out and expect are same, but I always see this message printed.
If I change expect to a wrong value, it reports "assertion violation" and print out "data mismatch" message. With the right value, only "data mismatch" message, no "assertion violation" message.
Anybody has an idea?
Thanks
...
begin
assert (data_out = expect);
report "data mismatch"
severity error;
...
my understanding is, only when data_out not equal to expect, the message "data mismatch" will display
I checked that data_out and expect are same, but I always see this message printed.
If I change expect to a wrong value, it reports "assertion violation" and print out "data mismatch" message. With the right value, only "data mismatch" message, no "assertion violation" message.
Anybody has an idea?
Thanks