Movatterモバイル変換


[0]ホーム

URL:


CN115967658A - CCIX signal testing method, device and medium - Google Patents

CCIX signal testing method, device and medium
Download PDF

Info

Publication number
CN115967658A
CN115967658ACN202211665704.1ACN202211665704ACN115967658ACN 115967658 ACN115967658 ACN 115967658ACN 202211665704 ACN202211665704 ACN 202211665704ACN 115967658 ACN115967658 ACN 115967658A
Authority
CN
China
Prior art keywords
ccix
data
signal
sending end
receiving end
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.)
Pending
Application number
CN202211665704.1A
Other languages
Chinese (zh)
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.)
Inspur Shandong Computer Technology Co Ltd
Original Assignee
Inspur Shandong Computer Technology 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 Shandong Computer Technology Co LtdfiledCriticalInspur Shandong Computer Technology Co Ltd
Priority to CN202211665704.1ApriorityCriticalpatent/CN115967658A/en
Publication of CN115967658ApublicationCriticalpatent/CN115967658A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Landscapes

Abstract

Translated fromChinese

本申请公开一种CCIX信号测试方法、装置及其介质,涉及服务器通信技术领域,用于检测CPU间的CCIX信号质量,针对目前使用差分探头点测方法所带来的问题,提供一种CCIX信号测试方法,通过回环寄存器将随机生成的码流由发送端回环至接收端,进而比较从发送端发出的数据与从接收端接收到的数据的异同,如果比较出的数据差异较大,说明该CPU的发送端或接收端的CCIX信号质量不高。本申请不依靠示波器、差分探头等物理检测设备,因此也不必在主板上预留测试点、不会破坏主板表层,更不会因为差分探头无法点到测试的最终端而带来较大的误差,使得CCIX信号测试更加方便和节省成本,且评估准确性较高。

Figure 202211665704

The application discloses a CCIX signal testing method, device and its medium, which relate to the technical field of server communication and are used to detect the quality of CCIX signals between CPUs. Aiming at the problems caused by the current differential probe point measurement method, a CCIX signal is provided The test method is to loop back the randomly generated code stream from the sending end to the receiving end through the loopback register, and then compare the similarities and differences between the data sent from the sending end and the data received from the receiving end. If the compared data differs greatly, it means that the The quality of the CCIX signal on the sending or receiving side of the CPU is not high. This application does not rely on oscilloscopes, differential probes and other physical testing equipment, so there is no need to reserve test points on the main board, the surface of the main board will not be damaged, and it will not cause large errors because the differential probe cannot point to the end of the test. , making the CCIX signal test more convenient and cost-saving, and the evaluation accuracy is higher.

Figure 202211665704

Description

Translated fromChinese
一种CCIX信号测试方法、装置及其介质A CCIX signal test method, device and medium thereof

技术领域technical field

本申请涉及服务器通信技术领域,特别是涉及一种CCIX信号测试方法、装置及其介质。The present application relates to the technical field of server communication, in particular to a CCIX signal testing method, device and medium thereof.

背景技术Background technique

缓存一致性的加速器互联,即CCIX,是一种能够将两个或两个以上器件通过缓存一致性的方式来共享数据的片间互联方式,在目前的机器学习和大数据应用的数据处理逐渐被广泛的应用,通过片外加速器的定制,传统处理器从计算到网络的应用都得到了增强,目前很多双路中央处理器(Central Processing Unit,CPU)服务器正是应用CCIX作为CPU之间互联通信的。CCIX是基于PCIe(peripheral component interconnect express,PCI-Express,一种高速串行计算机扩展总线标准)物理层进行扩展,速率可达到25GT/S(千兆传输/秒),因此CCIX信号测试是必要且有难度的。Cache-coherent accelerator interconnection, or CCIX, is an inter-chip interconnection method that enables two or more devices to share data through cache coherence. In the current data processing of machine learning and big data applications, data processing is gradually It is widely used. Through the customization of off-chip accelerators, traditional processors have been enhanced from computing to network applications. At present, many dual-way central processing unit (Central Processing Unit, CPU) servers are using CCIX as the interconnection between CPUs. communication. CCIX is extended based on the physical layer of PCIe (peripheral component interconnect express, PCI-Express, a high-speed serial computer expansion bus standard), and the rate can reach 25GT/S (gigabit transmission/second), so CCIX signal testing is necessary and challenging.

目前,对于CCIX的信号测试通常是在CCIX信号接收端用合适带宽的差分探头进行点测的方式实现。但是这种方式有如下缺点:1、差分探头点测时需要刮开主板表层绿油,容易对主板造成损坏;2、如果信号过孔有背钻或者没有从表层、底层走线,没有测试点可测;3、CCIX信号在接收端通常会有均衡设计,点测并不能点到最终端,测试误差大;4、CCIX信号速率较高,需要高带宽的示波器与探头,价格昂贵。At present, the signal test for CCIX is usually implemented by using a differential probe with a suitable bandwidth at the receiving end of the CCIX signal to perform spot testing. However, this method has the following disadvantages: 1. It is necessary to scrape off the green oil on the surface of the main board when the differential probe is measured, which is easy to cause damage to the main board; 2. If the signal via has a back drill or does not route from the surface or the bottom layer, there is no test point Measurable; 3. CCIX signals usually have an equalization design at the receiving end, and the point test cannot reach the end point, and the test error is large; 4. The CCIX signal rate is high, requiring high-bandwidth oscilloscopes and probes, which are expensive.

所以,现在本领域的技术人员亟需要一种CCIX信号测试方法,解决目前常使用差分探头点测方法所带来的问题。Therefore, those skilled in the art urgently need a CCIX signal testing method to solve the problems caused by the current differential probe point testing method.

发明内容Contents of the invention

本申请的目的是提供一种CCIX信号测试方法、装置及其介质,以解决目前常使用差分探头点测方法所带来的问题。The purpose of this application is to provide a CCIX signal testing method, device and its medium, so as to solve the problems caused by the commonly used differential probe spot testing method at present.

为解决上述技术问题,本申请提供一种CCIX信号测试方法,包括:In order to solve the above technical problems, the application provides a CCIX signal testing method, including:

进行CCIX初始化,以建立CCIX连接;Perform CCIX initialization to establish a CCIX connection;

待CCIX连接建立后,通过发送端输出随机码流;After the CCIX connection is established, output a random code stream through the sender;

通过回环寄存器将发送端输出的所述随机码流回环至接收端;looping back the random code stream output by the sending end to the receiving end through the loopback register;

比较接收端接收到的数据与发送端输出的数据以确定CCIX信号质量。Compare the data received by the receiver with the data output by the transmitter to determine the CCIX signal quality.

优选的,所述比较接收端接收到的数据与发送端输出的数据以确定CCIX信号质量包括:Preferably, said comparing the data received by the receiving end with the data output by the sending end to determine the CCIX signal quality includes:

比较接收端接收到的数据与发送端输出的数据,以确定误码率;Compare the data received by the receiving end with the data output by the sending end to determine the bit error rate;

根据所述误码率确定所述CCIX信号质量。Determine the CCIX signal quality according to the bit error rate.

优选的,所述通过发送端输出随机码流包括:Preferably, said outputting the random code stream through the sending end includes:

基于不同相位的时钟信号,分别通过发送端输出所述随机码流;Outputting the random code streams through the sending end respectively based on clock signals of different phases;

相应的,所述比较接收端接收到的数据与发送端输出的数据,以确定误码率包括:Correspondingly, comparing the data received by the receiving end with the data output by the sending end to determine the bit error rate includes:

比较在相位不同的时钟信号下,接收端接收到的数据与发送端输出的数据,以确定多组所述误码率。Comparing the data received by the receiving end with the data output by the sending end under clock signals with different phases, so as to determine multiple sets of bit error rates.

优选的,所述通过发送端输出随机码流还包括:Preferably, the outputting the random code stream through the sending end also includes:

基于不同的参考电压,分别通过发送端输出所述随机码流;Based on different reference voltages, respectively outputting the random code stream through the sending end;

相应的,所述比较接收端接收到的数据与发送端输出的数据,以确定误码率包括:Correspondingly, comparing the data received by the receiving end with the data output by the sending end to determine the bit error rate includes:

比较在不同的参考电压下,接收端接收到的数据与发送端输出的数据,以确定多组所述误码率。Comparing the data received by the receiving end with the data output by the sending end under different reference voltages, so as to determine multiple sets of bit error rates.

优选的,所述根据所述误码率确定所述CCIX信号质量包括:Preferably, said determining said CCIX signal quality according to said bit error rate comprises:

根据不同相位的时钟信号以及不同参考电压下得到的各组所述误码率,以相位作为横坐标、以参考电压值为纵坐标,建立二维眼图;According to the clock signals of different phases and the bit error rates of each group obtained under different reference voltages, using the phase as the abscissa and the reference voltage as the ordinate, a two-dimensional eye diagram is established;

根据所述二维眼图确定所述CCIX信号质量。Determining the CCIX signal quality according to the two-dimensional eye diagram.

优选的,所述根据所述二维眼图确定所述CCIX信号质量包括:Preferably, the determining the CCIX signal quality according to the two-dimensional eye diagram includes:

以所述二维眼图中,横坐标连续误码率为零的最大数量作为眼宽、纵坐标连续误码率为零的最大数量作为眼高,根据所述眼高和眼宽确定所述CCIX信号质量。In the two-dimensional eye diagram, the maximum number of zero continuous bit error rates on the abscissa is used as the eye width, and the maximum number of zero continuous bit error rates on the ordinate is used as the eye height, and the described eye height and eye width are determined according to the eye height. CCIX signal quality.

优选的,所述随机码流为PRBS码型的随机码流;Preferably, the random code stream is a random code stream of a PRBS pattern;

相应的,所述比较接收端接收到的数据与发送端输出的数据以确定CCIX信号质量包括:Correspondingly, said comparing the data received by the receiving end with the data output by the sending end to determine the CCIX signal quality includes:

通过所述随机码流的最长连零或最长连一,确定发送端输出的数据与接收端接收的数据的数据位置对应关系,比较各位置对应的数据以确定所述CCIX信号质量。Through the longest consecutive zeros or the longest consecutive ones of the random code stream, determine the data position correspondence between the data output by the sending end and the data received by the receiving end, and compare the data corresponding to each position to determine the CCIX signal quality.

为解决上述技术问题,本申请还提供一种CCIX信号测试装置,包括:In order to solve the above technical problems, the application also provides a CCIX signal testing device, including:

初始化模块,用于进行CCIX初始化,以建立CCIX连接;The initialization module is used for CCIX initialization to establish a CCIX connection;

数据发送模块,用于待CCIX连接建立后,通过发送端输出随机码流;The data sending module is used to output a random code stream through the sending end after the CCIX connection is established;

回环测试模块,用于通过回环寄存器将发送端输出的所述随机码流回环至接收端;The loopback test module is used to loop back the random code stream output by the sending end to the receiving end through the loopback register;

结果确定模块,用于比较接收端接收到的数据与发送端输出的数据以确定CCIX信号质量。The result determining module is used for comparing the data received by the receiving end with the data output by the sending end to determine the CCIX signal quality.

优选的,所述结果确定模块具体又用于:比较接收端接收到的数据与发送端输出的数据,以确定误码率;根据所述误码率确定所述CCIX信号质量。Preferably, the result determining module is further configured to: compare the data received by the receiving end with the data output by the sending end to determine a bit error rate; determine the CCIX signal quality according to the bit error rate.

优选的,所述数据发送模块具体又用于:基于不同相位的时钟信号,分别通过发送端输出所述随机码流;Preferably, the data sending module is further configured to: output the random code stream through the sending end respectively based on clock signals of different phases;

对应的,所述结果确定模块又用于:比较在相位不同的时钟信号下,接收端接收到的数据与发送端输出的数据,以确定多组所述误码率。Correspondingly, the result determining module is further configured to: compare the data received by the receiving end with the data output by the sending end under clock signals with different phases, so as to determine multiple sets of bit error rates.

优选的,所述数据发送模块具体又用于:基于不同的参考电压,分别通过发送端输出所述随机码流;Preferably, the data sending module is further configured to: output the random code stream through the sending end respectively based on different reference voltages;

对应的,所述结果确定模块又用于:比较在不同的参考电压下,接收端接收到的数据与发送端输出的数据,以确定多组所述误码率。Correspondingly, the result determining module is further configured to: compare the data received by the receiving end with the data output by the sending end under different reference voltages, so as to determine multiple sets of bit error rates.

优选的,所述结果确定模块又用于:根据不同相位的时钟信号以及不同参考电压下得到的各组所述误码率,以相位作为横坐标、以参考电压值为纵坐标,建立二维眼图;根据所述二维眼图确定所述CCIX信号质量。Preferably, the result determination module is further configured to: according to the clock signals of different phases and the bit error rates of each group obtained under different reference voltages, use the phase as the abscissa and the reference voltage as the ordinate to establish a two-dimensional an eye diagram; determining the CCIX signal quality according to the two-dimensional eye diagram.

优选的,所述结果确定模块又用于:以所述二维眼图中,横坐标连续误码率为零的最大数量作为眼宽、纵坐标连续误码率为零的最大数量作为眼高,根据所述眼高和眼宽确定所述CCIX信号质量。Preferably, the result determination module is further used to: use the maximum number of zero continuous bit error rates on the abscissa as the eye width, and the maximum number of zero continuous bit error rates on the ordinate as the eye height in the two-dimensional eye diagram , determining the CCIX signal quality according to the eye height and eye width.

优选的,当所述随机码流为PRBS码型的随机码流时,所述结果确定模块又用于:通过所述随机码流的最长连零或最长连一,确定发送端输出的数据与接收端接收的数据的数据位置对应关系,比较各位置对应的数据以确定所述CCIX信号质量。Preferably, when the random code stream is a random code stream of the PRBS pattern, the result determination module is further used to: determine the output of the sending end through the longest continuous zero or the longest continuous one of the random code stream The corresponding relationship between the data and the data positions of the data received by the receiving end, and comparing the data corresponding to each position to determine the quality of the CCIX signal.

为解决上述技术问题,本申请还提供一种CCIX信号测试装置,包括:In order to solve the above technical problems, the application also provides a CCIX signal testing device, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序时实现如上述所述的CCIX信号测试方法的步骤。The processor is configured to realize the steps of the above-mentioned CCIX signal testing method when executing the computer program.

为解决上述技术问题,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述所述的CCIX信号测试方法的步骤。In order to solve the above-mentioned technical problems, the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the CCIX signal testing method as described above is realized A step of.

本申请提供的一种CCIX信号测试方法,通过回环寄存器将随机生成的码流由发送端回环至接收端,进而比较从发送端发出的数据与从接收端接收到的数据的异同,如果比较出的数据差异较大,说明该CPU的发送端或接收端的CCIX信号质量不高。进一步的,对进行CCIX连接的两个CPU都进行是上述方法的CCIX信号测试之后,即可确定该组CPU的CCIX通信链路的信号质量。本申请所提供的CCIX信号测试方法为一种由软件形式实现CCIX信号测试的方法,不依靠示波器、差分探头等物理检测设备,因此也不必在主板上预留测试点、不会破坏主板表层,更不会因为差分探头无法点到测试的最终端而带来较大的误差,使得CCIX信号测试更加方便和节省成本,且评估准确性较高。A CCIX signal testing method provided by this application uses the loopback register to loop back the randomly generated code stream from the sending end to the receiving end, and then compares the similarities and differences between the data sent from the sending end and the data received from the receiving end. The difference in the data is large, indicating that the quality of the CCIX signal at the sending end or receiving end of the CPU is not high. Further, after the CCIX signal test of the above-mentioned method is performed on the two CPUs connected with the CCIX, the signal quality of the CCIX communication link of the group of CPUs can be determined. The CCIX signal test method provided by this application is a method for realizing CCIX signal test in the form of software, without relying on physical testing equipment such as oscilloscopes and differential probes, so there is no need to reserve test points on the main board, and the surface of the main board will not be damaged. There will be no large error caused by the failure of the differential probe to reach the end of the test, making CCIX signal testing more convenient and cost-effective, and the evaluation accuracy is higher.

本申请提供的CCIX信号测试装置、及计算机可读存储介质,与上述方法对应,效果同上。The CCIX signal testing device and the computer-readable storage medium provided by the present application correspond to the above-mentioned method, and the effect is the same as above.

附图说明Description of drawings

为了更清楚地说明本申请实施例,下面将对实施例中所需要使用的附图做简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the embodiments of the present application more clearly, the following will briefly introduce the accompanying drawings used in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. As far as people are concerned, other drawings can also be obtained based on these drawings on the premise of not paying creative work.

图1为本发明提供的一种CCIX信号测试方法的流程图;Fig. 1 is the flowchart of a kind of CCIX signal test method provided by the invention;

图2为本发明提供的一种CCIX信号测试装置的结构图;Fig. 2 is the structural diagram of a kind of CCIX signal testing device provided by the present invention;

图3为本发明提供的另一种CCIX信号测试装置的结构图。FIG. 3 is a structural diagram of another CCIX signal testing device provided by the present invention.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下,所获得的所有其他实施例,都属于本申请保护范围。The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of this application.

本申请的核心是提供一种CCIX信号测试方法、装置及其介质。The core of the application is to provide a CCIX signal testing method, device and medium thereof.

为了使本技术领域的人员更好地理解本申请方案,下面结合附图和具体实施方式对本申请作进一步的详细说明。In order to enable those skilled in the art to better understand the solution of the present application, the present application will be further described in detail below in conjunction with the drawings and specific implementation methods.

在现有的通过差分探头进行CCIX信号质量检测时,针对互联CPU之间的两条CCIX通信链路(即CPU1的发送端到CPU2的接收端,以及CPU2的发送端到CPU1的接收端),分别对各CCIX通信链路的接收端选用合适带宽的差分探头进行点测,通常基于波形信号进行分析。In the existing CCIX signal quality detection through differential probes, for the two CCIX communication links between the interconnected CPUs (that is, the sending end of CPU1 to the receiving end of CPU2, and the sending end of CPU2 to the receiving end of CPU1), Select a differential probe with a suitable bandwidth for point measurement at the receiving end of each CCIX communication link, and usually analyze based on the waveform signal.

但这种依赖物理硬件实现的形式不可避免的也会带来一些硬件测试通常会带来的问题:But this form of relying on physical hardware implementation will inevitably bring some problems that hardware testing usually brings:

差分探头由于需要直接和接收端接触,点测时需要刮开主板表层绿油,容易对主板造成损坏;且若主板信号过孔有背钻或者没有从表层或底层走线,则主板表面无测试点可进行差分探头的点测;在进行COU间的数据通信时,通常会对数据信号进行一定处理,例如为降低信号传输时的损耗,对在发送时的信号进行加压处理,到接收端之后再由接收端CPU均衡处理获得原信号,这就导致差分探头检测到的通信间传输的CCIX信号是经过处理的信号,误差较大,相应的准确性也无法保证;由于CCIX信号的速率较高,这对进行检测的硬件设备(示波器和差分探头)提出了一定要求,上述硬件设备中高带宽的种类价格较为昂贵,不易实施。Since the differential probe needs to be in direct contact with the receiving end, it is necessary to scrape off the green oil on the surface of the main board during point measurement, which is easy to cause damage to the main board; and if the signal via hole of the main board is back drilled or is not routed from the surface or bottom layer, there is no test on the main board surface Differential probe points can be used for point measurement; when data communication between COUs is performed, the data signal is usually processed to a certain extent, for example, in order to reduce the loss during signal transmission, the signal is pressurized during transmission, and then sent to the receiving end Afterwards, the original signal is obtained by equalization processing by the CPU at the receiving end, which causes the CCIX signal transmitted between the communications detected by the differential probe to be a processed signal, with large errors, and the corresponding accuracy cannot be guaranteed; because the rate of the CCIX signal is relatively high High, which puts forward certain requirements for the detection hardware equipment (oscilloscope and differential probe). Among the above-mentioned hardware equipment, the high-bandwidth types are relatively expensive and difficult to implement.

为解决上述问题,本申请提供一种CCIX信号测试方法,如图1所示,包括:In order to solve the above problems, the application provides a CCIX signal test method, as shown in Figure 1, including:

S11:进行CCIX初始化,以建立CCIX连接。S11: Perform CCIX initialization to establish a CCIX connection.

在实际应用中,CCIX初始化通常在进行预先配置后,在服务器的基本输入输出系统(Basic Input Output System,BIOS)实现。In practical applications, CCIX initialization is usually implemented in the server's Basic Input Output System (BIOS) after pre-configuration.

S12:待CCIX连接建立后,通过发送端输出随机码流。S12: After the CCIX connection is established, output a random code stream through the sending end.

随机码流也即一种由通过生成器生成的随机码组成的数据流。对于随机码流所采用的码型,本实施例对此不做限制,可根据实际需要选择合适的随机码型作为随机码流,但本实施例提供一种具体的实施方式:随机码流的码型为伪随机码码型PRBS31。A random code stream is also a data stream composed of random codes generated by a generator. For the code pattern used by the random code stream, this embodiment does not limit it, and an appropriate random code pattern can be selected as the random code stream according to actual needs, but this embodiment provides a specific implementation mode: the random code stream The code pattern is pseudo-random code pattern PRBS31.

PRBS码型具有“随机”特性,具体的,二进制数“0”和“1”是随机出现的,具有随机特性,但这种随机码在码流生成函数与初始码确定后,码流的顺序也是固定的,且各个周期中的码流却是完全相同的,是一种局部的随机。The PRBS code pattern has "random" characteristics. Specifically, the binary numbers "0" and "1" appear randomly and have random characteristics. However, after the code stream generation function and the initial code are determined for this random code, the sequence of the code stream It is also fixed, and the code stream in each cycle is exactly the same, which is a kind of local randomness.

S13:通过回环寄存器将发送端输出的随机码流回环至接收端。S13: Loop back the random code stream output by the sending end to the receiving end through the loopback register.

回环寄存器也即用于进行回环测试(又称环回测试)的寄存器,回环测试即一种从通讯设备发出的信号又返回(环回)到原处,决定设备是否正常运行或是确定网络中失效节点的测试方式。The loopback register is also the register used for the loopback test (also known as the loopback test). The loopback test is a signal sent from the communication device and returns (loopback) to the original place to determine whether the device is operating normally or to determine whether the device is running normally. How to test failed nodes.

S14:比较接收端接收到的数据与发送端输出的数据以确定CCIX信号质量。S14: Compare the data received by the receiving end with the data output by the sending end to determine the CCIX signal quality.

同样的,对于发送的数据与回环回来的数据进行的比较同样可由寄存器完成,称为比较寄存器,比较寄存器用于将回环寄存器回环的数据与发送端的数据做对比,将对比结果存储起来作为一组测试结果,进而根据比较得到的测试结果确定CCIX信号质量。Similarly, the comparison between the sent data and the loopback data can also be done by a register, which is called a comparison register. The comparison register is used to compare the loopback data of the loopback register with the data of the sending end, and store the comparison results as a set Test results, and then determine the CCIX signal quality based on the compared test results.

容易理解的是,上述的CCIX信号质量测试由于是通过回环的方式实现,所以每次测试都是针对一个CPU实现的,即一个CPU的发送端回环到接收端,与现有的两CPU间的两条链路分别测试的方式略有差异,但同样也仅需对两个CPU分别进行一次CCIX信号质量测试即可。It is easy to understand that the above-mentioned CCIX signal quality test is implemented through loopback, so each test is implemented for one CPU, that is, the sending end of one CPU loops back to the receiving end, and the existing two CPUs. The methods of testing the two links are slightly different, but it is also only necessary to perform a CCIX signal quality test on the two CPUs.

此外,对于上述以软件回环的形式进行的CCIX信号质量测试方法,在理想情况下,发送端发送的数据回环至接收端后应无变化,也即未在传输过程中出现数据失真、丢失等通信问题,此时比较寄存器比较得到的结果应为接收端接收的数据和发送端发送的数据完全一致。因此,通过接收端接收的数据与发送端发送的数据的差异大小,可以确定该CPU的CCIX信号质量,差异越小质量越好。In addition, for the above-mentioned CCIX signal quality test method in the form of software loopback, ideally, the data sent by the sending end should not change after being looped back to the receiving end, that is, there should be no data distortion or loss during transmission. Problem, at this time, the result of the comparison register comparison should be that the data received by the receiving end is exactly the same as the data sent by the sending end. Therefore, the CCIX signal quality of the CPU can be determined by the difference between the data received by the receiving end and the data sent by the sending end, and the smaller the difference, the better the quality.

基于此,本实施例提供一种优选实施方案,上述步骤S14:比较接收端接收到的数据与发送端输出的数据以确定CCIX信号质量具体又为:Based on this, the present embodiment provides a preferred implementation scheme, the above step S14: comparing the data received by the receiving end with the data output by the sending end to determine the quality of the CCIX signal is specifically:

比较接收端接收到的数据与发送端输出的数据,以确定误码率;Compare the data received by the receiving end with the data output by the sending end to determine the bit error rate;

根据误码率确定CCIX信号质量。Determine CCIX signal quality based on bit error rate.

误码率也即不同数据与全部数据的数据量比值,反映出现错误的数据位的多少,因此可以用于作为确定CCIX信号质量判断的标准。The bit error rate is also the data volume ratio of different data to all data, which reflects the number of erroneous data bits, so it can be used as a standard for determining the quality of CCIX signals.

此外,对于发送数据与接收数据的比较,是要比较随机码流中的同位数据是否一致,从而得到比较结果确定CCIX信号质量。而对于如何确定发送数据和接收数据的相同数据位,本实施例对此不做限制,考虑到现有生成的随机码多为一种伪随机码,例如上述的PRBS码型,单一周期内的数据随机,但不同周期的数据完全一样,所以进行比较时可确定相同周期或不同周期的同一位置进行比较。又或者,针对PRBS码型这种码流中具有最长连1以及最长连0特性的码型,也可通过最长连1或最长连0来确定相同数据位。通过最长连1或最长连0对发送数据和接收数据进行相同比较位的定位相比周期的方式要更容易实现,对硬件的要求也更低。In addition, for the comparison of the sent data and the received data, it is necessary to compare whether the same-bit data in the random code stream is consistent, so as to obtain the comparison result to determine the CCIX signal quality. As for how to determine the same data bits of the sent data and the received data, this embodiment does not limit this. Considering that most of the existing random codes generated are pseudo-random codes, such as the above-mentioned PRBS pattern, the The data is random, but the data of different periods are exactly the same, so when comparing, the same position of the same period or different periods can be determined for comparison. Or, for the PRBS code pattern, which has the characteristics of the longest consecutive 1s and the longest consecutive 0s in the code stream, the same data bit can also be determined by the longest consecutive 1s or the longest consecutive 0s. It is easier to implement the positioning of the sent data and the received data by using the longest continuous 1 or the longest continuous 0 to perform the same comparison bit compared with the periodic method, and the requirements for hardware are also lower.

最长连1以及最长连0也即在码流中连续出现1或连续出现0的最长位数。同样以PRBS31码型为例,PRBS31码型的码长为2^31-1=2147,483,647个比特(bit),属于长伪随机码型,码流中最长的连1为31个,最长的连0为30个。The longest consecutive 1s and the longest consecutive 0s are the longest number of consecutive 1s or consecutive 0s in the code stream. Also taking the PRBS31 code pattern as an example, the code length of the PRBS31 code pattern is 2^31-1=2147,483,647 bits (bit), which belongs to the long pseudo-random code pattern, and the longest continuous 1 in the code stream is 31. The long continuous 0 is 30.

本申请所提供的一种CCIX信号测试方法,通过将进行CCIX通信连接的其中一个CPU的接收端与发送端通过回环寄存器进行回环连接,使得该CPU发送的数据会被回环至接收端,用以检测该CPU发送端和接收端的通信质量。具体的,通过生成随机码作为待测数据,比较接收到的数据与发送的数据的一致性,从而判断该CPU的CCIX信号质量,再对另一CPU进行相同的测试,即可完成两CPU间的CCIX信号质量测试。本申请所提供的一种CCIX信号质量测试方法采用软件测试的方法,代替传统的硬件测试方式,也因此不会出现使用硬件测试时不可避免的一些问题,无需依靠示波器、探头等物理设备,不必在主板上预留测试点或破坏主板表层,更容易实施的同时也更符合实际需要。同时,这种方式由于是CPU在接受到数据后进行的比较,也不会因为均衡设计导致误差变大,准确率更高。A CCIX signal testing method provided by this application is to perform a loopback connection between the receiving end and the sending end of one of the CPUs connected by CCIX communication through the loopback register, so that the data sent by the CPU will be looped back to the receiving end for Detect the communication quality of the sending end and receiving end of the CPU. Specifically, by generating a random code as the data to be tested and comparing the consistency between the received data and the sent data, the quality of the CCIX signal of the CPU is judged, and then the same test is performed on the other CPU to complete the test between the two CPUs. The CCIX signal quality test. A CCIX signal quality test method provided by this application adopts a software test method instead of the traditional hardware test method, and therefore there will be no inevitable problems when using hardware test, and there is no need to rely on physical equipment such as oscilloscopes and probes. Reserving test points on the motherboard or destroying the surface of the motherboard is easier to implement and more in line with actual needs. At the same time, since this method is a comparison performed by the CPU after receiving the data, the error will not increase due to the equalization design, and the accuracy rate is higher.

此外,上述实施例提供一种比较发送数据与接收数据确定误码率,进而确定CCIX信号质量的方法,但二进制数据在实际通信传输中,是以方波信号进行传输的,对于方波信号转换成的二进制数字信号,时钟信号的相位和参考电压都会对信号传输的准确性造成一定影响,时钟信号相位的不同影响在取数字信号时具体是取方波信号的那一部分(例如是上升沿还是下降沿),参考电压的不同则影响着方波信号中具体取二进制“1”的电压范围、以及具体取二进制“0”的电压范围。In addition, the above embodiment provides a method for comparing the sent data and received data to determine the bit error rate, and then determine the quality of the CCIX signal. However, in actual communication transmission, binary data is transmitted with a square wave signal. For square wave signal conversion The binary digital signal, the phase of the clock signal and the reference voltage will have a certain impact on the accuracy of signal transmission. The different influence of the phase of the clock signal is to take the part of the square wave signal when taking the digital signal (such as rising edge or Falling edge), the difference of the reference voltage affects the specific voltage range of the binary “1” and the specific voltage range of the binary “0” in the square wave signal.

所以本实施例基于上述问题还提供一种优选方案,上述步骤S12发送随机码型时,进一步又有:Therefore, this embodiment also provides a preferred solution based on the above problems. When the above step S12 sends the random code pattern, further:

S121:基于不同相位的时钟信号,分别通过发送端输出随机码流。S121: Based on clock signals of different phases, output random code streams through the sending end respectively.

也即,在发送端发送数据时,基于不同相位的时钟信号,发送同一随机码型确定的随机码流,同时,在接收端接收到方波信号并将其转换回二进制数字信号时,也基于相同相位的时钟信号进行转换。。That is to say, when sending data at the sending end, based on clock signals of different phases, the random code stream determined by the same random pattern is sent. At the same time, when the receiving end receives the square wave signal and converts it back to a binary digital signal, Clock signals of the same phase are converted. .

相应的,比较接收端接收到的数据与发送端输出的数据,以确定误码率又包括:Correspondingly, comparing the data received by the receiving end with the data output by the sending end to determine the bit error rate includes:

比较在相位不同的时钟信号下,接收端接收到的数据与发送端输出的数据,以确定多组误码率。Compare the data received by the receiving end with the data output by the sending end under clock signals with different phases to determine the bit error rate of multiple groups.

上述确定的多组误码率是相同CPU在相同随机码流的情况下,仅基于不同相位的时钟信号得到的,每组误码率可根据获得的顺序命名为“横1、横2……”。比较寄存器存储上述误码率,作为后续确定CCIX信号质量的凭依。The multiple sets of bit error rates determined above are obtained only based on clock signals of different phases under the same random code stream of the same CPU, and each set of bit error rates can be named "horizontal 1, horizontal 2... ". The comparison register stores the above-mentioned bit error rate as a basis for subsequent determination of CCIX signal quality.

同理,基于不同的参考电压,也有:Similarly, based on different reference voltages, there are also:

S122:基于不同的参考电压,分别通过发送端输出随机码流。S122: Based on different reference voltages, output random code streams through the sending end respectively.

也即,在发送端发送数据时,基于不同的参考电压,发送同一随机码流对应的方波信号,同时,在接收端接收到方波信号并将其转换回二进制数字信号时,也基于相同的参考电压进行转换。That is, when sending data at the sending end, the square wave signal corresponding to the same random code stream is sent based on different reference voltages. At the same time, when the receiving end receives the square wave signal and converts it back to a binary digital signal, it also uses the same The reference voltage is converted.

相应的,比较接收端接收到的数据与发送端输出的数据,以确定误码率包括:Correspondingly, comparing the data received by the receiving end with the data output by the sending end to determine the bit error rate includes:

比较在不同的参考电压下,接收端接收到的数据与发送端输出的数据,以确定多组误码率。Under different reference voltages, the data received by the receiving end is compared with the data output by the sending end to determine the bit error rate of multiple groups.

与上述不同相位下获取的比较结果一样,本实施例基于不同参考电压的比较结果可命名为“纵1、纵2……”进行存储,作为后续确定CCIX信号质量的凭依。Similar to the above-mentioned comparison results obtained under different phases, the comparison results based on different reference voltages in this embodiment can be named as "Vertical 1, Vertical 2..." and stored as a basis for subsequent determination of CCIX signal quality.

需要说明的是,在上述基于不同相位时钟信号以及不同参考电压确定比较结果的实施例中,任一实施例相对于仅凭借单一相位和单一参考电压所确定的比较结果对于CCIX信号质量的确定都要有更高的准确性,但为了最大程度提高CCIX信号质量测试的准确性,优选上述不同相位和不同参考电压的实施例综合实施。It should be noted that, in the above-mentioned embodiments in which the comparison results are determined based on different phase clock signals and different reference voltages, compared with the comparison results determined by only relying on a single phase and a single reference voltage, any embodiment has a greater impact on CCIX signal quality determination. Higher accuracy is required, but in order to maximize the accuracy of the CCIX signal quality test, it is preferable to comprehensively implement the above embodiments with different phases and different reference voltages.

进一步的,在上述基于不同相位时钟信号以及不同参考电压综合对CPU的CCIX信号质量进行检测时,本实施例也提供一种综合确定信号质量的优选方案,步骤S14又具体为:Further, when the CCIX signal quality of the CPU is comprehensively detected based on different phase clock signals and different reference voltages, this embodiment also provides an optimal solution for comprehensively determining the signal quality, and step S14 is specifically:

S141:比较接收端接收到的数据与发送端输出的数据,以确定误码率。S141: Compare the data received by the receiving end with the data output by the sending end to determine a bit error rate.

容易知道的是,针对每一情况(不同相位、不同参考电压)都应确定出一个误码率,也即上述的“横1、横2……”以及“纵1、纵2……”。It is easy to know that a bit error rate should be determined for each situation (different phases, different reference voltages), that is, the above-mentioned "horizontal 1, horizontal 2..." and "vertical 1, vertical 2...".

S142:根据不同相位的时钟信号以及不同参考电压下得到的各组误码率,以相位作为横坐标、以参考电压值为纵坐标,建立二维眼图。S142: According to the clock signals of different phases and the bit error rates of each group obtained under different reference voltages, the phase is used as the abscissa, and the reference voltage is used as the ordinate to establish a two-dimensional eye diagram.

对上述步骤S141获取的比较结果“横1、横2……”以及“纵1、纵2……”叠加到同一张图中,以时钟信号的相位作为横坐标、以参考电压的电压值作为纵坐标,将对应的误码率标记在图中对应位置,建立一个二维眼图。The comparison results obtained in the above step S141 "horizontal 1, horizontal 2..." and "vertical 1, vertical 2..." are superimposed on the same graph, with the phase of the clock signal as the abscissa and the voltage value of the reference voltage as the ordinate , mark the corresponding bit error rate in the corresponding position in the figure, and establish a two-dimensional eye diagram.

S143:根据二维眼图确定CCIX信号质量。S143: Determine CCIX signal quality according to the two-dimensional eye diagram.

根据上述步骤S142所确定的二维眼图,可以直观地确定该CPU的CCIX通信链路在不同相位以及不同参考电压情况下的信号质量。具体的,在一种可能的实施方案中,上述标记误码率在图中对应位置中时,误码率为零的比较结果和误码率不为零的比较结果采用区别的标记区分,从而在生成二维眼图后,可以直接确定二维眼图的眼高和眼宽(眼宽即为横坐标中连续误码率为零的最大数量,眼高即为纵坐标中连续误码率为零的最大数量),眼高和眼宽反映了CPU在不用相位以及不同参考电压下的信号质量,进而综合确定出该CPU的CCIX信号质量,确定的结果更准确也更可靠。According to the two-dimensional eye diagram determined in step S142 above, the signal quality of the CCIX communication link of the CPU at different phases and different reference voltages can be visually determined. Specifically, in a possible implementation, when the bit error rate of the above mark is in the corresponding position in the figure, the comparison result with a bit error rate of zero and the comparison result with a bit error rate not zero are distinguished by different marks, so that After the two-dimensional eye diagram is generated, the eye height and eye width of the two-dimensional eye diagram can be directly determined (the eye width is the maximum number of consecutive BERs in the abscissa, and the eye height is the continuous BER in the ordinate The maximum number is zero), the eye height and eye width reflect the signal quality of the CPU under different phases and different reference voltages, and then comprehensively determine the CCIX signal quality of the CPU, and the determined results are more accurate and reliable.

与上述实施例同理,本实施例用于确定CCIX信号质量的二维眼图也是针对每一接收端生成的,在两路CPU的CCIX互联中,至少有两个接收端,每个接收端都应对应确定一个上述的二维眼图,以对整个CPU间CCIX通信进行通信质量的确定。Similar to the above embodiment, the two-dimensional eye diagram used to determine the CCIX signal quality in this embodiment is also generated for each receiving end. In the CCIX interconnection of two CPUs, there are at least two receiving ends, and each receiving end The above-mentioned two-dimensional eye diagram should be correspondingly determined to determine the communication quality of the entire inter-CPU CCIX communication.

还需要说明的是,一般而言,在生成二维眼图后,将二维眼图反馈给运维人员可直观地确定CCIX信号链路的通信质量。但对于已生成的二维眼图,通过软件程序的方式抓取二维眼图中的眼宽和眼高也是容易实现的,故也可通过软件抓取上述信号测试方法生成的各个二维眼图,进而根据预设的比较阈值进行比较,或对二维眼图的眼高和眼宽进行预设规则的综合量化,从而反馈一个更直观的数值或结果反映当前CCIX信号质量,无需人工观察二维眼图做出结论。It should also be noted that, generally speaking, after the two-dimensional eye diagram is generated, feeding back the two-dimensional eye diagram to the operation and maintenance personnel can intuitively determine the communication quality of the CCIX signal link. However, for the generated two-dimensional eye diagram, it is also easy to capture the eye width and eye height in the two-dimensional eye diagram through software programs, so it is also possible to capture each two-dimensional eye diagram generated by the above signal test method through software. Graph, and then compare according to the preset comparison threshold, or comprehensively quantify the eye height and eye width of the two-dimensional eye diagram with preset rules, so as to feed back a more intuitive value or result to reflect the current CCIX signal quality, without manual observation 2D eye diagrams to draw conclusions.

本实施例所提供的优选方案,综合考虑了CPU在进行数据通信时采取二进制的数字信号和方波信号转换的特点,确定影响CCIX信号质量的因素还有时钟相位以及参考电压的取值,故对上述因素取变量同样进行检测,综合得到不同情况下对应的误码率,进而生成二维眼图,根据这种二维眼图确定的CCIX信号质量考虑了更多样的情况,确定结果更准确的同时也更可靠,更好地满足了实际CCIX信号测试的需要。The optimal scheme provided by this embodiment comprehensively considers the characteristics that the CPU adopts binary digital signal and square wave signal conversion when performing data communication, and determines the factors affecting the quality of the CCIX signal as well as the value of the clock phase and the reference voltage, so The variables of the above factors are also detected, and the corresponding bit error rate in different situations is obtained comprehensively, and then a two-dimensional eye diagram is generated. The CCIX signal quality determined according to this two-dimensional eye diagram considers more various situations, and the determination result is more accurate. Accurate and more reliable at the same time, it better meets the needs of actual CCIX signal testing.

在上述实施例中,对于一种CCIX信号测试方法进行了详细描述,本申请还提供一种CCIX信号测试装置对应的实施例。需要说明的是,本申请从两个角度对装置部分的实施例进行描述,一种是基于功能模块的角度,另一种是基于硬件的角度。In the foregoing embodiments, a CCIX signal testing method is described in detail, and the present application also provides a corresponding embodiment of a CCIX signal testing device. It should be noted that this application describes the embodiments of the device part from two perspectives, one is based on the perspective of functional modules, and the other is based on the perspective of hardware.

基于功能模块的角度,如图2所示,本实施例提供一种CCIX信号测试装置,包括:Based on the perspective of functional modules, as shown in Figure 2, the present embodiment provides a CCIX signal testing device, including:

初始化模块21,用于进行CCIX初始化,以建立CCIX连接;Theinitialization module 21 is used for CCIX initialization to establish a CCIX connection;

数据发送模块22,用于待CCIX连接建立后,通过发送端输出随机码流;Thedata sending module 22 is used for outputting a random code stream through the sending end after the CCIX connection is established;

回环测试模块23,用于通过回环寄存器将发送端输出的随机码流回环至接收端;Theloopback test module 23 is used to loop back the random code stream output by the sending end to the receiving end through the loopback register;

结果确定模块24,用于比较接收端接收到的数据与发送端输出的数据以确定CCIX信号质量。Theresult determining module 24 is configured to compare the data received by the receiving end with the data output by the sending end to determine the CCIX signal quality.

优选的,结果确定模块24具体又用于:比较接收端接收到的数据与发送端输出的数据,以确定误码率;根据误码率确定CCIX信号质量。Preferably, theresult determination module 24 is specifically used to: compare the data received by the receiving end with the data output by the sending end to determine the bit error rate; determine the CCIX signal quality according to the bit error rate.

优选的,数据发送模块22具体又用于:基于不同相位的时钟信号,分别通过发送端输出随机码流;Preferably, thedata sending module 22 is specifically used to: output random code streams through the sending end respectively based on clock signals of different phases;

对应的,结果确定模块24又用于:比较在相位不同的时钟信号下,接收端接收到的数据与发送端输出的数据,以确定多组误码率。Correspondingly, theresult determining module 24 is further configured to: compare the data received by the receiving end with the data output by the sending end under clock signals with different phases, so as to determine multiple groups of bit error rates.

优选的,数据发送模块22具体又用于:基于不同的参考电压,分别通过发送端输出随机码流;Preferably, thedata sending module 22 is specifically used to: output random code streams through the sending end respectively based on different reference voltages;

对应的,结果确定模块24又用于:比较在不同的参考电压下,接收端接收到的数据与发送端输出的数据,以确定多组误码率。Correspondingly, theresult determining module 24 is further configured to: compare the data received by the receiving end with the data output by the sending end under different reference voltages, so as to determine multiple groups of bit error rates.

优选的,结果确定模块24又用于:根据不同相位的时钟信号以及不同参考电压下得到的各组误码率,以相位作为横坐标、以参考电压值为纵坐标,建立二维眼图;根据二维眼图确定CCIX信号质量。Preferably, theresult determination module 24 is further used to: establish a two-dimensional eye diagram according to clock signals of different phases and bit error rates obtained under different reference voltages, with the phase as the abscissa and the reference voltage as the ordinate; Determine CCIX signal quality based on 2D eye diagrams.

优选的,结果确定模块24又用于:以二维眼图中,横坐标连续误码率为零的最大数量作为眼宽、纵坐标连续误码率为零的最大数量作为眼高,根据眼高和眼宽确定CCIX信号质量。Preferably, theresult determination module 24 is used again: in the two-dimensional eye diagram, the maximum number of zero continuous bit error rates on the abscissa is used as the eye width, and the maximum number of zero continuous bit error rates on the ordinate is used as the eye height. Height and Eye Width determine CCIX signal quality.

优选的,当随机码流为PRBS码型的随机码流时,结果确定模块24又用于:通过随机码流的最长连零或最长连一,确定发送端输出的数据与接收端接收的数据的数据位置对应关系,比较各位置对应的数据以确定CCIX信号质量。Preferably, when the random code stream is the random code stream of the PRBS code pattern, theresult determination module 24 is used again: through the longest continuous zero or the longest continuous one of the random code stream, determine the data output by the sending end and the data received by the receiving end The corresponding relationship between the data positions of the data, and compare the data corresponding to each position to determine the CCIX signal quality.

由于装置部分的实施例与方法部分的实施例相互对应,因此装置部分的实施例请参见方法部分的实施例的描述,这里暂不赘述。Since the embodiment of the device part corresponds to the embodiment of the method part, please refer to the description of the embodiment of the method part for the embodiment of the device part, and details will not be repeated here.

本实施例所提供的一种CCIX信号测试装置,通过初始化模块建立CCIX通信连接,进而由回环测试模块将进行CCIX通信连接的其中一个CPU的接收端与发送端通过回环寄存器进行回环连接,使得由数据发送模块的数据会被回环至接收端,得以通过结果确定模块比对发送数据与接收数据,从而检测该CPU发送端和接收端的通信质量。具体的,通过生成随机码作为待测数据,比较接收到的数据与发送的数据的一致性,从而判断该CPU的CCIX信号质量,再对另一CPU进行相同的测试,即可完成两CPU间的CCIX信号质量测试。上述CCIX信号测试装置采用软件测试的方式代替传统的硬件测试方式,也因此不会出现使用硬件测试时不可避免的一些问题,无需依靠示波器、探头等物理设备,不必在主板上预留测试点或破坏主板表层,更容易实施的同时也更符合实际需要。同时,这种方式由于是CPU在接受到数据后进行的比较,也不会因为均衡设计导致误差变大,准确率更高。A kind of CCIX signal testing device provided by the present embodiment establishes the CCIX communication connection through the initialization module, and then the receiving end and the sending end of one of the CPUs that carry out the CCIX communication connection are carried out by the loopback register to carry out the loopback connection by the loopback test module, so that by The data of the data sending module will be looped back to the receiving end, and the result determination module can compare the sent data with the received data, so as to detect the communication quality of the CPU sending end and receiving end. Specifically, by generating a random code as the data to be tested and comparing the consistency between the received data and the sent data, the quality of the CCIX signal of the CPU is judged, and then the same test is performed on the other CPU to complete the test between the two CPUs. The CCIX signal quality test. The above-mentioned CCIX signal test device adopts the software test method instead of the traditional hardware test method, so there will be no inevitable problems when using hardware test, no need to rely on physical equipment such as oscilloscopes, probes, etc., and it is not necessary to reserve test points on the motherboard or Destroying the surface layer of the motherboard is easier to implement and more in line with actual needs. At the same time, since this method is a comparison performed by the CPU after receiving the data, the error will not increase due to the equalization design, and the accuracy rate is higher.

图3为本申请另一实施例提供的一种CCIX信号测试装置的结构图,如图3所示,一种CCIX信号测试装置包括:存储器30,用于存储计算机程序;Fig. 3 is the structural diagram of a kind of CCIX signal testing device that another embodiment of the present application provides, as shown in Fig. 3, a kind of CCIX signal testing device comprises: memory 30, is used for storing computer program;

处理器31,用于执行计算机程序时实现如上述实施例)一种CCIX信号测试方法的步骤。The processor 31 is configured to implement the steps of a CCIX signal testing method as in the above embodiment) when executing the computer program.

本实施例提供的一种CCIX信号测试装置可以包括但不限于服务器、平板电脑、笔记本电脑或台式电脑等。A CCIX signal testing device provided in this embodiment may include but not limited to a server, a tablet computer, a notebook computer or a desktop computer, and the like.

其中,处理器31可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器31可以采用数字信号处理器(Digital Signal Processor,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable LogicArray,PLA)中的至少一种硬件形式来实现。处理器31也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称中央处理器(CentralProcessing Unit,CPU);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器31可以集成有图像处理器(Graphics Processing Unit,GPU),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器31还可以包括人工智能(Artificial Intelligence,AI)处理器,该AI处理器用于处理有关机器学习的计算操作。Wherein, the processor 31 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. Processor 31 can adopt at least one hardware form in Digital Signal Processor (Digital Signal Processor, DSP), Field Programmable Gate Array (Field-Programmable Gate Array, FPGA), Programmable Logic Array (Programmable LogicArray, PLA) accomplish. Processor 31 may also include a main processor and a coprocessor, the main processor is a processor for processing data in a wake-up state, and is also called a central processing unit (Central Processing Unit, CPU); Low-power processor for processing data in standby state. In some embodiments, the processor 31 may be integrated with a graphics processor (Graphics Processing Unit, GPU), and the GPU is used for rendering and drawing the content that needs to be displayed on the display screen. In some embodiments, the processor 31 may also include an artificial intelligence (AI) processor, and the AI processor is used to process calculation operations related to machine learning.

存储器30可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器30还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。本实施例中,存储器30至少用于存储以下计算机程序301,其中,该计算机程序被处理器31加载并执行之后,能够实现前述任一实施例公开的一种CCIX信号测试方法的相关步骤。另外,存储器30所存储的资源还可以包括操作系统302和数据303等,存储方式可以是短暂存储或者永久存储。其中,操作系统302可以包括Windows、Unix、Linux等。数据303可以包括但不限于一种CCIX信号测试方法等。Memory 30 may include one or more computer-readable storage media, which may be non-transitory. The memory 30 may also include high-speed random access memory and non-volatile memory, such as one or more magnetic disk storage devices and flash memory storage devices. In this embodiment, the memory 30 is at least used to store the following computer program 301, wherein, after the computer program is loaded and executed by the processor 31, the relevant steps of a CCIX signal testing method disclosed in any of the foregoing embodiments can be implemented. In addition, the resources stored in the memory 30 may also include an operating system 302 and data 303, etc., and the storage method may be temporary storage or permanent storage. Wherein, the operating system 302 may include Windows, Unix, Linux and so on. The data 303 may include but not limited to a CCIX signal test method and the like.

在一些实施例中,一种CCIX信号测试装置还可包括有显示屏32、输入输出接口33、通信接口34、电源35以及通信总线36。In some embodiments, a CCIX signal testing device may further include a display screen 32 , an input/output interface 33 , a communication interface 34 , a power supply 35 and a communication bus 36 .

本领域技术人员可以理解,图3中示出的结构并不构成对一种CCIX信号测试装置的限定,可以包括比图示更多或更少的组件。Those skilled in the art can understand that the structure shown in FIG. 3 is not limited to a CCIX signal testing device, and may include more or less components than shown in the figure.

本申请实施例提供的一种CCIX信号测试装置,包括存储器和处理器,处理器在执行存储器存储的程序时,能够实现如下方法:一种CCIX信号测试方法。A CCIX signal testing device provided in an embodiment of the present application includes a memory and a processor. When the processor executes a program stored in the memory, the following method can be implemented: a CCIX signal testing method.

本实施例所提供的一种CCIX信号测试装置,通过处理器执行保存在存储器中的计算机程序,以通过将进行CCIX通信连接的其中一个CPU的接收端与发送端通过回环寄存器进行回环连接,使得该CPU发送的数据会被回环至接收端,用以检测该CPU发送端和接收端的通信质量。具体的,通过生成随机码作为待测数据,比较接收到的数据与发送的数据的一致性,从而判断该CPU的CCIX信号质量,再对另一CPU进行相同的测试,即可完成两CPU间的CCIX信号质量测试。本申请所提供的一种CCIX信号质量测试方法采用软件测试的方法,代替传统的硬件测试方式,也因此不会出现使用硬件测试时不可避免的一些问题,无需依靠示波器、探头等物理设备,不必在主板上预留测试点或破坏主板表层,更容易实施的同时也更符合实际需要。同时,这种方式由于是CPU在接受到数据后进行的比较,也不会因为均衡设计导致误差变大,准确率更高。A kind of CCIX signal testing device provided by the present embodiment, executes the computer program that is stored in memory by processor, to carry out loopback connection by loopback register by the receiving end and sending end of one of CPU that will carry out CCIX communication connection, make The data sent by the CPU will be looped back to the receiving end to detect the communication quality between the CPU sending end and the receiving end. Specifically, by generating a random code as the data to be tested and comparing the consistency between the received data and the sent data, the quality of the CCIX signal of the CPU is judged, and then the same test is performed on the other CPU to complete the test between the two CPUs. The CCIX signal quality test. A CCIX signal quality test method provided by this application adopts a software test method instead of the traditional hardware test method, and therefore there will be no inevitable problems when using hardware test, and there is no need to rely on physical equipment such as oscilloscopes and probes. Reserving test points on the motherboard or destroying the surface of the motherboard is easier to implement and more in line with actual needs. At the same time, since this method is compared by the CPU after receiving the data, the error will not increase due to the balanced design, and the accuracy rate is higher.

最后,本申请还提供一种计算机可读存储介质对应的实施例。计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上述方法实施例中记载的步骤。Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. A computer program is stored on a computer-readable storage medium, and when the computer program is executed by a processor, the steps described in the foregoing method embodiments are implemented.

可以理解的是,如果上述实施例中的方法以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。It can be understood that if the methods in the above embodiments are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , executing all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disc and other media that can store program codes. .

本实施例所提供的一种计算机可读取存储介质,当其中存储的计算机程序被执行时,可以通过将进行CCIX通信连接的其中一个CPU的接收端与发送端通过回环寄存器进行回环连接,使得该CPU发送的数据会被回环至接收端,用以检测该CPU发送端和接收端的通信质量。具体的,通过生成随机码作为待测数据,比较接收到的数据与发送的数据的一致性,从而判断该CPU的CCIX信号质量,再对另一CPU进行相同的测试,即可完成两CPU间的CCIX信号质量测试。本申请所提供的一种CCIX信号质量测试方法采用软件测试的方法,代替传统的硬件测试方式,也因此不会出现使用硬件测试时不可避免的一些问题,无需依靠示波器、探头等物理设备,不必在主板上预留测试点或破坏主板表层,更容易实施的同时也更符合实际需要。同时,这种方式由于是CPU在接受到数据后进行的比较,也不会因为均衡设计导致误差变大,准确率更高。In the computer-readable storage medium provided by this embodiment, when the computer program stored therein is executed, the receiving end and the sending end of one of the CPUs connected by CCIX communication can be connected through a loopback register through a loopback register, so that The data sent by the CPU will be looped back to the receiving end to detect the communication quality between the CPU sending end and the receiving end. Specifically, by generating a random code as the data to be tested and comparing the consistency between the received data and the sent data, the quality of the CCIX signal of the CPU is judged, and then the same test is performed on the other CPU to complete the test between the two CPUs. The CCIX signal quality test. A CCIX signal quality test method provided by this application adopts a software test method instead of the traditional hardware test method, and therefore there will be no inevitable problems when using hardware test, and there is no need to rely on physical equipment such as oscilloscopes and probes. Reserving test points on the motherboard or destroying the surface of the motherboard is easier to implement and more in line with actual needs. At the same time, since this method is a comparison performed by the CPU after receiving the data, the error will not increase due to the equalization design, and the accuracy rate is higher.

以上对本申请所提供的一种CCIX信号测试方法、装置及其介质进行了详细介绍。说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围内。A CCIX signal testing method, device and medium thereof provided by the present application have been introduced in detail above. Each embodiment in the description is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related information, please refer to the description of the method part. It should be pointed out that those skilled in the art can make some improvements and modifications to the application without departing from the principles of the application, and these improvements and modifications also fall within the protection scope of the claims of the application.

还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this specification, relative terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations There is no such actual relationship or order between the operations. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

Claims (10)

Translated fromChinese
1.一种CCIX信号测试方法,其特征在于,包括:1. a CCIX signal testing method, is characterized in that, comprises:进行CCIX初始化,以建立CCIX连接;Perform CCIX initialization to establish a CCIX connection;待CCIX连接建立后,通过发送端输出随机码流;After the CCIX connection is established, output a random code stream through the sender;通过回环寄存器将发送端输出的所述随机码流回环至接收端;looping back the random code stream output by the sending end to the receiving end through the loopback register;比较接收端接收到的数据与发送端输出的数据以确定CCIX信号质量。Compare the data received by the receiver with the data output by the transmitter to determine the CCIX signal quality.2.根据权利要求1所述的CCIX信号测试方法,其特征在于,所述比较接收端接收到的数据与发送端输出的数据以确定CCIX信号质量包括:2. CCIX signal test method according to claim 1, is characterized in that, the data that described comparison receiving end receives and the data that sending end outputs to determine CCIX signal quality comprises:比较接收端接收到的数据与发送端输出的数据,以确定误码率;Compare the data received by the receiving end with the data output by the sending end to determine the bit error rate;根据所述误码率确定所述CCIX信号质量。Determine the CCIX signal quality according to the bit error rate.3.根据权利要求2所述的CCIX信号测试方法,其特征在于,所述通过发送端输出随机码流包括:3. CCIX signal test method according to claim 2, is characterized in that, described outputting random code stream by sending end comprises:基于不同相位的时钟信号,分别通过发送端输出所述随机码流;Outputting the random code streams through the sending end respectively based on clock signals of different phases;相应的,所述比较接收端接收到的数据与发送端输出的数据,以确定误码率包括:Correspondingly, comparing the data received by the receiving end with the data output by the sending end to determine the bit error rate includes:比较在相位不同的时钟信号下,接收端接收到的数据与发送端输出的数据,以确定多组所述误码率。Comparing the data received by the receiving end with the data output by the sending end under clock signals with different phases, so as to determine multiple sets of bit error rates.4.根据权利要求3所述的CCIX信号测试方法,其特征在于,所述通过发送端输出随机码流还包括:4. CCIX signal test method according to claim 3, is characterized in that, described outputting random code stream by sending end also comprises:基于不同的参考电压,分别通过发送端输出所述随机码流;Based on different reference voltages, respectively outputting the random code stream through the sending end;相应的,所述比较接收端接收到的数据与发送端输出的数据,以确定误码率包括:Correspondingly, comparing the data received by the receiving end with the data output by the sending end to determine the bit error rate includes:比较在不同的参考电压下,接收端接收到的数据与发送端输出的数据,以确定多组所述误码率。Comparing the data received by the receiving end with the data output by the sending end under different reference voltages, so as to determine multiple sets of bit error rates.5.根据权利要求4所述的CCIX信号测试方法,其特征在于,所述根据所述误码率确定所述CCIX信号质量包括:5. CCIX signal test method according to claim 4, is characterized in that, described according to described bit error rate to determine described CCIX signal quality comprises:根据不同相位的时钟信号以及不同参考电压下得到的各组所述误码率,以相位作为横坐标、以参考电压值为纵坐标,建立二维眼图;According to the clock signals of different phases and the bit error rates of each group obtained under different reference voltages, using the phase as the abscissa and the reference voltage as the ordinate, a two-dimensional eye diagram is established;根据所述二维眼图确定所述CCIX信号质量。Determining the CCIX signal quality according to the two-dimensional eye diagram.6.根据权利要求5所述的CCIX信号测试方法,其特征在于,所述根据所述二维眼图确定所述CCIX信号质量包括:6. CCIX signal test method according to claim 5, is characterized in that, described according to described two-dimensional eye pattern and determines described CCIX signal quality comprising:以所述二维眼图中,横坐标连续误码率为零的最大数量作为眼宽、纵坐标连续误码率为零的最大数量作为眼高,根据所述眼高和眼宽确定所述CCIX信号质量。In the two-dimensional eye diagram, the maximum number of zero continuous bit error rates on the abscissa is used as the eye width, and the maximum number of zero continuous bit error rates on the ordinate is used as the eye height, and the described eye height and eye width are determined according to the eye height. CCIX signal quality.7.根据权利要求1至6任意一项所述的CCIX信号测试方法,其特征在于,所述随机码流为PRBS码型的随机码流;7. according to the CCIX signal testing method described in any one of claims 1 to 6, it is characterized in that, described random code stream is the random code stream of PRBS pattern;相应的,所述比较接收端接收到的数据与发送端输出的数据以确定CCIX信号质量包括:Correspondingly, said comparing the data received by the receiving end with the data output by the sending end to determine the CCIX signal quality includes:通过所述随机码流的最长连零或最长连一,确定发送端输出的数据与接收端接收的数据的数据位置对应关系,比较各位置对应的数据以确定所述CCIX信号质量。Through the longest consecutive zeros or the longest consecutive ones of the random code stream, determine the data position correspondence between the data output by the sending end and the data received by the receiving end, and compare the data corresponding to each position to determine the CCIX signal quality.8.一种CCIX信号测试装置,其特征在于,包括:8. A CCIX signal testing device, characterized in that, comprising:初始化模块,用于进行CCIX初始化,以建立CCIX连接;The initialization module is used for CCIX initialization to establish a CCIX connection;数据发送模块,用于待CCIX连接建立后,通过发送端输出随机码流;The data sending module is used to output a random code stream through the sending end after the CCIX connection is established;回环测试模块,用于通过回环寄存器将发送端输出的所述随机码流回环至接收端;The loopback test module is used to loop back the random code stream output by the sending end to the receiving end through the loopback register;结果确定模块,用于比较接收端接收到的数据与发送端输出的数据以确定CCIX信号质量。The result determining module is used to compare the data received by the receiving end with the data output by the sending end to determine the CCIX signal quality.9.一种CCIX信号测试装置,其特征在于,包括:9. A CCIX signal testing device, characterized in that, comprising:存储器,用于存储计算机程序;memory for storing computer programs;处理器,用于执行所述计算机程序时实现如权利要求1至7任意一项所述的CCIX信号测试方法的步骤。A processor, configured to implement the steps of the CCIX signal testing method according to any one of claims 1 to 7 when executing the computer program.10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至7任意一项所述的CCIX信号测试方法的步骤。10. A computer-readable storage medium, characterized in that, a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, CCIX as described in any one of claims 1 to 7 is realized Steps of the signal test method.
CN202211665704.1A2022-12-232022-12-23CCIX signal testing method, device and mediumPendingCN115967658A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202211665704.1ACN115967658A (en)2022-12-232022-12-23CCIX signal testing method, device and medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202211665704.1ACN115967658A (en)2022-12-232022-12-23CCIX signal testing method, device and medium

Publications (1)

Publication NumberPublication Date
CN115967658Atrue CN115967658A (en)2023-04-14

Family

ID=87357429

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202211665704.1APendingCN115967658A (en)2022-12-232022-12-23CCIX signal testing method, device and medium

Country Status (1)

CountryLink
CN (1)CN115967658A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116346665A (en)*2023-05-262023-06-27芯动微电子科技(珠海)有限公司Signal transmission quality assessment method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102315889A (en)*2011-09-302012-01-11华为技术有限公司High speed signal test method, apparatus thereof and system
CN112748325A (en)*2020-12-292021-05-04海光信息技术股份有限公司Eye pattern testing method, device and equipment
WO2022077775A1 (en)*2020-10-132022-04-21中国科学院微电子研究所Eye diagram oscilloscope system and an eye diagram testing method
CN114646838A (en)*2020-12-212022-06-21澜起科技股份有限公司 A socket connectivity test device and test method
CN114911657A (en)*2022-04-292022-08-16苏州浪潮智能科技有限公司 An interprocessor signal management method, device, electronic device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102315889A (en)*2011-09-302012-01-11华为技术有限公司High speed signal test method, apparatus thereof and system
WO2022077775A1 (en)*2020-10-132022-04-21中国科学院微电子研究所Eye diagram oscilloscope system and an eye diagram testing method
CN114646838A (en)*2020-12-212022-06-21澜起科技股份有限公司 A socket connectivity test device and test method
CN112748325A (en)*2020-12-292021-05-04海光信息技术股份有限公司Eye pattern testing method, device and equipment
CN114911657A (en)*2022-04-292022-08-16苏州浪潮智能科技有限公司 An interprocessor signal management method, device, electronic device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116346665A (en)*2023-05-262023-06-27芯动微电子科技(珠海)有限公司Signal transmission quality assessment method and device
CN116346665B (en)*2023-05-262023-08-15芯动微电子科技(珠海)有限公司Signal transmission quality assessment method and device

Similar Documents

PublicationPublication DateTitle
US11695601B2 (en)On-chip virtual oscilloscope using high-speed receiver sampler readback
US20220398177A1 (en)Error rate measuring apparatus and error rate measuring method
US7900098B2 (en)Receiver for recovering and retiming electromagnetically coupled data
US9551746B2 (en)Backplane testing system
US11929902B2 (en)PCIe signal bandwidth determining method, apparatus and device
US11762017B2 (en)Performing scan data transfer inside multi-die package with SERDES functionality
US20170337152A1 (en)Port mirroring for peripheral component interconnect express devices
CN113254284B (en) Chip testing method, device, equipment, storage medium and program product
CN105207848A (en)SerDes bit error rate detecting method and system based on embedded chip
CN115967658A (en)CCIX signal testing method, device and medium
CN113014339B (en)Quality test method, device and equipment for PCIe external plug-in card receiving channel
CN117493090A (en)Signal quality testing method, device, equipment and medium
CN115904849A (en)PCIE link signal test method, system, computer equipment and medium
US8817908B2 (en)Generating and/or receiving, at least in part, signal that includes at least one waveform
CN116319532B (en) Link training via handshaking on high-speed interconnects
US8234530B2 (en)Serial interface device built-in self test
US11656264B2 (en)High-speed signal subsystem testing system
CN116319475A (en) A signal analysis method, device, equipment and storage medium
CN115562916A (en)Method, device and medium for evaluating signal quality
CN115525495A (en)High-speed serial bus allowance testing method, device, equipment and medium
CN113268390A (en) Test fixture, system and method for mSATA interface
CN113760594B (en)PCIE GEN6 link judgment method
CN116306400B (en)Integrated circuit verification method, system, device, equipment and medium
US11585864B2 (en)High-speed signal subsystem testing system
CN116699214A (en)Test method, device, equipment and medium based on probe

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp