29
32003M–AVR32–09/09
AT32AP7000
7.4
Vector Multiplication Unit (VMU)
Each VMU consists of three multipliers used for multiplying unsigned 8-bit pixel components with
signed 12-bit coefficients.The result from each multiplication is a 20-bit signed number that is
ation is equal to the offsetted vector multiplication given in the following equation:
Figure 7-2.
Inside VMUn (n
∈ {0,1,2})
7.5
Input Pixel Selector
The Input Pixel Selector uses the ISM (Input Selection Mode) field in the CONFIG register and
the three input pixel source addresses given in the PICO operation instructions to decide which
pixels to select for inputs to the VMUs.
7.5.1
Transformation Mode
When the Input Selection Mode is set to Transformation Mode the input pixel source addresses
INx, INy and INz directly maps to three pixels in the INPIXn registers. These three pixels are
then input to each of the VMUs. The following expression then represents what is computed by
the VMUs in Transformation Mode:
7.5.2
Horizontal Filter Mode
In Horizontal Filter Mode the input pixel source addresses INx, INy and INz represents the base
pixel address of a pixel triplet. The pixel triplet {IN(x), IN(x+1), IN(x+2)} is input to VMU0, the
pixel triplet {IN(y), IN(y+1), IN(y+2)} is input to VMU1 and the pixel triplet {IN(z), IN(z+1), IN(z+2)}
vmu_out
coeff0 coeff1 coeff2
vmu_in0
vmu_in1
vmu_in2
offset
+
=
Multiply
Vector Adder
Multiply
VMUn
offsetn
coeffn_1
coeffn_2
coeffn_0
vmun_in0
vmun_in1
vmun_in2
vmun_out
VMU0_OUT
VMU1_OUT
VMU2_OUT
COEFF0_0 COEFF0_1 COEFF0_2
COEFF1_0 COEFF1_1 COEFF1_2
COEFF2_0 COEFF2_1 COEFF2_2
INx
INy
INz
OFFSET0 or VMU0_OUT
OFFSET1 or VMU1_OUT
OFFSET2 or VMU2_OUT
+
=