{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Activity02 Soln

# Activity02 Soln - Activity#02(SOLUTIONS Last Name First...

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

ECSE-2660 Computer Architecture, Networks, & Operating Systems, Spring 2001 Page 1 of 6 Activity #02 (SOLUTIONS) Last Name First Name Student ID Number 1.1 1.2 Total Grader Initials 50 points 50 points 100 points Activity 1.1 (First hour) A. (35 points) Consider a simple CPU with just the instructions listed below Instructio n Mnemoni c Operation Number of Cycles Number of Bytes LDAA Load Accumulator from Memory 4 3 STAA Store Accumulator to Memory 4 3 ADDA Add Memory to Accumulator 4 3 BEQ Branch on Equal to 0 3 2 CMPA Compare accumulator to Memory 4 3 NEGA Negate Accumulator 2 1 BRA Branch always 3 2 MUL Multiply Accumulator 10 1 SUBA Subtract Memory from Accumulator 4 3 ANDA AND Accumulator with Memory 4 3 ORAA OR accumulator A with Memory 4 3 HALT Halt 1 1 NOP No Operation 1 1 a. (5 points) What is the average number of cycles per instruction (CPI) for this CPU, assuming that all instructions are executed equally often? Answer: n instructio cycles ns instructio cycles / 69 . 3 13 48 = Grading Policy: 5 pts correct answer, 2 pts partially correct answer, 0 pts for not trying.

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

View Full Document
ECSE-2660 Computer Architecture, Networks, & Operating Systems, Spring 2001 Page 2 of 6 b. (5 points) If the CPU cycle time is 20ns, what is the average number of instructions executed per second, assuming that all instructions are executed equally often? Answer: Remember that 1ns = 10 -9 sec. It takes 3.69 × 20 × 10 -9 secs per instruction By taking the reciprocal, this translates to 13.55 × 10 6 instructions/sec, which is 13.55 MIPS . Grading Policy: 5 pts correct answer, 2 pts partially correct answer, 0 pts for not trying. c. (5 points) What would the highest "peak MIPS" that could be (misleadingly) claimed, and what operation would it use? Answer: The most favorable assumption is that the machine executes only 1-cycle instructions such as NOPs all the time. This implies that it takes 20ns per instruction, which translates to 50 MIPS . Grading Policy: 5 pts correct answer, 2 pts partially correct answer, 0 pts for not trying.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 6

Activity02 Soln - Activity#02(SOLUTIONS Last Name First...

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

View Full Document
Ask a homework question - tutors are online