- Exercise 2 Suppose You Executed The Code Listed Below And Assume The Following X1 Is Initialized To 0x8 X2 Is Ini 1 (90.39 KiB) Viewed 35 times
Exercise 2: Suppose you executed the code listed below and assume the following: ● ● X1 is initialized to 0x8, X2 is ini
-
- Site Admin
- Posts: 899603
- 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 0x8, X2 is ini
Exercise 2: Suppose you executed the code listed below and assume the following: ● ● X1 is initialized to 0x8, X2 is initialized to OxC, and X3 is initialized to 0x5 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 ADDI X1, X2, #0x5 LDUR X6, [X1, #0x8] ADD X3, X1, X2 ADDI X4, X1, #0xF AND X5, X3, X2 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.