S6.1.1 Order the Path

EasyImplement12 minIcarus Verilog · serverReview the topic

Put an interrupted timer service back in order from the evidence at each boundary.

Hardware context: External interrupt service path. Interrupt handler bring-up

A recorder lost its timestamps. The nine tickets below belong to one timer event. Number the stages from 1 through 9. Use this exercise schedule.

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

The device starts masked. It records the match before firmware unmasks it. The gateway then latches the request.

The core enters before the handler reads its claim word. The handler records the time, clears the device, completes the claim and returns.

EntryYour decision
MATCHTimer remembers a compare match.
UNMASKFirmware opens the timer mask.
QUEUEExternal controller records the request.
COMPLETEHandler releases the claim.
RESUMEInterrupted work continues.
CLAIMHandler reads the source number.
CLEARPeripheral accepts the clear.
ENTERCore transfers control to its handler.
RECORDHandler saves the service timestamp.
RETURN_EDGEOn a separate clock trace the return edge is 14 with zero waits. Which edge sees return with WAIT extra clear-access cycles?

Examples

Example 1

MATCH
Input
Timer remembers a compare match.
Output
matches = 1

The match starts this service.

Example 2

UNMASK
Input
Firmware opens the timer mask.
Output
matches = 1

The match was already recorded when firmware opened the mask.

Example 3

QUEUE
Input
External controller records the request.
Output
matches = 1

The controller now sees the device request.

Constraints and Contract

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

Hints

Hint 1

Find the first block that remembers the event.

Hint 2

Separate a device write from a controller transaction.

Hint 3

Place the extra cycles before completion.

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

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

MATCH

Input
Timer remembers a compare match.
Expected output
matches = 1

The match starts this service.

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

Icarus Verilog · server