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_tb_05_07.json @ 3fd18385

History | View | Annotate | Download (10.8 KB)

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