To be added to the numeric_std proposals.
These are changes I have already made. Please comment.
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 package/function the error is coming 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".
-- David W. Bishop dbishop@vhdl.org All standard disclaimers apply.
ID: N-009
Proposed by: David Bishop 03/05/2003
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]
Received on Mon Oct 25 13:23:12 2004
This archive was generated by hypermail 2.1.8 : Mon Oct 25 2004 - 13:23:30 PDT