Commit 4b93120
Add br_amba_axil2apb test (#1213)
Add simulation coverage for `br_amba_axil2apb` and refactor shared AMBA
simulation helpers so AXI-Lite/APB drivers and monitors can be reused
across benches.
- Add `br_amba_axil2apb_tb` with directed and randomized scenarios for:
- reset/idle behavior
- no-delay reads and writes
- zero-strobe writes
- APB `PREADY` backpressure on reads and writes
- independent AW/W channel skew
- read/write arbitration
- AXI B/R response backpressure
- APB `PSLVERR` propagation
- mixed directed traffic
- sustained stress traffic
- mid-transaction reset recovery
- Add `br_amba_axil2apb_scoreboard` to predict protocol-agnostic
transactions from AXI-Lite observations and verify:
- AXI-Lite request payloads
- APB transfer payloads and timing
- AXI-Lite response payloads and timing
- read/write arbitration priority
- Add/refactor reusable simulation components:
- generic AXI-Lite requester driver
- generic AXI-Lite monitor with channel observations and protocol checks
- generic APB monitor with request/completion timestamps
- APB completer response queue support
- shared AMBA sim helpers and protocol transaction types
- Rename the existing AXI-Lite driver to `br_amba_axil_completer_driver`
to clarify side ownership.
- Update AXI-Lite default target tests to use the common helper
structure.
Depends on: #1183 and
#1197.
---------
Co-authored-by: Wiktoria Kuna <wkuna@antmicro.com>1 parent 5bff9d7 commit 4b93120
21 files changed
Lines changed: 3694 additions & 179 deletions
File tree
- amba/sim
- drivers
- monitors
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
7 | 89 | | |
8 | 90 | | |
9 | 91 | | |
| |||
17 | 99 | | |
18 | 100 | | |
19 | 101 | | |
| 102 | + | |
20 | 103 | | |
21 | 104 | | |
22 | 105 | | |
23 | 106 | | |
24 | 107 | | |
25 | 108 | | |
| 109 | + | |
26 | 110 | | |
27 | 111 | | |
28 | 112 | | |
| |||
176 | 260 | | |
177 | 261 | | |
178 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
179 | 266 | | |
180 | 267 | | |
181 | 268 | | |
| |||
192 | 279 | | |
193 | 280 | | |
194 | 281 | | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
195 | 285 | | |
196 | 286 | | |
197 | 287 | | |
| |||
356 | 446 | | |
357 | 447 | | |
358 | 448 | | |
359 | | - | |
| 449 | + | |
| 450 | + | |
360 | 451 | | |
361 | 452 | | |
362 | 453 | | |
| |||
392 | 483 | | |
393 | 484 | | |
394 | 485 | | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| |||
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
150 | | - | |
| 151 | + | |
| 152 | + | |
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
| |||
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
186 | | - | |
| 188 | + | |
187 | 189 | | |
188 | 190 | | |
189 | 191 | | |
| |||
281 | 283 | | |
282 | 284 | | |
283 | 285 | | |
| 286 | + | |
284 | 287 | | |
285 | 288 | | |
286 | 289 | | |
| |||
0 commit comments