Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (7.78 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", ["FUNCTION_CALL", {
121
                                "id" : ["SIMPLE_NAME", "rising_edge"], "assoc_list" : [{
122
                                  "actual_designator" : ["SIMPLE_NAME", "i_Clock"]}
123
                                ]}
124
                              ]]]}
125
                            ]]}
126
                          ]]}
127
                        ]]}
128
                      ]]}
129
                    ]]}
130
                  ]]}
131
                ]]}
132
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
133
                "lhs" : ["SIMPLE_NAME", "o_B"], "rhs" : [{
134
                  "value" : ["EXPRESSION", {
135
                    "args" : [["EXPRESSION", {
136
                      "args" : [["EXPRESSION", {
137
                        "args" : [["EXPRESSION", {
138
                          "args" : [["CALL", ["FUNCTION_CALL", {
139
                            "id" : ["SIMPLE_NAME", "std_logic_vector"], "assoc_list" : [{
140
                              "actual_expr" : ["EXPRESSION", {
141
                                "args" : [["EXPRESSION", {
142
                                  "args" : [["EXPRESSION", {
143
                                    "args" : [["EXPRESSION", {
144
                                      "id" : "+", "args" : [["EXPRESSION", {
145
                                        "args" : [["CALL", ["FUNCTION_CALL", {
146
                                          "id" : ["SIMPLE_NAME", "unsigned"], "assoc_list" : [{
147
                                            "actual_designator" : ["SIMPLE_NAME", "i_A"]}
148
                                          ]}
149
                                        ]]]}
150
                                      ], ["EXPRESSION", {
151
                                        "args" : [["CALL", ["FUNCTION_CALL", {
152
                                          "id" : ["SIMPLE_NAME", "unsigned"], "assoc_list" : [{
153
                                            "actual_designator" : ["SIMPLE_NAME", "o_B"]}
154
                                          ]}
155
                                        ]]]}
156
                                      ]]}
157
                                    ]]}
158
                                  ]]}
159
                                ]]}
160
                              ]}
161
                            ]}
162
                          ]]]}
163
                        ]]}
164
                      ]]}
165
                    ]]}
166
                  ]}
167
                ]}
168
              ]]}
169
            ]}
170
          ]]}
171
        ]]}
172
      ]}
173
    ]}
174
  }