Project

General

Profile

Download (19.2 KB) Statistics
| Branch: | Tag: | Revision:
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_CLAUSE", [["IDENTIFIER", "ieee"]]], ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "ieee"], ["SIMPLE_NAME", "numeric_std"]]]]]], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "test_data"], "ports" : [{
6
          "names" : [["IDENTIFIER", "clk"]], "mode" : ["in"], "typ" : {
7
            "name" : ["SIMPLE_NAME", "std_logic"]}
8
          }
9
        , {
10
          "names" : [["IDENTIFIER", "ra0_data"]], "mode" : ["out"], "typ" : {
11
            "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
12
              "ranges" : [["RANGE_WITH_DIRECTION", {
13
                "direction" : "downto", "from" : ["EXPRESSION", {
14
                  "args" : [["EXPRESSION", {
15
                    "args" : [["CONSTANT_VALUE", {
16
                      "value" : ["CST_LITERAL", "31"]}
17
                    ]]}
18
                  ]]}
19
                ], "_to" : ["EXPRESSION", {
20
                  "args" : [["EXPRESSION", {
21
                    "args" : [["CONSTANT_VALUE", {
22
                      "value" : ["CST_LITERAL", "0"]}
23
                    ]]}
24
                  ]]}
25
                ]}
26
              ]]}
27
            ]}
28
          }
29
        , {
30
          "names" : [["IDENTIFIER", "wa0_addr"]], "mode" : ["in"], "typ" : {
31
            "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
32
              "ranges" : [["RANGE_WITH_DIRECTION", {
33
                "direction" : "downto", "from" : ["EXPRESSION", {
34
                  "args" : [["EXPRESSION", {
35
                    "args" : [["CONSTANT_VALUE", {
36
                      "value" : ["CST_LITERAL", "6"]}
37
                    ]]}
38
                  ]]}
39
                ], "_to" : ["EXPRESSION", {
40
                  "args" : [["EXPRESSION", {
41
                    "args" : [["CONSTANT_VALUE", {
42
                      "value" : ["CST_LITERAL", "0"]}
43
                    ]]}
44
                  ]]}
45
                ]}
46
              ]]}
47
            ]}
48
          }
49
        , {
50
          "names" : [["IDENTIFIER", "wa0_en"]], "mode" : ["in"], "typ" : {
51
            "name" : ["SIMPLE_NAME", "std_logic"]}
52
          }
53
        , {
54
          "names" : [["IDENTIFIER", "ra0_addr"]], "mode" : ["in"], "typ" : {
55
            "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
56
              "ranges" : [["RANGE_WITH_DIRECTION", {
57
                "direction" : "downto", "from" : ["EXPRESSION", {
58
                  "args" : [["EXPRESSION", {
59
                    "args" : [["CONSTANT_VALUE", {
60
                      "value" : ["CST_LITERAL", "6"]}
61
                    ]]}
62
                  ]]}
63
                ], "_to" : ["EXPRESSION", {
64
                  "args" : [["EXPRESSION", {
65
                    "args" : [["CONSTANT_VALUE", {
66
                      "value" : ["CST_LITERAL", "0"]}
67
                    ]]}
68
                  ]]}
69
                ]}
70
              ]]}
71
            ]}
72
          }
73
        , {
74
          "names" : [["IDENTIFIER", "wa0_data"]], "mode" : ["in"], "typ" : {
75
            "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
76
              "ranges" : [["RANGE_WITH_DIRECTION", {
77
                "direction" : "downto", "from" : ["EXPRESSION", {
78
                  "args" : [["EXPRESSION", {
79
                    "args" : [["CONSTANT_VALUE", {
80
                      "value" : ["CST_LITERAL", "31"]}
81
                    ]]}
82
                  ]]}
83
                ], "_to" : ["EXPRESSION", {
84
                  "args" : [["EXPRESSION", {
85
                    "args" : [["CONSTANT_VALUE", {
86
                      "value" : ["CST_LITERAL", "0"]}
87
                    ]]}
88
                  ]]}
89
                ]}
90
              ]]}
91
            ]}
92
          }
93
        , {
94
          "names" : [["IDENTIFIER", "ra1_data"]], "mode" : ["out"], "typ" : {
95
            "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
96
              "ranges" : [["RANGE_WITH_DIRECTION", {
97
                "direction" : "downto", "from" : ["EXPRESSION", {
98
                  "args" : [["EXPRESSION", {
99
                    "args" : [["CONSTANT_VALUE", {
100
                      "value" : ["CST_LITERAL", "31"]}
101
                    ]]}
102
                  ]]}
103
                ], "_to" : ["EXPRESSION", {
104
                  "args" : [["EXPRESSION", {
105
                    "args" : [["CONSTANT_VALUE", {
106
                      "value" : ["CST_LITERAL", "0"]}
107
                    ]]}
108
                  ]]}
109
                ]}
110
              ]]}
111
            ]}
112
          }
113
        , {
114
          "names" : [["IDENTIFIER", "ra1_addr"]], "mode" : ["in"], "typ" : {
115
            "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
116
              "ranges" : [["RANGE_WITH_DIRECTION", {
117
                "direction" : "downto", "from" : ["EXPRESSION", {
118
                  "args" : [["EXPRESSION", {
119
                    "args" : [["CONSTANT_VALUE", {
120
                      "value" : ["CST_LITERAL", "6"]}
121
                    ]]}
122
                  ]]}
123
                ], "_to" : ["EXPRESSION", {
124
                  "args" : [["EXPRESSION", {
125
                    "args" : [["CONSTANT_VALUE", {
126
                      "value" : ["CST_LITERAL", "0"]}
127
                    ]]}
128
                  ]]}
129
                ]}
130
              ]]}
131
            ]}
132
          }
133
        ], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
134
      ]}
135
    , {
136
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
137
        "name" : ["IDENTIFIER", "augh"], "entity" : ["IDENTIFIER", "test_data"], "ARCHITECTURE_DECLARATIVE_PART" : [{
138
          "definition" : ["TYPE_DECLARATION", {
139
            "name" : ["IDENTIFIER", "ram_type"], "definition" : ["ARRAY_TYPE_DEFINITION", {
140
              "const" : ["INDEX_CONSTRAINT", {
141
                "ranges" : [["RANGE_WITH_DIRECTION", {
142
                  "direction" : "to", "from" : ["EXPRESSION", {
143
                    "args" : [["EXPRESSION", {
144
                      "args" : [["CONSTANT_VALUE", {
145
                        "value" : ["CST_LITERAL", "0"]}
146
                      ]]}
147
                    ]]}
148
                  ], "_to" : ["EXPRESSION", {
149
                    "args" : [["EXPRESSION", {
150
                      "args" : [["CONSTANT_VALUE", {
151
                        "value" : ["CST_LITERAL", "127"]}
152
                      ]]}
153
                    ]]}
154
                  ]}
155
                ]]}
156
              ], "definition" : {
157
                "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
158
                  "ranges" : [["RANGE_WITH_DIRECTION", {
159
                    "direction" : "downto", "from" : ["EXPRESSION", {
160
                      "args" : [["EXPRESSION", {
161
                        "args" : [["CONSTANT_VALUE", {
162
                          "value" : ["CST_LITERAL", "31"]}
163
                        ]]}
164
                      ]]}
165
                    ], "_to" : ["EXPRESSION", {
166
                      "args" : [["EXPRESSION", {
167
                        "args" : [["CONSTANT_VALUE", {
168
                          "value" : ["CST_LITERAL", "0"]}
169
                        ]]}
170
                      ]]}
171
                    ]}
172
                  ]]}
173
                ]}
174
              }
175
            ]}
176
          ]}
177
        , {
178
          "declaration" : ["SIGNAL_DECLARATION", {
179
            "names" : [["IDENTIFIER", "ram"]], "typ" : {
180
              "name" : ["SIMPLE_NAME", "ram_type"]}
181
            , "init_val" : ["EXPRESSION", {
182
              "args" : [["EXPRESSION", {
183
                "args" : [["EXPRESSION", {
184
                  "args" : [["EXPRESSION", {
185
                    "args" : [["AGGREGATE", {
186
                      "elems" : [{
187
                        "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
188
                          "args" : [["EXPRESSION", {
189
                            "args" : [["EXPRESSION", {
190
                              "args" : [["EXPRESSION", {
191
                                "args" : [["AGGREGATE", {
192
                                  "elems" : [{
193
                                    "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
194
                                      "args" : [["EXPRESSION", {
195
                                        "args" : [["EXPRESSION", {
196
                                          "args" : [["EXPRESSION", {
197
                                            "args" : [["CONSTANT_VALUE", {
198
                                              "value" : ["CST_LITERAL", "'0'"]}
199
                                            ]]}
200
                                          ]]}
201
                                        ]]}
202
                                      ]]}
203
                                    ]}
204
                                  ]}
205
                                ]]}
206
                              ]]}
207
                            ]]}
208
                          ]]}
209
                        ]}
210
                      ]}
211
                    ]]}
212
                  ]]}
213
                ]]}
214
              ]]}
215
            ]}
216
          ]}
217
        , {
218
          "declaration" : ["SUBPROGRAM_BODY", {
219
            "spec" : {
220
              "name" : "to_integer", "subprogram_type" : "function", "parameters" : [{
221
                "names" : [["IDENTIFIER", "B"]], "typ" : {
222
                  "name" : ["SIMPLE_NAME", "std_logic"]}
223
                }
224
              ], "typeMark" : ["SIMPLE_NAME", "integer"], "isPure" : false}
225
            , "decl_part" : [["VARIABLE_DECLARATION", {
226
              "names" : [["IDENTIFIER", "V"]], "typ" : {
227
                "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
228
                  "ranges" : [["RANGE_WITH_DIRECTION", {
229
                    "direction" : "to", "from" : ["EXPRESSION", {
230
                      "args" : [["EXPRESSION", {
231
                        "args" : [["CONSTANT_VALUE", {
232
                          "value" : ["CST_LITERAL", "0"]}
233
                        ]]}
234
                      ]]}
235
                    ], "_to" : ["EXPRESSION", {
236
                      "args" : [["EXPRESSION", {
237
                        "args" : [["CONSTANT_VALUE", {
238
                          "value" : ["CST_LITERAL", "0"]}
239
                        ]]}
240
                      ]]}
241
                    ]}
242
                  ]]}
243
                ]}
244
              }
245
            ]], "stmts" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
246
              "lhs" : ["INDEXED_NAME", {
247
                "id" : ["SIMPLE_NAME", "V"], "exprs" : [["EXPRESSION", {
248
                  "args" : [["EXPRESSION", {
249
                    "args" : [["EXPRESSION", {
250
                      "args" : [["EXPRESSION", {
251
                        "args" : [["CONSTANT_VALUE", {
252
                          "value" : ["CST_LITERAL", "0"]}
253
                        ]]}
254
                      ]]}
255
                    ]]}
256
                  ]]}
257
                ]]}
258
              ], "rhs" : ["EXPRESSION", {
259
                "args" : [["EXPRESSION", {
260
                  "args" : [["EXPRESSION", {
261
                    "args" : [["EXPRESSION", {
262
                      "args" : [["CALL", ["SIMPLE_NAME", "B"]]]}
263
                    ]]}
264
                  ]]}
265
                ]]}
266
              ]}
267
            ], ["RETURN_STATEMENT", {
268
              "expr" : ["EXPRESSION", {
269
                "args" : [["EXPRESSION", {
270
                  "args" : [["EXPRESSION", {
271
                    "args" : [["EXPRESSION", {
272
                      "args" : [["CALL", ["FUNCTION_CALL", {
273
                        "id" : ["SIMPLE_NAME", "to_integer"], "assoc_list" : [{
274
                          "actual_expr" : ["EXPRESSION", {
275
                            "args" : [["EXPRESSION", {
276
                              "args" : [["EXPRESSION", {
277
                                "args" : [["EXPRESSION", {
278
                                  "args" : [["CALL", ["FUNCTION_CALL", {
279
                                    "id" : ["SIMPLE_NAME", "unsigned"], "assoc_list" : [{
280
                                      "actual_designator" : ["SIMPLE_NAME", "V"]}
281
                                    ]}
282
                                  ]]]}
283
                                ]]}
284
                              ]]}
285
                            ]]}
286
                          ]}
287
                        ]}
288
                      ]]]}
289
                    ]]}
290
                  ]]}
291
                ]]}
292
              ]}
293
            ]]}
294
          ]}
295
        , {
296
          "declaration" : ["SUBPROGRAM_BODY", {
297
            "spec" : {
298
              "name" : "to_integer", "subprogram_type" : "function", "parameters" : [{
299
                "names" : [["IDENTIFIER", "V"]], "typ" : {
300
                  "name" : ["SIMPLE_NAME", "std_logic_vector"]}
301
                }
302
              ], "typeMark" : ["SIMPLE_NAME", "integer"], "isPure" : false}
303
            , "stmts" : [["RETURN_STATEMENT", {
304
              "expr" : ["EXPRESSION", {
305
                "args" : [["EXPRESSION", {
306
                  "args" : [["EXPRESSION", {
307
                    "args" : [["EXPRESSION", {
308
                      "args" : [["CALL", ["FUNCTION_CALL", {
309
                        "id" : ["SIMPLE_NAME", "to_integer"], "assoc_list" : [{
310
                          "actual_expr" : ["EXPRESSION", {
311
                            "args" : [["EXPRESSION", {
312
                              "args" : [["EXPRESSION", {
313
                                "args" : [["EXPRESSION", {
314
                                  "args" : [["CALL", ["FUNCTION_CALL", {
315
                                    "id" : ["SIMPLE_NAME", "unsigned"], "assoc_list" : [{
316
                                      "actual_designator" : ["SIMPLE_NAME", "V"]}
317
                                    ]}
318
                                  ]]]}
319
                                ]]}
320
                              ]]}
321
                            ]]}
322
                          ]}
323
                        ]}
324
                      ]]]}
325
                    ]]}
326
                  ]]}
327
                ]]}
328
              ]}
329
            ]]}
330
          ]}
331
        ], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
332
          "active_sigs" : [["SIMPLE_NAME", "clk"]], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
333
            "if_cases" : [{
334
              "if_cond" : ["EXPRESSION", {
335
                "args" : [["EXPRESSION", {
336
                  "args" : [["EXPRESSION", {
337
                    "args" : [["EXPRESSION", {
338
                      "args" : [["CALL", ["FUNCTION_CALL", {
339
                        "id" : ["SIMPLE_NAME", "rising_edge"], "assoc_list" : [{
340
                          "actual_designator" : ["SIMPLE_NAME", "clk"]}
341
                        ]}
342
                      ]]]}
343
                    ]]}
344
                  ]]}
345
                ]]}
346
              ], "if_block" : [["IF_STATEMENT", {
347
                "if_cases" : [{
348
                  "if_cond" : ["EXPRESSION", {
349
                    "id" : "=", "args" : [["EXPRESSION", {
350
                      "args" : [["EXPRESSION", {
351
                        "args" : [["EXPRESSION", {
352
                          "args" : [["CALL", ["SIMPLE_NAME", "wa0_en"]]]}
353
                        ]]}
354
                      ]]}
355
                    ], ["EXPRESSION", {
356
                      "args" : [["EXPRESSION", {
357
                        "args" : [["EXPRESSION", {
358
                          "args" : [["CONSTANT_VALUE", {
359
                            "value" : ["CST_LITERAL", "'1'"]}
360
                          ]]}
361
                        ]]}
362
                      ]]}
363
                    ]]}
364
                  ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
365
                    "lhs" : ["INDEXED_NAME", {
366
                      "id" : ["SIMPLE_NAME", "ram"], "exprs" : [["EXPRESSION", {
367
                        "args" : [["EXPRESSION", {
368
                          "args" : [["EXPRESSION", {
369
                            "args" : [["EXPRESSION", {
370
                              "args" : [["CALL", ["FUNCTION_CALL", {
371
                                "id" : ["SIMPLE_NAME", "to_integer"], "assoc_list" : [{
372
                                  "actual_designator" : ["SIMPLE_NAME", "wa0_addr"]}
373
                                ]}
374
                              ]]]}
375
                            ]]}
376
                          ]]}
377
                        ]]}
378
                      ]]}
379
                    ], "rhs" : [{
380
                      "value" : ["EXPRESSION", {
381
                        "args" : [["EXPRESSION", {
382
                          "args" : [["EXPRESSION", {
383
                            "args" : [["EXPRESSION", {
384
                              "args" : [["CALL", ["SIMPLE_NAME", "wa0_data"]]]}
385
                            ]]}
386
                          ]]}
387
                        ]]}
388
                      ]}
389
                    ]}
390
                  ]]}
391
                ]}
392
              ]]}
393
            ]}
394
          ]]}
395
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
396
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "ra0_data"], "rhs" : [{
397
            "expr" : [{
398
              "value" : ["EXPRESSION", {
399
                "args" : [["EXPRESSION", {
400
                  "args" : [["EXPRESSION", {
401
                    "args" : [["EXPRESSION", {
402
                      "args" : [["CALL", ["FUNCTION_CALL", {
403
                        "id" : ["SIMPLE_NAME", "ram"], "assoc_list" : [{
404
                          "actual_expr" : ["EXPRESSION", {
405
                            "args" : [["EXPRESSION", {
406
                              "args" : [["EXPRESSION", {
407
                                "args" : [["EXPRESSION", {
408
                                  "args" : [["CALL", ["FUNCTION_CALL", {
409
                                    "id" : ["SIMPLE_NAME", "to_integer"], "assoc_list" : [{
410
                                      "actual_designator" : ["SIMPLE_NAME", "ra0_addr"]}
411
                                    ]}
412
                                  ]]]}
413
                                ]]}
414
                              ]]}
415
                            ]]}
416
                          ]}
417
                        ]}
418
                      ]]]}
419
                    ]]}
420
                  ]]}
421
                ]]}
422
              ]}
423
            ]}
424
          ]}
425
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
426
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "ra1_data"], "rhs" : [{
427
            "expr" : [{
428
              "value" : ["EXPRESSION", {
429
                "args" : [["EXPRESSION", {
430
                  "args" : [["EXPRESSION", {
431
                    "args" : [["EXPRESSION", {
432
                      "args" : [["CALL", ["FUNCTION_CALL", {
433
                        "id" : ["SIMPLE_NAME", "ram"], "assoc_list" : [{
434
                          "actual_expr" : ["EXPRESSION", {
435
                            "args" : [["EXPRESSION", {
436
                              "args" : [["EXPRESSION", {
437
                                "args" : [["EXPRESSION", {
438
                                  "args" : [["CALL", ["FUNCTION_CALL", {
439
                                    "id" : ["SIMPLE_NAME", "to_integer"], "assoc_list" : [{
440
                                      "actual_designator" : ["SIMPLE_NAME", "ra1_addr"]}
441
                                    ]}
442
                                  ]]]}
443
                                ]]}
444
                              ]]}
445
                            ]]}
446
                          ]}
447
                        ]}
448
                      ]]]}
449
                    ]]}
450
                  ]]}
451
                ]]}
452
              ]}
453
            ]}
454
          ]}
455
        ]]}
456
      ]}
457
    ]}
458
  }
(59-59/66)