21. DISPLAY

21.1 Introduction

The SP7021 video display function support video input source from camera, after data processed by CPU than output to HDMI. The video input can be MIPI_CSI or USB. SP7021 can support two channels MIPI_CSI camera. This module also supports directly raw data transfer to add efficiency. The Display Mixer function can mix one layer OSD and VPP data. The display output format support HDMI1.4 spec, HD resolution and YUV444 mode. The video display control registers locate at RGST Group 185~235 which memory map address are 0x9C005C80~0x9C0075FF.

21.2 Function Diagram

SP7021 video display function diagram is shown in Figure 21-1.

Figure 21-1 Video Display Functional Blocks

  • DFCH: Data fetch block, this block will de-interlace and fetch data from DRAM.
  • VPOST: VPOST is simple version VPP which can translate data YUV422 to YUV444 and Frame crop and padding.
  • OSD: OSD (On-Screen-Display) is the hardware providing bitmap display layer overlaying over or under other video and graphics display.
  • GPOST: GPOST block is the wrapper for handling TGEN timing and Req/Valid junctions.
  • DMIX: Display mixer(DMIX) supports mixing layers from OSD and VPP with display plane timing.
  • TGEN: TGEN(Timing Generator) is mainly responsible for generating control timing for each module including field start, field end, field ID, display start pulse and pixel enable signal.
  • DVE: DVE is a encode engine for two digital formats. One is HDMI, another is V656.


21.3 Data Input Source

The video display block data source has two, one is MIPI_CSI camera, another is USB camera. The data format include below list.

  • Data from MIPI_CSI to DRAM, than data processed by CPU to produce Raw / YUV /RGB format.
  • Data from MIPI_CSI to DRAM, than data don't processed by CPU and directly display Raw data.
  • Data from USB camera, than data processed by CPU to produce Raw / YUV /RGB format.


21.4 DFCH (Data Fetch)

DFCH block also can be named DDFCH (De-interlace Data Fetch) due to its de-interlace function. The main function is fetched data from DRAM. There may be several types of data sources, and various formats are internally transmitted to the corresponding subsequent IP processing (VPOST). The features include below list.

  • Support AXI Protocol for command and data transfer.
  • Video data source format supports YUV420, YUV422 and YUY2.
  • Chroma upsample.
  • Video data crop and decimation functions.


The DDFCH functional block diagram is shown in figure 21-2.

Figure 21-2 DDFCH Functional Blocks

  • DDFCH_RST: Protecting AXI-handshaking from Vsyn reset. When Vsync pulse raised, DDFCH_RST resets DDFCH until AXI-handshaking stop.
  • DDFCH_REG: Handshaking with RGST Bus.
  • DDFCH_IPBG: Arbitrating Motion and Video commands to AXI port 0 or port 1.
  • DDFCH_IPBG_BRIDGE: For one AXI port, arbitrating Video commands.
  • DDFCH_IPBG_VIDEO: Transforming video command to YUY2 mode and MUX commands to one AXI port.
  • DDFCH_VIDEO: DMA-read current interlace source and reference interlace source for de-interlacing.
  • DDFCH_VIDEO_LUMA: DMA-read Current luma source.
  • DDFCH_VIDEO_CRMA: DMA-read Current chroma source.
  • DDFCH_VIDEO_DOUT: Chroma-upsampling and VC-1 range-mapping Current pixels.
  • DDFCH_VIDEO_DMAR_INFO: Calculating DMA-read info for Current luma and chroma data. It offers that line_start_addr info, vertical pre-decimation info and cropping info.
  • DDFCH_VIDEO_LINE_INFO: Offer chroma-upsampleing line info.


21.5 VPOST (Video Post)

The VPOST block is kernel of video processor. It accepts two input sources, one is DMA input with YUV422 32bits format, another one is DDFCH input with YUV422 16bits format. This block will output data to DMIX block with YUV444 / Alpha 8 bits format. The VPOST functional block diagram is shown in figure 21-3.

Figure 21-3 VPOST Functional Blocks

  • RGST IFX: This block will decode the control registers for VPOST.
  • LBUF: LBUF block do line buffer to avoid DMA data less than real time. The SRAM is shared with DDFCH block.
  • BIST: There are two functions in BIST block, they are Path Selection and Internal Pattern. The Path Selection can select input signal come from DMA or DDFCH, where the DMA data is 32 bits and must be converted to 16 bits.
  • UPS: Chroma up sample 422 to 444.
  • DCTRL: This block support cropping and padding. Once the original image is different from the resolution of the output image, the crop/padding function is used for output without scaling.
  • OPIF: Interface between Req/Valid protocol and TGEN timing protocol.


21.6 OSD (On Screen Display)

OSD is the hardware providing bitmap display layer overlaying over or under other video and graphics display. This hardware is controlled by firmware through the register-file interface. If OSD enabled, it will read a linked-list data structure from the main-memory and output is sent to GSCL to scaling for compressing or directly display. Application may use this hardware to show user-interface message visually. The data support following color format.

  • 32-bit RGBA8888/ARGB8888
  • 16-bit RGB565/ARGB1555/RGBA4444/ARGB4444/YUY2
  • 8-bit color index mode with CLUT GBRA8888/YCbCrA8888/ARGB8888


The OSD functional block diagram is shown in figure 21-4.

Figure 21-4 OSD Functional Block

  • RGST: This block will decode the control registers for OSD block
  • HDR_CTRL: This block support header install and parser.
  • ADDR_GEN: SBUS address generator.
  • REQ_CTRL: SBUS request generator.
  • DIS_CTRL: OSD timing generator.
  • OSD_BM_RDY_DISTRIB: LB_BRIDGE pre-process.
  • LB_BRIDGE: Line buffer bridge among LB/CP/BM_Decoder.
  • BM_DECODER: This block supports bitmap decoder.
  • CP_INSTALL: Color palette look up table install and index-color to direct-color transform.
  • Line_buffer_xxx: Line buffer.
  • SYSBUS_MON: Bus monitor.
  • CRC_CAL: CRC checksum engine.
  • INT_PATTERN: BIST internal pattern generator.
  • Color Space Conversion: This block support color space conversion.
  • BUS_WRAP: Generate pseudo MBUS grant to avoid critical path.
  • DIS_OFFSET: Display offset block is frame base offset function.


21.7 GPOST

GPOST block is the wrapper for handling TGEN timing and Req/Valid junctions. It also provides Graph Path with simple image processing. The functions include below list.

  • Contrast Adjustment
  • Brightness Adjustment
  • Hue and Saturation Adjustment
  • Mask Function


21.8 DMIX

Display mixer(DMIX) supports mixing layers from OSD0~OSD3 and VPP0~VPP1 with display plane timing. DMIX output is to HD2SD/DVE. The main functions of DMIX are as below list.

  • Overlay
  • Plane Alpha
  • Blender
  • All layers can be swap
  • PTG (color bar with rotate function)
  • Luma Adjustment (Constrast)
  • Chroma Adjustment (Hue)


The DMIX functional block diagram is shown in figure 21-5.

Figure 21-5 DMIX Functional Block

  • DMIX L1 ALPHA: This block is used to change the original alpha, the function can provide a fading effect.
  • DMIX L1 BLEND: The blender is just to mix the foreground and background.
  • DMIX YC ADJUST: This block is used for luma/chroma adjust.
  • PTG: This pattern generator output internal color bar data.
  • PTG_SNOW: This pattern generator output internal color snow data.


21.9 TGEN (Timing Generator)

TGEN(Timing Generator) is mainly responsible for generating of control timing for each module including field start, field end, field ID, display start pulse and pixel enable signal.
DTG, standing for Display Timing Generator, is the module that generates the control timing for modules dealing with display video formats. The Display Timing is generated according to the display video format. Display timing is the master timing of the whole system. If the display video format remains unchanged, display timing must be continuous. Even if the source video resolution changes, or if the configuration of display scaler changes.
The TGEN functional block diagram is shown in figure 21-6.

Figure 21-6 TGEN Functional Block

21.10 DVE (Digital Video Encoder)

DVE(Digital Video Encoder) is a digital video encoder for HDMI Interfaces. The input data format is YUV444 and output data format is YUV444 36 bits with Separate Syncs.
Figure 21-7 shows the DVE functional block diagram.

Figure 21-7 DVE Functional Block




21.11 Registers Map

21.11.1 Registers Memory Map

De-interlace Data Fetch 0 (DDFCH0) Register  Group

Address

Group No.

Register Name

Description

0x9C005C80

G185.0

ddfch0  latch en

DDFCH Latch Enable

0x9C005C84

G185.1

ddfch0  mode option

Mode Option

0x9C005C88

G185.2

ddfch0  enable

DDFCH Enable

0x9C005C8C

G185.3

ddfch0  urgent thd

DDFCH AXI Urgent Threshold

0x9C005C90

G185.4

ddfch0  cmdq thd

DDFCH AXI Command Queue Threshold

0x9C005C94

G185.5

G185ADDR5

RESERVED

0x9C005C98

G185.6

ddfch0  luma base addr  0

Luma/YUY2 Base Address for Frame 0

0x9C005C9C

G185.7

ddfch0  luma base addr  1

Luma/YUY2 Base Address for Frame 1

0x9C005CA0

G185.8

ddfch0  luma base addr  2

Luma/YUY2 Base Address for Frame 2

0x9C005CA4

G185.9

ddfch0  crma base addr  0

Chroma Base Address for Frame 0

0x9C005CA8

G185.10

ddfch0  crma base addr  1

Chroma Base Address for Frame 1

0x9C005CAC

G185.11

ddfch0  crma base addr  2

Chroma Base Address for Frame 2

0x9C005CB0

G185.12

G185ADDR12

RESERVED

0x9C005CB4

G185.13

G185ADDR13

RESERVED

0x9C005CB8

G185.14

G185ADDR14

RESERVED

0x9C005CBC

G185.15

ddfch  frame  id

DDFCH Frame ID

0x9C005CC0

G185.16

ddfch  free run control

DDFCH Free-run Clock Control

0x9C005CC4

G185.17

G185ADDR17

RESERVED

0x9C005CC8

G185.18

G185ADDR18

RESERVED

0x9C005CCC

G185.19

G185ADDR19

RESERVED

0x9C005CD0

G185.20

ddfch0  vdo frame  size

Line Pitch of Source in Video Frame Buffer

0x9C005CD4

G185.21

ddfch0  vdo crop  size

Video Crop Size

0x9C005CD8

G185.22

ddfch0  vdo crop  offset

Video Crop Offset

0x9C005CDC

G185.23

ddfch0  config 0

Video Sideband Signal Config

0x9C005CE0

G185.24

ddfch0  config 1

Range Mapping Config

0x9C005CE4

G185.25

G185ADDR25

RESERVED

0x9C005CE8

G185.26

ddfch0  chksum info

Check Sum

0x9C005CEC

G185.27

ddfch0  error flag info

DDFCH Error Flag

0x9C005CF0

G185.28

ddfch0  bist

DDFCH        BIST   Mode           and     Output          422          YCbCr          by      Configuration

0x9C005CF4

G185.29

ddfch0  axi ipbg  info

DDFCH  IPBG AXI Debug Information

0x9C005CF8

G185.30

G185ADDR30

RESERVED

0x9C005CFC

G185.31

ddfch0  others info

Others Debug Information

On Screen Display Group0 (OSD0) Register  Group 0

Address

Group No.

Register Name

Description

0x9C006200

G196.0

osd ctrl

OSD Control Register

0x9C006204

G196.1

osd en

OSD Enable

0x9C006208

G196.2

osd base addr

OSD Base Address

0x9C00620C

G196.3

osd reserved 3

OSD Reserved 3

0x9C006210

G196.4

osd reserved 4

OSD Reserved 4

0x9C006214

G196.5

osd reserved 5

OSD Reserved 5

0x9C006218

G196.6

osd bus monitor l

Debug register

0x9C00621C

G196.7

osd bus monitor h

Debug register

0x9C006220

G196.8

osd req  ctrl

OSD Request Control Register

0x9C006224

G196.9

osd debug cmd lock

Debug register

0x9C006228

G196.10

osd debug burst lock

Debug register

0x9C00622C

G196.11

osd debug xlen lock

Debug register

0x9C006230

G196.12

osd debug ylen lock

Debug register

0x9C006234

G196.13

osd debug queue lock

Debug register

0x9C006238

G196.14

osd crc  chksum

OSD field-updated CRC Checksum

0x9C00623C

G196.15

osd reserved 15

OSD Reserved 15

0x9C006240

G196.16

osd hvld  offset

Horizontal offset index

0x9C006244

G196.17

osd hvld  width

Horizon valid pixel number

0x9C006248

G196.18

osd vvld offset

Vertical offset index

0x9C00624C

G196.19

osd vvld height

Vertical valid line nubmer

0x9C006250

G196.20

osd data  fetch ctrl

Memory Data Fetch Control

0x9C006254

G196.21

osd bist ctrl

BIST Pattern

0x9C006258

G196.22

osd non fetch 0

OSD Non-fetching Region 0

0x9C00625C

G196.23

osd non fetch 1

OSD Non-fetching Region 1

0x9C006260

G196.24

osd non fetch 2

OSD Non-fetching Region 2

0x9C006264

G196.25

osd non fetch 3

OSD Non-fetching Region 3

0x9C006268

G196.26

osd bus status

Debug register

0x9C00626C

G196.27

osd 3d h offset

OSD 3D h offset

0x9C006270

G196.28

osd reserved 28

OSD Reserved 28

0x9C006274

G196.29

osd src  decimation sel

SRC decimation selection

0x9C006278

G196.30

osd bus time  0

Debug register

0x9C00627C

G196.31

osd mbus time  1

Debug register

Video Post Processing (VPOST) Register  Group

Address

Group No.

Register Name

Description

0x9C006380

G199.0

ddfch0  latch en

DDFCH Latch Enable

0x9C006384

G199.1

ddfch0  mode option

Mode Option

0x9C006388

G199.2

ddfch0  enable

DDFCH Enable

0x9C00638C

G199.3

ddfch0  urgent thd

DDFCH AXI Urgent Threshold

0x9C006390

G199.4

ddfch0  cmdq thd

DDFCH AXI Command Queue Threshold

0x9C006394

G199.5

G185ADDR5

RESERVED

0x9C006398

G199.6

ddfch0  luma base addr  0

Luma/YUY2 Base Address for Frame 0

0x9C00639C

G199.7

ddfch0  luma base addr  1

Luma/YUY2 Base Address for Frame 1

0x9C0063A0

G199.8

ddfch0  luma base addr  2

Luma/YUY2 Base Address for Frame 2

0x9C0063A4

G199.9

ddfch0  crma base addr  0

Chroma Base Address for Frame 0

0x9C0063A8

G199.10

ddfch0  crma base addr  1

Chroma Base Address for Frame 1

0x9C0063AC

G199.11

ddfch0  crma base addr  2

Chroma Base Address for Frame 2

0x9C0063B0

G199.12

G185ADDR12

RESERVED

0x9C0063B4

G199.13

G185ADDR13

RESERVED

0x9C0063B8

G199.14

G185ADDR14

RESERVED

Graphic Post Processing (GPOST) Register  Group 0

Address

Group No.

Register Name

Description

0x9C006700

G206.0

gpost0  config

GPOST config register

0x9C006704

G206.1

gpost0  mskl

Setting masked region

0x9C006708

G206.2

gpost0  mskr

Setting masked region

0x9C00670C

G206.3

gpost0  mskt

Setting masked region

0x9C006710

G206.4

gpost0  mskb

Setting masked region

0x9C006714

G206.5

gpost0  bg1

Background color YU

0x9C006718

G206.6

gpost0  bg2

Background color VA

0x9C00671C

G206.7

gpost0  contrast config

Contrast function enable

0x9C006720

G206.8

gpost0  adj src

Contrast adjustment turning point

0x9C006724

G206.9

gpost0  adj des

Contrast adjustment turning point

0x9C006728

G206.10

gpost0  adj slope0

Contrast adjustment slope

0x9C00672C

G206.11

gpost0  adj slope1

Contrast adjustment slope

0x9C006730

G206.12

gpost0  adj slope2

GPOST Contrast adjustment slope

0x9C006734

G206.13

gpost0  adj bound

Luma boundary value

0x9C006738

G206.14

gpost0  bri value

Brightness value

0x9C00673C

G206.15

gpost0  hue sat en

Hue and saturation adjustment

0x9C006740

G206.16

gpost0  chroma satsin

Chroma Adjust SATSIN Register

0x9C006744

G206.17

gpost0  chroma satcos

Chroma Adjust SATCOS Register

0x9C006748

G206.18

gpost0  master  en

Master mode enable for setting start line and pixel of DMIX  window

0x9C00674C

G206.19

gpost0  master  horizontal

Setting start pixel of DMIX window

0x9C006750

G206.20

gpost0  master  vertical

Setting start line of DMIX window

Timing Generator (TGEN) Register  Group

Address

Group No.

Register Name

Description

0x9C006A80

G213.0

tgen  config

TGEN Config Register

0x9C006A84

G213.1

tgen  reset

TGEN Reset Register

0x9C006A88

G213.2

user  int1 config

User Interrupt 1 Config Register

0x9C006A8C

G213.3

user  int2 config

User Interrupt 2 Config Register

0x9C006A90

G213.4

dtg  config

DTG Config Register

0x9C006A94

G213.5

dtg  clk conv thr

DTG colck conversion threshold

0x9C006A98

G213.6

dtg  delay field start lcnt

DTG delay field start linc count

0x9C006A9C

G213.7

dtg  venc line rst cnt

DTG VENC Line Reset Control Register

0x9C006AA0

G213.8

dtg  total pixel

DTG Total Pixel Register

0x9C006AA4

G213.9

dtg  ds line start cd point

DTG DS LINE START CD Point Register

0x9C006AA8

G213.10

dtg  total line

DTG Total Line Register

0x9C006AAC

G213.11

dtg  field end line

DTG Field End Line Register

0x9C006AB0

G213.12

dtg  start line

DTG ACTIVE START LINE

0x9C006AB4

G213.13

dtg  status1

DTG Status Register 1

0x9C006AB8

G213.14

dtg  status2

DTG Status Register 2

0x9C006ABC

G213.15

dtg  status3

DTG Status Register 3

0x9C006AC0

G213.16

dtg  status4

DTG Status Register 4dtg  clk ratio

0x9C006AC4

G213.17

dtg  status5

Reserved

0x9C006AC8

G213.18

dtg  clk ratio

DTG Clock Ratio

0x9C006ACC

G213.19

reserved

Reserved

0x9C006AD0

G213.20

reserved

Reserved

0x9C006AD4

G213.21

reserved

Reserved

0x9C006AD8

G213.22

reserved

Reserved

0x9C006ADC

G213.23

dtg  adjust1

DTG Adjust Register 1

0x9C006AE0

G213.24

dtg  adjust2

DTG Adjust Register 2

0x9C006AE4

G213.25

dtg  adjust3

DTG Adjust Register 3

0x9C006AE8

G213.26

dtg  adjust4

DTG Adjust Register 4

0x9C006AEC

G213.27

dtg  adjust5

DTG Adjust Register 5

0x9C006AF0

G213.28

reserved

Reserved

0x9C006AF4

G213.29

source  sel

Source select

0x9C006AF8

G213.30

DTG FIELD START ADJ LCNT

Source select

0x9C006AFC

G213.31

reserved

Reserved

Display Mixer 0 (DMIX0Register  Group

Address

Group No.

Register Name

Description

0x9C006C80

G217.0

dmix config0

DMIX Config Register 0

0x9C006C84

G217.1

dmix config1

DMIX Config Register 1

0x9C006C88

G217.2

dmix config2

DMIX Config Register 2

0x9C006C8C

G217.3

dmix plane alpha

DMIX Plane Alpha Register

0x9C006C90

G217.4

dmix plane alpha2

DMIX Plane Alpha Register2

0x9C006C94

G217.5

dmix plane alpha3

DMIX Plane Alpha Register3

0x9C006C98

G217.6

reserved

Reserved Register

0x9C006C9C

G217.7

dmix chksum

DMIX OUTPUT CHECK SUM

0x9C006CA0

G217.8

dmix ptg  config

DMIX PTG Config Register

0x9C006CA4

G217.9

dmix ptg  config2

DMIX PTG Config Register

0x9C006CA8

G217.10

dmix ptg  config3

DMIX PTG Config Register

0x9C006CAC

G217.11

dmix ptg  config4

DMIX PTG Config Register

0x9C006CB0

G217.12

dmix ptg  config5

DMIX PTG Config Register

0x9C006CB4

G217.13

dmix ptg  config6

DMIX PTG Config Register

0x9C006CB8

G217.14

reserved

Reserved Register

0x9C006CBC

G217.15

reserved

Reserved Register

0x9C006CC0

G217.16

dmix yc adjust

DMIX YC Adjust Register

0x9C006CC4

G217.17

dmix luma cp1

DMIX Luma Adjust Control Point 1 Register

0x9C006CC8

G217.18

dmix luma cp2

DMIX Luma Adjust Control Point 2 Register

0x9C006CCC

G217.19

dmix luma cp3

DMIX Luma Adjust Control Point 3 Register

0x9C006CD0

G217.20

dmix luma slope0

DMIX Luma Adjust Slope 0 Register

0x9C006CD4

G217.21

dmix luma slope1

DMIX Luma Adjust Slope 1 Register

0x9C006CD8

G217.22

dmix luma slope2

DMIX Luma Adjust Slope 2 Register

0x9C006CDC

G217.23

dmix luma slope3

DMIX Luma Adjust Slope 3 Register

0x9C006CE0

G217.24

dmix chroma satcos

DMIX Chroma Adjust SATCOS Register

0x9C006CE4

G217.25

dmix chroma satsin

DMIX Chroma Adjust SATSIN Register

0x9C006CE8

G217.26

dmix pix en sel

DMIX PIX EN SEL

0x9C006CEC

G217.27

reserved

Reserved Register

0x9C006CF0

G217.28

reserved

Reserved

0x9C006CF4

G217.29

reserved

Reserved Register

0x9C006CF8

G217.30

reserved

Reserved Register

0x9C006CFC

G217.31

reserved

Reserved

Video Encoder (DVERegister  Group 0

Address

Group No.

Register Name

Description

0x9C007500

G234.0

dve vsync start top

Top v-sync start by HDMI User Mode

0x9C007504

G234.1

dve vsync start bot

Bottom v-sync start by HDMI User Mode

0x9C007508

G234.2

dve vsync h point

V-sync          status toggle at       horizontal      point   by          HDMI  User   Mode

0x9C00750C

G234.3

dve vsync pd cnt

V-sync witch line by HDMI User Mode

0x9C007510

G234.4

dve hsync start

H-sync start by HDMI User Mode

0x9C007514

G234.5

dve hsync pd cnt

H-sync witch pixel by HDMI User Mode

0x9C007518

G234.6

dve hdmi mode 1

HDMI Mode 1 Control

0x9C00751C

G234.7

dve v vld top  start

Top vertical valid start by HDMI User Mode

0x9C007520

G234.8

dve v vld top  end

Top vertical valid end by HDMI User Mode

0x9C007524

G234.9

dve v vld bot  start

Bottom vertical valid start by HDMI User Mode

0x9C007528

G234.10

dve v vld bot  end

Bottom vertical valid end by HDMI User Mode

0x9C00752C

G234.11

dve de h start

Data enable horizontal start by HDMI User Mode

0x9C007530

G234.12

dve de h end

Data enable horizontal end by HDMI User Mode

0x9C007534

G234.13

dve mp tg line 0 length

Total pixel by HDMI User Mode

0x9C007538

G234.14

dve mp tg frame  0 line

Total line by HDMI User Mode

0x9C00753C

G234.15

dve mp tg act 0 pix

Active pixel by HDMI User Mode

0x9C007540

G234.16

dve hdmi mode 0

HDMI Mode Control

0x9C007544

G234.17

dve act 0 pix 656

Active pixel by CCIR656 User Mode

0x9C007548

G234.18

dve line 0 length 656

Line pixel length by CCIR656 User Mode

0x9C00754C

G234.19

dve frame  0 line 656

Active line number by CCIR656 User Mode

0x9C007550

G234.20

dve noact  end tl 656

TOP blanking line end by CCIR656 User Mode

0x9C007554

G234.21

dve act end tl 656

TOP active line end by CCIR656 User Mode

0x9C007558

G234.22

dve noact  end bl 656

Bottom         blanking        line     end     by      CCIR656          User   Mode

0x9C00755C

G234.23

dve act end bl 656

Bottom active line end by CCIR656 User Mode

0x9C007560

G234.24

dve ccir656 ctrl 0

CCIR656 Control

0x9C007564

G234.25

dve d656 y range

Value limiter of Luma

0x9C007568

G234.26

dve d656 c range

Value limiter of Chroma

0x9C00756C

G234.27

reserved


0x9C007570

G234.28

reserved


0x9C007574

G234.29

dve hdmi sharp

Sharpness control for HDMI

0x9C007578

G234.30

dve config1

DVE Config1 Register

0x9C00757C

G234.31

dve checksum

DVE checksum

Video Encoder (DVERegister  Group 1

Address

Group No.

Register Name

Description

0x9C007580

G235.0

Color bar  mode

Color bar mode control

0x9C007584

G235.1

Color bar  V total

user mode V total

0x9C007588

G235.2

Color bar  V active

user mode V active

0x9C00758C

G235.3

Color bar  V active start

user mode V active start

0x9C007590

G235.4

Color bar  H total

user mode H total

0x9C007594

G235.5

Color bar  H active

user mode H active

0x9C007598

G235.6

DVE bit swap g0

[BIT SW ON]bit swap group 0

0x9C00759C

G235.7

DVE bit swap g1

[BIT SW ON]bit swap group 1

0x9C0075A0

G235.8

DVE bit swap g2

[BIT SW ON]bit swap group 2

0x9C0075A4

G235.9

DVE bit swap g3

[BIT SW ON]bit swap group 3

0x9C0075A8

G235.10

DVE bit swap g4

[BIT SW ON]bit swap group 4

0x9C0075AC

G235.11

DVE bit swap g5

[BIT SW ON]bit swap group 5

0x9C0075B0

G235.12

DVE bit swap g6

[BIT SW ON]bit swap group 6

0x9C0075B4

G235.13

DVE bit swap g7

[BIT SW ON]bit swap group 7


21.11.2 Registers Description


RGST Table Group 185 DDFCH0: De-interlace Data Fetch 0

185.0 DDFCH Latch Enable (ddfch0 latch en)
Address: 0x9C005C80
Reset: 0x0000 0001


Field NameBitAccessDescription
G185A0 Reserved031:1DCRESERVED
atch en0RWlatch enable
0: direct mode
1: latch mode (default)



185.1 Mode Option (ddfch0 mode option)
Address: 0x9C005C84
Reset: 0x0001 E000


Field NameBitAccessDescription
G185A1 Reserved431:22DCRESERVED
H265 EN21RWDDFCH DRAM source is H265
0: source is NOT H265 (default)
1: source is H265
When DRAM source is H265, DRAM buffer is field base, otherwise buffer is frame base.
G185A1 Reserved320:19DCRESERVED
chroma arb to axi18RWchroma axi command go to axi port MA0 or MA1
0: MA0 (default)
1: MA1
luma arb to axi17RWluma axi command go to axi port MA0 or MA1
0: MA0 (default)
1: MA1
G185A1 Reserved216:15DCRESERVED
chroma irbg en14RWchroma axi command A16B16 to A32B32 bridge enable
0: disable
1: enable (default)

luma irbg en

13

RW

luma axi command A16B16 to A32B32 bridge enable
0: disable
1: enable (default)

G185A1 Reserved1

12

DC

RESERVED

yuy2 en

11

RW

previous/current/next data fetch yuy2 mode enable
0: disable (default)
1: enable

src 422 c

10

RW

source content option of current field data fetch (merge C/P/N)
0: source is 420 (default)
1: source is 422

G185A1 Reserved0

9:0

DC

RESERVED



185.2 DDFCH Enable (ddfch0 enable)

Address: 0x9C005C88
Reset: 0x0000 00E0


Field Name

Bit

Access

Description

G185A2 Reserved2

31:8

DC

RESERVED

c ug en

7

RW

video chroma axi urgent enable
0: disable
1: enable (default)

l ug en

6

RW

video luma axi urgent enable
0: disable
1: enable (default)

G185A2 Reserved1

5

DC

RESERVED

cu en

4

RW

current data fetch enable
0: disable (default)
1: enable

G185A2 Reserved0

3:0

DC

RESERVED



185.3 DDFCH AXI Urgent Threshold (ddfch0 urgent thd)
Address: 0x9C005C8C

Reset: 0x00D6 D6D6


Field Name

Bit

Access

Description

G185A3 Reserved131:24DCRESERVED
c ug thd23:16RW

video chroma axi urgent threshold
0: urgent flag always high
>240: urgent flag always low

0~240: when buffer > threshold, urgent flag will become high.

l ug thd15:8RW

video luma axi urgent threshold
0: urgent flag always high
>240: urgent flag always low

0~240: when buffer > threshold, urgent flag will become high.

G185A3 Reserved07:0DCRESERVED



185.4 DDFCH AXI Command Queue Threshold (ddfch0 cmdq thd)
Address: 0x9C005C90
Reset: 0x0000 00FF


Field Name

Bit

Access

Description

G185A4 Reserved031:8DCRESERVED
c cmdq thd7:4RWvideo chroma axi command queue threshold
it must be >= 1
l cmdq thd3:0RWvideo luma axi command queue threshold
it must be >= 1



185.5 RESERVED (G185ADDR5)
Address: 0x9C005C94
Reset: 0x0


Field Name

Bit

Access

Description

G185A5 Reserved031:0DCRESERVED



185.6 Luma/YUY2 Base Address for Frame 0 (ddfch0 luma base addr 0)
Address: 0x9C005C98
Reset: 0x0


Field Name

Bit

Access

Description

G185A6 Reserved031:22DCRESERVED
luma base addr 0

21:0

RW

luma/yuy2 base addr for frame 0

this register supports:

[1] yuy2 mode base address, unit is K-byte

[2] Previous field base address when H265 EN ON, unit is K-byte

[3] Frame base address when H265 EN OFF, unit is K-byte




185.7 Luma/YUY2 Base Address for Frame 1 (ddfch0 luma base addr 1)
Address: 0x9C005C9C

Reset: 0x0


Field Name

Bit

Access

Description

G185A7 Reserved031:22DCRESERVED
luma base addr 1

21:0

RW

luma/yuy2 base addr for frame 1

this register supports:

[1] yuy2 mode base address, unit is K-byte

[2] Current field base address when H265 EN ON, unit is K-byte

[3] Frame base address when H265 EN OFF, unit is K-byte



185.8 Luma/YUY2 Base Address for Frame 2 (ddfch0 luma base addr 2)
Address: 0x9C005CA0
Reset: 0x0


Field Name

Bit

Access

Description

G185A8 Reserved031:22DCRESERVED
luma base addr 2

21:0

RW

luma/yuy2 base addr for frame 2

this register supports:

[1] yuy2 mode base address, unit is K-byte

[2] Next field base address when H265 EN ON, unit is K-byte

[3] Frame base address when H265 EN OFF, unit is K-byte



185.9 Chroma Base Address for Frame 0 (ddfch0 crma base addr 0)
Address: 0x9C005CA4
Reset: 0x0


Field Name

Bit

Access

Description

G185A9 Reserved031:22DCRESERVED
crma base addr 0

21:0

RW

chroma base addr for frame 0

this register supports:

[1] Previous field base address when H265 EN ON, unit is K-byte

[2] Frame base address when H265 EN OFF, unit is K-byte



185.10 Chroma Base Address for Frame 1 (ddfch0 crma base addr 1)
Address: 0x9C005CA8
Reset: 0x0


Field Name

Bit

Access

Description

G185A10 Reserved031:22DCRESERVED
crma base addr 1

21:0

RW

chroma base addr for frame 1

this register supports:

[1] Current field base address when H265 EN ON, unit is K-byte

[2] Frame base address when H265 EN OFF, unit is K-byte



185.11 Chroma Base Address for Frame 2 (ddfch0 crma base addr 2)
Address: 0x9C005CAC

Reset: 0x0


Field Name

Bit

Access

Description

G185A11 Reserved031:22DCRESERVED
crma base addr 2

21:0

RW

chroma base addr for frame 2

This register supports:

[1] Next field base address when H265 EN ON, unit is K-byte

[2] Frame base address when H265 EN OFF, unit is K-byte



185.12 RESERVED (G185ADDR12)
Address: 0x9C005CB0
Reset: 0x0


Field Name

Bit

Access

Description

G185A12 Reserved031:0DCRESERVED



185.13 RESERVED (G185ADDR13)
Address: 0x9C005CB4
Reset: 0x0

Field Name

Bit

Access

Description

G185A13 Reserved031:0DCRESERVED



185.14 RESERVED (G185ADDR14)
Address: 0x9C005CB8
Reset: 0x0


Field Name

Bit

Access

Description

G185A14 Reserved031:0DCRESERVED



185.15 DDFCH Frame ID (ddfch frame id)
Address: 0x9C005CBC

Reset: 0x0


Field Name

Bit

Access

Description

G185A15 Reserved131:6DCRESERVED
frm id c5:4RW

current field base on which frame
0x0: frame 0
0x1: frame 1

others: frame 2

G185A15 Reserved03:0DCRESERVED



185.16 DDFCH Free-run Clock Control (ddfch free run control)
Address: 0x9C005CC0
Reset: 0x0


Field Name

Bit

Access

Description

G185A16 Reserved131:7DCRESERVED
GCLK DDFCH0 IPBG6RWclock free-run or gating clock(power saving)
0:gating clock(power saving)(default)
1:free-run
GCLK DDFCH0 INFO5RWclock free-run or gating clock(power saving)
0:gating clock(power saving)(default)
1:free-run
GCLK DDFCH0 CRMA4RWclock free-run or gating clock(power saving)
0:gating clock(power saving)(default)
1:free-run
GCLK DDFCH0 LUMA3RWRW clock free-run or gating clock(power saving)
0:gating clock(power saving)(default)
1:free-run
G185A16 Reserved02:1DCRESERVED
GCLK DDFCH0 REG0RWclock free-run or gating clock(power saving)
0:gating clock(power saving)(default)
1:free-run



185.17 RESERVED (G185ADDR17)
Address: 0x9C005CC4
Reset: 0x0


Field Name

Bit

Access

Description

G185A17 Reserved031:0DCRESERVED



185.18 RESERVED (G185ADDR18)
Address: 0x9C005CC8
Reset: 0x0


Field Name

Bit

Access

Description

G185A18 Reserved031:0DCRESERVED



185.19 RESERVED (G185ADDR19)
Address: 0x9C005CCC

Reset: 0x0


Field Name

Bit

Access

Description

G185A19 Reserved031:0DCRESERVED



185.20 Line Pitch of Source in Video Frame Buffer (ddfch0 vdo frame size)
Address: 0x9C005CD0
Reset: 0x0


Field Name

Bit

Access

Description

G185A20 Reserved031:13DCRESERVED
vdo f size

12:0

RW

line pitch of source in video frame buffer

unit is byte

EX: 8-bit per pixs, 720x480, if x size = 720, vdo f size = 768

(a little bigger than x size and align 128)



185.21 Video Crop Size (ddfch0 vdo crop size)
Address: 0x9C005CD4
Reset: 0x0


Field Name

Bit

Access

Description

G185A21 Reserved1

31:28

DC

RESERVED

vdo y size

27:16

RW

video crop line size
y size aligned 2

G185A21 Reserved0

15:13

DC

RESERVED

vdo x size12:0RW

video crop pixel size

unit is byte

8 bit per pix,

cropping and no HDCM : x size aligned 2

cropping and HDCM by2 : x size aligned 16

cropping and HDCM by4 : x size aligned 32



185.22 Video Crop Offset (ddfch0 vdo crop offset)
Address: 0x9C005CD8
Reset: 0x0


Field Name

Bit

Access

Description

G185A22 Reserved131:28DCRESERVED
vdo y st27:16RWvideo crop line start
y st aligned 2
G185A22 Reserved015:13DCRESERVED
vdo x st12:0RWvideo crop pixel start
8 bit per pix, cropping start from (x st, y st) = (0, 0)
cropping and no HDCM : x st aligned 16 cropping and HDCM by2 : x st aligned 32 cropping and HDCM by4 : x st aligned 64



185.23 Video Sideband Signal Config (ddfch0 config 0)
Address: 0x9C005CDC

Reset: 0x0001 0000


Field Name

Bit

Access

Description

G185A23 Reserved531:30DCRESERVED
cur y st shift29RWFor the case that chroma upsample at frame mode but output top/bottom field
Note that y st shift is valid only at the case that frame
mode and STEP=2
G185A23 Reserved428:27DCRESERVED

crma repeat

26

RW

using chroma line repeat to upsample 420 to 422 of cur- rent field data fetch (merge C/P/N)
0: chroma interpolation (default)
1: chroma repeat

G185A23 Reserved3

25:18

DC

RESERVED

step

17:16

RW

current data vertical decimation (merge C/P/N)
0x1: no vertical decimation
0x2: 2x vertical decimation
others: reserved. Can't setting (default).

G185A23 Reserved2

15:12

DC

RESERVED

dcm mode

11

RW

current data horizontal decimation mode (merge C/P/N)
0: 2x horizontal decimation (default)
1: 4x horizontal decimation

dcm en

10

RW

current data horizontal decimation enable (merge
C/P/N)
0: horizontal decimation off (default)
1: horizontal decimation on

G185A23 Reserved1

9:6

DC

RESERVED

fid c

5

RW

current data fetch field id
0: top (default)
1: bottom

il c

4

RW

current data fetch frame/field
0: frame (default)
1: field

G185A23 Reserved0

3:0

DC

RESERVED



185.24 Range Mapping Config (ddfch0 config 1)
Address: 0x9C005CE0
Reset: 0x0


Field Name

Bit

Access

Description

G185A24 Reserved431DCRESERVED

cu rm en c

30

RW

current data fetch chroma range map enable
0: disable (default)
1: enable

G185A24 Reserved3

29:27

DC

RESERVED

cu rm en l

26

RW

current data fetch luma range map enable
0: disable (default)
1: enable

G185A24 Reserved2

25:23

DC

RESERVED

cu rm c

22:20

RW

current data fetch chroma range map parameter

G185A24 Reserved1

19:11

DC

RESERVED

cu rm l

10:8

RW

current data fetch luma range map parameter

G185A24 Reserved0

7:0

DC

RESERVED



185.25 RESERVED (G185ADDR25)
Address: 0x9C005CE4
Reset: 0x0


Field Name

Bit

Access

Description

G185A25 Reserved031:0DCRESERVED



185.26 Check Sum (ddfch0 chksum info)
Address: 0x9C005CE8
Reset: 0x0


Field Name

Bit

Access

Description

G185A26 Reserved031:16DCRESERVED
check sum15:0ROcheck sum
Always monitor CUR engine.



185.27 DDFCH Error Flag (ddfch0 error flag info)
Address: 0x9C005CEC

Reset: 0x0


Field Name

Bit

Access

Description

G185A27 Reserved431:18DCRESERVED
axi rresp ma1 status17:16ROlatch AXI read response error status in MA1
RGST write command:
0x1: clean error status others: reserved. RGST read command:
0x0 means OKAY.
0x1 means EXOKAY.
0x2 means SLVERR.
0x3 means DECERR.
G185A27 Reserved315:14DCRESERVED
axi rresp ma0 status13:12ROlatch AXI read response error status in MA0
RGST write command:
0x1: clean error status others: reserved. RGST read command:
0x0 means OKAY.
0x1 means EXOKAY.
0x2 means SLVERR.
0x3 means DECERR.
G185A27 Reserved211DCRESERVED
burst cnt ma1 error flag10OTHERwhen axi MA1 doesnt have 32 bursts per cmd, error flag=1
RGST write command:
0: DO NOT clean error flag
1: clean error flag
RGST read command:
0: error flag is NOT valid
1: error flag valid
burst cnt ma0 error flag9OTHERwhen axi MA0 doesnt have 32 bursts per cmd, error flag=1
RGST write command:
0: DO NOT clean error flag
1: clean error flag
RGST read command:
0: error flag is NOT valid
1: error flag valid
cur luma lb empty flag8OTHERcurrent luma line buffer empty in active line
RGST write command:
0: DO NOT clean error flag
1: clean error flag
RGST read command:
0: error flag is NOT valid
1: error flag valid
G185A27 Reserved17:6RORESERVED
cu er flag5OTHERcurrent luma data fetch incomplete frame
RGST write command:
0: DO NOT clean error flag
1: clean error flag
RGST read command:
0: error flag is NOT valid
1: error flag valid
G185A27 Reserved04:0DCRESERVED



185.28 DDFCH BIST Mode andOutput 422 YCbCr by Configuration (ddfch0 bist)
Address: 0x9C005CF0
Reset: 0x0

Field Name

Bit

Access

Description

bist cr31:24RW

bist mode background color chroma element Cr

bist cb23:16RWbist mode background color chroma element Cb
bist y15:8RWbist mode background color luma element Y
G185A28 Reserved17:6DCRESERVED
bist pattern mode5:4RW

bist pattern mode

According to video size
0x0: Border Mode (background color is black, border is white) (default)
0x1: color bar.
0x2: background color (Config by User)
0x3: background color + Border(white)

G185A28 Reserved03:2DCRESERVED
bist pattern type1RW

bist mode pattern type

CUR engine bist output data volume.
0: one Field / FIELD START (default)
1: one Frame / FIELD START.

bist en0RW

bist mode enable

0: off (Disable) (default)

1: on




185.29 DDFCH IPBG AXI Debug Information (ddfch0 axi ipbg info)
Address: 0x9C005CF4
Reset: 0x0


Field Name

Bit

Access

Description

G185A29 Reserved231:24DCRESERVED
cnt aw cp depth ma123:22ROmonitor write cmd fifo in MA1
it should be zero at filed end
cnt ar cp depth ma121:20ROmonitor read cmd fifo in MA1
it should be zero at filed end
cnt aw cp depth ma019:18ROmonitor write cmd fifo in MA0
it should be zero at filed end
cnt ar cp depth ma017:16ROmonitor read cmd fifo in MA0
it should be zero at filed end
G185A29 Reserved115:13DCRESERVED
arb cmdq num ma112:8ROthe residual command which axi port 1 didn't get yet
it should be zero at filed end

G185A29 Reserved0

7:5

DC

RESERVED

arb cmdq num ma0

4:0

RO

the residual command which axi port 0 didn't get yet

it should be zero at filed end 



185.30 RESERVED (G185ADDR30)
Address: 0x9C005CF8
Reset: 0x0


Field Name

Bit

Access

Description

G185A30 Reserved131:0DCRESERVED



185.31 Others Debug Information (ddfch0 others info)
Address: 0x9C005CFC

Reset: 0x0


Field Name

Bit

Access

Description

G185A31 Reserved131:20DCRESERVED
MONITOR START LINE19:8RWCUR luma line buffer monitor start line(when AXI ac- cept cmd), to monitor line buffer empty error
use in error flag, G185.27[8]
G185A31 Reserved07:2DCRESERVED
DDFCH VPOST CUR VALID1ROmonitor between DDFCH and VPOST CUR interface
from DDFCH to VPOST
VPOST DDFCH CUR REQ0RO

monitor between DDFCH and VPOST CUR interface
from VPOST to DDFCH




RGST Table Group 196 OSD0 G0

196.0 OSD Control Register (osd ctrl)
Address: 0x9C006200
Reset: 0x0000 0027


Field Name

Bit

Access

Description

reserved31:16RORESERVED
reserved15:13RWRESERVED
OSD FLAG CLEAN12RWOSD error flag cleaning
This function can be switched on by changing polarity of this bit
reserved11RWRESERVED
OSD COLOR RGB10RWselect output transparent RGB value
0: YUV Black Color. (default)
1: RGB Black Color.
reserved9RWRESERVED
OSD NON FETCH EN8RWEnable non-fetching region
0: Disable (default)
1: Enable
OSD CLUT FORMAT SEL7RWCLUT format selection
0: YCbCrA8888/GBRA8888 (default)
1: ACrYCb8888/ARGB8888
reserved6RWRESERVED
OSD latch en5RWupdates configure only at field start
0: off(direct mode)
1: on(latch mode) (default)
Note: Not support danamic switch.
OSD A32B32 EN4RWEnable A32B32 fetching
0: Disable (A16B16)(default)
1: Enable (A32B32)
reserved3RWRESERVED
REQ FIFO DEPTH2:0RWRequest fifo depth for DRAM request,
0: Not allowed
1 7: Allowed range for request fifo depth



196.1 OSD Enable (osd en)
Address: 0x9C006204
Reset: 0x0


Field Name

Bit

Access

Description

reserved31:13RORESERVED
GCLK FORCE FREE12:4RW

Force gated clock to free run clock
bit 04: For GCLK OSD DEHEADER G1

bit 05: For GCLK OSD DEHEADER G2

bit 06: For GCLK OSD DEHEADER G3

bit 07: For GCLK OSD DEHEADER G4

bit 08: For GCLK OSD DEHEADER G5

bit 09: For GCLK OSD DEHEADER G6

bit 10: For GCLK OSD DEHEADER G7

bit 11: For GCLK OSD DEHEADER G8

bit 12: For GCLK OSD DEHEADER G9

reserved3:1RORESERVED
OSD en0RWenable of OSD function
0: Disable (default)
1: Enable



196.2 OSD Base Address (osd base addr)
Address: 0x9C006208
Reset: 0xFFFF FFE0


Field Name

Bit

Access

Description

OSD BASE ADDR31:5RWLink pointer to the first display region.
reserved4:0RORESERVED


196.3 OSD Reserved 3 (osd reserved 3)
Address: 0x9C00620C

Reset: 0x0


Field Name

Bit

Access

Description

reserved31:0RORESERVED



196.4 OSD Reserved 4 (osd reserved 4)
Address: 0x9C006210
Reset: 0x0


Field Name

Bit

Access

Description

reserved31:0RORESERVED



196.5 OSD Reserved 5 (osd reserved 5)
Address: 0x9C006214
Reset: 0x0


Field Name

Bit

Access

Description

reserved31:0RORESERVED



196.6 Debug register (reserved)
Address: 0x9C006218
Reset: 0x0


Field Name

Bit

Access

Description

reserved31:0RORESERVED


196.7 Debug register (reserved)
Address: 0x9C00621C

Reset: 0x0


Field Name

Bit

Access

Description

reserved31:0RORESERVED


196.8 OSD Request Control Register (osd req ctrl)
Address: 0x9C006220
Reset: 0x0000 8020


Field Name

Bit

Access

Description

reserved31:16RORESERVED
OSD urg regu en15RWosd vblank urgent regulator function enable
reserved14:9RORESERVED
OSD urg th8:0RWosd fifo urgent threshold
0x1FF..0x100: always urgent
0x0: no urgent request
other: urgent when the fifo-grant-count smaller than this value unit: 32bytes, bit[1:0] will be discarded



196.9 Debug register (reserved)
Address: 0x9C006224
Reset: 0x0


Field Name

Bit

Access

Description

reserved31:16RORESERVED

reserved

15:0

RW

RESERVED



196.10 Debug register (reserved)
Address: 0x9C006228
Reset: 0x0


Field Name

Bit

Access

Description

reserved31:6RORESERVED
reserved5:0RW

RESERVED



196.11 Debug register (reserved)
Address: 0x9C00622C

Reset: 0x0


Field Name

Bit

Access

Description

reserved31:13RORESERVED
reserved

12:0

RW

RESERVED



196.12 Debug register (reserved)
Address: 0x9C006230
Reset: 0x0


Field Name

Bit

Access

Description

reserved31:12RORESERVED

reserved

11:0

RW

RESERVED



196.13 Debug register (osd debug queue lock)
Address: 0x9C006234
Reset: 0x0


Field Name

Bit

Access

Description

reserved31:3RORESERVED
QUEUE NUM LOCK CMD2:0RWSet serial number of command queue to calculate GNT- DONE slowest cycle
This reigster means serial number of command queue. Set-
ting for ADDR.31



196.14 OSD field-updated CRC Checksum (osd crc chksum)
Address: 0x9C006238
Reset: 0x0


Field Name

Bit

Access

Description

reserved31:16