General Purpose Processors: Software This Week In DIG II  Introduction  Basic Architecture  Operation  Programmer’s view (that would be you !) 

Slides:



Advertisements
Similar presentations
3-Software Design Basics in Embedded Systems
Advertisements

Chapter 3 General-Purpose Processors: Software
CS364 CH16 Control Unit Operation
CPU Review and Programming Models CT101 – Computing Systems.
OMSE 510: Computing Foundations 4: The CPU!
Computer Organization and Architecture
1/1/ /e/e eindhoven university of technology Microprocessor Design Course 5Z008 Dr.ir. A.C. (Ad) Verschueren Eindhoven University of Technology Section.
Microprocessor.  The CPU of Microcomputer is called microprocessor.  It is a CPU on a single chip (microchip).  It is called brain or heart of the.
Processor System Architecture
Chapter 8. Pipelining. Instruction Hazards Overview Whenever the stream of instructions supplied by the instruction fetch unit is interrupted, the pipeline.
Chapter 12 CPU Structure and Function. CPU Sequence Fetch instructions Interpret instructions Fetch data Process data Write data.
Computer Systems. Computer System Components Computer Networks.
Processor Technology and Architecture
Computer Organization and Architecture The CPU Structure.
Data Manipulation Computer System consists of the following parts:
Stored Program Concept: The Hardware View
The processor and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
Chapter 4 Processor Technology and Architecture. Chapter goals Describe CPU instruction and execution cycles Explain how primitive CPU instructions are.
Henry Hexmoor1 Chapter 10- Control units We introduced the basic structure of a control unit, and translated assembly instructions into a binary representation.
General Purpose Processors: Software. This Week In DIG II  Introduction  Basic Architecture  Memory  Programmer’s view (that would be you !)  Development.
Processor Types And Instruction Sets Barak Perelman CS147 Prof. Lee.
CH12 CPU Structure and Function
Basic Operational Concepts of a Computer
Embedded Systems Design: A Unified Hardware/Software Introduction 1 Microprocessors.
Basic Microcomputer Design. Inside the CPU Registers – storage locations Control Unit (CU) – coordinates the sequencing of steps involved in executing.
Lecture #32 Page 1 ECE 4110–5110 Digital System Design Lecture #32 Agenda 1.Improvements to the von Neumann Stored Program Computer Announcements 1.N/A.
Basic Architecture Lecture 15. In general, if the number of bits is n, then the number of different combinations of 0s and 1s that can be made is 2 n.
Computer Systems Organization CS 1428 Foundations of Computer Science.
Lecture 15 VHDL Modeling of Microprocessors.
Fall 2012 Chapter 2: x86 Processor Architecture. Irvine, Kip R. Assembly Language for x86 Processors 6/e, Chapter Overview General Concepts IA-32.
George Mason University ECE 448 – FPGA and ASIC Design with VHDL Experiment 7 VHDL Modeling of Embedded Microprocessors and Microcontrollers.
0 High-Performance Computer Architecture Memory Organization Chapter 5 from Quantitative Architecture January 2006.
The variety Of Processors And Computational Engines CS – 355 Chapter- 4 `
Embedded Systems Design: A Unified Hardware/Software Introduction, (c) 2000 Vahid/Givargis 1 Basic Architecture Control unit and datapath –Note similarity.
Embedded Systems Design: A Unified Hardware/Software Introduction 1 Chapter 3 General-Purpose Processors: Software.
CHAPTER 4 The Central Processing Unit. Chapter Overview Microprocessors Replacing and Upgrading a CPU.
CSE 340 Computer Architecture Summer 2014 Basic MIPS Pipelining Review.
CS.305 Computer Architecture Enhancing Performance with Pipelining Adapted from Computer Organization and Design, Patterson & Hennessy, © 2005, and from.
1 Designing a Pipelined Processor In this Chapter, we will study 1. Pipelined datapath 2. Pipelined control 3. Data Hazards 4. Forwarding 5. Branch Hazards.
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
Computer Structure & Architecture 7b - CPU & Buses.
Computer Architecture Lecture 03 Fasih ur Rehman.
Stored Programs In today’s lesson, we will look at: what we mean by a stored program computer how computers store and run programs what we mean by the.
How Computers Work Lecture 12 Page 1 How Computers Work Lecture 12 Introduction to Pipelining.
Microarchitecture. Outline Architecture vs. Microarchitecture Components MIPS Datapath 1.
Processor Structure and Function Chapter8:. CPU Structure  CPU must:  Fetch instructions –Read instruction from memory  Interpret instructions –Instruction.
CSIE30300 Computer Architecture Unit 04: Basic MIPS Pipelining Hsin-Chou Chi [Adapted from material by and
Computer Architecture Lecture 4 by Engineer A. Lecturer Aymen Hasan AlAwady 17/11/2013 University of Kufa - Informatics Center for Research and Rehabilitation.
Lecture 15: Pipelined Datapath Soon Tee Teoh CS 147.
The Processor & its components. The CPU The brain. Performs all major calculations. Controls and manages the operations of other components of the computer.
How does the CPU work? CPU’s program counter (PC) register has address i of the first instruction Control circuits “fetch” the contents of the location.
8085 INTERNAL ARCHITECTURE.  Upon completing this topic, you should be able to: State all the register available in the 8085 microprocessor and explain.
Chapter 11 System Performance Enhancement. Basic Operation of a Computer l Program is loaded into memory l Instruction is fetched from memory l Operands.
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.
Basic Computer Organization and Design
ECE 4110–5110 Digital System Design
William Stallings Computer Organization and Architecture 8th Edition
Processor Architecture: Introduction to RISC Datapath (MIPS and Nios II) CSCE 230.
Computer Architecture
The fetch-execute cycle
CISC AND RISC SYSTEM Based on instruction set, we broadly classify Computer/microprocessor/microcontroller into CISC and RISC. CISC SYSTEM: COMPLEX INSTRUCTION.
EE 445S Real-Time Digital Signal Processing Lab Spring 2014
Processor Organization and Architecture
Introduction to Microprocessor Programming
Microprocessors.
How does the CPU work? CPU’s program counter (PC) register has address i of the first instruction Control circuits “fetch” the contents of the location.
General Purpose Processor : Software
Presentation transcript:

General Purpose Processors: Software

This Week In DIG II  Introduction  Basic Architecture  Operation  Programmer’s view (that would be you !)  Development environment  Application specific instruction-Set Processors (ASIPs)  Selecting a microprocessor  Z-World  General – purpose processor design Chapter 3 General-Purpose Processors: Software

Introduction  General-Purpose Processor  Processor designed for a variety of computation tasks  Low unit cost, in part because manufacturer spreads NRE over large numbers of units Motorola sold half a billion 68HC05 microcontrollers in 1996 alone  Carefully designed since higher NRE is acceptable Can yield good performance, size and power  Hand picked, top-notch designers (you!)  Low NRE cost for embedded system manufacturer, short time-to- market/prototype, high flexibility User just writes software; no processor design  a.k.a. “microprocessor” – “micro” used when they were implemented on one or a few chips rather than entire rooms

Basic Architecture  Control unit and datapath  Note similarity to single- purpose processor  Key differences  Datapath is general  Control unit doesn’t store the algorithm – the algorithm is “programmed” into the memory Processor (CPU) Control unit Datapath ALU Registers IRPC Controller Memory I/O Control /Status

Datapath Operations LL oad RR ead memory location into register AA LU operation II nput certain registers through ALU, store back in register SS tore WW rite register to memory location Processor Control unitDatapath ALU IRPC Controller Memory I/O Control /Status Registers Datapath: transform data and store temporary data

Control Unit CC ontrol unit: configures the datapath operations RR etrieve program instructions MM ove data to, from and through the datapath according to these instructions SS equence of desired operations (“instructions”) stored in memory – “program” CC ontrol unit consists of PP rogram counter: II nstruction register: CC ontroller: PP C’s bit-width determines the processor’s address size: 16-bit PC can address 2 16 (65,536) directly accessible memory locations. Processor Control unitDatapath ALU Registers IRPC Controller Memory I/O Control /Status load R0, M[500] inc R1, R0 101 store M[501], R1 102 R0R1

Controller  What does the controller really do?…you ask…  Controller sequences through several stages:  Instruction cycle – broken into several sub-operations, each one clock cycle, e.g.:  Fetch  Decode  Fetch operands  Execute  Store results

Control Unit Sub-Operations  Fetch  Get next instruction into IR  PC: program counter, always points to next instruction  IR: holds the fetched instruction  Decode  Determine what the instruction means Processor Control unit Datapath ALU Registers PC Controller Memory I/O Control /Status load R0, M[500] inc R1, R0 101 store M[501], R1 102 R0R1100 load R0, M[500] IR

Control Unit Sub-Operations  Fetch operands  Move data from memory to datapath register  Execute  Move data through the ALU  This particular instruction does nothing during this sub- operation  Store results  Write data from register to memory Processor Control unitDatapath Registers PC Controller Memory I/O Control /Status load R0, M[500] inc R1, R0 101 store M[501], R1 102 R0R1100 load R0, M[500] 10 IR ALU +1 11

Instruction Cycles Processor Control unitDatapath ALU Registers PC Controller Memory I/O Control /Status load R0, M[500] inc R1, R0 101 store M[501], R1 102 R0R PC= 100 FetchDecode Fetch ops Exec. Store results clk PC= 101 FetchDecode Fetch ops Exec. Store results clk PC= 102 store M[501], R1 Fetch Fetch ops Exec. 11 Store results clk Decode 102 IR

Architectural Considerations  Clock frequency  Inverse of clock period  Must be longer than longest register-to- register delay in entire processor  Memory access is often the longest  The path that takes the longest time is called critical path. Clock period must be longer than the critical path. Processor Control unitDatapath ALU Registers IRPC Controller Memory I/O Control /Status

Memory: Two Memory Architectures Processor Program memory Data memory Processor Memory (program and data) HarvardPrinceton  Registers serve as short time storage space, the memory serves as the long time storage space  Memory:  Data  Program  Princeton  Harvard

Cache Memory  Memory access may be slow  On-chip memory (faster)  Off-chip memory (slower)  Cache is small but fast memory close to processor  Holds copy of part of memory that is most likely to be needed often  Underlying principle: If processor access a specific part of the memory, chances are it will need to access that immediate neighborhood of memory block again sometime soon  Hits and misses Processor Memory Cache Fast/expensive technology, usually on the same chip Slower/cheaper technology, usually on a different chip

Pipelining: Increasing Instruction Throughput Fetch-instr. Decode Fetch ops. Execute Store res Wash Dry Time Non-pipelinedPipelined Time Pipelined pipelined instruction execution non-pipelined dish cleaningpipelined dish cleaning Instruction 1

Today’s Summary  Basic processor architecture  Processor (CPU) Datapath –ALU –registers Control Ubit –Controller –PC –IR  Memory Harvard Princeton Rowan?  Pipelining