Pair the edges of two clocks by hand, the way a timing tool does, and say what one group line changes in the report.
Hardware context: Timing lab of ap_soc: eight SKY130 flip-flops on a core clock, its divided clock and an unrelated RTC clock. Reviewing the clock constraints of a chip before timing sign-off
This is the timing lab of lesson S5.11 with other periods. The core clock has a period of 12 ns. The RTC clock has a period of 9 ns. The peripheral clock is the core clock divided by two. All three have a rising edge at 0 ns. The constraints declare the three clocks and say nothing more.
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
| Clock | Rising edges in ns |
|---|---|
| RTC clock | 0, 9, 18, 27, 36, 45 ... |
| Core clock | 0, 12, 24, 36, 48 ... |
A signal that is sent on an edge is taken on a later edge of the receiving clock, never on an edge at the same moment. The alarm path runs from a flip-flop on the RTC clock to a flip-flop on the core clock. Enter every answer as a plain number: times and gaps in nanoseconds.
| Entry | Your decision |
|---|---|
| GAP_AT_9 | The alarm is sent on the RTC edge at 9 ns. Gap to the next core edge. |
| GAP_AT_18 | The same for the RTC edge at 18 ns. |
| GAP_AT_27 | The same for the RTC edge at 27 ns. |
| GAP_AT_36 | The same for the RTC edge at 36 ns. |
| REPEAT | After how many ns does the pattern of both clocks start again? |
| SMALLEST | The gap that the tool uses as the deadline of the alarm path. |
| SEND_EDGE | Time of the RTC edge of that closest pair. |
| TAKE_EDGE | Time of the core edge of that closest pair. |
| CHILD_PERIOD | Period of the peripheral clock. |
| CHILD_GAP | A core flip-flop sends to a flip-flop on the peripheral clock, on the core edge at 12 ns. Gap to the next peripheral edge. |
| PATHS_BEFORE | The lesson netlist has six checked paths with these constraints. How many are checked before any group line? |
| PATHS_AFTER | One line puts the RTC clock in one group and the core and peripheral clocks in another. How many paths are checked now? |
| CHILD_PERIOD_N | Suppose the divider divided the core clock by N, in place of 2. What would the period of the peripheral clock be, in ns? |
Examples
Example 1
GAP AT 9- Input
The alarm is sent on the RTC edge at 9 ns. Gap to the next core edge.
- Output
matches = 1
The next core edge after 9 is at 12. The gap is 3.
Example 2
GAP AT 18- Input
The same for the RTC edge at 18 ns.
- Output
matches = 1
The next core edge after 18 is at 24. The gap is 6.
Example 3
GAP AT 27- Input
The same for the RTC edge at 27 ns.
- Output
matches = 1
The next core edge after 27 is at 36. The gap is 9.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For CHILD_PERIOD_N, enter a constant expression using N. Only this entry changes with the parameter. The supported integer range is 1 through 8, inclusive.
Hints
Hint 1
Write the rising edges of both clocks on one time line, up to the moment where they rise together again.
Hint 2
For each sending edge, take the next receiving edge that is strictly later.
Hint 3
A group line removes only the paths that run between the two groups.
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