FUNCTIONto_bool(n:INSTD_LOGIC)RETURNBOOLEAN;-- if '1' or 'H' then return TRUE else FALSE
FUNCTIONto_bool(n:INSTD_LOGIC)RETURNBOOLEAN;-- if '1' or 'H' then return TRUE else FALSE
FUNCTIONto_bool(n:ININTEGER)RETURNBOOLEAN;-- if 0 then return FALSE else TRUE
FUNCTIONto_bool(n:ININTEGER)RETURNBOOLEAN;-- if 0 then return FALSE else TRUE
FUNCTIONnot_int(n:ININTEGER)RETURNINTEGER;-- if 0 then return 1 else 0
FUNCTIONto_natural_arr(n:t_integer_arr;to_zero:BOOLEAN)RETURNt_natural_arr;-- if to_zero=TRUE then negative numbers are forced to zero, otherwise they will give a compile range error
FUNCTIONto_natural_arr(n:t_integer_arr;to_zero:BOOLEAN)RETURNt_natural_arr;-- if to_zero=TRUE then negative numbers are forced to zero, otherwise they will give a compile range error