(FPGA) 10M02SCM (小脚丫STEP-MAX10)

型態轉換


參考資訊:
1. tip-convert-numeric-std-logic-vector-to-integer

表格如下:

ConversionMethod
Integer to Signedto_signed(src, dst'length);
Integer to Std_Logic_Vectorstd_logic_vector(to_unsigned(src, dst'length));
Integer to Unsignedto_unsigned(src, dst'length);
Std_Logic_Vector to Integerto_integer(unsigned(src));
Std_Logic_Vector to Signedsigned(src);
Std_Logic_Vector to Unsignedunsigned(src);
Signed to Integerto_integer(src);
Signed to Std_Logic_Vectorstd_logic_vector(src);
Signed to Unsignedunsigned(src);
Unsigned to Integerto_integer(src);
Unsigned to Signedsigned(src);
Unsigned to Std_Logic_Vectorstd_logic_vector(src);


返回上一頁