Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (10.7 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_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", ["INDEXED_NAME", {
93
                            "id" : ["SIMPLE_NAME", "i_A"], "exprs" : [["EXPRESSION", {
94
                              "args" : [["EXPRESSION", {
95
                                "args" : [["EXPRESSION", {
96
                                  "args" : [["EXPRESSION", {
97
                                    "args" : [["CONSTANT_VALUE", {
98
                                      "value" : ["CST_LITERAL", "0"]}
99
                                    ]]}
100
                                  ]]}
101
                                ]]}
102
                              ]]}
103
                            ]]}
104
                          ]]]}
105
                        ]]}
106
                      ]]}
107
                    ]]}
108
                  ]}
109
                ]}
110
              ]]}
111
            , {
112
              "if_cond" : ["EXPRESSION", {
113
                "args" : [["EXPRESSION", {
114
                  "args" : [["EXPRESSION", {
115
                    "args" : [["EXPRESSION", {
116
                      "args" : [["EXPRESSION", {
117
                        "id" : "=", "args" : [["EXPRESSION", {
118
                          "args" : [["EXPRESSION", {
119
                            "args" : [["EXPRESSION", {
120
                              "args" : [["CALL", ["SIMPLE_NAME", "i_Sel"]]]}
121
                            ]]}
122
                          ]]}
123
                        ], ["EXPRESSION", {
124
                          "args" : [["EXPRESSION", {
125
                            "args" : [["EXPRESSION", {
126
                              "args" : [["CONSTANT_VALUE", {
127
                                "value" : ["CST_LITERAL", "\"01\""]}
128
                              ]]}
129
                            ]]}
130
                          ]]}
131
                        ]]}
132
                      ]]}
133
                    ]]}
134
                  ]]}
135
                ]]}
136
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
137
                "lhs" : ["SIMPLE_NAME", "B"], "rhs" : [{
138
                  "value" : ["EXPRESSION", {
139
                    "args" : [["EXPRESSION", {
140
                      "args" : [["EXPRESSION", {
141
                        "args" : [["EXPRESSION", {
142
                          "args" : [["CALL", ["INDEXED_NAME", {
143
                            "id" : ["SIMPLE_NAME", "i_A"], "exprs" : [["EXPRESSION", {
144
                              "args" : [["EXPRESSION", {
145
                                "args" : [["EXPRESSION", {
146
                                  "args" : [["EXPRESSION", {
147
                                    "args" : [["CONSTANT_VALUE", {
148
                                      "value" : ["CST_LITERAL", "1"]}
149
                                    ]]}
150
                                  ]]}
151
                                ]]}
152
                              ]]}
153
                            ]]}
154
                          ]]]}
155
                        ]]}
156
                      ]]}
157
                    ]]}
158
                  ]}
159
                ]}
160
              ]]}
161
            , {
162
              "if_cond" : ["EXPRESSION", {
163
                "args" : [["EXPRESSION", {
164
                  "args" : [["EXPRESSION", {
165
                    "args" : [["EXPRESSION", {
166
                      "args" : [["EXPRESSION", {
167
                        "id" : "=", "args" : [["EXPRESSION", {
168
                          "args" : [["EXPRESSION", {
169
                            "args" : [["EXPRESSION", {
170
                              "args" : [["CALL", ["SIMPLE_NAME", "i_Sel"]]]}
171
                            ]]}
172
                          ]]}
173
                        ], ["EXPRESSION", {
174
                          "args" : [["EXPRESSION", {
175
                            "args" : [["EXPRESSION", {
176
                              "args" : [["CONSTANT_VALUE", {
177
                                "value" : ["CST_LITERAL", "\"10\""]}
178
                              ]]}
179
                            ]]}
180
                          ]]}
181
                        ]]}
182
                      ]]}
183
                    ]]}
184
                  ]]}
185
                ]]}
186
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
187
                "lhs" : ["SIMPLE_NAME", "B"], "rhs" : [{
188
                  "value" : ["EXPRESSION", {
189
                    "args" : [["EXPRESSION", {
190
                      "args" : [["EXPRESSION", {
191
                        "args" : [["EXPRESSION", {
192
                          "args" : [["CALL", ["INDEXED_NAME", {
193
                            "id" : ["SIMPLE_NAME", "i_A"], "exprs" : [["EXPRESSION", {
194
                              "args" : [["EXPRESSION", {
195
                                "args" : [["EXPRESSION", {
196
                                  "args" : [["EXPRESSION", {
197
                                    "args" : [["CONSTANT_VALUE", {
198
                                      "value" : ["CST_LITERAL", "2"]}
199
                                    ]]}
200
                                  ]]}
201
                                ]]}
202
                              ]]}
203
                            ]]}
204
                          ]]]}
205
                        ]]}
206
                      ]]}
207
                    ]]}
208
                  ]}
209
                ]}
210
              ]]}
211
            ], "default" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
212
              "lhs" : ["SIMPLE_NAME", "B"], "rhs" : [{
213
                "value" : ["EXPRESSION", {
214
                  "args" : [["EXPRESSION", {
215
                    "args" : [["EXPRESSION", {
216
                      "args" : [["EXPRESSION", {
217
                        "args" : [["CALL", ["INDEXED_NAME", {
218
                          "id" : ["SIMPLE_NAME", "i_A"], "exprs" : [["EXPRESSION", {
219
                            "args" : [["EXPRESSION", {
220
                              "args" : [["EXPRESSION", {
221
                                "args" : [["EXPRESSION", {
222
                                  "args" : [["CONSTANT_VALUE", {
223
                                    "value" : ["CST_LITERAL", "3"]}
224
                                  ]]}
225
                                ]]}
226
                              ]]}
227
                            ]]}
228
                          ]]}
229
                        ]]]}
230
                      ]]}
231
                    ]]}
232
                  ]]}
233
                ]}
234
              ]}
235
            ]]}
236
          ]]}
237
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
238
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_B"], "rhs" : [{
239
            "expr" : [{
240
              "value" : ["EXPRESSION", {
241
                "args" : [["EXPRESSION", {
242
                  "args" : [["EXPRESSION", {
243
                    "args" : [["EXPRESSION", {
244
                      "args" : [["CALL", ["SIMPLE_NAME", "B"]]]}
245
                    ]]}
246
                  ]]}
247
                ]]}
248
              ]}
249
            ]}
250
          ]}
251
        ]]}
252
      ]}
253
    ]}
254
  }