Instruction cycle timings
11-10
Copyright © 2000 ARM Limited. All rights reserved.
ARM DDI 0186A
11.5
Interrupt latency calculation
The ARM9E-S has a worst-case interrupt latency figure that is listed in the
ARM9E-S
Technical Reference Manual
. The number quoted assumes that the
CLKEN
input to the
core is HIGH, ensuring no stall cycles.
In the ARM966E-S, the best-case figure could match the latency quoted for the
ARM9E-S core, if the necessary data and instructions were already in the D-SRAM and
I-SRAM respectively. However, when calculating the worst-case figure, it must be
assumed that the necessary data and instructions are not in the tightly-coupled SRAM
and must therefore be accessed over the AHB.
In addition, the worst-case is where the write buffer is full when the interrupt occurs,
requiring that the buffer drain is added to the interrupt latency calculation. The
worst-case sequence for the write buffer is that five nonsequential words are to be
written.
For the ARM9E-S core, the worst-case interrupt latency occurs when the longest
LDM
incurs a Data Abort. However, for the ARM966E-S, this is the longest
LDM
without a
Data Abort. The
LDM
that incurs a Data Abort takes extra
CLK
cycles in the core, but the
abort vector is usually in the tightly-coupled SRAM and can be returned without
introducing the extra stall cycles of an AHB access.
The longest
LDM
without the Data Abort is one that loads all the registers, including the
PC, that causes a branch to a destination anywhere in memory. The branch destination
must therefore be assumed to be outside of the tightly-coupled SRAM. The loads to the
PC address and (PC+1) cause additional AHB accesses to produce the worst-case
interrupt latency.
Using the symbols defined in Table 11-3 on page 11-7, the worst-case interrupt latency
can be summarized in Table 11-6.
Table 11-6 Interrupt latency cycle summary
AHB access
Cycles
Comment
Write buffer drain
Sync+ 5(N+I)
FIQ
asserted, first data transfer
requested, write buffer drain stalls core.
LDM
(r0-pc) crosses 1KB
boundary
2N+14 S+4 I
No instruction fetch at end due to core
pipeline bubble to calculate pc
Instruction fetch of (pc)
Sync+N+I
Synchronization lost due to core internal
cycle, no AHB request
Sequential instruction fetch
of (pc+1)
N+I
Synchronization retained
Summary of Contents for ARM966E-S
Page 6: ...Contents vi Copyright 2000 ARM Limited All rights reserved ARM DDI 0186A ...
Page 20: ...Introduction 1 4 Copyright 2000 ARM Limited All rights reserved ARM DDI 0186A ...
Page 48: ...Tightly coupled SRAM 4 12 Copyright 2000 ARM Limited All rights reserved ARM DDI 0186A ...
Page 80: ...Bus Interface Unit 6 20 Copyright 2000 ARM Limited All rights reserved ARM DDI 0186A ...
Page 118: ...Debug Support 8 26 Copyright 2000 ARM Limited All rights reserved ARM DDI 0186A ...
Page 130: ...Test Support 10 8 Copyright 2000 ARM Limited All rights reserved ARM DDI 0186A ...
Page 142: ...Instruction cycle timings 11 12 Copyright 2000 ARM Limited All rights reserved ARM DDI 0186A ...
Page 158: ...Signal Descriptions A 16 Copyright 2000 ARM Limited All rights reserved ARM DDI 0186A ...
Page 176: ...AC Parameters B 18 Copyright 2000 ARM Limited All rights reserved ARM DDI 0186A ...