Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assume that a pipeline has 4 stages: S1 = fetch instruction S2 = decode and calculate effective address S3 = fetch operand S4 = execute
Assume that a pipeline has 4 stages:
S1 = fetch instruction
S2 = decode and calculate effective address
S3 = fetch operand
S4 = execute instruction and store results
The following code segment would be processed as follows in this pipeline:
Time Period: | 1 | 2 | 3 | 4 | 5 | 6 |
R1 = R2 + X | fetch instr. | decode | fetch X | Add & store in R1 | ||
X = R3 + Y | fetch instr. | decode | fetch Y | Add & store in X | ||
Z = R1 + X | fetch instr. | decode | fetch X | Add & store in Z |
At which time period is there a resource conflict and at which time period is there a data dependency?
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