Xilinx MicroBlaze Reference Manual page 215

32-bit soft processor
Hide thumbs Also See for MicroBlaze:
Table of Contents

Advertisement

fint
Floating Point Convert Float to Integer
fint
rD, rA
0 1 0 1 1 0
0
6
Description
Converts the floating point number in register rA to a signed integer and puts the result in register
rD. This is a 32-bit signed conversion that will produce a 32-bit integer result.
Pseudocode
if isDnz(rA) then
(rD)
0xFFC00000
FSR[DO]
ESR[EC]
else if isNaN(rA) then
(rD)
0xFFC00000
FSR[IO]
ESR[EC]
else if isInf(rA) or (rA) < -2
(rD)
0xFFC00000
FSR[IO]
ESR[EC]
else
(rD)
int ((rA))
Registers Altered
rD, unless an FP exception is generated, in which case the register is unchanged
ESR[EC], if an FP exception is generated
FSR[IO,DO]
Latency
5 cycles with
7 cycles with
Note
This instruction is only available when the MicroBlaze parameter C_USE_FPU is set to 2 (Extended).
MicroBlaze Processor Reference Guide
UG984 (v2016.2) June 8, 2016
UG984 (v2016.1) April 6, 2016
rD
rA
11
1
00110
1
00110
31
or (rA) > 2
1
00110
=0
C_AREA_OPTIMIZED
=1
C_AREA_OPTIMIZED
www.xilinx.com
Chapter 5: MicroBlaze Instruction Set Architecture
0
0 1 1 0 0 0 0 0 0 0 0
16
21
31
- 1 then
31
215
Send Feedback

Advertisement

Table of Contents
loading

Table of Contents