234267
This presentation is the property of its rightful owner.
Sponsored Links
1 / 29

מבנה מחשבים ספרתיים 234267 PowerPoint PPT Presentation


  • 106 Views
  • Uploaded on
  • Presentation posted in: General

מבנה מחשבים ספרתיים 234267. תרגול מס' 2 : פרמטרים של הערכת ביצועים חוק אמדל. ארכיטקטורה מול מיקרו ארכיטקטורה. שני דברים שמשלימים זה את זה.

Download Presentation

מבנה מחשבים ספרתיים 234267

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


234267

234267

' 2:

234267 - November 2005


234267

  • .

  • ( ) . ( , , ). .

  • - .

234267 - November 2005


234267

CPU

CPU . ( ). - ALU - CPU .

(Clock Rate): . ( = ).

(Clock Cycle): . (1nanosec = 10-9sec).

234267 - November 2005


234267

Instruction Count .

(CPI = Cycles Per Instruction): . .

i (CPIi = Cycles Per Instruction i): i.

CPU (execution time): . . "

234267 - November 2005


234267

CPI (benchmark)

Ii i .

IC .

: CPI ?

234267 - November 2005


234267

""

MIPS = Millions of Instructions Per Second

: MIPS . , , , - MIPS , .

234267 - November 2005


234267

MFLOPS Millions of Floating Point Operations Per Second

floating point ( float double) ( C) .

1: MFLOPS . .

2: (: FP ). MFLOPS .

234267 - November 2005


234267

: : MFLOPS - FP " . , , .

:

Add, sub cmp, mult1

Div, sqrt4

Exp, sin8

234267 - November 2005


234267

: - benchmark. .

  • ( , , )

  • ( ?).

  • , " .

    , : , .

    , .

    " .

234267 - November 2005


234267

'

, load\store.

:

- ALU LOAD ALU .

: ALU ( LOAD ALU ). CPI=2 CPI BRANCH - 3.

234267 - November 2005


234267

:

CPI(old) = 0.43*1 + 0.21*2 + 0.12*2 + 0.24*2 = 1.57

CPU_Time(old) = IC(old) * CPI(old) * CC(old) = 1.57 * IC(old) * CC(old)

:

234267 - November 2005


234267

, , :

100 , " , :

43 ALU 75% ALU, 100*0.43*0.75=32.25 .

25% ALU MEM-ALU (0.25*0.43*100=10.75). MEM-ALU LOAD, 21-10.75=10.25 LOAD.

234267 - November 2005


234267

! :

IC = 32.25 + 10.25 + 12 + 24 + 10.75 = 89.25.

:

Cycles_new = 32.25*1 + 10.25*2 + 12*2 + 24 * 3 + 10.75*2 = 170.3

Cycles_old = 43*1 + 21*2 + 12*2 + 24+2 = 157

. CPUtime, - CC.

234267 - November 2005


234267

'

100MHz, (benchmark) ( ) :

, MFP FP . , NMFP , () FP INT " 2 .

234267 - November 2005


234267

. - MIPS .:

CPIMFP = (0.10 * 6) + (0.15 * 4) +(0.05 * 20) +(0.70 * 2) = 3.6

CPINMFP = 2

: - NMFP INT 2 .

MIPS NMFP MFP !

234267 - November 2005


234267

. MFP - 300*106 . Integer NMFP ?

. ?

!

234267 - November 2005


234267

. MFLOPS ?

: - FP , FP . '.

MFLOPS MFP NMFP , MFP FP MIPS.

234267 - November 2005


234267

  • P ExTimeold .

  • Fraction Speedup .

  • ?

234267 - November 2005


234267

  • :

234267 - November 2005


234267

  • :

    • (floating point) 2.5 .

    • 3 .

    • / 1.5 .

  • :

    • 15% .

    • 20%.

    • / 40%.

  • ?

234267 - November 2005


234267

234267 - November 2005


234267

CPI

234267 - November 2005


234267

  • CISC-, RISC .

  • 2 (") . :

    • 20% 70% ". -80%.

    • 10% ( -20% ).

    • -CPI?

234267 - November 2005


234267

  • -50%.

  • 2.

  • , , ?

234267 - November 2005


234267

. 20 FP. A B. " ?

  • A MIPS B

  • A MFLOPS B

  • - CPI A - CPI B

  • - CPI A - CPI B

  • A B

  • B A

  • .

234267 - November 2005


234267

-

' ?

  • A MIPS B

  • A MFLOPS B

  • - CPI A - CPI B

  • - CPI A - CPI B

  • A B

  • B A

  • .

234267 - November 2005


Backups

backups

234267 - November 2005


234267

1

1 nSec = 10-9 Sec

1 MHZ = 106 HZ

CR[hz] = 1 / CC[sec]

CPI = Cycles / IC

CPU time = CC * Cycles = CC * CPI * IC

234267 - November 2005


234267

234267 - November 2005


  • Login