One of the ballot feedback was to put in the (new) package NUMERIC_STD_TEXTIO.
regards,
- bhasker
-----Original Message-----
From: David Bishop [mailto:dbishop@vhdl.org]
Sent: Friday, June 18, 2004 2:55 PM
To: vhdl-200x-ft@eda.org; vhdlsynth@vhdl.org
Subject: [vhdlsynth] Read and write packages in numeric_std package
Where do we put the "to_string", read and write functions
for the Numeric_std package?
This has not been a big problem in the past, basically what we did
was convert to 'std_logic_vector' and use "std_logic_textio". However,
this breaks down when we look at the floating point and fixed point
packages.
Thus I have the following suggestion:
In the numeric_std, fixed, and floating point package, these procedures
and functions will go directly into that package with meta comments
(see 1076.6) as follows:
-- synthesis translate_off
procedure WRITE (
L : inout line; -- input line
VALUE : in fp32; -- floating point input
JUSTIFIED : in SIDE := RIGHT;
FIELD : in WIDTH := 0);
procedure READ (
L : inout line; -- line
VALUE : out fp32);
procedure READ (
L : inout line; -- line
VALUE : out fp32;
GOOD : out boolean);
-- synthesis translate_on
For the next release, we can move all of the function from std_logic_textio
back into std_logic_1164 with these meta commends around them. That will
drop one package from what we have to support.
We can put the "to_string", "to_hstring", etc directly into std_logic_1164
with these meta comments.
Discussion? I am copying this to "vhdlsynth@vhdl.org" as it is not yet
merged with vhdl-200x-ft@eda.org.
-- David W. Bishop dbishop@vhdl.org All standard disclaimers apply.Received on Fri Jun 18 13:35:11 2004
This archive was generated by hypermail 2.1.8 : Fri Jun 18 2004 - 13:35:18 PDT