Manually simulate the single- cycle computer in Figure 8-15 for the following sequence of instructions, assuming that

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 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.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Logic And Computer Design Fundamentals

ISBN: 9780133760637

5th Edition

Authors: M. Morris Mano, Charles Kime, Tom Martin

Question Posted: