FUNCTIONTO_UREAL(uvec:STD_LOGIC_VECTOR)RETURNREAL;-- convert unsigned slv of any length to REAL
FUNCTIONTO_SREAL(svec:STD_LOGIC_VECTOR)RETURNREAL;-- convert signed slv of any length to REAL
FUNCTIONTO_SREAL(svec:STD_LOGIC_VECTOR;resolution_w:INTEGER)RETURNREAL;-- convert signed fixed point slv of any length, and with fixed point resolution of 2**resolution_w, to REAL
FUNCTIONTO_UREAL(uvec:STD_LOGIC_VECTOR;resolution_w:INTEGER)RETURNREAL;-- convert unsigned fixed point slv of any length, and with resolution of 2**resolution_w, to REAL
FUNCTIONTO_SREAL(svec:STD_LOGIC_VECTOR;resolution_w:INTEGER)RETURNREAL;-- convert signed fixed point slv of any length, and with resolution of 2**resolution_w, to REAL
-- The RESIZE for SIGNED in IEEE.NUMERIC_STD extends the sign bit or it keeps the sign bit and LS part. This
-- behaviour of preserving the sign bit is less suitable for DSP and not necessary in general. A more
...
...
@@ -1779,17 +1780,28 @@ PACKAGE BODY common_pkg IS