Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (12.1 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "ch_05_17"], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
6
      ]}
7
    , {
8
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
9
        "name" : ["IDENTIFIER", "test"], "entity" : ["IDENTIFIER", "ch_05_17"], "ARCHITECTURE_DECLARATIVE_PART" : [{
10
          "declaration" : ["SIGNAL_DECLARATION", {
11
            "names" : [["IDENTIFIER", "s"], ["IDENTIFIER", "r"], ["IDENTIFIER", "q"], ["IDENTIFIER", "q_n"]], "typ" : {
12
              "name" : ["SIMPLE_NAME", "bit"]}
13
            , "init_val" : ["EXPRESSION", {
14
              "args" : [["EXPRESSION", {
15
                "args" : [["EXPRESSION", {
16
                  "args" : [["EXPRESSION", {
17
                    "args" : [["CONSTANT_VALUE", {
18
                      "value" : ["CST_LITERAL", "'0'"]}
19
                    ]]}
20
                  ]]}
21
                ]]}
22
              ]]}
23
            ]}
24
          ]}
25
        ], "ARCHITECTURE_STATEMENT_PART" : [["CONDITIONAL_SIGNAL_ASSIGNMENT", {
26
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "q"], "rhs" : [{
27
            "expr" : [{
28
              "value" : ["EXPRESSION", {
29
                "args" : [["EXPRESSION", {
30
                  "args" : [["EXPRESSION", {
31
                    "args" : [["EXPRESSION", {
32
                      "args" : [["CONSTANT_VALUE", {
33
                        "value" : ["CST_LITERAL", "'1'"]}
34
                      ]]}
35
                    ]]}
36
                  ]]}
37
                ]]}
38
              ]}
39
            ], "cond" : ["EXPRESSION", {
40
              "id" : "=", "args" : [["EXPRESSION", {
41
                "args" : [["EXPRESSION", {
42
                  "args" : [["EXPRESSION", {
43
                    "args" : [["CALL", ["SIMPLE_NAME", "s"]]]}
44
                  ]]}
45
                ]]}
46
              ], ["EXPRESSION", {
47
                "args" : [["EXPRESSION", {
48
                  "args" : [["EXPRESSION", {
49
                    "args" : [["CONSTANT_VALUE", {
50
                      "value" : ["CST_LITERAL", "'1'"]}
51
                    ]]}
52
                  ]]}
53
                ]]}
54
              ]]}
55
            ]}
56
          , {
57
            "expr" : [{
58
              "value" : ["EXPRESSION", {
59
                "args" : [["EXPRESSION", {
60
                  "args" : [["EXPRESSION", {
61
                    "args" : [["EXPRESSION", {
62
                      "args" : [["CONSTANT_VALUE", {
63
                        "value" : ["CST_LITERAL", "'0'"]}
64
                      ]]}
65
                    ]]}
66
                  ]]}
67
                ]]}
68
              ]}
69
            ], "cond" : ["EXPRESSION", {
70
              "id" : "=", "args" : [["EXPRESSION", {
71
                "args" : [["EXPRESSION", {
72
                  "args" : [["EXPRESSION", {
73
                    "args" : [["CALL", ["SIMPLE_NAME", "r"]]]}
74
                  ]]}
75
                ]]}
76
              ], ["EXPRESSION", {
77
                "args" : [["EXPRESSION", {
78
                  "args" : [["EXPRESSION", {
79
                    "args" : [["CONSTANT_VALUE", {
80
                      "value" : ["CST_LITERAL", "'1'"]}
81
                    ]]}
82
                  ]]}
83
                ]]}
84
              ]]}
85
            ]}
86
          ]}
87
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
88
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "q_n"], "rhs" : [{
89
            "expr" : [{
90
              "value" : ["EXPRESSION", {
91
                "args" : [["EXPRESSION", {
92
                  "args" : [["EXPRESSION", {
93
                    "args" : [["EXPRESSION", {
94
                      "args" : [["CONSTANT_VALUE", {
95
                        "value" : ["CST_LITERAL", "'0'"]}
96
                      ]]}
97
                    ]]}
98
                  ]]}
99
                ]]}
100
              ]}
101
            ], "cond" : ["EXPRESSION", {
102
              "id" : "=", "args" : [["EXPRESSION", {
103
                "args" : [["EXPRESSION", {
104
                  "args" : [["EXPRESSION", {
105
                    "args" : [["CALL", ["SIMPLE_NAME", "s"]]]}
106
                  ]]}
107
                ]]}
108
              ], ["EXPRESSION", {
109
                "args" : [["EXPRESSION", {
110
                  "args" : [["EXPRESSION", {
111
                    "args" : [["CONSTANT_VALUE", {
112
                      "value" : ["CST_LITERAL", "'1'"]}
113
                    ]]}
114
                  ]]}
115
                ]]}
116
              ]]}
117
            ]}
118
          , {
119
            "expr" : [{
120
              "value" : ["EXPRESSION", {
121
                "args" : [["EXPRESSION", {
122
                  "args" : [["EXPRESSION", {
123
                    "args" : [["EXPRESSION", {
124
                      "args" : [["CONSTANT_VALUE", {
125
                        "value" : ["CST_LITERAL", "'1'"]}
126
                      ]]}
127
                    ]]}
128
                  ]]}
129
                ]]}
130
              ]}
131
            ], "cond" : ["EXPRESSION", {
132
              "id" : "=", "args" : [["EXPRESSION", {
133
                "args" : [["EXPRESSION", {
134
                  "args" : [["EXPRESSION", {
135
                    "args" : [["CALL", ["SIMPLE_NAME", "r"]]]}
136
                  ]]}
137
                ]]}
138
              ], ["EXPRESSION", {
139
                "args" : [["EXPRESSION", {
140
                  "args" : [["EXPRESSION", {
141
                    "args" : [["CONSTANT_VALUE", {
142
                      "value" : ["CST_LITERAL", "'1'"]}
143
                    ]]}
144
                  ]]}
145
                ]]}
146
              ]]}
147
            ]}
148
          ]}
149
        ], ["PROCESS_STATEMENT", {
150
          "id" : ["IDENTIFIER", "check"], "PROCESS_STATEMENT_PART" : [["ASSERTION_STATEMENT", {
151
            "cond" : ["EXPRESSION", {
152
              "args" : [["EXPRESSION", {
153
                "args" : [["EXPRESSION", {
154
                  "args" : [["EXPRESSION", {
155
                    "id" : "not", "args" : [["EXPRESSION", {
156
                      "id" : "and", "args" : [["EXPRESSION", {
157
                        "id" : "=", "args" : [["EXPRESSION", {
158
                          "args" : [["EXPRESSION", {
159
                            "args" : [["EXPRESSION", {
160
                              "args" : [["CALL", ["SIMPLE_NAME", "s"]]]}
161
                            ]]}
162
                          ]]}
163
                        ], ["EXPRESSION", {
164
                          "args" : [["EXPRESSION", {
165
                            "args" : [["EXPRESSION", {
166
                              "args" : [["CONSTANT_VALUE", {
167
                                "value" : ["CST_LITERAL", "'1'"]}
168
                              ]]}
169
                            ]]}
170
                          ]]}
171
                        ]]}
172
                      ], ["EXPRESSION", {
173
                        "id" : "=", "args" : [["EXPRESSION", {
174
                          "args" : [["EXPRESSION", {
175
                            "args" : [["EXPRESSION", {
176
                              "args" : [["CALL", ["SIMPLE_NAME", "r"]]]}
177
                            ]]}
178
                          ]]}
179
                        ], ["EXPRESSION", {
180
                          "args" : [["EXPRESSION", {
181
                            "args" : [["EXPRESSION", {
182
                              "args" : [["CONSTANT_VALUE", {
183
                                "value" : ["CST_LITERAL", "'1'"]}
184
                              ]]}
185
                            ]]}
186
                          ]]}
187
                        ]]}
188
                      ]]}
189
                    ]]}
190
                  ]]}
191
                ]]}
192
              ]]}
193
            ], "report" : ["EXPRESSION", {
194
              "args" : [["EXPRESSION", {
195
                "args" : [["EXPRESSION", {
196
                  "args" : [["EXPRESSION", {
197
                    "args" : [["CONSTANT_VALUE", {
198
                      "value" : ["CST_LITERAL", "\"Incorrect use of S_R_flip_flop: s and r both '1'\""]}
199
                    ]]}
200
                  ]]}
201
                ]]}
202
              ]]}
203
            ]}
204
          ], ["WAIT_STATEMENT"]]}
205
        ], ["PROCESS_STATEMENT", {
206
          "id" : ["IDENTIFIER", "stimulus"], "PROCESS_STATEMENT_PART" : [["WAIT_STATEMENT"], ["SIGNAL_ASSIGNMENT_STATEMENT", {
207
            "lhs" : ["SIMPLE_NAME", "s"], "rhs" : [{
208
              "value" : ["EXPRESSION", {
209
                "args" : [["EXPRESSION", {
210
                  "args" : [["EXPRESSION", {
211
                    "args" : [["EXPRESSION", {
212
                      "args" : [["CONSTANT_VALUE", {
213
                        "value" : ["CST_LITERAL", "'1'"]}
214
                      ]]}
215
                    ]]}
216
                  ]]}
217
                ]]}
218
              ]}
219
            ]}
220
          ], ["WAIT_STATEMENT"], ["SIGNAL_ASSIGNMENT_STATEMENT", {
221
            "lhs" : ["SIMPLE_NAME", "s"], "rhs" : [{
222
              "value" : ["EXPRESSION", {
223
                "args" : [["EXPRESSION", {
224
                  "args" : [["EXPRESSION", {
225
                    "args" : [["EXPRESSION", {
226
                      "args" : [["CONSTANT_VALUE", {
227
                        "value" : ["CST_LITERAL", "'0'"]}
228
                      ]]}
229
                    ]]}
230
                  ]]}
231
                ]]}
232
              ]}
233
            ]}
234
          ], ["WAIT_STATEMENT"], ["SIGNAL_ASSIGNMENT_STATEMENT", {
235
            "lhs" : ["SIMPLE_NAME", "r"], "rhs" : [{
236
              "value" : ["EXPRESSION", {
237
                "args" : [["EXPRESSION", {
238
                  "args" : [["EXPRESSION", {
239
                    "args" : [["EXPRESSION", {
240
                      "args" : [["CONSTANT_VALUE", {
241
                        "value" : ["CST_LITERAL", "'1'"]}
242
                      ]]}
243
                    ]]}
244
                  ]]}
245
                ]]}
246
              ]}
247
            ]}
248
          ], ["WAIT_STATEMENT"], ["SIGNAL_ASSIGNMENT_STATEMENT", {
249
            "lhs" : ["SIMPLE_NAME", "r"], "rhs" : [{
250
              "value" : ["EXPRESSION", {
251
                "args" : [["EXPRESSION", {
252
                  "args" : [["EXPRESSION", {
253
                    "args" : [["EXPRESSION", {
254
                      "args" : [["CONSTANT_VALUE", {
255
                        "value" : ["CST_LITERAL", "'0'"]}
256
                      ]]}
257
                    ]]}
258
                  ]]}
259
                ]]}
260
              ]}
261
            ]}
262
          ], ["WAIT_STATEMENT"], ["SIGNAL_ASSIGNMENT_STATEMENT", {
263
            "lhs" : ["SIMPLE_NAME", "s"], "rhs" : [{
264
              "value" : ["EXPRESSION", {
265
                "args" : [["EXPRESSION", {
266
                  "args" : [["EXPRESSION", {
267
                    "args" : [["EXPRESSION", {
268
                      "args" : [["CONSTANT_VALUE", {
269
                        "value" : ["CST_LITERAL", "'1'"]}
270
                      ]]}
271
                    ]]}
272
                  ]]}
273
                ]]}
274
              ]}
275
            ]}
276
          ], ["WAIT_STATEMENT"], ["SIGNAL_ASSIGNMENT_STATEMENT", {
277
            "lhs" : ["SIMPLE_NAME", "r"], "rhs" : [{
278
              "value" : ["EXPRESSION", {
279
                "args" : [["EXPRESSION", {
280
                  "args" : [["EXPRESSION", {
281
                    "args" : [["EXPRESSION", {
282
                      "args" : [["CONSTANT_VALUE", {
283
                        "value" : ["CST_LITERAL", "'1'"]}
284
                      ]]}
285
                    ]]}
286
                  ]]}
287
                ]]}
288
              ]}
289
            ]}
290
          ], ["WAIT_STATEMENT"], ["SIGNAL_ASSIGNMENT_STATEMENT", {
291
            "lhs" : ["SIMPLE_NAME", "s"], "rhs" : [{
292
              "value" : ["EXPRESSION", {
293
                "args" : [["EXPRESSION", {
294
                  "args" : [["EXPRESSION", {
295
                    "args" : [["EXPRESSION", {
296
                      "args" : [["CONSTANT_VALUE", {
297
                        "value" : ["CST_LITERAL", "'0'"]}
298
                      ]]}
299
                    ]]}
300
                  ]]}
301
                ]]}
302
              ]}
303
            ]}
304
          ], ["WAIT_STATEMENT"], ["SIGNAL_ASSIGNMENT_STATEMENT", {
305
            "lhs" : ["SIMPLE_NAME", "r"], "rhs" : [{
306
              "value" : ["EXPRESSION", {
307
                "args" : [["EXPRESSION", {
308
                  "args" : [["EXPRESSION", {
309
                    "args" : [["EXPRESSION", {
310
                      "args" : [["CONSTANT_VALUE", {
311
                        "value" : ["CST_LITERAL", "'0'"]}
312
                      ]]}
313
                    ]]}
314
                  ]]}
315
                ]]}
316
              ]}
317
            ]}
318
          ], ["WAIT_STATEMENT"], ["WAIT_STATEMENT"]]}
319
        ]]}
320
      ]}
321
    ]}
322
  }