SlideShare a Scribd company logo
1 of 42
Unit-1- Chapter 2
 Introduction
 Central processing unit
 Communication among various units
 Referred as brain of a computer
 Converts data(input) to information (output)
 Complex, exclusive set of electronic circuitry which
executes stored program instructions.
 Performs arithmetic and logical operations
 Operates only on binary data, composed of 0’s and
1’s
 Controls the usage of main memory to store data
and instructions
 Controls sequence of the operations.
 CPU consists of three main subsystems
 ALU
 CU
 Registers
 Arithmetic logic unit
 It contains electronic circuitry to execute arithmetic and
logical operations on the data available to it.
 ALU comprises of two things
 Arithmetic unit
 Logic unit
 Arithmetic unit
 Performs actual computing carrying out arithmetic
calculations.
 Such as addition, subtraction, multiplication and division
 Performs them at a very high speed.
 Logic unit
 Performs logical operations based on the instructions
provided to it
 Logical comparisons between the data items
 It compares numbers, letters and special characters
 Takes actions based on the result of comparison.
 Three conditions:
▪ Equal-to condition
▪ Less than condition
▪ Greater than condition
 ALU compares two values to determine if they are
equal
 Eg: no of tickets sold equals to the number of the
seats in the cinema hall, then houseful is declared.
 ALU compares the value to determine if one is less
than the other
 Eg: if a person purchases less than two tickets then
no discount rate is given.
 The computer determines if one of the value is
greater than the other.
 If person purchases greater than two tickets, he gets
a discount of 5% on ticket.
 Are special purpose , high speed temporary memory
units.
 They hold various types of data and information ,
instructions , addresses and intermediate results of
calculations.
 They offer extra space for the computer hence
speeds up the computer in calculations.
 The registers work under the direction of CU to
accept, hold and transfer the instruction or data and
perform arithmetic or logical operations at high
speed.
 When one instruction finishes its execution, next
execution will be ready in a register called program
counter
Register name Function
Program Counter (PC) The PC keeps track of the next instruction
to be executed
Instruction Register (IR) Holds the instruction to be decoded by
the CPU
Memory Address Register (MAR) Holds the address of next location in the
memory to be accessed.
Memory Buffer Register(MBR) Used to store data either coming to CPU
or data being transferred by CPU
Accumulator(ACC) General purpose register used to store
the temporary results and results
produced by ALU
Data register (DR) The DR is used to store the operands and
other data.
 Instructions are normally stored in the consecutive
registers and are executed sequentially.
 CU reads an instruction from the memory by a
specific address in the registers and executes it.
 The next instruction is fetched from a sequence and
executed and so on.
 It contains circuitry that uses electrical signals to direct the
entire computer system to carry out, or execute , stored
program instructions.
 It does not execute the program instructions, it directs other
parts of the system to do so by communicating both ALU
and memory.
 Controls the I/O devices and transfer of data to and from the
primary storage.
 CU itself is controlled by the programs located in main
memory.
 CU decides which action will occur at which time.
 Following figure illustrates how the CU instructs other parts
of CPU.
 A bus is a set of connections between two or more
components / devices which are designed for
transfer several . All bits of word from the source to
destination.
 A bus contains multiple paths, which are also
termed as lines, and each line is capable of
transferring one bit at a time.
 To transfer 8 bit at a time, eight lines are required.
 A bus can be unidirectional or bi-directional.
 In shared bus, only one source can transmit data at
one time, while one or more than one can receive
that signal.
 A bus that connects three components i.e. CPU,
memory and I/O devices is called system bus.
 A system bus contains of 50-100 separate lines
 They are categorized into three groups.
 Data lines
 Address lines
 Control lines
 Data lines
 They provide path for moving data between the system
modules.
 Data lines are collectively known as data bus.
 Consists of 8,16,32 separate lines
 No. of lines in a data bus is called the width of the data
bus.
 The width of the data bus determines the performance of
a computer system.
 Address lines
 It designates the source of data for a data bus.
 Memory is divided into a linear array of bytes or words, for
reading or writing any information on to memory
 The CPU needs to specify the address of a particular
location.
 This is supplied by the address bus.
 Width of address bus specifies the maximum possible
memory supported by the system.
 Control lines
 Used to control the access to data and the address bus
 Control lines are collectively are called control bus.
 Used for transmission of commands and timing signals
between the system modules.
 Timing signals indicate whether data and address
information is valid
 Command signals specify which operations are to be
performed.
 Used to reading/writing to I/O devices or the memory.
 Its an integral part of the CPU, it is separately placed
on the computer’s mother board
 Memory stores the data and programs as long as
the program requires it for the operations.
 CPU access the memory in random manner.
 Two types:
 Random Access Memory (RAM)
 Read Only Memory (ROM)
 provides the required information to the processor
 It is a block of sequential memory locations each of
them having a unique memory address and those
locations having a data element.
 It is volatile in nature, data remains as long as power
is switched on, it is lost when the power supply is
broken.
 Stores the initial start-up instructions and routines
in Basic Input / Output System (BIOS) which can be
read only the CPU , each time the system is on.
 Data is not volatile in nature
 The instructions built in ROM are built into the
electronic circuits of the chip called the firmware.
 Different kinds of ROM are available
 Programmable Read Only Memory (PROM)
 Erasable Programmable Read Only Memory (EPROM)
 Electrically Erasable Programmable Read Only Memory
(EEPROM)
 Very high speed , expensive piece of memory, used
to speed up the memory retrieval process.
 Without cache, very request from the CPU to access
the data would have been sent to main memory,
then the response is sent on the system bus
 This slows the process in computing terms
 Cache will store the frequently accessed data and
data that are around it, helps in achieving a quicker
response time.
 The computer uses the logic to find out which data
are frequently accessed and keeps them in cache.
 Cache is categorized into three levels
 L1 cache
 L2 cache
 L3 cache
 Closest to the processor, hence termed as primary or L1
cache.
 Each time the processor requests for a data, the cache
controller on the chip uses a special circuitry to first
check whether the requested data is already present in
the cache.
 Cache ranges in size from 8 to 64 KB, with larger
amounts on a new processors
 It is fast because it is integrated into the processor.
 Two different ways that a processor can organize its
primary cache
 Unified cache- a single cache for both command
instructions and program data
 Spilt cache- separate cache for instruction and data.
 This cache is larger but slower than L1 cache.
 Used to see the recent accesses that is not picked by
the L1 cache
 Usually 64 to 2MB in size.
 L1 and L2 can be used together, missing data can be
retrieved from L2 cache.
 Presented on the motherboard of the computer
 Present in between the main memory and the
processor.
 Reduces the time gap between the request and
retrieval of the data and instructions
 Hence accesses the data faster than main memory.
 Ranges more than 3MB
 All units of the computer system, work conjunction
with each other to formulate a function computer
system.
 To have a proper coordination among these units , a
reliable and robust means of communication is
required.
 Processor to memory communication
 Processor-I/O devices communication
 The entire process between processor and a memory
can be divided into two steps.
 Information transfer from the memory to the processor
 Writing information in the memory
 Information transfer
 Steps
 The processor places the address in the MAR through the
address bus
 The process issues a READ command through the control bus.
 The memory places required data on the data bus, which are
then transferred to the processor.
 Information written into the memory
 The processor places the address into the MAR through
address bus
 The processor places the data to be written in the memory
on the data bus.
 The processor issues a WRITE command to the memory on
the data bus
 The data are written In the memory at the address
specified in the MAR
 The main concern in the processor –memory
communication is the speed mismatch between the
memory and the processor.
 The memory speed is slower than the CPU’s speed
 CPU is forced to wait for the data.
 This reduced by using a small fast memory called
the cache between processor and memory.
 All the I/O devices are connected via system bus
 Each device in a computer system is first met with
the controller called the Direct Memory Access
(DMA) controller, which controls the operation of
that device.
 DMA is capable of taking over the system bus from
the CPU
 DMA can access the memory directly and used to
transfer data to and from the one memory location
to another.
 DMA can use the system bus only when the CPU
does not require it or it should suspend the
operations currently being processed by the CPU.
 With a DMA controller, a dedicated data transfer
device reads the incoming data from a device and
stores that data in a system memory buffer for later
retrieval by the CPU.
 The DMA controller allows the peripheral devices to
access the memory for both read and write
operations without affecting the current state of
computer’s central processor.
 When a large amount of data is to be transferred from
the CPU, the DMA controller to be used.
 The DMA controller allows the I/O unit of exchange data
directly with the memory without going through CPU
except at the beginning (to issue the command) and at
the end (to clean up the command)
 While I/O operation is being performed by the DMA
controller, the CPU can start the execution of the some
other part of the same program or can start executing
some other program.
 Thus, DMA speeds up the speed of the I/O operations by
taking over the buses and eliminating CPU interventions

More Related Content

What's hot

What's hot (20)

Unit2fit
Unit2fitUnit2fit
Unit2fit
 
Bindura university of science education
Bindura university of science educationBindura university of science education
Bindura university of science education
 
Memory organization
Memory organizationMemory organization
Memory organization
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Memory organization
Memory organizationMemory organization
Memory organization
 
Cliff sugerman
Cliff sugermanCliff sugerman
Cliff sugerman
 
Cpu organisation
Cpu organisationCpu organisation
Cpu organisation
 
Unit iii
Unit iiiUnit iii
Unit iii
 
Computer System Architecture
Computer System ArchitectureComputer System Architecture
Computer System Architecture
 
Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architecture
 
Chapter 3 caal (1)
Chapter 3 caal (1)Chapter 3 caal (1)
Chapter 3 caal (1)
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
The Basic Organization of Computers
The Basic Organization of ComputersThe Basic Organization of Computers
The Basic Organization of Computers
 
Computer Architecture Design (CAD)
Computer Architecture Design (CAD)Computer Architecture Design (CAD)
Computer Architecture Design (CAD)
 
COMPUTER ORGANIZATION NOTES Unit 5
COMPUTER ORGANIZATION NOTES Unit 5COMPUTER ORGANIZATION NOTES Unit 5
COMPUTER ORGANIZATION NOTES Unit 5
 
Itc lec 3 Ip cycle , system unit, interface
Itc lec 3 Ip cycle , system unit, interfaceItc lec 3 Ip cycle , system unit, interface
Itc lec 3 Ip cycle , system unit, interface
 
07 Input Output
07  Input  Output07  Input  Output
07 Input Output
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 

Viewers also liked

Data types and Operators
Data types and OperatorsData types and Operators
Data types and Operatorsraksharao
 
Java-Unit 3- Chap2 exception handling
Java-Unit 3- Chap2 exception handlingJava-Unit 3- Chap2 exception handling
Java-Unit 3- Chap2 exception handlingraksharao
 
output devices
output devicesoutput devices
output devicesraksharao
 
Chap2 class,objects
Chap2 class,objectsChap2 class,objects
Chap2 class,objectsraksharao
 
Chap2 exception handling
Chap2 exception handlingChap2 exception handling
Chap2 exception handlingraksharao
 
Chap1 packages
Chap1 packagesChap1 packages
Chap1 packagesraksharao
 
Chap2 class,objects contd
Chap2 class,objects contdChap2 class,objects contd
Chap2 class,objects contdraksharao
 
Control statements
Control statementsControl statements
Control statementsraksharao
 
FIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer programFIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer programraksharao
 
Using Input Output
Using Input OutputUsing Input Output
Using Input Outputraksharao
 
Module1 part2
Module1 part2Module1 part2
Module1 part2raksharao
 
java-Unit4 chap2- awt controls and layout managers of applet
java-Unit4 chap2- awt controls and layout managers of appletjava-Unit4 chap2- awt controls and layout managers of applet
java-Unit4 chap2- awt controls and layout managers of appletraksharao
 
Chap3 inheritance
Chap3 inheritanceChap3 inheritance
Chap3 inheritanceraksharao
 
Module1 Mobile Computing Architecture
Module1 Mobile Computing ArchitectureModule1 Mobile Computing Architecture
Module1 Mobile Computing Architectureraksharao
 
Chap3 primary memory
Chap3 primary memoryChap3 primary memory
Chap3 primary memoryraksharao
 
Chap2 input devices
Chap2 input devicesChap2 input devices
Chap2 input devicesraksharao
 
Chap3 multi threaded programming
Chap3 multi threaded programmingChap3 multi threaded programming
Chap3 multi threaded programmingraksharao
 
Chap1 computer basics
Chap1 computer basicsChap1 computer basics
Chap1 computer basicsraksharao
 

Viewers also liked (20)

Data types and Operators
Data types and OperatorsData types and Operators
Data types and Operators
 
Java-Unit 3- Chap2 exception handling
Java-Unit 3- Chap2 exception handlingJava-Unit 3- Chap2 exception handling
Java-Unit 3- Chap2 exception handling
 
C#unit4
C#unit4C#unit4
C#unit4
 
output devices
output devicesoutput devices
output devices
 
Chap2 class,objects
Chap2 class,objectsChap2 class,objects
Chap2 class,objects
 
Chap2 exception handling
Chap2 exception handlingChap2 exception handling
Chap2 exception handling
 
Chap1 packages
Chap1 packagesChap1 packages
Chap1 packages
 
Chap1 array
Chap1 arrayChap1 array
Chap1 array
 
Chap2 class,objects contd
Chap2 class,objects contdChap2 class,objects contd
Chap2 class,objects contd
 
Control statements
Control statementsControl statements
Control statements
 
FIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer programFIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer program
 
Using Input Output
Using Input OutputUsing Input Output
Using Input Output
 
Module1 part2
Module1 part2Module1 part2
Module1 part2
 
java-Unit4 chap2- awt controls and layout managers of applet
java-Unit4 chap2- awt controls and layout managers of appletjava-Unit4 chap2- awt controls and layout managers of applet
java-Unit4 chap2- awt controls and layout managers of applet
 
Chap3 inheritance
Chap3 inheritanceChap3 inheritance
Chap3 inheritance
 
Module1 Mobile Computing Architecture
Module1 Mobile Computing ArchitectureModule1 Mobile Computing Architecture
Module1 Mobile Computing Architecture
 
Chap3 primary memory
Chap3 primary memoryChap3 primary memory
Chap3 primary memory
 
Chap2 input devices
Chap2 input devicesChap2 input devices
Chap2 input devices
 
Chap3 multi threaded programming
Chap3 multi threaded programmingChap3 multi threaded programming
Chap3 multi threaded programming
 
Chap1 computer basics
Chap1 computer basicsChap1 computer basics
Chap1 computer basics
 

Similar to Chap2 comp architecture

COMPUTER BASIC AND FUNDAMENTAL AND ITS ORGANISATION.pptx
COMPUTER BASIC AND FUNDAMENTAL AND ITS ORGANISATION.pptxCOMPUTER BASIC AND FUNDAMENTAL AND ITS ORGANISATION.pptx
COMPUTER BASIC AND FUNDAMENTAL AND ITS ORGANISATION.pptxPannaBushratul
 
Hcs Topic 2 Computer Structure V2
Hcs Topic 2  Computer Structure V2Hcs Topic 2  Computer Structure V2
Hcs Topic 2 Computer Structure V2Kyle
 
COMPUTER_ORGANIZATION (1).pptx
COMPUTER_ORGANIZATION (1).pptxCOMPUTER_ORGANIZATION (1).pptx
COMPUTER_ORGANIZATION (1).pptxnodov66591
 
IS 139 Lecture 5
IS 139 Lecture 5IS 139 Lecture 5
IS 139 Lecture 5wajanga
 
Computer organisation and architecture module 1
Computer organisation and architecture module 1Computer organisation and architecture module 1
Computer organisation and architecture module 1abinrj123
 
Internal and external hardware components of a computer
Internal and external hardware components of a computerInternal and external hardware components of a computer
Internal and external hardware components of a computerbethan_eastlake
 
ICT - Lecture Notes 3.pdf
ICT - Lecture Notes 3.pdfICT - Lecture Notes 3.pdf
ICT - Lecture Notes 3.pdfHonKencyTress
 
In the heart of computers
In the heart of computersIn the heart of computers
In the heart of computersCintia Santos
 
Components of a digital computer.ppt
Components of a digital computer.pptComponents of a digital computer.ppt
Components of a digital computer.pptDibyenduBiswas31
 
Comp App Lect 2 System Unit.pptx
Comp App Lect 2 System Unit.pptxComp App Lect 2 System Unit.pptx
Comp App Lect 2 System Unit.pptxMehwishKanwal14
 
Computer function-and-interconnection 3
Computer function-and-interconnection 3Computer function-and-interconnection 3
Computer function-and-interconnection 3Mujaheed Sulantingan
 
Computer function-and-interconnection 3
Computer function-and-interconnection 3Computer function-and-interconnection 3
Computer function-and-interconnection 3Mujaheed Sulantingan
 
Basic Organisation and fundamental Of Computer.pptx
Basic Organisation and fundamental Of Computer.pptxBasic Organisation and fundamental Of Computer.pptx
Basic Organisation and fundamental Of Computer.pptxhasanbashar400
 
How CPU’s and Memory Work
How CPU’s and Memory WorkHow CPU’s and Memory Work
How CPU’s and Memory WorkJonathan Reid
 

Similar to Chap2 comp architecture (20)

Processing Devices
Processing DevicesProcessing Devices
Processing Devices
 
Control unit
Control  unitControl  unit
Control unit
 
COMPUTER BASIC AND FUNDAMENTAL AND ITS ORGANISATION.pptx
COMPUTER BASIC AND FUNDAMENTAL AND ITS ORGANISATION.pptxCOMPUTER BASIC AND FUNDAMENTAL AND ITS ORGANISATION.pptx
COMPUTER BASIC AND FUNDAMENTAL AND ITS ORGANISATION.pptx
 
Hcs Topic 2 Computer Structure V2
Hcs Topic 2  Computer Structure V2Hcs Topic 2  Computer Structure V2
Hcs Topic 2 Computer Structure V2
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
COMPUTER_ORGANIZATION (1).pptx
COMPUTER_ORGANIZATION (1).pptxCOMPUTER_ORGANIZATION (1).pptx
COMPUTER_ORGANIZATION (1).pptx
 
Microprocessor
MicroprocessorMicroprocessor
Microprocessor
 
IS 139 Lecture 5
IS 139 Lecture 5IS 139 Lecture 5
IS 139 Lecture 5
 
Computer organisation and architecture module 1
Computer organisation and architecture module 1Computer organisation and architecture module 1
Computer organisation and architecture module 1
 
Internal and external hardware components of a computer
Internal and external hardware components of a computerInternal and external hardware components of a computer
Internal and external hardware components of a computer
 
ICT - Lecture Notes 3.pdf
ICT - Lecture Notes 3.pdfICT - Lecture Notes 3.pdf
ICT - Lecture Notes 3.pdf
 
In the heart of computers
In the heart of computersIn the heart of computers
In the heart of computers
 
Components of a digital computer.ppt
Components of a digital computer.pptComponents of a digital computer.ppt
Components of a digital computer.ppt
 
Comp App Lect 2 System Unit.pptx
Comp App Lect 2 System Unit.pptxComp App Lect 2 System Unit.pptx
Comp App Lect 2 System Unit.pptx
 
Computer function-and-interconnection 3
Computer function-and-interconnection 3Computer function-and-interconnection 3
Computer function-and-interconnection 3
 
Computer function-and-interconnection 3
Computer function-and-interconnection 3Computer function-and-interconnection 3
Computer function-and-interconnection 3
 
Components of a computer-Unit-2
Components of a computer-Unit-2Components of a computer-Unit-2
Components of a computer-Unit-2
 
CPU.pptx
CPU.pptxCPU.pptx
CPU.pptx
 
Basic Organisation and fundamental Of Computer.pptx
Basic Organisation and fundamental Of Computer.pptxBasic Organisation and fundamental Of Computer.pptx
Basic Organisation and fundamental Of Computer.pptx
 
How CPU’s and Memory Work
How CPU’s and Memory WorkHow CPU’s and Memory Work
How CPU’s and Memory Work
 

More from raksharao

Unit 1-logic
Unit 1-logicUnit 1-logic
Unit 1-logicraksharao
 
Unit 1 rules of inference
Unit 1  rules of inferenceUnit 1  rules of inference
Unit 1 rules of inferenceraksharao
 
Unit 1 quantifiers
Unit 1  quantifiersUnit 1  quantifiers
Unit 1 quantifiersraksharao
 
Unit 1 introduction to proofs
Unit 1  introduction to proofsUnit 1  introduction to proofs
Unit 1 introduction to proofsraksharao
 
Unit 7 verification & validation
Unit 7 verification & validationUnit 7 verification & validation
Unit 7 verification & validationraksharao
 
Unit 6 input modeling problems
Unit 6 input modeling problemsUnit 6 input modeling problems
Unit 6 input modeling problemsraksharao
 
Unit 6 input modeling
Unit 6 input modeling Unit 6 input modeling
Unit 6 input modeling raksharao
 
Unit 5 general principles, simulation software
Unit 5 general principles, simulation softwareUnit 5 general principles, simulation software
Unit 5 general principles, simulation softwareraksharao
 
Unit 5 general principles, simulation software problems
Unit 5  general principles, simulation software problemsUnit 5  general principles, simulation software problems
Unit 5 general principles, simulation software problemsraksharao
 
Unit 4 queuing models
Unit 4 queuing modelsUnit 4 queuing models
Unit 4 queuing modelsraksharao
 
Unit 4 queuing models problems
Unit 4 queuing models problemsUnit 4 queuing models problems
Unit 4 queuing models problemsraksharao
 
Unit 3 random number generation, random-variate generation
Unit 3 random number generation, random-variate generationUnit 3 random number generation, random-variate generation
Unit 3 random number generation, random-variate generationraksharao
 
Unit 1 introduction contd
Unit 1 introduction contdUnit 1 introduction contd
Unit 1 introduction contdraksharao
 
Unit 1 introduction
Unit 1 introductionUnit 1 introduction
Unit 1 introductionraksharao
 
java Unit4 chapter1 applets
java Unit4 chapter1 appletsjava Unit4 chapter1 applets
java Unit4 chapter1 appletsraksharao
 
FIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer LanguagesFIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer Languagesraksharao
 
Chap1 secondary storage
Chap1 secondary storageChap1 secondary storage
Chap1 secondary storageraksharao
 

More from raksharao (17)

Unit 1-logic
Unit 1-logicUnit 1-logic
Unit 1-logic
 
Unit 1 rules of inference
Unit 1  rules of inferenceUnit 1  rules of inference
Unit 1 rules of inference
 
Unit 1 quantifiers
Unit 1  quantifiersUnit 1  quantifiers
Unit 1 quantifiers
 
Unit 1 introduction to proofs
Unit 1  introduction to proofsUnit 1  introduction to proofs
Unit 1 introduction to proofs
 
Unit 7 verification & validation
Unit 7 verification & validationUnit 7 verification & validation
Unit 7 verification & validation
 
Unit 6 input modeling problems
Unit 6 input modeling problemsUnit 6 input modeling problems
Unit 6 input modeling problems
 
Unit 6 input modeling
Unit 6 input modeling Unit 6 input modeling
Unit 6 input modeling
 
Unit 5 general principles, simulation software
Unit 5 general principles, simulation softwareUnit 5 general principles, simulation software
Unit 5 general principles, simulation software
 
Unit 5 general principles, simulation software problems
Unit 5  general principles, simulation software problemsUnit 5  general principles, simulation software problems
Unit 5 general principles, simulation software problems
 
Unit 4 queuing models
Unit 4 queuing modelsUnit 4 queuing models
Unit 4 queuing models
 
Unit 4 queuing models problems
Unit 4 queuing models problemsUnit 4 queuing models problems
Unit 4 queuing models problems
 
Unit 3 random number generation, random-variate generation
Unit 3 random number generation, random-variate generationUnit 3 random number generation, random-variate generation
Unit 3 random number generation, random-variate generation
 
Unit 1 introduction contd
Unit 1 introduction contdUnit 1 introduction contd
Unit 1 introduction contd
 
Unit 1 introduction
Unit 1 introductionUnit 1 introduction
Unit 1 introduction
 
java Unit4 chapter1 applets
java Unit4 chapter1 appletsjava Unit4 chapter1 applets
java Unit4 chapter1 applets
 
FIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer LanguagesFIT-Unit3 chapter2- Computer Languages
FIT-Unit3 chapter2- Computer Languages
 
Chap1 secondary storage
Chap1 secondary storageChap1 secondary storage
Chap1 secondary storage
 

Recently uploaded

CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .Satyam Kumar
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxPoojaBan
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2RajaP95
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort servicejennyeacort
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...asadnawaz62
 

Recently uploaded (20)

CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Churning of Butter, Factors affecting .
Churning of Butter, Factors affecting  .Churning of Butter, Factors affecting  .
Churning of Butter, Factors affecting .
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
Heart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptxHeart Disease Prediction using machine learning.pptx
Heart Disease Prediction using machine learning.pptx
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2HARMONY IN THE HUMAN BEING - Unit-II UHV-2
HARMONY IN THE HUMAN BEING - Unit-II UHV-2
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort serviceGurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
Gurgaon ✡️9711147426✨Call In girls Gurgaon Sector 51 escort service
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...complete construction, environmental and economics information of biomass com...
complete construction, environmental and economics information of biomass com...
 

Chap2 comp architecture

  • 2.  Introduction  Central processing unit  Communication among various units
  • 3.
  • 4.  Referred as brain of a computer  Converts data(input) to information (output)  Complex, exclusive set of electronic circuitry which executes stored program instructions.  Performs arithmetic and logical operations  Operates only on binary data, composed of 0’s and 1’s  Controls the usage of main memory to store data and instructions  Controls sequence of the operations.
  • 5.  CPU consists of three main subsystems  ALU  CU  Registers  Arithmetic logic unit  It contains electronic circuitry to execute arithmetic and logical operations on the data available to it.
  • 6.  ALU comprises of two things  Arithmetic unit  Logic unit  Arithmetic unit  Performs actual computing carrying out arithmetic calculations.  Such as addition, subtraction, multiplication and division  Performs them at a very high speed.
  • 7.  Logic unit  Performs logical operations based on the instructions provided to it  Logical comparisons between the data items  It compares numbers, letters and special characters  Takes actions based on the result of comparison.  Three conditions: ▪ Equal-to condition ▪ Less than condition ▪ Greater than condition
  • 8.  ALU compares two values to determine if they are equal  Eg: no of tickets sold equals to the number of the seats in the cinema hall, then houseful is declared.
  • 9.  ALU compares the value to determine if one is less than the other  Eg: if a person purchases less than two tickets then no discount rate is given.
  • 10.  The computer determines if one of the value is greater than the other.  If person purchases greater than two tickets, he gets a discount of 5% on ticket.
  • 11.  Are special purpose , high speed temporary memory units.  They hold various types of data and information , instructions , addresses and intermediate results of calculations.  They offer extra space for the computer hence speeds up the computer in calculations.
  • 12.  The registers work under the direction of CU to accept, hold and transfer the instruction or data and perform arithmetic or logical operations at high speed.  When one instruction finishes its execution, next execution will be ready in a register called program counter
  • 13.
  • 14. Register name Function Program Counter (PC) The PC keeps track of the next instruction to be executed Instruction Register (IR) Holds the instruction to be decoded by the CPU Memory Address Register (MAR) Holds the address of next location in the memory to be accessed. Memory Buffer Register(MBR) Used to store data either coming to CPU or data being transferred by CPU Accumulator(ACC) General purpose register used to store the temporary results and results produced by ALU Data register (DR) The DR is used to store the operands and other data.
  • 15.  Instructions are normally stored in the consecutive registers and are executed sequentially.  CU reads an instruction from the memory by a specific address in the registers and executes it.  The next instruction is fetched from a sequence and executed and so on.
  • 16.  It contains circuitry that uses electrical signals to direct the entire computer system to carry out, or execute , stored program instructions.  It does not execute the program instructions, it directs other parts of the system to do so by communicating both ALU and memory.  Controls the I/O devices and transfer of data to and from the primary storage.  CU itself is controlled by the programs located in main memory.  CU decides which action will occur at which time.  Following figure illustrates how the CU instructs other parts of CPU.
  • 17.
  • 18.  A bus is a set of connections between two or more components / devices which are designed for transfer several . All bits of word from the source to destination.  A bus contains multiple paths, which are also termed as lines, and each line is capable of transferring one bit at a time.  To transfer 8 bit at a time, eight lines are required.
  • 19.  A bus can be unidirectional or bi-directional.  In shared bus, only one source can transmit data at one time, while one or more than one can receive that signal.  A bus that connects three components i.e. CPU, memory and I/O devices is called system bus.  A system bus contains of 50-100 separate lines  They are categorized into three groups.  Data lines  Address lines  Control lines
  • 20.
  • 21.
  • 22.  Data lines  They provide path for moving data between the system modules.  Data lines are collectively known as data bus.  Consists of 8,16,32 separate lines  No. of lines in a data bus is called the width of the data bus.  The width of the data bus determines the performance of a computer system.
  • 23.  Address lines  It designates the source of data for a data bus.  Memory is divided into a linear array of bytes or words, for reading or writing any information on to memory  The CPU needs to specify the address of a particular location.  This is supplied by the address bus.  Width of address bus specifies the maximum possible memory supported by the system.
  • 24.  Control lines  Used to control the access to data and the address bus  Control lines are collectively are called control bus.  Used for transmission of commands and timing signals between the system modules.  Timing signals indicate whether data and address information is valid  Command signals specify which operations are to be performed.  Used to reading/writing to I/O devices or the memory.
  • 25.  Its an integral part of the CPU, it is separately placed on the computer’s mother board  Memory stores the data and programs as long as the program requires it for the operations.  CPU access the memory in random manner.  Two types:  Random Access Memory (RAM)  Read Only Memory (ROM)
  • 26.  provides the required information to the processor  It is a block of sequential memory locations each of them having a unique memory address and those locations having a data element.  It is volatile in nature, data remains as long as power is switched on, it is lost when the power supply is broken.
  • 27.  Stores the initial start-up instructions and routines in Basic Input / Output System (BIOS) which can be read only the CPU , each time the system is on.  Data is not volatile in nature  The instructions built in ROM are built into the electronic circuits of the chip called the firmware.  Different kinds of ROM are available  Programmable Read Only Memory (PROM)  Erasable Programmable Read Only Memory (EPROM)  Electrically Erasable Programmable Read Only Memory (EEPROM)
  • 28.  Very high speed , expensive piece of memory, used to speed up the memory retrieval process.  Without cache, very request from the CPU to access the data would have been sent to main memory, then the response is sent on the system bus  This slows the process in computing terms  Cache will store the frequently accessed data and data that are around it, helps in achieving a quicker response time.
  • 29.
  • 30.  The computer uses the logic to find out which data are frequently accessed and keeps them in cache.  Cache is categorized into three levels  L1 cache  L2 cache  L3 cache
  • 31.  Closest to the processor, hence termed as primary or L1 cache.  Each time the processor requests for a data, the cache controller on the chip uses a special circuitry to first check whether the requested data is already present in the cache.  Cache ranges in size from 8 to 64 KB, with larger amounts on a new processors  It is fast because it is integrated into the processor.  Two different ways that a processor can organize its primary cache  Unified cache- a single cache for both command instructions and program data  Spilt cache- separate cache for instruction and data.
  • 32.  This cache is larger but slower than L1 cache.  Used to see the recent accesses that is not picked by the L1 cache  Usually 64 to 2MB in size.  L1 and L2 can be used together, missing data can be retrieved from L2 cache.
  • 33.  Presented on the motherboard of the computer  Present in between the main memory and the processor.  Reduces the time gap between the request and retrieval of the data and instructions  Hence accesses the data faster than main memory.  Ranges more than 3MB
  • 34.  All units of the computer system, work conjunction with each other to formulate a function computer system.  To have a proper coordination among these units , a reliable and robust means of communication is required.  Processor to memory communication  Processor-I/O devices communication
  • 35.
  • 36.  The entire process between processor and a memory can be divided into two steps.  Information transfer from the memory to the processor  Writing information in the memory  Information transfer  Steps  The processor places the address in the MAR through the address bus  The process issues a READ command through the control bus.  The memory places required data on the data bus, which are then transferred to the processor.
  • 37.  Information written into the memory  The processor places the address into the MAR through address bus  The processor places the data to be written in the memory on the data bus.  The processor issues a WRITE command to the memory on the data bus  The data are written In the memory at the address specified in the MAR
  • 38.  The main concern in the processor –memory communication is the speed mismatch between the memory and the processor.  The memory speed is slower than the CPU’s speed  CPU is forced to wait for the data.  This reduced by using a small fast memory called the cache between processor and memory.
  • 39.  All the I/O devices are connected via system bus  Each device in a computer system is first met with the controller called the Direct Memory Access (DMA) controller, which controls the operation of that device.  DMA is capable of taking over the system bus from the CPU  DMA can access the memory directly and used to transfer data to and from the one memory location to another.
  • 40.
  • 41.  DMA can use the system bus only when the CPU does not require it or it should suspend the operations currently being processed by the CPU.  With a DMA controller, a dedicated data transfer device reads the incoming data from a device and stores that data in a system memory buffer for later retrieval by the CPU.  The DMA controller allows the peripheral devices to access the memory for both read and write operations without affecting the current state of computer’s central processor.
  • 42.  When a large amount of data is to be transferred from the CPU, the DMA controller to be used.  The DMA controller allows the I/O unit of exchange data directly with the memory without going through CPU except at the beginning (to issue the command) and at the end (to clean up the command)  While I/O operation is being performed by the DMA controller, the CPU can start the execution of the some other part of the same program or can start executing some other program.  Thus, DMA speeds up the speed of the I/O operations by taking over the buses and eliminating CPU interventions