|
1 | 1 | -- $Id: standard.vhd,v 1.1 2003/01/17 19:41:54 kumar Exp $
|
2 | 2 | package STANDARD is
|
3 | 3 |
|
4 |
| - -- predefined enumeration types: |
| 4 | + -- predefined enumeration types: |
5 | 5 |
|
6 |
| - type BOOLEAN is (FALSE, TRUE); |
| 6 | + type BOOLEAN is (FALSE, TRUE); |
7 | 7 |
|
8 |
| - type BIT is ('0', '1'); |
| 8 | + type BIT is ('0', '1'); |
9 | 9 |
|
10 |
| - type CHARACTER is ( |
11 |
| - NUL, SOH, STX, ETX, EOT, ENQ, ACK, BEL, |
12 |
| - BS, HT, LF, VT, FF, CR, SO, SI, |
13 |
| - DLE, DC1, DC2, DC3, DC4, NAK, SYN, ETB, |
14 |
| - CAN, EM, SUB, ESC, FSP, GSP, RSP, USP, |
| 10 | + type CHARACTER is ( |
| 11 | + NUL, SOH, STX, ETX, EOT, ENQ, ACK, BEL, |
| 12 | + BS, HT, LF, VT, FF, CR, SO, SI, |
| 13 | + DLE, DC1, DC2, DC3, DC4, NAK, SYN, ETB, |
| 14 | + CAN, EM, SUB, ESC, FSP, GSP, RSP, USP, |
15 | 15 |
|
16 |
| - ' ', '!', '"', '#', '$', '%', '&', ''', |
17 |
| - '(', ')', '*', '+', ',', '-', '.', '/', |
18 |
| - '0', '1', '2', '3', '4', '5', '6', '7', |
19 |
| - '8', '9', ':', ';', '<', '=', '>', '?', |
| 16 | + ' ', '!', '"', '#', '$', '%', '&', ''', |
| 17 | + '(', ')', '*', '+', ',', '-', '.', '/', |
| 18 | + '0', '1', '2', '3', '4', '5', '6', '7', |
| 19 | + '8', '9', ':', ';', '<', '=', '>', '?', |
20 | 20 |
|
21 |
| - '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', |
22 |
| - 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', |
23 |
| - 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', |
24 |
| - 'X', 'Y', 'Z', '[', '\', ']', '^', '_', |
| 21 | + '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', |
| 22 | + 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', |
| 23 | + 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', |
| 24 | + 'X', 'Y', 'Z', '[', '\', ']', '^', '_', |
25 | 25 |
|
26 |
| - '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', |
27 |
| - 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', |
28 |
| - 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', |
29 |
| - 'x', 'y', 'z', '{', '|', '}', '~', DEL, |
| 26 | + '`', 'a', 'b', 'c', 'd', 'e', 'f', 'g', |
| 27 | + 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', |
| 28 | + 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', |
| 29 | + 'x', 'y', 'z', '{', '|', '}', '~', DEL, |
30 | 30 |
|
31 |
| - C128, C129, C130, C131, C132, C133, C134, C135, |
32 |
| - C136, C137, C138, C139, C140, C141, C142, C143, |
33 |
| - C144, C145, C146, C147, C148, C149, C150, C151, |
34 |
| - C152, C153, C154, C155, C156, C157, C158, C159, |
| 31 | + C128, C129, C130, C131, C132, C133, C134, C135, |
| 32 | + C136, C137, C138, C139, C140, C141, C142, C143, |
| 33 | + C144, C145, C146, C147, C148, C149, C150, C151, |
| 34 | + C152, C153, C154, C155, C156, C157, C158, C159, |
35 | 35 |
|
36 |
| - ' ', '¡', '¢', '£', '¤', '¥', '¦', '§', |
37 |
| - '¨', '©', 'ª', '«', '¬', '', '®', '¯', |
38 |
| - '°', '±', '²', '³', '´', 'µ', '¶', '·', |
39 |
| - '¸', '¹', 'º', '»', '¼', '½', '¾', '¿', |
40 |
| - 'À', 'Á', 'Â', 'Ã', 'Ä', 'Å', 'Æ', 'Ç', |
41 |
| - 'È', 'É', 'Ê', 'Ë', 'Ì', 'Í', 'Î', 'Ï', |
42 |
| - 'Ð', 'Ñ', 'Ò', 'Ó', 'Ô', 'Õ', 'Ö', '×', |
43 |
| - 'Ø', 'Ù', 'Ú', 'Û', 'Ü', 'Ý', 'Þ', 'ß', |
44 |
| - 'à', 'á', 'â', 'ã', 'ä', 'å', 'æ', 'ç', |
45 |
| - 'è', 'é', 'ê', 'ë', 'ì', 'í', 'î', 'ï', |
46 |
| - 'ð', 'ñ', 'ò', 'ó', 'ô', 'õ', 'ö', '÷', |
47 |
| - 'ø', 'ù', 'ú', 'û', 'ü', 'ý', 'þ', 'ÿ' ); |
| 36 | + ' ', '¡', '¢', '£', '¤', '¥', '¦', '§', |
| 37 | + '¨', '©', 'ª', '«', '¬', '', '®', '¯', |
| 38 | + '°', '±', '²', '³', '´', 'µ', '¶', '·', |
| 39 | + '¸', '¹', 'º', '»', '¼', '½', '¾', '¿', |
| 40 | + 'À', 'Á', 'Â', 'Ã', 'Ä', 'Å', 'Æ', 'Ç', |
| 41 | + 'È', 'É', 'Ê', 'Ë', 'Ì', 'Í', 'Î', 'Ï', |
| 42 | + 'Ð', 'Ñ', 'Ò', 'Ó', 'Ô', 'Õ', 'Ö', '×', |
| 43 | + 'Ø', 'Ù', 'Ú', 'Û', 'Ü', 'Ý', 'Þ', 'ß', |
| 44 | + 'à', 'á', 'â', 'ã', 'ä', 'å', 'æ', 'ç', |
| 45 | + 'è', 'é', 'ê', 'ë', 'ì', 'í', 'î', 'ï', |
| 46 | + 'ð', 'ñ', 'ò', 'ó', 'ô', 'õ', 'ö', '÷', |
| 47 | + 'ø', 'ù', 'ú', 'û', 'ü', 'ý', 'þ', 'ÿ' ); |
48 | 48 |
|
49 |
| - type SEVERITY_LEVEL is (NOTE, WARNING, ERROR, FAILURE); |
| 49 | + type SEVERITY_LEVEL is (NOTE, WARNING, ERROR, FAILURE); |
50 | 50 |
|
51 |
| - type FILE_OPEN_KIND is (READ_MODE, WRITE_MODE, APPEND_MODE); |
| 51 | + type FILE_OPEN_KIND is (READ_MODE, WRITE_MODE, APPEND_MODE); |
52 | 52 |
|
53 |
| - type FILE_OPEN_STATUS is (OPEN_OK, STATUS_ERROR, NAME_ERROR, MODE_ERROR); |
| 53 | + type FILE_OPEN_STATUS is (OPEN_OK, STATUS_ERROR, NAME_ERROR, MODE_ERROR); |
54 | 54 |
|
55 |
| - -- predefined numeric types: |
| 55 | + -- predefined numeric types: |
56 | 56 |
|
57 |
| - type INTEGER is range -2147483647 to 2147483647; |
| 57 | + type INTEGER is range -2147483647 to 2147483647; |
58 | 58 |
|
59 |
| - type REAL is range -1.7014111e+308 to 1.7014111e+308; |
| 59 | + type REAL is range -1.7014111e+308 to 1.7014111e+308; |
60 | 60 |
|
61 |
| - -- predefined type TIME: |
| 61 | + -- predefined type TIME: |
62 | 62 |
|
63 |
| - type TIME is range -2147483647 to 2147483647 |
64 |
| - -- this declaration is for the convenience of the parser. Internally |
65 |
| - -- the parser treats it as if the range were: |
66 |
| - -- range -9223372036854775807 to 9223372036854775807 |
67 |
| - units |
68 |
| - fs; -- femtosecond |
69 |
| - ps = 1000 fs; -- picosecond |
70 |
| - ns = 1000 ps; -- nanosecond |
71 |
| - us = 1000 ns; -- microsecond |
72 |
| - ms = 1000 us; -- millisecond |
73 |
| - sec = 1000 ms; -- second |
74 |
| - min = 60 sec; -- minute |
75 |
| - hr = 60 min; -- hour |
76 |
| - end units; |
| 63 | + type TIME is range -2147483647 to 2147483647 |
| 64 | + -- this declaration is for the convenience of the parser. Internally |
| 65 | + -- the parser treats it as if the range were: |
| 66 | + -- range -9223372036854775807 to 9223372036854775807 |
| 67 | + units |
| 68 | + fs; -- femtosecond |
| 69 | + ps = 1000 fs; -- picosecond |
| 70 | + ns = 1000 ps; -- nanosecond |
| 71 | + us = 1000 ns; -- microsecond |
| 72 | + ms = 1000 us; -- millisecond |
| 73 | + sec = 1000 ms; -- second |
| 74 | + min = 60 sec; -- minute |
| 75 | + hr = 60 min; -- hour |
| 76 | + end units; |
77 | 77 |
|
78 |
| - subtype DELAY_LENGTH is TIME range 0 fs to TIME'HIGH; |
| 78 | + subtype DELAY_LENGTH is TIME range 0 fs to TIME'HIGH; |
79 | 79 |
|
80 |
| - -- function that returns the current simulation time: |
| 80 | + -- function that returns the current simulation time: |
81 | 81 |
|
82 |
| - function NOW return DELAY_LENGTH; |
| 82 | + function NOW return DELAY_LENGTH; |
83 | 83 |
|
84 |
| - -- predefined numeric subtypes: |
| 84 | + -- predefined numeric subtypes: |
85 | 85 |
|
86 |
| - subtype NATURAL is INTEGER range 0 to INTEGER'HIGH; |
| 86 | + subtype NATURAL is INTEGER range 0 to INTEGER'HIGH; |
87 | 87 |
|
88 |
| - subtype POSITIVE is INTEGER range 1 to INTEGER'HIGH; |
| 88 | + subtype POSITIVE is INTEGER range 1 to INTEGER'HIGH; |
89 | 89 |
|
90 |
| - -- predefined array types: |
| 90 | + -- predefined array types: |
91 | 91 |
|
92 |
| - type STRING is array (POSITIVE range <>) of CHARACTER; |
| 92 | + type STRING is array (POSITIVE range <>) of CHARACTER; |
93 | 93 |
|
94 |
| - type BIT_VECTOR is array (NATURAL range <>) of BIT; |
| 94 | + type BIT_VECTOR is array (NATURAL range <>) of BIT; |
95 | 95 |
|
96 | 96 | attribute FOREIGN: STRING;
|
97 | 97 | end STANDARD;
|
0 commit comments