LF3320
DEVICES INCORPORATED
Horizontal Digital Image Filter
RIN11-0 or DIN11-0 can be the data
tion of matrix multiplication; a func-
OPERATIONAL MODES
Single Filter Mode
input for Filter B. The Filter B input is
determined by Bit 2 in Configuration
Register 5. DOUT15-0 is the data
output for Filter A. COUT11-0 and
ROUT3-0together form thedata output
for Filter B. COUT11-0 is the twelve
least significant bits and ROUT3-0 is
the four most significant bits of the
16-bit Filter Boutput.
tion that is used when generating
Discrete Cosine Transform coefficients
(DCT)for the purpose offurther
processing.
In this mode, the device operates as a
single FIR filter (see Figure 4). It can be
configured to have as many as 32 taps if
symmetriccoefficient sets are used. If
asymmetriccoefficient sets are used,the
device can be configured to have as
many as 16 taps. Cascade ports are
provided to facilitate cascading multiple
devices to increase the number offilter
taps. Bit 1 in Configuration Register 5
determines the filter mode. In Single
Filter Mode, DIN11-0 is the data input
for the filter and DOUT15-0 is the data
outputfor thefilter.
When configuring the LF3320 for an
[8x8][8x1]matrix-vector operation,the
coefficient banks willrequire 8coeffi-
cient sets to be loaded into the coefficient
memory banks;each coefficient set will
have 8, 12-bit coefficients. The input
data, [8x1]column-vector, willbe loaded
through DIN11-0for Filter A;either
RIN11-0 or DIN11-0 can be the data
input for Filter B. Conversely, when
configured for a [16x16][16x1]
matrix-vectoroperation,thecoefficient
banks will require 16 coefficient sets to
beloaded intothecoefficientmemory
banks; each coefficient set will have 16,
12-bit coefficients. The input data,
[16x1]column-vector,willbe loaded
through DIN11-0.
Matrix-vector Multiply Mode
In this mode, the LF3320 can be
configured to multiply a square matrix
of maximum size N (N = 8 or 16),
multiplied by a matrix-vector of
maximum size [8,1] or [16,1]. The
mathematical representation for this
operation is in Figure 7. When config-
ured in the dual filter mode, the LF3320
can process two matrix-vector multipli-
ers simultaneously (i.e. [8x8][8x1]). In
the single filter mode, the LF3320 can
process a single matrix-vector multiply
(i.e. [16x16][16x1]). This mode of
operation allows the user to organize
data values (e.g. pixels) into an array
(e.g. blocks). This function is useful for
any application requiring the opera-
Dual Filter Mode
In this mode, the device operates as
two separate FIR filters (see Figure 5).
Each filter can be configured to have as
many as 16 taps if symmetric coeffi-
cient sets are used. If asymmetric
coefficient sets are used, each filter can
be configured to have as many as 8
taps. In Dual Filter Mode, DIN11-0 is
the data input for Filter A. Either
To configure the LF3320 for
matrix-vector multiplication,bit 4of
Configuration Register 5must be set to
1 (Table 7). The configuration for
single filter mode or dual filter mode
will still apply. Writing 012H or 016H
to Configuration Register 5 will
configure the device for dual filter
mode,[8x8][8x1]matrix-vector multi-
plication. Subsequently, writing 014H
to Configuration Register 5will
FIGURE 6. MATRIX-VECTOR MULTIPLY MODE
N
12
DIN11-0
configure the device for single filter
RIN11-0
0
0
0
0
A
B
A
B
A
B
A
B
FIGURE 7. MATRIX EQUATION
ALU
ALU
ALU
ALU
TXFRA
TXFRB
C = COEFFICIENTS
D = DATA INPUT
R = DATA OUTPUT
12
COEF (N-1)
R
R
R
0
1
2
C
C
C
00
10
20
C
C
C
01
11
21
C
C
C
02
12
22
C
C
C
0j
1j
2j
D
D
D
0
1
2
N
12
12
12
COEF 2
COEF 1
COEF 0
=
Ri
Ci0
Ci1
Ci2
Cij
Di
(N-1)
=
Ri
Cij Di
i=0
32
For j=0,1,2,...,(N-1)
N=8 or 16
Dual Filter Mode, N=8
Single FIlter Mode, N=16
Video Imaging Products
08/16/2000–LDS.3320-N
2-6