Suppose a typical program has an instruction mix of 40%, 15%, 20%, and 25% for instruction types
A, B, C, and D respectively. On processor P1, the CPIs for these instruction types are 1, 2, 3, and 4
respectively, and the clock rate is 2GHz. One representative program, S, executes 1 million instructions.
(a) What is P1’s throughput? Don’t forget that the unit of throughput (in this context) is MIPS.
(b) How long does S take to run on P1?
(c) A compiler has options that allow it to generate 2 instructions of type A instead of 1 instruction
of type C. How much faster can you make a typical program run?
(d) The VLSI designers tell you that they can improve the clock rate to 3GHz. However, due to the
need to handle the extra power dissipation, a cooling system that adds 30% to the cost of the
package is needed. Assuming you want to maximize the performance/cost ratio, what do you tell
them to do?
(e) Processor P2 has the same ISA but needs 2 CPI for all instruction types. What clock rate would
P2 need to have the same performance as P1?
(f) An I/O operation of b bytes takes 3b+5 μs. Program S’ is like S but must also do k bytes of
I/O, though the I/O may be split into any number of transfers (e.g.,k transfers of 1 byte each,
k/2 transfers of 2 bytes each, . . ., 1 k-byte transfer). The system designers would prefer to do
multiple small transfers to avoid hogging the I/O bus. There is also a requirement that S’ takes
at most 3 times as long to run as S. How best do you split the I/O while keeping system designers
happy? You may assume that k is large enough to avoid using floor and ceiling functions (as an
approximation), and ranges over values for which your result makes sense.
Submission
Submit this on paper at the beginning of class, one problem per sheet.
c This
Suppose a typical program has an instruction mix of 40%, 15%, 20%, and 25% for instruction...
Question : Suppose a typical program has an instruction mix of 40%, 15%, 20%, and 25% for instruction types A, B, C, and D respectively. On processor P1, the CPIs for these instruction types are 1, 2, 3, and 4 respectively, and the clock rate is 2GHz. One representative program, S, executes 1 million instructions. (a). Processor P2 has the same ISA but needs 2 CPI for all instruction types. What clock rate would P2 need to have the same...
I should use the array and loop to create a java program
according to the instruction, but I have no idea how to do
it.
Introduction This lab assignment continues to give you practice using loops, particularly loops with variable termination conditions, and it also provides you an opportunity to use one-dimensional arrays. Recall that an array is used to store a collection of data. The data can be values of Java primitive data types or else objects (for instance,...
I NEED HELP WITH DEBUGGING A C PROGRAM! PLEASE HEAR ME
OUT AND READ THIS. I just have to explain a lot so you understand
how the program should work.
In C programming, write a simple program to
take a text file as input and encrypt/decrypt it by reading the
text bit by bit, and swap the bits if it is specified by the first
line of the text file to do so (will explain below, and please let
me...
Assignment Overview In Part 1 of this assignment, you will write a main program and several classes to create and print a small database of baseball player data. The assignment has been split into two parts to encourage you to code your program in an incremental fashion, a technique that will be increasingly important as the semester goes on. Purpose This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of...
Edit a C program based on the surface code(which is after the question's instruction.) that will implement a customer waiting list that might be used by a restaurant. Use the base code to finish the project. When people want to be seated in the restaurant, they give their name and group size to the host/hostess and then wait until those in front of them have been seated. The program must use a linked list to implement the queue-like data structure....
C Program Please! Thanks!
Spring 2019 ECE 103 Engineering Programming Problem Statement A standard deck of playing cards contains 52 cards. There are four suits (heart, diamond club +, spade+) and thirteen ranks (ace, 2 thru 10,jack, queen, king) per suit. Rank Numeric Value 10 10 10 10 gueen 10 Write a program that does the following: I. Simulates a randomized shuffling of a 52 card deck 2. Determines how many combinations of 21 exist in the deck by following...
i need help with a mips program to to covert roman numerals to
real numbers
Lab 4: Roman Numeral Conversion Part A: Due Sunday, 19 May 2019, 11:59 PM Due Friday, 24 May 2019, 11:59 PM Part B: Minimum Submission Requirements Ensure that your Lab4 folder contains the following files (note the capitalization convention): o Diagram.pdf o Lab4. asm O README.txt Commit and push your repository Lab Objective In this lab, you will develop a more detailed understanding of how...
This C++ Program consists of: operator overloading, as well as experience with managing dynamic memory allocation inside a class. Task One common limitation of programming languages is that the built-in types are limited to smaller finite ranges of storage. For instance, the built-in int type in C++ is 4 bytes in most systems today, allowing for about 4 billion different numbers. The regular int splits this range between positive and negative numbers, but even an unsigned int (assuming 4 bytes)...
This is in C. For this assignment we will write a simple database server. We will be creating a simple database of student records, so let’s describe these first. The format of a student record is as follows: typedef struct student { char lname[ 10 ], initial, fname[ 10 ]; unsigned long SID; float GPA; } SREC; Part One – the Server We will create a database server. The job of the server is to accept a...
Quantitative: In the 1950s liquid hydrogen was considered as a fuel for a new type of aircraft being developed, the SR-71 Blackbird (shown in Figure 1). Figure 1: The SR-71 Blackbird Early research on the project focused on which fuel to use for the Blackbird. Pratt & Whitney had a J-57 engine that was designed for kerosene and being considered for implementation on the Blackbird. The J-57 only took 5 months to convert to running on liquid hydrogen, however tests...