at94k05al-25aqi ATMEL Corporation, at94k05al-25aqi Datasheet - Page 117

no-image

at94k05al-25aqi

Manufacturer Part Number
at94k05al-25aqi
Description
5k - 40k Gates Of At40k Fpga With 8-bit Microcontroller, Up To 36k Bytes Of Sram And On-chip Jtag Ice
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT94K05AL-25AQI
Manufacturer:
Atmel
Quantity:
10 000
fmuls16x16_32
fmac16x16_32
Rev. 1138F–FPSLI–06/02
Description
Usage
Statistics
Note:
Description
Usage
Statistics
Signed fractional multiply of two 16-bit numbers with a 32-bit result.
R19:R18:R17:R16 = (R23:R22 • R21:R20) << 1
Cycles: 20 + ret
Words: 16 + ret
Register usage: R0 to R2 and R16 to R23 (11 registers)
fmuls16x16_32:
Signed fractional multiply-accumulate of two 16-bit numbers with a 32-bit result.
R19:R18:R17:R16 += (R23:R22 • R21:R20) << 1
Cycles: 25 + ret
Words: 21 + ret
Register usage: R0 to R2 and R16 to R23 (11 registers)
fmac16x16_32:
clr
fmuls r23, r21
movw
fmul
adc
movw
fmulsu
sbc
add
adc
adc
fmulsu
sbc
add
adc
adc
ret
clr
fmuls r23, r21
add
adc
fmul
adc
adc
add
1. The routine is non-destructive to the operands.
r2
r19:r18, r1:r0
r22, r20
r18, r2
r17:r16, r1:r0
r19, r2
r17, r0
r18, r1
r19, r2
r19, r2
r17, r0
r18, r1
r19, r2
r2
r18, r0
r19, r1
r22, r20
r18, r2
r19, r2
r16, r0
r23, r20
r21, r22
; ( (signed)ah * (signed)bh ) << 1
; ( al * bl ) << 1
; ( (signed)ah * bl ) << 1
; Sign extend
; ( (signed)bh * al ) << 1
; Sign extend
; Register usage optimized
; ( (signed)ah * (signed)bh ) << 1
; ( al * bl ) << 1
AT94K Series FPSLIC
(1)
117

Related parts for at94k05al-25aqi