Summary of Contents for Texas Instruments TMS320DM642
Page 1
TMS320DM642 EVM OSD FPGA User’s Guide Literature Number: SPRU295 June 2003...
Page 2
TI product or service and is an unfair and deceptive business practice. TI is not responsible or liable for any such statements. Following are URLs where you can obtain information on other Texas Instruments products and application solutions:...
Page 3
Preface Read This First About This Manual The document gives explains how to use the TMS320DM642 evaluation mod- ule with the on-screen display of the field−programmable gate array. Notational Conventions This document uses the following conventions. Program listings, program examples, and interactive displays are shown in a special typeface similar to a typewriter’s.
Page 4
The following books describe the TMS320VC5509 and related support tools. To obtain a copy of any of these TI documents, go to the TI website: www.ti.com. TMS320DM642 Video/Imaging Fixed-Point Digital Signal Processor Data Manual (SPRS200) provides timing and electrical specifications for the TMS320DM642.
Page 5
DMA (EDMA), expansion bus, clocking and phase-locked loop (PLL), and the power-down modes. Related Documentation From Spectrum Digital DM642 EVM Technical Reference (Spectrum Digital) describes the evalua- tion module for the Texas Instruments TMS320DM642. Trademarks Trademarks are the property of their respective owners.
Page 6
Trademarks This page is intentionally left blank.
TMS320DM642 OSD FPGA EVM This document describes the operation of the on-screen display (OSD) field programmable gate array (FPGA) used on the TMS320DM642 evaluation module (EVM). The FPGA is a Xilinx XC2S300E−6PQ208C. Features The OSD FPGA has the following features:...
EXTINT6 to the DSP. Table 1. Signal Definitions Signal Type Description Miscellaneous Signals RESET Asynchronous system reset FLASH_PAGE[2:0] Page bits for flash on EVM LED[7:0] LED outputs which drive LEDs on EVM SPRU295 TMS320DM642 OSD FPGA EVM...
Page 15
Data for serial control PLL_MC Bit clock for serial control Dual UART Interface UART_INTB, Interrupts from dual UART chip UART_INTA UART_RXRDYB, Receive ready from dual UART chip UART_RXRDYA UART_TXRDYB, Transmit ready from dual UART chip UART_TXRDYA SPRU295 TMS320DM642 OSD FPGA EVM...
Page 16
Signal Definitions (Continued) Signal Type Description FPGA Configuration Signals FPGA_INIT Delay configuration, indicate configuration clearing or error FPGA_PROG Asynchronous reset to configuration logic FPGA_DIN Serial configuration data input FPGA_CCLK Configuration clock FPGA_DONE Configuration status and start-up control TMS320DM642 OSD FPGA EVM SPRU295...
The OSD FPGA interfaces to the DM642 EMIF and video port 2. The FPGA also interfaces to the video encoder, clock PLL, dual UART, GPIOs, and LEDs. The different modules in the OSD FPGA and their functionality are described below. SPRU295 TMS320DM642 OSD FPGA EVM...
OSD data FIFO, unpacking of OSD data, and multiplexing of video and OSD data. The OSD control logic provides a control signal to control the OSD MUX, un- pack signal to the OSD unpack module, and event enable signal to the DMA event generator. SPRU295 TMS320DM642 OSD FPGA EVM...
The OSD Unpack Module reads data from the OSD Data FIFO and unpacks it into 8-bit data. Whenever the video port bus width is 8 bits wide, the OSD Unpack Module unpacks the data into 8-bit data every other clock cycle. TMS320DM642 OSD FPGA EVM SPRU295...
OSD CLUT, the write pointer increments, and points to the next memory location in the OSD CLUT. It is left to the software to ensure that the correct number of writes are performed to the OSD CLUT. SPRU295 TMS320DM642 OSD FPGA EVM...
Read Hold = 3 clock cycles Write Hold = 3 clock cycles Turn around = 3 clock cycles See the TMS320DM642 Video/Imaging Fixed−Point Digital Signal Processor Data Manual (literature number SPRS200) for further information on the EMIF SPRU295 TMS320DM642 OSD FPGA EVM...
DSP Asynchronous Read Setup Strobe Hold ECLKOUT2 DM642_EA DM642_OE DM642_ARE DM642_AWE DM642_ED DSP reads here For CE3 space setting recommendations please see section 3.2. Figure 11 and Figure 12 show the synchronous read and write cycles. TMS320DM642 OSD FPGA EVM SPRU295...
CE space as 32-bit programmable synchronous memory interface. The DM642 EMIF CE Space Secondary Control Register (CESEC3, DM642 Hex address 0x0180 0054) must have the following values set. See the TMS320DM642 Video/Imaging Fixed-Point Digital Signal Processor data SPRU295 TMS320DM642 OSD FPGA EVM...
Address Map Table 3 shows the memory map of the OSD FPGA for CE1 memory space. Base address for CE1 memory space is 9000 0000. Addresses specified are in Hex. TMS320DM642 OSD FPGA EVM SPRU295...
Synchronous Test Register † PLL Data Register † 01C-3C Reserved OSD YSTART Register OSD XSTART Register OSD XSTOP Register OSD YSTOP Register † The synchronous registers can be read reliably at a maximum ECLKOUT2 of 70 MHz. SPRU295 TMS320DM642 OSD FPGA EVM...
Places video clock DLL in reset. The DLL should be reset any time the video clock frequency is changed. CLEAR CLUT Clear Color Look Up Table Does not clear the Color Look Up Table (CLUT). Writing is allowed Clears the CLUT and writing to the CLUT is prohibited TMS320DM642 OSD FPGA EVM SPRU295...
OSD data. Every time the number of 32-bit words in the OSD Data FIFO drops below DMA threshold and the number of events is less than the events specified in Events-Per-Field register, a DMA event is generated. SPRU295 TMS320DM642 OSD FPGA EVM...
Interrupt Enable Register, the DSP is interrupted. This bit is cleared when the OSD data FIFO is no longer empty. Interrupt Enable Register The Interrupt Enable Register controls the interrupts from the OSD FPGA. SPRU295 TMS320DM642 OSD FPGA EVM...
Sets the direction for GPIOn, where n = the GPIO number between 7 and 0 Sets the GPIOn as input Sets the GPIOn as output GPIO Register The GPIO Register either controls or reflects the status of the GPIO signals. TMS320DM642 OSD FPGA EVM SPRU295...
LED7−0 LED switch. LEDn, where n = number 7−0, turns the LED on or off. Turns the LED on Turns the LED off Flash Page Register The DM642 can write to this register to set the 3 flash page bits. SPRU295 TMS320DM642 OSD FPGA EVM...
FPGA Version These bits define the FPGA version number. Synchronous Register Definitions Test Register The DM642 can read and write to this register to verify proper connections for all the 32 bits of the data bus. TMS320DM642 OSD FPGA EVM SPRU295...
(PLL1708). The data written in the 16 LSB bits of this register are written to the Clock PLL. The PLL TX END bit is set in the Interrupt Status Register on com- pleting the transmission. SPRU295 TMS320DM642 OSD FPGA EVM...
The OSD XSTART is defined in terms of active pixels. The design maintains an FP_COUNT, which counts active pixels within each line, and an FL_COUNT, which counts active lines within each field. Both the FP_COUNT and FL_COUNT counters start counting from 0. When the FP_CONT = OSD TMS320DM642 OSD FPGA EVM SPRU295...
The OSD XSTOP is defined in terms of active pixels. When the FP_COUNT = OSD XSTOP and FL_COUNT = OSD YSTOP, the OSD multiplexer stops multiplexing OSD data in output video stream. The synchronous registers can be read reliably at a maximum ECLKOUT2 of 70 MHz. Note: SPRU295 TMS320DM642 OSD FPGA EVM...
The synchronous registers can be read reliably at a maximum ECLKOUT2 of 70 MHz. Note: Different Video/OSD Modes of Operation The OSD FPGA acts as a bridge between the Video Port of DM642 and SAA7105 Encoder. The Video Port can be programmed as 8/10/16/20-bit port. TMS320DM642 OSD FPGA EVM SPRU295...
Page 39
Step 4: Program the 7-bit CLUT memory by writing to the OSD CLUT ad- dress in the CE3 space. The CLUT is 128 deep. You must be sure that the correct number of writes are made to the OSD CLUT. SPRU295 TMS320DM642 OSD FPGA EVM...
Page 40
Step 7: Write to the OSD XSTART, OSD YSTART, OSD XSTOP, and OSD YSTOP registers to set the OSD window size. Step 8: Write to the Events-Per-Field register to set the number of events de- sired per field. TMS320DM642 OSD FPGA EVM SPRU295...
Page 41
Output hold time: 3 ns (This output hold time is achieved by phase shifting PIXCLKI from the clock driving the encoder data) FPGA Configuration File Generation Tools Used: Synplify 7.2 for synthesis Xilinx 5.1i for place and route iMPACT from Xilinx for hex file generation SPRU295 TMS320DM642 OSD FPGA EVM...
Page 42
Provide a name for the output .hex file and a location. Select “Auto PROM Se- lect”. Give the name of the input .bin file when asked, and select “yes” when asked about generating a PROM file. Then, the iMPACT utility generates a .hex file. TMS320DM642 OSD FPGA EVM SPRU295...
Need help?
Do you have a question about the TMS320DM642 and is the answer not in the manual?
Questions and answers