Subject: Re: Numeric_Std_TextIO Was Ben Cohen's thread on Numeric_Unsigned/Signed/Extra
From: Jim Lewis (jim@synthworks.com)
Date: Thu Feb 21 2002 - 11:14:34 PST
I believe this stuff is already proposed for std_logic_1164. If
it is not,
I would like it to be considered for that also.
Cheers,
Jim Lewis
-----Original Message-----I would like to contribute and participate in the defintion of next versions of Numeric packages. Below are some suggestions that I would lke to recommend:
From: VhdlCohen@aol.com [mailto:VhdlCohen@aol.com]
Sent: Wednesday, January 23, 2002 2:14 PM
To: Jayaram Bhasker; mench@mench.com; peter@ashenden.com.au
Cc: siwg@eda.org
Subject: Numeric_Unsigned/Signed/Extra suggestions for next packages
Numeric_Std:
-- add the following
-- a la package STD_LOGIC_TEXTIO style,
procedure READ(L:inout LINE; VALUE:out SIGNED);
procedure READ(L:inout LINE; VALUE:out SIGNED; GOOD: out BOOLEAN);
procedure WRITE(L:inout LINE; VALUE:in SIGNED;
JUSTIFIED:in SIDE := RIGHT; FIELD:in WIDTH := 0);
procedure READ(L:inout LINE; VALUE:out UNSIGNED);
procedure READ(L:inout LINE; VALUE:out UNSIGNED; GOOD: out BOOLEAN);
procedure WRITE(L:inout LINE; VALUE:in UNSIGNED;
JUSTIFIED:in SIDE := RIGHT; FIELD:in WIDTH := 0);
-- hex
procedure HREAD(L:inout LINE; VALUE:out SIGNED);
procedure HREAD(L:inout LINE; VALUE:out SIGNED; GOOD: out BOOLEAN);
procedure HWRITE(L:inout LINE; VALUE:in SIGNED;
JUSTIFIED:in SIDE := RIGHT; FIELD:in WIDTH := 0);procedure HREAD(L:inout LINE; VALUE:out UNSIGNED);
procedure HREAD(L:inout LINE; VALUE:out UNSIGNED; GOOD: out BOOLEAN);
procedure HWRITE(L:inout LINE; VALUE:in UNSIGNED;
JUSTIFIED:in SIDE := RIGHT; FIELD:in WIDTH := 0);-- Octal
procedure OREAD(L:inout LINE; VALUE:out SIGNED);
procedure OREAD(L:inout LINE; VALUE:out SIGNED; GOOD: out BOOLEAN);
procedure OWRITE(L:inout LINE; VALUE:in SIGNED;
JUSTIFIED:in SIDE := RIGHT; FIELD:in WIDTH := 0);procedure OREAD(L:inout LINE; VALUE:out UNSIGNED);
procedure OREAD(L:inout LINE; VALUE:out UNSIGNED; GOOD: out BOOLEAN);
procedure OWRITE(L:inout LINE; VALUE:in UNSIGNED;
JUSTIFIED:in SIDE := RIGHT; FIELD:in WIDTH := 0);-- Since the image attribute does not support vector types, add the following
-- bit string
function Image(In_Image : Signed) return String;
function Image(In_Image : UnSigned) return String;-- hex
function HexImage(In_Image : Signed) return String;
function HexImage(In_Image : UnSigned) return String;-- decimal
function DecImage(In_Image : Signed) return String;
function DecImage(In_Image : UnSigned) return String;-- octal
function OctImage(In_Image : Signed) return String;
function OctImage(In_Image : UnSigned) return String;Ben
---------------------------------------------------------------------------
Ben Cohen Publisher, Trainer, Consultant (310) 721-4830
http://www.vhdlcohen.com/ vhdlcohen@aol.com
Author of following textbooks:
* Real Chip Design and Verification Using Verilog and VHDL, 2002 isbn 0-9705394-2-8
* Component Design by Example ", 2001 isbn 0-9705394-0-1
* VHDL Coding Styles and Methodologies, 2nd Edition, 1999 isbn 0-7923-8474-1
* VHDL Answers to Frequently Asked Questions, 2nd Edition, isbn 0-7923-8115
------------------------------------------------------------------------------
This archive was generated by hypermail 2b28 : Thu Feb 21 2002 - 11:25:09 PST