Prelim 2 Solutions

Prelim 2 Solutions - High spatial locality larger blocks...

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

View Full Document Right Arrow Icon
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
Background image of page 1

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

View Full DocumentRight Arrow Icon
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) (3pts total, 2pts for correct answer, 1pt for explanation)
Background image of page 2
Background 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

This note was uploaded on 02/19/2008 for the course ECE 3140 taught by Professor Mckee/long during the Fall '07 term at Cornell.

Page1 / 3

Prelim 2 Solutions - High spatial locality larger blocks...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online