11.07.2015 Views

section 7 - Index of

section 7 - Index of

section 7 - Index of

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

MACR Signed Multiply-Accumulate and Round MACRExplanation <strong>of</strong> Example 1: Prior to execution, the 24-bit XO register contains the value$123456 (0.142222166), the 24-bit YO register contains the value $123456(0.142222166), and the 56-bit B accumulator contains the value $00:100000:000000(0.125). The execution <strong>of</strong> the MACR XO,YO,B instruction multiples the 24-bit signed valuein the XO register by the 24-bit signed value in the YO register, adds the resulting productto the 56-bit B accumulator, rounds the result into the B1 portion <strong>of</strong> the accumulator, andthen zeros the BO portion <strong>of</strong> the accumulator (XO*YO+B=0.145227144519197 approximately=$00:1296CD:9619C8, which is rounded to the value$00:1296CE:000000=0.145227193832397=B).Condition Codes:15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0IlF I DM I T I.. I S1 I SO I 11 I 10 I s I L E I u I N I z vCCA I ~I41( MA .....S - Computed according to the definition in A.5 CONDITION CODE COMPUTATIONL - Set if limiting (parallel move) or overflow has occurred in resultE - Set if the signed integer portion <strong>of</strong> A or B result is in useU - Set if A or B result is unnormalizedN - Set if bit 55 <strong>of</strong> A or B result is setZ- Set if A or B result equals zeroV - Set if overflow has occurred in A or B resultNote: The definitions <strong>of</strong> the E and U bits vary according to the scaling mode being used.Refer to Section A.5 for complete details.Instruction Format 1:MACR (±)S1,S2,0MACR (±)S2,S 1 ,0Opcode 1:23DATA BUS MOVE FIELD8 7 4 3I 1 Q Q Q I d kOPTIONAL EFFECTIVE ADDRESS EXTENSIONo

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!