[go: up one dir, main page]

CN102164024B - Serial bus data transmission method and device - Google Patents

Serial bus data transmission method and device Download PDF

Info

Publication number
CN102164024B
CN102164024B CN201110093315.1A CN201110093315A CN102164024B CN 102164024 B CN102164024 B CN 102164024B CN 201110093315 A CN201110093315 A CN 201110093315A CN 102164024 B CN102164024 B CN 102164024B
Authority
CN
China
Prior art keywords
serial
port
data block
data
quadrature
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
CN201110093315.1A
Other languages
Chinese (zh)
Other versions
CN102164024A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry Co Ltd
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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201110093315.1A priority Critical patent/CN102164024B/en
Publication of CN102164024A publication Critical patent/CN102164024A/en
Application granted granted Critical
Publication of CN102164024B publication Critical patent/CN102164024B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Systems (AREA)
  • Dc Digital Transmission (AREA)

Abstract

本发明提供了一种串行总线数据传输方法和装置。涉及通信领域;解决了串扰影响数据传输的问题。该方法包括:为多个串行通道中的各串行通道分配象限值和位偏移量值,同一象限值对应的多个串行通道构成象限,象限值相同的不同串行通道的位偏移量值不同;根据各串行通道的象限值和位偏移量值,进行位编码,将各串行通道匹配到对应物理链路,相邻的串行通道匹配至不相邻的物理链路;通过匹配后的串行通道传输数据。本发明提供的技术方案适用于多串行通道并行工作的数据传输过程中,实现了低串扰的数据传输。

Figure 201110093315

The invention provides a serial bus data transmission method and device. It relates to the field of communication; it solves the problem that crosstalk affects data transmission. The method includes: assigning a quadrant value and a bit offset value to each of the multiple serial channels, multiple serial channels corresponding to the same quadrant value form a quadrant, and different serial channels with the same quadrant value The bit offset value of each serial channel is different; according to the quadrant value and bit offset value of each serial channel, the bit encoding is performed to match each serial channel to the corresponding physical link, and the adjacent serial channels are matched to different Adjacent physical link; transmit data through the matched serial channel. The technical scheme provided by the invention is applicable to the data transmission process in which multiple serial channels work in parallel, and realizes data transmission with low crosstalk.

Figure 201110093315

Description

串行总线数据传输方法和装置Serial bus data transmission method and device

技术领域 technical field

本发明涉及通信领域,尤其涉及一种串行总线数据传输方法和装置。The invention relates to the communication field, in particular to a serial bus data transmission method and device.

背景技术 Background technique

随着计算机科学技术的飞速发展,总线带宽成为衡量系统性能的重要指标之一。按照数据传输形式的不同,总线分为两种:串行总线与并行总线。并行总线是指数据的各位同时进行传送,对数据同步的要求很高,也成为制约并行总线带宽提升的瓶颈之一。在传输速度到达极限之后,并行总线信号线长度无法延长,信号同步性难以保持,信号线耗电较大的缺点也显现出来。此时串行总线作为一种数据被分配到高速串行通道上进行传输的总线形式,它高频率,高带宽,数据易同步的优势开始凸显,得到广泛应用。With the rapid development of computer science and technology, bus bandwidth has become one of the important indicators to measure system performance. According to the different forms of data transmission, the bus is divided into two types: serial bus and parallel bus. The parallel bus refers to the simultaneous transmission of data bits, which has high requirements for data synchronization and has become one of the bottlenecks restricting the bandwidth improvement of the parallel bus. After the transmission speed reaches the limit, the length of the parallel bus signal line cannot be extended, the signal synchronization is difficult to maintain, and the disadvantages of high power consumption of the signal line also appear. At this time, the serial bus is a bus form in which data is allocated to high-speed serial channels for transmission. Its advantages of high frequency, high bandwidth, and easy data synchronization begin to emerge and are widely used.

当多个串行通道同时工作时,不可避免的带来了通道之间串扰问题,从而导致通道的延迟增大,信号完整性降低,噪声增大等等问题,影响了数据传输,成为制约串行总线发展的一大难题。When multiple serial channels work at the same time, it inevitably brings the problem of crosstalk between channels, which leads to increased channel delay, reduced signal integrity, increased noise, etc., which affects data transmission and becomes a constraint on serial communication. A major problem in the development of row bus.

发明内容 Contents of the invention

本发明提供了一种串行总线数据传输方法和装置,解决了串扰影响数据传输的问题。The invention provides a serial bus data transmission method and device, which solves the problem that crosstalk affects data transmission.

一种串行总线数据传输方法,包括:A serial bus data transmission method, comprising:

为多个串行通道中的各串行通道分配象限值和位偏移量值,同一象限值对应的多个串行通道构成象限,象限值相同的不同串行通道的位偏移量值不同;Assign quadrant value and bit offset value to each serial channel in multiple serial channels, multiple serial channels corresponding to the same quadrant value form a quadrant, and the bit offset of different serial channels with the same quadrant value different in magnitude;

根据各串行通道的象限值和位偏移量值,进行位编码,将各串行通道匹配到对应物理链路,相邻的串行通道匹配至不相邻的物理链路;According to the quadrant value and bit offset value of each serial channel, perform bit encoding, match each serial channel to the corresponding physical link, and match adjacent serial channels to non-adjacent physical links;

通过匹配后的串行通道传输数据。Data is transferred over the matched serial channel.

优选的,各象限包含的串行通道数量相同。Preferably, each quadrant contains the same number of serial channels.

优选的,在具有20个串行通道时,将该20个串行通道划分为4个象限,各象限的象限值分别为0、1、2和3,每一象限中的5个串行通道的位偏移量值分别为0、1、2、3和4。Preferably, when there are 20 serial channels, the 20 serial channels are divided into 4 quadrants, the quadrant values of each quadrant are respectively 0, 1, 2 and 3, and 5 serial channels in each quadrant Channels have bit offset values of 0, 1, 2, 3, and 4, respectively.

优选的,所述进行位编码,将各串行通道匹配到对应物理链路具体为:Preferably, performing bit coding and matching each serial channel to a corresponding physical link is specifically:

当串行通道的象限值小于2时,根据如下表达式确定该串行通道对应的物理链路编号:When the quadrant value of the serial channel is less than 2, determine the physical link number corresponding to the serial channel according to the following expression:

物理链路编号N=(系统所支持的最大串行通道数/4)*(1+象限值)-位偏移量值-1;Physical link number N=(the maximum number of serial channels supported by the system/4)*(1+quadrant value)-bit offset value-1;

当串行通道的象限值大于或等于2时,根据如下表达式确定该串行通道对应的物理链路编号:When the quadrant value of the serial channel is greater than or equal to 2, determine the corresponding physical link number of the serial channel according to the following expression:

物理链路编号N=(系统所支持的最大串行通道数/4)*(5+象限值)+位偏移量值。Physical link number N=(maximum number of serial channels supported by the system/4)*(5+quadrant value)+bit offset value.

优选的,所述通过匹配后的串行通道传输数据具体为:Preferably, the transmission of data through the matched serial channel is specifically:

将待传输的数据帧划分成数据块,为各数据块编号;Divide the data frame to be transmitted into data blocks, and number each data block;

交叉发送编号为奇数的数据块和编号为偶数的数据块,将所述数据块的各位交叉均匀分布到各个串行通道上传输,所述数据块的位数等于串行通道数。The odd-numbered data block and the even-numbered data block are sent alternately, each bit of the data block is evenly distributed to each serial channel for transmission, and the number of bits of the data block is equal to the number of serial channels.

优选的,方法还包括:Preferably, the method also includes:

当一个或多个串行通道出现不可修复性错误时,根据当前正常工作的串行通道数量调整数据块大小。When an unrecoverable error occurs on one or more serial channels, the data block size is adjusted according to the number of serial channels that are currently working properly.

本发明还提供了一种串行总线数据传输装置,包括:The present invention also provides a serial bus data transmission device, comprising:

象限划分模块,用于为多个串行通道中的各串行通道分配象限值和位偏移量值,同一象限值对应的多个串行通道构成象限,象限值相同的不同串行通道的位偏移量值不同;The quadrant division module is used to assign quadrant values and bit offset values for each serial channel in multiple serial channels. Multiple serial channels corresponding to the same quadrant value form a quadrant, and different serial channels with the same quadrant value The bit offset values of the row channels are different;

物理链路匹配模块,用于根据各串行通道的象限值和位偏移量值,进行位编码,将各串行通道匹配到对应物理链路,相邻的串行通道匹配至不相邻的物理链路;The physical link matching module is used to perform bit encoding according to the quadrant value and the bit offset value of each serial channel, and match each serial channel to the corresponding physical link, and match adjacent serial channels to different adjacent physical links;

数据传输模块,用于通过匹配后的串行通道传输数据。The data transmission module is used for transmitting data through the matched serial channel.

优选的,所述数据传输模块包括:Preferably, the data transmission module includes:

数据块划分单元,用于将待传输的数据帧划分成数据块,为各数据块编号;The data block dividing unit is used for dividing the data frame to be transmitted into data blocks, and numbering each data block;

数据块发送单元,用于交叉发送编号为奇数的数据块和编号为偶数的数据块,将所述数据块的各位交叉均匀分布到各个串行通道上传输,所述数据块的位数等于串行通道数。The data block sending unit is used to cross-send odd-numbered data blocks and even-numbered data blocks, and evenly distribute each bit of the data block to each serial channel for transmission, and the number of bits of the data block is equal to that of the serial channel. number of row channels.

优选的,所述数据块划分单元,还用于当一个或多个串行通道出现不可修复性错误时,根据当前正常工作的串行通道数量调整数据块大小。Preferably, the data block dividing unit is further configured to adjust the size of the data block according to the number of currently working serial channels when an unrecoverable error occurs in one or more serial channels.

本发明提供了一种串行总线数据传输方法和装置,为多个串行通道中的各串行通道分配象限值和位偏移量值,同一象限值对应的多个串行通道构成象限,象限值相同的不同串行通道的位偏移量值不同,根据各串行通道的象限值和位偏移量值,进行位编码,将各串行通道匹配到对应物理链路,相邻的串行通道匹配至不相邻的物理链路,通过匹配后的串行通道传输数据,相邻串行通道匹配至不同的物理链路,减少了相邻物理链路间的串扰,解决了串扰影响数据传输的问题。The invention provides a serial bus data transmission method and device, which allocates quadrant values and bit offset values for each serial channel in multiple serial channels, and a plurality of serial channels corresponding to the same quadrant value constitute Quadrant, the bit offset value of different serial channels with the same quadrant value is different, according to the quadrant value and bit offset value of each serial channel, bit encoding is performed to match each serial channel to the corresponding physical link , adjacent serial channels are matched to non-adjacent physical links, data is transmitted through the matched serial channels, and adjacent serial channels are matched to different physical links, reducing crosstalk between adjacent physical links , to solve the problem of crosstalk affecting data transmission.

附图说明 Description of drawings

图1为本发明的实施例一提供的一种串行总线数据传输方法的流程图;Fig. 1 is a flow chart of a serial bus data transmission method provided by Embodiment 1 of the present invention;

图2为本发明的实施例三中所使用的位混合模式原理图;FIG. 2 is a schematic diagram of a bit mixing mode used in Embodiment 3 of the present invention;

图3为串行通道与物理通道匹配关系的示意图;FIG. 3 is a schematic diagram of a matching relationship between a serial channel and a physical channel;

图4为奇偶交叉选择策略原理图;Fig. 4 is a schematic diagram of the odd-even crossover selection strategy;

图5为本发明的实施例四提供的一种串行总线数据传输装置的结构示意图;5 is a schematic structural diagram of a serial bus data transmission device provided by Embodiment 4 of the present invention;

图6为图5中数据传输模块503的结构示意图。FIG. 6 is a schematic structural diagram of the data transmission module 503 in FIG. 5 .

具体实施方式 Detailed ways

当多个串行通道同时工作时,不可避免的带来了通道之间串扰问题,从而导致通道的延迟增大,信号完整性降低,噪声增大等等问题,成为制约串行总线发展的一大难题。再者由于串行通道采用高速信号传输数据,需采取一种校验方法来对高速串行通道上传输的数据进行侦错和纠正。但各种校验方式都存在所能检测的数据的最大范围,超过该范围则无法检测到通道上的错误。因此当串行总线上某通道出现突发性的且长度超过校验最大范围的错误时,数据校验无能为力。When multiple serial channels work at the same time, the problem of crosstalk between channels will inevitably be brought, which will lead to increased channel delay, reduced signal integrity, increased noise, etc., which has become a problem that restricts the development of serial buses. big problem. Furthermore, since the serial channel uses high-speed signals to transmit data, it is necessary to adopt a verification method to detect and correct the data transmitted on the high-speed serial channel. However, each verification method has a maximum range of data that can be detected, and errors on the channel cannot be detected beyond this range. Therefore, when a channel on the serial bus has a sudden error whose length exceeds the maximum range of the verification, the data verification can do nothing.

如需解决上述问题,除了从PCB板级电路设计方面进行考虑外,若能从高速串行互联总线的源头,即芯片设计的并串转换阶段采取一种方法,降低高速串行通道间串扰程度,降低通道上出现连续突发性错误的风险,将极大的提高串行总线的工作效率和容错性,从而带来数据传输带宽上的提高和系统性能的提升。To solve the above problems, in addition to considering the PCB board-level circuit design, if a method can be adopted from the source of the high-speed serial interconnection bus, that is, the parallel-to-serial conversion stage of chip design, to reduce the degree of crosstalk between high-speed serial channels , reducing the risk of continuous burst errors on the channel will greatly improve the work efficiency and fault tolerance of the serial bus, thereby bringing about an increase in data transmission bandwidth and system performance.

为了解决上述问题,本发明的实施例提供了一种串行总线数据传输方法和装置,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to solve the above problems, embodiments of the present invention provide a serial bus data transmission method and device, and the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

首先结合附图,对本发明的实施例一进行说明。First, Embodiment 1 of the present invention will be described with reference to the accompanying drawings.

本发明实施例一提供了一种串行总线数据传输方法,使用该方法完成数据传输的流程如图1所示,包括:Embodiment 1 of the present invention provides a serial bus data transmission method, using this method to complete the data transmission process as shown in Figure 1, including:

步骤101、为多个串行通道中的各串行通道分配象限值和位偏移量值,同一象限值对应的多个串行通道构成象限,象限值相同的不同串行通道的位偏移量值不同;Step 101, assign a quadrant value and a bit offset value to each serial channel in the plurality of serial channels, multiple serial channels corresponding to the same quadrant value form a quadrant, and different serial channels with the same quadrant value The bit offset values are different;

其中,所述串行通道为逻辑通道。Wherein, the serial channel is a logic channel.

步骤102、根据各串行通道的象限值和位偏移量值,进行位编码,将各串行通道匹配到对应物理链路,相邻的串行通道匹配至不相邻的物理链路;Step 102, perform bit encoding according to the quadrant value and bit offset value of each serial channel, match each serial channel to a corresponding physical link, and match adjacent serial channels to non-adjacent physical links ;

步骤103、通过匹配后的串行通道传输数据。Step 103, transmit data through the matched serial channel.

下面,对本发明的实施例二进行说明。Next, Embodiment 2 of the present invention will be described.

本发明实施例提供了一种串行总线数据传输方法,主要考虑高速串行通道串扰问题对串行总线传输质量的影响,放弃了传统的串行通道与物理链路匹配一一对应的设计,通过板级布线延迟的数学模型,计算出从串行通道到物理链路的最佳位混合模式,从而减轻串扰程度。其中计算延迟模型的核心在于分析和计算互联中电容耦合任意点的到达和转换时间,该过程可采用HSpice等模拟工具进行计算。在延迟模型计算过程中,延迟量和转换点的计算是一个反复迭代的过程,该过程以首个输入的到达时间和转换时间为基准作为开始,通过迭代对互联的延迟和转换时间以时间等分段为单位进行更新,重复该过程直到两次迭代之间所有通道的延迟之和改变程度降低到5%以下。最佳位混合模式需满足以下特性:(1)所有可能的邻接关系,均为双倍。即位混合模式下每组差分信号到其他信号的长度相同。(2)任意相邻两组物理链路的距离相同。The embodiment of the present invention provides a serial bus data transmission method, which mainly considers the impact of high-speed serial channel crosstalk on the serial bus transmission quality, and abandons the traditional one-to-one matching design of serial channels and physical links. Through the mathematical model of the board-level routing delay, the optimal bit mixing mode from the serial channel to the physical link is calculated, thereby reducing the degree of crosstalk. The core of calculating the delay model is to analyze and calculate the arrival and transition time of any point of capacitive coupling in the interconnection. This process can be calculated by using simulation tools such as HSpice. In the calculation process of the delay model, the calculation of the delay amount and the conversion point is an iterative process. The process starts with the arrival time and conversion time of the first input as the benchmark, and the delay and conversion time of the interconnection are iteratively calculated by time, etc. Updates are performed in units of segments, and the process is repeated until the sum of the delays of all channels changes below 5% between two iterations. The optimal bit mixing mode needs to satisfy the following characteristics: (1) All possible adjacencies are double. In bit mixed mode, each group of differential signals has the same length as other signals. (2) The distance between any two groups of adjacent physical links is the same.

传统的高速互联总线所采用的8比特循环冗余校验方式,具有以下特点:(1)能够检测3位和3位以下的任意错误。(2)能够检测任意错误个数为奇数的错误。(3)任意突发性连续的长度为8比特或8比特以下的错误。(4)当连续性错误长度为9比特时,有1/128的几率错误不可测。(5)当连续性错误长度大于9比特时,有1/256的几率错误不可测。因此当总线的某个高速串行通道出现连续的不可修复错误时,即突发性连续错误长度大于或等于9比特时,循环冗余校验有失效的风险,导致错误信息被传送到应用层次,带来更严重的系统错误。为了防止这种情况的出现,本发明实施例采用了一种奇偶块交叉选择策略,将数据帧划分成长度更小的块,交叉均匀分布到各个高速串行通道上。接收方收到数据后再按照该策略将数据块组合成数据帧的格式,进行循环冗余校验。当某个通道上出现不可修复的连续性错误时,该策略已将通道上的数据重新组合,与其他通道上的数据进行交叉,保证了校验阶段数据帧的错误形式为间断性的可测错误,而不是存在不可测风险的8比特以上连续性错误。采用上述策略成功校验出通道上的不可修复错误后,总线进行传输宽度重新协商,即弃用不可用的高速串行通道,以收发双方重新商定的高速串行通道个数进行传输,此时奇偶块交叉策略按照总线宽度(通道个数)进行变化,保证数据帧发生错误的可测性。The 8-bit cyclic redundancy check method adopted by the traditional high-speed interconnection bus has the following characteristics: (1) It can detect any error of 3 bits or less. (2) It is possible to detect errors in which the number of arbitrary errors is an odd number. (3) Any bursty continuous error with a length of 8 bits or less. (4) When the length of the continuous error is 9 bits, there is a probability of 1/128 that the error is undetectable. (5) When the length of the continuous error is greater than 9 bits, there is a probability of 1/256 that the error is undetectable. Therefore, when a continuous unrecoverable error occurs on a high-speed serial channel of the bus, that is, when the length of a burst continuous error is greater than or equal to 9 bits, the cyclic redundancy check has a risk of failure, causing the error message to be transmitted to the application layer , bringing more serious system errors. In order to prevent this situation, the embodiment of the present invention adopts a parity block crossover selection strategy, divides the data frame into smaller blocks, and distributes the crossover evenly to each high-speed serial channel. After receiving the data, the receiver combines the data blocks into a data frame format according to the strategy, and performs a cyclic redundancy check. When an irreparable continuity error occurs on a channel, this strategy has reassembled the data on the channel and interleaved with the data on other channels, ensuring that the error form of the data frame in the verification phase is intermittent and measurable errors, rather than consecutive errors of more than 8 bits with an unmeasurable risk. After using the above strategy to successfully verify the unrepairable errors on the channel, the bus will re-negotiate the transmission width, that is, discard the unavailable high-speed serial channels, and transmit with the number of high-speed serial channels re-negotiated by the sending and receiving parties. At this time The parity block crossover strategy changes according to the bus width (the number of channels) to ensure the testability of data frame errors.

本发明实施例提供的串行总线数据传输方法,改善了高速信号传输质量,主要是指芯片设计阶段采用位混合方法依据最佳混合模式将串行通道对应到物理链路,减小了各通道间由于串扰带来的互联延迟和噪声,改善信号完整性;增强了系统的容错性,主要是指奇偶块交叉选择策略的应用,将串行通道上出现错误而带来的错误的不可测风险降低到最小。在错误可测的前提下,根据通道的传输情况协商传输宽度,即使某些通道出现物理故障,也有相应的应对策略,即按照通道数重新交叉分配各个数据块,总线仍然能够继续正常工作。The serial bus data transmission method provided by the embodiment of the present invention improves the quality of high-speed signal transmission, mainly refers to the bit mixing method used in the chip design stage to correspond the serial channel to the physical link according to the best mixing mode, reducing the number of channels Interconnection delay and noise due to crosstalk, improve signal integrity; enhance the fault tolerance of the system, mainly refers to the application of the parity block cross selection strategy, the unpredictable risk of errors caused by errors on the serial channel reduced to a minimum. Under the premise of measurable errors, the transmission width is negotiated according to the transmission conditions of the channels. Even if some channels have physical failures, there are corresponding countermeasures, that is, to re-allocate each data block according to the number of channels, and the bus can still continue to work normally.

下面结合附图,对本发明的实施例三进行说明。Embodiment 3 of the present invention will be described below with reference to the accompanying drawings.

本发明实施例中分别描述了位混合匹配物理链路和奇偶块交叉选择传输数据的实现过程。Embodiments of the present invention respectively describe the implementation process of bit mix-matching physical link and parity block cross selection for data transmission.

本发明实施例中,依据延迟模型和仿真工具计算出的最佳位混合模式,如图2所示,将串行通道上的数据对应到物理链路上,同时串行通道上的数据格式在数据帧中是连续的,按照象限和偏移进行位编码。以20个串行通道为例,将高速互连总线划分为4个象限,每个象限占5位偏移量,而物理链路则直接对应到印制电路板上的芯片之间连接端口的走线。位混合模式通过直接对应关系将串行通道与物理链路进行匹配,不需要增加额外的逻辑。串行通道的每一位通过<象限,偏移>的形式进行描述,物理链路则通过1-20的排列顺序进行描述,其中,由最佳位混合模式推导出的匹配规律如下:In the embodiment of the present invention, according to the optimal bit mixing mode calculated by the delay model and the simulation tool, as shown in Figure 2, the data on the serial channel is corresponding to the physical link, and the data format on the serial channel is at the same time The data frame is continuous, bit-encoded by quadrant and offset. Taking 20 serial channels as an example, the high-speed interconnection bus is divided into 4 quadrants, each quadrant occupies a 5-bit offset, and the physical link directly corresponds to the connection port between chips on the printed circuit board. Traces. Bit Mix Mode matches serial lanes to physical links through a direct correspondence, requiring no additional logic. Each bit of the serial channel is described in the form of <quadrant, offset>, and the physical link is described in the order of 1-20. Among them, the matching rule derived from the optimal bit mixing mode is as follows:

当串行通道的象限值小于2时,根据如下表达式确定该串行通道对应的物理链路编号:When the quadrant value of the serial channel is less than 2, determine the physical link number corresponding to the serial channel according to the following expression:

物理链路编号N=(系统所支持的最大串行通道数/4)*(1+象限值)-位偏移量值-1;Physical link number N=(the maximum number of serial channels supported by the system/4)*(1+quadrant value)-bit offset value-1;

当串行通道的象限值大于或等于2时,根据如下表达式确定该串行通道对应的物理链路编号:When the quadrant value of the serial channel is greater than or equal to 2, determine the corresponding physical link number of the serial channel according to the following expression:

物理链路编号N=(系统所支持的最大串行通道数/4)*(5+象限值)+位偏移量值。Physical link number N=(maximum number of serial channels supported by the system/4)*(5+quadrant value)+bit offset value.

如图3所示,发送方按照上述规律计算出物理链路的排列顺序,将串行通道对应到物理通道。同时,接收方按照上述规律反推出串行通道的排列顺序,将物理链路对应到串行通道。As shown in FIG. 3 , the sender calculates the arrangement order of the physical links according to the above rules, and maps the serial channels to the physical channels. At the same time, the receiver deduces the sequence of the serial channels according to the above rules, and maps the physical link to the serial channel.

如图4所示,以并行数据帧数据长度为80比特为例描述高速互联总线的奇偶交叉选择策略:数据帧被按段等分成4个数据块,大小为20比特,编号为0,1,2,3,其中0,2为偶块,1,3为奇块,每个数据块中相邻的位在数据帧中同样是相邻的关系。当系统所支持的串行通道总数为20时,数据块长度与串行通道长度相等,奇块和偶块交叉占用串行通道,每个时钟周期都有一个数据块被发出,发送一个完整的数据帧需要4个时钟周期。数据块按照位混合模式对应到通道上,数据块中相邻的位被分配到了不同的物理通道上,从而避免了单个物理通道上出现连续错误造成数据帧错误不可测的情况。当一个或多个通道出现不可修复性错误,双方重新协商传输宽度。当系统所支持的串行通道总数为10时,一个时钟周期所能传输的数据长度为数据块长度的一半。此时奇偶交叉策略改为相邻的数据块交叉发送,每个数据块中相邻的位也进行交叉发送,如第一个周期发送奇数块的奇数位,第二个周期发送偶数块的奇数位,第三个周期发送奇数块的偶数位,第四个周期发送偶数块的偶数位,直到所有数据块发送完毕,再进行下一个数据帧的交叉选择。当系统所支持的串行通道总数为5时,一个时钟周期所能传输的数据长度为数据块长度的四分之一。此时奇偶交叉策略再次作出相应的变化,相邻的数据块进行交叉发送,每个数据块每4位之内的数据位也进行交叉发送,如第一个周期发送奇数块的第0,4,8,12,16位,第二个周期发送偶数块的第0,4,8,12,16位,第三个周期发送奇数块的1,5,9,13,17位,持续该过程直到所有数据块发送完毕,再进行下一个数据帧的交叉选择。As shown in Figure 4, take the parallel data frame data length of 80 bits as an example to describe the parity cross selection strategy of the high-speed interconnection bus: the data frame is divided into 4 data blocks equally by segment, the size is 20 bits, and the numbers are 0, 1, 2, 3, where 0, 2 are even blocks, 1, 3 are odd blocks, and the adjacent bits in each data block are also adjacent in the data frame. When the total number of serial channels supported by the system is 20, the length of the data block is equal to the length of the serial channel, the odd block and the even block occupy the serial channel alternately, and a data block is sent every clock cycle, sending a complete A data frame takes 4 clock cycles. The data blocks correspond to the channels according to the bit mixing mode, and the adjacent bits in the data blocks are allocated to different physical channels, thus avoiding the unmeasurable data frame error caused by continuous errors on a single physical channel. When an unrecoverable error occurs on one or more channels, the two parties renegotiate the transmission width. When the total number of serial channels supported by the system is 10, the data length that can be transmitted in one clock cycle is half of the data block length. At this time, the odd-even crossover strategy is changed to adjacent data blocks, and the adjacent bits in each data block are also cross-transmitted. For example, the odd-numbered bits of the odd-numbered block are sent in the first cycle, and the odd-numbered bits of the even-numbered block are sent in the second cycle. Bits, the even bits of the odd blocks are sent in the third cycle, and the even bits of the even blocks are sent in the fourth cycle, until all the data blocks are sent, and then the cross selection of the next data frame is performed. When the total number of serial channels supported by the system is 5, the data length that can be transmitted in one clock cycle is 1/4 of the data block length. At this time, the odd-even crossover strategy makes corresponding changes again, adjacent data blocks are cross-transmitted, and the data bits within every 4 bits of each data block are also cross-transmitted, such as sending the 0th and 4th bits of the odd-numbered block in the first cycle , 8, 12, and 16 bits, the second cycle sends the 0, 4, 8, 12, and 16 bits of the even block, and the third cycle sends the 1, 5, 9, 13, and 17 bits of the odd block, and the process continues Until all the data blocks are sent, the cross selection of the next data frame is performed.

下面结合附图,对本发明的实施例五进行说明。Embodiment 5 of the present invention will be described below with reference to the accompanying drawings.

本发明实施例提供了一种串行总线数据传输装置,其结构如图5所示,包括:An embodiment of the present invention provides a serial bus data transmission device, the structure of which is shown in Figure 5, including:

象限划分模块501,用于为多个串行通道中的各串行通道分配象限值和位偏移量值,同一象限值对应的多个串行通道构成象限,象限值相同的不同串行通道的位偏移量值不同;Quadrant division module 501, is used for distributing quadrant value and bit offset value for each serial channel in a plurality of serial channels, multiple serial channels corresponding to the same quadrant value form a quadrant, the same quadrant value is different The bit offset values of the serial channels are different;

物理链路匹配模块502,用于根据各串行通道的象限值和位偏移量值,进行位编码,将各串行通道匹配到对应物理链路,相邻的串行通道匹配至不相邻的物理链路;The physical link matching module 502 is used to perform bit encoding according to the quadrant value and the bit offset value of each serial channel, to match each serial channel to a corresponding physical link, and to match adjacent serial channels to different Adjacent physical links;

数据传输模块503,用于通过匹配后的串行通道传输数据。The data transmission module 503 is configured to transmit data through the matched serial channel.

优选的,所述数据传输模块503的结构如图6所示,包括:Preferably, the structure of the data transmission module 503 is as shown in Figure 6, including:

数据块划分单元5031,用于将待传输的数据帧划分成数据块,为各数据块编号;A data block division unit 5031, configured to divide the data frame to be transmitted into data blocks, and number each data block;

数据块发送单元5032,用于交叉发送编号为奇数的数据块和编号为偶数的数据块,将所述数据块的各位交叉均匀分布到各个串行通道上传输,所述数据块的位数等于串行通道数。The data block sending unit 5032 is used to cross-send odd-numbered data blocks and even-numbered data blocks, and evenly distribute each bit of the data block to each serial channel for transmission, and the number of bits of the data block is equal to Number of serial channels.

优选的,所述数据块划分单元5031,还用于当一个或多个串行通道出现不可修复性错误时,根据当前正常工作的串行通道数量调整数据块大小。Preferably, the data block division unit 5031 is further configured to adjust the size of the data block according to the number of currently working serial channels when an unrecoverable error occurs in one or more serial channels.

本发明实施例提供的一种串行总线数据传输装置,能够与本发明的实施例提供的一种串行总线数据传输方法相结合,为多个串行通道中的各串行通道分配象限值和位偏移量值,同一象限值对应的多个串行通道构成象限,象限值相同的不同串行通道的位偏移量值不同,根据各串行通道的象限值和位偏移量值,进行位编码,将各串行通道匹配到对应物理链路,相邻的串行通道匹配至不相邻的物理链路,通过匹配后的串行通道传输数据,相邻串行通道匹配至不同的物理链路,减少了相邻物理链路间的串扰,解决了串扰影响数据传输的问题。A serial bus data transmission device provided by an embodiment of the present invention can be combined with a serial bus data transmission method provided by an embodiment of the present invention to assign quadrants to each serial channel among multiple serial channels value and bit offset value, multiple serial channels corresponding to the same quadrant value form a quadrant, different serial channels with the same quadrant value have different bit offset values, according to the quadrant value and bit offset value of each serial channel Offset value, bit encoding, match each serial channel to the corresponding physical link, match adjacent serial channels to non-adjacent physical links, transmit data through the matched serial channel, and adjacent serial channels The upstream channels are matched to different physical links, which reduces the crosstalk between adjacent physical links and solves the problem that crosstalk affects data transmission.

本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps of the above-mentioned embodiments can be implemented using a computer program flow, the computer program can be stored in a computer-readable storage medium, and the computer program can be run on a corresponding hardware platform (such as system, device, device, device, etc.), and when executed, includes one or a combination of the steps of the method embodiment.

可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Optionally, all or part of the steps in the above embodiments can also be implemented using integrated circuits, and these steps can be fabricated into individual integrated circuit modules, or multiple modules or steps among them can be fabricated into a single integrated circuit module accomplish. As such, the present invention is not limited to any specific combination of hardware and software.

上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/functional modules/functional units in the above embodiments can be realized by general-purpose computing devices, and they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices.

上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When each device/functional module/functional unit in the above-mentioned embodiments is realized in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like.

任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求所述的保护范围为准。Any person familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present invention, and all should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope described in the claims.

Claims (9)

1. a serial bus data transmission method, is characterized in that, comprising:
For each serial-port in a plurality of serial-ports distributes quadrature and the biased value that moves, a plurality of serial-ports that same quadrature is corresponding form quadrant, the biased value difference of moving of the different serial-ports that quadrature is identical;
According to quadrature and the biased value that moves of each serial-port, carry out the position coding, adopt the position mixed method, according to best mixed mode, each serial-port is corresponded to physical link, adjacent serial-port is matched to non-conterminous physical link;
By the transmission of the serial-port after coupling data.
2. serial bus data transmission method according to claim 1, is characterized in that, the serial-port quantity that all quadrants comprises is identical.
3. serial bus data transmission method according to claim 1 and 2, it is characterized in that, when thering is 20 serial-ports, these 20 serial-ports are divided into to 4 quadrants, the quadrature of all quadrants is respectively 0,1,2 and 3, and the biased value that moves of 5 serial-ports in each quadrant is respectively 0,1,2,3 and 4.
4. serial bus data transmission method according to claim 3, is characterized in that, the described position coding that carries out matches corresponding physical link by each serial-port and is specially:
When the quadrature of serial-port is less than 2, according to following expression, determine the physical link numbering that this serial-port is corresponding:
The largest serial port number that physical link numbering N=(system is supported/4) * (1+ quadrature)-biased value-1 of moving;
When the quadrature of serial-port is more than or equal to 2, according to following expression, determine the physical link numbering that this serial-port is corresponding:
The largest serial port number that physical link numbering N=(system is supported/4) * (5+ quadrature)+biased value that moves.
5. serial bus data transmission method according to claim 1, is characterized in that, describedly by the serial-port transmission data after coupling, is specially:
Data frame dividing waiting for transmission is become to data block, is each data block numbering;
Intersect and send the data block that is numbered odd number and the data block that is numbered even number, everybody intersection of described data block is evenly distributed on each serial-port and transmits, the figure place of described data block equals the serial-port number.
6. serial bus data transmission method according to claim 5, is characterized in that, the method also comprises:
When the unrepairable mistake appears in one or more serial-ports, according to the serial-port quantity of current normal operation, adjust the data block size.
7. a serial bus data-transmission apparatus, is characterized in that, comprising:
Quadrant is divided module, is used to each serial-port in a plurality of serial-ports to distribute quadrature and the biased value that moves, and a plurality of serial-ports that same quadrature is corresponding form quadrant, the biased value difference of moving of the different serial-ports that quadrature is identical;
The physical link matching module, for quadrature and the biased value that moves according to each serial-port, carry out the position coding, adopt the position mixed method, according to best mixed mode, each serial-port is corresponded to physical link, adjacent serial-port is matched to non-conterminous physical link;
Data transmission module, for the transmission of the serial-port by after coupling data.
8. serial bus data-transmission apparatus according to claim 7, is characterized in that, described data transmission module comprises:
The data block division unit, for data frame dividing waiting for transmission is become to data block, is each data block numbering;
The data block transmitting element, send the data block that is numbered odd number and the data block that is numbered even number for intersecting, and everybody intersection of described data block is evenly distributed on each serial-port and transmits, and the figure place of described data block equals the serial-port number.
9. serial bus data-transmission apparatus according to claim 8, is characterized in that,
Described data block division unit, also for when the unrepairable mistake appears in one or more serial-ports, adjust the data block size according to the serial-port quantity of current normal operation.
CN201110093315.1A 2011-04-14 2011-04-14 Serial bus data transmission method and device Active CN102164024B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110093315.1A CN102164024B (en) 2011-04-14 2011-04-14 Serial bus data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110093315.1A CN102164024B (en) 2011-04-14 2011-04-14 Serial bus data transmission method and device

Publications (2)

Publication Number Publication Date
CN102164024A CN102164024A (en) 2011-08-24
CN102164024B true CN102164024B (en) 2014-01-08

Family

ID=44465017

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110093315.1A Active CN102164024B (en) 2011-04-14 2011-04-14 Serial bus data transmission method and device

Country Status (1)

Country Link
CN (1) CN102164024B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015006983A1 (en) * 2013-07-19 2015-01-22 华为技术有限公司 Method and apparatus for reducing crosstalk cost
CN109710552B (en) * 2018-12-29 2021-01-15 深圳市联影医疗数据服务有限公司 Bus transmission quality evaluation method, system and computer storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150555A (en) * 2006-09-22 2008-03-26 华为技术有限公司 Coding method and device and decoding method and device
CN101442354A (en) * 2007-11-21 2009-05-27 中兴通讯股份有限公司 Transmission and receive method, transmitter and receiver
CN101778389A (en) * 2010-01-29 2010-07-14 华为技术有限公司 Multi-system type data processing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150555A (en) * 2006-09-22 2008-03-26 华为技术有限公司 Coding method and device and decoding method and device
CN101442354A (en) * 2007-11-21 2009-05-27 中兴通讯股份有限公司 Transmission and receive method, transmitter and receiver
CN101778389A (en) * 2010-01-29 2010-07-14 华为技术有限公司 Multi-system type data processing method and device

Also Published As

Publication number Publication date
CN102164024A (en) 2011-08-24

Similar Documents

Publication Publication Date Title
CN103034605B (en) Realize the method and device of variable-width link
CN102144223B (en) Flexible and expandable memory architectures
CN102142987B (en) A high-speed serial bus device and its data transmission method
US20140026021A1 (en) Cyclic redundancy check generation via distributed time multiplexed linear feedback shift registers
JP6069897B2 (en) Data transmission apparatus and data transmission method
US8738990B2 (en) Cyclic redundancy check generation via distributed time multiplexed linear feedback shift registers
CN104052588B (en) For the method to realize the precise time stamp by IEEE1588 using the system of FEC encoder
CN107430577A (en) Utilize the low-power and low latency device enumeration of Descartes&#39;s addressing
CN102164024B (en) Serial bus data transmission method and device
CN104243083A (en) Data mapping method, device and electronic equipment thereof
WO2007075106A1 (en) Fast low-density parity-check code encoder
CN106209307A (en) Interconnected method and system between many FPGA sheets
CN102904807A (en) A method for implementing fault-tolerant reconfigurable network-on-chip through data segmentation and transmission
Salazar-García et al. PlasticNet: A low latency flexible network architecture for interconnected multi-FPGA systems
CN104009823A (en) A dislocation detection and error correction circuit in SerDes technology
CN101557275A (en) Method and device for fluid controller information transfer in interconnection application
US20140129909A1 (en) Switchable per-lane bit error count
CN117687852B (en) An automatic calibration method for single-ended transmission links based on FPGA
CN104063349B (en) System middle back plate and method for realizing data transmission
TWI805731B (en) Multi-lane data processing circuit and system
CN111651311B (en) A configurable physical layer error generation device, chip and equipment
CN102006084A (en) CRC (Cyclic Redundancy Check) coding method suitable for OFDM-UWB (Orthogonal Frequency Division Multiplexing- Ultra Wideband) system
CN109150198A (en) A kind of interleaving treatment method and device of polarization code
CN202957831U (en) High speed communication back plate cpsb
CN114518781A (en) Dual-mode adjustable high-precision baud rate clock generator and frequency division method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201113

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Patentee after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 100085 Beijing, Haidian District on the road to information on the ground floor, building 2-1, No. 1, C

Patentee before: Inspur (Beijing) Electronic Information Industry Co.,Ltd.

TR01 Transfer of patent right