Filter construction method, device, computer equipment and readable storage medium
By constructing multiple sub-filter decimation rate configuration schemes and reasonably configuring the number and decimation rate of sub-filters, the problem of high-order calculation of CIC filters is solved, a filter design with a small amount of calculation is realized, and the ADC conversion efficiency is improved. .
Patent Information
- Application Number
- CN202310436306.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-21
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-04-21
AI Technical Summary
The existing CIC filter has a huge amount of calculation in high-order situations. Simply splitting it into low-order sub-filters still cannot effectively reduce the amount of calculation and affects the ADC conversion efficiency.
By determining the order range and total extraction rate of the target filter, construct multiple sub-filter extraction rate configuration schemes, select the configuration scheme with the smallest amount of calculation, and reasonably configure the number and extraction rate of sub-filters to build a smaller calculation amount. filter.
Under the condition that the filter design requirements are met, the calculation amount of the filter is effectively reduced, and the ADC conversion efficiency and work efficiency are improved.
Smart Images

Figure CN116582109B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of filter design, and in particular to a filter construction method, device, computer equipment and readable storage medium. Background Art
[0002] At present, CIC filter (Cascaded Integrator–Comb filter) has become the most popular filter in hardware design. For example, in the online monitoring devices and the whole station monitoring system of complex equipment such as converter transformers, converter valves, GIS equipment (Gas Insulated Switchgear) for high-voltage DC converter stations in power systems, higher requirements are placed on the conversion efficiency of ADC (Analog to Digital Converter). As a key component of Σ-Δ (Sigma-Delta-Converter, Σ-Δ discrete) ADC, the selection of CIC filter has a crucial impact on the performance of Σ-Δ ADC. The frequency response of CIC filter consists of a series of regularly distributed peaks, which looks similar to a comb. CIC filter can superimpose a signal with its delayed signal to produce phase cancellation. An important feature of CIC filter is that it does not require multiplication, but only addition / subtraction to achieve.
[0003] Usually, in order to reduce the amount of addition / subtraction calculations of the CIC filter, a high-order CIC filter is randomly split into multiple low-order sub-filters, and the output of the previous sub-filter is used as the input of the next sub-filter. Although this simple splitting method can reduce the amount of calculation of the CIC filter to a certain extent, the amount of calculation required for high-order filters is still huge. Summary of the invention
[0004] Based on this, it is necessary to provide a method, device, computer equipment and readable storage medium for constructing a filter with a smaller amount of calculation in order to solve the above technical problems.
[0005] In a first aspect, the present application provides a method for constructing a filter, the method comprising:
[0006] Determine the order range and total decimation rate of the target filter according to the order of the modulator corresponding to the target filter to be constructed and the number of output data bits of the target filter;
[0007] Determining at least one optional number of sub-filters included in the target filter according to the order range;
[0008] Under the condition that the product of the decimation rates of the sub-filters included in the target filter is equal to the total decimation rate, a sub-filter decimation rate configuration scheme corresponding to each optional number is constructed; wherein the decimation rate of the sub-filter is a non-1 factor of the total decimation rate;
[0009] According to the calculation amount of the decimation rate configuration scheme of each sub-filter, the target number of sub-filters included in the target filter and the decimation rate of each sub-filter are determined.
[0010] In one embodiment, according to the order of the modulator corresponding to the target filter to be constructed and the number of output data bits of the target filter, the order range and the total decimation rate of the target filter are determined, including:
[0011] According to the order of the modulator corresponding to the target filter to be constructed, determining the lower limit value of the order in the order range of the target filter;
[0012] Determine the total decimation rate of the target filter according to the number of output data bits of the target filter and the lower limit of the order;
[0013] The upper limit of the order in the order range is determined based on the total decimation rate.
[0014] In one embodiment, determining the total decimation rate of the target filter according to the number of output data bits of the target filter and the lower limit value of the order includes:
[0015] The total decimation rate of the target filter is determined by taking 2 as the base and the ratio between the number of output data bits of the target filter and the lower limit of the order as the exponent.
[0016] In one embodiment, according to the calculation amount of the decimation rate configuration scheme of each sub-filter, the target number of sub-filters included in the target filter and the decimation rate of each sub-filter are determined, including:
[0017] For each sub-filter decimation rate configuration scheme, according to the decimation rates of the sub-filters corresponding to the sub-filter decimation rate configuration scheme and the positions of the sub-filters in the target filter, determining the amount of addition and subtraction calculations of the target filter under the sub-filter decimation rate configuration scheme;
[0018] Selecting a target configuration scheme from the sub-filter decimation rate configuration schemes according to the addition and subtraction calculation amount of the target filter under the sub-filter decimation rate configuration schemes;
[0019] The optional number corresponding to the target configuration scheme is used as the target number of sub-filters included in the target filter;
[0020] The decimation rate of each sub-filter corresponding to the target configuration scheme is used as the decimation rate of each sub-filter included in the target filter.
[0021] In one embodiment, determining the amount of addition and subtraction calculation of the target filter under the sub-filter decimation rate configuration scheme according to the decimation rates of the sub-filters corresponding to the sub-filter decimation rate configuration scheme and the positions of the sub-filters in the target filter comprises:
[0022] Determine the addition and subtraction calculation amount of each sub-filter corresponding to the sub-filter decimation rate configuration scheme according to the decimation rate of each sub-filter corresponding to the sub-filter decimation rate configuration scheme and the position of each sub-filter in the target filter;
[0023] The sum of the addition and subtraction calculation amounts of the sub-filters corresponding to the sub-filter decimation rate configuration scheme is used as the addition and subtraction calculation amount of the target filter under the sub-filter decimation rate configuration scheme.
[0024] In one embodiment, according to the addition and subtraction calculation amount of the target filter under each sub-filter decimation rate configuration scheme, a target configuration scheme is selected from each sub-filter decimation rate configuration scheme, including:
[0025] Among the sub-filter decimation rate configuration schemes corresponding to the target filter, the sub-filter decimation rate configuration scheme corresponding to the minimum addition and subtraction calculation amount is used as the target configuration scheme.
[0026] In one embodiment, determining the addition and subtraction calculation amount of each sub-filter corresponding to the sub-filter decimation rate configuration scheme according to the decimation rate of each sub-filter corresponding to the sub-filter decimation rate configuration scheme and the position of each sub-filter in the target filter includes:
[0027] For each sub-filter corresponding to the sub-filter decimation rate configuration scheme, constructing a transfer function of the sub-filter according to the decimation rate of the sub-filter and the position of the sub-filter in the target filter;
[0028] The amount of addition and subtraction calculations of the sub-filter is determined according to the polynomial corresponding to the transfer function and the decimation rate of the sub-filter.
[0029] In a second aspect, the present application also provides a filter construction device, the device comprising:
[0030] A first determination module is used to determine the order range and total decimation rate of the target filter according to the order of the modulator corresponding to the target filter to be constructed and the number of output data bits of the target filter;
[0031] A second determination module, used to determine at least one optional number of sub-filters included in the target filter according to the order range;
[0032] A scheme construction module is used to construct a sub-filter decimation rate configuration scheme corresponding to each optional number under the condition that the product of the decimation rates of the sub-filters included in the target filter is equal to the total decimation rate; wherein the decimation rate of the sub-filter is a non-1 factor of the total decimation rate;
[0033] The filter construction module is used to determine the target number of sub-filters included in the target filter and the decimation rate of each sub-filter according to the calculation amount of the decimation rate configuration scheme of each sub-filter.
[0034] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0035] Determine the order range and total decimation rate of the target filter according to the order of the modulator corresponding to the target filter to be constructed and the number of output data bits of the target filter;
[0036] Determining at least one optional number of sub-filters included in the target filter according to the order range;
[0037] Under the condition that the product of the decimation rates of the sub-filters included in the target filter is equal to the total decimation rate, a sub-filter decimation rate configuration scheme corresponding to each optional number is constructed; wherein the decimation rate of the sub-filter is a non-1 factor of the total decimation rate;
[0038] According to the calculation amount of the decimation rate configuration scheme of each sub-filter, the target number of sub-filters included in the target filter and the decimation rate of each sub-filter are determined.
[0039] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0040] Determine the order range and total decimation rate of the target filter according to the order of the modulator corresponding to the target filter to be constructed and the number of output data bits of the target filter;
[0041] Determining at least one optional number of sub-filters included in the target filter according to the order range;
[0042] Under the condition that the product of the decimation rates of the sub-filters included in the target filter is equal to the total decimation rate, a sub-filter decimation rate configuration scheme corresponding to each optional number is constructed; wherein the decimation rate of the sub-filter is a non-1 factor of the total decimation rate;
[0043] According to the calculation amount of the decimation rate configuration scheme of each sub-filter, the target number of sub-filters included in the target filter and the decimation rate of each sub-filter are determined.
[0044] In a fifth aspect, the present application further provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0045] Determine the order range and total decimation rate of the target filter according to the order of the modulator corresponding to the target filter to be constructed and the number of output data bits of the target filter;
[0046] Determining at least one optional number of sub-filters included in the target filter according to the order range;
[0047] Under the condition that the product of the decimation rates of the sub-filters included in the target filter is equal to the total decimation rate, a sub-filter decimation rate configuration scheme corresponding to each optional number is constructed; wherein the decimation rate of the sub-filter is a non-1 factor of the total decimation rate;
[0048] According to the calculation amount of the decimation rate configuration scheme of each sub-filter, the target number of sub-filters included in the target filter and the decimation rate of each sub-filter are determined.
[0049] The above-mentioned filter construction method, device, computer equipment and readable storage medium determine the order range and total decimation rate of the target filter by combining the order of the modulator corresponding to the target filter to be constructed and the number of output data bits of the target filter, and based on the order range and the total decimation rate, construct a plurality of optional sub-filter decimation rate configuration schemes on the condition that the product of the decimation rates of the sub-filters contained in the target filter is equal to the total decimation rate, and then determine the target number of sub-filters contained in the target filter to be constructed and the decimation rate of each sub-filter based on the computational amount as a constraint. Compared with the prior art that simply splits a high-order filter into multiple low-order filters, the present application realizes the reasonable configuration of the sub-filter decimation rate corresponding to the target filter while meeting the filter design requirements, thereby constructing a target filter with a smaller computational amount, effectively improving the working efficiency of the filter. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 is an application environment diagram of a method for constructing a filter in one embodiment;
[0051] Figure 2 is a flow chart of a method for constructing a filter in an embodiment;
[0052] Figure 3 A schematic diagram of a flow chart for determining an order range and a total decimation rate of a target filter in one embodiment;
[0053] Figure 4 A schematic diagram of a flow chart of determining sub-filter related information included in a target filter in one embodiment;
[0054] Figure 5 A schematic diagram of a flow chart for determining the addition and subtraction calculation amount of a sub-filter in one embodiment;
[0055] Figure 6 is a flow chart of a method for constructing a filter in another embodiment;
[0056] Figure 7 is a structural block diagram of a device for constructing a filter in one embodiment;
[0057] Figure 8 is a structural block diagram of a device for constructing a filter in yet another embodiment;
[0058] Fig. 9 is a structural block diagram of a filter construction device in yet another embodiment;
[0059] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0061] The filter construction method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process, such as the relevant data of the modulator corresponding to the target filter to be constructed. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Specifically, the server 104 determines the order range and the total decimation rate of the target filter according to the order of the modulator corresponding to the target filter to be constructed and the number of output data bits of the target filter; then, according to the order range, at least one optional number of sub-filters included in the target filter is determined; and then, under the condition that the product of the decimation rates of the sub-filters included in the target filter is equal to the total decimation rate, the sub-filter decimation rate configuration scheme corresponding to each optional number is constructed; wherein the decimation rate of the sub-filter is a non-1 factor of the total decimation rate; further, according to the calculation amount of each sub-filter decimation rate configuration scheme, the target number of sub-filters included in the target filter and the decimation rate of each sub-filter are determined. Furthermore, the server 104 can also interact with the terminal 102 to feed back the target number of sub-filters included in the target filter and the decimation rate of each sub-filter to the terminal 102, and the terminal 102 feeds back the construction plan of the target filter to the filter construction personnel.
[0062] The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0063] In one embodiment, Figure 2 As shown, a method for constructing a filter is provided, and the method is applied to Figure 1 Taking the server 104 in the example as an example, the following steps are included:
[0064] S201, determining the order range and total decimation rate of the target filter according to the order of the modulator corresponding to the target filter to be constructed and the number of output data bits of the target filter.
[0065] Specifically, the target filter to be constructed is a CIC filter (Cascaded Integrator–Comb filter), and the modulator corresponding to the target filter to be constructed refers to a modulator connected to the CIC filter in an ADC (Analog to Digital Converter).
[0066] In this embodiment, the ADC may be a Σ-Δ type (Sigma-Delta-Converter, Σ-Δ discrete type) ADC; correspondingly, the modulator may be a Σ-Δ modulator, which is a modulator using techniques such as oversampling and noise shaping, mainly realizing signal sampling and incremental coding processing, and its output and feedback are roughly quantized, often with only 1-bit bit stream, used to represent high-level or low-level output. Under the condition that the ADC loop is relatively stable, the output is a rough representation of the input. In other words, the target filter obtains the rough output of the corresponding modulator, and after extraction and filtering, converts it into an accurate digital signal for output.
[0067] In practical applications, when the sigma-delta modulator connected to the target filter requires a large decimation rate, the passband and transition band of the target filter will be very narrow, and the order of the target filter will be very large, which will lead to a surge in the amount of calculation of the target filter, and increase the system power consumption and chip area during implementation. Therefore, when constructing the target filter, the order of the front-end sigma-delta modulator of the target filter should be taken into account. For example, the order of the target filter is at least 1 greater than the order of the corresponding sigma-delta modulator to prevent excessively distorted noise modulation outside the sideband from entering the baseband.
[0068] At the same time, since the number of bits of the output data of the target filter is a multiple of the number of bits of the input data, in other words, if the input data is a 1-bit bit stream, then the output data is an n-bit bit stream, and the size of n is related to the order of the target filter and the total decimation rate.
[0069] Therefore, when the order of the corresponding Σ-Δ modulator and the number of output data bits n of the target filter are determined, the order range and total decimation rate of the target filter can be obtained. That is, in the overall construction of the target filter, firstly, based on the actual application situation, the order of the modulator corresponding to the target filter and the number of output data bits of the target filter are determined, and then according to the order of the corresponding modulator and the number of output data bits of the target filter, the order range and total decimation rate of the target filter can be determined.
[0070] S202: Determine at least one optional number of sub-filters included in the target filter according to the order range.
[0071] At present, in order to reduce the amount of addition and subtraction calculations of CIC filters, a high-order CIC filter is often simply split into multiple cascaded low-order filters. For example, for a 5th-order filter, it can be split into two 2nd-order filters and one 1st-order filter; for another example, for a 12th-order filter, it can be split into three 4th-order filters. This splitting method can reduce the overall calculation amount of the filter to a certain extent by reducing the order of the CIC filter.
[0072] It is understandable that the higher the order of the target filter, the more feasible splitting methods there are, and the amount of calculation of the target filter constructed under different splitting methods is inconsistent, and when the order of the target filter is high, the amount of calculation required after simple splitting is still high. Based on this, after determining the order range of the target filter, all splitting methods can be classified according to the number of sub-filters split out of the target filter under different splitting methods, that is, at least one optional number of sub-filters contained in the target filter can be determined according to the order range, and then classified according to different optional numbers.
[0073] Optionally, the order of the target filter is the same as the number of sub-filters included in the target filter. For example, if the order of the target filter is determined to range from 4 to 7, then it is equivalent to determining that the optional number of sub-filters included in the target filter is 4 to 7.
[0074] S203: constructing sub-filter decimation rate configuration schemes corresponding to each optional number of sub-filters under the condition that the product of the decimation rates of the sub-filters included in the target filter is equal to the total decimation rate.
[0075] The decimation rate of the sub-filter is a non-1 factor of the total decimation rate.
[0076] The sub-filters included in the target filter are combined and arranged in a cascaded form, and the output of the previous sub-filter is used as the input of the next sub-filter. The product of the decimation rates of all cascaded sub-filters is the total decimation rate of the target filter. Then, when the total decimation rate of the target filter to be constructed has been determined, the decimation rate configuration scheme of all sub-filters of the target filter can be constructed under the condition that the product of the decimation rates of the sub-filters included in the target filter is equal to the total decimation rate.
[0077] Specifically, according to the optional number of sub-filters included in the target filter, a sub-filter decimation rate configuration scheme for the target filter corresponding to each optional number is constructed under the condition that the product of the decimation rates of the sub-filters included in the target filter is equal to the total decimation rate.
[0078] In an actual application scenario, if the total decimation rate of the target filter to be constructed is determined to be 128, then the product of the decimation rates of all sub-filters contained in the target filter should also be 128; wherein the decimation rate of the sub-filter is a non-1 factor of the total decimation rate. In this application scenario, if the optional number of sub-filters is not considered, the decimation rate of the sub-filter can be 2, 4, 8, 16, 32, 64, 128.
[0079] Correspondingly, if the order range of the target filter is determined to be 4 to 7 based on the modulator order at the front end of the target filter and the number of output data bits required by the target filter, then it is equivalent to determining that the optional number of sub-filters contained in the target filter is 4 to 7.
[0080] Furthermore, the sub-filters are classified according to the optional number, the sub-filter cascade method corresponding to each optional number is obtained, and then the corresponding sub-filter decimation rate configuration scheme is constructed. The details are as follows:
[0081] (1) When the optional number of sub-filters is 4, the corresponding sub-filter cascade modes include: a sub-filter with a decimation rate of 16 and three sub-filters with a decimation rate of 2 in cascade, or a sub-filter with a decimation rate of 8, a sub-filter with a decimation rate of 4 and two sub-filters with a decimation rate of 2 in cascade, or three sub-filters with a decimation rate of 4 and one sub-filter with a decimation rate of 2 in cascade.
[0082] (2) When the optional number of sub-filters is 5, the corresponding sub-filter cascade methods include: a sub-filter with a decimation rate of 8 and four sub-filters with a decimation rate of 2 in cascade, or two sub-filters with a decimation rate of 4 and three sub-filters with a decimation rate of 2 in cascade.
[0083] (3) When the optional number of sub-filters is 6, the corresponding sub-filter cascade method includes: a sub-filter with a decimation rate of 4 and five sub-filters with a decimation rate of 2 are cascaded.
[0084] (4) When the optional number of sub-filters is 7, the corresponding sub-filter cascade method includes: seven sub-filter cascades with a decimation rate of 2.
[0085] The decimation rate configuration scheme for each sub-filter includes but is not limited to the number of sub-filters used for cascading, the decimation rate of each sub-filter, and the order, type, delay, center frequency, bandwidth and other data of each sub-filter.
[0086] In one possible implementation, the relevant data used to construct the sub-filter decimation rate configuration scheme can be stored in different lists, and then the sub-filter decimation rate configuration scheme is constructed by selecting the relevant data from the different lists. For example, the optional number of sub-filters included in the target filter is stored in the first list, the decimation rate of each sub-filter is stored in the second list, and according to the construction rule of the target filter, the data in the first list and the data in the second list are orderly combined to form multiple sub-filter decimation rate configuration schemes corresponding to the target filter.
[0087] It should be noted that in the overall construction of the target filter, in order to further reduce the amount of calculation, the sub-filter with a higher decimation rate can also be constructed as the next-level target filter. Its construction steps are consistent with the construction steps of the target filter, which will not be repeated here.
[0088] S204: Determine the target number of sub-filters included in the target filter and the decimation rate of each sub-filter according to the calculation amount of the decimation rate configuration scheme of each sub-filter.
[0089] For each sub-filter decimation rate configuration scheme corresponding to each optional number, the calculation amount of each sub-filter decimation rate configuration scheme is determined. Since the CIC filter does not require multiplication, only addition and / or subtraction is required to implement it, the calculation amount here refers to the addition and subtraction calculation amount.
[0090] According to the addition and subtraction calculation amount of each sub-filter decimation rate configuration scheme, the scheme with the smallest addition and subtraction calculation amount among all sub-filter decimation rate configuration schemes is determined, and it is used as the sub-filter decimation rate configuration scheme of the target filter, that is, the target configuration scheme. Then, based on the target configuration scheme, the target number of sub-filters contained in the corresponding target filter and the decimation rate of each sub-filter can be determined, thereby constructing the target filter.
[0091] In the above filter construction method, the order range and total decimation rate of the target filter are determined according to the order of the modulator corresponding to the target filter to be constructed and the number of output data bits of the target filter; then, according to the order range, at least one optional number of sub-filters included in the target filter is determined; and then, under the condition that the product of the decimation rates of the sub-filters included in the target filter is equal to the total decimation rate, a sub-filter decimation rate configuration scheme corresponding to each optional number is constructed; wherein the decimation rate of the sub-filter is a non-1 factor of the total decimation rate; further, according to the calculation amount of each sub-filter decimation rate configuration scheme, the target number of sub-filters included in the target filter and the decimation rate of each sub-filter are determined.
[0092] Compared with the prior art method of simply splitting a high-order filter into multiple low-order filters, the above scheme limits the order range and total decimation rate of the target filter, and takes the product of the decimation rates of the sub-filters contained in the target filter as a condition equal to the total decimation rate to construct a sub-filter decimation rate configuration scheme corresponding to the target filter. The target number of sub-filters contained in the target filter to be constructed and the decimation rate of each sub-filter are determined based on the computational amount as a constraint to construct the target filter. This achieves the reasonable configuration of the sub-filter decimation rate corresponding to the target filter while meeting the filter design requirements, thereby constructing a target filter with a smaller computational amount and effectively improving the working efficiency of the filter.
[0093] In order to construct a target filter that meets the filtering effect requirements, based on the above embodiment, in one embodiment, the above S201 is refined. Figure 3 As shown, the following steps may be specifically included:
[0094] S301, determining an order lower limit value in an order range of a target filter according to an order of a modulator corresponding to a target filter to be constructed.
[0095] The Σ-Δ modulator corresponding to the target filter introduces a certain degree of noise and interference, which the target filter should eliminate. If the order of the target filter is lower than the order of the corresponding Σ-Δ modulator, it may not be able to remove all unwanted signals, resulting in a decrease in signal quality. Therefore, when constructing the target filter, the order of the Σ-Δ modulator corresponding to the target filter should be taken into account, so that the order of the target filter is at least 1 greater than the order of the Σ-Δ modulator, so as to prevent excessively distorted noise modulation outside the sideband from entering the baseband.
[0096] Specifically, first determine the lower limit of the order in the order range of the target filter according to the order of the modulator corresponding to the target filter to be constructed. For example, if the modulator at the front end of the target filter is of order 3, in order not to affect the filtering effect of the target filter, the lower limit of the order range of the target filter can be 4.
[0097] S302, determining the total decimation rate of the target filter according to the number of output data bits of the target filter and the lower limit value of the order.
[0098] In the actual construction of the filter, the number of output data bits of the target filter to be constructed is often determined based on different requirements. The number of output data bits of the target filter is a multiple of the number of input data bits, that is, if the input data is a 1-bit bit stream, then the output data is an n-bit bit stream.
[0099] The number of output data bits of the target filter, the order of the target filter, and the total decimation rate of the target filter satisfy the following relationship:
[0100] n = Klog2R;
[0101] Wherein, n is the number of output data bits of the target filter, K is the order of the target filter, and R is the total decimation rate of the target filter.
[0102] By converting the relationship between the number of output data bits, order, and total decimation rate of the target filter, the total decimation of the target filter can be obtained to satisfy the relationship
[0103] According to the above relationship, when the number of output data bits of the required target filter is stable, the larger the order K of the target filter, the smaller its total decimation rate R will be, and vice versa, the smaller the order K of the target filter, the larger its total decimation rate R will be. Therefore, in order to construct a target filter that meets the requirements of the filtering effect, the lower limit value of the order in the order range can be substituted into the relationship, and the total decimation rate of the target filter can be determined by taking the ratio between the number of output data bits of the target filter and the lower limit value of the order as an index. That is, with 2 as the base, the total decimation rate of the target filter can be determined by taking the ratio between the number of output data bits of the target filter and the lower limit value of the order as an index.
[0104] S303: Determine an upper limit value of the order in the order range according to the total extraction rate.
[0105] Optionally, the order of the target filter assuming that the target filter is not split is used as the upper limit of the order in the order range. For example, if the total decimation rate of the target filter to be constructed is 128, the maximum order of the target filter can be determined to be 7, that is, the upper limit of the order range is determined to be 7.
[0106] Generally speaking, the higher the order of the filter, the better the filtering effect, but the cost will also increase. Therefore, the order range of the filter can also be limited based on other situations, such as the requirements of filtering effect and cost. It should be noted that this is only an optional implementation method in this embodiment, and does not mean that the order range of the filter must be limited in this way.
[0107] In order to accurately determine the preferred scheme in the decimation rate configuration scheme of each sub-filter, so as to construct the target filter with the minimum calculation amount, based on the above embodiment, in one embodiment, Figure 4 As shown, the decimation rate configuration schemes of each sub-filter may be screened according to the amount of addition and subtraction calculations of each sub-filter in the decimation rate configuration schemes of each sub-filter, and then the above S204 may be refined, which may specifically include the following steps:
[0108] S401, for each sub-filter decimation rate configuration scheme, determine the addition and subtraction calculation amount of the target filter under the sub-filter decimation rate configuration scheme according to the decimation rates of the sub-filters corresponding to the sub-filter decimation rate configuration scheme and the positions of the sub-filters in the target filter.
[0109] For each sub-filter decimation rate configuration scheme corresponding to each optional number, the calculation amount of each sub-filter decimation rate configuration scheme is determined. Since the CIC filter does not require multiplication, only addition and / or subtraction is required to implement it, the calculation amount here refers to the addition and subtraction calculation amount.
[0110] Specifically, the amount of addition and subtraction calculations of the target filter under each sub-filter decimation rate configuration scheme depends on the way in which each sub-filter decimation rate configuration scheme configures the decimation rate and position of each sub-filter. Among them, the position of the sub-filter refers to the arrangement position of the sub-filter when the sub-filter is cascaded to form the corresponding target filter, that is, the order of the sub-filter. For example. For a target filter, the target filter is composed of three sub-filters in cascade, and the output of one sub-filter is the input of the next sub-filter, wherein the order of the sub-filter arranged in the first position is 1st order, the order of the sub-filter arranged in the second position is 2nd order, and the order of the sub-filter arranged in the third position is 3rd order.
[0111] Optionally, for each sub-filter decimation rate configuration scheme, the decimation rates of each sub-filter corresponding to the sub-filter decimation rate configuration scheme and the positions of each sub-filter in the target filter can be input into a pre-trained computational amount determination model, and the computational amount determination model determines the addition and subtraction computational amount of the target filter under the sub-filter decimation rate configuration scheme based on its own parameters.
[0112] Alternatively, the amount of addition and subtraction calculations of each sub-filter corresponding to the sub-filter decimation rate configuration scheme is determined based on the decimation rates of each sub-filter corresponding to the sub-filter decimation rate configuration scheme and the position of each sub-filter in the target filter; and the sum of the amount of addition and subtraction calculations of each sub-filter corresponding to the sub-filter decimation rate configuration scheme is used as the amount of addition and subtraction calculations of the target filter under the sub-filter decimation rate configuration scheme.
[0113] Specifically, for each sub-filter decimation rate configuration scheme, the addition and subtraction calculation amount of each sub-filter under the sub-filter decimation rate configuration scheme can be determined respectively. After the addition and subtraction calculation amount of each sub-filter is determined respectively, the addition and subtraction calculation amount of the target filter under the sub-filter decimation rate configuration scheme can be obtained by summing them up.
[0114] Among them, for each sub-filter under the sub-filter decimation rate configuration scheme, the addition and subtraction calculation amount of the sub-filter can be determined by combining the basic transfer function of the filter (i.e., the transfer function of the first-order CIC filter), the decimation rate of the sub-filter, and the position of the sub-filter in the target filter.
[0115] S402, selecting a target configuration scheme from the sub-filter decimation rate configuration schemes according to the addition and subtraction calculation amount of the target filter under the sub-filter decimation rate configuration schemes.
[0116] According to the addition and subtraction calculation amount of the target filter under each sub-filter decimation rate configuration scheme, the best scheme among all sub-filter decimation rate configuration schemes is determined and used as the target configuration scheme of the target filter.
[0117] In an optional embodiment, among the sub-filter decimation rate configuration schemes corresponding to the target filter, the sub-filter decimation rate configuration scheme corresponding to the minimum amount of addition and subtraction calculation is used as the target configuration scheme.
[0118] S403: Using the optional number corresponding to the target configuration scheme as the target number of sub-filters included in the target filter.
[0119] Before all sub-filter decimation rate configuration schemes are screened according to the addition and subtraction calculation amount of the target filter under each sub-filter decimation rate configuration scheme, the present embodiment is a classification and construction of each sub-filter decimation rate configuration scheme based on the optional number. Each sub-filter decimation rate configuration scheme has a corresponding optional number of sub-filters. Accordingly, after determining the target configuration scheme corresponding to the target filter, the optional number corresponding to the target configuration scheme is used as the target number of sub-filters included in the target filter.
[0120] S404: Using the decimation rate of each sub-filter corresponding to the target configuration scheme as the decimation rate of each sub-filter included in the target filter.
[0121] The target configuration scheme includes but is not limited to the optional number of sub-filters included in the target filter and the decimation rate of each sub-filter. Therefore, the decimation rate of each sub-filter corresponding to the target configuration scheme can be directly used as the decimation rate of each sub-filter included in the target filter.
[0122] Furthermore, the target filter is constructed according to the target number of sub-filters included in the determined target filter and the decimation rate of each sub-filter.
[0123] In order to respectively determine the computational amount of each sub-filter under each sub-filter decimation rate configuration scheme, based on the above embodiment, in one embodiment, Figure 5 As shown, the transfer function of the sub-filter may be equivalently replaced and expanded, and the above S401 may be refined according to the expansion rule of the polynomial, which may specifically include the following steps:
[0124] S501 : for each sub-filter corresponding to the sub-filter decimation rate configuration scheme, construct a transfer function of the sub-filter according to the decimation rate of the sub-filter and the position of the sub-filter in the target filter.
[0125] The transfer function of a first-order CIC filter is:
[0126]
[0127] Wherein, K is the order of the CIC filter, and R is the decimation rate of the CIC filter.
[0128] Specifically, for each sub-filter corresponding to the sub-filter decimation rate configuration scheme, the order of the sub-filter can be determined according to the position of the sub-filter in the target filter, and then the transfer function of the sub-filter can be constructed according to the decimation rate of the sub-filter and the order of the sub-filter combined with the transfer function of the first-order CIC filter.
[0129] For example, for the mth sub-filter in the sub-filter decimation rate configuration scheme, the transfer function of the sub-filter can be expressed as:
[0130]
[0131] Among them, K m is the order of the mth sub-filter, R m For K m The decimation rate of the sub-filter of order.
[0132] Furthermore, in this embodiment, the target filter is composed of a cascade of sub-filters, so its transfer function can be expressed as:
[0133]
[0134] S502: Determine the amount of addition and subtraction calculations of the sub-filter according to the polynomial corresponding to the transfer function and the decimation rate of the sub-filter.
[0135] For each sub-filter, the transfer function corresponding to the sub-filter is expanded to obtain the corresponding polynomial, and then the amount of addition and subtraction calculations generated by the sub-filter when performing one decimation is determined according to the number of terms of the polynomial. For example, for a sub-filter, after the transfer function is expanded, a polynomial of n terms is obtained, and it can be determined that when the polynomial is added and / or subtracted, the number of addition and / or subtraction operations is n-1, and then the amount of addition and subtraction calculations generated by this sub-filter when performing one decimation is n-1.
[0136] Optionally, the number of decimations of each sub-filter within a unit decimation time is the decimation rate. Furthermore, for each sub-filter, the product of the amount of addition and subtraction calculations generated by the sub-filter during one decimation and the number of decimations within the unit decimation time (i.e., the decimation rate) is determined as the amount of addition and subtraction calculations of the sub-filter within the unit decimation time.
[0137] Furthermore, after determining the addition and subtraction calculations of each sub-filter corresponding to the sub-filter decimation rate configuration scheme, the sum of the addition and subtraction calculations of each sub-filter corresponding to the sub-filter decimation rate configuration scheme can be used as the addition and subtraction calculation amount of the target filter under the sub-filter decimation rate configuration scheme.
[0138] Optionally, in one embodiment, the amount of addition and subtraction calculation A of the target filter within a unit decimation time under each sub-filter decimation rate configuration scheme can be expressed as:
[0139]
[0140] Among them, K1R is the calculation amount of the first-order sub-filter, K M is the computational cost of the last-order sub-filter, It is the sum of the computational complexity of all sub-filters included in the target filter, except for the first-order and last-order sub-filters.
[0141] The addition and subtraction calculation amounts corresponding to different sub-filter decimation rate configuration schemes are compared in pairs, so as to determine the target configuration scheme with the smallest addition and subtraction calculation amount among the sub-filter decimation rate configuration schemes.
[0142] Specifically, the formula derivation process of the addition and subtraction calculation amount A of the target filter within the unit decimation time under each sub-filter decimation rate configuration scheme is as follows:
[0143] In the filter transfer function, z -1 Indicates a delay of one point, z -R Represents a delay of R points, so for 1-z -R First delay, then perform R1 extraction, which is equivalent to 1-z -1 First perform R1 decimation, then delay. According to the above relationship between delay first and then decimation and decimation first and then delay, the addition and subtraction calculation amount generated by each sub-filter during one decimation is equivalently replaced.
[0144] (1) After replacing the transfer function of the first-order sub-filter, we get Its expansion has K1+1 terms, that is, K1 addition and subtraction operations are performed, and the extraction rate is R1R2...R M , the amount of addition and subtraction calculations within unit extraction time is K1R.
[0145] (2) After replacing the transfer function of the second-order sub-filter, we get Perform |K2-K1| addition and subtraction operations, with a decimation rate of R2...R M , the amount of addition and subtraction calculations per unit extraction time is |K2-K1|R2...R M .
[0146] (3) After replacing the transfer function of the third-to-last order sub-filter, we get (1-z--1)-(KM-1-KM-2), and perform KM-1-KM-2 addition and subtraction operations. The decimation rate is RM-1RM, and the amount of addition and subtraction calculations per unit decimation time is |K M-1 -K M-2 |R M-1 R M .
[0147] (4) After replacing the transfer function of the penultimate sub-filter, we get (1-z--1)-(KM-KM-1), and perform KM-KM-1 addition and subtraction operations. The decimation rate is RM, and the amount of addition and subtraction calculations per unit decimation time is |K M -K M-1 |R M .
[0148] (5) After replacing the transfer function of the last-order sub-filter, we get Expand it to get the polynomial Total K M +1 item, that is, K M Addition and subtraction operations, the amount of addition and subtraction calculations per unit extraction time is K M .
[0149] The amount of addition and subtraction calculations of each order of sub-filters included in the target filter within the unit extraction time is summed up to determine the amount of addition and subtraction calculations of the target filter within the unit extraction time.
[0150] In one embodiment, Figure 6 As shown, a preferred example of a method for constructing a filter is provided.
[0151] The specific process is as follows:
[0152] S601, determining an order lower limit value in an order range of a target filter according to the order of a modulator corresponding to the target filter to be constructed.
[0153] S602, taking 2 as the base and the ratio between the number of output data bits of the target filter and the lower limit of the order as the exponent, determine the total decimation rate of the target filter.
[0154] S603: Determine an upper limit value of the order in the order range according to the total extraction rate.
[0155] S604: Determine at least one optional number of sub-filters included in the target filter according to the order range.
[0156] S605: Under the condition that the product of the decimation rates of the sub-filters included in the target filter is equal to the total decimation rate, construct sub-filter decimation rate configuration schemes corresponding to each optional number.
[0157] The decimation rate of the sub-filter is a non-1 factor of the total decimation rate.
[0158] S606, for each sub-filter decimation rate configuration scheme, determine the addition and subtraction calculation amount of the target filter under the sub-filter decimation rate configuration scheme according to the decimation rates of the sub-filters corresponding to the sub-filter decimation rate configuration scheme and the positions of the sub-filters in the target filter.
[0159] Specifically, for each sub-filter corresponding to each sub-filter decimation rate configuration scheme, a transfer function of the sub-filter is constructed according to the decimation rate of the sub-filter and the position of the sub-filter in the target filter; the addition and subtraction calculation amount of the sub-filter is determined according to the polynomial corresponding to the transfer function and the decimation rate of the sub-filter; and the sum of the addition and subtraction calculation amounts of the sub-filters corresponding to the sub-filter decimation rate configuration scheme is used as the addition and subtraction calculation amount of the target filter under the sub-filter decimation rate configuration scheme.
[0160] S607: Among the sub-filter decimation rate configuration schemes corresponding to the target filter, the sub-filter decimation rate configuration scheme corresponding to the minimum amount of addition and subtraction calculation is used as the target configuration scheme.
[0161] S608: Use the optional number corresponding to the target configuration scheme as the target number of sub-filters included in the target filter.
[0162] S609: Using the decimation rate of each sub-filter corresponding to the target configuration scheme as the decimation rate of each sub-filter included in the target filter.
[0163] The specific process of the above S601-S609 can refer to the description of the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0164] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0165] Based on the same inventive concept, the embodiment of the present application also provides a filter construction device for implementing the filter construction method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of one or more filter construction devices provided below can refer to the limitations of the filter construction method above, and will not be repeated here.
[0166] In one embodiment, Figure 7 As shown, a filter construction device 1 is provided, comprising: a first determination module 10, a second determination module 20, a scheme construction module 30 and a filter construction module 40, wherein:
[0167] A first determination module 10 is used to determine the order range and total decimation rate of the target filter according to the order of the modulator corresponding to the target filter to be constructed and the number of output data bits of the target filter;
[0168] A second determination module 20, configured to determine at least one optional number of sub-filters included in the target filter according to the order range;
[0169] A scheme construction module 30 is used to construct a sub-filter decimation rate configuration scheme corresponding to each optional number under the condition that the product of the decimation rates of the sub-filters included in the target filter is equal to the total decimation rate; wherein the decimation rate of the sub-filter is a non-1 factor of the total decimation rate;
[0170] The filter construction module 40 is used to determine the target number of sub-filters included in the target filter and the decimation rate of each sub-filter according to the calculation amount of the decimation rate configuration scheme of each sub-filter.
[0171] In one embodiment, Figure 7 On the basis of Figure 8 As shown, the first determining module 10 may include:
[0172] A lower limit value determining unit 11 is used to determine an order lower limit value in an order range of a target filter according to an order of a modulator corresponding to the target filter to be constructed;
[0173] A total decimation rate determination unit 12 is used to determine the total decimation rate of the target filter according to the number of output data bits of the target filter and the lower limit value of the order;
[0174] The upper limit value determining unit 13 is used to determine the order upper limit value in the order range according to the total decimation rate.
[0175] In one embodiment, the total extraction rate determination unit 12 may be specifically used for:
[0176] The total decimation rate of the target filter is determined by taking 2 as the base and the ratio between the number of output data bits of the target filter and the lower limit of the order as the exponent.
[0177] In one embodiment, Figure 7 On the basis of Fig. 9 As shown, the filter building module 40 may include:
[0178] A calculation amount determination unit 41 is used to determine, for each sub-filter decimation rate configuration scheme, the addition and subtraction calculation amount of the target filter under the sub-filter decimation rate configuration scheme according to the decimation rates of the sub-filters corresponding to the sub-filter decimation rate configuration scheme and the positions of the sub-filters in the target filter;
[0179] A screening unit 42, configured to select a target configuration scheme from each sub-filter decimation rate configuration scheme according to the addition and subtraction calculation amount of the target filter under each sub-filter decimation rate configuration scheme;
[0180] A first constructing unit 43 is configured to use the optional number corresponding to the target configuration scheme as the target number of sub-filters included in the target filter;
[0181] The second constructing unit 44 is configured to use the decimation rate of each sub-filter corresponding to the target configuration scheme as the decimation rate of each sub-filter included in the target filter.
[0182] In one embodiment, the calculation amount determination unit 41 may include:
[0183] A first determining subunit is used to determine the addition and subtraction calculation amount of each sub-filter corresponding to the sub-filter decimation rate configuration scheme according to the decimation rate of each sub-filter corresponding to the sub-filter decimation rate configuration scheme and the position of each sub-filter in the target filter;
[0184] The second determining subunit is used to use the sum of the addition and subtraction calculation amounts of each sub-filter corresponding to the sub-filter decimation rate configuration scheme as the addition and subtraction calculation amount of the target filter under the sub-filter decimation rate configuration scheme.
[0185] In one embodiment, the screening unit 42 may be specifically used for:
[0186] Among the sub-filter decimation rate configuration schemes corresponding to the target filter, the sub-filter decimation rate configuration scheme corresponding to the minimum addition and subtraction calculation amount is used as the target configuration scheme.
[0187] In one embodiment, the first determining subunit may be specifically used for:
[0188] For each sub-filter corresponding to the sub-filter decimation rate configuration scheme, a transfer function of the sub-filter is constructed according to the decimation rate of the sub-filter and the position of the sub-filter in the target filter; and the addition and subtraction calculation amount of the sub-filter is determined according to the polynomial corresponding to the transfer function and the decimation rate of the sub-filter.
[0189] Each module in the filter construction device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0190] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.10As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as the addition and subtraction calculation amount of the target filter. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for constructing a filter is implemented.
[0191] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0192] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0193] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0194] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0195] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0196] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0197] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for constructing a filter, characterized in that: The method comprises: Determine the order range and total decimation rate of the target filter according to the order of the modulator corresponding to the target filter to be constructed and the number of output data bits of the target filter; Determining at least one optional number of sub-filters included in the target filter according to the order range; Under the condition that the product of the decimation rates of the sub-filters included in the target filter is equal to the total decimation rate, construct a sub-filter decimation rate configuration scheme corresponding to each optional number; wherein the decimation rate of the sub-filter is a non-1 factor of the total decimation rate; Determining the target number of sub-filters included in the target filter and the decimation rate of each sub-filter according to the calculation amount of the decimation rate configuration scheme of each sub-filter; The step of determining the target number of sub-filters included in the target filter and the decimation rate of each sub-filter according to the calculation amount of the decimation rate configuration scheme of each sub-filter comprises: For each sub-filter decimation rate configuration scheme, the amount of addition and subtraction calculations of the target filter under the sub-filter decimation rate configuration scheme is determined according to the decimation rates of each sub-filter corresponding to the sub-filter decimation rate configuration scheme and the position of each sub-filter in the target filter; a target configuration scheme is selected from each sub-filter decimation rate configuration scheme according to the amount of addition and subtraction calculations of the target filter under each sub-filter decimation rate configuration scheme; the optional number corresponding to the target configuration scheme is used as the target number of sub-filters included in the target filter; the decimation rates of each sub-filter corresponding to the target configuration scheme are used as the decimation rates of each sub-filter included in the target filter.
2. The method according to claim 1, characterized in that: Determining the order range and the total decimation rate of the target filter according to the order of the modulator corresponding to the target filter to be constructed and the number of output data bits of the target filter comprises: Determining a lower limit value of an order in an order range of the target filter according to an order of a modulator corresponding to the target filter to be constructed; Determine the total decimation rate of the target filter according to the number of output data bits of the target filter and the lower limit value of the order; An order upper limit value in the order range is determined according to the total decimation rate.
3. The method according to claim 2, characterized in that Determining the total decimation rate of the target filter according to the number of output data bits of the target filter and the lower limit value of the order includes: The total decimation rate of the target filter is determined by taking 2 as the base and the ratio between the number of output data bits of the target filter and the lower limit of the order as the exponent.
4. The method according to claim 1, characterized in that: The method further comprises: determining the addition and subtraction calculation amount of the target filter under the sub-filter decimation rate configuration scheme according to the decimation rate of each sub-filter corresponding to the sub-filter decimation rate configuration scheme and the position of each sub-filter in the target filter, comprising: Determine the addition and subtraction calculation amount of each sub-filter corresponding to the sub-filter decimation rate configuration scheme according to the decimation rate of each sub-filter corresponding to the sub-filter decimation rate configuration scheme and the position of each sub-filter in the target filter; The sum of the addition and subtraction calculation amounts of the sub-filters corresponding to the sub-filter decimation rate configuration scheme is used as the addition and subtraction calculation amount of the target filter under the sub-filter decimation rate configuration scheme.
5. The method according to claim 1, characterized in that The step of selecting a target configuration scheme from the sub-filter decimation rate configuration schemes according to the addition and subtraction calculation amount of the target filter under the sub-filter decimation rate configuration schemes comprises: Among the sub-filter decimation rate configuration schemes corresponding to the target filter, the sub-filter decimation rate configuration scheme corresponding to the minimum addition and subtraction calculation amount is used as the target configuration scheme.
6. The method according to claim 4, characterized in that The step of determining the addition and subtraction calculation amount of each sub-filter corresponding to the sub-filter decimation rate configuration scheme according to the decimation rate of each sub-filter corresponding to the sub-filter decimation rate configuration scheme and the position of each sub-filter in the target filter comprises: For each sub-filter corresponding to the sub-filter decimation rate configuration scheme, constructing a transfer function of the sub-filter according to the decimation rate of the sub-filter and the position of the sub-filter in the target filter; The amount of addition and subtraction calculations of the sub-filter is determined according to the polynomial corresponding to the transfer function and the decimation rate of the sub-filter.
7. The method according to claim 6, characterized in that The amount of addition and subtraction calculations of the sub-filter is the product of the amount of addition and subtraction calculations generated by the sub-filter during one decimation and the decimation rate of the sub-filter. The decimation rate of the sub-filter is the number of decimations of the sub-filter within a unit decimation time.
8. A filter construction device, characterized in that: The device comprises: A first determination module is used to determine the order range and total decimation rate of the target filter according to the order of the modulator corresponding to the target filter to be constructed and the number of output data bits of the target filter; A second determination module, configured to determine at least one optional number of sub-filters included in the target filter according to the order range; A scheme construction module, used for constructing a sub-filter decimation rate configuration scheme corresponding to each optional number under the condition that the product of the decimation rates of the sub-filters included in the target filter is equal to the total decimation rate; wherein the decimation rate of the sub-filter is a non-1 factor of the total decimation rate; A filter construction module, used to determine the target number of sub-filters included in the target filter and the decimation rate of each sub-filter according to the calculation amount of the decimation rate configuration scheme of each sub-filter; The filter construction module includes: a calculation amount determination unit, which is used to determine the addition and subtraction calculation amount of the target filter under the subfilter decimation rate configuration scheme for each subfilter decimation rate configuration scheme according to the decimation rates of each subfilter corresponding to the subfilter decimation rate configuration scheme and the position of each subfilter in the target filter; a screening unit, which is used to select a target configuration scheme from each subfilter decimation rate configuration scheme according to the addition and subtraction calculation amount of the target filter under each subfilter decimation rate configuration scheme; a first construction unit, which is used to use the optional number corresponding to the target configuration scheme as the target number of subfilters included in the target filter; and a second construction unit, which is used to use the decimation rates of each subfilter corresponding to the target configuration scheme as the decimation rates of each subfilter included in the target filter.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
