Review: What is it? What does it do? slti $4, $5, 6

Similar documents
Chapter 4 (Part I) The Processor. Baback Izadi Division of Engineering Programs

Pipelining. Improve performance by increasing instruction throughput Program execution order. Data access. Instruction. fetch. Data access.

CpE 442. Designing a Pipeline Processor (lect. II)

A Parallel Multilevel-Huffman Decompression Scheme for IP Cores with Multiple Scan Chains

EECS150 - Digital Design Lecture 9 - CPU Microarchitecture. CMOS Devices

Analog Signal Input. ! Note: B.1 Analog Connections. Programming for Analog Channels

Computer and Digital System Architecture

Field Communication FXA 675 Rackbus RS-485 Interface monorack II RS-485

Performance Evolution of 16 Bit Processor in FPGA using State Encoding Techniques

Multiplexor (aka MUX) An example, yet VERY useful circuit!

Contents Slide Set 6. Introduction to Chapter 7 of the textbook. Outline of Slide Set 6. An outline of the first part of Chapter 7

MINIMED 640G SYSTEM^ Getting Started. WITH THE MiniMed 640G INSULIN PUMP

Montgomery Modular Exponentiation on Reconfigurable Hardware æ

ASIC = Application specific integrated circuit

1. Basic safety information 4 2. Proper use 4

1. Convert the decimal number to binary, octal, and hexadecimal.

CS 152 Midterm 2 May 2, 2002 Bob Brodersen

A Buyers Guide to Laser Projection

CHAPTER 4: Logic Circuits

¾Strip cable to 8 mm (max. 9) ¾Insert cable in the open DuoFix plug-in terminal at 45. LL2 cables per terminal position possible

Slide Set 6. for ENCM 369 Winter 2018 Section 01. Steve Norman, PhD, PEng

Chapter 3 Unit Combinational

Pipeline design. Mehran Rezaei

Using Device-Specific Data Acquisition for Automated Laboratory Testing

1. Basic safety information 4 2. Proper use 4

With Ease. BETTY WAGNER Associate Trinity College London, Associate Music Australia READING LEDGER LINE NOTES

Spiral Content Mapping. Spiral 2 1. Learning Outcomes DATAPATH COMPONENTS. Datapath Components: Counters Adders Design Example: Crosswalk Controller

DQMx Series. Digital QAM Multiplexer INSTRUCTION MANUAL. Model Stock No. Description

E-Vision Laser 4K Series High Brightness Digital Video Projector

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

1. Basic safety information. 2. Proper use. 3. Installation and connection. Time switch installation. Disposal. click. Time switch.

HIGHlite 4K Series High Brightness Digital Video Projector

06 1 MIPS Implementation Pipelined DLX and MIPS Implementations: Hardware, notation, hazards.

CHAPTER 4: Logic Circuits

WINTER 15 EXAMINATION Model Answer

Sequential logic circuits

Lab #10 Hexadecimal-to-Seven-Segment Decoder, 4-bit Adder-Subtractor and Shift Register. Fall 2017

Product Overview 2009

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

Instruction Level Parallelism

Course Administration

CS 110 Computer Architecture. Finite State Machines, Functional Units. Instructor: Sören Schwertfeger.

Combinational vs Sequential

Logic Devices for Interfacing, The 8085 MPU Lecture 4

MODULAR DIGITAL ELECTRONICS TRAINING SYSTEM

REPEAT EXAMINATIONS 2002

Digital Electronics II 2016 Imperial College London Page 1 of 8

A Real-time Framework for Video Time and Pitch Scale Modification

problem maximum score 1 28pts 2 10pts 3 10pts 4 15pts 5 14pts 6 12pts 7 11pts total 100pts

Contents Circuits... 1

Sequential Elements con t Synchronous Digital Systems

MODU LE DAY. Class-A, B, AB and C amplifiers - basic concepts, power, efficiency Basic concepts of Feedback and Oscillation. Day 1

THE EVENT ARGUMENT and ARGUMENT INTRODUCERS: little v, and the Applicative Head. λe <s,t> v Appl

Slide Set 9. for ENCM 501 in Winter Steve Norman, PhD, PEng

Registers. Unit 12 Registers and Counters. Registers (D Flip-Flop based) Register Transfers (example not out of text) Accumulator Registers

Experimental. E-Gun. E-Gun Modulator Arrangement AI VI MONITORS TRIODE ELECTRON BEA~ CATHODE TRIGGER

CHAPTER 4 RESULTS & DISCUSSION

Collections of flip-flops with similar controls and logic

Register Transfer Level (RTL) Design Cont.

Introduction to Digital Logic Missouri S&T University CPE 2210 Exam 3 Logistics

DESIGN O'F A HIGH SPEED DDA

Registers & Counters. Logic and Digital System Design - CS 303 Erkay Savaş Sabanci University

Experiment: FPGA Design with Verilog (Part 4)

1. Basic safety information. 2. Proper use. 3. Installation and connection. Connecting the cable. Disposal. Time switch installation

LB3-PCx50 Premium Cabinet Loudspeakers

CPE300: Digital System Architecture and Design

Easy Estimation of Spectral Purity of Test Signals for ADC Testing. David Slepička

Cast Away on the Letter A

Midterm Exam 15 points total. March 28, 2011

`COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

BCN1043. By Dr. Mritha Ramalingam. Faculty of Computer Systems & Software Engineering

Music Theory Level 2. Name. Period

Logic Design Viva Question Bank Compiled By Channveer Patil

Read-only memory (ROM) Digital logic: ALUs Sequential logic circuits. Don't cares. Bus

Review C program: foo.c Compiler Assembly program: foo.s Assembler Object(mach lang module): foo.o. Lecture #14

CS61C : Machine Structures

E-Vision Laser 7500 Series E-Vision Laser 8500 Series E-Vision Laser 10K Series High Brightness Digital Video Projector

ECE 172 Digital Systems. Chapter 2.2 Review: Ring Counter, Johnson Counter. Herbert G. Mayer, PSU Status 7/14/2018

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY SCHOOL OF ELECTRONICS AND ELECTRICAL ENGINEERING DEPARTMENT OF ECE COURSE PLAN

Find the equivalent decimal value for the given value Other number system to decimal ( Sample)

CS/ECE 250: Computer Architecture. Basics of Logic Design: ALU, Storage, Tristate. Benjamin Lee

TYPICAL QUESTIONS & ANSWERS

Vadim V. Romanuke * (Professor, Polish Naval Academy, Gdynia, Poland)

Chapter Contents. Appendix A: Digital Logic. Some Definitions

Go BEARS~ What are Machine Structures? Lecture #15 Intro to Synchronous Digital Systems, State Elements I C

DESIGN OF LOW POWER AND HIGH SPEED BEC 2248 EFFICIENT NOVEL CARRY SELECT ADDER

Electrical and Telecommunications Engineering Technology_TCET3122/TC520. NEW YORK CITY COLLEGE OF TECHNOLOGY The City University of New York

Speech Recognition Combining MFCCs and Image Features

Switching Circuits & Logic Design

Modeling Digital Systems with Verilog

EN2911X: Reconfigurable Computing Topic 01: Programmable Logic. Prof. Sherief Reda School of Engineering, Brown University Fall 2014

Logic Design II (17.342) Spring Lecture Outline

OWNER S MANUAL OUTPUT 1 THRESHOLD HIP. METER MIN +3dB MAX OUTPUT RECOVERY GR ATTACK. -3dB INPUT LEVEL HP SC

EL302 DIGITAL INTEGRATED CIRCUITS LAB #3 CMOS EDGE TRIGGERED D FLIP-FLOP. Due İLKER KALYONCU, 10043

CS3350B Computer Architecture Winter 2015

CS61C : Machine Structures

770pp. THEORIA 64 (2009)

CS 61C: Great Ideas in Computer Architecture

THE EVENT ARGUMENT and ARGUMENT INTRODUCERS: little v, and the Applicative Head. λe <s,t> v Appl

Serial FIR Filter. A Brief Study in DSP. ECE448 Spring 2011 Tuesday Section 15 points 3/8/2011 GEORGE MASON UNIVERSITY.

Transcription:

Review: What is it? What does it do? Reg Src Instrction Instrction [3-] I [25-2] I [2-6] I [5 - ] 2 Src Op Reslt em em emtoreg I [5 - ] etend slti $, $5, 6 Reg Src Instrction Instrction [3-] I [25-2] I [2-6] I [5 - ] 2 Src Reslt Op em em emtoreg I [5 - ] etend 2

Control The control nit is responsible for setting all the control signals so that each instrction is eected properly The control nit s inpt is the 32-bit instrction word The otpts are vales for the ble control signals in the path ost of the signals can be generated from the instrction opcode alone, and not the entire 32-bit word To illstrate the relevant control signals, we will show the rote that is taken throgh the path by R- type, lw, sw and beq instrctions 3 R-type instrction path R-type instrctions inclde add, sb, and, or, and slt Op is determined by the instrction s fnc field Reg Src Instrction Instrction [3-] I [25-2] I [2-6] I [5 - ] 2 Src Reslt Op em em emtoreg I [5 - ] etend 2

lw instrction path An eample load instrction is lw $t, ($sp) Op mst be (add) to compte the effective Reg Src Instrction Instrction [3-] I [25-2] I [2-6] I [5 - ] 2 Src Op Reslt em em emtoreg I [5 - ] etend 5 sw instrction path An eample store instrction is sw $a, 6($sp) Op mst be (add) again to compte the effective Reg Src Instrction Instrction [3-] I [25-2] I [2-6] I [5 - ] 2 Src Reslt Op em em emtoreg I [5 - ] etend 6 3

beq instrction path A sample branch instrction is beq $at, $, offset. The Op is (sbtract) to test for eqality Reg Src The branch may or may not be taken, depending on the s otpt Instrction Instrction [3-] I [25-2] I [2-6] I [5 - ] 2 Src Op Reslt em em emtoreg I [5 - ] etend 7 Control signal table OperationRegSrcOp em ememtoreg add sb and or slt lw sw X X beq X X sw and beq are the only instrctions that don t write any s lw and sw are the only instrctions that se the constant field. They also depend on the to compte the effective Op for R-type instrctions depends on the instrctions fnc field The Src control signal (not listed) shold be set if the instrction is beq and the s otpt is tre 8

Generating control signals The control nit needs 3 bits of inpts Si bits make p the instrction s opcode Si bits come from the instrction s fnc field It also needs the otpt of the The control nit generates bits of otpt, corresponding to the signals mentioned earlier Yo can bild the actal circit by sing big K-maps, big Boolean algebra, or big circit design programs The tetbook presents a slightly different control nit Instrction Instrction [3-] I [3-26] I [5 - ] Control Reg Src Op em em emtoreg Src 9 Logic Array 5

A Closer Look At the Operation Consider the instrction add $t, $t, $t2 opcode rs rt rd shamt fnc Assme $t and $t2 initially contain and 2 respectively. Eecting this instrction involves several steps.. The instrction word is read from the instrction, and the program conter is incremented by 2. The sorces $t and $t2 are read from the file 3. The vales and 2 are added by the. The reslt (3) is stored back into $t in the file The add moving throgh the path + Instrction [3-] Instrction I [25-2] I [2-6] I [5 - ] Reg 2...... Src Reslt Op Src em em emtoreg I [5 - ] etend... 2 6

State Elements In an instrction like add $t, $t, $t2, how do we know $t is not pdated ntil after its original vale is read? Reg em 2 em 3 The path and the clock STEP : A new instrction is loaded from. The control nit sets the path signals appropriately so that s are read, otpt is generated, is read and branch target es are compted STEP 2: The file is pdated for arithmetic or lw instrctions is written for a sw instrction The is pdated to point to the net instrction In a single-cycle path everything in Step mst complete within one clock cycle. 7

The lw moves throgh the path 5 The beq moves throgh the path 6 8

Net Steps Designing a compter is only the first step Net, we mst consider how fast it rns, And how to make it rn faster We have a single cycle design that assmes all operations complete within one clock cycle 7 The slowest instrction... If all instrctions mst complete within clock cycle, then the cycle time >= slowest instrction For eample, lw $t, ($sp) needs 8ns, assming the Instrction delays shown here Instrction [3-] I [25-2] I [2-6] I [5 - ] ns I [5 - ] ns reading the instrction reading the base $sp compting $sp- reading the storing back to $t 2 etend ns ns Reslt 2ns ns 2ns 2ns ns ns 8 8ns 9

...determines the clock cycle time If we make the cycle time 8ns every instrction will take 8ns, even if they don t need that mch time For eample, the instrction add $s, $t, $t2 really needs jst 6ns reading the instrction reading s $t and $t2 compting $t + $t2 storing the reslt into $s 2ns ns 2ns ns 6ns Instrction [3-] Instrction I [25-2] I [2-6] I [5 - ] ns I [5 - ] ns 2 etend ns ns Reslt ns 9 Smmary A path contains all the fnctional nits and connections necessary to implement an instrction set architectre For or single-cycle implementation, we se two separate memories, an, some etra adders, and lots of mltipleers IPS is a 32-bit machine, so most of the bses are 32-bits wide The control nit tells the path what to do, based on the instrction that s crrently being eected Or processor has ten control signals that reglate the path The control signals can be generated by a combinational circit with the instrction s 32-bit binary encoding as inpt Net, we ll see the performance limitations of this single-cycle machine and try to improve pon it 2