LVDS (Low Voltage Differential Signaling) signal training method and device for receiving ultrasonic echo data and computer equipment
Through the combination of bit alignment and serial-parallel conversion modules, the problem of poor stability of LVDS ultrasonic echo data transmission is solved, the circuit design complexity and power consumption are reduced, and stable transmission and high-quality imaging are achieved in complex environments.
Patent Information
- Application Number
- CN202310649728.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-31
- Publication Date
- 2024-12-03
AI Technical Summary
There is a problem of poor stability during transmission of LVDS ultrasonic echo data, mainly due to the high relative position requirements of DCLK, FCLK and DATA data lines, and environmental changes lead to unsatisfactory signal delay, which triggers metastable effect and affects imaging quality.
The bit alignment module uses the bit alignment module to monitor data stability, determine the target delay value, perform delay processing, and determine the data shift operation value through the serial and parallel conversion module to complete the reception of LVDS The initialization configuration of ultrasonic echo data reduces dependence on frame clocks and data clocks, and reduces circuit design complexity and power consumption.
It improves the transmission stability of LVDS ultrasonic echo data, reduces the impact of change in signal lines on the circuit board, realizes stable transmission in complex environments, and improves the imaging quality of the ultrasonic system.
Smart Images

Figure CN119064863A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of signal processing technology, and in particular to a LVDS signal training method, device, computer equipment, storage medium and computer program product for receiving ultrasonic echo data. Background Art
[0002] In the ultrasound system, multi-channel echo data is processed by the AFE (analog front end) chip front end and converted into digital-to-analog format before being transferred to the FPGA (Field Programmable Gate Array) for subsequent processing. In the AFE chip, the commonly used method for transmitting digital signals is the LVDS (Low-Voltage Differential Signaling) serial interface. The LVDS interface has the advantages of low power consumption, low cost, and high bandwidth, and is very suitable for multi-channel echo data transmission in the ultrasound system.
[0003] Generally, after the LVDS signal enters the FPGA, it needs to go through data conversion and alignment operations before the sampled data can be restored. However, the related technology involves the connection of the DCLK (data clock), FCLK (frame clock), and DATA data lines of the LVDS signal, and the relative position of the DCLK, FCLK, and DATA data lines is extremely high. The signal delay on the circuit board, the environmental (temperature, voltage, etc.) changes, etc. may cause the relative position of the DCLK, FCLK, and DATA data lines to change. The introduction of these changes may cause the establishment and hold time between the data lines in the FPGA to be unsatisfied, which in turn triggers a metastable effect, resulting in the inability to stably transmit the LVDS ultrasound echo data, affecting the subsequent imaging quality of the ultrasound system.
[0004] Therefore, the related art has the problem of poor transmission stability of LVDS ultrasonic echo data. Summary of the invention
[0005] Based on this, it is necessary to provide an LVDS signal training method, device, computer equipment, computer-readable storage medium and computer program product for receiving ultrasonic echo data, which can improve the transmission stability of LVDS ultrasonic echo data, in order to solve the above technical problems.
[0006] In a first aspect, the present application provides an LVDS signal training method for receiving ultrasonic echo data.
[0007] The method comprises:
[0008] The bit alignment module determines the data stability corresponding to each delay value according to the sampling point data of the test data monitored under each delay value when the signal delay module is set at each delay value;
[0009] The bit alignment module determines a target delay value according to the data stability corresponding to each of the delay values;
[0010] The signal delay module performs delay processing on the test data according to the target delay value to obtain the test data after delay processing;
[0011] The serial-to-parallel conversion module performs serial-to-parallel conversion on the test data after the delay processing;
[0012] The word alignment module determines the edge at which the serial-to-parallel conversion module performs serial-to-parallel conversion based on the serial-to-parallel conversion result to determine the data shift operation value and complete the initialization configuration of the received LVDS ultrasonic echo data.
[0013] In one embodiment, the sampling point data corresponding to each of the delay values includes a plurality of continuous sampling point data; and determining the data stability corresponding to each of the delay values according to the sampling point data of the test data monitored under each of the delay values includes:
[0014] For any of the delay values, the bit alignment module determines that the test data is stable under any of the delay values when the data of a plurality of consecutive sampling points corresponding to the delay value are the same;
[0015] When the data of the plurality of consecutive sampling points corresponding to any of the delay values are different, the bit alignment module determines that the test data is unstable under any of the delay values.
[0016] In one embodiment, the bit alignment module determines the target delay value according to the data stability corresponding to each of the delay values, including:
[0017] The bit alignment module generates an eye diagram according to the data stability corresponding to each of the delay values;
[0018] The bit alignment module determines the target delay value according to the eye diagram.
[0019] In one embodiment, the bit alignment module generates an eye diagram according to the data stability corresponding to each of the delay values, including:
[0020] The bit alignment module generates a stability label corresponding to each of the delay values according to the data stability corresponding to each of the delay values;
[0021] The bit alignment module generates the eye diagram according to the stability labels corresponding to the delay values.
[0022] In one embodiment, the stability label includes an unstable label and a stable label; and the bit alignment module determines the target delay value according to the eye diagram, including:
[0023] The bit alignment module determines a delay value stability interval according to continuous stable labels in the eye diagram;
[0024] The bit alignment module uses the delay value corresponding to the center position of the delay value stable interval as the target delay value.
[0025] In one of the embodiments, the bit alignment module determines the delay value stability interval according to the continuous stability labels in the eye diagram, including:
[0026] The bit alignment module determines continuous stable labels in the eye diagram as candidate stable intervals;
[0027] The bit alignment module uses the longest candidate stable interval as the delay value stable interval.
[0028] In one embodiment, the serial-to-parallel conversion result includes test data after serial-to-parallel conversion; the word alignment module determines the edge of the serial-to-parallel conversion performed by the serial-to-parallel conversion module based on the serial-to-parallel conversion result, including:
[0029] The word alignment module obtains a shift operation value mapping relationship; the shift operation value mapping relationship includes a mapping relationship between a serial-to-parallel conversion operation and an edge position of the operation implementation when a serial-to-parallel conversion operation is performed on each bit in the test data;
[0030] According to the shift operation value mapping relationship, an edge for performing serial-to-parallel conversion on the test data after serial-to-parallel conversion is determined.
[0031] In one embodiment, before completing the step of initializing the configuration of receiving LVDS ultrasonic echo data, the method further includes:
[0032] receiving incremental data sent simultaneously by the AFE chip on at least two channels;
[0033] The data discard amount of each channel is determined according to the difference of the data corresponding to the incremental data of each channel under the same clock edge of the clock signal; the data discard amount is used to instruct the channel alignment module to perform channel alignment on the data of each channel.
[0034] In one embodiment, determining the amount of data discarded for each channel according to the difference of data corresponding to the incremental data of each channel under the same clock edge of the clock signal includes:
[0035] Determine the maximum data value among the data corresponding to the same clock edge of the clock signal according to the incremental data of each channel;
[0036] The data discard amount of each channel is determined according to the difference between the data value corresponding to the incremental data of each channel at the same clock edge of the clock signal and the maximum data value.
[0037] In a second aspect, the present application also provides an LVDS signal training device for receiving ultrasonic echo data. The device comprises:
[0038] A stability determination unit, for determining the data stability corresponding to each delay value according to the sampling point data of the test data monitored under each delay value when the signal delay module is set at each delay value;
[0039] A delay value determination unit, used to determine a target delay value according to the data stability corresponding to each of the delay values;
[0040] A delay unit, used for performing delay processing on the test data according to the target delay value to obtain the test data after delay processing;
[0041] A conversion unit, used for performing serial-to-parallel conversion on the test data after the delay processing;
[0042] The shift determination unit is used to determine the edge of the serial-to-parallel conversion performed by the serial-to-parallel conversion module based on the serial-to-parallel conversion result, so as to determine the data shift operation value and complete the initialization configuration of the received LVDS ultrasonic echo data.
[0043] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0044] The bit alignment module determines the data stability corresponding to each delay value according to the sampling point data of the test data monitored under each delay value when the signal delay module is set at each delay value;
[0045] The bit alignment module determines a target delay value according to the data stability corresponding to each of the delay values;
[0046] The signal delay module performs delay processing on the test data according to the target delay value to obtain the test data after delay processing;
[0047] The serial-to-parallel conversion module performs serial-to-parallel conversion on the test data after the delay processing;
[0048] The word alignment module determines the edge at which the serial-to-parallel conversion module performs serial-to-parallel conversion based on the serial-to-parallel conversion result to determine the data shift operation value and complete the initialization configuration of the received LVDS ultrasonic echo data.
[0049] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0050] The bit alignment module determines the data stability corresponding to each delay value according to the sampling point data of the test data monitored under each delay value when the signal delay module is set at each delay value;
[0051] The bit alignment module determines a target delay value according to the data stability corresponding to each of the delay values;
[0052] The signal delay module performs delay processing on the test data according to the target delay value to obtain the test data after delay processing;
[0053] The serial-to-parallel conversion module performs serial-to-parallel conversion on the test data after the delay processing;
[0054] The word alignment module determines the edge at which the serial-to-parallel conversion module performs serial-to-parallel conversion based on the serial-to-parallel conversion result to determine the data shift operation value and complete the initialization configuration of the received LVDS ultrasonic echo data.
[0055] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0056] The bit alignment module determines the data stability corresponding to each delay value according to the sampling point data of the test data monitored under each delay value when the signal delay module is set at each delay value;
[0057] The bit alignment module determines a target delay value according to the data stability corresponding to each of the delay values;
[0058] The signal delay module performs delay processing on the test data according to the target delay value to obtain the test data after delay processing;
[0059] The serial-to-parallel conversion module performs serial-to-parallel conversion on the test data after the delay processing;
[0060] The word alignment module determines the edge at which the serial-to-parallel conversion module performs serial-to-parallel conversion based on the serial-to-parallel conversion result to determine the data shift operation value and complete the initialization configuration of the received LVDS ultrasonic echo data.
[0061] The above-mentioned LVDS signal training method, device, computer equipment, storage medium and computer program product for receiving ultrasonic echo data, when the signal delay module is set at each delay value through the bit alignment module, determines the data stability corresponding to each delay value according to the sampling point data of the test data monitored under each delay value; then, determines the target delay value according to the data stability corresponding to each delay value through the bit alignment module; then, delays the test data according to the target delay value through the signal delay module to obtain the test data after delay processing; then, serial-to-parallel conversion is performed on the test data after delay processing through the serial-to-parallel conversion module; then, the edge of the serial-to-parallel conversion performed by the serial-to-parallel conversion module is determined based on the serial-to-parallel conversion result through the word alignment module to determine the data shift operation value, and completes the initialization configuration of receiving LVDS ultrasonic echo data.
[0062] In this way, in the process of receiving LVDS ultrasonic echo data, there is no need to use a frame clock (FLCK), which eliminates the connection of the FLCK signal line on the circuit board, saves the FPGA chip pins for receiving LVDS signals, reduces system power consumption and circuit design complexity, thereby reducing the impact caused by changes in the relative positions of signal lines on the circuit board and improving the transmission stability of LVDS ultrasonic echo data; and, in the case where the device sending the LVDS signal and the FPGA chip are driven by the same clock, the FPGA chip can also be used to generate a clock with the same clock frequency as the data clock (DCLK) to replace DCLK, thereby eliminating the connection of all DCLK signal lines on the circuit board. In terms of circuit design, the LVDS signal connection between the device sending the LVDS signal and the FPGA chip only needs to connect the DATA data line, further reducing the circuit design complexity and power consumption, thereby further reducing the impact caused by changes in the relative positions of signal lines on the circuit board and improving the transmission stability of LVDS ultrasonic echo data.
[0063] In addition, the data stability corresponding to each delay value is determined by monitoring the sampling point data of the test data (DATA) to further determine the target delay value. Delay processing through the target delay value can stably sample the LVDS data and eliminate the influence of metastable states. The edge of the serial-to-parallel conversion is determined based on the test data after delay processing based on the word alignment module to determine the data shift operation value, so that the LVDS data can be shifted through the data shift operation value, and the shift operation can be adaptively performed according to the data result, and the LVDS ultrasonic echo data can be accurately restored, thereby realizing stable transmission of the LVDS ultrasonic echo data in various complex environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 A schematic flow chart of a LVDS signal training method for receiving ultrasonic echo data in one embodiment;
[0065] Figure 2 A schematic diagram of an application of an LVDS interface in an AFE chip in an embodiment;
[0066] Figure 3 is a schematic diagram of the structure of an eye diagram in an embodiment;
[0067] Figure 4 is a schematic diagram of an edge state between DCLK and LVDS_DATA in one embodiment;
[0068] Figure 5 A schematic diagram of a process of a bit alignment operation in one embodiment;
[0069] Figure 6 is a schematic diagram of a splicing shift operation in one embodiment;
[0070] Figure 7 A schematic diagram of incremental data of each channel in one embodiment;
[0071] Figure 8 A logical internal structure diagram of a channel alignment operation in one embodiment;
[0072] Fig. 9 A schematic diagram of a flow chart of an LVDS signal training method for receiving ultrasonic echo data in another embodiment;
[0073] Fig.10 A schematic diagram of the internal structure of an FPGA chip in an embodiment;
[0074] Fig.11 A training flow chart of LVDS data in a training module in one embodiment;
[0075] Fig.12 A module structure diagram of an LVDS signal receiving system in one embodiment;
[0076] Fig.13 A structural block diagram of an LVDS signal training device for receiving ultrasonic echo data in one embodiment;
[0077] Fig.14 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0078] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0079] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0080] In one embodiment, Figure 1 As shown, a flow chart of an LVDS signal training method for receiving ultrasonic echo data is provided, and the method is applied to an FPGA chip as an example for explanation, wherein the FPGA chip includes a bit alignment module (BIT_ALIGN), a signal delay module (IDELAY), a serial-to-parallel conversion module (ISERDES) and a word alignment module (WORD_ALIGN), and the method includes the following steps:
[0081] Step S110 , when the signal delay module is set at each delay value, the bit alignment module determines the data stability corresponding to each delay value according to the sampling point data of the test data monitored at each delay value.
[0082] Among them, in the ultrasound system, multi-channel ultrasound echo data can be transmitted to the FPGA for subsequent processing after being processed by the AFE chip front-end and converted into digital-to-analog format. In the AFE chip, the commonly used method for transmitting digital signals is the LVDS serial interface. The LVDS interface has the advantages of low power consumption, low cost, and high bandwidth, and is very suitable for multi-channel echo data transmission in the ultrasound system. In the ultrasound system, the collected ultrasound echo data is echo analog data, and the echo analog data is sampled by at least one AFE chip for analog-to-digital conversion. After conversion, the LVDS signal in the AFE chip is obtained. The LVDS signal includes n serial LVDS data DATA (LVDS_DATA) and one accompanying clock (data clock DCLK), which are sent out through multiple channels on the AFE chip.
[0083] In order to facilitate the understanding of those skilled in the art, Figure 2The application diagram of the LVDS interface in the AFE chip is provided. The Input Signal is the echo analog data. Working under ADC_CLK, the ADC (Analog-to-Digital Converter) with a sampling bit width of 16 bits in the AFE chip samples the echo analog data. The sampled 16-bit data is converted into serial LVDS data DATA (LVDS_DATA) through parallel-serial conversion and sent out with the data clock DCLK. DCLK is a double-edge clock.
[0084] It should be noted that if the same clock is used to drive the AFE chip and the FPGA chip in the circuit design, the FPGA chip can also be used to generate a clock with the same clock frequency as DCLK to replace DCLK. In this way, it is unnecessary to connect all DCLK signal lines on all AFE chips. In the circuit design, the LVDS signal connection between the AFE chip and the FPGA chip only needs to connect the DATA data line, that is, the LVDS signal sent by the AFE chip can only include n serial LVDS data DATA (LVDS_DATA).
[0085] In the specific implementation, in the bit alignment operation, the delay value of LVDS_DATA is dynamically changed by changing the number of taps used inside the IDELAY module. There are 512 taps inside the IDELAY module, so there are 512 delay values (0th to 511th). Different numbers of taps correspond to different delay values. By configuring the number of taps, the delay value of the data can be changed. First, configure the AFE chip to SYNC (synchronous) mode. When the AFE chip outputs LVDS_DATA, it will constantly output 16'b1111111100000000 (set the internal sampling bit width of the AFE chip to 16) as test data. For each channel (DATAlane) test data, the BIT_ALIGN module corresponding to the channel will traverse these 512 delay values to monitor the stability of the test data. Specifically, the consistency of the sampling point data of the test data can be monitored at each delay value to determine the data stability corresponding to each delay value.
[0086] It should be noted that in order to improve the efficiency of determining the target delay value, in the process of traversing the delay value, two taps inside the IDELAY module can be added each time. In this way, there are 0th to 255th delay values, and only 256 cycles are required.
[0087] Step S120: The bit alignment module determines a target delay value according to the data stability corresponding to each delay value.
[0088] In the specific implementation, the BIT_ALIGN module can generate an "eye diagram" according to the data stability corresponding to each delay value, select the most stable delay value according to the "eye diagram" as the target delay value, latch the target delay value, and configure the target delay value to the IDELAY module corresponding to the channel test data.
[0089] Step S130: the signal delay module performs delay processing on the test data according to the target delay value to obtain the test data after delay processing.
[0090] In a specific implementation, the IDELAY module corresponding to the channel test data can perform delay processing on the channel test data according to the configured target delay value to obtain the test data after the channel delay processing, and complete the bit alignment operation of the channel test data.
[0091] Step S140: the serial-to-parallel conversion module performs serial-to-parallel conversion on the test data after the delay processing.
[0092] In a specific implementation, the serial-to-parallel conversion module (ISERDES) corresponding to the channel test data performs serial-to-parallel conversion on the test data after delay processing of the channel to obtain a serial-to-parallel conversion result of the channel.
[0093] Step S150, the word alignment module determines the edge of the serial-to-parallel conversion performed by the serial-to-parallel conversion module based on the serial-to-parallel conversion result to determine the data shift operation value, and completes the initialization configuration of the received LVDS ultrasonic echo data.
[0094] In the specific implementation, the AFE SYNC mode is also used for word alignment. After bit alignment, the metastable problem is eliminated, and the test data after serial-to-parallel conversion can ensure stability. In SYNC mode, the data value remains unchanged, but the data is not necessarily the correct ADC sampling value, because the sampling point edge is likely to be incorrect. Because each time the power is turned on, the ISERDES module may perform serial-to-parallel conversion at any edge. After selecting a certain edge, the subsequent serial-to-parallel conversion is always performed at this edge. On this basis, the word alignment operation is used to determine at which edge the current ISERDES module performs serial-to-parallel conversion to determine the data shift operation value, and then the splicing shift operation can correctly restore the correct ADC sampling data (16'b11111111100000000). In this way, the initialization configuration of receiving LVDS ultrasonic echo data can be realized.
[0095] In the above-mentioned LVDS signal training method for receiving ultrasonic echo data, the signal delay module is set at each delay value through the bit alignment module, and the data stability corresponding to each delay value is determined according to the sampling point data of the test data monitored under each delay value; then, the target delay value is determined according to the data stability corresponding to each delay value through the bit alignment module; then, the test data is delayed according to the target delay value through the signal delay module to obtain the test data after delay processing; then, the test data after delay processing is serial-to-parallel converted through the serial-to-parallel conversion module; then, the edge of the serial-to-parallel conversion performed by the serial-to-parallel conversion module is determined based on the serial-to-parallel conversion result through the word alignment module to determine the data shift operation value, and complete the initialization configuration of receiving LVDS ultrasonic echo data.
[0096] In this way, in the process of receiving LVDS ultrasonic echo data, there is no need to use a frame clock (FLCK), which eliminates the connection of the FLCK signal line on the circuit board, saves the FPGA chip pins for receiving LVDS signals, reduces system power consumption and circuit design complexity, thereby reducing the impact caused by changes in the relative positions of signal lines on the circuit board and improving the transmission stability of LVDS ultrasonic echo data; and, in the case where the device sending the LVDS signal and the FPGA chip are driven by the same clock, the FPGA chip can also be used to generate a clock with the same clock frequency as the data clock (DCLK) to replace DCLK, thereby eliminating the connection of all DCLK signal lines on the circuit board. In terms of circuit design, the LVDS signal connection between the device sending the LVDS signal and the FPGA chip only needs to connect the DATA data line, further reducing the circuit design complexity and power consumption, thereby further reducing the impact caused by changes in the relative positions of signal lines on the circuit board and improving the transmission stability of LVDS ultrasonic echo data.
[0097] In addition, the data stability corresponding to each delay value is determined by monitoring the sampling point data of the test data (DATA) to further determine the target delay value. Delay processing through the target delay value can stably sample the LVDS data and eliminate the influence of metastable states. The edge of the serial-to-parallel conversion is determined based on the test data after delay processing based on the word alignment module to determine the data shift operation value, so that the LVDS data can be shifted through the data shift operation value, and the shift operation can be adaptively performed according to the data result, and the LVDS ultrasonic echo data can be accurately restored, thereby realizing stable transmission of the LVDS ultrasonic echo data in various complex environments.
[0098] In one embodiment, the sampling point data corresponding to each delay value includes a plurality of continuous sampling point data; based on the sampling point data of the test data monitored at each delay value, the data stability corresponding to each delay value is determined, including: for any delay value, the bit alignment module determines that the test data is stable at any delay value when the plurality of continuous sampling point data corresponding to any delay value are the same; the bit alignment module determines that the test data is unstable at any delay value when the plurality of continuous sampling point data corresponding to any delay value are different.
[0099] Among them, one sampling point data is 16 bits of data in the test data.
[0100] In the specific implementation, for the channel test data, the bit alignment module determines the data stability corresponding to each delay value based on the sampling point data of the test data monitored under each delay value. For any delay value, the BIT_ALIGN module can determine whether the channel test data is stable by monitoring whether N consecutive sampling point data are the same. The N value can be configured by the host computer.
[0101] Specifically, when the data of N consecutive sampling points corresponding to any delay value are the same, it is determined that the channel test data is stable under any delay value; when the data of N consecutive sampling points corresponding to any delay value are not the same, it is determined that the channel test data is unstable under any delay value.
[0102] In the technical solution of this embodiment, the sampling point data corresponding to each delay value includes a plurality of continuous sampling point data; for any delay value, the bit alignment module determines that the test data is stable under any delay value when the plurality of continuous sampling point data corresponding to any delay value are the same; the bit alignment module determines that the test data is unstable under any delay value when the plurality of continuous sampling point data corresponding to any delay value are different. In this way, according to the consistency of the plurality of continuous sampling point data of the test data under the delay value, the stability of the test data under the delay value can be accurately determined.
[0103] In one embodiment, the bit alignment module determines the target delay value according to the data stability corresponding to each delay value, including: the bit alignment module generates an eye diagram according to the data stability corresponding to each delay value; the bit alignment module determines the target delay value according to the eye diagram.
[0104] In a specific implementation, when the bit alignment module determines the target delay value according to the data stability corresponding to each delay value, the BIT_ALIGN module can generate an eye diagram according to the data stability corresponding to each delay value; then, the BIT_ALIGN module can determine the target delay value according to the eye diagram.
[0105] Specifically, in the process of generating an eye diagram, the BIT_ALIGN module can generate a stability label corresponding to each delay value according to the data stability corresponding to each delay value; then, the BIT_ALIGN module can generate an eye diagram according to the stability label corresponding to each delay value.
[0106] The technical solution of this embodiment generates an eye diagram according to the data stability corresponding to each delay value through a bit alignment module; specifically, generates a stability label corresponding to each delay value according to the data stability corresponding to each delay value through a bit alignment module; then, generates an eye diagram according to the stability label corresponding to each delay value through a bit alignment module; finally, determines a target delay value according to the eye diagram; in this way, an interval consisting of continuous stable delay values can be determined according to the eye diagram, so as to determine the most stable delay value according to the interval consisting of continuous stable delay values as the target delay value.
[0107] In one embodiment, the stability label includes an unstable label and a stable label; the bit alignment module determines the target delay value according to the eye diagram, including: the bit alignment module determines the delay value stability interval according to the continuous stable labels in the eye diagram; the bit alignment module uses the delay value corresponding to the center position of the delay value stability interval as the target delay value.
[0108] In a specific implementation, the stability tag includes an unstable tag and a stable tag; wherein the unstable tag can be 1, and the stable tag can be 0. When the BIT_ALIGN module traverses the delay value, if it is determined that the test data is stable under the current delay value, it counts as 0 on the current delay value, and if it is unstable, it counts as 1.
[0109] In order to facilitate the understanding of those skilled in the art, Figure 3 A schematic diagram of the structure of an eye diagram obtained after traversing 512 delay values is provided, where IDELAY_TAP is the delay tap and STABILITY is the data stability.
[0110] In this way, the BIT_ALIGN module can determine the stable interval of the delay value based on the continuous stable labels in the eye diagram; then, the BIT_ALIGN module can use the delay value corresponding to the center position of the stable interval of the delay value as the target delay value; thereby achieving accurate determination of the most stable delay value through the center position of the stable interval of the delay value.
[0111] Among them, in the process of determining the stable interval of the delay value according to the continuous stable labels in the eye diagram, the BIT_ALIGN module can determine the continuous stable labels in the eye diagram as the candidate stable interval; then, the BIT_ALIGN module can use the longest candidate stable interval as the stable interval of the delay value. That is, the BIT_ALIGN module finds the delay value corresponding to the center position of the most continuous 0 values in the "eye diagram" as the target delay value. In this way, the center of the eye diagram can be determined, and the most stable delay value can be accurately determined through the center of the eye diagram.
[0112] Specifically, 1 represents that the DCLK edge is located at the edge of LVDS_DATA, and there is a metastable phenomenon; 0 represents that the DCLK edge is located in the data window of LVDS_DATA, and LVDS_DATA can be stably sampled by DCLK. The edge state between DCLK and LVDS_DATA under 1 and 0 is as follows: Figure 4 As shown in the figure. The length of 0 (i.e. the length of continuous stable labels) represents the size of the opening angle of the "eye diagram". Therefore, the center position of the longest continuous 0 is the center of the eye diagram, which makes it possible to find the center edge of LVDS_DATA through the "eye diagram". Figure 3 If length1 is larger than length0, take the center of the delay tap value at the start point of length1 and the delay tap value at the end point, and take the delay value corresponding to the position as the target delay value corresponding to the test data of the channel.
[0113] In order to facilitate the understanding of those skilled in the art, Figure 5 A flowchart of a bit alignment operation is provided, such as Figure 5 As shown, for a certain channel test data, the AFE chip is in SYNC mode (AFE_CFG_SYNC), and the BIT_ALIGN module traverses each delay value, generates an eye diagram (EYE_DIAGRAM_ANALYSE) according to the stability of the test data under each delay value, determines the target delay value corresponding to the channel test data according to the eye diagram, configures the target delay value to the IDELAY module corresponding to the channel, and completes the bit alignment operation of the channel (BIT_ALIGN_DONE).
[0114] In this way, the test data is delayed by the target delay value to complete the delay operation of the DATA data line, ensuring that the center of the data window of LVDS_DATA is aligned with the DCLK clock edge, and adaptively changing the DCLK and LVDS_DATA delays to align the DCLK clock edge with the center of the data window of LVDS_DATA, stably sampling DATA and eliminating the influence of metastable states.
[0115] In one embodiment, the serial-to-parallel conversion result includes the test data after the serial-to-parallel conversion; the word alignment module determines the edge of the serial-to-parallel conversion performed by the serial-to-parallel conversion module based on the serial-to-parallel conversion result, including: the word alignment module obtains the shift operation value mapping relationship; the shift operation value mapping relationship includes the mapping relationship between the edge position of the operation implementation when the serial-to-parallel conversion operation is performed at each bit in the test data; according to the shift operation value mapping relationship, the edge of the serial-to-parallel conversion of the test data after the serial-to-parallel conversion is determined.
[0116] In a specific implementation, the serial-to-parallel conversion result includes the test data after the serial-to-parallel conversion. In the process where the word alignment module determines the edge of the serial-to-parallel conversion performed by the serial-to-parallel conversion module based on the serial-to-parallel conversion result, the WORD_ALIGN module can obtain the shift operation value mapping relationship, and the shift operation value mapping relationship includes the mapping relationship between the edge position of the operation implementation when the serial-to-parallel conversion operation is performed at each bit in the 16-bit test data; then, according to the shift operation value mapping relationship, the WORD_ALIGN module can determine the edge of the serial-to-parallel conversion of the test data after the serial-to-parallel conversion.
[0117] Specifically, LVDS_DATA is 16-bit wide data. Since the ISERDES module may perform serial-to-parallel conversion at any edge, that is, any one of the 16 bits can be the starting position of the serial-to-parallel conversion, by traversing these 16 cases, the above-mentioned shift operation value mapping relationship can be obtained, and the shift operation value mapping relationship can be presented in a table form.
[0118] Furthermore, first, the WORD_ALIGN module corresponding to the channel can determine the edge position of the serial-to-parallel conversion of the test data of the channel currently received after serial-to-parallel conversion according to the mapping relationship of the shift operation value, so as to determine the data shift operation value, and then the data splicing shift module (DATA_SPLICE) of the FPGA chip can perform the corresponding splicing shift operation on the test data after serial-to-parallel conversion according to the data shift operation value, and the word alignment operation of the channel test data can be completed in one step. The word alignment operation of this embodiment is more efficient than the solution of traversing 512 situations to determine the target delay value in bit alignment.
[0119] For example, if Figure 6 As shown, the test data (SPLICE_DATA) before the shift operation is initially 16'hF00F, through which the edge position of the serial-to-parallel conversion can be determined. It is only necessary to perform the splicing shift operation of {Dn[3:0]:Dn+1[15:4]} to obtain NEW_SPLICE_DATA=16'hFF00 after the splicing shift is completed, thereby realizing the restoration of correct data through splicing shift.
[0120] In the technical solution of this embodiment, the serial-to-parallel conversion result includes the test data after the serial-to-parallel conversion; the shift operation value mapping relationship is obtained through the word alignment module; the shift operation value mapping relationship includes the mapping relationship between the edge position of the operation implementation and the serial-to-parallel conversion operation at each bit in the test data; according to the shift operation value mapping relationship, the edge of the serial-to-parallel conversion of the test data after the serial-to-parallel conversion is determined; in this way, the corresponding data shift operation value can be determined according to the determined edge, so as to realize adaptively performing the shift operation according to the test data after the serial-to-parallel conversion and recovering the correct ultrasonic echo data.
[0121] In one embodiment, before completing the step of initializing the configuration of receiving LVDS ultrasonic echo data, the method also includes: receiving incremental data sent simultaneously by the AFE chip on at least two channels; determining the data discard amount of each channel according to the difference in data corresponding to the incremental data of each channel under the same clock edge of the clock signal; the data discard amount is used to instruct the channel alignment module to perform channel alignment on the LVDS ultrasonic echo data of each channel.
[0122] Among them, after completing the bit alignment operation and word alignment operation for each channel test data, that is, completing the bit alignment operation and word alignment operation of the test data output by each channel of the AFE chip, channel alignment is performed to complete the initialization configuration of receiving LVDS ultrasonic echo data.
[0123] Among them, the channel alignment operation is to ensure that the data at the same clock edge of the FPGA chip is the data sampled by all ADCs at the same time.
[0124] In the specific implementation, before completing the initialization configuration step of receiving LVDS ultrasonic echo data, before performing the channel alignment operation, and after completing the bit alignment operation and word alignment operation of all channels, the AFE chip is first configured to RAMP mode (that is, all channels of the AFE chip output incremental ramp data), and then the AFE chip sends the AFE_TX_TRIG signal to synchronize multiple external AFE chips, so that different AFE chips simultaneously generate incremental ramp data (that is, incremental data), so that the same ramp data represents the sampling points of different channels of different AFE chips at the same time. On this basis, the channel alignment operation is completed.
[0125] Specifically, the channel alignment module (CH_ALIGN) of the FPGA chip can receive incremental data sent simultaneously by at least one AFE chip on at least two channels. Then, the CH_ALIGN module can determine the data discard amount of each channel based on the difference in the data corresponding to the incremental data of each channel under the same clock edge of the clock signal (i.e., DCLK). Based on the data discard amount, the CH_ALIGN module can perform channel alignment on the data of each channel.
[0126] The technical solution of this embodiment is to receive the incremental data sent by the AFE chip on at least two channels at the same time; determine the data discard amount of each channel according to the difference of the data corresponding to the incremental data of each channel under the same clock edge of the clock signal; the data discard amount is used to instruct the channel alignment module to perform channel alignment on the LVDS ultrasonic echo data of each channel; in this way, by analyzing the data difference between channels, the data alignment between channels is completed, so that the data of all channels are sampled in the same sampling clock cycle, ensuring the time consistency of multi-channel sampling points, thereby stably transmitting the LVDS ultrasonic echo data and effectively improving the quality of ultrasonic imaging.
[0127] In one embodiment, the amount of data discarded for each channel is determined based on the difference in data corresponding to the incremental data of each channel under the same clock edge of the clock signal, including: determining the maximum data value among the data corresponding to the incremental data of each channel under the same clock edge of the clock signal; and determining the amount of data discarded for each channel based on the difference between the data value corresponding to the incremental data of each channel under the same clock edge of the clock signal and the maximum data value.
[0128] In the specific implementation, the CH_ALIGN module determines the amount of data discarded for each channel based on the difference in the data corresponding to the incremental data of each channel under the same clock edge of the clock signal. The module can determine the maximum data value among the data corresponding to the incremental data of each channel under the same clock edge of the clock signal; then, determine the data discard amount of each channel according to the difference between the data value corresponding to the incremental data of each channel under the same clock edge of the clock signal and the maximum data value.
[0129] Specifically, if Figure 7 As shown in the figure, a schematic diagram of the incremental data of each channel is provided. First, the data of each channel under the same clock edge is analyzed to find the maximum data value. With the maximum data value as a reference, the corresponding data value of each channel under the same clock edge is subtracted. The difference is the amount of data that needs to be discarded for each channel. Figure 7 As shown, under the same clock edge, the maximum data value of channel 0 (CH0), channel 1 (CH1), channel 2 (CH2) and channel 3 (CH3) is the data value 28 corresponding to CH3; among them, the data value corresponding to CH0 is 27, the data value corresponding to CH1 is 26; the data value corresponding to CH2 is 27; therefore, the data discard amount (cnt) corresponding to CH0 is 1, the data discard amount (cnt) corresponding to CH1 is 2, the data discard amount (cnt) corresponding to CH2 is 1, and the data discard amount (cnt) corresponding to CH3 is 0.
[0130] The logical internal structure diagram of the channel alignment operation is as follows: Figure 8 As shown, the data of n channels enter n fifos (First-In First-Out, a first-in-first-out data buffer) respectively after discarding the specified amount of data. On the fifo reading side, the empty status of the n fifos is monitored. When all the fifos are in a non-empty state, the fifo read operation is enabled, thus completing the channel alignment operation.
[0131] The technical solution of this embodiment is to determine the maximum data value among the data corresponding to the same clock edge of the clock signal according to the incremental data of each channel; and determine the data discarding amount of each channel according to the difference between the data value corresponding to the same clock edge of the clock signal according to the incremental data of each channel and the maximum data value; thus, the data discarding amount of each channel is determined by the difference between the data value corresponding to each channel under the same clock edge and the maximum data value, so as to discard the data of each channel, so that the data values corresponding to each channel under the same clock edge after the data discarding are the same, thereby ensuring that the data at the same clock edge of the FPGA chip are the data sampled at the same time by the ADC in all AFE chips, that is, all channel data are the data sampled at the same sampling clock period, thereby improving the subsequent imaging quality of the ultrasound system.
[0132] In another embodiment, Fig. 9 As shown, a LVDS signal training method for receiving ultrasonic echo data is provided, and the method is applied to an FPGA chip as an example for explanation, including the following steps:
[0133] Step S902: When the signal delay module is set at each delay value, the bit alignment module determines the data stability corresponding to each delay value according to the sampling point data of the test data monitored at each delay value.
[0134] Step S904: The bit alignment module generates a stability label corresponding to each delay value according to the data stability corresponding to each delay value.
[0135] Step S906: The bit alignment module generates an eye diagram according to the stability labels corresponding to the delay values.
[0136] Step S908: The bit alignment module determines a delay value stability interval according to continuous stable labels in the eye diagram.
[0137] Step S910: The bit alignment module uses the delay value corresponding to the center position of the delay value stable interval as the target delay value.
[0138] Step S912: the signal delay module performs delay processing on the test data according to the target delay value to obtain the test data after delay processing.
[0139] Step S914: the serial-to-parallel conversion module performs serial-to-parallel conversion on the delayed test data.
[0140] Step S916, the word alignment module determines the edge at which the serial-to-parallel conversion module performs serial-to-parallel conversion based on the serial-to-parallel conversion result to determine the data shift operation value.
[0141] Step S918, receiving the incremental data sent simultaneously by the AFE chip on at least two channels.
[0142] Step S920, determining the data discard amount of each channel according to the difference of the data corresponding to the incremental data of each channel under the same clock edge of the clock signal, and completing the initialization configuration of receiving the LVDS ultrasonic echo data.
[0143] It should be noted that the specific definition of the above steps can refer to the specific definition of an LVDS signal training method for receiving ultrasonic echo data above.
[0144] In order to facilitate the understanding of those skilled in the art, Fig.10 A schematic diagram of the internal structure of an FPGA chip that receives a multi-channel AFE chip LVDS signal is provided. Among them, the IDELAY module can delay the input serial LVDS data DATA, and there are 512 taps inside it. The delay accuracy of each tap can reach tens of ps (picoseconds). By configuring the number of taps, the delay value of the serial LVDS data DATA can be changed. The ISERDES module is used to convert the serial data stream into parallel data. Generally, the serial-to-parallel conversion factor supported by the ISERDES module is up to 8, so splicing is required after the serial-to-parallel conversion to reach the ADC sampling bit width. This application mainly uses these two public modules to implement the training operation of serial LVDS data. The LVDS high-speed serial data DATA and the data clock DCLK output by the AFE chip are input into the FPGA chip. The serial LVDS data DATA is first delayed by the IDELAY module (the delay value of the IDELAY module defaults to 0 at this time). After the data with delay processing enters the ISERDES, the serial-to-parallel conversion operation is performed. The data after the serial-to-parallel conversion enters the DATA_SPLICE module for data splicing and shifting.
[0145] After the multi-channel splicing is completed, the data is combined through a splitter and divided into two paths. One path is input to the training module (LVDSTRAINING) for bit alignment and byte alignment of each channel, and the target delay value and data shift operation value are generated for each channel, and are fed back to the previous IDELAY module and DATA_SPLICE module respectively; the other path is output to the CH_ALIGN module for channel alignment (channel alignment is after bit alignment and word alignment in time). After completing the channel alignment, the data is directly output to complete the entire LVDS signal training operation.
[0146] The training flow chart of the LVDS data sent by the n-channel 16-bit sampling bit width AFE chip in the training module is as follows: Fig.11 As shown, first, the AFE chip is configured to SYNC mode (that is, the ADC data of all channels of the AFE chip is replaced with 16'b11111111100000000), and bit alignment and word alignment are performed channel by channel. After each channel is completed, training_lane_id is increased by 1. After the bit alignment and word alignment of all channels are completed, the AFE chip is switched to RAMP mode (AFE_CFG_RAMP, that is, all channels of the AFE chip output incremental data), and then the channel alignment operation is performed.
[0147] Through the LVDS signal training method of the present application, it is possible to ensure stable transmission of LVDS ultrasonic echo data in various complex environments, complete channel alignment operations, and ensure subsequent imaging quality of the ultrasonic system.
[0148] In order to facilitate the understanding of those skilled in the art, Fig.12The module structure diagram of an LVDS signal receiving system is provided. The system has 4 AFE chips, each of which has 16 channels, 16 ADCs, 16 DATA interfaces, 1 DCLK, and an FCLK interface. The sampling bit width is 16 bits, and the sampling clock is 40MHz. It can be seen that 64 DATA channels require 64 sets of IDELAY modules, ISERDES modules, and DATA_SPLICE modules. Then, the 64 channel data are aggregated and bit alignment and word alignment are performed channel by channel. After the bit alignment and word alignment of all channels are completed, channel alignment is performed to complete the entire LVDS training operation. In actual use, the eye diagram information and the shift information in the word alignment can be read back to the host computer, and the host computer can judge the LVDS training situation based on this. The calculation of the data discard amount of channel alignment can also be performed on the host computer. The host computer captures the data of all channels, calculates the difference between the data value of each channel and the maximum data value based on the maximum data value, and then configures it to the CH_ALIGN module to complete the channel alignment operation. The entire LVDS training operation can be completed during the power-on initialization phase of the ultrasound system, without occupying the ultrasound working time. The above LVDS signal training process needs to be performed each time the ultrasound system is powered on.
[0149] In practical applications, multi-channel LVDS signal training operations can be performed in parallel, that is, N LVDS channels are trained simultaneously, which can greatly shorten the LVDS training time.
[0150] In addition, the multi-channel LVDS signal training operation can use only the DCLK of one AFE chip. Since the sampling clock and other configurations of all AFE chips in the ultrasound system are the same, the DCLK frequency and DATA rate of each AFE chip are the same, so all AFE chips can share one DCLK, which saves the DCLK of the remaining AFE chips, saves FPGA pins, and also reduces the complexity of circuit design and overall power consumption.
[0151] In addition, based on using only the DCLK of one of the AFE chips, if the same source clock is used to drive the AFE chip and the FPGA chip in the circuit design, the FPGA chip can also be used to generate a clock with the same clock frequency as DCLK to replace DCLK. This can save the connection of all DCLK signal lines on all AFE chips. In circuit design, the LVDS signal connection between the AFE chip and the FPGA chip only needs to connect the DATA data line, further reducing the complexity of circuit design and power consumption.
[0152] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0153] Based on the same inventive concept, the embodiment of the present application also provides an LVDS signal training device for receiving ultrasonic echo data for implementing the LVDS signal training method for receiving ultrasonic echo data involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations of one or more LVDS signal training devices for receiving ultrasonic echo data provided below can be found in the above limitations on a LVDS signal training method for receiving ultrasonic echo data, and will not be repeated here.
[0154] In one embodiment, Fig.13 As shown, a LVDS signal training device for receiving ultrasonic echo data is provided, comprising: a stability determination unit 1310, a delay value determination unit 1320, a delay unit 1330, a conversion unit 1340 and a shift determination unit 1350, wherein:
[0155] The stability determination unit 1310 is used to determine the data stability corresponding to each delay value according to the sampling point data of the test data monitored under each delay value when the signal delay module is set at each delay value.
[0156] The delay value determining unit 1320 is used to determine a target delay value according to the data stability corresponding to each of the delay values.
[0157] The delay unit 1330 is used to perform delay processing on the test data according to the target delay value to obtain the test data after delay processing.
[0158] The conversion unit 1340 is used to perform serial-to-parallel conversion on the test data after the delay processing.
[0159] The shift determination unit 1350 is used to determine the edge of the serial-to-parallel conversion performed by the serial-to-parallel conversion module based on the serial-to-parallel conversion result to determine the data shift operation value and complete the initialization configuration of the received LVDS ultrasonic echo data.
[0160] In one embodiment, the sampling point data corresponding to each of the delay values includes a plurality of continuous sampling point data; the stability determination unit 1310 is specifically used to determine, for any of the delay values, that the test data is stable under the any delay value when the plurality of continuous sampling point data corresponding to the any delay value are the same; and to determine, when the plurality of continuous sampling point data corresponding to the any delay value are not the same, that the test data is unstable under the any delay value.
[0161] In one of the embodiments, the delay value determining unit 1320 is specifically configured to generate an eye diagram according to the data stability corresponding to each of the delay values; and determine the target delay value according to the eye diagram.
[0162] In one of the embodiments, the delay value determination unit 1320 is specifically used to generate a stability label corresponding to each delay value according to the data stability corresponding to each delay value; and generate the eye diagram according to the stability label corresponding to each delay value.
[0163] In one of the embodiments, the stability label includes an unstable label and a stable label; the delay value determination unit 1320 is specifically used to determine a delay value stability interval based on continuous stable labels in the eye diagram; and the delay value corresponding to the center position of the delay value stability interval is used as the target delay value.
[0164] In one of the embodiments, the delay value determining unit 1320 is specifically configured to determine continuous stable labels in the eye diagram as candidate stable intervals; and use the longest candidate stable interval as the delay value stable interval.
[0165] In one embodiment, the serial-to-parallel conversion result includes test data after serial-to-parallel conversion; the shift determination unit 1350 is specifically used to obtain a shift operation value mapping relationship; the shift operation value mapping relationship includes a mapping relationship between a serial-to-parallel conversion operation and an edge position of the operation implementation when a serial-to-parallel conversion operation is performed at each bit in the test data; based on the shift operation value mapping relationship, the edge of the serial-to-parallel conversion of the test data after serial-to-parallel conversion is determined.
[0166] In one of the embodiments, the device also includes: a discard amount determination unit, which is used to receive incremental data sent simultaneously by the AFE chip on at least two channels; determine the data discard amount of each channel based on the difference in data corresponding to the incremental data of each channel under the same clock edge of the clock signal; the data discard amount is used to instruct the channel alignment module to perform channel alignment on the data of each channel.
[0167] In one of the embodiments, the discard amount determination unit is specifically used to determine the maximum data value among the data corresponding to the incremental data of each channel under the same clock edge of the clock signal; and determine the data discard amount of each channel based on the difference between the data value corresponding to the incremental data of each channel under the same clock edge of the clock signal and the maximum data value.
[0168] Each module in the above-mentioned LVDS signal training device for receiving ultrasonic echo data can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.
[0169] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.14 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store target delay values and data shift operation value data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a LVDS signal training method for receiving ultrasonic echo data is implemented.
[0170] Those skilled in the art will understand that Fig.14 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0171] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0172] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0173] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0174] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0175] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0176] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0177] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A LVDS signal training method for receiving ultrasonic echo data, characterized in that: The method comprises: The bit alignment module determines the data stability corresponding to each delay value according to the sampling point data of the test data monitored under each delay value when the signal delay module is set at each delay value; The bit alignment module determines a target delay value according to the data stability corresponding to each of the delay values; The signal delay module performs delay processing on the test data according to the target delay value to obtain the test data after delay processing; The serial-to-parallel conversion module performs serial-to-parallel conversion on the test data after the delay processing; The word alignment module determines the edge at which the serial-to-parallel conversion module performs serial-to-parallel conversion based on the serial-to-parallel conversion result to determine the data shift operation value and complete the initialization configuration of the received LVDS ultrasonic echo data.
2. The method according to claim 1, characterized in that The sampling point data corresponding to each of the delay values includes a plurality of continuous sampling point data; and determining the data stability corresponding to each of the delay values according to the sampling point data of the test data monitored under each of the delay values includes: For any of the delay values, the bit alignment module determines that the test data is stable under any of the delay values when the data of a plurality of consecutive sampling points corresponding to the delay value are the same; When the data of the plurality of consecutive sampling points corresponding to any of the delay values are different, the bit alignment module determines that the test data is unstable under any of the delay values.
3. The method according to claim 1, characterized in that The bit alignment module determines a target delay value according to the data stability corresponding to each of the delay values, including: The bit alignment module generates an eye diagram according to the data stability corresponding to each of the delay values; The bit alignment module determines the target delay value according to the eye diagram.
4. The method according to claim 3, characterized in that The bit alignment module generates an eye diagram according to the data stability corresponding to each of the delay values, including: The bit alignment module generates a stability label corresponding to each of the delay values according to the data stability corresponding to each of the delay values; The bit alignment module generates the eye diagram according to the stability labels corresponding to the delay values.
5. The method according to claim 4, characterized in that The stability label includes an unstable label and a stable label; and the bit alignment module determines the target delay value according to the eye diagram, including: The bit alignment module determines a delay value stability interval according to continuous stable labels in the eye diagram; The bit alignment module uses the delay value corresponding to the center position of the delay value stable interval as the target delay value.
6. The method according to claim 5, characterized in that The bit alignment module determines a delay value stability interval according to continuous stable labels in the eye diagram, including: The bit alignment module determines continuous stable labels in the eye diagram as candidate stable intervals; The bit alignment module uses the longest candidate stable interval as the delay value stable interval.
7. The method according to claim 1, characterized in that The serial-to-parallel conversion result includes test data after the serial-to-parallel conversion; the word alignment module determines the edge of the serial-to-parallel conversion performed by the serial-to-parallel conversion module based on the serial-to-parallel conversion result, including: The word alignment module obtains a shift operation value mapping relationship; the shift operation value mapping relationship includes a mapping relationship between a serial-to-parallel conversion operation and an edge position of the operation implementation when a serial-to-parallel conversion operation is performed on each bit in the test data; According to the shift operation value mapping relationship, an edge for performing serial-to-parallel conversion on the test data after serial-to-parallel conversion is determined.
8. The method according to claim 1, characterized in that Before completing the step of initializing the configuration of receiving LVDS ultrasonic echo data, the method further includes: receiving incremental data sent simultaneously by the AFE chip on at least two channels; The data discard amount of each channel is determined according to the difference of the data corresponding to the incremental data of each channel under the same clock edge of the clock signal; the data discard amount is used to instruct the channel alignment module to perform channel alignment on the data of each channel.
9. The method according to claim 8, characterized in that The step of determining the amount of data discarded for each channel according to the difference of data corresponding to the incremental data of each channel under the same clock edge of the clock signal includes: Determine the maximum data value among the data corresponding to the same clock edge of the clock signal according to the incremental data of each channel; The data discard amount of each channel is determined according to the difference between the data value corresponding to the incremental data of each channel at the same clock edge of the clock signal and the maximum data value.
10. An LVDS signal training device for receiving ultrasonic echo data, characterized in that: The device comprises: A stability determination unit, for determining the data stability corresponding to each delay value according to the sampling point data of the test data monitored under each delay value when the signal delay module is set at each delay value; A delay value determination unit, used to determine a target delay value according to the data stability corresponding to each of the delay values; A delay unit, used for performing delay processing on the test data according to the target delay value to obtain the test data after delay processing; A conversion unit, used for performing serial-to-parallel conversion on the test data after the delay processing; The shift determination unit is used to determine the edge of the serial-to-parallel conversion performed by the serial-to-parallel conversion module based on the serial-to-parallel conversion result, so as to determine the data shift operation value and complete the initialization configuration of the received LVDS ultrasonic echo data.
11. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
Citation Information
Cited By
Multichannel acquisition system for ultrasonic echo signals
CN119781364A
Signal delay adjustment method, signal delay adjustment device and storage medium
CN119853648A
Ultrasonic echo signal acquisition error correction method and device and ultrasonic flaw detection equipment
CN119881105A
Chip high-speed interconnection multichannel data synchronization method and system based on FPGA
CN121614413A
Phase training method and phase training device
CN122549329A
