Project

General

Profile

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