Download Transistors and Logic Gates

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Variable-frequency drive wikipedia , lookup

Electrical ballast wikipedia , lookup

History of electric power transmission wikipedia , lookup

Ohm's law wikipedia , lookup

Islanding wikipedia , lookup

Current source wikipedia , lookup

Rectifier wikipedia , lookup

Electrical substation wikipedia , lookup

Power inverter wikipedia , lookup

Semiconductor device wikipedia , lookup

Switch wikipedia , lookup

Resistive opto-isolator wikipedia , lookup

Light switch wikipedia , lookup

Alternating current wikipedia , lookup

Power electronics wikipedia , lookup

Surge protector wikipedia , lookup

Stray voltage wikipedia , lookup

Voltage regulator wikipedia , lookup

Voltage optimisation wikipedia , lookup

Schmitt trigger wikipedia , lookup

Switched-mode power supply wikipedia , lookup

Transistor wikipedia , lookup

Mains electricity wikipedia , lookup

Opto-isolator wikipedia , lookup

Buck converter wikipedia , lookup

CMOS wikipedia , lookup

Transcript
Chapter 3
Digital Logic
Structures
Transistor: Building Block of Computers
Microprocessors contain millions of transistors
• Intel Pentium 4 (2000): 48 million
• IBM PowerPC 750FX (2002): 38 million
• IBM/Apple PowerPC G5 (2003): 58 million
Logically, each transistor acts as a switch (open/closed)
Combined to implement logic functions
• AND, OR, NOT
Combined to build higher-level structures
• Adder, multiplexer, decoder, register, …
Combined to build processor
• LC-3
3-2
Simple Switch Circuit
Switch open:
• No current through circuit
• Light is off
• Vout is +2.9V
Voltage
source
Switch closed:
•
•
•
•
Short circuit across switch
Current flows
Light is on
Vout is 0V
Switch-based circuits can easily represent two states:
on/off, open/closed, voltage/no voltage.
3-3
n-type MOS Transistor
MOS = Metal Oxide Semiconductor
• two types: n-type and p-type
n-type
• when Gate has positive voltage,
short circuit between #1 and #2
(switch closed)
• when Gate has zero voltage,
open circuit between #1 and #2
(switch open)
Gate = 1
Gate = 0
Terminal #2 must be
connected to GND (0V).
3-4
p-type MOS Transistor
p-type is complement to n-type
• when Gate has positive voltage,
open circuit between #1 and #2
(switch open)
• when Gate has zero voltage,
short circuit between #1 and #2
(switch closed)
Gate = 1
Gate = 0
Terminal #1 must be
connected to +2.9V.
3-5
Logic Gates
Use switch behavior of MOS transistors
to implement logical functions: AND, OR, NOT.
Digital symbols:
• recall that we assign a range of analog voltages to each
digital (logic) symbol
• assignment of voltage ranges depends on
electrical properties of transistors being used
typical values for "1": +5V, +3.3V, +2.9V
from now on we'll use +2.9V
3-6
CMOS Circuit
Complementary MOS
Uses both n-type and p-type MOS transistors
• p-type
Attached to + voltage
Pulls output voltage UP when input is zero
• n-type
Attached to GND
Pulls output voltage DOWN when input is one
For all inputs, make sure that output is either connected to GND or to +,
but not both!
3-7
Inverter (NOT Gate)
2.9v
In
Out
0
1
In
Out
1
0
GND
In
Out
0v
2.9v
2.9v
0v
Truth table
3-8
NOR Gate (OR-NOT)
0
1
Truth table
Note: Serial structure on top, parallel on bottom.
A
B
C
0
0
1
0
1
0
1
0
0
1
1
0
3-9
NOR
OR Gate (NOR-NOT)
A
B
C
0
0
1
0
1
0
1
0
0
1
1
0
OR = NOR-NOT
NOT
NOR
Add inverter to NOR.
A
B
C
0
0
0
0
1
1
1
0
1
1
1
1
3-10
NAND Gate (AND-NOT)
0
Note: Parallel structure on top, serial on bottom.
A
B
C
0
0
1
0
1
1
1
0
1
1
1
0
3-11
AND Gate
A
B
C
0
0
0
0
1
0
1
0
0
1
1
1
NOT
Add inverter to NAND.
NAND
3-12
Basic Logic Gates
3-13