cosc3330-hw2 - COSC 3330 - Computer Architecture College of...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

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

Unformatted text preview: COSC 3330 - Computer Architecture College of Natural Sciences and Mathematics Spring 2011 Home Work 2 Due: March 3, 2011 Student ID (last four digits): ________________________ Name: ________________ 1. _____________ (15 pts) 2. _____________ (20 pts) 3. _____________ (15 pts) 4. _____________ (30 pts) Total (50 + 30 pts) ____________ Elaborate answers as much as possible to get partial credits in case your answers are not correct. 1 (15 points). You designed a new CPU (not pipelined) that has only 5 instructions. You found that the CPU provides the following performance characteristic in Table 1. The CPU is able to run at 200MHz . Table 1. CPIs of Instructions add/sub Lw/sw Beq CPI 1 4 3 1.1. How many clock cycles does CPU need to run the following assembly code? (5 points) Figure 1. MIPs Code 1.2. How much time does CPU need to run the code? (5 points) 1.3. What is the average CPI to run the code on the CPU? (5 points) lw $t3,-64($sp) lw $t1,-64($sp) sub $t6,$t3,$t1 beq $t6,$zero,ELSE add $t2,$s0,$s1 addi $t2,$t2,4 ELSE: sub $t3,$t3,4 add $t2,$t3,$t1 sw $t2,-32($sp) sw $t3,-34($sp) 2. (20 points) Pipeline : 2.1. Explain in detail what the advantage of pipelining is? (5 points) 2.2. A single-cycle CPU (executing everything for an instruction in one clock cycle) is running at...
View Full Document

This note was uploaded on 03/18/2011 for the course COSC 3330 taught by Professor Notknown during the Spring '11 term at University of Houston.

Page1 / 6

cosc3330-hw2 - COSC 3330 - Computer Architecture College of...

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

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