K
KM23
Guest
Hi,
I use the following package only in my vhdl file:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
In the code, i compare an std_logic_vector signal : A with a constant value, e.g
....if A<="00001011" then
yet the code was checked correctly by Xilinx ISE. My understanding is that STD_LOGIC_1164 package does not include an implementation of inequalities having as an operand std_logic_vector so why the above code statement was accepted and will the above comparison treat A as signed or unsigned number?
Cheers
I use the following package only in my vhdl file:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
In the code, i compare an std_logic_vector signal : A with a constant value, e.g
....if A<="00001011" then
yet the code was checked correctly by Xilinx ISE. My understanding is that STD_LOGIC_1164 package does not include an implementation of inequalities having as an operand std_logic_vector so why the above code statement was accepted and will the above comparison treat A as signed or unsigned number?
Cheers