I have a Signal myVec : std_logic_vector(8 down 0)
. Modelsim shows this value: 0X000010
. So bit(6)
is Undefined. Does this affect other bits for example to bit(1)
?
I change the state with the following:
if myVec(1) = '0' then
--change the state to x
else
--change state to y
end if;
The problem is that the state always switches to y
and I don't know why.
Could it be that bit(6)
of myVec
has an affect to bit(1)
or the other bits?