5 Apr 2012 ... Patent Application Publication Oct. 11, 2012 Sheet 1 of 42 US 2012/0259903 A1
xxx nnnnnnn I ..... 1.230 X Wits). 221 ; scaie__\_\nexi:(a'¥, £26} ' Gfiflfi 0580 ...
0.501"-s >< 10" U} ..... M scabs. *trum~:a'te qp wr r l_'____@'" 471.
US 20120259903A1
(19) United States (12) Patent Application Publication (10) Pub. No.: US 2012/0259903 A1 (43) Pub. Date:
KAN et al. (54) ARITHMETIC CIRCUIT, ARITHMETIC
(52)
Oct. 11, 2012
US. Cl. ...................................................... .. 708/497
PROCESSING APPARATUS AND METHOD OF CONTROLLING ARITHMETIC CIRCUIT
(75) Inventors:
Ryuji KAN, Yokohama (JP); Hideyuki Unno, Kawasaki (JP);
(57)
ABSTRACT
Kenichi Kitamura, Kawasaki (JP)
An arithmetic circuit for rounding pre-rounded data includes
FUJITSU LIMITED, KaWasaki-shi (JP)
includes a mantissa of a ?xed-precision ?oating-point num
a ?rst register to store ?rst-format pre-rounded data that
(73) Assignee: (21) Appl. No.: (22) Filed:
(30)
13/439,932
precision data indicative of precision for rounding the pre
Apr. 5, 2012
rounded data, a leading Zero counting unit to count consecu tive Zeros starting from a most signi?cant bit of the mantissa
Foreign Application Priority Data Apr. 8, 2011
(JP) ............................... .. 2011-085881
Publication Classi?cation
(51)
Int. Cl. G06F 7/38
ber using a base-N numbering system, and includes an expo nent for the mantissa, a second register to store rounding
stored in the ?rst register, an exponent generating unit to generate a post-round exponent indicative of an exponent for a rounded signi?cant by subtracting the number of Zeros
counted by the leading Zero counting unit and the rounding precision data from a sum of one and the exponent stored in
the ?rst register, and an output register to store the post-round exponent and a rounding-add value that is to be added to a
(2006.01)
digit at Which rounding is performed.
Number
Positive
-
128
~10E+122 '
“1
MIN Number -§n¥
1
21;
Patent Application Publication
Oct. 11, 2012 Sheet 1 0f 42
gw+m .
EQ Z mwi EH
up!
US 2012/0259903 A1
RHYME; mNTQ. mig
N+mow Yuma” ‘in QMTE.
hmmams?
.wmWtd
mmTIrma
HEM!
@UE mmw w w, m3 N
5l2e/E5@l3aii0/%5r3 ,wwv$mo3‘29w83.?m:2 "E. i .E mg.I2 N ma
mamNmg
X:w?M
? mw2:wi
Q:13%2,N i
mm?m$3 mm:mwww
m a o
m Qr
3Nm?O2 a?mEHmm; o mP aE. E...
mm?ww?Remas
iw m F gnmwwz
wQa2E:3?5 8:2
Patent Application Publication
Oct. 11, 2012 Sheet 3 0f 42
US 2012/0259903 A1
FIGS
2 ‘
8*hyte ‘
‘
sum‘ ‘ EXP,
‘
‘
MANTZSSA V
i
R‘
K
emu
3
V
‘v’
in {421s {3x00
0x60
em
‘
,f\
j
N,’
Patent Application Publication
Oct. 11, 2012 Sheet 5 0f 42
US 2012/0259903 A1
m INPUT-X R?GlSTER
INPUT-N REGISTER
v M1133
"
NTERNAL-FDRM~ GUNVERS i ON C 1 RC8 I T EM
3 NYERMAL—FDRM~ CGNVERS I ON C i RG8 i Y EM
i "F
1! #
EXPDNENT~$ mmnssa
‘* ;
*9
=
"
‘F
Has *1
.0 F
ARiTHMETiC
,
1 38 “Mv/ ~~~~~~~~~~~~~~~~~~~~~~~--
/1
\
SHIFTER I,
140
EXPONENT ADDER
\___\.
‘
'\
WW! 1 39
*\SHIFTER \
_/ w
F137 4@
_,
335 1"“?
"1
=
{31mm
2,141
"
ABSQLUTE~VALUE
\
ADDER
E
x‘
M ‘I’
I
MORMAL l 2m: an: 2%...- m2 GIRCUiiY '0
ROUNDENG H143 CIRCUIT ‘I’
EXTERNAL-“FERN
M4
wenvazsmm rm!’
CIRCUET
GUTPUT-Z N’MS
FIGN5
13a
REGESTER
Patent Application Publication
Oct. 11, 2012 Sheet 6 0f 42
US 2012/0259903 A1
FIG.6 EXPO NENTWX
MANTISSAMX
EXPONENT-Y
2
v
i
GOMPARISON
v
“33mm
‘
“VALUE
cmcurr Ma,
MANTISSA"Y
ADDER
1 ‘.54
151
152
q
1 E
=
0 ‘
"
, 4*‘
SEILECT _ r
“153 i
w
E ;
353% LEADING 25m cnumme 81861111‘
155%
ADDER 358 1 if
u :
"
‘
\
I‘ LEFT-SH i FT
mam? Q
.
l
r x
$ 2
' Q
ADDER * ~~~~~~~~ ~~
Mm
'EXPGNENT
maHvémFz‘ 45?
maxim
i
;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~=
Patent Application Publication
Oct. 11,2012 Sheet80f 42
US 2012/0259903 A1
FIGBA FIGBB
MANTISSA
iNPUT
_, M150
CDNVERSION CIRGUXT
wr
GOUNT INDECATIVE (3F NUMSER OF LEASING ZERQS
’
OUTPLiT
xxxxxxxxxxxxxx
DOGS
Oxxxxxxxxxxxxx
GU31
()Dxxxxxxxxxxxx
{3810
OQQXXXXIXXXXXX
{391i
O???xxxxxxxxxx
{3100
GDOOUxxxxxxxxx
81D?
GDOOOQxxxxxxxx
{311C}
GOODOQGxxxxxxx
{311i
OOGOOUOOXXXXXX
“i900
OGOOOG'GOOXXXXX
‘i801
GQQOOQOQGOXXXX.
301G
GOOOGGOGQGGXXX
31311
someaaoaoasaxx
1 100
QBOGGGOGQGQGOx
110i
GOOGUGODUGOQQQ
111G
Patent Application Publication
Oct. 11, 2012 Sheet 9 0f 42
US 2012/0259903 A1
mom
mw.
w M
w‘b'i l 1% x:a W ~21 .A m
W hr h‘ F x
V mgagEma? mimtE;
m T W‘
M u E? 5:.. w
u,on o‘
X4 ‘a; a, m r2,n W :1‘ QF % w may i m NS.
wmEc?uo
mé$?2u5w7? Wh:5?g3u “E2mGTE;“g s,“
$g“73a6.AEi51n2g?8m
wtmwv m E .7h. T E;
x, 3 F
8E2wa3zmuc? 2 w m.
Patent Application Publication
Oct. 11, 2012 Sheet 12 0f 42
US 2012/0259903 A1
comV,
New. .“
(Zigwo
1woikme