Let's say I am testing a 16bit number, but only interested in the lower 8 bits.
How do I ignore the higher 8 bits.'
Is there a don't care(--) operation.
ASSERT my_data = X"--00" REPORT "ERR" SEVERITY ERROR;
This didn't work. Any other work around.
You have to remember that '-' (dont care) is an explicit state with std_logic, so unless that bit actually is '-', it will fail.
Like shan said, look at the lower 8 bits only ( using round braces, not square ).
Let's say I am testing a 16bit number, but only interested in the lower 8 bits.
How do I ignore the higher 8 bits.'
Is there a don't care(--) operation.
ASSERT my_data = X"--00" REPORT "ERR" SEVERITY ERROR;
This didn't work. Any other work around.