MicroBlaze Processor Reference Guide
247
UG081 (v14.7)
Instructions
sra
Shift Right Arithmetic
Description
Shifts arithmetically the contents of register rA, one bit to the right, and places the result in rD. The
most significant bit of rA (that is, the sign bit) placed in the most significant bit of rD. The least
significant bit coming out of the shift chain is placed in the Carry flag.
Pseudocode
(rD)[0]
←
(rA)
[0
]
(rD)[1:31]
←
(rA)[0:30]
MSR[C]
←
(rA)[31]
Registers Altered
•
rD
•
MSR[C]
Latency
•
1 cycle
sra
rD, rA
1 0 0 1 0 0
rD
rA
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
0
6
1
1
1
6
3
1
Содержание MicroBlaze
Страница 1: ...MicroBlaze Processor Reference Guide Embedded Development Kit EDK 14 7 UG081 v14 7...
Страница 4: ...MicroBlaze Processor Reference Guide www xilinx com UG081 v14 7...
Страница 8: ...8 www xilinx com MicroBlaze Processor Reference Guide UG081 v14 7 Chapter 1 Introduction Send Feedback...
Страница 262: ...262 www xilinx com MicroBlaze Processor Reference Guide UG081 v14 7 Send Feedback...