Re: [vhdl-200x] Fwd: VHDL 2008 : std_logic_textio package

From: chuck and teril swart <chuckterilswart@gmail.com>
Date: Sat Sep 14 2013 - 13:16:45 PDT
I'm a little rusty at this, but I think that this is a bigger problem than
just this one package. For example,
package std_logic_textio starts with:
use STD.TEXTIO.all;
use IEEE.std_logic_1164.all;

In my opinion, the best solution, and the one most compatible with existing
implementations is to
change the default library declarations in 13.2 to read something like:

"Every design unit except a context declaration and package STANDARD is
assumed to contain the following implicit context items as part of its
context clause:

library STD, WORK, IEEE; use STD.STANDARD.all;"

Are there problems with this solution? Maybe. First, will package
std_logic_1164 compile? Its the first package in library IEEE and maybe
library IEEE doesn't exist until after this package compiles. I don't think
that this is a real problem.

Another, probably impractical issue is that with this new default library
clause, you couldn't compile a package named
IEEE. I don't think that's a big concern.

I hope that I'm not off base on this.

Chuck Swart





On Fri, Sep 13, 2013 at 10:36 AM, Jim Lewis <Jim@synthworks.com> wrote:

> Hi All,
> The context clause of the package std_logic_textio is:
> use STD.TEXTIO.all;
> use IEEE.std_logic_1164.all;
>
> Anyone have a reference to the LRM that allows this?
> I looked through the LRM to see if there were any exceptions
> where a working library could be referred to by its logical
> name rather than the name work and still be correct.  I did not
> find any, so I believe this to be an error also.
>
> Either of the following should fix this:
> use STD.TEXTIO.all;
> use work.std_logic_1164.all;
>
> or:
> use STD.TEXTIO.all;
> Library IEEE ;
> use IEEE.std_logic_1164.all;
>
> Jim
>
>
> -------- Original Message --------
> Subject:        VHDL 2008 : std_logic_textio package
> Date:   Fri, 13 Sep 2013 11:45:01 +0200
> From:   Hendrik Eeckhaut <hendrik.eeckhaut@sigasi.com>
> To:     Jim Lewis <jim@synthworks.com>
>
>
>
> Hi Jim,
>
> I just noticed there is a library clause (library IEEE;) missing in the
> VHDL2008 std_logic_textio package (http://standards.ieee.org/**
> downloads/1076/1076-2008/<http://standards.ieee.org/downloads/1076/1076-2008/>
> ).
> Is it OK to report this to you?
>
> There are also lots of unused declarations. What is the best way to report
> those? A patch?
>
> Kind regards,
> Hendrik
>
>
> --
>
> Hendrik Eeckhaut, PhD
> http://www.sigasi.com
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Sat Sep 14 13:17:17 2013

This archive was generated by hypermail 2.1.8 : Sat Sep 14 2013 - 13:18:05 PDT