Ch-05 (ICS I) - Computer Architecture
Ch-05 (ICS I) - Computer Architecture
Chapter 5
Computer Architecture
Contents
• Computer Architecture
• CPU
• Memory Unit
• Computer Bus
• I/O Unit
• CPU Registers
• Instruction Set
• Instruction Format
• Fetch - Decode - Execute Cycle
• Port
• Operating System
• Programming Languages
• Language Translator
Computer Architecture
Q.2 What is computer architecture? Explain components of computer
architecture.
Von Neumann Design
• 1951 → proposed design of a stored-program computer
• By Von Neumann & his team
• Design → a sequence of instructions (called a program) & data are stored in
memory
• Computer reads instructions one by one
• executes these instructions to perform different operations on data
• Very simple design & general-purpose
• Modern digital computers → based on Von Neumann design
Computer Architecture
• Components of computer
• each component performs a specific function
• Components of computer communicate with one another
• Computer architecture → Way in which various components of computer are
connected
Components of Computer Architecture
1- CPU
• CPU → Central Processing Unit, Processor
• Considered as brain of computer
• Processes (or manipulates) data according to given instructions and converts it
into useful information
• Components of CPU
Control Unit (CU)
• Acts as a supervisor of computer
• Controls all parts of computer & coordinates all activities of computer
• Fetches instructions & data from memory unit
• Decodes & executes instructions one by one
Arithmetic & Logic Unit (ALU)
• Performs all arithmetic & logical operations on data
Components of Computer Architecture
2- Main Memory
• Memory → Used to store data and instructions
• CPU loads data & instructions in main memory
• Reads data & instructions from main memory
• Process data according to given instructions
• Data and results of calculations → stored in main memory
• Working area of computer (computer cannot work without having main memory)
3- I/O Unit
• Controls communication between processor & peripheral devices (i.e. I/O devices)
• Peripheral devices → keyboard, monitor, printer, & disk drives
• Controls different I/O devices connected to computer system
4- Bus Interconnection
• Bus → electrical path through which data, instructions, or control signals flow from one
component of computer to another
• Communication channel on motherboard
• Connects different components of computer (such as CPU, main memory, and I/O units)
• Components → communicate with each other → through Bus interconnection
CPU
Q.3 Explain CPU with its main components.
CPU
• CPU → Central Processing Unit, Processor
• Considered as brain of computer
• Performs different operations on the data according to given instructions
• Manages other operations of computer
• CPU of personal computer → microprocessor
• Single chip
• Located on motherboard
• Other components connected to it → through Bus interconnection
• CPU sends & receives data to/from different components of computer
through Bus interconnection
Components of CPU
1. Control Unit
• Acts as a supervisor of computer
• Controls all parts of computer & coordinates all activities of computer
• Example: receives data & instructions from input device and stores them in main
memory.
• Also controls execution of instructions given to computer
• Fetches instructions & data from memory unit
• Decodes & executes instructions one by one
2. Arithmetic & Logic Unit (ALU)
• Performs arithmetic & logical operations on data
• Arithmetic operations →ALU performs addition, subtraction, multiplication, & division
• Logical operations →ALU compares numerical data as well as alphabetic data
• For example: checks whether first number is greater than second, less than second or equal to
second, etc.
Memory Unit
Q.4 What is the main memory? Describe its structure. How data is accessed in
main memory?
Memory Unit
• Memory → store data & instructions
• Personal computer contains a main memory
• CPU loads data & instructions in main memory to process data
• CPU reads data & instructions from main memory & processes data according
to given instructions
• Data & results of calculations are also stored in main memory
• Working area of computer
• computer cannot work without having main memory
• Two types of memories
• RAM
• ROM
Structure of Main Memory
• Built in form of a chip
• chip → made of semiconductor material
• Main memory of computer → consists of thousands or millions of cells
• Each cell → store a bit (Binary digit)
• bit represents 0 or 1
• Cells logically organized into a group of 8 bits → byte
PM Series
Computer Science
ICS Part-1
by
CM Aslam, Aqsa Aslam, Mudassir Ahmad & Atif Mansoor