MC logo

CPU Signals Problem

  CSc 314 Study Material

Exam II may have a question like this one:

Consider the diagram in Figure 5.33 on p. 383. Assume that the CPU is executing the instruction

   sw $8, 180($29)

Fill in the value of each indicated signal at the end of each cycle. If a control signal does not matter, record an X. If a data signal is unknown, record an X. Assume the memory cannot both read and write during the same cycle.

Signal Cycle 1Cycle 2Cycle 3Cycle 4
PCWriteCond
PCWrite
MemRead
. . .
And you are invited to fill out the blanks.


Here's the answer to that one:
Signal Cycle 1Cycle 2Cycle 3Cycle 4
PCWriteCond0000
PCWrite1000
IorD0XX1
MemRead1XX0
MemWrite0001
MemtoRegXXXX
IRWrite1000
PCSource0XXX
ALUOp000000XX
ALUSrcB011110XX
ALUSrcA001X
RegWrite0000
RegDstXXXX
Instruction[5-0]XXXXXX110100110100110100
Read register 2XXXXX010000100001000