Query on pipelinning


A CPU has five-stage pipeline where each stage takes 1 ns, 2ns, 1.5ns, 3ns, 2.5ns. Instruction fetch happens in the first stage of the pipeline. A conditional branch instruction computes the target address and evaluates the condition in the third stage of the pipeline. Assume that each stage requires one clock cycle. 30% of the instructions are conditional branches. Find the average execution time of the program for 1200 instructions is?