S
Steve J
Guest
Hi,
I'm currently getting a strange message from my testbench output that
says
"Error: Master Selection : Test case 5 failed. Master bit was '1' but
should have been '1'"
This is generated using the following:
assert ((DATA_BUS(master_bit)) = (this_case(0)));
report "Master Selection : Test case " & integer'image(I) & " failed.
Master bit was " & std_logic'image(DATA_BUS(master_bit)) & " but should
have been " & std_logic'image(this_case(0))
severity error;
Why is this?
master_bit is an integer, DATA_BUS is a 16 bit std_logic_vector input
to my procedure and this_case is a 4-bit std_logic_vector
What I don't understand is why the comparison after the assert is false
when printing the two bits out in the report they look the same.
All suggestions appreciated
Steve
I'm currently getting a strange message from my testbench output that
says
"Error: Master Selection : Test case 5 failed. Master bit was '1' but
should have been '1'"
This is generated using the following:
assert ((DATA_BUS(master_bit)) = (this_case(0)));
report "Master Selection : Test case " & integer'image(I) & " failed.
Master bit was " & std_logic'image(DATA_BUS(master_bit)) & " but should
have been " & std_logic'image(this_case(0))
severity error;
Why is this?
master_bit is an integer, DATA_BUS is a 16 bit std_logic_vector input
to my procedure and this_case is a 4-bit std_logic_vector
What I don't understand is why the comparison after the assert is false
when printing the two bits out in the report they look the same.
All suggestions appreciated
Steve