Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

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