summaryrefslogtreecommitdiff
path: root/testsuite/vests/vhdl-93/billowitch/compliant/tc217.vhd
blob: dac01fabead8d3957ad14e66cdc0569d7e0961d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328

-- Copyright (C) 2001 Bill Billowitch.

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

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

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

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

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

-- ---------------------------------------------------------------------
--
-- $Id: tc217.vhd,v 1.2 2005-03-21 17:33:22 dmartin Exp $
-- $Revision: 1.2 $
--
-- ---------------------------------------------------------------------

ENTITY c03s01b01x00p06n02i00217ent IS
END c03s01b01x00p06n02i00217ent;

ARCHITECTURE c03s01b01x00p06n02i00217arch OF c03s01b01x00p06n02i00217ent IS

BEGIN
   TESTING: PROCESS
   BEGIN
   assert NOT ((character'pos(NUL) =   0) and
                    (character'pos(SOH) =   1) and
                    (character'pos(STX) =   2) and
                    (character'pos(ETX) =   3) and
                    (character'pos(EOT) =   4) and
                    (character'pos(ENQ) =   5) and
                    (character'pos(ACK) =   6) and
                    (character'pos(BEL) =   7) and
                    (character'pos(BS ) =   8) and
                    (character'pos(HT ) =   9) and
                    (character'pos(LF ) =  10) and
                    (character'pos(VT ) =  11) and
                    (character'pos(FF ) =  12) and
                    (character'pos(CR ) =  13) and
                    (character'pos(SO ) =  14) and
                    (character'pos(SI ) =  15) and
                    (character'pos(DLE) =  16) and
                    (character'pos(DC1) =  17) and
                    (character'pos(DC2) =  18) and
                    (character'pos(DC3) =  19) and
                    (character'pos(DC4) =  20) and
                    (character'pos(NAK) =  21) and
                    (character'pos(SYN) =  22) and
                    (character'pos(ETB) =  23) and
                    (character'pos(CAN) =  24) and
                    (character'pos(EM ) =  25) and
                    (character'pos(SUB) =  26) and
                    (character'pos(ESC) =  27) and
                    (character'pos(FSP) =  28) and
                    (character'pos(GSP) =  29) and
                    (character'pos(RSP) =  30) and
                    (character'pos(USP) =  31) and
                    (character'pos(' ') =  32) and
                    (character'pos('!') =  33) and
                    (character'pos('"') =  34) and
                    (character'pos('#') =  35) and
                    (character'pos('$') =  36) and
                    (character'pos('%') =  37) and
                    (character'pos('&') =  38) and
                    (character'pos(''') =  39) and
                    (character'pos('(') =  40) and
                    (character'pos(')') =  41) and
                    (character'pos('*') =  42) and
                    (character'pos('+') =  43) and
                    (character'pos(',') =  44) and
                    (character'pos('-') =  45) and
                    (character'pos('.') =  46) and
                    (character'pos('/') =  47) and
                    (character'pos('0') =  48) and
                    (character'pos('1') =  49) and
                    (character'pos('2') =  50) and
                    (character'pos('3') =  51) and
                    (character'pos('4') =  52) and
                    (character'pos('5') =  53) and
                    (character'pos('6') =  54) and
                    (character'pos('7') =  55) and
                    (character'pos('8') =  56) and
                    (character'pos('9') =  57) and
                    (character'pos(':') =  58) and
                    (character'pos(';') =  59) and
                    (character'pos('<') =  60) and
                    (character'pos('=') =  61) and
                    (character'pos('>') =  62) and
                    (character'pos('?') =  63) and
          (character'pos('@') =  64) and
                    (character'pos('A') =  65) and
                    (character'pos('B') =  66) and
                    (character'pos('C') =  67) and
                    (character'pos('D') =  68) and
                    (character'pos('E') =  69) and
                    (character'pos('F') =  70) and
                    (character'pos('G') =  71) and
                    (character'pos('H') =  72) and
                    (character'pos('I') =  73) and
                    (character'pos('J') =  74) and
                    (character'pos('K') =  75) and
                    (character'pos('L') =  76) and
                    (character'pos('M') =  77) and
                    (character'pos('N') =  78) and
                    (character'pos('O') =  79) and
                    (character'pos('P') =  80) and
                    (character'pos('Q') =  81) and
                    (character'pos('R') =  82) and
                    (character'pos('S') =  83) and
                    (character'pos('T') =  84) and
                    (character'pos('U') =  85) and
                    (character'pos('V') =  86) and
                    (character'pos('W') =  87) and
                    (character'pos('X') =  88) and
                    (character'pos('Y') =  89) and
                    (character'pos('Z') =  90) and
                    (character'pos('[') =  91) and
                    (character'pos('\') =  92) and
                    (character'pos(']') =  93) and
                    (character'pos('^') =  94) and
                    (character'pos('_') =  95) and
                    (character'pos('`') =  96) and
                    (character'pos('a') =  97) and
                    (character'pos('b') =  98) and
                    (character'pos('c') =  99) and
                    (character'pos('d') = 100) and
                    (character'pos('e') = 101) and
                    (character'pos('f') = 102) and
                    (character'pos('g') = 103) and
                    (character'pos('h') = 104) and
                    (character'pos('i') = 105) and
                    (character'pos('j') = 106) and
                    (character'pos('k') = 107) and
                    (character'pos('l') = 108) and
                    (character'pos('m') = 109) and
                    (character'pos('n') = 110) and
                    (character'pos('o') = 111) and
                    (character'pos('p') = 112) and
                    (character'pos('q') = 113) and
                    (character'pos('r') = 114) and
                    (character'pos('s') = 115) and
                    (character'pos('t') = 116) and
                    (character'pos('u') = 117) and
                    (character'pos('v') = 118) and
                    (character'pos('w') = 119) and
                    (character'pos('x') = 120) and
                    (character'pos('y') = 121) and
                    (character'pos('z') = 122) and
                    (character'pos('{') = 123) and
                    (character'pos('|') = 124) and
                    (character'pos('}') = 125) and
                    (character'pos('~') = 126) and
                    (character'pos(DEL) = 127) and
          (character'pos(character'right) = 127) and 
                    (bit'pos('0') = 0) and
                    (bit'pos('1') = 1) and
                    (bit'pos(bit'right) = 1) and
                    (boolean'pos(false) = 0) and
                    (boolean'pos(true)  = 1) and
                    (boolean'pos(boolean'right) = 1) and
                    (severity_level'pos(NOTE)    = 0) and
                    (severity_level'pos(WARNING) = 1) and
                    (severity_level'pos(ERROR)   = 2) and
                    (severity_level'pos(FAILURE) = 3) and
                    (severity_level'pos(severity_level'right)
= 3))
      report "***PASSED TEST: c03s01b01x00p06n02i00217"
      severity NOTE;
   assert (    (character'pos(NUL) =   0) and
                    (character'pos(SOH) =   1) and
                    (character'pos(STX) =   2) and
                    (character'pos(ETX) =   3) and
                    (character'pos(EOT) =   4) and
                    (character'pos(ENQ) =   5) and
                    (character'pos(ACK) =   6) and
                    (character'pos(BEL) =   7) and
                    (character'pos(BS ) =   8) and
                    (character'pos(HT ) =   9) and
                    (character'pos(LF ) =  10) and
                    (character'pos(VT ) =  11) and
                    (character'pos(FF ) =  12) and
                    (character'pos(CR ) =  13) and
                    (character'pos(SO ) =  14) and
                    (character'pos(SI ) =  15) and
                    (character'pos(DLE) =  16) and
                    (character'pos(DC1) =  17) and
                    (character'pos(DC2) =  18) and
                    (character'pos(DC3) =  19) and
                    (character'pos(DC4) =  20) and
                    (character'pos(NAK) =  21) and
                    (character'pos(SYN) =  22) and
                    (character'pos(ETB) =  23) and
                    (character'pos(CAN) =  24) and
                    (character'pos(EM ) =  25) and
                    (character'pos(SUB) =  26) and
                    (character'pos(ESC) =  27) and
                    (character'pos(FSP) =  28) and
                    (character'pos(GSP) =  29) and
                    (character'pos(RSP) =  30) and
                    (character'pos(USP) =  31) and
                    (character'pos(' ') =  32) and
                    (character'pos('!') =  33) and
                    (character'pos('"') =  34) and
                    (character'pos('#') =  35) and
                    (character'pos('$') =  36) and
                    (character'pos('%') =  37) and
                    (character'pos('&') =  38) and
                    (character'pos(''') =  39) and
                    (character'pos('(') =  40) and
                    (character'pos(')') =  41) and
                    (character'pos('*') =  42) and
                    (character'pos('+') =  43) and
                    (character'pos(',') =  44) and
                    (character'pos('-') =  45) and
                    (character'pos('.') =  46) and
                    (character'pos('/') =  47) and
                    (character'pos('0') =  48) and
                    (character'pos('1') =  49) and
                    (character'pos('2') =  50) and
                    (character'pos('3') =  51) and
                    (character'pos('4') =  52) and
                    (character'pos('5') =  53) and
                    (character'pos('6') =  54) and
                    (character'pos('7') =  55) and
          (character'pos('8') =  56) and
                    (character'pos('9') =  57) and
                    (character'pos(':') =  58) and
                    (character'pos(';') =  59) and
                    (character'pos('<') =  60) and
                    (character'pos('=') =  61) and
                    (character'pos('>') =  62) and
                    (character'pos('?') =  63) and
                    (character'pos('@') =  64) and
                    (character'pos('A') =  65) and
                    (character'pos('B') =  66) and
                    (character'pos('C') =  67) and
                    (character'pos('D') =  68) and
                    (character'pos('E') =  69) and
                    (character'pos('F') =  70) and
                    (character'pos('G') =  71) and
                    (character'pos('H') =  72) and
                    (character'pos('I') =  73) and
                    (character'pos('J') =  74) and
                    (character'pos('K') =  75) and
                    (character'pos('L') =  76) and
                    (character'pos('M') =  77) and
                    (character'pos('N') =  78) and
                    (character'pos('O') =  79) and
                    (character'pos('P') =  80) and
                    (character'pos('Q') =  81) and
                    (character'pos('R') =  82) and
                    (character'pos('S') =  83) and
                    (character'pos('T') =  84) and
                    (character'pos('U') =  85) and
                    (character'pos('V') =  86) and
                    (character'pos('W') =  87) and
                    (character'pos('X') =  88) and
                    (character'pos('Y') =  89) and
                    (character'pos('Z') =  90) and
                    (character'pos('[') =  91) and
                    (character'pos('\') =  92) and
                    (character'pos(']') =  93) and
                    (character'pos('^') =  94) and
                    (character'pos('_') =  95) and
                    (character'pos('`') =  96) and
                    (character'pos('a') =  97) and
                    (character'pos('b') =  98) and
                    (character'pos('c') =  99) and
                    (character'pos('d') = 100) and
                    (character'pos('e') = 101) and
                    (character'pos('f') = 102) and
                    (character'pos('g') = 103) and
                    (character'pos('h') = 104) and
                    (character'pos('i') = 105) and
                    (character'pos('j') = 106) and
                    (character'pos('k') = 107) and
                    (character'pos('l') = 108) and
                    (character'pos('m') = 109) and
                    (character'pos('n') = 110) and
                    (character'pos('o') = 111) and
                    (character'pos('p') = 112) and
                    (character'pos('q') = 113) and
                    (character'pos('r') = 114) and
                    (character'pos('s') = 115) and
                    (character'pos('t') = 116) and
                    (character'pos('u') = 117) and
                    (character'pos('v') = 118) and
                    (character'pos('w') = 119) and
          (character'pos('x') = 120) and
                    (character'pos('y') = 121) and
                    (character'pos('z') = 122) and
                    (character'pos('{') = 123) and
                    (character'pos('|') = 124) and
                    (character'pos('}') = 125) and
                    (character'pos('~') = 126) and
                    (character'pos(DEL) = 127) and
                    (character'pos(character'right) = 255) and  
                    (bit'pos('0') = 0) and
                    (bit'pos('1') = 1) and
                    (bit'pos(bit'right) = 1) and
                    (boolean'pos(false) = 0) and
                    (boolean'pos(true)  = 1) and
                    (boolean'pos(boolean'right) = 1) and
                    (severity_level'pos(NOTE)    = 0) and
                    (severity_level'pos(WARNING) = 1) and
                    (severity_level'pos(ERROR)   = 2) and
                    (severity_level'pos(FAILURE) = 3) and
                    (severity_level'pos(severity_level'right)
= 3))
      report "***FAILED TEST: c03s01b01x00p06n02i00217 - The predefined order relations between enumeration values follow the order of corresponding position number."
      severity ERROR;
   wait;
   END PROCESS TESTING;

END c03s01b01x00p06n02i00217arch;