VHDL数据类型转换

来源:互联网 发布:元数据 数据字典 区别 编辑:程序博客网 时间:2024/04/29 23:34

使用的库是ieee.std_logic_unsigned.all

 

一、conv_integer()

std_logic_vector转integer

 

二、conv_std_logic_vector()

integer,unsigned,signed转std_logic

 

三、to_bit()

std_logic转bit

 

四、to_bit_vector()

std_logic_vector转bit_vector

 

五、to_std_logic()

bit转std_logic

 

六、to_std_loigc_vector()

bit_vector转std_logic_vector

原创粉丝点击