S10.11.1 Trace Bandwidth Budget

MediumImplement22 minIcarus Verilog · serverReview the topic

Size a trace sink for two clusters, then find the first millisecond when a burst loses a byte.

Hardware context: Multi-source trace and group halt controller. Multi-core bring-up and failure capture

These exercise rates include every header and alignment byte. Rates stay constant within each interval. Use decimal kB and MB.

This worksheet uses named constants. The first three entries show how to record your decisions.

Signals in the Timeline

SignalWidthRole
question8input of each check
Full specification

Four application cores each produce 6 MB/s. Four control cores each produce 2 MB/s. One shared port carries 20 MB/s.

An initially empty buffer accepts excess bytes while the port drains concurrently. After capture stops, the port continues at full rate.

This exercise retains capture RAM through cluster sleep. Export needs separate authorization. A denied export closes the port while all enabled sources continue recording.

EntryYour decision
APPApplication cluster rate in MB/s.
CTRLControl cluster rate in MB/s.
PORTBytes exported in one millisecond, in kB.
JOINEDOffered rate at the final funnel in MB/s.
GROWTHBuffer growth in kB per millisecond during capture.
TAILBacklog in kB after 5 ms with ample storage.
DRAINWhole milliseconds to remove that backlog with capture stopped.
FILTERMinimum whole number of application streams to suppress for sustained lossless export.
SLEEPOffered MB/s if the control cluster sleeps and all application streams run.
DENIEDBuffer growth in kB during one millisecond with both clusters active and export denied.
FIRST_LOSSWith export authorized and both clusters active, which numbered millisecond first ends with bytes discarded? Count from one.

Examples

Example 1

APP
Input
Application cluster rate in MB/s.
Output
matches = 1

Four streams of six give 24 MB/s.

Example 2

CTRL
Input
Control cluster rate in MB/s.
Output
matches = 1

Four streams of two give 8 MB/s.

Example 3

PORT
Input
Bytes exported in one millisecond, in kB.
Output
matches = 1

One MB/s for one millisecond moves one decimal kB.

Constraints and Contract

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

Hints

Hint 1

Multiply each per-core rate before merging clusters.

Hint 2

Subtract exported bytes over the same interval.

Hint 3

Compare a full buffer with a buffer that already discarded a byte.

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

12 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

APP

Input
Application cluster rate in MB/s.
Expected output
matches = 1

Four streams of six give 24 MB/s.

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

Icarus Verilog · server