Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (6.42 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_03700_good"], "ports" : [{
6
          "names" : [["IDENTIFIER", "i_Clock"]], "mode" : ["in"], "typ" : {
7
            "name" : ["SIMPLE_NAME", "std_logic"]}
8
          }
9
        , {
10
          "names" : [["IDENTIFIER", "i_Reset_Input_n"]], "mode" : ["in"], "typ" : {
11
            "name" : ["SIMPLE_NAME", "std_logic"]}
12
          }
13
        , {
14
          "names" : [["IDENTIFIER", "o_Main_Reset_n"]], "mode" : ["out"], "typ" : {
15
            "name" : ["SIMPLE_NAME", "std_logic"]}
16
          }
17
        ], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
18
      ]}
19
    , {
20
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
21
        "name" : ["IDENTIFIER", "Behavioral"], "entity" : ["IDENTIFIER", "STD_03700_good"], "ARCHITECTURE_DECLARATIVE_PART" : [{
22
          "declaration" : ["SIGNAL_DECLARATION", {
23
            "names" : [["IDENTIFIER", "Main_Reset_n"]], "typ" : {
24
              "name" : ["SIMPLE_NAME", "std_logic"]}
25
            }
26
          ]}
27
        , {
28
          "declaration" : ["SIGNAL_DECLARATION", {
29
            "names" : [["IDENTIFIER", "Main_Reset_n_r"]], "typ" : {
30
              "name" : ["SIMPLE_NAME", "std_logic"]}
31
            }
32
          ]}
33
        ], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
34
          "id" : ["IDENTIFIER", "P_Reset_Assert"], "active_sigs" : [["SIMPLE_NAME", "i_Reset_Input_n"], ["SIMPLE_NAME", "i_Clock"]], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
35
            "if_cases" : [{
36
              "if_cond" : ["EXPRESSION", {
37
                "args" : [["EXPRESSION", {
38
                  "args" : [["EXPRESSION", {
39
                    "args" : [["EXPRESSION", {
40
                      "args" : [["EXPRESSION", {
41
                        "id" : "=", "args" : [["EXPRESSION", {
42
                          "args" : [["EXPRESSION", {
43
                            "args" : [["EXPRESSION", {
44
                              "args" : [["CALL", ["SIMPLE_NAME", "i_Reset_Input_n"]]]}
45
                            ]]}
46
                          ]]}
47
                        ], ["EXPRESSION", {
48
                          "args" : [["EXPRESSION", {
49
                            "args" : [["EXPRESSION", {
50
                              "args" : [["CONSTANT_VALUE", {
51
                                "value" : ["CST_LITERAL", "'0'"]}
52
                              ]]}
53
                            ]]}
54
                          ]]}
55
                        ]]}
56
                      ]]}
57
                    ]]}
58
                  ]]}
59
                ]]}
60
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
61
                "lhs" : ["SIMPLE_NAME", "Main_Reset_n"], "rhs" : [{
62
                  "value" : ["EXPRESSION", {
63
                    "args" : [["EXPRESSION", {
64
                      "args" : [["EXPRESSION", {
65
                        "args" : [["EXPRESSION", {
66
                          "args" : [["CONSTANT_VALUE", {
67
                            "value" : ["CST_LITERAL", "'0'"]}
68
                          ]]}
69
                        ]]}
70
                      ]]}
71
                    ]]}
72
                  ]}
73
                ]}
74
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
75
                "lhs" : ["SIMPLE_NAME", "Main_Reset_n_r"], "rhs" : [{
76
                  "value" : ["EXPRESSION", {
77
                    "args" : [["EXPRESSION", {
78
                      "args" : [["EXPRESSION", {
79
                        "args" : [["EXPRESSION", {
80
                          "args" : [["CONSTANT_VALUE", {
81
                            "value" : ["CST_LITERAL", "'0'"]}
82
                          ]]}
83
                        ]]}
84
                      ]]}
85
                    ]]}
86
                  ]}
87
                ]}
88
              ]]}
89
            , {
90
              "if_cond" : ["EXPRESSION", {
91
                "args" : [["EXPRESSION", {
92
                  "args" : [["EXPRESSION", {
93
                    "args" : [["EXPRESSION", {
94
                      "args" : [["CALL", ["INDEXED_NAME", {
95
                        "id" : ["SIMPLE_NAME", "rising_edge"], "exprs" : [["EXPRESSION", {
96
                          "args" : [["EXPRESSION", {
97
                            "args" : [["EXPRESSION", {
98
                              "args" : [["EXPRESSION", {
99
                                "args" : [["CALL", ["SIMPLE_NAME", "i_Clock"]]]}
100
                              ]]}
101
                            ]]}
102
                          ]]}
103
                        ]]}
104
                      ]]]}
105
                    ]]}
106
                  ]]}
107
                ]]}
108
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
109
                "lhs" : ["SIMPLE_NAME", "Main_Reset_n"], "rhs" : [{
110
                  "value" : ["EXPRESSION", {
111
                    "args" : [["EXPRESSION", {
112
                      "args" : [["EXPRESSION", {
113
                        "args" : [["EXPRESSION", {
114
                          "args" : [["CONSTANT_VALUE", {
115
                            "value" : ["CST_LITERAL", "'1'"]}
116
                          ]]}
117
                        ]]}
118
                      ]]}
119
                    ]]}
120
                  ]}
121
                ]}
122
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
123
                "lhs" : ["SIMPLE_NAME", "Main_Reset_n_r"], "rhs" : [{
124
                  "value" : ["EXPRESSION", {
125
                    "args" : [["EXPRESSION", {
126
                      "args" : [["EXPRESSION", {
127
                        "args" : [["EXPRESSION", {
128
                          "args" : [["CALL", ["SIMPLE_NAME", "Main_Reset_n"]]]}
129
                        ]]}
130
                      ]]}
131
                    ]]}
132
                  ]}
133
                ]}
134
              ]]}
135
            ]}
136
          ]]}
137
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
138
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_Main_Reset_n"], "rhs" : [{
139
            "expr" : [{
140
              "value" : ["EXPRESSION", {
141
                "args" : [["EXPRESSION", {
142
                  "args" : [["EXPRESSION", {
143
                    "args" : [["EXPRESSION", {
144
                      "args" : [["CALL", ["SIMPLE_NAME", "Main_Reset_n_r"]]]}
145
                    ]]}
146
                  ]]}
147
                ]]}
148
              ]}
149
            ]}
150
          ]}
151
        ]]}
152
      ]}
153
    ]}
154
  }