Sort the parts of soc_tb into active models, passive checkers, bench control and test front ends. Then count what one recorded run made them do.
Hardware context: soc_tb, the bench around ap_soc v1.5: pad models, checkers, loader, end of test. Sorting the parts of a chip bench and reading one run's result block.
Work from the picture of the bench in lesson V3.1 and the bench manual. Part codes are in the table. Counts come from one recorded run of ap_soc v1.5, the lesson's lab. An assembly program sends a byte on the UART, reads the SPI flash, loops a GPIO pad and receives a byte. Meanwhile the bench reads IDCODE over JTAG.
This worksheet uses named constants. The first three entries show how to record your decisions.
Replace each unresolved value of 65535 with your result.
Signals in the Timeline
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Code | Kind of part |
|---|---|
| 1 | Active: a model on the pads that drives the chip |
| 2 | Passive: a checker or monitor that only reads |
| 3 | Bench control: clocks and reset, loader, end of test |
| 4 | A test front end: what the test is written in |
| Recorded run (Verilator 5.052, the pre-built bench) | Value |
|---|---|
| verdict, reason | pass, pass |
| records compared with the model | 511 |
| bytes on the UART TX pad | 1 |
| SPI frames | 1 |
| JTAG scans | 1 |
| lines "checker: ..." the passive checkers printed at the end | 11 |
| Entry | Your decision |
|---|---|
| UART_MODEL | The UART model on IO0 and IO1. |
| AHB_CHECKER | The P4 AHB checker on a manager port. |
| LOADER | The loading of the +rom and +ram images before the first instruction. |
| JTAG_HOST | The JTAG host on the four JTAG pads. |
| MAILBOX | The monitor of writes to TB_STATUS, TB_PUTC and TB_EVENT. |
| END_RULES | The order of authority that decides how a run ends. |
| TABLE | The sequence table on the bus-manager seat. |
| MODEL_COMPARE | The retire trace compared with ap_iss. |
| AHB_COUNT | How many AHB checkers does soc_tb place (four manager ports and five target ports)? |
| APB_COUNT | How many APB checkers? |
| COMPARED | How many records did the model compare in the recorded run? |
| CHECKER_LINES | How many "checker: ..." lines did the run print? |
| CHECKERS | A chip with N AHB managers and the five AHB targets of ap_soc. How many AHB checkers does a bench in the style of soc_tb place? |
Examples
Example 1
UART MODEL- Input
The UART model on IO0 and IO1.
- Output
matches = 1
It drives the chip's receive pad and listens to its transmit pad.
Example 2
AHB CHECKER- Input
The P4 AHB checker on a manager port.
- Output
matches = 1
It reads the port and drives nothing.
Example 3
LOADER- Input
The loading of the +rom and +ram images before the first instruction.
- Output
matches = 1
Bench control: the image arrives by the back door.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For CHECKERS, enter a constant expression using N. Only this entry changes with the parameter. The supported integer range is 1 through 8, inclusive.
Hints
Hint 1
A part that drives a pad is active. One that only reads is passive.
Hint 2
Clocks, loading and the end of a test belong to the bench itself.
Hint 3
The result block and the checkers' last lines say what each part did.
What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.
17 checks on Icarus Verilog · server. Run the examples first, then check the full regression. Full checks use the server judge. Downloads contain your source only; samples require the simulation service. A passing result establishes the tested cases, not a proof for all possible inputs.
See all 1 problem on this path