CLOCK - Configurable clock

The CLOCK block contains a user-settable clock with parametable width and period.

Fields

Name

Type

Description

ENABLE

bit_mux

Halt and reset on falling edge, enable on rising

PERIOD

param time

Period of clock output

WIDTH

param time

Width of clock output

OUT

bit_out

Clock output

Setting clock period parameters

Each time a clock width or period parameter is set, the clock restarts from that point with the new width and period value.

(Source code, png, hires.png, pdf)

../_images/clock_doc-1.png

The clock is disabled when both width and period parameters are set to 0. If period is smaller or egale to width then it’ll be adjusted to (width + 1) and at least to 2. If width=0, then the clock duty-cycle will be 50%:

(Source code, png, hires.png, pdf)

../_images/clock_doc-2.png

Clock settings while disabled

To start the clock synchronously you can set them while the Block is disabled. It will start on rising edge of ENABLE and be zeroed on the falling edge.

(Source code, png, hires.png, pdf)

../_images/clock_doc-3.png