微處理器 - Altera MAX10 10M02SCM (小脚丫STEP-MAX10) - 型態轉換



參考資訊:
https://www.nandland.com/vhdl/tips/tip-convert-numeric-std-logic-vector-to-integer.html#Numeric-Integer-To-Signed

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);