ARM r1p3, R4F manual Synchronization instructions, Clrex

Models: R4F r1p3 R4

1 456
Download 456 pages 40.06 Kb
Page 389
Image 389

Cycle Timings and Interlock Behavior

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-20shows the synchronization instructions cycle timing behavior.

Table 14-20 Synchronization instructions cycle timing behavior

Instruction

Cycles

Memory cycles

Result latency

 

 

 

 

CLREX

1

-

-

 

 

 

 

LDREX <Rt>, [Rn]

1

1

2

 

 

 

 

LDREXB <Rt>, [Rn]

1

1

2

 

 

 

 

LDREXH <Rt>, [Rn]

1

1

2

 

 

 

 

LDREXD <Rt>, [Rn]a

1

1

2

STREX <Rd>, <Rt>, [Rn]

1

1

2

 

 

 

 

STREXB <Rd>, <Rt>, [Rn]

1

1

2

 

 

 

 

STREXH <Rd>, <Rt>, [Rn]

1

1

2

 

 

 

 

STREXD <Rd>, <Rt>, <Rt2>, [Rn]a

1

1

2

SWP <Rt>, <Rt2>, [Rn]

2

2

3

 

 

 

 

SWPB <Rt>, <Rt2>, [Rn]

2

2

3

a. Address must be 64-bit aligned.

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.

ARM DDI 0363E

Copyright © 2009 ARM Limited. All rights reserved.

14-25

ID013010

Non-Confidential, Unrestricted Access

 

Page 389
Image 389
ARM r1p3, R4F manual Synchronization instructions, Clrex