section 7 - Index of

section 7 - Index of section 7 - Index of

11.07.2015 Views

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 of Example 2: The content of XO ($654321) is multiplied by 2- 3 and thenadded to the content of the A accumulator ($00:100000:000000). The result is thenplaced in the A accumulator. The net effect of this operation is to divide the content ofXO 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

MACSigned Multiply-AccumulateMACTiming: 2 oscillator clock cyclesMemory: 1 program wordn sssss constant1 00001 0100000000000000000000002 00010 0010000000000000000000003 00011 0001000000000000000000004 00100 0000100000000000000000005 00101 0000010000000000000000006 00110 0000001000000000000000007 00111 0000000100000000000000008 01000 0000000010000000000000009 01001 00000000010000000000000010 01010 00000000001000000000000011 01011 00000000000100000000000012 01100 00000000000010000000000013 01101 00000000000001000000000014 01110 00000000000000100000000015 01111 00000000000000010000000016 10000 00000000000000001000000017 10001 00000000000000000100000018 10010 00000000000000000010000019 10011 00000000000000000001000020 10100 00000000000000000000100021 10101 00000000000000000000010022 10110 00000000000000000000001023 10111 000000000000000000000001

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!