Question: Multi - Cycle Arch. Given the following code. Assume that x and y are arrays of words and the base address of x is stored
MultiCycle Arch. Given the following code. Assume that x and y are arrays of words and the base address of x is stored in R and the base address of y is stored in R Assume that each add operation takes cycles to execute, each lw operation cycles, each store sw takes cycles, and each branch bne instruction takes cycles to execute. The"T represents Temp registers. All numbers are in decimal.Loop:::add TO zero, zero add T R zero add T R zero add T zero, lw TT add T T C sw TT add TO TOadd T Tadd T Tbne TO Tadd TO TO# TO i # T address of xi # T address of yi # Load T with MT value# C is a constant value# Store T to MT# Loops if branch is takenWhat is the PC value for the SW instruction?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
