Digital circuit of multichannel JESD 204B receiving end

By designing the digital circuit at the receiving end of the multi-channel JESD 204B, using the start-up module and the data stream processing module for signal configuration and synchronization processing, the line delay matching and interference problems in high-speed data transmission of digital-to-analog converters are solved, and the high-speed digital signal is realized Efficient transmission and efficient data processing.

CN119051663APending Publication Date: 2024-11-29CHONGQING GIGACHIP TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411152981.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The digital signal input interface of existing digital-to-analog converters has line delay matching and interference problems during high-speed data transmission, which cannot meet the high-speed transmission requirements of multi-bit digital signals.

Method used

Design a digital circuit at the receiving end of multi-channel JESD 204B, including a startup module and a data stream processing module, and perform information configuration and signal synchronization processing through preset configuration information to realize signal transmission rate matching, and improve data synchronization and deframe mapping subunit Data link layer transmission efficiency reduces circuit board traces.

Benefits of technology

It realizes the transmission of high-speed digital signals, reduces the number of circuit board traces, increases the data transmission rate, solves the problems of line delay matching and interference, and meets the data input needs of high-speed digital-to-analog converters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119051663A_ABST
    Figure CN119051663A_ABST
Patent Text Reader

Abstract

The invention provides a digital circuit of a multichannel JESD 204B receiving end, which comprises a starting module and a data stream processing module, and is characterized in that a starting signal is generated through the starting module, information of the digital circuit is configured based on externally input preset configuration information, and the digital circuit is started; first preset multichannel digital signals to be transmitted sent by a JESD 204B sending end are received through a data stream processing module, the digital signals to be transmitted are transmitted based on a preset configuration information channel connection relation, and the transmitted digital signals are mapped and output according to a working mode of a digital circuit after being subjected to signal synchronization. And obtaining a digital signal of a second preset multi-channel. According to the digital circuit of the multi-channel JESD 204B receiving end provided by the invention, the digital signal processing functions of a data link layer and a transmission layer specified in a JESD 204B protocol are realized, and through a mode of adding digital logic, the wiring of a circuit board is reduced, and the transmission rate of digital signals is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of digital circuits, and in particular to a digital circuit of a multi-channel JESD 204B receiving end. Background Art

[0002] A digital-to-analog converter (DAC) is used to convert digital signals into analog signals; its input is a digital signal and its output is an analog signal. The digital signal input interface of early low-speed digital-to-analog converters used a CMOS interface (Complementary Metal Oxide Semiconductor); later, as the sampling speed increased, the digital signal input interface of the digital-to-analog converter began to use an LVDS differential interface (Low Voltage Differential Signaling). However, the CMOS interface and the LVDS differential interface have certain problems in data transmission. As the bit width of the digital-to-analog converter increases, the number of traces on the circuit board will increase greatly, and the length of each trace must be consistent to achieve line delay matching; and a large number of circuit board traces are easily interfered with, affecting the effective transmission of data; as the sampling speed of the digital-to-analog converter further increases, the CMOS interface and the LVDS interface cannot complete the high-speed transmission of multi-bit digital signals.

[0003] Therefore, how to provide a digital circuit that can meet the needs of a digital signal input interface of a high-speed digital-to-analog converter for signal input is a technical problem that urgently needs to be solved. Summary of the invention

[0004] In view of the above-mentioned shortcomings of the prior art, the present invention provides a digital circuit of a multi-channel JESD 204B receiving end to solve at least one of the above-mentioned technical problems.

[0005] In order to achieve the above-mentioned purpose and other related purposes, the technical solution provided by this application is as follows.

[0006] According to one aspect of an embodiment of the present application, a digital circuit of a multi-channel JESD 204B receiving end is provided, including:

[0007] A startup module, used to generate a startup signal and perform information configuration on the digital circuit based on preset configuration information to start the digital circuit;

[0008] A data stream processing module, configured to receive a first preset multi-channel digital signal to be transmitted sent by a JESD 204B transmitter; transmit the digital signal to be transmitted based on a preset channel connection relationship in the preset configuration information, perform signal synchronization processing on the transmitted digital signal, and then map and output it according to a working mode in the preset configuration information to obtain a second preset multi-channel digital signal;

[0009] The signal transmission rate of the output end of the data stream processing module matches the signal transmission rate of the input end of the data stream processing module.

[0010] In one embodiment of the present invention, the data stream processing module includes: a signal input unit, used to receive the digital signal to be transmitted, separately store each of the digital signals to be transmitted, and perform signal transmission on the stored digital signals to output multiple first intermediate signals; a data synchronization unit, used to perform signal synchronization processing and data decoding on the multiple first intermediate signals respectively to obtain multiple second intermediate signals; a data output unit, used to map and transmit the multiple second intermediate signals based on the working mode in the preset configuration information to obtain the second preset multi-channel digital signal.

[0011] In one embodiment of the present invention, the signal input unit includes: N input cache sub-units, which are used to receive and cache the first preset multi-channel digital signals to be transmitted sent by the JESD 204B transmitter, and associate the digital signals to be transmitted with the clock signal in the start signal; a data routing sub-unit, which is used to perform signal transmission on the data of each of the input cache sub-units according to the preset channel connection relationship in the preset configuration information, and output multiple first intermediate signals to the outside; wherein N≥2, and N corresponds to the number of channels.

[0012] In one embodiment of the present invention, the data synchronization unit includes: N code group synchronization subunits, which are used to perform code group synchronization on the first intermediate signal of each channel based on a multi-frame clock signal, and adjust the state of the code group synchronization based on the decoding result to align the first intermediate signals of the multiple channels; N decoding subunits, which are used to decode the signals output by the N code group synchronization subunits respectively to obtain the decoding results; N initial channel synchronization subunits, which are used to perform initial channel synchronization on the signals output by the N decoding subunits respectively and align the boundaries of the multi-frame clocks to obtain N second intermediate signals.

[0013] In one embodiment of the present invention, the data output unit includes: N signal recovery subunits, which are used to first descramble and then replace characters on the second intermediate signal of each channel; and a deframe mapping subunit, which is used to perform corresponding mapping on the signals output by the N signal recovery subunits based on the working mode to obtain the second preset multi-channel digital signal.

[0014] In one embodiment of the present invention, the startup module includes: an information configuration unit, used to receive the preset configuration information, and generate configuration information of each module of the digital circuit based on the preset configuration information; a clock synchronization unit, used to generate the internal clock signal and the multi-frame clock signal based on the external clock signal, multiple frequency division signals and multiple sampling signals; wherein the phases of the multiple sampling signals are different.

[0015] In one embodiment of the present invention, the information configuration unit includes: a receiving subunit, used to receive the preset configuration information; a storage subunit, used to store the preset configuration information; and a parsing subunit, used to parse the preset configuration information in the storage subunit to obtain the configuration information of each module.

[0016] In one embodiment of the present invention, the clock synchronization unit includes: a synchronization adjustment subunit, which is used to determine the phase relationship between the analog sampling signal and the multiple frequency division signals in the analog circuit according to the multiple sampling signals, and generate a delay signal and a clock reset signal, and transmit the delay signal to the analog circuit to perform multi-chip clock synchronization adjustment; a clock reset subunit, which is used to receive the external clock signal, set the internal clock signal of the digital circuit according to the external clock signal and the clock reset signal, and generate a corresponding multi-frame clock signal based on the working mode; a boundary adjustment subunit, which is used to communicate with the JESD 204B transmitting end, synchronize the edges of the multi-frame clock signal, and pull up or down the boundaries of the multi-frame clock signal.

[0017] In an embodiment of the present invention, the digital circuit further includes a monitoring module, and the monitoring module is used to perform abnormal monitoring on the data stream processing module.

[0018] In one embodiment of the present invention, the monitoring module includes: a monitoring unit, which is used to monitor the digital circuit for abnormalities and count abnormal situations; a data flow verification unit, which is used to perform data verification on the digital signal to be transmitted of the signal input unit based on a verification code, and to parse and verify the configuration information of the initial channel synchronization subunit.

[0019] The present application provides a digital circuit of a multi-channel JESD 204B receiving end, and the circuit includes: a startup module and a data stream processing module, wherein a startup signal is generated by the startup module, and the information of the digital circuit is configured based on the preset configuration information input externally, and the digital circuit is started, and the first preset multi-channel digital signal to be transmitted sent by the JESD 204B transmitting end is received by the data stream processing module, and the digital signal to be transmitted is transmitted based on the preset configuration information channel connection relationship, and the digital signal to be transmitted is synchronized and then mapped and output according to the working mode of the digital circuit to obtain the second preset multi-channel digital signal. The digital circuit of the multi-channel JESD 204B receiving end provided by the present application implements the data link layer and the transmission layer digital signal processing functions specified in the JESD 204B protocol, and reduces the circuit board routing by adding digital logic, so as to improve the transmission rate of the digital signal.

[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present invention, and together with the specification, are used to explain the principles of the present invention. Obviously, the drawings described below are only some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0022] Figure 1 is a diagram showing the locations of a multi-channel JESD 204B transmitter and a portion of a receiver in a mode converter according to an exemplary embodiment of the present invention;

[0023] Figure 2 is a diagram showing the location of a multi-channel JESD 204B partial receiving end in a digital-to-analog converter according to an exemplary embodiment of the present invention;

[0024] Figure 3 is a block diagram of a digital circuit of a multi-channel JESD 204B receiver shown in an exemplary embodiment of the present invention;

[0025] Figure 4 is a specific structural diagram of a digital circuit of a multi-channel JESD 204B receiving end shown in an exemplary embodiment of the present invention;

[0026] Figure 5 is an internal structure diagram of an input buffer subunit shown in an exemplary embodiment of the present invention;

[0027] Figure 6is a state machine transition diagram in a code group synchronization process shown in an exemplary embodiment of the present invention;

[0028] Figure 7 is a state machine transition diagram during initial channel synchronization shown in an exemplary embodiment of the present invention;

[0029] Figure 8 is an internal structure diagram of a de-frame mapping subunit shown in an exemplary embodiment of the present invention;

[0030] Fig. 9 is a schematic diagram of mapping frame data to DACsamples when a digital circuit works in mode 0, shown in an exemplary embodiment of the present invention;

[0031] Fig.10 is a schematic diagram of mapping frame data to DACsamples when a digital circuit works in mode 1, shown in an exemplary embodiment of the present invention;

[0032] Fig.11 is a connection relationship diagram of a clock synchronization unit and different modules in an analog circuit shown in an exemplary embodiment of the present invention;

[0033] Fig.12 FIG. 4 is a diagram showing the internal clock relationship after multi-chip alignment according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION

[0034] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.

[0035] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0036] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.

[0037] Glue logic is a general term for simple logic circuits that connect complex logic circuits. It usually refers to the use of fewer logic gates or other basic logic units in integrated circuit design to connect and integrate complex functional units such as microprocessors, memory function blocks or communication function blocks to achieve specific circuit functions.

[0038] A digital-to-analog converter (DAC) is used to convert digital signals into analog signals; its input is a digital signal and its output is an analog signal. The digital signal input interface of early low-speed digital-to-analog converters used a CMOS interface (Complementary Metal Oxide Semiconductor); later, as the sampling speed increased, the digital signal input interface of the digital-to-analog converter began to use an LVDS differential interface (Low Voltage Differential Signaling). However, the CMOS interface and the LVDS differential interface have certain problems in data transmission. As the bit width of the digital-to-analog converter increases, the number of traces on the circuit board will increase greatly, and the length of each trace must be consistent to achieve line delay matching; and a large number of circuit board traces are easily interfered with, affecting the effective transmission of data; as the sampling speed of the digital-to-analog converter further increases, the CMOS interface and the LVDS interface cannot complete the high-speed transmission of multi-bit digital signals.

[0039] In a digital-to-analog converter system, if the JESD 204B protocol is used to receive high-speed digital signals, the position of the digital circuit of the multi-channel JESD204B receiver in the system is as follows: Figure 1-2 As shown. Figure 1As shown in the figure, 204B Tx framer is the data transmitter, which sends 40-bit wide data of N lanes. Serializer is a parallel-to-serial conversion circuit, whose function is to convert 40-bit data of N lanes into 1-bit high-speed serial data stream of N lanes. The maximum rate of each lane is 12.5Gbps. This is the physical layer circuit of the transmitter. Deserializer is a serial-to-parallel conversion circuit, whose function is to convert 1-bit high-speed serial data stream of N lanes into 40-bit data of N lanes. Glue-logic is glue logic, which is used to buffer the data transmission between deserializer and deframer to ensure stable data reception. Deserializer and glue-logic together complete the physical layer signal processing of the receiving end part of the JESD204B protocol.

[0040] like Figure 2 As shown, the digital logic circuit includes an N-lane deframer module, a FIR+assemble module, and a top_clk_gen module. The N-lane deframer is a digital circuit of the multi-channel JESD 204B receiving end designed by the present invention, which completes the data link layer and transport layer signal processing of the receiving end part of the JESD 204B protocol, and the final output result is the DAC samples data obtained after deframing. The FIR+assemble module is used for extraction filtering and 16-in-4 data stream merging. The top_clk_gen module is used for clock distribution at the digital top layer.

[0041] like Figure 2 As shown in the figure, the FIR+assemble module outputs 4 channels of 16-bit data synchronized with clk0~clk3, which are decoded into 4 channels of 31-bit data by the temperaturedecoder module, and then merged into 1 channel of 31-bit data stream (speed increased by 4 times) by the mux module for 4-in-1 operation, and finally sent to the digital-to-analog converter (DAC) output after passing through the latch module. The DAC working clock clkdac is divided into clk0~clk3 by four by the clkdiv module, and used as the reference clock of the FIR+assemble module. The phases of clk0~clk3 differ by 90°.

[0042] It should be noted that N is the number of channels corresponding to the digital circuit, and the value of N can be 4 channels, 8 channels, and 16 channels.

[0043] like Figure 3 As shown, the present application provides a digital circuit of a multi-channel JESD 204B receiving end, including:

[0044] A startup module, used to generate a startup signal and configure the digital circuit based on preset configuration information to start the digital circuit;

[0045] A data stream processing module is used to receive a first preset multi-channel digital signal to be transmitted sent by a JESD 204B transmitter; based on a preset channel connection relationship in the preset configuration information, the digital signal to be transmitted is transmitted, and a signal synchronization process is performed on the transmitted digital signal, and then the digital signal is mapped and output according to the working mode in the preset configuration information to obtain a second preset multi-channel digital signal;

[0046] The signal transmission rate at the output end of the data stream processing module matches the signal transmission rate at the input end of the data stream processing module.

[0047] Specifically, the startup module matches the preset configuration information input by the digital circuit, so that the configuration of the preset information is completed in the digital circuit, and at the same time, the startup signal of the digital circuit is generated according to the external clock signal allocated by the top_clk_gen module; the N-channel 40-bit digital signal to be transmitted sent by glue-logic is received through the data stream processing module, and the data link layer and transport layer data processing of the N-channel 40-bit digital signal to be transmitted is performed at the JESD 204B receiving end to obtain an M-channel 16-bit digital signal.

[0048] It should be noted that the data stream processing module receives 8 40-bit digital signals to be transmitted from glue-logic. When the maximum bit stream rate of each channel is 12.5 Gbps, the maximum working clock of the digital circuit does not exceed 312.5 MHz (12.5 GHz / 40 = 312.5 MHz). The total maximum bit stream rate of the 8-channel digital circuit is 12.5 Gbps*8*(8 / 10) = 80 Gbps. Based on the preset configuration information, the output end of the digital circuit selects a 16-channel 16-bit interface; 16bit*16bit*312.5MHz=80 Gbps. It can be seen that the input signal transmission rate of the data processing module and the output signal transmission rate of the data stream processing module match each other.

[0049] In detail, the data stream processing module includes: a signal input unit, used to receive digital signals to be transmitted, separately store each digital signal to be transmitted, and perform signal transmission on the stored digital signals to output multiple first intermediate signals; a data synchronization unit, used to perform signal synchronization processing and data decoding on the multiple first intermediate signals respectively to obtain multiple second intermediate signals; a data output unit, used to map and transmit the multiple second intermediate signals based on the working mode in the preset configuration information to obtain a second preset multi-channel digital signal.

[0050] In more detail, the signal input unit includes: N input buffer subunits, which are used to receive and buffer the first preset multi-channel digital signals to be transmitted sent by the JESD 204B transmitter, and associate the digital signals to be transmitted with the internal clock signal in the start signal; a data routing subunit, which is used to perform signal transmission on the data of each input buffer subunit according to the preset channel connection relationship in the preset configuration information, and output multiple first intermediate signals to the outside; wherein N≥2, and N corresponds to the number of channels. Specifically, as Figure 4 As shown, when the hardware transmission channel of the digital circuit is 8 channels, the signal input unit includes 8 input buffer sub-units, namely 8 input_fifos, which receive the 40-bit width data wdata0[39:0]~wdata7[39:0] after serial-to-parallel conversion sent by 8 channel deserializers through the 8 input buffer sub-units; each channel deserializer sends 4 accompanying clocks wclk1~wclk4, the 4 accompanying clocks are wclk1 is wdata[9:0], wclk2 is wdata[19:10], wclk3 is wdata[29:20], wclk4 is wdata[39:30], and the 8 channels include 32 accompanying clocks in total. Each accompanying clock has the same frequency as the internal clock signal of the digital circuit, but a different phase. The maximum frequency of the accompanying clock does not exceed 312.5MHz. Figure 5 As shown, each input buffer subunit includes 4 16*10bit fifo structures, which store the input 40bit data in the 4 FIFO structures. The 8 input buffer subunits also synchronize the input wdata[9:0], wdata[19:10], wdata[29:20], and wdata[39:30] in the follower clock to the clock signal in the digital circuit. Figure 5 As shown, wrst1_n to wrst4_n are reset signals of 16*10bit fifo1 to 16*10bit fifo4 respectively, which are used to reset the fifo structure. The signal input unit includes a data routing subunit, namely xbar, which transmits fifo0_rdata to fifo7_rdata output by 8 input buffer subunits to the corresponding positions of lane0_data to lane7_data of the output interface of the data routing subunit according to the preset channel connection relationship, so as to realize the exchange transmission function of the data positions of the 8 channels according to the preset channel connection relationship; the data routing subunit outputs the first intermediate signals (lane0_data to lane7_data) of multiple channels to the outside.

[0051] In more detail, the data synchronization unit includes: N code group synchronization subunits, which are used to perform code group synchronization on the first intermediate signal of each channel based on a multi-frame clock signal, and adjust the state of the code group synchronization based on the decoding result to align the first intermediate signals of the multiple channels; N decoding subunits, which are used to decode the signals output by the N code group synchronization subunits respectively to obtain decoding results; N initial channel synchronization subunits, which are used to perform initial channel synchronization on the signals output by the N decoding subunits respectively and align the boundaries of the multi-frame clocks to obtain N second intermediate signals.

[0052] Specifically, Figure 4 As shown, when the hardware transmission channel of the digital circuit is 8 channels, the data synchronization unit includes 8 code group synchronization subunits, namely 8 cgs_fsm0~cgs_fsm7. Each code group synchronization subunit (cgs_fsm) works independently of each other. The code group synchronization subunit (cgs_fsm) performs code group synchronization on multiple first intermediate signals lane0_data~lane7_data output by the output interface of the routing subunit according to the multi-frame clock signal, and aligns the code word boundary of the 40-bit first intermediate signal. When the first intermediate signal performs code group synchronization, the state of code group synchronization is also adjusted according to the decoding result. 8 decoding subunits, namely 8 decode_10b8b_0~decode_10b8b_7, each decoding subunit (decode_10b8b) decodes the signal output by the code group synchronization subunit, and converts the data processed by each clock signal from 40 bits to 32 bits. There are 8 initial channel synchronization subunits, namely 8 ila_fsm0~ila_fsm7. Each initial channel synchronization subunit works independently. Each initial channel synchronization subunit completes ILAS state synchronization for the signals output by the corresponding N decoding subunits, and realizes multi-frame boundary alignment of 32-bit data.

[0053] like Figure 6 As shown in the figure, the synchronization process of the code group synchronization subunit is as follows: after the digital circuit is started, the state jumps from CS_IDLE to CS_INIT. After detecting 4 consecutive / K / codes, the state jumps to CS_WAIT1, and then passes through CS_WAIT2 and CS_WAIT3, and jumps to CS_CHECK. In the CS_CHECK state, judgment is made. If the decoding result of the decoding subunit contains more than 4 consecutive correct codewords, the CS_DATA state is entered to continuously receive subsequent data. If the decoding result of the decoding subunit contains more than 3 error codewords, the code group synchronization is broken, and the state jumps from CS_CHECK back to CS_INIT to re-establish the link; if the codeword decoded by the decoding subunit is wrong in the CS_DATA state data receiving state, the state immediately jumps back to CS_CHECK for re-judgment.

[0054] like Figure 7 As shown in the figure, the synchronization process of the initial channel synchronization subunit is as follows: when the valid data after code group synchronization arrives at this unit, the state jumps from IDLE to INIT. After detecting the / R / code, the state jumps to the ILAS state. In this state, 4 consecutive multi-frame ILAS data are received. If the reception is successful, the state jumps to the DATA state to receive user data. If a link is broken in the ILAS state, and 4 consecutive / K / codes are detected to arrive again, the state jumps to the ILAS_CHECK state first. If 4 consecutive / K / codes can still be detected in the ILAS_CHECK state, the state jumps back to INIT to search for / R / codes again. If 4 consecutive / K / codes are not detected again, the state returns to the ILAS state to continue receiving ILAS data. In the DATA state, a link is broken, and 4 consecutive / K / codes are detected to arrive again, the state jumps to the DATA_CHECK state first. If 4 consecutive / K / codes can still be detected in the DATA_CHECK state, the state jumps back to INIT to search for / R / codes again. If 4 consecutive / K / codes are not detected again, the state returns to the DATA state to continue receiving user data.

[0055] Specifically, the data output unit includes: N signal recovery subunits, which are used to first descramble the second intermediate signal of each channel and then replace the characters; a deframe mapping subunit, which is used to perform corresponding mapping on the signals output by the N signal recovery subunits based on the working mode to obtain a second preset multi-channel digital signal. Specifically, Figure 4 As shown, the signal recovery subunit includes descramble and rx_replace. Descramble is used to perform parallel descrambling on the signal output by the initial channel synchronization subunit to complete the 1+x14+x15 polynomial descrambling. If the data signal is not scrambled when sending data, the transmitted digital signal is not descrambled. The signal output by the initial channel synchronization subunit is directly sent to rx_replace. The character replacement function in the JESD204B protocol is completed by rx_replace on the signal output by the initial channel synchronization subunit or the descrambled data. For example, when data is sent, 20 is replaced by A, and rx_replace is used to replace A with 20 at the receiving end of JESD204B. The data output unit includes a deframe mapping subunit, such as Figure 4 As shown, the de-frame mapping subunit is tpl_map, and the internal structure of the de-frame mapping subunit is as follows Figure 8 As shown in the figure, eight 24*32-bit FIFOs are used as elastic FIFOs to handle the signal transmission delay problem between eight channels, and the eight elastic FIFOs can be uniformly released at the boundary of the multi-frame clock signal (LMFC), achieving a deterministic delay function, and the depth of the elastic FIFO exceeds the longest LMFC (the period of the multi-frame clock signal).

[0056] If there are two mapping modes of the de-framing mapping subunit, according to the working mode, the mapping modes are as shown in Table 1:

[0057] Table 1

[0058]

[0059] When the digital circuit works in Mode 0, the frame data is mapped to the DAC samples as follows: Fig. 9 As shown, in this working mode: L=8, M=1, F=1, S=4, and the mapping relationship between the digital signal at the input end and the digital signal at the output end is transmitted according to the preset configuration information of the digital circuit. Fig. 9 A small square in the figure represents 1 byte of data. One cycle of the internal clock signal, such as Fig. 9 As shown in the figure, when each channel sends 4 bytes of data, the 8 channels have a total of 32 bytes of data. The byte numbered 01 of the first channel (lane0) and the byte numbered 11 of the second channel (lane1) are combined into the first sample (M0S0) of the DAC; the byte numbered 21 of the third channel (lane2) and the byte numbered 31 of the fourth channel (lane3) are combined into the second sample (M0S1) of the DAC; the byte numbered 41 of the fifth channel (lane4) and the byte numbered 51 of the sixth channel (lane5) are combined into the third sample (M0S2) of the DAC; the byte numbered 61 of the seventh channel (lane6) and the byte numbered 71 of the eighth channel (lane7) are combined into the fourth sample (M0S3) of the DAC; the mapping method of subsequent samples is similar; 32 bytes of data can be combined into 16 DAC samples in total.

[0060] When the digital circuit works in Mode 1, the frame data is mapped to the DAC samples as follows: Fig.10 As shown, in this working mode: L = 8, M = 2, F = 1, S = 2. One cycle of the internal clock signal, such as Fig.10As shown, the byte numbered 01 of the first channel (lane0) and the byte numbered 11 of the second channel (lane1) are combined into the first sample (M0S0) of the DAC; the byte numbered 21 of the third channel (lane2) and the byte numbered 31 of the fourth channel (lane3) are combined into the second sample (M0S1) of the DAC; the byte numbered 02 of the first channel (lane0) and the byte numbered 12 of the second channel (lane1) are combined into the third sample (M0S2) of the DAC; the byte numbered 22 of the third channel (lane2) and the byte numbered 32 of the fourth channel (lane3) are combined into the fourth sample (M0S3) of the DAC; the byte numbered 41 of the fifth channel (lane4) is combined into the byte numbered 41 of the DAC. te and the byte numbered 51 of the sixth channel (lane5) are combined into the fifth sample (M0S0) of the DAC; the byte numbered 61 of the seventh channel (lane6) and the byte numbered 71 of the eighth channel (lane7) are combined into the sixth sample (M0S1) of the DAC; the byte numbered 42 of the fifth channel (lane4) and the byte numbered 52 of the sixth channel (lane5) are combined into the seventh sample (M0S2) of the DAC; the byte numbered 62 of the seventh channel (lane6) and the byte numbered 72 of the eighth channel (lane7) are combined into the eighth sample (M0S3) of the DAC; the mapping method of subsequent samples is similar; 32 bytes of data can be combined into 16 DACsamples in total.

[0061] It should be noted that the mapping method of the de-framing mapping subunit is not limited to the two methods mentioned above, but also includes other mapping methods in the JESD204B protocol. The data transmission method changes according to the mapping method. Therefore, the specific output principles of other mapping methods will not be repeated here.

[0062] Specifically, the startup module includes: an information configuration unit, which is used to receive preset configuration information and generate configuration information of each module of the digital circuit based on the preset configuration information; a clock synchronization unit, which is used to generate an internal clock signal and a multi-frame clock signal based on an external clock signal, multiple frequency-divided signals and multiple sampling signals; wherein the phases of the multiple sampling signals are different. Specifically, Figure 4As shown, the preset configuration information is received through the SPI serial interface in the digital circuit, and the timing is converted into the internal register read and write timing through SPI_IF, the preset configuration information is stored, and the configuration information of each unit of the data stream processing module is sent to each unit, and the status flag signal of the digital circuit can also be read through the host computer; the signal synchronization unit receives the external clock signal, multiple frequency division signals and multiple sampling signals sent by the analog circuit for time synchronization, and obtains the internal clock signal and the multi-frame clock signal.

[0063] In more detail, the information configuration unit includes: a receiving subunit for receiving preset configuration information; a storage subunit for storing the preset configuration information; and a parsing subunit for parsing the preset configuration information in the storage subunit to obtain configuration information of each module. Figure 4 As shown, the preset configuration information is received by the receiving subunit (SPI serial interface), and the timing of the received configuration information is converted into the internal register read and write timing by the storage subunit (spi_if), and the preset configuration information is stored. The parsing subunit includes spi_reg and cfg_glue. The read and write access request sent by the storage subunit is received by spi_reg, and the values ​​of each register are configured. cfg_glue receives the value of the spi_reg register, and parses the value in the register to obtain the configuration information and parameters of each unit of the data flow processing module, mainly including the working mode, L, M, N, S, F and other 204B protocol parameters, and sends the parsed configuration information to each unit of the data flow processing module. It can also read whether the digital circuit is in the signal transmission state through the host computer.

[0064] In more detail, the clock synchronization unit includes: a synchronization adjustment subunit, which is used to determine the phase relationship between the analog sampling signal and the multiple frequency division signals in the analog circuit according to the multiple sampling signals, and generate a delay signal and a clock reset signal, and transmit the delay signal to the analog circuit to perform multi-chip clock synchronization adjustment; a clock reset subunit, which is used to receive an external clock signal, set the internal clock signal of the digital circuit according to the external clock signal and the clock reset signal, and generate a corresponding multi-frame clock signal based on the working mode; a boundary adjustment subunit, which is used to communicate with the JESD 204B transmitter, synchronize the edges of the multi-frame clock signal, and pull up or down the boundaries of the multi-frame clock signal.

[0065] Specifically, Figure 4As shown in the figure, multi-chip synchronization requires multiple chips to send or receive data at the boundary of the same multi-frame clock signal LMFC, which in turn requires the clock signals of multiple chips to be aligned, and the multiple frequency division signals clk0~clk3 of the digital logic of multiple chips to be aligned. The sysref module cooperates with the clkdiv and sysref_sample modules to complete the alignment function of multiple frequency division signals clk0~clk3 between multiple chips, and finally achieve the effect of multi-chip synchronization. The multi-chip synchronization situation is shown in the figure. Fig.12 shown.

[0066] like Fig.11 Shown , clkdiv is a clock frequency division unit in the analog circuit. Its main function is to divide the DAC working clock clkdac into four frequency division signals clk0~clk3. It can also receive the pulse of the delay signal sync_pulse fed back by the synchronization adjustment subunit. According to the number of pulses in sync_pulse, clk0~clk3 is delayed by the corresponding number of clkdac cycles. sysref_sample is a clock sampling unit in the analog circuit. Its main function is to use clk0~clk3 to sample the analog sampling signal sysref input from the external interface and generate multiple sampling signals sysref0~sysref3.

[0067] The synchronization adjustment subunit, namely sysref, mainly functions to obtain the phase relationship of multiple sampling signals (sysref0~sysref3) according to the received multiple sampling signals (sysref0~sysref3), so as to determine the phase relationship between the analog sampling signal sysref and the multiple frequency division signals clk0~clk3, thereby generating the delay signal sync_pulse and the clock reset signal sysref_sync, and sending the correct number of delay signal sync_pulse pulses to the clock frequency division unit in the analog circuit to adjust the phase of the multiple frequency division signals clk0~clk3. After adjustment, clk0~clk3 between multiple chips can be synchronized, and then the external clock signal output in the top_clk_gen module is adjusted.

[0068] The clock reset subunit, such as Figure 4As shown, namely pclk_gen, the clock reset unit receives the external clock signal Plck and the clock reset signal sysref_sync to generate the internal clock signal Plck (312.5Mkz) of the digital circuit, and generates a multi-frame clock signal LMFC according to the working mode of the digital circuit, and the boundary adjustment subunit, namely sync_gen, interacts with the JESD 204B transmitter through the sync_n signal. The boundary adjustment subunit merges the sync_n signals sent by the 8 cgs_fsm to pull up or down at the boundary of the multi-frame clock signal LMFC.

[0069] In detail, the digital circuit also includes a monitoring module, and the monitoring module is used to perform abnormal monitoring on the data stream processing module.

[0070] In more detail, the monitoring module includes: a monitoring unit for monitoring the digital circuit for abnormalities and counting abnormalities; a data flow verification unit for verifying the data of the digital signal to be transmitted of the signal input unit based on the verification code, and parsing and verifying the configuration information of the initial channel synchronization subunit. Specifically, the monitoring unit, such as Figure 4 As shown, err_mon is used to monitor the errors of each channel of the digital circuit, count the number of three errors of not in table error (NIT), bad disparity error (BDE), unexpected K (UEK) character error of multiple channels, initiate an interrupt after exceeding the threshold, or directly disconnect the link; the data flow verification unit includes prbs_check and linkcfg_decode, and the PRBS7, PRBS15, and PRBS31 checks of each channel are completed through the prbs_check module. The data input by the signal input unit is verified according to the verification code, and a pseudo-random code is added to the data transmission to verify whether the data transmission is correct. The configuration information of the initial channel synchronization stage is parsed through linkcfg_decode. If the parsed configuration information does not match the preset configuration information, the transmission fails.

[0071] like Figure 4 As shown, the digital circuit further includes a reset unit (rst_gen) for receiving a reset signal rst_n to perform a reset operation on the digital circuit.

[0072] It should be noted that if the present application provides an 8-channel JESD 204B receiving end digital circuit, the digital signal to be transmitted can be 1, 2, 3, 4, 6, or 8 channels, which is determined according to the JESD 204B protocol. The specific number of working channels is determined based on the transmitted digital signal and the protocol.

[0073] The workflow of the digital circuit of the multi-channel JESD 204B receiving end provided in the present application is as follows: power on the entire JESD204B system, configure the JESD 204B transmitting end, and configure the information of the JESD 204B receiving end through the information configuration unit, mainly configuring the working mode and protocol-related parameters. When multiple chips work at the same time, the clock signal in JESD 204B and the external chip are synchronized through the clock synchronization unit; start the digital circuit, the digital circuit interacts with the JESD204B transmitting end through sync_n, and performs code group synchronization and ILAS synchronization on the transmitted digital signal in turn, and completes the high-speed transmission of the digital signal when entering the data transmission stage.

[0074] The present application provides a digital circuit of a multi-channel JESD 204B receiving end, the circuit comprising: a startup module, a data stream processing module, the number of data transmission channels is selected through the preset configuration information in the startup module, a startup signal is generated to start the digital circuit, and the digital signal to be transmitted sent by the JESD 204B transmitting end is received through the data stream processing module; the digital signal to be transmitted is transmitted based on the preset channel connection relationship in the preset configuration information, the signal synchronization processing is performed on the transmitted digital signal, and then the digital signal is mapped and output according to the working mode in the preset configuration information to obtain a digital signal, and the circuit board routing is reduced by adding digital logic to improve the transmission rate of the digital signal; the data stream processing module can also be abnormally monitored through the monitoring module, and when the data transmission is abnormal, the abnormal feedback is fed back in time. According to the mode selection of the digital circuit, the present application can transmit data signals of different numbers of channels, and the signal transmission rate is high, which meets the data conversion requirements of the high-speed digital-to-analog converter.

[0075] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A digital circuit for a multi-channel JESD 204B receiver, characterized in that: include: A startup module, used to generate a startup signal and perform information configuration on the digital circuit based on preset configuration information to start the digital circuit; A data stream processing module, configured to receive a first preset multi-channel digital signal to be transmitted sent by a JESD 204B transmitter; Based on the preset channel connection relationship in the preset configuration information, the digital signal to be transmitted is transmitted, the transmitted digital signal is subjected to signal synchronization processing, and then mapped and output according to the working mode in the preset configuration information to obtain a second preset multi-channel digital signal; The signal transmission rate of the output end of the data stream processing module matches the signal transmission rate of the input end of the data stream processing module.

2. The digital circuit of the multi-channel JESD 204B receiving end according to claim 1, characterized in that: The data stream processing module comprises: A signal input unit, used for receiving the digital signals to be transmitted, storing each of the digital signals to be transmitted respectively, and transmitting the stored digital signals to output a plurality of first intermediate signals; a data synchronization unit, configured to perform signal synchronization processing and data decoding on the plurality of first intermediate signals respectively, to obtain a plurality of second intermediate signals; A data output unit is used to map and transmit a plurality of the second intermediate signals based on the working mode in the preset configuration information to obtain the second preset multi-channel digital signal.

3. The digital circuit of the multi-channel JESD 204B receiving end according to claim 2, characterized in that: The signal input unit comprises: N input buffer sub-units, used for receiving and buffering the first preset multi-channel digital signals to be transmitted sent by the JESD 204B transmitter, and associating the digital signals to be transmitted with the internal clock signal in the start signal; a data routing subunit, configured to perform signal transmission on the data of each of the input buffer subunits according to the preset channel connection relationship in the preset configuration information, and output a plurality of the first intermediate signals externally; Among them, N ≥ 2, and N corresponds to the number of channels.

4. The digital circuit of the multi-channel JESD 204B receiving end according to claim 3, characterized in that: The data synchronization unit comprises: N code group synchronization subunits, used to perform code group synchronization on the first intermediate signal of each channel based on the multi-frame clock signal, and adjust the state of the code group synchronization based on the decoding result, so as to align the first intermediate signals of the multiple channels; N decoding subunits, used for respectively decoding the signals output by the N code group synchronization subunits to obtain the decoding results; N initial channel synchronization subunits are used to perform initial channel synchronization on the signals output by the N decoding subunits respectively and align the boundaries of multiple frame clocks to obtain N second intermediate signals.

5. The digital circuit of the multi-channel JESD 204B receiving end according to claim 2, characterized in that: The data output unit comprises: N signal recovery subunits, used for first descrambling and then character replacing the second intermediate signal of each channel; The de-framing mapping subunit is used to perform corresponding mapping on the signals output by the N signal recovery subunits based on the working mode to obtain the second preset multi-channel digital signal.

6. The digital circuit of the multi-channel JESD 204B receiving end according to claim 4, characterized in that: The startup module includes: An information configuration unit, configured to receive the preset configuration information and generate configuration information of each module of the digital circuit based on the preset configuration information; A clock synchronization unit, configured to generate the internal clock signal and the multi-frame clock signal based on the external clock signal, a plurality of frequency-divided signals and a plurality of sampling signals; The phases of the multiple sampling signals are different.

7. The digital circuit of the multi-channel JESD 204B receiving end according to claim 6, characterized in that: The information configuration unit includes: A receiving subunit, configured to receive the preset configuration information; A storage subunit, used to store the preset configuration information; The parsing subunit is used to parse the preset configuration information in the storage subunit to obtain the configuration information of each module.

8. The digital circuit of the multi-channel JESD 204B receiving end according to claim 6, characterized in that: The clock synchronization unit comprises: A synchronization adjustment subunit, used for determining the phase relationship between the analog sampling signal and the multiple frequency-divided signals in the analog circuit according to the multiple sampling signals, and generating a delay signal and a clock reset signal, and transmitting the delay signal to the analog circuit to perform multi-chip clock synchronization adjustment; a clock reset subunit, configured to receive the external clock signal, set the internal clock signal of the digital circuit according to the external clock signal and the clock reset signal, and generate a corresponding multi-frame clock signal based on the working mode; The boundary adjustment subunit is used to communicate with the JESD 204B transmitter and synchronize the edge of the multi-frame clock signal to pull up or pull down the boundary of the multi-frame clock signal.

9. The digital circuit of the multi-channel JESD 204B receiving end according to claim 4, characterized in that: The digital circuit further comprises a monitoring module, and the monitoring module is used to perform abnormal monitoring on the data stream processing module.

10. The digital circuit of the multi-channel JESD 204B receiving end according to claim 9, characterized in that: The monitoring module comprises: A monitoring unit, used for monitoring the digital circuit for abnormalities and collecting statistics on abnormalities; The data stream verification unit is used to perform data verification on the digital signal to be transmitted of the signal input unit based on the verification code, and to parse and verify the configuration information of the initial channel synchronization subunit.

Citation Information

Cited By

  • Data synchronization method based on 204B multi-chip asynchronous mode

    CN120929414A