SlideShare a Scribd company logo
1 of 20
CS304PC:Computer Organization
and Architecture (R18 II(I sem))
Department of computer science and engineering
(AI/ML)
Session 11
by
Asst.Prof.M.Gokilavani
VITS
1/12/2023 Department of CSE (AI/ML) 1
TEXTBOOK:
• 1. Computer System Architecture – M. Moris Mano, Third Edition,
Pearson/PHI.
REFERENCES:
• Computer Organization – Car Hamacher, Zvonks Vranesic, Safea
Zaky, Vth Edition, McGraw Hill.
• Computer Organization and Architecture – William Stallings Sixth
Edition, Pearson/PHI.
• Structured Computer Organization – Andrew S. Tanenbaum, 4th
Edition, PHI/Pearson.
1/12/2023 Department of CSE (AI/ML) 2
Unit II
Microprogrammed Control: Control memory, Address sequencing,
micro program example, Design of Control unit .
Central Processing Unit : General Register Organization, Stack
organization, Instruction formats, Addressing modes, Data Transfer and
Manipulation, Program Control.
1/12/2023 Department of CSE (AI/ML) 3
Topics covered in session 11
1/12/2023 Department of CSE (AI/ML) 4
• General Register Organization
• Instruction formats
• Addressing modes
• Data Transfer and Manipulation
• Program Control.
Central Processing Unit
The operation or task that must perform by CPU is:
• Fetch Instruction: The CPU reads an instruction from memory.
• Interpret Instruction: The instruction is decoded to determine what action
is required.
• Fetch Data: The execution of an instruction may require reading data from
memory or I/O module.
• Process data: The execution of an instruction may require performing some
arithmetic or logical operation on data.
• Write data: The result of an execution may require writing data to memory
or an I/O module.
• This includes the instruction formats, addressing modes, the instruction set,
and the general organization of the CPU registers.
1/12/2023 Department of CSE (AI/ML) 5
• The major components of the CPU are an arithmetic and logic unit (ALU) and
a control unit (CU).
• There are three basic components of CPU: register bank, ALU and Control
Unit. There are several data movements between these units and for that an
internal CPU bus is used. Internal CPU bus is needed to transfer data between
the various registers and the ALU.
1/12/2023 Department of CSE (AI/ML) 6
General register Organization
1/12/2023 Department of CSE (AI/ML) 7
• The CPU is connected to the rest of the system through system bus.
Through system bus, data or information gets transferred between the
CPU and the other component of the system. The system bus may
have three components:
• Data Bus: Data bus is used to transfer the data between main memory
and CPU.
• Address Bus: Address bus is used to access a particular memory
location by putting the address of the memory location.
• Control Bus: Control bus is used to provide the different control
signal generated by CPU to different part of the system.
1/12/2023 Department of CSE (AI/ML) 8
• For example, to perform the following operation
1/12/2023 Department of CSE (AI/ML) 9
Stack Organization
• A useful feature that is included in the CPU of most computers is a
stack or last-in, first-out (LIFO) list.
• A stack is a storage device that stores information in such a manner
that the item stored last is the first item retrieved.
• The stack in digital computers is essentially a memory unit with an
address register that can count only (after an initial value is loaded into
it).
• The register that holds the address for the stack is called a stack
pointer (SP) because its value always points at the top item in the
stack.
1/12/2023 Department of CSE (AI/ML) 10
Stack Organization
• The two operations of a stack are the insertion and deletion of items.
• The operation of insertion is called push (or push-down) because it can
be thought of as the result of pushing a new item on top.
• The operation of deletion is called pop (or pop-up) because it can be
thought of as the result of removing one item so that the stack pops up.
• These operations are simulated by incrementing or decrementing
the stack pointer register.
• Types of stacks are:
• Register Stack
• Memory stack
1/12/2023 Department of CSE (AI/ML) 11
Register Stack
1/12/2023 Department of CSE (AI/ML) 12
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 stack pointer register SP contains a binary number whose value is
equal to the address of the word that is currently on top of the stack.
• Three items are placed in the stack: A, B, and C, in that order.
• Item C is on top of the stack so that the content of SP is now 3.
• To remove the top item, the stack is popped by reading the memory
word at address 3 and decrementing the content of SP. Item B is now
on top of the stack since SP holds address 2.
• To insert a new item, the stack is pushed by incrementing SP and
writing a word in the next-higher location in the stack .
1/12/2023 Department of CSE (AI/ML) 13
• Two operations in stack:
• PUSH Operation
• POP Operation
• The push operation is implemented with the following
sequence of microoperations:
1/12/2023 Department of CSE (AI/ML) 14
• The pop operation consists of the following sequence of
microoperations:
1/12/2023 Department of CSE (AI/ML) 15
Memory Stack
• A stack can exist as a stand-alone unit as in Figure or can be
implemented in a random-access memory attached to a CPU.
• The implementation of a stack in the CPU is done by assigning a
portion of memory to a stack operation and using a processor register
as a stack pointer.
• Figure 8-4 shows a portion of computer memory partitioned into three
segments: program, data, and stack.
• The program counter PC points at the address of the next instruction in
the program. The address register AR points at an array of data.
• The stack pointer SP points a t the top of the stack.
• The three registers are connected t o a common address bus, and either
one can provide an address for memory.
1/12/2023 Department of CSE (AI/ML) 16
1/12/2023 Department of CSE (AI/ML) 17
• Memory Stack operations are :
• Insert operation
• Delete operation
We assume that the items in the stack communicate with a data register
DR. A new item is inserted with the push operation as follows:
1/12/2023 Department of CSE (AI/ML) 18
The stack pointer is decremented so that it points at the address of the
next word. A memory write operation inserts the word from DR into the
top of the stack. A new item is deleted with a pop operation as follows:
Stack Organization Advantages
• A stack pointer is loaded with an initial value. This initial value must
be the bottom address of an assigned stack in memory.
• Henceforth, SP is automatically decremented or incremented with
every push or pop operation.
• The advantage of a memory stack is that the CPU can refer to it
without having to specify an address, since the address is always
available and automatically updated in the stack pointer.
1/12/2023 Department of CSE (AI/ML) 19
Topics to be covered in next session 12
• Instruction format
1/12/2023 Department of CSE (AI/ML) 20
Thank you!!!

More Related Content

What's hot

Computer architecture addressing modes and formats
Computer architecture addressing modes and formatsComputer architecture addressing modes and formats
Computer architecture addressing modes and formatsMazin Alwaaly
 
Memory organization
Memory organizationMemory organization
Memory organizationDhaval Bagal
 
instruction cycle ppt
instruction cycle pptinstruction cycle ppt
instruction cycle pptsheetal singh
 
Instruction cycle with interrupts
Instruction cycle with interruptsInstruction cycle with interrupts
Instruction cycle with interruptsShubham Jain
 
Program control
Program controlProgram control
Program controlRahul Narang
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and DesignKamal Acharya
 
Computer instructions
Computer instructionsComputer instructions
Computer instructionsAnuj Modi
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer languageSanjeev Patel
 
Input output organization
Input output organizationInput output organization
Input output organizationabdulugc
 
Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Gaditek
 
instruction format and addressing modes
instruction format and addressing modesinstruction format and addressing modes
instruction format and addressing modesRamaPrabha24
 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)Sandesh Jonchhe
 
Micro program example
Micro program exampleMicro program example
Micro program examplerajshreemuthiah
 
Computer registers
Computer registersComputer registers
Computer registersDeepikaT13
 

What's hot (20)

Registers
RegistersRegisters
Registers
 
Computer architecture addressing modes and formats
Computer architecture addressing modes and formatsComputer architecture addressing modes and formats
Computer architecture addressing modes and formats
 
Instruction code
Instruction codeInstruction code
Instruction code
 
Memory organization
Memory organizationMemory organization
Memory organization
 
Instruction cycle
Instruction cycleInstruction cycle
Instruction cycle
 
instruction cycle ppt
instruction cycle pptinstruction cycle ppt
instruction cycle ppt
 
Instruction cycle with interrupts
Instruction cycle with interruptsInstruction cycle with interrupts
Instruction cycle with interrupts
 
Program control
Program controlProgram control
Program control
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
 
Parallel processing
Parallel processingParallel processing
Parallel processing
 
Computer instructions
Computer instructionsComputer instructions
Computer instructions
 
Register transfer language
Register transfer languageRegister transfer language
Register transfer language
 
Input output organization
Input output organizationInput output organization
Input output organization
 
Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)Instruction Set Architecture (ISA)
Instruction Set Architecture (ISA)
 
Instruction codes
Instruction codesInstruction codes
Instruction codes
 
instruction format and addressing modes
instruction format and addressing modesinstruction format and addressing modes
instruction format and addressing modes
 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)
 
Basic Computer Organization and Design
Basic  Computer  Organization  and  DesignBasic  Computer  Organization  and  Design
Basic Computer Organization and Design
 
Micro program example
Micro program exampleMicro program example
Micro program example
 
Computer registers
Computer registersComputer registers
Computer registers
 

Similar to CS304PC:Computer Organization and Architecture Session 11 general register organization.pptx

CS403 Operating system Lec 8 - Process concepts.pptx
CS403 Operating system Lec 8 - Process concepts.pptxCS403 Operating system Lec 8 - Process concepts.pptx
CS403 Operating system Lec 8 - Process concepts.pptxAsst.prof M.Gokilavani
 
Computer System Architecture
Computer System ArchitectureComputer System Architecture
Computer System ArchitectureBrenda Debra
 
CS304PC:Computer Organization and Architecture Session 14 data transfer and ...
CS304PC:Computer Organization and Architecture  Session 14 data transfer and ...CS304PC:Computer Organization and Architecture  Session 14 data transfer and ...
CS304PC:Computer Organization and Architecture Session 14 data transfer and ...Asst.prof M.Gokilavani
 
CS304PC:Computer Organization and Architecture Session 29 Memory organization...
CS304PC:Computer Organization and Architecture Session 29 Memory organization...CS304PC:Computer Organization and Architecture Session 29 Memory organization...
CS304PC:Computer Organization and Architecture Session 29 Memory organization...Asst.prof M.Gokilavani
 
Addressing modes (detailed data path)
Addressing modes (detailed data path)Addressing modes (detailed data path)
Addressing modes (detailed data path)Mahesh Kumar Attri
 
pdfslide.net_morris-mano-ppt.ppt
pdfslide.net_morris-mano-ppt.pptpdfslide.net_morris-mano-ppt.ppt
pdfslide.net_morris-mano-ppt.pptSaurabhPorwal14
 
CS304PC:Computer Organization and Architecture Session 12 Instruction Format...
CS304PC:Computer Organization and Architecture  Session 12 Instruction Format...CS304PC:Computer Organization and Architecture  Session 12 Instruction Format...
CS304PC:Computer Organization and Architecture Session 12 Instruction Format...Asst.prof M.Gokilavani
 
Unit iii
Unit iiiUnit iii
Unit iiiJanani S
 
Central Processing Unit
Central Processing UnitCentral Processing Unit
Central Processing UnitBrenda Debra
 
Central processing unit
Central processing unitCentral processing unit
Central processing unitHeman Pathak
 
Computer Arithmetic and Processor Basics
Computer Arithmetic and Processor BasicsComputer Arithmetic and Processor Basics
Computer Arithmetic and Processor BasicsShinuMMAEI
 
CS304PC:Computer Organization and Architecture Session 28 Direct memory acces...
CS304PC:Computer Organization and Architecture Session 28 Direct memory acces...CS304PC:Computer Organization and Architecture Session 28 Direct memory acces...
CS304PC:Computer Organization and Architecture Session 28 Direct memory acces...Asst.prof M.Gokilavani
 
Computer.pptx
Computer.pptxComputer.pptx
Computer.pptxWtaJwankan
 
CS304PC:Computer Organization and Architecture Session 5 Basic Computer Orga...
CS304PC:Computer Organization and Architecture  Session 5 Basic Computer Orga...CS304PC:Computer Organization and Architecture  Session 5 Basic Computer Orga...
CS304PC:Computer Organization and Architecture Session 5 Basic Computer Orga...Asst.prof M.Gokilavani
 
II B.Sc IT DATA STRUCTURES.pptx
II B.Sc IT DATA STRUCTURES.pptxII B.Sc IT DATA STRUCTURES.pptx
II B.Sc IT DATA STRUCTURES.pptxsabithabanu83
 
CS403PC Operating System Lec 10 context switching.pptx
CS403PC Operating System Lec 10 context switching.pptxCS403PC Operating System Lec 10 context switching.pptx
CS403PC Operating System Lec 10 context switching.pptxAsst.prof M.Gokilavani
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAAiman Hud
 

Similar to CS304PC:Computer Organization and Architecture Session 11 general register organization.pptx (20)

CS403 Operating system Lec 8 - Process concepts.pptx
CS403 Operating system Lec 8 - Process concepts.pptxCS403 Operating system Lec 8 - Process concepts.pptx
CS403 Operating system Lec 8 - Process concepts.pptx
 
Computer System Architecture
Computer System ArchitectureComputer System Architecture
Computer System Architecture
 
CS304PC:Computer Organization and Architecture Session 14 data transfer and ...
CS304PC:Computer Organization and Architecture  Session 14 data transfer and ...CS304PC:Computer Organization and Architecture  Session 14 data transfer and ...
CS304PC:Computer Organization and Architecture Session 14 data transfer and ...
 
CS304PC:Computer Organization and Architecture Session 29 Memory organization...
CS304PC:Computer Organization and Architecture Session 29 Memory organization...CS304PC:Computer Organization and Architecture Session 29 Memory organization...
CS304PC:Computer Organization and Architecture Session 29 Memory organization...
 
Addressing modes (detailed data path)
Addressing modes (detailed data path)Addressing modes (detailed data path)
Addressing modes (detailed data path)
 
pdfslide.net_morris-mano-ppt.ppt
pdfslide.net_morris-mano-ppt.pptpdfslide.net_morris-mano-ppt.ppt
pdfslide.net_morris-mano-ppt.ppt
 
Unit iii
Unit iiiUnit iii
Unit iii
 
CS304PC:Computer Organization and Architecture Session 12 Instruction Format...
CS304PC:Computer Organization and Architecture  Session 12 Instruction Format...CS304PC:Computer Organization and Architecture  Session 12 Instruction Format...
CS304PC:Computer Organization and Architecture Session 12 Instruction Format...
 
Unit iii
Unit iiiUnit iii
Unit iii
 
Central Processing Unit
Central Processing UnitCentral Processing Unit
Central Processing Unit
 
Central processing unit
Central processing unitCentral processing unit
Central processing unit
 
Computer Arithmetic and Processor Basics
Computer Arithmetic and Processor BasicsComputer Arithmetic and Processor Basics
Computer Arithmetic and Processor Basics
 
CS304PC:Computer Organization and Architecture Session 28 Direct memory acces...
CS304PC:Computer Organization and Architecture Session 28 Direct memory acces...CS304PC:Computer Organization and Architecture Session 28 Direct memory acces...
CS304PC:Computer Organization and Architecture Session 28 Direct memory acces...
 
Computer.pptx
Computer.pptxComputer.pptx
Computer.pptx
 
CS304PC:Computer Organization and Architecture Session 5 Basic Computer Orga...
CS304PC:Computer Organization and Architecture  Session 5 Basic Computer Orga...CS304PC:Computer Organization and Architecture  Session 5 Basic Computer Orga...
CS304PC:Computer Organization and Architecture Session 5 Basic Computer Orga...
 
II B.Sc IT DATA STRUCTURES.pptx
II B.Sc IT DATA STRUCTURES.pptxII B.Sc IT DATA STRUCTURES.pptx
II B.Sc IT DATA STRUCTURES.pptx
 
Chapter1-Introduction.pdf
Chapter1-Introduction.pdfChapter1-Introduction.pdf
Chapter1-Introduction.pdf
 
CS403PC Operating System Lec 10 context switching.pptx
CS403PC Operating System Lec 10 context switching.pptxCS403PC Operating System Lec 10 context switching.pptx
CS403PC Operating System Lec 10 context switching.pptx
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 
POLITEKNIK MALAYSIA
POLITEKNIK MALAYSIAPOLITEKNIK MALAYSIA
POLITEKNIK MALAYSIA
 

More from Asst.prof M.Gokilavani

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
 
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
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
IT8073_Information Security_UNIT I _.pdf
IT8073_Information Security_UNIT I _.pdfIT8073_Information Security_UNIT I _.pdf
IT8073_Information Security_UNIT I _.pdfAsst.prof M.Gokilavani
 
IT8073 _Information Security _UNIT I Full notes
IT8073 _Information Security _UNIT I Full notesIT8073 _Information Security _UNIT I Full notes
IT8073 _Information Security _UNIT I Full notesAsst.prof M.Gokilavani
 
GE3151 PSPP UNIT IV QUESTION BANK.docx.pdf
GE3151 PSPP UNIT IV QUESTION BANK.docx.pdfGE3151 PSPP UNIT IV QUESTION BANK.docx.pdf
GE3151 PSPP UNIT IV QUESTION BANK.docx.pdfAsst.prof M.Gokilavani
 
GE3151 PSPP UNIT III QUESTION BANK.docx.pdf
GE3151 PSPP UNIT III QUESTION BANK.docx.pdfGE3151 PSPP UNIT III QUESTION BANK.docx.pdf
GE3151 PSPP UNIT III QUESTION BANK.docx.pdfAsst.prof M.Gokilavani
 
GE3151 UNIT II Study material .pdf
GE3151 UNIT II Study material .pdfGE3151 UNIT II Study material .pdf
GE3151 UNIT II Study material .pdfAsst.prof M.Gokilavani
 
GE3151 PSPP All unit question bank.pdf
GE3151 PSPP All unit question bank.pdfGE3151 PSPP All unit question bank.pdf
GE3151 PSPP All unit question bank.pdfAsst.prof M.Gokilavani
 
AI3391 Artificial intelligence Unit IV Notes _ merged.pdf
AI3391 Artificial intelligence Unit IV Notes _ merged.pdfAI3391 Artificial intelligence Unit IV Notes _ merged.pdf
AI3391 Artificial intelligence Unit IV Notes _ merged.pdfAsst.prof M.Gokilavani
 
AI3391 Artificial intelligence Session 29 Forward and backward chaining.pdf
AI3391 Artificial intelligence Session 29 Forward and backward chaining.pdfAI3391 Artificial intelligence Session 29 Forward and backward chaining.pdf
AI3391 Artificial intelligence Session 29 Forward and backward chaining.pdfAsst.prof M.Gokilavani
 
AI3391 Artificial intelligence Session 28 Resolution.pptx
AI3391 Artificial intelligence Session 28 Resolution.pptxAI3391 Artificial intelligence Session 28 Resolution.pptx
AI3391 Artificial intelligence Session 28 Resolution.pptxAsst.prof M.Gokilavani
 
AI3391 Artificial intelligence session 27 inference and unification.pptx
AI3391 Artificial intelligence session 27 inference and unification.pptxAI3391 Artificial intelligence session 27 inference and unification.pptx
AI3391 Artificial intelligence session 27 inference and unification.pptxAsst.prof M.Gokilavani
 
AI3391 Artificial Intelligence Session 26 First order logic.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptxAI3391 Artificial Intelligence Session 26 First order logic.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptxAsst.prof M.Gokilavani
 
AI3391 Artificial Intelligence Session 25 Horn clause.pptx
AI3391 Artificial Intelligence Session 25 Horn clause.pptxAI3391 Artificial Intelligence Session 25 Horn clause.pptx
AI3391 Artificial Intelligence Session 25 Horn clause.pptxAsst.prof M.Gokilavani
 

More from Asst.prof M.Gokilavani (20)

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
 
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
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
IT8073_Information Security_UNIT I _.pdf
IT8073_Information Security_UNIT I _.pdfIT8073_Information Security_UNIT I _.pdf
IT8073_Information Security_UNIT I _.pdf
 
IT8073 _Information Security _UNIT I Full notes
IT8073 _Information Security _UNIT I Full notesIT8073 _Information Security _UNIT I Full notes
IT8073 _Information Security _UNIT I Full notes
 
GE3151 PSPP UNIT IV QUESTION BANK.docx.pdf
GE3151 PSPP UNIT IV QUESTION BANK.docx.pdfGE3151 PSPP UNIT IV QUESTION BANK.docx.pdf
GE3151 PSPP UNIT IV QUESTION BANK.docx.pdf
 
GE3151 PSPP UNIT III QUESTION BANK.docx.pdf
GE3151 PSPP UNIT III QUESTION BANK.docx.pdfGE3151 PSPP UNIT III QUESTION BANK.docx.pdf
GE3151 PSPP UNIT III QUESTION BANK.docx.pdf
 
GE3151 UNIT II Study material .pdf
GE3151 UNIT II Study material .pdfGE3151 UNIT II Study material .pdf
GE3151 UNIT II Study material .pdf
 
GE3151 PSPP All unit question bank.pdf
GE3151 PSPP All unit question bank.pdfGE3151 PSPP All unit question bank.pdf
GE3151 PSPP All unit question bank.pdf
 
GE3151_PSPP_All unit _Notes
GE3151_PSPP_All unit _NotesGE3151_PSPP_All unit _Notes
GE3151_PSPP_All unit _Notes
 
GE3151_PSPP_UNIT_5_Notes
GE3151_PSPP_UNIT_5_NotesGE3151_PSPP_UNIT_5_Notes
GE3151_PSPP_UNIT_5_Notes
 
GE3151_PSPP_UNIT_4_Notes
GE3151_PSPP_UNIT_4_NotesGE3151_PSPP_UNIT_4_Notes
GE3151_PSPP_UNIT_4_Notes
 
GE3151_PSPP_UNIT_3_Notes
GE3151_PSPP_UNIT_3_NotesGE3151_PSPP_UNIT_3_Notes
GE3151_PSPP_UNIT_3_Notes
 
GE3151_PSPP_UNIT_2_Notes
GE3151_PSPP_UNIT_2_NotesGE3151_PSPP_UNIT_2_Notes
GE3151_PSPP_UNIT_2_Notes
 
AI3391 Artificial intelligence Unit IV Notes _ merged.pdf
AI3391 Artificial intelligence Unit IV Notes _ merged.pdfAI3391 Artificial intelligence Unit IV Notes _ merged.pdf
AI3391 Artificial intelligence Unit IV Notes _ merged.pdf
 
AI3391 Artificial intelligence Session 29 Forward and backward chaining.pdf
AI3391 Artificial intelligence Session 29 Forward and backward chaining.pdfAI3391 Artificial intelligence Session 29 Forward and backward chaining.pdf
AI3391 Artificial intelligence Session 29 Forward and backward chaining.pdf
 
AI3391 Artificial intelligence Session 28 Resolution.pptx
AI3391 Artificial intelligence Session 28 Resolution.pptxAI3391 Artificial intelligence Session 28 Resolution.pptx
AI3391 Artificial intelligence Session 28 Resolution.pptx
 
AI3391 Artificial intelligence session 27 inference and unification.pptx
AI3391 Artificial intelligence session 27 inference and unification.pptxAI3391 Artificial intelligence session 27 inference and unification.pptx
AI3391 Artificial intelligence session 27 inference and unification.pptx
 
AI3391 Artificial Intelligence Session 26 First order logic.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptxAI3391 Artificial Intelligence Session 26 First order logic.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptx
 
AI3391 Artificial Intelligence Session 25 Horn clause.pptx
AI3391 Artificial Intelligence Session 25 Horn clause.pptxAI3391 Artificial Intelligence Session 25 Horn clause.pptx
AI3391 Artificial Intelligence Session 25 Horn clause.pptx
 

Recently uploaded

High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
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
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSCAESB
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
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
 

Recently uploaded (20)

Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
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
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
GDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentationGDSC ASEB Gen AI study jams presentation
GDSC ASEB Gen AI study jams presentation
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
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...
 
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
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 

CS304PC:Computer Organization and Architecture Session 11 general register organization.pptx

  • 1. CS304PC:Computer Organization and Architecture (R18 II(I sem)) Department of computer science and engineering (AI/ML) Session 11 by Asst.Prof.M.Gokilavani VITS 1/12/2023 Department of CSE (AI/ML) 1
  • 2. TEXTBOOK: • 1. Computer System Architecture – M. Moris Mano, Third Edition, Pearson/PHI. REFERENCES: • Computer Organization – Car Hamacher, Zvonks Vranesic, Safea Zaky, Vth Edition, McGraw Hill. • Computer Organization and Architecture – William Stallings Sixth Edition, Pearson/PHI. • Structured Computer Organization – Andrew S. Tanenbaum, 4th Edition, PHI/Pearson. 1/12/2023 Department of CSE (AI/ML) 2
  • 3. Unit II Microprogrammed Control: Control memory, Address sequencing, micro program example, Design of Control unit . Central Processing Unit : General Register Organization, Stack organization, Instruction formats, Addressing modes, Data Transfer and Manipulation, Program Control. 1/12/2023 Department of CSE (AI/ML) 3
  • 4. Topics covered in session 11 1/12/2023 Department of CSE (AI/ML) 4 • General Register Organization • Instruction formats • Addressing modes • Data Transfer and Manipulation • Program Control.
  • 5. Central Processing Unit The operation or task that must perform by CPU is: • Fetch Instruction: The CPU reads an instruction from memory. • Interpret Instruction: The instruction is decoded to determine what action is required. • Fetch Data: The execution of an instruction may require reading data from memory or I/O module. • Process data: The execution of an instruction may require performing some arithmetic or logical operation on data. • Write data: The result of an execution may require writing data to memory or an I/O module. • This includes the instruction formats, addressing modes, the instruction set, and the general organization of the CPU registers. 1/12/2023 Department of CSE (AI/ML) 5
  • 6. • The major components of the CPU are an arithmetic and logic unit (ALU) and a control unit (CU). • There are three basic components of CPU: register bank, ALU and Control Unit. There are several data movements between these units and for that an internal CPU bus is used. Internal CPU bus is needed to transfer data between the various registers and the ALU. 1/12/2023 Department of CSE (AI/ML) 6
  • 7. General register Organization 1/12/2023 Department of CSE (AI/ML) 7 • The CPU is connected to the rest of the system through system bus. Through system bus, data or information gets transferred between the CPU and the other component of the system. The system bus may have three components: • Data Bus: Data bus is used to transfer the data between main memory and CPU. • Address Bus: Address bus is used to access a particular memory location by putting the address of the memory location. • Control Bus: Control bus is used to provide the different control signal generated by CPU to different part of the system.
  • 8. 1/12/2023 Department of CSE (AI/ML) 8
  • 9. • For example, to perform the following operation 1/12/2023 Department of CSE (AI/ML) 9
  • 10. Stack Organization • A useful feature that is included in the CPU of most computers is a stack or last-in, first-out (LIFO) list. • A stack is a storage device that stores information in such a manner that the item stored last is the first item retrieved. • The stack in digital computers is essentially a memory unit with an address register that can count only (after an initial value is loaded into it). • The register that holds the address for the stack is called a stack pointer (SP) because its value always points at the top item in the stack. 1/12/2023 Department of CSE (AI/ML) 10
  • 11. Stack Organization • The two operations of a stack are the insertion and deletion of items. • The operation of insertion is called push (or push-down) because it can be thought of as the result of pushing a new item on top. • The operation of deletion is called pop (or pop-up) because it can be thought of as the result of removing one item so that the stack pops up. • These operations are simulated by incrementing or decrementing the stack pointer register. • Types of stacks are: • Register Stack • Memory stack 1/12/2023 Department of CSE (AI/ML) 11
  • 13. 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 stack pointer register SP contains a binary number whose value is equal to the address of the word that is currently on top of the stack. • Three items are placed in the stack: A, B, and C, in that order. • Item C is on top of the stack so that the content of SP is now 3. • To remove the top item, the stack is popped by reading the memory word at address 3 and decrementing the content of SP. Item B is now on top of the stack since SP holds address 2. • To insert a new item, the stack is pushed by incrementing SP and writing a word in the next-higher location in the stack . 1/12/2023 Department of CSE (AI/ML) 13
  • 14. • Two operations in stack: • PUSH Operation • POP Operation • The push operation is implemented with the following sequence of microoperations: 1/12/2023 Department of CSE (AI/ML) 14
  • 15. • The pop operation consists of the following sequence of microoperations: 1/12/2023 Department of CSE (AI/ML) 15
  • 16. Memory Stack • A stack can exist as a stand-alone unit as in Figure or can be implemented in a random-access memory attached to a CPU. • The implementation of a stack in the CPU is done by assigning a portion of memory to a stack operation and using a processor register as a stack pointer. • Figure 8-4 shows a portion of computer memory partitioned into three segments: program, data, and stack. • The program counter PC points at the address of the next instruction in the program. The address register AR points at an array of data. • The stack pointer SP points a t the top of the stack. • The three registers are connected t o a common address bus, and either one can provide an address for memory. 1/12/2023 Department of CSE (AI/ML) 16
  • 17. 1/12/2023 Department of CSE (AI/ML) 17
  • 18. • Memory Stack operations are : • Insert operation • Delete operation We assume that the items in the stack communicate with a data register DR. A new item is inserted with the push operation as follows: 1/12/2023 Department of CSE (AI/ML) 18 The stack pointer is decremented so that it points at the address of the next word. A memory write operation inserts the word from DR into the top of the stack. A new item is deleted with a pop operation as follows:
  • 19. Stack Organization Advantages • A stack pointer is loaded with an initial value. This initial value must be the bottom address of an assigned stack in memory. • Henceforth, SP is automatically decremented or incremented with every push or pop operation. • The advantage of a memory stack is that the CPU can refer to it without having to specify an address, since the address is always available and automatically updated in the stack pointer. 1/12/2023 Department of CSE (AI/ML) 19
  • 20. Topics to be covered in next session 12 • Instruction format 1/12/2023 Department of CSE (AI/ML) 20 Thank you!!!