Computer Architecture

Slides:



Advertisements
Similar presentations
Chapter 2: Data Manipulation
Advertisements

The CPU The Central Presentation Unit What is the CPU?
Machine cycle.
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
Room: E-3-31 Phone: Dr Masri Ayob TK 2123 COMPUTER ORGANISATION & ARCHITECTURE Lecture 5: CPU and Memory.
The processor and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
0 What is a computer?  Simply put, a computer is a sophisticated electronic calculating machine that:  Accepts input information,  Processes the information.
Basic Operational Concepts of a Computer
Computer Systems 1 Fundamentals of Computing The CPU & Von Neumann.
Basic Microcomputer Design. Inside the CPU Registers – storage locations Control Unit (CU) – coordinates the sequencing of steps involved in executing.
Chapter 4 MARIE: An Introduction to a Simple Computer.
Advanced Computer Architecture 0 Lecture # 1 Introduction by Husnain Sherazi.
Stages of Processing.  When a computer is given instructions, a series of tasks must take place in order for a result to be accomplished  To accomplish.
The Central Processing Unit (CPU) and the Machine Cycle.
Computer Organization - 1. INPUT PROCESS OUTPUT List different input devices Compare the use of voice recognition as opposed to the entry of data via.
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
Today’s topics Architecture overview Architecture overview Machine instructions Machine instructions Instruction Execution Cycle Instruction Execution.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
Computer Structure & Architecture 7b - CPU & Buses.
Computer Studies/ICT SS2
Computer Organization Instructors Course By: Lecturer: Shimaa Ibrahim Hassan TA: Eng: Moufeda Hussien Lecture: 9:45 Address:
Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.
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.
Computer Architecture Foundations for Graduate Level Students.
Computer operation is of how the different parts of a computer system work together to perform a task.
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
The Processor & its components. The CPU The brain. Performs all major calculations. Controls and manages the operations of other components of the computer.
1 3 Computing System Fundamentals 3.2 Computer Architecture.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
The Processor The Main Components Arithmetic/Logic Unit (ALU) Control Unit System Clock Registers.
© 2015 Pearson Education Limited 2015 Quiz in last 15 minutes Midterm 1 is next Sunday Assignment 1 due today at 4pm Assignment 2 will be up today; due.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
Chapter 2 content Basic organization of computer What is motherboard
Chapter 14 Inside the Computer - the von Neumann Architecture
Computer Architecture and Number Systems
Computer Hardware What is a CPU.
CPU Lesson 2.
Computing Science Computer Structure: Lesson 1: Processor Structure
Systems Architecture Keywords Fetch Execute Cycle
PROGRAMMABLE LOGIC CONTROLLERS SINGLE CHIP COMPUTER
Assembly language.
Chapter 10: Computer systems (1)
What is a computer? Simply put, a computer is a sophisticated electronic calculating machine that: Accepts input information, Processes the information.
Control Unit Lecture 6.
Lecture 5: Computer systems architecture
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
What is a computer? Simply put, a computer is a sophisticated electronic calculating machine that: Accepts input information, Processes the information.
Chapter 7.2 Computer Architecture
Introduction to microprocessor (Continued) Unit 1 Lecture 2
Assembly Language for Intel-Based Computers, 5th Edition
Introduction of microprocessor
Course Name: Computer Application Topic: Central Processing Unit (CPU)
Microprocessor and Assembly Language
Homework Reading Continue work on mp1
CENTRAL PROCESSING UNIT CPU (microprocessor)
Computer Architecture
Instructions at the Lowest Level
Teaching Computing to GCSE
Processor Organization and Architecture
Number Representations and Basic Processor Architecture
CISC AND RISC SYSTEM Based on instruction set, we broadly classify Computer/microprocessor/microcontroller into CISC and RISC. CISC SYSTEM: COMPLEX INSTRUCTION.
Overview of Computer Architecture and Organization
Introduction to Computer Architecture
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.
Register sets The register section/array consists completely of circuitry used to temporarily store data or program codes until they are sent to the.
Computer Architecture Assembly Language
COMPUTER ARCHITECTURE
Presentation transcript:

Computer Architecture Part II-A: CPU Organization

The Central Processing Unit The operating hub and heart of every computer system Composed of Control Unit Datapath Each component inside the CPU has a specific role in executing a command Communicates with other components of the system

Control Unit (CU) Regulates all activities inside the machine Serves as “nerve center” that sends control signals to other units and senses their status Connected to all components in the CPU as well as main memory

How The CU Is Connected Registers ALU Control Unit Main Memory CPU

Inside the CPU: The Datapath Registers ALU

Registers Components used for data storage (can be read from or written to) High speed memory locations used to store important information during CPU operations Two types Special General-purpose

Special Registers Registers used for specific purposes Used heavily during execution of CPU instructions

General Purpose Registers CPU registers used as “scratch pad” during execution of machine-level instructions Number varies between processors

Arithmetic Logic Unit (ALU) Performs all mathematical and logical operations within the CPU Operands not in the CPU would have to be retrieved from main memory

CPU-Memory Coordination Bus - a group of wires that connect separate components Types of bus: Control bus (control signals) Address bus (address information) Data bus (instruction/data)

CPU-Memory Coordination The different busses facilitate communication between the CPU and main memory Actions of the two components are highly-synchronized to ensure efficient and timely execution of instructions

CPU Operations Instructions do not reside in the CPU, they have to be fetched from memory Each machine level instruction is broken down into a logical sequence of smaller steps

CPU Operations Instructions are carried out by performing one or more of the following functions in some pre-specified sequence Retrieving data from main memory Putting data to main memory Register data transfer ALU operation

How An Instruction is Processed Instruction is retrieved from memory Analyze what the instruction is and how to execute it Operands/parameters (if any) are fetched from main memory Instruction is executed Results are stored (CPU or MM) Prepare for next instruction

Instruction Processing Example Fetch instruction from memory Decode it (turns out to be an ADD) Get the two numbers to add from MM Perform the addition Where will it be stored? Prepare for next instruction

Processing Data in Clusters Information is organized into groups of fixed-size data that can be stored and retrieved in a single, basic operation Each group of n bits is referred to as a word of information Access to each word requires a distinct name (location/address) Can also refer to a characteristic of other components (i.e. size of bus)

Word Length Size of a word specified in bits known as word length Possible benefits of a large word length: Faster processing (more data and/or instructions can be fetched at a time) Greater numeric precision More powerful instructions (e.g. instructions can have more operands)

Machine Language Composed of Instruction Data (instruction parameters) Instructions and data are represented by a stream of 1s and 0s Cumbersome to deal with when preparing programs; programmers use hexadecimal numbers In some computers, both instruction and data are stored in a single memory location

Assembly: An Improvement on Machine Language Symbols, called mnemonics, are used to represent instructions Sample instruction Advantage: Easier recall of instructions Disadvantage: Need to convert mnemonics and hexadecimal numbers back to binary Instruction parameters add (105),(8) instruction There is a strong possibility that hexadecimal numbers in relation to binary numbers may have to be reviewed here.

How Programs Are Loaded Into Main Memory Programs are loaded as binary numbers Assumptions: An instruction is represented by a 2-digit hexadecimal number (e.g. add by 1A, mov by A0) World length of instruction parameters: 3 hex digits (12 bits) Instruction Instruction parameters 100 101 102 103 104 105 A01040F2 1A105008 A00F2200 01000000 00000009 … 100 1010 0000 0001 0000 0100 0000 1111 0010

Executing Multiple Programs Programs share processor time Time slicing Supported by modern CPUs