Signal processing apparatus, chip, method and device

By using comparators, edge detectors and state machines in the signal processing device, the problem of missing input signals caused by changes in filter coefficients is solved, ensuring the integrity and accuracy of the signals during the signal processing process.

WO2024217414A1PCT designated stage expired Publication Date: 2024-10-24SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/088051
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-17
Filing Date
2024-04-16
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

During the signal processing process, sudden changes in filter coefficients will affect the current filtering results, causing the input signal to be unable to be collected normally, causing leakage problems, and making it impossible to restore the true input signal.

Method used

A signal processing device is designed, including a comparator, an edge detector and a state machine. By comparing the written value of the filter coefficient with the current stored value, it determines whether an edge transition occurs in the input signal and confirms whether the output contains the written value of the filter coefficient. Input value signal to control the sampling process and avoid missed sampling caused by changes in filter coefficients.

Benefits of technology

It effectively avoids missing input signals caused by changes in filter coefficients, ensures that the true input signal is restored to the greatest extent during the adaptive filtering process, and prevents undersampling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024088051_24102024_PF_FP_ABST
    Figure CN2024088051_24102024_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are a signal processing apparatus, chip, method and device. The apparatus comprises: a comparator, which is configured to receive a write value and the current storage value of a wave filtering coefficient, make a comparison between the two, and output a comparison result; an edge detector, which is configured to receive an input signal, determine whether the input signal undergoes an edge transition, and output a determination result; a state machine, which is connected to an output end of the comparator and an output end of the edge detector, and is configured to confirm, according to the comparison result and the determination result, whether to output a signal including the write value of the wave filtering coefficient; and a counter, which is connected to an output end of the state machine and the output end of the edge detector, and is configured to confirm, according to the signal input by the state machine and the determination result input by the edge detector, whether to perform counting on the basis of the write value of the wave filtering coefficient, and to correspondingly output a control signal for sampling the input signal. By means of the solution disclosed in the present application, the problem of it not being possible to restore a real input signal due to a change in a wave filtering coefficient is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Signal processing device, chip, method and equipment

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on April 17, 2023, with application number 202310402262.X, and application name “A signal processing device, chip, method and equipment”, all contents of which are incorporated by reference into this application. Technical Field

[0003] The embodiments of the present application relate to the field of computers, and in particular to a signal processing device, chip, method, and equipment. Background Art

[0004] In signal processing, wave filtering removes specific frequency bands from a signal, a crucial measure for suppressing and preventing interference. A filter circuit is one that allows only signal components within a certain frequency range to pass through while blocking others. When the input signal is severely distorted by external interference, adaptive filtering is required. This involves sampling the signal according to different filter coefficients (a signal with a stable period less than the filter coefficient is considered noise) to restore the true input signal.

[0005] In signal processing related technologies, if the filter coefficient is suddenly changed, the new filter coefficient will affect the current filtering result, causing the input signal at the current moment to be missed, that is, the current input signal cannot be collected normally.

[0006] Summary of the Invention

[0007] In view of this, the embodiments of the present application propose a signal processing device, chip, method and equipment, which solve the problem in related signal processing technologies that when the filter coefficient is suddenly changed, the new filter coefficient will affect the current filtering result, causing the current input signal to be unable to be collected normally.

[0008] Based on the above purpose, one aspect of an embodiment of the present application provides a signal processing device, including: a comparator, configured to receive a written value and a current stored value of a filter coefficient, and compare the two and output the comparison result; an edge detector, configured to receive an input signal, and determine whether an edge jump occurs and output the determination result; a state machine, respectively connected to the output ends of the comparator and the edge detector, configured to confirm whether to output a signal containing the written value of the filter coefficient based on the comparison result and the determination result; a counter, respectively connected to the output end of the state machine and the output end of the edge detector, configured to confirm whether to count based on the written value of the filter coefficient based on the signal input by the state machine and the determination result input by the edge detector, and output a control signal for sampling the input signal accordingly.

[0009] In some embodiments, the signal processing device further includes: a selector connected to the output end of the counter, configured to sample the input signal according to the control signal and output the sampling result.

[0010] In some embodiments, the comparator is configured to output a first comparison result in response to the received written value of the filter coefficient being identical to the currently stored value.

[0011] In some embodiments, the comparator is configured to output a second comparison result in response to a difference between the received write value of the filter coefficient and the current stored value.

[0012] In some embodiments, the edge detector is configured to output a first determination result in response to no edge transition occurring in the received input signal.

[0013] In some embodiments, the edge detector is configured to output a second determination result in response to an edge transition of the received input signal.

[0014] In some embodiments, the state machine is configured to jump to a corresponding state according to the comparison result and the judgment result and determine whether to output a signal including a written value of the filter coefficient based on the corresponding state.

[0015] In some embodiments, the state machine is configured to: in response to receiving the first comparison result and the first determination result, be in an initial state and not output a signal including a write value of the filter coefficient based on the initial state.

[0016] In some embodiments, the state machine is configured to: jump from an initial state to a signal edge jump state in response to receiving a second comparison result and a second judgment result; judge whether the written value of the filter coefficient is valid based on the signal edge jump state; and confirm whether to jump from the signal edge jump state to an output state to output a signal containing the written value of the filter coefficient based on the result of the judgment on whether the written value of the filter coefficient is valid.

[0017] In some embodiments, the state machine is configured to: in response to the written value of the filter coefficient being valid, jump from a signal edge transition state to an output state to output a signal including the written value of the filter coefficient.

[0018] In some embodiments, the state machine is configured to: in response to a written value of the filter coefficient being invalid, jump from a signal edge transition state to an initial state.

[0019] In some embodiments, the state machine is configured to: in response to receiving the second comparison result and the first judgment result, jump from the initial state to the signal edge non-jump state; judge whether the second judgment result is received and whether the written value of the filter coefficient is valid based on the signal edge non-jump state; and confirm whether to jump from the signal edge non-jump state to the output state to output the signal containing the written value of the filter coefficient based on the result of judging whether the second judgment result is received and whether the written value of the filter coefficient is valid.

[0020] In some embodiments, the state machine is configured to: in response to receiving the second judgment result and the written value of the filter coefficient is valid, jump from the signal edge non-transition state to the output state to output the signal including the written value of the filter coefficient.

[0021] In some embodiments, the state machine is configured to: in response to receiving the second determination result and the written value of the filter coefficient being invalid, jump from the signal edge transition state to the initial state.

[0022] In some embodiments, the state machine is configured to: in response to not receiving the second determination result, wait for receiving the second determination result in a signal edge non-transition state.

[0023] In some embodiments, the signal processing device further includes: a first register connected to the input terminal of the comparator, configured to save the current stored value of the filter coefficient and output it to the comparator.

[0024] In some embodiments, the signal processing device further includes: a second register connected to the input end of the edge detector, configured to store a current value of the received input signal, and output the value to the edge detector and the selector.

[0025] In some embodiments, the signal processing device further includes: a third register connected to the output end of the second register, configured to store a previous value of the input signal and output it to the selector.

[0026] Another aspect of an embodiment of the present application further provides a signal processing chip, including: a comparator circuit, configured to receive a written value and a current stored value of a filter coefficient, and compare the two and output the comparison result; an edge detector circuit, configured to receive an input signal, and determine whether an edge jump occurs and output the determination result; a state machine circuit, respectively connected to the outputs of the comparator circuit and the edge detector circuit, configured to confirm whether to output a signal containing the written value of the filter coefficient based on the comparison result and the determination result; a counter circuit, respectively connected to the output of the state machine circuit and the output of the edge detector circuit, configured to confirm whether to count based on the written value of the filter coefficient based on the signal input by the state machine circuit and the determination result input by the edge detector circuit, and output a control signal for sampling the input signal accordingly.

[0027] In some embodiments, the signal processing chip further includes: a selector circuit connected to the output of the counter circuit, configured to sample the input signal according to the control signal and output the sampling result.

[0028] In some embodiments, the comparator circuit is configured to output a first comparison result in response to the received write value of the filter coefficient being identical to the current stored value.

[0029] In some embodiments, the comparator circuit is configured to output a first comparison result in response to the received write value of the filter coefficient being identical to the current stored value.

[0030] In some embodiments, the comparator circuit is configured to output a second comparison result in response to the received write value of the filter coefficient being different from the currently stored value.

[0031] In some embodiments, the edge detector circuit is configured to output a first determination result in response to no edge transition occurring in the received input signal.

[0032] In some embodiments, the edge detector circuit is configured to output a second determination result in response to an edge transition of the received input signal.

[0033] In some embodiments, the state machine circuit is configured to jump to a corresponding state according to the comparison result and the judgment result and determine whether to output a signal including a written value of the filter coefficient based on the corresponding state.

[0034] In some embodiments, the state machine circuit is configured to, in response to receiving the first comparison result and the first determination result, be in an initial state and not output a signal including a written value of the filter coefficient based on the initial state.

[0035] In some embodiments, the state machine circuit is configured to: jump from an initial state to a signal edge jump state in response to receiving a second comparison result and a second judgment result; judge whether the written value of the filter coefficient is valid based on the signal edge jump state; and confirm whether to jump from the signal edge jump state to an output state to output a signal containing the written value of the filter coefficient based on the result of the judgment on whether the written value of the filter coefficient is valid.

[0036] In some embodiments, the state machine circuit is configured to: in response to the written value of the filter coefficient being valid, jump from a signal edge transition state to an output state to output a signal including the written value of the filter coefficient.

[0037] In some embodiments, the state machine circuit is configured to: in response to a written value of the filter coefficient being invalid, jump from a signal edge transition state to an initial state.

[0038] In some embodiments, the state machine circuit is configured to: in response to receiving the second comparison result and the first judgment result, jump from the initial state to the signal edge non-jump state; judge whether the second judgment result is received and whether the written value of the filter coefficient is valid based on the signal edge non-jump state; and confirm whether to jump from the signal edge non-jump state to the output state to output the signal containing the written value of the filter coefficient based on the result of judging whether the second judgment result is received and whether the written value of the filter coefficient is valid.

[0039] In some embodiments, the state machine circuit is configured to: in response to receiving the second judgment result and the written value of the filter coefficient is valid, jump from the signal edge non-transition state to the output state to output the signal containing the written value of the filter coefficient.

[0040] In some embodiments, the state machine circuit is configured to: in response to receiving the second determination result and the written value of the filter coefficient being invalid, jump from the signal edge transition state to the initial state.

[0041] In some embodiments, the state machine circuit is configured to: in response to not receiving the second determination result, wait for receiving the second determination result in a signal edge non-transition state.

[0042] In some embodiments, the signal processing chip further includes: a first register circuit connected to the input of the comparator circuit, configured to save the current stored value of the filter coefficient and output it to the comparator circuit.

[0043] In some embodiments, the signal processing chip further includes: a second register circuit connected to the input of the edge detector circuit, configured to store the current value of the received input signal and output it to the edge detector circuit and the selector circuit.

[0044] In some embodiments, the signal processing chip further includes: a third register circuit connected to the output of the second register circuit, configured to store a previous value of the input signal and output it to the selector circuit.

[0045] On the other hand, an embodiment of the present application provides a signal processing method, including: comparing the received written value of the filter coefficient with the current stored value through a comparator, and outputting the comparison result to a state machine; judging whether an edge jump occurs in the received input signal through an edge detector, and outputting the judgment result to the state machine; the state machine confirms whether to output the signal containing the written value of the filter coefficient to a counter based on the received comparison result and judgment result; receiving the signal input by the state machine through a counter and confirming whether to count based on the written value of the filter coefficient based on the judgment result input by the edge detector and outputting a control signal for sampling the input signal accordingly.

[0046] In another aspect of an embodiment of the present application, a signal processing device is provided, comprising at least one processor; and a memory, wherein the memory stores computer instructions that can be executed on the processor, and the instructions implement the steps of the above method when executed by the processor.

[0047] In another aspect of the embodiments of the present application, a non-volatile readable storage medium is provided, which stores a computer program that implements the above method steps when executed by a processor.

[0048] The embodiments of the present application have at least the following beneficial effects: a signal processing device proposed in the embodiments of the present application can, during the process of adaptive filtering of the input signal, not miss the input signal when the filter coefficient changes, thereby avoiding undersampling of the input signal due to the change of the filter coefficient and the inability to restore the true input signal, thereby achieving the maximum restoration of the true input signal during the signal processing process. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying any creative work.

[0050] FIG1 is a schematic structural diagram of a signal processing device provided in an embodiment of the present application;

[0051] FIG2 is a schematic structural diagram of a signal processing device provided in another embodiment of the present application;

[0052] FIG3 shows a process diagram of state switching of a state machine in a signal processing device provided in an embodiment of the present application;

[0053] FIG4 shows a flow chart of a signal processing method provided by an embodiment of the present application;

[0054] FIG5 shows a schematic structural diagram of a signal processing device provided in an embodiment of the present application;

[0055] FIG6 shows a schematic structural diagram of a non-volatile readable storage medium provided in an embodiment of the present application. DETAILED DESCRIPTION

[0056] The following describes embodiments of the present application. However, it should be understood that the disclosed embodiments are merely examples and other embodiments may take various alternative forms.

[0057] Furthermore, it should be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but may also include elements not expressly listed or inherent to such processes, methods, articles, or apparatuses.

[0058] One or more embodiments of the present application will be described below with reference to the accompanying drawings.

[0059] Based on the above purposes, the first aspect of the embodiment of the present application proposes an embodiment of a signal processing device. Figure 1 shows a structural schematic diagram of a signal processing device provided by an embodiment of the present application. As shown in Figure 1, a signal processing device includes: a comparator, configured to receive a written value and a current stored value of a filter coefficient, and compare the two and output the comparison result; an edge detector, configured to receive an input signal, and determine whether an edge jump occurs and output the determination result; a state machine, respectively connected to the output end of the comparator and the edge detector, configured to confirm whether to output a signal containing the written value of the filter coefficient based on the comparison result and the determination result; a counter, respectively connected to the output end of the state machine and the output end of the edge detector, configured to confirm whether to count based on the written value of the filter coefficient based on the signal input by the state machine and the determination result input by the edge detector and output a control signal for sampling the input signal accordingly.

[0060] According to some embodiments of the present application, the signal processing device further includes: a selector connected to the output end of the counter, configured to sample the input signal according to the control signal and output the sampling result.

[0061] According to some embodiments of the present application, the comparator is configured to: in response to the received written value of the filter coefficient being identical to the current stored value, output a first comparison result.

[0062] According to some embodiments of the present application, the comparator is configured to: in response to a difference between a received written value of the filter coefficient and a currently stored value, output a second comparison result.

[0063] According to some embodiments of the present application, the edge detector is configured to: output a first judgment result in response to no edge transition occurring in the received input signal.

[0064] According to some embodiments of the present application, the edge detector is configured to output a second judgment result in response to an edge transition of the received input signal.

[0065] According to some embodiments of the present application, the state machine is configured to: jump to a corresponding state according to the comparison result and the judgment result and confirm whether to output a signal including a written value of the filter coefficient based on the corresponding state.

[0066] According to some embodiments of the present application, the state machine is configured to: in response to receiving the first comparison result and the first judgment result, be in an initial state and not output a signal containing a write value of the filter coefficient based on the initial state.

[0067] According to several embodiments of the present application, the state machine is configured to: jump from an initial state to a signal edge jump state in response to receiving a second comparison result and a second judgment result; judge whether the written value of the filter coefficient is valid based on the signal edge jump state; and confirm whether to jump from the signal edge jump state to an output state to output a signal containing the written value of the filter coefficient based on the result of the judgment on whether the written value of the filter coefficient is valid.

[0068] According to some embodiments of the present application, the state machine is configured to: in response to the written value of the filter coefficient being valid, jump from a signal edge transition state to an output state to output a signal including the written value of the filter coefficient.

[0069] According to some embodiments of the present application, the state machine is configured to: in response to the written value of the filter coefficient being invalid, jump from the signal edge transition state to the initial state.

[0070] According to several embodiments of the present application, the state machine is configured to: in response to receiving the second comparison result and the first judgment result, jump from the initial state to the signal edge non-jump state; judge whether the second judgment result is received and whether the written value of the filter coefficient is valid based on the signal edge non-jump state; and confirm whether to jump from the signal edge non-jump state to the output state to output the signal containing the written value of the filter coefficient based on the result of judging whether the second judgment result is received and whether the written value of the filter coefficient is valid.

[0071] According to some embodiments of the present application, the state machine is configured to: in response to receiving the second judgment result and the written value of the filter coefficient is valid, jump from the signal edge no jump state to the output state to output the signal containing the written value of the filter coefficient.

[0072] According to some embodiments of the present application, the state machine is configured to: in response to receiving the second judgment result and the written value of the filter coefficient being invalid, jump from the signal edge transition state to the initial state.

[0073] According to some embodiments of the present application, the state machine is configured to: in response to not receiving the second determination result, wait for receiving the second determination result in a signal edge non-transition state.

[0074] According to some embodiments of the present application, the signal processing device further includes: a first register connected to the input end of the comparator, configured to save the current stored value of the filter coefficient and output it to the comparator.

[0075] According to some embodiments of the present application, the signal processing device further includes: a second register connected to the input end of the edge detector, configured to store the current value of the received input signal, and output it to the edge detector and the selector.

[0076] According to some embodiments of the present application, the signal processing device further includes: a third register connected to the output end of the second register, configured to store a previous value of the input signal and output it to the selector.

[0077] The following is another embodiment of a signal processing device provided in the embodiments of the present application.

[0078] The BMC (Baseboard Management Controller) chip communicates with external devices through GPIO (General-Purpose Input / Output) to read external signals and output internal signals. When an external signal is input, it may generate noise due to environmental factors such as signal jitter or electromagnetic interference. This requires filtering to remove the noise and restore the true input signal.

[0079] During signal processing, when the signal is severely interfered with by the external environment, that is, when the signal is severely distorted, real-time adaptive filtering is required to restore the true input signal by setting different filter coefficients. If the filter coefficients are suddenly changed during signal processing, the newly written filter coefficients will affect the current filtering results, causing the input signal to be missed, resulting in the loss of the collected input signal and the inability to restore the true input signal, resulting in data communication between the two devices.

[0080] FIG2 is a schematic diagram of the structure of a signal processing device provided by another embodiment of the present application. As shown in FIG2, the signal processing device filters and collects the input signal, outputs the current stored value of the filter coefficient in the filter circuit to the comparator through the first register, and outputs the written value coff_new of the filter coefficient in the filter circuit to the comparator at the same time. The comparator compares the current stored value of the filter coefficient and the written value coff_new to determine whether they are the same, and outputs the judgment result (same or different) to the state machine. At the same time, the input signal input_signal in the filter circuit is output to the edge detector through the second register, and the edge detector determines whether the input signal input_signal has an edge jump at this time, and outputs the judgment result (edge ​​jump occurred / not occurred) to the state machine. The state machine is connected to the output end of the edge detector and the output end of the comparator respectively. When it receives the result output by the comparator and the result output by the edge detector, it determines whether to output the signal containing the written value coff_new of the filter coefficient to the counter for counting based on the two results. The counter is connected to the output of the state machine and the output of the edge detector, respectively. It determines the value to be counted based on the result of the state machine input and determines whether to reset the value to zero based on the result of the edge detector input. For example, when the counter receives a signal from the state machine containing the filter coefficient write value coff_new and simultaneously receives a determination from the edge detector that the input signal input_signal has experienced an edge transition, its count value is reset to zero and it begins counting according to the filter coefficient write value coff_new. When it reaches the filter coefficient write value coff_new, it sends a control signal to the selector for sampling the input signal input_signal, causing the selector to sample the current value of the input signal input_signal received from the second register based on the control signal. Otherwise, the selector samples the previous value of the input signal input_signal received from the third register based on the current stored value of the filter coefficient. In other words, the selector samples the input signal based on the control signal and outputs it as the output signal output_signal. For example, the current storage of the filter coefficient in the filter circuit is 4. At this time, the filter coefficient is newly written to a. When the filter coefficient jumps from 4 to a, the current input signal input_signal (8 bits are the same) is 0x00, and the continuous period is 4 cycles. The previous signal is 0xff, and the continuous period is 4 cycles.At the moment when the filter coefficient jumps from 4 to a, the current input signal 0x00 does not jump, so the input signal input_signal is sampled according to the current stored value 4 of the filter coefficient. After the input signal input_signal jumps within the valid period of the filter coefficient a, the input signal input_signal is sampled according to the new filter coefficient a.

[0081] Figure 3 shows a process diagram of the state switching of the state machine in the signal processing device provided in an embodiment of the present application. As shown in Figure 3, when the state machine is not configured with a filter coefficient, the default state is IDLE (initial state). At this time, the filter coefficient of the filter circuit defaults to 0, and no filtering and debouncing operation is performed. At this time, the output signal is the input signal.

[0082] If the input signal changes and a new filter coefficient is written at the same time (i.e., EDGE (Edge-triggered, signal edge jump) &&coff changed), the state machine jumps from the IDLE state to the signal edge jump state (EDGE state), and then determines whether the newly written filter coefficient is 0 in the EDGE state. Based on the judgment result, it is determined whether to jump to the OUTPUT state (output state) or jump to the IDLE state. For example, if the newly written filter coefficient is not 0 (coff!=0), the state machine jumps from the EDGE state to the OUTPUT state to sample the input; if the newly written filter coefficient is 0 (coff=0), the state machine jumps from the EDGE state to the IDLE state.

[0083] If the input signal does not transition and the new filter coefficient is written at the same time (i.e., NO EDGE && coff changed), the state machine jumps from the IDLE state to the NO_EDGE state (signal edge not transitioned state), and then waits for the input signal transition edge in the NO_EDGE state. If no input signal transition edge arrives, the state machine continues to wait in the NO_EDGE state. If the input signal has an edge transition (EDGE), the state machine determines whether the newly written filter coefficient is 0 in the NO_EDGE state. Based on the determination result, it determines whether to jump to the OUTPUT state (output state) or the IDLE state. For example, if the input signal has an edge transition and the newly written filter coefficient is not 0 (coff!=0&&EDGE), the state machine jumps from the NO_EDGE state to the OUTPUT state to sample the input. If the newly written filter coefficient is 0 (coff=0), the state machine jumps from the EDGE state to the IDLE state.

[0084] After the state machine enters the OUTPUT state, it uses the updated filter coefficients for filtering operations in this state. If the current filter coefficients continue to change, the corresponding state transition will continue based on whether the current input signal has an edge transition, update the latest filter coefficients, and then continue filtering operations. For example, if the current filter coefficients continue to change and the current input signal has an edge transition (i.e., EDGE&&coff changed), the state machine transitions from the OUTPUT state to the EDGE state; if the current filter coefficients continue to change and the current input signal does not have an edge transition (i.e., NO EDGE&&coff changed), the state machine transitions from the OUTPUT state to the NO_EDGE state.

[0085] The second aspect of the embodiments of the present application proposes a signal processing chip, including: a comparator circuit, configured to receive a written value and a current stored value of a filter coefficient, and compare the two and output the comparison result; an edge detector circuit, configured to receive an input signal, and determine whether an edge jump occurs and output the determination result; a state machine circuit, respectively connected to the outputs of the comparator circuit and the edge detector circuit, configured to confirm whether to output a signal containing the written value of the filter coefficient based on the comparison result and the determination result; a counter circuit, respectively connected to the output of the state machine circuit and the output of the edge detector circuit, configured to confirm whether to count based on the written value of the filter coefficient based on the signal input by the state machine circuit and the determination result input by the edge detector circuit, and output a control signal for sampling the input signal accordingly.

[0086] The third aspect of the embodiments of the present application provides a signal processing method. FIG4 shows a flow chart of a signal processing method provided by an embodiment of the present application. As shown in FIG4 , a signal processing method provided by an embodiment of the present application includes:

[0087] S1. Compare the received written value of the filter coefficient with the current stored value through a comparator, and output the comparison result to the state machine;

[0088] S2. Determine whether the received input signal has an edge transition through the edge detector, and output the determination result to the state machine;

[0089] S3, the state machine determines whether to output the signal containing the write value of the filter coefficient to the counter based on the received comparison result and the judgment result;

[0090] S4. Receive the signal input by the state machine through the counter and confirm whether to count based on the written value of the filter coefficient based on the judgment result of the edge detector input and output a control signal for sampling the input signal accordingly.

[0091] A fourth aspect of the present application provides a signal processing device. FIG5 shows a schematic diagram of the structure of a signal processing device provided by an embodiment of the present application. As shown in FIG5 , the signal processing device provided by an embodiment of the present application includes the following modules: at least one processor 021; and a memory 022, wherein the memory 022 stores computer instructions 023 executable on the processor 021. When executed by the processor 021, the computer instructions 023 implement the steps of the above method.

[0092] The present application also provides a non-volatile readable storage medium. FIG6 shows a schematic diagram of the structure of a non-volatile readable storage medium provided in an embodiment of the present application. As shown in FIG6 , the non-volatile readable storage medium 031 stores a computer program 032 that, when executed by a processor, performs the steps of the above method.

[0093] Finally, it should be noted that those skilled in the art will understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the program for the method of setting system parameters can be stored in a non-volatile readable storage medium. When the program is executed, it can include the processes of the optional embodiments of the above-mentioned methods. Among them, the storage medium of the program can be a magnetic disk, an optical disk, a read-only memory (ROM (Read-Only Memory)) or a random access memory (RAM (Random Access Memory)), etc. The above-mentioned computer program embodiment can achieve the same or similar effects as the corresponding embodiment of any of the above-mentioned methods.

[0094] In addition, the method disclosed in the embodiments of the present application may also be implemented as a computer program executed by a processor, which may be stored in a non-volatile readable storage medium. When the computer program is executed by the processor, the above-mentioned functions defined in the method disclosed in the embodiments of the present application are performed.

[0095] In addition, the above method steps and system units may also be implemented using a controller and a non-volatile readable storage medium configured to store a computer program that enables the controller to implement the above steps or unit functions.

[0096] Those skilled in the art will also appreciate that, in conjunction with the disclosed various exemplary logic blocks, modules, circuits and algorithmic steps described herein, can be implemented as electronic hardware, computer software or both combinations. In order to clearly illustrate this interchangeability of hardware and software, general descriptions have been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or is implemented as hardware depends on optional applications and the design constraints imposed on whole system. Those skilled in the art can implement the function in a variety of ways for every kind of optional application, but this realization decision should not be interpreted as causing departure from the disclosed scope of the application's embodiments.

[0097] In one or more exemplary designs, the function can be implemented in hardware, software, firmware or any combination thereof. If implemented in software, the function can be stored as one or more instructions or codes on a non-volatile readable medium or transmitted by a non-volatile readable medium. Non-volatile readable media include computer storage media and communication media, and the communication media include any media that helps to transfer a computer program from one location to another. The storage medium can be any available medium that can be accessed by a general or special-purpose computer. As an example and not limitation, the non-volatile readable medium can include RAM, ROM, EEPROM (Electrically Erasable Programmable Read-Only Memory), CD-ROM (Compact Disc Read-Only Memory) or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, or can be configured to carry or store the required program code in the form of instructions or data structures and any other medium that can be accessed by a general or special-purpose computer or a general or special-purpose processor. In addition, any connection can be appropriately referred to as a non-volatile readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwaves are used to transmit software from a website, server, or other remote source, then the coaxial cable, fiber optic cable, twisted pair, DOL (Directly Outdoor Loose Tube Optical Fiber Cable), or wireless technologies such as infrared, radio, and microwaves are included in the definition of medium. As used herein, disks and optical discs include compact discs (CDs), laser discs, optical discs, digital versatile discs (DVDs), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs reproduce data optically using lasers. Combinations of the above should also be included within the scope of non-volatile readable media.

[0098] The above are exemplary embodiments disclosed in the present application, but it should be noted that various changes and modifications may be made without departing from the scope of the present application as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present application may be described or required in individual form, they may also be understood as multiple unless expressly limited to the singular.

[0099] It should be understood that, as used herein, the singular forms "a" and "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" is intended to include any and all possible combinations of one or more of the associated listed items.

[0100] The serial numbers of the embodiments disclosed in the above embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.

[0101] Those skilled in the art will understand that all or part of the steps to implement the above optional embodiments can be completed by hardware, or can be completed by a program to instruct the relevant hardware. The program can be stored in a non-volatile readable storage medium, and the above-mentioned storage medium can be a read-only memory, a disk or an optical disk, etc.

[0102] Those skilled in the art should understand that the discussion of any of the above optional embodiments is merely illustrative and is not intended to imply that the scope of the disclosure of the embodiments of the present application (including the claims) is limited to these examples; based on the ideas of the embodiments of the present application, the technical features of the above embodiments or different embodiments can also be combined, and there are many other variations of different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the embodiments of the present application.

Claims

1. A signal processing device, It is characterized in that include: A comparator configured to receive a written value and a current stored value of the filter coefficient, compare the two and output a comparison result; The edge detector is configured to receive an input signal, determine whether an edge transition occurs therein and output a determination result; a state machine, connected to the output terminals of the comparator and the edge detector, respectively, and configured to determine whether to output a signal including a written value of the filter coefficient according to the comparison result and the judgment result; The counter is connected to the output end of the state machine and the output end of the edge detector respectively, and is configured to confirm whether to count based on the written value of the filter coefficient according to the signal input by the state machine and the judgment result of the edge detector input and output a control signal for sampling the input signal accordingly.

2. The device according to claim 1, It is characterized in that Also includes: The selector is connected to the output end of the counter and is configured to sample the input signal according to the control signal and output the sampling result.

3. The device according to claim 1, It is characterized in that The comparator is configured as: In response to the received write value of the filter coefficient being the same as the currently stored value, a first comparison result is output.

4. The device according to claim 3, It is characterized in that The comparator is configured as: In response to the received write value of the filter coefficient being different from the currently stored value, a second comparison result is output.

5. The device according to claim 4, It is characterized in that The edge detector is configured as: In response to the received input signal not having an edge transition, a first determination result is outputted.

6. The device according to claim 5, It is characterized in that The edge detector is configured as: In response to an edge transition of the received input signal, a second judgment result is output.

7. The device according to claim 6, It is characterized in that The state machine is configured as follows: The corresponding state is jumped to according to the comparison result and the judgment result, and it is confirmed whether to output a signal including the written value of the filter coefficient based on the corresponding state.

8. The device according to claim 7, It is characterized in that The state machine is configured as follows: In response to receiving the first comparison result and the first determination result, a signal including the written value of the filter coefficient is placed in an initial state and is not output based on the initial state.

9. The device according to claim 8, It is characterized in that The state machine is configured as follows: In response to receiving the second comparison result and the second determination result, jumping from the initial state to a signal edge transition state; Determining whether the written value of the filter coefficient is valid based on the signal edge transition state; According to the result of judging whether the written value of the filter coefficient is valid, it is confirmed whether to jump from the signal edge jump state to the output state to output the signal including the written value of the filter coefficient.

10. The device according to claim 9, It is characterized in that The state machine is configured as follows: In response to the written value of the filter coefficient being valid, the signal edge transition state jumps to the output state to output a signal including the written value of the filter coefficient.

11. The device according to claim 9, It is characterized in that The state machine is configured as follows: In response to the written value of the filter coefficient being invalid, the signal edge transition state jumps to the initial state.

12. The device according to claim 8, It is characterized in that The state machine is configured as follows: In response to receiving the second comparison result and the first judgment result, jumping from the initial state to a signal edge non-jump state; Determining whether the second determination result is received and whether the written value of the filter coefficient is valid based on the non-jump state of the signal edge; Based on the result of determining whether the second determination result is received and whether the written value of the filter coefficient is valid, it is determined whether the signal edge no-change state is switched to the output state to output the signal including the written value of the filter coefficient.

13. The device according to claim 12, It is characterized in that The state machine is configured as follows: In response to receiving the second judgment result and the written value of the filter coefficient being valid, the signal edge non-transition state is switched to the output state to output the signal including the written value of the filter coefficient.

14. The device according to claim 12, It is characterized in that The state machine is configured as follows: In response to receiving the second judgment result and the written value of the filter coefficient being invalid, the signal edge transition state jumps to the initial state.

15. The device according to claim 12, It is characterized in that The state machine is configured as follows: In response to not receiving the second judgment result, waiting for receiving the second judgment result in a state where the signal edge has not changed.

16. The device according to any one of claims 1 to 15, It is characterized in that Also includes: The first register is connected to the input terminal of the comparator and is configured to save the current stored value of the filter coefficient and output it to the comparator.

17. The device according to claim 16, It is characterized in that Also includes: The second register is connected to the input terminal of the edge detector and is configured to store the current value of the received input signal. The previous value is output to the edge detector and to the selector.

18. The device according to claim 17, It is characterized in that Also includes: The third register is connected to the output terminal of the second register and is configured to save the previous value of the input signal and output it to the selector.

19. A signal processing chip, It is characterized in that include: A comparator circuit configured to receive a written value and a currently stored value of the filter coefficient, compare the two and output the comparison result; The edge detector circuit is configured to receive an input signal, determine whether an edge transition occurs therein and output a determination result; a state machine circuit, connected to the outputs of the comparator circuit and the edge detector circuit, respectively, and configured to determine whether to output a signal including a written value of the filter coefficient according to the comparison result and the judgment result; The counter circuit is connected to the output of the state machine circuit and the output of the edge detector circuit respectively, and is configured to confirm whether to count based on the written value of the filter coefficient and output a control signal for sampling the input signal accordingly based on the signal input by the state machine circuit and the judgment result input by the edge detector circuit.

20. A signal processing method, It is characterized in that include: Comparing the received written value of the filter coefficient with the current stored value through a comparator, and outputting the comparison result to the state machine; Determine whether an edge jump occurs in the received input signal through an edge detector, and output the determination result to the state machine; The state machine determines whether to output a signal including a write value of the filter coefficient to a counter according to the received comparison result and the judgment result; The counter receives the signal input by the state machine and confirms whether to count based on the written value of the filter coefficient based on the judgment result input by the edge detector and outputs a control signal for sampling the input signal accordingly.

21. A signal processing device, It is characterized in that include: at least one processor; as well as A memory storing computer instructions executable on the processor, wherein the memory executes the method of claim 20 when executing the instructions.

Citation Information

Patent Citations

  • Adaptive filter

    CN107359867A

  • First-order lag filtering system with high-sensitivity dynamic adjustment

    CN114866069A

  • Signal processing device, chip, method and equipment

    CN116131810A

  • Method and Apparatus for Determining Stability Factor of Adaptive Filter

    US20170117878A1