Computer processing

Shakila Mahjabin
Shakila MahjabinFaculty, Dept of CSE en IUBAT
COMPUTER
PROCESSING
CSE-101
LECTURE-02
SHAKILA MAHJABIN TONNI,
LECTURER, DEPT OF CSE, BAIUST
1©SMT,Faculty,CSE,BAIUST
©SMT,Faculty,CSE,BAIUST
What is Processing?
The procedure that
transforms raw data into
useful information is
called processing.
2
©SMT,Faculty,CSE,BAIUST
Components of Processing
1. CPU:
The Control Unit (CU)
The Arithmetic Logic Unit
(ALU)
2. Memory
4. Bus:
System Bus
Address Bus
Data Bus
Control Bus
Expansion Bus
3. Registers
3
The CPU
 The processor is also called the Central
Processing Unit (CPU)
 Converts data into information
 Set of electronic circuitry attached to the
computer's main circuit board (the
motherboard) that executes stored program
instructions
 It manages all devices and performs the
actual processing of data.
 Two parts
 Control Unit (CU)
 Arithmetic Logic Unit (ALU)
4
©SMT,Faculty,CSE,BAIUST
CENTRAL PROCESSING UNIT
(CPU)5
©SMT,Faculty,CSE,BAIUST
CENTRAL PROCESSING UNIT
(CPU)
The Control Unit (CU):
All the computer’s resources are managed from the
control unit. This is the logical hub of the computer.
The Arithmetic Logic Unit (ALU):
Arithmetic operations include addition, subtraction,
multiplication and division.
When the control unit encounters an instruction that
involves arithmetic or logic, it passes that instruction to
ALU.
6
©SMT,Faculty,CSE,BAIUST
Memory
Memory also consists of chips attached to the
motherboard. Memory holds data and program
instructions as the CPU works with them. This
memory is called Random Access Memory (RAM).
The CPU can find any piece of data in RAM, when
it needs it for processing.
Also called as Primary
storage/ Primary
memory/ Main
storage/ Internal
storage/Main memory
7
©SMT,Faculty,CSE,BAIUST
MEMORY SIZE
6.9
Unit Approx. Value Actual Value
(bytes) (bytes) (bytes)
Kilobyte (KB) 1,000 B 1,024
Megabyte (MB) 1,000 KB 1,048,576
Gigabyte (GB) 1,000 MB 1,073,741,824
Terabyte (TB) 1,000 GB 1,099,511,627,776
8
©SMT,Faculty,CSE,BAIUST
Types of Memory
Non- Volatile: Non-volatile chips hold data even when the
computer is unplugged. For example, ROM,
PROM(Programmable Read Only Memory), BIOS.
Volatile: Volatile memory requires power to store data. For
example, RAM, SIMM, DIMM, SO-DIMM.
Flush: Flush memory is a special type of non-volatile RAM. It is
often used as portable storage device.
Used in Digital camera, portable MP3 player, USB device.
9
©SMT,Faculty,CSE,BAIUST
Types of Memory
Cache: Moving data between RAM and the CPU’s register is one of the most
time consuming task, as Ram is more slower than CPU.
A partial solution is to add a small memory with the CPU. It is similar to RAM, but
very fast. It holds common or recently used data.
Speeds up computer processing. Most computers have several caches.
When a program is running and CPU needs to read data, it first checks whether
the data is in the Cache memory. If the data is not there, then CPU loads the data
from RAM to registers and also, loads a copy to the Cache.
10
©SMT,Faculty,CSE,BAIUST
Cache
Step 1
Processor
requests
data or
instructions
Step 2
Go to address in main
memory and read
Step 3
Transfer to main CPU and cache
Next processor request
• Look first at cache
• Go to memory
P
R
O
C
E
S
S
O
R
R
A
M
Cache
11
©SMT,Faculty,CSE,BAIUST
RAM (Random Access
Memory)
 Requires current to retain values
 Volatile
 Data and instructions can be read and
modified
 Users typically refer to this type of memory
 Maximum amount of RAM that can be
installed is based upon the motherboard
design
 RAM contains-
Systems current instructions
Program currently running
12
ROM (Read Only Memory)
 Non-volatile
 Instructions for booting the computer
 Data and instructions can be read, but not
modified
 Instructions are typically recorded at factory
PROM
 Programmable ROM
 ROM burner can change instructions on some
ROM chips
13
©SMT,Faculty,CSE,BAIUST
Register
Special-purpose, High-speed , Temporary storage
Located inside CPU
The size of a register is sometimes called the word-size. It indicates
the amount of data or bits with which a processor can work at a single
time.
The bigger the word size, the more quickly computer can process
data.
In real life the terminologies “16-bit processor” or, “64-bit processor”
is refers to the size of registers in the processor.
If other factors are kept normal, than 32-bit registers can process
data twice as fast as the registers with 16-bits.
Instruction register
Holds instruction currently
being executed
Data register
Holds data waiting to be
processed and results from
processing
14
©SMT,Faculty,CSE,BAIUST
Bus
 Paths that transport electrical signals
 Bus width
 Number of bits of data that can be carried at a time
 Normally the same as the CPUs word size
 Speed measured in MHz
15
©SMT,Faculty,CSE,BAIUST
System Bus
 Transports data between the CPU and memory
 System Bus is of three types-
 Address bus,
 Data bus,
 Control bus.
 Address - the components pass memory
addresses to one another over the address bus.
 Control - used to send out signals to coordinate
and manage the activities of the motherboard
components.
 Data - transferred between peripherals, memory
and the CPU. Obviously, the data bus can be a
16
©SMT,Faculty,CSE,BAIUST
System Bus
CPU
PRIMARY
STORAGE
DATA BUS
ADDRESS BUS
CONTROL BUS
INPUT
DEVICES
OUTPUT
DEVICES
SECONDARY
STORAGE
17 ©SMT,Faculty,CSE,BAIUST
Expansion Buses
 Connect the motherboard to expansion slots
 Plug expansion boards into slots
 interface cards
 adapter cards
 Provides for external connectors / ports
 Serial
 Parallel
18
©SMT,Faculty,CSE,BAIUST
External/PC Buses
ISA Slow-speed devices like mouse, modem
PCI High-speed devices like hard disks and network cards
AGP Connects memory and graphics card for faster video
performance
USB Supports “daisy-chaining” eliminating the need for
multiple expansion cards; hot-swappable
IEEE 1394
(FireWire)
High-speed bus connecting video equipment to the
computer
PC Card Credit card sized PC card devices normally found on
laptops
19
©SMT,Faculty,CSE,BAIUST
Buses
20
©SMT,Faculty,CSE,BAIUST
Decoders
This type of devices is used to tell the processor what must be
done based on the instructions in the memory written by users.
So if, for example, some bytes are found in the memory that
corresponds to an addition instruction the decoder will read them and
knows that it is addition based on the bytes contained then it will
activate the control lines to inform the processor that it is an addition.
Thus the decoder is considered an interface between the memory
and the processor
©SMT,Faculty,CSE,BAIUST
Other Components21
Processors
Ό A processor is part of the computer that interpret and
executes instructions.
Ό Microprocessor: A microprocessor is essentially a
processor that happens to be on a chip (or a small
number of chips), as opposed to one made from a large
number of individual components.
 Chip size is ¼ x ¼ inch
 Composed of silicon
 Contains millions of transistors
22
©SMT,Faculty,CSE,BAIUST
Types of Microprocessors
Intel
 Pentium
 Celeron
 Xeon and Itanium
 Core i -series
Intel-compatible
 Cyrix
 AMD
23
©SMT,Faculty,CSE,BAIUST
Based on the types of instruction sets, processors are of two types
 CISC Processor (Complex Instruction Set Computing)
 CISC Technology instructions
 Supplies a large number of complex instructions at the assembly
language level.
 During the early years, since memory was slow and instructions
could be retrieved up to 10 times faster from a local ROM than
from main memory, programmers tried to put as many
instructions as possible in a microcode.
 Many of the instructions were remain unused.
 The CISC approach attempts to minimize the number of
instructions per program, sacrificing the number of cycles per
instruction.
Processor Types24
©SMT,Faculty,CSE,BAIUST
 RISC Processor (Reduced Instruction Set Computing)
 Reduced instruction set
 Small subset of instructions
 Increases speed
 RISC reduces the cycles per instruction at the cost of the
number of instructions per program.
 It is designed to operate at a higher speed (perform more million
instructions per second, or millions of instructions per second).
 Earlier, computers used only 20% of the instructions. Making the
other 80% unnecessary. One advantage of reduced instruction
set computers is that they can execute their instructions very fast
because the instructions are so simple.
Processor Types25
©SMT,Faculty,CSE,BAIUST
Types of Processing
 Serial processing
 Execute one instruction at a time
 Fetch, decode, execute, store
 Parallel Processing
 Multiple processors used at the same time
 Can perform trillions of floating-point instructions
per second (teraflops)
 Ex: network servers, supercomputers
26
©SMT,Faculty,CSE,BAIUST
Types of Processing
TASK 1
RESULT
TASK 2
RESULT
Progra
m
CPU
Progra
m
CPU
Progra
m
CPU
TASK 2
CPU
TASK 3
CPU
TASK 1
RESULT
SERIAL
PARALLEL
27
©SMT,Faculty,CSE,BAIUST
Pipelining
 Instruction’s
action need not
be complete
before the next
begins
 Fetch instruction
1, begin to
decode and fetch
instruction 2
28
©SMT,Faculty,CSE,BAIUST
Executing Programs
 CU gets an instruction
and places it in memory
 CU decodes the
instruction
 CU notifies the
appropriate part of
hardware to take action
 Control is transferred to
the appropriate part of
hardware
 Task is performed
 Control is returned to the
CU
29
©SMT,Faculty,CSE,BAIUST
Fetching
Decodin
g
Executio
n
Storing
 Steps by CPU to process data.
 CPU performance is dependent upon Instruction Count, CPI (Cycles
per instruction) and Clock cycle time. And all three are affected by the
instruction set architecture.
Fetching: This is the
instruction cycle.
Here, CPU fetches the
instruction from
memory to registers.
Decoding: CPU breaks
downs the
instructions to
correspond with the
CPU’s instruction set.
Machine Cycle
30 ©SMT,Faculty,CSE,BAIUST
Machine Cycle
©SMT,Faculty,CSE,BAIUST
Execution: CPU
carries out the
instructions in
order.
Storing: Often
CPU may required
to store the
outcome into the
memory.
Machine Cycle
31
Speed and Power
What makes a computer fast?
 Microprocessor speed
 Bus line size
 Availability of cache
 Flash memory
 RISC computers
 Parallel processing
32
©SMT,Faculty,CSE,BAIUST
THANK YOU!!33
©SMT,Faculty,CSE,BAIUST
1 de 33

Recomendados

Motherboard, It's Functions and It's Components por
Motherboard, It's Functions and It's ComponentsMotherboard, It's Functions and It's Components
Motherboard, It's Functions and It's ComponentsPreSolutions Softwares
5.9K vistas12 diapositivas
Storage devices por
Storage devicesStorage devices
Storage devicesrabail asghar
54.3K vistas27 diapositivas
Motherboard and its components por
Motherboard and its componentsMotherboard and its components
Motherboard and its componentsJishnu Pradeep
118.9K vistas24 diapositivas
Computer hardware por
Computer hardwareComputer hardware
Computer hardwareMuhammad Anees
1.8K vistas8 diapositivas
Computer storage devices por
Computer storage devicesComputer storage devices
Computer storage devicesRizwan Qamar
32K vistas19 diapositivas

Más contenido relacionado

La actualidad más candente

Secondary storage devices por
Secondary storage devicesSecondary storage devices
Secondary storage devicesAbhinav Kp
20.9K vistas16 diapositivas
Computer hardware component. ppt por
Computer hardware component. pptComputer hardware component. ppt
Computer hardware component. pptNaveen Sihag
215.5K vistas19 diapositivas
Bios por
BiosBios
BiosEvans Lampi
6K vistas29 diapositivas
COMPUTER MEMORY : TYPES & FUNCTIONS por
COMPUTER MEMORY : TYPES & FUNCTIONSCOMPUTER MEMORY : TYPES & FUNCTIONS
COMPUTER MEMORY : TYPES & FUNCTIONSAngel Mary George
46.2K vistas42 diapositivas
Computer software por
Computer softwareComputer software
Computer softwareManeesh Singh
22.4K vistas19 diapositivas
Internal and external hardware components of a computer por
Internal and external hardware components of a computerInternal and external hardware components of a computer
Internal and external hardware components of a computerbethan_eastlake
33.1K vistas13 diapositivas

La actualidad más candente(20)

Secondary storage devices por Abhinav Kp
Secondary storage devicesSecondary storage devices
Secondary storage devices
Abhinav Kp20.9K vistas
Computer hardware component. ppt por Naveen Sihag
Computer hardware component. pptComputer hardware component. ppt
Computer hardware component. ppt
Naveen Sihag215.5K vistas
COMPUTER MEMORY : TYPES & FUNCTIONS por Angel Mary George
COMPUTER MEMORY : TYPES & FUNCTIONSCOMPUTER MEMORY : TYPES & FUNCTIONS
COMPUTER MEMORY : TYPES & FUNCTIONS
Angel Mary George46.2K vistas
Computer software por Maneesh Singh
Computer softwareComputer software
Computer software
Maneesh Singh22.4K vistas
Internal and external hardware components of a computer por bethan_eastlake
Internal and external hardware components of a computerInternal and external hardware components of a computer
Internal and external hardware components of a computer
bethan_eastlake33.1K vistas
01. Basics of Computer Hardware por Akhila Dakshina
01. Basics of Computer Hardware01. Basics of Computer Hardware
01. Basics of Computer Hardware
Akhila Dakshina3.7K vistas
Presentation about computer hardware por mahmood saqy
Presentation about computer hardwarePresentation about computer hardware
Presentation about computer hardware
mahmood saqy24.4K vistas
1.2 motherboard form factor por Gagandeep Singh
1.2  motherboard form factor1.2  motherboard form factor
1.2 motherboard form factor
Gagandeep Singh18.8K vistas
Computer memory por nikunjandy
Computer memoryComputer memory
Computer memory
nikunjandy10K vistas
Random access memory por Ruchi Maurya
Random access memoryRandom access memory
Random access memory
Ruchi Maurya38.6K vistas
Presentation on storage devices por Nouman Riaz
Presentation on storage devicesPresentation on storage devices
Presentation on storage devices
Nouman Riaz61.5K vistas
CPU-Central Processing Unit (With History and Complete Detail) por Adeel Rasheed
CPU-Central Processing Unit (With History and Complete Detail)CPU-Central Processing Unit (With History and Complete Detail)
CPU-Central Processing Unit (With History and Complete Detail)
Adeel Rasheed12K vistas
bit, Byte, Kilobyte por Poliano123
bit, Byte, Kilobyte bit, Byte, Kilobyte
bit, Byte, Kilobyte
Poliano1232.4K vistas
Computer memory por arunavasava
Computer memoryComputer memory
Computer memory
arunavasava1.1K vistas
Peripheral devices por Burhan Ahmed
Peripheral devicesPeripheral devices
Peripheral devices
Burhan Ahmed5.3K vistas

Destacado

"Output Devices of Computer" কম্পিউটারের আউটপুট ডিভাইস por
"Output Devices of Computer" কম্পিউটারের আউটপুট ডিভাইস"Output Devices of Computer" কম্পিউটারের আউটপুট ডিভাইস
"Output Devices of Computer" কম্পিউটারের আউটপুট ডিভাইসSakline Zubair Sifat
3.7K vistas17 diapositivas
Arrays in CPP por
Arrays in CPPArrays in CPP
Arrays in CPPShakila Mahjabin
441 vistas18 diapositivas
Ch1- Introduction to dbms por
Ch1- Introduction to dbmsCh1- Introduction to dbms
Ch1- Introduction to dbmsShakila Mahjabin
622 vistas21 diapositivas
Normalization por
NormalizationNormalization
NormalizationShakila Mahjabin
588 vistas15 diapositivas
String operation por
String operationString operation
String operationShakila Mahjabin
9.2K vistas12 diapositivas
Arrays por
ArraysArrays
ArraysShakila Mahjabin
3.8K vistas16 diapositivas

Similar a Computer processing

Multilevel arch & str org.& mips, 8086, memory por
Multilevel arch & str org.& mips, 8086, memoryMultilevel arch & str org.& mips, 8086, memory
Multilevel arch & str org.& mips, 8086, memoryMahesh Kumar Attri
3.1K vistas23 diapositivas
02 the cpu por
02 the cpu02 the cpu
02 the cpuJim Finn
225 vistas26 diapositivas
Components of the System Unit.pdf por
Components of the System Unit.pdfComponents of the System Unit.pdf
Components of the System Unit.pdfODINARARCH
66 vistas59 diapositivas
Ppt Lesson 04 por
Ppt Lesson 04Ppt Lesson 04
Ppt Lesson 04almario1988
1.9K vistas31 diapositivas
Central processor amd memory por
Central processor amd memoryCentral processor amd memory
Central processor amd memoryOscar Becwarika
3.8K vistas45 diapositivas
IS 139 Lecture 5 por
IS 139 Lecture 5IS 139 Lecture 5
IS 139 Lecture 5wajanga
2.7K vistas88 diapositivas

Similar a Computer processing(20)

Multilevel arch & str org.& mips, 8086, memory por Mahesh Kumar Attri
Multilevel arch & str org.& mips, 8086, memoryMultilevel arch & str org.& mips, 8086, memory
Multilevel arch & str org.& mips, 8086, memory
Mahesh Kumar Attri3.1K vistas
02 the cpu por Jim Finn
02 the cpu02 the cpu
02 the cpu
Jim Finn225 vistas
Components of the System Unit.pdf por ODINARARCH
Components of the System Unit.pdfComponents of the System Unit.pdf
Components of the System Unit.pdf
ODINARARCH66 vistas
Ppt Lesson 04 por almario1988
Ppt Lesson 04Ppt Lesson 04
Ppt Lesson 04
almario19881.9K vistas
Central processor amd memory por Oscar Becwarika
Central processor amd memoryCentral processor amd memory
Central processor amd memory
Oscar Becwarika3.8K vistas
IS 139 Lecture 5 por wajanga
IS 139 Lecture 5IS 139 Lecture 5
IS 139 Lecture 5
wajanga2.7K vistas
COMPONENTS OF SYSTEM UNIT por arunakshidatta
COMPONENTS OF SYSTEM UNITCOMPONENTS OF SYSTEM UNIT
COMPONENTS OF SYSTEM UNIT
arunakshidatta13.7K vistas
introduction to microprocessors por vishi1993
introduction to microprocessorsintroduction to microprocessors
introduction to microprocessors
vishi19937.6K vistas
Bindura university of science education por Innocent Tauzeni
Bindura university of science educationBindura university of science education
Bindura university of science education
Innocent Tauzeni693 vistas
Microprocessor por Embeddedbvp
MicroprocessorMicroprocessor
Microprocessor
Embeddedbvp2.6K vistas
Microprocessor por aaina_katyal
MicroprocessorMicroprocessor
Microprocessor
aaina_katyal35.6K vistas
Processor Management por Sumit kumar
Processor ManagementProcessor Management
Processor Management
Sumit kumar566 vistas
4CS3-MPI-Unit-1.pptx por Lofi19
4CS3-MPI-Unit-1.pptx4CS3-MPI-Unit-1.pptx
4CS3-MPI-Unit-1.pptx
Lofi197 vistas
Processing Devices por itsvineeth209
Processing DevicesProcessing Devices
Processing Devices
itsvineeth20942.6K vistas
Lesson three hardware basics por Mik Endale
Lesson three hardware basicsLesson three hardware basics
Lesson three hardware basics
Mik Endale3.7K vistas
3. Component of computer - System Unit ( CSI-321) por ghayour abbas
3. Component of computer - System Unit  ( CSI-321) 3. Component of computer - System Unit  ( CSI-321)
3. Component of computer - System Unit ( CSI-321)
ghayour abbas4K vistas
Computer System.ppt por jguuhxxxfp
Computer System.pptComputer System.ppt
Computer System.ppt
jguuhxxxfp11 vistas

Más de Shakila Mahjabin

CSC 433 Sample normalization SQL Question por
CSC 433 Sample normalization SQL QuestionCSC 433 Sample normalization SQL Question
CSC 433 Sample normalization SQL QuestionShakila Mahjabin
1.5K vistas5 diapositivas
Solution of Erds por
Solution of ErdsSolution of Erds
Solution of ErdsShakila Mahjabin
1.2K vistas9 diapositivas
Stack and queue por
Stack and queueStack and queue
Stack and queueShakila Mahjabin
1.2K vistas40 diapositivas
Algo analysis por
Algo analysisAlgo analysis
Algo analysisShakila Mahjabin
497 vistas21 diapositivas
Codes on structures por
Codes on structuresCodes on structures
Codes on structuresShakila Mahjabin
421 vistas3 diapositivas
array, function, pointer, pattern matching por
array, function, pointer, pattern matchingarray, function, pointer, pattern matching
array, function, pointer, pattern matchingShakila Mahjabin
556 vistas4 diapositivas

Más de Shakila Mahjabin(7)

Último

REACTJS.pdf por
REACTJS.pdfREACTJS.pdf
REACTJS.pdfArthyR3
34 vistas16 diapositivas
LDPC_CODES.ppt por
LDPC_CODES.pptLDPC_CODES.ppt
LDPC_CODES.ppthsomashekar987
16 vistas44 diapositivas
Design of Structures and Foundations for Vibrating Machines, Arya-ONeill-Pinc... por
Design of Structures and Foundations for Vibrating Machines, Arya-ONeill-Pinc...Design of Structures and Foundations for Vibrating Machines, Arya-ONeill-Pinc...
Design of Structures and Foundations for Vibrating Machines, Arya-ONeill-Pinc...csegroupvn
5 vistas210 diapositivas
Ansari: Practical experiences with an LLM-based Islamic Assistant por
Ansari: Practical experiences with an LLM-based Islamic AssistantAnsari: Practical experiences with an LLM-based Islamic Assistant
Ansari: Practical experiences with an LLM-based Islamic AssistantM Waleed Kadous
5 vistas29 diapositivas
Update 42 models(Diode/General ) in SPICE PARK(DEC2023) por
Update 42 models(Diode/General ) in SPICE PARK(DEC2023)Update 42 models(Diode/General ) in SPICE PARK(DEC2023)
Update 42 models(Diode/General ) in SPICE PARK(DEC2023)Tsuyoshi Horigome
38 vistas16 diapositivas
Investor Presentation por
Investor PresentationInvestor Presentation
Investor Presentationeser sevinç
27 vistas26 diapositivas

Último(20)

REACTJS.pdf por ArthyR3
REACTJS.pdfREACTJS.pdf
REACTJS.pdf
ArthyR334 vistas
Design of Structures and Foundations for Vibrating Machines, Arya-ONeill-Pinc... por csegroupvn
Design of Structures and Foundations for Vibrating Machines, Arya-ONeill-Pinc...Design of Structures and Foundations for Vibrating Machines, Arya-ONeill-Pinc...
Design of Structures and Foundations for Vibrating Machines, Arya-ONeill-Pinc...
csegroupvn5 vistas
Ansari: Practical experiences with an LLM-based Islamic Assistant por M Waleed Kadous
Ansari: Practical experiences with an LLM-based Islamic AssistantAnsari: Practical experiences with an LLM-based Islamic Assistant
Ansari: Practical experiences with an LLM-based Islamic Assistant
M Waleed Kadous5 vistas
Update 42 models(Diode/General ) in SPICE PARK(DEC2023) por Tsuyoshi Horigome
Update 42 models(Diode/General ) in SPICE PARK(DEC2023)Update 42 models(Diode/General ) in SPICE PARK(DEC2023)
Update 42 models(Diode/General ) in SPICE PARK(DEC2023)
Tsuyoshi Horigome38 vistas
DevOps-ITverse-2023-IIT-DU.pptx por Anowar Hossain
DevOps-ITverse-2023-IIT-DU.pptxDevOps-ITverse-2023-IIT-DU.pptx
DevOps-ITverse-2023-IIT-DU.pptx
Anowar Hossain12 vistas
BCIC - Manufacturing Conclave - Technology-Driven Manufacturing for Growth por Innomantra
BCIC - Manufacturing Conclave -  Technology-Driven Manufacturing for GrowthBCIC - Manufacturing Conclave -  Technology-Driven Manufacturing for Growth
BCIC - Manufacturing Conclave - Technology-Driven Manufacturing for Growth
Innomantra 6 vistas
Effect of deep chemical mixing columns on properties of surrounding soft clay... por AltinKaradagli
Effect of deep chemical mixing columns on properties of surrounding soft clay...Effect of deep chemical mixing columns on properties of surrounding soft clay...
Effect of deep chemical mixing columns on properties of surrounding soft clay...
AltinKaradagli10 vistas
GDSC Mikroskil Members Onboarding 2023.pdf por gdscmikroskil
GDSC Mikroskil Members Onboarding 2023.pdfGDSC Mikroskil Members Onboarding 2023.pdf
GDSC Mikroskil Members Onboarding 2023.pdf
gdscmikroskil58 vistas
MongoDB.pdf por ArthyR3
MongoDB.pdfMongoDB.pdf
MongoDB.pdf
ArthyR345 vistas
Design_Discover_Develop_Campaign.pptx por ShivanshSeth6
Design_Discover_Develop_Campaign.pptxDesign_Discover_Develop_Campaign.pptx
Design_Discover_Develop_Campaign.pptx
ShivanshSeth637 vistas
MSA Website Slideshow (16).pdf por msaucla
MSA Website Slideshow (16).pdfMSA Website Slideshow (16).pdf
MSA Website Slideshow (16).pdf
msaucla92 vistas
Generative AI Models & Their Applications por SN
Generative AI Models & Their ApplicationsGenerative AI Models & Their Applications
Generative AI Models & Their Applications
SN10 vistas
SUMIT SQL PROJECT SUPERSTORE 1.pptx por Sumit Jadhav
SUMIT SQL PROJECT SUPERSTORE 1.pptxSUMIT SQL PROJECT SUPERSTORE 1.pptx
SUMIT SQL PROJECT SUPERSTORE 1.pptx
Sumit Jadhav 18 vistas

Computer processing

  • 1. COMPUTER PROCESSING CSE-101 LECTURE-02 SHAKILA MAHJABIN TONNI, LECTURER, DEPT OF CSE, BAIUST 1©SMT,Faculty,CSE,BAIUST
  • 2. ©SMT,Faculty,CSE,BAIUST What is Processing? The procedure that transforms raw data into useful information is called processing. 2
  • 3. ©SMT,Faculty,CSE,BAIUST Components of Processing 1. CPU: The Control Unit (CU) The Arithmetic Logic Unit (ALU) 2. Memory 4. Bus: System Bus Address Bus Data Bus Control Bus Expansion Bus 3. Registers 3
  • 4. The CPU  The processor is also called the Central Processing Unit (CPU)  Converts data into information  Set of electronic circuitry attached to the computer's main circuit board (the motherboard) that executes stored program instructions  It manages all devices and performs the actual processing of data.  Two parts  Control Unit (CU)  Arithmetic Logic Unit (ALU) 4 ©SMT,Faculty,CSE,BAIUST
  • 6. CENTRAL PROCESSING UNIT (CPU) The Control Unit (CU): All the computer’s resources are managed from the control unit. This is the logical hub of the computer. The Arithmetic Logic Unit (ALU): Arithmetic operations include addition, subtraction, multiplication and division. When the control unit encounters an instruction that involves arithmetic or logic, it passes that instruction to ALU. 6 ©SMT,Faculty,CSE,BAIUST
  • 7. Memory Memory also consists of chips attached to the motherboard. Memory holds data and program instructions as the CPU works with them. This memory is called Random Access Memory (RAM). The CPU can find any piece of data in RAM, when it needs it for processing. Also called as Primary storage/ Primary memory/ Main storage/ Internal storage/Main memory 7 ©SMT,Faculty,CSE,BAIUST
  • 8. MEMORY SIZE 6.9 Unit Approx. Value Actual Value (bytes) (bytes) (bytes) Kilobyte (KB) 1,000 B 1,024 Megabyte (MB) 1,000 KB 1,048,576 Gigabyte (GB) 1,000 MB 1,073,741,824 Terabyte (TB) 1,000 GB 1,099,511,627,776 8 ©SMT,Faculty,CSE,BAIUST
  • 9. Types of Memory Non- Volatile: Non-volatile chips hold data even when the computer is unplugged. For example, ROM, PROM(Programmable Read Only Memory), BIOS. Volatile: Volatile memory requires power to store data. For example, RAM, SIMM, DIMM, SO-DIMM. Flush: Flush memory is a special type of non-volatile RAM. It is often used as portable storage device. Used in Digital camera, portable MP3 player, USB device. 9 ©SMT,Faculty,CSE,BAIUST
  • 10. Types of Memory Cache: Moving data between RAM and the CPU’s register is one of the most time consuming task, as Ram is more slower than CPU. A partial solution is to add a small memory with the CPU. It is similar to RAM, but very fast. It holds common or recently used data. Speeds up computer processing. Most computers have several caches. When a program is running and CPU needs to read data, it first checks whether the data is in the Cache memory. If the data is not there, then CPU loads the data from RAM to registers and also, loads a copy to the Cache. 10 ©SMT,Faculty,CSE,BAIUST
  • 11. Cache Step 1 Processor requests data or instructions Step 2 Go to address in main memory and read Step 3 Transfer to main CPU and cache Next processor request • Look first at cache • Go to memory P R O C E S S O R R A M Cache 11 ©SMT,Faculty,CSE,BAIUST
  • 12. RAM (Random Access Memory)  Requires current to retain values  Volatile  Data and instructions can be read and modified  Users typically refer to this type of memory  Maximum amount of RAM that can be installed is based upon the motherboard design  RAM contains- Systems current instructions Program currently running 12
  • 13. ROM (Read Only Memory)  Non-volatile  Instructions for booting the computer  Data and instructions can be read, but not modified  Instructions are typically recorded at factory PROM  Programmable ROM  ROM burner can change instructions on some ROM chips 13 ©SMT,Faculty,CSE,BAIUST
  • 14. Register Special-purpose, High-speed , Temporary storage Located inside CPU The size of a register is sometimes called the word-size. It indicates the amount of data or bits with which a processor can work at a single time. The bigger the word size, the more quickly computer can process data. In real life the terminologies “16-bit processor” or, “64-bit processor” is refers to the size of registers in the processor. If other factors are kept normal, than 32-bit registers can process data twice as fast as the registers with 16-bits. Instruction register Holds instruction currently being executed Data register Holds data waiting to be processed and results from processing 14 ©SMT,Faculty,CSE,BAIUST
  • 15. Bus  Paths that transport electrical signals  Bus width  Number of bits of data that can be carried at a time  Normally the same as the CPUs word size  Speed measured in MHz 15 ©SMT,Faculty,CSE,BAIUST
  • 16. System Bus  Transports data between the CPU and memory  System Bus is of three types-  Address bus,  Data bus,  Control bus.  Address - the components pass memory addresses to one another over the address bus.  Control - used to send out signals to coordinate and manage the activities of the motherboard components.  Data - transferred between peripherals, memory and the CPU. Obviously, the data bus can be a 16 ©SMT,Faculty,CSE,BAIUST
  • 17. System Bus CPU PRIMARY STORAGE DATA BUS ADDRESS BUS CONTROL BUS INPUT DEVICES OUTPUT DEVICES SECONDARY STORAGE 17 ©SMT,Faculty,CSE,BAIUST
  • 18. Expansion Buses  Connect the motherboard to expansion slots  Plug expansion boards into slots  interface cards  adapter cards  Provides for external connectors / ports  Serial  Parallel 18 ©SMT,Faculty,CSE,BAIUST
  • 19. External/PC Buses ISA Slow-speed devices like mouse, modem PCI High-speed devices like hard disks and network cards AGP Connects memory and graphics card for faster video performance USB Supports “daisy-chaining” eliminating the need for multiple expansion cards; hot-swappable IEEE 1394 (FireWire) High-speed bus connecting video equipment to the computer PC Card Credit card sized PC card devices normally found on laptops 19 ©SMT,Faculty,CSE,BAIUST
  • 21. Decoders This type of devices is used to tell the processor what must be done based on the instructions in the memory written by users. So if, for example, some bytes are found in the memory that corresponds to an addition instruction the decoder will read them and knows that it is addition based on the bytes contained then it will activate the control lines to inform the processor that it is an addition. Thus the decoder is considered an interface between the memory and the processor ©SMT,Faculty,CSE,BAIUST Other Components21
  • 22. Processors Ό A processor is part of the computer that interpret and executes instructions. Ό Microprocessor: A microprocessor is essentially a processor that happens to be on a chip (or a small number of chips), as opposed to one made from a large number of individual components.  Chip size is ¼ x ¼ inch  Composed of silicon  Contains millions of transistors 22 ©SMT,Faculty,CSE,BAIUST
  • 23. Types of Microprocessors Intel  Pentium  Celeron  Xeon and Itanium  Core i -series Intel-compatible  Cyrix  AMD 23 ©SMT,Faculty,CSE,BAIUST
  • 24. Based on the types of instruction sets, processors are of two types  CISC Processor (Complex Instruction Set Computing)  CISC Technology instructions  Supplies a large number of complex instructions at the assembly language level.  During the early years, since memory was slow and instructions could be retrieved up to 10 times faster from a local ROM than from main memory, programmers tried to put as many instructions as possible in a microcode.  Many of the instructions were remain unused.  The CISC approach attempts to minimize the number of instructions per program, sacrificing the number of cycles per instruction. Processor Types24 ©SMT,Faculty,CSE,BAIUST
  • 25.  RISC Processor (Reduced Instruction Set Computing)  Reduced instruction set  Small subset of instructions  Increases speed  RISC reduces the cycles per instruction at the cost of the number of instructions per program.  It is designed to operate at a higher speed (perform more million instructions per second, or millions of instructions per second).  Earlier, computers used only 20% of the instructions. Making the other 80% unnecessary. One advantage of reduced instruction set computers is that they can execute their instructions very fast because the instructions are so simple. Processor Types25 ©SMT,Faculty,CSE,BAIUST
  • 26. Types of Processing  Serial processing  Execute one instruction at a time  Fetch, decode, execute, store  Parallel Processing  Multiple processors used at the same time  Can perform trillions of floating-point instructions per second (teraflops)  Ex: network servers, supercomputers 26 ©SMT,Faculty,CSE,BAIUST
  • 27. Types of Processing TASK 1 RESULT TASK 2 RESULT Progra m CPU Progra m CPU Progra m CPU TASK 2 CPU TASK 3 CPU TASK 1 RESULT SERIAL PARALLEL 27 ©SMT,Faculty,CSE,BAIUST
  • 28. Pipelining  Instruction’s action need not be complete before the next begins  Fetch instruction 1, begin to decode and fetch instruction 2 28 ©SMT,Faculty,CSE,BAIUST
  • 29. Executing Programs  CU gets an instruction and places it in memory  CU decodes the instruction  CU notifies the appropriate part of hardware to take action  Control is transferred to the appropriate part of hardware  Task is performed  Control is returned to the CU 29 ©SMT,Faculty,CSE,BAIUST
  • 30. Fetching Decodin g Executio n Storing  Steps by CPU to process data.  CPU performance is dependent upon Instruction Count, CPI (Cycles per instruction) and Clock cycle time. And all three are affected by the instruction set architecture. Fetching: This is the instruction cycle. Here, CPU fetches the instruction from memory to registers. Decoding: CPU breaks downs the instructions to correspond with the CPU’s instruction set. Machine Cycle 30 ©SMT,Faculty,CSE,BAIUST
  • 31. Machine Cycle ©SMT,Faculty,CSE,BAIUST Execution: CPU carries out the instructions in order. Storing: Often CPU may required to store the outcome into the memory. Machine Cycle 31
  • 32. Speed and Power What makes a computer fast?  Microprocessor speed  Bus line size  Availability of cache  Flash memory  RISC computers  Parallel processing 32 ©SMT,Faculty,CSE,BAIUST