GF9330 High Performance HDTV/SDTV Deinterlacer DATA SHEET DEVICE OVERVIEW • 10/8-bit progressive scan output up to 1080p60 The GF9330 is a 10-bit high performance VDSP engine that performs high quality motion adaptive de-interlacing of interlaced digital video signals. The GF9330 supports standard definition (SDTV) and high definition (HDTV) signal formats and clock rates up to 1080p60 with support for arbitrary display modes. • support for multiplexed and non-mutiplexed Y/C video • multi-directional edge detection processing • adaptive inter-field motion detection • seamless interface to Gennum's GF9331 motion co-processor • fully configurable to support custom video modes • 3:2 film mode operation for HDTV/SDTV inputs • programmable noise reduction and detail enhancement • de-interlace, pass-through and film rate down conversion modes of operation • seamless interface to popular ADCs and NTSC/PAL decoders • ability to extract HVF information from embedded TRS • selectable rounding and clipping of output data • selectable blanking of active video lines • HVF output signals with programmable output video cropping • serial/parallel host interface The GF9330 integrates all required line delays and seamlessly interfaces to off chip SDRAMs that form the required field delays. The device may also operate in by-pass mode should no processing of the input signal be desired. • 3.3V supply for device I/O and 2.5V for core logic • 5V tolerant inputs APPLICATIONS • HDTV Up/Down Converters • Production Equipment • Video Walls • Projection Systems • Plasma Displays • LCD TVs • Home Theatre Systems • HD DVD Players The GF9330 uses multi-directional adaptive filters for edge processing, an adaptive vertical motion filter and an adaptive inter-field motion filter. The GF9330 features detail enhancement and noise reduction capabilities. The GF9330 also supports 3:2 pull-down, static/freeze-frame detection and compensation and film rate conversions. The GF9330 may operate as a stand-alone de-interlacer or may be used with the GF9331 Motion Co-processor to enable higher quality HD/SD de-interlacing with edge and vertical motion detection. The two devices can be configured in tandem such that the GF9331 sends edge detection and vertical motion filter control information to the GF9330. These control signals adaptively switch the GF9330's internal filters on a pixel-by-pixel basis. ORDERING INFORMATION PART NUMBER PACKAGE TEMP RANGE GF9330-CBP 328 PIN BGA 0°C to 70°C Control bus from GF9331 Timing Generator 3:2 Pulldown Detector Edge Adaptive Interpolator Y/C Input Processing Noise Reducer Detail Enhancer Vertical Motion Adaptive Interpolator Selector Output Processing Processed Y/C Inter-field Motion Adaptive Interpolator Field Merging Host Interface Inter-field Motion Detector External Memory Interface BLOCK DIAGRAM Revision Date: October 2002 Document No. 18283 - 3 GENNUM CORPORATION P.O. Box 489, Stn. A, Burlington, Ontario, Canada L7R 3Y3 Tel. +1 (905) 632-2996 Fax. +1 (905) 632-5946 E-mail: [email protected] www.gennum.com GF9330 FEATURES 2 3 4 5 6 7 8 9 RESET S2_DAT0 S2_DAT2 S2_DAT4 S2_DAT8 S2_DAT12 S2_DAT16 S2_DAT20 S2_DAT25 S2_DAT29 S2_DAT36 S2_CLK S2_DAT44 S2_ADDR0 S2_ADDR4 S2_ADDR8 S2_ADDR12 S2_CS S2_WE VCLK_OUT Y_IN9 S2_DAT1 S2_DAT3 S2_DAT5 S2_DAT9 S2_DAT13 S2_DAT17 S2_DAT21 S2_DAT26 S2_DAT30 S2_DAT35 S2_DAT39 S2_DAT43 S2_DAT47 S2_ADDR3 S2_ADDR7 S2_ADDR11 S2_CAS S2_RAS LOCK_32 Y_IN8 Y_IN7 Y_IN6 S2_DAT6 S2_DAT10 S2_DAT14 S2_DAT18 S2_DAT22 S2_DAT27 S2_DAT31 S2_DAT34 S2_DAT38 S2_DAT42 S2_DAT46 S2_ADDR2 S2_ADDR6 S2_ADDR10 S2_ADDR13 XSEQ1 XSEQ0 Y_IN5 Y_IN4 Y_IN3 S2_DAT7 S2_DAT11 S2_DAT15 S2_DAT19 S2_DAT23 S2_DAT28 S2_DAT32 S2_DAT33 S2_DAT37 S2_DAT41 S2_DAT45 S2_ADDR1 S2_ADDR5 S2_ADDR9 Y1_OUT11 XSEQ3 XSEQ2 Y_IN2 Y_IN1 Y_IN0 HOST_EN GND VDD_INT VDD_IO S2_DAT24 GND VDD_IO GND VDD_INT S2_DAT40 GND VDD_IO GND NC Y1_OUT8 Y1_OUT9 Y1_OUT10 VCLK_IN MODE2 MODE1 MODE0 VDD_CLKD VDD_INT VDD_IO GND VDD_IO VDD_INT Y1_OUT4 Y1_OUT5 Y1_OUT6 Y1_OUT7 SER_MD STD4 STD3 STD2 VSS_CLKD VDD_INT GND VDD_INT Y1_OUT0 Y1_OUT1 Y1_OUT2 Y1_OUT3 GND Y2_OUT8 Y2_OUT9 Y2_OUT10 Y2_OUT11 Y2_OUT5 Y2_OUT6 Y2_OUT7 Y2_OUT2 Y2_OUT3 C1_OUT11 C1_OUT10 1 10 11 12 13 14 15 16 17 18 19 20 A GF9330 B C D E F TOP VIEW GF9330 PIN OUT G MEMCLK_IN STD1 STD0 XVOCLK_SL GND GND XVOCLK_IN LOCK_22 C_IN9 C_IN8 VDD_IO TGND TGND TGND TGND VDD_IO Y2_OUT4 C_IN7 C_IN6 C_IN5 C_IN4 GND TGND TGND TGND TGND GND NC C_IN0 C_IN1 C_IN2 C_IN3 VDD_INT TGND TGND TGND TGND GND NC FIL_SEL0 FIL_SEL1 FIL_SEL2 FIL_SEL3 GND TGND TGND TGND TGND VDD_IO C1_OUT9 C1_OUT8 C1_OUT7 C1_OUT6 FVH_EN F_IN V_IN H_IN VDD_IO GND C1_OUT5 C1_OUT4 C1_OUT3 C1_OUT2 CS R_W FF_EN GND GND VDD_INT C1_OUT1 C1_OUT0 VDD_IO VDD_INT GND 328 BGA H J Y2_OUT1 K Y2_OUT0 L M N A_D GND C2_OUT11 C2_OUT10 P DAT_IO4 DAT_IO5 DAT_IO6 DAT_IO7 NC VDD_INT VDD_IO DAT_IO0 DAT_IO1 DAT_IO2 DAT_IO3 GND VDD_INT VDD_IO S1_DAT41 GND TDI GND GND GND S1_ADDR6 S1_ADDR2 S1_DAT46 S1_DAT42 S1_DAT37 S1_DAT34 TCLK TMS S1_ADDR10 S1_ADDR7 S1_ADDR3 S1_DAT47 S1_DAT43 S1_DAT38 GND S1_RAS S1_CAS S1_ADDR11 S1_ADDR8 S1_ADDR4 S1_ADDR0 S1_DAT44 GND S1_WE S1_CS S1_ADDR12 S1_ADDR9 S1_ADDR5 S1_ADDR1 S1_DAT45 C2_OUT8 C2_OUT7 C2_OUT6 NC C2_OUT5 C2_OUT4 C2_OUT3 C2_OUT9 R VDD_IO GND VDD_INT S1_DAT25 GND VDD_IO S1_DAT33 S1_DAT29 S1_DAT24 S1_DAT20 S1_DAT16 S1_DAT12 S1_DAT8 C2_OUT2 C2_OUT1 C2_OUT0 S1_DAT35 S1_DAT32 S1_DAT28 S1_DAT23 S1_DAT19 S1_DAT15 S1_DAT11 S1_DAT7 S1_DAT4 F_OUT H_OUT S1_DAT39 S1_DAT36 S1_DAT31 S1_DAT27 S1_DAT22 S1_DAT18 S1_DAT14 S1_DAT10 S1_DAT6 S1_DAT3 S1_DAT1 V_OUT S1_DAT40 S1_CLK S1_DAT30 S1_DAT26 S1_DAT21 S1_DAT17 S1_DAT13 S1_DAT9 S1_DAT5 S1_DAT2 S1_DAT0 TDO T U S1_ADDR13 V W Y GND/TGND: 0V VDD_IO: +3.3V VDD_INT: +2.5V NC: No Connection Fig.1 Top View Pin Out 328 BGA 2 GENNUM CORPORATION 18283 - 3 PIN DESCRIPTIONS PIN GRID TYPE DESCRIPTION RESET A1 I Active low, asynchronous RESET. Resets all internal logic to default conditions. Should be applied on power up. VCLK_IN F1 I Video input clock. When the input is SDTV the input clock will be 27, 36, 54 or 72MHz. When the input format is HDTV, the input clock will be 74.25 or 74.25/1.001MHz. MEMCLK_IN H1 I Memory clock for SDRAM operation to support HD modes, 90MHz input (supplied by an off-chip crystal oscillator). XVOCLK_IN J1 I External video output clock. This input may be used instead of the internal VCLK_IN clock doubler to supply the video output clock VCLK_OUT. XVOCLK_SL H4 I Control signal input. When high, selects XVOCLK_IN; when low, selects the internal VCLK_IN clock doubler for generation of the video output VCLK_OUT signal. Y_IN[9:0] B1,C1,C2,C3,D1, D2,D3,E1,E2,E3 I 10/8-bit input bus for separate luminance or multiplexed luminance and colour difference video data. When supplying 8-bit data to the GF9330, Y_IN[1:0] will be set low and the 8-bit data supplied to Y_IN[9:2]. C_IN[9:0] J3,J4,K1,K2,K3, K4,L4,L3,L2,L1 I 10/8-bit input bus for colour difference for video data. When supplying 8-bit data to the GF9330, C_IN[1:0] will be set low and the 8-bit data supplied to C_IN[9:2]. FIL_SEL[3:0] M4,M3,M2,M1 I Filter selection control bus. FIL_SEL[3:0] are used to switch the GF9330’s internal directional filters on a pixel by pixel basis. FIL_SEL[3:0] is supplied by the GF9331. F_IN N2 I Video timing control. F_IN identifies the ODD and EVEN fields in the incoming video signal. F_IN will be low in Field 1 and high in Field 2. V_IN N3 I Video timing control. V_IN represents the vertical blanking signal associated with the incoming video signal. V_IN is high during the vertical blanking interval and low during active video. H_IN N4 I Video timing control. H_IN represents the horizontal blanking signal associated with the incoming video signal. H_IN is high during horizontal blanking and low during active video. FVH_EN N1 I Control signal input. When high, the F_IN, V_IN, and H_IN input pins will be used for video data signalling. When low, embedded TRS’s will be detected for video data timing. FF_EN P4 I Control signal input. When high, FF_EN enables the GF9330’s internal freeze frame compensation. See Section 11.4. LOCK_22 J2 I Control signal input. For 2:2 pull-down compensation, the LOCK_22 pin will be used to identify the presence of a 2:2 sequence in the input video stream. STD[4:0] G2,G3,G4,H2,H3 I Video format definition. Defines the video standard when operating without the host interface. See Table 1. MODE[2:0] F2,F3,F4 I Operating mode selection. Defines the mode of operation when operating without the host interface. See Section 9. HOST_EN E4 I Host interface enable. When set high, the GF9330 will be configured through the host interface. On a high to low transition of HOST_EN the GF9330 will replace all register settings in the host interface with the values present on the external pins of the device including: STD[4:0], MODE[2:0], FVH_EN, FF_EN and XVOCLK_SL. GF9330 SYMBOL 3 GENNUM CORPORATION 18283 - 3 PIN DESCRIPTIONS (Continued) PIN GRID TYPE DESCRIPTION SER_MD G1 I Host interface mode selection. Enables serial mode operation when high. Enables parallel mode operation when low. CS P2 I Functions as an active low chip select input for host interface parallel mode operation. Functions as a serial clock input for host interface serial mode operation. DAT_IO[7:0] R4,R3,R2,R1,T4,T3, T2,T1 I/O R_W P3 I Host interface Read/Write control for parallel mode. A read cycle is defined when high, a write cycle is defined when low. A_D P1 I Host interface Address/Data control for parallel mode. The data bus contains an address when high, a data word when low. In serial mode, this pin serves as the chip select (active low). VCLK_OUT A20 O Video output clock. Output frequency based on selected output standard. See Section 9. Y1_OUT[11:0] D18,E20,E19,E18, F20,F19,F18,F17, G20,G19,G18,G17 O Output data bus for separate luminance or multiplexed luminance and colour difference video data. See Section 10.2. Y2_OUT[11:0] H20,H19,H18,H17, J20,J19,J18,J17,K20, K19,K18,L18 O Output data bus for luminance video data during dual pixel mode operation. See Section 10.2. C1_OUT[11:0] L19,L20,M17,M18, M19,M20,N17,N18, N19,N20,P17,P18 O Output data bus for colour difference video data. See Section 10.2. C2_OUT[11:0] P19,P20,R17,R18, R19,R20,T18,T19, T20,U18,U19,U20 O Output data bus for colour difference video data during dual pixel mode operation. See Section 10.2. LOCK_32 B20 O Control signal output. When the GF9330’s internal algorithm detects a 3:2 sequence in the video stream the LOCK_32 signal is set high. Otherwise, LOCK_32 is low. XSEQ[3:0] D19,D20,C19,C20 I/O Control signal input/output. For external 3:2 sequence detection, the XSEQ[3:0] pins will be used to provide the 3:2 sequence information. For internal 3:2 detection the XSEQ[3:0] pins output the detected 3:2 sequence information. See Figure 11. H_OUT V20 O Output control signal. H_OUT is high during horizontal blanking. F_OUT V19 O Output control signal. F_OUT is low during field 1 and high during during field 2. V_OUT W20 O Output control signal. V_OUT is high during vertical blanking. S1_CLK Y10 O SDRAM bank 1 clock. S1_CS Y3 O Active low SDRAM chip select for Field Buffer 1. S1_RAS W2 O Active low SDRAM row address strobe for Field Buffer 1. S1_CAS W3 O Active low SDRAM column address strobe for Field Buffer 1. S1_WE Y2 O Active low SDRAM write enable for Field Buffer 1. S1_ADDR[13:0] V3,Y4,W4,V4,Y5,W5, V5,U5,Y6,W6,V6, U6,Y7,W7 O SDRAM address for Field Buffer 1. GF9330 SYMBOL Host interface bi-directional data bus for parallel mode. In serial mode, DAT[7] serves as the serial data output pin and DAT[0] serves as the serial data input pin. 4 GENNUM CORPORATION 18283 - 3 PIN DESCRIPTIONS (Continued) PIN GRID TYPE DESCRIPTION S1_DAT[47:0] V7,U7,Y8,W8,V8, U8,T8,Y9,W9,V9, U9,W10,V10,U10, U11,V11,W11,Y11, U12,V12,W12,Y12, T13,U13,V13,W13, Y13,U14,V14,W14, Y14,U15,V15,W15, Y15,U16,V16,W16, Y16,U17,V17,W17, Y17,V18,W18,Y18, W19,Y19 I/O SDRAM data for Field Buffer 1. S2_CLK A12 O SDRAM bank 2 clock. S2_CS A18 O Active low SDRAM chip select for Field Buffer 2. S2_RAS B19 O Active low SDRAM row address strobe for Field Buffer 2. S2_CAS B18 O Active low SDRAM column address strobe for Field Buffer 2. S2_WE A19 O Active low SDRAM write enable for Field Buffer 2. S2_ADDR[13:0] C18,A17,B17,C17, D17,A16,B16,C16, D16,A15,B15,C15, D15,A14 O SDRAM address for Field Buffer 2. S2_DAT[47:0] B14,C14,D14,A13, B13,C13,D13,E13, B12,C12,D12,A11, B11,C11,D11,D10, C10,B10,A10,D9, C9,B9,A9,E8,D8,C8, B8,A8,D7,C7,B7, A7,D6,C6,B6,A6, D5,C5,B5,A5,D4, C4,B4,A4,B3,A3, B2,A2 I/O SDRAM data for Field Buffer 2. TDI U1 I JTAG data input; connect to GND if not used. TMS V2 I JTAG mode select; connect to GND if not used. GF9330 SYMBOL 5 GENNUM CORPORATION 18283 - 3 PIN DESCRIPTIONS (Continued) PIN GRID TYPE TCLK V1 I JTAG test clock; connect to GND if not used. TDO Y20 O JTAG data output. VDD_CLKD F5 NA 2.5V supply for the internal clock doubler. VSS_CLKD G5 NA Ground connection for the internal clock doubler. VDD_IO E7,E10,E15,F7,F15, J5,J16,M16,N5,R7, R15,T7,T10,T15 NA 3.3V supply. VDD_INT E6,E12,F6,F16, G6,G16,L5,P16,R6, R16,T6,T12 NA 2.5V supply. GND / TGND E5,E9,E11,E14,E16, F14,G15,H5,H6, H16,K5,K16,L16, M5,N16,P5,P6,P15, T5,T9,T11,T14,T16, J9,J10,J11,J12, K9,K10,K11,K12, L9,L10,L11,L12, M9,M10,M11,M12, U2,U3,U4,W1,Y1 NA Device ground / Thermal ground (electrically equivalent). NC E17,K17,L17,R5,T17 DESCRIPTION GF9330 SYMBOL No connection. 6 GENNUM CORPORATION 18283 - 3 ELECTRICAL CHARACTERISTICS ABSOLUTE MAXIMUM RATINGS SYMBOL VALUE Input cells used in the design are able to withstand 3.3V or 5V CMOS input signals without degrading performance or long-term reliability as well as TTL compatible inputs. Device I/O Supply Voltage VDDIO -0.5 to tbd V Device Core Supply Voltage VDDCORE -0.5 to tbd V ESD Tolerance VIN -0.5 < VIN < +4.6V GF9330 has 2kV ESD protection. ESD testing is done in accordance with Gennum’s standard ESD testing procedure. Input Voltage Range (any input) Operating Temperature Range TA 0°C < TA < 70°C 3.3V Supply for Device I/0 and 2.5V for Core Logic Storage Temperature Range TS -40°C < TS < 125°C The GF9330 operates from a single +3.3V supply for device I/O, and a single +2.5V supply for core logic. Lead Temperature (soldering 10 seconds) 260°C DC ELECTRICAL CHARACTERISTICS VDDIO = 3.0 to 3.6V, VDDCORE = 2.25 to 2.75V, TA = 0 to 70°C, unless otherwise shown PARAMETER CONDITIONS SYMBOL MIN TYP MAX UNITS NOTES VDDIO +3.0 +3.3 +3.6 V 1 VDDCORE +2.25 +2.5 +2.75 V 1 VDDIO=3.3V ΙDDIO - 70 - mA 1 VDDCORE=2.5V ΙDDCORE - 445 - mA 1 ΙIN=0V or ΙIN=VDD ΙLEAK - - 10 µA 1 Tristate Leakage Current ΙTRILEAK - - 10 µA Input Logic LOW Voltage VIL - - 0.8 V 1 Input Logic HIGH Voltage VIH 2.1 - - V 1 Device I/O Supply Voltage Device Core Supply Voltage Device I/O Supply Current Device Core Supply Current Input Leakage Current Output Logic LOW Voltage ΙOL= 4mA VOL - 0.2 0.4 V 1 Output Logic HIGH Voltage ΙOH= -4mA VOH 2.7 - - V 1 NOTES: 1. Production test and QA are performed at room temperature. 7 GENNUM CORPORATION 18283 - 3 GF9330 PARAMETERS 5V Tolerant Inputs AC ELECTRICAL CHARACTERISTICS - Video V ideo Interfaces The Video Interface signals include VCLK, Y_IN[9:0}, C_IN[9:0}, FIL_SEL[3:0], F_IN, V_IN, H_IN, FVH_EN, FF_EN, LOCK_22, Y1_OUT[11:0], Y2_OUT[11:0], C1_OUT[11:0], C2_OUT[11:0], LOCK_32, XSEQ[3:0], H_OUT, F_OUT and V_OUT. VDDIO = 3.0 to 3.6V, VDDCORE = 2.25 to 2.75V, TA = 0 to 70°C, unless otherwise shown PARAMETER CONDITIONS MIN TYP MAX UNITS NOTES Clock Input Frequency FHSCI - 74.25 83 MHz 1, 2 Input Data Setup Time tSU 2.5 - - ns 1, 3 Input Data Hold Time tIH 1.5 - - ns 1, 3 40 - 60 % 1 Input Clock Duty Cycle Output Data Delay Time VDDIO=3.6V, CL=15pF load tOD - - 10.0 ns 1 Output Data Hold Time VDDIO=3.6V, CL=15pF load tOH 2.0 - - ns 1 Output Enable Time VDDIO=3.6V, CL=15pF load tOEN - - 10 ns 1 Output Disable Time VDDIO=3.6V, CL=15pF load tODIS - - 10 ns 1 Output Data Rise/Fall Time VDDIO=3.6V, CL=15pF load tODRF - - 2.0 ns 1, 4 GF9330 SYMBOL NOTES: 1. Based on simulation results, verified during device characterization process. 2. Also supports 74.25/1.001MHz. 3. 50% levels. 4. 20% to 80% levels. 8 GENNUM CORPORATION 18283 - 3 AC ELECTRICAL CHARACTERISTICS - SDRAM Interfaces The SDRAM 1 Interface signals include S1_CLK, S1_CS, S1_RAS, S1_CAS, S1_WE, S1_ADDR[13:0] and S1_DAT[47:0]. The SDRAM 2 Interface signals include S2_CLK, S2_CS, S2_RAS, S2_CAS, S2_WE, S2_ADDR[13:0] and S2_DAT[47:0]. VDDIO = 3.0 to 3.6V, VDDCORE = 2.25 to 2.75V, TA = 0 to 70°C, unless otherwise shown PARAMETER CONDITIONS MIN TYP MAX UNITS NOTES FHSCI_SD - 85 90 MHz 1 Input Data Setup Time tSU_SD 2.0 - - ns 1, 2 Input Data Hold Time tIH_SD 2.5 - - ns 1, 2 40 - 60 % 1 Input Clock Duty Cycle Output Data Delay Time VDDIO=3.6V, CL=15pF load tOD_SD - - 9.1 ns 1 Output Data Hold Time VDDIO=3.6V, CL=15pF load tOH_SD 2.0 - - ns 1 Output Enable Time VDDIO=3.6V, CL=15pF load tOEN_SD - - 20 ns 1, 4 Output Disable Time VDDIO=3.6V, CL=15pF load tODIS_SD - - 20 ns 1, 4 Output Data Rise/Fall Time VDDIO=3.6V, CL=15pF load tODRF_SD - - 2.0 ns 1, 3 GF9330 SYMBOL Clock Input Frequency NOTES: 1. Based on simulation results, verified during device characterization process. 2. 50% levels. 3. 20% to 80% levels. 4. Two clock cycles allocated for data bus turnaround. AC ELECTRICAL CHARACTERISTICS - Host Interface The host interface signals include HOST_EN, SER_MD, CS, DAT_IO[7:0], R_W and A_D. VDDIO = 3.0 to 3.6V, VDDCORE = 2.25 to 2.75V, TA = 0 to 70°C, unless otherwise shown. PARAMETER CONDITIONS SYMBOL MIN TYP MAX UNITS NOTES Clock Input Frequency FHSCI_HI - - 20 MHz 1 Input Data Setup Time tSU_HI 5 - - ns 1, 2 Input Data Hold Time tIH_HI 1.5 - - ns 1, 2 40 - 60 % 1 Input Clock Duty Cycle Output Data Delay Time VDDIO=3.6V, CL=15pF load tOD_HI - - 10.0 ns 1 Output Data Hold Time VDDIO=3.6V, CL=15pF load tOH_HI 2.0 - - ns 1 Output Enable Time VDDIO=3.6V, CL=15pF load tOEN_HI - - 15 ns 1 Output Disable Time VDDIO=3.6V, CL=15pF load tODIS_HI - - 15 ns 1 Output Data Rise/Fall Time VDDIO=3.6V, CL=15pF load tODRF_HI - - 2.0 ns 1, 3 NOTES: 1. Based on simulation results, verified during device characterization process. 2. 50% levels. 3. 20% to 80% levels. 9 GENNUM CORPORATION 18283 - 3 DETAILED DEVICE DESCRIPTION 1. SUPPORTED INPUT VIDEO FORMATS GF9330 The GF9330 supports multiple input data formats with multiplexed or separate Y/C channels. Data is supplied to the GF9330 through the Y_IN[9:0] and the C_IN[9:0] busses. Table 1 outlines the data formats that are supported according to the setting of the control register bits STD[4:0] Note: For all progressive video standards the GF9330 must be manually set to bypass mode (MODE[2:0] = 111). See Section 5 for details. TABLE 1: Encoding of STD[4:0] for Selecting Input Data Format DESCRIPTION STD STD[4:0] 0 00000 525i (30/1.001) component SMPTE 125M.. Multiplexed Y Cb Cr data applied to Y_IN. C_IN is set low. Note: Input clock is 27MHz. 1 00001 RESERVED. 2 00010 525i (30/1.001) component 16x9 SMPTE 267M. Multiplexed Y Cb Cr data applied to Y_IN. C_IN is set low. Note: Input clock is 36MHz. 3 00011 RESERVED 4 00100 625i (25Hz) component EBU tech. 3267E.. Multiplexed Y Cb Cr data applied to Y_IN. C_IN is set low. Note: Input clock is 27MHz. 5 00101 RESERVED 6 00110 625i (25Hz) component 16x9 ITU-R BT.601-5 Part B. Multiplexed Y Cb Cr data applied to Y_IN. C_IN is set low. Note: Input clock is 36MHz. 7 00111 RESERVED 8 01000 525p (60/1.001Hz) SMPTE 293M. Y Cb Cr data stream applied to Y_IN. C_IN is set low. Note: Input clock is 54MHz. 9 01001 RESERVED 10 01010 RESERVED 11 01011 RESERVED 12 01100 625p (50Hz) ITU-R BT.1358.. Y Cb Cr data stream applied to Y_IN. C_IN is set low. Note: Input clock is 54MHz. 13 01101 625p (50Hz) 16 x 9 with 18MHz sampling. Y Cb Cr data stream applied to Y_IN. C_IN is set low. Note: Input clock is 72MHz. 14 01110 Generic SD input data format with 4:1:1 sampling. Y Cb Cr data is applied to both Y_IN and C_IN. Externally supplied F_IN, V_IN and H_IN signals are used to synchronize the input data stream. Note: Input clock is 27MHz. 15 01111 Generic SD input data format with 4:2:2 sampling and single multiplexed Y Cb Cr input format.. Y Cb Cr data applied to Y_IN. C_IN is set low. Externally supplied F_IN, V_IN and H_IN signals are used to synchronize the input data stream. Note: Input clock is 27 or 36MHz. 16 10000 720p (60 & 60/1.001Hz) SMPTE 296M-2001.. Y Data applied to Y_IN. Cb Cr data applied to C_IN. Note: Input clock is 74.25 MHz or 74.25/1.001MHz. 17 10001 720p (30 & 30/1.001Hz) SMPTE 296M-2001.. Y Data applied to Y_IN. Cb Cr data applied to C_IN. Note: Input clock is 74.2 or 74.2/1.001MHz. 18 10010 1080p (30 & 30/1.001Hz) SMPTE 274M.. Y data applied to Y_IN. Cb Cr data applied to C_IN. Note: Input clock is 74.25MHz or 74.25/1.001MHz. 10 GENNUM CORPORATION 18283 - 3 TABLE 1: Encoding of STD[4:0] for Selecting Input Data Format (Continued) DESCRIPTION STD[4:0] 19 10011 720p (50Hz) SMPTE 296M-2001. Y data applied to Y_IN. Cb Cr data applied to C_IN. Note: Input clock is 74.25MHz. 20 10100 1080p (25Hz) SMPTE 274M. Y data applied to Y_IN. Cb Cr data applied to C_IN. Note: Input clock is 74.25MHz. 21 10101 720p (25Hz) SMPTE 296M-2001. Y data applied to Y_IN. Cb Cr data applied to C_IN. Note: Input clock is 74.25MHz. 22 10110 1080p (24 & 24/1.001Hz) SMPTE 274M. Y data applied to Y_IN. Cb Cr data applied to C_IN. Note: Input clock is 74.25MHz or 74.25/1.001MHz. 23 10111 720p (24 & 24/1.001Hz) SMPTE 296M-2001. Y Data applied to Y_IN. Cb Cr data applied to C_IN. Note: Input clock is 74.25MHz or 74.25/1.001MHz. 24 11000 1080i (30 & 30/1.001Hz) SMPTE 274M. Y data applied to Y_IN. Cb Cr data applied to C_IN. Note: Input clock is 74.25MHz or 74.25/1.001MHz. 25 11001 1080p (30 & 30/1.001Hz in Segmented Frame Format) SMPTE RP211-2000. Y data applied to Y_IN. Cb Cr data applied to C_IN. Note: Input clock is 74.25MHz or 74.25/1.001MHz. 26 11010 1080i (25Hz) SMPTE 274. Y data applied to Y_IN. Cb Cr data applied to C_IN. Note: Input clock is 74.25MHz. 27 11011 1080p (25 Hz in Segmented Frame Format) SMPTE RP211-2000. Y data applied to Y_IN. Cb Cr data applied to C_IN. Note: Input clock is 74.25MHz. 28 11100 1080i (25Hz) SMPTE 295M.. Y data applied to Y_IN. Cb Cr data applied to C_IN. Note: Input clock is 74.25MHz. 29 11101 1080p (24 & 24/1.001Hz in Segmented Frame Format) SMPTE RP211-2000. Y data applied to Y_IN. Cb Cr data applied to C_IN. Note: Input clock is 74.25MHz or 74.25/1.001MHz. 30 11110 1035i (30Hz) SMPTE 260M. Y data applied to Y_IN. Cb Cr data applied to C_IN. Note: Input clock is 74.25MHz. 31 11111 Generic HD input data format with 4:2:2 sampling and a separate Y/C format. Y data applied to Y_IN. Cb Cr data applied to C_IN. Externally supplied F_IN, V_IN and H_IN signals are used to synchronize the input data stream. Note: Input clock is 74.25MHz or 74.25/1.001MHz. GF9330 STD 2. INPUT SYNCHRONIZATION 2.2 Generic Input Format Signaling The GF9330 obtains relevant timing information from either embedded TRS information or externally supplied H_IN, V_IN and F_IN signals. The GF9330 supports generic input data formats with either 4:1:1 or 4:2:2 sampling structures handling up to 2046 active samples per line with a total maximum line width of 4096 (active + blanking) samples. In addition, there is a limit of 2048 lines per interlaced frame. The following host interface parameters are used to describe the generic input data format relative to the F_IN, V_IN and H_IN signals. See Figure 2. When FVH_EN is set high, using either the host interface or the external pin, the GF9330 relies on the externally supplied H_IN, V_IN and F_IN signals for timing information. When FVH_EN is set LOW, the GF9330 will extract the embedded TRS timing information from the video data stream and will ignore any timing information present on the F_IN, V_IN and H_IN pins. 2.1 Support for both 8-bit and 10-bit input data The GF9330 supports 8 and 10-bit input data. When operating with 8-bit input data, the two LSBs of the GF9330’s 10-bit input should be set LOW and the input data is applied to the 8 MSBs of the input bus. 2.2.1 OUTPUT H_BLANK_SIZE This parameter defines the number of samples that comprise the horizontal blanking region. This parameter has a maximum value of 4095 and is to be less than the total line width (active + blanking) sample size. Twelve bits within the host interface are dedicated to this parameter. The GF9330 only stores and processes active video samples only (i.e. H_IN=0). 11 GENNUM CORPORATION 18283 - 3 OUTPUT V H_BLANK_SIZE 0 F 1 0 1 EVEN FIELD ODD FIELD V_BLANK_SIZE_EVEN GF9330 ODD FIELD F_OFFSET_ODD V_OFFSET_ODD ODD FIELD EVEN FIELD V_BLANK_SIZE_ODD EVEN FIELD F_OFFSET_EVEN V_OFFSET_EVEN EVEN FIELD ODD FIELD Fig. 2 Generic Input Format Definition 2.2.2 V_BLANK_SIZE_ODD 2.2.3 V_BLANK_SIZE_EVEN This parameter defines the number of lines that comprise the vertical blanking interval that follows the odd field. This parameter has a maximum value of 255. Eight bits within the host interface are dedicated to this parameter. The GF9330 only stores and processes active video samples (i.e. V_IN=0). See Figure 2. This parameter defines the number of lines that comprise the vertical blanking interval that follows the even field. This parameter has a maximum value of 255. Eight bits within the host interface are dedicated to this parameter. The GF9330 only stores and processes active video samples (i.e. V_IN=0). See Figure 2. Last active line Vertical Blanking Region H_IN V_IN V_OFFSET_ODD/EVEN Fig. 3 Vertical Offset Definition 12 GENNUM CORPORATION 18283 - 3 TABLE 2: F_POLARITY 2.2.4 V_OFFSET_ODD 2.2.5 V_OFFSET_EVEN This parameter defines the number of lines from the V_IN pin EAV transition to the end of the even active video field region. This parameter has a maximum value of 255. Eight bits within the host interface are dedicated to this parameter. This parameter has been added to accommodate all video decoders that output non-standard timing for the V_IN signal. See Figure 3. 2.2.6 F_OFFSET_ODD This defines the number of lines from the F_IN pin EAV transition to the vertical blanking interval following the odd field. This parameter has a maximum value of 255. Eight bits within the host interface are dedicated to this parameter. This parameter has been added to accommodate all video decoders that output non-standard timing for the F_IN signal. See Figure 2. 2.2.7 F_OFFSET_EVEN This register defines the number of lines from the F_IN pin EAV transition to the vertical blanking interval following the even field. This parameter has a maximum value of 255. Eight bits within the host interface are dedicated to this parameter. This parameter has been added to accommodate all video decoders which output nonstandard timing for the F_IN signal. See Figure 2. 2.2.8 H_POLARITY F_POLARITY REGISTER F PIN F PIN FUNCTION 0 0 Even Field 0 1 Odd Field 1 0 Odd Field 1 1 Even Field GF9330 This defines the number of lines from the V_IN pin EAV transition to the end of the odd active video field region. This parameter has a maximum value of 255. Eight bits within the host interface are dedicated to this parameter. This parameter has been added to accommodate all video decoders which that output non-standard timing for the V_IN signal. See Figure 3. 3. SEAMLESS INTERFACE TO THE GF9331 MOTION CO-PROCESSOR FOR DIRECTIONAL FILTER CONTROL The GF9330 can operate as a stand-alone motion adaptive de-interlacer or can operate in conjunction with the GF9331 Motion Co-processor. The GF9331 contains adaptive multi-directional edge detection and vertical motion detection. Control signals are fed back directly to the GF9330. These control signals adaptively switch the GF9330’s internal edge & vertical motion de-interlacing filters on a pixel by pixel basis. These control signals are fed to the GF9330 by the GF9331 over the FIL_SEL[3:0] control bus. When the GF9330 is not being used with the GF9331, the FIL_SEL[3:0] inputs should be set LOW. NOTE: When using the GF9331, the Y_IN[9:0] of the GF9330 must be connected to Y_OUT[9:0] of the GF9331 and C_IN[9:0] of the GF9330 must be connected to the C_OUT[9:0] of the GF9331. FIL_SEL[3:0] of the GF9330 must also be connected to FIL_SEL[3:0] of the GF9331. The timing information from the GF9331 is provided exclusively through the F_OUT, H_OUT and V_OUT pins which must be connected to the F_IN, H_IN and V_IN pins of the GF9330. 4. SEAMLESS INTERFACE TO EXTERNAL SDRAMS This register defines the polarity of the H_IN pin. With H_POLARITY set LOW, a falling transition on the H_IN pin indicates end of active video. With H_POLARITY set HIGH, a rising transition on the H_IN pin indicates the end of active video. One bit within the host interface is dedicated to this parameter. 2.2.9 F_POLARITY This register defines the polarity of the F_IN pin. Refer to Table 2 for F_POLARITY encoding. One bit within the host interface is dedicated to this parameter. 2.2.10 V_POLARITY This register defines the polarity of the V_IN pin. With V_POLARITY set LOW, a falling transition on the V_IN pin indicates the end of active video. With V_POLARITY set HIGH, a rising transition on the V_IN pin indicates the end of active video. One bit within the host interface is dedicated to this parameter. For all SD video formats, the GF9330 requires two 1M x 24-bit (min) SDRAM field buffers. To pass HD video formats in bypass mode, the GF9330 requires two field buffers, each implemented with a 1M x 48-bit (min) SDRAM configuration. To deinterlace HD formats the memory requirements increase to a 4M x 48-bit (min) SDRAM configuration. This configuration supports all HD and SD operational modes. The following external SDRAM devices are supported for the external field buffer function. • NEC: uPD4516161AG5, uPD4564163G5, uPD45128163G5 • Micron: MT48LC4M16A2, MT48LC8M16A2 • Samsung: K4S161622C, K4S641632C, K4S281632B 13 GENNUM CORPORATION 18283 - 3 5. HOST INTERFACE GF9330 The GF9330 provides both a serial and parallel host interface control port for the configuration of internal parameters. The GF9330 is also able to operate in standalone mode, with no host interface control. In stand-alone mode, the video standard (STD[4:0]) and mode of operation (MODE[2:0]) are set using dedicated pins on the device. These values are loaded into the device on a falling transition of HOST_EN or after setting RESET LOW. Both the serial and parallel interfaces share common pins as described in Table 4. TABLE 4: Host Interface Common Pins GF9330 PIN NAME PARALLEL MODE SERIAL MODE CS CHIP select SCLK - Serial clock DAT_IO[0] Data/address (bit 0) SDI - Serial data in DAT_IO[1] Data/address (bit 1) (not used) DAT_IO[2] Data/address (bit 2) (not used) DAT_IO[3] Data/address (bit 3) (not used) DAT_IO[4] Data/address (bit 4) (not used) DAT_IO[5] Data/address (bit 5) (not used) DAT_IO[6] Data/address (bit 6) (not used) DAT_IO[7] Data/address (bit 7) SDO - Serial data out A_D Address/data select SCS - Serial chip select R_W Read/write select (not used) HOST_EN Host interface enable Host interface enable SER_MD LOW = Parallel mode enable HIGH = Serial mode enable 14 GENNUM CORPORATION 18283 - 3 5.1 Host Interface Serial Mode 5.1.1 MASTER (uC) SLAVE (GF9330) uC_SCLK SCLK (CS) uC_SDO SDI DAT_IO[0] uC_SDI SDO DAT_IO[7] uC_SCS GF9330 The Gennum Serial Peripheral Interface (GSPI) is a 4 wire interface comprised of serial data in (SDI), serial data out (SDO), an active LOW serial chip select (SCS) and a clock (SCLK). The interface operates in a master/slave configuration, where the master provides the SCLK, SDI, and SCS signals to the slave or slaves. The master uC_SDO drives the slave(s) SDI input. The SDO pin is a tristate output that allows multiple devices to drive the master uC_SDI. Serial mode operation supports both a continuous clock and a burst clock configuration. The serial mode interface is illustrated in the Figure 4. SCS (A_D) (*) ASIC Pin Name Fig. 4 Host Interface Serial Mode Serial Command Word Description The command word consists of a 16-bit word transmitted MSB first and contains a read/write bit, an Auto-Configure control bit, nine reserved bits and a 5-bit address. As shown in Figure 5. MSB R/W LSB AC RSV RSV RSV RSV RSV RSV RSV RSV RSV A4 A3 A2 A1 A0 Fig. 5 Serial Command Word Bit Representation The R/W bit indicates a Read command if R/W = HIGH, and a write command when R/W = LOW. 5.1.2 5.1.3 Serial Data Word Description The serial data word consists of a 16-bit word as shown in Figure 6. Serial data is transmitted or received MSB first. Auto-Configure Both command and data words are clocked into the GF9330 on the rising edge of the serial clock (SCLK), which may operate in either a continuous or burst fashion. The first bit (MSB) of the serial output (SDO) is available following the last falling SCLK edge of the "read" command word. The remaining bits are clocked out on the falling edges of SCLK. The Auto-Configure feature will be executed when the AutoConfigure control bit is set. All Auto-Configure registers will be updated to their appropriate settings based on the current video standard and operational mode. When setting the Auto-Configure bit, the command word should be set with only the AC bit set to 1. All of the 15 remaining bits should be set to 0. To complete the AutoConfiguration 16 additional bits must be loaded into the device. The state of these bits can be either HIGH or LOW. Before Auto-Configuring the device, the standard and mode must be set using either the host interface (HOST_EN = 1) or the external pins (with a falling transition of HOST_EN). This simplifies configuration while allowing customization of many features and format parameters. MSB D15 LSB D14 D13 D12 D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 Fig. 6 Serial Data Word Bit Representation 15 GENNUM CORPORATION 18283 - 3 5.1.4 Serial Write Operation All write cycles consist of a command word followed by a data word, both transmitted to the GF9330 via SDI. The first 16-bit word transmitted following a falling transition of SCS is a command word. Several write cycles may be performed while SCS is LOW. See Figure 7. GF9330 tSU_HI 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 D7 D6 D5 D4 D3 D2 D1 10 11 12 13 14 D6 D5 D4 D3 15 SCLK SCS tIH_HI SDI R/W AU 0 R t SU_HI R R R R R R R R A4 A3 A2 A1 D15 D14 D13 D12 D11 D10 D9 A0 D8 D0 SDO Fig. 7 Write Cycle 5.1.5 Serial Read Operation All read cycles consist of a command word transmitted to the GF9330 via SDI followed by a data word transmitted from the GF9330 via SDO. The first 16-bit word transmitted following a falling transition of SCS is a command word. Several read cycles may be performed while SCS is LOW. See Figure 8. t OEN_HI 0 1 2 3 4 5 6 7 8 9 10 11 12 R R R R R R R R R A4 A3 13 14 15 0 1 2 3 4 5 6 7 8 D8 D7 9 15 SCLK SCS SDI R/W AU 0 1 A2 A1 A0 tOD_HI D15 SDO D14 D13 D12 D11 D10 D9 tODIS_HI D2 D1 D0 Fig. 8 Read Cycle 16 GENNUM CORPORATION 18283 - 3 5.2.2 Parallel Write Operation The Gennum Parallel Peripheral Interface (GPPI) consists of an 8-bit multiplexed address/data bus (DAT_IO[7:0]), a chip select pin (CS), a read/write pin (R_W), and an address/ data pin (A_D) as shown in Figure 9. A write cycle to the parallel interface is shown in Figure 11. First an 8-bit address word is provided to the DAT_IO bus by asserting the R_W pin to LOW and the A_D pin to HIGH. The MSB of the address word contains an auto-update flag, which allows automatic configuration of predefined registers. The 5 LSB's of the address word contain the address location for the read or write operation. The remaining address bits DAT_IO[6:5] are reserved. The address word is registered on the falling edge of CS. Following this, the A_D pin is driven LOW and two data words are sent upper byte (UB) word first and are each clocked in on the falling edge of CS. Two 8-bit data words must follow each address word to occupy each 16-bit parameter, which are defined in Table 5. MASTER (uC) SLAVE (GF9330) uC_CS CS uc_ADDR/DATA DAT_IO[7:0] uC_R/W R_W uC_A/D A_D (*) ASIC Pin Name 5.2.3 Parallel Read Operation Fig. 9 Parallel Peripheral Interface Data is strobed in/out of the parallel interface on the falling edge of CS. The GF9330 drives the DAT_IO[7:0] bus when the R_W pin is HIGH and the CS pin is LOW, otherwise this port is in a high impedance state. MSB LSB RSV AC A read cycle begins with an address write by asserting the R_W pin LOW and the A_D pin HIGH. The address is clocked on the falling edge of CS. Following the address, the R_W pin must be driven HIGH and A_D pin driven LOW to allow the upper byte of data to be clocked out on the first falling edge of CS followed by the lower byte on the second falling edge of CS. See Figure 9. RSV A4 A3 A2 A1 A0 Fig. 10 Parallel Address Word Bit Representation 5.2.1 Parallel Address Word Description The 8-bit address word loads in the address to be accessed and allows the Auto-Configure bit to be set. The MSB is the Auto-Configure bit, followed by two reserved bits and a 5-bit address as shown in Figure 10. tOEN_HI DAT_IO[7:0] ADDRESS t (UB) DATA_IN (LB) DATA_IN ADDRESS (UB) DATA_OUT (LB) DATA_OUT tIH_HI SU_HI R_W A_D tODIS_HI CS Fig. 11 Write Cycle to the Parallel Interface 17 GENNUM CORPORATION 18283 - 3 GF9330 5.2 Host Interface Parallel Mode 19 Address 8 Address 7 Address 6 Address 5 Address 4 Address 3 Address 2 Address 1 Address 0 F_VBI2_OFFSET(3:0) 1A Address 26 Address 25 Address 24 Address 23 Address 22 Address 21 Address 20 Address 19 Address 18 Address 17 Address 16 Address 15 Address 14 Address 13 Address 12 Address 11 Address 10 Address 9 FRAME_REGEN FDC_MODE(1:0) Bit 8 DIFF3T(15:0) Bit 7 Bit 5 NO_LINE_DELAYS(9:0) 0 LOCK_32 FF_DETECT FVH_EN_BIT CROP_EN F_OFFSET_ODD(7:0) 2 1 V_OFFSET_ODD(7:0) 3 F_POLARITY 5 V_POLARITY TVSF(7:0) 6 4 TV32(7:0) CC_BLANK_START_LINE(7:0) 7 SEQUENCE(3:0) CL_RND(2:0) MODE(2:0) MODE_32 THSF(7:0) F_OFFESET_EVEN(7:0) V_OFFESET_EVEN(7:0) NOISE_RED(7:0) CLK_X1_SEL Bit 2 STD(4:0) FF_EN_BIT EXT_MEMCLK_SEL START_OPERATION Bit 0 FF_MODE(1:0) M32(18:16) MSF(18:16) DIFF3T(18:16) VOCLK_X1_SEL Bit 1 FREEZE_FRAME_THRESHOLD CC_BLANK_END_LINE(7:0) MD_MODE(1:0) CROP_H_LINE_SIZE(11:0) CC_BLANK_EN CROP_H_CROP_SIZE(11:0) 9 SOBEL_THRESHOLD(3:0) CROP_V_CROP_SIZE(11:0) CROP_V_FRAME_SIZE(11:0) A Bit 3 V_BLANK_SIZE_EVEN(7:0) ACTIVE_LINE_FIELD(10:0) ACTIVE_PIXEL_LINE(10:0) B 8 Bit 4 INPUT_H_BLANK_WORDS_PER_LINE(11:0) OUTPUT_H_LINE_SIZE(12:0) OUTPUT_H_BLANK_SIZE(11:0) V_BLANK1_LASTLINE(11:0) V_FIELD1_LASTLINE(11:0) V_BLANK2_LASTLINE(11:0) V_FIELD2_LASTLINE(11:0) Bit 6 C E M32(15:0) DETAIL_ENH(9:0) V_BLANK_SIZE_ODD(7:0) FORMAT_SD H_BLANK_SIZE_1HALF Bit 9 D MD_THRESHOLD V_BLANK_OFFSET PROGRESSIVE_INPUT FIELD2_HAS_TOP_LINE Bit 10 MSF(15:0) H_POLARITY ID_MODE(1:0) ODD_FIELD_ONE_MORE EVEN_FIELD_ONE_MORE OM_MODE(2:0) ADD_LINES_BOTTOM_F2 Bit 11 F 10 11 12 13 14 15 16 17 18 F_VBI1_OFFSET(3:0) 1B Address 27 ADD_LINES_BOTTOM_F1 1C Address 28 Bit 12 ADD_LINES_TOP_F2 1D Address 29 Bit 13 1E Bit 14 Address 30 CMD_RESET Bit 15 1F Hex GF9330 GENNUM CORPORATION Address 31 TABLE 5: Host Interface Register Allocation 18 18283 - 3 5.3 Control Register Definition GF9330 The host interface internal registers are divided into three classes: User Configurable (UC), Auto-Configurable (AC), and Read-Only (RO). Address locations 0 through 14 contain parameters which may be configured by the user. Locations 15 through 31 are automatically configured based on the STD[4:0] and MODE[2:0] registers, but can be user configured if desired. Address 0 contains three status registers LOCK_32, FF_DETECT, and SEQUENCE[3:0] which can only be read. Writing to the read-only registers will have no effect on their contents. CONTROL REGISTER DEFINITIONS ADDRESS BIT LOCATION 0 4:0 STD[4:0] UC Defines the video standard as described in Section 1. 7:5 MODE[2:0] UC Defines the GF9330 operating mode as shown below: 000: Interlaced to Progressive Mode 001: Field Merging Mode 010: Film Rate Down Conversion Mode 011: Film Rate Down Conversion (Progressive Segmented Frame) Mode 111: Bypass Mode (Video Pass Through Mode) 000 11:8 SEQUENCE[3:0] RO Provides the detected field sequence number from the 3:2 detection circuit. Calculated 12 FF_DETECT RO Set to '1' if a video freeze frame has been detected. Calculated 13 LOCK_32 RO Set to '1' if a 3:2 video sequence has been detected. Calculated 1:0 FF_MODE[1:0] UC Default value = 01, Defines the freeze frame operating mode as shown below: 00: Manual freeze frame detection/ compensation 01: Automatic freeze frame detection/ compensation 10: Disabled 11: Reserved 01 FF_EN_BIT UC Enables (1) or disables (0) freeze frame detection/compensation when in manual freeze frame mode, i.e. FF_MODE = 00. 01 MD_MODE[1:0] UC Defines the motion detection and compensation mode as shown below: 00: Disabled 01: Automatic 10: Reserved 11: Reserved 01 1 2 5:4 REGISTER NAME CLASS DESCRIPTION DEFAULT 00000 19 GENNUM CORPORATION 18283 - 3 CONTROL REGISTER DEFINITIONS (Continued) ADDRESS BIT LOCATION CLASS DESCRIPTION DEFAULT MODE_32 UC Selects the internal 3:2 sequence detection when set to 0, otherwise uses external sequence from the input pins, XSEQ[3:0]. 0 7 CC_BLANK_EN UC Enables blanking in the close captioned video region. 0 CL_RND[2:0] UC Defines the clipping and rounding output format as shown below: 000: 12-bit output with 10.2 (.25 lsb) resolution 001: 10-bit output clipped/rounded from 0 to 1023 010: 10-bit output clipped/rounded from 41019 011: 10-bit output Y clipped/rounded from 64 to 940, Cr/Cb clipped/rounded from 64 to 960 100: Reserved 101: 8-bit output clipped/rounded from 0 to 255 110: 8-bit output rounded/clipped from 1 to 254 111: 8-bit output Y clipped/rounded from 16 to 235, Cr/Cb clipped/rounded from 16 to 240 000 11 CROP_EN UC Enables output video cropping based on CROP_V_CROP_SIZE, CROP_V_FRAME_SIZE, CROP_H_CROP_SIZE and CROP_H_LINE_SIZE parameters. 0 12 FVH_EN_BIT UC Enables the GF9330 to use external FVH control in place of embedded TRS. 0 13 F_POLARITY UC Defines the polarity of the F_IN pin. When set to '1', F follows normal convention where F_IN is '0' for field 1(odd) and '1' for field 2 (even). 1 14 V_POLARITY UC Defines the polarity of the V_IN pin. When set to '1', V_IN follows normal convention where V_IN is '1' in the vertical blanking region. 1 15 H_POLARITY UC Defines the polarity of the H_IN pin. When set to '1', H_IN follows normal convention where H is '1' in the horizontal blanking region. 1 7:0 F_OFFSET_EVEN[7:0] UC Defines the number of lines from the F_IN pin EAV transition to the vertical blanking interval following the even field. This parameter has a maximum value of 255. 00000000 15:8 F_OFFSET_ODD[7:0] UC Defines the number of lines from the F_IN pin EAV transition to the vertical blanking interval following the odd field. This parameter has a maximum value of 255. 00000000 20 GENNUM CORPORATION 18283 - 3 GF9330 6 10:8 2 REGISTER NAME CONTROL REGISTER DEFINITIONS (Continued) ADDRESS BIT LOCATION 3 7:0 DESCRIPTION DEFAULT V_OFFSET_EVEN[7:0] UC Defines the number of lines from the V_IN pin EAV transition to the end of the even active video field region. This parameter has a maximum value of 255. 00000000 15:8 V_OFFSET_ODD[7:0] UC Defines the number of lines from the V_IN pin EAV transition to the end of the odd active video field region. This parameter has a maximum value of 255. 00000000 7:0 NOISE_RED[7:0] UC The upper five bits of this parameter adjust the noise reduction level applied to the video image, the resolution of the adjustment is defined by the lower 3-bits as shown below. Noise Reduction = Y/X Y = NOISE_RED[7:3] X = NOISE_RED[2:0] 0<=Y<=31 X=1 | 2 | 4 A higher value represents more noise reduction with greater resolution. 00100001 15:8 STANDARD CONFIGURATION REGISTERS UC Must be set to default value. 01000100 5 15:0 FF_DET_HV[15:0] UC Freeze frame detection setting. See Section 11.4 6 7:0 CC_BLANK_END_LINE[7:0] UC Defines the last line number at which to end closed captioned blanking. For this parameter, line 0 is defined as the first active line of the field/frame. 0000000 15:8 CC_BLANK_START_LINE[7:0] UC Defines the first line number at which to start closed captioned blanking. For this parameter, line 0 is defined as the first active line of the field/frame. 00000000 4:0 FREEZE_FRAME_ THRESHOLD[4:0] UC Defines the freeze frame detection threshold, a low value causes noise to have a larger impact on freeze frame detection. 10000 (16 decimal) 15:9 TV32[7:0] UC Defines the threshold for the detection of vertical motion between two consecutive fields. A higher value will increase the sensitivity. 00101000 (40 decimal) 5:0 STANDARD CONFIGURATION REGISTERS UC Must be set to default value. 15:6 DETAIL_ENH[9:0] UC Defines the detail enhancement configuration. The upper five bits of this word adjust the high frequency detail in the image. The lower 5bits control the resolution or granularity. A higher value represents more detail with higher granularity. Detail Enhancement = Y/X Y=DETAIL_ENH[9:5] X=DETAIL_ENH[4:0] 0<=Y<=31 X=1 | 2 | 4 | 8 | 16 7 8 IE32H 100100 0000000001 21 GENNUM CORPORATION 18283 - 3 GF9330 CLASS 4 REGISTER NAME CONTROL REGISTER DEFINITIONS (Continued) BIT LOCATION 9 11:0 10 REGISTER NAME CLASS DESCRIPTION DEFAULT CROP_H_LINE_SIZE[11:0] UC Specifies the length of the line to output, following the cropped pixels on the left side of the line. 0000000000 00 11:0 CROP_H_CROP_SIZE[11:0] UC Specifies the number of active pixels to blank at the beginning of each line. 0000000000 00 11 11:0 CROP_V_FRAME_SIZE[11:0] UC Specifies the number of lines to output, following the cropped lines at the top of the frame (or field). 0000000000 00 12 11:0 CROP_V_CROP_SIZE[11:0] UC Specifies the number of active lines to blank at the beginning of each frame. 0000000000 00 14,13 2:0,15:0 STANDARD CONFIGURATION REGISTERS UC Must be set to default value. 16,15 2:0,15:0 MSF[18:0] UC Represents the number of pixels per smallest active field divided by a scaling factor required to estimate same frame detection. A higher value also means vertical edges will have more effect on the detection of same frames. The equation is as follows: 00080H (128 decimal) Calculated 7 MSF = #active_pixels_per_smallest_field / 2 18, 17 2:0, 15:0 DIFF3T[18:0] UC Represents the number of active pixels per smallest field divided by a factor required to estimate the odd and even pattern detection. The equation is as follows: Calculated DIFF3T = #active_pixels_per_smallest_field /27 19 20 7:0 V_BLANK_SIZE_EVEN[7:0] AC Defines the number of lines that comprise the vertical blanking interval that follows the even input field. This parameter has a maximum value of 255. Auto 15:8 V_BLANK_SIZE_ODD[7:0] AC Defines the number of lines that comprise the vertical blanking interval that follows the odd input field. This parameter has a maximum value of 255. Auto 10:0 ACTIVE_LINE_FIELD[10:0] AC Defines the number of active lines per smallest input field. Auto 15:12 V_BLANK_OFFSET[3:0] AC For 3:2 pull-down compensation, this parameter must provide the difference (if any) in number of input active lines per frame and the number of output active lines per frame. Auto 22 GENNUM CORPORATION 18283 - 3 GF9330 ADDRESS CONTROL REGISTER DEFINITIONS (Continued) ADDRESS BIT LOCATION 21 10:0 DESCRIPTION DEFAULT ACTIVE_PIXEL_LINE[10:0] AC Defines the number of active pixels per video input line. Auto FORMAT_SD AC Used to configure the GF9330 SDRAM controller. Set to ‘1’ when in 24-bit mode. This bit is auto-configured based on standard and mode selection. Auto PROGRESSIVE_INPUT AC When set to ‘1’, configures the GF9330 to accept a progressive video format. This bit is auto-configured based on standard and mode selection. Auto 15:4 ID_MODE[1:0] AC Defines the type of video sequence for input video de-multiplexing. When set to "00" the input represents a 4:2:2 sequence, "01" represents a 4:1:1 sequence, and "10" represents an HD format. This word can be auto-configured based on video standard and mode. Auto 11:0 INPUT_H_BLANK_WORDS_PER _LINE[11:0] AC Defines the number of horizontal blanked input words per line which corresponds to 2 times the number of blanking pixels per line for 4:2:2 SD modes and is equal to the number of pixels per line for HD formats. This value can be auto-configured. Auto 12 H_BLANK_SIZE_1HALF AC Reserved for output video formats requiring the equivalent of ½ pixel line size resolution. This occurs for STD 0, MODE 2 and 3 only. Auto 13 FIELD2_HAS_TOP_LINE AC Set to ‘1’ when field 2 line one is the first line in the video frame (SMPTE 260M). Auto 14 EVEN_FIELD_ONE_MORE AC Set to ‘1’ for video standards that have an even number of lines per frame (SMPTE 295M). Auto 15 ODD_FIELD_ONE_MORE AC Set to ‘1’ for video standards that have an odd number of lines per frame (SMPTE 295M). Auto 13 22 23 GENNUM CORPORATION 18283 - 3 GF9330 CLASS 12 REGISTER NAME CONTROL REGISTER DEFINITIONS (Continued) ADDRESS BIT LOCATION 23 9:0 DESCRIPTION DEFAULT NO_LINE_DELAYS[9:0] AC Defines the number of line delays to implement within the external field delay. This value is auto-configured based on standard and mode. The calculation is: No_line_delays = (Total number of lines per frame -7) / 2. Auto 11:10 FDC_MODE[1:0] AC Defines the field delay controller mode for output video formatting as shown below: 00: I to P mode 01: PsF to P 10: 30i to 24p 11: 30i to 24PsF Auto 12 FRAME_REGEN AC Defines frame timing regeneration. This occurs for all 30i-24p and 30i-24PsF modes. Auto 15:13 OM_MODE[2:0] AC Defines the GF9330 video output mode as shown below: 000: SD bypass 001: SD I to P or field merging 010: SD I to P 011: SD I to PsF 100: HD bypass 101: HD I to P or field merging 110: HD I to P 111: HD I to PsF This value can be auto-configured based on standard and mode. Auto 24 12:0 OUTPUT_H_LINE_SIZE[11:0] AC Represents the total number of pixels (Active plus blanking) per output line. Auto 25 11:0 OUTPUT_H_BLANK_SIZE[11:0] AC Defines the number of blanking pixels per line at the output. Auto 15:12 F_VBI2_OFFSET[3:0] AC Defines the number of lines to wait before the rising F transition in the vertical blanking interval on the output. Auto 11:0 V_BLANK1_LASTLINE[11:0] UC Defines the last line of the first blanking interval, where line 1 is the first blank line of the vertical blanking interval that precedes the odd field or first frame. Auto 15:12 F_VBI1_OFFSET[3:0] AC Defines the number of lines to wait before the falling F transition in the vertical blanking interval on the output. Auto 11:10 V_FIELD1_LASTLINE[11:0] UC Defines the last line of the first active video field. Auto 14:12 ADD_LINES_BOTTOM_F2 UC Defines the number of lines to add to the bottom of field 2 (not used). Auto 27 24 GENNUM CORPORATION 18283 - 3 GF9330 CLASS 26 REGISTER NAME CONTROL REGISTER DEFINITIONS (Continued) ADDRESS BIT LOCATION 28 11:10 V_BLANK2_LASTLINE[11:0] UC Defines the last line of the second blanking interval. Auto 14:12 ADD_LINES_BOTTOM_F1 UC Defines the number of lines to add to the bottom of field 1 (not used). Auto 11:0 V_FIELD2_LASTLINE[11:0] UC Defines the last line of the second active video field. Auto 14:12 ADD_LINES_TOP_F2 AC Defines the number of lines to add to the top of field 2 (not used). Auto 0 EXT_MEMCLK_SEL AC Controls the selection of the SDRAM clock source. For VCLK_IN frequency less than 36 MHz, the internal clock doubler can be used, in all other modes an external source is required (MEMCLK_IN). Auto 1 VOCLK_X1_SEL AC Normally set for HD modes where the output video clock is equal to the input video clock frequency and is set to '0' for SD cases where the output video clock is double the video input clock frequency. Auto 2 CLK_X1_SE AC Normally set for all HD modes and is '0' for all other cases. Auto 0 START_OPERATION UC Using external F_IN, V_IN and H_IN signals, this parameter must be set following the completion of programming the F_IN, V_IN and H_IN offsets. 0 15 CMD_RESET UC Forces the GF9330 to enter a reset state. This commanded reset remains in effect until this parameter is cleared with a subsequent command. 0 30 31 CLASS 6. CLOSED CAPTION BLANKING The GF9330 provides a blanking function for selected input video lines. Consecutive lines within each input field are blanked when this function is enabled, beginning with the CC_BLANK_START_LINE and ending with the CC_BLANK_END_LINE. The blanking is applied prior to any processing of the video data. The blanking function is enabled with the CC_BLANK_EN bit. BLANK_START_LINE and BLANK_END_LINE are each allocated 8-bits within the host interface. 7. PROGRAMMABLE NOISE REDUCTION AND DETAIL ENHANCEMENT DESCRIPTION DEFAULT High frequency details that are detected with a twodimensional high pass filter are enhanced using a nonlinear function mapping between input and output signal. There are 512 levels of control provided by the DETAIL_ENH[9:0] bits within the host interface. 8. RESET The RESET pin will reset all internal logic to it's default conditions when set LOW. On power up it is recommended to reset the device to ensure all internal registers are set to their default state. When applying a reset, the GF9330 will load in the STD[4:0] and MODE[2:0] settings from the external pins. If no further configuration is done, these settings will be used for the operation of the device. The GF9330 performs an efficient technique for high frequency noise reduction and detail enhancement. There are 256 levels of control provided by the NOISE_RED[7:0] bits within the host interface. 25 GENNUM CORPORATION 18283 - 3 GF9330 29 REGISTER NAME 9. MODES OF OPERATION The GF9330 supports stand-alone, co-processor enabled, pass-through and film rate down conversion modes of operation. Table 6 shows the basic operating modes for the GF9330 as selected using the MODE[2:0] control bits or through the host interface using the MODE[2:0] register, Address [0][7:5]. the device will revert back to VT processing if the external sequence pins have an invalid code (i.e. A to F). The XSEQ[3:0] value should be changed during the sixth blank line of each vertical blanking interval. A B C D GF9330 Original Film Material (24p) TABLE 6: Modes of Operation: MODE[2:0] MODE[2:0] 000 DESCRIPTION Motion adaptive de-interlacing of input video signal. 001 De-interlacing of input video signal with pulldown compensation. 010 Film rate down conversion mode (60Hz -> 24Hz). 011 Film rate down conversion mode (60Hz -> 24Hz Segmented Frame) 100 to 110 111 GF9330 Video Input (30i) O E O E O E O E O E SEQUENCE (XSEQ[3:0]) 0 1 2 3 4 5 6 7 8 9 0 Fig.11 Sequence Detection Input Signals 9.3 Film Rate Down Conversion Mode (MODE= 010) When configured to operate as a Film Rate Down Converter, the GF9330 removes 3:2 sequences from the input video stream and outputs 24Hz progressive scan video. No filtering of the signal is performed in this mode of operation. The external 3:2 sequence pins (XSEQ[3:0]) are used in this mode, the setting of the MODE_32 bit has no effect. Reserved Video pass through mode. Note: In this mode, 3:2 compensation remains in effect at all times. 9.1 De-Interlacing Mode (MODE=000) When set to operate as a de-interlacer the GF9330 can operate as a “stand-alone” device performing motion adaptive processing. To enable multi-directional edge and vertical motion detection the GF9330 must be connected to the GF9331 as described in Section 3. Segmented frame to progressive frame conversion is also supported in this mode. This function is performed when the progressive segmented frame input video format is selected on either the external pins or host interface register STD[4:0]. 9.4 Film Rate Down Conversion Mode, Segmented Frame Output (MODE= 011) This mode operates in the same manner as the Film Rate Down Converter mode, but outputs the progressive scan video in segmented frame format. 9.5 Video Pass Through Mode (MODE=111) The GF9330, operating in Pass-through Mode, will pass through only the active portion of the input video signal. All other ancillary data will be lost from the input data stream. 9.2 De-interlacing Mode with pull-down compensation (MODE=001) When set to operate in this mode, the GF9330 can operate as a “stand-alone” device performing motion adaptive processing with added 3:2 pull-down compensation. To enable multi-directional edge and vertical motion detection the GF9330 must be connected to the GF9331 as described in Section 3. The GF9330 will provide 3:2 sequence compensation (field merging) for film source material. When using internal 3:2 sequence detection, the GF9330 will perform "fieldmerging" for 3:2 sequences, or will revert to VT processing when no 3:2 sequence is identified. The 3:2 sequence can be internally detected (host interface bit, MODE_32 = 0), or supplied via the external sequence pins (XSEQ[3:0]) for MODE_32 = HIGH. With the external sequence selected, 26 GENNUM CORPORATION 18283 - 3 10. OUTPUT DATA FORMATS The GF9330 supports multiple output data formats. The output data format depends on the input format selected as well as the defined operating mode. Table 7 specifies the available output formats for the GF9330. TABLE 7: Output formats STD INPUT FORMAT FILM RATE DOWN-CONVERSION BYPASS I-TO-P CONVERT MODE=000 FIELD MERGING MODE=001 I-TO-P CONVERT MODE=010 I-TO-PSF CONVERT MODE=011 525p (60/1.001) SMPTE 293M See Note: 1 525p (60/1.001) SMPTE 293M See Note: 1 525p (24/1.001 See Note: 1 525p (24/1.001) See Note: 1 NA NA NA NA 525p (60/1.001) 16x9 See Note: 1 525p (60/1.001) 16x9 See Note: 1 525p (24/1.001) 16x9 See Note: 1 525PsF (24/1.001) 16x9 See Note: 1 See Note: 1 625p (50) ITU-R BT.1358 See Note: 1 625p (50) ITU-R BT.1358 (2:2 Pulldown Comp.) See Note: 1 625p (25) (2:2 Pulldown Comp.) See Note: 1 625PsF (25) (2:2 Pulldown Comp.) See Note: 1 See Note: 1 625p (50) 16 x 9 See Note: 1 625p (50) 16 x 9 See Note: 1 625p (25) 16 x 9 See Note: 1 625PsF (25 )16 x 9 See Note: 1 See Note: 1 NA NA NA NA See Note: 1 MODE=111 See Note: 1 0 525i (30/1.001) SMPTE 125M 1 Reserved 2 525i (30/1.001) SMPTE 267M 16x9 3 Reserved 4 625i (25) EBU Tech 3267 5 Reserved 6 625i (25) 16 x9 ITU-R BT.601 Part B 7 Reserved 8 525p (60/1.001) SMPTE 293M 9 Reserved 10 Reserved 11 Reserved 12 625p (50) ITU-R BT-1358 NA NA NA NA See Note: 1 13 625p (50) 16x9 NA NA NA NA See Note: 1 14 Generic SD 4:1:1 Refer to Section 2.2 See Note: 1 15 Generic SD 4:2:2 Refer to Section 2.2 See Note: 1 27 GENNUM CORPORATION 18283 - 3 GF9330 DE-INTERLACING TABLE 7: Output formats (Continued) DE-INTERLACING STD INPUT FORMAT FILM RATE DOWN-CONVERSION BYPASS I-TO-P CONVERT MODE=000 FIELD MERGING MODE=001 I-TO-P CONVERT MODE=010 I-TO-PSF CONVERT MODE=011 MODE=111 720p (60 & 60/ 1.001) SMPTE 296M2001 NA NA NA NA See Note: 2 17 720p (30 & 30/ 1.001) SMPTE 296M2001 NA NA NA NA See Note: 2 18 1080p (30 & 30/ 1.001) SMPTE 274M NA NA NA NA See Note: 2 19 720p (50) SMPTE 296M2001 NA NA NA NA See Note: 2 20 1080p (25) SMPTE 274M NA NA NA NA See Note: 2 21 720p (25) SMPTE 296M2001 NA NA NA NA See Note: 2 22 1080p (24 & 24/ 1.001) SMPTE 274M NA NA NA NA See Note: 2 23 720p (24 & 24/ 1.001) SMPTE 296M2001 NA NA NA NA See Note: 2 24 1080i (30 & 30/ 1.001) SMPTE 274M 1080p (60 & 60/ 1.001) SMPTE 274M (System #1 and #2) See Note: 3 1080p (60 & 60/ 1.001) SMPTE 274M (System #1 and #2) See Note: 3 1080p (24 & 24/1.001) SMPTE 274M See Note: 2 1080PsF (24 & 24/ 1.001) Draft RP May 99 See Note: 2 See Note: 2 GF9330 16 28 GENNUM CORPORATION 18283 - 3 TABLE 7: Output formats (Continued) DE-INTERLACING STD INPUT FORMAT FILM RATE DOWN-CONVERSION BYPASS I-TO-P CONVERT MODE=000 FIELD MERGING MODE=001 I-TO-P CONVERT MODE=010 I-TO-PSF CONVERT MODE=011 MODE=111 1080p (30 & 30/ 1.001) SMPTE 274M See Note: 4 NA NA NA See Note: 2 1080PsF (30 & 30/1.001) SMPTE RP2112000 26 1080i (25) SMPTE 274M 1080p (50) SMPTE 274M (System #3) See Note: 3 1080p (50) SMPTE 274M (System #3) (2:2 Pulldown Comp.) See Note: 3 1080p (25) SMPTE 274M (System #9) (2:2 Pulldown Comp.) See Note: 2 NA See Note: 2 27 1080PsF (25) SMPTE RP2112000 1080p (25) SMPTE 274M (System #9) (PsF to P) See Note: 4 NA NA NA See Note: 2 28 1080i (25) SMPTE 295M 1080p (50) SMPTE 295M (System #1) See Note: 3 1080p (50) SMPTE 295M (System #1) (2:2 Pulldown Comp.) See Note: 3 1080p (25) SMPTE 274M (System #9) (2:2 Pulldown Comp.) See Note: 2 NA See Note: 2 29 1080PsF (24 & 24/1.001) SMPTE RP2112000 1080p (24 & 24/ 1.001) SMPTE 274M (System #10 & #11) (PsF to P) See Note: 4 NA NA NA See Note: 2 30 1035i (30 & 30/ 1.001) SMPTE 260M 1035p (60&60/ 1.001 )See Note: 3 1035p (60&60/ 1.001) See Note: 3 1035p (24&24/1.001) See Note: 2 1035p (24&24/1.001) See Note: 2 See Note: 2 31 Generic HD 4:2:2 GF9330 25 Refer to Section 2.2 See Note: 2 NOTES: 1. Y/C Output Multiplexed on Y1_OUT[11:0]. 2. Y Output on Y1_OUT[11:0] C Output on C1_OUT[11:0]. 3. Odd (first) pixel Y data on Y1_OUT[11:0], Even (second) pixel Y data on Y2_OUT[11:0], Odd (first) pixel C data on C1_OUT[11:0], Even (second) pixel C data on C2_OUT[11:0]. 4. These standards cannot be used in stand alone mode. OM_MODE[2:0] register within the host interface must be configured to “110” in order to achieve output port operation as described in Note: 2. 29 GENNUM CORPORATION 18283 - 3 10.1 Output Video Frame Cropping V_OUT VERTICAL BLANKING REGION CROP_V_CROP_SIZE HORIZONTAL BLANKING REGION CROP_V_FRAME_SIZE Output video cropping is enabled with the CROP_EN bit within the host interface. Cropping in the horizontal direction is implemented based on the settings of the CROP_H_CROP_SIZE and CROP_H_LINE_SIZE. The CROP_H_CROP_SIZE parameter specifies the number of active pixels to blank at the beginning of each line. The CROP_H_LINE_SIZE parameter specifies the length of the line to output, following the cropped pixels on the left side of the line. CROP_H_CROP_SIZE and CROP_H_LINE_SIZE are each allocated 12-bits within the host interface. Cropping in the vertical direction is implemented based on the settings of the CROP_V_CROP_SIZE and CROP_V_FRAME_SIZE. The CROP_V_CROP_SIZE parameter specifies the number of active lines to blank at the beginning of each frame. The CROP_V_FRAME_SIZE parameter specifies the number of lines to output, following the cropped lines at the top of the frame (or field). CROP_V_CROP_SIZE and CROP_V_FRAME_SIZE are each allocated 12-bits within the host interface. CROPPED VIDEO FRAME GF9330 The GF9330 provides programmable output video cropping in both the horizontal and vertical directions. Any rectangular window within the full output active frame (or field) is selectable for output, with all video data outside of this rectangular window cropped (set to the blanking level). The H_OUT, V_OUT, F_OUT signals are generated to provide timing for the cropped video frame. The embedded TRSs remain in the original positions. AVAILABLE OUTPUT VIDEO FRAME H_OUT CROP_H_LINE_SIZE CROP_H_CROP_SIZE Output Video Cropping Fig. 12 Output Video Cropping 10.2 12-BITS OUTPUT RESOLUTION All output data busses are 12-bits in total resolution. Output Y data is always an unsigned data format. Output Cr Cb is always in a offset binary data format. Relative to the input data stream the 12-bits outputs are formatted as 10.2 (2 LSB extensions). 10.3 Controllable Rounding and Clipping on Output Data The GF9330 provides a wide range of round/clipping options based on the setting of CL_RND[2:0] bits within the host interface as shown in Table 8. Valid H_OUT, V_OUT and F_OUT are always present even when output signals contain embedded TRS signals. When outputting one of the standards with embedded TRSs, H_OUT, V_OUT and F_OUT is synchronized with the GF9330’s output data stream (V_OUT and F_OUT transition on EAV sequences). Refer to Figure 12 for a pictorial representation of the cropping function. 30 GENNUM CORPORATION 18283 - 3 TABLE 8: CL_RND[2:0] CL_RND[1] CL_RND[0] DESCRIPTION 0 0 0 12-bit Output. All channels rounded to 10.2 output resolution. 0 0 1 10-bit Output #1. Data clipped/rounded to 0 to 1023. 0 1 0 10-bit Output #2. Data clipped/rounded to 4 to 1019. 0 1 1 10-bit Output #3. Y data clipped/rounded 64 to 940. Cr/Cb clipped/rounded 64 to 960. 1 0 0 RESERVED 1 0 1 8-bit Output #1. Data clipped/rounded to 0 to 255. 1 1 0 8-bit Output #2. Data clipped/rounded to 1 to 254. 1 1 1 8-bit Output #3. Y data clipped/rounded 16 to 235. Cr/Cb clipped/rounded 16 to 240. GF9330 CL_RND[2] 11. SEQUENCE DETECTION The GF9330 supports two modes of operating with respect to 3:2 sequence detection (internal and external modes) as described in Table 9. One bit in the host interface is reserved for the MODE_32 bit. TABLE 9: 3:2 Mode Select MODE_32 DESCRIPTION 0 Internal. The 3:2 sequence is automatically detected in the input data stream. The GF9330 reports 3:2 lock and 3:2 sequence information in the host interface registers called LOCK_32 and SEQUENCE[3:0]. The GF9330 also reports this information on the XSEQ[3:0] pins when configured as outputs. 1 External. The GF9330 accepts a 3:2 sequence from the XSEQ[3:0] pins configured as inputs. 31 GENNUM CORPORATION 18283 - 3 11.1 Internal 3:2 Detection When set to operate in internal 3:2 detect mode, the GF9330 can automatically detect a 3:2 pull-down sequence in the incoming video data stream. If a 3:2 sequence is detected, the GF9330 sets the LOCK_32 control bit in the host interface to ‘1’. The LOCK_32 pin is also asserted HIGH once the sequence has been detected. 1. Freeze in Static: Uses the temporal filter only. MSF = 7FFFh FF_DET_HV = 0000h FF_EN_BIT = 1 2. Freeze in motion: Uses both the vertical and temporal filter. 11.2 External 3:2 Detection MSF = 0000h When set to operate in external mode, the user will supply the 3:2 sequence information to the XSEQ[3:0] pins. The GF9330 uses this information to properly de-interlace the input signal or to perform 60Hz to 24Hz conversion depending on the state of the MODE[2:0] register in the host interface or MODE[2:0] pins. FF_DET_HV = FFFFh FF_EN_BIT = 0 Note: When using the freeze in motion settings when the image is static, there will be vertical ringing along the horizontal edges. When operating in this mode the input 3:2 sequence information relates to the input data stream. The 3:2 sequence information requires updating during the first blank line of the vertical blanking interval, identifying the sequence number for the following field. 11.3 Sequence Detection and Compensation The GF9330 supports external 2:2 sequence detection. A LOCK_22 pin is provided to indicate the presence of a 2:2 sequence. The sequence information is inherently embedded in the interlaced video input data, and is identified with the F_IN signal (either derived from the embedded TRSs or supplied from the external pin). The LOCK_22 signal will be updated during the first line of each vertical blanking interval. 11.4 Static and Freeze Frame Detection/Compensation The GF9330 operates in either disabled, automatic or manual mode for detection and compensation of freeze frame conditions within the video input stream. When set to operate in disabled mode (host interface bits, FF_MODE=10), the GF9330 disables the internal freeze frame detection and compensation circuitry and also ignores any information presented to the FF_EN pin or the host interface bit, FF_EN_BIT. When set to operate in automatic mode (FF_MODE[2:0]=01) the GF9330 internally detects and compensates for freeze frame situations. When a freeze frame situation is detected, the GF9330 reports this in the FF_DETECT status bit found in the host interface. This bit is updated at the beginning of a field and remains valid for the remainder of the field. When set to operate in manual mode (FF_MODE=00) the GF9330 monitors the FF_EN pin and the host interface bit, FF_EN_BIT to enable or disable freeze frame compensation. Static and freeze frame detection compensation is further described in Table 10. 32 GENNUM CORPORATION 18283 - 3 GF9330 The actual 3:2 sequence information is reported in the SEQUENCE[3:0] register within the host interface and on the XSEQ[3:0] pins. Refer to Figure 11 for a pictorial representation of the 3:2 sequence reporting. In order to manually force the freeze frame detector in the GF9330 into freeze in static or freeze in motion, the following parameters must be set as follows: TABLE 10: FF_MODE[1:0] HOST INTERFACE FF_MODE[1:0] REGISTER EXTERNAL FF_EN Pin HOST INTERFACE FF_EN_BIT 00 0 0 Manual: freeze frame detection and compensation disabled 0 1 Manual: perform freeze frame compensation 1 0 1 1 01 x x Automatic freeze frame detection/compensation 10 x x Freeze frame detection and compensation disabled 11 x x Reserved DESCRIPTION GF9330 11.5 MOTION DETECTION AND COMPENSATION The GF9330 operates in disabled or automatic mode for motion detection and compensation. When set to operate in disable mode (host interface bits, MD_MODE=00), the GF9330 does not perform internal motion detection and compensation. When set to operate automatic mode (MD_MODE=01) the GF9330 internally detects and compensates for motion. Motion detection and compensation control is further described in Table 11. TABLE 11: MD_MODE[1:0] HOST INTERFACE MD_MODE[1:0] REGISTER DESCRIPTION 00 Disabled Mode 01 Automatic Mode 10 Reserved 11 Reserved 11.6 Processing Latency In de-interlacing mode (with the exception of progressive segmented frame to progressive format conversion), the GF9330 processing latency is constant regardless of input or output format selection. In all other modes, (including progressive segmented frame to progressive format conversion and Film Rate Down Conversion) the GF9330 processing latency is unique yet constant regardless of input or output format selection. For standard deinterlacing the delay will be 1 field 6 lines and 91 pixels. For 3:2 detection and compensation to both 24p and 24psf the delay will be 1 frame 4 lines and 8 pixels. In bypass mode the delay is always 569 lines. 33 GENNUM CORPORATION 18283 - 3 PACKAGE DIMENSIONS 1 2 3 4 5 6 7 8 9 10 11 1213 14 151617 18 19 20 1.27 27.00 ± 0.20 24.00 REF. A B C D E F G H J K L M N P R T U V W Y 4.00, 45˚ (4X) GF9330 A B C D E F G H J K L M N P R T U V W Y 0.75 ± 0.15 (X328) 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 1.00 (3X) REF. 24.13 PIN #1 1.27 24.00 REF. 24.13 2.33 ± 0.13 0.60 ± 0.10 1.17 REF. 0.56 REF. 27.00 ± 0.20 CAUTION ELECTROSTATIC SENSITIVE DEVICES DO NOT OPEN PACKAGES OR HANDLE EXCEPT AT A STATIC-FREE WORKSTATION REVISION NOTES: Update to document information and figures. DOCUMENT IDENTIFICATION DATA SHEET The product is in production. Gennum reserves the right to make changes at any time to improve reliability, function or design, in order to provide the best product possible. GENNUM CORPORATION MAILING ADDRESS: P.O. Box 489, Stn. A, Burlington, Ontario, Canada L7R 3Y3 Tel. +1 (905) 632-2996, Fax. +1 (905) 632-5946 SHIPPING ADDRESS: 970 Fraser Drive, Burlington, Ontario, Canada L7L 5P5 GENNUM JAPAN CORPORATION Shinjuku Green Tower Building 27F, 6-14-1, Nishi Shinjuku, Shinjuku-ku, Tokyo, 160-0023 Japan Tel. +81 (03) 3349-5501, Fax. +81 (03) 3349-5505 GENNUM UK LIMITED 25 Long Garden Walk, Farnham, Surrey, England GU9 7HX Tel. +44 (0)1252 747 000, Fax. +44 (0)1252 726 523 Gennum Corporation assumes no responsibility for the use of any circuits described herein and makes no representations that they are free from patent infringement. © Copyright June 2001 Gennum Corporation. All rights reserved. Printed in Canada. 34 18283 - 3