Signal detection method and device, electronic equipment and storage medium
By obtaining the RF signal and judging its changing trend, the automatic verification problem of signal ramp change detection in Bluetooth audio chips is solved, efficient and accurate signal verification is achieved, and the verification cycle is shortened.
Patent Information
- Application Number
- CN202510122265.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-26
- Publication Date
- 2025-05-09
AI Technical Summary
During the development of Bluetooth audio chips, there is a lack of effective automated verification methods to detect whether the signal changes ramp as expected, resulting in manual viewing of the waveform for confirmation, which is time-consuming and labor-intensive, and it is impossible to quantitatively ensure whether the signal becomes larger or smaller strictly as expected.
By obtaining the RF signal, determining the waveform signal at different stages based on the preset intercept mark, determining its change trend, and then comparing it with the preset waveform change trend, determine whether the RF signal meets the preset requirements of Bluetooth signal.
This method does not require the storage of simulation waveforms, reduces storage space usage, improves signal verification quality and efficiency, and shortens verification cycles.
Smart Images

Figure CN119959732A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of testing technology, and in particular to a signal detection method, device, electronic device and storage medium. Background Art
[0002] In the development process of Bluetooth audio chips, ramp processing is usually added to Bluetooth signals, that is, the signal amplitude will gradually increase at the beginning of each frame, and the signal will gradually decrease at the end of each frame. However, in the verification process of these chips, there is currently no effective automated verification method to detect whether these signals are changing in the ramp as expected. The only way is to save the waveform and then manually check the waveform to confirm, which is time-consuming and labor-intensive, and is not conducive to large-scale regression verification and post-simulation. All simulations require saving the waveform, and then manually checking the waveform after the simulation to confirm whether the signal output has changed in the ramp. This can only qualitatively confirm the trend of the ramp signal change, and cannot quantitatively ensure whether the signal is strictly increasing or decreasing as expected. Therefore, how to improve the accuracy and efficiency of ramp signal detection is an urgent problem to be solved. Summary of the invention
[0003] Some embodiments of the present application aim to provide a signal detection method, device, electronic device and storage medium. Through the technical solution of the embodiments of the present application, a radio frequency signal is obtained; according to a preset interception identifier, a first waveform signal and a second waveform signal corresponding to the radio frequency signal are determined; a first change trend of the first waveform signal and a second change trend of the second waveform signal are determined; according to the first change trend and the preset second change trend, the preset waveform change trend is compared with each other, and it is determined whether the radio frequency signal meets the preset requirements of the Bluetooth signal according to the comparison result. In the embodiments of the present application, a preset interception identifier is used to obtain the waveform signal of the preset stage of the radio frequency signal, and the change trend of the waveform signal at different stages is judged, and then compared with the preset waveform change trend to determine whether the radio frequency signal meets the preset requirements of the Bluetooth signal. In this way, there is no need to save the simulated waveform, which reduces the occupancy of the storage space, and can effectively improve the signal verification quality and efficiency, shortening the verification cycle.
[0004] In a first aspect, some embodiments of the present application provide a signal detection method, including:
[0005] Acquire radio frequency signals;
[0006] Determining, according to a preset interception identifier, a first waveform signal and a second waveform signal corresponding to the radio frequency signal;
[0007] Determining a first change trend of the first waveform signal and a second change trend of the second waveform signal;
[0008] According to the first change trend and the preset second change trend, they are compared with preset waveform change trends respectively, and it is determined whether the radio frequency signal meets the preset requirements of the Bluetooth signal according to the comparison results.
[0009] Some embodiments of the present application obtain the waveform signal of the preset stage of the radio frequency signal through a preset interception identifier, and determine the change trend of the waveform signal at different stages, and then compare it with the preset waveform change trend to determine whether the radio frequency signal meets the preset requirements of the Bluetooth signal. In this way, there is no need to save the simulated waveform, which reduces the occupancy of the storage space, and can effectively improve the signal verification quality and efficiency, shortening the verification cycle.
[0010] Optionally, the determining, according to a preset interception identifier, a first waveform signal and a second waveform signal corresponding to the radio frequency signal includes:
[0011] Determining a starting point of the first waveform signal according to a first preset start interception mark;
[0012] Determining an end point of the first waveform signal according to a first preset end interception mark;
[0013] Determining the first waveform signal according to a starting point of the first waveform signal and an ending point of the first waveform signal;
[0014] Determining a starting point of the second waveform signal according to a second preset start interception mark;
[0015] Determining an end point of the second waveform signal according to a second preset end interception mark;
[0016] The second waveform signal is determined according to a starting point of the second waveform signal and an ending point of the second waveform signal.
[0017] Some embodiments of the present application obtain waveform signals at different stages by preset interception identifiers. In this way, saving of the complete waveform can be avoided, and the problem of slow waveform simulation saving, occupying more server resources and storage space, and being unfavorable for rapid confirmation of simulation results is solved, especially when a large number of regression verifications and post-simulations are involved.
[0018] Optionally, determining a first change trend of the first waveform signal includes:
[0019] According to the preset interception window and the first waveform signal, a first judgment value at a previous moment and a second judgment value at a current moment are obtained;
[0020] If the first judgment value is less than the second judgment value, it is determined that the first change trend of the first waveform signal is an upward trend.
[0021] Some embodiments of the present application use a capture window at each moment to obtain judgment values at different moments, where the judgment value may be a peak value or a trough value, and then judge the changing trend of the waveform signal, for example, rising or falling, based on the size of the judgment value.
[0022] Optionally, acquiring the first judgment value at the previous moment and the second judgment value at the current moment according to the preset interception window and the first waveform signal includes:
[0023] According to a preset interception window and the first waveform signal, three points on the first waveform signal within the interception window are acquired, wherein the three points include a first point, a second point, and a third point;
[0024] A first judgment value at a previous moment and a second judgment value at a current moment are determined according to the amplitudes of the first point, the second point and the third point.
[0025] In some embodiments of the present application, a plurality of points on a waveform are acquired by intercepting a window, and judgment values at different moments are determined according to the amplitudes of these points, thereby improving the accuracy of signal judgment.
[0026] Optionally, determining the first judgment value at the previous moment and the second judgment value at the current moment according to the amplitudes of the first point, the second point, and the third point includes:
[0027] If the amplitude of the first point is smaller than the amplitude of the second point, and the amplitude of the second point is larger than the amplitude of the third point, the amplitude of the second point is determined to be the first judgment value.
[0028] Optionally, determining a second change trend of the second waveform signal includes:
[0029] According to the preset interception window and the second waveform signal, obtaining a third judgment value at the previous moment and a fourth judgment value at the current moment;
[0030] If the third judgment value is greater than the fourth judgment value, it is determined that the second change trend of the second waveform signal is a downward trend.
[0031] Some embodiments of the present application use a capture window at each moment to obtain judgment values at different moments, where the judgment value may be a peak value or a trough value, and then judge the changing trend of the waveform signal, for example, rising or falling, based on the size of the judgment value.
[0032] Optionally, comparing the first change trend and the preset second change trend with preset waveform change trends respectively, and determining whether the radio frequency signal meets preset requirements of a Bluetooth signal according to the comparison results, includes:
[0033] If the first change trend of the first waveform signal is an upward trend and matches the preset change trend of the first waveform signal, and the second change trend of the second waveform signal is a downward trend and matches the preset change trend of the second waveform signal, it is determined that the radio frequency signal meets the preset requirements of the Bluetooth signal.
[0034] Some embodiments of the present application compare the signal change trends of different stages of the actually collected radio frequency signal with the signal change trends of the preset stage to determine whether the radio frequency signal meets the preset requirements of the Bluetooth signal, thereby improving the accuracy of signal judgment.
[0035] In a second aspect, some embodiments of the present application provide a signal detection device, including:
[0036] An acquisition module, used for acquiring radio frequency signals;
[0037] An interception module, used to determine a first waveform signal and a second waveform signal corresponding to the radio frequency signal according to a preset interception identifier;
[0038] a calculation module, configured to determine a first change trend of the first waveform signal and a second change trend of the second waveform signal;
[0039] The comparison module is used to compare the first change trend and the preset second change trend with the preset waveform change trend respectively, and determine whether the radio frequency signal meets the preset requirements of the Bluetooth signal according to the comparison results.
[0040] Some embodiments of the present application obtain the waveform signal of the preset stage of the radio frequency signal through a preset interception identifier, and determine the change trend of the waveform signal at different stages, and then compare it with the preset waveform change trend to determine whether the radio frequency signal meets the preset requirements of the Bluetooth signal. In this way, there is no need to save the simulated waveform, which reduces the occupancy of the storage space, and can effectively improve the signal verification quality and efficiency, shortening the verification cycle.
[0041] Optionally, the interception module is used to:
[0042] Determining a starting point of the first waveform signal according to a first preset start interception mark;
[0043] Determining an end point of the first waveform signal according to a first preset end interception mark;
[0044] Determining the first waveform signal according to a starting point of the first waveform signal and an ending point of the first waveform signal;
[0045] Determining a starting point of the second waveform signal according to a second preset start interception mark;
[0046] Determining an end point of the second waveform signal according to a second preset end interception mark;
[0047] The second waveform signal is determined according to a starting point of the second waveform signal and an ending point of the second waveform signal.
[0048] Some embodiments of the present application obtain waveform signals at different stages by preset interception identifiers. In this way, saving of the complete waveform can be avoided, and the problem of slow waveform simulation saving, occupying more server resources and storage space, and being unfavorable for rapid confirmation of simulation results is solved, especially when a large number of regression verifications and post-simulations are involved.
[0049] Optionally, the computing module is used to:
[0050] According to the preset interception window and the first waveform signal, a first judgment value at a previous moment and a second judgment value at a current moment are obtained;
[0051] If the first judgment value is less than the second judgment value, it is determined that the first change trend of the first waveform signal is an upward trend.
[0052] Some embodiments of the present application use a capture window at each moment to obtain judgment values at different moments, where the judgment value may be a peak value or a trough value, and then judge the changing trend of the waveform signal, for example, rising or falling, based on the size of the judgment value.
[0053] Optionally, the computing module is used to:
[0054] According to a preset interception window and the first waveform signal, three points on the first waveform signal within the interception window are acquired, wherein the three points include a first point, a second point, and a third point;
[0055] A first judgment value at a previous moment and a second judgment value at a current moment are determined according to the amplitudes of the first point, the second point and the third point.
[0056] In some embodiments of the present application, a plurality of points on a waveform are acquired by intercepting a window, and judgment values at different moments are determined according to the amplitudes of these points, thereby improving the accuracy of signal judgment.
[0057] Optionally, the computing module is used to:
[0058] If the amplitude of the first point is smaller than the amplitude of the second point, and the amplitude of the second point is larger than the amplitude of the third point, the amplitude of the second point is determined to be the first judgment value.
[0059] Optionally, the computing module is used to:
[0060] According to the preset interception window and the second waveform signal, obtaining a third judgment value at the previous moment and a fourth judgment value at the current moment;
[0061] If the third judgment value is greater than the fourth judgment value, it is determined that the second change trend of the second waveform signal is a downward trend.
[0062] Some embodiments of the present application use a capture window at each moment to obtain judgment values at different moments, where the judgment value may be a peak value or a trough value, and then judge the changing trend of the waveform signal, for example, rising or falling, based on the size of the judgment value.
[0063] Optionally, the comparison module is used to:
[0064] If the first change trend of the first waveform signal is an upward trend and matches the preset change trend of the first waveform signal, and the second change trend of the second waveform signal is a downward trend and matches the preset change trend of the second waveform signal, it is determined that the radio frequency signal meets the preset requirements of the Bluetooth signal.
[0065] Some embodiments of the present application compare the signal change trends of different stages of the actually collected radio frequency signal with the signal change trends of the preset stage to determine whether the radio frequency signal meets the preset requirements of the Bluetooth signal, thereby improving the accuracy of signal judgment.
[0066] In a third aspect, some embodiments of the present application provide an electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the program, the signal detection method as described in any embodiment of the first aspect can be implemented.
[0067] In a fourth aspect, some embodiments of the present application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, can implement the signal detection method as described in any embodiment of the first aspect.
[0068] In a fifth aspect, some embodiments of the present application provide a computer program product, wherein the computer program product comprises a computer program, wherein the computer program, when executed by a processor, can implement the signal detection method as described in any embodiment of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0069] In order to more clearly illustrate the technical solutions of some embodiments of the present application, the drawings required for use in some embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0070] Figure 1 A schematic diagram of a flow chart of a signal detection method provided in an embodiment of the present application;
[0071] Figure 2 A schematic diagram of a Bluetooth ramp signal provided in an embodiment of the present application;
[0072] Figure 3 A schematic diagram of peaks and troughs provided in an embodiment of the present application;
[0073] Figure 4 A schematic diagram of a flow chart of another signal detection method provided in an embodiment of the present application;
[0074] Figure 5 A schematic diagram of a rising change signal and a control signal provided in an embodiment of the present application;
[0075] Figure 6 A schematic diagram of a falling change signal and a control signal provided in an embodiment of the present application;
[0076] Figure 7 A schematic diagram of an instantiation in a verification environment provided in an embodiment of the present application;
[0077] Figure 8 A schematic diagram of the structure of a signal detection device provided in an embodiment of the present application;
[0078] Fig. 9 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0079] The technical solutions in some embodiments of the present application will be described below in conjunction with the drawings in some embodiments of the present application.
[0080] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0081] In the development process of Bluetooth audio chips, ramp processing is usually added to Bluetooth signals, that is, the signal amplitude will gradually increase at the beginning of each frame, and the signal will gradually decrease at the end of each frame. However, in the verification process of these chips, there is currently no effective automated verification method to detect whether these signals are changing in the ramp as expected. The only way is to save the waveform and then manually check the waveform to confirm, which is time-consuming and labor-intensive, and is not conducive to large-scale regression verification and post-simulation. All simulations need to save the waveform, and then manually check the waveform after the simulation to confirm whether the signal output changes in a ramp. It can only qualitatively confirm the ramp signal change trend, and cannot quantitatively ensure whether the signal strictly increases or decreases according to the expected ramp. Therefore, how to improve the accuracy and efficiency of signal detection is a problem that needs to be solved urgently. In view of this, some embodiments of the present application provide a signal detection method, which includes obtaining a radio frequency signal; determining a first waveform signal and a second waveform signal corresponding to the radio frequency signal according to a preset interception identifier; determining a first change trend of the first waveform signal and a second change trend of the second waveform signal; comparing the first change trend and the preset second change trend with the preset waveform change trend respectively, and determining whether the radio frequency signal meets the preset requirements of the Bluetooth signal according to the comparison result. In the embodiment of the present application, the waveform signal of the preset stage of the radio frequency signal is obtained by a preset interception identifier, and the change trend of the waveform signal in different stages is judged, and then compared with the preset waveform change trend to determine whether the radio frequency signal meets the preset requirements of the Bluetooth signal. In this way, there is no need to save the simulation waveform, reduce the occupancy rate of the storage space, and can effectively improve the signal verification quality and efficiency, shortening the verification cycle.
[0082] like Figure 1 As shown, an embodiment of the present application provides a signal detection method, the method comprising:
[0083] S101, obtaining a radio frequency signal;
[0084] The terminal device is connected to the chip to be tested, which may be a Bluetooth audio chip. The characteristic of the Bluetooth audio chip is that a ramp signal is added to each frame of audio data, and the amplitude becomes larger and larger in the initial period and becomes smaller and smaller in the final period.
[0085] The terminal device obtains the radio frequency signal of the chip under test.
[0086] S102, determining a first waveform signal and a second waveform signal corresponding to the radio frequency signal according to a preset interception identifier;
[0087] Specifically, the terminal device intercepts different positions of the radio frequency signal according to a preset interception identifier to obtain a first waveform signal and a second waveform signal. Due to the characteristics of the Bluetooth audio signal, the first waveform signal can be a waveform signal in the starting stage, and the second waveform signal can be a waveform signal in the ending stage.
[0088] S103, determining a first change trend of the first waveform signal and a second change trend of the second waveform signal;
[0089] Specifically, after acquiring the first waveform signal and the second waveform signal, the terminal device makes a judgment based on the amplitudes of the first waveform signal and the second waveform signal at different times, and then judges the first change trend of the first waveform signal and the second change trend of the second waveform signal, such as an upward trend or a downward trend, based on the change trend of the amplitude.
[0090] S104: comparing the first change trend and the preset second change trend with the preset waveform change trend respectively, and determining whether the radio frequency signal meets the preset requirement of the Bluetooth signal according to the comparison result.
[0091] like Figure 2 As shown, in the development process of Bluetooth audio chips, ramp processing is usually added to Bluetooth audio signals, that is, the signal amplitude will gradually increase at the beginning of each frame, and the signal will gradually decrease at the end of each frame. According to this characteristic, the preset waveform change trend is determined, that is, the waveform change trend in the first waveform signal stage is an upward trend, and the waveform change trend in the second waveform signal stage is a downward trend.
[0092] The terminal device compares the first change trend and the second change trend with the preset waveform change trend respectively. When the first change trend is an upward trend and the second change trend is a downward trend, that is, it matches the preset waveform change trend, it is determined that the radio frequency signal meets the preset requirements of the Bluetooth signal;
[0093] Some embodiments of the present application obtain the waveform signal of the preset stage of the radio frequency signal through a preset interception identifier, and determine the change trend of the waveform signal at different stages, and then compare it with the preset waveform change trend to determine whether the radio frequency signal meets the preset requirements of the Bluetooth signal. In this way, there is no need to save the simulated waveform, which reduces the occupancy of the storage space, and can effectively improve the signal verification quality and efficiency, shortening the verification cycle.
[0094] Another embodiment of the present application further supplements the signal detection method provided in the above embodiment.
[0095] Optionally, determining a first waveform signal and a second waveform signal corresponding to the radio frequency signal according to a preset interception identifier includes:
[0096] Determine the starting point of the first waveform signal according to the first preset start interception mark;
[0097] Determining an end point of the first waveform signal according to a first preset end interception mark;
[0098] Determine the first waveform signal according to the starting point of the first waveform signal and the ending point of the first waveform signal;
[0099] Determine the starting point of the second waveform signal according to the second preset start interception mark;
[0100] Determining an end point of the second waveform signal according to a second preset end interception mark;
[0101] The second waveform signal is determined according to the starting point of the second waveform signal and the ending point of the second waveform signal.
[0102] like Figure 5 and Figure 6 As shown, the terminal device sets interception points at different stages of the signal, that is, determines where the waveform signal starts and ends. For example, the starting point and end point of the first waveform signal are ramp_up_en and ramp_up_done, respectively, and the starting point and end point of the second waveform signal are ramp_dn_en and ramp_dn_done, respectively.
[0103] Some embodiments of the present application obtain waveform signals at different stages by preset interception identifiers. In this way, saving of the complete waveform can be avoided, and the problem of slow waveform simulation saving, occupying more server resources and storage space, and being unfavorable for rapid confirmation of simulation results is solved, especially when a large number of regression verifications and post-simulations are involved.
[0104] Optionally, determining a first change trend of the first waveform signal includes:
[0105] According to the preset interception window and the first waveform signal, a first judgment value at the previous moment and a second judgment value at the current moment are obtained;
[0106] If the first judgment value is less than the second judgment value, it is determined that the first change trend of the first waveform signal is an upward trend.
[0107] Specifically, the first judgment value and the second judgment value may be peak values or trough values.
[0108] As an optional implementation manner, the first judgment value and the second judgment value are both positive values, and if the first judgment value is less than the second judgment value, it is determined that the first change trend of the first waveform signal is an upward trend;
[0109] As another optional implementation, if the first judgment value and the second judgment value are peaks, they are positive values, and if the first judgment value and the second judgment value are troughs, they are negative values. During the judgment process, the peak at the current moment is compared with the peak at the previous moment, or the trough at the current moment is compared with the trough at the previous moment, so as to determine that the first change trend of the first waveform signal is an upward trend.
[0110] Some embodiments of the present application use a capture window at each moment to obtain judgment values at different moments, where the judgment value may be a peak value or a trough value, and then judge the changing trend of the waveform signal, for example, rising or falling, based on the size of the judgment value.
[0111] Optionally, obtaining a first judgment value at a previous moment and a second judgment value at a current moment according to a preset interception window and a first waveform signal includes:
[0112] According to the preset interception window and the first waveform signal, three points on the first waveform signal within the interception window are acquired, the three points including a first point, a second point and a third point;
[0113] According to the amplitudes of the first point, the second point and the third point, a first judgment value at the previous moment and a second judgment value at the current moment are determined.
[0114] If the amplitude of the first point is smaller than the amplitude of the second point, and the amplitude of the second point is smaller than the amplitude of the third point, then it is determined that the waveform signal is in an upward trend;
[0115] If the amplitude of the first point is smaller than the amplitude of the second point, and the amplitude of the second point is larger than the amplitude of the third point, the second point is determined to be a peak, that is, the first judgment value.
[0116] or,
[0117] If the amplitude of the first point is greater than the amplitude of the second point, and the amplitude of the second point is greater than the amplitude of the third point, then it is determined that the waveform signal is in a downward trend;
[0118] If the amplitude of the first point is greater than that of the second point, and the amplitude of the second point is less than that of the third point, the second point is determined to be a trough, that is, the second judgment value.
[0119] In some embodiments of the present application, a plurality of points on a waveform are acquired by intercepting a window, and judgment values at different moments are determined according to the amplitudes of these points, thereby improving the accuracy of signal judgment.
[0120] Optionally, determining the first judgment value at the previous moment and the second judgment value at the current moment according to the amplitudes of the first point, the second point, and the third point includes:
[0121] If the amplitude of the first point is smaller than the amplitude of the second point, and the amplitude of the second point is larger than the amplitude of the third point, the amplitude of the second point is determined to be the first judgment value.
[0122] Optionally, determining a second change trend of the second waveform signal includes:
[0123] According to the preset interception window and the second waveform signal, a third judgment value at the previous moment and a fourth judgment value at the current moment are obtained;
[0124] If the third judgment value is greater than the fourth judgment value, it is determined that the second change trend of the second waveform signal is a downward trend.
[0125] like Figure 3 As shown in the figure, the most critical and simplest way to check whether the signal changes according to the ramp is to find the value of each peak and each valley. Then the two values before and after can determine the current signal change trend. If the expected change is a ramp up, the amplitude of the current peak / valley should be greater than the amplitude of the previous peak / valley; if the expected change is a ramp down, the amplitude of the current peak / valley should be less than the amplitude of the previous peak / valley.
[0126] Some embodiments of the present application use a capture window at each moment to obtain judgment values at different moments, where the judgment value may be a peak value or a trough value, and then judge the changing trend of the waveform signal, for example, rising or falling, based on the size of the judgment value.
[0127] Optionally, comparing the first change trend and the preset second change trend with preset waveform change trends respectively, and determining whether the radio frequency signal meets preset requirements of the Bluetooth signal according to the comparison results, includes:
[0128] If the first change trend of the first waveform signal is an upward trend, which matches the preset change trend of the first waveform signal, and the second change trend of the second waveform signal is a downward trend, which matches the preset change trend of the second waveform signal, it is determined that the radio frequency signal meets the preset requirements of the Bluetooth signal.
[0129] Some embodiments of the present application compare the signal change trends of different stages of the actually collected radio frequency signal with the signal change trends of the preset stage to determine whether the radio frequency signal meets the preset requirements of the Bluetooth signal, thereby improving the accuracy of signal judgment.
[0130] like Figure 4As shown: You can use system verilog code to create a module ramp_monitor. The code implementation logic in the module is as follows:
[0131] 1. Wait for the ramp up enable signal ramp_up_en to be pulled up to confirm that the next step is in the ramp up stage;
[0132] 2. If it is currently in the ramp up stage, obtain each peak and trough value from the signal, and then determine whether the current peak / trough amplitude should be greater than the previous peak / trough amplitude, until the ramp up completion flag signal ramp_up_done is pulled up and then stop the ramp up detection, and then the ramp_up_en signal is pulled low;
[0133] 3. Wait for the ramp down enable signal ramp_dn_en to be pulled up to confirm that the next step is in the ramp down stage;
[0134] 4. If it is currently in the ramp down stage, obtain each peak and trough value from the signal, and then determine that the current peak / trough amplitude should be smaller than the previous peak / trough amplitude, until the ramp down completion signal ramp_dn_done is pulled up and then stop the ramp down detection, and then detect that the ramp_dn_en signal is pulled low;
[0135] 5. Repeat steps 1 to 4 to continuously detect the signal to be tested and perform ramp up and ramp down changes according to the expected timing and value.
[0136] The detailed code of ramp_monitor module is as follows:
[0137]
[0138]
[0139]
[0140] The code is explained as follows:
[0141] Line 22: The WINDOW_LEN parameter is configured according to the actual project. The minimum value is 3, which means finding the peak / valley value from the number of consecutive WINDOW_LEN in the ramp change signal.
[0142] Line 23: The BIAS parameter is configured according to the actual project, usually 0, representing the middle value of the ramp change signal.
[0143] Line 24: The CHK_MODE parameter is configured according to the actual project. 0 / 1 represents two detection modes. 0 means that any peak / valley amplitude is compared with the previous peak / valley amplitude; 1 means that the peak value is compared with the peak value, and the valley value is compared with the valley value.
[0144] Line 26: ramp_signal represents the input ramp change signal to be tested.
[0145] Lines 27 to 31: The control signal for the ramp signal change comes from the internal signal of the chip module under test.
[0146] Lines 34 to 43: Variable definitions used by the environment.
[0147] Lines 46 to 53: Initialize variables.
[0148] Line 55: The monitor starts the signal, that is, when the ramp_en signal of the module to be tested in the chip is 1, the ramp_monitor will start the subsequent detection.
[0149] Lines 57 to 145: Ramp up detection process, as follows:
[0150] Lines 60 to 97: Get the peak and valley values from the signal to be tested, ramp_signal.
[0151] First, wait for the ramp up enable signal ramp_up_en to be pulled high, and then start a forever loop. Every time the ramp_signal signal changes, the signal value is loaded into the tail of the ramp_src_q queue until the length of the ramp_src_q queue is WINDOW_LEN.
[0152] The operations in lines 67 to 70 obtain the index of the maximum and minimum values in the queue.
[0153] Lines 72 to 81 find the peak value. The specific judgment is: if the sequence number of the maximum value in the queue of WINDOW_LEN length is in the middle of the queue, then this value is the peak value. This value pri_real is placed at the end of the ramp_peak_q queue. At the same time, the absolute amplitude abs_real of the valley is placed at the end of the ramp_q queue. Then ramp_peak_flag and ramp_flag are set and ramp_cnt is increased by 1.
[0154] Lines 82 to 91 find the valley value. The specific judgment is: if the sequence number of the minimum value in the queue of WINDOW_LEN length is in the middle of the queue, then this value is the valley value. This value pri_real is placed at the end of the ramp_valley_q queue. At the same time, the absolute amplitude abs_real of the valley is placed at the end of the ramp_q queue. Then ramp_valley_flag and ramp_flag are set and ramp_cnt is increased by 1. Lines 92 to 96 are non-peak or valley values at this time, so ramp_flag, ramp_peak_flag and ramp_valley_flag are all set to 0.
[0155] Line 97 pops the first element of ramp_src_q out of the queue to ensure that subsequent ramp_src_q judgments are always WINDOW_LEN elements.
[0156] Line 100: If the ramp up completion signal ramp_up_done is pulled up, it means that this round of ramp up operation is completed, and break exits the forever loop.
[0157] Lines 102 to 121: Ramp up mode 1 judgment. If CHK_MODE == 1, that is, the peak value is compared with the peak value, and the trough value is compared with the trough value. Lines 103 to 111, if ramp_peak_flag is set to 1 and the ramp_peak_q queue is greater than two elements, if the last element ramp_peak_q[$] is greater than the previous element ramp_peak_q[$-1], it means that the ramp up change is as expected, otherwise the error log is printed and the error count err_num is increased by 1; Lines 112 to 120, if ramp_valley_flag is set to 1 and the ramp_valley_q queue is greater than two elements, if the last element ramp_valley_q[$] is less than the previous element ramp_valley_q[$-1] (indicating that the amplitude is increasing), it means that the ramp up change is as expected, otherwise the error log is printed and the error count err_num is increased by 1.
[0158] Lines 122-132: Ramp up mode 0 judgment. If CHK_MODE == 0, that is, any peak / valley amplitude is compared with the previous peak / valley amplitude. If ramp_flag is set to 1 and the ramp_q queue is greater than two elements, if the last element ramp_q[$] is greater than the previous element ramp_q[$-1], it means that the ramp up change is performed as expected, otherwise the error log is printed and the error count err_num is increased by 1.
[0159] Lines 134 to 145: Wait for the ramp up enable signal ramp_up_en to be 0, then initialize the variables in the environment to prepare for the next ramp detection.
[0160] Lines 148 to 239: Ramp down detection process. The specific explanation is similar to the above ramp up detection process and will not be repeated here.
[0161] Instantiate ramp_monitor in the verification environment, connect each ramp change signal and its ramp control signal in the DUT (design under test, referring to the entire chip design) to the input end of each ramp_monitor instance, and you can verify in real time whether these signals execute ramp changes as expected.
[0162]
[0163] The embodiment of the present application provides an automated inspection monitor for radio frequency ramp signals (ramp signals), which is implemented by programming with System Verilog syntax, and realizes the automated inspection of radio frequency ramp signals (ramp signals) in Bluetooth audio chips for the first time, effectively solving the drawback of the current verification method that can only save waveforms and manually inspect the waveforms, thereby effectively improving the verification quality and efficiency and shortening the verification cycle. In addition, all detection codes are encapsulated in one module to form a standard component that is plug-and-play, which is convenient and flexible, and greatly reduces the difficulty of use.
[0164] like Figure 7As shown in the figure, the above is the implementation scheme, integration method and specific code implementation of the automatic inspection monitor of the RF ramp signal (ramp signal). It is implemented by programming with system verilog syntax, and the automatic inspection of the RF ramp signal (ramp signal) in the Bluetooth audio chip is realized for the first time, which effectively solves the drawback of the current verification method that can only save the waveform and manually check the waveform. The monitor is plug-and-play, convenient and flexible, greatly reducing the difficulty of use, with strong practicality and versatility, effectively improving the verification quality and efficiency, and shortening the verification cycle.
[0165] The embodiment of the present application provides an automated inspection monitor for radio frequency ramp signals (ramp signals), which is implemented by programming with system verilog syntax, and realizes the automated inspection of radio frequency ramp signals (ramp signals) in Bluetooth audio chips for the first time, effectively solving the drawback of the current verification method that can only save waveforms and manually check waveforms. The monitor is plug-and-play, convenient and flexible, greatly reduces the difficulty of use, has strong practicality and versatility, effectively improves the quality and efficiency of verification, and shortens the verification cycle.
[0166] This monitor has been actually applied to the verification of several RF chips, and many functional and performance bugs have been discovered. It has strong application and promotion value.
[0167] It should be noted that each implementable method in this embodiment may be implemented separately, or may be implemented in combination in any combination without conflict, and this application is not limited thereto.
[0168] Another embodiment of the present application provides a signal detection device, which is used to execute the signal detection method provided in the above embodiment.
[0169] like Figure 8 , which is a schematic diagram of the structure of a signal detection device provided in an embodiment of the present application. The signal detection device includes an acquisition module 801, an interception module 802, a calculation module 803 and a comparison module 804, wherein:
[0170] The acquisition module 801 is used to acquire a radio frequency signal;
[0171] The interception module 802 is used to determine the first waveform signal and the second waveform signal corresponding to the radio frequency signal according to the preset interception identifier;
[0172] The calculation module 803 is used to determine a first change trend of the first waveform signal and a second change trend of the second waveform signal;
[0173] The comparison module 804 is used to compare the first change trend and the preset second change trend with the preset waveform change trend respectively, and determine whether the radio frequency signal meets the preset requirement of the Bluetooth signal according to the comparison result.
[0174] Regarding the device in this embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0175] Some embodiments of the present application obtain the waveform signal of the preset stage of the radio frequency signal through a preset interception identifier, and determine the change trend of the waveform signal at different stages, and then compare it with the preset waveform change trend to determine whether the radio frequency signal meets the preset requirements of the Bluetooth signal. In this way, there is no need to save the simulated waveform, which reduces the occupancy of the storage space, and can effectively improve the signal verification quality and efficiency, shortening the verification cycle.
[0176] Another embodiment of the present application further supplements the signal detection device provided in the above embodiment.
[0177] Optionally, an interception module is used to:
[0178] Determine the starting point of the first waveform signal according to the first preset start interception mark;
[0179] Determining an end point of the first waveform signal according to a first preset end interception mark;
[0180] Determine the first waveform signal according to the starting point of the first waveform signal and the ending point of the first waveform signal;
[0181] Determine the starting point of the second waveform signal according to the second preset start interception mark;
[0182] Determining an end point of the second waveform signal according to a second preset end interception mark;
[0183] The second waveform signal is determined according to the starting point of the second waveform signal and the ending point of the second waveform signal.
[0184] Some embodiments of the present application obtain waveform signals at different stages by preset interception identifiers. In this way, saving of the complete waveform can be avoided, and the problem of slow waveform simulation saving, occupying more server resources and storage space, and being unfavorable for rapid confirmation of simulation results is solved, especially when a large number of regression verifications and post-simulations are involved.
[0185] Optionally, the computing module is used to:
[0186] According to the preset interception window and the first waveform signal, a first judgment value at the previous moment and a second judgment value at the current moment are obtained;
[0187] If the first judgment value is less than the second judgment value, it is determined that the first change trend of the first waveform signal is an upward trend.
[0188] Some embodiments of the present application use a capture window at each moment to obtain judgment values at different moments, where the judgment value may be a peak value or a trough value, and then judge the changing trend of the waveform signal, for example, rising or falling, based on the size of the judgment value.
[0189] Optionally, the computing module is used to:
[0190] According to the preset interception window and the first waveform signal, three points on the first waveform signal within the interception window are acquired, the three points including a first point, a second point and a third point;
[0191] According to the amplitudes of the first point, the second point and the third point, a first judgment value at the previous moment and a second judgment value at the current moment are determined.
[0192] In some embodiments of the present application, a plurality of points on a waveform are acquired by intercepting a window, and judgment values at different moments are determined according to the amplitudes of these points, thereby improving the accuracy of signal judgment.
[0193] Optionally, the computing module is used to:
[0194] If the amplitude of the first point is smaller than the amplitude of the second point, and the amplitude of the second point is larger than the amplitude of the third point, the amplitude of the second point is determined to be the first judgment value.
[0195] Optionally, the computing module is used to:
[0196] According to the preset interception window and the second waveform signal, a third judgment value at the previous moment and a fourth judgment value at the current moment are obtained;
[0197] If the third judgment value is greater than the fourth judgment value, it is determined that the second change trend of the second waveform signal is a downward trend.
[0198] Some embodiments of the present application use a capture window at each moment to obtain judgment values at different moments, where the judgment value may be a peak value or a trough value, and then judge the changing trend of the waveform signal, for example, rising or falling, based on the size of the judgment value.
[0199] Optionally, a comparison module is used to:
[0200] If the first change trend of the first waveform signal is an upward trend, which matches the preset change trend of the first waveform signal, and the second change trend of the second waveform signal is a downward trend, which matches the preset change trend of the second waveform signal, it is determined that the radio frequency signal meets the preset requirements of the Bluetooth signal.
[0201] Some embodiments of the present application compare the signal change trends of different stages of the actually collected radio frequency signal with the signal change trends of the preset stage to determine whether the radio frequency signal meets the preset requirements of the Bluetooth signal, thereby improving the accuracy of signal judgment.
[0202] Regarding the device in this embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0203] It should be noted that each implementable method in this embodiment may be implemented separately, or may be implemented in combination in any combination without conflict, and this application is not limited thereto.
[0204] An embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the operation of the method corresponding to any embodiment of the signal detection method provided in the above embodiments can be implemented.
[0205] An embodiment of the present application further provides a computer program product, wherein the computer program product includes a computer program, wherein when the computer program is executed by a processor, it can implement the operations of the method corresponding to any embodiment of the signal detection method provided in the above embodiments.
[0206] like Fig. 9 As shown, some embodiments of the present application provide an electronic device 900, which includes: a memory 910, a processor 920, and a computer program stored in the memory 910 and executable on the processor 920, wherein the processor 920 can implement a method of any embodiment included in the above-mentioned signal detection method when reading the program from the memory 910 through a bus 930 and executing the program.
[0207] Processor 920 can process digital signals and can include various computing structures, such as complex instruction set computer structure, reduced instruction set computer structure, or a structure that implements a combination of multiple instruction sets. In some examples, processor 920 can be a microprocessor.
[0208] The memory 910 may be used to store instructions executed by the processor 920 or data related to the execution of instructions. These instructions and / or data may include codes for implementing some or all functions of one or more modules described in the embodiments of the present application. The processor 920 of the disclosed embodiment may be used to execute instructions in the memory 910 to implement the method shown above. The memory 910 includes a dynamic random access memory, a static random access memory, a flash memory, an optical memory, or other memory known to those skilled in the art.
[0209] The above are only embodiments of the present application and are not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0210] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0211] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A signal detection method, characterized in that: The method comprises: Acquire radio frequency signals; Determining, according to a preset interception identifier, a first waveform signal and a second waveform signal corresponding to the radio frequency signal; Determining a first change trend of the first waveform signal and a second change trend of the second waveform signal; According to the first change trend and the preset second change trend, they are compared with preset waveform change trends respectively, and it is determined whether the radio frequency signal meets the preset requirements of the Bluetooth signal according to the comparison results.
2. The signal detection method according to claim 1, characterized in that: The step of determining the first waveform signal and the second waveform signal corresponding to the radio frequency signal according to the preset interception identifier includes: Determining a starting point of the first waveform signal according to a first preset start interception mark; Determining an end point of the first waveform signal according to a first preset end interception mark; Determining the first waveform signal according to a starting point of the first waveform signal and an ending point of the first waveform signal; Determining a starting point of the second waveform signal according to a second preset start interception mark; Determining an end point of the second waveform signal according to a second preset end interception mark; The second waveform signal is determined according to a starting point of the second waveform signal and an ending point of the second waveform signal.
3. The signal detection method according to claim 1, characterized in that: The determining a first change trend of the first waveform signal includes: According to the preset interception window and the first waveform signal, a first judgment value at a previous moment and a second judgment value at a current moment are obtained; If the first judgment value is less than the second judgment value, it is determined that the first change trend of the first waveform signal is an upward trend.
4. The signal detection method according to claim 3, characterized in that: The obtaining, according to the preset interception window and the first waveform signal, the first judgment value at the previous moment and the second judgment value at the current moment comprises: According to a preset interception window and the first waveform signal, three points on the first waveform signal within the interception window are acquired, wherein the three points include a first point, a second point, and a third point; A first judgment value at a previous moment and a second judgment value at a current moment are determined according to the amplitudes of the first point, the second point and the third point.
5. The signal detection method according to claim 4, characterized in that: The determining, according to the amplitudes of the first point, the second point, and the third point, a first judgment value at a previous moment and a second judgment value at a current moment comprises: If the amplitude of the first point is smaller than the amplitude of the second point, and the amplitude of the second point is larger than the amplitude of the third point, the amplitude of the second point is determined to be the first judgment value.
6. The signal detection method according to claim 3, characterized in that: The determining a second change trend of the second waveform signal includes: According to the preset interception window and the second waveform signal, obtaining a third judgment value at the previous moment and a fourth judgment value at the current moment; If the third judgment value is greater than the fourth judgment value, it is determined that the second change trend of the second waveform signal is a downward trend.
7. The signal detection method according to claim 6, characterized in that: The comparing the first change trend and the preset second change trend with preset waveform change trends respectively, and determining whether the radio frequency signal meets the preset requirements of the Bluetooth signal according to the comparison results, includes: If the first change trend of the first waveform signal is an upward trend and matches the preset change trend of the first waveform signal, and the second change trend of the second waveform signal is a downward trend and matches the preset change trend of the second waveform signal, it is determined that the radio frequency signal meets the preset requirements of the Bluetooth signal.
8. A signal detection device, characterized in that: The device comprises: An acquisition module, used for acquiring radio frequency signals; An interception module, used to determine a first waveform signal and a second waveform signal corresponding to the radio frequency signal according to a preset interception identifier; a calculation module, configured to determine a first change trend of the first waveform signal and a second change trend of the second waveform signal; The comparison module is used to compare the first change trend and the preset second change trend with the preset waveform change trend respectively, and determine whether the radio frequency signal meets the preset requirements of the Bluetooth signal according to the comparison results.
9. An electronic device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the signal detection method according to any one of claims 1 to 7 can be implemented when the processor executes the program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the program, when executed by a processor, can implement the signal detection method described in any one of claims 1 to 7.