S5.1.1 Read the Clock Tree

EasyImplement12 minIcarus Verilog · serverReview the topic

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

SignalWidthRole
question8input of each check
Full specification
PathConnection
Reference16 MHz crystal oscillator to PLL, multiply by six
RootSelect RC at 12 MHz or the locked PLL
TimerRoot through divide by four, then an active-high clock gate
FabricRoot directly to fabric
EntryYour decision
REFReference frequency in MHz.
RCBoot root frequency in MHz.
MULTPLL multiplication factor.
FASTFabric MHz with PLL selected.
SLOW_TIMERTimer MHz at boot with its gate open.
FAST_TIMERTimer MHz on PLL with its gate open.
STOPSteady timer edges per microsecond with its gate closed.
UPSTREAMDivider output MHz while the timer gate is closed on PLL.
PERIODWhole nanoseconds per reference period, rounded down.
ROOT_CYCLESA 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

Report a problem with this page

Your code SystemVerilogSaved locally
Ln 1, Col 1Tab indents · Ctrl/⌘ + Enter runs samples
Not run yet

REF

Input
Reference frequency in MHz.
Expected output
matches = 1

The crystal oscillator supplies 16 MHz.

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

Icarus Verilog · server