Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (10.3 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_06200_good"], "ports" : [{
6
          "names" : [["IDENTIFIER", "i_D1"]], "mode" : ["in"], "typ" : {
7
            "name" : ["SIMPLE_NAME", "std_logic"]}
8
          }
9
        , {
10
          "names" : [["IDENTIFIER", "i_D2"]], "mode" : ["in"], "typ" : {
11
            "name" : ["SIMPLE_NAME", "std_logic"]}
12
          }
13
        , {
14
          "names" : [["IDENTIFIER", "i_D3"]], "mode" : ["in"], "typ" : {
15
            "name" : ["SIMPLE_NAME", "std_logic"]}
16
          }
17
        , {
18
          "names" : [["IDENTIFIER", "i_D4"]], "mode" : ["in"], "typ" : {
19
            "name" : ["SIMPLE_NAME", "std_logic"]}
20
          }
21
        , {
22
          "names" : [["IDENTIFIER", "i_Sel"]], "mode" : ["in"], "typ" : {
23
            "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
24
              "ranges" : [["RANGE_WITH_DIRECTION", {
25
                "direction" : "downto", "from" : ["EXPRESSION", {
26
                  "args" : [["EXPRESSION", {
27
                    "args" : [["CONSTANT_VALUE", {
28
                      "value" : ["CST_LITERAL", "1"]}
29
                    ]]}
30
                  ]]}
31
                ], "_to" : ["EXPRESSION", {
32
                  "args" : [["EXPRESSION", {
33
                    "args" : [["CONSTANT_VALUE", {
34
                      "value" : ["CST_LITERAL", "0"]}
35
                    ]]}
36
                  ]]}
37
                ]}
38
              ]]}
39
            ]}
40
          }
41
        , {
42
          "names" : [["IDENTIFIER", "o_Q"]], "mode" : ["out"], "typ" : {
43
            "name" : ["SIMPLE_NAME", "std_logic"]}
44
          }
45
        ], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
46
      ]}
47
    , {
48
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
49
        "name" : ["IDENTIFIER", "Behavioral"], "entity" : ["IDENTIFIER", "STD_06200_good"], "ARCHITECTURE_DECLARATIVE_PART" : [{
50
          "declaration" : ["CONSTANT_DECLARATION", {
51
            "names" : [["IDENTIFIER", "c_Sel_D1"]], "typ" : {
52
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
53
                "ranges" : [["RANGE_WITH_DIRECTION", {
54
                  "direction" : "downto", "from" : ["EXPRESSION", {
55
                    "args" : [["EXPRESSION", {
56
                      "args" : [["CONSTANT_VALUE", {
57
                        "value" : ["CST_LITERAL", "1"]}
58
                      ]]}
59
                    ]]}
60
                  ], "_to" : ["EXPRESSION", {
61
                    "args" : [["EXPRESSION", {
62
                      "args" : [["CONSTANT_VALUE", {
63
                        "value" : ["CST_LITERAL", "0"]}
64
                      ]]}
65
                    ]]}
66
                  ]}
67
                ]]}
68
              ]}
69
            , "init_val" : ["EXPRESSION", {
70
              "args" : [["EXPRESSION", {
71
                "args" : [["EXPRESSION", {
72
                  "args" : [["EXPRESSION", {
73
                    "args" : [["CONSTANT_VALUE", {
74
                      "value" : ["CST_LITERAL", "\"00\""]}
75
                    ]]}
76
                  ]]}
77
                ]]}
78
              ]]}
79
            ]}
80
          ]}
81
        , {
82
          "declaration" : ["CONSTANT_DECLARATION", {
83
            "names" : [["IDENTIFIER", "c_Sel_D2"]], "typ" : {
84
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
85
                "ranges" : [["RANGE_WITH_DIRECTION", {
86
                  "direction" : "downto", "from" : ["EXPRESSION", {
87
                    "args" : [["EXPRESSION", {
88
                      "args" : [["CONSTANT_VALUE", {
89
                        "value" : ["CST_LITERAL", "1"]}
90
                      ]]}
91
                    ]]}
92
                  ], "_to" : ["EXPRESSION", {
93
                    "args" : [["EXPRESSION", {
94
                      "args" : [["CONSTANT_VALUE", {
95
                        "value" : ["CST_LITERAL", "0"]}
96
                      ]]}
97
                    ]]}
98
                  ]}
99
                ]]}
100
              ]}
101
            , "init_val" : ["EXPRESSION", {
102
              "args" : [["EXPRESSION", {
103
                "args" : [["EXPRESSION", {
104
                  "args" : [["EXPRESSION", {
105
                    "args" : [["CONSTANT_VALUE", {
106
                      "value" : ["CST_LITERAL", "\"01\""]}
107
                    ]]}
108
                  ]]}
109
                ]]}
110
              ]]}
111
            ]}
112
          ]}
113
        , {
114
          "declaration" : ["CONSTANT_DECLARATION", {
115
            "names" : [["IDENTIFIER", "c_Sel_D3"]], "typ" : {
116
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
117
                "ranges" : [["RANGE_WITH_DIRECTION", {
118
                  "direction" : "downto", "from" : ["EXPRESSION", {
119
                    "args" : [["EXPRESSION", {
120
                      "args" : [["CONSTANT_VALUE", {
121
                        "value" : ["CST_LITERAL", "1"]}
122
                      ]]}
123
                    ]]}
124
                  ], "_to" : ["EXPRESSION", {
125
                    "args" : [["EXPRESSION", {
126
                      "args" : [["CONSTANT_VALUE", {
127
                        "value" : ["CST_LITERAL", "0"]}
128
                      ]]}
129
                    ]]}
130
                  ]}
131
                ]]}
132
              ]}
133
            , "init_val" : ["EXPRESSION", {
134
              "args" : [["EXPRESSION", {
135
                "args" : [["EXPRESSION", {
136
                  "args" : [["EXPRESSION", {
137
                    "args" : [["CONSTANT_VALUE", {
138
                      "value" : ["CST_LITERAL", "\"10\""]}
139
                    ]]}
140
                  ]]}
141
                ]]}
142
              ]]}
143
            ]}
144
          ]}
145
        , {
146
          "declaration" : ["CONSTANT_DECLARATION", {
147
            "names" : [["IDENTIFIER", "c_Sel_D4"]], "typ" : {
148
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
149
                "ranges" : [["RANGE_WITH_DIRECTION", {
150
                  "direction" : "downto", "from" : ["EXPRESSION", {
151
                    "args" : [["EXPRESSION", {
152
                      "args" : [["CONSTANT_VALUE", {
153
                        "value" : ["CST_LITERAL", "1"]}
154
                      ]]}
155
                    ]]}
156
                  ], "_to" : ["EXPRESSION", {
157
                    "args" : [["EXPRESSION", {
158
                      "args" : [["CONSTANT_VALUE", {
159
                        "value" : ["CST_LITERAL", "0"]}
160
                      ]]}
161
                    ]]}
162
                  ]}
163
                ]]}
164
              ]}
165
            , "init_val" : ["EXPRESSION", {
166
              "args" : [["EXPRESSION", {
167
                "args" : [["EXPRESSION", {
168
                  "args" : [["EXPRESSION", {
169
                    "args" : [["CONSTANT_VALUE", {
170
                      "value" : ["CST_LITERAL", "\"11\""]}
171
                    ]]}
172
                  ]]}
173
                ]]}
174
              ]]}
175
            ]}
176
          ]}
177
        ], "ARCHITECTURE_STATEMENT_PART" : [["CONDITIONAL_SIGNAL_ASSIGNMENT", {
178
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_Q"], "rhs" : [{
179
            "expr" : [{
180
              "value" : ["EXPRESSION", {
181
                "args" : [["EXPRESSION", {
182
                  "args" : [["EXPRESSION", {
183
                    "args" : [["EXPRESSION", {
184
                      "args" : [["CALL", ["SIMPLE_NAME", "i_D1"]]]}
185
                    ]]}
186
                  ]]}
187
                ]]}
188
              ]}
189
            ], "cond" : ["EXPRESSION", {
190
              "id" : "=", "args" : [["EXPRESSION", {
191
                "args" : [["EXPRESSION", {
192
                  "args" : [["EXPRESSION", {
193
                    "args" : [["CALL", ["SIMPLE_NAME", "i_Sel"]]]}
194
                  ]]}
195
                ]]}
196
              ], ["EXPRESSION", {
197
                "args" : [["EXPRESSION", {
198
                  "args" : [["EXPRESSION", {
199
                    "args" : [["CALL", ["SIMPLE_NAME", "c_Sel_D1"]]]}
200
                  ]]}
201
                ]]}
202
              ]]}
203
            ]}
204
          , {
205
            "expr" : [{
206
              "value" : ["EXPRESSION", {
207
                "args" : [["EXPRESSION", {
208
                  "args" : [["EXPRESSION", {
209
                    "args" : [["EXPRESSION", {
210
                      "args" : [["CALL", ["SIMPLE_NAME", "i_D2"]]]}
211
                    ]]}
212
                  ]]}
213
                ]]}
214
              ]}
215
            ], "cond" : ["EXPRESSION", {
216
              "id" : "=", "args" : [["EXPRESSION", {
217
                "args" : [["EXPRESSION", {
218
                  "args" : [["EXPRESSION", {
219
                    "args" : [["CALL", ["SIMPLE_NAME", "i_Sel"]]]}
220
                  ]]}
221
                ]]}
222
              ], ["EXPRESSION", {
223
                "args" : [["EXPRESSION", {
224
                  "args" : [["EXPRESSION", {
225
                    "args" : [["CALL", ["SIMPLE_NAME", "c_Sel_D2"]]]}
226
                  ]]}
227
                ]]}
228
              ]]}
229
            ]}
230
          , {
231
            "expr" : [{
232
              "value" : ["EXPRESSION", {
233
                "args" : [["EXPRESSION", {
234
                  "args" : [["EXPRESSION", {
235
                    "args" : [["EXPRESSION", {
236
                      "args" : [["CALL", ["SIMPLE_NAME", "i_D3"]]]}
237
                    ]]}
238
                  ]]}
239
                ]]}
240
              ]}
241
            ], "cond" : ["EXPRESSION", {
242
              "id" : "=", "args" : [["EXPRESSION", {
243
                "args" : [["EXPRESSION", {
244
                  "args" : [["EXPRESSION", {
245
                    "args" : [["CALL", ["SIMPLE_NAME", "i_Sel"]]]}
246
                  ]]}
247
                ]]}
248
              ], ["EXPRESSION", {
249
                "args" : [["EXPRESSION", {
250
                  "args" : [["EXPRESSION", {
251
                    "args" : [["CALL", ["SIMPLE_NAME", "c_Sel_D3"]]]}
252
                  ]]}
253
                ]]}
254
              ]]}
255
            ]}
256
          , {
257
            "expr" : [{
258
              "value" : ["EXPRESSION", {
259
                "args" : [["EXPRESSION", {
260
                  "args" : [["EXPRESSION", {
261
                    "args" : [["EXPRESSION", {
262
                      "args" : [["CALL", ["SIMPLE_NAME", "i_D4"]]]}
263
                    ]]}
264
                  ]]}
265
                ]]}
266
              ]}
267
            ]}
268
          ]}
269
        ]]}
270
      ]}
271
    ]}
272
  }