Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / vhdl_json / vhdl_files / 2-exportOK / ghdl / ghdl / testsuite / gna / issue50 / idct.d / sub_489.json @ 2051e520

History | View | Annotate | Download (10.8 KB)

1 2051e520 Arnaud Dieumegard
{
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", "sub_489"], "ports" : [{
6
          "names" : [["IDENTIFIER", "result"]], "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", "in_a"]], "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", "in_b"]], "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", "31"]}
53
                    ]]}
54
                  ]]}
55
                ], "_to" : ["EXPRESSION", {
56
                  "args" : [["EXPRESSION", {
57
                    "args" : [["CONSTANT_VALUE", {
58
                      "value" : ["CST_LITERAL", "0"]}
59
                    ]]}
60
                  ]]}
61
                ]}
62
              ]]}
63
            ]}
64
          }
65
        ], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
66
      ]}
67
    , {
68
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
69
        "name" : ["IDENTIFIER", "augh"], "entity" : ["IDENTIFIER", "sub_489"], "ARCHITECTURE_DECLARATIVE_PART" : [{
70
          "declaration" : ["SIGNAL_DECLARATION", {
71
            "names" : [["IDENTIFIER", "carry_inA"]], "typ" : {
72
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
73
                "ranges" : [["RANGE_WITH_DIRECTION", {
74
                  "direction" : "downto", "from" : ["EXPRESSION", {
75
                    "args" : [["EXPRESSION", {
76
                      "args" : [["CONSTANT_VALUE", {
77
                        "value" : ["CST_LITERAL", "33"]}
78
                      ]]}
79
                    ]]}
80
                  ], "_to" : ["EXPRESSION", {
81
                    "args" : [["EXPRESSION", {
82
                      "args" : [["CONSTANT_VALUE", {
83
                        "value" : ["CST_LITERAL", "0"]}
84
                      ]]}
85
                    ]]}
86
                  ]}
87
                ]]}
88
              ]}
89
            }
90
          ]}
91
        , {
92
          "declaration" : ["SIGNAL_DECLARATION", {
93
            "names" : [["IDENTIFIER", "carry_inB"]], "typ" : {
94
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
95
                "ranges" : [["RANGE_WITH_DIRECTION", {
96
                  "direction" : "downto", "from" : ["EXPRESSION", {
97
                    "args" : [["EXPRESSION", {
98
                      "args" : [["CONSTANT_VALUE", {
99
                        "value" : ["CST_LITERAL", "33"]}
100
                      ]]}
101
                    ]]}
102
                  ], "_to" : ["EXPRESSION", {
103
                    "args" : [["EXPRESSION", {
104
                      "args" : [["CONSTANT_VALUE", {
105
                        "value" : ["CST_LITERAL", "0"]}
106
                      ]]}
107
                    ]]}
108
                  ]}
109
                ]]}
110
              ]}
111
            }
112
          ]}
113
        , {
114
          "declaration" : ["SIGNAL_DECLARATION", {
115
            "names" : [["IDENTIFIER", "carry_res"]], "typ" : {
116
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
117
                "ranges" : [["RANGE_WITH_DIRECTION", {
118
                  "direction" : "downto", "from" : ["EXPRESSION", {
119
                    "args" : [["EXPRESSION", {
120
                      "args" : [["CONSTANT_VALUE", {
121
                        "value" : ["CST_LITERAL", "33"]}
122
                      ]]}
123
                    ]]}
124
                  ], "_to" : ["EXPRESSION", {
125
                    "args" : [["EXPRESSION", {
126
                      "args" : [["CONSTANT_VALUE", {
127
                        "value" : ["CST_LITERAL", "0"]}
128
                      ]]}
129
                    ]]}
130
                  ]}
131
                ]]}
132
              ]}
133
            }
134
          ]}
135
        ], "ARCHITECTURE_STATEMENT_PART" : [["CONDITIONAL_SIGNAL_ASSIGNMENT", {
136
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "carry_inA"], "rhs" : [{
137
            "expr" : [{
138
              "value" : ["EXPRESSION", {
139
                "args" : [["EXPRESSION", {
140
                  "args" : [["EXPRESSION", {
141
                    "args" : [["EXPRESSION", {
142
                      "id" : "&", "args" : [["EXPRESSION", {
143
                        "id" : "&", "args" : [["EXPRESSION", {
144
                          "args" : [["CONSTANT_VALUE", {
145
                            "value" : ["CST_LITERAL", "'0'"]}
146
                          ]]}
147
                        ], ["EXPRESSION", {
148
                          "args" : [["CALL", ["SIMPLE_NAME", "in_a"]]]}
149
                        ]]}
150
                      ], ["EXPRESSION", {
151
                        "args" : [["CONSTANT_VALUE", {
152
                          "value" : ["CST_LITERAL", "'0'"]}
153
                        ]]}
154
                      ]]}
155
                    ]]}
156
                  ]]}
157
                ]]}
158
              ]}
159
            ]}
160
          ]}
161
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
162
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "carry_inB"], "rhs" : [{
163
            "expr" : [{
164
              "value" : ["EXPRESSION", {
165
                "args" : [["EXPRESSION", {
166
                  "args" : [["EXPRESSION", {
167
                    "args" : [["EXPRESSION", {
168
                      "id" : "&", "args" : [["EXPRESSION", {
169
                        "id" : "&", "args" : [["EXPRESSION", {
170
                          "args" : [["CONSTANT_VALUE", {
171
                            "value" : ["CST_LITERAL", "'0'"]}
172
                          ]]}
173
                        ], ["EXPRESSION", {
174
                          "args" : [["CALL", ["SIMPLE_NAME", "in_b"]]]}
175
                        ]]}
176
                      ], ["EXPRESSION", {
177
                        "args" : [["CONSTANT_VALUE", {
178
                          "value" : ["CST_LITERAL", "'0'"]}
179
                        ]]}
180
                      ]]}
181
                    ]]}
182
                  ]]}
183
                ]]}
184
              ]}
185
            ]}
186
          ]}
187
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
188
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "carry_res"], "rhs" : [{
189
            "expr" : [{
190
              "value" : ["EXPRESSION", {
191
                "args" : [["EXPRESSION", {
192
                  "args" : [["EXPRESSION", {
193
                    "args" : [["EXPRESSION", {
194
                      "args" : [["CALL", ["FUNCTION_CALL", {
195
                        "id" : ["SIMPLE_NAME", "std_logic_vector"], "assoc_list" : [{
196
                          "actual_expr" : ["EXPRESSION", {
197
                            "args" : [["EXPRESSION", {
198
                              "args" : [["EXPRESSION", {
199
                                "args" : [["EXPRESSION", {
200
                                  "id" : "-", "args" : [["EXPRESSION", {
201
                                    "args" : [["CALL", ["FUNCTION_CALL", {
202
                                      "id" : ["SIMPLE_NAME", "unsigned"], "assoc_list" : [{
203
                                        "actual_designator" : ["SIMPLE_NAME", "carry_inA"]}
204
                                      ]}
205
                                    ]]]}
206
                                  ], ["EXPRESSION", {
207
                                    "args" : [["CALL", ["FUNCTION_CALL", {
208
                                      "id" : ["SIMPLE_NAME", "unsigned"], "assoc_list" : [{
209
                                        "actual_designator" : ["SIMPLE_NAME", "carry_inB"]}
210
                                      ]}
211
                                    ]]]}
212
                                  ]]}
213
                                ]]}
214
                              ]]}
215
                            ]]}
216
                          ]}
217
                        ]}
218
                      ]]]}
219
                    ]]}
220
                  ]]}
221
                ]]}
222
              ]}
223
            ]}
224
          ]}
225
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
226
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "result"], "rhs" : [{
227
            "expr" : [{
228
              "value" : ["EXPRESSION", {
229
                "args" : [["EXPRESSION", {
230
                  "args" : [["EXPRESSION", {
231
                    "args" : [["EXPRESSION", {
232
                      "args" : [["CALL", ["SLICE_NAME", {
233
                        "id" : ["SIMPLE_NAME", "carry_res"], "range" : ["RANGE_WITH_DIRECTION", {
234
                          "direction" : "downto", "from" : ["EXPRESSION", {
235
                            "args" : [["EXPRESSION", {
236
                              "args" : [["CONSTANT_VALUE", {
237
                                "value" : ["CST_LITERAL", "32"]}
238
                              ]]}
239
                            ]]}
240
                          ], "_to" : ["EXPRESSION", {
241
                            "args" : [["EXPRESSION", {
242
                              "args" : [["CONSTANT_VALUE", {
243
                                "value" : ["CST_LITERAL", "1"]}
244
                              ]]}
245
                            ]]}
246
                          ]}
247
                        ]}
248
                      ]]]}
249
                    ]]}
250
                  ]]}
251
                ]]}
252
              ]}
253
            ]}
254
          ]}
255
        ]]}
256
      ]}
257
    ]}
258
  }