PHY 325 Draft
PHY 325 Draft
TOPICS TO BE COVERED
1. Review of Digital Circuits and Systems
2. IC Logic families and their Properties
3. Flip Flops
4. Types of flip flops
5. Counters
6. Registers and Memory Circuits
7. Switches
8. Timers and Timing circuits
IMPORTANT NOTES:
*** The lecture material given (Electronic format) at the end of the class is an abridged version of what was
taught in Class and should only be used for reference purposes (it doesn’t contain solution practice questions).
***Questions related to the course taught that could not be addressed in class should be sent to the lecturer via
the course rep in written format. A solution in jpeg or pdf format will be sent back through the class rep within 2
to 3 days and will be solved for all at a fixed class before exam.
1
REVIEW OF DIGITAL CIRCUITS AND SYSTEMS
Digital system are systems composed of digital circuits that symbolizes their associated quantities using
discretely packaged values that are well defined. Digital systems are not generally more accurate or efficient than
analog systems. Nevertheless, Digital systems are easier to work. On the flip side, digital systems do not support
real time symbolization because quantities have to be digitally processed before they are symbolized as opposed
to direct symbolization in analog systems. With recent technology advances, the gap in real time synchronization
has been extremely narrowed down.
Boolean Algebra and Logic gates
The Boolean algebra which is the switching algebra or operation based on logic was developed by George Boole.
This type of algebra makes use of the logic statements which are either true or false based on human reasoning.
Logic operations
Logic operations are carried out using logic operators the most basic of which are the AND, OR and NOT
Boolean operators. Other operators such as the NOR (which is basically a combination of the OR and NOT
operators), the NAND, etc. can be constructed using these basic operators. These operators are often referred to
as gates. The truth table gives the outcome of every possible input combination acted upon by the operator.
Figure 1.0 shows the basic symbols for the available Logic gates, their symbols, truth table, and the their
respective De Morgan’s representations.
Combinational and Sequential logic circuits
Combinational circuits are networks of logic gates having input variables that are completely independent of the
logic gate, and outputs values that are the Boolean functions of inputs. In these circuits the independent input
variables are obtained from other systems connected to the digital system. The output variables in these circuits
depend only on the present value of the inputs and thus do not the use of require memory elements. They include
Adders and subtractors, multiplexers, decoders and encoders, etc.
Sequential logic circuits on the other hand are classes of the switching circuits with memory elements in addition
to the input and output variables. They do not only rely on the current values of the input signals but consider
their respective previous states (old state) in determining the value of the output signal. They include counters,
flip flops, registers and memory elements.
2
LOGIC OPERATION SYMBOL TRUTH TABLE
Figure 1.0: Various Logic gates, their symbols and truth tables
3
LOGIC FAMILIES
Logic circuits are based on logic gates such as the AND, NAND and OR gates. This circuits are the heart of
digital systems and perform several functions in them (mostly data manipulation). Logic circuits can be
implemented in several different ways using a combination of various electrical components such as resistors and
semiconductor switches such as diodes, transistors, metal oxide FETs, etc.
For example, the AND gate can be implemented using a combination of two diodes and two resistors as shown in
Fig 1.1 below;
5
LOW logic state. It may be mentioned here that, for a given logic family, the (V OL) specification is always
smaller than the (VIL) specification to ensure output-to-input compatibility when the output of one device
feeds the input of another.
7. Rise time, (tr): This is the time that elapses between 10 and 90 % of the final signal level when the signal is
making a transition from logic LOW to logic HIGH.
8. Fall time, (tf): This is the time that elapses between 90 and 10 % of the signal level when it is making HIGH
to LOW transition.
9. Propagation Delay Time (tpd): The propagation delay time of a gate is defined as the time interval between
the application of the inputs to a gate and appearance of the signal at the output of the gate. In other words it is
defined as the time interval between a change in input state and the resulting change in output state of the gate.
This delay is a very small quantity; it is of the order of few nano second say 20 nsec (20x10 -9 sec) or 50 nsec
(50x10-9 sec). The propagation delay of the gate also specifies the speed of the logic gate. The delay time is
measured between 50% voltage levels of input and output waveforms. Figure 7.4 shows the input and output
waveforms of an inverter. If tPHL is the delay time when the output goes from low state (logic 0) to high state
(logic 1) and tPLH is the delay time when the output goes from high state (logic 1) to low state (logic 0), the
propagation delay time of the gate tpd expressed as the average of the two delays i.e. (t pHL +t pLH )/2
Fig 1.2: Graph of Propagation delay time showing tpHL and tpLH
10. Power Dissipation: It is defined as the amount of power that can be dissipated in an IC. It is calculated as the
product of the d.c voltage applied to an IC and the current drawn from the d.c. source. It is always desirable to
have low power dissipation per gate. The normal working power per gate is required from few micro-watts to
few milli-watts. The product of speed and power dissipation per gate is known as the figure of merit of the
logic family. A low value of this product is desirable.
11. Operating Temperature: The temperature range in which an IC functions properly is known as the operating
temperature of the gate. It is specified by the manufacturer. The acceptable temperature range of the ICs is
from 0 to +70 degrees for commercial applications and this range is from – 55 0C to 125 degrees for military
purposes.
12. Noise Margin: Spurious signals called noise are sometimes generated in the connecting leads of the logic
circuits due to the stray electric and magnetic fields in the surroundings. This results the unpredictable
operation of the logic circuit. The noise margin is sometimes called Noise- immunity. It is defined as the
difference between the maximum permitted low input and the maximum guaranteed low output, and that
between the minimum permitted high input and the minimum guaranteed high output.
6
As per definition of the noise margin, the noise margin for high state (VNH) and the noise margin for low state
(VNL) are given by:
VNH = VOH(min) – VIH(min)
VNL = VOL(max) – VIL(max)
The large noise margin is always desirable.
THE VARIOUS IC LOGIC FAMILIES
In this section, we discuss each of the logic family mentioned above earlier.
1. Resistor – Transistor Logic (RTL): this logic family contains digital logic circuits built with resistors and
transistors. It was the first logic family to be developed and fabricated as an IC and it dates back to the 1960s.
The circuit configuration required for logic implementation is simple regardless, the family is now obsolete.
RTL has the advantage of small power dissipation per gate also has the following disadvantages. 1. Low noise
margin (around 0.1 V) 2. Poor fan out, 3. Low speed of operation and high propagation delay.
2. Direct Coupled Transistor Logic (DCTL): This logic family is a direct integration of the RTL family. The
only difference is that in this family, the base resistors of the gate transistors are removed and the input is
directly coupled to the transistor. The circuit configuration for the DCTL is simpler than that of the RTL but it
wasn’t widely accepted because of its current hogging problem (This is a phenomenon whereby due to
manufacturer’s tolerance issues, one of the transistors on the output stage with the smallest base voltage
requirement reaches saturation before other transistors and hog all the current and prevent other transistors
from reaching saturation).
3. Diode – Transistor Logic (DTL): This logic family followed the RTL family. The circuitry was made using
diodes and Transistors. It was able to achieve high noise margin but has a relatively slow speed due to the
recovery time of the diodes used. The diagram below shows the positive logic of a two (2) input NAND gate.
7
5. Integrated Injection Logic (IIL or I2L): This logic family makes use of only transistors. Thus, it is very
cheap to manufacture and several gates can be integrated in one package. They have a low power
consumption and a very reasonable switching speed but have a low figure of merit. Below is the configuration
of a positive two input NAND gate.
When both or either of the inputs are low, the current from the source is sunk by the low input(s) and the
output transistor is cut off. When both inputs are high, the current from T1 switches on T2 and it saturates,
bringing the output close to zero (0).
6. Transistor – Transistor Logic (TTL): TTL is the one of the most common and widely use IC technology
today. It is based on transistors which are operated either in the cut-off or saturation region. It is a
modification of DTL in which multi-emitters transistors (a transistor with more than one emitter) are used as
inputs in place of diodes which greatly reduce the propagation delay time of this logic family. Standard TTL
were the earliest type of TTL available and they are available in various forms which are
1. TTL with Passive pull-up
2. TTL with TOTEM pole output
3. TTL with Open collector output
4. Tri-state TTL
1. TTL with passive pull-up: in this type of circuit configuration, the output of the gate circuit is pulled up
using via a passive component (a resistor) i.e. while the output transistor is in the cut-off region, the
output is obtained via the collector transistor. Below is the diagram of the configuration of a two (2) input
NAND gate with passive pull-up
8
In this configuration, when any or both of the input is low, transistor T2 is turned off and the output is
high. When both of the inputs are high, transistor T1 s turned on and driven into saturation making the
output low.
2. TTL with TOTEM pole output: In this configuration, two output transistors are used. The diagram
below shows the configuration of a two (2) input NAND gate.
Fig 1.6: TTL with TOTEM pole output NAND gate configuration
One of the output transistor is configured as an emitter follower and the other as a common emitter. When
the inputs are low, the lower transistor T4 is cut off and the transistor T3 conducts raising the output.
When both inputs are high, T3 conducts and the output is low. Using active pull up increases the speed of
this logic type as compared to passive pull-up.
3. TTL with Open collector output: TTL with TOTEM pole output has a drawback and this is that the
output of two TOTEM output TTL cannot be connected together directly as this will cause a short circuit.
The open collector TTL solves this problem and makes the AND-ing of the output of several gates
possible using only wires. After the connection, a single pull up resistor can be used for raising the output.
The main disadvantage of open collector output is their slow speed.
4. Tri-state TTL: The tri-state TTL provides adds an extra ‘enable’ input which introduces a high
impedance mode to the output of the gate. When the enable input is high, it doesn’t interfere with the
operation of the gate but when it is low, it puts the gate output in high impedance mode. This allows
TOTEM pole output TTL to be AND-ed with wires and this overcome the slow speed problem of the
Open collector TTL
The standard TTL chips are denoted with the prefix 74/54 with 74 indicating an operating range of 0 – 70
degrees and 54 indicating -25 to 125 degrees.
Improvements in semiconductor technology also brought about the introduction of newer modifications to TTL
chips. The several varieties are;
1. 74L/54L series which is the low power and (s)low speed series (typical power around 1 mW and 33ns
propagation delay time)
9
2. 74H/54H series which are the high power and high speed series (typical power around 22 mW and 6ns
propagation delay time)
3. 74F/54F series which are the fast TTL series.
7. Schottky Transistor – Transistor Logic (STTL): in this family of TTL, schottky transistors are used instead
of normal transistors. Schottky transistors because of the schottky barrier diode connected across the base and
collector, prevents the transistor from saturating and it is always operating in the active and cut-off region.
This makes circuit switching much faster because less time is used in going to and from active and cut –off
region. The 74S series is an example of STTL. It has a typical switching speed which doubles that of the 74
standard series even at the same power level.
From the TTL, other series of STTL were made using different techniques. It is important to note that the as
the speed of TTL logic circuits increases, its power consumption.
1. 74LS/54LS series – Low power, slow speed schottky series (which are obtained by increasing the
resistance used in the 74s series)
2. 74HS/54HS series – High power, high speed schottky series
3. 74AS/54AS series – Advanced schottky series
4. 74ALS/54ALS series – Low power slow speed advanced schottky series
5. 74AHS/54AHS series – High power, high speed, advanced schottky series
8. Emitter coupled Logic (ECL): This logic family is an example of unsaturated logic family in which the
transistor never goes into saturation but operates in the active and cut-off region eliminating storage time. This
family is faster than the TTL family and the have one of the best propagation delay time which is
approximately 1ns per gate. A major example of the implementation of this circuitry is in the ECL OR/NOR
gate which is a two output gate with an OR output as well as the inverted OR output. The input to this gate
circuit is usually a differential amplifier stage. This way, the switching transistor is always operated in the
active region making its switching time smaller. The output of several ECL chips can be connected together to
produce a wired AND logic output.
9. MOS Logic: This logic family make uses of unipolar semiconductor devices which is the metal oxide
semiconductor Field Effect Transistors. The MOS logic is very easy to fabricate and uses up less space. In
their fabrication, only MOSFETs which are either N-channel or P-channel are used. It is characterized by high
packing density, low power dissipation and high fan out. The MOS logic family can be classified into three
categories. They are;
i. NMOS Logic, ii. PMOS Logic and iii. (Complementary MOS) CMOS Logic.
The PMOS logic is considerably slower than the NMOS logic making it less used practically.
1. NMOS Logic: This logic family is based on the N-channel enhancement mode MOSFETs. This logic
families have high input impedance giving them a high fan out but their output capacitance also reduces the
speed of the gate when overloaded. The presence of input capacitance also slows down the speed of
operation and in turn reduces the power dissipation. Below is the configuration of a 3 input NAND gate
using NMOS logic. In the configuration, four (4) n-channel MOSFETs are connected in series and their
gate terminal serves as inputs.
10
Fig 1.7: NMOS NAND gate configuration
When any or all of the input is low, the MOSFETs are turned off since they require a positive voltage to
work and the output is high. When all of the input is high, the MOSFETs are turned on and the output is
low and the transistors sink current. The above is for positive logic. For negative logic, PMOS are
employed.
2. CMOS Logic: This logic family make use of both n-channel and p-channel MOSFETs. Here, both FETs
are fabricated on the same chip and this increases the complexity of the system. Also, it reduces it package
density because of the integral difficulties of p-channel fabrications but has an advantage of reduced power
consumption. This makes them ideal for battery operated systems. The CMOS gate can be operated on
wide range of supply voltage between 3 V to 15 V. It has good noise margin better than TTL devices, a
much larger Fan-out, and a speed comparable with that of TTL circuits but larger than Schottky TTL
circuits. The diagram below shows the configuration of a two (2) input CMOS NAND gate. In this
configuration, two p-channel MOS are connected in parallel and two n-channel MOS are connected in
series.
11
When any or both inputs are low, since the gates of T1 and T2 require low voltage to turn them on, the
output is high via T1 and T2. At this point, FET T3 and T4 are turned off. When both inputs are high, T1
and T2 are turned off while T3 and T4 are turned on and the output is low.
Comparism between the various logic families
Based on their various characteristics, the properties of the logic families are compared in the table below;
Logic parameter RTL DTL TTL ECL MOS CMOS
MAX Fan-In 5 10 8 5 8 8
Fan-out 5 8 10 25 20 >50
Power dissipation/ 12 10 10 50 1 Around 0.01
gate (in mW) at 1 MHz
Propagation delay 20 30 12 4 400 70
per gate (ns)
Noise immunity Nominal Good Very Good Good Nominal Very good
Number of High Fairly High Very High High Fair Good
functions
Max Clock rate (in 5 12 15 300 2 5
MHz)
12