S10.17.1 Budget a Trace Network by Hand

EasyImplement12 minIcarus Verilog · serverReview the topic

Add up the trace of eight cores by hand, find how long a buffer lasts in a burst, and count the records that a small funnel loses behind a slow sink.

Hardware context: Trace network of ap_phone: eight sources, a tree of funnels, a trace port and a trace buffer. Trace capacity planning for multi-core bring-up

This is the trace network of lesson S10.17 with other numbers. Four busy cores feed funnel A and four quiet cores feed funnel B. A last funnel joins A and B. From there the trace goes to the trace port, and what the port cannot carry goes to a buffer.

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
PartNumber
Each busy core5 MB/s
Each quiet core2 MB/s
Trace port16 MB/s
Buffer96 kB, empty at the start of the burst

Use decimal units: 1 MB/s for 1 millisecond is 1 kB.

The second part is a small funnel with four sources. Each source has one place for a waiting record, and the funnel has one output place. Eight events arrive, one on each tick: sources 0, 1, 2, 3 and then 0, 1, 2, 3 again. The stamp of an event is its number, 0 to 7. The sink takes nothing until five records are held. An event that finds the place of its source full is lost. After that the sink takes one record on each tick, and the funnel serves its sources in turn.

Enter a rate in MB/s, a size in kB, a time in milliseconds, or a count.

EntryYour decision
RATE_AThe rate that leaves funnel A, in MB/s.
RATE_BThe rate that leaves funnel B, in MB/s.
JOINEDThe rate after the last funnel, in MB/s.
EXCESSThe rate that the port cannot carry, in MB/s.
BACKLOG_5The fill of the buffer after 5 milliseconds of the burst, in kB.
FULLAfter how many milliseconds is the buffer full?
HELDHow many records can the small funnel hold while the sink takes nothing?
LOSTHow many of the eight events are lost?
FIRST_LOSTThe number of the source that loses the first event.
LAST_STAMPThe stamp of the last record that reaches the sink.
FULL_MSThe trace port carries PORT MB/s. Everything else is as in the text. For how many whole milliseconds of the burst does the buffer take everything? Enter 0 if the buffer is never needed.

Examples

Example 1

RATE A
Input
The rate that leaves funnel A, in MB/s.
Output
matches = 1

Four busy cores at 5 MB/s each.

Example 2

RATE B
Input
The rate that leaves funnel B, in MB/s.
Output
matches = 1

Four quiet cores at 2 MB/s each.

Example 3

JOINED
Input
The rate after the last funnel, in MB/s.
Output
matches = 1

Rates add where streams meet: 20 and 8.

Constraints and Contract

  • Keep the parameter and named constants. Use the numeric codes and units on this page.
  • For FULL_MS, enter a constant expression using PORT. Only this entry changes with the parameter. The supported integer range is 10 through 28, inclusive.
  • Replace each unfinished 255 with your decision.

Hints

Hint 1

Work from the cores toward the port. A funnel passes on the sum of its inputs.

Hint 2

Only the rate above the port goes into the buffer. Multiply it by the time.

Hint 3

A record that waits is one record, however many ticks it waits.

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 1 problem 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

RATE A

Input
The rate that leaves funnel A, in MB/s.
Expected output
matches = 1

Four busy cores at 5 MB/s each.

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

Icarus Verilog · server