Department of Communication Engineering, NCTU 1 Unit 6 Design and Synthesis of a RISC Store-Program Machine.

Slides:



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

Machine cycle.
Chapter 1. Basic Structure of Computers
Control path Recall that the control path is the physical entity in a processor which: fetches instructions, fetches operands, decodes instructions, schedules.
COE 405 Design and Synthesis of DataPath Controllers Dr. Aiman H. El-Maleh Computer Engineering Department King Fahd University of Petroleum & Minerals.
Processor System Architecture
Microprocessor and Microcontroller Based Systems Instructor: Eng.Moayed N. EL Mobaied The Islamic University of Gaza Faculty of Engineering Electrical.
1  1998 Morgan Kaufmann Publishers Chapter Five The Processor: Datapath and Control.
Midterm Wednesday Chapter 1-3: Number /character representation and conversion Number arithmetic Combinational logic elements and design (DeMorgan’s Law)
Levels in Processor Design
Stored Program Concept: The Hardware View
The processor and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ input/output and clock inputs Sequence of control signal combinations.
Overview The von Neumann Machine - the programmable digital computer Introducing the LC-3 Computer - A “toy” computer for us to learn from Computer machine.
The central processing unit and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
Chapter Five The Processor: Datapath and Control.
Dale & Lewis Chapter 5 Computing components. Let’s design a computer Generic CPU with registers −Program counter (PC) – 5 bits (size of addresses) −Instruction.
Design and Synthesis of a RISC Stored-Program Machine
KEY COMPONENTS OF A COMPUTER SYSTEM ANDREW LOLAVAR.
Micro-operations Are the functional, or atomic, operations of a processor. A single micro-operation generally involves a transfer between registers, transfer.
3 1 3 C H A P T E R Hardware: Input, Processing, and Output Devices.
Computer Architecture
Computer Science 210 Computer Organization The von Neumann Architecture.
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.
Introduction to Computing Systems from bits & gates to C & beyond The Von Neumann Model Basic components Instruction processing.
CPU Design. Introduction – The CPU must perform three main tasks: Communication with memory – Fetching Instructions – Fetching and storing data Interpretation.
Computer Architecture Lecture 09 Fasih ur Rehman.
The Central Processing Unit (CPU) and the Machine Cycle.
Model Computer CPU Arithmetic Logic Unit Control Unit Memory Unit
General Concepts of Computer Organization Overview of Microcomputer.
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
COMPILERS CLASS 22/7,23/7. Introduction Compiler: A Compiler is a program that can read a program in one language (Source) and translate it into an equivalent.
Computer Organization CDA 3103 Dr. Hassan Foroosh Dept. of Computer Science UCF © Copyright Hassan Foroosh 2002.
1. Building A CPU  We’ve built a small ALU l Add, Subtract, SLT, And, Or l Could figure out Multiply and Divide  What about the rest l How do.
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
Department of Communication Engineering, NCTU 1 Unit 4 Arithmetic and Logic Units.
Computer Organization and Assembly Languages Yung-Yu Chuang 2005/09/29
CS61C L20 Datapath © UC Regents 1 Microprocessor James Tan Adapted from D. Patterson’s CS61C Copyright 2000.
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.
1 Basic Processor Architecture. 2 Building Blocks of Processor Systems CPU.
Chapter 20 Computer Operations Computer Studies Today Chapter 20.
Computer Operation. Binary Codes CPU operates in binary codes Representation of values in binary codes Instructions to CPU in binary codes Addresses in.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 251 Introduction to Computer Organization.
Electrical and Computer Engineering University of Cyprus
Basic Processor Structure/design
Lecture 13 - Introduction to the Central Processing Unit (CPU)
Micro-Operations A computer executes a program Fetch/execute cycle
Components of Computer
William Stallings Computer Organization and Architecture 7th Edition
Microprocessor and Assembly Language
Chapter 15 Control Unit Operation
Computer Architecture
COSC 2021: Computer Organization Instructor: Dr. Amir Asif
Functional Units.
CS149D Elements of Computer Science
Computer Structure S.Abinash 11/29/ _02.
Control Unit Introduction Types Comparison Control Memory
Levels in Processor Design
William Stallings Computer Organization and Architecture 7th Edition
The Processor Lecture 3.1: Introduction & Logic Design Conventions
Chapter 14 Control Unit Operation
Lecture 6 CdM-8 CPU overview
Levels in Processor Design
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.
Computer Operation 6/22/2019.
Computer Architecture
Presentation transcript:

Department of Communication Engineering, NCTU 1 Unit 6 Design and Synthesis of a RISC Store-Program Machine

Digital CASUnit 6 : Design of RISC MachineSau-Hsuan Wu Department of Communication Engineering, NCTU 2 Digital circuits are designed to perform arithmetic and/or logic operations, or in general a mixture of them  Arithmetic operations : ADD, SUB, MUL, DIV etc.  Logic operations : NOT, AND, OR etc. A mathematical problem usually can be decomposed into a number of arithmetic and/or logic operations which may be executed serially or in parallel. However, to save the cost of hardware circuits, usually only one copy of circuit is built for each specific arithmetic or logic function. As a result, the mathematical problem is rearranged into a sequential order of the combinations of these operations.  E.g. : partition D = A + B + C into D  A + B followed by D  D + C These arithmetic or logic circuits are collected together to form an arithmetic and logic unit (ALU), and a set of systematic methods are created for this ALU to invoke the functions built in the ALU These methods are collectively referred to as the instruction set, which may also involve memory access and/or data movement

Digital CASUnit 6 : Design of RISC MachineSau-Hsuan Wu Department of Communication Engineering, NCTU 3 To support the functions of ALU, a number of data elements such as registers and counters are also necessary to help bring data from memory/register to the inputs of ALU and store the output of ALU to memory or registers The entire set of supporting elements plus the ALU as well as its accompanying instruction set is referred to as the central processing unit (CPU) Central processing unit (CPU)  As it is suggested by its name, all arithmetic operations are executed by this unit one instruction a time.  There are two types of design methodologies for the instruction sets of CPU Reduced instruction-set computers (RISC), which features  A small number of instructions that execute in short cycles  A small number of cycles per instruction Complex instruction-set computers (CISC)

Digital CASUnit 6 : Design of RISC MachineSau-Hsuan Wu Department of Communication Engineering, NCTU 4 A RISC store-program machine (SPM) consists of three functional units : a processor, a controller and memory Program instructions and data are stored in memory Instructions are fetched from memory synchronously, decoded and executed to  Operate on data with ALU  Change the contents of storage registers  Change the content of the program counter (PC), instruction register (IR) and the address register (ADD_R)  Change the content of memory  Retrieve data and instructions from memory  Control the movement of data on the system busses

Digital CASUnit 6 : Design of RISC MachineSau-Hsuan Wu Department of Communication Engineering, NCTU 5

Digital CASUnit 6 : Design of RISC MachineSau-Hsuan Wu Department of Communication Engineering, NCTU 6 Instruction Set  Single-Byte instruction NOP ADD : Dest  Source + Des AND : Dest  Source & Des. NOT : Dest  Source SUB : Dest  Source - Des  Two-Byte instruction RD : Dest  Memory WR : Memory  Source BR : PC  Address BRZ : PC  Address if zero flag == 0 OpcodeSourceDest. XX OpcodeSourceDest. Address

Digital CASUnit 6 : Design of RISC MachineSau-Hsuan Wu Department of Communication Engineering, NCTU 7 RISC-SPM controller : The machine has three phases of operation: fetch, decode and execute  A total 11 states S_idle: initial state S_fet1: addr reg  PC, S_fet2: load instruction  mem[addr] S_dec: decode the instr and assert control signals to datapath S_ex1: execute the ALU for single-byte instr and load dest reg S_rd1: addr reg  2nd byte of a RD instruction and PC ++ S_rd2: dest  mem [S_rd1] S_wr1: addr reg  2nd byte of a WR instruction and PC ++ S_wr2: mem [S_wr1]  source S_br1: addr reg  2nd byte of a BR instruction and PC++ S_br2: PC  mem [S_br1] S_halt : trap failure to decode a valid instruction

Digital CASUnit 6 : Design of RISC MachineSau-Hsuan Wu Department of Communication Engineering, NCTU 8

Digital CASUnit 6 : Design of RISC MachineSau-Hsuan Wu Department of Communication Engineering, NCTU 9

Digital CASUnit 6 : Design of RISC MachineSau-Hsuan Wu Department of Communication Engineering, NCTU 10

Digital CASUnit 6 : Design of RISC MachineSau-Hsuan Wu Department of Communication Engineering, NCTU 11

Digital CASUnit 6 : Design of RISC MachineSau-Hsuan Wu Department of Communication Engineering, NCTU 12