LF3330
DEVICES INCORPORATED
Vertical Digital Image Filter
LF3330
DEVICES INCORPORATED
Vertical Digital Image Filter
DESCRIPTION
The
LF3330
filters digital images in
the vertical dimension at real-time
video rates. The input and coefficient
data are both 12 bits and in two’s
complement format. The output is
also in two’s complement format and
may be rounded to 16 bits.
The filter is an 8-tap FIR filter with all
required line buffers contained on-
chip. The line buffers can store video
lines with lengths from 4 to 3076
pixels.
Multiple LF3330s can be cascaded
together to create larger vertical
filters.
Due to the length of the line buffers,
interleaved data can be fed directly
into the device and filtered without
separating the data into individual
data streams. The number of inter-
leaved data sets that the device can
handle is limited only by the length of
the on-chip line buffers. If the inter-
leaved video line has 3076 data values
or less, the filter can handle it.
The LF3330 contains enough on-board
memory to store 256 coefficient sets.
The LF Interface
TM
allows all 256
coefficient sets to be updated within
vertical blanking.
Selectable 16-bit data output with
user-defined rounding and limiting
minimizes the constraints put on
coefficient sets for various filter
implementations.
FEATURES
u
83 MHz Data Rate
u
12-bit Data and Coefficients
u
On-board Memory for 256
Coefficient Sets
u
LF Interface
TM
Allows All 256
Coefficient Sets to be Updated
Within Vertical Blanking
u
Selectable 16-bit Data Output with
User-Defined Rounding and
Limiting
u
Seven 3K x 12-bit, Programmable
Two-Mode Line Buffers
u
Separate Input Port for Odd and
Even Field Filtering
u
u
u
u
u
u
8 Filter Taps
Cascadable for More Filter Taps
Supports Interleaved Data Streams
3.3 Volt Power Supply
5 Volt Tolerant I/O
100 Lead PQFP
LF3330 B
LOCK
D
IAGRAM
12
DIN
11-0
3K LINE BUFFER
8-TAP VERTICAL FILTER
256 COEFFICIENT SET STORAGE
3K LINE BUFFER
3K LINE BUFFER
32
12
VB
11-0
3K LINE BUFFER
ROUND
SELECT
LIMIT
CIRCUITRY
OED
16
DOUT
15-0
3K LINE BUFFER
3K LINE BUFFER
3K LINE BUFFER
12
COUT
11-0
OEC
Video Imaging Products
1
11/08/2001–LDS.3330-M
F
IGURE
1.
CEN
8
ACC
Coef Bank 7
4
12
12
24
12
12
12
Coef Bank 6
Coef Bank 5
Coef Bank 4
RSL
3-0
OED
DEVICES INCORPORATED
CA
7-0
SHEN
12
DIN
11-0
12
26
12
24
24
3K Line Buffer
3K Line Buffer
"0"
12
24
3K Line Buffer
LF3330 F
UNCTIONAL
B
LOCK
D
IAGRAM
32
16
LIMIT
16
DOUT
15-0
ROUND
12
24
3K Line Buffer
12
VB
11-0
12
26
12
24
24
3K Line Buffer
3K Line Buffer
12
24
3K Line Buffer
12
12
12
12
OEC
12
COUT
11-0
12
Coef Bank 0
Coef Bank 1
Coef Bank 2
Coef Bank 3
CF
11-0
LD
LF
INTERFACE
PAUSE
CLK
Vertical Digital Image Filter
Video Imaging Products
CONFIGURATION AND
CONTROL REGISTERS
SELECT
2
LF3330
11/08/2001–LDS.3330-M
LF3330
DEVICES INCORPORATED
Vertical Digital Image Filter
F
IGURE
2.
I
NPUT
F
ORMATS
Input Data
11 10 9
–2
11
2
10
2
9
(Sign)
SIGNAL DEFINITIONS
Power
V
CC
and GND
+3.3 V power supply. All pins must be
connected.
Clock
CLK — Master Clock
The rising edge of CLK strobes all
enabled registers.
Inputs
DIN
11-0
— Data Input
DIN
11-0
is the 12-bit registered data
input port. Data is latched on the rising
edge of CLK.
VB
11-0
— Field Filtering Data Input
VB
11-0
is the 12-bit registered data
input port used only when implement-
ing Odd and Even Field Filtering (see
Functional Description section for a full
discussion). Data is latched on the
rising edge of CLK.
CF
11-0
— Coefficient Input
CF
11-0
is used to load data into the
coefficient banks and configuration/
control registers. Data present on
CF
11-0
is latched into the LF Interface
TM
on the rising edge of CLK when LD is
LOW (see the LF Interface
TM
section for
a full discussion).
CA
7-0
— Coefficient Address
CA
7-0
determines which row of data in
the coefficient banks is fed to the
multipliers. CA
7-0
is latched into the
Coefficient Address Register on the
rising edge of CLK when CEN is LOW.
Outputs
DOUT
15-0
— Data Output
DOUT
15-0
is the 16-bit registered data
output port.
Coefficient Data
11 10 9
–2
0
2
–1
2
–2
(Sign)
2 1 0
2
2
2
1
2
0
2 1 0
2
–9
2
–10
2
–11
T
ABLE
1. O
UTPUT
F
ORMATS
SLCT
4-0
00000
00001
00010
S
15
S
14
S
13
F
15
F
14
F
13
F
16
F
15
F
14
F
17
F
16
F
15
···
···
···
···
S
8
F
8
F
9
F
10
S
7
F
7
F
8
F
9
···
···
···
···
S
2
F
2
F
3
F
4
S
1
F
1
F
2
F
3
S
0
F
0
F
1
F
2
·
·
·
01110
01111
10000
·
·
·
·
·
·
·
·
·
···
···
···
·
·
·
·
·
·
···
···
···
·
·
·
·
·
·
·
·
·
F
29
F
28
F
27
F
30
F
29
F
28
F
31
F
30
F
29
F
22
F
21
F
23
F
22
F
24
F
23
F
16
F
15
F
14
F
17
F
16
F
15
F
18
F
17
F
16
COUT
11-0
— Cascade Data Output
COUT
11-0
is a 12-bit cascade
output port. COUT
11-0
on one
device should be connected to
DIN
11-0
of another LF3330.
Controls
LD — Coefficient Load
When LD is LOW, data on CF
11-0
is latched into the LF Interface
TM
on the rising edge of CLK. When
LD is HIGH, data can not be
latched into the LF Interface
TM
.
When enabling the LF Interface
TM
for data input, a HIGH to LOW
transition of LD is required in
order for the input circuitry to
function properly. Therefore, LD
must be set HIGH immediately
after power up to ensure proper
operation of the input circuitry
(see the LF Interface
TM
section for
a full discussion).
F
IGURE
3. A
CCUMULATOR
F
ORMAT
Accumulator Output
31 30 29
–2
20
2
19
2
18
(Sign)
2 1 0
2
–9
2
–10
2
–11
PAUSE — LF Interface
TM
Pause
When PAUSE is HIGH, the LF
Interface
TM
loading sequence is halted
until PAUSE is returned to a LOW
state. This effectively allows the user
to load coefficients and control
registers at a slower rate than the
master clock (see the LF Interface
TM
section for a full discussion).
CEN — Coefficient Address Enable
When CEN is LOW, data on CA
7-0
is
latched into the Coefficient Address
Register on the rising edge of CLK.
When CEN is HIGH, data on CA
7-0
is
not latched and the register’s contents
will not be changed.
Video Imaging Products
3
11/08/2001–LDS.3330-M
LF3330
DEVICES INCORPORATED
Vertical Digital Image Filter
F
IGURE
4. RSL C
IRCUITRY
RSL
3-0
4
DATA IN
32
T
ABLE
2.
BITS
11-0
C
ONFIGURATION
R
EGISTER
0 – A
DDRESS
200H
FUNCTION
Line Buffer Length
DESCRIPTION
See Line Buffer Description Section
T
ABLE
3.
BITS
0
1
2
C
ONFIGURATION
R
EGISTER
1 – A
DDRESS
201H
Line Buffer Mode
Line Buffer Load
Odd and Even Field
Filtering Port Enable
0 : Delay Mode
1 : Recirculate Mode
0 : Normal Load
1 : Parallel Load
0 : VB Port Disabled
1 : VB Port Enabled
0 : VB Line Buffer Disabled
1 : VB Line Buffer Enabled
S15
S0
5
SELECT
32
R0
FUNCTION
DESCRIPTION
32
RND
3
Odd and Even Field
Filtering Line Buffer Enable
11-4
Reserved
Must be set to “0”
T
ABLE
4.
BITS
0
11-1
C
ONFIGURATION
R
EGISTER
2 – A
DDRESS
202H
FUNCTION
Limit Enable
Reserved
DESCRIPTION
0 : Limiting Disabled
1 : Limiting Enabled
Must be set to “0”
L15
L0
32
LIMIT
16
T
ABLE
5.
BITS
0
11-1
C
ONFIGURATION
R
EGISTER
3 – A
DDRESS
203H
FUNCTION
Cascade Mode
Reserved
DESCRIPTION
RSL CIRCUITRY
R15
0 : First Device
1 : Cascaded Device
Must be set to “0”
16
DATA OUT
ACC — Accumulator Control
When ACC is HIGH, the accumulator
is enabled for accumulation and the
accumulator output register is
disabled for loading. When ACC is
LOW, no accumulation is performed
and the accumulator output register
is enabled for loading. ACC is
latched on the rising edge of CLK.
SHEN — Shift Enable
SHEN enables or disables the
loading of data into the input/
cascade registers and the line
buffers. When SHEN is LOW, data
is loaded into the input/cascade
registers and shifted through the
line buffers on the rising edge of
CLK. When SHEN is HIGH, data
can not be loaded into the input/
cascade registers or shifted through
the line buffers and their contents
will not be changed.
RSL
3-0
— Round/Select/Limit Control
RSL
3-0
determines which of the
sixteen user-programmable round/
select/limit registers are used in the
round/select/limit circuitry. A
value of 0 on RSL
3-0
selects round/
select/limit register 0. A value of 1
selects round/select/limit register 1
and so on. RSL
3-0
is latched on the
rising edge of CLK (see the round,
select, and limit sections for a
complete discussion).
OED — DOUT Output Enable
When OED is LOW, DOUT
15-0
is
enabled for output. When OED is
HIGH, DOUT
15-0
is placed in a
high-impedance state.
OEC — COUT Output Enable
When OEC is LOW, COUT
15-0
is
enabled for output. When OEC is
HIGH, COUT
15-0
is placed in a high-
impedance state.
Video Imaging Products
4
11/08/2001–LDS.3330-M
LF3330
DEVICES INCORPORATED
Vertical Digital Image Filter
parallel. This allows all the line buffers
to be preloaded with data in the
amount of time it normally takes to
load a single line buffer.
Odd and Even Field Filtering
The LF3330 is capable of odd and even
field filtering. Bit 2 of Configuration
Register 1 enables the VB Data Input
port required for odd and even field
filtering. Bit 3 of the same configura-
tion register enables the line buffer in
the VB Data path. Line buffer length is
set to the length written to Configura-
tion Register 0. If line buffer parallel
load is enabled and odd and even field
filtering is enabled, the data for the VB
line buffer comes from the VB Data
Input port.
Interleaved Data
The LF3330 is capable of handling
interleaved data. The number of data
sets it can handle is determined by the
number of data values contained in a
video line. If the interleaved video line
has 3076 data values or less, the LF3330
can handle it no matter how many data
sets are interleaved together.
Cascading
A cascade port is provided to allow
cascading of multiple devices for
more filter taps (see Figure 5).
COUT
11-0
of one device should be
connected to DIN
11-0
of another
device. As many LF3330s as desired
may be cascaded together. How-
ever, the outputs of the LF3330s
must be added together with exter-
nal adders.
The first line buffer on a cascaded
device must have its length short-
ened by two delays. This is to
account for the added delays of the
input register on the device and the
cascade output register from the
previous LF3330. If Bit 0 of Con-
figuration Register 3 is set to “1”,
the length of the first line buffer will
be reduced by two. This will make
its effective length the same as the
other line buffers on the device. If
Bit 0 of Configuration Register 3 is
set to “0”, the length of the first line
buffer will be the same as the other
line buffers. When cascading
devices, the first LF3330 should
have Bit 0 of Configuration Register
FUNCTIONAL DESCRIPTION
Line Buffers
The maximum delay length of each line
buffer is 3076 cycles and the minimum
is 4 cycles. Configuration Register 0
(CR
0
) determines the delay length of
the line buffers. The line buffer length
is equal to the value of CR
0
plus 4. A
value of 0 for CR
0
sets the line buffer
length to 4. A value of 3072 for CR
0
sets the line buffer length to 3076. Any
values for CR
0
greater than 3072 are not
valid.
The line buffers have two modes of
operation: delay mode and recirculate
mode. Bit 0 of Configuration Register 1
determines which mode the line buffers
are in. In delay mode, the data input to
the line buffer is delayed by an amount
determined by CR
0
. In recirculate
mode, the output of the line buffer is
routed back to the input of the line
buffer allowing the line buffer contents
to be read multiple times.
Bit 1 of Configuration Register 1 allows
the line buffers to be loaded in parallel.
When Bit 1 is “1”, the input register
(DIN
11-0
) loads all seven line buffers in
F
IGURE
5.
12
DIN
M
ULTIPLE
LF3330
S
C
ASCADED
T
OGETHER
LF3330
LINE BUFFERS
COUT
DIN
LF3330
LINE BUFFERS
COUT
DIN
LF3330
LINE BUFFERS
COUT
DIN
LF3330
LINE BUFFERS
VERTICAL FILTER
VERTICAL FILTER
VERTICAL FILTER
VERTICAL FILTER
RSL
CIRCUIT
RSL
CIRCUIT
RSL
CIRCUIT
RSL
CIRCUIT
LF3347
25
25
RSL
CIRCUIT
16
DATA OUT
29 TAP RESULT
Video Imaging Products
5
11/08/2001–LDS.3330-M