Page 1
L64005 Enhanced MPEG-2 Audio/Video Decoder Technical Manual Final Edition May 1998...
Page 2
LSI Logic; nor does the purchase or use of a product from LSI Logic convey a license under any patent rights, copyrights, trademark rights, or any other of the intellectual property rights of LSI Logic or third parties.
Page 3
Preface This book is the primary reference and technical manual for the L64005 MPEG-2 Audio/Video Decoder. It contains a complete functional descrip- tion and includes complete physical and electrical specifications for the L64005. Audience This document assumes that you have some familiarity with microproces- sors and related support devices.
Page 5
(for pin 69) allows switching between the loop fil- ter and the CAS signal. Pinout Changes If the L64005 is used with fast page mode DRAM, then a few changes are needed. For further information, please refer to Chapter 9: Specifica- tions.
Page 6
512-page size select. In the L64005, bits [4:3] are used to select the DRAM mode. Refer to Chapter 2 for more details. ♦ In the L64005 32-bit mode is not supported. Bit 5 of Group 7, Reg- ister 1 is now reserved. ♦...
Moving Picture Expert’s Group MPEG-2 International Standard (IS) 13818 as applied to video compression and decompression. These sec- tions provide a good foundation for the L64005-specific discussion that follows in Sections 1.5 through 1.7. The MPEG standard defines a format for compressed digital video.
Resolutions are about 352 pixels horizontally up to about 288 lines vertically for MPEG-1 and 720 x 576 for MPEG-2 (main profile/main level). The L64005 is capable of resolutions up to 720 x 576 for either MPEG-1 or MPEG-2. ♦...
♦ Audio Data The L64005 uses the audio data to reconstruct the sampled audio data. Its format is beyond the scope of this document. The data structures for Layer I dual channel/stereo, intensity stereo, and for the more complex Layer II audio data fields are described in Sections...
fits the scale of economy for these applications that require many decoders to a few encoders. The L64005 is fully complaint with the MPEG-2 standard main profile, main level. As such it can also decode an MPEG-1 video sequence.
Figure 1.7 shows how an audio/video decoding system uses the L64005. 1.5.1 The L64005 operates optimally at image sizes up to 720 x 480 pixels, Video Decoding with a frame rate of 30 fps (720 x 576 @ 25 fps for PAL). This is some- times referred to as “main level, main profile”...
DRAM found in non-integrated audio solutions. 1.5.3 The L64005 uses on-chip interpolation filters to interpolate images with Post Processing resolutions below 720 x 480 to full size. This allows programming pro- duced at different resolutions to be decoded and displayed on televisions with standard NTSC or PAL timing.
A user port allows you to program system options and monitor the oper- User Interface ation of the device. Errors flagged by the L64005 and user data present in this channel may be read through this port. However, the device will not maintain unread user data indefinitely.
Page 40
The L64005 flags the errors so that they may be masked in the display or on the audio output. An external programmable microcontroller may execute mechanisms to recover from gross errors.
Page 41
The system layer is parsed bit serially before the data is written to the channel buffers. The L64005 parses MPEG-2 Pack Layer and video and audio PES pack- ets only. Other types of PES packets are discarded. The video and audio streams are separated into header and payload streams and written to independent buffers in the DRAM.
1.6.3.3 Interlaced/Chroma Field Repeat or Chroma Line Repeat Video Output The L64005 can output video to an interlace-scanned video monitor or television. The video timing circuitry must output the correct pulse train for both odd and even fields, as well as the transition between fields. The number of active scan lines in a typical field is 240, though the actual...
Page 43
field is dis- played twice. The L64005 may be programmed to repeat a field. The full picture can be displayed during each field of an interlaced video display system. This feature is only available when not using Reduced Memory Mode, how- ever.
MPEG Layer 1 or Layer 2 only. 1.6.5.1 Input Buffering The L64005 provides for an audio channel buffer (rate buffer) as part of the attached DRAM store. This offers considerable savings over separate audio decoders which need an additional DRAM for channel buffering when operating in conjunction with a video decoder.
1.6.5.3 Audio Decode Rate Control The L64005 decodes audio data at a rate proportional to the audio sam- ple frequency. The sample frequency is either derived internally from the 27-MHz SYSCLK reference, or externally from the oversampling clock reference input, ACLK.
An external system controller (microcontroller) is responsible for test, ini- System tialization, and real-time control of the L64005. The interface between the Controller system controller and the L64005 is 8 bits wide and fully asynchronous. Interface 1.6.6.1 Device Initialization The system controller defines the operational mode of the L64005 decoder.
Output pins are also provided that reflects this status. These pins are used where a hardware handshake is needed. 1.6.7 Coded bitstream data is typically written serially into the L64005. On Channel each rising edge of a serial channel clock, the decoder reads a single bit Interface and an associated data-valid signal.
If the coded data in the channel is changed to a new program source, the system controller must inform the bitstream parser to stop decoding and search for a new intra-frame resynchronization point. The L64005 then freezes on the last complete anchor frame until a new sequence is acquired.
Page 49
♦ Provides 8-bit Y/C output data format in interlaced or progressive scanned mode. ♦ Interfaces directly to LSI Logic's L64007, L64008, and L64108 trans- port demultiplexers on the input and off-the-shelf NTSC/PAL encod- ers on the output. ♦ Provides a complete on-chip channel buffer and display buffer con- trols.
Page 51
Section 2.8, “Group 6 Secondary Control Registers” ♦ Section 2.9, “Group 7 Secondary Control Registers” The L64005 uses an address indirection scheme to access a large num- L64005 Register ber of internal state registers using a small number of external address Overview pins.
Page 67
The following paragraphs describe the function of bits [7:0] during a write only. Channel Start/Reset 7, W Setting CS causes the L64005 to allow data into the channel buffers. Clearing CS causes the L64005 to reset the channel buffers and not allow data to enter the buff- ers.
Note that once the FIFO has overrun, the status bits stay at 11 until the register is read. The L64005 will then mark the FIFO as full until a subsequent read clears the full condition or it once again becomes overrun.
2, R/W When DER is set, it indicates that the audio or video decoder has detected a decode error. The L64005 sets DER when any one of the error status bits in Group 6, Register 1 is set. The following table lists these bits and the corresponding error conditions.
Set RAF to reset the Aux Data FIFO. Reset User Data FIFO 0, W Set RUF to reset the User Data FIFO. These registers access secondary control functions inside the L64005. Group 6 The register accessed within Group 6 is selected by writing its index into Secondary the Address Indirection Register (Group 0).
VLCE Variable Length Code or Run-Length Error 0, R When set, VLCE indicates that the L64005 has found a variable length code that is illegal in the current context, or the combined run-length in a block exceeds 64. When the audio decoder sets VLCE, it also sets the DER bit in Group 3.
Refer to ECN Item 5.1 Pan and Scan from Bitstream 5, R/W Setting PSB causes the L64005 to decode the pan and scan parameter from the bitstream. Clearing PSB allows the user to set the pan and scan offsets through host software control.
3, R This bit indicates whether an odd field is coded before an even field in the MPEG video stream. The L64005 sets ODFF either when the first field of a single frame is an odd field, or when the first field of a three field pulldown sequence is an odd field.
MD96.230 Bottom/Top Field Indicator 1, R The L64005 sets BTF at the first horizontal sync after a vertical sync when Bottom Field data is being displayed. The L64005 clears BTF at the first horizontal sync after a vertical sync when Top Field data is being displayed.
EXCLK External Audio Clock Select 0, R/W Setting EXCLK causes the L64005 to use an externally supplied audio clock (ACLK) for the derivation of the audio sample rate. Clearing EXCLK causes the L64005 to use SYSCLK (normally 27 MHz).
Page 93
AE[1:0] OH CF ACMODE[1:0] ASF[1:0] Register 52 AE[1:0] Audio Emphasis [7:6], R AE[1:0] indicates the type of emphasis that the L64005 uses. AE[1:0] Type of Emphasis No Emphasis 50/15 Microsecond Emphasis Reserved CCITT J.17 Audio Original/Home 5, R When set, this bit indicates that the bitstream contains original data.
1100 1101 1110 1111 Reserved Reserved 1. The L64005 does not support Free Format. The L64005 will not decode Free Format input. 2.8.33 Register 54 controls and reports the status of audio trick modes. These Group 6 registers are read/write.
Page 96
The ADMC[1:0] bits select from which channel, left or right, the dual mono data is output from the audio decoder. Note that this is only used when the L64005 receives dual mono audio bitstreams. The default at reset is 00 or stereo mode.
See Section 6.3, “Reduced Memory Mode”, for more information. 2.9.20 Registers 29 through 30 are reserved for LSI Logic and should not be Group 7 read or written. Reserved...
Display Master Mode 1, R/W When set, DMM causes the display controller on the L64005 to drive the VS and HS pins. When DMM is clear, these pins are inputs, and the L64005 locks to an exter- nal sync source.
Audio Start Code address in the channel because of the delay caused by the internal buffering. These registers are read only. 2.9.25 Registers 43 and 47 are reserved for LSI Logic use and should not be Group 7 read or written. Reserved...
2.9.27 Registers 51 and 52 stores the DRAM transfer word count. Each time Group 7 that a block move DRAM read and write cycle completes, the L64005 DRAM Transfer decrements the value of the DRAM transfer word count and generates Count Registers an interrupt when the count reaches zero.
Register 54 is the Revision ID Register for revisions C and higher of the Group 7 L64005. The register was unavailable on revisions A and B. The values Revision ID read from this register will be 0x2D, 0x4D, 0x6E and 0x6D for revisions Register C, D, E and F respectively.
Page 115
When set, VRF commands the L64005 to repeat the next I, P, or B frame. When it completes the repeat, the L64005 clears this bit to let the user know that the repeat has been completed. In this mode, the L64005 stops decoding and displays the same frame a second time.
L64005 generates an interrupt. The SCR SCR Compare Compare Value may be used for synchronization purposes. Value 2.9.33 Registers 60 through 63 are reserved for LSI Logic use and should not Group 7 be read or written. Reserved Registers...
♦ Section 3.5, “Audio Interface” ♦ Section 3.6, “PLL Interface” Figure 3.1 shows the logic symbol for the L64005 and its six interfaces listed below: ♦ User Interface – the 8-bit interface used for programming the L64005 internal registers and reading status ♦...
Page 119
When CS is LOW, AVALID and VVALID must be HIGH if they are used in parallel channel mode. The controller can latch the data from the L64005 with the ris- ing edge of CS. During a write cycle, CS must be asserted LOW prior to data becoming valid from the con- troller to the L64005.
Page 121
SCLKI may be asyn- chronous to the device clock. The value on SERI is clocked into the L64005 video channel buffer on the rising edge of SCLKI if VVALID is asserted HIGH and the device is in serial stream mode.
3.2.1 A parallel channel write request is made when the L64005 asserts VREQ Parallel Channel LOW. The write remains pending until the rising edge of VVALID signal Writes writes the data to the chip. The L64005 deasserts VREQ HIGH in response to the falling VVALID signal, then the controller is free to assert VVALID HIGH and switch off the data bus.
Similarly, the L64005 asserts AREQ signal when space is available in the audio channel buffer. AREQ is deasserted HIGH when the channel is unable to accept more data. After AREQ is deasserted, the channel can accept eight more bits after eight serial clock data transfer cycles before it stops accepting data.
TESTCLK Synchronous DRAM Test Clock Input TESTCLK is used to provide a test clock to the L64005 when its internal PLL is bypassed by tying BYPASS to a logic ‘0’. BYPASS PLL Bypass Input BYPASS, when pulled to a logic ‘0’, causes the L64005’s...
SYSCLK clock reference using an internal divider. Jittering the BCLK and LRCLK signals yields, on average, an accurate audio sample rate. In slave mode, the L64005 takes the oversampling clock reference provided on the ACLK pin as an accurate external DAC clock reference.
PCB. Pin 69 Loop Filter Connection For Rev. E of the L64005 the external loop filter is not required and Pin 69 is Not Connected. However, if the board in question already has the filter described below, it may remain in place without affecting the operation of the device.
(in particular, increase the number of Slice Layers) to decrease the propagation of errors. The L64005 therefore takes the approach of “damage control” in response to channel errors, regardless of their source. The channel switch time can be decreased by increasing the number of sequence start codes in the stream.
4.2.1.1 Synchronization in the System Header and Packet Layer The L64005 performs system synchronization for an MPEG-1 or MPEG- 2 system layer only. The L64005 parses these layers to separate the sys- tem header from the elementary video and audio streams. The system header data is stored in separate DRAM channel buffer(s) and can be read on demand by the external controller.
Errors occurring in the packet header can cause synchronization failure. An error occurs when the packet length count does not match the actual length of the packet. When an error occurs, the L64005 can optionally clear the channel buffer to limit error propagation.
Page 133
MPEG syntax, not a fault in the design of the L64005. However, the L64005 can detect this condition and will try to resync to the next start code.
Pack, System, and Packet layers. The bitstream is assumed to be time-multiplexed and contain Audio and Video packets. In Program Stream Mode, the data is strobed into the L64005 with the AVALID sig- nal. Both the Audio and Video header information is stored in the Audio PES header buffer in DRAM.
Page 135
MPEG bitstream, while not compliant, do not flag errors in the L64005. Group of Pictures Layer – The L64005 enters the Group of Pictures Layer from the Video Sequence Layer only if the device is synchronized to the Video Sequence Layer and no errors have been detected.
Page 136
Picture Layer – The L64005 enters the Picture Layer from the Group of Pictures Layer only if no errors have been detected in the Group of Pic- tures header. Errors in the header of the Picture Layer have different propagation effects depending on the picture coding type.
MPEG Transport Layer chip. Users should ensure that some portion of the buffer still resides on the L64005 so that the decoder does not get starved of data. The minimum buffering requirement specified by MPEG-2 “main level, main profile”...
Data in the on-chip read or write FIFOs is not considered when determining the buffer full state. If the channel buffer becomes full, the L64005 flags an error and may signal an interrupt. It also stops asserting VREQ and AREQ. Data sent to the decoder at this time will be lost, which results in decode errors and error concealment.
Decoding start, it continually decodes pictures at a rate controlled by the frame rate of the display system. This rate is set either by the L64005 display con- troller registers (master mode) or by an external sync signal. Once the system controller instructs the L64005 to start decoding, it...
The L64005’s built-in controllers allow frame memories to decode and Overview display an MPEG bit stream. The L64005 can access memory through a 64-bit data bus in regular DRAM mode and through a 16-bit data bus in synchronous DRAM mode.The interface is optimized to operate at res- olutions up to 720 x 576 pixels.
The typical set of 4-Mbit DRAMs are 70-ns devices operating in fast page Regular DRAM mode at the nominal device clock of 27 MHz. The L64005 limits the Mode allowable page length to 512 words (4096 bytes), regardless of the mem- ory type used.
DRAM Mode accesses, from both bank 0 and bank 1. In synchronous DRAM mode, the L64005 limits the page length to 128 words (1024 bytes). The L64005 also accesses bank 0 and bank 1 evenly to minimize page breaks. The L64005 SDRAM interface provides a single 12-bit row/col- umn multiplexed address bus;...
Page 147
MSB. In this mode, the host accesses DRAM directly through the registers in the L64005. The host can either write to the DRAM or read from the DRAM. Host Mode Write – There are two different ways in which the host can write to the DRAM: single word writes and multiple word writes.
Page 153
DRAM during this time. If the host is polling the DRAM ready bits, the L64005 generates an interrupt when the count reaches zero and then sets the DRAM ready bits to indicate that the block move is complete.
Access N Access A write cycle is initiated if WE is LOW when the L64005 asserts CAS LOW. WE remains LOW throughout the entire cycle (read and write cycles are not intermixed during a burst transfer to a page). In a read cycle, the L64005 asserts OE LOW while WE is HIGH.
81-MHZ clock controls all interface signals. A write cycle is initiated if WE is LOW when CAS is also LOW; in a read cycle, the L64005 holds WE HIGH while CAS is LOW. Please note that read and write cycles are never intermixed during a burst transfer to a page.
DRAM interfaces. 5.3.5.1 Regular DRAM Interface In the regular DRAM interface, the L64005 asserts CAS before a RAS refresh cycle. The refresh cycle immediately follows any regular access to the DRAM, and requires eleven 81-MHz clock cycles to complete. This refresh continues even if the decoder is stopped.
Memory Map of data. To optimize the data access time and minimize storage require- ments, data is stored in frame stores. In the L64005 architecture, data must be stored in a way that increases the burst length of the access.
VBI data pointer in real time. Different pointers access chroma and luma data in each of the data areas. The L64005 stores data in an identical format in the anchor frame, B frame, and VBI data areas to simplify the display controller and the macroblock access logic.
256-byte address range (LSB = 00000 ). The Channel end addresses are at byte 255 of the address range (LSB = 11111 (Figure 5.12 illustrates the channel buffer organization in the L64005. 5-20 External Memory Interface Final Rev F...
5.5.1 The Video PES buffer stores the PES header information that corre- Video PES sponds to Video PES packets when the L64005 is programmed to be in Buffer the MPEG-2 PES mode. This buffer stores all of the header information that corresponds to video above the sequence header in the MPEG lay- ered structure.
5.5.2 The Audio PES buffer stores the PES header information that corre- Audio PES sponds to Audio PES packets when the L64005 is programmed to be in Buffer the MPEG-2 PES mode. This buffer stores all the header information that corresponds to audio that is above the sequence header in the MPEG layered structure.
Section 6.9, “On-Screen Display” ♦ Section 6.10, “Interrupts from the Display Controller” The L64005 outputs video eight bits at a time at the device operating fre- Video Output quency (SYSCLK). Because data is read from the frame memories in Format bursts, internal FIFOs in the L64005 can sustain a continuous data rate during the active portion of the display.
MD96.21 Active HIGH signals Active LOW signals 6.1.1 The L64005 contains a 2-tap vertical filter. It can be used to interpolate Post- luma lines or reposition chroma lines. There are four display output Processing 480- modes for NTSC 480-line and PAL 576-line pictures: interlaced/chroma and 576-Line field repeat without chroma filtering, interlaced/chroma field repeat with...
1. L n are the luma processing coefficients. 6.1.2.3 Progressive Line Repeat/Chroma Filter Chroma needs to be oversampled 4:1. The L64005 uses a combination of line repeat and frame repeat to oversample chroma data. As before, filtering can be applied to improve the reconstructed chroma data.
The L64005 supports resolutions up to 720 x 576 pixels at its nominal Video clock frequency of 27 MHz. In addition, the L64005 displays pictures with Resolution fewer pixels using a polyphase interpolation filter to convert the input rate to the output rate of typically 720 pixels on a line. If the vertical resolution is 240 pixels, field repeat or optional vertical filter can be used to display...
L64005 requires that three frame stores are allocated Memory Mode in memory. In reduced memory mode, the L64005 requires that only 2.55 frame stores be allocated in memory. Setting the RMM bit in Group 7 Register 27 activates the reduced memory mode. See Section 2.9.19, “Group 7 Reduced Memory Mode Control”...
4,976,640 9,953,280 14,929,920 3.000 Reduced with 2,764,800 9,953,280 12,718,080 2.556 chroma line repeat The L64005 integrates an output interpolation filter that can be used to Horizontal Post- interpolate pixels on a scan line so that there are up to 720 pixels output Processing for each line, regardless of the input picture resolution.
filter banks closest to the calcu- Increment lated location. The L64005 integrates a raster mapper that increments by n/256 each output pixel. The table shows the raster mapper increment for each of a number of popular source image resolutions.
filter the OSD data. The resolution of the OSD data does not affect the resolution of the video data. The timing of the raster produced by the L64005 is programmable to Display Control account for the large number of possible display resolutions, line rates, Parameters input clocks, frame rates, and scanning modes.
6.5.1 The L64005 has programmable timing parameters and can generate a Video Raster sync timing train that is compatible with PAL or NTSC broadcast stan- Timing dards. The nomenclature of the video timing chain is illustrated in (Master Mode) Figure 6.7.
Horizontal timing parameters are measured in terms of the device clock, and are accurate to within one clock pulse. The user must write to the control registers over the L64005 user interface to set these parameters. If the L64005 is in Master Mode, all horizontal timing parameters—equal- ization, serration, and horizontal sync pulse—must be programmed.
The value is the Active Image Width of the output video (For video with horizontal width =720 pixels, “Active Image Width” would be 720 * 2 = 1440 device clocks.) Figure 6.9 shows how the L64005 registers program the horizontal and vertical video timing. Figure 6.9...
6.5.1.2 Vertical Timing Vertical timing parameters are measured in half-line or full-line times, using the half-line parameter defined in the horizontal timing. The user must write to the control registers over the L64005 user interface to set these parameters. Table 6.9...
VS signal must be received every field time Pixels output from the L64005 in slave mode are based on an internally generated reference counter with respect to the HS pulse. Users must...
6.7.1 MPEG-2 supports a variety of trick modes that are signalled in the Sys- Trick Mode tem Layer. The L64005 implements trick modes under control of the host Decoding controller using the decode start/stop and freeze frame/field features. 6.7.1.1 Fast Forward...
Figure 6.11 shows an example of freezing a frame for one field time. In this example, frame B2 is displayed in field times O3/E3, and then using freeze frame, it is repeated during fields times O4/E4. Note that LSI Logic recommends stopping the decoder whenever freeze frame is issued.
The host controller asserts the Decode Start signal at the appropriate time for the Presen- tation Unit (PU). The L64005 waits until the next PU boundary (frame or field sync, depending on coding mode) then begins to decode the pic- ture.
To save memory, the beginning of B frame reconstruction always overlaps the display of the last field of the preceding frame in the L64005. This is also true of slow motion mode. A mechanism exists inside the L64005 that prevents the last field from being overwritten before it is displayed.
Undefined The L64005 integrates a flexible on-screen display controller that allows On-Screen the overlay of text and graphics on top of the decoded video. The L64005 Display digitally mixes the overlay with the decoded video before outputting it on the video port. The L64005 always displays the overlay data at the same size regardless of the resolution or mode of the video data.
6.9.1.2 4 Bit/Pixel Mode Similar to its operation in 2 bit/pixel mode, in 4 bit/pixel mode, the L64005 reads overlay data from the DRAM frame stores and displays it at a rate of one pixel every two device clocks.
The L64005 fetches bitmap data from memory sequentially and stores it in a small FIFO. The L64005 reads data from the FIFO 2 (or 4) bits at a time and matches it up against the respective pixel from the video source before it is mixed together and displayed.
OSD area.The L64005 stores the address for field 1 of the first OSD in the Group 6, Index 24 and 25, OSD Field Pointer 1 Registers, in 32-byte resolution.
6.9.12 The overlay bitmaps are stored in the DRAM memory attached to the Accessing the L64005. This memory is accessed 64 bits at time through the micropro- Overlay cessor interface on the L64005. The display lists are also accessed Bitmaps through the same port.
48 kHz, 44.1 kHz, 32 kHz, 24 kHz, 22.05 kHz or 16 kHz. The decoder takes data from a channel buffer, which is imple- mented in the DRAM attached to the L64005. The decoder then parses the data and decompresses it. Finally, it presents the decoded PCM audio data over a serial DAC interface.
Decoder audio frames. The L64005 allows a section of an audio frame to be repeated, or to be skipped on demand. This slows down or speeds up the effective play rate and allows the decoder to come back into synchro- nization.
Group 6 Registers 52 and 53 are valid. 7.2.3 The L64005 uses a simple interface for a large number of serial PCM Setting the DAC DACs. It supports both baseband and oversampling DACs. However, with...
A phase con- stant BLCK is generally necessary when using an oversampling DAC. For this reason, the L64005 allows for an external DAC input clock to be supplied via the ACLK pin. This is called the ‘slave mode’. This clock is still passed through the NCO as described previously to generate BCLK, but BCLK is now phase constant.
Channel Data 7.2.7 The L64005 detects certain errors in the coded MPEG data, as well as Error Detection other error conditions. Table 7.2 lists the maskable interrupts that are used to indicate errors and their location. Refer to Chapter 2 for specific interrupt descriptions.
Group 6, Register 1, Bit 5 Audio decoding not complete by presentation time because of either channel underflow and/or corrupted data The L64005 handles the various types of audio errors encountered dur- ing decoding as follows: ♦ SYNC ERROR – The L64005 only synchronizes to syntactically cor- rect MPEG audio data.
Output Control present the PCM data in several different ways. In addition to stereo mode, the L64005 also supports left only and right only modes. Refer to the description of the Audio Dual/Mono Channel Select Bits (Group 6, Register 54, Bits [4:3]) on page 2-45 for specific programming informa- tion.
Page 209
System Stream Decoding and Synchronization Chapter 8 describes the resources that the L64005 provides for parsing an MPEG System Stream and synchronizing the audio and video decod- ers. The L64005 can parse the MPEG-1 System Layer, MPEG-2 Audio and Video PES Streams, and MPEG-2 Program Streams. While the...
Program Stream only switches from one PES packet to another at packet boundaries. The L64005 parses MPEG-1 system data the same way that it parses MPEG-2 system data, using a system parser between the incoming sys- tem data and the elementary stream buffers.
8.1.2 The L64005 accepts up to two interleaved PES streams (one video, one Parsing a audio) from a Transport Stream. The Transport Stream is different from...
Table 8.2 DRAM Map of an MPEG-2 Packet Header Structure in the Elementary Stream with Write Pointer Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 DRAM Stream ID Packet Length Packet Length Flags Word n (MSB)
A PTS indicates the time at which the PU that results from decod- ing the AU should be presented to the user. The L64005 samples the audio PTS and video PTS with respect to the same clock reference, the System Time Clock (STC).
L64005 external system with audio and video synchronization. Note that the Synchronization L64005 does not synchronize the audio and video by itself. It provides Resources timing and event information, as well as facilities to control the audio and video rate. The external system can read internal status registers when it receives interrupts, and may program video and audio control registers to close the control loop.
INTn+2 Interrupt ♦ The L64005 generates an interrupt when the picture header enters the video decoder as shown in Figure 8.5. A register captures the video channel read pointer at this time. This interrupt can be used to read the channel read pointer that corresponds to the picture start code.
PTS, DTS, and other informa- tion in the header with the elementary coded data. ♦ The L64005 generates an interrupt each time a PES packet start code enters the system buffer as shown in Figure 8.6. 8-12...
Index 55. The VSFC[1:0] bits of this register allows the external host pro- Skip and Repeat cessor to command the L64005 video decoder to skip to the next I, P, or Frame B frame. Refer to the subsection entitled “Group 7 Video Trick Modes”...
The VRF bit in the Video Trick Mode Register allows the external host processor to command the L64005 video decoder to repeat the next I, P, or B frame. When this bit is set, the video decoder repeats the next I, P, or B frame.
This will typically be the next field boundary in the middle of a frame. The L64005 video decoder will skip a frame if the frame skip bits are set when the decoder reads the picture header, or after the picture header has been read but the decoder is waiting for the next PU boundary.
Like the video decoder, the audio decoder can be programmed to adjust Audio Decoder its output rate. The L64005 allows a section of audio frame to be Rate Control repeated or skipped on request. This slows down or speeds up the effec- tive play rate and allows the decoder to resynchronize with the video.
NCO and increases the sampling rate. This section describes a basic audio/video synchronization algorithm. Audio/Video The algorithm uses the available set of features on the L64005 that were Synchronization described in the previous sections. Technique This algorithm is not the only one that you may choose for system imple- mentation.
Page 226
PCR field of the transport layer, or optionally, in the ESCR field of the PES header. Because the L64005 cannot accept transport layer packets, it cannot receive the PCR. A transport device such as LSI Logic’s L64007 Transport Demultiplexer can perform clock recovery and...
PCRs. The L64005 can perform clock recovery on the ESCR. Each step of the following algorithms is implemented as an inde- pendent subroutine called by the interrupt handler routine. 8.5.1 The clock recovery mechanism for the A/V synchronization system can...
SCRarr time is sampled at the arrival of the PCR from the transport device. 8.5.2 When audio and video PES packets enter the L64005, they are parsed Creating Audio and stored in the external memory buffer. This is the first step in the and Video PTS decoding process.The L64005 provides four separate regions for PES...
(depending upon the stream ID field) in the PES mode, or into the audio PES header buffer in system mode. At the end of the header, the L64005 writes the current write pointer value of either the video or the audio channel buffers.
The picture start code interrupt indicates when a picture in the channel Picture Header buffer starts decoding. Note that the L64005 actually starts decoding the Interrupt and picture on a PU boundary, which is determined by the vertical sync inter- AUX FIFO val.
GOTO Picture Type Routine Once the PTS from the table has been identified and the AUX FIFO Ready Interrupt occurs, the host processor must read the L64005 Auxil- iary data FIFO to determine the type of picture that is currently in the decode process.
PCR clock recovery or optionally can be initialized from an ESCR value from the PES packet. The SCR starts to run on the L64005 27-MHz clock that, divided internally by 300, pro- vides a 90-kHz input clock. From this point, the SCR value provides a presentation time as a reference for comparison with all subsequent PTSs obtained from the bitstream.
Page 236
Expected Audio PTS to Actual PTS Comparison Routine This section describes some practical considerations for synchronizing Real System the L64005 in a real system. Many of these considerations can be man- Considerations aged through software control. Real systems can have a large amount of jitter in the bitstream. The effects of jitter show up as clock recovery errors.
Page 239
Section 9.3, “Pin Summary” ♦ Section 9.4, “Packaging” Note: All specifications are for the L64005 revisions D through F. These devices are manufactured in LSI Logic’s 3.3-V, 0.5-micron LCB500K (rev. D) and 3.3-V, 0.35-micron G10 (rev. E and F) process technologies respectively, and are subject to change.
This section presents AC timing information for the L64005 MPEG-2 AC Timing Audio/Video Decoder. Figures 9.3 through 9.13 depict the following tim- ing relationships: ♦ Figure 9.3, “DRAM Write Cycle” ♦ Figure 9.4, “DRAM Read Cycle” ♦ Figure 9.5, “Sync DRAM Write Cycle”...
This section specifies the electrical requirements for the L64005. Four Electrical tables list electrical data in the following categories: Requirements ♦ Absolute Maximum Ratings (Table 9.3) ♦ Recommended Operating Conditions (Table 9.4) ♦ Capacitance (Table 9.5) ♦ DC Characteristics (Table 9.6) Table 9.3...
3. Not more than one output may be shorted at a time for a maximum duration of one second. 4. These values scale proportionally for output buffers with different drive strengths. Table 9.7 summarizes the L64005 pins. The table provides the drive Pin Summary capacity of the outputs and the signal types for both output and input pins.
Page 263
♦ Section A.4, “Engineering Practice for Mixed Voltage Systems” Special on-chip I/O buffers enable the L64005 to interface to 5-V ICs even though the on-chip power supply is only 3.3 V. This scheme meets all TTL and/or LVTTL specifications while conforming to the limits of pro- cess voltage stress .
♦ an L64005 output buffer that drives a TTL input on a 5-V IC ♦ an L64005 output buffer that drives a TTL or CMOS input on a 5V IC using an open drain configuration ♦ L64005 3-state output buffer that coexists on a common bus with one or more 5-V ICs.
Buffer For each configuration, a special purpose 5-V compatible I/O buffer is available in the technology used for L64005, which accepts signal voltage levels exceeding the 3.3-V on-chip power supply during normal system operation. 5-V compatible buffers are designed to interface to 5-V ICs without being true 5-V I/Os—they do not need a 5-V power supply on-...
Page 267
0.25 mA. Consider the effects of large numbers of 5-V compatible output buffers held in a static HIGH state under passive load conditions. If the L64005 holds a large number of outputs in a static HIGH state and con- sumes minimal AC power because of reduced or inhibited system clock...
= 6 mA A.2.6.2 AC Characteristics Table A.16 shows AC characteristics for a 3-state buffer used in the L64005. All values are given for nominal process conditions (V = 3.3V, = 25 °C). External load conditions are: C = 50 pF; Input ramptime LOAD (10% to 90%) = 0.8 ns.
Outputs 3.3 V. If the L64005 drives signals into CMOS 5-V input buffers on the interfacing chips, these signals may require an open drain output buffer. Figure 2.3 is a block diagram of the circuitry for a 5-V compatible open drain output buffer.
Page 270
BVD breakdown. If you follow good engineering practices when designing your mixed voltage system, these areas of potential risk will not affect the operation or long term life of the L64005 with 5-V compat- ible I/Os from LSI Logic. Additional precautions to protect the mixed volt- age ICs are not necessary.
Page 271
3-state mode using a power-on- reset signal until the system logic that performs arbitration is enabled. The signals at the host interface of the L64005 are 3-stated if the CS is deasserted. The designer should take care and deassert CS during power-on procedure.
Need help?
Do you have a question about the L64005 and is the answer not in the manual?
Questions and answers