V3.8.1 What Stays and What Changes

EasyImplement12 minIcarus Verilog · serverReview the topic

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

SignalWidthRole
question8input of each check
Full specification
CodeThe part works
1The same in both modes
2Only with the processor (+core=cpu)
3Only with the bus-manager seat (+core=bfm)
ListRowsCycles, cpuCycles, bfmRetired, cpuUART bytesSPI frames
uart1037016327020
gpio135807442800
spi19105870875005
EntryYour decision
PAD_MODELSThe UART, GPIO, flash and JTAG models.
MODEL_COMPAREThe compare of the retire trace with ap_iss.
CORE_ROWSTable rows of kind core (w, r, poll).
CHECKERSThe AHB and APB checkers and the block monitors.
FIRMWAREA firmware image loaded into ROM or SRAM.
END_RULESThe order of authority at the end of a run.
HOST_CA C test on the host through the seat.
UART_CPUCycles of the uart list with the processor.
UART_BFMCycles of the uart list with the seat.
SAME_BYTESDid the two modes put the same bytes on the UART pad? (1 yes, 0 no)
GPIO_RATIOCycles of the gpio list with the processor, divided by those with the seat, rounded down.
RETIRED_BFMInstructions retired in the uart list with the seat.
EXTRA_CYCLESFor 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

Report a problem with this page

Your code SystemVerilogSaved locally
Ln 1, Col 1Tab indents · Ctrl/⌘ + Enter runs samples
Not run yet

PAD MODELS

Input
The UART, GPIO, flash and JTAG models.
Expected output
matches = 1

The pads do not care who drives the bus.

Run samples executes all 3 public checks. Check all tests runs 17 checks on the server.

Icarus Verilog · server