Comb filter testing device and method, electronic equipment and storage medium

By introducing comb filter testing devices and methods in CIC filter testing, and using multi-layer detection modules to detect filtered data, the problem that a single verification method in the prior art cannot predict algorithm overflow, and more accurate filter detection and verification are achieved.

CN120064843APending Publication Date: 2025-05-30ZHONGKE HAOXIN (ZHUHAI) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510268506.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-07
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

In the prior art, the verification method of the CIC filter algorithm is too single and cannot predict the problem of algorithm overflow overflowing, especially when the oversampling rate and order are small, and when the sampled signal changes density is large, the filter is prone to algorithm overflow, and the accuracy of the results cannot be guaranteed.

Method used

An apparatus and method for testing a comb filter is provided, including a comb filter to be tested, a first detection module and a second detection module. The first detection module detects through prediction, and the second detection module detects and judges the filtered data through the simulation and simulation module, and jointly determines the accuracy of the filtered data.

Benefits of technology

Through the multi-layer detection mechanism, the comb filter to be tested can be more comprehensively detected, ensuring the accuracy of the detection results and preventing algorithm overflow and calculation errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120064843A_ABST
    Figure CN120064843A_ABST
Patent Text Reader

Abstract

The invention provides a comb filter testing device and method, electronic equipment and a storage medium. The device comprises a to-be-tested comb filter, a first detection module and a second detection module, wherein the to-be-detected comb filter is connected with the first detection module, and the to-be-detected comb filter is connected with the second detection module; the comb filter to be tested is used for processing the sampling data through a plurality of filtering stages to obtain filtering data; the first detection module is used for performing prediction detection according to the sampling data and the stage result of each filtering stage to obtain a first detection result; the second detection module is used for detecting and judging the filtering data to obtain a second detection result; wherein the first detection result and the second detection result are used for determining the accuracy of the filtering data. Through the cooperation of the first detection module and the second detection module, the comb filter to be detected can be detected more comprehensively, and the accuracy of the detection result is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of filter testing. Specifically, it relates to a device, method, electronic device, and storage medium for testing a comb filter. Background Art

[0002] As the optimal fir filter, the CIC filter only needs to filter out high-frequency signals and reduce the signal bandwidth by cascading an integrator, a decimator, and a cascaded differentiator, thereby eliminating spectral aliasing. For example, in a digital signal system, when using an ADC for signal sampling, when the sampling rate of the ADC is greater than the processing rate of the CPU, decimation processing is required, that is, the sampling rate is decimated. The decimation operation is equivalent to compressing the time domain. Therefore, frequency domain expansion is required before decimation. However, the sampling signals of the ADC are all discrete, which may cause the loss of distorted information. A low-pass anti-aliasing filter needs to be added before decimation, and the CIC filter provides a simpler and more convenient implementation method. Therefore, to ensure that the CIC filter can effectively perform frequency amplitude processing on the ADC sampling signals for a long time, the algorithm of the CIC filter needs to be effectively verified.

[0003] In the prior art, the verification method for the CIC filter algorithm is too single, and the problem of algorithm overflow exceeding the bit width cannot be predicted. Especially when the oversampling rate and the order are both small, and the density of the change of the sampling signal within an oversampling time period is large, the filter is extremely prone to algorithm overflow and cannot guarantee the accuracy of the result. Summary of the Invention

[0004] In view of this, the purpose of this application is to provide a device, method, electronic device, and storage medium for testing a comb filter to overcome the problems in the prior art.

[0005] In a first aspect, an embodiment of this application provides a device for testing a comb filter. The device includes: a comb filter to be tested, a first detection module, and a second detection module; wherein, the comb filter to be tested is connected to the first detection module, and the comb filter to be tested is connected to the second detection module; The comb filter to be tested is used to process sampling data through multiple filtering stages to obtain filtered data; The first detection module is used to perform prediction detection based on the sampling data and the stage results of each filtering stage to obtain a first detection result; The second detection module is used to detect and judge the filtered data to obtain a second detection result; wherein, the first detection result and the second detection result are used to determine the accuracy of the filtered data.

[0006] In some technical solutions of the present application, the above-mentioned comb filter to be measured includes a cascaded integration module, a decimation module, and a cascaded differentiation module; the comb filter to be measured is used to process sampled data through multiple filtering stages to obtain filtered data, including: The cascaded integration module is used to perform integral accumulation on the sampled data to obtain a first-stage result; The decimation module is used to decimate the first-stage result to obtain a second-stage result; The cascaded differentiation module is used to perform differential decrement on the second-stage result to obtain the filtered data.

[0007] In some technical solutions of the present application, the above-mentioned first detection module includes: a first prediction unit, a second prediction unit, a third prediction unit, and an overflow detection unit; The first detection module is used to perform prediction detection based on the sampled data and the stage results of each filtering stage to obtain a first detection result, including: The first prediction unit is used to predict the sampled data to obtain a first prediction result, and compare the first prediction result with the first-stage result; When the first prediction result and the first-stage result pass the comparison, the second prediction unit is used to predict the first prediction result to obtain a second prediction result, and compare the second prediction result with the second-stage result; When the second prediction result and the second-stage result pass the comparison, the third prediction unit is used to predict the second prediction result to obtain a third prediction result, and send the third prediction result to the overflow detection unit; The overflow detection unit is used to perform overflow detection on the filtered data based on the third prediction result to obtain a first detection result.

[0008] In some technical solutions of the present application, the above-mentioned first detection result includes overflow and no overflow; If the first prediction result and the first-stage result do not pass the comparison, the obtained first detection result is overflow; If the second prediction result and the second-stage result do not pass the comparison, the obtained first detection result is overflow; If the third prediction result is greater than the filtered data, the obtained first detection result is overflow; If the third prediction result is less than or equal to the filtered data, the obtained first detection result is no overflow.

[0009] In some technical solutions of the present application, the above overflow detection unit is further configured to save the filtered data and the overflow data when the first detection result is an overflow.

[0010] In some technical solutions of the present application, the above second detection module is an analog simulation module, and the analog simulation module is configured to generate an analog filter according to the configuration information of the comb filter to be tested.

[0011] In some technical solutions of the present application, the above second detection module is configured to detect and judge the filtered data to obtain a second detection result; wherein, the first detection result and the second detection result are used to determine the accuracy of the filtered data, including: Performing analog processing on the sampled data through the analog filter to obtain an analog processing result; Obtaining the second detection result according to the analog processing result and the filtered data. In a second aspect, an embodiment of the present application provides a method for testing a comb filter, which is applied to a device for testing a comb filter. The device includes: a comb filter to be tested, a first detection module, and a second detection module; wherein, the comb filter to be tested is connected to the first detection module, and the comb filter to be tested is connected to the second detection module; the method includes: The comb filter to be tested processes the sampled data through multiple filtering stages to obtain filtered data; The first detection module performs prediction detection according to the sampled data and the stage results of each filtering stage to obtain a first detection result; The second detection module detects and judges the filtered data to obtain a second detection result; wherein, the first detection result and the second detection result are used to determine the accuracy of the filtered data.

[0012] In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the steps of the above method for testing a comb filter are implemented.

[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, the steps of the above method for testing a comb filter are executed.

[0014] The technical solutions provided by the embodiments of the present application may include the following beneficial effects: The device for testing a comb filter in this application, the device includes: a comb filter to be tested, a first detection module, and a second detection module; wherein, the comb filter to be tested is connected to the first detection module, and the comb filter to be tested is connected to the second detection module; the comb filter to be tested is used to process sampled data through multiple filtering stages to obtain filtered data; the first detection module is used to perform predictive detection based on the sampled data and the stage results of each filtering stage to obtain a first detection result; the second detection module is used to detect and judge the filtered data to obtain a second detection result; wherein, the first detection result and the second detection result are used to determine the accuracy of the filtered data.

[0015] This application can cooperate with the first detection module and the second detection module to more comprehensively detect the comb filter to be tested, ensuring the accuracy of the detection result.

[0016] To make the above objects, features, and advantages of this application more obvious and understandable, the following specifically enumerates preferred embodiments and, in conjunction with the accompanying drawings, makes a detailed description as follows. Brief Description of the Drawings

[0017] To more clearly illustrate the technical solutions of the embodiments of this application, the following will briefly introduce the drawings required to be used in the embodiments. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as limiting the scope. For those of ordinary skill in the art, without creative efforts, other relevant drawings can also be obtained based on these drawings.

[0018] Figure 1 Shows a schematic diagram of a device for testing a comb filter provided by an embodiment of this application; Figure 2 Shows a schematic diagram of the specific working process of a device for testing a comb filter provided by an embodiment of this application; Figure 3 Shows a schematic flowchart of a method for testing a comb filter provided by an embodiment of this application; Figure 4 Is a schematic structural diagram of an electronic device provided by an embodiment of this application. Detailed Embodiments

[0019] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of this application. It should be understood that the accompanying drawings in this application only serve the purpose of illustration and description and are not used to limit the protection scope of this application. Additionally, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate the operations implemented according to some embodiments of this application. It should be understood that the operations in the flowchart may not be implemented in sequence, and steps without a logical context relationship may be reversed or implemented simultaneously. Furthermore, those skilled in the art can add one or more other operations to the flowchart or remove one or more operations from the flowchart under the guidance of the content of this application.

[0020] In addition, the described embodiments are only a part of the embodiments of this application, rather than all of the embodiments. The components of the embodiments of this application described and illustrated in the accompanying drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of this application that is claimed, but merely represents the selected embodiments of this application. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of this application.

[0021] It should be noted that the term "including" will be used in the embodiments of this application to indicate the existence of the features stated thereafter, but does not exclude the addition of other features.

[0022] As the optimal FIR filter, the CIC filter only needs to filter out high-frequency signals and reduce the signal bandwidth through three parts: a cascaded integrator, a decimator, and a cascaded differentiator, thereby eliminating spectral aliasing. For example, in a digital signal system, when using an ADC for signal sampling, when the sampling rate of the ADC is greater than the CPU processing rate, decimation processing is required, that is, the sampling rate is decimated. The decimation operation is equivalent to compressing the time domain. Therefore, frequency domain expansion is required before decimation. However, the sampling signals of the ADC are all discrete, which may cause the loss of distorted information. A low-pass anti-aliasing filter needs to be added before decimation, and the CIC filter provides a simpler and more convenient implementation method. Therefore, to ensure that the CIC filter can effectively perform frequency and amplitude processing on the ADC sampling signals for a long time, the algorithm of the CIC filter needs to be effectively verified.

[0023] In the prior art, the verification method for the CIC filter algorithm is too single, and the problem of algorithm overflow and over-width cannot be predicted. Especially when the oversampling rate and the order are both small, and the density of the change of the sampling signal within an oversampling time period is large, the filter is extremely prone to algorithm overflow and cannot guarantee the accuracy of the result.

[0024] Based on this, the embodiments of the present application provide a device, a method, an electronic device, and a storage medium for testing a comb filter, which will be described below through embodiments.

[0025] Figure 1 The structural schematic diagram of a device for testing a comb filter provided by the embodiments of the present application is shown. Some embodiments of the present application will be described in detail below. Without conflict, the following embodiments and the features in the embodiments can be combined with each other.

[0026] The device for testing the comb filter includes: a comb filter to be tested, a first detection module, and a second detection module; wherein, the comb filter to be tested is connected to the first detection module, and the comb filter to be tested is connected to the second detection module; The comb filter to be tested is configured to process sampled data through multiple filtering stages to obtain filtered data; The first detection module is configured to perform prediction detection based on the sampled data and the stage results of each filtering stage to obtain a first detection result; The second detection module is configured to perform detection and judgment on the filtered data to obtain a second detection result; wherein, the first detection result and the second detection result are used to determine the accuracy of the filtered data.

[0027] When detecting the comb filter to be tested, the embodiments of the present application set up two detection modules. Among them, the first detection module mainly detects the results of each filtering stage of the comb filter to be tested, and the second detection module mainly judges the filtered data. The detection results of the two detection modules jointly determine the accuracy of the filtered data.

[0028] Further, as Figure 2 shown, the comb filter to be tested in the embodiments of the present application includes a cascaded integration module, a decimation module, and a cascaded differentiation module; the comb filter to be tested is configured to process sampled data through multiple filtering stages to obtain filtered data, including: The cascaded integration module is configured to perform integral accumulation on the sampled data to obtain a first stage result; The decimation module is configured to perform decimation on the first stage result to obtain a second stage result; The cascaded differentiation module is configured to perform differential decrement on the second stage result to obtain the filtered data.

[0029] In the embodiment of the present application, the first detection module detects the stage results of each filtering stage of the comb filter to be measured. To improve the detection effect, the first detection module in the embodiment of the present application includes: a first prediction unit, a second prediction unit, a third prediction unit, and an overflow detection unit; each unit is directed to different stage data. Specifically, the first prediction unit detects the sampled data, the second prediction unit detects the first stage result, the third prediction unit detects the second stage result, and the overflow detection unit detects the filtered data.

[0030] In specific implementation, the first prediction unit is a cascaded integral prediction unit, and its working process is to obtain the sampled data, perform cascaded integral prediction on the sampled data, and obtain the first prediction result. At the same time, the first prediction unit also obtains the first stage result after integrating and accumulating the sampled data from the cascaded integration module, and then compares and analyzes the first stage result with the first prediction result.

[0031] When comparing and analyzing the first stage result with the first prediction result, if the first stage result is the same as or similar to the first prediction result (the difference is within the predicted range), the embodiment of the present application considers that the first stage result and the first prediction result pass the comparison. If the first stage result and the first prediction result differ greatly (the difference exceeds the predicted range), the embodiment of the present application considers that the first stage result and the first prediction result fail to pass the comparison. When the two pass the comparison, the first prediction result is sent to the second prediction unit; when the two do not pass the comparison, an error message (data overflow) is directly generated, and at this time, the error message (data overflow) is used as the first detection result.

[0032] The second prediction unit is a cascaded differential prediction unit, and its working process is to obtain the first prediction result when the first stage result and the first prediction result pass the comparison. Perform cascaded differential prediction on the first prediction result to obtain the second prediction result. At the same time, the second prediction unit also obtains the second stage result obtained by downsampling the first stage result from the decimation module, and then compares and analyzes the second stage result with the second prediction result.

[0033] When comparing and analyzing the second stage result with the second prediction result, if the second stage result is the same as or similar to the second prediction result (the difference is within the predicted range), the embodiment of the present application considers that the second stage result and the second prediction result pass the comparison. If the second stage result and the second prediction result differ greatly (the difference exceeds the predicted range), the embodiment of the present application considers that the second stage result and the second prediction result fail to pass the comparison. When the two pass the comparison, the second prediction result is sent to the third prediction unit; when the two do not pass the comparison, an error message (data overflow) is directly generated, and at this time, the error message (data overflow) is used as the first detection result.

[0034] The third prediction unit is a cascaded differential prediction unit. During its operation, when the second-stage result and the second prediction result are compared, the second prediction result is obtained. The second prediction result is subjected to cascaded differential prediction to obtain the third prediction result, which is then sent to the overflow detection unit.

[0035] After obtaining the first prediction result, the overflow detection unit also obtains the filtered data after differential reduction of the second-stage result from the cascaded differential module, and then performs overflow detection on the filtered data and the third prediction result. If the third prediction result is greater than the filtered data, the first detection result obtained is overflow; if the third prediction result is less than or equal to the filtered data, the first detection result obtained is no overflow.

[0036] Specifically, the CIC filter in the digital circuit can configure the order and oversampling rate of the filter through the bus, and can more flexibly process the data sampled by the ADC. Since the sampling signal generated by the ADC is also accompanied by the sampling clock, the CIC filter samples the sampling signal at the rising edge of each sampling clock, and performs frequency-domain expansion and time-domain compression one by one to obtain the final filtered output result. During the time-domain expansion process of the filter, the integrator needs to continuously accumulate according to the filtering clock, and the sizes of different-order or different-oversampling-rate filtering channels are different. During the verification process, it is not only necessary to detect whether the final calculation result is correct, but also to determine whether the final result overflows, and to judge whether the signed or unsigned number overflows.

[0037] In the cascaded integration, decimation, and differential prediction units (the first prediction unit, the second prediction unit, and the third prediction unit) in the model, the bit width is adjusted by obtaining the current filter configuration. At the same time, when finally differentially outputting, the comparison between the calculated value and the maximum value is increased. During the unsigned filter overflow detection, the size of the calculated value and the filter maximum value is judged. When the calculated value is greater than the current filter maximum value, it means that an overflow has occurred, and the maximum value of the current filter algorithm will be output; if there is no overflow, the calculated value (predicted value) will be output. In the signed filter, it is necessary to first judge whether the sign bit of the highest bit is 1 (positive) or 0 (negative). If it is positive, the unsigned output method should be followed (first judge whether it is greater than the maximum value, if it is greater, output the maximum value, if it is less, output the calculated value). If it is negative, the two's complement of the result needs to be converted to the original code of a positive number first. When the original code is greater than the maximum value, it means that a minimum value overflow has occurred, and the minimum value needs to be output at this time; when the original code is less than the maximum value, the calculated value is output. Finally, as the final prediction result, it is compared and verified with the output result of the CIC digital filter to ensure that each calculation is correct and no overflow occurs. The overflow detection unit is also used to save the filtered data and the overflow data when the first detection result is overflow.

[0038] In the embodiment of the present application, the second detection module is a simulation module, which is used to generate a simulation filter according to the configuration information of the comb filter to be measured. The detection and judgment of the filtered data by the second detection module include: performing simulation processing on the sampled data through the simulation filter to obtain a simulation processing result; and obtaining the second detection result according to the simulation processing result and the filtered data.

[0039] Specifically, the simulation processing result is compared with the filtered data. If the simulation processing result is the same as or similar to the filtered data (the difference is within the predicted range), the embodiment of the present application considers that the simulation processing result and the filtered data pass the comparison. If the simulation processing result and the filtered data differ greatly (the difference exceeds the predicted range), the embodiment of the present application considers that the simulation processing result and the filtered data fail to pass the comparison. When the two do not pass the comparison, an error message (data overflow) is directly generated, and at this time, the error message (data overflow) is used as the second detection result. When the two pass the comparison, the data accuracy is used as the second detection result.

[0040] In specific implementation, the second detection module can use the simulink cic algorithm model. The simulink is used to call the cic model to build a corresponding simulation environment, and then it is converted into a verilog or vhdl model to verify with the output value of the cic filter to ensure that the final calculated value is correct. However, the cic model in simulink will still overflow. Therefore, in order to prevent algorithm overflow of the filter, it is necessary to do the following in the inspection model: the processing method of the adc sampled data is the same as the cic algorithm in the comb filter to be measured, and ensure that there is no problem with the data transfer of each pen between the three parts of cascaded integration, decimation, and cascaded differentiation in the detection model.

[0041] Ensure that the actions of each piece of data in the filter are consistent with those in the detection model. When the detection model extracts the values in the cic filter, ensure that the verification values at each stage do not cross.

[0042] Ensure that the order and oversampling configuration in the model are consistent with those in the filter. At the same time, in the case of filters with different configurations, the channel width of the filter is constrained and matched. For example, in a signed cic filter, when the filter order N = 2 and the oversampling rate (osr) is 3, the maximum value obtained by testing the model according to the cic algorithm (such as formula 1) should be Valuemax = 9, and the minimum value should be Valuemim = -9. Therefore, at this time, the channel size width of the filter = 5 (plus a sign bit), and the final result cannot exceed the maximum value of 9.

[0043] Formula 1: N N Formula 1 is the formula for the maximum and minimum values of signed filtering.

[0044] Formula 2: Width

[0045] Formula 2 is the formula for calculating the bit width.

[0046] Through the above three conditions, it is fully ensured that the frequency-domain expansion (integration algorithm) and time-domain compression (decimation and differentiation algorithms) of the CIC are compliant. By obtaining the configuration of the filter, the first detection module automatically adjusts the size of the channel bit width in the model to ensure that the CIC algorithm can operate within a controllable channel range, greatly preventing data overflow and calculation errors. At the same time, in the second detection module, by increasing the control of the filtering channels, the algorithm accuracy in the detection model can be greatly improved.

[0047] Figure 3 The flowchart of a method for testing a comb filter provided by an embodiment of the present application is shown. Among them, the method acts on a device for testing a comb filter. The device includes: a comb filter to be tested, a first detection module, and a second detection module. Among them, the comb filter to be tested is connected to the first detection module, and the comb filter to be tested is connected to the second detection module, including steps S101 - S104. Specifically: S101. The comb filter to be tested processes the sampled data through multiple filtering stages to obtain filtered data. S102. The first detection module performs prediction detection based on the sampled data and the stage results of each filtering stage to obtain a first detection result. S103. The second detection module detects and judges the filtered data to obtain a second detection result. Among them, the first detection result and the second detection result are used to determine the accuracy of the filtered data.

[0048] The comb filter to be tested includes a cascaded integration module, a decimation module, and a cascaded differentiation module. The comb filter to be tested processes the sampled data through multiple filtering stages to obtain filtered data, including: The cascaded integration module performs integral accumulation on the sampled data to obtain a first stage result. The decimation module decimates the first stage result to obtain a second stage result. The cascaded differentiation module performs differential decrement on the second stage result to obtain the filtered data.

[0049] The first detection module includes: a first prediction unit, a second prediction unit, a third prediction unit, and an overflow detection unit. The first detection module performs predictive detection based on the sampled data and the stage results of each filtering stage to obtain a first detection result, including: The first prediction unit predicts the sampled data to obtain a first prediction result, and compares the first prediction result with the first stage result; The second prediction unit predicts the first prediction result when the first prediction result and the first stage result pass the comparison to obtain a second prediction result, and compares the second prediction result with the second stage result; The third prediction unit predicts the second prediction result when the second prediction result and the second stage result pass the comparison to obtain a third prediction result, and sends the third prediction result to the overflow detection unit; The overflow detection unit performs overflow detection on the filtered data based on the third prediction result to obtain a first detection result.

[0050] The first detection result includes overflow and no overflow; If the first prediction result and the first stage result do not pass the comparison, the obtained first detection result is overflow; If the second prediction result and the second stage result do not pass the comparison, the obtained first detection result is overflow; If the third prediction result is greater than the filtered data, the obtained first detection result is overflow; If the third prediction result is less than or equal to the filtered data, the obtained first detection result is no overflow.

[0051] When the first detection result is overflow, the overflow detection unit saves the filtered data and the overflow data.

[0052] The second detection module is an analog simulation module, and the analog simulation module generates an analog filter according to the configuration information of the comb filter to be measured.

[0053] The second detection module performs detection and judgment on the filtered data to obtain a second detection result; wherein, the first detection result and the second detection result are used to determine the accuracy of the filtered data, including: Performing analog processing on the sampled data through the analog filter to obtain an analog processing result; Obtaining the second detection result according to the analog processing result and the filtered data. Such as Figure 4As shown in the figure, an embodiment of the present application provides an electronic device for executing the method of comb filter testing in the present application. The device includes a memory, a processor, a bus, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the steps of the method of comb filter testing described above are implemented.

[0054] Specifically, the memory and the processor may be general-purpose memory and processor, which are not specifically limited here. When the processor runs the computer program stored in the memory, it can execute the method of comb filter testing described above.

[0055] Corresponding to the method of comb filter testing in the present application, an embodiment of the present application also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, the steps of the method of comb filter testing described above are executed.

[0056] Specifically, the storage medium can be a general-purpose storage medium, such as a mobile disk, a hard disk, etc. When the computer program on the storage medium is run, it can execute the method of comb filter testing described above.

[0057] In the embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. The system embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For another example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some communication interfaces. The indirect couplings or communication connections of the systems or units can be in electrical, mechanical or other forms.

[0058] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units. They can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0059] In addition, the functional units in the embodiments provided in the present application can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.

[0060] When the above-mentioned functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The foregoing storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs.

[0061] It should be noted that: similar reference numerals and letters denote similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. In addition, the terms "first", "second", "third", etc. are only used for descriptive distinction and cannot be construed as indicating or implying relative importance.

[0062] Finally, it should be noted that: the above-mentioned embodiments are only specific implementation manners of this application, used to illustrate the technical solution of this application, rather than limiting it. The protection scope of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: any person skilled in the art within the technical scope disclosed in this application can still modify the technical solution recorded in the foregoing embodiments, or can easily think of changes, or perform equivalent replacements on some of the technical features; and these modifications, changes, or replacements do not make the essence of the corresponding technical solution deviate from the spirit and scope of the technical solution of the embodiments of this application. All should be covered within the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims

1. A comb filter testing device, characterized in that: The device comprises: a comb filter to be tested, a first detection module and a second detection module; wherein the comb filter to be tested is connected to the first detection module, and the comb filter to be tested is connected to the second detection module; The comb filter to be tested is used to process the sampled data through multiple filtering stages to obtain filtered data; The first detection module is used to perform prediction detection according to the sampling data and the stage results of each filtering stage to obtain a first detection result; The second detection module is used to detect and judge the filtered data to obtain a second detection result; wherein the first detection result and the second detection result are used to determine the accuracy of the filtered data.

2. The device according to claim 1, characterized in that The comb filter to be tested comprises a cascaded integration module, a decimation module and a cascaded differentiation module; The comb filter to be tested is used to process the sampled data through multiple filtering stages to obtain filtered data, including: The cascade integration module is used to integrate and accumulate the sampled data to obtain the first stage result; The extraction module is used to extract the first stage results to obtain the second stage results; The cascade differential module is used to perform differential reduction on the second stage result to obtain the filtered data.

3. The device according to claim 2, characterized in that The first detection module includes: a first prediction unit, a second prediction unit, a third prediction unit and an overflow detection unit; The first detection module is used to perform prediction detection according to the sampling data and the stage results of each filtering stage to obtain a first detection result, including: The first prediction unit is used to predict the sampled data to obtain a first prediction result, and compare the first prediction result with the first stage result; The second prediction unit is used to predict the first prediction result to obtain a second prediction result when the first prediction result is compared with the first stage result, and compare the second prediction result with the second stage result; The third prediction unit is used to predict the second prediction result to obtain a third prediction result when the second prediction result and the second stage result are compared, and send the third prediction result to the overflow detection unit; The overflow detection unit is used to perform overflow detection on the filtered data based on the third prediction result to obtain a first detection result.

4. The device according to claim 3, characterized in that The first detection result includes overflow and no overflow; If the first prediction result and the first stage result fail to pass the comparison, the first detection result obtained is overflow; If the second prediction result and the second stage result fail to pass the comparison, the first detection result obtained is overflow; If the third prediction result is greater than the filtered data, the first detection result obtained is overflow; If the third prediction result is less than or equal to the filtered data, the first detection result obtained is non-overflow.

5. The device according to claim 4, characterized in that The overflow detection unit is further configured to save the filtered data and the overflow data when the first detection result is an overflow.

6. The device according to claim 1, characterized in that The second detection module is an analog simulation module, and the analog simulation module is used to generate an analog filter according to the configuration information of the comb filter to be tested.

7. The device according to claim 6, characterized in that The second detection module is used to detect and judge the filtered data to obtain a second detection result; wherein the first detection result and the second detection result are used to determine the accuracy of the filtered data, including: Performing analog processing on the sampled data through the analog filter to obtain an analog processing result; The second detection result is obtained according to the simulation processing result and the filtering data.

8. A method for testing a comb filter, characterized in that: A device for comb filter testing, the device comprising: a comb filter to be tested, a first detection module and a second detection module; wherein the comb filter to be tested is connected to the first detection module, and the comb filter to be tested is connected to the second detection module; the method comprises: The comb filter to be tested processes the sampled data through multiple filtering stages to obtain filtered data; The first detection module performs predictive detection according to the sampled data and the stage results of each filtering stage to obtain a first detection result; The second detection module detects and judges the filtered data to obtain a second detection result; wherein the first detection result and the second detection result are used to determine the accuracy of the filtered data.

9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the method for comb filter testing as described in claim 8 are performed.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for comb filter testing as claimed in claim 8 are executed.