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
| Signal | Width | Role |
|---|---|---|
question | 8 | input of each check |
Full specification
| Item | Value |
|---|---|
| Core clock | Period 12 ns. Rising edges at 6, 18, 30, 42 ns and so on. |
| RTC clock | Period 20 ns. Rising edges at 10, 30, 50, 70 ns and so on. |
| First release of the pin | 21 ns |
| Second release of the pin | 95 ns. The pin was pressed again in between. |
| Reset tree of the core domain | Each 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.
| Entry | Your decision |
|---|---|
| CORE_FIRST | First release: the first core edge after the release. |
| CORE_UP | First release: the time at which the core reset rises. |
| RTC_UP | First release: the time at which the RTC reset rises. |
| SHARED_GAP | First release: suppose the core reset fed an RTC flip-flop. How long before the next RTC edge would it rise? |
| OWN_GAP | First release: how long before the next RTC edge does the RTC reset rise? |
| CORE_UP_2 | Second release: the time at which the core reset rises. |
| RTC_UP_2 | Second release: the time at which the RTC reset rises. |
| SHARED_GAP_2 | Second release: how long before the next RTC edge does the core reset rise? |
| FAR_ARRIVE | Second release: the time at which the release reaches the far leaf. |
| FAR_LEFT | Second release: the time left at the far leaf before the next core edge. |
| LONG_ARRIVE | Second release: the time at which the release reaches the long leaf. |
| LONG_START | Second release: the core edge on which the flip-flop at the long leaf starts. |
| CORE_UP_N | Suppose 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