Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.

Slides:



Advertisements
Similar presentations
Chapter 2: Data Manipulation
Advertisements

Microprocessors and Interfacing
Chapter # 8 Figure 8-1 Major components of CPU Control Register Set [ Register Set [ Arithmetic Logic unit (ALU) [ Arithmetic Logic unit (ALU) [
Chapter 8: Central Processing Unit
Major components of CPU
INSTRUCTION SET ARCHITECTURES
ARITHMETIC LOGIC SHIFT UNIT
1 Register Transfer &  -operations Computer Organization Computer Architectures Lab REGISTER TRANSFER AND MICROOPERATIONS Register Transfer Language Register.
1/1/ / faculty of Electrical Engineering eindhoven university of technology Introduction Part 1: Bits, bytes and a simple processor dr.ir. A.C. Verschueren.
Instruction Set Architecture & Design
TK 2633 Microprocessor & Interfacing
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
Chapter 7. Register Transfer and Computer Operations
Computer Architecture
Unit-1 PREPARED BY: PROF. HARISH I RATHOD COMPUTER ENGINEERING DEPARTMENT GUJARAT POWER ENGINEERING & RESEARCH INSTITUTE Advance Processor.
Chapter 8 CPU Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
CENTRAL PROCESSING UNIT
Computer System Architecture ESGD2204
Machine Instruction Characteristics
Computer Architecture and Organization Introduction.
8.3 Stack Organization Stack: A storage device that stores information in such a manner that the item stored last is the first item retrieved. Also called.
Chap. 8 Central Processing Unit
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CS-334: Computer.
Stack Stack Pointer A stack is a means of storing data that works on a ‘Last in first out’ (LIFO) basis. It reverses the order that data arrives and is.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
Exam2 Review Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
Chap 7. Register Transfers and Datapaths. 7.1 Datapaths and Operations Two types of modules of digital systems –Datapath perform data-processing operations.
COMPUTER ARCHITECURE INSTRUCTION SET ARCHITECTURE.
CS 111 – Sept. 15 Chapter 2 – Manipulating data by performing instructions “What is going on in the CPU?” Commitment: –Please read through section 2.3.
Lecture 2 Microprocessor Architecture Image from:
Computer Architecture EKT 422
Computer Architecture Souad MEDDEB
What is a program? A sequence of steps
Computer Architecture Lecture 4 by Engineer A. Lecturer Aymen Hasan AlAwady 17/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
CPU performs the bulk of data processing operations CPU performs the bulk of data processing operations The CPU is made up of three parts. They are Control.
CH-8 CENTRAL PROCESSING UNIT -BY ESHA S. SHAH 1.  CENTRAL PROCESSING UNIT Introduction General Register Organization Stack Organization Instruction Formats.
MICROPROCESSOR DETAILS 1 Updated April 2011 ©Paul R. Godin prgodin gmail.com.
Chapter 2 Data Manipulation © 2007 Pearson Addison-Wesley. All rights reserved.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
BASIC COMPUTER ARCHITECTURE HOW COMPUTER SYSTEMS WORK.
Gunjeet Kaur Dronacharya Group of institutions
The Stack.
SUBJECT:COMPUTER ORGANISATION SUBJECT CODE: B.E. 4th SEMESTER
Chap 7. Register Transfers and Datapaths
Introduction of microprocessor
Components of Computer
Morgan Kaufmann Publishers The Processor
Morgan Kaufmann Publishers
Overview Introduction General Register Organization Stack Organization
Overview Introduction General Register Organization Stack Organization
Computer Organization and Design
Processor Organization and Architecture
Chapter 10 The Stack.
Prepared By:- Parminder Mann
Central Processing Unit
CENTRAL PROCESSING UNIT
Chapter 8 Central Processing Unit
CENTRAL PROCESSING UNIT
ECEG-3202 Computer Architecture and Organization
By: A. H. Abdul Hafez CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU
By: A. H. Abdul Hafez Computer Architecture and Organization: L06: Stored program and Instruction code.
ECEG-3202 Computer Architecture and Organization
Central Processing Unit.
Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as.
COMPUTER ORGANIZATION AND ARCHITECTURE
Prepared By:- Bhim Singh
Computer Operation 6/22/2019.
Chapter 10 Instruction Sets: Characteristics and Functions
Presentation transcript:

Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department Computer System Architecture ESGD2204 Saturday, 16 th May 2009 Lecture 15

Chapter 8 CENTRAL PROCESSING UNIT CPU

CENTRAL PROCESSING UNIT 8.1 Introduction 8.2 General Register Organization 8.3 Stack Organization 8.4 Instruction Formats 8.5 Addressing Modes 8.6 Data Transfer and Manipulation 8.7 Program Control 8.8 Reduced Instruction Set Computer Agenda

MAJOR COMPONENTS OF CPU Introduction Storage Components Registers Flags Execution (Processing) Components Arithmetic Logic Unit(ALU) Arithmetic calculations, Logical computations, Shifts/Rotates Transfer Components Bus Control Components Control Unit Register File ALU Control Unit Introduction CENTRAL PROCESSING UNIT

REGISTERS In Basic Computer, there is only one general purpose register, the Accumulator (AC) In modern CPUs, there are many general purpose registers It is advantageous to have many registers –Transfer between registers within the processor are relatively fast –Going “off the processor” to access memory is much slower CENTRAL PROCESSING UNIT

GENERAL REGISTER ORGANIZATION General Register Organization CENTRAL PROCESSING UNIT

OPERATION OF CONTROL UNIT The control unit Directs the information flow through ALU by - Selecting various Components in the system - Selecting the Function of ALU Example: R1  R2 + R3 [1] MUX A selector (SELA): BUS A  R2 [2] MUX B selector (SELB): BUS B  R3 [3] ALU operation selector (OPR): ALU to ADD [4] Decoder destination selector (SELD): R1  Out Bus Control Word Encoding of register selection fields Control Binary CodeSELASELBSELD 000InputInputNone 001 R1 R1 R1 010 R2 R2 R2 011 R3 R3 R3 100 R4 R4 R4 101 R5 R5 R5 110 R6 R6 R6 111 R7 R7 R7 SELASELBSELDOPR 3335 CENTRAL PROCESSING UNIT

ALU CONTROL Encoding of ALU operations OPR SelectOperationSymbol 00000Transfer ATSFA 00001Increment AINCA 00010ADD A + BADD 00101Subtract A - BSUB 00110Decrement ADECA 01000AND A and BAND 01010OR A and BOR 01100XOR A and BXOR 01110Complement ACOMA 10000Shift right ASHRA 11000Shift left ASHLA Examples of ALU Microoperations Symbolic Designation MicrooperationSELASELBSELDOPR Control Word Control R1  R2  R3 R2 R3 R1 SUB R4  R4  R5 R4 R5 R4 OR R6  R6 + 1 R6 - R6 INCA R7  R1 R1 - R7 TSFA Output  R2 R2 - None TSFA Output  Input Input - None TSFA R4  shl R4 R4 - R4 SHLA R5  0 R5 R5 R5 XOR CENTRAL PROCESSING UNIT

REGISTER STACK ORGANIZATION Register Stack Push, Pop operations /* Initially, SP = 0, EMPTY = 1, FULL = 0 */ PUSHPOP Stack Organization SP  SP + 1 DR  M[SP] M[SP]  DR SP  SP  1 If (SP = 0) then (FULL  1) If (SP = 0) then (EMPTY  1) EMPTY  0 FULL  0 Stack - Very useful feature for nested subroutines, nested interrupt services - Also efficient for arithmetic expression evaluation - Storage which can be accessed in LIFO - Pointer: SP - Only PUSH and POP operations are applicable A B C Address FULLEMPTY SP DR Flags Stack pointer stack 6 bits CENTRAL PROCESSING UNIT

MEMORY STACK ORGANIZATION Stack Organization - A portion of memory is used as a stack with a processor register as a stack pointer - PUSH:SP  SP - 1 M[SP]  DR - POP:DR  M[SP] SP  SP + 1 Memory with Program, Data, and Stack Segments Data (operands) Program (instructions) 1000 PC AR SP stack Stack grows In this direction - Most computers do not provide hardware to check stack overflow (full stack) or underflow (empty stack)  must be done in software CENTRAL PROCESSING UNIT