11.07.2015 Views

section 7 - Index of

section 7 - Index of

section 7 - Index of

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

MACSigned Multiply-AccumulateMACTiming: 2+mv oscillator clock cyclesMemory: 1 +mv program wordsExample 2:MAC XO, #3, ABefore ExecutionXO~I _________ $_65_4_32_1 __ ~After ExecutionXOI~ _________ $6_54_32_1 __ ~A~I ____ $_00_:1_00_00_0_:00_0_00_0 __ ~A~I ____ $0_0:_1C_A8_6_4:2_00_00_0 __ ~Explanation <strong>of</strong> Example 2: The content <strong>of</strong> XO ($654321) is multiplied by 2- 3 and thenadded to the content <strong>of</strong> the A accumulator ($00:100000:000000). The result is thenplaced in the A accumulator. The net effect <strong>of</strong> this operation is to divide the content <strong>of</strong>XO by 2 3 and add the result to the accumulator. An alternate interpretation is that XO isright shifted 3 places and filled with the sign bit (0 for a positive number and 1 for a negativenumber) and then the result is added to the accumulator.Instruction Format 2:MAC(±)S,#n,DOpcode 2:23 16 15 8 7 o10 0 0 0 0 0 0 11000 S S ss sl1 1 a a d k 1 01Instruction Fields:S QQ Sign k D dY1 0 0 + 0 A 0XO 0 1 1 B 1YO 1 0X1 1 1

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

Saved successfully!

Ooh no, something went wrong!