Professional Documents
Culture Documents
CPT 213 Part 1
CPT 213 Part 1
Assembly Language
CPT213: Lecture Slides 1
Objectives
2
Introduction
3
Figure 1.1
The Concept
of Abstraction
4
The Components of a Computer
System
Von Neumann architecture has four functional
units
Memory
Input/Output
Arithmetic/Logic unit
Control unit
Sequential execution of instructions
Stored program concept
5
Figure 1.2
Components of the Von Neumann Architecture
6
Memory and Cache
7
Memory and Cache (continued)
8
Figure 1.3
Structure of Random Access Memory
9
Main Memory
Note:
14
Memory and Cache (continued)
Fetch operation
15
Memory and Cache (continued)
Store operation
16
Memory and Cache (continued)
Memory register
17
Cache Memory
18
Input/Output and Mass Storage
19
Input/Output and Mass Storage
(continued)
Volatile storage
Information disappears when the power is turned
off
Example: RAM
Nonvolatile storage
Information does not disappear when the power is
turned off
Example: Mass storage devices such as disks,
flash and tapes
20
Input/Output and Mass Storage
(continued)
Mass storage devices
Direct access storage device
Hard drive, CD-ROM, DVD
Uses its own addressing scheme to access data
Sequential access storage device
Tape drive
Stores data sequentially
Used for backup storage these days
21
Input/Output and Mass Storage
(continued)
Direct access storage devices
Data stored on a spinning disk
Disk divided into concentric rings (tracks)
Read/write head moves from one track to another
while disk spins
Access time depends on:
Seek time: time needed to position head over track
Latency: time needed for sector to rotate to head
Transfer time: time for sector to be read by head
22
Figure 1.4
Overall Organization of a Typical Disk
23
Input/Output and Mass Storage
(continued)
I/O controller
Intermediary between central processor and I/O
devices
24
Figure 5.9
Organization of an I/O Controller
25
The Arithmetic/Logic Unit
26
The Arithmetic/Logic Unit
(continued)
ALU process
Values for operations copied into ALU’s input
register locations
All circuits compute results for those inputs
Multiplexor selects the one desired result from all
values
Result value copied to desired result register
27
Figure 1.5
Using a Multiplexor Circuit to Select the Proper ALU Result
28
The Control Unit
Task
Fetch from memory the next instruction to be
executed
29
Machine Language Instructions
30
Pentium Machine Language Instruction Format
Figure 5.14
Typical Machine Language Instruction Format
31
Machine Language Instructions
(continued)
Operations of machine language
Data transfer operations
Move values to and from memory and registers
Arithmetic/logic operations
Perform ALU operations that produce numeric
values
32
Machine Language Instructions
(continued)
Operations of machine language (continued)
Compare operations
Compare two values and set an indicator on the
basis of the results of the compare; set register bits
Branch operations
Jump to a new memory address to continue
processing
33
Control Unit Registers and Circuits
Parts of control unit
Links to other subsystems
Instruction decoder circuit
Two special registers
Program counter (PC)
Stores the memory address of the next instruction to
be executed
Instruction register (IR)
Stores the code for the current instruction
34
Figure 1.6
Organization of the Control Unit Registers and Circuits
35
Putting All the Pieces Together—the
Von Neumann Architecture
Subsystems connected by a bus
36
Figure 1.8
The Organization
of a Von Neumann
Computer
37
Non-Von Neumann Architectures
38
Non-Von Neumann Architectures
(continued)
SIMD architecture
Single instruction/multiple data
Multiple processors running in parallel
All processors execute same operation at one
time
Each processor operates on its own data
Suitable for vector operations
39
Figure 1.9
A SIMD Parallel Processing System
40
Non-Von Neumann Architectures
(continued)
MIMD architecture
42
Summary
Computer organization examines different
subsystems of a computer: memory,
input/output, arithmetic/logic unit, and control
unit
Machine language gives codes for each primitive
instruction the computer can perform and its
arguments
Von Neumann machine: Sequential execution of
a stored program
Parallel computers improve speed by doing
multiple tasks at one time
43