SlideShare a Scribd company logo
1 of 56
CENTRAL PROCESSING
UNIT
UNIT-III
Content
Introduction, General Register Organization, Stack
Organization, Instruction format, Addressing Modes,
data transfer and manipulation, Program Control,
Reduced Instruction Set Computer (RISC)Pipeline
And Vector Processing, Flynn's taxonomy, Parallel
Processing, Pipelining, Arithmetic Pipeline,
Instruction, Pipeline, RISC Pipeline, Vector
Processing, Array Processors
Introduction
 The main part of the computer that performs the bulk
of data-processing operations is called the central
processing unit and is referred to as the CPU.
 The CPU is made up of three major parts, as shown
in Fig.
 The register set stores intermediate data used during the
execution of the instructions.
 The arithmetic logic unit (ALU) performs the required
microoperations for executing the instructions.
 The control unit supervises the transfer of information
among the registers and instructs the ALU as to which
operation to perform.
Stack Organization
 A stack or last-in first-out (LIFO) is useful feature that is included in the
CPU of most computers.
 Stack:
 A stack is a storage device that stores information in such a manner
that the item stored last is the first item retrieved.
 The operation of a stack can be compared to a stack of trays. The last
tray placed on top of the stack is the first to be taken off.
 In the computer stack is a memory unit with an address register that
can count the address only.
 The register that holds the address for the stack is called a stack
pointer (SP). It always points at the top item in the stack.
 The two operations that are performed on stack are the insertion and
deletion.
 The operation of insertion is called PUSH.
The operation of deletion is called POP.
 These operations are simulated by incrementing and decrementing
the stack pointer register (SP).
Register Stack
 A stack can be placed in a portion of a large memory
or it can be organized as a collection of a finite
number of memory words or registers.
 The below figure shows the organization of a 64-word
register stack.
 The stack pointer register SP contains a binary number whose value
is equal to the address of the word is currently on top of the stack.
Three items are placed in the stack: A, B, C, in that order.
 In above figure C is on top of the stack so that the content of SP is 3.
 For removing the top item, the stack is popped by reading the
memory word at address 3 and decrementing the content of stack
SP.
 Now the top of the stack is B, so that the content of SP is 2.
 Similarly for inserting the new item, the stack is pushed by
incrementing SP and writing a word in the next-higher location in the
stack.
 In a 64-word stack, the stack pointer contains 6 bits because 26 = 64.
 Since SP has only six bits, it cannot exceed a number greater than
63 (111111 in binary).
 When 63 is incremented by 1, the result is 0 since 111111 + 1. =
1000000 in binary, but SP can accommodate only the six least
significant bits.
 Then the one-bit register FULL is set to 1, when the stack is full.
 Similarly when 000000 is decremented by 1, the result is 111111,
and then the one-bit register EMTY is set 1 when the stack is empty
of items.
 DR is the data register that holds the binary data to be written into or
PUSH:
 Initially, SP is cleared to 0, EMTY is set to 1, and
FULL is cleared to 0, so that SP points to the word at
address 0 and the stack is marked empty and not full.
 If the stack is not full (if FULL = 0), a new item is
inserted with a push operation.
 The push operation is implemented with the following
sequence of microoperations:
 The stack pointer is incremented so that it points to
the address of next-higher word.
 A memory write operation inserts the word from DR
the top of the stack.
 The first item stored in the stack is at address 1.
 The last item is stored at address 0.
 If SP reaches 0, the stack is full of items, so FULL is
to 1.
 This condition is reached if the top item prior to the
last push way location 63 and, after incrementing SP,
the last item is stored in location 0.
 Once an item is stored in location 0, there are no
more empty registers in the stack, so the EMTY is
cleared to 0.
POP:
 A new item is deleted from the stack if the stack is not
empty (if EMTY = 0).
 The pop operation consists of the following sequence
of min operations:
 The top item is read from the stack into DR.
 The stack pointer is then decremented. If its value
reaches zero, the stack is empty, so EMTY is set 1.
 This condition is reached if the item read was in location
1. Once this it is read out, SP is decremented and reaches
the value 0, which is the initial value of SP.
 If a pop operation reads the item from location 0 and then
is decremented, SP changes to 111111, which is
equivalent to decimal 63 in above configuration, the word
in address 0 receives the last item in the stack.
Memory Stack:
 In the above discussion a stack can exist as a stand-
alone unit. But in the CPU implementation of a stack
is done by assigning a portion of memory to a stack
operation and using a processor register as stack
pointer.
 The below figure shows a portion computer memory
partitioned into three segments: program, data, and
stack.
 The program counter PC points at the address of
the next instruction in program.
 The address register AR points at an array of
data.
 The stack pointer SP points at the top of the
stack.
 The three registers are connected to a common
address bus, and either one can provide an
address for memory.
 PC is used during the fetch phase to read an
instruction.
 AR is used during the exec phase to read an
operand.
Reverse Polish Notation
Evaluation of Arithmetic
Expressions
Instruction Formats
Single Accumulator Organization
General register organization
Stack Organization
Three Address Instructions
Two Address Instructions
One Address Instructions
Zero Address Instructions
RISC Instructions
Addressing Modes
Data Transfer and Manipulation
 Most computer instructions can be classified into
three categories:
1. Data transfer instructions
2. Data manipulation instructions
3. Program control instructions
Data Manipulation Instructions
 Data manipulation instructions perform operations
on data and provide the computational
capabilities for the computer.
 The data manipulation instructions in a typical
computer are usually divided into three basic
types:
1. Arithmetic instructions
2. Logical and bit manipulation instructions
Arithmetic instructions
Logical and bit manipulation
instructions
Shift Instructions
Program Control
Status Bit Conditions
Program Interrupt
Reduced Instruction Set Computer
Flynn's Classification of Computers
 M.J. Flynn proposed a classification for the
organization of a computer system by the number of
instructions and data items that are manipulated
simultaneously.
 The sequence of instructions read from memory
constitutes an instruction stream.
 The operations performed on the data in the
processor constitute a data stream.
Flynn's classification divides computers into four major
groups that are:
1. Single instruction stream, single data stream (SISD)
2. Single instruction stream, multiple data stream
(SIMD)
3. Multiple instruction stream, single data stream
(MISD)
4. Multiple instruction stream, multiple data stream
(MIMD)
SISD
 SISD stands for 'Single Instruction and Single Data Stream'. It
represents the organization of a single computer containing a control
unit, a processor unit, and a memory unit.
 Instructions are executed sequentially, and the system may or may not
have internal parallel processing capabilities.
 Most conventional computers have SISD architecture like the
traditional Von-Neumann computers.
Examples:
Older generation computers, minicomputers, and workstations
SIMD
 SIMD stands for 'Single Instruction and Multiple Data Stream'. It represents
an organization that includes many processing units under the supervision of a
common control unit.
 All processors receive the same instruction from the control unit but operate on
different items of data.
 The shared memory unit must contain multiple modules so that it can
communicate with all the processors simultaneously.
SIMD is mainly dedicated to array processing machines. However, vector
processors can also be seen as a part of this group.
MISD
 MISD stands for 'Multiple Instruction and Single Data stream'.
 MISD structure is only of theoretical interest since no practical system has
been constructed using this organization.
 In MISD, multiple processing units operate on one single-data stream. Each
processing unit operates on the data independently via separate instruction
stream.
Example:
The experimental Carnegie-Mellon C.mmp computer (1971)
MIMD
 MIMD stands for 'Multiple Instruction and Multiple Data Stream'.
 In this organization, all processors in a parallel computer can execute
different instructions and operate on various data at the same time.
 In MIMD, each processor has a separate program and an instruction
stream is generated from each program.
Examples:
Cray T90, Cray T3E, IBM-SP2
Parallel Processing
 Parallel processing can be described as a class of
techniques which enables the system to achieve
simultaneous data-processing tasks to increase the
computational speed of a computer system.
 A parallel processing system can carry out
simultaneous data-processing to achieve faster
execution time. For instance, while an instruction is
being processed in the ALU component of the CPU,
the next instruction can be read from memory.
 The primary purpose of parallel processing is to
enhance the computer processing capability and
increase its throughput, i.e. the amount of processing
that can be accomplished during a given interval of
time.
 A parallel processing system can be achieved by having a multiplicity of
functional units that perform identical or different operations simultaneously. The
data can be distributed among various multiple functional units.
 The following diagram shows one possible way of separating the execution unit
into eight functional units operating in parallel.
 The operation performed in each functional unit is indicated in each block if the
diagram:
Pipelining
 The term Pipelining refers to a technique of decomposing
a sequential process into sub-operations, with each sub-
operation being executed in a dedicated segment that
operates concurrently with all other segments.
 The most important characteristic of a pipeline technique
is that several computations can be in progress in distinct
segments at the same time. The overlapping of
computation is made possible by associating a register
with each segment in the pipeline. The registers provide
isolation between each segment so that each can operate
on distinct data simultaneously.
 The structure of a pipeline organization can be
represented simply by including an input register for each
segment followed by a combinational circuit.
Let us consider an example of combined multiplication and addition operation to get
a better understanding of the pipeline organization.
The combined multiplication and addition operation is done with a stream of
numbers such as:
 Ai* Bi + Ci for i = 1, 2, 3, ......., 7
 R1 ← Ai, R2 ← Bi Input Ai, and Bi
 R3 ← R1 * R2, R4 ← Ci Multiply, and input
Ci
 R5 ← R3 + R4 Add Ci to product
Instruction Pipeline
 Pipeline processing can occur not only in the data stream
but in the instruction stream as well.
 Most of the digital computers with complex instructions
require instruction pipeline to carry out operations like
fetch, decode and execute instructions.
In general, the computer needs to process each instruction
with the following sequence of steps.
1. Fetch instruction from memory.
2. Decode the instruction.
3. Calculate the effective address.
4. Fetch the operands from memory.
5. Execute the instruction.
6. Store the result in the proper place.
Unit iii

More Related Content

What's hot

Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data RepresentationNaruin
 
Memory organization
Memory organizationMemory organization
Memory organizationDhaval Bagal
 
Chap2 comp architecture
Chap2 comp architectureChap2 comp architecture
Chap2 comp architectureraksharao
 
Computer Architecture | Computer Fundamental and Organization
Computer Architecture | Computer Fundamental and OrganizationComputer Architecture | Computer Fundamental and Organization
Computer Architecture | Computer Fundamental and OrganizationSmit Luvani
 
Memory Organization | Computer Fundamental and Organization
Memory Organization | Computer Fundamental and OrganizationMemory Organization | Computer Fundamental and Organization
Memory Organization | Computer Fundamental and OrganizationSmit Luvani
 
Computer organization memory
Computer organization memoryComputer organization memory
Computer organization memoryDeepak John
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
Unit 5 lect-3-multiprocessor
Unit 5 lect-3-multiprocessorUnit 5 lect-3-multiprocessor
Unit 5 lect-3-multiprocessorvishal choudhary
 
N_Asm Assembly registers (sol)
N_Asm Assembly registers (sol)N_Asm Assembly registers (sol)
N_Asm Assembly registers (sol)Selomon birhane
 
Register presentation
Register presentationRegister presentation
Register presentationSajidBepari
 
Computer structurepowerpoint
Computer structurepowerpointComputer structurepowerpoint
Computer structurepowerpointhamid ali
 
Address Binding Scheme
Address Binding SchemeAddress Binding Scheme
Address Binding SchemeRajesh Piryani
 

What's hot (20)

Topic 1 Data Representation
Topic 1 Data RepresentationTopic 1 Data Representation
Topic 1 Data Representation
 
Memory organization
Memory organizationMemory organization
Memory organization
 
Memory Mapping Cache
Memory Mapping CacheMemory Mapping Cache
Memory Mapping Cache
 
Chap2 comp architecture
Chap2 comp architectureChap2 comp architecture
Chap2 comp architecture
 
Chapter 10
Chapter 10Chapter 10
Chapter 10
 
Computer Architecture | Computer Fundamental and Organization
Computer Architecture | Computer Fundamental and OrganizationComputer Architecture | Computer Fundamental and Organization
Computer Architecture | Computer Fundamental and Organization
 
Unit 2
Unit 2Unit 2
Unit 2
 
Memory Organization | Computer Fundamental and Organization
Memory Organization | Computer Fundamental and OrganizationMemory Organization | Computer Fundamental and Organization
Memory Organization | Computer Fundamental and Organization
 
Computer organization memory
Computer organization memoryComputer organization memory
Computer organization memory
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
Unit 5 lect-3-multiprocessor
Unit 5 lect-3-multiprocessorUnit 5 lect-3-multiprocessor
Unit 5 lect-3-multiprocessor
 
nasm_final
nasm_finalnasm_final
nasm_final
 
N_Asm Assembly registers (sol)
N_Asm Assembly registers (sol)N_Asm Assembly registers (sol)
N_Asm Assembly registers (sol)
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Register presentation
Register presentationRegister presentation
Register presentation
 
Computer structurepowerpoint
Computer structurepowerpointComputer structurepowerpoint
Computer structurepowerpoint
 
Module4
Module4Module4
Module4
 
Address Binding Scheme
Address Binding SchemeAddress Binding Scheme
Address Binding Scheme
 
Cache memory
Cache memoryCache memory
Cache memory
 
register
registerregister
register
 

Similar to Unit iii

Central processing unit
Central processing unitCentral processing unit
Central processing unitjyoti_lakhani
 
Addressing modes (detailed data path)
Addressing modes (detailed data path)Addressing modes (detailed data path)
Addressing modes (detailed data path)Mahesh Kumar Attri
 
Computer Organization and 8085 microprocessor notes
Computer Organization and 8085 microprocessor notesComputer Organization and 8085 microprocessor notes
Computer Organization and 8085 microprocessor notesLakshmi Sarvani Videla
 
pdfslide.net_morris-mano-ppt.ppt
pdfslide.net_morris-mano-ppt.pptpdfslide.net_morris-mano-ppt.ppt
pdfslide.net_morris-mano-ppt.pptSaurabhPorwal14
 
Computer Organization & Architecture.ppt
Computer Organization & Architecture.pptComputer Organization & Architecture.ppt
Computer Organization & Architecture.pptGauravSharmaIAHAP
 
Bca examination 2016 csa
Bca examination 2016 csaBca examination 2016 csa
Bca examination 2016 csaAnjaan Gajendra
 
the-cpu-design-central-processing-unit-design-1
the-cpu-design-central-processing-unit-design-1the-cpu-design-central-processing-unit-design-1
the-cpu-design-central-processing-unit-design-1Basel Mansour
 
Introduction to CPU registers
Introduction to CPU registersIntroduction to CPU registers
Introduction to CPU registersMuhammad Waqas
 
Malware Analysis - x86 Disassembly
Malware Analysis - x86 DisassemblyMalware Analysis - x86 Disassembly
Malware Analysis - x86 DisassemblyNatraj G
 
CS304PC:Computer Organization and Architecture Session 11 general register or...
CS304PC:Computer Organization and Architecture Session 11 general register or...CS304PC:Computer Organization and Architecture Session 11 general register or...
CS304PC:Computer Organization and Architecture Session 11 general register or...Asst.prof M.Gokilavani
 
Chapter 4 the processor
Chapter 4 the processorChapter 4 the processor
Chapter 4 the processors9007912
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085ShivamSood22
 
UNIT 2_ESD.pdf
UNIT 2_ESD.pdfUNIT 2_ESD.pdf
UNIT 2_ESD.pdfSaralaT3
 
Computer-Processing-Devices.pdf
Computer-Processing-Devices.pdfComputer-Processing-Devices.pdf
Computer-Processing-Devices.pdfDKGAUTAMgautam
 

Similar to Unit iii (20)

Central processing unit
Central processing unitCentral processing unit
Central processing unit
 
Addressing modes (detailed data path)
Addressing modes (detailed data path)Addressing modes (detailed data path)
Addressing modes (detailed data path)
 
Computer Organization and 8085 microprocessor notes
Computer Organization and 8085 microprocessor notesComputer Organization and 8085 microprocessor notes
Computer Organization and 8085 microprocessor notes
 
pdfslide.net_morris-mano-ppt.ppt
pdfslide.net_morris-mano-ppt.pptpdfslide.net_morris-mano-ppt.ppt
pdfslide.net_morris-mano-ppt.ppt
 
Computer Organization & Architecture.ppt
Computer Organization & Architecture.pptComputer Organization & Architecture.ppt
Computer Organization & Architecture.ppt
 
Computer.pptx
Computer.pptxComputer.pptx
Computer.pptx
 
Bt0068
Bt0068Bt0068
Bt0068
 
8085
80858085
8085
 
Bca examination 2016 csa
Bca examination 2016 csaBca examination 2016 csa
Bca examination 2016 csa
 
06 linked list
06 linked list06 linked list
06 linked list
 
the-cpu-design-central-processing-unit-design-1
the-cpu-design-central-processing-unit-design-1the-cpu-design-central-processing-unit-design-1
the-cpu-design-central-processing-unit-design-1
 
8085 archi
8085 archi8085 archi
8085 archi
 
Introduction to CPU registers
Introduction to CPU registersIntroduction to CPU registers
Introduction to CPU registers
 
Malware Analysis - x86 Disassembly
Malware Analysis - x86 DisassemblyMalware Analysis - x86 Disassembly
Malware Analysis - x86 Disassembly
 
CS304PC:Computer Organization and Architecture Session 11 general register or...
CS304PC:Computer Organization and Architecture Session 11 general register or...CS304PC:Computer Organization and Architecture Session 11 general register or...
CS304PC:Computer Organization and Architecture Session 11 general register or...
 
Chapter 4 the processor
Chapter 4 the processorChapter 4 the processor
Chapter 4 the processor
 
Addressing modes 8085
Addressing modes 8085Addressing modes 8085
Addressing modes 8085
 
UNIT 2_ESD.pdf
UNIT 2_ESD.pdfUNIT 2_ESD.pdf
UNIT 2_ESD.pdf
 
Computer-Processing-Devices.pdf
Computer-Processing-Devices.pdfComputer-Processing-Devices.pdf
Computer-Processing-Devices.pdf
 
Design
DesignDesign
Design
 

More from vishal choudhary (20)

SE-Lecture1.ppt
SE-Lecture1.pptSE-Lecture1.ppt
SE-Lecture1.ppt
 
SE-Testing.ppt
SE-Testing.pptSE-Testing.ppt
SE-Testing.ppt
 
SE-CyclomaticComplexityand Testing.ppt
SE-CyclomaticComplexityand Testing.pptSE-CyclomaticComplexityand Testing.ppt
SE-CyclomaticComplexityand Testing.ppt
 
SE-Lecture-7.pptx
SE-Lecture-7.pptxSE-Lecture-7.pptx
SE-Lecture-7.pptx
 
Se-Lecture-6.ppt
Se-Lecture-6.pptSe-Lecture-6.ppt
Se-Lecture-6.ppt
 
SE-Lecture-5.pptx
SE-Lecture-5.pptxSE-Lecture-5.pptx
SE-Lecture-5.pptx
 
XML.pptx
XML.pptxXML.pptx
XML.pptx
 
SE-Lecture-8.pptx
SE-Lecture-8.pptxSE-Lecture-8.pptx
SE-Lecture-8.pptx
 
SE-coupling and cohesion.ppt
SE-coupling and cohesion.pptSE-coupling and cohesion.ppt
SE-coupling and cohesion.ppt
 
SE-Lecture-2.pptx
SE-Lecture-2.pptxSE-Lecture-2.pptx
SE-Lecture-2.pptx
 
SE-software design.ppt
SE-software design.pptSE-software design.ppt
SE-software design.ppt
 
SE1.ppt
SE1.pptSE1.ppt
SE1.ppt
 
SE-Lecture-4.pptx
SE-Lecture-4.pptxSE-Lecture-4.pptx
SE-Lecture-4.pptx
 
SE-Lecture=3.pptx
SE-Lecture=3.pptxSE-Lecture=3.pptx
SE-Lecture=3.pptx
 
Multimedia-Lecture-Animation.pptx
Multimedia-Lecture-Animation.pptxMultimedia-Lecture-Animation.pptx
Multimedia-Lecture-Animation.pptx
 
MultimediaLecture5.pptx
MultimediaLecture5.pptxMultimediaLecture5.pptx
MultimediaLecture5.pptx
 
Multimedia-Lecture-7.pptx
Multimedia-Lecture-7.pptxMultimedia-Lecture-7.pptx
Multimedia-Lecture-7.pptx
 
MultiMedia-Lecture-4.pptx
MultiMedia-Lecture-4.pptxMultiMedia-Lecture-4.pptx
MultiMedia-Lecture-4.pptx
 
Multimedia-Lecture-6.pptx
Multimedia-Lecture-6.pptxMultimedia-Lecture-6.pptx
Multimedia-Lecture-6.pptx
 
Multimedia-Lecture-3.pptx
Multimedia-Lecture-3.pptxMultimedia-Lecture-3.pptx
Multimedia-Lecture-3.pptx
 

Recently uploaded

Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 

Recently uploaded (20)

Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 

Unit iii

  • 2. Content Introduction, General Register Organization, Stack Organization, Instruction format, Addressing Modes, data transfer and manipulation, Program Control, Reduced Instruction Set Computer (RISC)Pipeline And Vector Processing, Flynn's taxonomy, Parallel Processing, Pipelining, Arithmetic Pipeline, Instruction, Pipeline, RISC Pipeline, Vector Processing, Array Processors
  • 3. Introduction  The main part of the computer that performs the bulk of data-processing operations is called the central processing unit and is referred to as the CPU.  The CPU is made up of three major parts, as shown in Fig.
  • 4.  The register set stores intermediate data used during the execution of the instructions.  The arithmetic logic unit (ALU) performs the required microoperations for executing the instructions.  The control unit supervises the transfer of information among the registers and instructs the ALU as to which operation to perform.
  • 5. Stack Organization  A stack or last-in first-out (LIFO) is useful feature that is included in the CPU of most computers.  Stack:  A stack is a storage device that stores information in such a manner that the item stored last is the first item retrieved.  The operation of a stack can be compared to a stack of trays. The last tray placed on top of the stack is the first to be taken off.  In the computer stack is a memory unit with an address register that can count the address only.  The register that holds the address for the stack is called a stack pointer (SP). It always points at the top item in the stack.  The two operations that are performed on stack are the insertion and deletion.  The operation of insertion is called PUSH. The operation of deletion is called POP.  These operations are simulated by incrementing and decrementing the stack pointer register (SP).
  • 6. Register Stack  A stack can be placed in a portion of a large memory or it can be organized as a collection of a finite number of memory words or registers.  The below figure shows the organization of a 64-word register stack.
  • 7.  The stack pointer register SP contains a binary number whose value is equal to the address of the word is currently on top of the stack. Three items are placed in the stack: A, B, C, in that order.  In above figure C is on top of the stack so that the content of SP is 3.  For removing the top item, the stack is popped by reading the memory word at address 3 and decrementing the content of stack SP.  Now the top of the stack is B, so that the content of SP is 2.  Similarly for inserting the new item, the stack is pushed by incrementing SP and writing a word in the next-higher location in the stack.  In a 64-word stack, the stack pointer contains 6 bits because 26 = 64.  Since SP has only six bits, it cannot exceed a number greater than 63 (111111 in binary).  When 63 is incremented by 1, the result is 0 since 111111 + 1. = 1000000 in binary, but SP can accommodate only the six least significant bits.  Then the one-bit register FULL is set to 1, when the stack is full.  Similarly when 000000 is decremented by 1, the result is 111111, and then the one-bit register EMTY is set 1 when the stack is empty of items.  DR is the data register that holds the binary data to be written into or
  • 8. PUSH:  Initially, SP is cleared to 0, EMTY is set to 1, and FULL is cleared to 0, so that SP points to the word at address 0 and the stack is marked empty and not full.  If the stack is not full (if FULL = 0), a new item is inserted with a push operation.  The push operation is implemented with the following sequence of microoperations:
  • 9.  The stack pointer is incremented so that it points to the address of next-higher word.  A memory write operation inserts the word from DR the top of the stack.  The first item stored in the stack is at address 1.  The last item is stored at address 0.  If SP reaches 0, the stack is full of items, so FULL is to 1.  This condition is reached if the top item prior to the last push way location 63 and, after incrementing SP, the last item is stored in location 0.  Once an item is stored in location 0, there are no more empty registers in the stack, so the EMTY is cleared to 0.
  • 10. POP:  A new item is deleted from the stack if the stack is not empty (if EMTY = 0).  The pop operation consists of the following sequence of min operations:
  • 11.  The top item is read from the stack into DR.  The stack pointer is then decremented. If its value reaches zero, the stack is empty, so EMTY is set 1.  This condition is reached if the item read was in location 1. Once this it is read out, SP is decremented and reaches the value 0, which is the initial value of SP.  If a pop operation reads the item from location 0 and then is decremented, SP changes to 111111, which is equivalent to decimal 63 in above configuration, the word in address 0 receives the last item in the stack.
  • 12. Memory Stack:  In the above discussion a stack can exist as a stand- alone unit. But in the CPU implementation of a stack is done by assigning a portion of memory to a stack operation and using a processor register as stack pointer.  The below figure shows a portion computer memory partitioned into three segments: program, data, and stack.
  • 13.  The program counter PC points at the address of the next instruction in program.  The address register AR points at an array of data.  The stack pointer SP points at the top of the stack.  The three registers are connected to a common address bus, and either one can provide an address for memory.  PC is used during the fetch phase to read an instruction.  AR is used during the exec phase to read an operand.
  • 14.
  • 16.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32. Data Transfer and Manipulation  Most computer instructions can be classified into three categories: 1. Data transfer instructions 2. Data manipulation instructions 3. Program control instructions
  • 33.
  • 34.
  • 35. Data Manipulation Instructions  Data manipulation instructions perform operations on data and provide the computational capabilities for the computer.  The data manipulation instructions in a typical computer are usually divided into three basic types: 1. Arithmetic instructions 2. Logical and bit manipulation instructions
  • 37. Logical and bit manipulation instructions
  • 39.
  • 42.
  • 45. Flynn's Classification of Computers  M.J. Flynn proposed a classification for the organization of a computer system by the number of instructions and data items that are manipulated simultaneously.  The sequence of instructions read from memory constitutes an instruction stream.  The operations performed on the data in the processor constitute a data stream.
  • 46. Flynn's classification divides computers into four major groups that are: 1. Single instruction stream, single data stream (SISD) 2. Single instruction stream, multiple data stream (SIMD) 3. Multiple instruction stream, single data stream (MISD) 4. Multiple instruction stream, multiple data stream (MIMD)
  • 47. SISD  SISD stands for 'Single Instruction and Single Data Stream'. It represents the organization of a single computer containing a control unit, a processor unit, and a memory unit.  Instructions are executed sequentially, and the system may or may not have internal parallel processing capabilities.  Most conventional computers have SISD architecture like the traditional Von-Neumann computers. Examples: Older generation computers, minicomputers, and workstations
  • 48. SIMD  SIMD stands for 'Single Instruction and Multiple Data Stream'. It represents an organization that includes many processing units under the supervision of a common control unit.  All processors receive the same instruction from the control unit but operate on different items of data.  The shared memory unit must contain multiple modules so that it can communicate with all the processors simultaneously. SIMD is mainly dedicated to array processing machines. However, vector processors can also be seen as a part of this group.
  • 49. MISD  MISD stands for 'Multiple Instruction and Single Data stream'.  MISD structure is only of theoretical interest since no practical system has been constructed using this organization.  In MISD, multiple processing units operate on one single-data stream. Each processing unit operates on the data independently via separate instruction stream. Example: The experimental Carnegie-Mellon C.mmp computer (1971)
  • 50. MIMD  MIMD stands for 'Multiple Instruction and Multiple Data Stream'.  In this organization, all processors in a parallel computer can execute different instructions and operate on various data at the same time.  In MIMD, each processor has a separate program and an instruction stream is generated from each program. Examples: Cray T90, Cray T3E, IBM-SP2
  • 51. Parallel Processing  Parallel processing can be described as a class of techniques which enables the system to achieve simultaneous data-processing tasks to increase the computational speed of a computer system.  A parallel processing system can carry out simultaneous data-processing to achieve faster execution time. For instance, while an instruction is being processed in the ALU component of the CPU, the next instruction can be read from memory.  The primary purpose of parallel processing is to enhance the computer processing capability and increase its throughput, i.e. the amount of processing that can be accomplished during a given interval of time.
  • 52.  A parallel processing system can be achieved by having a multiplicity of functional units that perform identical or different operations simultaneously. The data can be distributed among various multiple functional units.  The following diagram shows one possible way of separating the execution unit into eight functional units operating in parallel.  The operation performed in each functional unit is indicated in each block if the diagram:
  • 53. Pipelining  The term Pipelining refers to a technique of decomposing a sequential process into sub-operations, with each sub- operation being executed in a dedicated segment that operates concurrently with all other segments.  The most important characteristic of a pipeline technique is that several computations can be in progress in distinct segments at the same time. The overlapping of computation is made possible by associating a register with each segment in the pipeline. The registers provide isolation between each segment so that each can operate on distinct data simultaneously.  The structure of a pipeline organization can be represented simply by including an input register for each segment followed by a combinational circuit.
  • 54. Let us consider an example of combined multiplication and addition operation to get a better understanding of the pipeline organization. The combined multiplication and addition operation is done with a stream of numbers such as:  Ai* Bi + Ci for i = 1, 2, 3, ......., 7  R1 ← Ai, R2 ← Bi Input Ai, and Bi  R3 ← R1 * R2, R4 ← Ci Multiply, and input Ci  R5 ← R3 + R4 Add Ci to product
  • 55. Instruction Pipeline  Pipeline processing can occur not only in the data stream but in the instruction stream as well.  Most of the digital computers with complex instructions require instruction pipeline to carry out operations like fetch, decode and execute instructions. In general, the computer needs to process each instruction with the following sequence of steps. 1. Fetch instruction from memory. 2. Decode the instruction. 3. Calculate the effective address. 4. Fetch the operands from memory. 5. Execute the instruction. 6. Store the result in the proper place.