Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / vhdl_json / vhdl_files / 2-exportOK / cnes_guidelines / rule / data / STD_05400_bad.json @ 3fd18385

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