S5.12.1 Time a Reset Release

EasyImplement12 minIcarus Verilog · serverReview the topic

Work out by hand when two clock domains leave reset, how close a shared reset comes to a clock edge, and which leaf of a reset tree is late.

Hardware context: Two reset synchronizers of ap_soc, one on the core clock and one on the RTC clock, and a reset tree of buffers. Reviewing the reset plan of a chip with several clocks

This is the chip of lesson S5.12 with other numbers. One reset pin clears two reset synchronizers of two flip-flops each: one on the core clock and one on the RTC clock. The local reset of a domain rises on the second edge of its own clock after the pin is released. The core reset is spread through a tree of buffers.

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
ItemValue
Core clockPeriod 12 ns. Rising edges at 6, 18, 30, 42 ns and so on.
RTC clockPeriod 20 ns. Rising edges at 10, 30, 50, 70 ns and so on.
First release of the pin21 ns
Second release of the pin95 ns. The pin was pressed again in between.
Reset tree of the core domainEach buffer adds 1 ns. The far leaf is 7 buffers from the synchronizer. The long leaf is 14 buffers from it.

A flip-flop at a leaf starts on the first core edge that comes after the release has reached it. Enter every answer as a plain number of nanoseconds.

EntryYour decision
CORE_FIRSTFirst release: the first core edge after the release.
CORE_UPFirst release: the time at which the core reset rises.
RTC_UPFirst release: the time at which the RTC reset rises.
SHARED_GAPFirst release: suppose the core reset fed an RTC flip-flop. How long before the next RTC edge would it rise?
OWN_GAPFirst release: how long before the next RTC edge does the RTC reset rise?
CORE_UP_2Second release: the time at which the core reset rises.
RTC_UP_2Second release: the time at which the RTC reset rises.
SHARED_GAP_2Second release: how long before the next RTC edge does the core reset rise?
FAR_ARRIVESecond release: the time at which the release reaches the far leaf.
FAR_LEFTSecond release: the time left at the far leaf before the next core edge.
LONG_ARRIVESecond release: the time at which the release reaches the long leaf.
LONG_STARTSecond release: the core edge on which the flip-flop at the long leaf starts.
CORE_UP_NSuppose the core synchronizer had N flip-flops in a row, in place of 2. At what time, in ns, would the core reset rise after the first release?

Examples

Example 1

CORE FIRST
Input
First release: the first core edge after the release.
Output
matches = 1

The core clock rises at 18 and at 30 ns. The release at 21 ns is between them, so the first edge after it is at 30.

Example 2

CORE UP
Input
First release: the time at which the core reset rises.
Output
matches = 1

The first flip-flop loads its 1 at 30 ns. The second takes it one period later: 30 + 12.

Example 3

RTC UP
Input
First release: the time at which the RTC reset rises.
Output
matches = 1

The RTC clock rises at 30 and at 50 ns after the release. The second of the two edges is at 50.

Constraints and Contract

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

Hints

Hint 1

A local reset rises on the second edge of its own clock after the release. List the edges of that clock and count two.

Hint 2

For a shared reset, find the next edge of the other clock after the reset rises.

Hint 3

Add 1 ns for each buffer. Then find the first core edge after the arrival.

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

13 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 1 problem 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

CORE FIRST

Input
First release: the first core edge after the release.
Expected output
matches = 1

The core clock rises at 18 and at 30 ns. The release at 21 ns is between them, so the first edge after it is at 30.

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

Icarus Verilog · server