S10.2.2 Three-Level Access Time with a Shared Cache

MediumImplement22 minIcarus Verilog · serverReview the topic

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

SignalWidthRole
assigned_value8stimulus, 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.

EntryYour decision
READSTotal completed reads.
L1_HITSReads served by L1.
L2_HITSReads served by L2.
L3_HITSReads served by L3.
COLD_TIMETicks for a read reaching memory with zero queue delay.
L2_RATELocal L2 miss rate as a whole percent.
GLOBAL_RATEPercentage of all reads reaching memory.
BASE_TOTALTotal ticks for all reads with zero queue delay.
MEAN_TENTHSMean 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

Report a problem with this page

Your code SystemVerilogSaved locally
Ln 1, Col 1Tab indents · Ctrl/⌘ + Enter runs samples
Not run yet

READS

Input
Total completed reads.
Expected output
matches = 1

Each of twenty reads completes once.

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

Icarus Verilog · server