Bus Interface Unit
6-16
Copyright © 2000 ARM Limited. All rights reserved.
ARM DDI 0186A
SWP instruction
The ARM
SWP
instruction performs an atomic read-modify-write operation. It is
commonly used with semaphores to guarantee that another process cannot modify a
semaphore when it is being read by the current process.
If the ARM966E-S performs a
SWP
operation to an AHB address location, the access is
always unbuffered to ensure that the core is stalled until the write has occurred on the
AHB. The BIU asserts the
HLOCK
output to prevent the AHB arbiter from granting a
different master, ensuring that the read-modify-write is atomic.
Figure 6-12 shows a
SWP
instruction.
Figure 6-12 SWP instruction
HTRANS
IDLE
NONSEQ
IDLE
HWRITE
HRDATA
HADDR
A_SWP
CLK
HWDATA
SWP_D2
HLOCK
IDLE
NONSEQ
A_SWP
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 ...