Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec-tests / vhdl_json / vhdl_files / 2-exportOK / ghdl / ghdl / testsuite / vests / vhdl-93 / ashenden / compliant / ap_a_fg_a_04.json @ 3fd18385

History | View | Annotate | Download (11 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "fg_a_04"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [["LIBRARY_CLAUSE", [["IDENTIFIER", "ieee"]]], ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "ieee"], ["SIMPLE_NAME", "std_logic_1164"]]]]]], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "test"], "entity" : ["IDENTIFIER", "fg_a_04"], "ARCHITECTURE_DECLARATIVE_PART" : [{
10
          "declaration" : ["SIGNAL_DECLARATION", {
11
            "names" : [["IDENTIFIER", "clk"], ["IDENTIFIER", "reset"], ["IDENTIFIER", "d"], ["IDENTIFIER", "q"], ["IDENTIFIER", "q_n"]], "typ" : {
12
              "name" : ["SIMPLE_NAME", "std_ulogic"]}
13
            }
14
          ]}
15
        ], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
16
          "id" : ["IDENTIFIER", "ff1"], "active_sigs" : [["SIMPLE_NAME", "reset"], ["SIMPLE_NAME", "clk"]], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
17
            "if_cases" : [{
18
              "if_cond" : ["EXPRESSION", {
19
                "id" : "=", "args" : [["EXPRESSION", {
20
                  "args" : [["EXPRESSION", {
21
                    "args" : [["EXPRESSION", {
22
                      "args" : [["CALL", ["SIMPLE_NAME", "reset"]]]}
23
                    ]]}
24
                  ]]}
25
                ], ["EXPRESSION", {
26
                  "args" : [["EXPRESSION", {
27
                    "args" : [["EXPRESSION", {
28
                      "args" : [["CONSTANT_VALUE", {
29
                        "value" : ["CST_LITERAL", "'1'"]}
30
                      ]]}
31
                    ]]}
32
                  ]]}
33
                ]]}
34
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
35
                "lhs" : ["SIMPLE_NAME", "q"], "rhs" : [{
36
                  "value" : ["EXPRESSION", {
37
                    "args" : [["EXPRESSION", {
38
                      "args" : [["EXPRESSION", {
39
                        "args" : [["EXPRESSION", {
40
                          "args" : [["CONSTANT_VALUE", {
41
                            "value" : ["CST_LITERAL", "'0'"]}
42
                          ]]}
43
                        ]]}
44
                      ]]}
45
                    ]]}
46
                  ]}
47
                ]}
48
              ]]}
49
            , {
50
              "if_cond" : ["EXPRESSION", {
51
                "args" : [["EXPRESSION", {
52
                  "args" : [["EXPRESSION", {
53
                    "args" : [["EXPRESSION", {
54
                      "args" : [["CALL", ["INDEXED_NAME", {
55
                        "id" : ["SIMPLE_NAME", "rising_edge"], "exprs" : [["EXPRESSION", {
56
                          "args" : [["EXPRESSION", {
57
                            "args" : [["EXPRESSION", {
58
                              "args" : [["EXPRESSION", {
59
                                "args" : [["CALL", ["SIMPLE_NAME", "clk"]]]}
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" : [["CALL", ["SIMPLE_NAME", "d"]]]}
75
                        ]]}
76
                      ]]}
77
                    ]]}
78
                  ]}
79
                ]}
80
              ]]}
81
            ]}
82
          ]]}
83
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
84
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "q_n"], "rhs" : [{
85
            "expr" : [{
86
              "value" : ["EXPRESSION", {
87
                "args" : [["EXPRESSION", {
88
                  "args" : [["EXPRESSION", {
89
                    "args" : [["EXPRESSION", {
90
                      "id" : "not", "args" : [["CALL", ["SIMPLE_NAME", "q"]]]}
91
                    ]]}
92
                  ]]}
93
                ]]}
94
              ]}
95
            ]}
96
          ]}
97
        ], ["PROCESS_STATEMENT", {
98
          "id" : ["IDENTIFIER", "stimulus"], "PROCESS_STATEMENT_PART" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
99
            "lhs" : ["SIMPLE_NAME", "reset"], "rhs" : [{
100
              "value" : ["EXPRESSION", {
101
                "args" : [["EXPRESSION", {
102
                  "args" : [["EXPRESSION", {
103
                    "args" : [["EXPRESSION", {
104
                      "args" : [["CONSTANT_VALUE", {
105
                        "value" : ["CST_LITERAL", "'0'"]}
106
                      ]]}
107
                    ]]}
108
                  ]]}
109
                ]]}
110
              ]}
111
            ]}
112
          ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
113
            "lhs" : ["SIMPLE_NAME", "clk"], "rhs" : [{
114
              "value" : ["EXPRESSION", {
115
                "args" : [["EXPRESSION", {
116
                  "args" : [["EXPRESSION", {
117
                    "args" : [["EXPRESSION", {
118
                      "args" : [["CONSTANT_VALUE", {
119
                        "value" : ["CST_LITERAL", "'0'"]}
120
                      ]]}
121
                    ]]}
122
                  ]]}
123
                ]]}
124
              ]}
125
            ]}
126
          ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
127
            "lhs" : ["SIMPLE_NAME", "d"], "rhs" : [{
128
              "value" : ["EXPRESSION", {
129
                "args" : [["EXPRESSION", {
130
                  "args" : [["EXPRESSION", {
131
                    "args" : [["EXPRESSION", {
132
                      "args" : [["CONSTANT_VALUE", {
133
                        "value" : ["CST_LITERAL", "'1'"]}
134
                      ]]}
135
                    ]]}
136
                  ]]}
137
                ]]}
138
              ]}
139
            ]}
140
          ], ["WAIT_STATEMENT"], ["SIGNAL_ASSIGNMENT_STATEMENT", {
141
            "lhs" : ["SIMPLE_NAME", "reset"], "rhs" : [{
142
              "value" : ["EXPRESSION", {
143
                "args" : [["EXPRESSION", {
144
                  "args" : [["EXPRESSION", {
145
                    "args" : [["EXPRESSION", {
146
                      "args" : [["CONSTANT_VALUE", {
147
                        "value" : ["CST_LITERAL", "'1'"]}
148
                      ]]}
149
                    ]]}
150
                  ]]}
151
                ]]}
152
              ]}
153
            , {
154
              "value" : ["EXPRESSION", {
155
                "args" : [["EXPRESSION", {
156
                  "args" : [["EXPRESSION", {
157
                    "args" : [["EXPRESSION", {
158
                      "args" : [["CONSTANT_VALUE", {
159
                        "value" : ["CST_LITERAL", "'0'"]}
160
                      ]]}
161
                    ]]}
162
                  ]]}
163
                ]]}
164
              ], "delay" : ["EXPRESSION", {
165
                "args" : [["EXPRESSION", {
166
                  "args" : [["EXPRESSION", {
167
                    "args" : [["EXPRESSION", {
168
                      "args" : [["CONSTANT_VALUE", {
169
                        "value" : ["CST_LITERAL", "30"], "unit_name" : ["SIMPLE_NAME", "ns"]}
170
                      ]]}
171
                    ]]}
172
                  ]]}
173
                ]]}
174
              ]}
175
            ]}
176
          ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
177
            "lhs" : ["SIMPLE_NAME", "clk"], "rhs" : [{
178
              "value" : ["EXPRESSION", {
179
                "args" : [["EXPRESSION", {
180
                  "args" : [["EXPRESSION", {
181
                    "args" : [["EXPRESSION", {
182
                      "args" : [["CONSTANT_VALUE", {
183
                        "value" : ["CST_LITERAL", "'1'"]}
184
                      ]]}
185
                    ]]}
186
                  ]]}
187
                ]]}
188
              ], "delay" : ["EXPRESSION", {
189
                "args" : [["EXPRESSION", {
190
                  "args" : [["EXPRESSION", {
191
                    "args" : [["EXPRESSION", {
192
                      "args" : [["CONSTANT_VALUE", {
193
                        "value" : ["CST_LITERAL", "10"], "unit_name" : ["SIMPLE_NAME", "ns"]}
194
                      ]]}
195
                    ]]}
196
                  ]]}
197
                ]]}
198
              ]}
199
            , {
200
              "value" : ["EXPRESSION", {
201
                "args" : [["EXPRESSION", {
202
                  "args" : [["EXPRESSION", {
203
                    "args" : [["EXPRESSION", {
204
                      "args" : [["CONSTANT_VALUE", {
205
                        "value" : ["CST_LITERAL", "'0'"]}
206
                      ]]}
207
                    ]]}
208
                  ]]}
209
                ]]}
210
              ], "delay" : ["EXPRESSION", {
211
                "args" : [["EXPRESSION", {
212
                  "args" : [["EXPRESSION", {
213
                    "args" : [["EXPRESSION", {
214
                      "args" : [["CONSTANT_VALUE", {
215
                        "value" : ["CST_LITERAL", "20"], "unit_name" : ["SIMPLE_NAME", "ns"]}
216
                      ]]}
217
                    ]]}
218
                  ]]}
219
                ]]}
220
              ]}
221
            ]}
222
          ], ["WAIT_STATEMENT"], ["SIGNAL_ASSIGNMENT_STATEMENT", {
223
            "lhs" : ["SIMPLE_NAME", "clk"], "rhs" : [{
224
              "value" : ["EXPRESSION", {
225
                "args" : [["EXPRESSION", {
226
                  "args" : [["EXPRESSION", {
227
                    "args" : [["EXPRESSION", {
228
                      "args" : [["CONSTANT_VALUE", {
229
                        "value" : ["CST_LITERAL", "'1'"]}
230
                      ]]}
231
                    ]]}
232
                  ]]}
233
                ]]}
234
              ]}
235
            , {
236
              "value" : ["EXPRESSION", {
237
                "args" : [["EXPRESSION", {
238
                  "args" : [["EXPRESSION", {
239
                    "args" : [["EXPRESSION", {
240
                      "args" : [["CONSTANT_VALUE", {
241
                        "value" : ["CST_LITERAL", "'0'"]}
242
                      ]]}
243
                    ]]}
244
                  ]]}
245
                ]]}
246
              ], "delay" : ["EXPRESSION", {
247
                "args" : [["EXPRESSION", {
248
                  "args" : [["EXPRESSION", {
249
                    "args" : [["EXPRESSION", {
250
                      "args" : [["CONSTANT_VALUE", {
251
                        "value" : ["CST_LITERAL", "20"], "unit_name" : ["SIMPLE_NAME", "ns"]}
252
                      ]]}
253
                    ]]}
254
                  ]]}
255
                ]]}
256
              ]}
257
            ]}
258
          ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
259
            "lhs" : ["SIMPLE_NAME", "d"], "rhs" : [{
260
              "value" : ["EXPRESSION", {
261
                "args" : [["EXPRESSION", {
262
                  "args" : [["EXPRESSION", {
263
                    "args" : [["EXPRESSION", {
264
                      "args" : [["CONSTANT_VALUE", {
265
                        "value" : ["CST_LITERAL", "'0'"]}
266
                      ]]}
267
                    ]]}
268
                  ]]}
269
                ]]}
270
              ], "delay" : ["EXPRESSION", {
271
                "args" : [["EXPRESSION", {
272
                  "args" : [["EXPRESSION", {
273
                    "args" : [["EXPRESSION", {
274
                      "args" : [["CONSTANT_VALUE", {
275
                        "value" : ["CST_LITERAL", "10"], "unit_name" : ["SIMPLE_NAME", "ns"]}
276
                      ]]}
277
                    ]]}
278
                  ]]}
279
                ]]}
280
              ]}
281
            ]}
282
          ], ["WAIT_STATEMENT"]]}
283
        ]]}
284
      ]}
285
    ]}
286
  }