Gowin IPUG948E
Gowin IPUG948E
Gowin IPUG948E
User Guide
IPUG948-1.13E, 06/08/2023
Copyright © 2023 Guangdong Gowin Semiconductor Corporation. All Rights Reserved.
Contents
Contents ............................................................................................................... i
List of Figures .................................................................................................... iii
List of Tables ...................................................................................................... iv
1 About This Guide ............................................................................................. 1
1.1 Purpose .............................................................................................................................. 1
2 Overview ........................................................................................................... 3
2.1 Introduction to MIPI D-PHY RX TX Advance IP ................................................................. 3
IPUG948-1.13E i
Contents
IPUG948-1.13E ii
List of Figures
List of Figures
Figure 4-2 Interface Implementation in HS Mode and LP Mode (ELVDS Adopted in HS Mode) ...... 11
Figure 4-3 Interface Implementation in HS Mode and LP Mode (TLVDS Adopted in HS Mode) ...... 12
Figure 4-5 MIPI IP Ports in MIPI IO Mode (External Termination Resistor Required) ....................... 14
Figure 6-1 Input Signal Timing of MIPI D-PHY RX Advance in HS 1:8 Mode ................................... 20
Figure 6-2 Input Signal Timing of MIPI D-PHY TX Advance in HS 1:8 Mode .................................... 21
Figure 6-3 Input Signal Timing of MIPI D-PHY TX Advance in HS 1:16 Mode .................................. 21
IPUG948-1.13E iii
List of Tables
List of Tables
IPUG948-1.13E iv
1 About This Guide 1.1 Purpose
1.1 Purpose
The purpose of Gowin MIPI D-PHY RX TX Advance IP User Guide is
to help you to quickly learn the features and usage of Gowin MIPI D-PHY
RX TX Advance IP by providing the descriptions of the functions, features,
ports, timing, configuration, and reference design, etc.
IPUG948-1.13E 1(28)
1 About This Guide 1.3 Terminology and Abbreviations
IPUG948-1.13E 2(28)
2 Overview 2.1 Introduction to MIPI D-PHY RX TX Advance IP
2 Overview
IPUG948-1.13E 3(28)
2 Overview 2.2 MIPI D-PHY
Clock Lane
Data Lane0
DSI/CSI-2 Data Lane1 DSI/CSI-2
TX DPHY RX Data Lane2 DPHY TX RX
Data Lane3
IPUG948-1.13E 4(28)
3 Features and Performance 3.1 Features
3.1 Features
In line with MIPI Alliance Standard for D-PHY Specification, version
1.1.
Supports the RX and TX Interfaces of MIPI CSI2 and DSI
Supports unidirectional High-speed (HS) mode.
Supports bidirectional Low-power operation mode.
Supports serial high-speed data conversion
Supports MIPI D-PHY TX 8:1 mode and 16:1 mode.
Supports MIPI D-PHY RX 1:8 mode and 1:16 mode.
Supports IO Types of ELVDS, TLVDS, and MIPI IO.
The line rate of the single lane TX supports the range: 80Mb/s ~
1200Mb/s.
The line rate of the single lane RX supports the range: 80Mb/s ~
1200Mb/s.
Data transmission in LP mode is at a speed of 10Mb/s.
3.3 Latency
D-PHY TX Latency is the time from inputting the data_in (8-bit/16-bit
parallel data) to outputting HS_DATA.
D-PHY RX Latency is the time from inputting the HS_DATA SOT
(start-of-transmission) to outputting data_out (8-bit/16-bit parallel data).
IPUG948-1.13E 5(28)
3 Features and Performance 3.4 Resource Utilization
Note!
[1] Frequency of byteclk (MHz) = line rate in Mb/s/8
IPUG948-1.13E 6(28)
3 Features and Performance 3.5 Devices Supported
Note!
MIPI CLK requires GCLK IO when GW2AN-18X and GW2AN-9X use MIPI IO mode.
Table 3-5 MIPI D-PHY TX Advance Devices Supported
D-PHY TX Devices Supported
GW1N Series, GW1NR Series, GW1NZ Series, GW2A Series,
GW2AR Series, GW2ANR Series, GW2AN Series, GW1NS Series,
1:8 mode
GW1NSR Series, GW1NSE-4C, GW1NSER Series, GW1NRF-4B,
GW5A Series, GW5AT Series, GW5AST Series
GW1N-1S, GW1N-2, GW1NR-2, GW1N-1P5, GW1N-9, GW1NR-9,
1:16 Mode GW1NS Series, GW1NSE-4C, GW1NSR Series, GW1NSER
Series, GW5A Series, GW5AT Series, GW5AST Series
GW1N-2, GW1NR-2, GW1N-1P5, GW1N-9, GW1NR-9, GW1NS-4,
MIPI IO Mode
GW1NS-4C, GW1NSR Series, GW1NSER Series, GW5A-25
IPUG948-1.13E 7(28)
4 Functional Description 4.1 MIPI D-PHY RX Advance Structure and Function
4 Functional Description
IPUG948-1.13E 8(28)
4 Functional Description 4.1 MIPI D-PHY RX Advance Structure and Function
50 ohm LPCLK[1]
HS_CLOCK P LVCMOS12 DPHY RX MODULE
TLVDS_IBUF
HS_CLOCK N LPCLK[0]
LVCMOS12
50 ohm
50 ohm LP0[1]
Aligner
IDES8
LVCMOS12
IO Controller
HS_DATA0_P
TLVDS_IBUF
MIPI DPHY HS_DATA0_N LP0[0] LVCMOS12
TX Device
50 ohm
50 ohm
LP3[1]
HS_DATA3_P LVCMOS12
TLVDS_IBUF
HS_DATA3_N LP3[0] LVCMOS12
50 ohm
Note!
When the data is deserialized to 8 bits/16 bits byte data, and the lane
is aligned, MIPI byte data is available in each byte clock cycle.
Note!
The alignment is done by detecting of MIPI HS_Ready sequence.
MIPI HS_Ready sequence is transimitted on all data lanes one clock cycle before the
packet header.
IPUG948-1.13E 9(28)
4 Functional Description 4.2 MIPI D-PHY TX Advance Structure and Function
IPUG948-1.13E 10(28)
4 Functional Description 4.2 MIPI D-PHY TX Advance Structure and Function
LVCMOS12 50 ohm
320 ohm
HS_DATA_P
ELVDS_TBUF
HS_DATA_N
320 ohm 50 ohm
LVCMOS12
Note!
The resistance values in Figure 4-2 are for reference only.
IPUG948-1.13E 11(28)
4 Functional Description 4.2 MIPI D-PHY TX Advance Structure and Function
IO Controller TX LVCMOS12
100 ohm
HS_DATA_P
TLVDS_TBUF
HS_DATA_N
LVCMOS12 100 ohm
LVCMOS12
100 ohm
HS_DATA_P
TLVDS_TBUF
HS_DATA_N
LVCMOS12 100 ohm
Note!
The resistance values in Figure 4-3 are for reference only.
IPUG948-1.13E 12(28)
4 Functional Description 4.3 MIPI IO
4.3 MIPI IO
MIPI D-PHY RX/TX IP ports support MIPI IO. When you select MIPI IO
TYPE, HS clock lane and LP clock lane share IO, and HS data lane and LP
data lane share IO, as shown in Figure 4-4 and Figure 4-5.
Figure 4-4 MIPI IP Ports in MIPI IO Mode
MIPI_CLK_P MIPI_CLK_P
MIPI_CLK_N MIPI_CLK_N
MIPI_LANE0_P MIPI_LANE0_P
MIPI_LANE0_N MIPI_LANE0_N
MIPI_LANE1_P MIPI_LANE1_P
MIPI_LANE1_N MIPI_LANE1_N
MIPI_LANE2_P MIPI_LANE2_P
MIPI_LANE2_N MIPI_LANE2_N
MIPI_LANE3_P MIPI_LANE3_P
MIPI_LANE3_N MIPI_LANE3_N
D-PHY TX D-PHY RX
Note!
When using 9K series and 4K series chips, if the Bank voltage of D-PHY RX MIPI IO is
1.2V, a 100ohm matching resistor needs to be connected to the P terminal and the N
terminal of the MIPI IO, as shown in Figure 4-5.
IPUG948-1.13E 13(28)
4 Functional Description 4.3 MIPI IO
MIPI_CLK_P MIPI_CLK_P
100ohm
MIPI_CLK_N MIPI_CLK_N
MIPI_LANE0_P MIPI_LANE0_P
100ohm
MIPI_LANE0_N MIPI_LANE0_N
MIPI_LANE1_P MIPI_LANE1_P
100ohm
MIPI_LANE1_N MIPI_LANE1_N
MIPI_LANE2_P MIPI_LANE2_P
100ohm
MIPI_LANE2_N MIPI_LANE2_N
MIPI_LANE3_P MIPI_LANE3_P
100ohm
MIPI_LANE3_N MIPI_LANE3_N
D-PHY TX D-PHY RX
IPUG948-1.13E 14(28)
5 Port Description 5.1 MIPI D-PHY RX Advance Ports
5 Port Description
IPUG948-1.13E 15(28)
5 Port Description 5.1 MIPI D-PHY RX Advance Ports
Note!
The high and low of lp_clk_in and lp_clk_out is corresponded to the high and low of
LP_CLK.
The high and low of lp_data<n>_in and lp_data<n>_out is corresponded to the high
and low of lp_data<n>.
IPUG948-1.13E 16(28)
5 Port Description 5.2 MIPI D-PHY TX Advance Ports
IPUG948-1.13E 17(28)
5 Port Description 5.2 MIPI D-PHY TX Advance Ports
Note!
The high and low of lp_clk_in and lp_clk_out is corresponded to the high and low of
LP_CLK.
The high and low of lp_data<n>_in and lp_data<n>_out is corresponded to the high
and low of lp_data<n>.
IPUG948-1.13E 18(28)
6 Timing Description 6.1 RX Input Signal Timing
6 Timing Description
This chapter mainly describes the input signals timing of MIPI D- PHY
RX Advance and TX Advance in HS mode.
In practical applications, RX and TX can be connected; i.e., RX output
can be TX input, and TX output can be RX input. Therefore, only the timing
for RX and TX input signals is described as below.
IPUG948-1.13E 19(28)
6 Timing Description 6.2 TX Input Signal Timing
Figure 6-1 Input Signal Timing of MIPI D-PHY RX Advance in HS 1:8 Mode
IPUG948-1.13E 20(28)
6 Timing Description 6.2 TX Input Signal Timing
Figure 6-2 Input Signal Timing of MIPI D-PHY TX Advance in HS 1:8 Mode
CLKOP
CLKOS
hs_clk_en
hs_data_en
Figure 6-3 Input Signal Timing of MIPI D-PHY TX Advance in HS 1:16 Mode
CLKOP
CLKOS
hs_clk_en
hs_data_en
IPUG948-1.13E 21(28)
7 Configuration and Generation 7.1 MIPI D-PHY RX Advance Configuration
Start "IP Core Generator" from the "Tools" menu in the Gowin software
and then configure and generate the MIPI D-PHY RX and MIPI D-PHY TX
Advance.
IPUG948-1.13E 22(28)
7 Configuration and Generation 7.1 MIPI D-PHY RX Advance Configuration
IPUG948-1.13E 23(28)
7 Configuration and Generation 7.2 MIPI D-PHY TX Advance Configuration
Options Description
Turns on byte alignment Check this option to enable byte alignment, which
is used to align the bytes after deserializing on one
lane.
Turns on lane alignment Check this option to enable lane alignment, which
is used to align different data lanes.
D-PHY RX using external Clock Check this option for RX module to use an external
clock (clk_byte), and data_out0/1/2/3 will align at
clk_byte.
IPUG948-1.13E 24(28)
7 Configuration and Generation 7.2 MIPI D-PHY TX Advance Configuration
IPUG948-1.13E 25(28)
Appendix A MIPI D-PHY Data Rates
IPUG948-1.13E 26(28)
Appendix A MIPI D-PHY Data Rates
IPUG948-1.13E 27(28)
Appendix A MIPI D-PHY Data Rates
IPUG948-1.13E 28(28)