What have mr aldred’s dirty clothes got to do with the cpu

Slides:



Advertisements
Similar presentations
Instruction Level Parallelism and Superscalar Processors
Advertisements

Instruction Set Design
RISC and Pipelining Prof. Sin-Min Lee Department of Computer Science.
OMSE 510: Computing Foundations 4: The CPU!
 Suppose for a moment that you were asked to perform a task and were given the following list of instructions to perform:
Computer Organization and Architecture
10/11: Lecture Topics Slides on starting a program from last time Where we are, where we’re going RISC vs. CISC reprise Execution cycle Pipelining Hazards.
Chapter Six 1.
Tuan Tran. What is CISC? CISC stands for Complex Instruction Set Computer. CISC are chips that are easy to program and which make efficient use of memory.
Lecture 2-Berkeley RISC Penghui Zhang Guanming Wang Hang Zhang.
Processor Technology and Architecture
Chapter XI Reduced Instruction Set Computing (RISC) CS 147 Li-Chuan Fang.
Chapter 4 Processor Technology and Architecture. Chapter goals Describe CPU instruction and execution cycles Explain how primitive CPU instructions are.
RISC. Rational Behind RISC Few of the complex instructions were used –data movement – 45% –ALU ops – 25% –branching – 30% Cheaper memory VLSI technology.
11/11/05ELEC CISC (Complex Instruction Set Computer) Veeraraghavan Ramamurthy ELEC 6200 Computer Architecture and Design Fall 2005.
Processor Architecture Kieran Mathieson. Outline Memory CPU Structure Design a CPU Programming Design Issues.
1 Sec (2.3) Program Execution. 2 In the CPU we have CU and ALU, in CU there are two special purpose registers: 1. Instruction Register 2. Program Counter.
(6.1) Central Processing Unit Architecture  Architecture overview  Machine organization – von Neumann  Speeding up CPU operations – multiple registers.
Inside The CPU. Buses There are 3 Types of Buses There are 3 Types of Buses Address bus Address bus –between CPU and Main Memory –Carries address of where.
RISC CSS 548 Joshua Lo.
Cisc Complex Instruction Set Computing By Christopher Wong 1.
CH12 CPU Structure and Function
RISC and CISC. Dec. 2008/Dec. and RISC versus CISC The world of microprocessors and CPUs can be divided into two parts:
Processor Structure & Operations of an Accumulator Machine
Basics and Architectures
RISC:Reduced Instruction Set Computing. Overview What is RISC architecture? How did RISC evolve? How does RISC use instruction pipelining? How does RISC.
9.2 Pipelining Suppose we want to perform the combined multiply and add operations with a stream of numbers: A i * B i + C i for i =1,2,3,…,7.
RISC By Ryan Aldana. Agenda Brief Overview of RISC and CISC Features of RISC Instruction Pipeline Register Windowing and renaming Data Conflicts Branch.
RISC Architecture RISC vs CISC Sherwin Chan.
Ted Pedersen – CS 3011 – Chapter 10 1 A brief history of computer architectures CISC – complex instruction set computing –Intel x86, VAX –Evolved from.
RISC and CISC. What is CISC? CISC is an acronym for Complex Instruction Set Computer and are chips that are easy to program and which make efficient use.
ECEG-3202 Computer Architecture and Organization Chapter 7 Reduced Instruction Set Computers.
E X C E E D I N G E X P E C T A T I O N S VLIW-RISC CSIS Parallel Architectures and Algorithms Dr. Hoganson Kennesaw State University Instruction.
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.
© GCSE Computing Candidates should be able to:  describe the characteristics of an assembler Slide 1.
Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.
1.4 Representation of data in computer systems Instructions.
Cs 147 Spring 2010 Meg Genoar. History Started to emerge in mid-1970s 1988 – RISC took over workstation market.
CISC and RISC 12/25/ What is CISC? acronym for Complex Instruction Set Computer Chips that are easy to program and which make efficient use of memory.
Processor Structure and Function Chapter8:. CPU Structure  CPU must:  Fetch instructions –Read instruction from memory  Interpret instructions –Instruction.
Pipelining Example Laundry Example: Three Stages
Computer Systems – Machine & Assembly code. Objectives Machine Code Assembly Language Op-code Operand Instruction Set.
Lecture 9. MIPS Processor Design – Pipelined Processor Design #1 Prof. Taeweon Suh Computer Science Education Korea University 2010 R&E Computer System.
RISC / CISC Architecture by Derek Ng. Overview CISC Architecture RISC Architecture  Pipelining RISC vs CISC.
The Processor & its components. The CPU The brain. Performs all major calculations. Controls and manages the operations of other components of the computer.
CISC. What is it?  CISC - Complex Instruction Set Computer  CISC is a design philosophy that:  1) uses microcode instruction sets  2) uses larger.
Chapter 11 System Performance Enhancement. Basic Operation of a Computer l Program is loaded into memory l Instruction is fetched from memory l Operands.
Representation of Data - Instructions Start of the lesson: Open this PowerPoint from the A451 page – Representation of Data/ Instructions How confident.
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.
The CPU, RISC and CISC Component 1.
PROGRAMMABLE LOGIC CONTROLLERS SINGLE CHIP COMPUTER
Advanced Architectures
A Closer Look at Instruction Set Architectures
William Stallings Computer Organization and Architecture 8th Edition
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
Chapter 9 a Instruction Level Parallelism and Superscalar Processors
Advanced Topic: Alternative Architectures Chapter 9 Objectives
CISC (Complex Instruction Set Computer)
Central Processing Unit CPU
Central Processing Unit
CISC AND RISC SYSTEM Based on instruction set, we broadly classify Computer/microprocessor/microcontroller into CISC and RISC. CISC SYSTEM: COMPLEX INSTRUCTION.
Computer Organization and ASSEMBLY LANGUAGE
1.1 The Characteristics of Contemporary Processors, Input, Output and Storage Devices Types of Processors.
8086 processor.
CPU Structure CPU must:
WJEC GCSE Computer Science
Pipelining.
Presentation transcript:

What have mr aldred’s dirty clothes got to do with the cpu RISC vs CISC What have mr aldred’s dirty clothes got to do with the cpu

Mr Aldred’s Dirty Laundry

Folding a t shirt

You work in a Tokyo Laundry and there is loads of dirty laundry that needs to be washed, dried, and folded It takes the washer for 30 minutes, Drying takes 40 minutes, Folding the clothes takes 20 minutes Then pick up the second load and wash, dry, and fold, and repeat for the third and fourth loads and firth loads. Supposing we started at 18:00 and worked as efficiently as possible, what time would you finish? What is the finish time? Create a diagram that shows this

What does a processor do?

High Level language to Machine code We program in High Level Languages e.g. C++. The CPU deals with machine code. We need a compiler to convert from our High LL to an Assembly language which in turn is ‘Assembled’ into Machine Code. (LMC) The complexity of the code the CPU can handle is higher for a CISC processor than a RISC processor. The more we break a program down into smaller steps the longer the code gets. The Python interpreter is a program which is compiled to machine code (i.e. bit patterns). When that program runs it interprets (i.e. decodes and executes) your Python program.

RISC Reduced instruction set computing Simple instructions are faster to process What do these complex instruction do? Take this number and store it If the number that is loaded into the accumulator is equal to zero then break the loop Make this more complex Open the door Stand up

RISC Reduced Instruction Set Computer Simple hardware Further away from high level languages Longer code requiring more RAM Compiler has to do more work Every operation takes place in one clock cycle. Show the main points to the students Ask each / groups to act / draw each statement - could model with playdoh, other students guess

CISC Complex Instruction Set Computer. More complex hardware Closer to High Level Language Less work for the compiler to do Smaller code requiring less RAM Some instructions take multiple clock cycles to complete. Show the main points to the students Ask each / groups to act / draw each statement - could model with playdoh, other students guess

Consider how to add two numbers Load the first number from RAM into a register Load the second number from RAM into a register Add them together Store the answer in a register. 2 + 3 = ?

Why use risc processors then ? The physical construction of RISC chips is simpler. They need less complicated circuitry as they perform fewer instruction types. Therefore they can be made… Smaller To use less power To generate less heat

Speed If we look at a single Fetch-Execute cycle a CISC processor would appear to be much faster as it only has to fetch and decode a single instruction. However, that instruction may take it several cycles to complete. A RISC processor would take one cycle per instruction.

Pipelines To speed up processors we can use pipelines. To do this we need to break the Fetch –Execute cycle into stages, e.g. fetch instructions from memory read registers and decode the instruction execute the instruction or calculate an address access an operand in data memory write the result into a register Instead of taking (4 x 5 = 20) cycles the CPU can process 4 lines of code in just 8 cycles.

Why pipelines don’t work as well with CISC processors. Each line of RISC code takes 1 cycle to execute. CISC code can take 1, 2 or more cycles to execute. Therefore the compiler has a harder job of queuing up the jobs in the pipelines of CISC processors. The ‘larger’ commands, particularly branched commands can cause the pipelines to ‘stall’ which slows the computer down.

Key questions What is the comparison between the laundry and the RISC processing What are the RISC instructions Does the Laundry task represent CISC? Where is the pipelining comparison? What impact does it have on the washing? How could the Laundry Task be written for a CISC?

Discuss the relative merits of CISC and RISC architectures when a chip manufacturer is planning a new processor