Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / vhdl_json / vhdl_files / 2-exportOK / ghdl / ghdl / testsuite / gna / bug040 / p_jinfo_comps_info_dc_tbl_no.json @ 2051e520

History | View | Annotate | Download (12.8 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_CLAUSE", [["IDENTIFIER", "ieee"]]], ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "ieee"], ["SIMPLE_NAME", "numeric_std"]]]]]], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "p_jinfo_comps_info_dc_tbl_no"], "ports" : [{
6
          "names" : [["IDENTIFIER", "wa0_data"]], "mode" : ["in"], "typ" : {
7
            "name" : ["SIMPLE_NAME", "std_logic"]}
8
          }
9
        , {
10
          "names" : [["IDENTIFIER", "wa0_addr"]], "mode" : ["in"], "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", "1"]}
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", "clk"]], "mode" : ["in"], "typ" : {
31
            "name" : ["SIMPLE_NAME", "std_logic"]}
32
          }
33
        , {
34
          "names" : [["IDENTIFIER", "ra0_addr"]], "mode" : ["in"], "typ" : {
35
            "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
36
              "ranges" : [["RANGE_WITH_DIRECTION", {
37
                "direction" : "downto", "from" : ["EXPRESSION", {
38
                  "args" : [["EXPRESSION", {
39
                    "args" : [["CONSTANT_VALUE", {
40
                      "value" : ["CST_LITERAL", "1"]}
41
                    ]]}
42
                  ]]}
43
                ], "_to" : ["EXPRESSION", {
44
                  "args" : [["EXPRESSION", {
45
                    "args" : [["CONSTANT_VALUE", {
46
                      "value" : ["CST_LITERAL", "0"]}
47
                    ]]}
48
                  ]]}
49
                ]}
50
              ]]}
51
            ]}
52
          }
53
        , {
54
          "names" : [["IDENTIFIER", "ra0_data"]], "mode" : ["out"], "typ" : {
55
            "name" : ["SIMPLE_NAME", "std_logic"]}
56
          }
57
        , {
58
          "names" : [["IDENTIFIER", "wa0_en"]], "mode" : ["in"], "typ" : {
59
            "name" : ["SIMPLE_NAME", "std_logic"]}
60
          }
61
        ], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
62
      ]}
63
    , {
64
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
65
        "name" : ["IDENTIFIER", "augh"], "entity" : ["IDENTIFIER", "p_jinfo_comps_info_dc_tbl_no"], "ARCHITECTURE_DECLARATIVE_PART" : [{
66
          "definition" : ["TYPE_DECLARATION", {
67
            "name" : ["IDENTIFIER", "ram_type"], "definition" : ["ARRAY_TYPE_DEFINITION", {
68
              "const" : ["INDEX_CONSTRAINT", {
69
                "ranges" : [["RANGE_WITH_DIRECTION", {
70
                  "direction" : "to", "from" : ["EXPRESSION", {
71
                    "args" : [["EXPRESSION", {
72
                      "args" : [["CONSTANT_VALUE", {
73
                        "value" : ["CST_LITERAL", "0"]}
74
                      ]]}
75
                    ]]}
76
                  ], "_to" : ["EXPRESSION", {
77
                    "args" : [["EXPRESSION", {
78
                      "args" : [["CONSTANT_VALUE", {
79
                        "value" : ["CST_LITERAL", "2"]}
80
                      ]]}
81
                    ]]}
82
                  ]}
83
                ]]}
84
              ], "definition" : {
85
                "name" : ["SIMPLE_NAME", "std_logic"]}
86
              }
87
            ]}
88
          ]}
89
        , {
90
          "declaration" : ["SIGNAL_DECLARATION", {
91
            "names" : [["IDENTIFIER", "ram"]], "typ" : {
92
              "name" : ["SIMPLE_NAME", "ram_type"]}
93
            , "init_val" : ["EXPRESSION", {
94
              "args" : [["EXPRESSION", {
95
                "args" : [["EXPRESSION", {
96
                  "args" : [["EXPRESSION", {
97
                    "args" : [["AGGREGATE", {
98
                      "elems" : [{
99
                        "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
100
                          "args" : [["EXPRESSION", {
101
                            "args" : [["EXPRESSION", {
102
                              "args" : [["EXPRESSION", {
103
                                "args" : [["CONSTANT_VALUE", {
104
                                  "value" : ["CST_LITERAL", "'0'"]}
105
                                ]]}
106
                              ]]}
107
                            ]]}
108
                          ]]}
109
                        ]}
110
                      ]}
111
                    ]]}
112
                  ]]}
113
                ]]}
114
              ]]}
115
            ]}
116
          ]}
117
        , {
118
          "declaration" : ["SUBPROGRAM_BODY", {
119
            "spec" : {
120
              "name" : "to_integer", "subprogram_type" : "function", "parameters" : [{
121
                "names" : [["IDENTIFIER", "B"]], "typ" : {
122
                  "name" : ["SIMPLE_NAME", "std_logic"]}
123
                }
124
              ], "typeMark" : ["SIMPLE_NAME", "integer"], "isPure" : false}
125
            , "decl_part" : [["VARIABLE_DECLARATION", {
126
              "names" : [["IDENTIFIER", "V"]], "typ" : {
127
                "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
128
                  "ranges" : [["RANGE_WITH_DIRECTION", {
129
                    "direction" : "to", "from" : ["EXPRESSION", {
130
                      "args" : [["EXPRESSION", {
131
                        "args" : [["CONSTANT_VALUE", {
132
                          "value" : ["CST_LITERAL", "0"]}
133
                        ]]}
134
                      ]]}
135
                    ], "_to" : ["EXPRESSION", {
136
                      "args" : [["EXPRESSION", {
137
                        "args" : [["CONSTANT_VALUE", {
138
                          "value" : ["CST_LITERAL", "0"]}
139
                        ]]}
140
                      ]]}
141
                    ]}
142
                  ]]}
143
                ]}
144
              }
145
            ]], "stmts" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
146
              "lhs" : ["INDEXED_NAME", {
147
                "id" : ["SIMPLE_NAME", "V"], "exprs" : [["EXPRESSION", {
148
                  "args" : [["EXPRESSION", {
149
                    "args" : [["EXPRESSION", {
150
                      "args" : [["EXPRESSION", {
151
                        "args" : [["CONSTANT_VALUE", {
152
                          "value" : ["CST_LITERAL", "0"]}
153
                        ]]}
154
                      ]]}
155
                    ]]}
156
                  ]]}
157
                ]]}
158
              ], "rhs" : ["EXPRESSION", {
159
                "args" : [["EXPRESSION", {
160
                  "args" : [["EXPRESSION", {
161
                    "args" : [["EXPRESSION", {
162
                      "args" : [["CALL", ["SIMPLE_NAME", "B"]]]}
163
                    ]]}
164
                  ]]}
165
                ]]}
166
              ]}
167
            ], ["RETURN_STATEMENT", {
168
              }
169
            ]]}
170
          ]}
171
        , {
172
          "declaration" : ["SUBPROGRAM_BODY", {
173
            "spec" : {
174
              "name" : "to_integer", "subprogram_type" : "function", "parameters" : [{
175
                "names" : [["IDENTIFIER", "V"]], "typ" : {
176
                  "name" : ["SIMPLE_NAME", "std_logic_vector"]}
177
                }
178
              ], "typeMark" : ["SIMPLE_NAME", "integer"], "isPure" : false}
179
            , "stmts" : [["RETURN_STATEMENT", {
180
              }
181
            ]]}
182
          ]}
183
        ], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
184
          "active_sigs" : [["SIMPLE_NAME", "clk"]], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
185
            "if_cases" : [{
186
              "if_cond" : ["EXPRESSION", {
187
                "args" : [["EXPRESSION", {
188
                  "args" : [["EXPRESSION", {
189
                    "args" : [["EXPRESSION", {
190
                      "args" : [["CALL", ["FUNCTION_CALL", {
191
                        "id" : ["SIMPLE_NAME", "rising_edge"], "assoc_list" : [{
192
                          "actual_designator" : ["SIMPLE_NAME", "clk"]}
193
                        ]}
194
                      ]]]}
195
                    ]]}
196
                  ]]}
197
                ]]}
198
              ], "if_block" : [["IF_STATEMENT", {
199
                "if_cases" : [{
200
                  "if_cond" : ["EXPRESSION", {
201
                    "id" : "=", "args" : [["EXPRESSION", {
202
                      "args" : [["EXPRESSION", {
203
                        "args" : [["EXPRESSION", {
204
                          "args" : [["CALL", ["SIMPLE_NAME", "wa0_en"]]]}
205
                        ]]}
206
                      ]]}
207
                    ], ["EXPRESSION", {
208
                      "args" : [["EXPRESSION", {
209
                        "args" : [["EXPRESSION", {
210
                          "args" : [["CONSTANT_VALUE", {
211
                            "value" : ["CST_LITERAL", "'1'"]}
212
                          ]]}
213
                        ]]}
214
                      ]]}
215
                    ]]}
216
                  ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
217
                    "lhs" : ["INDEXED_NAME", {
218
                      "id" : ["SIMPLE_NAME", "ram"], "exprs" : [["EXPRESSION", {
219
                        "args" : [["EXPRESSION", {
220
                          "args" : [["EXPRESSION", {
221
                            "args" : [["EXPRESSION", {
222
                              "args" : [["CALL", ["FUNCTION_CALL", {
223
                                "id" : ["SIMPLE_NAME", "to_integer"], "assoc_list" : [{
224
                                  "actual_designator" : ["SIMPLE_NAME", "wa0_addr"]}
225
                                ]}
226
                              ]]]}
227
                            ]]}
228
                          ]]}
229
                        ]]}
230
                      ]]}
231
                    ], "rhs" : [{
232
                      "value" : ["EXPRESSION", {
233
                        "args" : [["EXPRESSION", {
234
                          "args" : [["EXPRESSION", {
235
                            "args" : [["EXPRESSION", {
236
                              "args" : [["CALL", ["SIMPLE_NAME", "wa0_data"]]]}
237
                            ]]}
238
                          ]]}
239
                        ]]}
240
                      ]}
241
                    ]}
242
                  ]]}
243
                ]}
244
              ]]}
245
            ]}
246
          ]]}
247
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
248
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "ra0_data"], "rhs" : [{
249
            "expr" : [{
250
              "value" : ["EXPRESSION", {
251
                "args" : [["EXPRESSION", {
252
                  "args" : [["EXPRESSION", {
253
                    "args" : [["EXPRESSION", {
254
                      "args" : [["CALL", ["FUNCTION_CALL", {
255
                        "id" : ["SIMPLE_NAME", "ram"], "assoc_list" : [{
256
                          "actual_expr" : ["EXPRESSION", {
257
                            "args" : [["EXPRESSION", {
258
                              "args" : [["EXPRESSION", {
259
                                "args" : [["EXPRESSION", {
260
                                  "args" : [["CALL", ["FUNCTION_CALL", {
261
                                    "id" : ["SIMPLE_NAME", "to_integer"], "assoc_list" : [{
262
                                      "actual_designator" : ["SIMPLE_NAME", "ra0_addr"]}
263
                                    ]}
264
                                  ]]]}
265
                                ]]}
266
                              ]]}
267
                            ]]}
268
                          ]}
269
                        ]}
270
                      ]]]}
271
                    ]]}
272
                  ]]}
273
                ]]}
274
              ]}
275
            ], "cond" : ["EXPRESSION", {
276
              "id" : "<", "args" : [["EXPRESSION", {
277
                "args" : [["EXPRESSION", {
278
                  "args" : [["EXPRESSION", {
279
                    "args" : [["CALL", ["FUNCTION_CALL", {
280
                      "id" : ["SIMPLE_NAME", "to_integer"], "assoc_list" : [{
281
                        "actual_designator" : ["SIMPLE_NAME", "ra0_addr"]}
282
                      ]}
283
                    ]]]}
284
                  ]]}
285
                ]]}
286
              ], ["EXPRESSION", {
287
                "args" : [["EXPRESSION", {
288
                  "args" : [["EXPRESSION", {
289
                    "args" : [["CONSTANT_VALUE", {
290
                      "value" : ["CST_LITERAL", "3"]}
291
                    ]]}
292
                  ]]}
293
                ]]}
294
              ]]}
295
            ]}
296
          , {
297
            "expr" : [{
298
              "value" : ["EXPRESSION", {
299
                "args" : [["EXPRESSION", {
300
                  "args" : [["EXPRESSION", {
301
                    "args" : [["EXPRESSION", {
302
                      "args" : [["CONSTANT_VALUE", {
303
                        "value" : ["CST_LITERAL", "'-'"]}
304
                      ]]}
305
                    ]]}
306
                  ]]}
307
                ]]}
308
              ]}
309
            ]}
310
          ]}
311
        ]]}
312
      ]}
313
    ]}
314
  }