Timing & Control
Timing & Control
The
clock pulses are applied to all flip-flops and registers in the system, including the flip-flops and
registers in the control unit. The clock pulses do not change the state of a register unless the
register is enabled by a control signal. The control signals are generated in the control unit and
provide control inputs for the multiplexers in the common bus, control inputs in processor
registers, and microoperations for the accumulator.
2. microprogrammed control.
In the hardwired organization, the control logic is implemented with gates, flip-flops,
decoders, and other digital circuits. It has the advantage that it can be optimized to produce a
fast mode of operation. In the microprogrammed organization, the control information is stored
in a control memory. The control memory is programmed to initiate the required sequence of
microoperations. A hardwired control, as the name implies, requires changes in the wiring
among the various components if the design has to be modified or changed.
The instruction register is shown again in Fig. 5.6, where it is divided into three parts:
1. the 1 bit,
As an example, consider the case where SC is incremented to provide timing signals T 0, T1, T2,
T3, and T4 in sequence. At time T 4, SC is cleared to 0 if decoder output D 3 is active. This is
expressed symbolically by the statement
D3T4: SC <__ 0
The timing diagram of Fig. 5-7 shows the time relationship of the control signals.
The sequence counter SC responds to the positive transition of the clock. Initially, the CLR
input of SC is active. The first positive transition of the clock clears SC to 0, which in tum
activates the timing signal T0 out of the decoder. T0 is active during one clock cycle. The
positive clock transition labeled T 0 in the diagram will trigger only those registers whose control
inputs transition, to timing signal T 0. SC is incremented with every positive clock transition
unless its CLR input is active. This produces the sequence of timing signals T 0, T1, T2, T3 ,T4
and so on, as shown in the diagram. (Note the relationship between the timing signal and its
corresponding positive clock transition.) If SC is not cleared, the timing signals will continue
with T5, T6 up to T15 and back to T0
The last three waveforms in Fig. 5-7 show how SC is cleared when D 3T4 = 1. Output D3 from
the operation decoder becomes active at the end of timing signal T 2. When timing signal T4
becomes active, the output of the AND gate that implements the control function D 3T4 becomes
active. This signal is applied to the CLR input of SC. On the next positive clock transition (the
one marked T4 in the diagram) the counter is cleared to 0. This causes the timing signal T 0 to
become active instead of T5 that would have been active if SC were incremented instead of
cleared.
A memory read or write cycle will be initiated with the rising edge of a timing signal. It will be
assumed that the memory cycle time is less than the clock cycle time. According to this
assumption, a memory read or write cycle initiated by a timing signal will be completed by the
time the next clock goes through its positive transition. The clock transition will then be used to
load the memory word into a register. This timing relationship is not valid in many computers
because the memory cycle time is usually longer than the processor clock cycle. In such a case it
is necessary to provide wait cycles in the processor until the memory word is available. To
facilitate the presentation, we will assume that a wait period is not necessary in the basic
computer.
To fully comprehend the operation of the computer, it is crucial that one understands the timing
relationship between the clock transition and the timing signals. For example, the register
transfer statement
T0: AR <__ PC
specifies a transfer of the content of PC into AR if timing signal T 0 is active. T0 is active during
an entire clock cycle intervaL During this time the content of the PC is placed onto the bus (with
S2S1S0 = 010) and the LD (load) input of AR is enabled. The actual transfer does not occur until
the end of the clock cycle when the clock goes through a positive transition. This same positive
clock transition increments the sequence counter SC from 0000 to 0001 . The next clock cycle
has T1 active and T0 inactive.