Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Performance Analysis You are in charge of selecting processors for a new embedded chore-reminder system you and your roommates are building. You are considering

image text in transcribedimage text in transcribed

1. Performance Analysis You are in charge of selecting processors for a new embedded chore-reminder system you and your roommates are building. You are considering two processors, A and B (the only ones you and your roommates can afford) that have the following CPls: Cycles per Instruction Instruction Type Arithmetic, Logical, Shifts, Stores Jumps Conditional Branch Loads Processor A Processor B 4 1 The following applications are the primary ones that you will need to run on your system # Application 1: # This is an implementation of a thresholding algorithm . # $5 contains size S4 contains &in (in is word-sized array) $2 contains blez $5,exit sll $5, $5,2 addu $5, $4,$5 addu $2,$0,$0 loop: addiu S4,$4,4 lw $3,0 (S4) slt $3,$6,$3 addu $2,$2,$3 bne S4,$5,loop exit: # Application 2: # This is an implementation f tiny encryption alg rithm (teas). # The value inputs are in $6 and $10-S14 as half w rds. addiu $7,$0,0x0a00 addiu $9,$0,0x5a00 loop andi $8,$6,0xffff s11 addu $2, $8,$7 sra addu $5, $13, $5 xor addu $3, $12,$3 xor $5,$8,4 $3,$6,5 $5, $5,$2 $3,$5, S3 addu$2,S3,S14 andi sll sll sra addu $2,$2,$7 addu $5, $11,$5 sra xor addu $3,$10,$3 xor addiu $7,$7,2560 addu $3, s8, $3 sll andi $7,$7,0xffff sra bne $2,$2,0xffff S14,$2,16 $5,$2,4 S14,S14,16 $3,$14,5 $5, $5, $2 $3,$5,$3 $6,$3,16 $6,$6,16 S7,S9,loop Consider the two applications above. Calculate the average CPl for each application on each processor (two applications cross three processors means you should have 6 different CPI values). Assume size is always 20 for application 1. a. b. Which processor has better performance? [Careful answering this part...it is a tricksy professor question.] Provide the quantitative evidence of "better performance" and include a description of how you evaluated the two applications together. What would the relative frequencies have to be between the three processors in order for their performance to be identical (ie,, calculate the "breakeven frequency")? 1. Performance Analysis You are in charge of selecting processors for a new embedded chore-reminder system you and your roommates are building. You are considering two processors, A and B (the only ones you and your roommates can afford) that have the following CPls: Cycles per Instruction Instruction Type Arithmetic, Logical, Shifts, Stores Jumps Conditional Branch Loads Processor A Processor B 4 1 The following applications are the primary ones that you will need to run on your system # Application 1: # This is an implementation of a thresholding algorithm . # $5 contains size S4 contains &in (in is word-sized array) $2 contains blez $5,exit sll $5, $5,2 addu $5, $4,$5 addu $2,$0,$0 loop: addiu S4,$4,4 lw $3,0 (S4) slt $3,$6,$3 addu $2,$2,$3 bne S4,$5,loop exit: # Application 2: # This is an implementation f tiny encryption alg rithm (teas). # The value inputs are in $6 and $10-S14 as half w rds. addiu $7,$0,0x0a00 addiu $9,$0,0x5a00 loop andi $8,$6,0xffff s11 addu $2, $8,$7 sra addu $5, $13, $5 xor addu $3, $12,$3 xor $5,$8,4 $3,$6,5 $5, $5,$2 $3,$5, S3 addu$2,S3,S14 andi sll sll sra addu $2,$2,$7 addu $5, $11,$5 sra xor addu $3,$10,$3 xor addiu $7,$7,2560 addu $3, s8, $3 sll andi $7,$7,0xffff sra bne $2,$2,0xffff S14,$2,16 $5,$2,4 S14,S14,16 $3,$14,5 $5, $5, $2 $3,$5,$3 $6,$3,16 $6,$6,16 S7,S9,loop Consider the two applications above. Calculate the average CPl for each application on each processor (two applications cross three processors means you should have 6 different CPI values). Assume size is always 20 for application 1. a. b. Which processor has better performance? [Careful answering this part...it is a tricksy professor question.] Provide the quantitative evidence of "better performance" and include a description of how you evaluated the two applications together. What would the relative frequencies have to be between the three processors in order for their performance to be identical (ie,, calculate the "breakeven frequency")

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions