InClassActivity02-sol - Activity #02 (due beginning of next...

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

View Full Document Right Arrow Icon
ECSE-2660 Computer Architecture, Networks, & Operating Systems, Spring 2003 Page 1 of 3 Activity #02 (due beginning of next class) Last Name First Name Student ID Number 2.1 2.2 Total Grader Initials 50 points 50 points 100 points Activity 2.1 (First hour) A. (50 points) Consider a simple CPU with just the instructions listed below Instruction Mnemonic Operation Number of Cycles Number of Bytes LDAA Load Accumulator from Memory 5 3 STAA Store Accumulator to Memory 5 3 ADDA Add Memory to Accumulator 5 3 BEQ Branch on Equal to 0 12 2 CMPA Compare accumulator to Memory 7 3 NEGA Negate Accumulator 2 2 BRA Branch always 8 1 MUL Multiply Accumulator 3 2 SUBA Subtract Memory from Accumulator 5 3 ANDA AND Accumulator with Memory 5 3 HALT Halt 1 1 NOP No Operation 2 2 a. (5 points) What is the average number of cycles per instruction (CPI) for this CPU, assuming that all instructions are executed equally often? CPI = __________ Answer: n instructio cycles ns instructio cycles / 5 12 60 = Grading: 5pts for correct answer, 2pts for partial, 0 for not trying. b. (5 points) If the CPU cycle time is 40ns, what is the average number of instructions executed per second, assuming that all instructions are executed equally often? MIPS = __________ Answer: Execution of a single instruction is 5*40 = 200ns = 200*10 -9 sec/instruction. Reciprocal of this is 0.005*10 9 instructions/sec = 5 million instructions per second = 5 MIPS. Grading: 5pts for correct answer, 2pts for partial, 0 for not trying. c. (5 points) Given that cycle time is 40ns and no parallelism is possible in the architecture, what would the highest "peak MIPS" that a computer salesman could (misleadingly) claim? Peak MIPS = _________ Answer: Since no parallelism is possible, salesman can at most claim 1 instruction is executed per cycle. That means an instruction takes 40*10 -9 sec/instruction, which means 0.025*10 9 instructions could be executed per second. So, the peak is 25 MIPS. Grading: 5pts for correct answer, 2pts for partial, 0 for not trying. d.
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/25/2010 for the course ECSE ecse-2340 taught by Professor Wozny during the Spring '09 term at Rensselaer Polytechnic Institute.

Page1 / 3

InClassActivity02-sol - Activity #02 (due beginning of next...

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

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