Prelim 2 Solutions - ECE/CS 314 FA03 Prelim 2 Solutions 1a...

Info icon This preview shows pages 1–3. Sign up to view the full content.

ECE/CS 314 FA03 Prelim 2 Solutions 1a) 1024: (3pts total, 1pt per field) 0 10001001 0000000 7: (3pts total, 1pt per field) 0 10000001 1100000 1024+7: (4pts total, 2pts for correct addition, 2 pts for correct rounding) After Renormalization both exponents are 10001001 G R S 1.0000000 0 0 0 +0.0000000 1 1 1 =============== 1.0000000 1 1 1 After Rounding: 1.0000001 (x2 10 ) So final answer in 16-bit FP is 0 10001001 0000001 b) 1/3: (3pts total, 1pt per field) 0 01111101 0101010 2/3: (3pts total, 1pt per field) 0 01111110 0101010 1/3+2/3: (4pts total, 2pts for correct addition, 2 pts for correct rounding) After Renormalization both exponents are 01111110 G R S 1.0101010 0 0 0 +0.1010101 0 0 0 =============== 1.1111111 0 1 0 After Rounding: 1.1111111 (x2 -1 ) So final answer in 16-bit FP is 0 01111110 1111111
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

a[0] a[1] a[2] a[3] b[0] b[0] b[1] 0 0 0 1 1 1 out 3a) (4pts) Conflict misses. A victim cache can be advantageous because it extends the amount of temporal locality the cache system can exploit. b)
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: High spatial locality: larger blocks, because more local memory words are brought in. (3pts total, 2pts for correct answer, 1pt for explanation) High temporal locality: smaller blocks, because there will be more addressable blocks in the cache. c) (10pts total, 3pts loads, 3pts stores, 2pts branches, 2pts the rest) New CPI: 0.5*1+0.2*(0.05*30+0.95*1)+0.1*(0.05*60+0.95*30)+0.2*2 = or 0.5*1+0.2*(0.05*31+0.95*1)+0.1*(0.05*60+0.95*30)+0.2*2 = 4a) (5pts) The bypass paths from MEM to EX can be eliminated. b) (8pts total, 2pts each, -1pt for every answer not listed) 0x104 - $2 0x108 - $3 0x110 - $1 0x114 - $1 c) (7pts total, -5pts if semantics violated, -1pt per NOP) 0x100 0x10c 0x104 0x110 0x108 0x118 0x114 2) 5) (2pts each) PC2: 0x10c PC3: 0x108 PC4: 0x104 (2pts each) IR2: add IR3: add IR4: lw (1pt each) WE: 0x1 ALU_Asel: 0x1 RW: 0x1 ALU_Bsel: 0x1 Asel: 0x0 WBsel: 0x1 Bsel: 0x2 WriteEnable: 0x1...
View Full Document

  • Spring '07
  • MCKEE/LONG
  • CPU cache, Locality of reference, correct rounding, 16-bit FP, correct addition

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern