2. Consider two processors P1 and P2 with four types of instructions as listed in Table 1. Assume that a program with a dynamic instruction count of 106 instructions such that the instructions are divided into the classes as follows: 10% class A, 20% class B, 50% class C, and 20% class D. a. Which implementation (P1 or P2) is faster? b. What is the overall CPI for each implementation P1 and P2? c. Find the clock cycles required for both processors. CPU/CPI Class A Class B Class C Class D P1(2.5 GHz) 1 2 3 3 P2(3.0 GHz) 2 4 2 3 Table 1 Clock per instruction for each class off instruction
Q: I want all steps for Consider a computer which has a memory which is capable of storing 4096 K words…
A: GIVEN THAT:-- Introduction :-- Nmber of memory words = 4096K words Word size = 32 bits Addressing…
Q: Let us assume we have a CPU which supports both 3-address and 2-address instruction. The length of…
A: 3 address: Three-address instruction is a format of machine instruction. It has one opcode and…
Q: Suppose the implementation of an instruction set architecture uses three classes of instructions,…
A:
Q: 4 Consider a microprocessor that has a block I/O transfer instruction such as that found on the…
A:
Q: In this problem, you will explore processor frequency in the context of the speed of light. Suppose…
A: INTRODUCTION: Calculate the required values:Frequency(f) = 8722.78 MHz = 8.723 * 109HzClock period…
Q: a) By how much is the total execution time changed if the time for class D is reduced by 20% and the…
A: It examines execution time as a result of three factors that are generally distinct of one another.…
Q: Mode • Operation code • Register • Register • Memory
A: Step 1 of 2 :) We are given memory size, number of registers and number of addressing modes. Also,…
Q: A program with the following information is run on a dual core processor with a speed of 12 MHz.…
A: CPI=total clock cycle needed to execute all instruction in the program/instruction count of entire…
Q: 6. Consider two processors with the processor speeds, CPI, and runtimes given in tab 6. Calculate…
A: Here data are given in comparison with one another it means we should try to equate both processor…
Q: We have the following statistics for two processors P1 and P2. The two processors have the same…
A: CPI is Clocks per instructions, It is the number of computer clock speed cycles that occur while a…
Q: Consider three different processors P1, P2, and P3 executing the same instruction set. P1 has a 4…
A: Given data: Processor Name Clock Rate CPI P1 4 GHz 1.5 P2 3 GHz 1.0 P3 1.3 GHz 2.2
Q: Consider three different processors P1, P2, and P3 executing the same instruction set. P1 has a 3…
A: Processor with highest performance: Performance = (Clock rate/CPI) Processor Clock rate CPI…
Q: Consider a CPU with clock cycle of 10ns that executes program A in 100 clock cycles and access the…
A: Given Data : Cycle time = 10 ns Program A takes = 100 cycles Program A access memory = 50 times…
Q: 2. A program with the following information is run on a dual core processor with a speed o 12 MHz.…
A: CPI= Clocks Per Instruction = Total clocks required/Total # of instructions. Here total clocks…
Q: 2.10 Consider the following program: int x = 0, y = 0; co x = x + 1; x = x + 2; // x = x + 2; y = y…
A:
Q: Consider two processors P1 and P2 with four types of instructions as listed in the table below.…
A: Given terms are: Dynamic Instruction count is 106 Processor P1 clock rate 2.0GHz and and Processor…
Q: Suppose the implementation of an instruction set architecture uses three classes of instructions,…
A: Intro Suppose the implementation of an instruction set architecture uses three classes of…
Q: 3- Let a program have a portion fr of its code enhanced to run 4 times faster, to yield a system…
A: In this question, we are given enhanced speedup(SE) and overall speedup of system. And we are asked…
Q: 3. Consider two different implementations of the same instruction set architecture. The instructions…
A: To find which implementation of the instruction set is faster the user has to find the execution…
Q: n a computer instruction format, the instruction length is 12 bits and the size of an address field…
A: The instruction length is 12 bits and the size of the address field is 4 bits. The total number of…
Q: Consider two different implementations, M1 and M2, of the same instruction (one billion…
A: Class Frequency CPI M1 CPI M2 A 40% 2 2 B 25% 3 2 C 25% 3 3 D 10% 5 4
Q: Consider a group of 5 benchmarks. With an old generation of CPU in the 90s, the execution times of…
A: Speed Up=n= execution time of B/ execution time of A n1=5/10=1/2 n2= 2/16=1/8 n3= 2/4 = 1/2 n4 =…
Q: B A computer consists of a processor and an I/O device D connected to main memory M via a shared bus…
A: According to the information given:- We have to follow the instruction in order to calculate If…
Q: 1- Consider three different processors P1, P2, and P3 executing the same instruction set. P1 has a 3…
A: Note: since your question contain multiple part but we can answer only one at a time due to our…
Q: Consider the following assembly language instructions: mov al, 15 mov ah, 15 xor al, al mov cl, 3…
A: In Assembly language : al is the lower 8 bits ah is the higher 8 bits Mov is the instruction used…
Q: a. Given a program with a dynamic instruction count of 1.0E8 instructions di ed into classes as…
A: B) Global CPI = Sum(CPIi*Fi) For P1, global CPI = 0.25*5+0.15*3+0.25*4+0.25*2+0.1*3 =…
Q: I want all steps for Consider a computer which has a memory which is capable of storing 4096 K words…
A: The computer supports instructions, where each instruction consists of following fields: • Mode •…
Q: Consider a Computer which has a memory which is capable of storing 4096 K words and each word in…
A: Given Data : Nmber of memory words = 4096K words Word size = 32 bits Addressing modes = 6 Number of…
Q: Consider two different implementations, 11 andi2, of the same instruction set. There are three…
A: The Answer is in Below steps
Q: In this problem, you will explore processor frequency in the context of the speed of light. Suppose…
A: INTRODUCTION: Calculate the required values:Frequency(f) = 8722.78 MHz = 8.723 *…
Q: The execution times for three systems running five benchmarks are shown in the table below. Compare…
A: Execution time:- The time or CPU time of the execution of any particular task is defined as time…
Q: Consider a computer which has a memory which is capable of storing 4096 K words and each word in…
A: Given: We are given memory size, number of registers, and number of addressing modes. Also, the…
Q: Question 1: Write down the corresponding MIPS machine language of the following assembly language…
A: Given: Question 1: Write down the corresponding MIPS machine language of the following assembly…
Q: Multiple Choice Suppose 'forwarding' was not possible in a given microprocessor design, how many…
A: Solution : Given Data - lw $t0, 100($t0) add, $t0, $t1, $t2
Q: Consider two different implementations, I1 and 12, of the same instruction set. There are three…
A: The answer is in step 2:
Q: 4. A computer has a 5-stage instruction pipeline of one cycle each. The 5 stages are: Instruction…
A: ANSWER:-
Q: Assume P stands for processors and M stands for Memory for a multiprocessor system. Implement…
A: Crossbar switch N*N switches (N processors N memory modules). The switch configures itself…
Q: The table below shows instruction-type breakdown for different programs. Using this data, you will…
A:
Q: Suppose we had a processor design with 5 stages where each stage takes the following amount of time:…
A: Suppose we had a processor design with 5 stages where each stage takes the following amount of time:…
Q: I want all steps for Consider a computer which has a memory which is capable of storing 4096 K words…
A: The Answer is
Q: Compilers can have a profound impact on the performance of an application. Assume that for a…
A: a) Execution time of compiler A=CPU time of compiler A=1.1 s Execution time of compiler B=CPU time…
Q: Consider two different implementations, M1 and M2, of the same instruction set. There are three…
A: The given data is following- Clock rate for M1 is 2.0 GHz which is equal to 2 × 10^9 Hz. 0 GHz = 2…
Q: Consider a computer which has a memory which is capable of storing 4096 K words and each word in…
A: The Answer is
Q: A particular (fictional) CPU has the following internal units and timings (WR and RR are write/read…
A: Answer is given below-
Q: Suppose the implementation of an instruction set architecture uses three classes of instructions,…
A: Suppose the implementation of an instruction set architecture uses three classes of instructions,…
Q: We have the following statistics for two processors P1 and P2. The two processors have the same…
A: Processor P1, Clock Rate=200MHz Instruction class CPI Frequency A 5 20% B 2 40% C 3 40%…
Q: Consider a computer which has a memory which is capable of storing 4096 K words and each word in…
A: Given: Consider a computer which has a memory which is capable of storing 4096 K words and each word…
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
- Suppose the implementation of an instruction set architecture uses three classes of instructions, which are called A, B, and C. The total dynamic instruction count is 1 x 10^7 and the processor's clock rate is 2.5 GHz. Details for the three classes are given in the table below: Class CPI % of instructions A 1 20% 50% C 3 30% Complete the following table. Express all answers in scientific notation and round to two decimal places, when needed. Class Instruction Count Number of Clock Cycles х 10^ x 10^ A х 10^ х 10^ x 10^ х 10^ CAssume a 3GHz processor executes three classes of instructions(A, B, C).i. Calculate the average CPI for this sequence of program.ii. Calculate the execution time for this sequence of program.iii. If we use a system with four same processors, there will bespeed up by a factor of 4 for classes A and C, but class B willremain unaffected. Calculate the new execution time for thissystem. What is the overall speed up? Class A B C CPI for class 4 2 10 IC in sequence 100 200 300Consider a machine with three instruction classes and CPI measurements as follows: Instruction class CPI of the instruction class A 2 B 5 C 7 Suppose that we measured the code for a given program in two different compilers and obtained the following data: Code sequence Instruction counts (in millions) A B C 1 15 5 3 2 25 2 2 Assume that the machine’s clock rate is 500 MHz. Which code sequence will execute faster according to MIPS? How much according to execution time of each code sequence?
- . Consider a system that has multiple processors where eachprocessor has its own cache, but main memory is shared among allprocessors.1. a) Which cache write policy would you use?2. b) The cache coherency problem. With regard to the systemjust described, what problems are caused if a processor has acopy of memory block A in its cache and a second processor,also having a copy of A in its cache, then updates mainmemory block A? Can you think of a way (perhaps morethan one) of preventing this situation, or lessening itseffects?Consider three different processors P1, P2, and P3 executing the same instruction set. P1 has a 3.1 GHz clock rate and a CPI (cycles per instruction) of 1.6. P2 has a 2.4 GHz clock rate and a CPI of 1.2. P3 has a 4.0 GHz clock rate and has a CPI of 2.0 If you could answer these id appreciate that greatly. a.Which processor has the highest performance expressed in instructions per second? b.If the processors each execute a program in 10 seconds, find the number of cycles and the number of instructions. c.We are trying to reduce the execution time by 30% but this leads to an increase of 20% in the CPI. What clock rate should we have to get this time reduction?Suppose that each of the 4 processors in a shared memory multi-processor system is rated at 400 MIPS. A program contains a purely sequential part that accounts for 22% of the program’s execution time on a single processor. The remaining code can be partitioned into three independent parts (A, B, and C). Running on a single processor, part A accounts for 30% of the program’s execution time, part B accounts for 18%, and part C accounts for 30%. What is the apparent MIPS rating for the program if it is run on the 4-processor system and the sequential part must be completed before any of the remaining independent parts (A, B or C) can run in parallel?
- Question: Suppose a program of 600 instructions runs on a 2 GHz processor. The frequency of instructions and the clock cycle counts per instruction are given as follows. What is the average CPI of this instruction mix? Operation Frequency Clock Cycles ALU operations 55% 1 Loads/Stores 30% 2 Branches 15% 3 Question: Continue from the previous question. What is the CPU time of the program in nanoseconds? Question: Suppose a processor P has a 2.5 GHz clock rate and a CPI of 1.5. If the processor executes a program in 3 microseconds, find the number of instructions in the program.Consider two different implementations of the same instruction set architecture. The instructions can be divided into three classes according to their CPI (class A, B, C). P1 with a clock rate of 2.5 GHz and CPIs of 1, 2, and 3, and P2 with a clock rate of 3 GHz and CPIs of 2, 2, 2. Given a program with a dynamic instruction count of 1.0E6 instructions divided into classes as follows: 30% class A, 30% class B, 40% class C, which implementation is faster? What is the global CPI for each implementation? Find the clock cycles required in both cases.a) Suppose two threads T1 and T2 are running concurrently in the same process with a single CPU. Suppose T1 does “Load X into register R1” machine instruction. Then the CPU scheduler switches the CPU to T2. Will T2 see the same vaue of R1 as loaded here by T1? (YES or NO)? Explain in less than 50 words. Be specific. (b) Suppose two threads T1 and T2 are running concurrently in the same process with a single CPU. Is it possible to have a moment (time instant) where both threads have made a request to Memory Unit to read some data (ex. as part of a “Load … into register …” instruction) and Memory Unit has not yet completed either of these two requests? Explain in less than 50 words.
- 17. Consider the following hypothetical instruction: SubMem R1, mem1, mem2 This instruction works as follows: \[ \mathrm{R} 1 \leftarrow \text { [mem1] - [mem2] } \] In a multi-cycle datapath implementation, this instruction will: a. Use the MDR twice b. Use the ALU once c. Use the "shift to left" unit twice d. None of the above Answer: B 18. Consider the following hypothetical instruction: Mems mem1, R1, mem2 This instruction works as follows: \[ \text { [mem1] } \leftarrow \mathrm{R} 1 \text { - [mem2] } \] One of the following is correct about this instruction: a. It will not need theBregister b. It will require priting into MDR twice c. It will require writing into the ALUout three times d. None of the above Answer: A 19. By comparing the hypothetical instructions given in Questions (17) and (18), if we run these instructions on the same processor, then one of the following is correct: a. Both instructions have the same CPI b. Mems executes faster than SubMem c. SubMem executes…The table below shows instruction-type breakdown for different programs. Using this data, you will be exploring the performance trade-offs for different changes made to an MIPS processor. Class A Class B Class C Class D Total Program1 90 100 30 10 ? Program2 110 70 20 20 ? Calculate the total instructions required by each of the programs. Assuming that Class A take 1 cycle (CPI) , B and C instructions take 2 cycles, and D take 3 cycles, find the execution time for both the programs on a 3 GHz Processor. What is the speedup if the number of A instruction can be reduced by half and D instructions increased to double? (for both the programs)When a program is adapted to run on multiple processors in a multiprocessor system, the execution time on each processor is comprised of computing time and the overhead time required for locked critical sections and/or to send data from one processor to another. Assume a program requires t = 100 s of execution time on one processor. When run p processors, each processor requires t/p s, as well as an additional 4 s of overhead, irrespective of the number of processors. Compute the per-processor execution time for 2, 4, 8, 16, 32, 64, and 128 processors. For each case, list the corresponding speedup relative to a single processor and the ratio between actual speedup versus ideal speedup (speedup if there was no overhead).