Flip Flops
Flip Flops
Flip Flops
Semester 1, Week 9
A Reminder About Logic Gates
All the instructions that direct a computer's
operation exist as a sequence of binary
digits or bits (0s and 1s) – the instructions
and the data are represented this way.
The logic gates can be arranged in groups
that cause these binary numbers to either
act as adders, subtracters, multipliers,
dividers or logical comparators. Other
groups of gates can act as storage for the
instructions and data. These ‘groups’ are, in
hardware design terms, latches and flip-
flops.
DT211-1 Computer Technology 2
What is a Latch?
An asynchronous latch is an electronic
sequential logic circuit used to store
information in an asynchronous
arrangement. (Asynchronous: they have no
Clock input.)
J-K
D, and
J
D Q
Q
CLK Q’
K Q’
CLK
it's complement
C
Q
_
Q
D
D Q Q
T CLK Q’ Q’
CLK
Qnext T Q
Looking a lot like a shift register – and acting in a few similar ways,
the 4-bit ring counter is also made up of four D-type flip-flops with a
specific input-output arrangement – notably that the last
Complement output is carried back to be the first Serial input.
DT211-1 Computer Technology 31
Counter
What are counters counting? They
count events on a digital device. So
they are often associated with
keeping track of the events required
for an instruction to be fetched and
executed, for example, which may
have a number of events – an
instruction is not always executed ‘in
one go’.
DT211-1 Computer Technology 32
Another Type of Counter
Another type of counter is the binary
counter.
These use J-K flip-flops, taking the output
of one cell to the Clock input of the next.
The J and K inputs of each flip-flop are set
to 1 to produce a shift at each cycle of the
Clock input. For each two shifts of the first
flip-flop a shift is produced in the second
flip-flop and so on down to the fourth flip-
flop. This produces a binary number equal
to the number of cycles of the input Clock
signal.