Project

General

Profile

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

    
27
package cell_attributes is
28

    
29
  type length is range 0 to integer'high
30
    units nm;
31
          um = 1000 nm;
32
          mm = 1000 um;
33
          mil = 25400 nm;
34
    end units length;
35

    
36
  type coordinate is record
37
                       x, y : length;
38
                     end record coordinate;
39

    
40
  attribute cell_position : coordinate;
41

    
42
end package cell_attributes;
43

    
44

    
45

    
46
entity CPU is
47
end entity CPU;
48

    
49

    
50
-- code from book
51

    
52
architecture cell_based of CPU is
53

    
54
  component fpu is
55
                  port ( -- . . . );
56
                    -- not in book
57
                    port_name : bit := '0' );
58
                -- end not in book
59
  end component;
60

    
61
  use work.cell_attributes.all;
62

    
63
  attribute cell_position of the_fpu : label is ( 540 um, 1200 um );
64

    
65
  -- . . .
66

    
67
begin
68

    
69
  the_fpu : component fpu
70
    port map ( -- . . . );
71
      -- not in book
72
      port_name => open );
73
  -- end not in book
74

    
75
  -- . . .
76

    
77
end architecture cell_based;
78

    
79
-- end code from book
(499-499/510)