General Operation; Infinite Impulse Response (Iir) Filter; Four-Tap Fir Filter - Motorola ColdFire MCF5281 User Manual

Motorola microcontroller user's manual
Table of Contents

Advertisement

Here, the output y(i) is determined by past output values and past input values. This is the
general form of an infinite impulse response (IIR) filter. A finite impulse response (FIR)
filter can be obtained by setting coefficients a(k) to zero. In either case, the operations
involved in computing such a filter are multiplies and product summing. To show this point,
reduce the above equation to a simple, four-tap FIR filter, shown in Figure 3-3, in which
the accumulated sum is a sum of past data values and coefficients.
3
y i ( )
b k ( )x i k
=
k
=
0
3.3

General Operation

The MAC speeds execution of ColdFire integer multiply instructions (MULS and MULU)
and provides additional functionality for multiply-accumulate operations. By executing
MULS and MULU in the MAC, execution times are minimized and deterministic
compared to the 2-bit/cycle algorithm with early termination that the OEP normally uses if
no MAC hardware is present.
The added MAC instructions to the ColdFire ISA provide for the multiplication of two
numbers, followed by the addition or subtraction of the product to or from the value in an
accumulator. Optionally, the product may be shifted left or right by 1 bit before addition or
subtraction. Hardware support for saturation arithmetic can be enabled to minimize
software overhead when dealing with potential overflow conditions. Multiply-accumulate
operations support 16- or 32-bit input operands of the following formats:
• Signed integers
• Unsigned integers
• Signed, fixed-point, fractional numbers
The EMAC is optimized for single-cycle, pipelined 32x32 multiplications. For word- and
longword-sized integer input operands, the low-order 40 bits of the product are formed and
used with the destination accumulator. For fractional operands, the entire 64-bit product is
calculated and either truncated or rounded to the most-significant 40-bit result using the
round-to-nearest (even) method before it is combined with the destination accumulator.
MOTOROLA
N 1
y i ( )
k ( )y i k
(
=
a
k
=
1
Figure 3-2. Infinite Impulse Response (IIR) Filter
(
)
b 0 ( )x i ( )
=
Figure 3-3. Four-Tap FIR Filter
Chapter 3. Enhanced Multiply-Accumulate Unit (EMAC)
N 1
)
k ( )x i k
+
b
k
=
0
b 1 ( )x i 1
(
)
b 2 ( )x i 2
+
+
General Operation
(
)
(
)
b 3 ( )x i 3
(
+
)
3-3

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfire mcf5282

Table of Contents