Project

General

Profile

Download (2.24 KB) Statistics
| Branch: | Tag: | Revision:
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: tc1813.vhd,v 1.2 2001-10-26 16:29:43 paw Exp $
27
-- $Revision: 1.2 $
28
--
29
-- ---------------------------------------------------------------------
30

    
31
ENTITY c07s01b00x00p08n01i01813ent IS
32
END c07s01b00x00p08n01i01813ent;
33

    
34
ARCHITECTURE c07s01b00x00p08n01i01813arch OF c07s01b00x00p08n01i01813ent IS
35
  type A1  is array (1 to 5) of integer;
36
  type Acc is access A1;
37
BEGIN
38
  TESTING: PROCESS
39
    variable V1 : Acc := new A1'(1,2,3,4,5);
40
    variable V2 : integer;
41
    variable V3 : integer;
42
    variable V4 : integer;
43
    variable V5 : integer;
44
    variable V6 : integer;
45
  BEGIN
46
    V2 := V1(1); -- No_failure_here
47
    V3 := V1(2); -- No_failure_here
48
    V4 := V1(3); -- No_failure_here
49
    V5 := V1(4); -- No_failure_here
50
    V6 := V1(5); -- No_failure_here
51
    assert NOT(V2=1 and V3=2 and V4=3 and V5=4 and V6=5)
52
      report "***PASSED TEST: c07s01b00x00p08n01i01813"
53
      severity NOTE;
54
    assert (V2=1 and V3=2 and V4=3 and V5=4 and V6=5)
55
      report "***FAILED TEST: c07s01b00x00p08n01i01813 - The primary must be a name, a literal, an aggregate, a function call, a qualified expression, a type conversion, an allocator, or an expression enclosed within parentheses."  
56
      severity ERROR;
57
    wait;
58
  END PROCESS TESTING;
59

    
60
END c07s01b00x00p08n01i01813arch;
(358-358/2088)