Field programmable gate array software asynchronous communication rate offset detection method and device

By determining the first rate based on the preset rate step length and range in a digital simulation environment, and performing excitation signal input and preprocessing, the problem of difficulty in detecting asynchronous communication rate offset in the prior art is solved, and rapid , accurate test results.

CN119484359AActive Publication Date: 2025-02-18THE GENERAL DESIGNING INST OF HUBEI SPACE TECH ACAD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411430814.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-14
Publication Date
2025-02-18
Estimated Expiration
2044-10-14

AI Technical Summary

Technical Problem

The prior art is difficult to quickly and accurately detect the asynchronous communication rate offset of field programmable gate array software, resulting in data bit loss, frame loss, packet loss and other problems in extreme cases.

Method used

In a digital simulation environment, several first rates are determined based on the preset rate step length and the preset rate range, and excitation signal input and preprocessing are performed for each first rate, and the preprocessed data frame and test frame are determined whether the preprocessed data frame and the test frame are determined. Consistently, the passing rate and corresponding rate offset difference and proportion are recorded.

Benefits of technology

It realizes a quick understanding of the boundary of the asynchronous communication rate of FPGA software, reduces the testing cost, avoids damage to actual board equipment, and improves the testing efficiency and effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484359A_ABST
    Figure CN119484359A_ABST
Patent Text Reader

Abstract

The invention discloses an asynchronous communication rate offset detection method and device for field-programmable gate array software, and belongs to the technical field of field-programmable gate array software verification. The method comprises the following steps: determining a plurality of first rates based on a preset rate stepping length and a preset rate range; aiming at each first rate, executing the following steps: in a digital simulation environment, inputting an excitation signal to the tested piece module according to the first rate, preprocessing the received excitation signal by the tested piece module to obtain a preprocessed data frame, judging whether the preprocessed data frame is consistent with the test frame or not, and if yes, executing the following steps; the content transmitted in the excitation signal is the encoded test frame; if not, determining that the offset detection result of the first rate is not passed; and if the first rate is consistent with the theoretical rate, determining that the offset detection result of the first rate is passed, and recording the first rate, the theoretical rate, the rate offset difference value and the rate offset proportion, so that related personnel can quickly know the asynchronous communication rate boundary condition of the FPGA software.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of field programmable gate array software verification, and in particular to a method, device, equipment and computer-readable storage medium for detecting asynchronous communication rate offset of field programmable gate array software. Background Art

[0002] With the development of digital electronic technology and chips, field programmable gate arrays (FPGAs) are increasingly used in digital circuits. Asynchronous communication is a common communication method between FPGA software and other chips. Due to various reasons, the rate of asynchronous communication may deviate from the theoretical value, and in some extreme cases, it may even cause data bit loss, frame loss, packet loss, etc. How to quickly and accurately detect the asynchronous communication rate deviation of FPGA software has become an urgent problem to be solved. In the related art, the communication rate is determined by detecting the start bit and the edge of the data bit of the serial interface of asynchronous communication. However, this method can only obtain the communication rate of the sending end of asynchronous communication, that is, only one communication rate can be obtained, which makes it impossible for relevant personnel to understand the boundary of the asynchronous communication rate of the FPGA software. Summary of the invention

[0003] The present application provides a field programmable gate array software asynchronous communication rate offset detection method, device, equipment and computer-readable storage medium, which can solve the technical problem in the prior art that relevant personnel cannot understand the boundary conditions of the FPGA software asynchronous communication rate.

[0004] In a first aspect, an embodiment of the present application provides a method for detecting a software asynchronous communication rate offset of a field programmable gate array, the method comprising:

[0005] Determine a plurality of first rates based on a preset rate step length and a preset rate range, wherein the preset rate range is a preset asynchronous communication rate range of the field programmable gate array software to be tested, and the preset rate range is determined based on a theoretical rate of the field programmable gate array software communication and a preset offset parameter;

[0006] For each first rate, perform the following steps:

[0007] In a digital simulation environment, an excitation signal is input to a device under test module at a first rate. After the device under test module receives the excitation signal, the device under test module preprocesses the received excitation signal to obtain a preprocessed data frame, and determines whether the preprocessed data frame is consistent with a test frame. The excitation signal is generated by a test data driving module, and the content transmitted in the excitation signal is an encoded test frame. The device under test module is a field programmable gate array software to be tested.

[0008] If they are inconsistent, determining that the offset detection result of the first rate is failed;

[0009] If they are consistent, it is determined that the offset detection result of the first rate is passed, and the first rate, the theoretical rate, the rate offset difference of the first rate relative to the theoretical rate, and the rate offset ratio relative to the theoretical rate are recorded.

[0010] In combination with the first aspect, in one implementation, the first rates are determined based on the preset rate step length and the preset rate range, and the corresponding formula is:

[0011] a i+1 =a i +d

[0012] a1=V min

[0013] Where i is a positive integer, a i is the i-th first rate, and the maximum value of i is when a i ≤V max And a i+1 >V max The value of i at the time, V min is the lower limit of the preset rate range, V max is the upper limit of the preset rate range, and d is the preset rate step length.

[0014] In combination with the first aspect, in one implementation, the process of generating the excitation signal includes:

[0015] The test data driving module generates asynchronous communication interface data and uses the asynchronous communication interface data as an excitation signal.

[0016] In combination with the first aspect, in one implementation, determining whether the preprocessed data frame is consistent with the test frame includes:

[0017] Determine whether the value of each data bit in the preprocessed data frame is the same as the value of the corresponding data bit in the test frame;

[0018] If the value of each data bit in the preprocessed data frame is the same as the value of the corresponding data bit in the test frame, then it is determined that the preprocessed data frame is consistent with the test frame, otherwise they are inconsistent.

[0019] In combination with the first aspect, in one implementation, the preprocessing includes decoding.

[0020] In a second aspect, an embodiment of the present application provides a field programmable gate array software asynchronous communication rate offset detection device, the field programmable gate array software asynchronous communication rate offset detection device comprising:

[0021] A determination module, configured to determine a plurality of first rates based on a preset rate step length and a preset rate range, wherein the preset rate range is a preset asynchronous communication rate range of the field programmable gate array software to be tested, and the preset rate range is determined based on a theoretical rate of the field programmable gate array software communication and a preset offset parameter;

[0022] The determination module is configured to perform the following steps for each first rate:

[0023] In a digital simulation environment, an excitation signal is input to a device under test module at a first rate. After the device under test module receives the excitation signal, the device under test module preprocesses the received excitation signal to obtain a preprocessed data frame, and determines whether the preprocessed data frame is consistent with a test frame. The excitation signal is generated by a test data driving module, and the content transmitted in the excitation signal is an encoded test frame. The device under test module is a field programmable gate array software to be tested.

[0024] If they are inconsistent, determining that the offset detection result of the first rate is failed;

[0025] If they are consistent, it is determined that the offset detection result of the first rate is passed, and the first rate, the theoretical rate, the rate offset difference of the first rate relative to the theoretical rate, and the rate offset ratio relative to the theoretical rate are recorded.

[0026] In conjunction with the second aspect, in one implementation, the judgment module is specifically configured to:

[0027] Determine whether the value of each data bit in the preprocessed data frame is the same as the value of the corresponding data bit in the test frame;

[0028] If the value of each data bit in the preprocessed data frame is the same as the value of the corresponding data bit in the test frame, then it is determined that the preprocessed data frame is consistent with the test frame, otherwise they are inconsistent.

[0029] In conjunction with the second aspect, in one implementation, the preprocessing includes decoding.

[0030] In a third aspect, an embodiment of the present application provides a field programmable gate array software asynchronous communication rate offset detection device, the field programmable gate array software asynchronous communication rate offset detection device comprising a processor, a memory, and a field programmable gate array software asynchronous communication rate offset detection program stored in the memory and executable by the processor, wherein when the field programmable gate array software asynchronous communication rate offset detection program is executed by the processor, the steps of the field programmable gate array software asynchronous communication rate offset detection method as described in any one of the first aspects are implemented.

[0031] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a field programmable gate array software asynchronous communication rate offset detection program is stored. When the field programmable gate array software asynchronous communication rate offset detection program is executed by a processor, the steps of the field programmable gate array software asynchronous communication rate offset detection method as described in any one of the first aspects are implemented.

[0032] The beneficial effects brought by the technical solution provided in the embodiments of the present application include:

[0033] By determining a plurality of first rates based on a preset rate step length and a preset rate range, the preset rate range is a preset asynchronous communication rate range of the field programmable gate array software to be tested, and the preset rate range is determined based on a theoretical rate of the field programmable gate array software communication and a preset offset parameter; for each first rate, performing the following steps: in a digital simulation environment, inputting an excitation signal to a device under test module at the first rate, after the device under test module receives the excitation signal, the device under test module preprocesses the received excitation signal to obtain a preprocessed data frame, and determining whether the preprocessed data frame is consistent with the test frame, the excitation signal is generated by a test data driving module, and the content transmitted in the excitation signal is an encoded test frame, The module under test is the field programmable gate array software to be tested; if they are inconsistent, the offset detection result of the first rate is determined to be failed; if they are consistent, the offset detection result of the first rate is determined to be passed, and the first rate, theoretical rate, the rate offset difference of the first rate relative to the theoretical rate and the rate offset ratio relative to the theoretical rate are recorded. This method relies on a digital simulation environment and has a low testing cost; no physical equipment is required and no damage is caused to the actual board equipment; this method can not only perform relevant tests before deploying the program on the actual chip, but can also be applied in the actual development process; the use of automated testing releases human resources and improves testing results, so that relevant personnel can quickly understand the boundary conditions of the asynchronous communication rate of the FPGA software. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1A block diagram of the field programmable gate array software asynchronous communication rate deviation detection principle provided by one embodiment of the present application;

[0035] Figure 2 This is a flow chart of the first embodiment of the method for detecting asynchronous communication rate deviation of field programmable gate array software of the present application;

[0036] Figure 3 This is a functional module diagram of an embodiment of a field programmable gate array software asynchronous communication rate deviation detection device of the present application;

[0037] Figure 4 This is a schematic diagram of the hardware structure of a field programmable gate array software asynchronous communication rate offset detection device involved in the embodiment of the present application. DETAILED DESCRIPTION

[0038] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0039] The field programmable gate array software asynchronous communication rate offset detection method provided in the present application is completed in a fully digital simulation environment. The tester builds a test platform in the fully digital simulation environment to effectively combine the functions of the device under test module, test data drive module, detector, data comparison module, scoreboard, etc., thereby completing the automated test of the asynchronous communication rate offset. Figure 1 A principle block diagram of field programmable gate array software asynchronous communication rate offset detection provided by one embodiment of the present application.

[0040] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0041] In a first aspect, an embodiment of the present application provides a method for detecting a software asynchronous communication rate offset of a field programmable gate array.

[0042] In one embodiment, referring to Figure 2 , Figure 2 This is a flow chart of the first embodiment of the method for detecting asynchronous communication rate deviation of field programmable gate array software of the present application. Figure 2 As shown, the field programmable gate array software asynchronous communication rate deviation detection method includes:

[0043] Step 210: determining a plurality of first rates based on a preset rate step length and a preset rate range, wherein the preset rate range is a preset asynchronous communication rate range of the field programmable gate array software to be tested, and the preset rate range is determined based on a theoretical rate of the field programmable gate array software communication and a preset offset parameter;

[0044] During specific implementation, the tester configures the theoretical rate, preset rate step length, preset rate range, preset offset parameter and data frame of the field programmable gate array software asynchronous communication interface to be tested. Exemplarily, when the theoretical rate of the field programmable gate array software asynchronous communication is set to 10000bps, the preset offset parameter is 5%, then the lower limit of the preset rate range determined based on the theoretical rate of the field programmable gate array software asynchronous communication and the preset offset parameter is 10000*(1-5%)=9500bps, and the upper limit of the preset rate range determined is 10000*(1+5%)=10500bps.

[0045] The preset rate range is a preset asynchronous communication rate range of the field programmable gate array software to be tested, and the first rate is an asynchronous communication rate determined from the preset rate range according to the preset rate step length.

[0046] A plurality of first rates are determined from a preset rate range according to a preset rate step length, so as to subsequently determine whether the offset detection result of each first rate passes.

[0047] Further, in one embodiment, the first rates are determined based on the preset rate step length and the preset rate range, and the corresponding formula is:

[0048] a i+1 =a i +d

[0049] a1=V min

[0050] Where i is a positive integer, a i is the i-th first rate, and the maximum value of i is when a i ≤V max And a i+1 >V max The value of i at the time, V min is the lower limit of the preset rate range, V max is the upper limit of the preset rate range, and d is the preset rate step length.

[0051] In specific implementation, several first rates are determined from a preset rate range according to the preset rate step length. For example, the preset rate range is [9500, 10500], d=10 is taken, and several first rates are determined as a1=9500, a2=9510, a3=9520...; preferably, d=1 is taken, and several first rates are determined as a1=9500, a2=9501, a3=9502...

[0052] In this embodiment, when the rate range is set to be relatively large, a plurality of first rates can be automatically determined by the above formula, which can improve the efficiency of determining the first rate.

[0053] Step 220: For each first rate, perform the following steps:

[0054] In a digital simulation environment, an excitation signal is input to a device under test module at a first rate. After the device under test module receives the excitation signal, the device under test module preprocesses the received excitation signal to obtain a preprocessed data frame, and determines whether the preprocessed data frame is consistent with a test frame. The excitation signal is generated by a test data driving module, and the content transmitted in the excitation signal is an encoded test frame. The device under test module is a field programmable gate array software to be tested.

[0055] If they are inconsistent, determining that the offset detection result of the first rate is failed;

[0056] If they are consistent, it is determined that the offset detection result of the first rate is passed, and the first rate, the theoretical rate, the rate offset difference of the first rate relative to the theoretical rate, and the rate offset ratio relative to the theoretical rate are recorded.

[0057] In specific implementation, after the tester completes the parameter configuration and runs the test, the software automatically determines several first rates, and for each first rate, performs the following steps:

[0058] The test data driving module generates an excitation signal, and inputs the excitation signal to the design under test module at a first rate, and simultaneously sends the data frame to the data comparison module;

[0059] After receiving the excitation signal, the DUT module performs preprocessing such as decoding on the received excitation signal to obtain a preprocessed data frame, and inputs the preprocessed data frame into the detector module. It should be noted that the preprocessing in this application includes but is not limited to decoding.

[0060] The detector module inputs the received pre-processed data frame into the data comparison module;

[0061] The data comparison module compares the preprocessed data frame with the test frame to determine whether the preprocessed data frame is consistent with the test frame. If the preprocessed data frame is inconsistent with the test frame, it means that there is data bit loss, frame loss, packet loss, etc., and the communication fails. At this time, the offset detection result of the first rate is determined to be failed, and the data related to the first rate is not recorded; if the preprocessed data frame is consistent with the test frame, it means that there is no data bit loss, frame loss, packet loss, etc., and the communication is successful. At this time, the offset detection result of the first rate is determined to be passed, and the detection result is transmitted to the scoreboard module;

[0062] The scoreboard module is responsible for recording the first rate, the theoretical rate, the rate offset difference of the first rate relative to the theoretical rate, and the rate offset ratio relative to the theoretical rate, and forming a text document.

[0063] Exemplarily, the preset rate range is [9500, 10500], d=1 is taken, and the excitation signal is first input to the design under test (DUT) module at the first rate a1=9500; after the DUT module receives the excitation signal, the excitation signal received by the DUT module is decoded and other preprocessed to obtain a preprocessed data frame; and further, it is determined whether the preprocessed data frame is consistent with the test frame. If the preprocessed data frame is inconsistent with the test frame, the offset detection result of the first rate 9500 is determined to be failed, and the data related to the first rate is not recorded; if the preprocessed data frame is consistent with the test frame, the offset detection result of 9500 is determined to be passed, and the first rate 9500, the theoretical rate 10000, the rate offset difference of the first rate relative to the theoretical rate and the rate offset ratio relative to the theoretical rate are recorded. At this time, the rate offset difference of the first rate relative to the theoretical rate, that is, the rate offset difference of 9500 relative to 10000, is 500, and the rate offset ratio of the first rate relative to the theoretical rate, that is, the rate offset ratio of 9500 relative to 10000 is -5%.

[0064] Then, the excitation signal is input to the DUT module according to the first rate a2=9501; after the DUT module receives the excitation signal, the excitation signal received by the DUT module is decoded and other preprocessed to obtain a preprocessed data frame; and it is determined whether the preprocessed data frame is consistent with the test frame. If the preprocessed data frame is inconsistent with the test frame, the offset detection result of the first rate 9501 is determined to be unpassed, and the data related to the first rate is not recorded; if the preprocessed data frame is consistent with the test frame, the offset detection result of 9501 is determined to be passed, and the first rate 9501, the theoretical rate 10000, the rate offset difference of the first rate relative to the theoretical rate, and the rate offset ratio relative to the theoretical rate are recorded. At this time, the rate offset difference of the first rate relative to the theoretical rate is 499, and the rate offset ratio of the first rate relative to the theoretical rate is -4.99%.

[0065] Then, repeat the above steps to determine the offset detection results of the first rates a3=9502, a4=9503, a5=9504, etc. respectively until a i The maximum value of i satisfies a i ≤V max And a i+1 >V max The test ends when

[0066] Assuming that 800 first rate offset detection results pass, there are 800 data in the recorded data, each of which records the first rate, theoretical rate, the offset difference of the first rate relative to the theoretical rate, and the offset ratio. All the recorded data are finally stored in a text file for testers and designers to analyze and understand the boundary conditions of the FPGA software asynchronous communication rate.

[0067] In this embodiment, a plurality of first rates are determined based on a preset rate step length and a preset rate range, wherein the preset rate range is a preset asynchronous communication rate range of the field programmable gate array software to be tested, and the preset rate range is determined based on a theoretical rate of the field programmable gate array software communication and a preset offset parameter; for each first rate, the following steps are performed: in a digital simulation environment, an excitation signal is input to a device under test module at the first rate, after the device under test module receives the excitation signal, the device under test module pre-processes the received excitation signal to obtain a pre-processed data frame, and determines whether the pre-processed data frame is consistent with the test frame, wherein the excitation signal is generated by a test data driving module, and the content transmitted in the excitation signal is the encoded test frame. Test frame, the module under test is the field programmable gate array software to be tested; if they are inconsistent, the offset detection result of the first rate is determined to be failed; if they are consistent, the offset detection result of the first rate is determined to be passed, and the first rate, theoretical rate, the rate offset difference of the first rate relative to the theoretical rate and the rate offset ratio relative to the theoretical rate are recorded. This method relies on a digital simulation environment and has a low test cost; no physical equipment is required and no damage is caused to the actual board equipment; this method can not only perform relevant tests before deploying the program on the actual chip, but can also be applied in the actual development process; the use of automated testing releases human resources and improves test results, so that relevant personnel can quickly understand the boundary conditions of the asynchronous communication rate of the FPGA software.

[0068] Furthermore, in one embodiment, the process of generating the excitation signal includes:

[0069] The test data driving module generates asynchronous communication interface data and uses the asynchronous communication interface data as an excitation signal.

[0070] It can be understood that the communication protocol of the field programmable gate array software to be tested needs to be predefined, wherein the data format of the asynchronous communication is clearly defined.

[0071] The test data driving module generates asynchronous communication interface data using a hardware description language (such as Verilog or VHDL) according to the asynchronous communication data format defined in the communication protocol of the field programmable gate array software to be tested, and uses the asynchronous communication interface data as an excitation signal.

[0072] In this embodiment, the test data driving module generates asynchronous communication interface data, and uses the asynchronous communication interface data as an excitation signal. Since the time calculation accuracy in the simulation test environment is at the picosecond level, the asynchronous communication rate offset detection result of the field programmable gate array software is more accurate.

[0073] Further, in one embodiment, the determining whether the preprocessed data frame is consistent with the test frame includes:

[0074] Step 310: determine whether the value of each data bit in the preprocessed data frame is the same as the value of the corresponding data bit in the test frame;

[0075] Step 320: If the value of each data bit in the preprocessed data frame is the same as the value of the corresponding data bit in the test frame, it is determined that the preprocessed data frame is consistent with the test frame, otherwise they are inconsistent.

[0076] The structure of a data frame generally includes a frame header, a data portion, and a frame trailer. The data bits in a data frame are the number of bits that make up the data portion of the data frame. The tester pre-configures the test data frame according to the communication protocol of the field programmable gate array software to be tested.

[0077] Exemplarily, the values ​​of the 6 data bits in the data frame pre-configured for testing are 1, 0, 0, 0, 0, 1, respectively. First, it is determined whether the value of each data bit in the preprocessed data frame is the same as the value of the corresponding data bit in the test frame; if the value of each data bit in the preprocessed data frame is 0, 0, 0, 0, 0, 1, that is, the value of each data bit in the preprocessed data frame is different from the value of the corresponding data bit in the test frame, then it is determined that the preprocessed data frame is inconsistent with the test frame; if the value of each data bit in the preprocessed data frame is 1, 0, 0, 0, 0, 1, that is, the value of each data bit in the preprocessed data frame is the same as the value of the corresponding data bit in the test frame, then it is determined that the preprocessed data frame is consistent with the test frame.

[0078] In this embodiment, it is determined whether the value of each data bit in the preprocessed data frame is the same as the value of the corresponding data bit in the test frame; if the value of each data bit in the preprocessed data frame is the same as the value of the corresponding data bit in the test frame, then the preprocessed data frame is determined to be consistent with the test frame, otherwise they are inconsistent, thus laying the foundation for determining the FPGA software asynchronous communication rate offset detection result.

[0079] In a second aspect, an embodiment of the present application also provides a field programmable gate array software asynchronous communication rate offset detection device.

[0080] In one embodiment, referring to Figure 3 , Figure 3 This is a functional module diagram of an embodiment of a field programmable gate array software asynchronous communication rate deviation detection device of the present application. Figure 3 As shown, the field programmable gate array software asynchronous communication rate deviation detection device 300 includes:

[0081] A determination module 301 is used to determine a plurality of first rates based on a preset rate step length and a preset rate range, wherein the preset rate range is a preset asynchronous communication rate range of the field programmable gate array software to be tested, and the preset rate range is determined based on a theoretical rate of the field programmable gate array software communication and a preset offset parameter;

[0082] The determination module 302 is configured to perform the following steps for each first rate:

[0083] In a digital simulation environment, an excitation signal is input to a device under test module at a first rate. After the device under test module receives the excitation signal, the device under test module preprocesses the received excitation signal to obtain a preprocessed data frame, and determines whether the preprocessed data frame is consistent with a test frame. The excitation signal is generated by a test data driving module, and the content transmitted in the excitation signal is an encoded test frame. The device under test module is a field programmable gate array software to be tested.

[0084] If they are inconsistent, determining that the offset detection result of the first rate is failed;

[0085] If they are consistent, it is determined that the offset detection result of the first rate is passed, and the first rate, the theoretical rate, the rate offset difference of the first rate relative to the theoretical rate, and the rate offset ratio relative to the theoretical rate are recorded.

[0086] Furthermore, in one embodiment, the determining module is specifically configured to determine a plurality of first rates according to the following formula:

[0087] a i+1 =a i +d

[0088] a1=V min

[0089] Where i is a positive integer, a i is the i-th first rate, and the maximum value of i is when a i ≤V max And a i+1 >V max The value of i at the time, V min is the lower limit of the preset rate range, V max is the upper limit of the preset rate range, and d is the preset rate step length.

[0090] Furthermore, in one embodiment, the judgment module is specifically used for:

[0091] Determine whether the value of each data bit in the preprocessed data frame is the same as the value of the corresponding data bit in the test frame;

[0092] If the value of each data bit in the preprocessed data frame is the same as the value of the corresponding data bit in the test frame, then it is determined that the preprocessed data frame is consistent with the test frame, otherwise they are inconsistent.

[0093] Furthermore, in one embodiment, the process of generating the excitation signal includes:

[0094] The test data driving module generates asynchronous communication interface data and uses the asynchronous communication interface data as an excitation signal.

[0095] Furthermore, in one embodiment, the preprocessing includes decoding.

[0096] Among them, the functional implementation of each module in the above-mentioned field programmable gate array software asynchronous communication rate offset detection device corresponds to the various steps in the above-mentioned field programmable gate array software asynchronous communication rate offset detection method embodiment, and its functions and implementation processes are no longer repeated here one by one.

[0097] In the third aspect, an embodiment of the present application provides a field programmable gate array software asynchronous communication rate offset detection device, which can be a personal computer (PC), a laptop computer, a server, or other device that can run a digital simulation environment and has data processing capabilities.

[0098] Reference Figure 4 , Figure 4 The hardware structure diagram of the field programmable gate array software asynchronous communication rate deviation detection device involved in the embodiment of the present application is shown in FIG. In the embodiment of the present application, the field programmable gate array software asynchronous communication rate deviation detection device may include a processor, a memory, a communication interface and a communication bus.

[0099] The communication bus may be of any type and is used to interconnect the processor, the memory, and the communication interface.

[0100] The communication interface includes an input / output (I / O) interface, a physical interface, and a logical interface, which are used to interconnect the devices inside the field programmable gate array software asynchronous communication rate deviation detection device, and an interface used to interconnect the field programmable gate array software asynchronous communication rate deviation detection device with other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, an optical fiber interface, an ATM interface, etc.; the user device can be a display, a keyboard, etc.

[0101] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.

[0102] The processor may be a general-purpose processor, and the general-purpose processor may call the field programmable gate array software asynchronous communication rate offset detection program stored in the memory, and execute the field programmable gate array software asynchronous communication rate offset detection method provided in the embodiment of the present application. For example, the general-purpose processor may be a central processing unit (CPU). The method executed when the field programmable gate array software asynchronous communication rate offset detection program is called may refer to the various embodiments of the field programmable gate array software asynchronous communication rate offset detection method of the present application, and will not be repeated here.

[0103] Those skilled in the art will understand that Figure 4 The hardware structure shown in the figure does not constitute a limitation on the present application, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0104] In a fourth aspect, an embodiment of the present application also provides a computer-readable storage medium.

[0105] The computer-readable storage medium of the present application stores a field programmable gate array software asynchronous communication rate offset detection program, wherein when the field programmable gate array software asynchronous communication rate offset detection program is executed by a processor, the steps of the field programmable gate array software asynchronous communication rate offset detection method as described above are implemented.

[0106] Among them, the method implemented when the field programmable gate array software asynchronous communication rate offset detection program is executed can refer to the various embodiments of the field programmable gate array software asynchronous communication rate offset detection method of the present application, and will not be repeated here.

[0107] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.

[0108] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.

[0109] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.

[0110] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.

[0111] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.

[0112] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.

[0113] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for detecting a rate deviation of asynchronous communication of field programmable gate array software, characterized in that: The field programmable gate array software asynchronous communication rate offset detection method comprises: Determine a plurality of first rates based on a preset rate step length and a preset rate range, wherein the preset rate range is a preset asynchronous communication rate range of the field programmable gate array software to be tested, and the preset rate range is determined based on a theoretical rate of the field programmable gate array software communication and a preset offset parameter; For each first rate, perform the following steps: In a digital simulation environment, an excitation signal is input to a device under test module at a first rate. After the device under test module receives the excitation signal, the device under test module preprocesses the received excitation signal to obtain a preprocessed data frame, and determines whether the preprocessed data frame is consistent with a test frame. The excitation signal is generated by a test data driving module, and the content transmitted in the excitation signal is an encoded test frame. The device under test module is a field programmable gate array software to be tested. If they are inconsistent, determining that the offset detection result of the first rate is failed; If they are consistent, it is determined that the offset detection result of the first rate is passed, and the first rate, the theoretical rate, the rate offset difference of the first rate relative to the theoretical rate, and the rate offset ratio relative to the theoretical rate are recorded.

2. The method for detecting a field programmable gate array software asynchronous communication rate deviation according to claim 1, wherein: The first rates are determined based on the preset rate step length and the preset rate range, and the corresponding formula is: a i+1 =a i +d a1=V min Where i is a positive integer, a i is the i-th first rate, and the maximum value of i is when a i ≤V max And a i+1 >V max The value of i at the time, V min is the lower limit of the preset rate range, V max is the upper limit of the preset rate range, and d is the preset rate step length.

3. The method for detecting a field programmable gate array software asynchronous communication rate deviation according to claim 1, wherein: The generation process of the excitation signal includes: The test data driving module generates asynchronous communication interface data and uses the asynchronous communication interface data as an excitation signal.

4. The method for detecting a field programmable gate array software asynchronous communication rate deviation according to claim 1, wherein: The determining whether the preprocessed data frame is consistent with the test frame comprises: Determine whether the value of each data bit in the preprocessed data frame is the same as the value of the corresponding data bit in the test frame; If the value of each data bit in the preprocessed data frame is the same as the value of the corresponding data bit in the test frame, then it is determined that the preprocessed data frame is consistent with the test frame, otherwise they are inconsistent.

5. The method for detecting a field programmable gate array software asynchronous communication rate deviation according to claim 1, wherein: The preprocessing includes decoding.

6. A field programmable gate array software asynchronous communication rate deviation detection device, characterized in that: The field programmable gate array software asynchronous communication rate deviation detection device comprises: A determination module, configured to determine a plurality of first rates based on a preset rate step length and a preset rate range, wherein the preset rate range is a preset asynchronous communication rate range of the field programmable gate array software to be tested, and the preset rate range is determined based on a theoretical rate of the field programmable gate array software communication and a preset offset parameter; The determination module is configured to perform the following steps for each first rate: In a digital simulation environment, an excitation signal is input to a device under test module at a first rate. After the device under test module receives the excitation signal, the device under test module preprocesses the received excitation signal to obtain a preprocessed data frame, and determines whether the preprocessed data frame is consistent with a test frame. The excitation signal is generated by a test data driving module, and the content transmitted in the excitation signal is an encoded test frame. The device under test module is a field programmable gate array software to be tested. If they are inconsistent, determining that the offset detection result of the first rate is failed; If they are consistent, it is determined that the offset detection result of the first rate is passed, and the first rate, the theoretical rate, the rate offset difference of the first rate relative to the theoretical rate, and the rate offset ratio relative to the theoretical rate are recorded.

7. The field programmable gate array software asynchronous communication rate deviation detection device according to claim 6, characterized in that: The judgment module is specifically used for: Determine whether the value of each data bit in the preprocessed data frame is the same as the value of the corresponding data bit in the test frame; If the value of each data bit in the preprocessed data frame is the same as the value of the corresponding data bit in the test frame, then it is determined that the preprocessed data frame is consistent with the test frame, otherwise they are inconsistent.

8. The field programmable gate array software asynchronous communication rate deviation detection device as claimed in claim 6, characterized in that: The preprocessing includes decoding.

9. A field programmable gate array software asynchronous communication rate deviation detection device, characterized in that: The field programmable gate array software asynchronous communication rate offset detection device includes a processor, a memory, and a field programmable gate array software asynchronous communication rate offset detection program stored in the memory and executable by the processor, wherein when the field programmable gate array software asynchronous communication rate offset detection program is executed by the processor, the steps of the field programmable gate array software asynchronous communication rate offset detection method as described in any one of claims 1 to 5 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a field programmable gate array software asynchronous communication rate offset detection program, wherein when the field programmable gate array software asynchronous communication rate offset detection program is executed by a processor, the steps of the field programmable gate array software asynchronous communication rate offset detection method as described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Data rate shifting methods and techniques

    CN101163975A

  • Test method, device and system for system under test

    CN109617757A

  • A system and a method for quickly building an FPGA digital simulation model

    CN109739766A

  • Programmable logic device acceleration testing device and method

    CN113032203A

  • Valve base control equipment interface boundary test system and method

    CN117991754A