1589204322coe 312 Ujile Ass
1589204322coe 312 Ujile Ass
1589204322coe 312 Ujile Ass
17/ENG02/077
COMPUTER ENGINEERING
FLIP FLOP
In electronics, a flip-flop or latch is a circuit that has two stable states and can be
used to store state information. The circuit can be made to change state
by signals applied to one or more control inputs and will have one or two outputs.
It is the basic storage element in sequential logic. Flip-flops and latches are
fundamental building blocks of digital electronics systems used in computers,
communications, and many other types of systems.
The normal data inputs to a flip flop (D, S and R, or J and K) are referred to
as synchronous inputs because they have effect on the outputs (Q and not-Q)
only in step, or in sync, with the clock signal transitions.
Application of the flip flop circuit mainly involves in bounce elimination switch,
data storage, data transfer, latch, registers, counters, frequency division,
memory, etc.
SEQUENCE DETECTORS
A sequence detector is a sequential circuit that outputs 1 when a particular
pattern of bits sequentially arrives at its data input. The figure below shows a
block diagram of a sequence detector. It has two inputs and one output. The
inputs are the clock used to synchronize the functionality of the circuit and the
data input.
The data input receives the input sequence. In our figure, the input sequence
and the output sequence of the circuit are a sample of a 0111 sequence
detector. If you follow the input and output sequences, you can see that only
when the last four bits of the input sequence are 0111 does the output turn to 1
during one clock cycle. It then turns back to 0.
DATA STORAGE
A flip flop store one bit at a time in digital circuit. In order to store more than
one-bit flip flop can be connected in series and parallel called registers. Thus, a
4-bit register consists of 4 individual flip flops, each able to store one bit of
information at a time.
DATA TRANSFER
Data is transferred in the form of bits between two or more digital devices.
There are two methods used to transmit data between digital devices:
serial transmission and parallel transmission. Serial data
transmission sends data bits one after another over a single channel.
SHIFT REGISTER
The Shift Register is another type of sequential logic circuit that can be used for
the storage or the transfer of binary data.
This sequential device loads the data present on its inputs and then moves or
“shifts” it to its output once every clock cycle, hence the name Shift Register.
Shift Registers are used for data storage or for the movement of data and are
therefore commonly used inside calculators or computers to store data such as
two binary numbers before they are added together, or to convert the data
from either a serial to parallel or parallel to serial format. The individual data
latches that make up a single shift register are all driven by a common clock
( Clk ) signal making them synchronous devices.
Shift Left is a practice intended to find and prevent defects early in the
software delivery process. The idea is to improve quality by moving tasks to
the left as early in the lifecycle as possible.
Shift Left testing means testing earlier in the software development process
Counters and registers belong to the category of MSI sequential logic circuits.
They have similar architecture, as both counters and registers comprise a
cascaded arrangement of more than one flip flop with or without
combinational logic devices. Both constitute very important building blocks of
sequential logic, and different types of counter and register available in
integrated circuit (IC) form are used in a wide range of digital systems. While
counters are mainly used in counting applications, where they either measure
the time interval between two unknown time instants or measure the
frequency of a given signal, registers are primarily used for the temporary
storage of data present at the output of a digital circuit before they are fed to
another digital circuit.
MOD NUMBER
SIGNAL FLOW
Signal flow is the order of operations a sound goes through. When you record
an instrument, the sound goes through different stages before you hear it
through the speakers. Signal flow is the list of steps that sound goes through in
order for you to hear it. It's kind of like riding a train.
A major problem with ripple counters arises from the propagation delay of the
flip-flops constituting the counter. The effective propagation delay in a ripple
counter is equal to the sum of propagation delays due to different flip-flops.
The situation becomes worse with increase in the number of flip-flops used to
construct the counter, which is the case in larger bit counters. An increased
propagation delay puts a limit on the maximum frequency used as clock input
to the counter. We can appreciate that the clock signal time period must be
equal to or greater than the total propagation delay. The maximum clock
frequency therefore corresponds to a time period that equals the total
propagation delay. If tpd is the propagation delay in each flip-flop, then, in a
counter with N flip-flops having a modulus of less than or equal to 2N , the
maximum usable clock frequency is given by fmax = 1/(N × tpd). Often the
propagation delay times are specified in the case of flip-flops, one for LOW-to-
HIGH transition (tpLH) and the other for HIGH-to-LOW transition (tpHL) at the
output. In such a case, the larger of the two should be considered for
computing the maximum clock frequency.
SYNCHRONOUS COUNTERS
Less likely to end up in erroneous state. They are faster as the the propagation
delay are small as compared to asynchronous counters. There are no counting
errors as compared to asynchronous counters. Performance is much better,
liable and portable circuit.
Counters are used in many different applications. Some count up from zero and
provide a change in state of output upon reaching a predetermined value;
others count down from a preset value to zero to provide an output state
change.
However, some counters can operate in both up and down count mode,
depending on the state of an up/down count mode input pin. They can be
reversed at any point within their count sequence. Dual purpose ICs such as the
TTL 74LS190 and 75LS191 are available which implement both Up and Down
count functions.
The TTL 74LS190 is a 4-bit device that can be switched between Up and Down
modes, and provides a BCD decade output; the 74LS191 is a binary counter. The
counters are synchronous, but they are asynchronously presettable. Four data
inputs (A – D) allow the preset target to be loaded. The counter is
decremented or incremented synchronously with the low to high transition of
the clock. The counters can be cascaded in high-speed mode.
A simple three-bit Up/Down synchronous counter can be built using JK flip-
flops configured to operate as toggle or T-type flip-flops giving a maximum
count of zero (000), advancing through 001, 010 to seven (111) and back to zero
again.
PRESETTABLE COUNTERS
This means when the LD input is high, then whatever binary value is present on
LOAD INPUTS, will be immediately copied to the outputs and stay that way
until LD goes low. This enables the counter to begin from any value.
ii. Determine the number of stages of the counter by counting the flip-
flops or outputs.
iii. Determine the type of flip-flops and the input logic function for each
stage. For reference, recall the present state-present input-next state
table for each flip-flop.
viii. Graph the output waveforms produced by the counter. The key to the
synchronous counter analysis is the present state-present input-next
state table that serves as a truth table description of the counter
operation as it progresses with each clock pulse. To complete this
table properly, we need to define correctly the flip-flops of each stage
by their own present input-present state-next state table
Qn Qn+1 S R
0 0 0 X
0 1 1 X
1 0 X 1
1 1 X 0
In Parallel in Serial Out (PISO) shift registers, the data is loaded onto the
register in parallel format while it is retrieved from it serially. Thus, the bits of
the input data word (Data in) appearing as inputs to the gates A2 are passed on
as the outputs of OR gates at each individual combinational circuit.
Serial in Parallel Out (SIPO) Shift Register. In Serial In Parallel Out (SIPO) shift
registers, the data is stored into the register serially while it is retrieved from it
in parallel-fashion. ... In general, the register contents are cleared by applying
high on the clear pins of all the flip-flops at the initial stage.
RING COUNTER