
2
AV PCI CONTROLLER
CONTENTS
Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
Applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
The ZR36067 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
JPEG System Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
Motion Video Compression. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
Motion Video Decompression . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
Still Image Compression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
Still Image Decompression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
Notations and Conventions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5
Architectural Overview . . . . . . . . . . . . . . . . . . . . . . . .6
Pin Descriptions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7
Functional Overview . . . . . . . . . . . . . . . . . . . . . . . . . .8
Digital Video Path . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Digital Video Front End (VFE). . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Video Input Processor. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Pixel Formatting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Video DMA Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Pixel Bursts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8
Display Modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Frame Grabbing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Overlay Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Host Control/Communication Services . . . . . . . . . . . . . . . . .9
Application-Specific Registers (ASRs) . . . . . . . . . . . . . . . . . . . . .9
GuestBus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
PostOffice Handshaking Protocol . . . . . . . . . . . . . . . . . . . . . . . . .9
Still Transfer Mechanism. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
I
2
C Port. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Interrupt Manager . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Code DMA Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
MPEG Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
JPEG Modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Interfaces. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
PCI Bus Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
Digital Video Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10
Sampling The Incoming Video . . . . . . . . . . . . . . . . . . . . . . . . . .11
Synchronization Signal Generation. . . . . . . . . . . . . . . . . . . . . . .11
ZR36067 Connection To ZR36060 Video Interface . . . . . . . . . .12
Pixel Transfer In Still Image Compression Mode . . . . . . . . . . . .13
Pixel Transfer In Still Image Decompression Mode . . . . . . . . . .13
GuestBus Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
Flexible GuestBus Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14
Code-Write Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14
Doubleword to Bytes Mapping in Code-Write Operations. . . . . .14
PostOffice Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14
GuestBus Wait States . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14
PostOffice Handshaking Protocol . . . . . . . . . . . . . . . . . . . .15
Host Writes to a Guest Device . . . . . . . . . . . . . . . . . . . . . . . . .15
Host Reads from a Guest Device . . . . . . . . . . . . . . . . . . . . . . .15
Codec Bus Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
Compression Mode Code Transactions . . . . . . . . . . . . . . . . . . .16
Decompression Mode Code Transactions . . . . . . . . . . . . . . . . .16
Code Bus Stalling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16
Connecting ZR36067 To ZR36060 Host and Code Interfaces . .17
I2C Bus Interface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
General Purpose I/O Pins . . . . . . . . . . . . . . . . . . . . . . . . . .17
Interrupt Requests. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17
Video Input Processor . . . . . . . . . . . . . . . . . . . . . . . 18
Horizontal Filter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
Horizontal/Vertical Downscaler . . . . . . . . . . . . . . . . . . . . . .18
Color Space Converter . . . . . . . . . . . . . . . . . . . . . . . . . . . .18
Video Output Control . . . . . . . . . . . . . . . . . . . . . . . . 19
Display Modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
Frame Grabbing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19
Output Pixel Organization . . . . . . . . . . . . . . . . . . . . . . . . . .19
Graphics Overlay. . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
JPEG Code Transfer . . . . . . . . . . . . . . . . . . . . . . . . . 20
The Code Buffer Table . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
Fragment Table. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
JPEG Compression Modes. . . . . . . . . . . . . . . . . . . . . . . . .21
JPEG Decompression Modes . . . . . . . . . . . . . . . . . . . . . . .21
Reset. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Hardware Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
Software Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
JPEG P_reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
Subsystem ID And Subsystem Vendor ID . . . . . . . 23
Subsystem ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23
Subsystem Vendor ID . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23
PCI Configuration Space Registers. . . . . . . . . . . . . 24
Application-Specific Registers (ASRs) . . . . . . . . . . 25
Video Front End Horizontal Configuration Register . . . . . .25
Video Front End Vertical Configuration Register. . . . . . . . .25
Video Front End, Scaler and Pixel Format Register . . . . . .26
Video Display “Top” Register . . . . . . . . . . . . . . . . . . . . . . .27
Video Display “Bottom” Register . . . . . . . . . . . . . . . . . . . . .27
Video Stride, Status and Frame Grab Register. . . . . . . . . .27
Video Display Configuration Register . . . . . . . . . . . . . . . . .27
Masking Map “Top” Register. . . . . . . . . . . . . . . . . . . . . . . .28
Masking Map “Bottom” Register . . . . . . . . . . . . . . . . . . . . .28
Overlay Control Register. . . . . . . . . . . . . . . . . . . . . . . . . . .28
System, PCI and General Purpose Pins Control Register .29
General Purpose Pins and GuestBus Control Register (I) .29
MPEG Code Source Address Register . . . . . . . . . . . . . . . .29
MPEG Code Transfer Control Register. . . . . . . . . . . . . . . .30
MPEG Code Memory Pointer Register . . . . . . . . . . . . . . . .31
Interrupt Status Register . . . . . . . . . . . . . . . . . . . . . . . . . . .31
Interrupt Control Register . . . . . . . . . . . . . . . . . . . . . . . . . .31
I
2
C-Bus Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
PostOffice Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32
JPEG Mode and Control . . . . . . . . . . . . . . . . . . . . . . . . . . .33
JPEG Process Control . . . . . . . . . . . . . . . . . . . . . . . . . . . .33
Vertical Sync Parameters . . . . . . . . . . . . . . . . . . . . . . . . . .34
Horizontal Sync Parameters . . . . . . . . . . . . . . . . . . . . . . . .34
Field Horizontal Active Portion . . . . . . . . . . . . . . . . . . . . . .34
Field Vertical Active Portion . . . . . . . . . . . . . . . . . . . . . . . .34
Field Process Parameters. . . . . . . . . . . . . . . . . . . . . . . . . .34
JPEG Code Base Address . . . . . . . . . . . . . . . . . . . . . . . . .34
JPEG Code FIFO Threshold . . . . . . . . . . . . . . . . . . . . . . . .34
JPEG Codec Guest ID . . . . . . . . . . . . . . . . . . . . . . . . . . . .35
GuestBus Control Register (II) . . . . . . . . . . . . . . . . . . . . . .35
“Still Transfer” Register . . . . . . . . . . . . . . . . . . . . . . . . . . . .35