SlideShare a Scribd company logo
Central Processing Unit
Stack Organization

Central Processing Unit
Abhineet Anand
Computer Science and Engg. Department
University of Petroleum and Energy Studies, Dehradun

November 26, 2012

Abhineet Anand

Central Processing Unit
Central Processing Unit
Stack Organization

Introduction
General Register Organization
Execution of Instruction

Introduction
One of the Major functional part in a digital computer is
Central Processing Unit.
The main digital hardware functional unit of CPU are
control unit, ALU and registers.
The register set stores intermediate data used during the
execution of the instruction.
The ALU performs the required micro-operation for
executing the instruction.
The control unit supervises the transfer of information
among the registers and instruct ALU to perform which
operation.

Abhineet Anand

Central Processing Unit
Central Processing Unit
Stack Organization

Introduction
General Register Organization
Execution of Instruction

Central Processing Unit

Abhineet Anand

Central Processing Unit
Central Processing Unit
Stack Organization

Introduction
General Register Organization
Execution of Instruction

General Register Organization

Memory locations are needed for storing pointers,
counters, return addresses, temporary results, and partial
products during multiplication.
As memory access is time consuming process better to
have those values in processor registers.
To have a large nos of registers, it have to connected with
a common bus system.
It will be part of various micro-operation like arithmetic,
logic and shift operation in the processor.

Abhineet Anand

Central Processing Unit
Central Processing Unit
Stack Organization

Introduction
General Register Organization
Execution of Instruction

Execution of Instruction
The Control unit that operates the CPU bus system directs
the information flow through the registers and ALU by
selecting the various components.
For example:

R1 <- R2 + R3
MUX A selector (SELA): to place the content of R2 into bus
A.
MUX B selector (SELB): to place the content of R3 into bus
B.
ALU operation selector (OPR): to provider the arithmetic
addition A + B.
Decoder destination selector (SELD): to transfer the
content of the output bus into R1.
Abhineet Anand

Central Processing Unit
Central Processing Unit
Stack Organization

Introduction
General Register Organization
Execution of Instruction

General Register Organization

Abhineet Anand

Central Processing Unit
Central Processing Unit
Stack Organization

Introduction
General Register Organization
Execution of Instruction

Execution of Instruction

The four control selection variables are generated in the
control unit and must be available at the beginning of a
clock cycle.
The buses are implemented with multiplexers or
three-state gates.

Abhineet Anand

Central Processing Unit
Central Processing Unit
Stack Organization

Introduction
Register Stack

Introduction

A useful feature that is included in the CPU of most
computer is a Stack.
A Stack is a storage device that stores information in such
a manner that the item stored last is first item retrieved.
The stack in digital computers is essentially a memory unit
with an address register - called stack pointer(SP).
The two operation of a stack are the insertion and deletion
of items i.e. push and pop.

Abhineet Anand

Central Processing Unit
Central Processing Unit
Stack Organization

Introduction
Register Stack

Register Stack

A stack can be placed in a portion of a large memory or
registers.
A stack pointer register(SP) contains a binary number
whose value is equal to the address of the word that is
currently on the top of the stack.

Abhineet Anand

Central Processing Unit
Central Processing Unit
Stack Organization

Introduction
Register Stack

Register Stack

Suppose, three items are placed in the stack : A, B, and C.
Item C is on the top of the stack so that the content of SP
is indicating to the address of C.
To remove the top item, the stack is popped by reading the
memory word and decrement the content of SP. Now, B is
on the top.
To insert a new item, the stack is pushed by incrementing
SP and writing a word in the next-higher location of the
stack.

Abhineet Anand

Central Processing Unit
Central Processing Unit
Stack Organization

Introduction
Register Stack

THANK YOU

Abhineet Anand

Central Processing Unit

More Related Content

PPT
Cpu organisation
PPTX
Central Processing Unit CUP by madridista ujjwal
PDF
Processor Organization
PPTX
Register organization, stack
PPT
Computers6 Ch4 1
PPT
PPTX
Computer architecture and organization
PPTX
CPU (Central Processing Units)
Cpu organisation
Central Processing Unit CUP by madridista ujjwal
Processor Organization
Register organization, stack
Computers6 Ch4 1
Computer architecture and organization
CPU (Central Processing Units)

What's hot (20)

PPT
Basic ops concept of comp
PPTX
Central Processing Unit
PPT
PPT
Cpu organisation
PPTX
The central processing unit by group 5 2015
PDF
Computer organiztion5
PPT
The CPU and Memory and Major Components
PPTX
The Basic Organization of Computers
PPTX
Computer organization
PPTX
Computer Organization: Introduction to Microprocessor and Microcontroller
PPTX
CPU (Central processing unit)
PPTX
Computer Organisation (DFT1113)
PPS
PDF
Computer Organization
PPTX
Design a processor
PPTX
Components of computer, CPU computer funfament ppt
PPTX
Computer Architecture and organization
DOCX
Unit 1
PPTX
Register Organization and Instruction cycle
Basic ops concept of comp
Central Processing Unit
Cpu organisation
The central processing unit by group 5 2015
Computer organiztion5
The CPU and Memory and Major Components
The Basic Organization of Computers
Computer organization
Computer Organization: Introduction to Microprocessor and Microcontroller
CPU (Central processing unit)
Computer Organisation (DFT1113)
Computer Organization
Design a processor
Components of computer, CPU computer funfament ppt
Computer Architecture and organization
Unit 1
Register Organization and Instruction cycle
Ad

Viewers also liked (9)

PPT
central processing unit and pipeline
PPTX
Computer Architecture
PPTX
Central processing unit
PPT
Decoder for digital electronics
PPT
Three Central Processing Unit
DOCX
Central processing unit
PPSX
08. Central Processing Unit (CPU)
PPT
central processing unit and pipeline
Computer Architecture
Central processing unit
Decoder for digital electronics
Three Central Processing Unit
Central processing unit
08. Central Processing Unit (CPU)
Ad

Similar to Central processing unit (20)

PPTX
Chapter_06_Processor_Structure_And_Function.pptx
PPTX
Processor organization &amp; register organization
PPTX
UNIT -1 COMPUTER ORGANIZATION (1).pptxxc
PPT
How The CPU Works.ppt
PPTX
5_Inside_the_System_Unit.pptx
PPT
Addressing modes (detailed data path)
PDF
Bca examination 2015 csa
PDF
Various type of register
PPTX
Chapter01 new
PPTX
Chapter01 new
DOC
the-cpu-design-central-processing-unit-design-1
PPTX
PPT
capitulo 2
PDF
Computer organization-and-architecture-questions-and-answers
PPTX
The Central Processing Unit (CPU) is the brain of the computer
PPTX
oLecture09-Internal Organization of CPU.pptx
PPT
Components Of Computer unit-2
PDF
MI Unit-1.pdf a detailed presentation on microprocessors
PPT
Processing Devices
PPT
Module-1.ppt............notes of coa 1st module
Chapter_06_Processor_Structure_And_Function.pptx
Processor organization &amp; register organization
UNIT -1 COMPUTER ORGANIZATION (1).pptxxc
How The CPU Works.ppt
5_Inside_the_System_Unit.pptx
Addressing modes (detailed data path)
Bca examination 2015 csa
Various type of register
Chapter01 new
Chapter01 new
the-cpu-design-central-processing-unit-design-1
capitulo 2
Computer organization-and-architecture-questions-and-answers
The Central Processing Unit (CPU) is the brain of the computer
oLecture09-Internal Organization of CPU.pptx
Components Of Computer unit-2
MI Unit-1.pdf a detailed presentation on microprocessors
Processing Devices
Module-1.ppt............notes of coa 1st module

More from Kumar (20)

PPT
Graphics devices
PPT
Fill area algorithms
PDF
region-filling
PDF
Bresenham derivation
PPT
Bresenham circles and polygons derication
PPTX
Introductionto xslt
PPTX
Extracting data from xml
PPTX
Xml basics
PPTX
XML Schema
PPTX
Publishing xml
PPTX
DTD
PPTX
Applying xml
PPTX
Introduction to XML
PDF
How to deploy a j2ee application
PDF
JNDI, JMS, JPA, XML
PDF
EJB Fundmentals
PDF
JSP and struts programming
PDF
java servlet and servlet programming
PDF
Introduction to JDBC and JDBC Drivers
PDF
Introduction to J2EE
Graphics devices
Fill area algorithms
region-filling
Bresenham derivation
Bresenham circles and polygons derication
Introductionto xslt
Extracting data from xml
Xml basics
XML Schema
Publishing xml
DTD
Applying xml
Introduction to XML
How to deploy a j2ee application
JNDI, JMS, JPA, XML
EJB Fundmentals
JSP and struts programming
java servlet and servlet programming
Introduction to JDBC and JDBC Drivers
Introduction to J2EE

Recently uploaded (20)

PDF
Empathic Computing: Creating Shared Understanding
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
cuic standard and advanced reporting.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Electronic commerce courselecture one. Pdf
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
A Presentation on Artificial Intelligence
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Approach and Philosophy of On baking technology
Empathic Computing: Creating Shared Understanding
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
MYSQL Presentation for SQL database connectivity
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
cuic standard and advanced reporting.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
The Rise and Fall of 3GPP – Time for a Sabbatical?
Understanding_Digital_Forensics_Presentation.pptx
Electronic commerce courselecture one. Pdf
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Diabetes mellitus diagnosis method based random forest with bat algorithm
Advanced methodologies resolving dimensionality complications for autism neur...
Mobile App Security Testing_ A Comprehensive Guide.pdf
The AUB Centre for AI in Media Proposal.docx
Per capita expenditure prediction using model stacking based on satellite ima...
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
A Presentation on Artificial Intelligence
Spectral efficient network and resource selection model in 5G networks
Approach and Philosophy of On baking technology

Central processing unit

  • 1. Central Processing Unit Stack Organization Central Processing Unit Abhineet Anand Computer Science and Engg. Department University of Petroleum and Energy Studies, Dehradun November 26, 2012 Abhineet Anand Central Processing Unit
  • 2. Central Processing Unit Stack Organization Introduction General Register Organization Execution of Instruction Introduction One of the Major functional part in a digital computer is Central Processing Unit. The main digital hardware functional unit of CPU are control unit, ALU and registers. The register set stores intermediate data used during the execution of the instruction. The ALU performs the required micro-operation for executing the instruction. The control unit supervises the transfer of information among the registers and instruct ALU to perform which operation. Abhineet Anand Central Processing Unit
  • 3. Central Processing Unit Stack Organization Introduction General Register Organization Execution of Instruction Central Processing Unit Abhineet Anand Central Processing Unit
  • 4. Central Processing Unit Stack Organization Introduction General Register Organization Execution of Instruction General Register Organization Memory locations are needed for storing pointers, counters, return addresses, temporary results, and partial products during multiplication. As memory access is time consuming process better to have those values in processor registers. To have a large nos of registers, it have to connected with a common bus system. It will be part of various micro-operation like arithmetic, logic and shift operation in the processor. Abhineet Anand Central Processing Unit
  • 5. Central Processing Unit Stack Organization Introduction General Register Organization Execution of Instruction Execution of Instruction The Control unit that operates the CPU bus system directs the information flow through the registers and ALU by selecting the various components. For example: R1 <- R2 + R3 MUX A selector (SELA): to place the content of R2 into bus A. MUX B selector (SELB): to place the content of R3 into bus B. ALU operation selector (OPR): to provider the arithmetic addition A + B. Decoder destination selector (SELD): to transfer the content of the output bus into R1. Abhineet Anand Central Processing Unit
  • 6. Central Processing Unit Stack Organization Introduction General Register Organization Execution of Instruction General Register Organization Abhineet Anand Central Processing Unit
  • 7. Central Processing Unit Stack Organization Introduction General Register Organization Execution of Instruction Execution of Instruction The four control selection variables are generated in the control unit and must be available at the beginning of a clock cycle. The buses are implemented with multiplexers or three-state gates. Abhineet Anand Central Processing Unit
  • 8. Central Processing Unit Stack Organization Introduction Register Stack Introduction A useful feature that is included in the CPU of most computer is a Stack. A Stack is a storage device that stores information in such a manner that the item stored last is first item retrieved. The stack in digital computers is essentially a memory unit with an address register - called stack pointer(SP). The two operation of a stack are the insertion and deletion of items i.e. push and pop. Abhineet Anand Central Processing Unit
  • 9. Central Processing Unit Stack Organization Introduction Register Stack Register Stack A stack can be placed in a portion of a large memory or registers. A stack pointer register(SP) contains a binary number whose value is equal to the address of the word that is currently on the top of the stack. Abhineet Anand Central Processing Unit
  • 10. Central Processing Unit Stack Organization Introduction Register Stack Register Stack Suppose, three items are placed in the stack : A, B, and C. Item C is on the top of the stack so that the content of SP is indicating to the address of C. To remove the top item, the stack is popped by reading the memory word and decrement the content of SP. Now, B is on the top. To insert a new item, the stack is pushed by incrementing SP and writing a word in the next-higher location of the stack. Abhineet Anand Central Processing Unit
  • 11. Central Processing Unit Stack Organization Introduction Register Stack THANK YOU Abhineet Anand Central Processing Unit