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
| Signal | Width | Role |
|---|---|---|
question | 8 | input 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.
| Entry | Your decision |
|---|---|
| APP | Application cluster rate in MB/s. |
| CTRL | Control cluster rate in MB/s. |
| PORT | Bytes exported in one millisecond, in kB. |
| JOINED | Offered rate at the final funnel in MB/s. |
| GROWTH | Buffer growth in kB per millisecond during capture. |
| TAIL | Backlog in kB after 5 ms with ample storage. |
| DRAIN | Whole milliseconds to remove that backlog with capture stopped. |
| FILTER | Minimum whole number of application streams to suppress for sustained lossless export. |
| SLEEP | Offered MB/s if the control cluster sleeps and all application streams run. |
| DENIED | Buffer growth in kB during one millisecond with both clusters active and export denied. |
| FIRST_LOSS | With 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