Coprocessor Interface
ARM DDI 0210C
Copyright © 2001, 2004 ARM Limited. All rights reserved.
4-5
4.3
Pipeline following signals
Every coprocessor in the system must contain a pipeline follower to track the
instructions in the ARM7TDMI processor pipeline. The coprocessors connect to the
configured ARM7TDMI core input data bus,
D[31:0]
or
DIN[31:0]
, over which
instructions are fetched, and to
MCLK
and
nWAIT
.
It is essential that the two pipelines remain in step at all times. When designing a
pipeline follower for a coprocessor, you must observe the following rules:
•
At reset, with
nRESET
LOW, the pipeline must either be marked as invalid, or
filled with instructions that do not decode to valid instructions for that
coprocessor.
•
The coprocessor state must only change when
nWAIT
is HIGH, except during
reset.
•
An instruction must be loaded into the pipeline on the falling edge of
MCLK
, and
only when
nOPC
,
nMREQ
, and
TBIT
were all LOW in the previous bus cycle.
These conditions indicate that this cycle is an ARM instruction fetch, so the new
opcode must be read into the pipeline.
•
The pipeline must be advanced on the falling edge of
MCLK
when
nOPC
,
nMREQ
and
TBIT
are all LOW in the current bus cycle.
These conditions indicate that the current instruction is about to complete
execution, because the first action of any instruction performing an instruction
fetch is to refill the pipeline.
Any instructions that are flushed from the ARM7TDMI processor pipeline:
•
never signal on
nCPI
that they have entered execute
•
are automatically replaced in the coprocessor pipeline follower by the prefetches
required to refill the core pipeline.
There are no coprocessor instructions in the Thumb instruction set, so coprocessors
must monitor the state of the
TBIT
signal to ensure that they do not decode pairs of
Thumb instructions as ARM instructions.
Summary of Contents for ARM7TDMI
Page 6: ...Contents vi Copyright 2001 2004 ARM Limited All rights reserved ARM DDI 0210C ...
Page 10: ...List of Tables x Copyright 2001 2004 ARM Limited All rights reserved ARM DDI 0210C ...
Page 14: ...List of Figures xiv Copyright 2001 2004 ARM Limited All rights reserved ARM DDI 0210C ...
Page 46: ...Introduction 1 26 Copyright 2001 2004 ARM Limited All rights reserved ARM DDI 0210C ...
Page 120: ...Coprocessor Interface 4 18 Copyright 2001 2004 ARM Limited All rights reserved ARM DDI 0210C ...
Page 142: ...Debug Interface 5 22 Copyright 2001 2004 ARM Limited All rights reserved ARM DDI 0210C ...
Page 282: ...Glossary Glossary 6 Copyright 2001 2004 ARM Limited All rights reserved ARM DDI 0210C ...