
13.16 | Chapter 13
sts <= (a < b_count); -- assigns the value “TRUE” to sts
sts <= ((a >= b_count) or (a> c)); -- results in “TRUE”
sts <= (STD_LOGIC (‘1’, ‘0’, ‘1’) < STD_LOGIC(‘0’, ‘1’,’1’)); --makes sts “FALSE”
TABLE 13.7 | Relational operators
Operator Operand Types Result Type Example Meaning
= Any type Boolean a = b a is equal to b
/= Any type Boolean a / = b a is not equal to b
< Scalar or discrete array types Boolean a < b a is less than b
<= Scalar or discrete array types Boolean a < = b a is less than or equal to b
> Scalar or discrete array types Boolean a > b a is greater than b
>= Scalar or discrete array types Boolean a > = b a