CN111008102B - FPGA accelerator card high-speed interface SI test control device, system and method - Google Patents
FPGA accelerator card high-speed interface SI test control device, system and method Download PDFInfo
- Publication number
- CN111008102B CN111008102B CN201910996218.XA CN201910996218A CN111008102B CN 111008102 B CN111008102 B CN 111008102B CN 201910996218 A CN201910996218 A CN 201910996218A CN 111008102 B CN111008102 B CN 111008102B
- Authority
- CN
- China
- Prior art keywords
- interface
- usb
- test
- speed interface
- controller
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/2221—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
- Tests Of Electronic Circuits (AREA)
Abstract
本发明提供一种FPGA加速卡高速接口SI测试控制装置、系统及方法,基于SOC器件的FPGA加速卡的高速接口的SI测试控制装置,包括用户交互接口和高速接口控制器,所述的用户交互接口通过码型选择单元连接有码型切换处理单元;码型切换处理单元与高速接口控制器连接;所述的高速接口控制器还连接有高速接口模式配置单元;所述的码型切换处理单元,用于根据码型选择单元的判断,产生相应码型的配置信息输出给高速接口控制器;所述的高速接口控制器,用于根据来源于高速接口模式配置单元和码型切换处理单元的配置信息工作在相应模式实现高速接口数据的收发。
The present invention provides an FPGA accelerator card high-speed interface SI test control device, system and method. The SI test control device for the high-speed interface of the FPGA accelerator card based on the SOC device includes a user interaction interface and a high-speed interface controller. The user interaction The interface is connected with a pattern switching processing unit through the pattern selection unit; the pattern switching processing unit is connected with a high-speed interface controller; the high-speed interface controller is also connected with a high-speed interface mode configuration unit; the pattern switching processing unit , for generating the configuration information of the corresponding code type according to the judgment of the code type selection unit and outputting it to the high-speed interface controller; the high-speed interface controller is used for according to the information from the high-speed interface mode configuration unit and the code type switching processing unit The configuration information works in the corresponding mode to realize the sending and receiving of high-speed interface data.
Description
技术领域technical field
本发明涉及信号完整性测试技术领域,具体涉及一种FPGA加速卡高速接口SI测试控制装置、系统及方法。The invention relates to the technical field of signal integrity testing, in particular to an FPGA accelerator card high-speed interface SI test control device, system and method.
背景技术Background technique
人工智能是目前最前沿热门技术之一,基于SOC器件的FPGA加速卡因其高性能计算能力在人工智能领域得到广泛应用,集合了处理器软件及FPGA硬件的可编程SOC器件,为实现人工智能技术提供了有力的支撑。SOC器件有效提升了系统的集成度、性能、灵活性、可扩展性,允许设计者根据不同应用场景,灵活地添加不同的外设及硬件加速器,从而达到最优化和差异性目标。丰富的外设及高速接口优势也意味着,对FPGA加速卡硬件设计及信号完整性的需求越来越高。Artificial intelligence is one of the most cutting-edge hot technologies at present. FPGA accelerator cards based on SOC devices are widely used in the field of artificial intelligence because of their high-performance computing capabilities. Programmable SOC devices that integrate processor software and FPGA hardware are used to realize artificial intelligence. Technology provides strong support. SOC devices effectively improve the integration, performance, flexibility, and scalability of the system, allowing designers to flexibly add different peripherals and hardware accelerators according to different application scenarios, so as to achieve optimization and differentiation goals. The advantages of rich peripherals and high-speed interfaces also mean that the demand for FPGA accelerator card hardware design and signal integrity is getting higher and higher.
信号完整性是对于电子信号质量的一系列度量标准,通常是指高速PCB中由于高速信号布线、元器件布局、电源质量等多种因素相互作用,最终使信号产生扭曲畸变的一种现象。通常FPGA加速卡的高速接口包括DDR、USB、PCIE、以太网口等。USB作为一种外部总线标准,用于规范电脑与外部设备的连接和通讯。计算机技术高速发展推动着总线标准的提升,目前超高速接口USB3.0的传输速率可达到5Gbps。对于这种高速接口,信号完整性测试是保证硬件产品质量的重要环节。Signal integrity is a series of metrics for the quality of electronic signals. It usually refers to the phenomenon that the signal is distorted and distorted due to the interaction of various factors such as high-speed signal wiring, component layout, and power supply quality in high-speed PCBs. Generally, the high-speed interfaces of FPGA accelerator cards include DDR, USB, PCIE, Ethernet ports, etc. As an external bus standard, USB is used to regulate the connection and communication between computers and external devices. The rapid development of computer technology promotes the improvement of the bus standard. At present, the transmission rate of the ultra-high-speed interface USB3.0 can reach 5Gbps. For this high-speed interface, signal integrity testing is an important part of ensuring the quality of hardware products.
目前常规的方法是通过示波器测试USB接口的信号完整性,将示波器探头通过治具连接到待测的USB接口。其中USB3.0 TX测试需要待测USB接口发送符合标准的多种码型包(至少包括CP0、CP1、LFPS三种pattern),再通过示波器测试眼图来完成测试。以往服务器产品的USB接口SI测试可以通过定制BIOS配置发包码型,而对于FPGA加速卡目前没有针对于USB接口SI测试的特定发包控制工具,现行方法是通过写SOC芯片内部寄存器配置发包完成测试。写SOC器件内部寄存器配置USB控制器发包的方法,采用完全人工操作,自动化程度低。由于测试人员不熟悉芯片内部结构及寄存器配置,操作复杂极易出错,严重影响项目测试进度。且往往需研发人员现场指导,增加了人力成本。The current conventional method is to test the signal integrity of the USB interface with an oscilloscope, and connect the oscilloscope probe to the USB interface to be tested through a fixture. Among them, the USB3.0 TX test requires the USB interface to be tested to send a variety of standard-compliant packets (including at least CP0, CP1, and LFPS three patterns), and then use the oscilloscope to test the eye diagram to complete the test. In the past, the USB interface SI test of server products can be configured by customizing the BIOS to send the packet pattern. For the FPGA accelerator card, there is currently no specific packet sending control tool for the USB interface SI test. The current method is to complete the test by writing the SOC chip internal register configuration packet sending. The method of writing the internal registers of the SOC device to configure the USB controller to send the contract is completely manual operation, and the degree of automation is low. Since the testers are not familiar with the internal structure and register configuration of the chip, the operation is complicated and error-prone, which seriously affects the progress of the project test. In addition, on-site guidance from R&D personnel is often required, which increases labor costs.
发明内容Contents of the invention
针对写SOC器件内部寄存器配置USB控制器发包的方法,采用完全人工操作,自动化程度低。由于测试人员不熟悉芯片内部结构及寄存器配置,操作复杂极易出错,严重影响项目测试进度。且往往需研发人员现场指导,增加了人力成本的问题,本发明提供一种FPGA加速卡高速接口SI测试控制装置、系统及方法。For the method of writing the internal register of the SOC device to configure the USB controller to send the contract, it adopts a completely manual operation with a low degree of automation. Since the testers are not familiar with the internal structure and register configuration of the chip, the operation is complicated and error-prone, which seriously affects the progress of the project test. In addition, on-site guidance from R&D personnel is often required, which increases the problem of labor costs. The present invention provides an FPGA accelerator card high-speed interface SI test control device, system and method.
本发明提供的技术方案是:The technical scheme provided by the invention is:
一方面,本发明技术方案提供一种FPGA加速卡高速接口SI测试控制装置,基于SOC器件的FPGA加速卡的高速接口的SI测试控制装置,包括用户交互接口和高速接口控制器,所述的用户交互接口通过码型选择单元连接有码型切换处理单元;码型切换处理单元与高速接口控制器连接;所述的高速接口控制器还连接有高速接口模式配置单元;On the one hand, the technical solution of the present invention provides a kind of FPGA accelerator card high-speed interface SI test control device, the SI test control device of the high-speed interface of the FPGA accelerator card based on SOC device, including user interaction interface and high-speed interface controller, described user The interactive interface is connected with a pattern switching processing unit through the pattern selection unit; the pattern switching processing unit is connected with a high-speed interface controller; the high-speed interface controller is also connected with a high-speed interface mode configuration unit;
所述的用户交换接口为FPGA加速卡的调试接口,通过所述的用户交换接口启动测试、输入预测试码型;Described user exchange interface is the debugging interface of FPGA accelerator card, starts test, input pre-test code pattern by described user exchange interface;
所述的高速接口模式配置单元,用于产生不同的模式配置信息,以进行发送测试;The high-speed interface mode configuration unit is used to generate different mode configuration information for sending tests;
所述的码型选择单元,连接用户交互接口和码型切换处理单元;用于识别操作者通过用户交互接口输入的码型类型;还用于通过对所选码型的判断校验后,进入相应的码型处理环节;The code type selection unit is connected to the user interaction interface and the code type switching processing unit; it is used to identify the type of code type input by the operator through the user interaction interface; it is also used to enter the code type after checking the selected code type. The corresponding code pattern processing link;
所述的码型切换处理单元,用于根据码型选择单元的判断,产生相应码型的配置信息输出给高速接口控制器;The code type switching processing unit is used to generate the configuration information of the corresponding code type according to the judgment of the code type selection unit and output it to the high-speed interface controller;
所述的高速接口控制器,用于根据来源于高速接口模式配置单元和码型切换处理单元的配置信息工作在相应模式实现高速接口数据的收发。The high-speed interface controller is used to work in a corresponding mode according to the configuration information from the high-speed interface mode configuration unit and the code switching processing unit to realize the sending and receiving of high-speed interface data.
优选地,所述的高速接口为USB接口,高速接口控制器为USB控制器,高速接口模式配置单元为USB模式配置单元。Preferably, the high-speed interface is a USB interface, the high-speed interface controller is a USB controller, and the high-speed interface mode configuration unit is a USB mode configuration unit.
优选地,该装置基于SOC器件内置的ARM处理器,实现USB接口信号完整性测试所需的码型包输出及USB模式的配置。Preferably, the device is based on the built-in ARM processor of the SOC device, and realizes the pattern packet output required for the signal integrity test of the USB interface and the configuration of the USB mode.
优选地,所述的USB模式配置单元,用于产生模式配置信息,将USB控制器设置为不同模式接口速率的主机模式,以进行发送测试;Preferably, the USB mode configuration unit is configured to generate mode configuration information, and set the USB controller to a host mode with different mode interface rates for sending tests;
所述的用户交换接口,还用于通过该接口打印日志了解测试码型的发包状态信息;The user exchange interface is also used to print logs through the interface to understand the packet sending status information of the test pattern;
所述的码型选择单元,连接用户交互接口和码型切换处理单元;用于识别操作者通过用户交互接口输入的码型类型;还用于通过对所选码型的判断校验后,进入相应的码型处理环节;The code type selection unit is connected to the user interaction interface and the code type switching processing unit; it is used to identify the type of code type input by the operator through the user interaction interface; it is also used to enter the code type after checking the selected code type. The corresponding code pattern processing link;
所述的码型切换处理单元,用于根据码型选择单元的判断,产生相应码型的配置信息输出给USB控制器;The code type switching processing unit is used to generate configuration information of the corresponding code type according to the judgment of the code type selection unit and output it to the USB controller;
所述的USB控制器,用于根据来源于USB模式配置单元和码型切换处理单元的配置信息工作在相应模式实现USB接口数据的收发。The USB controller is used to work in a corresponding mode according to the configuration information from the USB mode configuration unit and the code switching processing unit to realize the sending and receiving of USB interface data.
第二方面,本发明技术方案提供一种FPGA加速卡高速接口SI测试系统,包括高速接口SI测试控制装置和待测接口链路;所述的高速接口SI测试控制装置和待测接口链路进行通信连接,待测接口链路用于连接到示波器;所述的高速接口SI测试控制装置为第一方面所述的FPGA加速卡高速接口SI测试控制装置。In a second aspect, the technical solution of the present invention provides a FPGA accelerator card high-speed interface SI test system, including a high-speed interface SI test control device and an interface link to be tested; the described high-speed interface SI test control device and the interface link to be tested perform Communication connection, the interface link to be tested is used to be connected to the oscilloscope; The described high-speed interface SI test control device is the FPGA accelerator card high-speed interface SI test control device described in the first aspect.
优选地,所述的待测接口链路包括USB物理层收发器和USB连接器,所述的USB物理层收发器与USB连接器连接;USB连接器连接到示波器;Preferably, the interface link to be tested includes a USB physical layer transceiver and a USB connector, and the USB physical layer transceiver is connected to the USB connector; the USB connector is connected to an oscilloscope;
所述的USB物理层收发器与USB控制器连接,用于通过SOC器件内置的ARM处理器内的USB控制器实现与待测接口链路的收发互连,通过示波器完成USB接口的发送码型测试。Described USB physical layer transceiver is connected with USB controller, is used for realizing the interconnection of sending and receiving with the interface link to be tested by the USB controller in the built-in ARM processor of SOC device, completes the transmission pattern of USB interface by oscilloscope test.
优选地,所述的待测接口链路包括第一待测接口链路和第二待测接口链路;Preferably, the interface link to be tested includes a first interface link to be tested and a second interface link to be tested;
所述的第一待测接口链路包括第一USB物理层收发器和第一USB控制器,第一USB物理层收发器与第一USB控制器连接;The first interface link to be tested includes a first USB physical layer transceiver and a first USB controller, and the first USB physical layer transceiver is connected to the first USB controller;
所述的第二待测接口链路包括第二USB物理层收发器和第二USB控制器,第二USB物理层收发器与第二USB控制器连接;The second interface link to be tested includes a second USB physical layer transceiver and a second USB controller, and the second USB physical layer transceiver is connected to the second USB controller;
第一USB物理层收发器和第二USB物理层收发器均连接到USB控制器。Both the first USB physical layer transceiver and the second USB physical layer transceiver are connected to the USB controller.
第三方面,本发明技术方案还提供一种FPGA加速卡高速接口SI测试方法,基于第二方面所提供的FPGA加速卡高速接口SI测试系统的测试方法,包括如下步骤:In a third aspect, the technical solution of the present invention also provides a method for testing FPGA accelerator card high-speed interface SI, based on the method for testing the FPGA accelerator card high-speed interface SI test system provided in the second aspect, comprising the following steps:
步骤1:通过用户交互接口启动测试,进入测试模式,选择第一待测接口链路或第二待测接口链路;Step 1: Start the test through the user interaction interface, enter the test mode, and select the first interface link to be tested or the second interface link to be tested;
步骤2:USB模式配置单元将USB控制器配置成USB3.0,host主机模式,以进行host端发送测试;Step 2: The USB mode configuration unit configures the USB controller to be USB3.0, host host mode, so as to carry out the host terminal sending test;
步骤3:通过用户交互接口输入测试码型对应的码型信息;Step 3: Input the code pattern information corresponding to the test pattern through the user interaction interface;
步骤4:码型选择单元根据用户交互接口所输入的码型信息,经过判断校验后,输出指令进入相应的码型处理环节;Step 4: The code pattern selection unit outputs instructions to enter the corresponding code pattern processing link after judgment and verification according to the code pattern information input by the user interaction interface;
步骤5:码型切换处理单元根据码型选择单元的指令,按照码型跳转状态机的工作机制产生相应码型的配置信息输出给USB控制器完成码型切换处理;Step 5: the code type switching processing unit generates the configuration information of the corresponding code type according to the instruction of the code type selection unit according to the working mechanism of the code type jump state machine and outputs it to the USB controller to complete the code type switching process;
步骤6:USB控制器根据来源于USB模式配置单元和码型切换处理单元的配置信息工作在相应模式,通过发送端口输出配置信息所对应的码型输出到步骤1中所选择的待测接口链路;Step 6: The USB controller works in the corresponding mode according to the configuration information from the USB mode configuration unit and the code switching processing unit, and outputs the code pattern corresponding to the configuration information through the sending port to the interface chain to be tested selected in step 1 road;
步骤7:待测接口链路输出标准码型到示波器,测试眼图完成USB3.0 TX信号完整性测试;Step 7: The interface link to be tested outputs the standard code pattern to the oscilloscope, and the eye diagram is tested to complete the USB3.0 TX signal integrity test;
步骤8:输入的码型测试完毕后,跳转回步骤3进行下一种码型测试。Step 8: After the input code pattern test is completed, jump back to step 3 for the next code pattern test.
从以上技术方案可以看出,本发明具有以下优点:针对于基于SOC器件的FPGA加速卡,提供了一种基于SOC内置ARM系统的USB接口信号完整性测试系统与方法,可实现自动输出USB3.0测试码型,解决加速卡USB接口信号完整性测试环节遇到的发包方法不明确、可操作性差等问题。所述方法采用内部处理器,充分利用SOC器件灵活性的优势无硬件布局压力,在已有硬件平台基础上实现,无需增加外部控制芯片;可实现多种标准码型(CPO-CP8共九种)切换,操作方便不易出错,有效降低测试环节的操作冗余,提高测试效率。As can be seen from the above technical solutions, the present invention has the following advantages: for FPGA accelerator cards based on SOC devices, a USB interface signal integrity testing system and method based on SOC built-in ARM systems are provided, which can automatically output USB3. 0 test code pattern, to solve the problem of unclear packet sending method and poor operability encountered in the signal integrity test of the accelerator card USB interface. The method adopts an internal processor, fully utilizes the advantages of the flexibility of the SOC device, has no hardware layout pressure, and is realized on the basis of an existing hardware platform without adding an external control chip; it can realize multiple standard code patterns (nine kinds of CPO-CP8 ) switch, easy to operate and not easy to make mistakes, effectively reducing the operational redundancy of the test link and improving test efficiency.
此外,本发明设计原理可靠,结构简单,具有非常广泛的应用前景。In addition, the design principle of the present invention is reliable, the structure is simple, and has very wide application prospects.
由此可见,本发明与现有技术相比,具有突出的实质性特点和显著地进步,其实施的有益效果也是显而易见的。It can be seen that, compared with the prior art, the present invention has outstanding substantive features and remarkable progress, and the beneficial effects of its implementation are also obvious.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings on the premise of not paying creative work.
图1是本发明实施例一提供的一种FPGA加速卡高速接口SI测试控制装置连接框图。FIG. 1 is a connection block diagram of an FPGA accelerator card high-speed interface SI test control device provided by Embodiment 1 of the present invention.
图2是本发明实施例二的提供的一种FPGA加速卡高速接口SI测试控制系统连接框图。FIG. 2 is a connection block diagram of an FPGA accelerator card high-speed interface SI test control system provided by Embodiment 2 of the present invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.
实施例一Embodiment one
如图1所示,本发明实施例提供一种FPGA加速卡高速接口SI测试控制装置,基于SOC器件的FPGA加速卡的高速接口的SI测试控制装置,包括用户交互接口和高速接口控制器,所述的用户交互接口通过码型选择单元连接有码型切换处理单元;码型切换处理单元与高速接口控制器连接;所述的高速接口控制器还连接有高速接口模式配置单元;As shown in Figure 1, the embodiment of the present invention provides a kind of FPGA accelerator card high-speed interface SI test control device, the SI test control device of the high-speed interface of the FPGA accelerator card based on SOC device, comprises user interaction interface and high-speed interface controller, so The user interaction interface described above is connected with a pattern switching processing unit through the pattern selection unit; the pattern switching processing unit is connected with a high-speed interface controller; the high-speed interface controller is also connected with a high-speed interface mode configuration unit;
所述的用户交换接口为FPGA加速卡的调试接口通过所述的用户交换接口启动测试、输入预测试码型;需要说明的是,用户交换接口作为FPGA加速卡的调试接口,通常为串口,在进行接口SI测试过程中,操作者可通过该接口启动测试、输入预测试码型,也可通过该接口打印日志了解测试码型的发包状态等信息。Described user exchange interface is the debugging interface of FPGA accelerator card and starts test, input pre-test pattern by described user exchange interface; It should be noted that, user exchange interface is as the debugging interface of FPGA accelerator card, is usually a serial port, in During the interface SI test, the operator can start the test through this interface, input the pre-test pattern, and also print the log through this interface to understand the status of the test pattern and other information.
所述的高速接口模式配置单元,用于产生不同的模式配置信息,以进行发送测试;The high-speed interface mode configuration unit is used to generate different mode configuration information for sending tests;
所述的码型选择单元,连接用户交互接口和码型切换处理单元;用于识别操作者通过用户交互接口输入的码型类型;还用于通过对所选码型的判断校验后,进入相应的码型处理环节;The code type selection unit is connected to the user interaction interface and the code type switching processing unit; it is used to identify the type of code type input by the operator through the user interaction interface; it is also used to enter the code type after checking the selected code type. The corresponding code pattern processing link;
所述的码型切换处理单元,用于根据码型选择单元的判断,产生相应码型的配置信息输出给高速接口控制器;The code type switching processing unit is used to generate the configuration information of the corresponding code type according to the judgment of the code type selection unit and output it to the high-speed interface controller;
所述的高速接口控制器,用于根据来源于高速接口模式配置单元和码型切换处理单元的配置信息工作在相应模式实现高速接口数据的收发。The high-speed interface controller is used to work in a corresponding mode according to the configuration information from the high-speed interface mode configuration unit and the code switching processing unit to realize the sending and receiving of high-speed interface data.
实施例二Embodiment two
本发明实施例提供一种FPGA加速卡高速接口SI测试控制装置,基于SOC器件的FPGA加速卡的高速接口的SI测试控制装置,包括用户交互接口和高速接口控制器,所述的用户交互接口通过码型选择单元连接有码型切换处理单元;码型切换处理单元与高速接口控制器连接;所述的高速接口控制器还连接有高速接口模式配置单元;The embodiment of the present invention provides a kind of FPGA accelerator card high-speed interface SI test control device, the SI test control device of the high-speed interface of the FPGA accelerator card based on SOC device, including user interaction interface and high-speed interface controller, described user interaction interface through The pattern selection unit is connected with a pattern switching processing unit; the pattern switching processing unit is connected with a high-speed interface controller; the high-speed interface controller is also connected with a high-speed interface mode configuration unit;
所述的用户交换接口为FPGA加速卡的调试接口,通过所述的用户交换接口启动测试、输入预测试码型;需要说明的是,用户交换接口作为FPGA加速卡的调试接口,通常为串口,在进行接口SI测试过程中,操作者可通过该接口启动测试、输入预测试码型,也可通过该接口打印日志了解测试码型的发包状态等信息。Described user exchange interface is the debug interface of FPGA accelerator card, starts test, input pre-test code pattern by described user exchange interface; It should be noted that user exchange interface is as the debug interface of FPGA accelerator card, usually a serial port, During the interface SI test, the operator can start the test and input the pre-test pattern through this interface, and can also print logs through this interface to understand the status of the test pattern and other information.
所述的高速接口模式配置单元,用于产生不同的模式配置信息,以进行发送测试;The high-speed interface mode configuration unit is used to generate different mode configuration information for sending tests;
所述的码型选择单元,连接用户交互接口和码型切换处理单元;用于识别操作者通过用户交互接口输入的码型类型;还用于通过对所选码型的判断校验后,进入相应的码型处理环节;The code type selection unit is connected to the user interaction interface and the code type switching processing unit; it is used to identify the type of code type input by the operator through the user interaction interface; it is also used to enter the code type after checking the selected code type. The corresponding code pattern processing link;
所述的码型切换处理单元,用于根据码型选择单元的判断,产生相应码型的配置信息输出给高速接口控制器;The code type switching processing unit is used to generate the configuration information of the corresponding code type according to the judgment of the code type selection unit and output it to the high-speed interface controller;
所述的高速接口控制器,用于根据来源于高速接口模式配置单元和码型切换处理单元的配置信息工作在相应模式实现高速接口数据的收发。The high-speed interface controller is used to work in a corresponding mode according to the configuration information from the high-speed interface mode configuration unit and the code switching processing unit to realize the sending and receiving of high-speed interface data.
本实施例中,所述的高速接口为USB接口,高速接口控制器为USB控制器,高速接口模式配置单元为USB模式配置单元。该装置基于SOC器件内置的ARM处理器,实现USB接口信号完整性测试所需的码型包输出及USB模式的配置。In this embodiment, the high-speed interface is a USB interface, the high-speed interface controller is a USB controller, and the high-speed interface mode configuration unit is a USB mode configuration unit. The device is based on the built-in ARM processor of the SOC device, and realizes the pattern packet output required for the signal integrity test of the USB interface and the configuration of the USB mode.
优选地,所述的USB模式配置单元,用于产生模式配置信息,将USB控制器设置为不同模式接口速率的主机模式,以进行发送测试;Preferably, the USB mode configuration unit is configured to generate mode configuration information, and set the USB controller to a host mode with different mode interface rates for sending tests;
所述的码型选择单元,连接用户交互接口和码型切换处理单元。一方面识别操作者通过用户交互接口输入的码型类型,按照USB相应的测试标准,码型选择单元可提供九种标准码型的选择;另一方面,通过对所选码型的判断校验后,进入相应的码型处理环节。所述的码型切换处理单元,根据码型选择单元的判断,产生相应码型的配置信息,输出给USB控制器。The code type selection unit is connected to the user interaction interface and the code type switching processing unit. On the one hand, it recognizes the code type input by the operator through the user interaction interface. According to the corresponding test standard of USB, the code selection unit can provide the selection of nine standard codes; on the other hand, through the judgment and verification of the selected code After that, enter the corresponding code pattern processing link. The code type switching processing unit generates the configuration information of the corresponding code type according to the judgment of the code type selection unit, and outputs it to the USB controller.
所述的USB控制器,用于实现USB接口数据的收发。根据来源于USB模式配置单元和码型切换处理单元的配置信息,工作在相应模式,并通过发送端口输出配置信息所对应的码型,同时USB控制器连接由USB物理层收发器、USB连接器构成待测USB接口链路,在这里,USB连接器可以为USB3.0连接器,从而可通过示波器完成USB3.0接口的发送码型测试。The USB controller is used to realize the sending and receiving of USB interface data. According to the configuration information from the USB mode configuration unit and the code switching processing unit, work in the corresponding mode, and output the code corresponding to the configuration information through the sending port, and the USB controller is connected by the USB physical layer transceiver and the USB connector. A USB interface link to be tested is formed. Here, the USB connector may be a USB3.0 connector, so that the sending code pattern test of the USB3.0 interface can be completed through an oscilloscope.
实施例三Embodiment Three
如图2所示,本发明技术方案提供一种FPGA加速卡高速接口SI测试系统,包括高速接口SI测试控制装置和待测接口链路;所述的高速接口SI测试控制装置和待测接口链路进行通信连接,待测接口链路用于连接到示波器;所述的高速接口SI测试控制装置为第一方面所述的FPGA加速卡高速接口SI测试控制装置。As shown in Figure 2, the technical scheme of the present invention provides a kind of FPGA accelerator card high-speed interface SI test system, comprises high-speed interface SI test control device and the interface link to be tested; Described high-speed interface SI test control device and the interface link to be tested Road for communication connection, the interface link to be tested is used to be connected to the oscilloscope; The described high-speed interface SI test control device is the FPGA accelerator card high-speed interface SI test control device described in the first aspect.
所述的待测接口链路包括USB物理层收发器和USB连接器,所述的USB物理层收发器与USB连接器连接;系统测试时,USB连接器连接到示波器;所述的USB物理层收发器与USB控制器连接,用于通过SOC器件内置的ARM处理器内的USB控制器实现与待测接口链路的收发互连,通过示波器完成USB接口的发送码型测试。所述的待测接口链路包括第一待测接口链路和第二待测接口链路;所述的第一待测接口链路包括第一USB物理层收发器和第一USB控制器,第一USB物理层收发器与第一USB控制器连接;所述的第二待测接口链路包括第二USB物理层收发器和第二USB控制器,第二USB物理层收发器与第二USB控制器连接;第一USB物理层收发器和第二USB物理层收发器均连接到USB控制器。Described interface link to be tested comprises USB physical layer transceiver and USB connector, and described USB physical layer transceiver is connected with USB connector; During system testing, USB connector is connected to oscilloscope; Described USB physical layer The transceiver is connected with the USB controller, and is used to realize the interconnection of sending and receiving with the interface link to be tested through the USB controller in the ARM processor built in the SOC device, and complete the sending code pattern test of the USB interface through the oscilloscope. The interface link to be tested includes a first interface link to be tested and a second interface link to be tested; the first interface link to be tested includes a first USB physical layer transceiver and a first USB controller, The first USB physical layer transceiver is connected to the first USB controller; the second interface link to be tested includes a second USB physical layer transceiver and a second USB controller, and the second USB physical layer transceiver is connected to the second USB physical layer transceiver. USB controller connection; both the first USB physical layer transceiver and the second USB physical layer transceiver are connected to the USB controller.
USB物理层收发器、USB3.0连接器构成待测USB接口链路,该接口的连接器通过治具连接到示波器,以搭建完整的信号完整性测试环境。测试控制系统通过SOC处理器内的USB控制器连接两个USB物理层收发器,实现与待测接口链路的收发互连,从而构成完整的USB通路以保证USB接口的正常收发通信。不启动SI测试时,待测接口即为标准的USB接口,可配置支持USB2.0或USB3.0,同时既可作为host主机端也可device设备端;如需进行SI测试时,启动测试则开始相应的码型发送测试,测试停止或掉电后可恢复正常USB模式,不影响USB接口正常使用。另外测试控制系统的用户交互接口采用SOC系统自带串口,不启动测试时作为标准调试口使用。The USB physical layer transceiver and USB3.0 connector constitute the USB interface link to be tested. The connector of this interface is connected to the oscilloscope through the fixture to build a complete signal integrity test environment. The test control system connects two USB physical layer transceivers through the USB controller in the SOC processor to realize the transceiver interconnection with the interface link to be tested, thus forming a complete USB path to ensure the normal transceiver communication of the USB interface. When the SI test is not started, the interface to be tested is a standard USB interface, which can be configured to support USB2.0 or USB3.0, and can be used as a host or a device at the same time; Start the corresponding pattern sending test, and the normal USB mode can be restored after the test is stopped or the power is lost, without affecting the normal use of the USB interface. In addition, the user interaction interface of the test control system adopts the serial port of the SOC system, which is used as a standard debugging port when the test is not started.
FPGA加速卡USB3.0接口SI测试控制系统的整个工作流程:The entire workflow of the FPGA accelerator card USB3.0 interface SI test control system:
通过用户交互接口启动测试,进入测试模式,选择待测接口链路;USB模式配置单元将USB控制器配置成USB3.0,host主机模式,以进行host端发送测试,如有需要也可通过该单元使用相应命令调节驱动能力及加重等参数;用户交互接口输入测试码型对应的代码,根据实际测试需求可选CP0-CP8九种任意一种标准码型;码型选择单元根据交互接口所输入的码型信息,经过判断校验后,进入相应的码型处理环节;码型切换处理单元根据码型选择单元的指令,按照码型跳转状态机的工作机制产生相应码型的配置信息,输出给USB控制器,完成码型切换处理;USB控制器根据来源于USB模式配置单元和码型切换处理单元的配置信息,工作在相应模式,通过发送端口输出配置信息所对应的码型,输出到待测接口;待测接口输出标准码型到示波器,测试眼图完成USB3.0 TX信号完整性测试。Start the test through the user interaction interface, enter the test mode, and select the interface link to be tested; the USB mode configuration unit configures the USB controller as USB3. The unit uses corresponding commands to adjust parameters such as driving capability and emphasis; the user interaction interface inputs the code corresponding to the test pattern, and any of the nine standard patterns of CP0-CP8 can be selected according to the actual test requirements; the pattern selection unit is input according to the interactive interface. After the code pattern information is judged and verified, it enters the corresponding code pattern processing link; the code pattern switching processing unit generates the configuration information of the corresponding pattern according to the instruction of the pattern selection unit and the working mechanism of the pattern jump state machine, Output to the USB controller to complete the pattern switching process; the USB controller works in the corresponding mode according to the configuration information from the USB mode configuration unit and the pattern switching processing unit, and outputs the pattern corresponding to the configuration information through the sending port, and outputs to the interface to be tested; the interface to be tested outputs the standard pattern to the oscilloscope, and the eye diagram is tested to complete the USB3.0 TX signal integrity test.
实施例四Embodiment Four
本发明技术方案还提供一种FPGA加速卡高速接口SI测试方法,基于实施例三所提供的FPGA加速卡高速接口SI测试系统的测试方法,包括如下步骤:The technical scheme of the present invention also provides a kind of FPGA accelerator card high-speed interface SI test method, based on the test method of the FPGA accelerator card high-speed interface SI test system provided by embodiment three, comprising the following steps:
步骤1:通过用户交互接口启动测试,进入测试模式,选择第一待测接口链路或第二待测接口链路;Step 1: Start the test through the user interaction interface, enter the test mode, and select the first interface link to be tested or the second interface link to be tested;
步骤2:USB模式配置单元将USB控制器配置成USB3.0,host主机模式,以进行host端发送测试;Step 2: The USB mode configuration unit configures the USB controller to be USB3.0, host host mode, so as to carry out the host terminal sending test;
步骤3:通过用户交互接口输入测试码型对应的码型信息;Step 3: Input the code pattern information corresponding to the test pattern through the user interaction interface;
步骤4:码型选择单元根据用户交互接口所输入的码型信息,经过判断校验后,输出指令进入相应的码型处理环节;Step 4: The code pattern selection unit outputs instructions to enter the corresponding code pattern processing link after judgment and verification according to the code pattern information input by the user interaction interface;
步骤5:码型切换处理单元根据码型选择单元的指令,按照码型跳转状态机的工作机制产生相应码型的配置信息输出给USB控制器完成码型切换处理;Step 5: the code type switching processing unit generates the configuration information of the corresponding code type according to the instruction of the code type selection unit according to the working mechanism of the code type jump state machine and outputs it to the USB controller to complete the code type switching process;
步骤6:USB控制器根据来源于USB模式配置单元和码型切换处理单元的配置信息工作在相应模式,通过发送端口输出配置信息所对应的码型输出到步骤1中所选择的待测接口链路;Step 6: The USB controller works in the corresponding mode according to the configuration information from the USB mode configuration unit and the code switching processing unit, and outputs the code pattern corresponding to the configuration information through the sending port to the interface chain to be tested selected in step 1 road;
步骤7:待测接口链路输出标准码型到示波器,测试眼图完成USB3.0 TX信号完整性测试;Step 7: The interface link to be tested outputs the standard code pattern to the oscilloscope, and the eye diagram is tested to complete the USB3.0 TX signal integrity test;
步骤8:输入的码型测试完毕后,跳转回步骤3进行下一种码型测试。Step 8: After the input code pattern test is completed, jump back to step 3 for the next code pattern test.
注释:Notes:
尽管通过参考附图并结合优选实施例的方式对本发明进行了详细描述,但本发明并不限于此。在不脱离本发明的精神和实质的前提下,本领域普通技术人员可以对本发明的实施例进行各种等效的修改或替换,而这些修改或替换都应在本发明的涵盖范围内/任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。Although the present invention has been described in detail in conjunction with preferred embodiments with reference to the accompanying drawings, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, those skilled in the art can make various equivalent modifications or replacements to the embodiments of the present invention, and these modifications or replacements should be within the scope of the present invention/any Those skilled in the art 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 determined by the protection scope of the claims.
Claims (6)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910996218.XA CN111008102B (en) | 2019-10-18 | 2019-10-18 | FPGA accelerator card high-speed interface SI test control device, system and method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910996218.XA CN111008102B (en) | 2019-10-18 | 2019-10-18 | FPGA accelerator card high-speed interface SI test control device, system and method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111008102A CN111008102A (en) | 2020-04-14 |
| CN111008102B true CN111008102B (en) | 2023-01-10 |
Family
ID=70111329
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910996218.XA Active CN111008102B (en) | 2019-10-18 | 2019-10-18 | FPGA accelerator card high-speed interface SI test control device, system and method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111008102B (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113204452B (en) * | 2021-04-23 | 2023-01-10 | 山东英信计算机技术有限公司 | Method, system and medium for measuring high-speed signal |
| CN113691351A (en) * | 2021-08-19 | 2021-11-23 | 广州慧睿思通科技股份有限公司 | Data transmission method, device, equipment and storage medium based on high-speed interface |
| CN114185603B (en) * | 2021-11-08 | 2024-01-05 | 深圳云天励飞技术股份有限公司 | Control method of intelligent accelerator card, server and intelligent accelerator card |
| CN114935716A (en) * | 2022-05-24 | 2022-08-23 | 中国电子科技集团公司第五十八研究所 | An ATE-based FPGA-embedded SERDES test system and method |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106294055A (en) * | 2016-08-04 | 2017-01-04 | 浪潮电子信息产业股份有限公司 | The measuring signal integrality equipment of a kind of USB link, system and method |
| CN107783871A (en) * | 2017-10-19 | 2018-03-09 | 郑州云海信息技术有限公司 | A kind of usb signal uniformity pattern switch, test system |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9411701B2 (en) * | 2013-03-13 | 2016-08-09 | Xilinx, Inc. | Analog block and test blocks for testing thereof |
-
2019
- 2019-10-18 CN CN201910996218.XA patent/CN111008102B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106294055A (en) * | 2016-08-04 | 2017-01-04 | 浪潮电子信息产业股份有限公司 | The measuring signal integrality equipment of a kind of USB link, system and method |
| CN107783871A (en) * | 2017-10-19 | 2018-03-09 | 郑州云海信息技术有限公司 | A kind of usb signal uniformity pattern switch, test system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111008102A (en) | 2020-04-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111008102B (en) | FPGA accelerator card high-speed interface SI test control device, system and method | |
| CN103248537B (en) | FC-AE-1553 based mixed avionics system tester | |
| CN107907814B (en) | Method for improving mass production test efficiency of chips | |
| CN101706762A (en) | Intelligent type signal transfer system | |
| CN110795317A (en) | Method and system for realizing lighting of self-adaptive hard disk backboard by using CPLD (complex programmable logic device) | |
| CN100476837C (en) | A Microprocessor FPGA Verification Device Supporting Random Instruction Test | |
| CN109828872A (en) | Signal-testing apparatus and method | |
| CN109885905B (en) | Verification system for improving function verification efficiency of digital circuit | |
| CN108646172B (en) | Chip testing device | |
| CN116028409B (en) | Adapter card, mainboard, computer, data transmission method, equipment and medium | |
| WO2016184170A1 (en) | Smi interface device debugging apparatus and method, and storage medium | |
| CN107273249A (en) | Motherboard test method, processor and main board testing system | |
| CN113986600B (en) | Test method and device for chip serial interface and chip | |
| CN113630294B (en) | Switch modularization detection method and device | |
| CN101739336A (en) | Debugging system, debugging method and debugging control program | |
| CN102929651B (en) | Chip-array-based on-line loading system and loading method thereof | |
| WO2021248933A1 (en) | Server jtag component adaptive interconnection system and method | |
| CN108536557A (en) | A kind of server S MBUS scanning means and method | |
| CN209765501U (en) | JTAG-based multiprocessor simulation debugging device | |
| CN119201357A (en) | Computer Systems | |
| CN118264554A (en) | Cable test system configuration method and system | |
| CN114996177B (en) | System, method and server for accessing Flash chip of management board | |
| US20030225566A1 (en) | JTAG server | |
| CN218676021U (en) | Switching device and storage system sharing USB interface | |
| CN116107827A (en) | Software debugging system and method for small chip with built-in MCU unit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address |
Address after: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province Patentee after: Suzhou Yuannao Intelligent Technology Co.,Ltd. Country or region after: China Address before: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province Patentee before: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd. Country or region before: China |