Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / vhdl_json / vhdl_files / 2-exportOK / ghdl / ghdl / testsuite / vests / vhdl-93 / billowitch / compliant / tc114.vhd @ 3fd18385

History | View | Annotate | Download (3.44 KB)

1

    
2
-- Copyright (C) 2001 Bill Billowitch.
3

    
4
-- Some of the work to develop this test suite was done with Air Force
5
-- support.  The Air Force and Bill Billowitch assume no
6
-- responsibilities for this software.
7

    
8
-- This file is part of VESTs (Vhdl tESTs).
9

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

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

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

    
24
-- ---------------------------------------------------------------------
25
--
26
-- $Id: tc114.vhd,v 1.2 2001-10-26 16:29:39 paw Exp $
27
-- $Revision: 1.2 $
28
--
29
-- ---------------------------------------------------------------------
30

    
31
Package c04s03b02x00p29n10i00114pkg is
32
  type Apollo_string is array (INTEGER range 1 to 8) of CHARACTER;
33
  type V_REGISTER    is array (INTEGER range 0 to 7) of BIT;
34
end c04s03b02x00p29n10i00114pkg;
35

    
36
use work.c04s03b02x00p29n10i00114pkg.all;
37
ENTITY c04s03b02x00p29n10i00114ent IS
38
  port (
39
    p23 : inout Boolean        := FALSE;
40
    p24 : inout Bit            := '0'  ;
41
    p25 : inout Character      := NUL  ;
42
    p26 : inout SEVERITY_LEVEL := NOTE ;
43
    p27 : inout Integer        := -1   ;
44
    p28 : inout Real           := -1.0 ;
45
    p29 : inout TIME           := 1 fs ;
46
    p30 : inout Natural        := 0    ;
47
    p31 : inout Positive       := 1    ;
48
    p32 : inout Apollo_string  := "abcdefgh";
49
    p33 : inout V_register     := B"10010110"
50
    );
51
END c04s03b02x00p29n10i00114ent;
52

    
53
ARCHITECTURE c04s03b02x00p29n10i00114arch OF c04s03b02x00p29n10i00114ent IS
54

    
55
BEGIN
56
  TESTING: PROCESS
57
  BEGIN
58
    p23   <= not p23;
59
    p24   <= not p24;
60
    p25   <= character'succ(p25);
61
    p26   <= severity_level'succ(p26);
62
    p27   <= p27 + p27;
63
    p28   <= p28 + p28;
64
    p29   <= p29 + p29;
65
    p30   <= p30 + p30;
66
    p31   <= p31 + p31;
67
    p32(2)   <= character'succ(p32(2));
68
    p33(1)   <= not p33(1);
69
    
70
    wait on p23,p24,p25,p26,p27,p28,p29,p30,p31,p32,p33;
71

    
72
    assert NOT(    p23 = TRUE   and
73
                   p24 = '1'     and 
74
                   p25 = SOH     and 
75
                   p26 = WARNING    and 
76
                   p27 = -2      and 
77
                   p28 = -2.0    and 
78
                   p29 = 2 fs    and 
79
                   p30 = 0       and 
80
                   p31 = 2       and 
81
                   p32 = "accdefgh"and
82
                   p33 = B"11010110"   )
83
      report "***PASSED TEST: c04s03b02x00p29n10i00114"
84
      severity NOTE;
85
    assert (    p23 = TRUE   and
86
                p24 = '1'     and 
87
                p25 = SOH     and 
88
                p26 = WARNING    and 
89
                p27 = -2      and 
90
                p28 = -2.0    and 
91
                p29 = 2 fs    and 
92
                p30 = 0       and 
93
                p31 = 2       and 
94
                p32 = "accdefgh"and
95
                p33 = B"11010110"   )
96
      report "***FAILED TEST: c04s03b02x00p29n10i00114 - Interface object update test failed."
97
      severity ERROR;
98
    wait;
99
  END PROCESS TESTING;
100

    
101
END c04s03b02x00p29n10i00114arch;