FPGA prototype verification platform capable of SerDes interface signal recognition
By using the signal state prediction model on the FPGA prototype verification platform to identify and restore the SerDes interface signal, the unsteady output problem caused by the internal design problem of the MGT circuit was solved, and the signal state was clearly grasped and the process optimized.
Patent Information
- Application Number
- CN202211152522.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-21
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-09-21
AI Technical Summary
In the FPGA prototype verification, due to internal design problems of some MGT circuits, the circuit identifies the input as an unsteady state, producing erroneous output results and interfering with the prototype verification process.
Design an FPGA prototype verification platform that can recognize SerDes interface signals. Through the scrambling module, Xilinx MGT sending and receiving module, signal state identification module and descrambling module, the trained signal state prediction model is used to implement the machine learning algorithm based on RTL code. , identify and restore signal status to avoid erroneous output.
It effectively avoids erroneous output due to internal design problems of the MGT circuit, clearly grasps the signal input status, makes timely adjustments, and optimizes the FPGA prototype verification process.
Smart Images

Figure CN115618773B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of integrated circuit design verification, and in particular to an FPGA prototype verification platform capable of identifying SerDes interface signals. Background Art
[0002] In the field of chip design, the cost of taping out a designed chip is very high. Before taping out, it is necessary to verify that the code is fully functional and eliminate all bugs in the front-end logic RTL (Register Transfer Level) design and architecture design. Using a field programmable gate (FPGA) prototype verification platform is the most advanced method for chip verification. FPGA can run the functions of the entire chip at a speed close to the actual chip's working speed. Compared with the speed defects of software simulation work, FPGA prototype verification is more likely to find defects and bugs in RTL design, becoming an important method for large-scale chip verification. Moreover, FPGA can be repeatedly erased and written, and can adapt to repeated iterations of chip design verification.
[0003] As the chip scale becomes larger, a single FPGA cannot carry the entire design, so the design needs to be cut into different FPGAs, and the FPGAs are connected through high-speed interconnect interfaces. For high-speed interfaces, a key issue is parameter configuration. At the FPGA connection, due to internal design problems of some MGT circuits, the circuit recognizes the input as an indeterminate state, which ultimately produces erroneous output results and interferes with prototype verification. Summary of the invention
[0004] In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide an FPGA prototype verification platform capable of SerDes interface signal recognition, so as to solve the above technical problems arising in the prior art.
[0005] To achieve the above-mentioned purpose and other related purposes, the present invention provides an FPGA prototype verification platform capable of SerDes interface signal recognition, the platform comprising: a scrambling module, used to scramble the input serial data received by the SerDes interface to obtain scrambled parallel data; a Xilinx MGT sending module, connected to the scrambling module, used to convert the scrambled parallel data into serial data; a Xilinx MGT receiving module, connected to the Xilinx MGT sending module, used to convert the serial data obtained by the Xilinx MGT sending module into parallel data to obtain signal state recognition input data; a signal state recognition module, connected to the Xilinx MGT receiving module, used to obtain a corresponding signal state recognition result according to the signal state recognition input data based on a trained signal state prediction model; a descrambling module, connected to the Xilinx MGT receiving module and the signal state recognition module, used to display the signal state result, and based on the signal state result, restore the signal state recognition input data to the serial data input to the scrambling module.
[0006] In one embodiment of the present invention, the training method of the signal state prediction model includes: obtaining the signal state prediction model based on a plurality of signal state identification input sample data and a signal state label corresponding to each signal state identification input sample data.
[0007] In one embodiment of the present invention, each signal state identification input sample data is obtained by a serial data received by the SerDes interface and passes through the scrambling module, the Xilinx MGT sending module and the Xilinx MGT receiving module in sequence.
[0008] In one embodiment of the present invention, the training method of the signal state prediction model includes: obtaining a preliminary prediction model based on multiple signal state identification input sample data and signal state labels of each signal state identification input sample data; checking whether the preliminary prediction model meets the error condition and / or the number of learning conditions; if so, using the preliminary prediction model as the signal state prediction model; if not, continuing the next round of learning until the error condition and / or the number of learning conditions are met.
[0009] In an embodiment of the present invention, the signal state recognition result includes: a normal state result and an abnormal state result.
[0010] In an embodiment of the present invention, the abnormal status result includes: a bit error status result or an information loss status result.
[0011] In one embodiment of the present invention, the descrambling module includes: a display submodule for displaying the signal state identification result; and a serial data recovery submodule for recovering the signal state identification input data to serial data before inputting the scrambling module according to the signal state result.
[0012] In one embodiment of the present invention, the serial data recovery submodule includes: an abnormal state correction unit, which is used to correct the signal state identification input data based on the abnormal state result when the signal state identification result is an abnormal state result to obtain corrected parallel data; a descrambling unit, connected to the abnormal state correction unit, which is used to descramble the signal state identification input data when the signal state identification result is a normal state result to recover the serial data before inputting the scrambling module; or descramble the parallel data corrected by the abnormal state correction unit to recover the serial data before inputting the scrambling module.
[0013] In one embodiment of the present invention, the signal state prediction model adopts the BP algorithm, including: an input layer structure, a hidden layer structure and an output layer structure assigned with different weights.
[0014] In one embodiment of the present invention, the signal state prediction model is used to obtain a corresponding signal state recognition result according to the signal state recognition input data based on a signal state error range.
[0015] As described above, an FPGA prototype verification platform capable of SerDes interface signal recognition of the present invention has the following beneficial effects: the present invention uses RTL code to implement a machine learning algorithm, and uses the parallel data output by the Xilinx MGT receiving module as a training set for training, and finally obtains a prediction model of the circuit input state, and then predicts the signal of the input model based on the prediction model, and restores the serial data received by the SerDes interface on the platform before inputting the scrambling module according to the prediction result; the present invention effectively avoids the problem of the circuit identifying the input as an indeterminate state due to the internal design problems of some MGT circuits, which eventually produces an erroneous output result and interferes with the prototype verification, and facilitates the clear grasp of the input state of the signal during the FPGA prototype verification process, and can also adjust the input in time, thereby optimizing the entire process. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 Shown is a schematic diagram of the structure of an FPGA prototype verification platform capable of SerDes interface signal recognition in one embodiment of the present invention.
[0017] Figure 2 Shown is a schematic structural diagram of the signal state prediction model in an embodiment of the present invention.
[0018] Figure 3 It is a schematic diagram showing the structure of a descrambling module in an embodiment of the present invention.
[0019] Figure 4 Shown is a schematic diagram of the signal scrambling and descrambling process in one embodiment of the present invention.
[0020] Figure 5 Shown is a schematic diagram of the structure of an FPGA prototype verification platform in one embodiment of the present invention. DETAILED DESCRIPTION
[0021] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0022] It should be noted that in the following description, reference is made to the accompanying drawings, which describe several embodiments of the present invention. It should be understood that other embodiments may also be used, and that mechanical composition, structural, electrical and operational changes may be made without departing from the spirit and scope of the present invention. The following detailed description should not be considered restrictive, and the scope of the embodiments of the present invention is limited only by the claims of the published patents. The terms used herein are only for describing specific embodiments and are not intended to limit the present invention. Spatially related terms, such as "upper", "lower", "left", "right", "below", "below", "lower", "above", "upper", etc., may be used in the text to facilitate the description of the relationship between an element or feature shown in the figure and another element or feature.
[0023] Throughout the specification, when a part is said to be "connected" to another part, this includes not only the case of "direct connection" but also the case of "indirect connection" by placing other elements therebetween. In addition, when a part is said to "include" a certain constituent element, unless otherwise stated, it does not exclude other constituent elements, but means that other constituent elements may be included.
[0024] The terms first, second and third mentioned herein are used to describe various parts, components, regions, layers and / or segments, but are not limited thereto. These terms are only used to distinguish a certain part, component, region, layer or segment from other parts, components, regions, layers or segments. Therefore, the first part, component, region, layer or segment described below may refer to the second part, component, region, layer or segment within the scope of the present invention.
[0025] Furthermore, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless there is an indication to the contrary in the context. It should be further understood that the terms "comprise", "include" indicate the presence of the described features, operations, elements, components, items, kinds, and / or groups, but do not exclude the presence, occurrence or addition of one or more other features, operations, elements, components, items, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". Exceptions to this definition will only occur when the combination of elements, functions or operations is inherently mutually exclusive in some way.
[0026] An FPGA prototype verification platform capable of identifying SerDes interface signals is provided in an embodiment of the present invention. The machine learning algorithm is implemented by using RTL code, and the parallel data output by the Xilinx MGT receiving module is used as a training set for training, so as to finally obtain a prediction model of the circuit input state, and then the signal of the input model is predicted based on the prediction model, and the serial data received by the SerDes interface on the platform before being input into the scrambling module is restored according to the prediction result. The present invention effectively avoids the problem that the circuit recognizes that the input is in an indeterminate state due to the internal design problem of some MGT circuits, and finally generates an erroneous output result, which interferes with the prototype verification. It is convenient to clearly grasp the input state of the signal during the FPGA prototype verification process, and can also adjust the input in time, thereby optimizing the entire process.
[0027] The following is a detailed description of the embodiments of the present invention with reference to the accompanying drawings so that those skilled in the art can easily implement the present invention. The present invention can be embodied in many different forms and is not limited to the embodiments described herein.
[0028] like Figure 1 As shown, a schematic diagram of the structure of an FPGA prototype verification platform capable of SerDes interface signal recognition in an embodiment of the present invention is shown.
[0029] The FPGA prototype verification platform includes: a scrambling module 1, which is used to scramble the serial data input by the SerDes interface to obtain scrambled parallel data (66 bits); specifically, an excitation signal is sent to the FPGA prototype verification platform, that is, the serial data of the input signal is added before the scrambling module;
[0030] Xilinx MGT (multi-gigabit transceiver) sending module 2, connected to the scrambling module 1, used to convert the scrambled parallel data into serial data;
[0031] A Xilinx MGT (multi-gigabit transceiver) receiving module 3, connected to the Xilinx MGT sending module 2, for converting the serial data obtained by the Xilinx MGT sending module 2 into parallel data, so as to use the parallel data as signal state recognition input data;
[0032] A signal state recognition module 4, connected to the Xilinx MGT receiving module 3, for obtaining a corresponding signal state recognition result according to the signal state recognition input data based on a trained signal state prediction model;
[0033] The descrambling module 5 is connected to the Xilinx MGT receiving module 3 and the signal state identification module 4, and is used to display the signal state result and restore the signal state identification input data to the serial data input to the scrambling module based on the signal state result.
[0034] In one embodiment, the training method of the signal state prediction model includes: obtaining the signal state prediction model through training based on a plurality of signal state identification input sample data and a signal state label corresponding to each signal state identification input sample data.
[0035] In one embodiment, each signal state identification input sample data is obtained by a serial data received by the SerDes interface and passes through the scrambling module 1, the Xilinx MGT sending module 2 and the Xilinx MGT receiving module 3 in sequence.
[0036] Specifically, serial data is input into the scrambling module 1, which scrambles the serial data to obtain scrambled parallel data; the scrambled parallel data is input into the Xilinx MGT sending module 2 to be converted into serial data; the serial data enters the Xilinx MGT receiving module 3 to be converted into parallel data; the received parallel data is used as training sample data and input into neurons in the neural network for training and learning.
[0037] In one embodiment, the signal state prediction model uses BP algorithm to analyze and fit the data, such as Figure 2 As shown, the signal state prediction model includes: an input layer structure, a hidden layer structure and an output layer structure with different weights; specifically, different weights are assigned to neurons in each layer of the input layer, hidden layer and output layer, and through an unsupervised learning mode, the statistical characteristics contained in the sample set are extracted and exist in the network in the form of connection weights between neurons to analyze and fit the data.
[0038] In one embodiment, the training method of the signal state prediction model includes:
[0039] A preliminary prediction model is obtained by training a neural network according to a plurality of signal state recognition input sample data and a signal state label of each signal state recognition input sample data;
[0040] Check whether the preliminary prediction model meets the error condition and / or the learning number condition; specifically, determine whether the network error of the preliminary prediction model for identifying the signal state meets the requirement, or the learning number reaches the requirement;
[0041] If satisfied, the preliminary prediction model is used as the signal state prediction model; for example, when the error reaches a preset accuracy or the number of learning times is greater than a set maximum number, the algorithm is terminated and the preliminary prediction model is used as the signal state prediction model;
[0042] If not, continue to the next round of learning until the error condition and / or the learning times condition are met. Specifically, otherwise, select the next learning sample and the corresponding expected output, and return to the next round of learning until the error condition and / or the learning times condition are met.
[0043] In one embodiment, the signal state recognition result includes: a normal state result corresponding to a normal signal state and an abnormal state result corresponding to an abnormal signal. That is, the types of the corresponding signal state recognition input sample data include: normal signal state recognition input sample data with a normal signal state label and abnormal signal state recognition input sample data with an abnormal signal state label.
[0044] In one embodiment, the abnormal status result includes: a bit error status result corresponding to a signal bit error status or an information loss status result corresponding to a signal information loss status. The bit error status result includes: the position and number of bits of the bit error; the information loss status result includes: specific information loss information data.
[0045] In one embodiment, the signal state prediction model is used to obtain the corresponding signal state identification result according to the signal state identification input data based on the signal state error range; specifically, when the signal state prediction model obtains a preliminary abnormal signal state result, it is necessary to first consider the preset reasonable signal state error range. If the result of the judgment is within the signal state error range, it is not considered an abnormal state result; if it exceeds the signal state error range, the corresponding abnormal state result is output. For example, we can set the number of bits that can be erroneous to 3. If we obtain the number of bit errors as 2 through the signal state prediction model, the normal state result is output; if the number of bit errors is 4, the abnormal state result is output. It should be noted that the signal state error range is set according to demand or specific circumstances. For example, if the number of parallel data bits is small, the error range threshold can be set relatively small; if the number of parallel data bits is large, the error range threshold can be set relatively large.
[0046] In one embodiment, if Figure 3 As shown, the descrambling module includes:
[0047] A display submodule 31, used to display the signal state recognition result;
[0048] The serial data recovery submodule 32 is used to recover the signal state recognition input data into serial data before inputting into the scrambling module according to the signal state result.
[0049] In one embodiment, the serial data recovery submodule 31 includes:
[0050] The abnormal state correction unit 311 is used for correcting the signal state recognition input data based on the abnormal state result to obtain corrected parallel data when the signal state recognition result is an abnormal state result; specifically, correcting the signal state recognition input data correspondingly according to different abnormal state results to obtain corrected parallel data;
[0051] The descrambling unit 312 corresponding to the scrambling module 1 is connected to the abnormal state correction unit 311, and is used to, when the signal state recognition result is a normal state result, perform descrambling on the signal state recognition input data corresponding to the scrambling module 1 to restore the serial data before inputting the scrambling module; or descramble the parallel data corrected by the abnormal state correction unit to restore the serial data before inputting the scrambling module.
[0052] like Figure 4 As shown, it is a schematic diagram of the scrambling and descrambling process of the scrambling module 1 and the descrambling unit 312 corresponding to the scrambling module 1.
[0053] In order to better illustrate the above-mentioned FPGA prototype verification platform capable of SerDes interface signal recognition, the present invention provides the following specific embodiments.
[0054] Embodiment 1: A method for identifying SerDes interface signals based on machine learning. Applied to FPGA prototype verification platform, Figure 5 It is a structural schematic diagram of the FPGA prototype verification platform.
[0055] The specific steps include:
[0056] S1.1: serial data input scrambling module;
[0057] S1.2: The scrambling module performs scrambling to obtain scrambled parallel data (66 bits);
[0058] S1.3: The scrambled parallel data (66 bits) is input into the Xilinx MGT (multi-gigabit transceiver) transmission module and converted into serial data;
[0059] S1.4: Serial data enters the Xilinx MGT receiving module and is converted into parallel data;
[0060] S1.5: input the received parallel data as training data into neurons in the neural network for training and learning;
[0061] S1.6: The neural network uses the BP algorithm principle to assign different weights to the neurons in the input layer, hidden layer, and output layer. It also extracts the statistical characteristics contained in the sample set through the unsupervised learning mode, and analyzes and fits the data in the form of connection weights between neurons in the network.
[0062] S1.7: The prediction model is obtained by analyzing the fitting to determine the state of the input signal and whether the network error meets the requirements. When the error reaches the preset accuracy or the number of learning times is greater than the set maximum number, the algorithm ends. Otherwise, the next learning sample and the corresponding expected output are selected and the next round of learning is returned.
[0063] S2: Send an excitation signal to the FPGA prototype verification platform, that is, add the input signal before the scrambling module.
[0064] S3: The FPGA prototype verification platform predicts the input signal through the prediction model, draws a conclusion, and feeds back the result to the descrambling module for display.
[0065] In this embodiment, a machine learning algorithm is implemented through RTL, which is added to the engineering software, an input signal is given, and a prediction model for determining the state of the input signal is obtained through training; that is, the neural network model is trained by using the input data as a training set, so that the signal state of the input scrambling module can be reflected in the descrambling module, and the circuit recognition input is effectively avoided due to the internal design problems of some MGT circuits. The input is in an indeterminate state, which ultimately produces an erroneous output result and interferes with the prototype verification. It is convenient to clearly grasp the input state of the signal during the FPGA prototype verification process, and the input can be adjusted in time during the process, thereby optimizing the entire process.
[0066] In summary, the FPGA prototype verification platform for SerDes interface signal recognition of the present invention uses RTL code to implement machine learning algorithms, and uses the parallel data output by the Xilinx MGT receiving module as a training set for training, and finally obtains a prediction model of the circuit input state, and then predicts the signal of the input model based on the prediction model, and restores the serial data received by the SerDes interface on the platform before inputting the scrambling module according to the prediction result; the present invention effectively avoids the problem of circuit recognition input being indeterminate due to the internal design problems of some MGT circuits, which will eventually produce erroneous output results and interfere with the prototype verification, and facilitates the clear grasp of the input state of the signal during the FPGA prototype verification process, and can also adjust the input in time, optimizing the entire process. Therefore, the present invention effectively overcomes the various shortcomings in the prior art and has a high industrial utilization value.
[0067] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. An FPGA prototype verification platform capable of SerDes interface signal recognition, the platform include: A scrambling module, used for scrambling the serial data inputted and received by the SerDes interface to obtain scrambled parallel data; Xilinx MGT sending module, connected to the scrambling module, used to convert the scrambled parallel data into serial data; A Xilinx MGT receiving module, connected to the Xilinx MGT sending module, used to convert the serial data obtained by the Xilinx MGT sending module into parallel data to obtain signal state recognition input data; A signal state recognition module, connected to the Xilinx MGT receiving module, for obtaining a corresponding signal state recognition result according to the signal state recognition input data based on a trained signal state prediction model; The signal state prediction model adopts BP algorithm, including: input layer structure, hidden layer structure and output layer structure with different weights; a descrambling module connected to the Xilinx MGT receiving module and the signal state identification module, for displaying the signal state identification result, and restoring the signal state identification input data to the serial data input to the scrambling module based on the signal state identification result; the descrambling module includes: a display submodule for displaying the signal state identification result; a serial data recovery submodule for restoring the signal state identification input data to the serial data before input to the scrambling module according to the signal state identification result; the serial data recovery submodule includes: an abnormal state correction unit for correcting the signal state identification input data based on the abnormal state result to obtain corrected parallel data when the signal state identification result is an abnormal state result; a descrambling unit connected to the abnormal state correction unit for descrambling the signal state identification input data to recover the serial data before input to the scrambling module when the signal state identification result is a normal state result; or descrambling the parallel data corrected by the abnormal state correction unit to recover the serial data before input to the scrambling module.
2. According to the FPGA prototype verification platform capable of SerDes interface signal recognition described in claim 1, It is characterized in that The training method of the signal state prediction model includes: The signal state prediction model is obtained by training based on a plurality of signal state identification input sample data and a signal state label corresponding to each signal state identification input sample data.
3. According to the FPGA prototype verification platform capable of SerDes interface signal recognition as described in claim 1, It is characterized in that Each signal state identification input sample data is obtained by a serial data received by the SerDes interface and passes through the scrambling module, the Xilinx MGT sending module and the Xilinx MGT receiving module in sequence.
4. According to the FPGA prototype verification platform capable of SerDes interface signal recognition as described in claim 2, It is characterized in that The training method of the signal state prediction model includes: A preliminary prediction model is obtained by training the input sample data of multiple signal state identification and the signal state label of each signal state identification input sample data; Check whether the preliminary prediction model meets the error condition and / or the learning number condition; If satisfied, the preliminary prediction model is used as the signal state prediction model; If not, continue with the next round of learning until the error condition and / or the learning times condition are met.
5. According to the FPGA prototype verification platform capable of SerDes interface signal recognition as described in claim 1, It is characterized in that The signal state recognition result includes: a normal state result and an abnormal state result.
6. According to the FPGA prototype verification platform capable of SerDes interface signal recognition as described in claim 1, It is characterized in that Abnormal status results include: bit error status results or information loss status results.
7. According to the FPGA prototype verification platform capable of SerDes interface signal recognition as described in claim 1, It is characterized in that The signal state prediction model is used to obtain a corresponding signal state recognition result according to the signal state recognition input data based on a signal state error range.
