Project

General

Profile

Download (150 KB) Statistics
| Branch: | Tag: | Revision:
1
{
2
  "DESIGN_FILE" : {
3
    "design_units" : [{
4
      "contexts" : [["LIBRARY_CLAUSE", [["IDENTIFIER", "ieee"]]], ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "ieee"], ["SIMPLE_NAME", "std_logic_1164"]]]]], ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "ieee"], ["SIMPLE_NAME", "std_logic_unsigned"]]]]], ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "ieee"], ["SIMPLE_NAME", "numeric_std"]]]]], ["USE_CLAUSE", [["SELECTED_NAME", [["SIMPLE_NAME", "work"], ["SIMPLE_NAME", "EthernetRegisters"]]]]]], "library" : ["ENTITY_DECLARATION", {
5
        "name" : ["IDENTIFIER", "EthernetRx"], "ports" : [{
6
          "names" : [["IDENTIFIER", "clk_50"]], "mode" : ["in"], "typ" : {
7
            "name" : ["SIMPLE_NAME", "std_logic"]}
8
          }
9
        , {
10
          "names" : [["IDENTIFIER", "reset_n"]], "mode" : ["in"], "typ" : {
11
            "name" : ["SIMPLE_NAME", "std_logic"]}
12
          }
13
        , {
14
          "names" : [["IDENTIFIER", "ethernetRXDV"]], "mode" : ["in"], "typ" : {
15
            "name" : ["SIMPLE_NAME", "std_logic"]}
16
          , "expr" : ["EXPRESSION", {
17
            "args" : [["EXPRESSION", {
18
              "args" : [["EXPRESSION", {
19
                "args" : [["EXPRESSION", {
20
                  "args" : [["CONSTANT_VALUE", {
21
                    "value" : ["CST_LITERAL", "'0'"]}
22
                  ]]}
23
                ]]}
24
              ]]}
25
            ]]}
26
          ]}
27
        , {
28
          "names" : [["IDENTIFIER", "ethernetRXCLK"]], "mode" : ["in"], "typ" : {
29
            "name" : ["SIMPLE_NAME", "std_logic"]}
30
          , "expr" : ["EXPRESSION", {
31
            "args" : [["EXPRESSION", {
32
              "args" : [["EXPRESSION", {
33
                "args" : [["EXPRESSION", {
34
                  "args" : [["CONSTANT_VALUE", {
35
                    "value" : ["CST_LITERAL", "'0'"]}
36
                  ]]}
37
                ]]}
38
              ]]}
39
            ]]}
40
          ]}
41
        , {
42
          "names" : [["IDENTIFIER", "ethernetRXER"]], "mode" : ["in"], "typ" : {
43
            "name" : ["SIMPLE_NAME", "std_logic"]}
44
          , "expr" : ["EXPRESSION", {
45
            "args" : [["EXPRESSION", {
46
              "args" : [["EXPRESSION", {
47
                "args" : [["EXPRESSION", {
48
                  "args" : [["CONSTANT_VALUE", {
49
                    "value" : ["CST_LITERAL", "'0'"]}
50
                  ]]}
51
                ]]}
52
              ]]}
53
            ]]}
54
          ]}
55
        , {
56
          "names" : [["IDENTIFIER", "ethernetRXD"]], "mode" : ["in"], "typ" : {
57
            "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
58
              "ranges" : [["RANGE_WITH_DIRECTION", {
59
                "direction" : "downto", "from" : ["EXPRESSION", {
60
                  "args" : [["EXPRESSION", {
61
                    "args" : [["CONSTANT_VALUE", {
62
                      "value" : ["CST_LITERAL", "7"]}
63
                    ]]}
64
                  ]]}
65
                ], "_to" : ["EXPRESSION", {
66
                  "args" : [["EXPRESSION", {
67
                    "args" : [["CONSTANT_VALUE", {
68
                      "value" : ["CST_LITERAL", "0"]}
69
                    ]]}
70
                  ]]}
71
                ]}
72
              ]]}
73
            ]}
74
          , "expr" : ["EXPRESSION", {
75
            "args" : [["EXPRESSION", {
76
              "args" : [["EXPRESSION", {
77
                "args" : [["EXPRESSION", {
78
                  "args" : [["AGGREGATE", {
79
                    "elems" : [{
80
                      "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
81
                        "args" : [["EXPRESSION", {
82
                          "args" : [["EXPRESSION", {
83
                            "args" : [["EXPRESSION", {
84
                              "args" : [["CONSTANT_VALUE", {
85
                                "value" : ["CST_LITERAL", "'0'"]}
86
                              ]]}
87
                            ]]}
88
                          ]]}
89
                        ]]}
90
                      ]}
91
                    ]}
92
                  ]]}
93
                ]]}
94
              ]]}
95
            ]]}
96
          ]}
97
        , {
98
          "names" : [["IDENTIFIER", "etherDin"]], "mode" : ["in"], "typ" : {
99
            "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
100
              "ranges" : [["RANGE_WITH_DIRECTION", {
101
                "direction" : "downto", "from" : ["EXPRESSION", {
102
                  "args" : [["EXPRESSION", {
103
                    "args" : [["CONSTANT_VALUE", {
104
                      "value" : ["CST_LITERAL", "31"]}
105
                    ]]}
106
                  ]]}
107
                ], "_to" : ["EXPRESSION", {
108
                  "args" : [["EXPRESSION", {
109
                    "args" : [["CONSTANT_VALUE", {
110
                      "value" : ["CST_LITERAL", "0"]}
111
                    ]]}
112
                  ]]}
113
                ]}
114
              ]]}
115
            ]}
116
          , "expr" : ["EXPRESSION", {
117
            "args" : [["EXPRESSION", {
118
              "args" : [["EXPRESSION", {
119
                "args" : [["EXPRESSION", {
120
                  "args" : [["AGGREGATE", {
121
                    "elems" : [{
122
                      "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
123
                        "args" : [["EXPRESSION", {
124
                          "args" : [["EXPRESSION", {
125
                            "args" : [["EXPRESSION", {
126
                              "args" : [["CONSTANT_VALUE", {
127
                                "value" : ["CST_LITERAL", "'0'"]}
128
                              ]]}
129
                            ]]}
130
                          ]]}
131
                        ]]}
132
                      ]}
133
                    ]}
134
                  ]]}
135
                ]]}
136
              ]]}
137
            ]]}
138
          ]}
139
        , {
140
          "names" : [["IDENTIFIER", "etherRxDout"]], "mode" : ["out"], "typ" : {
141
            "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
142
              "ranges" : [["RANGE_WITH_DIRECTION", {
143
                "direction" : "downto", "from" : ["EXPRESSION", {
144
                  "args" : [["EXPRESSION", {
145
                    "args" : [["CONSTANT_VALUE", {
146
                      "value" : ["CST_LITERAL", "31"]}
147
                    ]]}
148
                  ]]}
149
                ], "_to" : ["EXPRESSION", {
150
                  "args" : [["EXPRESSION", {
151
                    "args" : [["CONSTANT_VALUE", {
152
                      "value" : ["CST_LITERAL", "0"]}
153
                    ]]}
154
                  ]]}
155
                ]}
156
              ]]}
157
            ]}
158
          }
159
        , {
160
          "names" : [["IDENTIFIER", "etherRxConDout"]], "mode" : ["out"], "typ" : {
161
            "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
162
              "ranges" : [["RANGE_WITH_DIRECTION", {
163
                "direction" : "downto", "from" : ["EXPRESSION", {
164
                  "args" : [["EXPRESSION", {
165
                    "args" : [["CONSTANT_VALUE", {
166
                      "value" : ["CST_LITERAL", "31"]}
167
                    ]]}
168
                  ]]}
169
                ], "_to" : ["EXPRESSION", {
170
                  "args" : [["EXPRESSION", {
171
                    "args" : [["CONSTANT_VALUE", {
172
                      "value" : ["CST_LITERAL", "0"]}
173
                    ]]}
174
                  ]]}
175
                ]}
176
              ]]}
177
            ]}
178
          }
179
        , {
180
          "names" : [["IDENTIFIER", "etherAddr"]], "mode" : ["in"], "typ" : {
181
            "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
182
              "ranges" : [["RANGE_WITH_DIRECTION", {
183
                "direction" : "downto", "from" : ["EXPRESSION", {
184
                  "args" : [["EXPRESSION", {
185
                    "args" : [["CONSTANT_VALUE", {
186
                      "value" : ["CST_LITERAL", "15"]}
187
                    ]]}
188
                  ]]}
189
                ], "_to" : ["EXPRESSION", {
190
                  "args" : [["EXPRESSION", {
191
                    "args" : [["CONSTANT_VALUE", {
192
                      "value" : ["CST_LITERAL", "0"]}
193
                    ]]}
194
                  ]]}
195
                ]}
196
              ]]}
197
            ]}
198
          }
199
        , {
200
          "names" : [["IDENTIFIER", "etherRe"]], "mode" : ["in"], "typ" : {
201
            "name" : ["SIMPLE_NAME", "std_logic"]}
202
          }
203
        , {
204
          "names" : [["IDENTIFIER", "etherWbe"]], "mode" : ["in"], "typ" : {
205
            "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
206
              "ranges" : [["RANGE_WITH_DIRECTION", {
207
                "direction" : "downto", "from" : ["EXPRESSION", {
208
                  "args" : [["EXPRESSION", {
209
                    "args" : [["CONSTANT_VALUE", {
210
                      "value" : ["CST_LITERAL", "3"]}
211
                    ]]}
212
                  ]]}
213
                ], "_to" : ["EXPRESSION", {
214
                  "args" : [["EXPRESSION", {
215
                    "args" : [["CONSTANT_VALUE", {
216
                      "value" : ["CST_LITERAL", "0"]}
217
                    ]]}
218
                  ]]}
219
                ]}
220
              ]]}
221
            ]}
222
          }
223
        ], "ENTITY_DECLARATIVE_PART" : [], "ENTITY_STATEMENT_PART" : []}
224
      ]}
225
    , {
226
      "contexts" : [], "library" : ["ARCHITECTURE_BODY", {
227
        "name" : ["IDENTIFIER", "rtl"], "entity" : ["IDENTIFIER", "EthernetRx"], "ARCHITECTURE_DECLARATIVE_PART" : [{
228
          "definition" : ["TYPE_DECLARATION", {
229
            "name" : ["IDENTIFIER", "Vector16"], "definition" : ["ARRAY_TYPE_DEFINITION", {
230
              "indexes" : [["SIMPLE_NAME", "natural"]], "definition" : {
231
                "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
232
                  "ranges" : [["RANGE_WITH_DIRECTION", {
233
                    "direction" : "downto", "from" : ["EXPRESSION", {
234
                      "args" : [["EXPRESSION", {
235
                        "args" : [["CONSTANT_VALUE", {
236
                          "value" : ["CST_LITERAL", "15"]}
237
                        ]]}
238
                      ]]}
239
                    ], "_to" : ["EXPRESSION", {
240
                      "args" : [["EXPRESSION", {
241
                        "args" : [["CONSTANT_VALUE", {
242
                          "value" : ["CST_LITERAL", "0"]}
243
                        ]]}
244
                      ]]}
245
                    ]}
246
                  ]]}
247
                ]}
248
              }
249
            ]}
250
          ]}
251
        , {
252
          "declaration" : ["SIGNAL_DECLARATION", {
253
            "names" : [["IDENTIFIER", "s_reset"]], "typ" : {
254
              "name" : ["SIMPLE_NAME", "std_logic"]}
255
            }
256
          ]}
257
        , {
258
          "declaration" : ["SIGNAL_DECLARATION", {
259
            "names" : [["IDENTIFIER", "rxdv"]], "typ" : {
260
              "name" : ["SIMPLE_NAME", "std_logic"]}
261
            }
262
          ]}
263
        , {
264
          "declaration" : ["SIGNAL_DECLARATION", {
265
            "names" : [["IDENTIFIER", "rxd"]], "typ" : {
266
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
267
                "ranges" : [["RANGE_WITH_DIRECTION", {
268
                  "direction" : "downto", "from" : ["EXPRESSION", {
269
                    "args" : [["EXPRESSION", {
270
                      "args" : [["CONSTANT_VALUE", {
271
                        "value" : ["CST_LITERAL", "7"]}
272
                      ]]}
273
                    ]]}
274
                  ], "_to" : ["EXPRESSION", {
275
                    "args" : [["EXPRESSION", {
276
                      "args" : [["CONSTANT_VALUE", {
277
                        "value" : ["CST_LITERAL", "0"]}
278
                      ]]}
279
                    ]]}
280
                  ]}
281
                ]]}
282
              ]}
283
            }
284
          ]}
285
        , {
286
          "declaration" : ["SIGNAL_DECLARATION", {
287
            "names" : [["IDENTIFIER", "rxd2"]], "typ" : {
288
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
289
                "ranges" : [["RANGE_WITH_DIRECTION", {
290
                  "direction" : "downto", "from" : ["EXPRESSION", {
291
                    "args" : [["EXPRESSION", {
292
                      "args" : [["CONSTANT_VALUE", {
293
                        "value" : ["CST_LITERAL", "7"]}
294
                      ]]}
295
                    ]]}
296
                  ], "_to" : ["EXPRESSION", {
297
                    "args" : [["EXPRESSION", {
298
                      "args" : [["CONSTANT_VALUE", {
299
                        "value" : ["CST_LITERAL", "0"]}
300
                      ]]}
301
                    ]]}
302
                  ]}
303
                ]]}
304
              ]}
305
            }
306
          ]}
307
        , {
308
          "definition" : ["TYPE_DECLARATION", {
309
            "name" : ["IDENTIFIER", "STATE"], "definition" : ["ENUMERATION_TYPE_DEFINITION", [["IDENTIFIER", "sreset"], ["IDENTIFIER", "interframe"], ["IDENTIFIER", "preamble"], ["IDENTIFIER", "data"], ["IDENTIFIER", "check"], ["IDENTIFIER", "pass"], ["IDENTIFIER", "fail"]]]}
310
          ]}
311
        , {
312
          "declaration" : ["SIGNAL_DECLARATION", {
313
            "names" : [["IDENTIFIER", "RxState"]], "typ" : {
314
              "name" : ["SIMPLE_NAME", "STATE"]}
315
            , "init_val" : ["EXPRESSION", {
316
              "args" : [["EXPRESSION", {
317
                "args" : [["EXPRESSION", {
318
                  "args" : [["EXPRESSION", {
319
                    "args" : [["CALL", ["SIMPLE_NAME", "interframe"]]]}
320
                  ]]}
321
                ]]}
322
              ]]}
323
            ]}
324
          ]}
325
        , {
326
          "declaration" : ["SIGNAL_DECLARATION", {
327
            "names" : [["IDENTIFIER", "rxCounter"]], "typ" : {
328
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
329
                "ranges" : [["RANGE_WITH_DIRECTION", {
330
                  "direction" : "downto", "from" : ["EXPRESSION", {
331
                    "args" : [["EXPRESSION", {
332
                      "args" : [["CONSTANT_VALUE", {
333
                        "value" : ["CST_LITERAL", "15"]}
334
                      ]]}
335
                    ]]}
336
                  ], "_to" : ["EXPRESSION", {
337
                    "args" : [["EXPRESSION", {
338
                      "args" : [["CONSTANT_VALUE", {
339
                        "value" : ["CST_LITERAL", "0"]}
340
                      ]]}
341
                    ]]}
342
                  ]}
343
                ]]}
344
              ]}
345
            }
346
          ]}
347
        , {
348
          "declaration" : ["SIGNAL_DECLARATION", {
349
            "names" : [["IDENTIFIER", "ramDin"]], "typ" : {
350
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
351
                "ranges" : [["RANGE_WITH_DIRECTION", {
352
                  "direction" : "downto", "from" : ["EXPRESSION", {
353
                    "args" : [["EXPRESSION", {
354
                      "args" : [["CONSTANT_VALUE", {
355
                        "value" : ["CST_LITERAL", "7"]}
356
                      ]]}
357
                    ]]}
358
                  ], "_to" : ["EXPRESSION", {
359
                    "args" : [["EXPRESSION", {
360
                      "args" : [["CONSTANT_VALUE", {
361
                        "value" : ["CST_LITERAL", "0"]}
362
                      ]]}
363
                    ]]}
364
                  ]}
365
                ]]}
366
              ]}
367
            }
368
          ]}
369
        , {
370
          "declaration" : ["SIGNAL_DECLARATION", {
371
            "names" : [["IDENTIFIER", "ramWrAddr"]], "typ" : {
372
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
373
                "ranges" : [["RANGE_WITH_DIRECTION", {
374
                  "direction" : "downto", "from" : ["EXPRESSION", {
375
                    "args" : [["EXPRESSION", {
376
                      "args" : [["CONSTANT_VALUE", {
377
                        "value" : ["CST_LITERAL", "12"]}
378
                      ]]}
379
                    ]]}
380
                  ], "_to" : ["EXPRESSION", {
381
                    "args" : [["EXPRESSION", {
382
                      "args" : [["CONSTANT_VALUE", {
383
                        "value" : ["CST_LITERAL", "0"]}
384
                      ]]}
385
                    ]]}
386
                  ]}
387
                ]]}
388
              ]}
389
            }
390
          ]}
391
        , {
392
          "declaration" : ["SIGNAL_DECLARATION", {
393
            "names" : [["IDENTIFIER", "ramWea"]], "typ" : {
394
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
395
                "ranges" : [["RANGE_WITH_DIRECTION", {
396
                  "direction" : "downto", "from" : ["EXPRESSION", {
397
                    "args" : [["EXPRESSION", {
398
                      "args" : [["CONSTANT_VALUE", {
399
                        "value" : ["CST_LITERAL", "0"]}
400
                      ]]}
401
                    ]]}
402
                  ], "_to" : ["EXPRESSION", {
403
                    "args" : [["EXPRESSION", {
404
                      "args" : [["CONSTANT_VALUE", {
405
                        "value" : ["CST_LITERAL", "0"]}
406
                      ]]}
407
                    ]]}
408
                  ]}
409
                ]]}
410
              ]}
411
            }
412
          ]}
413
        , {
414
          "declaration" : ["SIGNAL_DECLARATION", {
415
            "names" : [["IDENTIFIER", "rxLen"]], "typ" : {
416
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
417
                "ranges" : [["RANGE_WITH_DIRECTION", {
418
                  "direction" : "downto", "from" : ["EXPRESSION", {
419
                    "args" : [["EXPRESSION", {
420
                      "args" : [["CONSTANT_VALUE", {
421
                        "value" : ["CST_LITERAL", "15"]}
422
                      ]]}
423
                    ]]}
424
                  ], "_to" : ["EXPRESSION", {
425
                    "args" : [["EXPRESSION", {
426
                      "args" : [["CONSTANT_VALUE", {
427
                        "value" : ["CST_LITERAL", "0"]}
428
                      ]]}
429
                    ]]}
430
                  ]}
431
                ]]}
432
              ]}
433
            }
434
          ]}
435
        , {
436
          "declaration" : ["SIGNAL_DECLARATION", {
437
            "names" : [["IDENTIFIER", "rxOffset"]], "typ" : {
438
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
439
                "ranges" : [["RANGE_WITH_DIRECTION", {
440
                  "direction" : "downto", "from" : ["EXPRESSION", {
441
                    "args" : [["EXPRESSION", {
442
                      "args" : [["CONSTANT_VALUE", {
443
                        "value" : ["CST_LITERAL", "12"]}
444
                      ]]}
445
                    ]]}
446
                  ], "_to" : ["EXPRESSION", {
447
                    "args" : [["EXPRESSION", {
448
                      "args" : [["CONSTANT_VALUE", {
449
                        "value" : ["CST_LITERAL", "0"]}
450
                      ]]}
451
                    ]]}
452
                  ]}
453
                ]]}
454
              ]}
455
            }
456
          ]}
457
        , {
458
          "declaration" : ["SIGNAL_DECLARATION", {
459
            "names" : [["IDENTIFIER", "srcMac"]], "typ" : {
460
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
461
                "ranges" : [["RANGE_WITH_DIRECTION", {
462
                  "direction" : "downto", "from" : ["EXPRESSION", {
463
                    "args" : [["EXPRESSION", {
464
                      "args" : [["CONSTANT_VALUE", {
465
                        "value" : ["CST_LITERAL", "47"]}
466
                      ]]}
467
                    ]]}
468
                  ], "_to" : ["EXPRESSION", {
469
                    "args" : [["EXPRESSION", {
470
                      "args" : [["CONSTANT_VALUE", {
471
                        "value" : ["CST_LITERAL", "0"]}
472
                      ]]}
473
                    ]]}
474
                  ]}
475
                ]]}
476
              ]}
477
            }
478
          ]}
479
        , {
480
          "declaration" : ["SIGNAL_DECLARATION", {
481
            "names" : [["IDENTIFIER", "destMac"]], "typ" : {
482
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
483
                "ranges" : [["RANGE_WITH_DIRECTION", {
484
                  "direction" : "downto", "from" : ["EXPRESSION", {
485
                    "args" : [["EXPRESSION", {
486
                      "args" : [["CONSTANT_VALUE", {
487
                        "value" : ["CST_LITERAL", "47"]}
488
                      ]]}
489
                    ]]}
490
                  ], "_to" : ["EXPRESSION", {
491
                    "args" : [["EXPRESSION", {
492
                      "args" : [["CONSTANT_VALUE", {
493
                        "value" : ["CST_LITERAL", "0"]}
494
                      ]]}
495
                    ]]}
496
                  ]}
497
                ]]}
498
              ]}
499
            }
500
          ]}
501
        , {
502
          "declaration" : ["SIGNAL_DECLARATION", {
503
            "names" : [["IDENTIFIER", "srcMacFilter"]], "typ" : {
504
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
505
                "ranges" : [["RANGE_WITH_DIRECTION", {
506
                  "direction" : "downto", "from" : ["EXPRESSION", {
507
                    "args" : [["EXPRESSION", {
508
                      "args" : [["CONSTANT_VALUE", {
509
                        "value" : ["CST_LITERAL", "47"]}
510
                      ]]}
511
                    ]]}
512
                  ], "_to" : ["EXPRESSION", {
513
                    "args" : [["EXPRESSION", {
514
                      "args" : [["CONSTANT_VALUE", {
515
                        "value" : ["CST_LITERAL", "0"]}
516
                      ]]}
517
                    ]]}
518
                  ]}
519
                ]]}
520
              ]}
521
            }
522
          ]}
523
        , {
524
          "declaration" : ["SIGNAL_DECLARATION", {
525
            "names" : [["IDENTIFIER", "destMacFilter"]], "typ" : {
526
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
527
                "ranges" : [["RANGE_WITH_DIRECTION", {
528
                  "direction" : "downto", "from" : ["EXPRESSION", {
529
                    "args" : [["EXPRESSION", {
530
                      "args" : [["CONSTANT_VALUE", {
531
                        "value" : ["CST_LITERAL", "47"]}
532
                      ]]}
533
                    ]]}
534
                  ], "_to" : ["EXPRESSION", {
535
                    "args" : [["EXPRESSION", {
536
                      "args" : [["CONSTANT_VALUE", {
537
                        "value" : ["CST_LITERAL", "0"]}
538
                      ]]}
539
                    ]]}
540
                  ]}
541
                ]]}
542
              ]}
543
            }
544
          ]}
545
        , {
546
          "declaration" : ["SIGNAL_DECLARATION", {
547
            "names" : [["IDENTIFIER", "frameCompleteToggle"]], "typ" : {
548
              "name" : ["SIMPLE_NAME", "std_logic"]}
549
            }
550
          ]}
551
        , {
552
          "declaration" : ["SIGNAL_DECLARATION", {
553
            "names" : [["IDENTIFIER", "frameComplete"]], "typ" : {
554
              "name" : ["SIMPLE_NAME", "std_logic"]}
555
            }
556
          ]}
557
        , {
558
          "declaration" : ["SIGNAL_DECLARATION", {
559
            "names" : [["IDENTIFIER", "rxLen_50"]], "typ" : {
560
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
561
                "ranges" : [["RANGE_WITH_DIRECTION", {
562
                  "direction" : "downto", "from" : ["EXPRESSION", {
563
                    "args" : [["EXPRESSION", {
564
                      "args" : [["CONSTANT_VALUE", {
565
                        "value" : ["CST_LITERAL", "15"]}
566
                      ]]}
567
                    ]]}
568
                  ], "_to" : ["EXPRESSION", {
569
                    "args" : [["EXPRESSION", {
570
                      "args" : [["CONSTANT_VALUE", {
571
                        "value" : ["CST_LITERAL", "0"]}
572
                      ]]}
573
                    ]]}
574
                  ]}
575
                ]]}
576
              ]}
577
            }
578
          ]}
579
        , {
580
          "declaration" : ["SIGNAL_DECLARATION", {
581
            "names" : [["IDENTIFIER", "rxOffset_50"]], "typ" : {
582
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
583
                "ranges" : [["RANGE_WITH_DIRECTION", {
584
                  "direction" : "downto", "from" : ["EXPRESSION", {
585
                    "args" : [["EXPRESSION", {
586
                      "args" : [["CONSTANT_VALUE", {
587
                        "value" : ["CST_LITERAL", "15"]}
588
                      ]]}
589
                    ]]}
590
                  ], "_to" : ["EXPRESSION", {
591
                    "args" : [["EXPRESSION", {
592
                      "args" : [["CONSTANT_VALUE", {
593
                        "value" : ["CST_LITERAL", "0"]}
594
                      ]]}
595
                    ]]}
596
                  ]}
597
                ]]}
598
              ]}
599
            }
600
          ]}
601
        , {
602
          "declaration" : ["SIGNAL_DECLARATION", {
603
            "names" : [["IDENTIFIER", "ramDout"]], "typ" : {
604
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
605
                "ranges" : [["RANGE_WITH_DIRECTION", {
606
                  "direction" : "downto", "from" : ["EXPRESSION", {
607
                    "args" : [["EXPRESSION", {
608
                      "args" : [["CONSTANT_VALUE", {
609
                        "value" : ["CST_LITERAL", "31"]}
610
                      ]]}
611
                    ]]}
612
                  ], "_to" : ["EXPRESSION", {
613
                    "args" : [["EXPRESSION", {
614
                      "args" : [["CONSTANT_VALUE", {
615
                        "value" : ["CST_LITERAL", "0"]}
616
                      ]]}
617
                    ]]}
618
                  ]}
619
                ]]}
620
              ]}
621
            }
622
          ]}
623
        , {
624
          "declaration" : ["SIGNAL_DECLARATION", {
625
            "names" : [["IDENTIFIER", "ramRdAddr"]], "typ" : {
626
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
627
                "ranges" : [["RANGE_WITH_DIRECTION", {
628
                  "direction" : "downto", "from" : ["EXPRESSION", {
629
                    "args" : [["EXPRESSION", {
630
                      "args" : [["CONSTANT_VALUE", {
631
                        "value" : ["CST_LITERAL", "12"]}
632
                      ]]}
633
                    ]]}
634
                  ], "_to" : ["EXPRESSION", {
635
                    "args" : [["EXPRESSION", {
636
                      "args" : [["CONSTANT_VALUE", {
637
                        "value" : ["CST_LITERAL", "2"]}
638
                      ]]}
639
                    ]]}
640
                  ]}
641
                ]]}
642
              ]}
643
            }
644
          ]}
645
        , {
646
          "declaration" : ["SIGNAL_DECLARATION", {
647
            "names" : [["IDENTIFIER", "ramWeb"]], "typ" : {
648
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
649
                "ranges" : [["RANGE_WITH_DIRECTION", {
650
                  "direction" : "downto", "from" : ["EXPRESSION", {
651
                    "args" : [["EXPRESSION", {
652
                      "args" : [["CONSTANT_VALUE", {
653
                        "value" : ["CST_LITERAL", "3"]}
654
                      ]]}
655
                    ]]}
656
                  ], "_to" : ["EXPRESSION", {
657
                    "args" : [["EXPRESSION", {
658
                      "args" : [["CONSTANT_VALUE", {
659
                        "value" : ["CST_LITERAL", "0"]}
660
                      ]]}
661
                    ]]}
662
                  ]}
663
                ]]}
664
              ]}
665
            }
666
          ]}
667
        , {
668
          "declaration" : ["SIGNAL_DECLARATION", {
669
            "names" : [["IDENTIFIER", "RxPacketValid"]], "typ" : {
670
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
671
                "ranges" : [["RANGE_WITH_DIRECTION", {
672
                  "direction" : "downto", "from" : ["EXPRESSION", {
673
                    "args" : [["EXPRESSION", {
674
                      "args" : [["CONSTANT_VALUE", {
675
                        "value" : ["CST_LITERAL", "1"]}
676
                      ]]}
677
                    ]]}
678
                  ], "_to" : ["EXPRESSION", {
679
                    "args" : [["EXPRESSION", {
680
                      "args" : [["CONSTANT_VALUE", {
681
                        "value" : ["CST_LITERAL", "0"]}
682
                      ]]}
683
                    ]]}
684
                  ]}
685
                ]]}
686
              ]}
687
            }
688
          ]}
689
        , {
690
          "declaration" : ["SIGNAL_DECLARATION", {
691
            "names" : [["IDENTIFIER", "PacketOffsets"]], "typ" : {
692
              "name" : ["SIMPLE_NAME", "Vector16"], "const" : ["INDEX_CONSTRAINT", {
693
                "ranges" : [["RANGE_WITH_DIRECTION", {
694
                  "direction" : "downto", "from" : ["EXPRESSION", {
695
                    "args" : [["EXPRESSION", {
696
                      "args" : [["CONSTANT_VALUE", {
697
                        "value" : ["CST_LITERAL", "1"]}
698
                      ]]}
699
                    ]]}
700
                  ], "_to" : ["EXPRESSION", {
701
                    "args" : [["EXPRESSION", {
702
                      "args" : [["CONSTANT_VALUE", {
703
                        "value" : ["CST_LITERAL", "0"]}
704
                      ]]}
705
                    ]]}
706
                  ]}
707
                ]]}
708
              ]}
709
            }
710
          ]}
711
        , {
712
          "declaration" : ["SIGNAL_DECLARATION", {
713
            "names" : [["IDENTIFIER", "PacketLengths"]], "typ" : {
714
              "name" : ["SIMPLE_NAME", "Vector16"], "const" : ["INDEX_CONSTRAINT", {
715
                "ranges" : [["RANGE_WITH_DIRECTION", {
716
                  "direction" : "downto", "from" : ["EXPRESSION", {
717
                    "args" : [["EXPRESSION", {
718
                      "args" : [["CONSTANT_VALUE", {
719
                        "value" : ["CST_LITERAL", "1"]}
720
                      ]]}
721
                    ]]}
722
                  ], "_to" : ["EXPRESSION", {
723
                    "args" : [["EXPRESSION", {
724
                      "args" : [["CONSTANT_VALUE", {
725
                        "value" : ["CST_LITERAL", "0"]}
726
                      ]]}
727
                    ]]}
728
                  ]}
729
                ]]}
730
              ]}
731
            }
732
          ]}
733
        , {
734
          "declaration" : ["SIGNAL_DECLARATION", {
735
            "names" : [["IDENTIFIER", "nextValid"]], "typ" : {
736
              "name" : ["SIMPLE_NAME", "integer"]}
737
            }
738
          ]}
739
        , {
740
          "declaration" : ["SIGNAL_DECLARATION", {
741
            "names" : [["IDENTIFIER", "srcMacFilter_50"]], "typ" : {
742
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
743
                "ranges" : [["RANGE_WITH_DIRECTION", {
744
                  "direction" : "downto", "from" : ["EXPRESSION", {
745
                    "args" : [["EXPRESSION", {
746
                      "args" : [["CONSTANT_VALUE", {
747
                        "value" : ["CST_LITERAL", "47"]}
748
                      ]]}
749
                    ]]}
750
                  ], "_to" : ["EXPRESSION", {
751
                    "args" : [["EXPRESSION", {
752
                      "args" : [["CONSTANT_VALUE", {
753
                        "value" : ["CST_LITERAL", "0"]}
754
                      ]]}
755
                    ]]}
756
                  ]}
757
                ]]}
758
              ]}
759
            }
760
          ]}
761
        , {
762
          "declaration" : ["SIGNAL_DECLARATION", {
763
            "names" : [["IDENTIFIER", "destMacFilter_50"]], "typ" : {
764
              "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
765
                "ranges" : [["RANGE_WITH_DIRECTION", {
766
                  "direction" : "downto", "from" : ["EXPRESSION", {
767
                    "args" : [["EXPRESSION", {
768
                      "args" : [["CONSTANT_VALUE", {
769
                        "value" : ["CST_LITERAL", "47"]}
770
                      ]]}
771
                    ]]}
772
                  ], "_to" : ["EXPRESSION", {
773
                    "args" : [["EXPRESSION", {
774
                      "args" : [["CONSTANT_VALUE", {
775
                        "value" : ["CST_LITERAL", "0"]}
776
                      ]]}
777
                    ]]}
778
                  ]}
779
                ]]}
780
              ]}
781
            }
782
          ]}
783
        ], "ARCHITECTURE_STATEMENT_PART" : [["PROCESS_STATEMENT", {
784
          "id" : ["IDENTIFIER", "RXD_REG"], "active_sigs" : [["SIMPLE_NAME", "ethernetRXCLK"], ["SIMPLE_NAME", "reset_n"]], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
785
            "if_cases" : [{
786
              "if_cond" : ["EXPRESSION", {
787
                "id" : "=", "args" : [["EXPRESSION", {
788
                  "args" : [["EXPRESSION", {
789
                    "args" : [["EXPRESSION", {
790
                      "args" : [["CALL", ["SIMPLE_NAME", "reset_n"]]]}
791
                    ]]}
792
                  ]]}
793
                ], ["EXPRESSION", {
794
                  "args" : [["EXPRESSION", {
795
                    "args" : [["EXPRESSION", {
796
                      "args" : [["CONSTANT_VALUE", {
797
                        "value" : ["CST_LITERAL", "'0'"]}
798
                      ]]}
799
                    ]]}
800
                  ]]}
801
                ]]}
802
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
803
                "lhs" : ["SIMPLE_NAME", "rxdv"], "rhs" : [{
804
                  "value" : ["EXPRESSION", {
805
                    "args" : [["EXPRESSION", {
806
                      "args" : [["EXPRESSION", {
807
                        "args" : [["EXPRESSION", {
808
                          "args" : [["CONSTANT_VALUE", {
809
                            "value" : ["CST_LITERAL", "'0'"]}
810
                          ]]}
811
                        ]]}
812
                      ]]}
813
                    ]]}
814
                  ]}
815
                ]}
816
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
817
                "lhs" : ["SIMPLE_NAME", "rxd"], "rhs" : [{
818
                  "value" : ["EXPRESSION", {
819
                    "args" : [["EXPRESSION", {
820
                      "args" : [["EXPRESSION", {
821
                        "args" : [["EXPRESSION", {
822
                          "args" : [["AGGREGATE", {
823
                            "elems" : [{
824
                              "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
825
                                "args" : [["EXPRESSION", {
826
                                  "args" : [["EXPRESSION", {
827
                                    "args" : [["EXPRESSION", {
828
                                      "args" : [["CONSTANT_VALUE", {
829
                                        "value" : ["CST_LITERAL", "'0'"]}
830
                                      ]]}
831
                                    ]]}
832
                                  ]]}
833
                                ]]}
834
                              ]}
835
                            ]}
836
                          ]]}
837
                        ]]}
838
                      ]]}
839
                    ]]}
840
                  ]}
841
                ]}
842
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
843
                "lhs" : ["SIMPLE_NAME", "rxd2"], "rhs" : [{
844
                  "value" : ["EXPRESSION", {
845
                    "args" : [["EXPRESSION", {
846
                      "args" : [["EXPRESSION", {
847
                        "args" : [["EXPRESSION", {
848
                          "args" : [["AGGREGATE", {
849
                            "elems" : [{
850
                              "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
851
                                "args" : [["EXPRESSION", {
852
                                  "args" : [["EXPRESSION", {
853
                                    "args" : [["EXPRESSION", {
854
                                      "args" : [["CONSTANT_VALUE", {
855
                                        "value" : ["CST_LITERAL", "'0'"]}
856
                                      ]]}
857
                                    ]]}
858
                                  ]]}
859
                                ]]}
860
                              ]}
861
                            ]}
862
                          ]]}
863
                        ]]}
864
                      ]]}
865
                    ]]}
866
                  ]}
867
                ]}
868
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
869
                "lhs" : ["SIMPLE_NAME", "rxCounter"], "rhs" : [{
870
                  "value" : ["EXPRESSION", {
871
                    "args" : [["EXPRESSION", {
872
                      "args" : [["EXPRESSION", {
873
                        "args" : [["EXPRESSION", {
874
                          "args" : [["AGGREGATE", {
875
                            "elems" : [{
876
                              "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
877
                                "args" : [["EXPRESSION", {
878
                                  "args" : [["EXPRESSION", {
879
                                    "args" : [["EXPRESSION", {
880
                                      "args" : [["CONSTANT_VALUE", {
881
                                        "value" : ["CST_LITERAL", "'0'"]}
882
                                      ]]}
883
                                    ]]}
884
                                  ]]}
885
                                ]]}
886
                              ]}
887
                            ]}
888
                          ]]}
889
                        ]]}
890
                      ]]}
891
                    ]]}
892
                  ]}
893
                ]}
894
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
895
                "lhs" : ["SIMPLE_NAME", "RxState"], "rhs" : [{
896
                  "value" : ["EXPRESSION", {
897
                    "args" : [["EXPRESSION", {
898
                      "args" : [["EXPRESSION", {
899
                        "args" : [["EXPRESSION", {
900
                          "args" : [["CALL", ["SIMPLE_NAME", "interframe"]]]}
901
                        ]]}
902
                      ]]}
903
                    ]]}
904
                  ]}
905
                ]}
906
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
907
                "lhs" : ["SIMPLE_NAME", "ramDin"], "rhs" : [{
908
                  "value" : ["EXPRESSION", {
909
                    "args" : [["EXPRESSION", {
910
                      "args" : [["EXPRESSION", {
911
                        "args" : [["EXPRESSION", {
912
                          "args" : [["AGGREGATE", {
913
                            "elems" : [{
914
                              "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
915
                                "args" : [["EXPRESSION", {
916
                                  "args" : [["EXPRESSION", {
917
                                    "args" : [["EXPRESSION", {
918
                                      "args" : [["CONSTANT_VALUE", {
919
                                        "value" : ["CST_LITERAL", "'0'"]}
920
                                      ]]}
921
                                    ]]}
922
                                  ]]}
923
                                ]]}
924
                              ]}
925
                            ]}
926
                          ]]}
927
                        ]]}
928
                      ]]}
929
                    ]]}
930
                  ]}
931
                ]}
932
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
933
                "lhs" : ["SIMPLE_NAME", "ramWrAddr"], "rhs" : [{
934
                  "value" : ["EXPRESSION", {
935
                    "args" : [["EXPRESSION", {
936
                      "args" : [["EXPRESSION", {
937
                        "args" : [["EXPRESSION", {
938
                          "args" : [["AGGREGATE", {
939
                            "elems" : [{
940
                              "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
941
                                "args" : [["EXPRESSION", {
942
                                  "args" : [["EXPRESSION", {
943
                                    "args" : [["EXPRESSION", {
944
                                      "args" : [["CONSTANT_VALUE", {
945
                                        "value" : ["CST_LITERAL", "'0'"]}
946
                                      ]]}
947
                                    ]]}
948
                                  ]]}
949
                                ]]}
950
                              ]}
951
                            ]}
952
                          ]]}
953
                        ]]}
954
                      ]]}
955
                    ]]}
956
                  ]}
957
                ]}
958
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
959
                "lhs" : ["SIMPLE_NAME", "ramWea"], "rhs" : [{
960
                  "value" : ["EXPRESSION", {
961
                    "args" : [["EXPRESSION", {
962
                      "args" : [["EXPRESSION", {
963
                        "args" : [["EXPRESSION", {
964
                          "args" : [["AGGREGATE", {
965
                            "elems" : [{
966
                              "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
967
                                "args" : [["EXPRESSION", {
968
                                  "args" : [["EXPRESSION", {
969
                                    "args" : [["EXPRESSION", {
970
                                      "args" : [["CONSTANT_VALUE", {
971
                                        "value" : ["CST_LITERAL", "'0'"]}
972
                                      ]]}
973
                                    ]]}
974
                                  ]]}
975
                                ]]}
976
                              ]}
977
                            ]}
978
                          ]]}
979
                        ]]}
980
                      ]]}
981
                    ]]}
982
                  ]}
983
                ]}
984
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
985
                "lhs" : ["SIMPLE_NAME", "rxLen"], "rhs" : [{
986
                  "value" : ["EXPRESSION", {
987
                    "args" : [["EXPRESSION", {
988
                      "args" : [["EXPRESSION", {
989
                        "args" : [["EXPRESSION", {
990
                          "args" : [["AGGREGATE", {
991
                            "elems" : [{
992
                              "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
993
                                "args" : [["EXPRESSION", {
994
                                  "args" : [["EXPRESSION", {
995
                                    "args" : [["EXPRESSION", {
996
                                      "args" : [["CONSTANT_VALUE", {
997
                                        "value" : ["CST_LITERAL", "'0'"]}
998
                                      ]]}
999
                                    ]]}
1000
                                  ]]}
1001
                                ]]}
1002
                              ]}
1003
                            ]}
1004
                          ]]}
1005
                        ]]}
1006
                      ]]}
1007
                    ]]}
1008
                  ]}
1009
                ]}
1010
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
1011
                "lhs" : ["SIMPLE_NAME", "rxOffset"], "rhs" : [{
1012
                  "value" : ["EXPRESSION", {
1013
                    "args" : [["EXPRESSION", {
1014
                      "args" : [["EXPRESSION", {
1015
                        "args" : [["EXPRESSION", {
1016
                          "args" : [["AGGREGATE", {
1017
                            "elems" : [{
1018
                              "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
1019
                                "args" : [["EXPRESSION", {
1020
                                  "args" : [["EXPRESSION", {
1021
                                    "args" : [["EXPRESSION", {
1022
                                      "args" : [["CONSTANT_VALUE", {
1023
                                        "value" : ["CST_LITERAL", "'0'"]}
1024
                                      ]]}
1025
                                    ]]}
1026
                                  ]]}
1027
                                ]]}
1028
                              ]}
1029
                            ]}
1030
                          ]]}
1031
                        ]]}
1032
                      ]]}
1033
                    ]]}
1034
                  ]}
1035
                ]}
1036
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
1037
                "lhs" : ["SIMPLE_NAME", "frameCompleteToggle"], "rhs" : [{
1038
                  "value" : ["EXPRESSION", {
1039
                    "args" : [["EXPRESSION", {
1040
                      "args" : [["EXPRESSION", {
1041
                        "args" : [["EXPRESSION", {
1042
                          "args" : [["CONSTANT_VALUE", {
1043
                            "value" : ["CST_LITERAL", "'0'"]}
1044
                          ]]}
1045
                        ]]}
1046
                      ]]}
1047
                    ]]}
1048
                  ]}
1049
                ]}
1050
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
1051
                "lhs" : ["SIMPLE_NAME", "srcMac"], "rhs" : [{
1052
                  "value" : ["EXPRESSION", {
1053
                    "args" : [["EXPRESSION", {
1054
                      "args" : [["EXPRESSION", {
1055
                        "args" : [["EXPRESSION", {
1056
                          "args" : [["AGGREGATE", {
1057
                            "elems" : [{
1058
                              "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
1059
                                "args" : [["EXPRESSION", {
1060
                                  "args" : [["EXPRESSION", {
1061
                                    "args" : [["EXPRESSION", {
1062
                                      "args" : [["CONSTANT_VALUE", {
1063
                                        "value" : ["CST_LITERAL", "'0'"]}
1064
                                      ]]}
1065
                                    ]]}
1066
                                  ]]}
1067
                                ]]}
1068
                              ]}
1069
                            ]}
1070
                          ]]}
1071
                        ]]}
1072
                      ]]}
1073
                    ]]}
1074
                  ]}
1075
                ]}
1076
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
1077
                "lhs" : ["SIMPLE_NAME", "destMac"], "rhs" : [{
1078
                  "value" : ["EXPRESSION", {
1079
                    "args" : [["EXPRESSION", {
1080
                      "args" : [["EXPRESSION", {
1081
                        "args" : [["EXPRESSION", {
1082
                          "args" : [["AGGREGATE", {
1083
                            "elems" : [{
1084
                              "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
1085
                                "args" : [["EXPRESSION", {
1086
                                  "args" : [["EXPRESSION", {
1087
                                    "args" : [["EXPRESSION", {
1088
                                      "args" : [["CONSTANT_VALUE", {
1089
                                        "value" : ["CST_LITERAL", "'0'"]}
1090
                                      ]]}
1091
                                    ]]}
1092
                                  ]]}
1093
                                ]]}
1094
                              ]}
1095
                            ]}
1096
                          ]]}
1097
                        ]]}
1098
                      ]]}
1099
                    ]]}
1100
                  ]}
1101
                ]}
1102
              ]]}
1103
            , {
1104
              "if_cond" : ["EXPRESSION", {
1105
                "args" : [["EXPRESSION", {
1106
                  "args" : [["EXPRESSION", {
1107
                    "args" : [["EXPRESSION", {
1108
                      "args" : [["CALL", ["FUNCTION_CALL", {
1109
                        "id" : ["SIMPLE_NAME", "rising_edge"], "assoc_list" : [{
1110
                          "actual_designator" : ["SIMPLE_NAME", "ethernetRXCLK"]}
1111
                        ]}
1112
                      ]]]}
1113
                    ]]}
1114
                  ]]}
1115
                ]]}
1116
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
1117
                "lhs" : ["SIMPLE_NAME", "rxdv"], "rhs" : [{
1118
                  "value" : ["EXPRESSION", {
1119
                    "args" : [["EXPRESSION", {
1120
                      "args" : [["EXPRESSION", {
1121
                        "args" : [["EXPRESSION", {
1122
                          "args" : [["CALL", ["SIMPLE_NAME", "ethernetRXDV"]]]}
1123
                        ]]}
1124
                      ]]}
1125
                    ]]}
1126
                  ]}
1127
                ]}
1128
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
1129
                "lhs" : ["SIMPLE_NAME", "rxd"], "rhs" : [{
1130
                  "value" : ["EXPRESSION", {
1131
                    "args" : [["EXPRESSION", {
1132
                      "args" : [["EXPRESSION", {
1133
                        "args" : [["EXPRESSION", {
1134
                          "args" : [["CALL", ["SIMPLE_NAME", "ethernetRXD"]]]}
1135
                        ]]}
1136
                      ]]}
1137
                    ]]}
1138
                  ]}
1139
                ]}
1140
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
1141
                "lhs" : ["SIMPLE_NAME", "rxd2"], "rhs" : [{
1142
                  "value" : ["EXPRESSION", {
1143
                    "args" : [["EXPRESSION", {
1144
                      "args" : [["EXPRESSION", {
1145
                        "args" : [["EXPRESSION", {
1146
                          "args" : [["CALL", ["SIMPLE_NAME", "rxd"]]]}
1147
                        ]]}
1148
                      ]]}
1149
                    ]]}
1150
                  ]}
1151
                ]}
1152
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
1153
                "lhs" : ["SIMPLE_NAME", "ramWea"], "rhs" : [{
1154
                  "value" : ["EXPRESSION", {
1155
                    "args" : [["EXPRESSION", {
1156
                      "args" : [["EXPRESSION", {
1157
                        "args" : [["EXPRESSION", {
1158
                          "args" : [["AGGREGATE", {
1159
                            "elems" : [{
1160
                              "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
1161
                                "args" : [["EXPRESSION", {
1162
                                  "args" : [["EXPRESSION", {
1163
                                    "args" : [["EXPRESSION", {
1164
                                      "args" : [["CONSTANT_VALUE", {
1165
                                        "value" : ["CST_LITERAL", "'0'"]}
1166
                                      ]]}
1167
                                    ]]}
1168
                                  ]]}
1169
                                ]]}
1170
                              ]}
1171
                            ]}
1172
                          ]]}
1173
                        ]]}
1174
                      ]]}
1175
                    ]]}
1176
                  ]}
1177
                ]}
1178
              ], ["CASE_STATEMENT_TREE", {
1179
                "guard" : ["EXPRESSION", {
1180
                  "args" : [["EXPRESSION", {
1181
                    "args" : [["EXPRESSION", {
1182
                      "args" : [["EXPRESSION", {
1183
                        "args" : [["CALL", ["SIMPLE_NAME", "RxState"]]]}
1184
                      ]]}
1185
                    ]]}
1186
                  ]]}
1187
                ], "branches" : [{
1188
                  "when_cond" : [["EXPRESSION", {
1189
                    "args" : [["EXPRESSION", {
1190
                      "args" : [["CALL", ["SIMPLE_NAME", "sreset"]]]}
1191
                    ]]}
1192
                  ]], "when_stmt" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
1193
                    "lhs" : ["SIMPLE_NAME", "RxState"], "rhs" : [{
1194
                      "value" : ["EXPRESSION", {
1195
                        "args" : [["EXPRESSION", {
1196
                          "args" : [["EXPRESSION", {
1197
                            "args" : [["EXPRESSION", {
1198
                              "args" : [["CALL", ["SIMPLE_NAME", "interframe"]]]}
1199
                            ]]}
1200
                          ]]}
1201
                        ]]}
1202
                      ]}
1203
                    ]}
1204
                  ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
1205
                    "lhs" : ["SIMPLE_NAME", "rxCounter"], "rhs" : [{
1206
                      "value" : ["EXPRESSION", {
1207
                        "args" : [["EXPRESSION", {
1208
                          "args" : [["EXPRESSION", {
1209
                            "args" : [["EXPRESSION", {
1210
                              "args" : [["AGGREGATE", {
1211
                                "elems" : [{
1212
                                  "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
1213
                                    "args" : [["EXPRESSION", {
1214
                                      "args" : [["EXPRESSION", {
1215
                                        "args" : [["EXPRESSION", {
1216
                                          "args" : [["CONSTANT_VALUE", {
1217
                                            "value" : ["CST_LITERAL", "'0'"]}
1218
                                          ]]}
1219
                                        ]]}
1220
                                      ]]}
1221
                                    ]]}
1222
                                  ]}
1223
                                ]}
1224
                              ]]}
1225
                            ]]}
1226
                          ]]}
1227
                        ]]}
1228
                      ]}
1229
                    ]}
1230
                  ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
1231
                    "lhs" : ["SIMPLE_NAME", "rxLen"], "rhs" : [{
1232
                      "value" : ["EXPRESSION", {
1233
                        "args" : [["EXPRESSION", {
1234
                          "args" : [["EXPRESSION", {
1235
                            "args" : [["EXPRESSION", {
1236
                              "args" : [["AGGREGATE", {
1237
                                "elems" : [{
1238
                                  "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
1239
                                    "args" : [["EXPRESSION", {
1240
                                      "args" : [["EXPRESSION", {
1241
                                        "args" : [["EXPRESSION", {
1242
                                          "args" : [["CONSTANT_VALUE", {
1243
                                            "value" : ["CST_LITERAL", "'0'"]}
1244
                                          ]]}
1245
                                        ]]}
1246
                                      ]]}
1247
                                    ]]}
1248
                                  ]}
1249
                                ]}
1250
                              ]]}
1251
                            ]]}
1252
                          ]]}
1253
                        ]]}
1254
                      ]}
1255
                    ]}
1256
                  ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
1257
                    "lhs" : ["SIMPLE_NAME", "rxOffset"], "rhs" : [{
1258
                      "value" : ["EXPRESSION", {
1259
                        "args" : [["EXPRESSION", {
1260
                          "args" : [["EXPRESSION", {
1261
                            "args" : [["EXPRESSION", {
1262
                              "args" : [["AGGREGATE", {
1263
                                "elems" : [{
1264
                                  "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
1265
                                    "args" : [["EXPRESSION", {
1266
                                      "args" : [["EXPRESSION", {
1267
                                        "args" : [["EXPRESSION", {
1268
                                          "args" : [["CONSTANT_VALUE", {
1269
                                            "value" : ["CST_LITERAL", "'0'"]}
1270
                                          ]]}
1271
                                        ]]}
1272
                                      ]]}
1273
                                    ]]}
1274
                                  ]}
1275
                                ]}
1276
                              ]]}
1277
                            ]]}
1278
                          ]]}
1279
                        ]]}
1280
                      ]}
1281
                    ]}
1282
                  ]]}
1283
                , {
1284
                  "when_cond" : [["EXPRESSION", {
1285
                    "args" : [["EXPRESSION", {
1286
                      "args" : [["CALL", ["SIMPLE_NAME", "interframe"]]]}
1287
                    ]]}
1288
                  ]], "when_stmt" : [["IF_STATEMENT", {
1289
                    "if_cases" : [{
1290
                      "if_cond" : ["EXPRESSION", {
1291
                        "id" : "=", "args" : [["EXPRESSION", {
1292
                          "args" : [["EXPRESSION", {
1293
                            "args" : [["EXPRESSION", {
1294
                              "args" : [["CALL", ["SIMPLE_NAME", "rxdv"]]]}
1295
                            ]]}
1296
                          ]]}
1297
                        ], ["EXPRESSION", {
1298
                          "args" : [["EXPRESSION", {
1299
                            "args" : [["EXPRESSION", {
1300
                              "args" : [["CONSTANT_VALUE", {
1301
                                "value" : ["CST_LITERAL", "'1'"]}
1302
                              ]]}
1303
                            ]]}
1304
                          ]]}
1305
                        ]]}
1306
                      ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
1307
                        "lhs" : ["SIMPLE_NAME", "RxState"], "rhs" : [{
1308
                          "value" : ["EXPRESSION", {
1309
                            "args" : [["EXPRESSION", {
1310
                              "args" : [["EXPRESSION", {
1311
                                "args" : [["EXPRESSION", {
1312
                                  "args" : [["CALL", ["SIMPLE_NAME", "preamble"]]]}
1313
                                ]]}
1314
                              ]]}
1315
                            ]]}
1316
                          ]}
1317
                        ]}
1318
                      ]]}
1319
                    ]}
1320
                  ]]}
1321
                , {
1322
                  "when_cond" : [["EXPRESSION", {
1323
                    "args" : [["EXPRESSION", {
1324
                      "args" : [["CALL", ["SIMPLE_NAME", "preamble"]]]}
1325
                    ]]}
1326
                  ]], "when_stmt" : [["IF_STATEMENT", {
1327
                    "if_cases" : [{
1328
                      "if_cond" : ["EXPRESSION", {
1329
                        "id" : "/=", "args" : [["EXPRESSION", {
1330
                          "args" : [["EXPRESSION", {
1331
                            "args" : [["EXPRESSION", {
1332
                              "args" : [["CALL", ["SLICE_NAME", {
1333
                                "id" : ["SIMPLE_NAME", "ramWrAddr"], "range" : ["RANGE_WITH_DIRECTION", {
1334
                                  "direction" : "downto", "from" : ["EXPRESSION", {
1335
                                    "args" : [["EXPRESSION", {
1336
                                      "args" : [["CONSTANT_VALUE", {
1337
                                        "value" : ["CST_LITERAL", "1"]}
1338
                                      ]]}
1339
                                    ]]}
1340
                                  ], "_to" : ["EXPRESSION", {
1341
                                    "args" : [["EXPRESSION", {
1342
                                      "args" : [["CONSTANT_VALUE", {
1343
                                        "value" : ["CST_LITERAL", "0"]}
1344
                                      ]]}
1345
                                    ]]}
1346
                                  ]}
1347
                                ]}
1348
                              ]]]}
1349
                            ]]}
1350
                          ]]}
1351
                        ], ["EXPRESSION", {
1352
                          "args" : [["EXPRESSION", {
1353
                            "args" : [["EXPRESSION", {
1354
                              "args" : [["CONSTANT_VALUE", {
1355
                                "value" : ["CST_LITERAL", "\"00\""]}
1356
                              ]]}
1357
                            ]]}
1358
                          ]]}
1359
                        ]]}
1360
                      ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
1361
                        "lhs" : ["SIMPLE_NAME", "ramWrAddr"], "rhs" : [{
1362
                          "value" : ["EXPRESSION", {
1363
                            "args" : [["EXPRESSION", {
1364
                              "args" : [["EXPRESSION", {
1365
                                "args" : [["EXPRESSION", {
1366
                                  "id" : "+", "args" : [["EXPRESSION", {
1367
                                    "args" : [["CALL", ["SIMPLE_NAME", "ramWrAddr"]]]}
1368
                                  ], ["EXPRESSION", {
1369
                                    "args" : [["CONSTANT_VALUE", {
1370
                                      "value" : ["CST_LITERAL", "1"]}
1371
                                    ]]}
1372
                                  ]]}
1373
                                ]]}
1374
                              ]]}
1375
                            ]]}
1376
                          ]}
1377
                        ]}
1378
                      ]]}
1379
                    ]}
1380
                  ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
1381
                    "lhs" : ["SIMPLE_NAME", "rxOffset"], "rhs" : [{
1382
                      "value" : ["EXPRESSION", {
1383
                        "args" : [["EXPRESSION", {
1384
                          "args" : [["EXPRESSION", {
1385
                            "args" : [["EXPRESSION", {
1386
                              "args" : [["CALL", ["SIMPLE_NAME", "ramWrAddr"]]]}
1387
                            ]]}
1388
                          ]]}
1389
                        ]]}
1390
                      ]}
1391
                    ]}
1392
                  ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
1393
                    "lhs" : ["SIMPLE_NAME", "rxCounter"], "rhs" : [{
1394
                      "value" : ["EXPRESSION", {
1395
                        "args" : [["EXPRESSION", {
1396
                          "args" : [["EXPRESSION", {
1397
                            "args" : [["EXPRESSION", {
1398
                              "args" : [["AGGREGATE", {
1399
                                "elems" : [{
1400
                                  "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
1401
                                    "args" : [["EXPRESSION", {
1402
                                      "args" : [["EXPRESSION", {
1403
                                        "args" : [["EXPRESSION", {
1404
                                          "args" : [["CONSTANT_VALUE", {
1405
                                            "value" : ["CST_LITERAL", "'0'"]}
1406
                                          ]]}
1407
                                        ]]}
1408
                                      ]]}
1409
                                    ]]}
1410
                                  ]}
1411
                                ]}
1412
                              ]]}
1413
                            ]]}
1414
                          ]]}
1415
                        ]]}
1416
                      ]}
1417
                    ]}
1418
                  ], ["IF_STATEMENT", {
1419
                    "if_cases" : [{
1420
                      "if_cond" : ["EXPRESSION", {
1421
                        "id" : "=", "args" : [["EXPRESSION", {
1422
                          "args" : [["EXPRESSION", {
1423
                            "args" : [["EXPRESSION", {
1424
                              "args" : [["CALL", ["SIMPLE_NAME", "rxdv"]]]}
1425
                            ]]}
1426
                          ]]}
1427
                        ], ["EXPRESSION", {
1428
                          "args" : [["EXPRESSION", {
1429
                            "args" : [["EXPRESSION", {
1430
                              "args" : [["CONSTANT_VALUE", {
1431
                                "value" : ["CST_LITERAL", "'0'"]}
1432
                              ]]}
1433
                            ]]}
1434
                          ]]}
1435
                        ]]}
1436
                      ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
1437
                        "lhs" : ["SIMPLE_NAME", "RxState"], "rhs" : [{
1438
                          "value" : ["EXPRESSION", {
1439
                            "args" : [["EXPRESSION", {
1440
                              "args" : [["EXPRESSION", {
1441
                                "args" : [["EXPRESSION", {
1442
                                  "args" : [["CALL", ["SIMPLE_NAME", "interframe"]]]}
1443
                                ]]}
1444
                              ]]}
1445
                            ]]}
1446
                          ]}
1447
                        ]}
1448
                      ]]}
1449
                    , {
1450
                      "if_cond" : ["EXPRESSION", {
1451
                        "id" : "/=", "args" : [["EXPRESSION", {
1452
                          "args" : [["EXPRESSION", {
1453
                            "args" : [["EXPRESSION", {
1454
                              "args" : [["CALL", ["SIMPLE_NAME", "rxd2"]]]}
1455
                            ]]}
1456
                          ]]}
1457
                        ], ["EXPRESSION", {
1458
                          "args" : [["EXPRESSION", {
1459
                            "args" : [["EXPRESSION", {
1460
                              "args" : [["CONSTANT_VALUE", {
1461
                                "value" : ["CST_LITERAL", "X\"55\""]}
1462
                              ]]}
1463
                            ]]}
1464
                          ]]}
1465
                        ]]}
1466
                      ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
1467
                        "lhs" : ["SIMPLE_NAME", "RxState"], "rhs" : [{
1468
                          "value" : ["EXPRESSION", {
1469
                            "args" : [["EXPRESSION", {
1470
                              "args" : [["EXPRESSION", {
1471
                                "args" : [["EXPRESSION", {
1472
                                  "args" : [["CALL", ["SIMPLE_NAME", "data"]]]}
1473
                                ]]}
1474
                              ]]}
1475
                            ]]}
1476
                          ]}
1477
                        ]}
1478
                      ]]}
1479
                    ]}
1480
                  ]]}
1481
                , {
1482
                  "when_cond" : [["EXPRESSION", {
1483
                    "args" : [["EXPRESSION", {
1484
                      "args" : [["CALL", ["SIMPLE_NAME", "data"]]]}
1485
                    ]]}
1486
                  ]], "when_stmt" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
1487
                    "lhs" : ["SIMPLE_NAME", "rxCounter"], "rhs" : [{
1488
                      "value" : ["EXPRESSION", {
1489
                        "args" : [["EXPRESSION", {
1490
                          "args" : [["EXPRESSION", {
1491
                            "args" : [["EXPRESSION", {
1492
                              "id" : "+", "args" : [["EXPRESSION", {
1493
                                "args" : [["CALL", ["SIMPLE_NAME", "rxCounter"]]]}
1494
                              ], ["EXPRESSION", {
1495
                                "args" : [["CONSTANT_VALUE", {
1496
                                  "value" : ["CST_LITERAL", "1"]}
1497
                                ]]}
1498
                              ]]}
1499
                            ]]}
1500
                          ]]}
1501
                        ]]}
1502
                      ]}
1503
                    ]}
1504
                  ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
1505
                    "lhs" : ["SIMPLE_NAME", "ramWea"], "rhs" : [{
1506
                      "value" : ["EXPRESSION", {
1507
                        "args" : [["EXPRESSION", {
1508
                          "args" : [["EXPRESSION", {
1509
                            "args" : [["EXPRESSION", {
1510
                              "args" : [["AGGREGATE", {
1511
                                "elems" : [{
1512
                                  "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
1513
                                    "args" : [["EXPRESSION", {
1514
                                      "args" : [["EXPRESSION", {
1515
                                        "args" : [["EXPRESSION", {
1516
                                          "args" : [["CONSTANT_VALUE", {
1517
                                            "value" : ["CST_LITERAL", "'1'"]}
1518
                                          ]]}
1519
                                        ]]}
1520
                                      ]]}
1521
                                    ]]}
1522
                                  ]}
1523
                                ]}
1524
                              ]]}
1525
                            ]]}
1526
                          ]]}
1527
                        ]]}
1528
                      ]}
1529
                    ]}
1530
                  ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
1531
                    "lhs" : ["SIMPLE_NAME", "ramDin"], "rhs" : [{
1532
                      "value" : ["EXPRESSION", {
1533
                        "args" : [["EXPRESSION", {
1534
                          "args" : [["EXPRESSION", {
1535
                            "args" : [["EXPRESSION", {
1536
                              "args" : [["CALL", ["SIMPLE_NAME", "rxd2"]]]}
1537
                            ]]}
1538
                          ]]}
1539
                        ]]}
1540
                      ]}
1541
                    ]}
1542
                  ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
1543
                    "lhs" : ["SIMPLE_NAME", "ramWrAddr"], "rhs" : [{
1544
                      "value" : ["EXPRESSION", {
1545
                        "args" : [["EXPRESSION", {
1546
                          "args" : [["EXPRESSION", {
1547
                            "args" : [["EXPRESSION", {
1548
                              "id" : "+", "args" : [["EXPRESSION", {
1549
                                "args" : [["CALL", ["SLICE_NAME", {
1550
                                  "id" : ["SIMPLE_NAME", "rxCounter"], "range" : ["RANGE_WITH_DIRECTION", {
1551
                                    "direction" : "downto", "from" : ["EXPRESSION", {
1552
                                      "args" : [["EXPRESSION", {
1553
                                        "args" : [["CALL", ["ATTRIBUTE_NAME", {
1554
                                          "id" : ["SIMPLE_NAME", "ramWrAddr"], "designator" : ["SIMPLE_NAME", "left"]}
1555
                                        ]]]}
1556
                                      ]]}
1557
                                    ], "_to" : ["EXPRESSION", {
1558
                                      "args" : [["EXPRESSION", {
1559
                                        "args" : [["CONSTANT_VALUE", {
1560
                                          "value" : ["CST_LITERAL", "0"]}
1561
                                        ]]}
1562
                                      ]]}
1563
                                    ]}
1564
                                  ]}
1565
                                ]]]}
1566
                              ], ["EXPRESSION", {
1567
                                "args" : [["CALL", ["SIMPLE_NAME", "rxOffset"]]]}
1568
                              ]]}
1569
                            ]]}
1570
                          ]]}
1571
                        ]]}
1572
                      ]}
1573
                    ]}
1574
                  ], ["IF_STATEMENT", {
1575
                    "if_cases" : [{
1576
                      "if_cond" : ["EXPRESSION", {
1577
                        "id" : "=", "args" : [["EXPRESSION", {
1578
                          "args" : [["EXPRESSION", {
1579
                            "args" : [["EXPRESSION", {
1580
                              "args" : [["CALL", ["SIMPLE_NAME", "rxdv"]]]}
1581
                            ]]}
1582
                          ]]}
1583
                        ], ["EXPRESSION", {
1584
                          "args" : [["EXPRESSION", {
1585
                            "args" : [["EXPRESSION", {
1586
                              "args" : [["CONSTANT_VALUE", {
1587
                                "value" : ["CST_LITERAL", "'0'"]}
1588
                              ]]}
1589
                            ]]}
1590
                          ]]}
1591
                        ]]}
1592
                      ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
1593
                        "lhs" : ["SIMPLE_NAME", "RxState"], "rhs" : [{
1594
                          "value" : ["EXPRESSION", {
1595
                            "args" : [["EXPRESSION", {
1596
                              "args" : [["EXPRESSION", {
1597
                                "args" : [["EXPRESSION", {
1598
                                  "args" : [["CALL", ["SIMPLE_NAME", "check"]]]}
1599
                                ]]}
1600
                              ]]}
1601
                            ]]}
1602
                          ]}
1603
                        ]}
1604
                      ]]}
1605
                    ]}
1606
                  ], ["IF_STATEMENT", {
1607
                    "if_cases" : [{
1608
                      "if_cond" : ["EXPRESSION", {
1609
                        "id" : "<", "args" : [["EXPRESSION", {
1610
                          "args" : [["EXPRESSION", {
1611
                            "args" : [["EXPRESSION", {
1612
                              "args" : [["CALL", ["SIMPLE_NAME", "rxCounter"]]]}
1613
                            ]]}
1614
                          ]]}
1615
                        ], ["EXPRESSION", {
1616
                          "args" : [["EXPRESSION", {
1617
                            "args" : [["EXPRESSION", {
1618
                              "args" : [["CONSTANT_VALUE", {
1619
                                "value" : ["CST_LITERAL", "6"]}
1620
                              ]]}
1621
                            ]]}
1622
                          ]]}
1623
                        ]]}
1624
                      ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
1625
                        "lhs" : ["SIMPLE_NAME", "destMac"], "rhs" : [{
1626
                          "value" : ["EXPRESSION", {
1627
                            "args" : [["EXPRESSION", {
1628
                              "args" : [["EXPRESSION", {
1629
                                "args" : [["EXPRESSION", {
1630
                                  "id" : "&", "args" : [["EXPRESSION", {
1631
                                    "args" : [["CALL", ["SLICE_NAME", {
1632
                                      "id" : ["SIMPLE_NAME", "destMac"], "range" : ["RANGE_WITH_DIRECTION", {
1633
                                        "direction" : "downto", "from" : ["EXPRESSION", {
1634
                                          "args" : [["EXPRESSION", {
1635
                                            "args" : [["CONSTANT_VALUE", {
1636
                                              "value" : ["CST_LITERAL", "39"]}
1637
                                            ]]}
1638
                                          ]]}
1639
                                        ], "_to" : ["EXPRESSION", {
1640
                                          "args" : [["EXPRESSION", {
1641
                                            "args" : [["CONSTANT_VALUE", {
1642
                                              "value" : ["CST_LITERAL", "0"]}
1643
                                            ]]}
1644
                                          ]]}
1645
                                        ]}
1646
                                      ]}
1647
                                    ]]]}
1648
                                  ], ["EXPRESSION", {
1649
                                    "args" : [["CALL", ["SIMPLE_NAME", "rxd2"]]]}
1650
                                  ]]}
1651
                                ]]}
1652
                              ]]}
1653
                            ]]}
1654
                          ]}
1655
                        ]}
1656
                      ]]}
1657
                    , {
1658
                      "if_cond" : ["EXPRESSION", {
1659
                        "id" : "<", "args" : [["EXPRESSION", {
1660
                          "args" : [["EXPRESSION", {
1661
                            "args" : [["EXPRESSION", {
1662
                              "args" : [["CALL", ["SIMPLE_NAME", "rxCounter"]]]}
1663
                            ]]}
1664
                          ]]}
1665
                        ], ["EXPRESSION", {
1666
                          "args" : [["EXPRESSION", {
1667
                            "args" : [["EXPRESSION", {
1668
                              "args" : [["CONSTANT_VALUE", {
1669
                                "value" : ["CST_LITERAL", "12"]}
1670
                              ]]}
1671
                            ]]}
1672
                          ]]}
1673
                        ]]}
1674
                      ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
1675
                        "lhs" : ["SIMPLE_NAME", "srcMac"], "rhs" : [{
1676
                          "value" : ["EXPRESSION", {
1677
                            "args" : [["EXPRESSION", {
1678
                              "args" : [["EXPRESSION", {
1679
                                "args" : [["EXPRESSION", {
1680
                                  "id" : "&", "args" : [["EXPRESSION", {
1681
                                    "args" : [["CALL", ["SLICE_NAME", {
1682
                                      "id" : ["SIMPLE_NAME", "srcMac"], "range" : ["RANGE_WITH_DIRECTION", {
1683
                                        "direction" : "downto", "from" : ["EXPRESSION", {
1684
                                          "args" : [["EXPRESSION", {
1685
                                            "args" : [["CONSTANT_VALUE", {
1686
                                              "value" : ["CST_LITERAL", "39"]}
1687
                                            ]]}
1688
                                          ]]}
1689
                                        ], "_to" : ["EXPRESSION", {
1690
                                          "args" : [["EXPRESSION", {
1691
                                            "args" : [["CONSTANT_VALUE", {
1692
                                              "value" : ["CST_LITERAL", "0"]}
1693
                                            ]]}
1694
                                          ]]}
1695
                                        ]}
1696
                                      ]}
1697
                                    ]]]}
1698
                                  ], ["EXPRESSION", {
1699
                                    "args" : [["CALL", ["SIMPLE_NAME", "rxd2"]]]}
1700
                                  ]]}
1701
                                ]]}
1702
                              ]]}
1703
                            ]]}
1704
                          ]}
1705
                        ]}
1706
                      ]]}
1707
                    ]}
1708
                  ]]}
1709
                , {
1710
                  "when_cond" : [["EXPRESSION", {
1711
                    "args" : [["EXPRESSION", {
1712
                      "args" : [["CALL", ["SIMPLE_NAME", "check"]]]}
1713
                    ]]}
1714
                  ]], "when_stmt" : [["IF_STATEMENT", {
1715
                    "if_cases" : [{
1716
                      "if_cond" : ["EXPRESSION", {
1717
                        "id" : "and", "args" : [["EXPRESSION", {
1718
                          "id" : "/=", "args" : [["EXPRESSION", {
1719
                            "args" : [["EXPRESSION", {
1720
                              "args" : [["EXPRESSION", {
1721
                                "args" : [["CALL", ["SIMPLE_NAME", "srcMacFilter"]]]}
1722
                              ]]}
1723
                            ]]}
1724
                          ], ["EXPRESSION", {
1725
                            "args" : [["EXPRESSION", {
1726
                              "args" : [["EXPRESSION", {
1727
                                "args" : [["CONSTANT_VALUE", {
1728
                                  "value" : ["CST_LITERAL", "0"]}
1729
                                ]]}
1730
                              ]]}
1731
                            ]]}
1732
                          ]]}
1733
                        ], ["EXPRESSION", {
1734
                          "id" : "/=", "args" : [["EXPRESSION", {
1735
                            "args" : [["EXPRESSION", {
1736
                              "args" : [["EXPRESSION", {
1737
                                "args" : [["CALL", ["SIMPLE_NAME", "srcMac"]]]}
1738
                              ]]}
1739
                            ]]}
1740
                          ], ["EXPRESSION", {
1741
                            "args" : [["EXPRESSION", {
1742
                              "args" : [["EXPRESSION", {
1743
                                "args" : [["CALL", ["SIMPLE_NAME", "srcMacFilter"]]]}
1744
                              ]]}
1745
                            ]]}
1746
                          ]]}
1747
                        ]]}
1748
                      ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
1749
                        "lhs" : ["SIMPLE_NAME", "RxState"], "rhs" : [{
1750
                          "value" : ["EXPRESSION", {
1751
                            "args" : [["EXPRESSION", {
1752
                              "args" : [["EXPRESSION", {
1753
                                "args" : [["EXPRESSION", {
1754
                                  "args" : [["CALL", ["SIMPLE_NAME", "fail"]]]}
1755
                                ]]}
1756
                              ]]}
1757
                            ]]}
1758
                          ]}
1759
                        ]}
1760
                      ]]}
1761
                    , {
1762
                      "if_cond" : ["EXPRESSION", {
1763
                        "id" : "and", "args" : [["EXPRESSION", {
1764
                          "id" : "/=", "args" : [["EXPRESSION", {
1765
                            "args" : [["EXPRESSION", {
1766
                              "args" : [["EXPRESSION", {
1767
                                "args" : [["CALL", ["SIMPLE_NAME", "destMacFilter"]]]}
1768
                              ]]}
1769
                            ]]}
1770
                          ], ["EXPRESSION", {
1771
                            "args" : [["EXPRESSION", {
1772
                              "args" : [["EXPRESSION", {
1773
                                "args" : [["CONSTANT_VALUE", {
1774
                                  "value" : ["CST_LITERAL", "0"]}
1775
                                ]]}
1776
                              ]]}
1777
                            ]]}
1778
                          ]]}
1779
                        ], ["EXPRESSION", {
1780
                          "id" : "/=", "args" : [["EXPRESSION", {
1781
                            "args" : [["EXPRESSION", {
1782
                              "args" : [["EXPRESSION", {
1783
                                "args" : [["CALL", ["SIMPLE_NAME", "destMac"]]]}
1784
                              ]]}
1785
                            ]]}
1786
                          ], ["EXPRESSION", {
1787
                            "args" : [["EXPRESSION", {
1788
                              "args" : [["EXPRESSION", {
1789
                                "args" : [["CALL", ["SIMPLE_NAME", "destMacFilter"]]]}
1790
                              ]]}
1791
                            ]]}
1792
                          ]]}
1793
                        ]]}
1794
                      ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
1795
                        "lhs" : ["SIMPLE_NAME", "RxState"], "rhs" : [{
1796
                          "value" : ["EXPRESSION", {
1797
                            "args" : [["EXPRESSION", {
1798
                              "args" : [["EXPRESSION", {
1799
                                "args" : [["EXPRESSION", {
1800
                                  "args" : [["CALL", ["SIMPLE_NAME", "fail"]]]}
1801
                                ]]}
1802
                              ]]}
1803
                            ]]}
1804
                          ]}
1805
                        ]}
1806
                      ]]}
1807
                    ], "default" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
1808
                      "lhs" : ["SIMPLE_NAME", "RxState"], "rhs" : [{
1809
                        "value" : ["EXPRESSION", {
1810
                          "args" : [["EXPRESSION", {
1811
                            "args" : [["EXPRESSION", {
1812
                              "args" : [["EXPRESSION", {
1813
                                "args" : [["CALL", ["SIMPLE_NAME", "pass"]]]}
1814
                              ]]}
1815
                            ]]}
1816
                          ]]}
1817
                        ]}
1818
                      ]}
1819
                    ]]}
1820
                  ]]}
1821
                , {
1822
                  "when_cond" : [["EXPRESSION", {
1823
                    "args" : [["EXPRESSION", {
1824
                      "args" : [["CALL", ["SIMPLE_NAME", "pass"]]]}
1825
                    ]]}
1826
                  ]], "when_stmt" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
1827
                    "lhs" : ["SIMPLE_NAME", "rxLen"], "rhs" : [{
1828
                      "value" : ["EXPRESSION", {
1829
                        "args" : [["EXPRESSION", {
1830
                          "args" : [["EXPRESSION", {
1831
                            "args" : [["EXPRESSION", {
1832
                              "args" : [["CALL", ["SIMPLE_NAME", "rxCounter"]]]}
1833
                            ]]}
1834
                          ]]}
1835
                        ]]}
1836
                      ]}
1837
                    ]}
1838
                  ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
1839
                    "lhs" : ["SIMPLE_NAME", "frameCompleteToggle"], "rhs" : [{
1840
                      "value" : ["EXPRESSION", {
1841
                        "args" : [["EXPRESSION", {
1842
                          "args" : [["EXPRESSION", {
1843
                            "args" : [["EXPRESSION", {
1844
                              "id" : "not", "args" : [["CALL", ["SIMPLE_NAME", "frameCompleteToggle"]]]}
1845
                            ]]}
1846
                          ]]}
1847
                        ]]}
1848
                      ]}
1849
                    ]}
1850
                  ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
1851
                    "lhs" : ["SIMPLE_NAME", "RxState"], "rhs" : [{
1852
                      "value" : ["EXPRESSION", {
1853
                        "args" : [["EXPRESSION", {
1854
                          "args" : [["EXPRESSION", {
1855
                            "args" : [["EXPRESSION", {
1856
                              "args" : [["CALL", ["SIMPLE_NAME", "interframe"]]]}
1857
                            ]]}
1858
                          ]]}
1859
                        ]]}
1860
                      ]}
1861
                    ]}
1862
                  ]]}
1863
                , {
1864
                  "when_cond" : [["EXPRESSION", {
1865
                    "args" : [["EXPRESSION", {
1866
                      "args" : [["CALL", ["SIMPLE_NAME", "fail"]]]}
1867
                    ]]}
1868
                  ]], "when_stmt" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
1869
                    "lhs" : ["SIMPLE_NAME", "ramWrAddr"], "rhs" : [{
1870
                      "value" : ["EXPRESSION", {
1871
                        "args" : [["EXPRESSION", {
1872
                          "args" : [["EXPRESSION", {
1873
                            "args" : [["EXPRESSION", {
1874
                              "args" : [["CALL", ["SIMPLE_NAME", "rxOffset"]]]}
1875
                            ]]}
1876
                          ]]}
1877
                        ]]}
1878
                      ]}
1879
                    ]}
1880
                  ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
1881
                    "lhs" : ["SIMPLE_NAME", "RxState"], "rhs" : [{
1882
                      "value" : ["EXPRESSION", {
1883
                        "args" : [["EXPRESSION", {
1884
                          "args" : [["EXPRESSION", {
1885
                            "args" : [["EXPRESSION", {
1886
                              "args" : [["CALL", ["SIMPLE_NAME", "interframe"]]]}
1887
                            ]]}
1888
                          ]]}
1889
                        ]]}
1890
                      ]}
1891
                    ]}
1892
                  ]]}
1893
                , {
1894
                  "when_cond" : [["OTHERS"]], "when_stmt" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
1895
                    "lhs" : ["SIMPLE_NAME", "RxState"], "rhs" : [{
1896
                      "value" : ["EXPRESSION", {
1897
                        "args" : [["EXPRESSION", {
1898
                          "args" : [["EXPRESSION", {
1899
                            "args" : [["EXPRESSION", {
1900
                              "args" : [["CALL", ["SIMPLE_NAME", "interframe"]]]}
1901
                            ]]}
1902
                          ]]}
1903
                        ]]}
1904
                      ]}
1905
                    ]}
1906
                  ]]}
1907
                ]}
1908
              ]]}
1909
            ]}
1910
          ]]}
1911
        ], ["PROCESS_STATEMENT", {
1912
          "id" : ["IDENTIFIER", "CLK50_to_ETH"], "active_sigs" : [["SIMPLE_NAME", "ethernetRXCLK"], ["SIMPLE_NAME", "reset_n"]], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
1913
            "if_cases" : [{
1914
              "if_cond" : ["EXPRESSION", {
1915
                "id" : "=", "args" : [["EXPRESSION", {
1916
                  "args" : [["EXPRESSION", {
1917
                    "args" : [["EXPRESSION", {
1918
                      "args" : [["CALL", ["SIMPLE_NAME", "reset_n"]]]}
1919
                    ]]}
1920
                  ]]}
1921
                ], ["EXPRESSION", {
1922
                  "args" : [["EXPRESSION", {
1923
                    "args" : [["EXPRESSION", {
1924
                      "args" : [["CONSTANT_VALUE", {
1925
                        "value" : ["CST_LITERAL", "'0'"]}
1926
                      ]]}
1927
                    ]]}
1928
                  ]]}
1929
                ]]}
1930
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
1931
                "lhs" : ["SIMPLE_NAME", "srcMacFilter"], "rhs" : [{
1932
                  "value" : ["EXPRESSION", {
1933
                    "args" : [["EXPRESSION", {
1934
                      "args" : [["EXPRESSION", {
1935
                        "args" : [["EXPRESSION", {
1936
                          "args" : [["AGGREGATE", {
1937
                            "elems" : [{
1938
                              "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
1939
                                "args" : [["EXPRESSION", {
1940
                                  "args" : [["EXPRESSION", {
1941
                                    "args" : [["EXPRESSION", {
1942
                                      "args" : [["CONSTANT_VALUE", {
1943
                                        "value" : ["CST_LITERAL", "'0'"]}
1944
                                      ]]}
1945
                                    ]]}
1946
                                  ]]}
1947
                                ]]}
1948
                              ]}
1949
                            ]}
1950
                          ]]}
1951
                        ]]}
1952
                      ]]}
1953
                    ]]}
1954
                  ]}
1955
                ]}
1956
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
1957
                "lhs" : ["SIMPLE_NAME", "destMacFilter"], "rhs" : [{
1958
                  "value" : ["EXPRESSION", {
1959
                    "args" : [["EXPRESSION", {
1960
                      "args" : [["EXPRESSION", {
1961
                        "args" : [["EXPRESSION", {
1962
                          "args" : [["AGGREGATE", {
1963
                            "elems" : [{
1964
                              "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
1965
                                "args" : [["EXPRESSION", {
1966
                                  "args" : [["EXPRESSION", {
1967
                                    "args" : [["EXPRESSION", {
1968
                                      "args" : [["CONSTANT_VALUE", {
1969
                                        "value" : ["CST_LITERAL", "'0'"]}
1970
                                      ]]}
1971
                                    ]]}
1972
                                  ]]}
1973
                                ]]}
1974
                              ]}
1975
                            ]}
1976
                          ]]}
1977
                        ]]}
1978
                      ]]}
1979
                    ]]}
1980
                  ]}
1981
                ]}
1982
              ]]}
1983
            , {
1984
              "if_cond" : ["EXPRESSION", {
1985
                "args" : [["EXPRESSION", {
1986
                  "args" : [["EXPRESSION", {
1987
                    "args" : [["EXPRESSION", {
1988
                      "args" : [["CALL", ["FUNCTION_CALL", {
1989
                        "id" : ["SIMPLE_NAME", "rising_edge"], "assoc_list" : [{
1990
                          "actual_designator" : ["SIMPLE_NAME", "ethernetRXCLK"]}
1991
                        ]}
1992
                      ]]]}
1993
                    ]]}
1994
                  ]]}
1995
                ]]}
1996
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
1997
                "lhs" : ["SIMPLE_NAME", "destMacFilter"], "rhs" : [{
1998
                  "value" : ["EXPRESSION", {
1999
                    "args" : [["EXPRESSION", {
2000
                      "args" : [["EXPRESSION", {
2001
                        "args" : [["EXPRESSION", {
2002
                          "args" : [["CALL", ["SIMPLE_NAME", "destMacFilter_50"]]]}
2003
                        ]]}
2004
                      ]]}
2005
                    ]]}
2006
                  ]}
2007
                ]}
2008
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
2009
                "lhs" : ["SIMPLE_NAME", "srcMacFilter"], "rhs" : [{
2010
                  "value" : ["EXPRESSION", {
2011
                    "args" : [["EXPRESSION", {
2012
                      "args" : [["EXPRESSION", {
2013
                        "args" : [["EXPRESSION", {
2014
                          "args" : [["CALL", ["SIMPLE_NAME", "srcMacFilter_50"]]]}
2015
                        ]]}
2016
                      ]]}
2017
                    ]]}
2018
                  ]}
2019
                ]}
2020
              ]]}
2021
            ]}
2022
          ]]}
2023
        ], ["PROCESS_STATEMENT", {
2024
          "id" : ["IDENTIFIER", "ECLK_to_CLK50"], "PROCESS_DECLARATIVE_PART" : [{
2025
            "declaration" : ["VARIABLE_DECLARATION", {
2026
              "names" : [["IDENTIFIER", "fct"]], "typ" : {
2027
                "name" : ["SIMPLE_NAME", "std_logic_vector"], "const" : ["INDEX_CONSTRAINT", {
2028
                  "ranges" : [["RANGE_WITH_DIRECTION", {
2029
                    "direction" : "downto", "from" : ["EXPRESSION", {
2030
                      "args" : [["EXPRESSION", {
2031
                        "args" : [["CONSTANT_VALUE", {
2032
                          "value" : ["CST_LITERAL", "2"]}
2033
                        ]]}
2034
                      ]]}
2035
                    ], "_to" : ["EXPRESSION", {
2036
                      "args" : [["EXPRESSION", {
2037
                        "args" : [["CONSTANT_VALUE", {
2038
                          "value" : ["CST_LITERAL", "0"]}
2039
                        ]]}
2040
                      ]]}
2041
                    ]}
2042
                  ]]}
2043
                ]}
2044
              }
2045
            ]}
2046
          ], "active_sigs" : [["SIMPLE_NAME", "clk_50"], ["SIMPLE_NAME", "reset_n"]], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
2047
            "if_cases" : [{
2048
              "if_cond" : ["EXPRESSION", {
2049
                "id" : "=", "args" : [["EXPRESSION", {
2050
                  "args" : [["EXPRESSION", {
2051
                    "args" : [["EXPRESSION", {
2052
                      "args" : [["CALL", ["SIMPLE_NAME", "reset_n"]]]}
2053
                    ]]}
2054
                  ]]}
2055
                ], ["EXPRESSION", {
2056
                  "args" : [["EXPRESSION", {
2057
                    "args" : [["EXPRESSION", {
2058
                      "args" : [["CONSTANT_VALUE", {
2059
                        "value" : ["CST_LITERAL", "'0'"]}
2060
                      ]]}
2061
                    ]]}
2062
                  ]]}
2063
                ]]}
2064
              ], "if_block" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
2065
                "lhs" : ["SIMPLE_NAME", "fct"], "rhs" : ["EXPRESSION", {
2066
                  "args" : [["EXPRESSION", {
2067
                    "args" : [["EXPRESSION", {
2068
                      "args" : [["EXPRESSION", {
2069
                        "args" : [["AGGREGATE", {
2070
                          "elems" : [{
2071
                            "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
2072
                              "args" : [["EXPRESSION", {
2073
                                "args" : [["EXPRESSION", {
2074
                                  "args" : [["EXPRESSION", {
2075
                                    "args" : [["CONSTANT_VALUE", {
2076
                                      "value" : ["CST_LITERAL", "'0'"]}
2077
                                    ]]}
2078
                                  ]]}
2079
                                ]]}
2080
                              ]]}
2081
                            ]}
2082
                          ]}
2083
                        ]]}
2084
                      ]]}
2085
                    ]]}
2086
                  ]]}
2087
                ]}
2088
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
2089
                "lhs" : ["SIMPLE_NAME", "frameComplete"], "rhs" : [{
2090
                  "value" : ["EXPRESSION", {
2091
                    "args" : [["EXPRESSION", {
2092
                      "args" : [["EXPRESSION", {
2093
                        "args" : [["EXPRESSION", {
2094
                          "args" : [["CONSTANT_VALUE", {
2095
                            "value" : ["CST_LITERAL", "'0'"]}
2096
                          ]]}
2097
                        ]]}
2098
                      ]]}
2099
                    ]]}
2100
                  ]}
2101
                ]}
2102
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
2103
                "lhs" : ["SIMPLE_NAME", "rxLen_50"], "rhs" : [{
2104
                  "value" : ["EXPRESSION", {
2105
                    "args" : [["EXPRESSION", {
2106
                      "args" : [["EXPRESSION", {
2107
                        "args" : [["EXPRESSION", {
2108
                          "args" : [["AGGREGATE", {
2109
                            "elems" : [{
2110
                              "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
2111
                                "args" : [["EXPRESSION", {
2112
                                  "args" : [["EXPRESSION", {
2113
                                    "args" : [["EXPRESSION", {
2114
                                      "args" : [["CONSTANT_VALUE", {
2115
                                        "value" : ["CST_LITERAL", "'0'"]}
2116
                                      ]]}
2117
                                    ]]}
2118
                                  ]]}
2119
                                ]]}
2120
                              ]}
2121
                            ]}
2122
                          ]]}
2123
                        ]]}
2124
                      ]]}
2125
                    ]]}
2126
                  ]}
2127
                ]}
2128
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
2129
                "lhs" : ["SIMPLE_NAME", "rxOffset_50"], "rhs" : [{
2130
                  "value" : ["EXPRESSION", {
2131
                    "args" : [["EXPRESSION", {
2132
                      "args" : [["EXPRESSION", {
2133
                        "args" : [["EXPRESSION", {
2134
                          "args" : [["AGGREGATE", {
2135
                            "elems" : [{
2136
                              "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
2137
                                "args" : [["EXPRESSION", {
2138
                                  "args" : [["EXPRESSION", {
2139
                                    "args" : [["EXPRESSION", {
2140
                                      "args" : [["CONSTANT_VALUE", {
2141
                                        "value" : ["CST_LITERAL", "'0'"]}
2142
                                      ]]}
2143
                                    ]]}
2144
                                  ]]}
2145
                                ]]}
2146
                              ]}
2147
                            ]}
2148
                          ]]}
2149
                        ]]}
2150
                      ]]}
2151
                    ]]}
2152
                  ]}
2153
                ]}
2154
              ]]}
2155
            , {
2156
              "if_cond" : ["EXPRESSION", {
2157
                "args" : [["EXPRESSION", {
2158
                  "args" : [["EXPRESSION", {
2159
                    "args" : [["EXPRESSION", {
2160
                      "args" : [["CALL", ["FUNCTION_CALL", {
2161
                        "id" : ["SIMPLE_NAME", "rising_edge"], "assoc_list" : [{
2162
                          "actual_designator" : ["SIMPLE_NAME", "clk_50"]}
2163
                        ]}
2164
                      ]]]}
2165
                    ]]}
2166
                  ]]}
2167
                ]]}
2168
              ], "if_block" : [["VARIABLE_ASSIGNMENT_STATEMENT", {
2169
                "lhs" : ["SIMPLE_NAME", "fct"], "rhs" : ["EXPRESSION", {
2170
                  "args" : [["EXPRESSION", {
2171
                    "args" : [["EXPRESSION", {
2172
                      "args" : [["EXPRESSION", {
2173
                        "id" : "&", "args" : [["EXPRESSION", {
2174
                          "args" : [["CALL", ["SLICE_NAME", {
2175
                            "id" : ["SIMPLE_NAME", "fct"], "range" : ["RANGE_WITH_DIRECTION", {
2176
                              "direction" : "downto", "from" : ["EXPRESSION", {
2177
                                "args" : [["EXPRESSION", {
2178
                                  "id" : "-", "args" : [["EXPRESSION", {
2179
                                    "args" : [["CALL", ["ATTRIBUTE_NAME", {
2180
                                      "id" : ["SIMPLE_NAME", "fct"], "designator" : ["SIMPLE_NAME", "left"]}
2181
                                    ]]]}
2182
                                  ], ["EXPRESSION", {
2183
                                    "args" : [["CONSTANT_VALUE", {
2184
                                      "value" : ["CST_LITERAL", "1"]}
2185
                                    ]]}
2186
                                  ]]}
2187
                                ]]}
2188
                              ], "_to" : ["EXPRESSION", {
2189
                                "args" : [["EXPRESSION", {
2190
                                  "args" : [["CONSTANT_VALUE", {
2191
                                    "value" : ["CST_LITERAL", "0"]}
2192
                                  ]]}
2193
                                ]]}
2194
                              ]}
2195
                            ]}
2196
                          ]]]}
2197
                        ], ["EXPRESSION", {
2198
                          "args" : [["CALL", ["SIMPLE_NAME", "frameCompleteToggle"]]]}
2199
                        ]]}
2200
                      ]]}
2201
                    ]]}
2202
                  ]]}
2203
                ]}
2204
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
2205
                "lhs" : ["SIMPLE_NAME", "frameComplete"], "rhs" : [{
2206
                  "value" : ["EXPRESSION", {
2207
                    "args" : [["EXPRESSION", {
2208
                      "args" : [["EXPRESSION", {
2209
                        "args" : [["EXPRESSION", {
2210
                          "args" : [["CONSTANT_VALUE", {
2211
                            "value" : ["CST_LITERAL", "'0'"]}
2212
                          ]]}
2213
                        ]]}
2214
                      ]]}
2215
                    ]]}
2216
                  ]}
2217
                ]}
2218
              ], ["IF_STATEMENT", {
2219
                "if_cases" : [{
2220
                  "if_cond" : ["EXPRESSION", {
2221
                    "id" : "/=", "args" : [["EXPRESSION", {
2222
                      "args" : [["EXPRESSION", {
2223
                        "args" : [["EXPRESSION", {
2224
                          "args" : [["CALL", ["FUNCTION_CALL", {
2225
                            "id" : ["SIMPLE_NAME", "fct"], "assoc_list" : [{
2226
                              "actual_expr" : ["EXPRESSION", {
2227
                                "args" : [["EXPRESSION", {
2228
                                  "args" : [["EXPRESSION", {
2229
                                    "args" : [["EXPRESSION", {
2230
                                      "args" : [["CONSTANT_VALUE", {
2231
                                        "value" : ["CST_LITERAL", "2"]}
2232
                                      ]]}
2233
                                    ]]}
2234
                                  ]]}
2235
                                ]]}
2236
                              ]}
2237
                            ]}
2238
                          ]]]}
2239
                        ]]}
2240
                      ]]}
2241
                    ], ["EXPRESSION", {
2242
                      "args" : [["EXPRESSION", {
2243
                        "args" : [["EXPRESSION", {
2244
                          "args" : [["CALL", ["FUNCTION_CALL", {
2245
                            "id" : ["SIMPLE_NAME", "fct"], "assoc_list" : [{
2246
                              "actual_expr" : ["EXPRESSION", {
2247
                                "args" : [["EXPRESSION", {
2248
                                  "args" : [["EXPRESSION", {
2249
                                    "args" : [["EXPRESSION", {
2250
                                      "args" : [["CONSTANT_VALUE", {
2251
                                        "value" : ["CST_LITERAL", "1"]}
2252
                                      ]]}
2253
                                    ]]}
2254
                                  ]]}
2255
                                ]]}
2256
                              ]}
2257
                            ]}
2258
                          ]]]}
2259
                        ]]}
2260
                      ]]}
2261
                    ]]}
2262
                  ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
2263
                    "lhs" : ["SIMPLE_NAME", "frameComplete"], "rhs" : [{
2264
                      "value" : ["EXPRESSION", {
2265
                        "args" : [["EXPRESSION", {
2266
                          "args" : [["EXPRESSION", {
2267
                            "args" : [["EXPRESSION", {
2268
                              "args" : [["CONSTANT_VALUE", {
2269
                                "value" : ["CST_LITERAL", "'1'"]}
2270
                              ]]}
2271
                            ]]}
2272
                          ]]}
2273
                        ]]}
2274
                      ]}
2275
                    ]}
2276
                  ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
2277
                    "lhs" : ["SIMPLE_NAME", "rxLen_50"], "rhs" : [{
2278
                      "value" : ["EXPRESSION", {
2279
                        "args" : [["EXPRESSION", {
2280
                          "args" : [["EXPRESSION", {
2281
                            "args" : [["EXPRESSION", {
2282
                              "args" : [["CALL", ["SIMPLE_NAME", "rxLen"]]]}
2283
                            ]]}
2284
                          ]]}
2285
                        ]]}
2286
                      ]}
2287
                    ]}
2288
                  ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
2289
                    "lhs" : ["SIMPLE_NAME", "rxOffset_50"], "rhs" : [{
2290
                      "value" : ["EXPRESSION", {
2291
                        "args" : [["EXPRESSION", {
2292
                          "args" : [["EXPRESSION", {
2293
                            "args" : [["EXPRESSION", {
2294
                              "id" : "&", "args" : [["EXPRESSION", {
2295
                                "args" : [["CONSTANT_VALUE", {
2296
                                  "value" : ["CST_LITERAL", "\"000\""]}
2297
                                ]]}
2298
                              ], ["EXPRESSION", {
2299
                                "args" : [["CALL", ["SIMPLE_NAME", "rxOffset"]]]}
2300
                              ]]}
2301
                            ]]}
2302
                          ]]}
2303
                        ]]}
2304
                      ]}
2305
                    ]}
2306
                  ]]}
2307
                ]}
2308
              ]]}
2309
            ]}
2310
          ]]}
2311
        ], ["PROCESS_STATEMENT", {
2312
          "id" : ["IDENTIFIER", "CPU_REG"], "active_sigs" : [["SIMPLE_NAME", "clk_50"], ["SIMPLE_NAME", "reset_n"]], "PROCESS_STATEMENT_PART" : [["IF_STATEMENT", {
2313
            "if_cases" : [{
2314
              "if_cond" : ["EXPRESSION", {
2315
                "id" : "=", "args" : [["EXPRESSION", {
2316
                  "args" : [["EXPRESSION", {
2317
                    "args" : [["EXPRESSION", {
2318
                      "args" : [["CALL", ["SIMPLE_NAME", "reset_n"]]]}
2319
                    ]]}
2320
                  ]]}
2321
                ], ["EXPRESSION", {
2322
                  "args" : [["EXPRESSION", {
2323
                    "args" : [["EXPRESSION", {
2324
                      "args" : [["CONSTANT_VALUE", {
2325
                        "value" : ["CST_LITERAL", "'0'"]}
2326
                      ]]}
2327
                    ]]}
2328
                  ]]}
2329
                ]]}
2330
              ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
2331
                "lhs" : ["SIMPLE_NAME", "PacketLengths"], "rhs" : [{
2332
                  "value" : ["EXPRESSION", {
2333
                    "args" : [["EXPRESSION", {
2334
                      "args" : [["EXPRESSION", {
2335
                        "args" : [["EXPRESSION", {
2336
                          "args" : [["AGGREGATE", {
2337
                            "elems" : [{
2338
                              "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
2339
                                "args" : [["EXPRESSION", {
2340
                                  "args" : [["EXPRESSION", {
2341
                                    "args" : [["EXPRESSION", {
2342
                                      "args" : [["AGGREGATE", {
2343
                                        "elems" : [{
2344
                                          "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
2345
                                            "args" : [["EXPRESSION", {
2346
                                              "args" : [["EXPRESSION", {
2347
                                                "args" : [["EXPRESSION", {
2348
                                                  "args" : [["CONSTANT_VALUE", {
2349
                                                    "value" : ["CST_LITERAL", "'0'"]}
2350
                                                  ]]}
2351
                                                ]]}
2352
                                              ]]}
2353
                                            ]]}
2354
                                          ]}
2355
                                        ]}
2356
                                      ]]}
2357
                                    ]]}
2358
                                  ]]}
2359
                                ]]}
2360
                              ]}
2361
                            ]}
2362
                          ]]}
2363
                        ]]}
2364
                      ]]}
2365
                    ]]}
2366
                  ]}
2367
                ]}
2368
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
2369
                "lhs" : ["SIMPLE_NAME", "PacketOffsets"], "rhs" : [{
2370
                  "value" : ["EXPRESSION", {
2371
                    "args" : [["EXPRESSION", {
2372
                      "args" : [["EXPRESSION", {
2373
                        "args" : [["EXPRESSION", {
2374
                          "args" : [["AGGREGATE", {
2375
                            "elems" : [{
2376
                              "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
2377
                                "args" : [["EXPRESSION", {
2378
                                  "args" : [["EXPRESSION", {
2379
                                    "args" : [["EXPRESSION", {
2380
                                      "args" : [["AGGREGATE", {
2381
                                        "elems" : [{
2382
                                          "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
2383
                                            "args" : [["EXPRESSION", {
2384
                                              "args" : [["EXPRESSION", {
2385
                                                "args" : [["EXPRESSION", {
2386
                                                  "args" : [["CONSTANT_VALUE", {
2387
                                                    "value" : ["CST_LITERAL", "'0'"]}
2388
                                                  ]]}
2389
                                                ]]}
2390
                                              ]]}
2391
                                            ]]}
2392
                                          ]}
2393
                                        ]}
2394
                                      ]]}
2395
                                    ]]}
2396
                                  ]]}
2397
                                ]]}
2398
                              ]}
2399
                            ]}
2400
                          ]]}
2401
                        ]]}
2402
                      ]]}
2403
                    ]]}
2404
                  ]}
2405
                ]}
2406
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
2407
                "lhs" : ["SIMPLE_NAME", "RxPacketValid"], "rhs" : [{
2408
                  "value" : ["EXPRESSION", {
2409
                    "args" : [["EXPRESSION", {
2410
                      "args" : [["EXPRESSION", {
2411
                        "args" : [["EXPRESSION", {
2412
                          "args" : [["AGGREGATE", {
2413
                            "elems" : [{
2414
                              "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
2415
                                "args" : [["EXPRESSION", {
2416
                                  "args" : [["EXPRESSION", {
2417
                                    "args" : [["EXPRESSION", {
2418
                                      "args" : [["CONSTANT_VALUE", {
2419
                                        "value" : ["CST_LITERAL", "'0'"]}
2420
                                      ]]}
2421
                                    ]]}
2422
                                  ]]}
2423
                                ]]}
2424
                              ]}
2425
                            ]}
2426
                          ]]}
2427
                        ]]}
2428
                      ]]}
2429
                    ]]}
2430
                  ]}
2431
                ]}
2432
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
2433
                "lhs" : ["SIMPLE_NAME", "nextValid"], "rhs" : [{
2434
                  "value" : ["EXPRESSION", {
2435
                    "args" : [["EXPRESSION", {
2436
                      "args" : [["EXPRESSION", {
2437
                        "args" : [["EXPRESSION", {
2438
                          "args" : [["CONSTANT_VALUE", {
2439
                            "value" : ["CST_LITERAL", "0"]}
2440
                          ]]}
2441
                        ]]}
2442
                      ]]}
2443
                    ]]}
2444
                  ]}
2445
                ]}
2446
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
2447
                "lhs" : ["SIMPLE_NAME", "etherRxConDout"], "rhs" : [{
2448
                  "value" : ["EXPRESSION", {
2449
                    "args" : [["EXPRESSION", {
2450
                      "args" : [["EXPRESSION", {
2451
                        "args" : [["EXPRESSION", {
2452
                          "args" : [["AGGREGATE", {
2453
                            "elems" : [{
2454
                              "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
2455
                                "args" : [["EXPRESSION", {
2456
                                  "args" : [["EXPRESSION", {
2457
                                    "args" : [["EXPRESSION", {
2458
                                      "args" : [["CONSTANT_VALUE", {
2459
                                        "value" : ["CST_LITERAL", "'0'"]}
2460
                                      ]]}
2461
                                    ]]}
2462
                                  ]]}
2463
                                ]]}
2464
                              ]}
2465
                            ]}
2466
                          ]]}
2467
                        ]]}
2468
                      ]]}
2469
                    ]]}
2470
                  ]}
2471
                ]}
2472
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
2473
                "lhs" : ["SIMPLE_NAME", "srcMacFilter_50"], "rhs" : [{
2474
                  "value" : ["EXPRESSION", {
2475
                    "args" : [["EXPRESSION", {
2476
                      "args" : [["EXPRESSION", {
2477
                        "args" : [["EXPRESSION", {
2478
                          "args" : [["AGGREGATE", {
2479
                            "elems" : [{
2480
                              "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
2481
                                "args" : [["EXPRESSION", {
2482
                                  "args" : [["EXPRESSION", {
2483
                                    "args" : [["EXPRESSION", {
2484
                                      "args" : [["CONSTANT_VALUE", {
2485
                                        "value" : ["CST_LITERAL", "'0'"]}
2486
                                      ]]}
2487
                                    ]]}
2488
                                  ]]}
2489
                                ]]}
2490
                              ]}
2491
                            ]}
2492
                          ]]}
2493
                        ]]}
2494
                      ]]}
2495
                    ]]}
2496
                  ]}
2497
                ]}
2498
              ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
2499
                "lhs" : ["SIMPLE_NAME", "destMacFilter_50"], "rhs" : [{
2500
                  "value" : ["EXPRESSION", {
2501
                    "args" : [["EXPRESSION", {
2502
                      "args" : [["EXPRESSION", {
2503
                        "args" : [["EXPRESSION", {
2504
                          "args" : [["AGGREGATE", {
2505
                            "elems" : [{
2506
                              "choices" : [["OTHERS"]], "expr" : ["EXPRESSION", {
2507
                                "args" : [["EXPRESSION", {
2508
                                  "args" : [["EXPRESSION", {
2509
                                    "args" : [["EXPRESSION", {
2510
                                      "args" : [["CONSTANT_VALUE", {
2511
                                        "value" : ["CST_LITERAL", "'0'"]}
2512
                                      ]]}
2513
                                    ]]}
2514
                                  ]]}
2515
                                ]]}
2516
                              ]}
2517
                            ]}
2518
                          ]]}
2519
                        ]]}
2520
                      ]]}
2521
                    ]]}
2522
                  ]}
2523
                ]}
2524
              ]]}
2525
            , {
2526
              "if_cond" : ["EXPRESSION", {
2527
                "args" : [["EXPRESSION", {
2528
                  "args" : [["EXPRESSION", {
2529
                    "args" : [["EXPRESSION", {
2530
                      "args" : [["CALL", ["FUNCTION_CALL", {
2531
                        "id" : ["SIMPLE_NAME", "rising_edge"], "assoc_list" : [{
2532
                          "actual_designator" : ["SIMPLE_NAME", "clk_50"]}
2533
                        ]}
2534
                      ]]]}
2535
                    ]]}
2536
                  ]]}
2537
                ]]}
2538
              ], "if_block" : [["IF_STATEMENT", {
2539
                "if_cases" : [{
2540
                  "if_cond" : ["EXPRESSION", {
2541
                    "id" : "=", "args" : [["EXPRESSION", {
2542
                      "args" : [["EXPRESSION", {
2543
                        "args" : [["EXPRESSION", {
2544
                          "args" : [["CALL", ["SIMPLE_NAME", "frameComplete"]]]}
2545
                        ]]}
2546
                      ]]}
2547
                    ], ["EXPRESSION", {
2548
                      "args" : [["EXPRESSION", {
2549
                        "args" : [["EXPRESSION", {
2550
                          "args" : [["CONSTANT_VALUE", {
2551
                            "value" : ["CST_LITERAL", "'1'"]}
2552
                          ]]}
2553
                        ]]}
2554
                      ]]}
2555
                    ]]}
2556
                  ], "if_block" : [["IF_STATEMENT", {
2557
                    "if_cases" : [{
2558
                      "if_cond" : ["EXPRESSION", {
2559
                        "id" : "=", "args" : [["EXPRESSION", {
2560
                          "args" : [["EXPRESSION", {
2561
                            "args" : [["EXPRESSION", {
2562
                              "args" : [["CALL", ["FUNCTION_CALL", {
2563
                                "id" : ["SIMPLE_NAME", "RxPacketValid"], "assoc_list" : [{
2564
                                  "actual_designator" : ["SIMPLE_NAME", "nextValid"]}
2565
                                ]}
2566
                              ]]]}
2567
                            ]]}
2568
                          ]]}
2569
                        ], ["EXPRESSION", {
2570
                          "args" : [["EXPRESSION", {
2571
                            "args" : [["EXPRESSION", {
2572
                              "args" : [["CONSTANT_VALUE", {
2573
                                "value" : ["CST_LITERAL", "'0'"]}
2574
                              ]]}
2575
                            ]]}
2576
                          ]]}
2577
                        ]]}
2578
                      ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
2579
                        "lhs" : ["INDEXED_NAME", {
2580
                          "id" : ["SIMPLE_NAME", "RxPacketValid"], "exprs" : [["EXPRESSION", {
2581
                            "args" : [["EXPRESSION", {
2582
                              "args" : [["EXPRESSION", {
2583
                                "args" : [["EXPRESSION", {
2584
                                  "args" : [["CALL", ["SIMPLE_NAME", "nextValid"]]]}
2585
                                ]]}
2586
                              ]]}
2587
                            ]]}
2588
                          ]]}
2589
                        ], "rhs" : [{
2590
                          "value" : ["EXPRESSION", {
2591
                            "args" : [["EXPRESSION", {
2592
                              "args" : [["EXPRESSION", {
2593
                                "args" : [["EXPRESSION", {
2594
                                  "args" : [["CONSTANT_VALUE", {
2595
                                    "value" : ["CST_LITERAL", "'1'"]}
2596
                                  ]]}
2597
                                ]]}
2598
                              ]]}
2599
                            ]]}
2600
                          ]}
2601
                        ]}
2602
                      ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
2603
                        "lhs" : ["INDEXED_NAME", {
2604
                          "id" : ["SIMPLE_NAME", "PacketLengths"], "exprs" : [["EXPRESSION", {
2605
                            "args" : [["EXPRESSION", {
2606
                              "args" : [["EXPRESSION", {
2607
                                "args" : [["EXPRESSION", {
2608
                                  "args" : [["CALL", ["SIMPLE_NAME", "nextValid"]]]}
2609
                                ]]}
2610
                              ]]}
2611
                            ]]}
2612
                          ]]}
2613
                        ], "rhs" : [{
2614
                          "value" : ["EXPRESSION", {
2615
                            "args" : [["EXPRESSION", {
2616
                              "args" : [["EXPRESSION", {
2617
                                "args" : [["EXPRESSION", {
2618
                                  "args" : [["CALL", ["SIMPLE_NAME", "rxLen_50"]]]}
2619
                                ]]}
2620
                              ]]}
2621
                            ]]}
2622
                          ]}
2623
                        ]}
2624
                      ], ["SIGNAL_ASSIGNMENT_STATEMENT", {
2625
                        "lhs" : ["INDEXED_NAME", {
2626
                          "id" : ["SIMPLE_NAME", "PacketOffsets"], "exprs" : [["EXPRESSION", {
2627
                            "args" : [["EXPRESSION", {
2628
                              "args" : [["EXPRESSION", {
2629
                                "args" : [["EXPRESSION", {
2630
                                  "args" : [["CALL", ["SIMPLE_NAME", "nextValid"]]]}
2631
                                ]]}
2632
                              ]]}
2633
                            ]]}
2634
                          ]]}
2635
                        ], "rhs" : [{
2636
                          "value" : ["EXPRESSION", {
2637
                            "args" : [["EXPRESSION", {
2638
                              "args" : [["EXPRESSION", {
2639
                                "args" : [["EXPRESSION", {
2640
                                  "args" : [["CALL", ["SIMPLE_NAME", "rxOffset_50"]]]}
2641
                                ]]}
2642
                              ]]}
2643
                            ]]}
2644
                          ]}
2645
                        ]}
2646
                      ]]}
2647
                    ]}
2648
                  ], ["IF_STATEMENT", {
2649
                    "if_cases" : [{
2650
                      "if_cond" : ["EXPRESSION", {
2651
                        "id" : "=", "args" : [["EXPRESSION", {
2652
                          "args" : [["EXPRESSION", {
2653
                            "args" : [["EXPRESSION", {
2654
                              "args" : [["CALL", ["SIMPLE_NAME", "nextValid"]]]}
2655
                            ]]}
2656
                          ]]}
2657
                        ], ["EXPRESSION", {
2658
                          "args" : [["EXPRESSION", {
2659
                            "args" : [["EXPRESSION", {
2660
                              "args" : [["CONSTANT_VALUE", {
2661
                                "value" : ["CST_LITERAL", "1"]}
2662
                              ]]}
2663
                            ]]}
2664
                          ]]}
2665
                        ]]}
2666
                      ], "if_block" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
2667
                        "lhs" : ["SIMPLE_NAME", "nextValid"], "rhs" : [{
2668
                          "value" : ["EXPRESSION", {
2669
                            "args" : [["EXPRESSION", {
2670
                              "args" : [["EXPRESSION", {
2671
                                "args" : [["EXPRESSION", {
2672
                                  "args" : [["CONSTANT_VALUE", {
2673
                                    "value" : ["CST_LITERAL", "0"]}
2674
                                  ]]}
2675
                                ]]}
2676
                              ]]}
2677
                            ]]}
2678
                          ]}
2679
                        ]}
2680
                      ]]}
2681
                    ], "default" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
2682
                      "lhs" : ["SIMPLE_NAME", "nextValid"], "rhs" : [{
2683
                        "value" : ["EXPRESSION", {
2684
                          "args" : [["EXPRESSION", {
2685
                            "args" : [["EXPRESSION", {
2686
                              "args" : [["EXPRESSION", {
2687
                                "id" : "+", "args" : [["EXPRESSION", {
2688
                                  "args" : [["CALL", ["SIMPLE_NAME", "nextValid"]]]}
2689
                                ], ["EXPRESSION", {
2690
                                  "args" : [["CONSTANT_VALUE", {
2691
                                    "value" : ["CST_LITERAL", "1"]}
2692
                                  ]]}
2693
                                ]]}
2694
                              ]]}
2695
                            ]]}
2696
                          ]]}
2697
                        ]}
2698
                      ]}
2699
                    ]]}
2700
                  ]]}
2701
                ]}
2702
              ], ["IF_STATEMENT", {
2703
                "if_cases" : [{
2704
                  "if_cond" : ["EXPRESSION", {
2705
                    "id" : "/=", "args" : [["EXPRESSION", {
2706
                      "args" : [["EXPRESSION", {
2707
                        "args" : [["EXPRESSION", {
2708
                          "args" : [["CALL", ["SIMPLE_NAME", "etherWbe"]]]}
2709
                        ]]}
2710
                      ]]}
2711
                    ], ["EXPRESSION", {
2712
                      "args" : [["EXPRESSION", {
2713
                        "args" : [["EXPRESSION", {
2714
                          "args" : [["CONSTANT_VALUE", {
2715
                            "value" : ["CST_LITERAL", "X\"0\""]}
2716
                          ]]}
2717
                        ]]}
2718
                      ]]}
2719
                    ]]}
2720
                  ], "if_block" : [["CASE_STATEMENT_TREE", {
2721
                    "guard" : ["EXPRESSION", {
2722
                      "args" : [["EXPRESSION", {
2723
                        "args" : [["EXPRESSION", {
2724
                          "args" : [["EXPRESSION", {
2725
                            "args" : [["CALL", ["SIMPLE_NAME", "etherAddr"]]]}
2726
                          ]]}
2727
                        ]]}
2728
                      ]]}
2729
                    ], "branches" : [{
2730
                      "when_cond" : [["EXPRESSION", {
2731
                        "args" : [["EXPRESSION", {
2732
                          "args" : [["CALL", ["SIMPLE_NAME", "RX_PACKET_VALID_ADDR"]]]}
2733
                        ]]}
2734
                      ]], "when_stmt" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
2735
                        "lhs" : ["SIMPLE_NAME", "RxPacketValid"], "rhs" : [{
2736
                          "value" : ["EXPRESSION", {
2737
                            "id" : "and", "args" : [["EXPRESSION", {
2738
                              "args" : [["EXPRESSION", {
2739
                                "args" : [["EXPRESSION", {
2740
                                  "args" : [["EXPRESSION", {
2741
                                    "args" : [["CALL", ["SIMPLE_NAME", "RxPacketValid"]]]}
2742
                                  ]]}
2743
                                ]]}
2744
                              ]]}
2745
                            ], ["EXPRESSION", {
2746
                              "args" : [["EXPRESSION", {
2747
                                "args" : [["EXPRESSION", {
2748
                                  "args" : [["EXPRESSION", {
2749
                                    "id" : "not", "args" : [["CALL", ["SLICE_NAME", {
2750
                                      "id" : ["SIMPLE_NAME", "etherDin"], "range" : ["RANGE_WITH_DIRECTION", {
2751
                                        "direction" : "downto", "from" : ["EXPRESSION", {
2752
                                          "args" : [["EXPRESSION", {
2753
                                            "args" : [["CONSTANT_VALUE", {
2754
                                              "value" : ["CST_LITERAL", "1"]}
2755
                                            ]]}
2756
                                          ]]}
2757
                                        ], "_to" : ["EXPRESSION", {
2758
                                          "args" : [["EXPRESSION", {
2759
                                            "args" : [["CONSTANT_VALUE", {
2760
                                              "value" : ["CST_LITERAL", "0"]}
2761
                                            ]]}
2762
                                          ]]}
2763
                                        ]}
2764
                                      ]}
2765
                                    ]]]}
2766
                                  ]]}
2767
                                ]]}
2768
                              ]]}
2769
                            ]]}
2770
                          ]}
2771
                        ]}
2772
                      ]]}
2773
                    , {
2774
                      "when_cond" : [["EXPRESSION", {
2775
                        "args" : [["EXPRESSION", {
2776
                          "args" : [["CALL", ["SIMPLE_NAME", "SRCMAC_FILTER0_ADDR"]]]}
2777
                        ]]}
2778
                      ]], "when_stmt" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
2779
                        "lhs" : ["SLICE_NAME", {
2780
                          "id" : ["SIMPLE_NAME", "srcMacFilter_50"], "range" : ["RANGE_WITH_DIRECTION", {
2781
                            "direction" : "downto", "from" : ["EXPRESSION", {
2782
                              "args" : [["EXPRESSION", {
2783
                                "args" : [["CONSTANT_VALUE", {
2784
                                  "value" : ["CST_LITERAL", "31"]}
2785
                                ]]}
2786
                              ]]}
2787
                            ], "_to" : ["EXPRESSION", {
2788
                              "args" : [["EXPRESSION", {
2789
                                "args" : [["CONSTANT_VALUE", {
2790
                                  "value" : ["CST_LITERAL", "0"]}
2791
                                ]]}
2792
                              ]]}
2793
                            ]}
2794
                          ]}
2795
                        ], "rhs" : [{
2796
                          "value" : ["EXPRESSION", {
2797
                            "args" : [["EXPRESSION", {
2798
                              "args" : [["EXPRESSION", {
2799
                                "args" : [["EXPRESSION", {
2800
                                  "args" : [["CALL", ["SIMPLE_NAME", "etherDin"]]]}
2801
                                ]]}
2802
                              ]]}
2803
                            ]]}
2804
                          ]}
2805
                        ]}
2806
                      ]]}
2807
                    , {
2808
                      "when_cond" : [["EXPRESSION", {
2809
                        "args" : [["EXPRESSION", {
2810
                          "args" : [["CALL", ["SIMPLE_NAME", "SRCMAC_FILTER1_ADDR"]]]}
2811
                        ]]}
2812
                      ]], "when_stmt" : [["SIGNAL_ASSIGNMENT_STATEMENT", {
2813
                        "lhs" : ["SLICE_NAME", {
2814
                          "id" : ["SIMPLE_NAME", "srcMacFilter_50"], "range" : ["RANGE_WITH_DIRECTION", {
2815
                            "direction" : "downto", "from" : ["EXPRESSION", {
2816
                              "args" : [["EXPRESSION", {
2817
                                "args" : [["CONSTANT_VALUE", {
2818
                                  "value" : ["CST_LITERAL", "47"]}
2819
                                ]]}
2820
                              ]]}
2821
                            ], "_to" : ["EXPRESSION", {
2822
                              "args" : [["EXPRESSION", {