Jump to content

Clock

From Logic World Wiki
Revision as of 15:41, 27 September 2025 by DjSapsan (talk | contribs) (Started working on the clock article)

A Clock is a circuit that changes its output state periodically over time.

The simplest clock is made of a single Inverter connected to itself, either directly or with a delay. A single inverter clock alternates ON and OFF every tick. With delayer components it will have a longer period.

Terminology

Period is the duration of the entire cycle of the clock, measured in ticks. It includes the duration of the ON output and the OFF output.
Duration of a signal is the number of ticks the signal remains unchanged.


With delay components the duration of a signal is calculated as follows:

duration=delay+1

The full period will be

2×(delay+1)
Not-clock
A single inverter
Not-Clock
An inverter with a delayer

In advanced circuits or during construction you may require clocks with different periods, signal shapes, and functionality. You should never underestimate the importance of good clocks.

Construction

This article will be mostly agnostic towards the period of the clock. This means you may add different features that will work irrespective of the period.

To make a good clock you need to know what functionality you require. Here is a list of possible features you may want:

  1. switching on/off
  2. manually adjustable period
  3. digitally adjustable period
  4. specific signal shape

This article will show how to add features to a clock, starting from the simplest to the most advanced.

Switching on/off

Adjustable period

Signal shape