Serdes interface circuit

文档序号:750330 发布日期:2021-04-02 浏览:73次 中文

阅读说明:本技术 Serdes接口电路 (Serdes interface circuit ) 是由 袁磊 宣学雷 李宁 于 2020-12-17 设计创作,主要内容包括:本发明提供了一种Serdes接口电路,包括若干接收网桥单元,接收网桥单元包括,对齐调整模块,用于接收Serdes接口各个通道中解码后的解码数据,将解码数据调整到对齐状态,并输出对齐状态数据;补偿频差删除模块,用于对对齐状态数据中的特殊字符skip pattern进行删除操作,并将补偿频差删除数据写入FIFO缓存;数据调整模块,用于对FIFO的读出数据进行数据调整,并输出调整数据;补偿频差补位模块,用于对调整数据进行插入操作,并输出对齐调整数据;状态发生模块,用于控制多通道对齐,并判断是否完成对齐。本发明的接口电路消除了误码导致的各个通道内特殊字符Apattern间隔改变的影响,保证了数据对齐的顺利完成,提高了serdes的传输性能以及系统工作的稳定性。(The invention provides a Serdes interface circuit, which comprises a plurality of receiving bridge units, wherein each receiving bridge unit comprises an alignment adjusting module used for receiving decoded data in each channel of a Serdes interface, adjusting the decoded data to an alignment state and outputting the alignment state data; the compensation frequency difference deleting module is used for deleting the special character skip pattern in the alignment state data and writing the compensation frequency difference deleting data into the FIFO cache; the data adjusting module is used for adjusting the data of the read data of the FIFO and outputting the adjusted data; the compensation frequency difference bit-complementing module is used for performing insertion operation on the adjustment data and outputting alignment adjustment data; and the state generation module is used for controlling the multi-channel alignment and judging whether the alignment is finished. The interface circuit eliminates the influence of special character Apattern interval change in each channel caused by error codes, ensures the smooth completion of data alignment, and improves the transmission performance of serdes and the stability of system work.)

1. A Serdes interface circuit is used for multi-channel data transmission and is characterized by comprising a plurality of receiving bridge units, wherein each receiving bridge unit comprises an alignment adjusting module, a compensation frequency difference deleting module, a FIFO (first in first out), a data adjusting module, a compensation frequency difference bit supplementing module and a state generating module which are sequentially connected;

the alignment adjusting module is used for receiving decoded data in each channel of the Serdes interface, adjusting the decoded data to an alignment state, and outputting alignment state data;

the compensation frequency difference deleting module is used for deleting the special character skip pattern in the alignment state data and writing the compensation frequency difference deleting data into an FIFO (first in first out) cache;

the data adjusting module is used for adjusting the data of the read data of the FIFO and outputting the adjusted data;

the compensation frequency difference bit complementing module is used for performing insertion operation on the adjustment data and outputting alignment adjustment data;

and the state generation module is used for controlling the multi-channel alignment and judging whether the alignment is finished.

2. The Serdes interface circuit of claim 1, wherein the number of multipaths is 4 and the number of receiving bridge units is 4.

3. The Serdes interface circuit of claim 1, wherein the compensated frequency offset cancellation module cancels a special character skip pattern in the alignment status data when the frequency of the FIFO write-side clock is greater than the frequency of the FIFO read-side clock, and writes the compensated frequency offset cancellation data into the FIFO buffer.

4. The Serdes interface circuit of claim 1, wherein the compensated frequency offset padding module performs an insertion operation on the adjustment data when a frequency of a FIFO read-side clock is greater than a frequency of a FIFO write-side clock.

5. The Serdes interface circuit of claim 1, wherein the data adjustment module comprises a data selection module, a delete information processing module, a delete index comparison module, and an output processing module;

the data selection module is used for receiving the read data of the FIFO and outputting the data to be compared to the deleted information processing module and the output processing module;

the deletion information processing module is used for outputting deletion indexes to be compared to the deletion index comparison module to perform deletion operation comparison;

the deletion index comparison module is used for outputting a selection control signal and an output control signal;

and the output processing module is used for outputting the adjusting data.

[ technical field ] A method for producing a semiconductor device

The invention relates to the technical field of integrated circuit chips, in particular to a Serdes interface circuit.

[ background of the invention ]

In order to achieve the purpose of realizing a high data rate through fewer pins, the FPGA chip transmits data through a plurality of channels through a Serdes interface.

A PCS rx part in Serdes binds a plurality of physically independent channels into a parallel channel with synchronous time sequence logic by using special characters Apattern in a data stream; meanwhile, the elastic buffer circuit planned in the PCS rx can solve the problem that a recovered clock is inconsistent with a local clock. However, the frequency offset compensation functions of the multichannel data alignment and recovery clock and the local clock are fast and slow, the multichannel alignment function needs to be restarted, a large amount of processing time delay is consumed, and the transmission efficiency of the whole serdes is greatly influenced.

[ summary of the invention ]

The invention aims to provide a Serdes interface circuit.

In order to achieve the above object, the present invention provides a Serdes interface circuit, wherein the Serdes interface circuit is used for multichannel data transmission and comprises a plurality of receiving bridge units, and each receiving bridge unit comprises an alignment adjustment module, a compensation frequency difference deletion module, a FIFO, a data adjustment module, a compensation frequency difference bit-complementing module, and a state generation module, which are sequentially connected; the alignment adjusting module is used for receiving decoded data in each channel of the Serdes interface, adjusting the decoded data to an alignment state, and outputting alignment state data; the compensation frequency difference deleting module is used for deleting the special character skip pattern in the alignment state data and writing the compensation frequency difference deleting data into an FIFO (first in first out) cache; the data adjusting module is used for adjusting the data of the read data of the FIFO and outputting the adjusted data; the compensation frequency difference bit complementing module is used for performing insertion operation on the adjustment data and outputting alignment adjustment data; and the state generation module is used for controlling the multi-channel alignment and judging whether the alignment is finished.

Preferably, the number of the multiple channels is 4, and the number of the receiving bridge units is 4.

Preferably, when the frequency of the FIFO write-side clock is greater than the frequency of the FIFO read-side clock, the compensation frequency difference deletion module performs a deletion operation on the special character skip pattern in the alignment state data, and writes the compensation frequency difference deletion data into the FIFO buffer.

Preferably, when the frequency of the FIFO read-side clock is greater than the frequency of the FIFO write-side clock, the compensation frequency difference bit complementing module performs an insertion operation on the adjustment data.

Preferably, the data adjusting module comprises a data selecting module, a deleted information processing module, a deleted index comparing module and an output processing module; the data selection module is used for receiving the read data of the FIFO and outputting the data to be compared to the deleted information processing module and the output processing module; the deletion information processing module is used for outputting deletion indexes to be compared to the deletion index comparison module to perform deletion operation comparison; the deletion index comparison module is used for outputting a selection control signal and an output control signal; and the output processing module is used for outputting the adjusting data.

The invention has the beneficial effects that: the interface circuit eliminates the influence of special character Apattern interval change in each channel caused by error codes, ensures the smooth completion of data alignment, and improves the transmission performance of serdes and the stability of system operation.

[ description of the drawings ]

FIG. 1 is a block diagram of a Serdes interface circuit according to an embodiment of the present invention;

FIG. 2 is a block diagram of a data adjustment module according to an embodiment of the present invention;

FIG. 3 is a timing diagram of the selection control signal according to the embodiment of the present invention;

FIG. 4 is a timing diagram of outputting control signals according to an embodiment of the present invention.

[ detailed description ] embodiments

In order to make the objects, technical solutions and advantages of the present disclosure more clear, the technical solutions of the present disclosure will be clearly and completely described below with reference to the specific embodiments of the present disclosure and the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present disclosure, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present specification without any creative effort belong to the protection scope of the present specification. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.

The terms "first," "second," and "third," etc. in the description and claims of the present invention and the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprises" and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.

The embodiment of the invention provides a Serdes (SERializer/DESIRIZER, SERializer/DESerializer) interface circuit, which is used for multi-channel data transmission and comprises a plurality of receiving bridge units rx _ bridge _ unit, wherein each receiving bridge unit comprises an alignment adjusting module binding _ ctrl, a compensating frequency difference deleting module ctc _ del _ ctrl, a FIFO (First in First out memory, on-chip First in First out memory), a data adjusting module rx _ bu _ adjust, a compensating frequency difference complementing module ctc _ add _ ct and a state generating module cb _ status _ gen which are sequentially connected.

The alignment adjusting module is used for receiving decoded data _ after _ decoder in each channel of the Serdes interface, adjusting the decoded data to an alignment state, and outputting alignment state data _ after _ bonding; furthermore, as the intervals of the special characters Apattern in the decoded data are all the same and fixed, the decoded data is adjusted to the alignment state, and the decoded data is adjusted to the alignment state according to the detection result of the special characters Apattern.

The compensation frequency difference deleting module is used for deleting the special character skip pattern in the alignment state data, realizing the frequency difference compensation of an FIFO reading side clock and an FIFO writing side clock, and writing the compensation frequency difference deleting data _ after _ ctc _ del into an FIFO cache; specifically, when the frequency of the FIFO write-side clock is greater than the frequency of the FIFO read-side clock, the compensation frequency difference deletion module deletes the special character skip pattern in the alignment state data, and writes the compensation frequency difference deletion data into the FIFO buffer.

The data adjusting module is used for adjusting the data of the read data FIFO _ rdata of the FIFO and outputting adjusting data _ after _ adjuster; the influence of error codes on data alignment is eliminated, and the data alignment of each channel is ensured.

The compensation frequency offset bit complementing module is used for performing special character skip pattern insertion operation (skip-add) on the adjusting data and outputting alignment adjusting data dout _ after _ ctc _ and _ ceb to ensure the realization of frequency offset compensation; specifically, when the frequency of the FIFO read-side clock is greater than that of the FIFO write-side clock, skip-add operation is performed on the adjustment data.

And the state generation module is used for controlling the multi-channel alignment and judging whether the alignment is finished.

The Serdes interface circuit eliminates the influence of special character Apattern interval change in each channel caused by error codes, ensures the smooth completion of data alignment, and improves the transmission performance of Serdes and the stability of system operation.

In one embodiment, there are 4 multi-channels and correspondingly 4 receiving bridge units.

As shown in fig. 1, an embodiment of the present invention provides a Serdes interface circuit for multichannel data transmission, which includes a plurality of receiving bridge units; wherein, one master channel receives the bridge unit rx _ bridge _ unit in master channel, and the rest are slave channel receiving bridge units rx _ bridge _ unit in slave channel (only 1 slave channel receiving bridge unit is shown in the figure); the master channel receiving bridge unit is used for master channel (master channel) data transmission, and the slave channel receiving bridge unit is used for slave channel (slave channel) data transmission.

The main channel receiving bridge unit and the slave channel receiving bridge unit respectively comprise an alignment adjusting module, a compensation frequency difference deleting module, an FIFO, a data adjusting module, a compensation frequency difference bit supplementing module and a state generating module which are connected in sequence.

The alignment adjusting module is used for receiving decoded data _ after _ decoder in each channel of the Serdes interface, adjusting the decoded data to an alignment state, and outputting alignment state data _ after _ bonding; furthermore, as the intervals of the special characters Apattern in the decoded data are all the same and fixed, the decoded data is adjusted to the alignment state, and the decoded data is adjusted to the alignment state according to the detection result of the special characters Apattern.

The compensation frequency difference deleting module is used for deleting the special character skip pattern in the alignment state data, realizing the frequency difference compensation of an FIFO reading side clock and an FIFO writing side clock, and writing the compensation frequency difference deleting data _ after _ ctc _ del into an FIFO cache; specifically, when the frequency of the FIFO write-side clock is greater than the frequency of the FIFO read-side clock, the compensation frequency difference deletion module deletes the special character skip pattern in the alignment state data, and writes the compensation frequency difference deletion data into the FIFO buffer.

The special character skip pattern is a code word inserted according to the protocol requirement in data transmission, and is used in frequency difference compensation, and the frequency of output data is ensured to meet the transmission requirement through the insertion and deletion operations of the special character skip pattern; the special character Apattern is a code word inserted at a fixed interval in data transmission, when multichannel transmission starts, the special character Apattern in each channel data is aligned, and at a receiving bridge unit rx _ bridge _ unit, the data is adjusted through the identification of the special character Apattern to ensure that the data finally output by Serdes is aligned with each channel.

The data adjusting module is used for adjusting the data of the read data FIFO _ rdata of the FIFO and outputting adjusting data _ after _ adjuster; the influence of error codes on data alignment is eliminated, and the data alignment of each channel is ensured.

The compensation frequency offset bit complementing module is used for performing skip-add operation on the adjusting data and outputting alignment adjusting data dout _ after _ ctc _ and _ ceb to ensure the realization of frequency offset compensation; specifically, when the frequency of the FIFO read-side clock is greater than that of the FIFO write-side clock, skip-add operation is performed on the adjustment data.

And the state generation module cb _ status _ gen is used for controlling multichannel alignment and judging whether the alignment is finished.

Further, the status generation module cb _ status _ gen in the master channel receiving bridge unit is enabled to control, the status generation module cb _ status _ gen controls multi-channel alignment through a built-in state machine, and determines whether all channels (master channel and slave channel) are aligned.

The invention carries out data adjustment by setting the data adjustment module, ensures that all channels process the special character skip pattern deleting operation (skip-del) by taking the main channel as a reference, and keeps the interval of the special character Apattern fixed, thereby solving the problem that the data is influenced by error codes in the processes of network channel transmission and on-board serial transmission. When the error code occurs on the skip pattern, the skip pattern cannot be identified at the moment, different deletion operations are carried out on each channel, so that the interval of the special character Apattern in the channel data changes, the interval of the special character Apattern changes due to the error code, the multi-channel alignment function can only be restarted, a large amount of processing time delay is consumed, and the transmission efficiency of the whole serdes is greatly influenced.

The Skip-del-index-cin and the Skip-del-index-cout are used as the cascade information of the deleting operation of the main channel, the Skip-del information of the main channel is transmitted to each slave channel in a first-stage mode, so that the deleting operation of each slave channel is compared, and the data is adjusted according to the comparison, so that the consistency of special character apttern intervals in the data of each channel is ensured.

The Skip _ add _ index _ cin and the Skip _ add _ index _ cout are the concatenation information of the insertion operation of the main channel, after the data is adjusted by the receiving bridge unit rx _ bu _ adjust, the data of the slave channel is ensured to be consistent with the main channel, and the special character Skip pattern insertion operation required by the frequency difference compensation is controlled by the main channel so as to ensure the alignment of the data of each channel.

In one embodiment, as shown in fig. 2, the data adjusting module includes a data selecting module din _ gen, a deletion information processing module din _ del _ index _ gen, a deletion index comparing module del _ index _ match, and an output processing module output _ data _ gen.

The data selection module din _ gen is used for receiving read data of the FIFO; according to the sending address of the data, as shown in fig. 3 and fig. 4, the read data of the data selection module din _ gen receiving FIFO includes read data adjust _ din at the current time, and read data adjust _ din _ nxt1, adjust _ din _ nxt2 and adjust _ din _ nxt3 of the following three read addresses.

Further, if the del _ index comparison result in the deleted information processing module din _ del _ index _ gen shows that there is an error in the slave channel in the previous cycle (cycle), the data din and din _ nxt to be compared are shifted and spliced to achieve data alignment. In order to prevent repeated data output, the data selection module din _ gen of the slave channel selects read data of a subsequent read address according to the selection control signal data _ in _ sel so as to ensure that the output data is not assigned to the data din and din _ nxt to be compared.

If the del _ index comparison result in the deleted information processing module din _ del _ index _ gen shows that the main channel has an error code in the previous cycle (cycle), the output processing module output _ data _ gen of the slave channel inserts a special character skip pattern into the data to realize data alignment; after a certain amount of skip is inserted, in order to ensure that data is not lost, the din _ gen module selects data according to the selection control signal data _ in _ sel, and ensures that the data din and din _ nxt to be compared keep the data of the last cycle. The selection control signal data _ in _ sel selects data as adjust _ din _ nxt1, adjust _ din _ nxt2 and adjust _ din _ nxt 3.

The data selection module din _ gen outputs the data din and din _ nxt to be compared to the deleted information processing module din _ del _ index _ gen and the output processing module output _ data _ gen according to the selection control signal data _ in _ sel.

The deletion information processing module din _ del _ index _ gen extracts the special character skip pattern deletion operation skip-del from the channel (slave channel) data according to the received data din and din _ nxt to be compared, and outputs the deletion indexes din _ del _ index and din _ nxt _ del _ index to be compared to the deletion index comparison module del _ index _ match for deletion operation comparison.

A delete index comparison module del _ index _ compare of the slave channel, which is used for comparing skip-del operations of the master channel and the current slave channel, and outputting a selection control signal data _ in _ sel and an output control signal data _ out _ sel; specifically, the delete index comparing module del _ index _ component compares skip-del operations of the main channel and the present channel according to the received delete indexes din _ del _ index, din _ nxt _ del _ index and the main channel delete index master _ del _ index to be compared, so as to determine whether data adjustment is required. The delete index module del _ index _ compare of the master channel does not perform any operation, and the data adjustment of all channels (slave channels) is based on the master channel.

The selection control signal data _ in _ sel is used for controlling the generation of the next data din to be compared; the output control signal data _ out _ sel is used for outputting the adjusted data adjust _ dout by the output processing module output _ data _ gen.

The output processing module output _ data _ gen outputs the adjusted data adjust _ dout according to the selection of the output control signal data _ out _ sel, namely the adjusted data _ after _ adjust; the left data buf _ left _ data signal cached in the output processing module output _ data _ gen temporarily stores data which is not output due to data adjustment from the channel.

If the current main channel has error codes, the output control signal data _ out _ sel is indicated as '2'; and the slave channel recovers the deleted special character skip pattern to ensure that the data of the channel is consistent with the data of the master channel.

When buf _ left _ data has data to be temporarily stored, the data which is not output is spliced with the data din to be compared of the current cycle so as to meet the requirement of data bit width and then output.

If the slave channel has error codes, the special character skip pattern is not processed, and the output control signal data _ out _ sel outputs '1' for indication; the output processing module output _ data _ gen splices and shifts the data din and din _ nxt to be compared according to the indication of the main channel deletion index master _ del _ index so as to ensure that the current slave channel data and the main channel data are kept aligned.

It can be found from the figure that the invention eliminates the influence of error codes, ensures the simultaneous support of the functions of multi-channel alignment and frequency offset compensation, and improves the stability of the servers system and the transmission efficiency of data. CTC is the clock compensated frequency difference.

While the foregoing is directed to embodiments of the present invention, it will be understood by those skilled in the art that various changes may be made without departing from the spirit and scope of the invention.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于GH063L的光耦隔离电路

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!