Xilinx MicroBlaze Reference Manual page 233

Hide thumbs Also See for MicroBlaze:
Table of Contents

Advertisement

fint
Floating-Point Convert Float to Integer
rD, rA
fint
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
2 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 (v2018.2) June 21, 2018
rD
rA
11
1
00110
1
00110
31
or (rA) > 2
1
00110
=0
C_AREA_OPTIMIZED
=1
C_AREA_OPTIMIZED
=2
C_AREA_OPTIMIZED
www.xilinx.com
Chapter 5: MicroBlaze Instruction Set Architecture
rB
0 1 1 0 0 0 0 0 0 0 0
16
21
31
- 1 then
31
234
Send Feedback

Advertisement

Table of Contents
loading

Table of Contents