Reconstruct the clocks at the pins of a timer from two source choices and a gate setting.
Hardware context: ap_soc boot clock tree. Bring-up of a clock controller
The exercise board starts on RC. After lock it can select the PLL. All rates and ratios here are exercise choices.
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
| Path | Connection |
|---|---|
| Reference | 16 MHz crystal oscillator to PLL, multiply by six |
| Root | Select RC at 12 MHz or the locked PLL |
| Timer | Root through divide by four, then an active-high clock gate |
| Fabric | Root directly to fabric |
| Entry | Your decision |
|---|---|
| REF | Reference frequency in MHz. |
| RC | Boot root frequency in MHz. |
| MULT | PLL multiplication factor. |
| FAST | Fabric MHz with PLL selected. |
| SLOW_TIMER | Timer MHz at boot with its gate open. |
| FAST_TIMER | Timer MHz on PLL with its gate open. |
| STOP | Steady timer edges per microsecond with its gate closed. |
| UPSTREAM | Divider output MHz while the timer gate is closed on PLL. |
| PERIOD | Whole nanoseconds per reference period, rounded down. |
| ROOT_CYCLES | A fabric option divides the root by FABRIC_DIV. How many root periods span two fabric periods? |
Examples
Example 1
REF- Input
Reference frequency in MHz.
- Output
matches = 1
The crystal oscillator supplies 16 MHz.
Example 2
RC- Input
Boot root frequency in MHz.
- Output
matches = 1
The boot selector admits RC.
Example 3
MULT- Input
PLL multiplication factor.
- Output
matches = 1
Six PLL output periods correspond to one reference period.
Constraints and Contract
- Keep the parameter and named constants. Use the numeric codes and units on this page.
- For ROOT_CYCLES, enter a constant expression using FABRIC_DIV. Only this entry changes with the parameter. The supported integer range is 1 through 8, inclusive.
Hints
Hint 1
Choose the active parent before applying any ratio.
Hint 2
Write the unit next to every intermediate value.
Hint 3
A downstream gate cannot stop an upstream tap.
What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.
10 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