CS计算机代考程序代写 algorithm mips assembly Abstraction & Digital Logic: From Transistors to Gates

Abstraction & Digital Logic: From Transistors to Gates

Problem Transformation – levels of abstraction
CSE12 Winter 2021
2
The desired behavior: the application
Natural Language Algorithm Program Machine Architecture Micro-architecture Logic Circuits Devices
The building blocks: electronic devices

The Program Level
Most computers run a management program called the operating system (OS).
Application programs interface to the machine architecture via the OS.
This lecture Data An example:
Program (Software)
Application Program
Operating System
Application Program Operating System
PowerPoint
Windows 10
CSE12 Winter 2021
3

Course Outline – What is Next?
 The building blocks of computers: logic gates  How to represent information
 The basic algorithm: the von Neumann model  MIPS structure
 Programming the machine: assembly language
CSE12 Winter 2021
4

How do computers communicate?
 All creatures communicate in a particular language.
 A sentence in a language may be a specific arrangement of symbols
“chirp squak”
“ooh ooh aah aah”
 A digital computer, at its most basic level, speaks the binary language
 The binary language has only 2 symbols: 1 (ON), 0 (OFF)
 A certain string of 1s and 0s can be used to convey information in the binary language!
CSE12 Winter 2021
5

CSE12 Winter 2021
6

The Transistor: building block of computers
 Microprocessors contain many transistors
 15-Core Xeon Ivy Bridge-EX (2014): 4310 million  10-Core Xeon Westmere-EX (2011): 2600 million  Six-Core Core i7(2010): 1170 million
 AMD 6-core Opteron (2009): 904 million
 Intel Core i7 Quad (2008): 731 million
 Intel Core 2 Duo (2006): 291 million
 IBM/Apple PowerPC G5 (2003): 58 million
 Intel Pentium 4 (2000): 42 million
 IBM PowerPC 750FX (2002): 38 million
 Intel 4004 (1971): 2300
CSE12 Winter 2021
7

What Is a Transistor?
 A switch, which can close between the source and the drain
 Changing the voltage of the gate lets you change the current flow between the source and drain (closing or opening the switch)
CSE12 Winter 2021 8

What is a transistor?
 Logically, each transistor is used as a switch  Combined to implement logic functions
AND, OR, NOT
 Combined to build higher-level structures
Adder, multiplexer, decoder, register, …  Combined to build a processor
ARM, Core 2 Duo, i7 9700k, etc
CSE12 Winter 2021
9

Simple switch circuit
 ECE 101
Switch open:
No current through
circuit Light is off Vout is +2.9V
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.
CSE12 Winter 2021
10

1. CMOS Logic Operation
At its heart, a digital computer can understand only 1s (ON) and 0s (OFF). The computer is made up of CMOS switches which convey this information from one module to another
CSE12 Winter 2021
11

Tas
k – Problem Statement
Algorithm
NMOS
PMOS
CSE12 Winter 2021
Pro
Inst
Log
gram
ruction Set Architecture
Microarchitecture
ic Gates
Devices
12

NMOS
PMOS
Logic 1/0
Logic 1/0
Out
GND
Out
CSE12 Winter 2021
13

1
CSE12 Winter 2021
1
14

0
CSE12 Winter 2021
0
15

Out= Vdd
Complementary MOS (CMOS)
CSE12 Winter 2021
16

NOT gate (Inverter )
CSE12 Winter 2021
Vdd V (Logic 1) 0 V (Logic 0)
17