Types conversions in VHDL
FUNCTIONS / Castings
Bit_vectorIntegerStd_logic_vectorUnsignedSigned
Bit_vector
-
***
TO_STDLOGICVECTOR
**
**
Integer
***
-
**
TO_UNSIGNED*TO_SIGNED*
Std_logic_vectorTO_BITVECTOR
**
-
unsignedsigned
Unsigned
**
TO_INTEGERstd_logic_vector
-
signed
Signed
**
TO_INTEGERstd_logic_vectorunsigned
-
* Requires length
** Requires two conversions
*** Requires three conversions
Get sentence:

From: To:


Requires to include lines:

library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.NUMERIC_STD.ALL;