Project

General

Profile

Download (3.37 KB) Statistics
| Branch: | Tag: | Revision:
1

    
2
-- Copyright (C) 1996 Morgan Kaufmann Publishers, Inc
3

    
4
-- This file is part of VESTs (Vhdl tESTs).
5

    
6
-- VESTs is free software; you can redistribute it and/or modify it
7
-- under the terms of the GNU General Public License as published by the
8
-- Free Software Foundation; either version 2 of the License, or (at
9
-- your option) any later version. 
10

    
11
-- VESTs is distributed in the hope that it will be useful, but WITHOUT
12
-- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
-- FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14
-- for more details. 
15

    
16
-- You should have received a copy of the GNU General Public License
17
-- along with VESTs; if not, write to the Free Software Foundation,
18
-- Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
19

    
20
-- ---------------------------------------------------------------------
21
--
22
-- $Id: ch_18_fg_18_08.vhd,v 1.2 2001-10-26 16:29:36 paw Exp $
23
-- $Revision: 1.2 $
24
--
25
-- ---------------------------------------------------------------------
26

    
27
package textio is
28

    
29
  type line is access string;
30

    
31
  type text is file of string;
32

    
33
  type side is (right, left);
34

    
35
  subtype width is natural;
36

    
37
  file input : text open read_mode is "std_input";
38
  file output : text open write_mode is "std_output";
39

    
40
  procedure readline(file f: text; l: out line);
41

    
42
  procedure read ( L : inout line;  value: out bit;  good : out boolean );
43
  procedure read ( L : inout line;  value: out bit );
44

    
45
  procedure read ( L : inout line;  value: out bit_vector;  good : out boolean );
46
  procedure read ( L : inout line;  value: out bit_vector );
47

    
48
  procedure read ( L : inout line;  value: out boolean;  good : out boolean );
49
  procedure read ( L : inout line;  value: out boolean );
50

    
51
  procedure read ( L : inout line;  value: out character;  good : out boolean );
52
  procedure read ( L : inout line;  value: out character );
53

    
54
  procedure read ( L : inout line;  value: out integer;  good : out boolean );
55
  procedure read ( L : inout line;  value: out integer );
56

    
57
  procedure read ( L : inout line;  value: out real;  good : out boolean );
58
  procedure read ( L : inout line;  value: out real );
59

    
60
  procedure read ( L : inout line;  value: out string;  good : out boolean );
61
  procedure read ( L : inout line;  value: out string );
62

    
63
  procedure read ( L : inout line;  value: out time;  good : out boolean );
64
  procedure read ( L : inout line;  value: out time );
65

    
66
  procedure writeline ( file f : text;  L : inout line );
67

    
68
  procedure write ( L : inout line;  value : in bit;
69
  justified: in side := right;  field: in width := 0 );
70

    
71
  procedure write ( L : inout line;  value : in bit_vector;
72
  justified: in side := right;  field: in width := 0 );
73

    
74
  procedure write ( L : inout line;  value : in boolean;
75
  justified: in side := right;  field: in width := 0 );
76

    
77
  procedure write ( L : inout line;  value : in character;
78
  justified: in side := right;  field: in width := 0 );
79

    
80
  procedure write ( L : inout line;  value : in integer;
81
  justified: in side := right;  field: in width := 0 );
82

    
83
  procedure write ( L : inout line;  value : in real;
84
  justified: in side := right;  field: in width := 0;
85
  digits: in natural := 0 );
86

    
87
  procedure write ( L : inout line;  value : in string;
88
  justified: in side := right;  field: in width := 0 );
89

    
90
  procedure write ( L : inout line;  value : in time;
91
  justified: in side := right;  field: in width := 0;
92
  unit: in time := ns );
93

    
94
end package textio;
(415-415/510)