CS 265 Computer Architecture - Electrical...
Transcript of CS 265 Computer Architecture - Electrical...
![Page 1: CS 265 Computer Architecture - Electrical engineeringwlu/teaching/cs265/slides/Lecture4-Introduction-I.pdf · Part 2: Introduction to Computer Architecture ... Movement Apparatus](https://reader031.fdocuments.us/reader031/viewer/2022022013/5b2a7ef87f8b9a5b328b495c/html5/thumbnails/1.jpg)
1
CS 265
Computer Architecture
Wei Lu, Ph.D., P.Eng.
![Page 2: CS 265 Computer Architecture - Electrical engineeringwlu/teaching/cs265/slides/Lecture4-Introduction-I.pdf · Part 2: Introduction to Computer Architecture ... Movement Apparatus](https://reader031.fdocuments.us/reader031/viewer/2022022013/5b2a7ef87f8b9a5b328b495c/html5/thumbnails/2.jpg)
2
Part 2: Introduction to Computer Architecture
Our goal:
• have a basic look at architecture of computer, its functions and structure, its history and its terminology
Overview:
• what is a computer?
• computer organization vs. computer architecture?
• hierarchical structure of a computer?
• major functions of a computer?
• “jargon” on computer architecture
• history of computer evolution
![Page 3: CS 265 Computer Architecture - Electrical engineeringwlu/teaching/cs265/slides/Lecture4-Introduction-I.pdf · Part 2: Introduction to Computer Architecture ... Movement Apparatus](https://reader031.fdocuments.us/reader031/viewer/2022022013/5b2a7ef87f8b9a5b328b495c/html5/thumbnails/3.jpg)
3
What is Computer
![Page 4: CS 265 Computer Architecture - Electrical engineeringwlu/teaching/cs265/slides/Lecture4-Introduction-I.pdf · Part 2: Introduction to Computer Architecture ... Movement Apparatus](https://reader031.fdocuments.us/reader031/viewer/2022022013/5b2a7ef87f8b9a5b328b495c/html5/thumbnails/4.jpg)
4
What is a computer?
Any system that accepts data, processes the data according
to some instructions and produces some resultskeyboard
mouse
display
disk / optical
speakers
.
.
.
printer
network
telephone
cable
wireless
other?
.
.
.
Computera “Black Box” system
![Page 5: CS 265 Computer Architecture - Electrical engineeringwlu/teaching/cs265/slides/Lecture4-Introduction-I.pdf · Part 2: Introduction to Computer Architecture ... Movement Apparatus](https://reader031.fdocuments.us/reader031/viewer/2022022013/5b2a7ef87f8b9a5b328b495c/html5/thumbnails/5.jpg)
5
What is a computer?
At the most basic level, a computer is a device
consisting of three pieces:
- A processor to interpret and execute programs
- A memory to store both data and programs
- A mechanism for transferring data to and from the
outside world
![Page 6: CS 265 Computer Architecture - Electrical engineeringwlu/teaching/cs265/slides/Lecture4-Introduction-I.pdf · Part 2: Introduction to Computer Architecture ... Movement Apparatus](https://reader031.fdocuments.us/reader031/viewer/2022022013/5b2a7ef87f8b9a5b328b495c/html5/thumbnails/6.jpg)
6
Hierarchical Structure of Computer
![Page 7: CS 265 Computer Architecture - Electrical engineeringwlu/teaching/cs265/slides/Lecture4-Introduction-I.pdf · Part 2: Introduction to Computer Architecture ... Movement Apparatus](https://reader031.fdocuments.us/reader031/viewer/2022022013/5b2a7ef87f8b9a5b328b495c/html5/thumbnails/7.jpg)
7
Hierarchical structure of a computer
• We apply a top-down approach to introduce computer architecture
Computers consist of many things besides chips!
User level: program execution on UI
High-level language: programming
Assembly language level: assembly
code generated from level 5
System software level: control
executing process on the system
![Page 8: CS 265 Computer Architecture - Electrical engineeringwlu/teaching/cs265/slides/Lecture4-Introduction-I.pdf · Part 2: Introduction to Computer Architecture ... Movement Apparatus](https://reader031.fdocuments.us/reader031/viewer/2022022013/5b2a7ef87f8b9a5b328b495c/html5/thumbnails/8.jpg)
8
Hierarchical structure of a computer
Machine level: a.k.a Instruction Set Architecture (ISA) level
- consists of instructions that are particular to architecture of machine
- programs written in machine language need no compilers, interpreters
or assemblers
![Page 9: CS 265 Computer Architecture - Electrical engineeringwlu/teaching/cs265/slides/Lecture4-Introduction-I.pdf · Part 2: Introduction to Computer Architecture ... Movement Apparatus](https://reader031.fdocuments.us/reader031/viewer/2022022013/5b2a7ef87f8b9a5b328b495c/html5/thumbnails/9.jpg)
9
Hierarchical structure of a computer
Control level:
- A control unit decodes and executes instructions and moves data through the system
- Control units can be microprogrammed or hardwired.
- A microprogram is a program written in a low-level language that is implemented
by the hardware; Hardwired control units consist of hardware that directly executes
machine instructions
![Page 10: CS 265 Computer Architecture - Electrical engineeringwlu/teaching/cs265/slides/Lecture4-Introduction-I.pdf · Part 2: Introduction to Computer Architecture ... Movement Apparatus](https://reader031.fdocuments.us/reader031/viewer/2022022013/5b2a7ef87f8b9a5b328b495c/html5/thumbnails/10.jpg)
10
Hierarchical structure of a computer
Digital logic level:
- This level is where we find digital circuits (the chips).
- Digital circuits consist of logic gates and wires.
- These components implement the mathematical logic of all other
levels.
![Page 11: CS 265 Computer Architecture - Electrical engineeringwlu/teaching/cs265/slides/Lecture4-Introduction-I.pdf · Part 2: Introduction to Computer Architecture ... Movement Apparatus](https://reader031.fdocuments.us/reader031/viewer/2022022013/5b2a7ef87f8b9a5b328b495c/html5/thumbnails/11.jpg)
11
Computer Architecture vs.
Computer Organization
![Page 12: CS 265 Computer Architecture - Electrical engineeringwlu/teaching/cs265/slides/Lecture4-Introduction-I.pdf · Part 2: Introduction to Computer Architecture ... Movement Apparatus](https://reader031.fdocuments.us/reader031/viewer/2022022013/5b2a7ef87f8b9a5b328b495c/html5/thumbnails/12.jpg)
12
What is computer architecture?
Refers to those logic attributes of a computer system implementation as
seen by (visible to) a programmer, i.e. how we design a computer
those logic attributes
1. instruction sets
2. number of bits used
to represent various
data types
3. I/O mechanism
4. techniques for
addressing memory
5. others, etc.
![Page 13: CS 265 Computer Architecture - Electrical engineeringwlu/teaching/cs265/slides/Lecture4-Introduction-I.pdf · Part 2: Introduction to Computer Architecture ... Movement Apparatus](https://reader031.fdocuments.us/reader031/viewer/2022022013/5b2a7ef87f8b9a5b328b495c/html5/thumbnails/13.jpg)
13
What is computer organization?
Refers to all physical aspects of computer systems, including operational units and their interconnections that realize architectural specifications. Those physical hardware transparent to programmer:e.g. interfaces between computer and peripherals, or control signalsi.e. how does a computer work
![Page 14: CS 265 Computer Architecture - Electrical engineeringwlu/teaching/cs265/slides/Lecture4-Introduction-I.pdf · Part 2: Introduction to Computer Architecture ... Movement Apparatus](https://reader031.fdocuments.us/reader031/viewer/2022022013/5b2a7ef87f8b9a5b328b495c/html5/thumbnails/14.jpg)
14
Main Functions of Computer
![Page 15: CS 265 Computer Architecture - Electrical engineeringwlu/teaching/cs265/slides/Lecture4-Introduction-I.pdf · Part 2: Introduction to Computer Architecture ... Movement Apparatus](https://reader031.fdocuments.us/reader031/viewer/2022022013/5b2a7ef87f8b9a5b328b495c/html5/thumbnails/15.jpg)
15
In general term, the computer functions are:
Process Data
Store Data
Move Data
Control the function: coordinate how data is used
Data
Movement
Apparatus
Control
Mechanism
Data
Storage
Facility
Data
Processing
Facility
What functions of a computer?
![Page 16: CS 265 Computer Architecture - Electrical engineeringwlu/teaching/cs265/slides/Lecture4-Introduction-I.pdf · Part 2: Introduction to Computer Architecture ... Movement Apparatus](https://reader031.fdocuments.us/reader031/viewer/2022022013/5b2a7ef87f8b9a5b328b495c/html5/thumbnails/16.jpg)
16
Data movement:
e.g. keyboard to screen
Data
Movement
Apparatus
Control
Mechanism
Data
Storage
Facility
Data
Processing
Facility
What functions of a computer?
![Page 17: CS 265 Computer Architecture - Electrical engineeringwlu/teaching/cs265/slides/Lecture4-Introduction-I.pdf · Part 2: Introduction to Computer Architecture ... Movement Apparatus](https://reader031.fdocuments.us/reader031/viewer/2022022013/5b2a7ef87f8b9a5b328b495c/html5/thumbnails/17.jpg)
17
Data storage:
e.g. Internet download to disk
Data
Movement
Apparatus
Control
Mechanism
Data
Storage
Facility
Data
Processing
Facility
What functions of a computer?
![Page 18: CS 265 Computer Architecture - Electrical engineeringwlu/teaching/cs265/slides/Lecture4-Introduction-I.pdf · Part 2: Introduction to Computer Architecture ... Movement Apparatus](https://reader031.fdocuments.us/reader031/viewer/2022022013/5b2a7ef87f8b9a5b328b495c/html5/thumbnails/18.jpg)
18
Data processing from/to storage:
e.g. updating bank statement
Data
Movement
Apparatus
Control
Mechanism
Data
Storage
Facility
Data
Processing
Facility
What functions of a computer?
![Page 19: CS 265 Computer Architecture - Electrical engineeringwlu/teaching/cs265/slides/Lecture4-Introduction-I.pdf · Part 2: Introduction to Computer Architecture ... Movement Apparatus](https://reader031.fdocuments.us/reader031/viewer/2022022013/5b2a7ef87f8b9a5b328b495c/html5/thumbnails/19.jpg)
19
Data processing from storage to I/O:
e.g. printing a bank statement
Data
Movement
Apparatus
Control
Mechanism
Data
Storage
Facility
Data
Processing
Facility
What functions of a computer?
![Page 20: CS 265 Computer Architecture - Electrical engineeringwlu/teaching/cs265/slides/Lecture4-Introduction-I.pdf · Part 2: Introduction to Computer Architecture ... Movement Apparatus](https://reader031.fdocuments.us/reader031/viewer/2022022013/5b2a7ef87f8b9a5b328b495c/html5/thumbnails/20.jpg)
20
Thank you for your attendanceAny questions?