Page 1 of 1

Exercise 2: Suppose you executed the code listed below and assume the following: - X1 is initialized to 0×8,X2 is initia

Posted: Thu Jul 14, 2022 2:12 pm
by answerhappygod
Exercise 2 Suppose You Executed The Code Listed Below And Assume The Following X1 Is Initialized To 0 8 X2 Is Initia 1
Exercise 2 Suppose You Executed The Code Listed Below And Assume The Following X1 Is Initialized To 0 8 X2 Is Initia 1 (85.34 KiB) Viewed 31 times
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.