SlideShare a Scribd company logo
Introduction to Computer Science
Computer Architecture
Prepared By:
S. K. Barnwal
Assistant Professor
Arka Jain University
Research Scholar (NIT, JSR)
Introduction
• A computer system is basically a machine that simplifies
complicated tasks. It should maximize performance and reduce
costs as well as power consumptions. The different components in
the Computer System Architecture are Input Unit, Output Unit,
Storage Unit, Arithmetic Logic Unit, Control Unit etc.
• Computer architecture is a set of rules and methods that describe
the functionality, organization and implementation
of computer systems.
ALU
CU
M/M
I/P O/P
CPU (Central Processing Unit)
• A central processing unit (CPU) is the electronic circuitry within a
computer that carries out the instructions of a computer program
by performing the basic arithmetic, logical, control
and input/output (I/O) operations specified by the instructions.
• The input data travels from input unit to ALU. Similarly, the
computed data travels from ALU to output unit. The data
constantly moves from storage unit to ALU and back again. This is
because stored data is computed on before being stored again. The
control unit controls all the other units as well as their data.
Central Processing Unit (CPU) consists of the following features −
• CPU is considered as the brain of the computer.
• CPU performs all types of data processing operations.
• It stores data, intermediate results, and instructions (program).
• It controls the operation of all parts of the computer.
CPU
CPU itself has following three components.
• Memory or Storage Unit
• Control Unit
• ALU(Arithmetic Logic Unit)
Memory or Storage Unit
• This unit can store instructions, data, and intermediate results. This
unit supplies information to other units of the computer when
needed. It is also known as internal storage unit or the main
memory or the primary storage or Random Access Memory
(RAM).
• Its size affects speed, power, and capability. Primary memory and
secondary memory are two types of memories in the computer.
CPU
Functions of the memory unit are −
• It stores all the data and the instructions required for processing.
• It stores intermediate results of processing.
• It stores the final results of processing before these results are
released to an output device.
• All inputs and outputs are transmitted through the main memory.
Control Unit
• This unit controls the operations of all parts of the computer but
does not carry out any actual data processing operations.
Functions of this unit are −
• It is responsible for controlling the transfer of data and instructions
among other units of a computer.
• It manages and coordinates all the units of the computer.
• It obtains the instructions from the memory, interprets them, and
directs the operation of the computer.
CPU
• It communicates with Input/Output devices for transfer of data or
results from storage.
• It does not process or store data.
ALU (Arithmetic Logic Unit)
• This unit consists of two subsections namely,
• Arithmetic Section
• Logic Section
• Arithmetic Section: Function of arithmetic section is to perform
arithmetic operations like addition, subtraction, multiplication,
and division. All complex operations are done by making
repetitive use of the above operations.
• Logic Section: Function of logic section is to perform logic
operations such as comparing, selecting, matching, and merging
of data.
Communication between Various Units
of a Computer System
• Input Unit: The input unit provides data to the computer system
from the outside. So, basically it links the external environment
with the computer. It takes data from the input devices, converts it
into machine language and then loads it into the computer system.
Keyboard, mouse etc. are the most commonly used input devices.
• Output Unit: The output unit provides the results of computer
process to the users i.e it links the computer with the external
environment. Most of the output data is the form of audio or video.
The different output devices are monitors, printers, speakers,
headphones etc.
• CPU: CPU is considered as the brain of the computer. CPU
performs all types of data processing operations. It stores data,
intermediate results, and instructions (program). It controls the
operation of all parts of the computer.
The Instruction Format
Computer perform task on the basis of instruction provided. An
instruction in computer comprises of groups called fields. These
fields contain different information as for computers every things is
in 0 and 1 so each field has different significance on the basis of
which a CPU decide what to perform. The most common fields are:
• Operation field which specifies the operation to be performed like
addition.
• Address field that consist the location of operand, i.e., register or
memory location.
• Mode field which specifies how operand is to be founded.
• Zero Address Instructions – A stack based computer do not use
address field in instruction. (Ex; PUSH A, POP A)
The Instruction Format
• One Address Instructions– This uses a implied
ACCUMULATOR register for data manipulation. One operand is
in accumulator and other is in register or memory location.
Implied means that the CPU already know that one operand is in
accumulator so there is no need to specify it. (Ex; ADD A, MUL
C, ADD 55 etc)
• Two Address Instructions – This is common in commercial
computers. Here two address can be specified in the instructions.
Unlike earlier in one address instruction the result was stored in
accumulator here result cab be stored at different location rather
than just accumulator, but require more number of bit to represent
address. Here destination address can also contain operand. (Ex;
ADD A, B; ADD R1, A)
• Three Address Instructions – This has three address field to
specify a register or a memory location. Program created are much
short in size but number of bits per instruction increase. (Ex; ADD
R1, A, B)
Instruction Set
The instruction set, also called ISA (instruction set architecture), and
is part of a computer that pertains to programming, which is more or
less machine language. The instruction set provides commands to the
processor, to tell it what it needs to do. The instruction set consists of
addressing modes, instructions, native data types, registers, memory
architecture, interrupt, and exception handling, and external I/O.
Examples of instruction set
• ADD - Add two numbers together.
• COMPARE - Compare numbers.
• IN - Input information from a device, e.g., keyboard.
• JUMP - Jump to designated RAM address.
• JUMP IF - Conditional statement that jumps to a designated RAM address.
• LOAD - Load information from RAM to the CPU.
• OUT - Output information to device, e.g., monitor.
• STORE - Store information to RAM.
Processor Speed
• Processor speed measures (in megahertz or gigahertz; MHz or
GHz) the number of instructions per second
the computer executes.
• A computer’s processor clock speed determines how quickly the
central processing unit (CPU) can retrieve and interpret
instructions. This helps our computer complete more tasks by
getting them done faster.
• Faster clock speeds mean that we’ll see tasks ordered from our
CPU completed quicker, making our experience seamless and
reducing the time you wait to interface with our favorite
applications and programs.
Multiprocessor Systems
Most computer systems are single processor systems i.e they only
have one processor. However, multiprocessor or parallel systems are
increasing in importance nowadays. These systems have multiple
processors working in parallel that share the computer clock,
memory, bus, peripheral devices etc.
There are two types of multiprocessors, one is called shared memory
multiprocessor and another is distributed memory multiprocessor. In
shared memory multiprocessors, all the CPUs shares the common
memory but in a distributed memory multiprocessor, every CPU has
its own private memory.
Multiprocessor System
Advantages of Multiprocessor Systems
• More reliable Systems: In a multiprocessor system, even if one
processor fails, the system will not halt. This ability to continue
working despite hardware failure is known as graceful
degradation. For example: If there are 5 processors in a
multiprocessor system and one of them fails, then also 4
processors are still working. So the system only becomes slower
and does not ground to a halt.
• Enhanced Throughput: If multiple processors are working in
tandem, then the throughput of the system increases i.e. number of
processes getting executed per unit of time increase. If there are N
processors then the throughput increases by an amount N.
• More Economic Systems: Multiprocessor systems are cheaper
than single processor systems in the long run because they share
the data storage, peripheral devices, power supplies etc. If there
are multiple processes that share data, it is better to schedule them
on multiprocessor systems with shared data than have different
computer systems with multiple copies of the data.
Multiprocessor System
Disadvantages of Multiprocessor Systems
• Increased Expense: Even though multiprocessor systems are
cheaper in the long run than using multiple computer systems, still
they are quite expensive. It is much cheaper to buy a simple single
processor system than a multiprocessor system.
• Complicated Operating System Required: There are multiple
processors in a multiprocessor system that share peripherals,
memory etc. So, it is much more complicated to schedule
processes and impart resources to processes than in single
processor systems. Hence, a more complex and complicated
operating system is required in multiprocessor systems.
• Large Main Memory Required: All the processors in the
multiprocessor system share the memory. So a much larger pool
of memory is required as compared to single processor systems.
Computer Architecture

More Related Content

PDF
Computer Memory
PDF
Basic computer system
PPTX
BASIC COMPUTER COURSE ! BATRA COMPUTER CENTRE
PPTX
Ram & rom
PPTX
Modes of data transfer.computer architecture.
PPTX
Computer architecture virtual memory
PPTX
Functional units
PPTX
Introduction to Operating Systems
Computer Memory
Basic computer system
BASIC COMPUTER COURSE ! BATRA COMPUTER CENTRE
Ram & rom
Modes of data transfer.computer architecture.
Computer architecture virtual memory
Functional units
Introduction to Operating Systems

What's hot (20)

PPTX
PPTX
Cache Memory
PPTX
Basic computer organization
PPTX
The Basic Organization of Computers
PPTX
1.1.1 BINARY SYSTEM
PPTX
Basics of computer
PPTX
External Memory
PPTX
CPU Architecture - Basic
PPT
Computer hardware and its components
PPTX
Introduction to computer hardware
PPTX
Auxiliary Memory in computer Architecture.pptx
PPTX
Computer registers
PPTX
Main memory of computer .ppt
PPTX
Computer architecture
PPTX
Demand paging
PPTX
Computer storage
PPTX
Instruction cycle with interrupts
PDF
Associative memory
PPT
Memory management
PPTX
Processors
Cache Memory
Basic computer organization
The Basic Organization of Computers
1.1.1 BINARY SYSTEM
Basics of computer
External Memory
CPU Architecture - Basic
Computer hardware and its components
Introduction to computer hardware
Auxiliary Memory in computer Architecture.pptx
Computer registers
Main memory of computer .ppt
Computer architecture
Demand paging
Computer storage
Instruction cycle with interrupts
Associative memory
Memory management
Processors
Ad

Similar to Computer Architecture (20)

PPTX
LECTURE NO.03.pptx babsbsbsbsbsbsbsbsbsbbsbs
PPTX
Computer architecture unit 1 ppt for IT students
PPTX
11 cs unit 1 one shot_240427_202128 (1) (1).pptx
PPTX
CPU ARCHITECTURE and COMPUTER PROGRAMS G
PPTX
hardware.pptx on hardwaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaare
PDF
2 the computer system hardware
PPT
Computer System.ppt
PDF
COMPUTER ORGNAIZATION NOTES
PDF
Microcontroller part 1
PPT
Chapter1 introduction to computer systems
PPT
Unit 1 COMPUTER_ORGANIZATION.ppt ........
PPT
Unit 1 COMPUTER_ORGANIZATION.ppt whenekeuen
PPTX
Basic Structure of Computers: Functional Units, Basic Operational Concepts, B...
PPT
PPTX
COMPUTER ORGANIZATION for beginner and a
PPTX
Introduction to Computer System
PDF
Computer Organization and Architechuture basics
PPTX
Hardware and software of computer
PPT
Microprocessor fundamentals
PPTX
chapter2.pptxttttttttttttttttttttttttttt
LECTURE NO.03.pptx babsbsbsbsbsbsbsbsbsbbsbs
Computer architecture unit 1 ppt for IT students
11 cs unit 1 one shot_240427_202128 (1) (1).pptx
CPU ARCHITECTURE and COMPUTER PROGRAMS G
hardware.pptx on hardwaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaare
2 the computer system hardware
Computer System.ppt
COMPUTER ORGNAIZATION NOTES
Microcontroller part 1
Chapter1 introduction to computer systems
Unit 1 COMPUTER_ORGANIZATION.ppt ........
Unit 1 COMPUTER_ORGANIZATION.ppt whenekeuen
Basic Structure of Computers: Functional Units, Basic Operational Concepts, B...
COMPUTER ORGANIZATION for beginner and a
Introduction to Computer System
Computer Organization and Architechuture basics
Hardware and software of computer
Microprocessor fundamentals
chapter2.pptxttttttttttttttttttttttttttt
Ad

More from Sweta Kumari Barnwal (20)

PDF
UNIT-1 Start Learning R.pdf
PDF
MODULE-2-Cloud Computing.docx.pdf
PDF
Number System.pdf
PDF
Cloud Computing_Module-1.pdf
PDF
Computer Network-Data Link Layer-Module-2.pdf
PDF
Sensors in Different Applications Area.pdf
PDF
Sensor technology module-3-interface electronic circuits
PDF
Sensors fundamentals and characteristics, physical principle of sensing
PDF
PDF
Features of windows
PDF
Operating system and services
PDF
Introduction to computers
PDF
Application Layer
PDF
Network Layer & Transport Layer
PDF
Module 5-cloud computing-SECURITY IN THE CLOUD
PDF
Module 3-cyber security
PDF
Unit ii-hackers and cyber crimes
PDF
Module 3-cloud computing
PDF
Virtualization - cloud computing
PDF
Process improvement & service oriented software engineering
UNIT-1 Start Learning R.pdf
MODULE-2-Cloud Computing.docx.pdf
Number System.pdf
Cloud Computing_Module-1.pdf
Computer Network-Data Link Layer-Module-2.pdf
Sensors in Different Applications Area.pdf
Sensor technology module-3-interface electronic circuits
Sensors fundamentals and characteristics, physical principle of sensing
Features of windows
Operating system and services
Introduction to computers
Application Layer
Network Layer & Transport Layer
Module 5-cloud computing-SECURITY IN THE CLOUD
Module 3-cyber security
Unit ii-hackers and cyber crimes
Module 3-cloud computing
Virtualization - cloud computing
Process improvement & service oriented software engineering

Recently uploaded (20)

PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
01-Introduction-to-Information-Management.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
Pre independence Education in Inndia.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Business Ethics Teaching Materials for college
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
Institutional Correction lecture only . . .
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
O7-L3 Supply Chain Operations - ICLT Program
VCE English Exam - Section C Student Revision Booklet
01-Introduction-to-Information-Management.pdf
Final Presentation General Medicine 03-08-2024.pptx
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Pre independence Education in Inndia.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
RMMM.pdf make it easy to upload and study
O5-L3 Freight Transport Ops (International) V1.pdf
Renaissance Architecture: A Journey from Faith to Humanism
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Business Ethics Teaching Materials for college
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Supply Chain Operations Speaking Notes -ICLT Program
Abdominal Access Techniques with Prof. Dr. R K Mishra
Institutional Correction lecture only . . .
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Anesthesia in Laparoscopic Surgery in India

Computer Architecture

  • 1. Introduction to Computer Science Computer Architecture Prepared By: S. K. Barnwal Assistant Professor Arka Jain University Research Scholar (NIT, JSR)
  • 2. Introduction • A computer system is basically a machine that simplifies complicated tasks. It should maximize performance and reduce costs as well as power consumptions. The different components in the Computer System Architecture are Input Unit, Output Unit, Storage Unit, Arithmetic Logic Unit, Control Unit etc. • Computer architecture is a set of rules and methods that describe the functionality, organization and implementation of computer systems. ALU CU M/M I/P O/P
  • 3. CPU (Central Processing Unit) • A central processing unit (CPU) is the electronic circuitry within a computer that carries out the instructions of a computer program by performing the basic arithmetic, logical, control and input/output (I/O) operations specified by the instructions. • The input data travels from input unit to ALU. Similarly, the computed data travels from ALU to output unit. The data constantly moves from storage unit to ALU and back again. This is because stored data is computed on before being stored again. The control unit controls all the other units as well as their data. Central Processing Unit (CPU) consists of the following features − • CPU is considered as the brain of the computer. • CPU performs all types of data processing operations. • It stores data, intermediate results, and instructions (program). • It controls the operation of all parts of the computer.
  • 4. CPU CPU itself has following three components. • Memory or Storage Unit • Control Unit • ALU(Arithmetic Logic Unit) Memory or Storage Unit • This unit can store instructions, data, and intermediate results. This unit supplies information to other units of the computer when needed. It is also known as internal storage unit or the main memory or the primary storage or Random Access Memory (RAM). • Its size affects speed, power, and capability. Primary memory and secondary memory are two types of memories in the computer.
  • 5. CPU Functions of the memory unit are − • It stores all the data and the instructions required for processing. • It stores intermediate results of processing. • It stores the final results of processing before these results are released to an output device. • All inputs and outputs are transmitted through the main memory. Control Unit • This unit controls the operations of all parts of the computer but does not carry out any actual data processing operations. Functions of this unit are − • It is responsible for controlling the transfer of data and instructions among other units of a computer. • It manages and coordinates all the units of the computer. • It obtains the instructions from the memory, interprets them, and directs the operation of the computer.
  • 6. CPU • It communicates with Input/Output devices for transfer of data or results from storage. • It does not process or store data. ALU (Arithmetic Logic Unit) • This unit consists of two subsections namely, • Arithmetic Section • Logic Section • Arithmetic Section: Function of arithmetic section is to perform arithmetic operations like addition, subtraction, multiplication, and division. All complex operations are done by making repetitive use of the above operations. • Logic Section: Function of logic section is to perform logic operations such as comparing, selecting, matching, and merging of data.
  • 7. Communication between Various Units of a Computer System • Input Unit: The input unit provides data to the computer system from the outside. So, basically it links the external environment with the computer. It takes data from the input devices, converts it into machine language and then loads it into the computer system. Keyboard, mouse etc. are the most commonly used input devices. • Output Unit: The output unit provides the results of computer process to the users i.e it links the computer with the external environment. Most of the output data is the form of audio or video. The different output devices are monitors, printers, speakers, headphones etc. • CPU: CPU is considered as the brain of the computer. CPU performs all types of data processing operations. It stores data, intermediate results, and instructions (program). It controls the operation of all parts of the computer.
  • 8. The Instruction Format Computer perform task on the basis of instruction provided. An instruction in computer comprises of groups called fields. These fields contain different information as for computers every things is in 0 and 1 so each field has different significance on the basis of which a CPU decide what to perform. The most common fields are: • Operation field which specifies the operation to be performed like addition. • Address field that consist the location of operand, i.e., register or memory location. • Mode field which specifies how operand is to be founded. • Zero Address Instructions – A stack based computer do not use address field in instruction. (Ex; PUSH A, POP A)
  • 9. The Instruction Format • One Address Instructions– This uses a implied ACCUMULATOR register for data manipulation. One operand is in accumulator and other is in register or memory location. Implied means that the CPU already know that one operand is in accumulator so there is no need to specify it. (Ex; ADD A, MUL C, ADD 55 etc) • Two Address Instructions – This is common in commercial computers. Here two address can be specified in the instructions. Unlike earlier in one address instruction the result was stored in accumulator here result cab be stored at different location rather than just accumulator, but require more number of bit to represent address. Here destination address can also contain operand. (Ex; ADD A, B; ADD R1, A) • Three Address Instructions – This has three address field to specify a register or a memory location. Program created are much short in size but number of bits per instruction increase. (Ex; ADD R1, A, B)
  • 10. Instruction Set The instruction set, also called ISA (instruction set architecture), and is part of a computer that pertains to programming, which is more or less machine language. The instruction set provides commands to the processor, to tell it what it needs to do. The instruction set consists of addressing modes, instructions, native data types, registers, memory architecture, interrupt, and exception handling, and external I/O. Examples of instruction set • ADD - Add two numbers together. • COMPARE - Compare numbers. • IN - Input information from a device, e.g., keyboard. • JUMP - Jump to designated RAM address. • JUMP IF - Conditional statement that jumps to a designated RAM address. • LOAD - Load information from RAM to the CPU. • OUT - Output information to device, e.g., monitor. • STORE - Store information to RAM.
  • 11. Processor Speed • Processor speed measures (in megahertz or gigahertz; MHz or GHz) the number of instructions per second the computer executes. • A computer’s processor clock speed determines how quickly the central processing unit (CPU) can retrieve and interpret instructions. This helps our computer complete more tasks by getting them done faster. • Faster clock speeds mean that we’ll see tasks ordered from our CPU completed quicker, making our experience seamless and reducing the time you wait to interface with our favorite applications and programs.
  • 12. Multiprocessor Systems Most computer systems are single processor systems i.e they only have one processor. However, multiprocessor or parallel systems are increasing in importance nowadays. These systems have multiple processors working in parallel that share the computer clock, memory, bus, peripheral devices etc. There are two types of multiprocessors, one is called shared memory multiprocessor and another is distributed memory multiprocessor. In shared memory multiprocessors, all the CPUs shares the common memory but in a distributed memory multiprocessor, every CPU has its own private memory.
  • 13. Multiprocessor System Advantages of Multiprocessor Systems • More reliable Systems: In a multiprocessor system, even if one processor fails, the system will not halt. This ability to continue working despite hardware failure is known as graceful degradation. For example: If there are 5 processors in a multiprocessor system and one of them fails, then also 4 processors are still working. So the system only becomes slower and does not ground to a halt. • Enhanced Throughput: If multiple processors are working in tandem, then the throughput of the system increases i.e. number of processes getting executed per unit of time increase. If there are N processors then the throughput increases by an amount N. • More Economic Systems: Multiprocessor systems are cheaper than single processor systems in the long run because they share the data storage, peripheral devices, power supplies etc. If there are multiple processes that share data, it is better to schedule them on multiprocessor systems with shared data than have different computer systems with multiple copies of the data.
  • 14. Multiprocessor System Disadvantages of Multiprocessor Systems • Increased Expense: Even though multiprocessor systems are cheaper in the long run than using multiple computer systems, still they are quite expensive. It is much cheaper to buy a simple single processor system than a multiprocessor system. • Complicated Operating System Required: There are multiple processors in a multiprocessor system that share peripherals, memory etc. So, it is much more complicated to schedule processes and impart resources to processes than in single processor systems. Hence, a more complex and complicated operating system is required in multiprocessor systems. • Large Main Memory Required: All the processors in the multiprocessor system share the memory. So a much larger pool of memory is required as compared to single processor systems.