V7.7.2 Latency and Throughput from a Run

EasyImplement12 minIcarus Verilog · serverReview the topic

Read latency and throughput off a recorded run of three managers, and size a latency budget from measurements.

Hardware context: ap_soc's fabric under traffic of three managers, and the chip's coverage plan. Reading latency and throughput from a run.

Recorded on ap_soc v1.5 (record-v7-labs.mjs): one run of 2,742 cycles. The seat finished 520 transfers, worst latency 3 cycles. The DMA finished 192, worst 1. The debug manager finished 3. Alone, a slow APB read of the seat took 10 cycles. Under the traffic of the latency problem the seat's worst was 15 cycles. Latency here is from the cycle an address phase is taken to the cycle its data phase ends. Enter whole numbers, rounded down.

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
EntryYour decision
SEAT_PER_100The seat's throughput: transfers per 100 cycles over the whole run.
DMA_PER_100The DMA's transfers per 100 cycles over the whole run.
DMA_BYTES_PER_100Bytes the DMA moved per 100 cycles.
WORST_MIXThe seat's worst latency under the latency problem's traffic, in cycles.
MARGINCycles of margin between that worst and a budget of 40.
SLOW_SHAREThe worst latency under traffic minus the slow read alone, in cycles.
PER_100A monitor counts TRANSFERS finished transfers in a window of 64 cycles. What is the throughput in transfers per 100 cycles, rounded down?

Examples

Example 1

SEAT PER 100
Input
The seat's throughput: transfers per 100 cycles over the whole run.
Output
matches = 1

520 × 100 / 2742.

Example 2

DMA PER 100
Input
The DMA's transfers per 100 cycles over the whole run.
Output
matches = 1

192 × 100 / 2742. Each byte is a read and a write.

Example 3

DMA BYTES PER 100
Input
Bytes the DMA moved per 100 cycles.
Output
matches = 1

96 bytes × 100 / 2742.

Constraints and Contract

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

Hints

Hint 1

Count over cycles, then scale to 100.

Hint 2

Read the worst from the record.

Hint 3

Margin is the budget minus the worst seen; waiting is the worst minus the time alone.

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

11 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 3 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

SEAT PER 100

Input
The seat's throughput: transfers per 100 cycles over the whole run.
Expected output
matches = 1

520 × 100 / 2742.

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

Icarus Verilog · server