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

History | View | Annotate | Download (10.9 KB)

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