Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (7.19 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", "CNE_01700_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_D_re"]], "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", "CNE_01700_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
        ], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
38
          "id" : ["IDENTIFIER", "P_detection"], "active_sigs" : [["SIMPLE_NAME", "i_Reset_n"], ["SIMPLE_NAME", "i_Clock"]], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
39
            "if_cases" : [{
40
              "if_cond" : ["EXPRESSION", {
41
                "args" : [["EXPRESSION", {
42
                  "args" : [["EXPRESSION", {
43
                    "args" : [["EXPRESSION", {
44
                      "args" : [["EXPRESSION", {
45
                        "id" : "=", "args" : [["EXPRESSION", {
46
                          "args" : [["EXPRESSION", {
47
                            "args" : [["EXPRESSION", {
48
                              "args" : [["CALL", ["SIMPLE_NAME", "i_Reset_n"]]]}
49
                            ]]}
50
                          ]]}
51
                        ], ["EXPRESSION", {
52
                          "args" : [["EXPRESSION", {
53
                            "args" : [["EXPRESSION", {
54
                              "args" : [["CONSTANT_VALUE", {
55
                                "value" : ["CST_LITERAL", "'0'"]}
56
                              ]]}
57
                            ]]}
58
                          ]]}
59
                        ]]}
60
                      ]]}
61
                    ]]}
62
                  ]]}
63
                ]]}
64
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
65
                "lhs" : ["SIMPLE_NAME", "D_r1"], "rhs" : [{
66
                  "value" : ["EXPRESSION", {
67
                    "args" : [["EXPRESSION", {
68
                      "args" : [["EXPRESSION", {
69
                        "args" : [["EXPRESSION", {
70
                          "args" : [["CONSTANT_VALUE", {
71
                            "value" : ["CST_LITERAL", "'0'"]}
72
                          ]]}
73
                        ]]}
74
                      ]]}
75
                    ]]}
76
                  ]}
77
                ]}
78
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
79
                "lhs" : ["SIMPLE_NAME", "D_r2"], "rhs" : [{
80
                  "value" : ["EXPRESSION", {
81
                    "args" : [["EXPRESSION", {
82
                      "args" : [["EXPRESSION", {
83
                        "args" : [["EXPRESSION", {
84
                          "args" : [["CONSTANT_VALUE", {
85
                            "value" : ["CST_LITERAL", "'0'"]}
86
                          ]]}
87
                        ]]}
88
                      ]]}
89
                    ]]}
90
                  ]}
91
                ]}
92
              ]]}
93
            , {
94
              "if_cond" : ["EXPRESSION", {
95
                "args" : [["EXPRESSION", {
96
                  "args" : [["EXPRESSION", {
97
                    "args" : [["EXPRESSION", {
98
                      "args" : [["EXPRESSION", {
99
                        "args" : [["EXPRESSION", {
100
                          "args" : [["EXPRESSION", {
101
                            "args" : [["EXPRESSION", {
102
                              "args" : [["CALL", ["INDEXED_NAME", {
103
                                "id" : ["SIMPLE_NAME", "rising_edge"], "exprs" : [["EXPRESSION", {
104
                                  "args" : [["EXPRESSION", {
105
                                    "args" : [["EXPRESSION", {
106
                                      "args" : [["EXPRESSION", {
107
                                        "args" : [["CALL", ["SIMPLE_NAME", "i_Clock"]]]}
108
                                      ]]}
109
                                    ]]}
110
                                  ]]}
111
                                ]]}
112
                              ]]]}
113
                            ]]}
114
                          ]]}
115
                        ]]}
116
                      ]]}
117
                    ]]}
118
                  ]]}
119
                ]]}
120
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
121
                "lhs" : ["SIMPLE_NAME", "D_r1"], "rhs" : [{
122
                  "value" : ["EXPRESSION", {
123
                    "args" : [["EXPRESSION", {
124
                      "args" : [["EXPRESSION", {
125
                        "args" : [["EXPRESSION", {
126
                          "args" : [["CALL", ["SIMPLE_NAME", "i_D"]]]}
127
                        ]]}
128
                      ]]}
129
                    ]]}
130
                  ]}
131
                ]}
132
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
133
                "lhs" : ["SIMPLE_NAME", "D_r2"], "rhs" : [{
134
                  "value" : ["EXPRESSION", {
135
                    "args" : [["EXPRESSION", {
136
                      "args" : [["EXPRESSION", {
137
                        "args" : [["EXPRESSION", {
138
                          "args" : [["CALL", ["SIMPLE_NAME", "D_r1"]]]}
139
                        ]]}
140
                      ]]}
141
                    ]]}
142
                  ]}
143
                ]}
144
              ]]}
145
            ]}
146
          ]]}
147
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
148
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_D_re"], "rhs" : [{
149
            "expr" : [{
150
              "value" : ["EXPRESSION", {
151
                "id" : "and", "args" : [["EXPRESSION", {
152
                  "args" : [["EXPRESSION", {
153
                    "args" : [["EXPRESSION", {
154
                      "args" : [["EXPRESSION", {
155
                        "args" : [["CALL", ["SIMPLE_NAME", "D_r1"]]]}
156
                      ]]}
157
                    ]]}
158
                  ]]}
159
                ], ["EXPRESSION", {
160
                  "args" : [["EXPRESSION", {
161
                    "args" : [["EXPRESSION", {
162
                      "args" : [["EXPRESSION", {
163
                        "id" : "not", "args" : [["CALL", ["SIMPLE_NAME", "D_r2"]]]}
164
                      ]]}
165
                    ]]}
166
                  ]]}
167
                ]]}
168
              ]}
169
            ]}
170
          ]}
171
        ]]}
172
      ]}
173
    ]}
174
  }