Question: Manually simulate the single- cycle computer in Figure 8-15 for the following sequence of instructions, assuming that each register initially contains contents equal to its

Manually simulate the single- cycle computer in Figure 8-15 for the following sequence of instructions, assuming that each register initially contains contents equal to its index (i.e., R0 contains 0, R1 contains 1, and so on):

ADD R0, R1, R2 SUB R3, R4, R5 SUB R6, R7, RO ADD RO, RO, R3 SUB RO, RO, R6 ST R7, R0 LD R7, R6 ADI R0, R6, 2

Figure 8-15

V- C-Branch N-Control Z PJB LBC PC Extend Address Instruction memory Instruction IR (8:6) || IR (2:0) IR

Give (a) the binary value of the instruction on the current line of the results and(b) the contents of any register changed by the instruction, or the location and contents of any memory location changed by the instruction on the next line of the results. The results are positioned in this fashion because the new values do not appear in a register or memory, due to the execution of an instruction, until after a positive clock edge has occurred.

ADD R0, R1, R2 SUB R3, R4, R5 SUB R6, R7, RO ADD RO, RO, R3 SUB RO, RO, R6 ST R7, R0 LD R7, R6 ADI R0, R6, 2 ADI R3, R6, 3

Step by Step Solution

3.41 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Instruction ADD RO R1 R2 SUB R3 R4 R5 Code RegistersMemory changed 000 0101 ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Logic And Computer Design Fundamentals Questions!