A
Aji
Guest
Hi,
I would like to do something like :
if a < b then c <= '1'; else c <= '0'; end fi;
where a and b are SIGNED vectors and c is std_logic.
I get the warning "Illegal concurrent statement" because it is not embedded
inside a process block.
I don't really need the if then else structure to implement what I want.
Basically, I just want the bit corresponding to the sign of a-b to be
connected to c. How can I do this without the if then else statement so that
I don't get the "Illegal concurrent statement" warning.
Thanks.
PS : I am a beginner.
I would like to do something like :
if a < b then c <= '1'; else c <= '0'; end fi;
where a and b are SIGNED vectors and c is std_logic.
I get the warning "Illegal concurrent statement" because it is not embedded
inside a process block.
I don't really need the if then else structure to implement what I want.
Basically, I just want the bit corresponding to the sign of a-b to be
connected to c. How can I do this without the if then else statement so that
I don't get the "Illegal concurrent statement" warning.
Thanks.
PS : I am a beginner.