Home / Expert Answers / Accounting / nbsp-1-design-and-analyses-a-microcontroller-instruction-cycle-pipeline-to-execute-an-embedded-pa160

(Solved):   1. Design and analyses a microcontroller instruction cycle pipeline to execute an embedded ...



1. Design and analyses a microcontroller instruction
cycle pipeline to execute an embedded program
which has 100 instructions

 

1. Design and analyses a microcontroller instruction cycle pipeline to execute an embedded program which has 100 instructions. Each instruction has a uniform period and has 5 pipeline stages in the following order Instruction Fetch (IF), Instruction Decode (ID), Execute (Ex), Memory Access (MEM) and Register Write Back (WB). The fetch operation takes 3 clock cycles, decode operation takes 2 clock cycles, execution operation takes 4 cycles, memory access takes 3 cycles and register write back takes 2 cycles. a) With necessary diagrams, calculate the total number of clock cycles that will take to execute the program. b) If the microcontroller is given a clock with input clock frequency 2 GHz, what is the maximum clock frequency with which the microcontroller can operate? c) If the instruction pipeline is flushed after every 40 instructions, calculate the total number of clock cycles taken. d) In order to increase the microcontroller operating frequency, a register is placed in between the pipeline. Where it should be placed, and after placing, what is the new maximum operating frequency, and total number of clocks cycles the program will take without pipeline flushing?


We have an Answer from Expert

View Expert Answer

Expert Answer


The above is a space-time diagram representing the pipeline in which the instructions gets executed. Instruction 0 is a MUL operation which take 3 clock cycles of CPU in the PO stage, and at any other stage it takes only 1 cycle. Instruction 1 is a D
We have an Answer from Expert

Buy This Answer $5

Place Order