1 of 168

Topic 7� Digital Circuits �Intro to Digital Electronics

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 1

ECE 271

Electronic Circuits I

2 of 168

Brief History of Digital Electronics

  • Digital electronics can be found in many applications in the form of microprocessors, microcontrollers, PCs, DSPs, and an uncountable number of other systems.

  • The historic development of design of digital circuits:
    • resistor-transistor logic (RTL)
    • diode-transistor logic (DTL)
    • transistor-transistor logic (TTL)
    • emitter-coupled logic (ECL)
    • NMOS
    • complementary MOS (CMOS)

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 2

3 of 168

Digital Binary Logic

  • Digital electronics represent signals by discrete bands of analog levels, rather than by a continuous range.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 3

4 of 168

Digital Binary Logic

  • Digital electronics represent signals by discrete bands of analog levels, rather than by a continuous range.

  • All levels within a band represent the same signal state.

  • Small changes to the analog signal levels due to manufacturing tolerance, or noise do not leave the discrete envelope, and as a result are ignored by signal state sensing circuitry.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 4

5 of 168

Digital Binary Logic

  • Digital electronics represent signals by discrete bands of analog levels, rather than by a continuous range.

  • All levels within a band represent the same signal state.

  • Small changes to the analog signal levels due to manufacturing tolerance, or noise do not leave the discrete envelope, and as a result are ignored by signal state sensing circuitry.

  • Binary logic is the most common style of digital logic.

  • The signal is either a 0 (low, false) or a 1 (high, true) - Positive Logic Convention

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 5

6 of 168

Digital Binary Logic

  • Digital electronics represent signals by discrete bands of analog levels, rather than by a continuous range.

  • All levels within a band represent the same signal state.

  • Small changes to the analog signal levels due to manufacturing tolerance, or noise do not leave the discrete envelope, and as a result are ignored by signal state sensing circuitry.

  • Binary logic is the most common style of digital logic.

  • The signal is either a 0 (low, false) or a 1 (high, true) - Positive Logic Convention

  • Mathematical representation of logical operations is Boolean algebra: set of operations (NOT, AND, OR, NAND, NOR, etc.) with binary or logical elements.
  • To perform general logical operations, a logic family must contain NOT and at least one another function of two inputs OR or AND.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 6

7 of 168

Review of Boolean Algebra

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 7

A

Z

0

1

1

0

A

B

Z

0

0

0

0

1

1

1

0

1

1

1

1

A

B

Z

0

0

0

0

1

0

1

0

0

1

1

1

NOT

Truth Table

OR

Truth Table

AND

Truth Table

A

B

Z

0

0

1

0

1

0

1

0

0

1

1

0

A

B

Z

0

0

1

0

1

1

1

0

1

1

1

0

NOR

Truth Table

NAND

Truth Table

8 of 168

Review of Boolean Algebra

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 8

A

Z

0

1

1

0

A

B

Z

0

0

0

0

1

1

1

0

1

1

1

1

A

B

Z

0

0

0

0

1

0

1

0

0

1

1

1

NOT

Truth Table

OR

Truth Table

AND

Truth Table

A

B

Z

0

0

1

0

1

0

1

0

0

1

1

0

A

B

Z

0

0

1

0

1

1

1

0

1

1

1

0

NOR

Truth Table

NAND

Truth Table

9 of 168

Review of Boolean Algebra

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 9

A

Z

0

1

1

0

A

B

Z

0

0

0

0

1

1

1

0

1

1

1

1

A

B

Z

0

0

0

0

1

0

1

0

0

1

1

1

NOT

Truth Table

OR

Truth Table

AND

Truth Table

A

B

Z

0

0

1

0

1

0

1

0

0

1

1

0

A

B

Z

0

0

1

0

1

1

1

0

1

1

1

0

NOR

Truth Table

NAND

Truth Table

10 of 168

Review of Boolean Algebra

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 10

A

Z

0

1

1

0

A

B

Z

0

0

0

0

1

1

1

0

1

1

1

1

A

B

Z

0

0

0

0

1

0

1

0

0

1

1

1

NOT

Truth Table

OR

Truth Table

AND

Truth Table

A

B

Z

0

0

1

0

1

0

1

0

0

1

1

0

A

B

Z

0

0

1

0

1

1

1

0

1

1

1

0

NOR

Truth Table

NAND

Truth Table

11 of 168

Review of Boolean Algebra

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 11

A

Z

0

1

1

0

A

B

Z

0

0

0

0

1

1

1

0

1

1

1

1

A

B

Z

0

0

0

0

1

0

1

0

0

1

1

1

NOT

Truth Table

OR

Truth Table

AND

Truth Table

A

B

Z

0

0

1

0

1

0

1

0

0

1

1

0

A

B

Z

0

0

1

0

1

1

1

0

1

1

1

0

NOR

Truth Table

NAND

Truth Table

12 of 168

Review of Boolean Algebra

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 12

A

Z

0

1

1

0

A

B

Z

0

0

0

0

1

1

1

0

1

1

1

1

A

B

Z

0

0

0

0

1

0

1

0

0

1

1

1

NOT

Truth Table

OR

Truth Table

AND

Truth Table

A

B

Z

0

0

1

0

1

0

1

0

0

1

1

0

A

B

Z

0

0

1

0

1

1

1

0

1

1

1

0

NOR

Truth Table

NAND

Truth Table

 De Morgan's laws

13 of 168

Logic Gate Symbols and Boolean Expressions

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 13

  • logic gate is a physical model of a Boolean function: �it performs a logical operation on one or more logic inputs and produces a single logic output.

14 of 168

Logic Gates: AND

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 14

A = 0 , B = 0 🡪 both diodes are forward biased 🡪 both diodes conduct 🡪out is LOW 🡪 0.

The simples gates are AND and OR. They can be built from switches or using the simplest form of electronic logic - diode logic.

15 of 168

Logic Gates: AND

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 15

A = 0 , B = 0 🡪 both diodes are forward biased 🡪 both diodes conduct 🡪out is LOW 🡪 0.

A = 0 , B = 1 🡪 DB is reverse biased 🡪 does not conduct,

DA is forward biased 🡪 conducts 🡪out is LOW 🡪 0.

The simples gates are AND and OR. They can be built from switches or using the simplest form of electronic logic - diode logic.

16 of 168

Logic Gates: AND

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 16

A = 0 , B = 0 🡪 both diodes are forward biased 🡪 both diodes conduct 🡪out is LOW 🡪 0.

A = 0 , B = 1 🡪 DB is reverse biased 🡪 does not conduct,

DA is forward biased 🡪 conducts 🡪out is LOW 🡪 0.

A = 1 , B = 0 🡪 DA is reverse biased 🡪 does not conduct,

DB is forward biased 🡪 conducts 🡪out is LOW 🡪 0.

The simples gates are AND and OR. They can be built from switches or using the simplest form of electronic logic - diode logic.

17 of 168

Logic Gates: AND

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 17

A = 0 , B = 0 🡪 both diodes are forward biased 🡪 both diodes conduct 🡪out is LOW 🡪 0.

A = 0 , B = 1 🡪 DB is reverse biased 🡪 does not conduct,

DA is forward biased 🡪 conducts 🡪out is LOW 🡪 0.

A = 1 , B = 0 🡪 DA is reverse biased 🡪 does not conduct,

DB is forward biased 🡪 conducts 🡪out is LOW 🡪 0.

A = 1 , B = 1 🡪 both diodes are reverse biased 🡪

both the diodes do not conduct 🡪 out is HIGH 🡪 1.

The simples gates are AND and OR. They can be built from switches or using the simplest form of electronic logic - diode logic.

18 of 168

Logic Gates: OR

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 18

A = 0 , B = 0 🡪 both diodes are reverse biased 🡪 does not conduct 🡪out is LOW 🡪 0.

A = 0 , B = 1 🡪 DA is reverse biased 🡪 does not conduct,

DB is forward biased 🡪 conducts 🡪out is HIGH 🡪 1.

A = 1 , B = 0 🡪 DB is reverse biased 🡪 does not conduct,

DA is forward biased 🡪 conducts 🡪out is HIGH 🡪 1.

A = 1 , B = 1 🡪 both diodes are reverse biased 🡪

both the diodes conduct 🡪 out is HIGH 🡪 1.

19 of 168

Logic Gates: NAND & NOR

  • The simple diode logic allows AND and OR, but not inverters 🡪 an incomplete form of logic.
  • Also, without some kind of amplification it is not possible to have such basic logic operations cascaded as required for more complex logic functions.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 19

20 of 168

Logic Gates: NAND & NOR

  • The simple diode logic allows AND and OR, but not inverters 🡪 an incomplete form of logic.
  • Also, without some kind of amplification it is not possible to have such basic logic operations cascaded as required for more complex logic functions.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 20

  • However, any gate can be built from NAND or NOR gates. This enables a circuit to be built from just one type of gate, either NAND or NOR.
  • To build NAND or NOR inverter is required 🡪 transistors needed.

21 of 168

Logic Gates: NAND & NOR

  • The simple diode logic allows AND and OR, but not inverters 🡪 an incomplete form of logic.
  • Also, without some kind of amplification it is not possible to have such basic logic operations cascaded as required for more complex logic functions.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 21

  • However, any gate can be built from NAND or NOR gates. This enables a circuit to be built from just one type of gate, either NAND or NOR.
  • To build NAND or NOR inverter is required 🡪 transistors needed.

Conclusion.

  • To build a functionally complete logic systems transistors are used.

  • The most basic digital building block is the inverter.

22 of 168

Diode-Transistor Logic (DTL) Gate

  • The inversion and level-restoration problem associated with diode logic can be solved by adding a diode and transistor to form the diode-transistor logic (DTL) gate
  • It will be analyzed in detail sin Chapter 9; here is a brief overview.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 22

23 of 168

Diode-Transistor Logic (DTL) Gate

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 23

On the left, diodes D1 and D2 are both off, whereas D3 and Q1 are on. Node 1 is at 1.3 V:

V1 = VD3 + VBE = 0.6 V + 0.7 V = 1.3 V

The current I through resistor RB and diode D3 becomes the base current IB of transistor Q1. The

value of IB is designed to cause Q1 to saturate so that vO = VCESAT (for example, 0.05 to 0.1 V).

  • The inversion and level-restoration problem associated with diode logic can be solved by adding a diode and transistor to form the diode-transistor logic (DTL) gate
  • It will be analyzed in detail sin Chapter 9; here is a brief overview.

24 of 168

Diode-Transistor Logic (DTL) Gate

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 24

On the right, input B is now at 0 V, corresponding to a logical 0. Diode D2 is conducting,

holding node 1 at 0.6 V. Now diode D3 and transistor Q1 must both be off, because the voltage at

node 1 is now less than the two diode voltage drops required to turn on both D3 and Q1. The base

current of Q1 is now zero; Q1 will be off with IC = 0, and the output voltage will be at +3.3 V,

corresponding to a logical 1. A similar situation holds for the circuit if both inputs are low.

  • The inversion and level-restoration problem associated with diode logic can be solved by adding a diode and transistor to form the diode-transistor logic (DTL) gate
  • It will be analyzed in detail sin Chapter 9; here is a brief overview.

25 of 168

Diode-Transistor Logic (DTL) Gate

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 25

On the left, diodes D1 and D2 are both off, whereas D3 and Q1 are on. Node 1 is at 1.3 V:

V1 = VD3 + VBE = 0.6 V + 0.7 V = 1.3 V

The current I through resistor RB and diode D3 becomes the base current IB of transistor Q1. The

value of IB is designed to cause Q1 to saturate so that vO = VCESAT (for example, 0.05 to 0.1 V).

On the right, input B is now at 0 V, corresponding to a logical 0. Diode D2 is conducting,

holding node 1 at 0.6 V. Now diode D3 and transistor Q1 must both be off, because the voltage at

node 1 is now less than the two diode voltage drops required to turn on both D3 and Q1. The base

current of Q1 is now zero; Q1 will be off with IC = 0, and the output voltage will be at +3.3 V,

corresponding to a logical 1. A similar situation holds for the circuit if both inputs are low.

  • The inversion and level-restoration problem associated with diode logic can be solved by adding a diode and transistor to form the diode-transistor logic (DTL) gate
  • It will be analyzed in detail sin Chapter 9; here is a brief overview.

26 of 168

The Ideal Inverter

The ideal inverter has the following voltage transfer characteristic (VTC) and is described by the following symbol

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 26

?

27 of 168

The Ideal Inverter

The ideal inverter has the following voltage transfer characteristic (VTC) and is described by the following symbol

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 27

V+ and V- are the supply rails

VH and VL describe the high and low logic levels at the output

28 of 168

Inverter - circuit

An inverter operating with power supplies at V+ and 0 V can be implemented using a switch with a resistive load.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 28

?

MOSFET

29 of 168

Inverter - circuit

An inverter operating with power supplies at V+ and 0 V can be implemented using a switch with a resistive load.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 29

?

Q-point

30 of 168

Inverter - circuit

An inverter operating with power supplies at V+ and 0 V can be implemented using a switch with a resistive load.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 30

Q-point

31 of 168

Inverter - circuit

An inverter operating with power supplies at V+ and 0 V can be implemented using a switch with a resistive load.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 31

32 of 168

VTC of Non-Ideal Inverter� Voltage Level Definitions

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 32

For the (VTC) of the non-ideal inverter no Vref is defined. There is now an undefined logic state. The points (VIH ,VOL ) and (VIL ,VOH ) are defined as the points on the VTC curve where slope is -1.

33 of 168

Logic Voltage Level Definitions

  • VL – The nominal voltage corresponding to a low-logic

state at the output of a logic gate for vi = VH

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 33

34 of 168

Logic Voltage Level Definitions

  • VL – The nominal voltage corresponding to a low-logic

state at the output of a logic gate for vi = VH

  • VH – The nominal voltage corresponding to a high-logic

state at the output of a logic gate for vi = VL

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 34

35 of 168

Logic Voltage Level Definitions

  • VL – The nominal voltage corresponding to a low-logic

state at the output of a logic gate for vi = VH

  • VH – The nominal voltage corresponding to a high-logic

state at the output of a logic gate for vi = VL

  • VIL – The maximum input voltage that will be recognized

as a low input logic level

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 35

36 of 168

Logic Voltage Level Definitions

  • VL – The nominal voltage corresponding to a low-logic

state at the output of a logic gate for vi = VH

  • VH – The nominal voltage corresponding to a high-logic

state at the output of a logic gate for vi = VL

  • VIL – The maximum input voltage that will be recognized

as a low input logic level

  • VIH – The minimum input voltage that will be recognized

as a high input logic level

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 36

37 of 168

Logic Voltage Level Definitions

  • VL – The nominal voltage corresponding to a low-logic

state at the output of a logic gate for vi = VH

  • VH – The nominal voltage corresponding to a high-logic

state at the output of a logic gate for vi = VL

  • VIL – The maximum input voltage that will be recognized

as a low input logic level

  • VIH – The minimum input voltage that will be recognized

as a high input logic level

  • VOH – The output voltage corresponding to an input

voltage of VIL

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 37

38 of 168

Logic Voltage Level Definitions

  • VL – The nominal voltage corresponding to a low-logic

state at the output of a logic gate for vi = VH

  • VH – The nominal voltage corresponding to a high-logic

state at the output of a logic gate for vi = VL

  • VIL – The maximum input voltage that will be recognized

as a low input logic level

  • VIH – The minimum input voltage that will be recognized

as a high input logic level

  • VOH – The output voltage corresponding to an input

voltage of VIL

  • VOL – The output voltage corresponding to an input

voltage of VIH

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 38

39 of 168

Logic Voltage Level Definitions

  • VL – The nominal voltage corresponding to a low-logic

state at the output of a logic gate for vi = VH

  • VH – The nominal voltage corresponding to a high-logic

state at the output of a logic gate for vi = VL

  • VIL – The maximum input voltage that will be recognized

as a low input logic level

  • VIH – The minimum input voltage that will be recognized

as a high input logic level

  • VOH – The output voltage corresponding to an input

voltage of VIL

  • VOL – The output voltage corresponding to an input

voltage of VIH

Typically, V-=0.

V+=5 for bipolar logic,

V+=1.8, 2.5, 3.3 for MOS logic

V+=1.0-1.5 for ultra low voltage logic

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 39

40 of 168

Noise Margins

  • Noise margins represent “safety margins” that prevent the circuit from producing erroneous outputs in the presence of noisy inputs
  • Noise margins are defined for low and high input levels using the following equations:

NML = VIL – VOL

NMH = VOH – VIH

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 40

41 of 168

Logic Gate Design Goals

  • An ideal logic gate is highly nonlinear and attempts to quantize the input signal to two discrete states. In an actual gate, the designer should attempt to minimize the undefined input region while maximizing noise margins

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 41

42 of 168

Logic Gate Design Goals

  • An ideal logic gate is highly nonlinear and attempts to quantize the input signal to two discrete states. In an actual gate, the designer should attempt to minimize the undefined input region while maximizing noise margins
  • The logic gate is unidirectional. Changes at the output should have no effect on the input.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 42

43 of 168

Logic Gate Design Goals

  • An ideal logic gate is highly nonlinear and attempts to quantize the input signal to two discrete states. In an actual gate, the designer should attempt to minimize the undefined input region while maximizing noise margins
  • The logic gate is unidirectional. Changes at the output should have no effect on the input.
  • Voltage levels at the output of one gate should be compatible with the input levels of a following gate

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 43

44 of 168

Logic Gate Design Goals

  • An ideal logic gate is highly nonlinear and attempts to quantize the input signal to two discrete states. In an actual gate, the designer should attempt to minimize the undefined input region while maximizing noise margins
  • The logic gate is unidirectional. Changes at the output should have no effect on the input.
  • Voltage levels at the output of one gate should be compatible with the input levels of a following gate
  • The output of one gate should be capable of driving the input of more than one gate: the gate should have sufficient fan-out and fan-in capabilities

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 44

45 of 168

Logic Gate Design Goals

  • An ideal logic gate is highly nonlinear and attempts to quantize the input signal to two discrete states. In an actual gate, the designer should attempt to minimize the undefined input region while maximizing noise margins
  • The logic gate is unidirectional. Changes at the output should have no effect on the input.
  • Voltage levels at the output of one gate should be compatible with the input levels of a following gate
  • The output of one gate should be capable of driving the input of more than one gate: the gate should have sufficient fan-out and fan-in capabilities
  • The gate should consume minimal power (and area for ICs) and still operate under the design specifications

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 45

46 of 168

Dynamic Response of Logic Gates

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 46

  • An important characteristic of the logical gates is the response in the time domain
  • To describe the typical pulse signal at the input, we introduce:

The rise and fall times: tf and tr, are measured at the 10% and 90% points on the transitions between the two states as shown by the following expressions:

V10% = VL + 0.1ΔV

V90% = VL + 0.9ΔV = VH – 0.1ΔV

where ΔV is the logic swing given by ΔV = VH - VL

47 of 168

Dynamic Response of Logic Gates

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 47

  • For the input on the top, will the output will be like the signal on the bottom plot?

48 of 168

Dynamic Response of Logic Gates

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 48

  • For the input on the top, will the output will be like the signal on the bottom plot?
  • No, It will be delayed.

49 of 168

Dynamic Response of Logic Gates

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 49

  • For the input on the top, will the output will be like the signal on the bottom plot?
  • No, It will be delayed.
  • Propagation delay describes the amount of time between the input reaching the 50% point and the output reaching the 50% point. The 50% point is described by the following:

  • The high-to-low propagation delay, τPHL, and the low-to-high propagation delay, τPLH, are usually not equal, but can be combined as an average value:

50 of 168

NMOS Logic Design

  • MOS transistors (both PMOS and NMOS) can be combined with resistive loads to create single channel logic gates.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 50

51 of 168

NMOS Logic Design

  • MOS transistors (both PMOS and NMOS) can be combined with resistive loads to create single channel logic gates.

  • In most logic design situations, the power supply voltage is predetermined by either technology reliability constraints or system-level criteria
  • The circuit designer is limited to altering circuit topology and the width-to-length (W/L) ratio since the other factors are dependent upon processing parameters

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 51

52 of 168

NMOS Logic Design

  • MOS transistors (both PMOS and NMOS) can be combined with resistive loads to create single channel logic gates.

  • In most logic design situations, the power supply voltage is predetermined by either technology reliability constraints or system-level criteria
  • The circuit designer is limited to altering circuit topology and the width-to-length (W/L) ratio since the other factors are dependent upon processing parameters

  • We begin our study of MOS logic circuit design by considering the detailed design of the NMOS inverter with the resistor load.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 52

53 of 168

NMOS Logic Design

  • MOS transistors (both PMOS and NMOS) can be combined with resistive loads to create single channel logic gates.

  • In most logic design situations, the power supply voltage is predetermined by either technology reliability constraints or system-level criteria
  • The circuit designer is limited to altering circuit topology and the width-to-length (W/L) ratio since the other factors are dependent upon processing parameters

  • We begin our study of MOS logic circuit design by considering the detailed design of the NMOS inverter with the resistor load.
  • In integrated logic circuits, the load resistor occupies too much silicon area, and is replaced by a second NMOS transistor. This “load device” can be connected in three different configurations called the saturated load, linear load, and depletion-mode load circuits.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 53

54 of 168

NMOS Inverter with a Resistive Load

  • The basic inverter circuit consists of an NMOS switching device MS and a resistor load element.

  • MS is the switching transistor used to “pull” the output high - toward to the power supply VDD

  • The resistor R is used to “pull” the output low, to force vO to VL

  • The size of R and the W/L ratio of MS are the design factors that need to be chosen.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 54

55 of 168

NMOS Inverter with a Resistive Load

When the input voltage is at a low state, vI = VL , MS should be cut off, with iD = 0, so that

vO = VDD = VH

Thus, in this particular logic circuit, the value of VH is set by the power supply voltage VDD = 2.5V.

To ensure that switching transistor MS is cut off when the input is in the low logic state, VL is designed to be 25 to 50 percent of the threshold voltage VTN of switch MS. This choice also provides a reasonable value for noise margin NML .

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 55

The equation for the output voltage (load line): vO = vDS = VDD − iD R

56 of 168

NMOS Inverter with a Resistive Load

When the input voltage is at a low state, vI = VL , MS should be cut off, with iD = 0, so that

vO = VDD = VH

Thus, in this particular logic circuit, the value of VH is set by the power supply voltage VDD = 2.5V.

To ensure that switching transistor MS is cut off when the input is in the low logic state, VL is designed to be 25 to 50 percent of the threshold voltage VTN of switch MS. This choice also provides a reasonable value for noise margin NML .

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 56

When the input voltage is at a high state, vI = VH , switch MS is set in the triode region by the design of W/L parameter and load line to ensure that vO = VL.

The equation for the output voltage (load line): vO = vDS = VDD − iD R

57 of 168

NMOS with Resistive Load�Design Example (1)

  • Design a NMOS resistive load inverter for
    • VDD = 3.3 V
    • P = 0.1 mW when VL = 0.2 V
    • Kn = 60 μA/V2
    • VTN = 0.75 V

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 57

  • Find the value of the load resistor R and the W/L ratio of the switching transistor MS

58 of 168

NMOS with Resistive Load�Design Example (2)

  • First the value of the current through the resistor (for vO = VL) must be determined by using the following:

  • The value of the resistor can now be found by the following, which assumes that the transistor is on and the output is low:

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 58

59 of 168

NMOS with Resistive Load�Design Example (3)

  • For vI = VH = 3.3 V, and vO = VL = 0.2V, the transistor’s drain-source voltage �VDS =VL will be less than VGS -VTN=VH -VTN

  • Therefore it will be operating in the triode region. Using the triode region equation for the MOSFET, the W/L ratio can be found:

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 59

60 of 168

On-Resistance of the Switching Device

  • The NMOS resistive load inverter can be thought of as a resistive voltage divider when the output is low:

where the On-Resistance Ron of the NMOS can be calculated with the following expression:

  • Note : �1. Ron should be kept small compared to R to ensure that VL remains low. �2. Its value is nonlinear, since it has a dependence on vDS.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 60

61 of 168

Noise Margin Analysis

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 61

The following equations (base on the calculation of the derivatives of vO =VDD iDR with respect to vI ) can be used to determine the various parameters needed to determine the noise margin of NMOS resistive load inverters

62 of 168

Load Resistor Issue

  • For completely integrated circuits, R must be implemented on chip using the shown structure.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 62

63 of 168

Load Resistor Issue

  • For completely integrated circuits, R must be implemented on chip using the shown structure.

  • If the resistor width W were made a line width of 1μm (minimum feature size F), then the length L would be 2880 μm, and the area would be 2880 μm2.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 63

64 of 168

Load Resistor Issue

  • For completely integrated circuits, R must be implemented on chip using the shown structure.

  • If the resistor width W were made a line width of 1μm (minimum feature size F), then the length L would be 2880 μm, and the area would be 2880 μm2.

  • For the transistor MS, W/L was found to be 2.22/1. If the device channel length is equal to the minimum feature size of 1 μm, then the gate area of the NMOS is only 2.22 μm2. Thus, the load resistor would consume more than 1000 times the area of the switching transistor MS.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 64

65 of 168

Load Resistor Issue

  • For completely integrated circuits, R must be implemented on chip using the shown structure.

  • If the resistor width W were made a line width of 1μm (minimum feature size F), then the length L would be 2880 μm, and the area would be 2880 μm2.

  • For the transistor MS, W/L was found to be 2.22/1. If the device channel length is equal to the minimum feature size of 1 μm, then the gate area of the NMOS is only 2.22 μm2. Thus, the load resistor would consume more than 1000 times the area of the switching transistor MS.

  • This is simply not an acceptable utilization of area in IC design.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 65

66 of 168

Load Resistor Issue

  • For completely integrated circuits, R must be implemented on chip using the shown structure.

  • If the resistor width W were made a line width of 1μm (minimum feature size F), then the length L would be 2880 μm, and the area would be 2880 μm2.

  • For the transistor MS, W/L was found to be 2.22/1. If the device channel length is equal to the minimum feature size of 1 μm, then the gate area of the NMOS is only 2.22 μm2. Thus, the load resistor would consume more than 1000 times the area of the switching transistor MS.

  • This is simply not an acceptable utilization of area in IC design.

  • The solution to this problem is to replace the load resistor with a transistor.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 66

67 of 168

Using Transistors in Place of a Resistor

NMOS load transistor with

a) gate connected to the source

b) gate connected to ground

c) gate connected to VDD

d) gate biased to linear region

e) a depletion-mode NMOSFET

f) gate grounded PMOS load

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 67

We are replacing a 2-terminal device with a 3(4)-terminal device and need to figure our what to do with the gate (since drain and source are conducting).

68 of 168

Using Transistors in Place of a Resistor

NMOS load with

a) gate connected to the source

b) gate connected to ground

c) gate connected to VDD

d) gate biased to linear region

e) a depletion-mode NMOSFET

f) gate grounded PMOS load

Note that a) and b) are not useful, since with 0 at the gate, the enhancement mode NMOS is not conducting.

We’ll consider other methods starting from (c)

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 68

We are replacing a 2-terminal device with a 3(4)-terminal device and need to figure our what to do with the gate (since drain and source are conducting).

69 of 168

NMOS Saturated Load Inverter

Schematic for a NMOS

saturated load inverter

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 69

The substrate is common and grounded:

It’s the (c) on diagram, called saturated because ML is in saturation region:

vDS = vGS 🡪 vDS vGS VTN for VTN ≥ 0

70 of 168

NMOS Saturated Load Inverter

Schematic for a NMOS

saturated load inverter

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 70

The substrate is common and grounded:

🡪 vSB=0 for MS .

It’s the (c) on diagram, called saturated because ML is in saturation region:

vDS = vGS 🡪 vDS vGS VTN for VTN ≥ 0

71 of 168

NMOS Saturated Load Inverter

Schematic for a NMOS

saturated load inverter

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 71

The substrate is common and grounded:

🡪 vSB=0 for MS .

🡪 vSB=vO for ML ,

It’s the (c) on diagram, called saturated because ML is in saturation region:

vDS = vGS 🡪 vDS vGS VTN for VTN ≥ 0

72 of 168

NMOS Saturated Load Inverter

Schematic for a NMOS

saturated load inverter

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 72

The substrate is common and grounded:

🡪 vSB=0 for MS .

🡪 vSB=vO for ML ,

thus VTN is generally different for both.

It’s the (c) on diagram, called saturated because ML is in saturation region:

vDS = vGS 🡪 vDS vGS VTN for VTN ≥ 0

73 of 168

NMOS Saturated Load Inverter-Design Strategy

  • Given VDD, VL, and the power level, find IDD from VDD and power.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 73

74 of 168

NMOS Saturated Load Inverter-Design Strategy

  • Given VDD, VL, and the power level, find IDD from VDD and power.

  • Assume MS off, and find high output voltage level VH

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 74

75 of 168

NMOS Saturated Load Inverter-Design Strategy

  • Given VDD, VL, and the power level, find IDD from VDD and power.

  • Assume MS off, and find high output voltage level VH

  • Use the value of VH for the gate voltage of MS and calculate (W/L)S of the switching transistor based on the design values of IDD and VL

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 75

76 of 168

NMOS Saturated Load Inverter-Design Strategy

  • Given VDD, VL, and the power level, find IDD from VDD and power.

  • Assume MS off, and find high output voltage level VH

  • Use the value of VH for the gate voltage of MS and calculate (W/L)S of the switching transistor based on the design values of IDD and VL

  • Use the value of VH for the gate voltage of MS and find (W/L)L of the load transistor based on IDD and VL

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 76

77 of 168

NMOS Saturated Load Inverter-Design Strategy

  • Given VDD, VL, and the power level, find IDD from VDD and power.

  • Assume MS off, and find high output voltage level VH

  • Use the value of VH for the gate voltage of MS and calculate (W/L)S of the switching transistor based on the design values of IDD and VL

  • Use the value of VH for the gate voltage of MS and find (W/L)L of the load transistor based on IDD and VL

  • Check the operating region assumptions of MS and ML for vo = VL

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 77

78 of 168

NMOS Saturated Load Inverter - Example

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 78

Design an saturated load inverter given the following specifications:

79 of 168

NMOS Saturated Load Inverter - Example

  • First, set vi = VH ,vO = VL, MS - on, and find the value of the current through the resistor using the power :

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 79

Design an saturated load inverter given the following specifications:

LIN

SAT

80 of 168

NMOS Saturated Load Inverter - Example

  • First, set vi = VH ,vO = VL, MS - on, and find the value of the current through the resistor using the power :

  • Now set vi = VL ,vO = VH, MS - off, ML - off and then, find VH (since now, VH is not equal VDD.) Why?

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 80

Design an saturated load inverter given the following specifications:

81 of 168

NMOS Saturated Load Inverter - Example

  • First, set vi = VH ,vO = VL, MS - on, and find the value of the current through the resistor using the power :

  • Now set vi = VL ,vO = VH, MS - off, ML - off and then, find VH (since now, VH is not equal VDD.) Why?
  • When MS turns off from the on state, the current IDD will stop when the value of vGSL will reach VTNL, (vGS > VTN, for IDD to exist)

vGSL = VDD vO = VTN 🡪 VH = VDD VTN .

Thus, taking into account the body effect (γ) and surface potential parameter (φF):

(The output cannot exceed the positive power supply voltage.)

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 81

Design an saturated load inverter given the following specifications:

82 of 168

NMOS Saturated Load Inverter - Example

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 82

  • Now we can find W/L for both transistors MS and then ML.
  • Set vi = VH , vo = VL: �MS is in the triode region (on) �ML is in saturation (on).

Check the operating region. For the switch, VGS − VTN = 2.11 − 0.75 = 1.36 V, which is greater than �VDS = 0.2 V, and the triode region assumption is correct. For the load device, VGS − VTN =3.1 − 0.81 = 2.29 V and is less than VDS = 3.1 V, which is consistent with the saturation region of operation.

LIN

SAT

83 of 168

NMOS Saturated Load Inverter -Noise Margin

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 83

From the PSPICE simulation typical noise margins are:

NMH = VOH - VIH = 1.55 - 1.42 = 0.33 V

NML = VIL - VOL = 0.90 - 0.38 = 0.22 V

The detailed analysis of the noise margins for saturated load inverter is quite tedious. Instead, the PSPICE simulation can be used. Example:

84 of 168

NMOS Inverter with a Linear Load

  • This inverter has a load transistor that is biased with VGG defined by the following:

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 84

85 of 168

NMOS Inverter with a Linear Load

  • This inverter has a load transistor that is biased with VGG defined by the following:

  • This causes the load transistor to operate in the linear region:

vGSL VTNL = VGG voVTNL

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 85

86 of 168

NMOS Inverter with a Linear Load

  • This inverter has a load transistor that is biased with VGG defined by the following:

  • This causes the load transistor to operate in the linear region:

vGSL VTNL = VGG vo VTNL

VDD + VTNL − voVTNL

VDD − vo = vDSL

  • For this value of VGG, the output voltage in the high output state VH is equal to VDD:

MS -off, iD=0 🡪 vDSL=0 (linear region) 🡪

vDSL= VDD − vo = VDD − VH =0 🡪 VH = VDD

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 86

87 of 168

NMOS Inverter with a Linear Load

  • This inverter has a load transistor that is biased with VGG defined by the following:

  • This causes the load transistor to operate in the linear region:

vGSL VTNL = VGG vo VTNL

VDD + VTNL − voVTNL

VDD − vo = vDSL

  • For this value of VGG, the output voltage in the high output state VH is equal to VDD:

MS -off, iD=0 🡪 vDSL=0 (linear region) 🡪

vDSL= VDD − vo = VDD − VH =0 🡪 VH = VDD

  • The W/L ratios for MS and ML can be calculated as in previous section ( easier, since VH is equal to VDD)

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 87

88 of 168

NMOS Inverter with a Depletion-mode Load

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 88

  • The saturated load and linear load circuits were used when all the devices had the same threshold voltages in early NMOS and PMOS technologies.
  • However, once ion-implantation technology was perfected, it became possible to selectively adjust the threshold of the load transistors to alter their characteristics to become those of NMOS depletion mode devices with VTN < 0.

D

E

89 of 168

NMOS Inverter with a Depletion-mode Load

  • When MS is off (vI = VL ), the current� iD =0, hence from the linear region (which is now possible even for vGSL =0 because of depletion mode) we have vDSL =0 (< vGSL - VTN >0) and output voltage rises to VH = VDD

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 89

  • The saturated load and linear load circuits were used when all the devices had the same threshold voltages in early NMOS and PMOS technologies.
  • However, once ion-implantation technology was perfected, it became possible to selectively adjust the threshold of the load transistors to alter their characteristics to become those of NMOS depletion mode devices with VTN < 0.

D

E

LIN

iD =0

90 of 168

NMOS Inverter with a Depletion-mode Load

  • When MS is off (vI = VL ), the current� iD =0, hence from the linear region (which is now possible even for vGSL =0 because of depletion mode) we have vDSL =0 (< vGSL - VTN >0) and output voltage rises to VH = VDD

  • For MS on and conducting (vI = VH ), �vO = VL, ML is designed to be saturated (vDSL = 2.5 - vO > vGSL - VTN ) and MS , as usual, in the triode region.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 90

  • The saturated load and linear load circuits were used when all the devices had the same threshold voltages in early NMOS and PMOS technologies.
  • However, once ion-implantation technology was perfected, it became possible to selectively adjust the threshold of the load transistors to alter their characteristics to become those of NMOS depletion mode devices with VTN < 0.

D

E

LIN

SAT

91 of 168

  • Then we set input to VH a(both transistors on) and find W/L

  • To find (W/L)L given iDL (which we find from power requirements) we use the saturation mode for ML with vGS =0 :

  • To find (W/L)S where VH = VDD, use the same technique as used for the resistor load inverter:

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 91

NMOS Inverter with a Depletion-mode Load

92 of 168

NMOS Inverter with a Depletion-mode Load - Noise Margins

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 92

From PSPICE simulation, typical noise margins are:

NMH = VOH - VIH = 2.35 - 1.45 = 0.90 V

NML = VIL - VOL = 0.93 - 0.50 = 0.43 V

The detailed analysis of the noise margins for saturated load inverter is quite tedious. Instead, the PSPICE simulation can be used. Example:

93 of 168

Pseudo NMOS Inverter

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 93

  • It is possible to replace the load resistor with a PMOS transistor with its source connected to VDD, its drain connected to the output node and its gate grounded.
  • This circuit is called pseudo NMOS since circuit operates very similar to NMOS although has a PMOS in it.

LIN

SAT

  • For vo = VL (MS is on), ML is in the saturation region.

94 of 168

Pseudo NMOS Inverter

  • For vo = VL (MS is on), ML is in the saturation region.

  • For vo = VH (MS is off) ML is in the triode region (i=0, �0=VDS < |VGS - VTN |=|2.5 - VTN |.

  • For this circuit, VH = VDD because ML is in the linear triode region and VDS =0 when MS is off.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 94

  • It is possible to replace the load resistor with a PMOS transistor with its source connected to VDD, its drain connected to the output node and its gate grounded.
  • This circuit is called pseudo NMOS since circuit operates very similar to NMOS although has a PMOS in it.

LIN

95 of 168

Pseudo NMOS Inverter

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 95

  • It is possible to replace the load resistor with a PMOS transistor with its source connected to VDD, its drain connected to the output node and its gate grounded.
  • This circuit is called pseudo NMOS since circuit operates very similar to NMOS although has a PMOS in it.

LIN

  • For vo = VL (MS is on), ML is in the saturation region.

  • For vo = VH (MS is off) ML is in the triode region (i=0, �0=VDS < |VGS - VTN |=|2.5 - VTN |.

  • For this circuit, VH = VDD because ML is in the linear triode region and VDS =0 when MS is off.

96 of 168

Pseudo NMOS Inverter Design - Example

  • Design an pseudo NMOS inverter given the following specifications:

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 96

97 of 168

Pseudo NMOS Inverter Design - Example

  • Design an pseudo NMOS inverter given the following specifications:

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 97

  • First calculate (W/L)P to limit inverter current to 80 uA.

98 of 168

Pseudo NMOS Inverter Design - Example

  • Design an pseudo NMOS inverter given the following specifications:

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 98

  • First calculate (W/L)P to limit inverter current to 80 uA.

MS is on, ML is in saturation:

LIN

SAT

99 of 168

Pseudo NMOS Inverter Design - Example

  • Now calculate (W/L)S for the same condition and current of 80 uA.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 99

LIN

SAT

100 of 168

Pseudo NMOS Inverter - Noise Margins

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 100

From SPICE simulation, typical noise margins are:

NMH = VOH - VIH = 2.33 - 1.58 = 0.75 V

NML = VIL - VOL = 0.95 - 0.49 = 0.46 V

101 of 168

NMOS Inverter Summary

  • Resistive load inverter takes up too much area for and IC design.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 101

102 of 168

NMOS Inverter Summary

  • Resistive load inverter takes up too much area for and IC design.

  • The saturated load configuration is the simplest design, but VH never reaches VDD, and it has a slow switching speed.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 102

103 of 168

NMOS Inverter Summary

  • Resistive load inverter takes up too much area for and IC design.

  • The saturated load configuration is the simplest design, but VH never reaches VDD, and it has a slow switching speed.

  • The linear load inverter fixes the speed and logic level issues, but it requires an additional power supply for the load gate.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 103

104 of 168

NMOS Inverter Summary

  • Resistive load inverter takes up too much area for and IC design.

  • The saturated load configuration is the simplest design, but VH never reaches VDD, and it has a slow switching speed.

  • The linear load inverter fixes the speed and logic level issues, but it requires an additional power supply for the load gate.

  • The depletion-mode NMOS load requires the most processing steps, but needs small area to achieve the high speed, VH = VDD, and best combination of noise margins.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 104

105 of 168

NMOS Inverter Summary

  • Resistive load inverter takes up too much area for and IC design.

  • The saturated load configuration is the simplest design, but VH never reaches VDD, and it has a slow switching speed.

  • The linear load inverter fixes the speed and logic level issues, but it requires an additional power supply for the load gate.

  • The depletion-mode NMOS load requires the most processing steps, but needs small area to achieve the high speed, VH = VDD, and best combination of noise margins.

  • The Pseudo NMOS inverter offers the best speed with the lowest area.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 105

106 of 168

Typical Inverter Characteristics

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 106

Inverter w/ Resistor Load

Saturated Load Inverter

Linear Load Inverter

Inverter w/ Depletion-Mode Load

Pseudo-NMOS Inverter

VH (V)

2.50

1.55

2.50

2.50

2.50

VL (V)

0.20

0.20

0.20

0.20

0.20

NML (V)

0.25

0.25

0.12

0.43

0.46

NMH (V)

0.96

0.33

0.96

0.90

0.75

Relative Area

2880

6.39

7.94

4.03

3.33

107 of 168

Reference of NMOS Inverter Designs

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 107

108 of 168

NOR Gates

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 108

  • To obtain the complete logical family we need inverter and AND or OR function, or just one NAND or NOR element.

109 of 168

NOR Gates

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 109

  • To obtain the complete logical family we need inverter and AND or OR function, or just one NAND or NOR element.
  • This type of element can be easily created by replacing one switch with two switches in parallel for NOR or in series for NAND.

110 of 168

NOR Gates

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 110

  • To obtain the complete logical family we need inverter and AND or OR function, or just one NAND or NOR element.
  • This type of element can be easily created by replacing one switch with two switches in parallel for NOR or in series for NAND.

111 of 168

NOR Gates

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 111

  • To obtain the complete logical family we need inverter and AND or OR function, or just one NAND or NOR element.
  • This type of element can be easily created by replacing one switch with two switches in parallel for NOR or in series for NAND.

112 of 168

NOR Gates

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 112

  • To obtain the complete logical family we need inverter and AND or OR function, or just one NAND or NOR element.
  • This type of element can be easily created by replacing one switch with two switches in parallel for NOR or in series for NAND.

113 of 168

NOR Gates

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 113

  • To obtain the complete logical family we need inverter and AND or OR function, or just one NAND or NOR element.
  • This type of element can be easily created by replacing one switch with two switches in parallel for NOR or in series for NAND.

114 of 168

NOR Gates

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 114

  • To obtain the complete logical family we need inverter and AND or OR function, or just one NAND or NOR element.
  • This type of element can be easily created by replacing one switch with two switches in parallel for NOR or in series for NAND.

115 of 168

NOR Gates

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 115

  • To obtain the complete logical family we need inverter and AND or OR function, or just one NAND or NOR element.
  • This type of element can be easily created by replacing one switch with two switches in parallel for NOR or in series for NAND.

  • The worst condition for the output low (to have it as low as possible) is when only one switch is closed (since Ron for both are in parallel).

116 of 168

NOR Gates

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 116

  • To obtain the complete logical family we need inverter and AND or OR function, or just one NAND or NOR element.
  • This type of element can be easily created by replacing one switch with two switches in parallel for NOR or in series for NAND.

  • The worst condition for the output low (to have it as low as possible) is when only one switch is closed (since Ron for both are in parallel).
  • Thus the M/L ratio should be chosen the same as for one switch.

117 of 168

NOR Gates

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 117

  • To obtain the complete logical family we need inverter and AND or OR function, or just one NAND or NOR element.
  • This type of element can be easily created by replacing one switch with two switches in parallel for NOR or in series for NAND.

  • The worst condition for the output low (to have it as low as possible) is when only one switch is closed (since Ron for both are in parallel).
  • Thus the M/L ratio should be chosen the same as for one switch.
  • When both are closed, the VL at the output will be even lower then for one.

118 of 168

NAND Gates

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 118

119 of 168

NAND Gates

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 119

120 of 168

NAND Gates

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 120

121 of 168

NAND Gate Device Size Selection

  • Consider the equivalent of switching transistors in the ‘on” state as Ron.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 121

122 of 168

NAND Gate Device Size Selection

  • Consider the equivalent of switching transistors in the ‘on” state as Ron.
  • To keep the low voltage level comparable with simple inverter, the desired Ron of MA and MB must be 0.5Ron of MS switch.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 122

123 of 168

NAND Gate Device Size Selection

  • Consider the equivalent of switching transistors in the ‘on” state as Ron.
  • To keep the low voltage level comparable with simple inverter, the desired Ron of MA and MB must be 0.5Ron of MS switch.
  • This can be accomplished by approximately doubling (W/L)A and (W/L)B

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 123

124 of 168

NAND Gate Device Size Selection

  • Consider the equivalent of switching transistors in the ‘on” state as Ron.
  • To keep the low voltage level comparable with simple inverter, the desired Ron of MA and MB must be 0.5Ron of MS switch.
  • This can be accomplished by approximately doubling (W/L)A and (W/L)B

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 124

125 of 168

NAND Gate Device Size Selection (cont)

  • Two sources of error that arise are that 1) VSB’s and 2) VGS’s of the two transistors are not equal 🡪 the values of VTN should be adjusted (see problem 6.28)

  • The technique used to calculate the size of the load transistor for the NAND gate is exactly the same as for the depletion-load inverter.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 125

126 of 168

  • An advantage of NMOS technology is that it is simple to design complex logic functions based on the NOR and NAND gates.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 126

Complex NMOS Logic Design

127 of 168

  • An advantage of NMOS technology is that it is simple to design complex logic functions based on the NOR and NAND gates.

  • The typical problem that arises is the transistor sizing.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 127

Complex NMOS Logic Design

128 of 168

  • An advantage of NMOS technology is that it is simple to design complex logic functions based on the NOR and NAND gates.

  • The typical problem that arises is the transistor sizing.

  • There are two ways to find the W/L ratios of the switching transistors
    1. Use the worst-case path (most devices in series) and choose the W/L ratios to achieve the value of Ron equivalent to that of the inverter

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 128

Complex NMOS Logic Design

129 of 168

  • An advantage of NMOS technology is that it is simple to design complex logic functions based on the NOR and NAND gates.

  • The typical problem that arises is the transistor sizing.

  • There are two ways to find the W/L ratios of the switching transistors
    1. Use the worst-case path (most devices in series) and choose the W/L ratios to achieve the value of Ron equivalent to that of the inverter
    2. Partitioning the circuit into a series sub-networks, and make the equivalent on-resistances equal

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 129

Complex NMOS Logic Design

130 of 168

Complex NMOS Logic Design (1)

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 130

Example 1. Design a logic function:

Y = A + B(C + D)

Base inverter:

131 of 168

Complex NMOS Logic Design (1)

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 131

Example 1. Design a logic function:

Y = A + B(C + D)

Base inverter:

132 of 168

Complex NMOS Logic Design (1)

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 132

Example 1. Design logic function:

Y = A + B(C + D)

Base inverter:

133 of 168

Complex NMOS Logic Design (1)

  • Referring to the base inverter design, we have for the MS W/L=2.22/1 in order to maintain the low output of 0.20V

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 133

Example 1. Design logic function:

Y = A + B(C + D)

Base inverter:

134 of 168

Complex NMOS Logic Design (1)

  • Referring to the base inverter design, we have for the MS W/L=2.22/1 in order to maintain the low output of 0.20V
  • We’ll have the same for MA (in parallel).

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 134

Example 1. Design logic function:

Y = A + B(C + D)

Base inverter:

135 of 168

Complex NMOS Logic Design (1)

  • Referring to the base inverter design, we have for the MS W/L=2.22/1 in order to maintain the low output of 0.20V
  • We’ll have the same for MA (in parallel).
  • In another parallel branch we have a series connection, so MB and combination of MC and MD should have double width W/L=4.44/1

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 135

Example 1. Design logic function:

Y = A + B(C + D)

Base inverter:

136 of 168

Complex NMOS Logic Design (1)

  • Referring to the base inverter design, we have for the MS W/L=2.22/1 in order to maintain the low output of 0.20V
  • We’ll have the same for MA (in parallel).
  • In another parallel branch we have a series connection, so MB and combination of MC and MD should have double width W/L=4.44/1
  • Finally, MC and MD are in parallel, so their W/L does not change.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 136

Example 1. Design logic function:

Y = A + B(C + D)

Base inverter:

137 of 168

Complex NMOS Logic Design (2)

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 137

Example 2. Design logic function:

Y = A B + CDB = (A+CD)B

Base inverter :

138 of 168

Complex NMOS Logic Design (2)

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 138

Example 2. Design logic function:

Y = A B + CDB = (A+CD)B

Base inverter :

  • The figure on the left shows the worst case method. The longest path is 3 transistors in series, so (W/L)=6.66 /1 is the size for each element in series.

139 of 168

Complex NMOS Logic Design (2)

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 139

Example 2. Design logic function:

Y = A B + CDB = (A+CD)B

Base inverter :

  • The figure on the left shows the worst case method. The longest path is 3 transistors in series, so (W/L)=6.66 /1 is the size for each element in series. One MA is in parallel with two transistors, so its W/L is halved.

140 of 168

Complex NMOS Logic Design (2)

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 140

Example 2. Design logic function:

Y = A B + CDB = (A+CD)B

Base inverter :

  • The figure on the left shows the worst case method. The longest path is 3 transistors in series, so (W/L)=6.66 /1 is the size for each element in series. One MA is in parallel with two transistors, so its W/L is halved.
  • The figure on the right shows the partitioning technique : the longest path is 2, so (W/L)= 4.44/1.

141 of 168

Complex NMOS Logic Design (2)

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 141

Example 2. Design logic function:

Y = A B + CDB = (A+CD)B

Base inverter :

  • The figure on the left shows the worst case method. The longest path is 3 transistors in series, so (W/L)=6.66 /1 is the size for each element in series. One MA is in parallel with two transistors, so its W/L is halved.
  • The figure on the right shows the partitioning technique : the longest path is 2, so (W/L)= 4.44/1. However, now we put 2 series transistors MC and MD in parallel with MA , so their with is doubled.

142 of 168

Static Power Dissipation

  • Static Power Dissipation is the average power dissipation of the logic gate for the high and low logic states. If the duty cycle is 50% it is:

  • IDDH = current in the circuit for vO = VH
  • IDDL = current in the circuit for vO = VL

  • Since IDDH = 0 for vO = VH :

  • If the duty cycle is different, 2 in the denominator should be changed appropriatly.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 142

143 of 168

Dynamic Power Dissipation

  • Dynamic Power Dissipation is the power dissipated during the process of charging and discharging the load capacitance connected to the logic gate

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 143

Discharging

Charging

?

?

144 of 168

Dynamic Power Dissipation

  • Dynamic Power Dissipation is the power dissipated during the process of charging and discharging the load capacitance connected to the logic gate

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 144

Discharging

Charging

RL

145 of 168

Dynamic Power Dissipation

  • Dynamic Power Dissipation is the power dissipated during the process of charging and discharging the load capacitance connected to the logic gate

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 145

Discharging

Charging

RS

146 of 168

Dynamic Power Dissipation

  • Dynamic Power Dissipation is the power dissipated during the process of charging and discharging the load capacitance connected to the logic gate

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 146

Discharging

Charging

RL

RS

147 of 168

Dynamic Power Dissipation

  • Based on the energy equation, the energy delivered to the capacitor can be found by:

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 147

148 of 168

Dynamic Power Dissipation

  • Based on the energy equation, the energy delivered to the capacitor can be found by:

  • The energy stored by the capacitor is:

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 148

149 of 168

Dynamic Power Dissipation

  • Based on the energy equation, the energy delivered to the capacitor can be found by:

  • The energy stored by the capacitor is:

  • The energy lost in the resistive elements is given by:

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 149

150 of 168

Dynamic Power Dissipation

  • Based on the energy equation, the energy delivered to the capacitor can be found by:

  • The energy stored by the capacitor is:

  • The energy lost in the resistive elements is given by:

  • The total energy lost in the first charging and discharging of the capacitor through resistive elements is given by:

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 150

151 of 168

Dynamic Power Dissipation

  • Based on the energy equation, the energy delivered to the capacitor can be found by:

  • The energy stored by the capacitor is:

  • The energy lost in the resistive elements is given by:

  • The total energy lost in the first charging and discharging of the capacitor through resistive elements is given by:

  • Thus, if the logic circuit is switching at a frequency f, the dynamic power dissipation is given by:

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 151

152 of 168

Dynamic Power Dissipation

  • Based on the energy equation, the energy delivered to the capacitor can be found by:

  • The energy stored by the capacitor is:

  • The energy lost in the resistive elements is given by:

  • The total energy lost in the first charging and discharging of the capacitor through resistive elements is given by:

  • Thus, if the logic circuit is switching at a frequency f, the dynamic power dissipation is given by:

  • In the high speed logic circuits this component becomes dominant and constitutes the primary source of power dissipation in CMOS logic gates.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 152

153 of 168

Power Scaling in MOS Logic

  • With the transistor load, the current in both the load and switch transistors is determined by the similar expressions, e.g.:

  • By reducing the W/L of the load and switching transistors of an inverter, it is possible to reduce the power dissipation by the same factor without sacrificing VH and VL.
  • This same concept works for increasing the power which will increase the dynamic response.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 153

154 of 168

Power Scaling in MOS Logic

  1. Original Saturated Load Inverter
  2. Saturated Load inverter designed to operate at 1/3 the power
  3. Original Depletion-Mode Inverter
  4. Depletion-mode inverter designed to operate at twice the power

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 154

155 of 168

Dynamic Behavior�Capacitance in MOS Logic Circuits

  • The MOS device has capacitances CSB, CGS, CDB, and CGD that need to be considered for dynamic response analysis.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 155

156 of 168

Dynamic Behavior�Capacitance in MOS Logic Circuits

  • The MOS device has capacitances CSB, CGS, CDB, and CGD that need to be considered for dynamic response analysis.
  • The capacitances seen at a node can be lumped together.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 156

157 of 168

Dynamic Behavior�Capacitance in MOS Logic Circuits

  • The MOS device has capacitances CSB, CGS, CDB, and CGD that need to be considered for dynamic response analysis.
  • The capacitances seen at a node can be lumped together.
  • DC loading constraints are not usually important for MOS logic circuits since they normally drive capacitive loads (i.e. the gate of a MOS)

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 157

158 of 168

Dynamic Behavior�Capacitance in MOS Logic Circuits

  • The MOS device has capacitances CSB, CGS, CDB, and CGD that need to be considered for dynamic response analysis.
  • The capacitances seen at a node can be lumped together.
  • DC loading constraints are not usually important for MOS logic circuits since they normally drive capacitive loads (i.e. the gate of a MOS)
  • As the number of gates the output (fan-out) of a logic device has to drive increases, the load capacitance increases, and the time response degrades.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 158

159 of 168

Dynamic Behavior�Capacitance in MOS Logic Circuits

  • The MOS device has capacitances CSB, CGS, CDB, and CGD that need to be considered for dynamic response analysis.
  • The capacitances seen at a node can be lumped together.
  • DC loading constraints are not usually important for MOS logic circuits since they normally drive capacitive loads (i.e. the gate of a MOS)
  • As the number of gates the output (fan-out) of a logic device has to drive increases, the load capacitance increases, and the time response degrades.
  • This notion implies that the fan-out that a logic circuit can drive will be limited by time delay tolerances of the circuit.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 159

160 of 168

Dynamic Response of the NMOS Inverter with a Resistive Load

  • Rise time is defined as the time for the output to change from 10% to 90% of the complete transition.

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 160

Closing switch: vI high 🡪 low

Charging capacitor

161 of 168

Dynamic Response of the NMOS Inverter with a Resistive Load

Delay time τPLH is defined as the time required for the output to change 50: vOPLH) = VI + 0.5ΔV, which yields :

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 161

where R and C are the resistance and capacitance seen at the output.

For high-to-low transitions, the on resistance of MS, RonS, varies during the transition but an effective R, Reff, can be approximated as 1.7 RonS.

For low-to-high transitions, R is the load resistance (MS is off):

162 of 168

Pseudo NMOS Inverter - Dynamic Response

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 162

  • The expressions for the propagation delays are the same as for resistive

Closing switch: vI high 🡪 low

Opening switch: vI low 🡪 high

163 of 168

Pseudo NMOS Inverter - Dynamic Response Example

  • Find tf, tr, τPHL, τPLH for a pseudo NMOS inverter where:
    • (W/L)S = 2.22/1 and (W/L)L = 1.11/1
    • CLOAD = 1 pF
    • VTN = 0.6 V and VTP = -0.6 V
    • VDD = 2.5 V
    • Kn = (2.06)(100 × 10-6 A/V2)
    • KL = (1.11)(40 × 10-6 A/V2)

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 163

164 of 168

Pseudo NMOS Inverter - Dynamic Response Example

  • Find tf, tr, τPHL, τPLH for a pseudo NMOS inverter where:
    • (W/L)S = 2.22/1 and (W/L)L = 1.11/1
    • CLOAD = 1 pF
    • VTN = 0.6 V and VTP = -0.6 V
    • VDD = 2.5 V
    • Kn = (2.06)(100 × 10-6 A/V2)
    • KL = (1.11)(40 × 10-6 A/V2)

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 164

  • First find the on-resistances of the two switch and load devices

165 of 168

Pseudo NMOS Inverter - Dynamic Response Example

  • Find tf, tr, τPHL, τPLH for a pseudo NMOS inverter where:
    • (W/L)S = 2.22/1 and (W/L)L = 1.11/1
    • CLOAD = 1 pF
    • VTN = 0.6 V and VTP = -0.6 V
    • VDD = 2.5 V
    • Kn = (2.06)(100 × 10-6 A/V2)
    • KL = (1.11)(40 × 10-6 A/V2)

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 165

  • First find the on-resistances of the two switch and load devices
  • Now calculate delays from the Reff approximations:

166 of 168

Comparison of Load Devices

The simulation results for all five inverters. The current has been normalized to 80 μA for vo = VOL= 0.20 V

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 166

  • The saturated load devices have the poorest fall time since they have the lowest load current delivery
  • The saturated load devices also reach zero current before the output reaches 2.5 V
  • The linear load device is faster than the saturated load device, but about equal to the resistive load speed.
  • The fastest τPLH is for the pseudo NMOS device as a result of the PMOS device

167 of 168

PMOS Logic

  • PMOS logic circuits predated NMOS logic circuit, but were replaced since they operate at slower speeds

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 167

Resistive Load

Saturated Load

Linear Load

Depletion-Mode Load

Pseudo PMOS

168 of 168

PMOS NAND and NOR Gates

NJIT ECE271 Dr.Serhiy Levkov

Topic 7 - 168

NOR Gate

NAND Gate