1. Engineering
  2. Computer Science
  3. type 1 2 type 2 5 pe 3 type 1...

Question: type 1 2 type 2 5 pe 3 type 1...

Question details

Type 1: 2 Type 2: 5 pe 3: Type 1: 6 Type 2: 1 loop Type 1: 3 Type 2: 4 Figure 1: each block gives the number of different types of instructions uestion 2 Consider a program with the execution flow shown in Figure 1. There are in total 3 types of instructions used in this program: . Type 1 (in-processor calculation): execution rate as 1 per clock cycle; . Type 2 (memory access): each instruction takes 2 clock cycles for execu- tion: . Type 3 (loop control): each instruction takes 2 clock cycles for jump into the loop block or 3 clock cycles for jump to the block after loop In statistics, for this program, the actual rounds of loop follows the probability distribution below: Number of loopsProbability 10% 20% 0 20 10 10 3 Suppose this program is executed in a computer in which the clock rate for the processor is 1.6 MHz. In average, how long is the time (in μs) needed for executing the whole program by this computer? [12

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution