EE2731 Class Notes
EE2731 Class Notes
Sequential circuits.
Output depends on present input and present state of the circuit.
S=XY
Decoders
A decoder is a multiple-input multiple-output logic circuit that converts coded inputs into coded outputs, where the inputs and outputs codes are different.
Multiplexers
Combinational logic circuit that selects binary information from one of many input lines and directs it to a single output line. The input is selected by the binary value on the select lines.
Demultiplexers
Combinational logic circuit that receives binary information on a single input and sends this information to one of many possible output lines. The output is selected by the binary value on the select lines.
Transition Time
Time interval between two reference points on a waveform. These reference points are usually 10% and 90% of the voltage change.
Rise time( tr ) Time interval when waveform is changing from a logic low to a logic high level. Fall time( tr ) Time interval when waveform is changing from a logic high to a logic low level.
Propagation Delay
Time it takes for a change at the input of a device to produce a change at the output of the same.
tpLH is the propagation delay when the output changes from LOW to HIGH. tpHL is the propagation delay when the output changes from HIGH to LOW. tpLH and tpHL are not necessarily equal, and their values depends on the logic family.
Fanout
The number of gate inputs that a single output can drive or operate without exceeding its worst case loading specifications.
IILMax is the maximum current supplied by an input when a LOW logic level voltage is applied to that input. IIHMax is the maximum current required by an input when a HIGH logic level voltage is applied to that input. IOLMax is the maximum current into an output when this output is in the LOW state. IOHMax is the maximum current provided by an output when this output is in the HIGH state.
Fanout
Fanout
LS fanout I OL I IL I OH I IH
HS fanout
Power Dissipation
The power consumed by the gate that must be available from the power supply. This does not include the power delivered from another gate.
VCC : supply voltage. ICCH : current drawn by the circuit when the output of the gate is HIGH. ICCL : current drawn by the circuit when the output of the gate is LOW. ICC : average current drawn by the circuit. PD : average power dissipation.
Power Dissipation
DC Noise Margins
The maximum amount of voltage variation (noise) that may be permitted for LOW or HIGH voltage levels.
VOHMin : the minimum output voltage in the HIGH state. VIHMin : the minimum input voltage guaranteed to be recognized as a HIGH. VILMax : the maximum input voltage guaranteed to be recognized as a LOW. VOLMax : the maximum output voltage in the LOW state.
DC Noise Margins
Low-State = VILMax VOLMax High-State = VOHMin VIHMin
Unused Inputs
Handle them as follows:
Tie them to a used input in the same gate. Tie them to logic 1 through a pull-up resistor for AND & NAND gates. Tie them to logic 0 through a pull-down resistor for OR & NOR gates.
Logic Families
Transistor Transistor Logic (TTL) is one of the most popular and widespread of all logic families.
Very high number of SSI and MSI devices available in the market. Several number of sub-families that provide a wide range of speed and power consumption.
Sub families:
74xx : The original TTL family.
These devices had a propagation delay of 10ns and a power consumption of 10mW, and they were introduced in the early 60s.
Logic Families
Sub families:
74Hxx : High speed.
Speed was improved by reducing the internal resistors. Note that this improvement caused an increase in the power consumption.
Logic Families
Sub families:
74Sxx : Schottky.
The use of Schottky transistors improved the speed. The power dissipation is less than the 74Hxx sub-family.
Logic Families
Sub families:
74ASxx : Advanced Schottky.
Twice as fast as 74Sxx with approximately the same power dissipation.
74Fxx : Fast.
Performance is between 74ASxx and 74ALSxx.
Logic Families
Note that parameters like VOHMin , VIHMin , VILMax , and VOLMax are all the same for the different sub-families, but parameters like IILMax , IIHMax , IOLMax , and IOHMax may differ. Most TTL sub-families have a corresponding 54-series (military) version, and these series operate in a wider temperature and voltage ranges.
Logic Families
Complementary metal oxide semiconductor (CMOS) replaced TTL devices in the 90s due to advances in the design of MOS circuits made in mid 80s. Advantages:
Operate with a wider range of voltages that any other logic family. Has high noise immunity. Dissipates very low power at low frequencies. It requires an extremely low driving current. High fanout.
Logic Families
Disadvantages:
Power consumption increases with frequency. Susceptible to ESD - electrostatic discharges.
Sub-families:
40xx : Original CMOS family.
Fairly slow, but it has a low power dissipation.
Logic Families
Sub-families:
74HCTxx : High speed CMOS, TTL compatible.
Better current sinking and sourcing than 40xx. It uses voltage supply of 5V. Compatible with TTL family.
Logic Families
Sub-families:
74FCTxx : Fast CMOS, TTL compatible.
It is faster and has lower power dissipation than the 74ACxx and 74ACTxx sub-families. Compatible with TTL family.
Logic Families
Prefixes, usually added to device designation to identify the manufacturer.
SN : Texas Instrument. MN : Motorola. DM : National N : Signetics P : Intel H : Harris AMD : Advanced Micro Devices N : Plastic DIP (dual in-line package) P : Plastic DIP J : Ceramic DIP W : Ceramic flat package. D : Plastic small outline package
S-R Latch
SR latch based on NOR gates. The S input sets the Q output to 1 while R reset it to 0. When R=S=0 then the output keeps the previous value. When R=S=1 then Q=Q=0, and the latch may go to an unpredictable next state.
S-R Latch
SR latch based on NAND gates. The S input sets the Q output to 1 while R reset it to 0. When R=S=1 then the output keeps the previous value. When R=S=1 then Q=Q=1, and the latch may go to an unpredictable next state.
D Latch
This latch eliminates the problem that occurs in the SR latch when R=S=0. C is an enable input:
When C=1 then the output follows the input D and the latch is said to be open. When C=0 then the output retains its last value and the latch is said to be closed.
D Latch
For proper operation the D input must not change during a time interval around the falling edge of C. This time interval is defined by the setup time tsetup and the hold time thold .
The same constraints regarding setup and hold time discussed previously, also apply to the edge triggered D flip-flop.
T Flip-Flop
Also known as the toggle flipflop. When input T = 0 the output Q retain its previous value. When input T = 1 the output Q inverts on every tick of the clock. When inputs J and K of a J-K flip-flop are connected together, the J-K flip-flop will behave like a T flip-flop.
Present State
Init S0 S 01 S 011
State
Init S0 S 01 S 011
Q1
0 0 1 1
Q0
0 1 1 0
Input I
0 1 0 1 0 1 0 1
Output Z
0 0 0 0 1 1 0 0
D
0 1 0 1
Required inputs J K
0 1 X X X X 1 0
T
0 1 1 0
Input I
0 1 0 1 0 1 0 1
J1
0 0 0 1 X X X X
Input Excitation K1 J0
X X X X 0 0 1 0 1 0 X X 0 0 X X
K0
X X 0 0 X X 0 1
Tri-State Devices
This kind of device include a third electrical state called high impedance or Hi-Z. This new state is controlled by an input control line called output enable. When this input is asserted the device behaves like a normal gate, otherwise, the output behaves like an open circuit.
C'
0 0 1 1
A
0 1 0 1
Y
1 0 Hi-Z Hi-Z
Tri-State Devices
Tri-State Devices
One application of tri-state devices is to be used to connect several devices to a single bus. When changing which output is connected to bus one must ensure that all outputs must first go into the hi-Z state thus avoiding the possibility that two outputs would be connected to the bus simultaneously.