Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (11.1 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_good"], "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_Sel"]], "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_good"], "ARCHITECTURE_DECLARATIVE_PART" : [{
54
          "declaration" : ["SIGNAL_DECLARATION", {
55
            "names" : [["IDENTIFIER", "B"]], "typ" : {
56
              "name" : ["SIMPLE_NAME", "std_logic"]}
57
            }
58
          ]}
59
        ], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
60
          "id" : ["IDENTIFIER", "P_Mux"], "active_sigs" : [["SIMPLE_NAME", "i_A"], ["SIMPLE_NAME", "i_Sel"]], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
61
            "if_cases" : [{
62
              "if_cond" : ["EXPRESSION", {
63
                "args" : [["EXPRESSION", {
64
                  "args" : [["EXPRESSION", {
65
                    "args" : [["EXPRESSION", {
66
                      "args" : [["EXPRESSION", {
67
                        "id" : "=", "args" : [["EXPRESSION", {
68
                          "args" : [["EXPRESSION", {
69
                            "args" : [["EXPRESSION", {
70
                              "args" : [["CALL", ["SIMPLE_NAME", "i_Sel"]]]}
71
                            ]]}
72
                          ]]}
73
                        ], ["EXPRESSION", {
74
                          "args" : [["EXPRESSION", {
75
                            "args" : [["EXPRESSION", {
76
                              "args" : [["CONSTANT_VALUE", {
77
                                "value" : ["CST_LITERAL", "\"00\""]}
78
                              ]]}
79
                            ]]}
80
                          ]]}
81
                        ]]}
82
                      ]]}
83
                    ]]}
84
                  ]]}
85
                ]]}
86
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
87
                "lhs" : ["SIMPLE_NAME", "B"], "rhs" : [{
88
                  "value" : ["EXPRESSION", {
89
                    "args" : [["EXPRESSION", {
90
                      "args" : [["EXPRESSION", {
91
                        "args" : [["EXPRESSION", {
92
                          "args" : [["CALL", ["FUNCTION_CALL", {
93
                            "id" : ["SIMPLE_NAME", "i_A"], "assoc_list" : [{
94
                              "actual_expr" : ["EXPRESSION", {
95
                                "args" : [["EXPRESSION", {
96
                                  "args" : [["EXPRESSION", {
97
                                    "args" : [["EXPRESSION", {
98
                                      "args" : [["CONSTANT_VALUE", {
99
                                        "value" : ["CST_LITERAL", "0"]}
100
                                      ]]}
101
                                    ]]}
102
                                  ]]}
103
                                ]]}
104
                              ]}
105
                            ]}
106
                          ]]]}
107
                        ]]}
108
                      ]]}
109
                    ]]}
110
                  ]}
111
                ]}
112
              ]]}
113
            , {
114
              "if_cond" : ["EXPRESSION", {
115
                "args" : [["EXPRESSION", {
116
                  "args" : [["EXPRESSION", {
117
                    "args" : [["EXPRESSION", {
118
                      "args" : [["EXPRESSION", {
119
                        "id" : "=", "args" : [["EXPRESSION", {
120
                          "args" : [["EXPRESSION", {
121
                            "args" : [["EXPRESSION", {
122
                              "args" : [["CALL", ["SIMPLE_NAME", "i_Sel"]]]}
123
                            ]]}
124
                          ]]}
125
                        ], ["EXPRESSION", {
126
                          "args" : [["EXPRESSION", {
127
                            "args" : [["EXPRESSION", {
128
                              "args" : [["CONSTANT_VALUE", {
129
                                "value" : ["CST_LITERAL", "\"01\""]}
130
                              ]]}
131
                            ]]}
132
                          ]]}
133
                        ]]}
134
                      ]]}
135
                    ]]}
136
                  ]]}
137
                ]]}
138
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
139
                "lhs" : ["SIMPLE_NAME", "B"], "rhs" : [{
140
                  "value" : ["EXPRESSION", {
141
                    "args" : [["EXPRESSION", {
142
                      "args" : [["EXPRESSION", {
143
                        "args" : [["EXPRESSION", {
144
                          "args" : [["CALL", ["FUNCTION_CALL", {
145
                            "id" : ["SIMPLE_NAME", "i_A"], "assoc_list" : [{
146
                              "actual_expr" : ["EXPRESSION", {
147
                                "args" : [["EXPRESSION", {
148
                                  "args" : [["EXPRESSION", {
149
                                    "args" : [["EXPRESSION", {
150
                                      "args" : [["CONSTANT_VALUE", {
151
                                        "value" : ["CST_LITERAL", "1"]}
152
                                      ]]}
153
                                    ]]}
154
                                  ]]}
155
                                ]]}
156
                              ]}
157
                            ]}
158
                          ]]]}
159
                        ]]}
160
                      ]]}
161
                    ]]}
162
                  ]}
163
                ]}
164
              ]]}
165
            , {
166
              "if_cond" : ["EXPRESSION", {
167
                "args" : [["EXPRESSION", {
168
                  "args" : [["EXPRESSION", {
169
                    "args" : [["EXPRESSION", {
170
                      "args" : [["EXPRESSION", {
171
                        "id" : "=", "args" : [["EXPRESSION", {
172
                          "args" : [["EXPRESSION", {
173
                            "args" : [["EXPRESSION", {
174
                              "args" : [["CALL", ["SIMPLE_NAME", "i_Sel"]]]}
175
                            ]]}
176
                          ]]}
177
                        ], ["EXPRESSION", {
178
                          "args" : [["EXPRESSION", {
179
                            "args" : [["EXPRESSION", {
180
                              "args" : [["CONSTANT_VALUE", {
181
                                "value" : ["CST_LITERAL", "\"10\""]}
182
                              ]]}
183
                            ]]}
184
                          ]]}
185
                        ]]}
186
                      ]]}
187
                    ]]}
188
                  ]]}
189
                ]]}
190
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
191
                "lhs" : ["SIMPLE_NAME", "B"], "rhs" : [{
192
                  "value" : ["EXPRESSION", {
193
                    "args" : [["EXPRESSION", {
194
                      "args" : [["EXPRESSION", {
195
                        "args" : [["EXPRESSION", {
196
                          "args" : [["CALL", ["FUNCTION_CALL", {
197
                            "id" : ["SIMPLE_NAME", "i_A"], "assoc_list" : [{
198
                              "actual_expr" : ["EXPRESSION", {
199
                                "args" : [["EXPRESSION", {
200
                                  "args" : [["EXPRESSION", {
201
                                    "args" : [["EXPRESSION", {
202
                                      "args" : [["CONSTANT_VALUE", {
203
                                        "value" : ["CST_LITERAL", "2"]}
204
                                      ]]}
205
                                    ]]}
206
                                  ]]}
207
                                ]]}
208
                              ]}
209
                            ]}
210
                          ]]]}
211
                        ]]}
212
                      ]]}
213
                    ]]}
214
                  ]}
215
                ]}
216
              ]]}
217
            ], "default" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
218
              "lhs" : ["SIMPLE_NAME", "B"], "rhs" : [{
219
                "value" : ["EXPRESSION", {
220
                  "args" : [["EXPRESSION", {
221
                    "args" : [["EXPRESSION", {
222
                      "args" : [["EXPRESSION", {
223
                        "args" : [["CALL", ["FUNCTION_CALL", {
224
                          "id" : ["SIMPLE_NAME", "i_A"], "assoc_list" : [{
225
                            "actual_expr" : ["EXPRESSION", {
226
                              "args" : [["EXPRESSION", {
227
                                "args" : [["EXPRESSION", {
228
                                  "args" : [["EXPRESSION", {
229
                                    "args" : [["CONSTANT_VALUE", {
230
                                      "value" : ["CST_LITERAL", "3"]}
231
                                    ]]}
232
                                  ]]}
233
                                ]]}
234
                              ]]}
235
                            ]}
236
                          ]}
237
                        ]]]}
238
                      ]]}
239
                    ]]}
240
                  ]]}
241
                ]}
242
              ]}
243
            ]]}
244
          ]]}
245
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
246
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_B"], "rhs" : [{
247
            "expr" : [{
248
              "value" : ["EXPRESSION", {
249
                "args" : [["EXPRESSION", {
250
                  "args" : [["EXPRESSION", {
251
                    "args" : [["EXPRESSION", {
252
                      "args" : [["CALL", ["SIMPLE_NAME", "B"]]]}
253
                    ]]}
254
                  ]]}
255
                ]]}
256
              ]}
257
            ]}
258
          ]}
259
        ]]}
260
      ]}
261
    ]}
262
  }