Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (8.97 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", ["FUNCTION_CALL", {
111
                                "id" : ["SIMPLE_NAME", "rising_edge"], "assoc_list" : [{
112
                                  "actual_designator" : ["SIMPLE_NAME", "i_Clock"]}
113
                                ]}
114
                              ]]]}
115
                            ]]}
116
                          ]]}
117
                        ]]}
118
                      ]]}
119
                    ]]}
120
                  ]]}
121
                ]]}
122
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
123
                "lhs" : ["SIMPLE_NAME", "A_r1"], "rhs" : [{
124
                  "value" : ["EXPRESSION", {
125
                    "args" : [["EXPRESSION", {
126
                      "args" : [["EXPRESSION", {
127
                        "args" : [["EXPRESSION", {
128
                          "args" : [["CALL", ["SIMPLE_NAME", "i_A"]]]}
129
                        ]]}
130
                      ]]}
131
                    ]]}
132
                  ]}
133
                ]}
134
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
135
                "lhs" : ["SIMPLE_NAME", "A_r2"], "rhs" : [{
136
                  "value" : ["EXPRESSION", {
137
                    "args" : [["EXPRESSION", {
138
                      "args" : [["EXPRESSION", {
139
                        "args" : [["EXPRESSION", {
140
                          "args" : [["CALL", ["SIMPLE_NAME", "A_r1"]]]}
141
                        ]]}
142
                      ]]}
143
                    ]]}
144
                  ]}
145
                ]}
146
              ]]}
147
            ]}
148
          ]]}
149
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
150
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_A_re"], "rhs" : [{
151
            "expr" : [{
152
              "value" : ["EXPRESSION", {
153
                "id" : "and", "args" : [["EXPRESSION", {
154
                  "args" : [["EXPRESSION", {
155
                    "args" : [["EXPRESSION", {
156
                      "args" : [["EXPRESSION", {
157
                        "args" : [["CALL", ["SIMPLE_NAME", "A_r1"]]]}
158
                      ]]}
159
                    ]]}
160
                  ]]}
161
                ], ["EXPRESSION", {
162
                  "args" : [["EXPRESSION", {
163
                    "args" : [["EXPRESSION", {
164
                      "args" : [["EXPRESSION", {
165
                        "id" : "not", "args" : [["CALL", ["SIMPLE_NAME", "A_r2"]]]}
166
                      ]]}
167
                    ]]}
168
                  ]]}
169
                ]]}
170
              ]}
171
            ]}
172
          ]}
173
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
174
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_A_fe"], "rhs" : [{
175
            "expr" : [{
176
              "value" : ["EXPRESSION", {
177
                "id" : "and", "args" : [["EXPRESSION", {
178
                  "args" : [["EXPRESSION", {
179
                    "args" : [["EXPRESSION", {
180
                      "args" : [["EXPRESSION", {
181
                        "id" : "not", "args" : [["CALL", ["SIMPLE_NAME", "A_r1"]]]}
182
                      ]]}
183
                    ]]}
184
                  ]]}
185
                ], ["EXPRESSION", {
186
                  "args" : [["EXPRESSION", {
187
                    "args" : [["EXPRESSION", {
188
                      "args" : [["EXPRESSION", {
189
                        "args" : [["CALL", ["SIMPLE_NAME", "A_r2"]]]}
190
                      ]]}
191
                    ]]}
192
                  ]]}
193
                ]]}
194
              ]}
195
            ]}
196
          ]}
197
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
198
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_A_ae"], "rhs" : [{
199
            "expr" : [{
200
              "value" : ["EXPRESSION", {
201
                "id" : "xor", "args" : [["EXPRESSION", {
202
                  "args" : [["EXPRESSION", {
203
                    "args" : [["EXPRESSION", {
204
                      "args" : [["EXPRESSION", {
205
                        "args" : [["CALL", ["SIMPLE_NAME", "A_r1"]]]}
206
                      ]]}
207
                    ]]}
208
                  ]]}
209
                ], ["EXPRESSION", {
210
                  "args" : [["EXPRESSION", {
211
                    "args" : [["EXPRESSION", {
212
                      "args" : [["EXPRESSION", {
213
                        "args" : [["CALL", ["SIMPLE_NAME", "A_r2"]]]}
214
                      ]]}
215
                    ]]}
216
                  ]]}
217
                ]]}
218
              ]}
219
            ]}
220
          ]}
221
        ]]}
222
      ]}
223
    ]}
224
  }