CS 251 Introduction To Computer Organization & Assembly Language
CS 251 Introduction To Computer Organization & Assembly Language
CS 251
Introduction to Computer Organization &
Assembly Language
Lecture 1
(Course Introduction)
Part I: Computer Organization
• Main hardware components and their relation to the software.
• What the computer does when it executes an instruction.
Secondary
storage Central Processing Unit
e.g. Hard disk (CPU)
Arithmetic Control Unit Registers
Logic Unit
Computer Organization 3
The CPU
• Its the brain of the computer.
Main
Memory
• Its function is to execute programs stored in the
main memory by fetching their instructions,
examining them, and then executing them one
CPU after the other.
Registers
Control
ALU
Unit
Computer Organization 4
The CPU (Continue)
• The CPU has three components:
Main
Memory
• ALU (Arithmetic & Logic Unit) for
manipulating data.
• Control Unit A control unit directs the flow of
CPU information. Think of it like a "traffic guard" if you may-
directing traffic so the vehicles go to their destination
Register
Contro
Unit
• Registers
• Small (all of the same size), high speed
I-D (IOP) O-D memory used to store temporary results
& certain control information.
Computer Organization 5
The CPU (Continue)
• The CPU components are connected by a bus.
Main
Memory
• Bus = collection of parallel wires for
transmitting addresses, data, and control
signals.
CPU
Register
Computer Organization 6
The Main Memory or Primary Memory
Computer Organization 7
The Secondary Memory or Secondary Storage
• Slow in working
Computer Organization 7
The IOP
• It contains electronic circuits for
Main
Memory communicating and controlling the transfer of
information between the CPU and the outside
world.
CPU
Register
Contro
l Unit
ALU
Computer Organization 8
The I/O Devices
• Examples:
Main
Memory
• Keyboards
• Printers
CPU
• Monitor
Register
Contro
l Unit
ALU
Computer Organization 9
Part II: Introduction to Assembly Language
Computer languages
Not standard (I.e. different Not standard (I.e. different Standard (I.e. programs are
machine language for assembly language for independent of the machine
every type of machine every type of machine) on which they will be
executed)