Synchronous sequential logic
Memorisation and sequential logic
The combinatorial logical and arithmetic operations presented in the previous chapter all share the following property:
- For the same value of the inputs, we always obtain the same output value. In other words, the combinatorial operators have no memory.
We need to keep in mind that these operators have a propagation time that must be respected to be sure that the output result is valid.
How can we use these operators in order to chain several consecutive calculations reliably?
Take as an example the combinatorial function in the figure below:
The block has three inputs , and , and a single output . If we change one of the inputs, we have to wait for the result to be valid.
We want to chain several calculations and obtain the following sequence:
-
-
-
-
…
It must be ensured that the inputs are not modified as long as the output is invalid. However, if the inputs stem from the outside world or from a another computational block, we do not have the guarantee that they remain stable.
Thus, we need to add specific circuit elements in order to capture the values of the inputs and prevent them from changing during the computation, as shown in the following figure:
To simplify the task, capturing and storing the inputs will be done at the same time, synchronously.
Once we are sure that the result is valid (after ), we can capture the output result and at the same time present new values on the inputs. The output, thus captured, can in turn be used as input for another computational block.
All of this is summarised in the following figure:
We have the following sequence:
-
at the time instant the inputs are captured (we also say sampled)
-
at the output of the combinatorial block is valid
-
at the output is sampled and new input values captured
-
And so on …
This logic is called sequential synchronous logic. We have the guarantee that the computations are correct as long as the interval between the sampling instants is greater than the propagation time of the combinatorial block.
In the following, we will see which component is used to sample and memorise the signals and how we synchronise the sampling times.