beautypg.com

15 synchronization instructions, Synchronization instructions -25, Table 14-20 – ARM Cortex R4F User Manual

Page 389

background image

Cycle Timings and Interlock Behavior

ARM DDI 0363E

Copyright © 2009 ARM Limited. All rights reserved.

14-25

ID013010

Non-Confidential, Unrestricted Access

14.15 Synchronization instructions

This section describes the cycle timing behavior for the

CLREX

,

DMB

,

DSB

,

ISB

,

LDREX

,

LDREXB

,

LDREXD

,

LDREXH

,

STREX

,

STREXB

,

STREXD

,

STREXH

,

SWP

, and

SWPB

instructions

In all cases the base register, Rn, is a Very Early Reg. Table 14-20 shows the synchronization
instructions cycle timing behavior.

The synchronization instructions

DMB

,

DSB

, and

ISB

stall the pipeline for a variable number of

cycles, depending on the current state of the memory system.

Table 14-20 Synchronization instructions cycle timing behavior

Instruction

Cycles

Memory cycles

Result latency

CLREX

1

-

-

LDREX , [Rn]

1

1

2

LDREXB , [Rn]

1

1

2

LDREXH , [Rn]

1

1

2

LDREXD , [Rn]

a

a. Address must be 64-bit aligned.

1

1

2

STREX , , [Rn]

1

1

2

STREXB , , [Rn]

1

1

2

STREXH , , [Rn]

1

1

2

STREXD , , , [Rn]

a

1

1

2

SWP , , [Rn]

2

2

3

SWPB , , [Rn]

2

2

3

This manual is related to the following products: