Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

CLOCK - Configurable clock

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

Fields

NameTypeDescription
ENABLEbit_muxHalt and reset on falling edge, enable on rising
PERIODparam timePeriod of clock output
WIDTHparam timeWidth of clock output
OUTbit_outClock 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.

Setting a parameter starts clock

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%:

Run clock with WIDTH and PERIOD parameters

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.

Enable low does not run clocks