1 TK6123: COMPUTER ORGANISATION & ARCHITECTURE Prepared By: Associate Prof. Dr Masri Ayob Lecture 6: CPU and Memory (1)

Slides:



Advertisements
Similar presentations
The CPU The Central Presentation Unit What is the CPU?
Advertisements

Computer Architecture and the Fetch-Execute Cycle
CSCI 4717/5717 Computer Architecture
DH2T 34 Computer Architecture 1 LO2 Lesson Two CPU and Buses.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
TK 2633 Microprocessor & Interfacing
Room: E-3-31 Phone: Dr Masri Ayob TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 5: CPU and Memory.
CHAPTER 4 COMPUTER SYSTEM – Von Neumann Model
TK 2123 COMPUTER ORGANISATION & ARCHITECTURE
Room: E-3-31 Phone: Dr Masri Ayob TK 2633 Microprocessor & Interfacing Lecture 1: Introduction to 8085 Assembly Language.
Memory - Registers Instruction Sets
Stored Program Concept: The Hardware View
Computer Organization and Assembly language
Processor Structure & Operations of an Accumulator Machine
Micro-operations Are the functional, or atomic, operations of a processor. A single micro-operation generally involves a transfer between registers, transfer.
Computer Systems 1 Fundamentals of Computing The CPU & Von Neumann.
CS 1308 Computer Literacy and the Internet Computer Systems Organization.
D75P 34R HNC Computer Architecture 1 Week 9 The Processor, Busses and Peripherals © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College.
Chapter 5: Computer Systems Organization Invitation to Computer Science, Java Version, Third Edition.
Computer Science 210 Computer Organization The von Neumann Architecture.
Computer Systems Organization CS 1428 Foundations of Computer Science.
Introduction to Computing Systems from bits & gates to C & beyond The Von Neumann Model Basic components Instruction processing.
CPU How It Works. 2 Generic Block Diagram CPU MemoryInputOutput Address Bus Data Bus.
2 nd Year - 1 st Semester Asst. Lect. Mohammed Salim Computer Architecture I 1.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
Model Computer CPU Arithmetic Logic Unit Control Unit Memory Unit
General Concepts of Computer Organization Overview of Microcomputer.
Computer Architecture Lecture 2 System Buses. Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given.
D75P 34 – HNC Computer Architecture Week 1 Main Components Of A Processor © C Nyssen/Aberdeen College 2003 All images © C Nyssen /Aberdeen College unless.
ECEG-3202 Computer Architecture and Organization Chapter 3 Top Level View of Computer Function and Interconnection.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Studies/ICT SS2
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI N305 Information Representation: Machine Instructions.
Electronic Analog Computer Dr. Amin Danial Asham by.
Computer Organization 1 Instruction Fetch and Execute.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
Stored Program A stored-program digital computer is one that keeps its programmed instructions, as well as its data, in read-write,
System Unit Working of CPU. The CPU CPU The CPU CPU stands for central processing unit. it is brain of computer It is most important component of the.
Dale & Lewis Chapter 5 Computing components
Overview von Neumann Architecture Computer component Computer function
C HAPTER 4 OS: C OMPUTER O RGANIZATION TOPICS: The Von Neumann Architecture The CPU.
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
Simple ALU How to perform this C language integer operation in the computer C=A+B; ? The arithmetic/logic unit (ALU) of a processor performs integer arithmetic.
Structure and Role of a Processor
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
Logic Gates Dr.Ahmed Bayoumi Dr.Shady Elmashad. Objectives  Identify the basic gates and describe the behavior of each  Combine basic gates into circuits.
1 Chapter 1 Basic Structures Of Computers. Computer : Introduction A computer is an electronic machine,devised for performing calculations and controlling.
CPU (Central Processing Unit). The CPU is the brain of the computer. Sometimes referred to simply as the processor or central processor, the CPU is where.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
CPU Lesson 2.
Dr.Ahmed Bayoumi Dr.Shady Elmashad
Chapter 4 The Von Neumann Model
Computer Science 210 Computer Organization
Computer Science 210 Computer Organization
Functional Units.
CS149D Elements of Computer Science
ECEG-3202 Computer Architecture and Organization
BIC 10503: COMPUTER ARCHITECTURE
Central Processing Unit
Computer Architecture
GCSE OCR 1 The CPU Computer Science J276 Unit 1
Basic components Instruction processing
A Top-Level View Of Computer Function And Interconnection
Information Representation: Machine Instructions
Objectives Describe common CPU components and their function: ALU Arithmetic Logic Unit), CU (Control Unit), Cache Explain the function of the CPU as.
Presentation transcript:

1 TK6123: COMPUTER ORGANISATION & ARCHITECTURE Prepared By: Associate Prof. Dr Masri Ayob Lecture 6: CPU and Memory (1)

Prepared by: Dr Masri Ayob - TK Contents This lecture will discuss: Computer Systems Organisation.Computer Systems Organisation. Instruction Execution.Instruction Execution. Design Principles for Modern Computers.Design Principles for Modern Computers.

3 Program Concept Hardwired systems are inflexible General purpose hardware can do different tasks, given correct control signals Instead of re-wiring, supply a new set of control signals

4 What is a program? A sequence of steps For each step, an arithmetic or logical operation is done For each operation, a different set of control signals is needed

5 Function of Control Unit For each operation a unique code is provided e.g. ADD, MOVEe.g. ADD, MOVE A hardware segment accepts the code and issues the control signals We have a computer!

6 Components of Computer Central Processing Unit (CPU) has: The Control Unit (CU)The Control Unit (CU) the Arithmetic and Logic Unit (ALU).the Arithmetic and Logic Unit (ALU). Data and instructions need to get into the system and results out Input/outputInput/output Temporary storage of code, data and results is needed Main memoryMain memory

7 Central Processing Unit The organisation of a simple computer with one CPU and two I/O devices

8 CPU Organization The data path of a typical Von Neumann machine.

9 Components of the CPU The arithmetic/logic unit is the component of the CPU where data is held temporarily and where calculations take place. The control unit controls and interprets the execution of instructions. The control unit determines the particular instruction to be executed by reading the contents of a program counter (PC), sometimes called an instruction pointer, which is a part of the control unit.

10 Components of the CPU Normally, instructions are executed sequentially. The sequence of instructions is modified by executing instructions that change the contents of the program counter.The sequence of instructions is modified by executing instructions that change the contents of the program counter. A Memory Management Unit within the control unit supervises the fetching of instructions and data from memory.

11 The Concept Of Registers A register is a single, permanent storage location within the CPU used for a particular, defined purpose. A register is used to hold a binary value temporarily for storage, for manipulation, and/or for simple calculations. Each register is wired within the CPU to perform its specific role. each register serves a particular purpose.each register serves a particular purpose. The register’s size, the way it is wired, and even the operations that take place in the register reflect the specific function that the register performs in the computer.The register’s size, the way it is wired, and even the operations that take place in the register reflect the specific function that the register performs in the computer.

12 The Concept Of Registers They are not addressed as a memory location, but instead are manipulated directly by the control unit during the execution of instructions. They may be as small as a single bit or as wide as several bytes, ranging usually from one to 128 bits.

13 The Concept Of Registers A register may hold: data being processed,data being processed, an instruction being executed,an instruction being executed, a memory or I/O address to be accessed,a memory or I/O address to be accessed, or even special binary codes used for some other purpose.or even special binary codes used for some other purpose. Some registers serve many different purposes, while others are designed to perform a single, specialised task.

14 The Concept Of Registers Registers are basic working components of the CPU. The control unit contains several important registers: a)the program counter (PC) register holds the address of the current instruction being executed. b)The instruction register (IR) holds the actual instruction being executed currently by the computer.

15 The Concept Of Registers c)The memory address register (MAR) holds the address of a memory location. d)The memory data register (MDR), sometimes known as the memory buffer register, will hold a data value that is being stored to or retrieved from the memory location currently addressed by the memory address register.

16 The Concept Of Registers The CU also contain several 1-bit registers, sometimes known as flags, that are used to allow the computer to keep track of special conditions such as: arithmetic carry and overflow,arithmetic carry and overflow, power failure, and internal computer error.power failure, and internal computer error. Usually, several flags are grouped into one or more status registers.

17 The Concept Of Registers Most registers support four primary types of operations: a)Registers can be loaded with values from other locations, in particular from other registers or from memory locations. b)Data from another location can be added to or subtracted from the value previously stored in a register, leaving the sum or difference in the register.

Prepared by: Dr Masri Ayob - TK The Concept Of Registers c)Data in a register can be shifted or rotated right or left by one or more bits. d)The value of data in a register can be tested for certain conditions, such as zero, positive, negative, or too large to fit in the register.

Prepared by: Dr Masri Ayob - TK THE MEMORY UNIT The memory address register (MAR) and the memory data register (MDR), act is an interface between the CPU and memory. The MDR is called the memory buffer register by some computer manufacturers.The MDR is called the memory buffer register by some computer manufacturers. Each cell in the memory unit holds one bit of data. The cells are organized in rows. Each row consists of a group of one or more bytes.Each row consists of a group of one or more bytes. In modern computers, it is common to address eight bytes at a time to speed up memory access between the CPU and memory.

Prepared by: Dr Masri Ayob - TK

Prepared by: Dr Masri Ayob - TK THE MEMORY UNIT The MAR holds the address in the memory that is to be “opened” for data. The MAR is connected to a decoder that interprets the address and activates a single address line into the memory.The MAR is connected to a decoder that interprets the address and activates a single address line into the memory.

Prepared by: Dr Masri Ayob - TK THE MEMORY UNIT The MDR is designed such that it is effectively connected to every cell in the memory unit. Each bit of the MDR is connected in a column to the corresponding bit of every location in memory.Each bit of the MDR is connected in a column to the corresponding bit of every location in memory. The addressing method assures that only a single row of cells is activated at any given time.The addressing method assures that only a single row of cells is activated at any given time. Only one memory location is addressed at any one time.Only one memory location is addressed at any one time.

Prepared by: Dr Masri Ayob - TK

Prepared by: Dr Masri Ayob - TK Memory Capacity The number of bits in the MAR determines how many different address locations can be decoded. For a MAR of width k bits, the number of possible memory addresses isFor a MAR of width k bits, the number of possible memory addresses is M = 2 k For example: A 32-bit memory address allows a memory capacity of 4 gigabytes (GB)For example: A 32-bit memory address allows a memory capacity of 4 gigabytes (GB)

Prepared by: Dr Masri Ayob - TK Memory Capacity The size of the word to be retrieved or stored in a single operation is determined by the size of the MDR and by the width of the bus connecting memory to the CPU.The size of the word to be retrieved or stored in a single operation is determined by the size of the MDR and by the width of the bus connecting memory to the CPU. In most modern computers, data and instructions found in memory are addressed in multiples of 8- bit bytes.In most modern computers, data and instructions found in memory are addressed in multiples of 8- bit bytes. the MDR is usually designed to retrieve the data or instruction(s) from a sequence of several successive addresses all at once, and the MDR will be several bytes wide.the MDR is usually designed to retrieve the data or instruction(s) from a sequence of several successive addresses all at once, and the MDR will be several bytes wide.

Prepared by: Dr Masri Ayob - TK Thank you Q & A