Clock: Difference between revisions
Created page with "{{stub}} A '''Clock''' is a circuit that changes its output state predictably over time." |
Started working on the clock article |
||
| Line 1: | Line 1: | ||
A '''Clock''' is a [[circuit]] that changes its output state periodically over time. | |||
A ''' | 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|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: | |||
:<math>duration = delay + 1</math> | |||
The full period will be | |||
:<math>2 \times (delay + 1)</math> | |||
{| width="100%" | |||
| | |||
[[File:Not-clock.png|thumb|left|alt=Not-clock|A single inverter]] | |||
| | |||
[[File:Delayer-clock.png|thumb|right|alt=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: | |||
#switching on/off | |||
#manually adjustable period | |||
#digitally adjustable period | |||
#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 === | |||
Revision as of 15:41, 27 September 2025
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:
The full period will be
|
|
|
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:
- switching on/off
- manually adjustable period
- digitally adjustable period
- specific signal shape
This article will show how to add features to a clock, starting from the simplest to the most advanced.

