
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































Floating Point AdderUnit
Abus Bbus
Cbus Flags
Add/SubLatch
DriveAsel
Phi2Phi
FloatingPoint Adder
A_Main B- Main Add_or_sbub LatchPhi DrivePhi Asel C_Main A_Out Flags
entity Floating_Point_Adder is port (A_Main : in BIT_VECTOR; B_Main : in BIT_VECTOR; C_Main : out BIT_VECTOR; A_Out: out BIT_VECTOR; Flags : out BIT_VECTOR; Add_or_sub : in BIT; Latch : in BIT; Drive : in BIT; Phi1 : in BIT; Phi2 : in BIT; Asel : in BIT ); end Floating_Point_Adder;
INPUT LATCHES
Add Mantissas Normalize Result
RESULT LATCHES OUTPUT DRIVERS
Input Adjust
A/S
Round according to selected scheme
b1: block ((Phi2 and Latch) = '1') begin A_temp <= guarded A_Main; B_temp(63) <= guarded Add_or_sub xor B_Main(63); end block;^ B_temp(62 downto 0) <= guarded B_Main(62 downto 0); b2: block (Phi1 = '1') begin signa <= guarded A_temp(63); signb <= guarded B_temp(63); expa <= guarded A_temp(62 downto 52); expb <= guarded B_temp(62 downto 52); mana <= guarded A_temp(51 downto 0); end block;^ manb^ <= guarded B_temp(51 downto 0);
signout <= signa; exp_round <= expa; man_round <= '0' & A_temp;
Processing^ MantissaLogic
Amantissa Bmantissa
M>M=M<MA0MB 0 EA0•MA0 (^) selR^ EA0 & Aman L 2-1 Mux^ Aman & 0 R^ EB0 & Bman Bman & 0 EB0•MB E>+(E=•M>) Swap 2x2 crossbars elements
selR L 2-1 Mux R
EA1+EB1 selR L 2-1 Mux R^ "Zero"^ selR L 2-1 Mux R"Nan" Cntrl Eq Shift Dist LinearShifter^ Right SignA xor SignB^ selR^ L^ 2-1 Mux^ R ADDER
ProcessingExponentLogic
Aexp Bexp
Larger Exp Shif t DistE>E=E<EA0EA1EB 0EB 1 (to Norm Unit)
Asign Bsign
2-1Mux (^) (E> + (E=•M>)) Sign Out (63)to output latch
Adder Output (to normalize unit)
Ex0 Mx0 Mx0 Ex0*Mx Select R Select L 0 0 1 0 0 1 0 0 1 0 1 0 1 1 0 1 denorm
normNaN 0
infinity