Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / vhdl_json / vhdl_files / 2-exportOK / ghdl / ghdl / testsuite / vests / vhdl-93 / billowitch / compliant / tc134.json @ 3fd18385

History | View | Annotate | Download (16.6 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "c04s03b02x02p08n01i00134ent"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "c04s03b02x02p08n01i00134arch"], "entity" : ["IDENTIFIER", "c04s03b02x02p08n01i00134ent"], "ARCHITECTURE_DECLARATIVE_PART" : [{
10
          "definition" : ["TYPE_DECLARATION", {
11
            "name" : ["IDENTIFIER", "AT1"], "definition" : ["ARRAY_TYPE_DEFINITION", {
12
              "indexes" : [["SIMPLE_NAME", "INTEGER"]], "definition" : {
13
                "name" : ["SIMPLE_NAME", "INTEGER"]}
14
              }
15
            ]}
16
          ]}
17
        , {
18
          "definition" : ["SUBTYPE_DECLARATION", {
19
            "name" : ["IDENTIFIER", "ST1"], "typ" : {
20
              "name" : ["SIMPLE_NAME", "AT1"], "const" : ["INDEX_CONSTRAINT", {
21
                "ranges" : [["RANGE_WITH_DIRECTION", {
22
                  "direction" : "to", "from" : ["EXPRESSION", {
23
                    "args" : [["EXPRESSION", {
24
                      "args" : [["CONSTANT_VALUE", {
25
                        "value" : ["CST_LITERAL", "1"]}
26
                      ]]}
27
                    ]]}
28
                  ], "_to" : ["EXPRESSION", {
29
                    "args" : [["EXPRESSION", {
30
                      "args" : [["CONSTANT_VALUE", {
31
                        "value" : ["CST_LITERAL", "2"]}
32
                      ]]}
33
                    ]]}
34
                  ]}
35
                ]]}
36
              ]}
37
            }
38
          ]}
39
        ], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
40
          "id" : ["IDENTIFIER", "TESTING"], "PROCESS_DECLARATIVE_PART" : [{
41
            "declaration" : ["SUBPROGRAM_BODY", {
42
              "spec" : {
43
                "name" : "Proc1", "subprogram_type" : "procedure", "parameters" : [{
44
                  "names" : [["IDENTIFIER", "P"]], "mode" : ["inout"], "typ" : {
45
                    "name" : ["SIMPLE_NAME", "ST1"]}
46
                  }
47
                , {
48
                  "names" : [["IDENTIFIER", "ref"]], "mode" : ["in"], "typ" : {
49
                    "name" : ["SIMPLE_NAME", "ST1"]}
50
                  }
51
                , {
52
                  "names" : [["IDENTIFIER", "set"]], "mode" : ["in"], "typ" : {
53
                    "name" : ["SIMPLE_NAME", "ST1"]}
54
                  }
55
                ]}
56
              , "stmts" : [["IF_STATEMENT", {
57
                "if_cases" : [{
58
                  "if_cond" : ["EXPRESSION", {
59
                    "args" : [["EXPRESSION", {
60
                      "args" : [["EXPRESSION", {
61
                        "args" : [["EXPRESSION", {
62
                          "args" : [["EXPRESSION", {
63
                            "id" : "=", "args" : [["EXPRESSION", {
64
                              "args" : [["EXPRESSION", {
65
                                "args" : [["EXPRESSION", {
66
                                  "args" : [["CALL", ["SIMPLE_NAME", "P"]]]}
67
                                ]]}
68
                              ]]}
69
                            ], ["EXPRESSION", {
70
                              "args" : [["EXPRESSION", {
71
                                "args" : [["EXPRESSION", {
72
                                  "args" : [["CALL", ["SIMPLE_NAME", "ref"]]]}
73
                                ]]}
74
                              ]]}
75
                            ]]}
76
                          ]]}
77
                        ]]}
78
                      ]]}
79
                    ]]}
80
                  ], "if_block" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
81
                    "lhs" : ["SIMPLE_NAME", "P"], "rhs" : ["EXPRESSION", {
82
                      "args" : [["EXPRESSION", {
83
                        "args" : [["EXPRESSION", {
84
                          "args" : [["EXPRESSION", {
85
                            "args" : [["CALL", ["SIMPLE_NAME", "set"]]]}
86
                          ]]}
87
                        ]]}
88
                      ]]}
89
                    ]}
90
                  ]]}
91
                ]}
92
              ]]}
93
            ]}
94
          , {
95
            "declaration" : ["VARIABLE_DECLARATION", {
96
              "names" : [["IDENTIFIER", "V1"], ["IDENTIFIER", "V2"]], "typ" : {
97
                "name" : ["SIMPLE_NAME", "INTEGER"]}
98
              }
99
            ]}
100
          ], "PROCESS_STATEMENT_PART" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
101
            "lhs" : ["SIMPLE_NAME", "V1"], "rhs" : ["EXPRESSION", {
102
              "args" : [["EXPRESSION", {
103
                "args" : [["EXPRESSION", {
104
                  "args" : [["EXPRESSION", {
105
                    "args" : [["CONSTANT_VALUE", {
106
                      "value" : ["CST_LITERAL", "1"]}
107
                    ]]}
108
                  ]]}
109
                ]]}
110
              ]]}
111
            ]}
112
          ], ["VARIABLE_ASSIGNMENT_STATEMENT", {
113
            "lhs" : ["SIMPLE_NAME", "V2"], "rhs" : ["EXPRESSION", {
114
              "args" : [["EXPRESSION", {
115
                "args" : [["EXPRESSION", {
116
                  "args" : [["EXPRESSION", {
117
                    "args" : [["CONSTANT_VALUE", {
118
                      "value" : ["CST_LITERAL", "2"]}
119
                    ]]}
120
                  ]]}
121
                ]]}
122
              ]]}
123
            ]}
124
          ], ["PROCEDURE_CALL_STATEMENT", {
125
            "name" : ["IDENTIFIER", "Proc1"], "assocs" : [{
126
              "formal_name" : ["INDEXED_NAME", {
127
                "id" : ["SIMPLE_NAME", "P"], "exprs" : [["EXPRESSION", {
128
                  "args" : [["EXPRESSION", {
129
                    "args" : [["EXPRESSION", {
130
                      "args" : [["EXPRESSION", {
131
                        "args" : [["CONSTANT_VALUE", {
132
                          "value" : ["CST_LITERAL", "1"]}
133
                        ]]}
134
                      ]]}
135
                    ]]}
136
                  ]]}
137
                ]]}
138
              ], "actual_designator" : ["SIMPLE_NAME", "V2"]}
139
            , {
140
              "formal_name" : ["INDEXED_NAME", {
141
                "id" : ["SIMPLE_NAME", "P"], "exprs" : [["EXPRESSION", {
142
                  "args" : [["EXPRESSION", {
143
                    "args" : [["EXPRESSION", {
144
                      "args" : [["EXPRESSION", {
145
                        "args" : [["CONSTANT_VALUE", {
146
                          "value" : ["CST_LITERAL", "2"]}
147
                        ]]}
148
                      ]]}
149
                    ]]}
150
                  ]]}
151
                ]]}
152
              ], "actual_designator" : ["SIMPLE_NAME", "V1"]}
153
            , {
154
              "formal_name" : ["SIMPLE_NAME", "ref"], "actual_expr" : ["EXPRESSION", {
155
                "args" : [["EXPRESSION", {
156
                  "args" : [["EXPRESSION", {
157
                    "args" : [["EXPRESSION", {
158
                      "args" : [["AGGREGATE", {
159
                        "elems" : [{
160
                          "expr" : ["EXPRESSION", {
161
                            "args" : [["EXPRESSION", {
162
                              "args" : [["EXPRESSION", {
163
                                "args" : [["EXPRESSION", {
164
                                  "args" : [["CONSTANT_VALUE", {
165
                                    "value" : ["CST_LITERAL", "2"]}
166
                                  ]]}
167
                                ]]}
168
                              ]]}
169
                            ]]}
170
                          ]}
171
                        , {
172
                          "expr" : ["EXPRESSION", {
173
                            "args" : [["EXPRESSION", {
174
                              "args" : [["EXPRESSION", {
175
                                "args" : [["EXPRESSION", {
176
                                  "args" : [["CONSTANT_VALUE", {
177
                                    "value" : ["CST_LITERAL", "1"]}
178
                                  ]]}
179
                                ]]}
180
                              ]]}
181
                            ]]}
182
                          ]}
183
                        ]}
184
                      ]]}
185
                    ]]}
186
                  ]]}
187
                ]]}
188
              ]}
189
            , {
190
              "formal_name" : ["SIMPLE_NAME", "set"], "actual_expr" : ["EXPRESSION", {
191
                "args" : [["EXPRESSION", {
192
                  "args" : [["EXPRESSION", {
193
                    "args" : [["EXPRESSION", {
194
                      "args" : [["AGGREGATE", {
195
                        "elems" : [{
196
                          "expr" : ["EXPRESSION", {
197
                            "args" : [["EXPRESSION", {
198
                              "args" : [["EXPRESSION", {
199
                                "args" : [["EXPRESSION", {
200
                                  "args" : [["CONSTANT_VALUE", {
201
                                    "value" : ["CST_LITERAL", "2"]}
202
                                  ]]}
203
                                ]]}
204
                              ]]}
205
                            ]]}
206
                          ]}
207
                        , {
208
                          "expr" : ["EXPRESSION", {
209
                            "args" : [["EXPRESSION", {
210
                              "args" : [["EXPRESSION", {
211
                                "args" : [["EXPRESSION", {
212
                                  "args" : [["CONSTANT_VALUE", {
213
                                    "value" : ["CST_LITERAL", "3"]}
214
                                  ]]}
215
                                ]]}
216
                              ]]}
217
                            ]]}
218
                          ]}
219
                        ]}
220
                      ]]}
221
                    ]]}
222
                  ]]}
223
                ]]}
224
              ]}
225
            ]}
226
          ], ["ASSERTION_STATEMENT", {
227
            "cond" : ["EXPRESSION", {
228
              "id" : "=", "args" : [["EXPRESSION", {
229
                "args" : [["EXPRESSION", {
230
                  "args" : [["EXPRESSION", {
231
                    "args" : [["CALL", ["SIMPLE_NAME", "V1"]]]}
232
                  ]]}
233
                ]]}
234
              ], ["EXPRESSION", {
235
                "args" : [["EXPRESSION", {
236
                  "args" : [["EXPRESSION", {
237
                    "args" : [["CONSTANT_VALUE", {
238
                      "value" : ["CST_LITERAL", "3"]}
239
                    ]]}
240
                  ]]}
241
                ]]}
242
              ]]}
243
            ], "report" : ["EXPRESSION", {
244
              "args" : [["EXPRESSION", {
245
                "args" : [["EXPRESSION", {
246
                  "args" : [["EXPRESSION", {
247
                    "args" : [["CONSTANT_VALUE", {
248
                      "value" : ["CST_LITERAL", "\"FAIL: actual V1 didn't get set right\""]}
249
                    ]]}
250
                  ]]}
251
                ]]}
252
              ]]}
253
            ]}
254
          ], ["ASSERTION_STATEMENT", {
255
            "cond" : ["EXPRESSION", {
256
              "id" : "=", "args" : [["EXPRESSION", {
257
                "args" : [["EXPRESSION", {
258
                  "args" : [["EXPRESSION", {
259
                    "args" : [["CALL", ["SIMPLE_NAME", "V2"]]]}
260
                  ]]}
261
                ]]}
262
              ], ["EXPRESSION", {
263
                "args" : [["EXPRESSION", {
264
                  "args" : [["EXPRESSION", {
265
                    "args" : [["CONSTANT_VALUE", {
266
                      "value" : ["CST_LITERAL", "2"]}
267
                    ]]}
268
                  ]]}
269
                ]]}
270
              ]]}
271
            ], "report" : ["EXPRESSION", {
272
              "args" : [["EXPRESSION", {
273
                "args" : [["EXPRESSION", {
274
                  "args" : [["EXPRESSION", {
275
                    "args" : [["CONSTANT_VALUE", {
276
                      "value" : ["CST_LITERAL", "\"FAIL: actual V2 didn't get set right\""]}
277
                    ]]}
278
                  ]]}
279
                ]]}
280
              ]]}
281
            ]}
282
          ], ["ASSERTION_STATEMENT", {
283
            "cond" : ["EXPRESSION", {
284
              "args" : [["EXPRESSION", {
285
                "args" : [["EXPRESSION", {
286
                  "args" : [["EXPRESSION", {
287
                    "id" : "NOT", "args" : [["EXPRESSION", {
288
                      "id" : "and", "args" : [["EXPRESSION", {
289
                        "id" : "=", "args" : [["EXPRESSION", {
290
                          "args" : [["EXPRESSION", {
291
                            "args" : [["EXPRESSION", {
292
                              "args" : [["CALL", ["SIMPLE_NAME", "V1"]]]}
293
                            ]]}
294
                          ]]}
295
                        ], ["EXPRESSION", {
296
                          "args" : [["EXPRESSION", {
297
                            "args" : [["EXPRESSION", {
298
                              "args" : [["CONSTANT_VALUE", {
299
                                "value" : ["CST_LITERAL", "3"]}
300
                              ]]}
301
                            ]]}
302
                          ]]}
303
                        ]]}
304
                      ], ["EXPRESSION", {
305
                        "id" : "=", "args" : [["EXPRESSION", {
306
                          "args" : [["EXPRESSION", {
307
                            "args" : [["EXPRESSION", {
308
                              "args" : [["CALL", ["SIMPLE_NAME", "V2"]]]}
309
                            ]]}
310
                          ]]}
311
                        ], ["EXPRESSION", {
312
                          "args" : [["EXPRESSION", {
313
                            "args" : [["EXPRESSION", {
314
                              "args" : [["CONSTANT_VALUE", {
315
                                "value" : ["CST_LITERAL", "2"]}
316
                              ]]}
317
                            ]]}
318
                          ]]}
319
                        ]]}
320
                      ]]}
321
                    ]]}
322
                  ]]}
323
                ]]}
324
              ]]}
325
            ], "report" : ["EXPRESSION", {
326
              "args" : [["EXPRESSION", {
327
                "args" : [["EXPRESSION", {
328
                  "args" : [["EXPRESSION", {
329
                    "args" : [["CONSTANT_VALUE", {
330
                      "value" : ["CST_LITERAL", "\"***PASSED TEST: c04s03b02x02p08n01i00134\""]}
331
                    ]]}
332
                  ]]}
333
                ]]}
334
              ]]}
335
            ], "severity" : ["EXPRESSION", {
336
              "args" : [["EXPRESSION", {
337
                "args" : [["EXPRESSION", {
338
                  "args" : [["EXPRESSION", {
339
                    "args" : [["CALL", ["SIMPLE_NAME", "NOTE"]]]}
340
                  ]]}
341
                ]]}
342
              ]]}
343
            ]}
344
          ], ["ASSERTION_STATEMENT", {
345
            "cond" : ["EXPRESSION", {
346
              "args" : [["EXPRESSION", {
347
                "args" : [["EXPRESSION", {
348
                  "args" : [["EXPRESSION", {
349
                    "args" : [["EXPRESSION", {
350
                      "id" : "and", "args" : [["EXPRESSION", {
351
                        "id" : "=", "args" : [["EXPRESSION", {
352
                          "args" : [["EXPRESSION", {
353
                            "args" : [["EXPRESSION", {
354
                              "args" : [["CALL", ["SIMPLE_NAME", "V1"]]]}
355
                            ]]}
356
                          ]]}
357
                        ], ["EXPRESSION", {
358
                          "args" : [["EXPRESSION", {
359
                            "args" : [["EXPRESSION", {
360
                              "args" : [["CONSTANT_VALUE", {
361
                                "value" : ["CST_LITERAL", "3"]}
362
                              ]]}
363
                            ]]}
364
                          ]]}
365
                        ]]}
366
                      ], ["EXPRESSION", {
367
                        "id" : "=", "args" : [["EXPRESSION", {
368
                          "args" : [["EXPRESSION", {
369
                            "args" : [["EXPRESSION", {
370
                              "args" : [["CALL", ["SIMPLE_NAME", "V2"]]]}
371
                            ]]}
372
                          ]]}
373
                        ], ["EXPRESSION", {
374
                          "args" : [["EXPRESSION", {
375
                            "args" : [["EXPRESSION", {
376
                              "args" : [["CONSTANT_VALUE", {
377
                                "value" : ["CST_LITERAL", "2"]}
378
                              ]]}
379
                            ]]}
380
                          ]]}
381
                        ]]}
382
                      ]]}
383
                    ]]}
384
                  ]]}
385
                ]]}
386
              ]]}
387
            ], "report" : ["EXPRESSION", {
388
              "args" : [["EXPRESSION", {
389
                "args" : [["EXPRESSION", {
390
                  "args" : [["EXPRESSION", {
391
                    "args" : [["CONSTANT_VALUE", {
392
                      "value" : ["CST_LITERAL", "\"***FAILED TEST: c04s03b02x02p08n01i00134 - Association element in an association list test failed.\""]}
393
                    ]]}
394
                  ]]}
395
                ]]}
396
              ]]}
397
            ], "severity" : ["EXPRESSION", {
398
              "args" : [["EXPRESSION", {
399
                "args" : [["EXPRESSION", {
400
                  "args" : [["EXPRESSION", {
401
                    "args" : [["CALL", ["SIMPLE_NAME", "ERROR"]]]}
402
                  ]]}
403
                ]]}
404
              ]]}
405
            ]}
406
          ], ["WAIT_STATEMENT"]]}
407
        ]]}
408
      ]}
409
    ]}
410
  }