S5.6.1 Isolate Before You Reset

HardImplement32 minIcarus Verilog · serverReview the topic

Build a live-domain sequencer that can reset a timer while its bridge and other peripherals keep working.

Hardware context: Live bridge beside a resettable timer. Peripheral recovery without rebooting the chip

The manager can leave a read outstanding. A software reset request may last just one edge. Give that request a safe path to the timer and reopen the port only when it can take another read.

Signals in the Timeline

SignalWidthRole
sample12input of each check
Full specification

All inputs are sampled by the live clock. idle means all previously admitted transactions have retired. isolated_ack confirms the clamp is effective at the receiver. local_up confirms the restarted timer has initialized. The three acknowledgments are synchronized levels.

Current intervalAction at next rising edge
ServingOn request enter drain, even if idle is already high.
DrainBlock admission. On idle enter clamp.
ClampBlock admission and assert isolate. On isolated_ack enter reset.
ResetKeep the clamp and pulse reset_local for one full interval. Then enter startup.
StartupKeep admission blocked and isolate high until local_up. Then enter open.
OpenDrop isolate but block admission for one full interval. Then resume serving.

Examples

Example 1

Boot
Input
por=1, all other inputs low.
Output
block_new = 0, isolate = 0, reset_local = 0

The port opens on cold start.

Example 2

Request During Traffic
Input
request=1 while idle=0.
Output
block_new = 1, isolate = 0, reset_local = 0

The outstanding read can still see its response.

Example 3

Last Response Retired
Input
idle=1 on the following edge.
Output
block_new = 1, isolate = 1, reset_local = 0

The timer still runs as the clamp takes effect.

Constraints and Contract

  • Outputs describe the current interval. In serving all are low. reset_local is low outside reset. Only serving accepts request. Ignore acknowledgments outside their specified interval.
  • A sampled por overrides every transition and restores serving immediately after that edge. All outputs hold between edges.

Hints

Hint 1

Give the last admitted read a way out.

Hint 2

Distinguish a clamp request from confirmation.

Hint 3

Look at both edges of the reset pulse.

What the grader checks: Each phase sees every binary combination of request and acknowledgments, plus cold reset. The physical clamp is outside the exercise.

870 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

Boot

Input
por=1, all other inputs low.
Expected output
block_new = 0, isolate = 0, reset_local = 0

The port opens on cold start.

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

Icarus Verilog · server