Mark each pair of clock pins on a timing review and decide which paths need a common edge calendar.
Hardware context: ap_soc timer crossing. Clock planning for peripherals
This exercise revision of ap_crg has one master H, a rising-edge divide-by-two P, and an independent crystal R. A debug selector changes the source of the service clock.
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
Use 1 for identical active edges. Use 2 for different edges with a guaranteed relationship. Use 3 for independent clocks. Ideal buffers preserve edge identity. The dividers have fixed reset phase.
| Entry | Your decision |
|---|---|
| BUS | AHB and SRAM both take rising H. |
| BRIDGE | Bridge source uses H and its sink uses P. |
| CRYSTAL | Alarm launches on R and arrives at an H register. |
| SERVICE | Two service registers both use R. |
| MIRROR | Second oscillator trimmed to the same nominal rate as H feeds debug. Compare with H. |
| PHASE | One register launches on falling H and another captures on rising H. |
| PINS | GPIO and UART both use rising P. |
| SLOW | A divide-by-four from H launches into P. |
| SELECTED | Compare service with H when SEL chooses H (0), P (1) or R (2). |
Examples
Example 1
BUS- Input
AHB and SRAM both take rising H.
- Output
matches = 1
Both use the same rising edges. Record BUS = 1.
Example 2
BRIDGE- Input
Bridge source uses H and its sink uses P.
- Output
matches = 1
P has a known parent and phase. Record BRIDGE = 2.
Example 3
CRYSTAL- Input
Alarm launches on R and arrives at an H register.
- Output
matches = 1
R has its own oscillator. Record CRYSTAL = 3.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For SELECTED, enter a constant expression using SEL. Only this entry changes with the parameter. The supported integer range is 0 through 2, inclusive.
Hints
Hint 1
Start at the clock pin, including its active edge.
Hint 2
Trace both pins to their roots and inspect every divider.
Hint 3
Repeat the comparison after switching service mode.
What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.
11 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 3 problems on this path