NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

CENG331 HOMEWORK-2
1-
Single precision :
1 10000100 00101010000000000000000
Double precision :
1 1000000010 0010101000000000000000000000000000000000000000000000

2- Peak performances of P1 is only class F and peak performance of P2 is only C class because they executes fastest set of instructions.

Peak of P1= (1* 10^9 cycles /1 second) * (1 instructions/1 cycle) = 1*10^9 instruction/second
Peak of P2=(3*10^9 cycles / 1 second) * (1 instructions/ 3 cycle) = 1*10^9 instruction/second

3- Let’s look at execution time for each computer

Computer A has totally 760 seconds.
Computer B has totally 890 seconds.
Computer C has totally 550 seconds.
Computer D has totally 480 seconds.

Therefore fastest computer is Computer D.

Computer D is,
760 /480 = 1.58 times as fast as A
890 /480 = 1.85 times as fast as B
550 /480 = 1.14 times as fast as C

4-
a- Time = 10^9 instruction * 1 * 10^(-12) seconds = 1000 microseconds
b- It is 20 times faster than non-pipelined processor. Moreover, one instruction indicates every 5 picoseconds.
c- The answer is both because instructions will take more than than 1 picoseconds to reach the end of the pipeline. Moreover it also be more than 5 picoseconds between following one after another instructions completing.





5- a- The second instruction is dependent upon the first ($3) . The third instruction is dependent upon the second ($4). The fifth instruction is dependent upon the fourth ($6). The sixth instruction is dependent upon the fifth ($7). The seventh instruction is dependent upon the sixth ($6).

b- Dependencies between the first instruction ($3) and second instruction, dependencies between the fourth instruction ($6) and fifth instruction, dependencies between the fifth instruction ($7) and sixth instruction can be resolved via forwarding.

c-Dependencies between the second instruction ($4) and third instruction, dependencies between the sixth instruction ($6) and seventh instruction cannot be resolved via forwarding, so it will cause a stall.
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.