Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (7.09 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_03800_good"], "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_D"]], "mode" : ["in"], "typ" : {
15
            "name" : ["SIMPLE_NAME", "std_logic"]}
16
          }
17
        , {
18
          "names" : [["IDENTIFIER", "o_Q"]], "mode" : ["out"], "typ" : {
19
            "name" : ["SIMPLE_NAME", "std_logic"]}
20
          }
21
        , {
22
          "names" : [["IDENTIFIER", "o_Q_n"]], "mode" : ["out"], "typ" : {
23
            "name" : ["SIMPLE_NAME", "std_logic"]}
24
          }
25
        ], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
26
      ]}
27
    , {
28
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
29
        "name" : ["IDENTIFIER", "Behavioral"], "entity" : ["IDENTIFIER", "STD_03800_good"], "ARCHITECTURE_DECLARATIVE_PART" : [{
30
          "declaration" : ["SIGNAL_DECLARATION", {
31
            "names" : [["IDENTIFIER", "Q"]], "typ" : {
32
              "name" : ["SIMPLE_NAME", "std_logic"]}
33
            }
34
          ]}
35
        , {
36
          "declaration" : ["SIGNAL_DECLARATION", {
37
            "names" : [["IDENTIFIER", "Q_n"]], "typ" : {
38
              "name" : ["SIMPLE_NAME", "std_logic"]}
39
            }
40
          ]}
41
        ], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
42
          "id" : ["IDENTIFIER", "P_FlipFlop"], "active_sigs" : [["SIMPLE_NAME", "i_Clock"], ["SIMPLE_NAME", "i_Reset_n"]], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
43
            "if_cases" : [{
44
              "if_cond" : ["EXPRESSION", {
45
                "args" : [["EXPRESSION", {
46
                  "args" : [["EXPRESSION", {
47
                    "args" : [["EXPRESSION", {
48
                      "args" : [["EXPRESSION", {
49
                        "id" : "=", "args" : [["EXPRESSION", {
50
                          "args" : [["EXPRESSION", {
51
                            "args" : [["EXPRESSION", {
52
                              "args" : [["CALL", ["SIMPLE_NAME", "i_Reset_n"]]]}
53
                            ]]}
54
                          ]]}
55
                        ], ["EXPRESSION", {
56
                          "args" : [["EXPRESSION", {
57
                            "args" : [["EXPRESSION", {
58
                              "args" : [["CONSTANT_VALUE", {
59
                                "value" : ["CST_LITERAL", "'0'"]}
60
                              ]]}
61
                            ]]}
62
                          ]]}
63
                        ]]}
64
                      ]]}
65
                    ]]}
66
                  ]]}
67
                ]]}
68
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
69
                "lhs" : ["SIMPLE_NAME", "Q"], "rhs" : [{
70
                  "value" : ["EXPRESSION", {
71
                    "args" : [["EXPRESSION", {
72
                      "args" : [["EXPRESSION", {
73
                        "args" : [["EXPRESSION", {
74
                          "args" : [["CONSTANT_VALUE", {
75
                            "value" : ["CST_LITERAL", "'0'"]}
76
                          ]]}
77
                        ]]}
78
                      ]]}
79
                    ]]}
80
                  ]}
81
                ]}
82
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
83
                "lhs" : ["SIMPLE_NAME", "Q_n"], "rhs" : [{
84
                  "value" : ["EXPRESSION", {
85
                    "args" : [["EXPRESSION", {
86
                      "args" : [["EXPRESSION", {
87
                        "args" : [["EXPRESSION", {
88
                          "args" : [["CONSTANT_VALUE", {
89
                            "value" : ["CST_LITERAL", "'1'"]}
90
                          ]]}
91
                        ]]}
92
                      ]]}
93
                    ]]}
94
                  ]}
95
                ]}
96
              ]]}
97
            , {
98
              "if_cond" : ["EXPRESSION", {
99
                "args" : [["EXPRESSION", {
100
                  "args" : [["EXPRESSION", {
101
                    "args" : [["EXPRESSION", {
102
                      "args" : [["EXPRESSION", {
103
                        "args" : [["EXPRESSION", {
104
                          "args" : [["EXPRESSION", {
105
                            "args" : [["EXPRESSION", {
106
                              "args" : [["CALL", ["FUNCTION_CALL", {
107
                                "id" : ["SIMPLE_NAME", "rising_edge"], "assoc_list" : [{
108
                                  "actual_designator" : ["SIMPLE_NAME", "i_Clock"]}
109
                                ]}
110
                              ]]]}
111
                            ]]}
112
                          ]]}
113
                        ]]}
114
                      ]]}
115
                    ]]}
116
                  ]]}
117
                ]]}
118
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
119
                "lhs" : ["SIMPLE_NAME", "Q"], "rhs" : [{
120
                  "value" : ["EXPRESSION", {
121
                    "args" : [["EXPRESSION", {
122
                      "args" : [["EXPRESSION", {
123
                        "args" : [["EXPRESSION", {
124
                          "args" : [["CALL", ["SIMPLE_NAME", "i_D"]]]}
125
                        ]]}
126
                      ]]}
127
                    ]]}
128
                  ]}
129
                ]}
130
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
131
                "lhs" : ["SIMPLE_NAME", "Q_n"], "rhs" : [{
132
                  "value" : ["EXPRESSION", {
133
                    "args" : [["EXPRESSION", {
134
                      "args" : [["EXPRESSION", {
135
                        "args" : [["EXPRESSION", {
136
                          "id" : "not", "args" : [["CALL", ["SIMPLE_NAME", "i_D"]]]}
137
                        ]]}
138
                      ]]}
139
                    ]]}
140
                  ]}
141
                ]}
142
              ]]}
143
            ]}
144
          ]]}
145
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
146
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_Q"], "rhs" : [{
147
            "expr" : [{
148
              "value" : ["EXPRESSION", {
149
                "args" : [["EXPRESSION", {
150
                  "args" : [["EXPRESSION", {
151
                    "args" : [["EXPRESSION", {
152
                      "args" : [["CALL", ["SIMPLE_NAME", "Q"]]]}
153
                    ]]}
154
                  ]]}
155
                ]]}
156
              ]}
157
            ]}
158
          ]}
159
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
160
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "o_Q_n"], "rhs" : [{
161
            "expr" : [{
162
              "value" : ["EXPRESSION", {
163
                "args" : [["EXPRESSION", {
164
                  "args" : [["EXPRESSION", {
165
                    "args" : [["EXPRESSION", {
166
                      "args" : [["CALL", ["SIMPLE_NAME", "Q_n"]]]}
167
                    ]]}
168
                  ]]}
169
                ]]}
170
              ]}
171
            ]}
172
          ]}
173
        ]]}
174
      ]}
175
    ]}
176
  }