Sort the parts of soc_tb by the mode they work in. Then read what one row list cost with the processor and with the bus-manager seat.
Hardware context: ap_core_slot of ap_soc v1.5 with the processor or a bus manager in the seat. Sorting the bench by mode.
One switch, +core=cpu or +core=bfm, decides what sits in the core's seat. Codes are in the first table. The numbers come from three row lists of the E7 gate. Each ran in both modes on the site's pre-built bench, recorded by the lesson's lab.
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 | The part works |
|---|---|
| 1 | The same in both modes |
| 2 | Only with the processor (+core=cpu) |
| 3 | Only with the bus-manager seat (+core=bfm) |
| List | Rows | Cycles, cpu | Cycles, bfm | Retired, cpu | UART bytes | SPI frames |
|---|---|---|---|---|---|---|
| uart | 10 | 370 | 163 | 270 | 2 | 0 |
| gpio | 13 | 580 | 74 | 428 | 0 | 0 |
| spi | 19 | 1058 | 708 | 750 | 0 | 5 |
| Entry | Your decision |
|---|---|
| PAD_MODELS | The UART, GPIO, flash and JTAG models. |
| MODEL_COMPARE | The compare of the retire trace with ap_iss. |
| CORE_ROWS | Table rows of kind core (w, r, poll). |
| CHECKERS | The AHB and APB checkers and the block monitors. |
| FIRMWARE | A firmware image loaded into ROM or SRAM. |
| END_RULES | The order of authority at the end of a run. |
| HOST_C | A C test on the host through the seat. |
| UART_CPU | Cycles of the uart list with the processor. |
| UART_BFM | Cycles of the uart list with the seat. |
| SAME_BYTES | Did the two modes put the same bytes on the UART pad? (1 yes, 0 no) |
| GPIO_RATIO | Cycles of the gpio list with the processor, divided by those with the seat, rounded down. |
| RETIRED_BFM | Instructions retired in the uart list with the seat. |
| EXTRA_CYCLES | For list K (0 uart, 1 gpio, 2 spi), the cycles with the processor minus the cycles with the seat. |
Examples
Example 1
PAD MODELS- Input
The UART, GPIO, flash and JTAG models.
- Output
matches = 1
The pads do not care who drives the bus.
Example 2
MODEL COMPARE- Input
The compare of the retire trace with ap_iss.
- Output
matches = 1
With the seat nothing retires.
Example 3
CORE ROWS- Input
Table rows of kind core (w, r, poll).
- Output
matches = 1
They run on the seat.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For EXTRA_CYCLES, enter a constant expression using K. Only this entry changes with the parameter. The supported integer range is 0 through 2, inclusive.
Hints
Hint 1
The seat or the processor makes the transfers; everything else stays.
Hint 2
Same bytes, different cycles.
Hint 3
The difference is the cost of the processor's interpreter and hand-shakes.
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 2 problems on this path