Logic Fe Tcom

116
7 Chapter Lo g ic Circ uits 1. State the advantages of digital technology compared to analog technology. 2. Understand the terminology of digital circuits. 3. Convert numbers between decimal, binary, and other forms.

Transcript of Logic Fe Tcom

Page 1: Logic Fe Tcom

7C h a p t e r L o g ic C ir c u it s

1. State the advantages of digital technology compared to analog technology.

2. Understand the terminology of digital circuits.

3. Convert numbers between decimal, binary, and

other forms.

Page 2: Logic Fe Tcom

5. Understand the binary arithmetic operations used in computers and other digital systems.

6. Interconnect logic gates of various types to implement a given logic function.

7. Use Karnaugh maps to minimize the number of gates needed to implement a logic function.

8. Understand how gates are connected together to form flip-flops and registers.

Page 3: Logic Fe Tcom
Page 4: Logic Fe Tcom
Page 5: Logic Fe Tcom
Page 6: Logic Fe Tcom

A d v a n t a g e s o f t h e D ig it a l A p p r o a c h

Provided that the noise amplitude is not too large, the logic values represented by a digital signal can still be determined after noise is added.

With modern IC technology, it is possible to manufacture exceedingly complex digital circuits economically containing 10s of millions of transistors.

Page 7: Logic Fe Tcom

Definitions

P o s it iv e v e r s u s N e g a t iv eL o g ic

D ig it a l W o r d s

In p a r a lle l t r a n s m is s io n , an n-bit word is transferred on n wires, one wire for each bit, plus a common or ground wire. In

s e r ia l t r a n s m is s io n , the successive bits of the word are transferred one after the other with a single pair of wires.

Page 8: Logic Fe Tcom

B in a r y N u m b e r s

101210 1021031041072.743 −×+×+×+×=

1010123

2 5.1321212021271.1101 =×+×+×+×+×= −

Page 9: Logic Fe Tcom
Page 10: Logic Fe Tcom
Page 11: Logic Fe Tcom
Page 12: Logic Fe Tcom
Page 13: Logic Fe Tcom
Page 14: Logic Fe Tcom
Page 15: Logic Fe Tcom

G r a y C o d e

Page 16: Logic Fe Tcom
Page 17: Logic Fe Tcom
Page 18: Logic Fe Tcom
Page 19: Logic Fe Tcom

C o m p le m e n tA r it h m e t ic

The ’ o n e s c o m p le m e n t of a binary number is obtained by replacing 1s by 0s, and vice versa.

0100110110110010 (one’s complement)

Page 20: Logic Fe Tcom

The ’ t w o s c o m p le m e n t of a binary number is obtained by adding 1 to the one’s complement, neglecting the carry (if any) out of the most significant bit.

Complements are useful for representing negative numbers and performing subtraction in computers.

Page 21: Logic Fe Tcom

S u b t r a c t io n U s in g’ -T w o s

C o m p le m e n tA r it h m e t ic

Page 22: Logic Fe Tcom

Overflow and Underflow

In performing arithmetic using two’s-complement arithmetic, we must be aware of the possibility of o v e r f lo w in which the result exceeds the maximum value that can be represented by the word length in use.

Page 23: Logic Fe Tcom
Page 24: Logic Fe Tcom

AAA =

AA =1

00 =A

BAAB =( ) ( ) ABCCABBCA ==

Page 25: Logic Fe Tcom
Page 26: Logic Fe Tcom
Page 27: Logic Fe Tcom

0=AA

AA =

Page 28: Logic Fe Tcom
Page 29: Logic Fe Tcom
Page 30: Logic Fe Tcom

( ) ( ) CBACBACBA ++=++=++

( ) ACABCBA +=+

AA =+ 0

11 =+A

1=+ AA

AAA =+

Page 31: Logic Fe Tcom
Page 32: Logic Fe Tcom

Boolean algebra expressions can be implemented by interconnection of AND gates, OR gates, and inverters.

Page 33: Logic Fe Tcom
Page 34: Logic Fe Tcom
Page 35: Logic Fe Tcom

’ D e M o r g a n s L a w s

CBAABC ++= ( ) FEDFED =++

If the variables in a logic expression are replaced by their inverses, the AND operation is replaced by OR, the OR operation is replaced by AND, and the entire expression is inverted, the resulting logic expression yields the same values as before the changes.

Page 36: Logic Fe Tcom
Page 37: Logic Fe Tcom

1 2C h a p t e r- F ie ld E f f e c t

T r a n s is t o r s

1. Understand MOSFET operation and small signal model (compare to BJTs).

3. See how FETs are used to build gates in CMOS Integrated Circuits (ICs) for computers.

Page 38: Logic Fe Tcom

N M O S A N D P M O ST R A N S IS T O R S

Page 39: Logic Fe Tcom

M O S F E T S u m m a r y

Page 40: Logic Fe Tcom

- -T h e F ix e d P lu s S e lf B ia s C ir c u it

Page 41: Logic Fe Tcom
Page 42: Logic Fe Tcom
Page 43: Logic Fe Tcom

- T h e S m a ll S ig n a l E q u iv a le n t C ir c u it

In small-signal midband analysis of FET amplifiers, the coupling capacitors, bypass capacitors, and dc voltage sources are replaced by short circuits. The FET is replaced with its small-signal equivalent circuit. Then, we write circuit equations and derive useful expressions for gains, input impedance, and output impedance (like earlier BJTs).

Page 44: Logic Fe Tcom
Page 45: Logic Fe Tcom

C M O S In v e r t e r

Page 46: Logic Fe Tcom
Page 47: Logic Fe Tcom

C M O S N A N D G a t e

Page 48: Logic Fe Tcom
Page 49: Logic Fe Tcom

C M O S N O R G a t e

Page 50: Logic Fe Tcom
Page 51: Logic Fe Tcom

, , N A N D N O R a n d X O R G a t e s

Page 52: Logic Fe Tcom
Page 53: Logic Fe Tcom
Page 54: Logic Fe Tcom

- - S u m o f P r o d u c t sIm p le m e n t a t io n

Product terms that include all of the input variables (or their inverses) are called m in t e r m s .

In a sum-of-products expression, we form a product of all the input variables (or their inverses) for each row of the truth table for which the result is logic 1. The output is the sum of these products.

Page 55: Logic Fe Tcom
Page 56: Logic Fe Tcom
Page 57: Logic Fe Tcom

- - P r o d u c t o f S u m sIm p le m e n t a t io n

Sum terms that include all of the input variables (or their inverses) are called m a x t e r m s .

In a product-of-sums expression, we form a sum of all the input variables (or their inverses) for each row of the truth table for which the result is logic 0. The output is the product of these sums.

Page 58: Logic Fe Tcom
Page 59: Logic Fe Tcom
Page 60: Logic Fe Tcom
Page 61: Logic Fe Tcom
Page 62: Logic Fe Tcom
Page 63: Logic Fe Tcom

Many useful combinatorial circuits known as d e c o d e r s , e n c o d e r s , or t r a n s la t o r s are available as integrated circuits.

Page 64: Logic Fe Tcom
Page 65: Logic Fe Tcom
Page 66: Logic Fe Tcom

K a r n a u g h M a p s

Page 67: Logic Fe Tcom
Page 68: Logic Fe Tcom
Page 69: Logic Fe Tcom
Page 70: Logic Fe Tcom
Page 71: Logic Fe Tcom
Page 72: Logic Fe Tcom
Page 73: Logic Fe Tcom
Page 74: Logic Fe Tcom
Page 75: Logic Fe Tcom
Page 76: Logic Fe Tcom
Page 77: Logic Fe Tcom
Page 78: Logic Fe Tcom
Page 79: Logic Fe Tcom
Page 80: Logic Fe Tcom
Page 81: Logic Fe Tcom
Page 82: Logic Fe Tcom
Page 83: Logic Fe Tcom
Page 84: Logic Fe Tcom
Page 85: Logic Fe Tcom
Page 86: Logic Fe Tcom
Page 87: Logic Fe Tcom
Page 88: Logic Fe Tcom
Page 89: Logic Fe Tcom
Page 90: Logic Fe Tcom
Page 91: Logic Fe Tcom

D IG IT A L S IG N A LP R O C E S S IN G

Page 92: Logic Fe Tcom
Page 93: Logic Fe Tcom

C o n v e r s io n o f S ig n a ls f r o m

A n a lo g t o D ig it a lF o r m

If a signal contains no components with frequencies higher than fH, the signal can be exactly reconstructed from its samples, providedthat the sampling rate fs is selected to be more than twice fH.

Page 94: Logic Fe Tcom
Page 95: Logic Fe Tcom
Page 96: Logic Fe Tcom

D ig it a l L o w p a s sF ilt e r

( ) ( ) ( ) ( )nxanayny −+−= 11

T

Ta

ττ+

=1

Page 97: Logic Fe Tcom
Page 98: Logic Fe Tcom
Page 99: Logic Fe Tcom
Page 100: Logic Fe Tcom
Page 101: Logic Fe Tcom
Page 102: Logic Fe Tcom

8C h a p t e rM ic r o c o m p u t e r s

1. Identify and describe the functional blocks of a microcomputer.

2. Select the type of memory needed for a given application.

Page 103: Logic Fe Tcom

An embedded computer is part of a product, such as an automobile, printer, or bread machine, that is not called a computer.

A microcomputer or microcontroller is a completecomputer containing the CPU, memory, and I/O on a single silicon chip.

Page 104: Logic Fe Tcom
Page 105: Logic Fe Tcom

This computer, in which the instructions and data arestored in the same memory, has von Neumannarchitecture (also known as Princeton architecture).

Page 106: Logic Fe Tcom
Page 107: Logic Fe Tcom
Page 108: Logic Fe Tcom
Page 109: Logic Fe Tcom

M E M O R Y T YP E S

(1) Read-and-write memory (RAM)

(2) Read-only memory (ROM)

(3) Mass storage - Disk, Flash(non volatile)

Page 110: Logic Fe Tcom

S e le c t io n o fM e m o r y

1 . The trade-off between speed and cost

2 . Whether the information is to be stored permanently or must be changed frequently

3 . Whether data are to be accessed in random order or in sequence

Page 111: Logic Fe Tcom
Page 112: Logic Fe Tcom
Page 113: Logic Fe Tcom

-A S S E M B L Y L A N G U A G E

P R O G R A M M IN G

In general, assembly language statements take the form:

LABEL INSTRUCTION/DIRECTIVE OPERAND COMMENT

D ir e c t iv e s are used to give commands to the assembler.

Page 114: Logic Fe Tcom
Page 115: Logic Fe Tcom
Page 116: Logic Fe Tcom

1. Compilers translate a higher level language, such as C and convert it into assembly (machine language) for a particular computer. Typically one C statement will generate several (5-10) assembly language statements

2. Most work is currently done using compilers and C. It’s faster and more cost effective to develop new applications.

3. Some tools like Labview can automatically generate C code.