Project

General

Profile

Download (11.9 KB) Statistics
| Branch: | Tag: | Revision:
1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "inline_07"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [["LIBRARY_CLAUSE", [["IDENTIFIER", "ieee"]]], ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "ieee"], ["SIMPLE_NAME", "numeric_bit"]]]]]], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "test"], "entity" : ["IDENTIFIER", "inline_07"], "ARCHITECTURE_DECLARATIVE_PART" : [], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
10
          "id" : ["IDENTIFIER", "process_5_a"], "PROCESS_DECLARATIVE_PART" : [{
11
            "declaration" : ["SUBPROGRAM_BODY", {
12
              "spec" : {
13
                "name" : "increment", "subprogram_type" : "procedure", "parameters" : [{
14
                  "names" : [["IDENTIFIER", "a"]], "mode" : ["inout"], "typ" : {
15
                    "name" : ["SIMPLE_NAME", "integer"]}
16
                  }
17
                , {
18
                  "names" : [["IDENTIFIER", "n"]], "mode" : ["in"], "typ" : {
19
                    "name" : ["SIMPLE_NAME", "integer"]}
20
                  , "expr" : ["EXPRESSION", {
21
                    "args" : [["EXPRESSION", {
22
                      "args" : [["EXPRESSION", {
23
                        "args" : [["EXPRESSION", {
24
                          "args" : [["CONSTANT_VALUE", {
25
                            "value" : ["CST_LITERAL", "1"]}
26
                          ]]}
27
                        ]]}
28
                      ]]}
29
                    ]]}
30
                  ]}
31
                ]}
32
              , "stmts" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
33
                "lhs" : ["SIMPLE_NAME", "a"], "rhs" : ["EXPRESSION", {
34
                  "args" : [["EXPRESSION", {
35
                    "args" : [["EXPRESSION", {
36
                      "args" : [["EXPRESSION", {
37
                        "id" : "+", "args" : [["EXPRESSION", {
38
                          "args" : [["CALL", ["SIMPLE_NAME", "a"]]]}
39
                        ], ["EXPRESSION", {
40
                          "args" : [["CALL", ["SIMPLE_NAME", "n"]]]}
41
                        ]]}
42
                      ]]}
43
                    ]]}
44
                  ]]}
45
                ]}
46
              ]]}
47
            ]}
48
          , {
49
            "declaration" : ["SUBPROGRAM_BODY", {
50
              "spec" : {
51
                "name" : "increment", "subprogram_type" : "procedure", "parameters" : [{
52
                  "names" : [["IDENTIFIER", "a"]], "mode" : ["inout"], "typ" : {
53
                    "name" : ["SIMPLE_NAME", "bit_vector"]}
54
                  }
55
                , {
56
                  "names" : [["IDENTIFIER", "n"]], "mode" : ["in"], "typ" : {
57
                    "name" : ["SIMPLE_NAME", "bit_vector"]}
58
                  , "expr" : ["EXPRESSION", {
59
                    "args" : [["EXPRESSION", {
60
                      "args" : [["EXPRESSION", {
61
                        "args" : [["EXPRESSION", {
62
                          "args" : [["CONSTANT_VALUE", {
63
                            "value" : ["CST_LITERAL", "B\"1\""]}
64
                          ]]}
65
                        ]]}
66
                      ]]}
67
                    ]]}
68
                  ]}
69
                ]}
70
              , "stmts" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
71
                "lhs" : ["SIMPLE_NAME", "a"], "rhs" : ["EXPRESSION", {
72
                  "args" : [["EXPRESSION", {
73
                    "args" : [["EXPRESSION", {
74
                      "args" : [["EXPRESSION", {
75
                        "args" : [["CALL", ["FUNCTION_CALL", {
76
                          "id" : ["SIMPLE_NAME", "bit_vector"], "assoc_list" : [{
77
                            "actual_expr" : ["EXPRESSION", {
78
                              "args" : [["EXPRESSION", {
79
                                "args" : [["EXPRESSION", {
80
                                  "args" : [["EXPRESSION", {
81
                                    "id" : "+", "args" : [["EXPRESSION", {
82
                                      "args" : [["CALL", ["FUNCTION_CALL", {
83
                                        "id" : ["SIMPLE_NAME", "signed"], "assoc_list" : [{
84
                                          "actual_designator" : ["SIMPLE_NAME", "a"]}
85
                                        ]}
86
                                      ]]]}
87
                                    ], ["EXPRESSION", {
88
                                      "args" : [["CALL", ["FUNCTION_CALL", {
89
                                        "id" : ["SIMPLE_NAME", "signed"], "assoc_list" : [{
90
                                          "actual_designator" : ["SIMPLE_NAME", "n"]}
91
                                        ]}
92
                                      ]]]}
93
                                    ]]}
94
                                  ]]}
95
                                ]]}
96
                              ]]}
97
                            ]}
98
                          ]}
99
                        ]]]}
100
                      ]]}
101
                    ]]}
102
                  ]]}
103
                ]}
104
              ]]}
105
            ]}
106
          , {
107
            "declaration" : ["SUBPROGRAM_BODY", {
108
              "spec" : {
109
                "name" : "increment", "subprogram_type" : "procedure", "parameters" : [{
110
                  "names" : [["IDENTIFIER", "a"]], "mode" : ["inout"], "typ" : {
111
                    "name" : ["SIMPLE_NAME", "bit_vector"]}
112
                  }
113
                , {
114
                  "names" : [["IDENTIFIER", "n"]], "mode" : ["in"], "typ" : {
115
                    "name" : ["SIMPLE_NAME", "integer"]}
116
                  , "expr" : ["EXPRESSION", {
117
                    "args" : [["EXPRESSION", {
118
                      "args" : [["EXPRESSION", {
119
                        "args" : [["EXPRESSION", {
120
                          "args" : [["CONSTANT_VALUE", {
121
                            "value" : ["CST_LITERAL", "1"]}
122
                          ]]}
123
                        ]]}
124
                      ]]}
125
                    ]]}
126
                  ]}
127
                ]}
128
              , "stmts" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
129
                "lhs" : ["SIMPLE_NAME", "a"], "rhs" : ["EXPRESSION", {
130
                  "args" : [["EXPRESSION", {
131
                    "args" : [["EXPRESSION", {
132
                      "args" : [["EXPRESSION", {
133
                        "args" : [["CALL", ["FUNCTION_CALL", {
134
                          "id" : ["SIMPLE_NAME", "bit_vector"], "assoc_list" : [{
135
                            "actual_expr" : ["EXPRESSION", {
136
                              "args" : [["EXPRESSION", {
137
                                "args" : [["EXPRESSION", {
138
                                  "args" : [["EXPRESSION", {
139
                                    "id" : "+", "args" : [["EXPRESSION", {
140
                                      "args" : [["CALL", ["FUNCTION_CALL", {
141
                                        "id" : ["SIMPLE_NAME", "signed"], "assoc_list" : [{
142
                                          "actual_designator" : ["SIMPLE_NAME", "a"]}
143
                                        ]}
144
                                      ]]]}
145
                                    ], ["EXPRESSION", {
146
                                      "args" : [["CALL", ["FUNCTION_CALL", {
147
                                        "id" : ["SIMPLE_NAME", "to_signed"], "assoc_list" : [{
148
                                          "actual_designator" : ["SIMPLE_NAME", "n"]}
149
                                        , {
150
                                          "actual_designator" : ["ATTRIBUTE_NAME", {
151
                                            "id" : ["SIMPLE_NAME", "a"], "designator" : ["SIMPLE_NAME", "length"]}
152
                                          ]}
153
                                        ]}
154
                                      ]]]}
155
                                    ]]}
156
                                  ]]}
157
                                ]]}
158
                              ]]}
159
                            ]}
160
                          ]}
161
                        ]]]}
162
                      ]]}
163
                    ]]}
164
                  ]]}
165
                ]}
166
              ]]}
167
            ]}
168
          , {
169
            "declaration" : ["VARIABLE_DECLARATION", {
170
              "names" : [["IDENTIFIER", "count_int"]], "typ" : {
171
                "name" : ["SIMPLE_NAME", "integer"]}
172
              , "init_val" : ["EXPRESSION", {
173
                "args" : [["EXPRESSION", {
174
                  "args" : [["EXPRESSION", {
175
                    "args" : [["EXPRESSION", {
176
                      "args" : [["CONSTANT_VALUE", {
177
                        "value" : ["CST_LITERAL", "2"]}
178
                      ]]}
179
                    ]]}
180
                  ]]}
181
                ]]}
182
              ]}
183
            ]}
184
          , {
185
            "declaration" : ["VARIABLE_DECLARATION", {
186
              "names" : [["IDENTIFIER", "count_bv"]], "typ" : {
187
                "name" : ["SIMPLE_NAME", "bit_vector"], "const" : ["INDEX_CONSTRAINT", {
188
                  "ranges" : [["RANGE_WITH_DIRECTION", {
189
                    "direction" : "downto", "from" : ["EXPRESSION", {
190
                      "args" : [["EXPRESSION", {
191
                        "args" : [["CONSTANT_VALUE", {
192
                          "value" : ["CST_LITERAL", "15"]}
193
                        ]]}
194
                      ]]}
195
                    ], "_to" : ["EXPRESSION", {
196
                      "args" : [["EXPRESSION", {
197
                        "args" : [["CONSTANT_VALUE", {
198
                          "value" : ["CST_LITERAL", "0"]}
199
                        ]]}
200
                      ]]}
201
                    ]}
202
                  ]]}
203
                ]}
204
              , "init_val" : ["EXPRESSION", {
205
                "args" : [["EXPRESSION", {
206
                  "args" : [["EXPRESSION", {
207
                    "args" : [["EXPRESSION", {
208
                      "args" : [["CONSTANT_VALUE", {
209
                        "value" : ["CST_LITERAL", "X\"0002\""]}
210
                      ]]}
211
                    ]]}
212
                  ]]}
213
                ]]}
214
              ]}
215
            ]}
216
          ], "PROCESS_STATEMENT_PART" : [["PROCEDURE_CALL_STATEMENT", {
217
            "name" : ["IDENTIFIER", "increment"], "assocs" : [{
218
              "actual_designator" : ["SIMPLE_NAME", "count_int"]}
219
            , {
220
              "actual_expr" : ["EXPRESSION", {
221
                "args" : [["EXPRESSION", {
222
                  "args" : [["EXPRESSION", {
223
                    "args" : [["EXPRESSION", {
224
                      "args" : [["CONSTANT_VALUE", {
225
                        "value" : ["CST_LITERAL", "2"]}
226
                      ]]}
227
                    ]]}
228
                  ]]}
229
                ]]}
230
              ]}
231
            ]}
232
          ], ["PROCEDURE_CALL_STATEMENT", {
233
            "name" : ["IDENTIFIER", "increment"], "assocs" : [{
234
              "actual_designator" : ["SIMPLE_NAME", "count_int"]}
235
            ]}
236
          ], ["PROCEDURE_CALL_STATEMENT", {
237
            "name" : ["IDENTIFIER", "increment"], "assocs" : [{
238
              "actual_designator" : ["SIMPLE_NAME", "count_bv"]}
239
            , {
240
              "actual_expr" : ["EXPRESSION", {
241
                "args" : [["EXPRESSION", {
242
                  "args" : [["EXPRESSION", {
243
                    "args" : [["EXPRESSION", {
244
                      "args" : [["CONSTANT_VALUE", {
245
                        "value" : ["CST_LITERAL", "X\"0002\""]}
246
                      ]]}
247
                    ]]}
248
                  ]]}
249
                ]]}
250
              ]}
251
            ]}
252
          ], ["PROCEDURE_CALL_STATEMENT", {
253
            "name" : ["IDENTIFIER", "increment"], "assocs" : [{
254
              "actual_designator" : ["SIMPLE_NAME", "count_bv"]}
255
            , {
256
              "actual_expr" : ["EXPRESSION", {
257
                "args" : [["EXPRESSION", {
258
                  "args" : [["EXPRESSION", {
259
                    "args" : [["EXPRESSION", {
260
                      "args" : [["CONSTANT_VALUE", {
261
                        "value" : ["CST_LITERAL", "1"]}
262
                      ]]}
263
                    ]]}
264
                  ]]}
265
                ]]}
266
              ]}
267
            ]}
268
          ], ["WAIT_STATEMENT"]]}
269
        ]]}
270
      ]}
271
    ]}
272
  }
(7-7/12)