Project

General

Profile

Download (2.03 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_20_ch_20_02.vhd,v 1.2 2001-10-26 16:29:36 paw Exp $
23
-- $Revision: 1.2 $
24
--
25
-- ---------------------------------------------------------------------
26

    
27
library project;
28

    
29
entity ch_20_02 is
30
end entity ch_20_02;
31

    
32

    
33
architecture test of ch_20_02 is
34
begin
35

    
36
  process is
37

    
38
            use project.mem_pkg;
39
            use project.mem_pkg.all;
40
            --use work.mem_pkg;
41
          --use work.mem_pkg.all;
42
          variable words : word_array(0 to 3);
43

    
44
  begin
45
    assert
46
      -- code from book (in text)
47
      mem_pkg'path_name = ":project:mem_pkg:"
48
      -- end code from book
49
      ;
50
    report mem_pkg'path_name;
51

    
52
    assert
53
      -- code from book (in text)
54
      word'path_name = ":project:mem_pkg:word"
55
      -- end code from book
56
      ;
57
    report word'path_name;
58

    
59
    assert
60
      -- code from book (in text)
61
      word_array'path_name = ":project:mem_pkg:word_array"
62
      -- end code from book
63
      ;
64

    
65
    report word_array'path_name;
66

    
67
    assert
68
      -- code from book (in text)
69
      load_array'path_name = ":project:mem_pkg:load_array"
70
      -- end code from book
71
      ;
72
    report load_array'path_name;
73

    
74
    load_array(words, "/dev/null");
75
    wait;
76
  end process;
77

    
78
end architecture test;
(495-495/534)