Move std.textio.TEXT, OUTPUT, and INPUT

Proposal Information

  • Who Updates: JimLewis, Needs Champion
  • Date Proposed: 2014-03-23
  • Date Last Updated: 2014-03-23
  • Priority:
  • Complexity:
  • Focus: General Language

Related Issues: None

Competing Issues: None

Summary

See Bugzilla 257 In the VHDL LRM, IEEE-1076-2008, under 5.5.2 File operations there is a write procedure defined as follows:

procedure WRITE (file F: FT; VALUE: in TM);

When I try to call this as follows:

write(std.textio.OUTPUT, integer'image(i) & LF ) ;

I get an error:

# ** Error: for_subtype.vhd(17): Unknown identifier "write".

It appears that although there is a reference to std.textio.output, that the type text is not also visible. When I add the following use clause to make text visible, then the problem goes away.

use std.textio.text ;

It would be nice to be able to use write without having to use package textio, however, this means that we need file type declarations for file of string and we need a file open for OUTPUT.

We could add new definitions in package std.standard, however, if we could move the definitions for TEXT, OUTPUT, and INPUT from std.textio to std.standard and replace the definitions in std.textio with aliases (like what we did with ieee.std_logic_textio), we could avoid having two things that mean the same thing.

Use cases

Language impact

Non-supporters

Add your signature here to indicate non-support for this proposal.

Supporters

Add your signature here to indicate support for this proposal.

Topic revision: r3 - 2020-02-17 - 15:34:56 - JimLewis
 
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback