Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started