Recover mean latency from the traffic that actually reaches each cache level.
Hardware context: Two-core read-only cache model. Frame deadlines and placement
A cluster retires 20 serial line reads. All probe L1, eight reach L2, four reach shared L3, and one reaches memory. Probes add 1, 2, 5 and 20 ticks respectively. These are exercise counts and incremental costs.
This worksheet uses named constants. The first three entries show how to record your decisions.
Signals in the Timeline
| Signal | Width | Role |
|---|---|---|
assigned_value | 8 | stimulus, the same for every design |
Full specification
Every read stops at its first hit or at memory. There is no overlap. Report tenths of a tick for the mean. An extra queue delay applies to each L3 arrival, including a miss.
| Entry | Your decision |
|---|---|
| READS | Total completed reads. |
| L1_HITS | Reads served by L1. |
| L2_HITS | Reads served by L2. |
| L3_HITS | Reads served by L3. |
| COLD_TIME | Ticks for a read reaching memory with zero queue delay. |
| L2_RATE | Local L2 miss rate as a whole percent. |
| GLOBAL_RATE | Percentage of all reads reaching memory. |
| BASE_TOTAL | Total ticks for all reads with zero queue delay. |
| MEAN_TENTHS | Mean ticks per read in tenths, with QUEUE extra ticks per L3 arrival. |
Examples
Example 1
READS- Input
Total completed reads.
- Output
matches = 1
Each of twenty reads completes once.
Example 2
L1 HITS- Input
Reads served by L1.
- Output
matches = 1
Eight continue, leaving twelve served locally.
Example 3
L2 HITS- Input
Reads served by L2.
- Output
matches = 1
Of eight L2 probes, four continue.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For MEAN_TENTHS, enter a constant expression using QUEUE. Only this entry changes with the parameter. The supported integer range is 0 through 10, inclusive.
Hints
Hint 1
Use local arrivals as the denominator of a local rate.
Hint 2
A miss pays the current lookup before moving on.
Hint 3
Add all waiting and service time before dividing by the read count.
What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed. The waveform shows the assigned QUEUE on its own row.
10 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