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)

PPT
pdfslide.net_morris-mano-ppt.ppt
PPTX
COA (Unit_2.pptx)
PPTX
The Central Processing Unit (CPU) is the brain of the computer
PDF
Unit 2.1. cpu
PPT
1353142173system unit
PPTX
Ch 3 CPU.pptx Architecture computer organization
PPT
computer organisation unit 3 presentatio
PPT
Addressing modes (detailed data path)
PPTX
Chapter 2 Central Processing Unit .pptx
PDF
Lect12 organization
PPTX
Central processing Unit.pptx
PPTX
Instruction_Cycle_and_Coziyth9esty7098wITU08EAU8ntrol.pptx
PPT
1.Basic Structure of Computer System.ppt
PPT
PPTX
Central processing unit safaa mahmood atallah @BOHOTH97
PDF
Central processing unit i
PPTX
Unit 4_DECA_Complete Digital Electronics.pptx
PPTX
Lecture 22
PPTX
Central Processing Unit-6.pptx
PPTX
Presentation Introduction to microprocessor
pdfslide.net_morris-mano-ppt.ppt
COA (Unit_2.pptx)
The Central Processing Unit (CPU) is the brain of the computer
Unit 2.1. cpu
1353142173system unit
Ch 3 CPU.pptx Architecture computer organization
computer organisation unit 3 presentatio
Addressing modes (detailed data path)
Chapter 2 Central Processing Unit .pptx
Lect12 organization
Central processing Unit.pptx
Instruction_Cycle_and_Coziyth9esty7098wITU08EAU8ntrol.pptx
1.Basic Structure of Computer System.ppt
Central processing unit safaa mahmood atallah @BOHOTH97
Central processing unit i
Unit 4_DECA_Complete Digital Electronics.pptx
Lecture 22
Central Processing Unit-6.pptx
Presentation Introduction to microprocessor

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
Architecture types and enterprise applications.pdf
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
Abstractive summarization using multilingual text-to-text transfer transforme...
PDF
Flame analysis and combustion estimation using large language and vision assi...
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PDF
Two-dimensional Klein-Gordon and Sine-Gordon numerical solutions based on dee...
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PPT
Module 1.ppt Iot fundamentals and Architecture
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
CloudStack 4.21: First Look Webinar slides
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PPTX
Configure Apache Mutual Authentication
PPTX
Custom Battery Pack Design Considerations for Performance and Safety
PPTX
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
PPTX
Chapter 5: Probability Theory and Statistics
PPT
What is a Computer? Input Devices /output devices
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
OpenACC and Open Hackathons Monthly Highlights July 2025
Architecture types and enterprise applications.pdf
1 - Historical Antecedents, Social Consideration.pdf
NewMind AI Weekly Chronicles – August ’25 Week III
Abstractive summarization using multilingual text-to-text transfer transforme...
Flame analysis and combustion estimation using large language and vision assi...
sbt 2.0: go big (Scala Days 2025 edition)
Two-dimensional Klein-Gordon and Sine-Gordon numerical solutions based on dee...
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
Module 1.ppt Iot fundamentals and Architecture
Final SEM Unit 1 for mit wpu at pune .pptx
Taming the Chaos: How to Turn Unstructured Data into Decisions
CloudStack 4.21: First Look Webinar slides
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
Configure Apache Mutual Authentication
Custom Battery Pack Design Considerations for Performance and Safety
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
Chapter 5: Probability Theory and Statistics
What is a Computer? Input Devices /output devices
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
OpenACC and Open Hackathons Monthly Highlights July 2025

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