In Review: A Single Cycle Datapath We have everything! Now we just need to know how to BUILD CONTROL

Similar documents
Instruction Execution

Agenda. Single Cycle Performance Assume >me for ac>ons are 100ps for register read or write; 200ps for other events. Review: Single- cycle Processor

Revision MIPS Pipelined Architecture

Structural Hazard #1: Single Memory (1/2)! Structural Hazard #1: Single Memory (2/2)! Review! Pipelining is a BIG idea! Optimal Pipeline! !

T h e C S E T I P r o j e c t

P a g e 5 1 of R e p o r t P B 4 / 0 9

CS61C Introduction to Pipelining. Lecture 25. April 28, 1999 Dave Patterson (http.cs.berkeley.edu/~patterson)

ELEC 351 Notes Set #18

PLAYGROUND SALE Take up to 40% off. Plus FREE equipment * with select purchase DETAILS INSIDE

P a g e 3 6 of R e p o r t P B 4 / 0 9

Who is this Great Team? Nickname. Strangest Gift/Friend. Hometown. Best Teacher. Hobby. Travel Destination. 8 G People, Places & Possibilities

1 Finite Automata and Regular Expressions

Last time: introduced our first computational model the DFA.

sin sin 1 d r d Ae r 2

a b c cat CAT A B C Aa Bb Cc cat cat Lesson 1 (Part 1) Verbal lesson: Capital Letters Make The Same Sound Lesson 1 (Part 1) continued...

A L A BA M A L A W R E V IE W

CSE 373: More on graphs; DFS and BFS. Michael Lee Wednesday, Feb 14, 2018

EECE 301 Signals & Systems Prof. Mark Fowler

STRIPLINES. A stripline is a planar type transmission line which is well suited for microwave integrated circuitry and photolithographic fabrication.

Exam 2 Solutions. Jonathan Turner 4/2/2012. CS 542 Advanced Data Structures and Algorithms

CSE 373: AVL trees. Warmup: Warmup. Interlude: Exploring the balance invariant. AVL Trees: Invariants. AVL tree invariants review

Satellite Orbits. Orbital Mechanics. Circular Satellite Orbits

Part II, Measures Other Than Conversion I. Apr/ Spring 1

OH BOY! Story. N a r r a t iv e a n d o bj e c t s th ea t e r Fo r a l l a g e s, fr o m th e a ge of 9

The Z transform techniques

P&H 4.51 Pipelined Control. 3. Control Hazards. Hazards. Stall => 2 Bubbles/Clocks Time (clock cycles) Control Hazard: Branching 4/15/14

Trade Patterns, Production networks, and Trade and employment in the Asia-US region

Section 3: Antiderivatives of Formulas

NEWBERRY FOREST MGT UNIT Stand Level Information Compartment: 10 Entry Year: 2001

Period vs. Length of a Pendulum

Case Study VI Answers PHA 5127 Fall 2006

1. This question is about homeopathic solutions

Path (space curve) Osculating plane

Lecture 2: Frequency domain analysis, Phasors. Announcements

ECE4680 Computer Organization and Architecture. Hazards in a Pipeline Processor. Pipeline is good but you need be careful.

Jonathan Turner Exam 2-10/28/03

ECE 361 Computer Architecture Lecture 13: Designing a Pipeline Processor

Stanford University Medical Center

The Reign of Grace and Life. Romans 5:12-21 (5:12-14, 17 focus)

Walk Like a Mathematician Learning Task:

L...,,...lllM" l)-""" Si_...,...

1 Introduction to Modulo 7 Arithmetic

Solutions to Supplementary Problems

fur \ \,,^N/ D7,,)d.s) 7. The champion and Runner up of the previous year shall be allowed to play directly in final Zone.

Handout 7. Properties of Bloch States and Electron Statistics in Energy Bands

Chapter 2 Reciprocal Lattice. An important concept for analyzing periodic structures

333 Ravenswood Avenue

Partial Fraction Expansion

Unit 6: Playing with Word Patterns in Musical Theater Songs

EECE 260 Electrical Circuits Prof. Mark Fowler

CS 103 BFS Alorithm. Mark Redekopp

D. Bertsekas and R. Gallager, "Data networks." Q: What are the labels for the x-axis and y-axis of Fig. 4.2?

Classical Theory of Fourier Series : Demystified and Generalised VIVEK V. RANE. The Institute of Science, 15, Madam Cama Road, Mumbai

COMPSCI 230 Discrete Math Trees March 21, / 22

UNIT # 07 (PART - II)

CBSE , ˆj. cos CBSE_2015_SET-1. SECTION A 1. Given that a 2iˆ ˆj. We need to find. 3. Consider the vector equation of the plane.

THIS PAGE DECLASSIFIED IAW E

3.1 General solutions for TEM, TE and TM waves Procedure to analyze a TEM (Ez, Hz=0) line

Executive Committee and Officers ( )

Great Idea #4: Parallelism. CS 61C: Great Ideas in Computer Architecture. Pipelining Hazards. Agenda. Review of Last Lecture

CHAPTER 5 CIRCULAR MOTION

Chapter 14: Optical Parametric Oscillators

Data Structures. Element Uniqueness Problem. Hash Tables. Example. Hash Tables. Dana Shapira. 19 x 1. ) h(x 4. ) h(x 2. ) h(x 3. h(x 1. x 4. x 2.

Contents FREE!

RF circuits design Grzegorz Beziuk. Introduction. Basic definitions and parameters. References

Math 61 : Discrete Structures Final Exam Instructor: Ciprian Manolescu. You have 180 minutes.

Minimum Spanning Trees

BASE MAP ZONING APPLICATION ENGLER TRACT KELLER, TEXAS

Helping every little saver

C-Curves. An alternative to the use of hyperbolic decline curves S E R A F I M. Prepared by: Serafim Ltd. P. +44 (0)

Daily Skill Practice

Physics 111. Lecture 38 (Walker: ) Phase Change Latent Heat. May 6, The Three Basic Phases of Matter. Solid Liquid Gas

Functions of Two Random Variables

Solutions Problem Set 2. Problem (a) Let M denote the DFA constructed by swapping the accept and non-accepting state in M.

ECE COMBINATIONAL BUILDING BLOCKS - INVEST 13 DECODERS AND ENCODERS

SHINGLETON FOREST AREA Stand Level Information Compartment: 44 Entry Year: 2009

Electric Potential. and Equipotentials

Winnie flies again. Winnie s Song. hat. A big tall hat Ten long toes A black magic wand A long red nose. nose. She s Winnie Winnie the Witch.

Load Instr 1. Instr 2 Instr 3. Instr 4. Outline & Announcements. EEL-4713C Computer Architecture Pipelined Processor - Hazards

Beechwood Music Department Staff

Weighted Graphs. Weighted graphs may be either directed or undirected.


What Makes Production System Design Hard?

H STO RY OF TH E SA NT

Cycles and Simple Cycles. Paths and Simple Paths. Trees. Problem: There is No Completely Standard Terminology!

Class Summary. be functions and f( D) , we define the composition of f with g, denoted g f by

Section 35 SHM and Circular Motion

What else can you do?

How to Use. The Bears Beat the Sharks!

176 5 t h Fl oo r. 337 P o ly me r Ma te ri al s

NUCON NRNON CONRNC ON CURRN RN N CHNOOGY, 011 oo uul o w ul x ol volv y y oll. y ov,., - o lo ll vy ul o Mo l u v ul (G) v Gl vlu oll. u 3- [11]. 000

Math 2142 Homework 2 Solutions. Problem 1. Prove the following formulas for Laplace transforms for s > 0. a s 2 + a 2 L{cos at} = e st.

I M P O R T A N T S A F E T Y I N S T R U C T I O N S W h e n u s i n g t h i s e l e c t r o n i c d e v i c e, b a s i c p r e c a u t i o n s s h o

Lesson Ten. What role does energy play in chemical reactions? Grade 8. Science. 90 minutes ENGLISH LANGUAGE ARTS

Reinforcement learning

Signal Circuit and Transistor Small-Signal Model

Ch 1.2: Solutions of Some Differential Equations

SOUTH. Bus Map. From 25 October travelsouthyorkshire.com/sbp

Let s celebrate! UNIT. 1 Write the town places. 3 Read and match. school. c 1 When s your birthday? Listen, check and practise the dialogues.

February 12 th December 2018

Transcription:

S6 L2 PU ign: ontol II n Piplining I () int.c.bly.u/~c6c S6 : Mchin Stuctu Lctu 2 PU ign: ontol II & Piplining I Noh Johnon 2-7-26 In Rviw: Singl ycl tpth W hv vything! Now w jut n to now how to UIL NRL Rgt R RgW R Rt 5 5 5 buw cl imm6 np_l Rt Rw R Rb RgFil 6 cl Extn bu bu int ftch unit zo Intuction<3:> <2:25> R ct Z t In cl <6:2> Rt MmW R <:5> WEn <:5> t Mmoy Imm6 MmtoRg http://xc.com/676/ S6 L2 PU ign: ontol II n Piplining I (2) Extp Sc Summy: Singl-cycl Poco 5 tp to ign poco. nlyz intuction t tpth quimnt 2. Slct t of tpth componnt & tblih cloc mthoology 3. mbl tpth mting th quimnt 4. nlyz implmnttion of ch intuction to tmin tting of contol point tht ffct th git tnf. 5. mbl th contol logic Fomult Logic Eqution ign icuit Poco ontol Mmoy Input Stp 4: Givn tpth: RL ontol Int Mmoy Intuction<3:> <26:3> <:5> p Fun Rt <2:25> R <6:2> np_l RgW Rgt Extp Sc ct MmW MmtoRg R <:5> ontol <:5> Imm6 tpth utput PH S6 L2 PU ign: ontol II n Piplining I (3) S6 L2 PU ign: ontol II n Piplining I (4) Summy of th ontol Signl (/2) int Rgit nf R[] R[] + R[t]; P P + 4 c = Rg, ct =, Rgt =, RgW, np_l = +4 ub R[] R[] R[t]; P P + 4 c = Rg, ct = SU, Rgt =, RgW, np_l = +4 oi R[t] R[] + zo_xt(imm6); P P + 4 c = Im, Extop = Z,ct = R, Rgt = t,rgw, np_l = +4 lw R[t] MEM[ R[] + ign_xt(imm6)]; P P + 4 c = Im, Extop = n, ct =, MmtoRg, Rgt = t, RgW, np_l = +4 w MEM[ R[] + ign_xt(imm6)] R[]; P P + 4 c = Im, Extop = n, ct =, MmW, np_l = +4 bq if ( R[] == R[t] ) thn P P + ign_xt(imm6)] l P P + 4 np_l = b, ct = SU S6 L2 PU ign: ontol II n Piplining I (5) Summy of th ontol Signl (2/2) S func W on t :-) ppnix op ub oi lw w bq Rgt x x x Sc x MmtoRg x x x RgWit MmWit npl? Extp x x x x ct<2:> Subtct Subtct x 3 26 2 6 6 R-typ op t hmt funct, ub I-typ op t immit oi, lw, w, bq J-typ op tgt S6 L2 PU ign: ontol II n Piplining I (6)

S6 L2 PU ign: ontol II n Piplining I (7) ooln Expion fo ontoll ontoll Implmnttion Rgt = + ub Sc = oi + lw + w MmtoRg = lw RgWit = + ub + oi + lw MmWit = w npl = bq = Extp = lw + w ct[] = ub + bq (um ct i, : SU, : R) ct[] = o wh, typ = ~op 5 ~op 4 ~op 3 ~op 2 ~op ~op, oi = ~op 5 ~op 4 op 3 op 2 ~op op lw = op 5 ~op 4 ~op 3 ~op 2 op op w = op 5 ~op 4 op 3 ~op 2 op op bq = ~op 5 ~op 4 ~op 3 op 2 ~op ~op = ~op 5 ~op 4 ~op 3 ~op 2 op ~op How o w implmnt thi in gt? opco func N logic ub oi lw w bq R logic Rgt Sc MmtoRg RgWit MmWit npl Extp ct[] ct[] = typ func 5 ~func 4 ~func 3 ~func 2 ~func ~func ub = typ func 5 ~func 4 ~func 3 ~func 2 func ~func S6 L2 PU ign: ontol II n Piplining I (8) P Intuction np_l R Rt Rgt RgW 5 R Rt 5 5 ct buw Rw R Rb bu -bit Rgit imm6 6 bu Extn ) MmoRg= x & ct= ub. SU o EQ? Extp 2) ct=. Which ignl i iffnt fo ll 3 of:, LW, & SW? Rgt o Extp? Sc S6 L2 PU ign: ontol II n Piplining I (9) Intuction Ftch Unit t In Intuction<3:> <2:25> <6:2> WEn t Mmoy <:5> <:5> Rt R R Imm6 Zo MmW MmtoRg 2 ) SR b) SE c) R ) E Summy: Singl-cycl Poco 5 tp to ign poco. nlyz intuction t tpth quimnt 2. Slct t of tpth componnt & tblih cloc mthoology 3. mbl tpth mting th quimnt 4. nlyz implmnttion of ch intuction to tmin tting of contol point tht ffct th git tnf. 5. mbl th contol logic Fomult Logic Eqution ign icuit S6 L2 PU ign: ontol II n Piplining I () Poco ontol tpth Mmoy Input utput Rviw: Singl cycl tpth 5 tp to ign poco. nlyz intuction t tpth quimnt 2. Slct t of tpth componnt & tblih cloc mthoology 3. mbl tpth mting th quimnt 4. nlyz implmnttion of ch intuction to tmin tting of contol point tht ffct th git tnf. 5. mbl th contol logic Poco ontol i th h pt MIPS m tht i ontol Intuction m iz tpth Souc git lwy in m plc Immit m iz, loction ption lwy on git/immit Mmoy Input utput How W uil h ontoll Rgt = + ub Sc = oi + lw + w ub MmtoRg = lw RgWit = + ub + oi + lw MmWit = w N logic oi lw w R logic bq npl = bq = Extp = lw + w ct[] = ub + bq (um ct i, : SU, : R) ct[] = o wh, typ = ~op 5 ~op 4 ~op 3 ~op 2 ~op ~op, oi = ~op 5 ~op 4 op 3 op 2 ~op op lw = op 5 ~op 4 ~op 3 ~op 2 op op w = op 5 ~op 4 op 3 ~op 2 op op bq = ~op 5 ~op 4 ~op 3 op 2 ~op ~op = ~op 5 ~op 4 ~op 3 ~op 2 op ~op opco func = typ func 5 ~func 4 ~func 3 ~func 2 ~func ~func ub = typ func 5 ~func 4 ~func 3 ~func 2 func ~func Rgt Sc MmtoRg RgWit MmWit npl Extp ct[] ct[] migoh omigoh, o you now wht thi mn? S6 L2 PU ign: ontol II n Piplining I () S6 L2 PU ign: ontol II n Piplining I (2)

S6 L2 PU ign: ontol II n Piplining I (3) Poco Pfomnc Gott o Luny n w timt th cloc t (fquncy) of ou ingl-cycl poco? W now: cycl p intuction lw i th mot mning intuction. um th ly fo mjo pic of th tpth: Int. Mm,, t Mm : 2n ch, gfil n Intuction xcution qui: 2 + + 2 + 2 + = 8n 25 MHz Wht cn w o to impov cloc t? Will thi impov pfomnc wll? W wnt inc in cloc t to ult in pogm xcuting quic. nn, in, thy, v ch hv on lo of cloth to wh, y, fol, n put wy Wh t 3 minut y t 3 minut Fol t 3 minut Sth t 3 minut to put cloth into w S6 L2 PU ign: ontol II n Piplining I (4) Squntil Luny Piplin Luny 6 PM 7 8 9 2 2 M 6 PM 7 8 9 2 2 M 33 3 3 3 3 3 3 33 3 3 33 3 3 im Squntil luny t 8 hou fo 4 lo S6 L2 PU ign: ontol II n Piplining I (5) 33 3 3 3 3 3 Piplin luny t 3.5 hou fo 4 lo! S6 L2 PU ign: ontol II n Piplining I (6) im Gnl finition Piplining Lon (/2) Ltncy: tim to compltly xcut ctin t fo xmpl, tim to cto fom i i i cc tim o i ltncy houghput: mount of wo tht cn b on ov pio of tim 6 PM 7 8 9 im 3 3 3 3 3 3 3 Piplining on t hlp ltncy of ingl t, it hlp thoughput of nti wolo Multipl t opting imultnouly uing iffnt ouc Potntil pup = Numb pip tg im to fill piplin n tim to in it uc pup: 2.3X v. 4X in thi xmpl S6 L2 PU ign: ontol II n Piplining I (7) S6 L2 PU ign: ontol II n Piplining I (8)

S6 L2 PU ign: ontol II n Piplining I (9) Piplining Lon (2/2) Stp in Excuting MIPS 6 PM 7 8 9 im 3 3 3 3 3 3 3 Suppo nw Wh t 2 minut, nw Sth t 2 minut. How much ft i piplin? Piplin t limit by lowt piplin tg Unblnc lngth of pip tg uc pup ) IFtch: Intuction Ftch, Incmnt P 2) c: Intuction co, R Rgit 3) Exc: Mm-f: lcult ith-log: Pfom ption 4) Mm: Lo: R t fom Mmoy Sto: Wit t to Mmoy 5) W: Wit t c to Rgit S6 L2 PU ign: ontol II n Piplining I (2) Piplin Hz: Mtching oc in lt lo minitivi 6 PM 7 8 9 2 2 M E F 33 3 3 3 3 3 bubbl pn on ; tll inc fol ti up S6 L2 PU ign: ontol II n Piplining I (2) im HW8 u tomoow Pojct 2 u nxt Mony Nwgoup poblm Rmin: Mitm g u toy S6 L2 PU ign: ontol II n Piplining I (22) Poblm fo Piplining PU Stuctul Hz #: Singl Mmoy (/2) Limit to piplining: Hz pvnt nxt intuction fom xcuting uing it ignt cloc cycl Stuctul hz: HW cnnot uppot om combintion of intuction (ingl pon to fol n put cloth wy) ontol hz: Piplining of bnch cu lt intuction ftch to wit fo th ult of th bnch t hz: Intuction pn on ult of pio intuction till in th piplin (miing oc) h might ult in piplin tll o bubbl in th piplin. S6 L2 PU ign: ontol II n Piplining I (23) I n Lo t Int. Int 2 Int 3 Int 4 R m mmoy twic in m cloc cycl S6 L2 PU ign: ontol II n Piplining I (24) im (cloc cycl)

S6 L2 PU ign: ontol II n Piplining I (25) Stuctul Hz #: Singl Mmoy (2/2) Solution: infibl n infficint to ct con mmoy (W ll ln bout thi mo nxt w) o imult thi by hving two Lvl ch ( tmpoy mll [of uully mot cntly u] copy of mmoy) hv both n L Intuction ch n n L t ch n mo complx hw to contol whn both cch mi I n t. Stuctul Hz #2: Rgit (/2) w Int Int 2 Int 3 Int 4 n w n wit to git imultnouly? S6 L2 PU ign: ontol II n Piplining I (26) im (cloc cycl) I$ Rg $ Rg Stuctul Hz #2: Rgit (2/2) P Intuction wo iffnt olution hv bn u: ) RgFil cc i VERY ft: t l thn hlf th tim of tg Wit to Rgit uing fit hlf of ch cloc cycl R fom Rgit uing con hlf of ch cloc cycl 2) uil RgFil with inpnnt n wit pot Rult: cn pfom R n Wit uing m cloc cycl ) hn to piplining, I hv uc th tim it too m to wh my on hit. 2) Long piplin lwy win (inc l wo p tg & ft cloc). 2 ) FF b) F c) F ) S6 L2 PU ign: ontol II n Piplining I (27) S6 L2 PU ign: ontol II n Piplining I (28) hing to Rmmb onu li ptiml Piplin Ech tg i xcuting pt of n intuction ch cloc cycl. n intuction finih uing ch cloc cycl. n vg, xcut f mo quicly. Wht m thi wo? Similiti btwn intuction llow u to u m tg fo ll intuction (gnlly). Ech tg t bout th m mount of tim ll oth: littl wt tim. S6 L2 PU ign: ontol II n Piplining I (3) h xt li tht u to b inclu in lctu not, but hv bn mov to thi, th bonu to v upplmnt. h li will pp in th o thy woul hv in th noml pnttion S6 L2 PU ign: ontol II n Piplining I (3)

imm6 S6 L2 PU ign: ontol II n Piplining I (33) imm6 h Singl ycl tpth uing 3 J-typ op 26 25 Nw P = { P[3..28], tgt, } = Intuction<3:> np_l=? Intuction R Rt Ftch Unit Rgt = x RgW = R Rt ct =x Rt R R Imm6 26 5 5 5 MmtoRg = x bu Zo MmW = Rw R Rb buw -bit Rgit bu WEn imm6 6 Extn Extp = x tgt Sc = x t In <2:25> <6:2> t Mmoy <:5> <:5> <:25> Intuction Ftch Unit t th En of 3 J-typ Nw P = { P[3..28], tgt, } np_l Zo 4 op 26 25 Int Mmoy np_mux_l P S6 L2 PU ign: ontol II n Piplining I (34) tgt Intuction<3:> How o w moify thi to ccount fo? Intuction Ftch Unit t th En of 3 J-typ Nw P = { P[3..28], tgt, } np_l Zo 4 op 26 25 np_mux_l 26 4 (MS) tgt Int Mmoy P Intuction<3:> Quy n Zo till gt t? o np_l n to b? If not, wht? S6 L2 PU ign: ontol II n Piplining I (35)