Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (8.7 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_03300_bad"], "ports" : [{
6
          "names" : [["IDENTIFIER", "i_Clock"]], "mode" : ["in"], "typ" : {
7
            "name" : ["SIMPLE_NAME", "std_logic"]}
8
          }
9
        , {
10
          "names" : [["IDENTIFIER", "i_Reset_n"]], "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_vector"], "const" : ["INDEX_CONSTRAINT", {
16
              "ranges" : [["RANGE_WITH_DIRECTION", {
17
                "direction" : "downto", "from" : ["EXPRESSION", {
18
                  "args" : [["EXPRESSION", {
19
                    "args" : [["CONSTANT_VALUE", {
20
                      "value" : ["CST_LITERAL", "3"]}
21
                    ]]}
22
                  ]]}
23
                ], "_to" : ["EXPRESSION", {
24
                  "args" : [["EXPRESSION", {
25
                    "args" : [["CONSTANT_VALUE", {
26
                      "value" : ["CST_LITERAL", "0"]}
27
                    ]]}
28
                  ]]}
29
                ]}
30
              ]]}
31
            ]}
32
          }
33
        , {
34
          "names" : [["IDENTIFIER", "o_B"]], "mode" : ["buffer"], "typ" : {
35
            "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
36
              "ranges" : [["RANGE_WITH_DIRECTION", {
37
                "direction" : "downto", "from" : ["EXPRESSION", {
38
                  "args" : [["EXPRESSION", {
39
                    "args" : [["CONSTANT_VALUE", {
40
                      "value" : ["CST_LITERAL", "3"]}
41
                    ]]}
42
                  ]]}
43
                ], "_to" : ["EXPRESSION", {
44
                  "args" : [["EXPRESSION", {
45
                    "args" : [["CONSTANT_VALUE", {
46
                      "value" : ["CST_LITERAL", "0"]}
47
                    ]]}
48
                  ]]}
49
                ]}
50
              ]]}
51
            ]}
52
          }
53
        ], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
54
      ]}
55
    , {
56
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
57
        "name" : ["IDENTIFIER", "Behavioral"], "entity" : ["IDENTIFIER", "STD_03300_bad"], "ARCHITECTURE_DECLARATIVE_PART" : [], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
58
          "id" : ["IDENTIFIER", "P_Add"], "active_sigs" : [["SIMPLE_NAME", "i_Reset_n"], ["SIMPLE_NAME", "i_Clock"]], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
59
            "if_cases" : [{
60
              "if_cond" : ["EXPRESSION", {
61
                "args" : [["EXPRESSION", {
62
                  "args" : [["EXPRESSION", {
63
                    "args" : [["EXPRESSION", {
64
                      "args" : [["EXPRESSION", {
65
                        "id" : "=", "args" : [["EXPRESSION", {
66
                          "args" : [["EXPRESSION", {
67
                            "args" : [["EXPRESSION", {
68
                              "args" : [["CALL", ["SIMPLE_NAME", "i_Reset_n"]]]}
69
                            ]]}
70
                          ]]}
71
                        ], ["EXPRESSION", {
72
                          "args" : [["EXPRESSION", {
73
                            "args" : [["EXPRESSION", {
74
                              "args" : [["CONSTANT_VALUE", {
75
                                "value" : ["CST_LITERAL", "'0'"]}
76
                              ]]}
77
                            ]]}
78
                          ]]}
79
                        ]]}
80
                      ]]}
81
                    ]]}
82
                  ]]}
83
                ]]}
84
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
85
                "lhs" : ["SIMPLE_NAME", "o_B"], "rhs" : [{
86
                  "value" : ["EXPRESSION", {
87
                    "args" : [["EXPRESSION", {
88
                      "args" : [["EXPRESSION", {
89
                        "args" : [["EXPRESSION", {
90
                          "args" : [["AGGREGATE", {
91
                            "elems" : [{
92
                              "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
93
                                "args" : [["EXPRESSION", {
94
                                  "args" : [["EXPRESSION", {
95
                                    "args" : [["EXPRESSION", {
96
                                      "args" : [["CONSTANT_VALUE", {
97
                                        "value" : ["CST_LITERAL", "'0'"]}
98
                                      ]]}
99
                                    ]]}
100
                                  ]]}
101
                                ]]}
102
                              ]}
103
                            ]}
104
                          ]]}
105
                        ]]}
106
                      ]]}
107
                    ]]}
108
                  ]}
109
                ]}
110
              ]]}
111
            , {
112
              "if_cond" : ["EXPRESSION", {
113
                "args" : [["EXPRESSION", {
114
                  "args" : [["EXPRESSION", {
115
                    "args" : [["EXPRESSION", {
116
                      "args" : [["EXPRESSION", {
117
                        "args" : [["EXPRESSION", {
118
                          "args" : [["EXPRESSION", {
119
                            "args" : [["EXPRESSION", {
120
                              "args" : [["CALL", ["INDEXED_NAME", {
121
                                "id" : ["SIMPLE_NAME", "rising_edge"], "exprs" : [["EXPRESSION", {
122
                                  "args" : [["EXPRESSION", {
123
                                    "args" : [["EXPRESSION", {
124
                                      "args" : [["EXPRESSION", {
125
                                        "args" : [["CALL", ["SIMPLE_NAME", "i_Clock"]]]}
126
                                      ]]}
127
                                    ]]}
128
                                  ]]}
129
                                ]]}
130
                              ]]]}
131
                            ]]}
132
                          ]]}
133
                        ]]}
134
                      ]]}
135
                    ]]}
136
                  ]]}
137
                ]]}
138
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
139
                "lhs" : ["SIMPLE_NAME", "o_B"], "rhs" : [{
140
                  "value" : ["EXPRESSION", {
141
                    "args" : [["EXPRESSION", {
142
                      "args" : [["EXPRESSION", {
143
                        "args" : [["EXPRESSION", {
144
                          "args" : [["CALL", ["INDEXED_NAME", {
145
                            "id" : ["SIMPLE_NAME", "std_logic_vector"], "exprs" : [["EXPRESSION", {
146
                              "args" : [["EXPRESSION", {
147
                                "args" : [["EXPRESSION", {
148
                                  "args" : [["EXPRESSION", {
149
                                    "id" : "+", "args" : [["EXPRESSION", {
150
                                      "args" : [["CALL", ["INDEXED_NAME", {
151
                                        "id" : ["SIMPLE_NAME", "unsigned"], "exprs" : [["EXPRESSION", {
152
                                          "args" : [["EXPRESSION", {
153
                                            "args" : [["EXPRESSION", {
154
                                              "args" : [["EXPRESSION", {
155
                                                "args" : [["CALL", ["SIMPLE_NAME", "i_A"]]]}
156
                                              ]]}
157
                                            ]]}
158
                                          ]]}
159
                                        ]]}
160
                                      ]]]}
161
                                    ], ["EXPRESSION", {
162
                                      "args" : [["CALL", ["INDEXED_NAME", {
163
                                        "id" : ["SIMPLE_NAME", "unsigned"], "exprs" : [["EXPRESSION", {
164
                                          "args" : [["EXPRESSION", {
165
                                            "args" : [["EXPRESSION", {
166
                                              "args" : [["EXPRESSION", {
167
                                                "args" : [["CALL", ["SIMPLE_NAME", "o_B"]]]}
168
                                              ]]}
169
                                            ]]}
170
                                          ]]}
171
                                        ]]}
172
                                      ]]]}
173
                                    ]]}
174
                                  ]]}
175
                                ]]}
176
                              ]]}
177
                            ]]}
178
                          ]]]}
179
                        ]]}
180
                      ]]}
181
                    ]]}
182
                  ]}
183
                ]}
184
              ]]}
185
            ]}
186
          ]]}
187
        ]]}
188
      ]}
189
    ]}
190
  }