Create a MIPI TX Interface with GCLK or RCLK
About this task
To build a complete MIPI TX interface you need to have at least one data lane and one clock lane. Unlike MIPI RX, they can be in any MIPI group. The following figure shows the blocks used for a complete MIPI TX interface.
1. Refer to the Efinity®
Software User Guide for a listing of available MIPI-related IP
cores.
Important: You need to use specific phase shifts for the
SLOWCLK, FASTCLK_C, and
FASTCLK_D output clocks from the PLL as shown in step 1
below.Procedure
-
Add a PLL block with the following settings:
Option Description Resource You can use any PLL resource. Reference Clock Mode External or Core. Feedback Mode Core. CLKOUT 1 to 3 from the PLL can be used for the feedback as long as the frequency and phase shift can be generated. Reference Clock Frequency User defined. Output Clocks mipi_clk—Frequency defined in MIPI IP core, phase shift 0°1 SLOWCLK—Frequency is 1/8 the PHY speed, phase shift 0°, enable feedback.FASTCLK_D—Frequency is the speed you are running the PHY, phase shift 90.00°FASTCLK_C—Frequency is the speed you are running the PHY, phase shift 180.00°For example, if the PHY is running at 1,000 Mbps, FASTCLK_D and FASTCLK_C will run at half that 500 MHz (because it transfers data on both clock edges), and SLOWCLK will run at 125 MHz.Locked Pin Turn on -
Add a GPIO block with these settings to provide the reference clock input to
the PLL:
Option Description Mode Input Pin Name Any Connection Type pll_clkin GPIO Resource Assign the dedicated PLL_CLKIN pin that corresponds to the PLL you chose. -
Add MIPI TX Lane block with these settings:
Option Description Mode data lane Parallel Clock Pin Name Name you are using for SLOWCLK. Serial Clock Pin Name Name you are using for FASTCLK_D. - Repeat step 3 for each MIPI TX data lane you want to implement.
-
Add another MIPI TX Lane block for the clock lane:
Option Description Mode clock lane Parallel Clock Pin Name Name you are using for FASTCLK_D. Serial Clock Pin Name Name you are using for FASTCLK_C. - Implement the rest of the MIPI TX interface in RTL using a MIPI TX IP core (CSI-2, D-PHY, or DSI). Refer to the user guide for the IP core for instructions.
1 This
PLL also generates the
mipi_clk, which is used in
the MIPI IP core. Refer to the user guide for the IP core for
details.