Question: Design and analyze a microcontroller instruction cycle pipeline to execute an [5] embedded program which has 200 instructions. Each instruction has 3 pipeline stages in
Design and analyze a microcontroller instruction cycle pipeline to execute an [5] embedded program which has 200 instructions. Each instruction has 3 pipeline stages in the following order - Instruction Fetch (IF), Instruction Decode (ID), Execute (Ex), Memory Access (MEM). The fetch operation takes 1 clock cycles, decode operation takes 1 clock eycles, and memory access takes 3 cycles. Suppose the execute stage take 4 clock cycles for first 50 instructions (II-I50), 6 clock cycles for second 50 instructions (151-1100), 5 clock cycles for third 50 instructions (1101-1150), 4 clock cycles for last 50 instructions (1151-1200). Find the total number of clocks. Implement the following if-else operation using assembly language syntax [5] Assume the value of X is stored in RO and value of Y is stored in RI if x-Y) X X2: else Y Y2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
