Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Computer Architecture Homework: Comparing Machine Performance, Assignments of Computer Science

The instructions for homework #1 of cs 1541 computer architecture course, spring 2003. Students are required to compare the performance of two machines (m1 and m2) by calculating their clock cycles per instruction (cpi) and peak performances. They also need to discuss optimization options for a new processor design.

Typology: Assignments

Pre 2010

Uploaded on 09/02/2009

koofers-user-is7
koofers-user-is7 🇺🇸

10 documents

1 / 2

Toggle sidebar

Related documents


Partial preview of the text

Download Computer Architecture Homework: Comparing Machine Performance and more Assignments Computer Science in PDF only on Docsity! 1 of 2 CS 1541 Computer Architecture - Spring 2003 Homework #1 Assigned: Wednesday, January 15. Due: Wednesday, January 22. Due by 5 PM in Shukang Zhou’s mailbox on the 6th floor of Sennott Square Assignment (1) We wish to compare the performance of two different machines: M1 and M2. The following measure- ments have been made on these machines: If the clock rates of machine M1 is 2.1 GHz and the clock rate of machine M2 is 3.0 GHz, what is the clock cycles per instruction (CPI) for each program on each machine? (2) Consider two different implementations, M1 and M2, of the same instruction set. There are four classes of instructions (ALU, branch, load/store, and others) in the instruction set. M1 has a clock rate of 500 MHz. The average number of cycles for each instruction class on M1 is as fol- lows: M2 has a clock rate of 750 MHz. The average number of cycles for each instruction class on M2 is as fol- lows: Program Time on M1 Time on M2 1 8 seconds 5 seconds 2 3 seconds 4 seconds 3 12 seconds 14 seconds Program Number of instructions executed on M1 Number of instructions executed on M2 1 2.50 × 109 1.80 × 109 2 1.00 × 109 1.50 × 109 3 3.20 × 109 4.00 × 109 Class CPI for this class ALU 1.0 Branch 1.5 Load/Store 4.0 Others 2.0 Class CPI for this class ALU 2.0 Branch 2.5 Load/Store 6.0 Others 3.5
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved