CN111327861B - Image transmission method based on FPGA single differential pair - Google Patents

Image transmission method based on FPGA single differential pair Download PDF

Info

Publication number
CN111327861B
CN111327861B CN201811544752.9A CN201811544752A CN111327861B CN 111327861 B CN111327861 B CN 111327861B CN 201811544752 A CN201811544752 A CN 201811544752A CN 111327861 B CN111327861 B CN 111327861B
Authority
CN
China
Prior art keywords
gtx
fpga
state
clock
synchronous
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811544752.9A
Other languages
Chinese (zh)
Other versions
CN111327861A (en
Inventor
白志强
李战行
于云翔
张艳辉
张建平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Huahang Radio Measurement Research Institute
Original Assignee
Beijing Huahang Radio Measurement Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Huahang Radio Measurement Research Institute filed Critical Beijing Huahang Radio Measurement Research Institute
Priority to CN201811544752.9A priority Critical patent/CN111327861B/en
Publication of CN111327861A publication Critical patent/CN111327861A/en
Application granted granted Critical
Publication of CN111327861B publication Critical patent/CN111327861B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/10Adaptations for transmission by electrical cable

Abstract

An image transmission system and method based on single differential pair of FPGA, including sending end and receiving end; the sending end and the receiving end both comprise an FPGA with a GTX interface and a clock module, and the FPGA comprises a 7series transfer Wizard IP core and an image data synchronization module; a 120M differential clock output by the clock module is connected to a differential clock input end of the GTX; the transmitting end and the receiving end of the GTX are connected by a coaxial cable or a twisted pair. The invention provides an image transmission system method based on a single differential pair of an FPGA (field programmable gate array). A pair of CML (China Mobile language) differential cables is used for realizing the transmission of 0.6-1.5 Gbps serial image signals, a low-power-consumption gigabit transceiver GTX owned by a xilinx 7series chip is used for realizing the serial-parallel conversion of high-speed serial signals, 8B/10B coding and decoding are carried out, and then FPGA logic is used for realizing the synchronization of image data and the extraction of effective data signals.

Description

Image transmission method based on FPGA single differential pair
Technical Field
The invention relates to the field of image data transmission interfaces, in particular to a method for realizing high-speed serial image data transmission by using a single differential pair based on an FPGA (field programmable gate array).
Background
At present, in the field of image transmission, interfaces are various, and the application is wider in LVDS transmission technology. LVDS is a low-cost, low-power consumption signal transmission technique that is widely used in parallel and lower-rate serial image data transmission systems. LVDS applications are limited where a single pair of data exceeds 1 Gbps. CML is the simplest of high speed data transfer interfaces, with matched input and output circuitry, and supports higher data transfer rates. Meanwhile, in engineering application, a data cable can generate various adverse effects such as nonlinear disturbance on a system platform, and how to reduce the number of transmission cables is particularly important for the whole system. Therefore, it is a good solution to select a single differential pair of CML levels for image transmission. In addition, for CML single differential pair image transmission, a more implementation scheme is to select a TI integrated chip TLK1501 which integrates a serial-parallel conversion module, a clock module and an 8B/10B coding and decoding module. However, the chip size is large and the peripheral circuit is complicated.
Disclosure of Invention
In order to solve the problems, the invention provides an image transmission system and method based on a single differential pair of an FPGA.
An image transmission system based on a single differential pair of an FPGA comprises a sending end and a receiving end; the sending end and the receiving end both comprise an FPGA with a GTX interface and a clock module, and the FPGA comprises a 7series transfer Wizard IP core and an image data synchronization module; a 120M differential clock output by the clock module is connected to a differential clock input end of the GTX; the transmitting end and the receiving end of the GTX are connected by a coaxial cable or a twisted pair.
An image transmission method based on FPGA single differential pair, which utilizes the system of claim 1, and comprises the following steps:
s1, configuring a GTX gigabit serial transceiver by utilizing a 7series transfer Wizard IP core in the FPGA, setting an MGT reference clock to be 120MHz, setting the transmission rate to be 0.6Gbps, and selecting an MGT reference clock pin according to a circuit interface pin;
s2, configuring a GTX gigabit serial transceiver by using a 7series Transfer Wizard IP core in the FPGA, setting the bit width of input and output data to be 16/20, selecting an 8B/10B coding and decoding mode, and setting an RP clock to be 60 MHz; setting the 8B/10B control code as a K28.5 code, setting the mask code as 0B0001111111, and setting the alignment mode as 2-byte alignment;
s3, generating a 7series Transfer Wizard IP core inside the FPGA, and instantiating and connecting an external GTX clock and a data interface to complete pin distribution;
s4, the image data synchronization module detects an IDLE code to carry out synchronization operation, and the IDLE code consists of K28.5+ D5.6 or K28.5+ D16.2 codes according to an 8B/10B coding rule; a state machine is realized in the FPGA for monitoring different states, including a synchronous capture state, a synchronous state and an error code monitoring state; before effective data transmission, the state machine needs to enter a synchronous capture state; in the state, if the state machine monitors 5 continuous IDLE codes, the state machine enters a synchronous state, and starts to receive effective data after entering the synchronous state to obtain a data effective state indicating signal and effective data; otherwise, continuing monitoring until entering a synchronous state; after entering the synchronous state, when monitoring the data error code, the state machine enters the error code monitoring state, and after entering the error code monitoring state, if monitoring 3 continuous error codes, the state machine returns to the synchronous capturing state again; and if 5 IDLE codes are monitored continuously, entering a synchronous state, otherwise, continuing monitoring until the synchronous state is entered.
The invention provides an image transmission system method based on a single differential pair of an FPGA (field programmable gate array). A pair of CML (China Mobile language) differential cables is used for realizing the transmission of 0.6-1.5 Gbps serial image signals, a low-power-consumption gigabit transceiver GTX owned by a xilinx 7series chip is used for realizing the serial-parallel conversion of high-speed serial signals, 8B/10B coding and decoding are carried out, and then FPGA logic is used for realizing the synchronization of image data and the extraction of effective data signals.
Drawings
FIG. 1 is a schematic diagram of the system of the present invention,
FIG. 2 is a schematic view of the method of the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
An image transmission system based on a single differential pair of an FPGA (field programmable gate array) as shown in FIG. 1 comprises a sending end and a receiving end; the sending end and the receiving end both comprise an FPGA with a GTX interface and a clock module, and the FPGA comprises a 7series transfer Wizard IP core and an image data synchronization module; a 120M differential clock output by the clock module is connected to a differential clock input end of the GTX; the transmitting end and the receiving end of the GTX are connected by a coaxial cable or a twisted pair.
An image transmission method based on a single differential pair of an FPGA adopts the system equipment, and comprises the following steps:
s1, configuring a GTX gigabit serial transceiver by utilizing a 7series transfer Wizard IP core in the FPGA, setting an MGT reference clock to be 120MHz, setting the transmission rate to be 0.6Gbps, and selecting an MGT reference clock pin according to a circuit interface pin;
s2, configuring a GTX gigabit serial transceiver by using a 7series Transfer Wizard IP core in the FPGA, setting the bit width of input and output data to be 16/20, selecting an 8B/10B coding and decoding mode, and setting an RP clock to be 60 MHz; setting the 8B/10B control code as a K28.5 code, setting the mask code as 0B0001111111, and setting the alignment mode as 2-byte alignment;
s3, generating a 7series Transfer Wizard IP core inside the FPGA, and instantiating and connecting an external GTX clock and a data interface to complete pin distribution;
s4, the image data synchronization module detects an IDLE code to carry out synchronization operation, and the IDLE code consists of K28.5+ D5.6 or K28.5+ D16.2 codes according to an 8B/10B coding rule; a state machine is realized in the FPGA for monitoring different states, including a synchronous capture state, a synchronous state and an error code monitoring state; before effective data transmission, the state machine needs to enter a synchronous capture state; in the state, if the state machine monitors 5 continuous IDLE codes, the state machine enters a synchronous state, and starts to receive effective data after entering the synchronous state to obtain a data effective state indicating signal and effective data; otherwise, continuing monitoring until entering a synchronous state; after entering the synchronous state, when monitoring the data error code, the state machine enters the error code monitoring state, and after entering the error code monitoring state, if monitoring 3 continuous error codes, the state machine returns to the synchronous capturing state again; if 5 IDLE codes are monitored continuously, the synchronous state is entered, otherwise, the monitoring is continued until the synchronous state is entered, as shown in fig. 2.
The invention provides an image transmission method based on a single differential pair of an FPGA (field programmable gate array). the image transmission method is based on a xilinx ZYNQ hardware platform, and selects a zc7030 chip with a GTX transceiver. The image transmission method utilizes a pair of CML level differential cables to realize the transmission of 0.6-1.5 Gbps serial image signals, utilizes a low-power-consumption gigabit transceiver GTX possessed by a xilinx 7series chip to realize the serial-parallel conversion of high-speed serial signals, 8B/10B coding and decoding, and then utilizes FPGA logic to realize the synchronization of image data and the extraction of effective data signals. The invention has the obvious characteristic of simple external transmission interface, only uses a pair of differential cables to complete image transmission, and utilizes a GTX interface and a corresponding IP core provided by xilinx ZYNQ to be matched with a small amount of FPGA logic to realize the transceiving of high-speed serial image data, thereby greatly improving the design efficiency, simplifying the transmission interface circuit and reducing the influence of interface wiring on the system.

Claims (1)

1. An image transmission method based on a single differential pair of an FPGA is realized by the following devices, wherein each device comprises a sending end and a receiving end; the transmitting end comprises a first FPGA with a first GTX interface and a first clock module, the receiving end comprises a second FPGA with a second GTX interface and a second clock module, and the first FPGA and the second FPGA both comprise a 7series Transfer Wizard IP core and an image data synchronization module; a 120M differential clock output by the first clock module is connected to a differential clock input end of the first GTX; the transmitting end of the first GTX is connected with the receiving end of the second GTX through a coaxial cable or a twisted pair; a first clock at a transmitting end generates a differential clock pair of 120MHz, MGT _ CLK _ P represents a positive end of the differential pair, MGT _ CLK _ N represents a negative end of the differential pair, and the output of the MGT _ CLK _ N is connected to a first GTX clock input end of the first FPGA to be used as a clock of a first GTX; a 120MHz differential clock generated by a second clock at the receiving end is output and connected to a second GTX clock input end of a second FPGA to be used as a clock of a second GTX; a first GTX data transmitting terminal differential pair GTX _ TX _ P/N is connected to a data receiving terminal differential pair GTX _ RX _ P/N of a second GTX; the method comprises the following steps:
s1, configuring a first GTX and a second GTX gigabit serial transceiver by utilizing a 7series Transfer Wizard IP core in a first FPGA and a second FPGA, setting a first GTX reference clock and a second GTX reference clock to be 120MHz, setting a transmission rate to be 0.6Gbps, and selecting a first GTX reference clock pin and a second GTX reference clock pin according to a circuit interface pin;
s2, configuring a first GTX and a second GTX gigabit serial transceiver by utilizing a 7series Transfer Wizard IP core in the first FPGA and the second FPGA, setting the bit width of input and output data to be 16/20, selecting 8B/10B in a coding and decoding mode, and setting an RP clock to be 60 MHz; setting the 8B/10B control code as a K28.5 code, setting the mask code as 0B0001111111, and setting the alignment mode as 2-byte alignment;
s3, generating 7series Transfer Wizard IP cores inside the first FPGA and the second FPGA, and instantiating and connecting external first GTX, second GTX clocks and data interfaces to complete pin distribution;
s4, the image data synchronization module detects an IDLE code to carry out synchronization operation, and the IDLE code consists of K28.5+ D5.6 or K28.5+ D16.2 codes according to an 8B/10B coding rule; a state machine is realized in the first FPGA and the second FPGA and is used for monitoring different states, including a synchronous capture state, a synchronous state and an error code monitoring state; before effective data transmission, the state machine needs to enter a synchronous capture state; in the state, if the state machine monitors 5 continuous IDLE codes, the state machine enters a synchronous state, and starts to receive effective data after entering the synchronous state to obtain a data effective state indicating signal and effective data; otherwise, continuing monitoring until entering a synchronous state; after entering the synchronous state, when monitoring the data error code, the state machine enters the error code monitoring state, and after entering the error code monitoring state, if monitoring 3 continuous error codes, the state machine returns to the synchronous capturing state again; and if 5 IDLE codes are monitored continuously, entering a synchronous state, otherwise, continuing monitoring until the synchronous state is entered.
CN201811544752.9A 2018-12-17 2018-12-17 Image transmission method based on FPGA single differential pair Active CN111327861B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811544752.9A CN111327861B (en) 2018-12-17 2018-12-17 Image transmission method based on FPGA single differential pair

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811544752.9A CN111327861B (en) 2018-12-17 2018-12-17 Image transmission method based on FPGA single differential pair

Publications (2)

Publication Number Publication Date
CN111327861A CN111327861A (en) 2020-06-23
CN111327861B true CN111327861B (en) 2021-02-19

Family

ID=71166208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811544752.9A Active CN111327861B (en) 2018-12-17 2018-12-17 Image transmission method based on FPGA single differential pair

Country Status (1)

Country Link
CN (1) CN111327861B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1503591A2 (en) * 2003-07-31 2005-02-02 Samsung Electronics Co., Ltd. Device for separating a Single Program Transport Stream from a Multiple Program Transport Stream
CN102064886A (en) * 2010-11-03 2011-05-18 中国科学院长春光学精密机械与物理研究所 Camera interface full-mode fiber transmission system
CN102123060A (en) * 2011-03-24 2011-07-13 索尔思光电(成都)有限公司 FPGA (Field Programmable Gate Array) based error code testing method
CN102143357A (en) * 2011-05-09 2011-08-03 施勒智能建筑系统(上海)有限公司 Methods for transmitting audio, video and data by using category-5 network cable
CN104583791A (en) * 2012-09-13 2015-04-29 英特尔公司 Interface circuitry for a test apparatus
CN105846818A (en) * 2016-03-21 2016-08-10 青岛海信电器股份有限公司 Signal transmission circuit in display device
CN107404623A (en) * 2017-07-10 2017-11-28 中国民用航空总局第二研究所 The remote receiver and method of multipoint location system based on CPCI frameworks
CN107426551A (en) * 2016-05-24 2017-12-01 中国科学院长春光学精密机械与物理研究所 A kind of syntype Cameralink digital picture optical transmitter and receiver receiving terminals and transmitting terminal based on FPGA

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1503591A2 (en) * 2003-07-31 2005-02-02 Samsung Electronics Co., Ltd. Device for separating a Single Program Transport Stream from a Multiple Program Transport Stream
CN102064886A (en) * 2010-11-03 2011-05-18 中国科学院长春光学精密机械与物理研究所 Camera interface full-mode fiber transmission system
CN102123060A (en) * 2011-03-24 2011-07-13 索尔思光电(成都)有限公司 FPGA (Field Programmable Gate Array) based error code testing method
CN102143357A (en) * 2011-05-09 2011-08-03 施勒智能建筑系统(上海)有限公司 Methods for transmitting audio, video and data by using category-5 network cable
CN104583791A (en) * 2012-09-13 2015-04-29 英特尔公司 Interface circuitry for a test apparatus
CN105846818A (en) * 2016-03-21 2016-08-10 青岛海信电器股份有限公司 Signal transmission circuit in display device
CN107426551A (en) * 2016-05-24 2017-12-01 中国科学院长春光学精密机械与物理研究所 A kind of syntype Cameralink digital picture optical transmitter and receiver receiving terminals and transmitting terminal based on FPGA
CN107404623A (en) * 2017-07-10 2017-11-28 中国民用航空总局第二研究所 The remote receiver and method of multipoint location system based on CPCI frameworks

Also Published As

Publication number Publication date
CN111327861A (en) 2020-06-23

Similar Documents

Publication Publication Date Title
US10447463B2 (en) Device and method for ultra-low latency communication
CN102064886B (en) Camera interface full-mode fiber transmission system
CN103716118B (en) The data is activation and method of reseptance of a kind of AMR and device
CN100489821C (en) Communication system for use between electronic devices and method thereof
CN102681971A (en) Aurora protocol based method for conducting high-speed interconnection between field programmable gate arrays (FPGAs)
CN113572486B (en) Transmitter with low-speed SerDes interface, receiver with low-speed SerDes interface and circuit design method of transmitter
CN102662893A (en) Multifunctional bus data conversion system
CN102799558A (en) RS422 communication module based on CPCI bus
CN111327861B (en) Image transmission method based on FPGA single differential pair
CN101964657B (en) Low power consumption USB circuit
CN114442514A (en) USB3.0/3.1 control system based on FPGA
CN215452948U (en) Optical fiber trigger pulse transmission device
CN113127403A (en) Semiconductor chip
CN202602676U (en) A CAN signal transmission circuit
CN201114169Y (en) Serial communication interface isolation driver circuit
CN206379950U (en) A kind of error code instrument system
CN218526326U (en) Short-distance transmission CAN protocol communication network
CN105205024A (en) 100 G high-speed transmission CFP (Centum Form-factor Pluggable) encapsulation cable module
CN219227609U (en) JESD204B data transmission system based on optical fiber medium
CN204967825U (en) SFP digit light device and fiber optical transceiver based on SDH network
CN111258946A (en) Communication method of GTX and TLK2711 series chips
CN205356305U (en) Serial data clock digit phase locking device
CN103686170A (en) Short-distance multi-channel video transmission method and device
CN216216903U (en) Anti-interference 32 way RS422 serial ports optical transmitter and receiver
CN109831192A (en) For conveyer, the physical layer circuit of receiver and its method and communication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant