Download MIPS32® M4K® Processor Core Datasheet

Transcript
the error and redirection signals also deassert to indicate a
normal completion.
Figure 11 Read Followed by Write (Single Cycle)
Cycle #
1
2
3
4
5
6
7
clk
Figure 10 Write with One Waitstate
Cycle #
1
2
3
4
5
6
DS_Read
DS_Write
7
clk
DS_Write
DS_Sync
DS_Addr[31:2]
X
addr0
addr1
X
DS_BE[3:0]
X
be0
be1
X
X
data
X
DS_Addr[31:2]
X
addr
X
DS_BE[3:0]
DS_WData[31:0]
X
be
X
X
data
X
Outputs
DS_WData[31:0]
Outputs
DS_Sync
DS_Read
DS_Lock
DS_Unlock
DS_Abort
DS_Lock
DS_EjtBreakEn
DS_Unlock
DS_EjtBreak
DS_EjtBreakEn
DS_Stall
X
X
DS_EjtBreak
DS_Error
X
X
DS_AbortAck
X
X
DS_Redir
X
X
DS_Stall
X
X
X
X
DS_UnlockAck
DS_AbortAck
X
X
DS_RData[31:0]
X
data
X
DS_Redir
X
X
DS_RBE[3:0]
X
be
X
DS_UnlockAck
X
DS_RData[31:0]
X
DS_RBE[3:0]
X
Inputs
DS_Error
Read Followed by Write
Figure 11 illustrates a single cycle D-side read operation
followed immediately by a single cycle D-side write
operation. This example represents the back-to-back
concatenation of the single-cycle read shown in Figure 7 with
the single cycle write from Figure 8.
The read is initiated in cycle 1, with the core’s assertion of the
read strobe, read address, and read output byte enables. The
external agent is able to fulfill the read request in cycle 2, so
it deasserts stall and drives the read data and input byte
enables in cycle 2.
Inputs
DS_Abort
X
Read Followed by Write, with Waitstates
Figure 12 illustrates a one waitstate D-side read operation
followed immediately by a one waitstate D-side write
operation. This example is similar to the back-to-back read/
write case in Figure 11, only now each of the two transactions
includes one waitstate.
The read is initiated in cycle 1, with the core’s assertion of the
read strobe, read address, and read output byte enables. The
external agent cannot complete the read immediately, so it
asserts stall in cycle 2. This forces the core to hold its readrelated outputs for another cycle, and precludes the core from
starting a new transaction. In cycle 3, stall deasserts and the
read data and input byte enables are driven valid, completing
the read.
Since there is no stall from the read in cycle 2, the core is
immediately able to initiate another transaction in the same
cycle (if it has one pending), this time a write. Note that the
SRAM-style interface logic contains a combinational path
from DS_Stall to the start of a new transaction, for maximum
performance. The external agent can accept the write, so no
stall is asserted in cycle 3 and the write finishes.
The stall deassertion in cycle 3 allows the core to start its next
pending transaction, this time a write. The external agent is
not ready to accept the write, so it asserts stall again in cycle
4. Finally in cycle 5, the write can complete, so stall deasserts
and the write finishes.
MIPS32® M4K® Processor Core Datasheet, Revision 02.01
37
Copyright © 2002-2008 MIPS Technologies Inc. All rights reserved.