Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (11 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_good"], "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_good"], "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
        ], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
44
          "id" : ["IDENTIFIER", "P_First_Register"], "active_sigs" : [["SIMPLE_NAME", "i_Reset_n"], ["SIMPLE_NAME", "i_Clock"]], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
45
            "if_cases" : [{
46
              "if_cond" : ["EXPRESSION", {
47
                "args" : [["EXPRESSION", {
48
                  "args" : [["EXPRESSION", {
49
                    "args" : [["EXPRESSION", {
50
                      "args" : [["EXPRESSION", {
51
                        "id" : "=", "args" : [["EXPRESSION", {
52
                          "args" : [["EXPRESSION", {
53
                            "args" : [["EXPRESSION", {
54
                              "args" : [["CALL", ["SIMPLE_NAME", "i_Reset_n"]]]}
55
                            ]]}
56
                          ]]}
57
                        ], ["EXPRESSION", {
58
                          "args" : [["EXPRESSION", {
59
                            "args" : [["EXPRESSION", {
60
                              "args" : [["CONSTANT_VALUE", {
61
                                "value" : ["CST_LITERAL", "'0'"]}
62
                              ]]}
63
                            ]]}
64
                          ]]}
65
                        ]]}
66
                      ]]}
67
                    ]]}
68
                  ]]}
69
                ]]}
70
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
71
                "lhs" : ["SIMPLE_NAME", "D_r1"], "rhs" : [{
72
                  "value" : ["EXPRESSION", {
73
                    "args" : [["EXPRESSION", {
74
                      "args" : [["EXPRESSION", {
75
                        "args" : [["EXPRESSION", {
76
                          "args" : [["CONSTANT_VALUE", {
77
                            "value" : ["CST_LITERAL", "'0'"]}
78
                          ]]}
79
                        ]]}
80
                      ]]}
81
                    ]]}
82
                  ]}
83
                ]}
84
              ]]}
85
            , {
86
              "if_cond" : ["EXPRESSION", {
87
                "args" : [["EXPRESSION", {
88
                  "args" : [["EXPRESSION", {
89
                    "args" : [["EXPRESSION", {
90
                      "args" : [["EXPRESSION", {
91
                        "args" : [["EXPRESSION", {
92
                          "args" : [["EXPRESSION", {
93
                            "args" : [["EXPRESSION", {
94
                              "args" : [["CALL", ["INDEXED_NAME", {
95
                                "id" : ["SIMPLE_NAME", "rising_edge"], "exprs" : [["EXPRESSION", {
96
                                  "args" : [["EXPRESSION", {
97
                                    "args" : [["EXPRESSION", {
98
                                      "args" : [["EXPRESSION", {
99
                                        "args" : [["CALL", ["SIMPLE_NAME", "i_Clock"]]]}
100
                                      ]]}
101
                                    ]]}
102
                                  ]]}
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
        ], ["PROCESS_STATEMENT", {
128
          "id" : ["IDENTIFIER", "P_Second_Register"], "active_sigs" : [["SIMPLE_NAME", "i_Reset_n"], ["SIMPLE_NAME", "i_Clock"]], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
129
            "if_cases" : [{
130
              "if_cond" : ["EXPRESSION", {
131
                "args" : [["EXPRESSION", {
132
                  "args" : [["EXPRESSION", {
133
                    "args" : [["EXPRESSION", {
134
                      "args" : [["EXPRESSION", {
135
                        "id" : "=", "args" : [["EXPRESSION", {
136
                          "args" : [["EXPRESSION", {
137
                            "args" : [["EXPRESSION", {
138
                              "args" : [["CALL", ["SIMPLE_NAME", "i_Reset_n"]]]}
139
                            ]]}
140
                          ]]}
141
                        ], ["EXPRESSION", {
142
                          "args" : [["EXPRESSION", {
143
                            "args" : [["EXPRESSION", {
144
                              "args" : [["CONSTANT_VALUE", {
145
                                "value" : ["CST_LITERAL", "'0'"]}
146
                              ]]}
147
                            ]]}
148
                          ]]}
149
                        ]]}
150
                      ]]}
151
                    ]]}
152
                  ]]}
153
                ]]}
154
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
155
                "lhs" : ["SIMPLE_NAME", "D_r2"], "rhs" : [{
156
                  "value" : ["EXPRESSION", {
157
                    "args" : [["EXPRESSION", {
158
                      "args" : [["EXPRESSION", {
159
                        "args" : [["EXPRESSION", {
160
                          "args" : [["CONSTANT_VALUE", {
161
                            "value" : ["CST_LITERAL", "'0'"]}
162
                          ]]}
163
                        ]]}
164
                      ]]}
165
                    ]]}
166
                  ]}
167
                ]}
168
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
169
                "lhs" : ["SIMPLE_NAME", "D_re"], "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
              ]]}
183
            , {
184
              "if_cond" : ["EXPRESSION", {
185
                "args" : [["EXPRESSION", {
186
                  "args" : [["EXPRESSION", {
187
                    "args" : [["EXPRESSION", {
188
                      "args" : [["EXPRESSION", {
189
                        "args" : [["EXPRESSION", {
190
                          "args" : [["EXPRESSION", {
191
                            "args" : [["EXPRESSION", {
192
                              "args" : [["CALL", ["INDEXED_NAME", {
193
                                "id" : ["SIMPLE_NAME", "rising_edge"], "exprs" : [["EXPRESSION", {
194
                                  "args" : [["EXPRESSION", {
195
                                    "args" : [["EXPRESSION", {
196
                                      "args" : [["EXPRESSION", {
197
                                        "args" : [["CALL", ["SIMPLE_NAME", "i_Clock"]]]}
198
                                      ]]}
199
                                    ]]}
200
                                  ]]}
201
                                ]]}
202
                              ]]]}
203
                            ]]}
204
                          ]]}
205
                        ]]}
206
                      ]]}
207
                    ]]}
208
                  ]]}
209
                ]]}
210
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
211
                "lhs" : ["SIMPLE_NAME", "D_r2"], "rhs" : [{
212
                  "value" : ["EXPRESSION", {
213
                    "args" : [["EXPRESSION", {
214
                      "args" : [["EXPRESSION", {
215
                        "args" : [["EXPRESSION", {
216
                          "args" : [["CALL", ["SIMPLE_NAME", "D_r1"]]]}
217
                        ]]}
218
                      ]]}
219
                    ]]}
220
                  ]}
221
                ]}
222
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
223
                "lhs" : ["SIMPLE_NAME", "D_re"], "rhs" : [{
224
                  "value" : ["EXPRESSION", {
225
                    "id" : "and", "args" : [["EXPRESSION", {
226
                      "args" : [["EXPRESSION", {
227
                        "args" : [["EXPRESSION", {
228
                          "args" : [["EXPRESSION", {
229
                            "args" : [["CALL", ["SIMPLE_NAME", "D_r1"]]]}
230
                          ]]}
231
                        ]]}
232
                      ]]}
233
                    ], ["EXPRESSION", {
234
                      "args" : [["EXPRESSION", {
235
                        "args" : [["EXPRESSION", {
236
                          "args" : [["EXPRESSION", {
237
                            "id" : "not", "args" : [["CALL", ["SIMPLE_NAME", "D_r2"]]]}
238
                          ]]}
239
                        ]]}
240
                      ]]}
241
                    ]]}
242
                  ]}
243
                ]}
244
              ]]}
245
            ]}
246
          ]]}
247
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
248
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_Q"], "rhs" : [{
249
            "expr" : [{
250
              "value" : ["EXPRESSION", {
251
                "args" : [["EXPRESSION", {
252
                  "args" : [["EXPRESSION", {
253
                    "args" : [["EXPRESSION", {
254
                      "args" : [["CALL", ["SIMPLE_NAME", "D_re"]]]}
255
                    ]]}
256
                  ]]}
257
                ]]}
258
              ]}
259
            ]}
260
          ]}
261
        ]]}
262
      ]}
263
    ]}
264
  }