ID: N-010
Proposed by: David Bishop 03/05/2004
Analyzed by:
Resolved:
Summary:
Minor changes to the numeric packages
Detail:
1) Added functions "add_sign" and "remove_sign" to convert between
SIGNED and UNSIGNED types. "add_sign" would add a '0' sign bit
and increase the vector by 1 bit. "remove_sign" would do an "abs"
and remove the sign bit, shrinking the vector by 1 bit.
2) Modify all of the "asserts" from the package to be of the format
assert XXX report "NUMERIC_STD.Function: error message".
So that you can tell what function/package the error is comming from.
3) Add aliases for the "to_StdLogicVector" function which are "to_slv"
and "to_std_logic_vector".
4) Add aliases for the "to_StdULogicVector" function which are "to_sulv",
and "to_std_ulogic_vector".
5) Add aliases for the "to_bitvector" function which are "to_bv" and
"to_bit_vector"
6) Modify the "end" for each function and procedure to read
"end function function_name" and "end procedure procedure_name".
Analysis:
[To be performed by the Working Group]
Resolution:
[To be determined by the Working Group]
Back to the numeric package proposals
Please send feedback to David Bishop
dbishop@vhdl.org