conv_std_logic_vector

T

trescot@gmail.com

Guest
Hello

I am new to VHDL.

I have something like

CONV_STD_LOGIC_VECTOR(16#6800#,16);

what does it mean?


Thanks
Trescot
 
trescot@gmail.com schrieb:

CONV_STD_LOGIC_VECTOR(16#6800#,16);
16#6800# is an integer to the base 16 (hexadecimal) and would be written
in C as 0x6800.

conv_std_logic_vector is a conversion function from a
non-standard-package and is NOT recommended to use! It converts an
integer to a std_logic_vector.
The function has two arguments: the integer value to be converted and an
integer number of bits. You can assign the result to a signal / variable
of type e.g. std_logic_vector(15 downto 0).

Ralf
 

Welcome to EDABoard.com

Sponsor

Back
Top