Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (15 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [["LIBRARY_CLAUSE", [["IDENTIFIER", "ieee"]]], ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "ieee"], ["SIMPLE_NAME", "std_logic_1164"]]]]]], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "bidir_buffer"], "ports" : [{
6
          "names" : [["IDENTIFIER", "bidir"]], "mode" : ["inout"], "typ" : {
7
            "name" : ["SIMPLE_NAME", "std_logic_vector"]}
8
          }
9
        , {
10
          "names" : [["IDENTIFIER", "ena"]], "mode" : ["in"], "typ" : {
11
            "name" : ["SIMPLE_NAME", "std_ulogic"]}
12
          }
13
        , {
14
          "names" : [["IDENTIFIER", "going_out"]], "mode" : ["in"], "typ" : {
15
            "name" : ["SIMPLE_NAME", "std_ulogic_vector"]}
16
          }
17
        , {
18
          "names" : [["IDENTIFIER", "coming_in"]], "mode" : ["out"], "typ" : {
19
            "name" : ["SIMPLE_NAME", "std_ulogic_vector"]}
20
          }
21
        ], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
22
      ]}
23
    , {
24
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
25
        "name" : ["IDENTIFIER", "behavior"], "entity" : ["IDENTIFIER", "bidir_buffer"], "ARCHITECTURE_DECLARATIVE_PART" : [{
26
          "declaration" : ["CONSTANT_DECLARATION", {
27
            "names" : [["IDENTIFIER", "hi_impedance"]], "typ" : {
28
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
29
                "ranges" : [["NAMED_RANGE", ["ATTRIBUTE_NAME", {
30
                  "id" : ["SIMPLE_NAME", "bidir"], "designator" : ["SIMPLE_NAME", "range"]}
31
                ]]]}
32
              ]}
33
            , "init_val" : ["EXPRESSION", {
34
              "args" : [["EXPRESSION", {
35
                "args" : [["EXPRESSION", {
36
                  "args" : [["EXPRESSION", {
37
                    "args" : [["AGGREGATE", {
38
                      "elems" : [{
39
                        "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
40
                          "args" : [["EXPRESSION", {
41
                            "args" : [["EXPRESSION", {
42
                              "args" : [["EXPRESSION", {
43
                                "args" : [["CONSTANT_VALUE", {
44
                                  "value" : ["CST_LITERAL", "'Z'"]}
45
                                ]]}
46
                              ]]}
47
                            ]]}
48
                          ]]}
49
                        ]}
50
                      ]}
51
                    ]]}
52
                  ]]}
53
                ]]}
54
              ]]}
55
            ]}
56
          ]}
57
        ], "ARCHITECTURE_STATEMENT_PART" : [["CONDITIONAL_SIGNAL_ASSIGNMENT", {
58
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "bidir"], "rhs" : [{
59
            "expr" : [{
60
              "value" : ["EXPRESSION", {
61
                "args" : [["EXPRESSION", {
62
                  "args" : [["EXPRESSION", {
63
                    "args" : [["EXPRESSION", {
64
                      "args" : [["CALL", ["INDEXED_NAME", {
65
                        "id" : ["SIMPLE_NAME", "To_stdlogicvector"], "exprs" : [["EXPRESSION", {
66
                          "args" : [["EXPRESSION", {
67
                            "args" : [["EXPRESSION", {
68
                              "args" : [["EXPRESSION", {
69
                                "args" : [["CALL", ["SIMPLE_NAME", "going_out"]]]}
70
                              ]]}
71
                            ]]}
72
                          ]]}
73
                        ]]}
74
                      ]]]}
75
                    ]]}
76
                  ]]}
77
                ]]}
78
              ]}
79
            ], "cond" : ["EXPRESSION", {
80
              "id" : "=", "args" : [["EXPRESSION", {
81
                "args" : [["EXPRESSION", {
82
                  "args" : [["EXPRESSION", {
83
                    "args" : [["CALL", ["SIMPLE_NAME", "ena"]]]}
84
                  ]]}
85
                ]]}
86
              ], ["EXPRESSION", {
87
                "args" : [["EXPRESSION", {
88
                  "args" : [["EXPRESSION", {
89
                    "args" : [["CONSTANT_VALUE", {
90
                      "value" : ["CST_LITERAL", "'1'"]}
91
                    ]]}
92
                  ]]}
93
                ]]}
94
              ]]}
95
            ]}
96
          , {
97
            "expr" : [{
98
              "value" : ["EXPRESSION", {
99
                "args" : [["EXPRESSION", {
100
                  "args" : [["EXPRESSION", {
101
                    "args" : [["EXPRESSION", {
102
                      "args" : [["CALL", ["SIMPLE_NAME", "hi_impedance"]]]}
103
                    ]]}
104
                  ]]}
105
                ]]}
106
              ]}
107
            ]}
108
          ]}
109
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
110
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "coming_in"], "rhs" : [{
111
            "expr" : [{
112
              "value" : ["EXPRESSION", {
113
                "args" : [["EXPRESSION", {
114
                  "args" : [["EXPRESSION", {
115
                    "args" : [["EXPRESSION", {
116
                      "args" : [["CALL", ["INDEXED_NAME", {
117
                        "id" : ["SIMPLE_NAME", "To_stdulogicvector"], "exprs" : [["EXPRESSION", {
118
                          "args" : [["EXPRESSION", {
119
                            "args" : [["EXPRESSION", {
120
                              "args" : [["EXPRESSION", {
121
                                "args" : [["CALL", ["SIMPLE_NAME", "bidir"]]]}
122
                              ]]}
123
                            ]]}
124
                          ]]}
125
                        ]]}
126
                      ]]]}
127
                    ]]}
128
                  ]]}
129
                ]]}
130
              ]}
131
            ]}
132
          ]}
133
        ]]}
134
      ]}
135
    , {
136
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
137
        "name" : ["IDENTIFIER", "ap_a_07"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
138
      ]}
139
    , {
140
      "contexts" : [["LIBRARY_CLAUSE", [["IDENTIFIER", "ieee"]]], ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "ieee"], ["SIMPLE_NAME", "std_logic_1164"]]]]]], "library" : ["ARCHITECTURE_BODY", {
141
        "name" : ["IDENTIFIER", "test"], "entity" : ["IDENTIFIER", "ap_a_07"], "ARCHITECTURE_DECLARATIVE_PART" : [{
142
          "declaration" : ["SIGNAL_DECLARATION", {
143
            "names" : [["IDENTIFIER", "bidir"]], "typ" : {
144
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
145
                "ranges" : [["RANGE_WITH_DIRECTION", {
146
                  "direction" : "downto", "from" : ["EXPRESSION", {
147
                    "args" : [["EXPRESSION", {
148
                      "args" : [["CONSTANT_VALUE", {
149
                        "value" : ["CST_LITERAL", "3"]}
150
                      ]]}
151
                    ]]}
152
                  ], "_to" : ["EXPRESSION", {
153
                    "args" : [["EXPRESSION", {
154
                      "args" : [["CONSTANT_VALUE", {
155
                        "value" : ["CST_LITERAL", "0"]}
156
                      ]]}
157
                    ]]}
158
                  ]}
159
                ]]}
160
              ]}
161
            }
162
          ]}
163
        , {
164
          "declaration" : ["SIGNAL_DECLARATION", {
165
            "names" : [["IDENTIFIER", "going_out"], ["IDENTIFIER", "coming_in"]], "typ" : {
166
              "name" : ["SIMPLE_NAME", "std_ulogic_vector"], "const" : ["INDEX_CONSTRAINT", {
167
                "ranges" : [["RANGE_WITH_DIRECTION", {
168
                  "direction" : "downto", "from" : ["EXPRESSION", {
169
                    "args" : [["EXPRESSION", {
170
                      "args" : [["CONSTANT_VALUE", {
171
                        "value" : ["CST_LITERAL", "3"]}
172
                      ]]}
173
                    ]]}
174
                  ], "_to" : ["EXPRESSION", {
175
                    "args" : [["EXPRESSION", {
176
                      "args" : [["CONSTANT_VALUE", {
177
                        "value" : ["CST_LITERAL", "0"]}
178
                      ]]}
179
                    ]]}
180
                  ]}
181
                ]]}
182
              ]}
183
            }
184
          ]}
185
        , {
186
          "declaration" : ["SIGNAL_DECLARATION", {
187
            "names" : [["IDENTIFIER", "ena"]], "typ" : {
188
              "name" : ["SIMPLE_NAME", "std_ulogic"]}
189
            }
190
          ]}
191
        ], "ARCHITECTURE_STATEMENT_PART" : [["COMPONENT_INSTANTIATION_STATEMENT", {
192
          "name" : ["IDENTIFIER", "dut"], "inst_unit" : ["SELECTED_NAME", [["SIMPLE_NAME", "work"], ["IDENTIFIER", "bidir_buffer"]]], "inst_unit_type" : "entity", "port_map" : [{
193
            "actual_designator" : ["SIMPLE_NAME", "bidir"]}
194
          , {
195
            "actual_designator" : ["SIMPLE_NAME", "ena"]}
196
          , {
197
            "actual_designator" : ["SIMPLE_NAME", "going_out"]}
198
          , {
199
            "actual_designator" : ["SIMPLE_NAME", "coming_in"]}
200
          ]}
201
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
202
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "ena"], "rhs" : [{
203
            "expr" : [{
204
              "value" : ["EXPRESSION", {
205
                "args" : [["EXPRESSION", {
206
                  "args" : [["EXPRESSION", {
207
                    "args" : [["EXPRESSION", {
208
                      "args" : [["CONSTANT_VALUE", {
209
                        "value" : ["CST_LITERAL", "'0'"]}
210
                      ]]}
211
                    ]]}
212
                  ]]}
213
                ]]}
214
              ]}
215
            , {
216
              "value" : ["EXPRESSION", {
217
                "args" : [["EXPRESSION", {
218
                  "args" : [["EXPRESSION", {
219
                    "args" : [["EXPRESSION", {
220
                      "args" : [["CONSTANT_VALUE", {
221
                        "value" : ["CST_LITERAL", "'1'"]}
222
                      ]]}
223
                    ]]}
224
                  ]]}
225
                ]]}
226
              ], "delay" : ["EXPRESSION", {
227
                "args" : [["EXPRESSION", {
228
                  "args" : [["EXPRESSION", {
229
                    "args" : [["EXPRESSION", {
230
                      "args" : [["CONSTANT_VALUE", {
231
                        "value" : ["CST_LITERAL", "10"], "unit_name" : ["SIMPLE_NAME", "ns"]}
232
                      ]]}
233
                    ]]}
234
                  ]]}
235
                ]]}
236
              ]}
237
            , {
238
              "value" : ["EXPRESSION", {
239
                "args" : [["EXPRESSION", {
240
                  "args" : [["EXPRESSION", {
241
                    "args" : [["EXPRESSION", {
242
                      "args" : [["CONSTANT_VALUE", {
243
                        "value" : ["CST_LITERAL", "'0'"]}
244
                      ]]}
245
                    ]]}
246
                  ]]}
247
                ]]}
248
              ], "delay" : ["EXPRESSION", {
249
                "args" : [["EXPRESSION", {
250
                  "args" : [["EXPRESSION", {
251
                    "args" : [["EXPRESSION", {
252
                      "args" : [["CONSTANT_VALUE", {
253
                        "value" : ["CST_LITERAL", "30"], "unit_name" : ["SIMPLE_NAME", "ns"]}
254
                      ]]}
255
                    ]]}
256
                  ]]}
257
                ]]}
258
              ]}
259
            ]}
260
          ]}
261
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
262
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "going_out"], "rhs" : [{
263
            "expr" : [{
264
              "value" : ["EXPRESSION", {
265
                "args" : [["EXPRESSION", {
266
                  "args" : [["EXPRESSION", {
267
                    "args" : [["EXPRESSION", {
268
                      "args" : [["CONSTANT_VALUE", {
269
                        "value" : ["CST_LITERAL", "\"0000\""]}
270
                      ]]}
271
                    ]]}
272
                  ]]}
273
                ]]}
274
              ]}
275
            , {
276
              "value" : ["EXPRESSION", {
277
                "args" : [["EXPRESSION", {
278
                  "args" : [["EXPRESSION", {
279
                    "args" : [["EXPRESSION", {
280
                      "args" : [["CONSTANT_VALUE", {
281
                        "value" : ["CST_LITERAL", "\"1111\""]}
282
                      ]]}
283
                    ]]}
284
                  ]]}
285
                ]]}
286
              ], "delay" : ["EXPRESSION", {
287
                "args" : [["EXPRESSION", {
288
                  "args" : [["EXPRESSION", {
289
                    "args" : [["EXPRESSION", {
290
                      "args" : [["CONSTANT_VALUE", {
291
                        "value" : ["CST_LITERAL", "20"], "unit_name" : ["SIMPLE_NAME", "ns"]}
292
                      ]]}
293
                    ]]}
294
                  ]]}
295
                ]]}
296
              ]}
297
            ]}
298
          ]}
299
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
300
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "bidir"], "rhs" : [{
301
            "expr" : [{
302
              "value" : ["EXPRESSION", {
303
                "args" : [["EXPRESSION", {
304
                  "args" : [["EXPRESSION", {
305
                    "args" : [["EXPRESSION", {
306
                      "args" : [["CONSTANT_VALUE", {
307
                        "value" : ["CST_LITERAL", "\"ZZZZ\""]}
308
                      ]]}
309
                    ]]}
310
                  ]]}
311
                ]]}
312
              ]}
313
            , {
314
              "value" : ["EXPRESSION", {
315
                "args" : [["EXPRESSION", {
316
                  "args" : [["EXPRESSION", {
317
                    "args" : [["EXPRESSION", {
318
                      "args" : [["CONSTANT_VALUE", {
319
                        "value" : ["CST_LITERAL", "\"0000\""]}
320
                      ]]}
321
                    ]]}
322
                  ]]}
323
                ]]}
324
              ], "delay" : ["EXPRESSION", {
325
                "args" : [["EXPRESSION", {
326
                  "args" : [["EXPRESSION", {
327
                    "args" : [["EXPRESSION", {
328
                      "args" : [["CONSTANT_VALUE", {
329
                        "value" : ["CST_LITERAL", "40"], "unit_name" : ["SIMPLE_NAME", "ns"]}
330
                      ]]}
331
                    ]]}
332
                  ]]}
333
                ]]}
334
              ]}
335
            , {
336
              "value" : ["EXPRESSION", {
337
                "args" : [["EXPRESSION", {
338
                  "args" : [["EXPRESSION", {
339
                    "args" : [["EXPRESSION", {
340
                      "args" : [["CONSTANT_VALUE", {
341
                        "value" : ["CST_LITERAL", "\"1111\""]}
342
                      ]]}
343
                    ]]}
344
                  ]]}
345
                ]]}
346
              ], "delay" : ["EXPRESSION", {
347
                "args" : [["EXPRESSION", {
348
                  "args" : [["EXPRESSION", {
349
                    "args" : [["EXPRESSION", {
350
                      "args" : [["CONSTANT_VALUE", {
351
                        "value" : ["CST_LITERAL", "50"], "unit_name" : ["SIMPLE_NAME", "ns"]}
352
                      ]]}
353
                    ]]}
354
                  ]]}
355
                ]]}
356
              ]}
357
            , {
358
              "value" : ["EXPRESSION", {
359
                "args" : [["EXPRESSION", {
360
                  "args" : [["EXPRESSION", {
361
                    "args" : [["EXPRESSION", {
362
                      "args" : [["CONSTANT_VALUE", {
363
                        "value" : ["CST_LITERAL", "\"ZZZZ\""]}
364
                      ]]}
365
                    ]]}
366
                  ]]}
367
                ]]}
368
              ], "delay" : ["EXPRESSION", {
369
                "args" : [["EXPRESSION", {
370
                  "args" : [["EXPRESSION", {
371
                    "args" : [["EXPRESSION", {
372
                      "args" : [["CONSTANT_VALUE", {
373
                        "value" : ["CST_LITERAL", "60"], "unit_name" : ["SIMPLE_NAME", "ns"]}
374
                      ]]}
375
                    ]]}
376
                  ]]}
377
                ]]}
378
              ]}
379
            ]}
380
          ]}
381
        ]]}
382
      ]}
383
    ]}
384
  }