V6.1.2 With or Without the Core

EasyImplement12 minIcarus Verilog · serverReview the topic

Sort planned chip checks by whether they need a running core. Then work out, from recorded runs, what the seat saves on a long register list.

Hardware context: ap_soc v1.5 with a bus manager in the core's seat, watching the interrupt pins. Sorting checks by the seat they need.

The register sweep of ap_soc (343 rows) ran in both seats on the site's pre-built bench. It took 10,254 cycles through the interpreter on the processor and 1,193 on the bus-manager seat (record-v6-labs.mjs). Enter a code for each check, and whole numbers rounded down for the rest.

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
CodeWhich seat the check needs
1The bus-manager seat: no instruction is needed
2Firmware on the processor: it needs instruction flow
3Both: the seat for the hardware path, firmware for the software part
EntryYour decision
RESET_VALUESEvery register reads its reset value after power-on.
HANDLER_RETURNA UART interrupt handler returns to the instruction it interrupted.
BACK_TO_BACKAn SRAM read whose address phase sits on a write's data phase returns the right word.
DATA_COPYThe start-up code copies .data before main runs.
DMA_HOLEA DMA job whose source is in no region ends in FAULT.
TIMER_IRQThe timer's request reaches the core's pin, and the handler clears it.
WFI_WAKEThe core sleeps in wfi and wakes on a GPIO edge.
HOLESEvery hole of the map answers ERROR.
SAVEDCycles the seat saved on the sweep.
RATIOHow many times the interpreter's cycles are the seat's, rounded down.
PER_ROW_FWAverage cycles a sweep row cost through the interpreter, rounded down.
SAVED_ATCycles the seat saves on a register list of ROWS rows, at the sweep's averages (10254 and 1193 cycles for 343 rows). Use ROWS × (10254 - 1193) / 343, rounded down.

Examples

Example 1

RESET VALUES
Input
Every register reads its reset value after power-on.
Output
matches = 1

Only reads: no instruction is needed.

Example 2

HANDLER RETURN
Input
A UART interrupt handler returns to the instruction it interrupted.
Output
matches = 1

Returning from a trap is instruction flow; the seat has no handler.

Example 3

BACK TO BACK
Input
An SRAM read whose address phase sits on a write's data phase returns the right word.
Output
matches = 1

The core never makes that timing; only the seat can.

Constraints and Contract

  • Keep the parameter and named constants. Use the numeric codes and units on this page.
  • For SAVED_AT, enter a constant expression using ROWS. Only this entry changes with the parameter. The supported integer range is 50 through 1000, inclusive.

Hints

Hint 1

If no instruction must run, the seat can do it.

Hint 2

The hardware path on the seat, the software part in firmware.

Hint 3

The difference and the ratio of the two runs.

What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.

16 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

RESET VALUES

Input
Every register reads its reset value after power-on.
Expected output
matches = 1

Only reads: no instruction is needed.

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

Icarus Verilog · server