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

History | View | Annotate | Download (11.1 KB)

1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "fg_a_10"], "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_10"], "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", "right_way"], "active_sigs" : [["SIMPLE_NAME", "clk25M"], ["SIMPLE_NAME", "resetl"]], "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" : [["IF_STATEMENT", {
91
                "if_cases" : [{
92
                  "if_cond" : ["EXPRESSION", {
93
                    "id" : "=", "args" : [["EXPRESSION", {
94
                      "args" : [["EXPRESSION", {
95
                        "args" : [["EXPRESSION", {
96
                          "args" : [["CALL", ["SIMPLE_NAME", "data"]]]}
97
                        ]]}
98
                      ]]}
99
                    ], ["EXPRESSION", {
100
                      "args" : [["EXPRESSION", {
101
                        "args" : [["EXPRESSION", {
102
                          "args" : [["CONSTANT_VALUE", {
103
                            "value" : ["CST_LITERAL", "B\"0000_0000\""]}
104
                          ]]}
105
                        ]]}
106
                      ]]}
107
                    ]]}
108
                  ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
109
                    "lhs" : ["SIMPLE_NAME", "odat"], "rhs" : [{
110
                      "value" : ["EXPRESSION", {
111
                        "args" : [["EXPRESSION", {
112
                          "args" : [["EXPRESSION", {
113
                            "args" : [["EXPRESSION", {
114
                              "args" : [["CONSTANT_VALUE", {
115
                                "value" : ["CST_LITERAL", "B\"0000_0001\""]}
116
                              ]]}
117
                            ]]}
118
                          ]]}
119
                        ]]}
120
                      ]}
121
                    ]}
122
                  ]]}
123
                ], "default" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
124
                  "lhs" : ["SIMPLE_NAME", "odat"], "rhs" : [{
125
                    "value" : ["EXPRESSION", {
126
                      "args" : [["EXPRESSION", {
127
                        "args" : [["EXPRESSION", {
128
                          "args" : [["EXPRESSION", {
129
                            "args" : [["CALL", ["SIMPLE_NAME", "data"]]]}
130
                          ]]}
131
                        ]]}
132
                      ]]}
133
                    ]}
134
                  ]}
135
                ]]}
136
              ]]}
137
            ]}
138
          ]]}
139
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
140
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "data"], "rhs" : [{
141
            "expr" : [{
142
              "value" : ["EXPRESSION", {
143
                "args" : [["EXPRESSION", {
144
                  "args" : [["EXPRESSION", {
145
                    "args" : [["EXPRESSION", {
146
                      "id" : "&", "args" : [["EXPRESSION", {
147
                        "args" : [["CALL", ["SLICE_NAME", {
148
                          "id" : ["SIMPLE_NAME", "odat"], "range" : ["RANGE_WITH_DIRECTION", {
149
                            "direction" : "downto", "from" : ["EXPRESSION", {
150
                              "args" : [["EXPRESSION", {
151
                                "args" : [["CONSTANT_VALUE", {
152
                                  "value" : ["CST_LITERAL", "6"]}
153
                                ]]}
154
                              ]]}
155
                            ], "_to" : ["EXPRESSION", {
156
                              "args" : [["EXPRESSION", {
157
                                "args" : [["CONSTANT_VALUE", {
158
                                  "value" : ["CST_LITERAL", "0"]}
159
                                ]]}
160
                              ]]}
161
                            ]}
162
                          ]}
163
                        ]]]}
164
                      ], ["EXPRESSION", {
165
                        "args" : [["CONSTANT_VALUE", {
166
                          "value" : ["CST_LITERAL", "'0'"]}
167
                        ]]}
168
                      ]]}
169
                    ]]}
170
                  ]]}
171
                ]]}
172
              ]}
173
            ]}
174
          ]}
175
        ], ["PROCESS_STATEMENT", {
176
          "id" : ["IDENTIFIER", "clk_gen"], "PROCESS_STATEMENT_PART" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
177
            "lhs" : ["SIMPLE_NAME", "clk25M"], "rhs" : [{
178
              "value" : ["EXPRESSION", {
179
                "args" : [["EXPRESSION", {
180
                  "args" : [["EXPRESSION", {
181
                    "args" : [["EXPRESSION", {
182
                      "args" : [["CONSTANT_VALUE", {
183
                        "value" : ["CST_LITERAL", "'0'"]}
184
                      ]]}
185
                    ]]}
186
                  ]]}
187
                ]]}
188
              ]}
189
            , {
190
              "value" : ["EXPRESSION", {
191
                "args" : [["EXPRESSION", {
192
                  "args" : [["EXPRESSION", {
193
                    "args" : [["EXPRESSION", {
194
                      "args" : [["CONSTANT_VALUE", {
195
                        "value" : ["CST_LITERAL", "'1'"]}
196
                      ]]}
197
                    ]]}
198
                  ]]}
199
                ]]}
200
              ], "delay" : ["EXPRESSION", {
201
                "args" : [["EXPRESSION", {
202
                  "args" : [["EXPRESSION", {
203
                    "args" : [["EXPRESSION", {
204
                      "args" : [["CONSTANT_VALUE", {
205
                        "value" : ["CST_LITERAL", "10"], "unit_name" : ["SIMPLE_NAME", "ns"]}
206
                      ]]}
207
                    ]]}
208
                  ]]}
209
                ]]}
210
              ]}
211
            ]}
212
          ], ["WAIT_STATEMENT"]]}
213
        ], ["CONDITIONAL_SIGNAL_ASSIGNMENT", {
214
          "postponed" : false, "lhs" : ["SIMPLE_NAME", "resetl"], "rhs" : [{
215
            "expr" : [{
216
              "value" : ["EXPRESSION", {
217
                "args" : [["EXPRESSION", {
218
                  "args" : [["EXPRESSION", {
219
                    "args" : [["EXPRESSION", {
220
                      "args" : [["CONSTANT_VALUE", {
221
                        "value" : ["CST_LITERAL", "'1'"]}
222
                      ]]}
223
                    ]]}
224
                  ]]}
225
                ]]}
226
              ]}
227
            , {
228
              "value" : ["EXPRESSION", {
229
                "args" : [["EXPRESSION", {
230
                  "args" : [["EXPRESSION", {
231
                    "args" : [["EXPRESSION", {
232
                      "args" : [["CONSTANT_VALUE", {
233
                        "value" : ["CST_LITERAL", "'0'"]}
234
                      ]]}
235
                    ]]}
236
                  ]]}
237
                ]]}
238
              ], "delay" : ["EXPRESSION", {
239
                "args" : [["EXPRESSION", {
240
                  "args" : [["EXPRESSION", {
241
                    "args" : [["EXPRESSION", {
242
                      "args" : [["CONSTANT_VALUE", {
243
                        "value" : ["CST_LITERAL", "20"], "unit_name" : ["SIMPLE_NAME", "ns"]}
244
                      ]]}
245
                    ]]}
246
                  ]]}
247
                ]]}
248
              ]}
249
            , {
250
              "value" : ["EXPRESSION", {
251
                "args" : [["EXPRESSION", {
252
                  "args" : [["EXPRESSION", {
253
                    "args" : [["EXPRESSION", {
254
                      "args" : [["CONSTANT_VALUE", {
255
                        "value" : ["CST_LITERAL", "'1'"]}
256
                      ]]}
257
                    ]]}
258
                  ]]}
259
                ]]}
260
              ], "delay" : ["EXPRESSION", {
261
                "args" : [["EXPRESSION", {
262
                  "args" : [["EXPRESSION", {
263
                    "args" : [["EXPRESSION", {
264
                      "args" : [["CONSTANT_VALUE", {
265
                        "value" : ["CST_LITERAL", "60"], "unit_name" : ["SIMPLE_NAME", "ns"]}
266
                      ]]}
267
                    ]]}
268
                  ]]}
269
                ]]}
270
              ]}
271
            ]}
272
          ]}
273
        ]]}
274
      ]}
275
    ]}
276
  }