Physical Properties of Gates: o Objectives o Reading Assignment
Physical Properties of Gates: o Objectives o Reading Assignment
Physical Properties of Gates: o Objectives o Reading Assignment
Elec 326 3.1 Physical Properties of Gates Elec 326 3.2 Physical Properties of Gates
Control Control
n Real electronic switches are implemented with transistors,
Terminal C Terminal C and they fail to meet the ideal switch assumptions in that:
Data Data
Terminal Terminal u Resistance in open state is high, but not infinite.
Normally Open Switch Normally Closed Switch u Resistance in closed state is low, but not zero.
u Time required to change states is greater than zero.
Elec 326 3.3 Physical Properties of Gates Elec 326 3.4 Physical Properties of Gates
1
o Switch Implementations of Gates
o Exercise: n Inverters +
The following switch network conducts between its two +
X X
n NAND Gates +
Design three two-terminal networks, each with two control
signals X and Y, such that the networks conduct just in +
case:
Z Z
u Network 1: X is 1 or Y is 1.
X X
u Network 2: X is 1 and Y is 0.
u Network 3: X and Y are equal Y Y
Elec 326 3.5 Physical Properties of Gates Elec 326 3.6 Physical Properties of Gates
Z Z
X
Z = 01 if T conducts
if T open
X
X0
Y Y
X1
T
Xn
Passive Pullup Active Pullup
Passive Pullup
Elec 326 3.7 Physical Properties of Gates Elec 326 3.8 Physical Properties of Gates
2
u Active pullup n Comments on the previous diagrams:
u The boxes labeled T and T' contain switches connected in such a
way that they establish a connection between the top and bottom
Note: T' is the complement of T,
so that T' conducts if and only if terminals when the input signals take on certain values and cause
T' T does not conduct an open circuit if the input signals take on any other values.
u The two networks in the active pullup circuit must be be designed
0 if T conducts & T' open so that they are never both conducting or are both open at the same
Z=
1 if T' conducts & T open time.
X0
X1 u For the inverter, T connects the terminals iff the input X is 1.
T
Xn u For the NAND gates T connects iff both X and Y are 1.
Elec 326 3.9 Physical Properties of Gates Elec 326 3.10 Physical Properties of Gates
Elec 326 3.11 Physical Properties of Gates Elec 326 3.12 Physical Properties of Gates
3
o P-Channel MOSFIT Transistors
Gate
Terminal
Gate
Drain
Source
Terminal Terminal
Oxide
Insulator
P N P
Source Drain
Substrate
P-Channel MOSFET
n Application of a positive voltage between the gate terminal
and the substrate creates an electric field that drives holes n The P and N regions are reversed from the N-Channel device.
out of the region under the gate, creating a channel of N- n Application of a voltage on the gate terminal that is negative relative to
type material that connects the source and drain terminals the substrate creates a P channel beneath the gate and charge flow is
u Current is due to electron movement due to hole movement.
Elec 326 3.13 Physical Properties of Gates Elec 326 3.14 Physical Properties of Gates
o Complementary MOSFETS (CMOS) n The following symbols are used to represent MOSFET
transistors in circuit diagrams:
n N-Channel and P-Channel transistors can be fabricated on
the same substrate as shown below Drain
Terminal
Drain
Terminal
Gate Gate
Terminal Terminal
Source Source
Terminal Terminal
N-Channel P-Channel
MOSFET Symbol MOSFET Symbol
Control Control
Terminal C Terminal C
Data Data
Terminal Terminal
Normally Open Switch Normally Closed Switch
Elec 326 3.15 Physical Properties of Gates Elec 326 3.16 Physical Properties of Gates
4
3.3. NMOS and CMOS Logic Families
VDD
VDD
Z
X
Z
X Y
NMOS Inverter
CMOS NOR Gate
Elec 326 3.17 Physical Properties of Gates Elec 326 3.18 Physical Properties of Gates
Elec 326 3.19 Physical Properties of Gates Elec 326 3.20 Physical Properties of Gates
5
o TTL Families o Packaging of TTL integrated circuits
n Dual in line packages
Elec 326 3.21 Physical Properties of Gates Elec 326 3.22 Physical Properties of Gates
Elec 326 3.23 Physical Properties of Gates Elec 326 3.24 Physical Properties of Gates
6
o Effects of capacitance on gate speed
o Effect of Switch Resistance on Output Voltage
n There is internal capacitance associated with transistor
n A grossly simplified model of a gate that shows the effect junctions and wires inside the gate, over which the logic
of switch resistance is as follows
designer has little or no control.
u Charging and discharging this capacitance results in delay between
input and output signal changes.
n There is external capacitance due to external wires (stray
capacitance) and input capacitance associated with gate
input terminals.
u Charging and discharging this capacitance results in slow rise and
Vo = fall times of signals.
u In the low state the output voltage of an ideal gate is 0 since R 2 is 0. n Therefore a better (but still grossly simplified) electrical
In a real gate, the output voltage equals the voltage drop across R 2, model of the gate on the left is given on the right.
which will be greater than 0.
u In the high state the output voltage of an ideal gate will be V since
R1 is 0. In a real gate, the output voltage is V minus the voltage drop
across R1, which is less than V.
u The equation and comments above assume that no current flows
through the output terminal (i.e., the gate is connected to something
with infinite input resistance).
Elec 326 3.25 Physical Properties of Gates Elec 326 3.26 Physical Properties of Gates
Eout
Elec 326 3.27 Physical Properties of Gates Elec 326 3.28 Physical Properties of Gates
7
3.6. Timing Parameters n All signals take time to change
u tTLH = trise = Time to make a low-to-high transition
o Gate Timing Parameters u tTHL = tfall = Time to make a high-to-low transitionGate
n The propagation delay of a gate is the time required for an input signal time
change to produce an output signal change VH VL+.9(VH-VL)
n The propagation delay usually depends on whether the VL
VL+.1(VH-VL)
output signal transition is high-to-low or low-to-high tTLH tTHL
u tP - Propagation delay (worst case)
u Gate delays vary with
u tPHL - High-to-Low propagation delay
u tPLH - Low-to-High propagation delay
Elec 326 3.29 Physical Properties of Gates Elec 326 3.30 Physical Properties of Gates
Elec 326 3.31 Physical Properties of Gates Elec 326 3.32 Physical Properties of Gates
8
u Delay variations 3.7. Voltage Parameters, Noise Margins and Fan-In
o Voltage Parameters
B n Inverter Transfer Characteristics
Y
VOH = minimum high state
min tP
max tP output voltage
VOL = maximum low state
output voltage
n Multiple signals (i.e., a bus)
VIH = minimum high state
input voltage
VIL = maximum low state
Stable Stable Stable input voltage
Stable Stable Stable
Stable Stable
n Note that VOH > VIH and VOL < VIL. Why?
Elec 326 3.33 Physical Properties of Gates Elec 326 3.34 Physical Properties of Gates
RL
vi = vo + vn, where vn is noise
Vo
n Noise margin is a measure of how much noise a gate can Vi1
safely tolerate.
Vi2
Vmax
NMH VOH
VIH
Vik
NML VIL
VOL
Vmin Vo = kRN / (RL + kRN) Vo = (RN/k) / (RL + (RN/k))
NMH = VOH - VIH
NML = VIL - VOL n What effect does fan-in have on noise margin for these two gates?
Elec 326 3.35 Physical Properties of Gates Elec 326 3.36 Physical Properties of Gates
9
3.8. Current Parameters and Fan-Out
o Fan-Out: The maximum number of gates of a given
type that can be driven by one gate of a possibly
different type.
n Each gate input draws current from whatever is driving it
n When a gate drives more than one gate input terminal, the
total current the driving gate must supply is a function of
number of gates it drives.
n There is a maximum amount of current that a given gate
can supply from its output terminal.
n Therefore, there is a limit on the number of gate input
terminals that you can connect to one gates output terminal
(i.e., the fan-out of the driving gate).
n This section shows how to calculate the fan-out of gates.
n Which gate has better noise margins?
Elec 326 3.37 Physical Properties of Gates Elec 326 3.38 Physical Properties of Gates
o Current Parameters n If current flows into a gate output terminal, that gate is said
n The load seen at a gate output terminal is the current it to sink current.
must source or sink to drive other gate input terminals. n If current flows out of a gate output terminal, that gate is
n IIL - Maximum input current at a gate input terminal with said to source current.
its input voltage low
n IIH - Maximum input current at a gate input terminal with i
Driven
its input voltage high Driving
Gate Gate
n The amount of current flowing through a gate's output Sourcing Current
terminal (output load) is determined by the number of gate
input terminals it is connected to
i
u If a gate output is connected to n gate inputs, the load on the Driving Driven
driving gate can be as high as nIIL in the low state and nIIH in the Gate Gate
high state, but it will not be higher Sinking Current
Elec 326 3.39 Physical Properties of Gates Elec 326 3.40 Physical Properties of Gates
10
o Fanout Calculations n Example #2
n The sum of the maximum input currents of the driven gates 0.03Æ 1
2¨
must be less than the maximum possible output current of 0.03Æ
2
the driving gate, in both the high and low states 1.0Æ 2¨
15¨
0.03Æ
n Example #1 Sourcing Analysis: 2¨
n
Elec 326 3.41 Physical Properties of Gates Elec 326 3.42 Physical Properties of Gates
V o for n =1
VDD
V o for n = 4
Gnd Time
0
Elec 326 3.43 Physical Properties of Gates Elec 326 3.44 Physical Properties of Gates
11
o Transmission Gates
n Passing 0s and 1s through an MOS Transistor
u N-Channel MOS Transistors pass a 0 better than a 1
n A transmission gate is a essentially a switch that connects
VDD VDD two points. In order to pass 0’s and 1’s equally well, a pair
of transistors (one N-Channel and one P-Channel) are used
GND v = GND VDD v <VDD
as shown below:
Passing 0 Passing 1 s
s
u P-Channel MOS Transistors pass a 1 better than a 0
x y x y
VDD VDD s
s Symbol
GND v> GND VDD v =VDD
Passing 0 Passing 1
Circuit
u When s = 1 the two transistors conduct and connect x and y
u This is the reason that N-Channel transistors are used in the pull-down
l The top transistor passes x when it is 1 and the bottom transistor passes x
network and P-Channel in the pull-up network of a CMOS gate. Otherwise when it is 0
the noise margin would be significantly reduced.
u When s = 0 the two transistor are cut off disconnecting x and y
Elec 326 3.45 Physical Properties of Gates Elec 326 3.46 Physical Properties of Gates
X1
x
S Y = X1•S+X2•S
x⊕y X2
y
u With transmission gates u When S = 0, input X1 is connected to the output Y
u When S = 1, input X2 is connected to the output Y
x
y
x⊕y
Elec 326 3.47 Physical Properties of Gates Elec 326 3.48 Physical Properties of Gates
12
o Tri-State Outputs
n The switch on the output could be implemented by a
n Instead of the usual two, these outputs have three possible
transmission gate
states, 0, 1, and Z (high impedance) C
u States 0 and 1 are standard logic levels
u State Z is called the high impedance output state. It is not a logic Gate
level.
o Verilog description of n-bit tri-state module o Open-Output circuits (Open Collector or Open Drain)
module trin (Y, E, F); n Connecting passive pull-up outputs together
parameter n = 8;
input [n-1:0] Y;
input E;
output [n-1:0] F;
wire [n-1:0] F;
assign F = E ? Y : 'bz; X X Z
Z
Y Y
endmodule
Logically equivalent logic diagram Wired AND Logical Symbol
n The conditional statement F = E ? U : 'bZ; is the same as
if (E) F = U; else F = ‘bz; u Advantage: free AND gate
n Note that ‘bz is an unsized number that is expanded to the u Disadvantage: reduces pullup resistance and increases power
length of the left side of the assignment statement. dissipation
Elec 326 3.51 Physical Properties of Gates Elec 326 3.52 Physical Properties of Gates
13
n Solution to problem of reduced pullup resistance: move n Examples of wired AND logic
pullup from inside to outside the gate so designer has
control of its value
n Examples of Open-Output gates
Z
Z
X
X
Y
Elec 326 3.53 Physical Properties of Gates Elec 326 3.54 Physical Properties of Gates
Elec 326 3.55 Physical Properties of Gates Elec 326 3.56 Physical Properties of Gates
14
3.10. Tips & Tricks
n Gate With Schmitt Trigger Input o The pullup network can be derived from the pulldown
network by swapping series connections with parallel
connections.
o Use speed vs. capacitive load to calculate fan-out in
CMOS circuits
o Use Schmidt trigger gates as bus recievers and tri-
state gates as bus drivers.
Elec 326 3.57 Physical Properties of Gates Elec 326 3.58 Physical Properties of Gates
Elec 326 3.59 Physical Properties of Gates Elec 326 3.60 Physical Properties of Gates
15