Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (6.45 KB)

1 2051e520 Arnaud Dieumegard
{
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_05100_good"], "ports" : [{
6
          "names" : [["IDENTIFIER", "i_Reset"]], "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"]], "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", "STD_05100_good"], "ARCHITECTURE_DECLARATIVE_PART" : [{
26
          "declaration" : ["SIGNAL_DECLARATION", {
27
            "names" : [["IDENTIFIER", "A_r"]], "typ" : {
28
              "name" : ["SIMPLE_NAME", "std_logic"]}
29
            }
30
          ]}
31
        , {
32
          "declaration" : ["SIGNAL_DECLARATION", {
33
            "names" : [["IDENTIFIER", "A_r2"]], "typ" : {
34
              "name" : ["SIMPLE_NAME", "std_logic"]}
35
            }
36
          ]}
37
        ], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
38
          "id" : ["IDENTIFIER", "P_Register2"], "active_sigs" : [["SIMPLE_NAME", "i_Reset"], ["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"]]]}
49
                            ]]}
50
                          ]]}
51
                        ], ["EXPRESSION", {
52
                          "args" : [["EXPRESSION", {
53
                            "args" : [["EXPRESSION", {
54
                              "args" : [["CONSTANT_VALUE", {
55
                                "value" : ["CST_LITERAL", "'1'"]}
56
                              ]]}
57
                            ]]}
58
                          ]]}
59
                        ]]}
60
                      ]]}
61
                    ]]}
62
                  ]]}
63
                ]]}
64
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
65
                "lhs" : ["SIMPLE_NAME", "A_r"], "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", "A_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", ["FUNCTION_CALL", {
103
                                "id" : ["SIMPLE_NAME", "rising_edge"], "assoc_list" : [{
104
                                  "actual_designator" : ["SIMPLE_NAME", "i_Clock"]}
105
                                ]}
106
                              ]]]}
107
                            ]]}
108
                          ]]}
109
                        ]]}
110
                      ]]}
111
                    ]]}
112
                  ]]}
113
                ]]}
114
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
115
                "lhs" : ["SIMPLE_NAME", "A_r"], "rhs" : [{
116
                  "value" : ["EXPRESSION", {
117
                    "args" : [["EXPRESSION", {
118
                      "args" : [["EXPRESSION", {
119
                        "args" : [["EXPRESSION", {
120
                          "args" : [["CALL", ["SIMPLE_NAME", "i_A"]]]}
121
                        ]]}
122
                      ]]}
123
                    ]]}
124
                  ]}
125
                ]}
126
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
127
                "lhs" : ["SIMPLE_NAME", "A_r2"], "rhs" : [{
128
                  "value" : ["EXPRESSION", {
129
                    "args" : [["EXPRESSION", {
130
                      "args" : [["EXPRESSION", {
131
                        "args" : [["EXPRESSION", {
132
                          "args" : [["CALL", ["SIMPLE_NAME", "A_r"]]]}
133
                        ]]}
134
                      ]]}
135
                    ]]}
136
                  ]}
137
                ]}
138
              ]]}
139
            ]}
140
          ]]}
141
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
142
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_A"], "rhs" : [{
143
            "expr" : [{
144
              "value" : ["EXPRESSION", {
145
                "args" : [["EXPRESSION", {
146
                  "args" : [["EXPRESSION", {
147
                    "args" : [["EXPRESSION", {
148
                      "args" : [["CALL", ["SIMPLE_NAME", "A_r2"]]]}
149
                    ]]}
150
                  ]]}
151
                ]]}
152
              ]}
153
            ]}
154
          ]}
155
        ]]}
156
      ]}
157
    ]}
158
  }