Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (9.29 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_04900_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_A"]], "mode" : ["in"], "typ" : {
15
            "name" : ["SIMPLE_NAME", "std_logic"]}
16
          }
17
        , {
18
          "names" : [["IDENTIFIER", "o_A_re"]], "mode" : ["out"], "typ" : {
19
            "name" : ["SIMPLE_NAME", "std_logic"]}
20
          }
21
        , {
22
          "names" : [["IDENTIFIER", "o_A_fe"]], "mode" : ["out"], "typ" : {
23
            "name" : ["SIMPLE_NAME", "std_logic"]}
24
          }
25
        , {
26
          "names" : [["IDENTIFIER", "o_A_ae"]], "mode" : ["out"], "typ" : {
27
            "name" : ["SIMPLE_NAME", "std_logic"]}
28
          }
29
        ], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
30
      ]}
31
    , {
32
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
33
        "name" : ["IDENTIFIER", "Behavioral"], "entity" : ["IDENTIFIER", "STD_04900_good"], "ARCHITECTURE_DECLARATIVE_PART" : [{
34
          "declaration" : ["SIGNAL_DECLARATION", {
35
            "names" : [["IDENTIFIER", "A_r1"]], "typ" : {
36
              "name" : ["SIMPLE_NAME", "std_logic"]}
37
            }
38
          ]}
39
        , {
40
          "declaration" : ["SIGNAL_DECLARATION", {
41
            "names" : [["IDENTIFIER", "A_r2"]], "typ" : {
42
              "name" : ["SIMPLE_NAME", "std_logic"]}
43
            }
44
          ]}
45
        ], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
46
          "id" : ["IDENTIFIER", "P_Registration"], "active_sigs" : [["SIMPLE_NAME", "i_Reset_n"], ["SIMPLE_NAME", "i_Clock"]], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
47
            "if_cases" : [{
48
              "if_cond" : ["EXPRESSION", {
49
                "args" : [["EXPRESSION", {
50
                  "args" : [["EXPRESSION", {
51
                    "args" : [["EXPRESSION", {
52
                      "args" : [["EXPRESSION", {
53
                        "id" : "=", "args" : [["EXPRESSION", {
54
                          "args" : [["EXPRESSION", {
55
                            "args" : [["EXPRESSION", {
56
                              "args" : [["CALL", ["SIMPLE_NAME", "i_Reset_n"]]]}
57
                            ]]}
58
                          ]]}
59
                        ], ["EXPRESSION", {
60
                          "args" : [["EXPRESSION", {
61
                            "args" : [["EXPRESSION", {
62
                              "args" : [["CONSTANT_VALUE", {
63
                                "value" : ["CST_LITERAL", "'0'"]}
64
                              ]]}
65
                            ]]}
66
                          ]]}
67
                        ]]}
68
                      ]]}
69
                    ]]}
70
                  ]]}
71
                ]]}
72
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
73
                "lhs" : ["SIMPLE_NAME", "A_r1"], "rhs" : [{
74
                  "value" : ["EXPRESSION", {
75
                    "args" : [["EXPRESSION", {
76
                      "args" : [["EXPRESSION", {
77
                        "args" : [["EXPRESSION", {
78
                          "args" : [["CONSTANT_VALUE", {
79
                            "value" : ["CST_LITERAL", "'0'"]}
80
                          ]]}
81
                        ]]}
82
                      ]]}
83
                    ]]}
84
                  ]}
85
                ]}
86
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
87
                "lhs" : ["SIMPLE_NAME", "A_r2"], "rhs" : [{
88
                  "value" : ["EXPRESSION", {
89
                    "args" : [["EXPRESSION", {
90
                      "args" : [["EXPRESSION", {
91
                        "args" : [["EXPRESSION", {
92
                          "args" : [["CONSTANT_VALUE", {
93
                            "value" : ["CST_LITERAL", "'0'"]}
94
                          ]]}
95
                        ]]}
96
                      ]]}
97
                    ]]}
98
                  ]}
99
                ]}
100
              ]]}
101
            , {
102
              "if_cond" : ["EXPRESSION", {
103
                "args" : [["EXPRESSION", {
104
                  "args" : [["EXPRESSION", {
105
                    "args" : [["EXPRESSION", {
106
                      "args" : [["EXPRESSION", {
107
                        "args" : [["EXPRESSION", {
108
                          "args" : [["EXPRESSION", {
109
                            "args" : [["EXPRESSION", {
110
                              "args" : [["CALL", ["INDEXED_NAME", {
111
                                "id" : ["SIMPLE_NAME", "rising_edge"], "exprs" : [["EXPRESSION", {
112
                                  "args" : [["EXPRESSION", {
113
                                    "args" : [["EXPRESSION", {
114
                                      "args" : [["EXPRESSION", {
115
                                        "args" : [["CALL", ["SIMPLE_NAME", "i_Clock"]]]}
116
                                      ]]}
117
                                    ]]}
118
                                  ]]}
119
                                ]]}
120
                              ]]]}
121
                            ]]}
122
                          ]]}
123
                        ]]}
124
                      ]]}
125
                    ]]}
126
                  ]]}
127
                ]]}
128
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
129
                "lhs" : ["SIMPLE_NAME", "A_r1"], "rhs" : [{
130
                  "value" : ["EXPRESSION", {
131
                    "args" : [["EXPRESSION", {
132
                      "args" : [["EXPRESSION", {
133
                        "args" : [["EXPRESSION", {
134
                          "args" : [["CALL", ["SIMPLE_NAME", "i_A"]]]}
135
                        ]]}
136
                      ]]}
137
                    ]]}
138
                  ]}
139
                ]}
140
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
141
                "lhs" : ["SIMPLE_NAME", "A_r2"], "rhs" : [{
142
                  "value" : ["EXPRESSION", {
143
                    "args" : [["EXPRESSION", {
144
                      "args" : [["EXPRESSION", {
145
                        "args" : [["EXPRESSION", {
146
                          "args" : [["CALL", ["SIMPLE_NAME", "A_r1"]]]}
147
                        ]]}
148
                      ]]}
149
                    ]]}
150
                  ]}
151
                ]}
152
              ]]}
153
            ]}
154
          ]]}
155
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
156
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_A_re"], "rhs" : [{
157
            "expr" : [{
158
              "value" : ["EXPRESSION", {
159
                "id" : "and", "args" : [["EXPRESSION", {
160
                  "args" : [["EXPRESSION", {
161
                    "args" : [["EXPRESSION", {
162
                      "args" : [["EXPRESSION", {
163
                        "args" : [["CALL", ["SIMPLE_NAME", "A_r1"]]]}
164
                      ]]}
165
                    ]]}
166
                  ]]}
167
                ], ["EXPRESSION", {
168
                  "args" : [["EXPRESSION", {
169
                    "args" : [["EXPRESSION", {
170
                      "args" : [["EXPRESSION", {
171
                        "id" : "not", "args" : [["CALL", ["SIMPLE_NAME", "A_r2"]]]}
172
                      ]]}
173
                    ]]}
174
                  ]]}
175
                ]]}
176
              ]}
177
            ]}
178
          ]}
179
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
180
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_A_fe"], "rhs" : [{
181
            "expr" : [{
182
              "value" : ["EXPRESSION", {
183
                "id" : "and", "args" : [["EXPRESSION", {
184
                  "args" : [["EXPRESSION", {
185
                    "args" : [["EXPRESSION", {
186
                      "args" : [["EXPRESSION", {
187
                        "id" : "not", "args" : [["CALL", ["SIMPLE_NAME", "A_r1"]]]}
188
                      ]]}
189
                    ]]}
190
                  ]]}
191
                ], ["EXPRESSION", {
192
                  "args" : [["EXPRESSION", {
193
                    "args" : [["EXPRESSION", {
194
                      "args" : [["EXPRESSION", {
195
                        "args" : [["CALL", ["SIMPLE_NAME", "A_r2"]]]}
196
                      ]]}
197
                    ]]}
198
                  ]]}
199
                ]]}
200
              ]}
201
            ]}
202
          ]}
203
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
204
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_A_ae"], "rhs" : [{
205
            "expr" : [{
206
              "value" : ["EXPRESSION", {
207
                "id" : "xor", "args" : [["EXPRESSION", {
208
                  "args" : [["EXPRESSION", {
209
                    "args" : [["EXPRESSION", {
210
                      "args" : [["EXPRESSION", {
211
                        "args" : [["CALL", ["SIMPLE_NAME", "A_r1"]]]}
212
                      ]]}
213
                    ]]}
214
                  ]]}
215
                ], ["EXPRESSION", {
216
                  "args" : [["EXPRESSION", {
217
                    "args" : [["EXPRESSION", {
218
                      "args" : [["EXPRESSION", {
219
                        "args" : [["CALL", ["SIMPLE_NAME", "A_r2"]]]}
220
                      ]]}
221
                    ]]}
222
                  ]]}
223
                ]]}
224
              ]}
225
            ]}
226
          ]}
227
        ]]}
228
      ]}
229
    ]}
230
  }