Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / vhdl_json / vhdl_files / 2-exportOK / cnes_guidelines / rule / data / STD_05400_bad.json @ 2051e520

History | View | Annotate | Download (15.4 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"]]]]], ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "IEEE"], ["SIMPLE_NAME", "numeric_std"]]]]]], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "STD_05400_bad"], "ports" : [{
6
          "names" : [["IDENTIFIER", "i_A"]], "mode" : ["in"], "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", "3"]}
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", "i_OE"]], "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", "3"]}
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", "o_B"]], "mode" : ["out"], "typ" : {
47
            "name" : ["SIMPLE_NAME", "std_logic"]}
48
          }
49
        ], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
50
      ]}
51
    , {
52
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
53
        "name" : ["IDENTIFIER", "Behavioral"], "entity" : ["IDENTIFIER", "STD_05400_bad"], "ARCHITECTURE_DECLARATIVE_PART" : [], "ARCHITECTURE_STATEMENT_PART" : [["CONDITIONAL_SIGNAL_ASSIGNMENT", {
54
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_B"], "rhs" : [{
55
            "expr" : [{
56
              "value" : ["EXPRESSION", {
57
                "args" : [["EXPRESSION", {
58
                  "args" : [["EXPRESSION", {
59
                    "args" : [["EXPRESSION", {
60
                      "args" : [["CALL", ["FUNCTION_CALL", {
61
                        "id" : ["SIMPLE_NAME", "i_A"], "assoc_list" : [{
62
                          "actual_expr" : ["EXPRESSION", {
63
                            "args" : [["EXPRESSION", {
64
                              "args" : [["EXPRESSION", {
65
                                "args" : [["EXPRESSION", {
66
                                  "args" : [["CONSTANT_VALUE", {
67
                                    "value" : ["CST_LITERAL", "3"]}
68
                                  ]]}
69
                                ]]}
70
                              ]]}
71
                            ]]}
72
                          ]}
73
                        ]}
74
                      ]]]}
75
                    ]]}
76
                  ]]}
77
                ]]}
78
              ]}
79
            ], "cond" : ["EXPRESSION", {
80
              "args" : [["EXPRESSION", {
81
                "args" : [["EXPRESSION", {
82
                  "args" : [["EXPRESSION", {
83
                    "args" : [["EXPRESSION", {
84
                      "id" : "=", "args" : [["EXPRESSION", {
85
                        "args" : [["EXPRESSION", {
86
                          "args" : [["EXPRESSION", {
87
                            "args" : [["CALL", ["FUNCTION_CALL", {
88
                              "id" : ["SIMPLE_NAME", "i_OE"], "assoc_list" : [{
89
                                "actual_expr" : ["EXPRESSION", {
90
                                  "args" : [["EXPRESSION", {
91
                                    "args" : [["EXPRESSION", {
92
                                      "args" : [["EXPRESSION", {
93
                                        "args" : [["CONSTANT_VALUE", {
94
                                          "value" : ["CST_LITERAL", "3"]}
95
                                        ]]}
96
                                      ]]}
97
                                    ]]}
98
                                  ]]}
99
                                ]}
100
                              ]}
101
                            ]]]}
102
                          ]]}
103
                        ]]}
104
                      ], ["EXPRESSION", {
105
                        "args" : [["EXPRESSION", {
106
                          "args" : [["EXPRESSION", {
107
                            "args" : [["CONSTANT_VALUE", {
108
                              "value" : ["CST_LITERAL", "'1'"]}
109
                            ]]}
110
                          ]]}
111
                        ]]}
112
                      ]]}
113
                    ]]}
114
                  ]]}
115
                ]]}
116
              ]]}
117
            ]}
118
          , {
119
            "expr" : [{
120
              "value" : ["EXPRESSION", {
121
                "args" : [["EXPRESSION", {
122
                  "args" : [["EXPRESSION", {
123
                    "args" : [["EXPRESSION", {
124
                      "args" : [["CONSTANT_VALUE", {
125
                        "value" : ["CST_LITERAL", "'Z'"]}
126
                      ]]}
127
                    ]]}
128
                  ]]}
129
                ]]}
130
              ]}
131
            ]}
132
          ]}
133
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
134
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_B"], "rhs" : [{
135
            "expr" : [{
136
              "value" : ["EXPRESSION", {
137
                "args" : [["EXPRESSION", {
138
                  "args" : [["EXPRESSION", {
139
                    "args" : [["EXPRESSION", {
140
                      "args" : [["CALL", ["FUNCTION_CALL", {
141
                        "id" : ["SIMPLE_NAME", "i_A"], "assoc_list" : [{
142
                          "actual_expr" : ["EXPRESSION", {
143
                            "args" : [["EXPRESSION", {
144
                              "args" : [["EXPRESSION", {
145
                                "args" : [["EXPRESSION", {
146
                                  "args" : [["CONSTANT_VALUE", {
147
                                    "value" : ["CST_LITERAL", "2"]}
148
                                  ]]}
149
                                ]]}
150
                              ]]}
151
                            ]]}
152
                          ]}
153
                        ]}
154
                      ]]]}
155
                    ]]}
156
                  ]]}
157
                ]]}
158
              ]}
159
            ], "cond" : ["EXPRESSION", {
160
              "args" : [["EXPRESSION", {
161
                "args" : [["EXPRESSION", {
162
                  "args" : [["EXPRESSION", {
163
                    "args" : [["EXPRESSION", {
164
                      "id" : "=", "args" : [["EXPRESSION", {
165
                        "args" : [["EXPRESSION", {
166
                          "args" : [["EXPRESSION", {
167
                            "args" : [["CALL", ["FUNCTION_CALL", {
168
                              "id" : ["SIMPLE_NAME", "i_OE"], "assoc_list" : [{
169
                                "actual_expr" : ["EXPRESSION", {
170
                                  "args" : [["EXPRESSION", {
171
                                    "args" : [["EXPRESSION", {
172
                                      "args" : [["EXPRESSION", {
173
                                        "args" : [["CONSTANT_VALUE", {
174
                                          "value" : ["CST_LITERAL", "2"]}
175
                                        ]]}
176
                                      ]]}
177
                                    ]]}
178
                                  ]]}
179
                                ]}
180
                              ]}
181
                            ]]]}
182
                          ]]}
183
                        ]]}
184
                      ], ["EXPRESSION", {
185
                        "args" : [["EXPRESSION", {
186
                          "args" : [["EXPRESSION", {
187
                            "args" : [["CONSTANT_VALUE", {
188
                              "value" : ["CST_LITERAL", "'1'"]}
189
                            ]]}
190
                          ]]}
191
                        ]]}
192
                      ]]}
193
                    ]]}
194
                  ]]}
195
                ]]}
196
              ]]}
197
            ]}
198
          , {
199
            "expr" : [{
200
              "value" : ["EXPRESSION", {
201
                "args" : [["EXPRESSION", {
202
                  "args" : [["EXPRESSION", {
203
                    "args" : [["EXPRESSION", {
204
                      "args" : [["CONSTANT_VALUE", {
205
                        "value" : ["CST_LITERAL", "'Z'"]}
206
                      ]]}
207
                    ]]}
208
                  ]]}
209
                ]]}
210
              ]}
211
            ]}
212
          ]}
213
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
214
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_B"], "rhs" : [{
215
            "expr" : [{
216
              "value" : ["EXPRESSION", {
217
                "args" : [["EXPRESSION", {
218
                  "args" : [["EXPRESSION", {
219
                    "args" : [["EXPRESSION", {
220
                      "args" : [["CALL", ["FUNCTION_CALL", {
221
                        "id" : ["SIMPLE_NAME", "i_A"], "assoc_list" : [{
222
                          "actual_expr" : ["EXPRESSION", {
223
                            "args" : [["EXPRESSION", {
224
                              "args" : [["EXPRESSION", {
225
                                "args" : [["EXPRESSION", {
226
                                  "args" : [["CONSTANT_VALUE", {
227
                                    "value" : ["CST_LITERAL", "1"]}
228
                                  ]]}
229
                                ]]}
230
                              ]]}
231
                            ]]}
232
                          ]}
233
                        ]}
234
                      ]]]}
235
                    ]]}
236
                  ]]}
237
                ]]}
238
              ]}
239
            ], "cond" : ["EXPRESSION", {
240
              "args" : [["EXPRESSION", {
241
                "args" : [["EXPRESSION", {
242
                  "args" : [["EXPRESSION", {
243
                    "args" : [["EXPRESSION", {
244
                      "id" : "=", "args" : [["EXPRESSION", {
245
                        "args" : [["EXPRESSION", {
246
                          "args" : [["EXPRESSION", {
247
                            "args" : [["CALL", ["FUNCTION_CALL", {
248
                              "id" : ["SIMPLE_NAME", "i_OE"], "assoc_list" : [{
249
                                "actual_expr" : ["EXPRESSION", {
250
                                  "args" : [["EXPRESSION", {
251
                                    "args" : [["EXPRESSION", {
252
                                      "args" : [["EXPRESSION", {
253
                                        "args" : [["CONSTANT_VALUE", {
254
                                          "value" : ["CST_LITERAL", "1"]}
255
                                        ]]}
256
                                      ]]}
257
                                    ]]}
258
                                  ]]}
259
                                ]}
260
                              ]}
261
                            ]]]}
262
                          ]]}
263
                        ]]}
264
                      ], ["EXPRESSION", {
265
                        "args" : [["EXPRESSION", {
266
                          "args" : [["EXPRESSION", {
267
                            "args" : [["CONSTANT_VALUE", {
268
                              "value" : ["CST_LITERAL", "'1'"]}
269
                            ]]}
270
                          ]]}
271
                        ]]}
272
                      ]]}
273
                    ]]}
274
                  ]]}
275
                ]]}
276
              ]]}
277
            ]}
278
          , {
279
            "expr" : [{
280
              "value" : ["EXPRESSION", {
281
                "args" : [["EXPRESSION", {
282
                  "args" : [["EXPRESSION", {
283
                    "args" : [["EXPRESSION", {
284
                      "args" : [["CONSTANT_VALUE", {
285
                        "value" : ["CST_LITERAL", "'Z'"]}
286
                      ]]}
287
                    ]]}
288
                  ]]}
289
                ]]}
290
              ]}
291
            ]}
292
          ]}
293
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
294
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_B"], "rhs" : [{
295
            "expr" : [{
296
              "value" : ["EXPRESSION", {
297
                "args" : [["EXPRESSION", {
298
                  "args" : [["EXPRESSION", {
299
                    "args" : [["EXPRESSION", {
300
                      "args" : [["CALL", ["FUNCTION_CALL", {
301
                        "id" : ["SIMPLE_NAME", "i_A"], "assoc_list" : [{
302
                          "actual_expr" : ["EXPRESSION", {
303
                            "args" : [["EXPRESSION", {
304
                              "args" : [["EXPRESSION", {
305
                                "args" : [["EXPRESSION", {
306
                                  "args" : [["CONSTANT_VALUE", {
307
                                    "value" : ["CST_LITERAL", "0"]}
308
                                  ]]}
309
                                ]]}
310
                              ]]}
311
                            ]]}
312
                          ]}
313
                        ]}
314
                      ]]]}
315
                    ]]}
316
                  ]]}
317
                ]]}
318
              ]}
319
            ], "cond" : ["EXPRESSION", {
320
              "args" : [["EXPRESSION", {
321
                "args" : [["EXPRESSION", {
322
                  "args" : [["EXPRESSION", {
323
                    "args" : [["EXPRESSION", {
324
                      "id" : "=", "args" : [["EXPRESSION", {
325
                        "args" : [["EXPRESSION", {
326
                          "args" : [["EXPRESSION", {
327
                            "args" : [["CALL", ["FUNCTION_CALL", {
328
                              "id" : ["SIMPLE_NAME", "i_OE"], "assoc_list" : [{
329
                                "actual_expr" : ["EXPRESSION", {
330
                                  "args" : [["EXPRESSION", {
331
                                    "args" : [["EXPRESSION", {
332
                                      "args" : [["EXPRESSION", {
333
                                        "args" : [["CONSTANT_VALUE", {
334
                                          "value" : ["CST_LITERAL", "0"]}
335
                                        ]]}
336
                                      ]]}
337
                                    ]]}
338
                                  ]]}
339
                                ]}
340
                              ]}
341
                            ]]]}
342
                          ]]}
343
                        ]]}
344
                      ], ["EXPRESSION", {
345
                        "args" : [["EXPRESSION", {
346
                          "args" : [["EXPRESSION", {
347
                            "args" : [["CONSTANT_VALUE", {
348
                              "value" : ["CST_LITERAL", "'1'"]}
349
                            ]]}
350
                          ]]}
351
                        ]]}
352
                      ]]}
353
                    ]]}
354
                  ]]}
355
                ]]}
356
              ]]}
357
            ]}
358
          , {
359
            "expr" : [{
360
              "value" : ["EXPRESSION", {
361
                "args" : [["EXPRESSION", {
362
                  "args" : [["EXPRESSION", {
363
                    "args" : [["EXPRESSION", {
364
                      "args" : [["CONSTANT_VALUE", {
365
                        "value" : ["CST_LITERAL", "'Z'"]}
366
                      ]]}
367
                    ]]}
368
                  ]]}
369
                ]]}
370
              ]}
371
            ]}
372
          ]}
373
        ]]}
374
      ]}
375
    ]}
376
  }