Exercise 2: Suppose you executed the code listed below and assume the following: - X1 is initialized to 0×8,X2 is initia
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Exercise 2: Suppose you executed the code listed below and assume the following: - X1 is initialized to 0×8,X2 is initia
Exercise 2: Suppose you executed the code listed below and assume the following: - X1 is initialized to 0×8,X2 is initialized to 0×C, and X3 is initialized to 0×5 - Register file is written at the beginning of the cycle and read at the end of a cycle and - Any read from any address in memory returns the data 0x1 a) What would the final value of register X5 be if code executed on a version of the pipeline that does not handle data hazards and it has separate units for the memories? b) Suppose the code is executed in a version of the Datapath with a single memory unit. Draw a pipeline diagram for that sequence of instructions and identify if there are any hazards or not and how you can fix them. Explain your answer.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!