Registers: By: Ali Mustafa
Registers: By: Ali Mustafa
By : Ali Mustafa
Registers & Counter
• Circuits that include flip-flops are usually
classified by the function they perform
– Registers
– Counters
• Register is a group of flip-flops.
– Each flip-flop is capable of storing one bit of
information.
– An n-bit register consists of a group of n flip-flops.
– Register is a group of binary cells suitable for holding
binary information.
• A counter is essentially a register that goes
through a predetermined sequence of states.
4-Bit Register
• A simple 4-bit register can be made
with 4 D-FF
• Data is loaded in parallel
• Common Clock
• At each positive-edge, 4 bits are loaded
in parallel
• Previous data is overwritten
• Entering data is called loading
• Common Clear
• Asynchronous active-low clear
• When Clear = 0, all FFs are cleared; i.e.
0 is stored.
4-Bit Register (cont.)
load clock
Register with Parallel Load
• Synchronous digital systems have a master clock generator that
supplies a continuous train of clock pulses.
• The load input determines whether the next pulse will accept
new information or leave the information in the register intact
Register with Parallel Load
• Load = 1 ; the I inputs
are transferred into
the register
• ..or in parallel,
• In Shift Registers, the binary digit transfers (shifts) from the output
of one flip-flop to the input of the next individual Flip-Flop at
every clock edge.
• Once the binary digits are shifted in, the individual Flip-Flops will
each retain a bit, and the whole configuration will retain a binary
number.
Shift Register Construction
• Shift registers are comprised of D Flip-Flops
that share a common clock input.
D Q D Q D Q
Q Q Q
Combinations of Data Transfer Methods
10110
10110
Input D Q D Q D Q Output
Q Q Q
SIPO Flip-Flop Shift Register
• Serial In Parallel Out shift register has a single
input and access to all outputs
Output Output Output
Input D Q D Q D Q
Q Q Q
PISO Flip-Flop Shift Register
• a Parallel In Serial Out shift register requires
additional gates, and the parallel input must
revert to logic low.
Input
Input Input
Output
D Q D Q
D Q
Q Q
Q
PIPO Flip-Flop Shift Register
• Parallel In Parallel Out register has the
simplest configuration. It represents a memory
device.
Input Input Input
D Q D Q D Q
Q Q Q
CLK
Example: Serial Transfer
Universal Shift Register
If the register has both shifts and parallel load
capabilities, it is referred to as a universal shift register.
• Binary Counter: The sequence of the states follows the binary number
sequence (e.g. 000 001 010 011 etc.)
• n-bit binary counter requires n flip-flops – counts from 0 to 2n-1
• Sequences can be binary, BCD, random, etc.
• Counting can be up, down
• A modulo-n counter goes through values 0,1,2, …, (n-1)
• e.g. modulo-10 up counter counts: 0,1,…9