Quote constant is a good idea.
Conversions to/from signed/unsigned: No problems.
-Steve Bailey
> -----Original Message-----
> From: owner-vhdl-200x-ft@eda.org
> [mailto:owner-vhdl-200x-ft@eda.org] On Behalf Of David Bishop
> Sent: Thursday, August 19, 2004 8:28 AM
> To: vhdl-200x-ft@eda.org
> Subject: [vhdl-200x-ft] Some consistency proposals
>
> In the midst of writing the code for the new packages, there
> are a few things I would like to add. Yes, I know, we are in
> the middle of things here, but for consistency's sake, I
> would like to put these before the group.
>
> 1) A constant called "quote" in standard.std. This can be
> used like the NL constant, so that you can include a quote
> character in an assert. Example:
> assert (false)
> report "to_integer (" & quote & to_string (svar) & quote &
> ") overflow"
> severity error.
>
> 2) In numeric_std, my FAQ is "how do I convert an UNSIGNED
> number into a SIGNED number"? Why don't we create two
> functions, "to_signed" which takes an unsigned number, adds a
> sign bit to it, and returns, and "to_unsigned" which does an
> "abs" is the number is negative, and drops the sign bit.
>
Received on Thu Aug 19 09:17:24 2004
This archive was generated by hypermail 2.1.8 : Thu Aug 19 2004 - 09:17:27 PDT