Signal shaping circuit and integrated circuit chip
By using a signal shaping circuit consisting of a segmented detection unit, a variable gain unit, and an amplification unit, the problems of resource consumption and algorithm adaptability in signal smoothing processing are solved, thereby reducing electromagnetic interference and improving system performance.
Patent Information
- Application Number
- CN202520194763.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-07
- Publication Date
- 2026-01-16
- Estimated Expiration
- 2035-02-07
AI Technical Summary
Existing technologies consume a lot of system resources in signal smoothing, leading to a decrease in system performance. Furthermore, fixed algorithms or lookup table methods cannot meet the smoothing requirements of complex signals, thus affecting the processing results.
A signal shaping circuit employing a segmented detection unit, a variable gain unit, and an amplification unit reduces electromagnetic interference caused by signal abrupt changes by segmenting the input signal and smoothing it based on the gain of each segment.
By performing simple calculations, signal smoothing can be achieved, reducing or eliminating electromagnetic interference caused by signal abrupt changes, improving the electromagnetic compatibility of the system, reducing resource consumption, and enhancing system performance.
Smart Images

Figure CN223809752U_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of electromagnetic interference, and in particular to a signal shaping circuit and an integrated circuit chip. BACKGROUND
[0002] With the popularity and increasing complexity of electronic devices, electromagnetic interference (EMI) problems are becoming increasingly prominent. Especially in the process of data transmission, the mutation of signals can produce high-frequency components, which can cause electromagnetic interference and affect the stability and reliability of the system.
[0003] In order to improve electromagnetic interference, in the process of data transmission, the sending end performs smoothing processing on the signal to avoid signal mutation, thereby reducing or eliminating the influence of signal mutation on system performance. For example, a counter can be used as an auxiliary tool in combination with other algorithms to realize signal smoothing, or a lookup table method can be used alone to realize signal smoothing.
[0004] However, these smoothing processing methods consume a large amount of system resources, resulting in a decline in system performance. INVENTION CONTENTS
[0005] The embodiments of the present application provide a signal shaping circuit and an integrated circuit chip to reduce electromagnetic interference while improving system performance.
[0006] In a first aspect, the embodiments of the present application provide a signal shaping circuit, comprising:
[0007] a segmented detection unit, a variable gain unit and an amplification unit;
[0008] The input end of the segmented detection unit receives an input signal, the output end of the segmented detection unit is connected to the input end of the variable gain unit, and the output end of the variable gain unit is connected to the input end of the amplification unit. The segmented detection unit outputs the segmented results of the input signal and an enable signal after segmenting the input signal;
[0009] The variable gain unit receives the segmented results of the input signal and the enable signal, selects the gain of each segment of the input signal based on the enable signal, and outputs the gain of each segment of the input signal;
[0010] The amplification unit receives the gain of each segment of the input signal, processes each segment of the input signal based on the gain of each segment of the input signal, and outputs a smoothed signal of the input signal.
[0011] In a possible implementation, the input signal is an original signal;
[0012] or,
[0013] An input terminal of the segment detection unit is connected to an output terminal of the amplification unit, and the input signal is an output signal corresponding to the original signal.
[0014] In a possible implementation, the segment detection unit includes a comparator.
[0015] A first input terminal of the comparator is an input terminal of the segment detection unit, a second input terminal of the comparator receives a reference signal, and an output terminal of the comparator is an output terminal of the segment detection unit.
[0016] The comparator compares the input signal with the reference signal and outputs a segment result of the input signal.
[0017] In a possible implementation, the input signal is a current signal.
[0018] The amplification unit includes a current amplifier, an input terminal of the current amplifier is connected to an output terminal of the variable gain unit, and an output terminal of the current amplifier outputs a smoothed signal of the current signal.
[0019] In a possible implementation, the variable gain unit includes a digital control unit and a controllable current source.
[0020] An input terminal of the digital control unit is an input terminal of the variable gain unit, an output terminal of the digital control unit is connected to an input terminal of the controllable current source, and an output terminal of the controllable current source is an output terminal of the variable gain unit.
[0021] The digital control unit receives a segment result of the current signal and outputs a digital identifier corresponding to each segment signal of the current signal.
[0022] The controllable current source receives the digital identifier corresponding to each segment signal of the current signal and outputs a current gain of each segment signal of the current signal based on the digital identifier.
[0023] In a possible implementation, the variable gain unit includes a controllable current source.
[0024] An input terminal of the controllable current source is an input terminal of the variable gain unit, and an output terminal of the controllable current source is an output terminal of the variable gain unit.
[0025] The controllable current source receives a segment result of the current signal and outputs a current gain of each segment signal of the current signal.
[0026] In a possible implementation, the input signal is a voltage signal.
[0027] The amplification unit comprises a transconductance amplifier, an input end of the transconductance amplifier is connected to an output end of the variable gain unit, and an output end of the transconductance amplifier outputs a smoothed signal of the voltage signal.
[0028] In a possible implementation, the variable gain unit comprises a digital control unit and a controllable voltage source.
[0029] An input end of the digital control unit is used as an input end of the variable gain unit, an output end of the digital control unit is connected to an input end of the controllable voltage source, and an output end of the controllable voltage source is used as an output end of the variable gain unit.
[0030] The digital control unit receives the segmentation result of the voltage signal and outputs a digital identifier corresponding to each segment signal in the voltage signal.
[0031] The controllable voltage source receives the digital identifier corresponding to each segment signal in the voltage signal and outputs a voltage gain of each segment signal in the voltage signal based on the digital identifier.
[0032] In a possible implementation, the variable gain unit comprises a controllable voltage source.
[0033] An input end of the controllable voltage source is used as an input end of the variable gain unit, and an output end of the controllable voltage source is used as an output end of the variable gain unit.
[0034] The controllable voltage source receives the segmentation result of the voltage signal and outputs a voltage gain of each segment signal in the voltage signal.
[0035] In a possible implementation, the controllable voltage source comprises:
[0036] An input resistor and a feedback resistor, a first end of the input resistor is used as an input end of the controllable voltage source, a second end of the input resistor is connected to a first end of the feedback resistor, and a second end of the feedback resistor is used as an output end of the controllable voltage source.
[0037] The feedback resistor adjusts a resistance value of the feedback resistor according to the segmentation result of the voltage signal, to output a voltage gain of each segment signal in the voltage signal.
[0038] In a possible implementation, the digital control unit comprises a multiplexer or a decoder.
[0039] In a second aspect, the present application provides an integrated circuit chip comprising the signal shaping circuit.
[0040] The signal shaping circuit and the integrated circuit chip provided by the embodiment of the present application comprise a segmented detection unit, a variable gain unit and an amplification unit. The input end of the segmented detection unit receives an input signal. The output end of the segmented detection unit is connected to the input end of the variable gain unit. The output end of the variable gain unit is connected to the input end of the amplification unit. The segmented detection unit performs segmented processing on the input signal, and then outputs the segmented result of the input signal and an enable signal to the variable gain unit. The variable gain unit selects the gain of each segment of the input signal based on the enable signal, and outputs the gain of each segment of the input signal to the amplification unit. The amplification unit performs gain processing on each segment of the input signal based on the gain of each segment of the input signal, and outputs a smoothed signal of the input signal. Since each segment of the input signal has a corresponding gain, each segment of the input signal is processed based on the corresponding gain of each segment of the input signal, so that the purpose of smoothing the input signal is achieved, the electromagnetic interference caused by signal mutation is reduced or eliminated, the electromagnetic compatibility of the system is improved, and the system performance is further improved due to the fact that the entire smoothing process is realized through simple calculation. BRIEF DESCRIPTION OF DRAWINGS
[0041] The accompanying drawings, which are incorporated herein and form part of the specification, illustrate embodiments consistent with the present application and, together with the description, further serve to explain the principles of the application.
[0042] Figure 1 A structural schematic diagram of a signal shaping circuit provided by the present application;
[0043] Figure 2 A structural schematic diagram of another signal shaping circuit provided by the present application;
[0044] Figure 3 A schematic diagram of a square wave signal provided by the present application;
[0045] Figure 4 A structural schematic diagram of another signal shaping circuit provided by the present application;
[0046] Figure 5 A structural schematic diagram of a variable gain unit provided by the present application;
[0047] Figure 6 A circuit schematic diagram of another signal shaping circuit provided by the present application;
[0048] Figure 7 A structural schematic diagram of another variable gain unit provided by the embodiment of the present application.
[0049] The specific embodiments of the application have been shown and described in considerable detail in order to explain clearly how to make and use the application. The drawings and description are not intended to limit the scope of the application in any way. Rather, the drawings and description are meant to provide illustrative examples of the present application. DETAILED DESCRIPTION
[0050] The exemplary embodiments will be described in relation to the drawings. When the description refers to portions at "various times", it means that the portions can be combined in any order, as appropriate, to implement the described functionality. The exemplary embodiments described herein are not meant to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application.
[0051] First, the terms related to the present application are explained:
[0052] Electromagnetic interference: refers to the interference of external electromagnetic fields on electronic devices or circuits, which can cause device performance degradation or failure.
[0053] Electromagnetic compatibility (EMC): refers to the ability of a device to work normally in an electromagnetic environment without causing unacceptable electromagnetic interference, ensuring interoperability and reliability between devices.
[0054] As described in the background, in the process of data transmission, the mutation of the signal will produce high frequency components, which can cause electromagnetic interference, affecting the stability and reliability of the system. In order to improve electromagnetic interference, the sending end performs smoothing processing on the signal in the process of data transmission to avoid signal mutation, thereby reducing or eliminating the influence of signal mutation on system performance.
[0055] In some embodiments, a counter can be used as an auxiliary tool in combination with other algorithms to achieve signal smoothing, or a lookup table method can be used alone for signal smoothing. For example, a counter and a moving average method are used in combination to achieve signal smoothing. Specifically, the counter is used to track the number of samples in the current window, calculate the number of samples in a certain window, and calculate the average value of the samples in the window to achieve smoothing processing. For another example, a counter and a sliding window technique are used in combination to achieve signal smoothing. Specifically, the counter is used to manage the start and end positions of the window, and the sum, average, etc. operations are applied between the start and end positions to achieve smoothing, and the counter can be updated to reflect the current window position when the window slides.
[0056] However, this way is usually realized by a counter and a certain fixed algorithm, which has poor flexibility and cannot adapt to different smoothing requirements. When facing complex signals, the fixed algorithm cannot meet the specific smoothing processing requirements, affecting the processing effect. Even if a counter is used in combination with multiple different algorithms to realize multiple smoothing requirements, it means that multiple algorithms need to be run in a system, which increases the computational burden and requires complex system design, resulting in a decline in system performance.
[0057] In other embodiments, a lookup table method can be used, which is a method of precomputing results and storing them in a lookup table. In data smoothing processing, a predefined smoothing function or conversion algorithm can be obtained by looking up the table.
[0058] However, the lookup table method requires pre-computation and storage of a large number of smoothing results, and the corresponding smoothing function or conversion algorithm is obtained based on the smoothing results. Generating a lookup table can require a large amount of computation and consume a large amount of computing resources and time, especially for complex smoothing algorithms or high-dimensional data. Moreover, the lookup table method relies on frequent memory access to obtain smoothing results, affecting the processing system. Therefore, the lookup table method can cause a decline in system performance, especially in resource-constrained environments (such as embedded systems), affecting overall efficiency.
[0059] To this end, the present application provides a signal shaping circuit, which includes a segmented detection unit, a variable gain unit, and an amplification unit. The segmented detection unit performs segmented processing on the received input signal and then outputs the segmented results of the input signal to the variable gain unit. The variable gain unit matches the corresponding gain for each segment of the input signal and outputs the gain of each segment of the input signal to the amplification unit. The amplification unit performs gain processing on each segment of the input signal based on the gain of each segment of the input signal and outputs the smoothed signal of the input signal. Thus, the purpose of smoothing the input signal can be achieved through simple calculation, reducing or eliminating electromagnetic interference caused by signal mutations, improving the electromagnetic compatibility of the system, while reducing resource consumption and further improving system performance.
[0060] The technical solutions of the present application and how the technical solutions of the present application solve the above technical problems will be described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes can not be described in detail in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.
[0061] Figure 1 The circuit schematic diagram of the signal shaping circuit provided by the embodiments of the present application is shown in Figure 1 As shown in the figure, the signal shaping circuit provided by the embodiments of the present application includes:
[0062] a segmented detection unit 30, a variable gain unit 10, and an amplification unit 20.
[0063] The input end of the segment detection unit 30 receives an input signal, the output end of the segment detection unit 30 is connected to the input end of the variable gain unit 10, and the output end of the variable gain unit 10 is connected to the input end of the amplification unit 20;
[0064] The segment detection unit 30 outputs the segmented results of the input signal and the enable signal after segmenting the input signal;
[0065] The variable gain unit 10 receives the segmented results of the input signal and the enable signal, selects the gain corresponding to each segment signal in the input signal based on the enable signal, and outputs the gain of each segment signal in the input signal;
[0066] The amplification unit 20 receives the gain of each segment signal in the input signal, processes each segment signal in the input signal based on the gain of each segment signal in the input signal, and outputs a smoothed signal of the input signal.
[0067] In the embodiment, after the variable gain unit 10 receives the input signal, the input signal is segmented and processed, and the segmented results of the input signal and the enable signal are output to the variable gain unit 10. After the variable gain unit receives the segmented results of the input signal and the enable signal, the gain of each segment signal in the input signal is selected based on the enable signal, and the gain of each segment signal in the input signal is output to the amplification unit 20. After the amplification unit 20 receives the gain of each segment signal in the input signal, each segment signal in the input signal is output based on the gain of each segment signal in the input signal, and a smoothed signal of the input signal is output. The enable signal is used to control the gain of each segment signal in the input signal.
[0068] It should be noted that the output signal corresponding to the input signal processed by the variable gain unit 10 and the amplification unit 20 depends on the gain output by the variable gain unit 10. If the gain is set to a certain fixed value, the waveform of the output signal will be an amplified version of the waveform of the input signal, and the amplitude of the output signal will be the amplitude of the input signal multiplied by the fixed gain. If the gain is set unreasonably, it may cause distortion of the output signal or the amplitude of the output signal to be too large (saturated) or too small (unable to effectively drive the load).
[0069] Therefore, in the embodiments of the present application, the input signal is segmented by the segmentation detection unit 30, and the segmented results and the enable signal of the input signal are output to the variable gain unit 10. The segmented results can include each segment of the input signal. After receiving the segmented results of the input signal, the variable gain unit 10 can match the corresponding gain for each segment of the input signal based on the enable signal, and output the gain of each segment of the input signal to the amplification unit 20. Accordingly, after receiving the gain of each segment of the input signal, the amplification unit 20 can perform gain processing on each segment of the input signal based on the gain of each segment of the input signal, so as to achieve smooth processing of the input signal, output a smooth signal of the input signal, reduce or eliminate electromagnetic interference caused by signal mutation, improve the electromagnetic compatibility of the system, and reduce resource consumption since the entire smoothing process is achieved through simple calculation, thereby further improving the system performance.
[0070] In some embodiments, the input signal is an original signal.
[0071] In some other embodiments, as shown in Figure 2 , the input end of the segmentation detection unit is connected to the output end of the amplification unit, and the input signal is a target signal corresponding to the original signal. For example, the target signal corresponding to the original signal is consistent with the waveform of the original signal, but the amplitudes are different.
[0072] For example, the waveform of the input signal can be a square wave, a triangular wave, or a sine wave. Figure 3 As shown in a schematic diagram of a square wave signal, in combination with Figure 1 and Figure 3 After the original signal passes through the variable gain unit 10, the variable gain unit 10 can output a gain corresponding to the original signal to the amplification unit 20, and the amplification unit 20 processes the original signal based on the gain corresponding to the original signal to output a target signal. In practical applications, inductors, capacitors, and other passive components can be arranged in the amplification unit 20, which can form a low-pass filtering effect to output the target signal after the gain signal is initially smoothed after the original signal is gain-processed, as shown in Figure 3 In order to further improve the smoothing effect, the segmentation detection unit 30 can divide the signal change stage (rising edge and / or falling edge) of the target signal into multiple segments, for example, as shown in Figure 3 For example, in the rising edge, the signal less than the first value can be divided into a first segment V1, the signal between the first value and the second value can be divided into a second segment V2, the signal between the second value and the third value can be divided into a third segment V3, and so on, and the signal between the (n-1)th value and the nth value can be divided into an nth segment Vn. The specific division can be determined according to actual conditions.
[0073] In practical applications, the segmentation detection unit 30 can determine the number of segments according to actual needs. For example, more segments allow more fine control and adjustment of each small part of the signal, so that the smoothing effect can be more accurately achieved. Fewer segments simplify the signal processing process, reduce the computational complexity and resource requirements.
[0074] In some examples, the segmentation detection unit 30 is a comparator, the first input terminal of the comparator is the input terminal of the segmentation detection unit 30, the second input terminal of the comparator receives the reference signal, and the output terminal of the comparator is the output terminal of the segmentation detection unit 30. The comparator compares the input signal with the reference signal and outputs the segmentation result of the input signal.
[0075] Specifically, the comparator can compare each signal in the input signal with the reference signal, determine the difference between each signal and the reference signal, and determine the voltage range of each segment voltage of the input signal based on each difference. Each segment voltage can have a corresponding gain. Specifically, it can be determined according to actual conditions. For example, when the difference is large, the voltage range of each segment voltage is large, and when the difference is small, the voltage range of each segment voltage is small.
[0076] In some examples, the variable gain unit 10 can match the corresponding gain for each segment signal in the input signal according to the smoothing requirement. For example, when the smoothing degree is high, on the rising edge, a larger gain can be matched for each segment signal in the first half of the input signal, and a smaller gain can be matched for each segment signal in the second half of the input signal. When the smoothing degree is low, a certain gain can be matched for each segment signal in the first half of the input signal, and no gain is applied to the second half of the input signal.
[0077] In some embodiments, the original signal is a current signal. Then the amplification unit 20 includes a current amplifier 201, which is combined with Figure 1 and Figure 4 As shown, the input terminal of the current amplifier 201 is the input terminal of the amplification unit 20, connected to the output terminal of the variable gain unit 10, and the output terminal of the current amplifier 201 is the output terminal of the amplification unit 20, used to output the smoothed signal of the current signal.
[0078] Correspondingly, the segmented detection unit 30 can receive the current signal, segment the current signal, and output the segmented result of the current signal to the variable gain unit 10; the variable gain unit 10 receives the segmented result of the current signal, matches the corresponding current gain for each segment of the current signal, and outputs the current gain of each segment of the current signal to the current amplifier 201. The current amplifier 201 receives the current gain of each segment of the current signal, processes each segment of the current signal based on the current gain of each segment of the current signal, and outputs the smoothed signal of the current signal. Since each segment of the current signal has a corresponding current gain, processing each segment of the signal using the corresponding current gain of each segment of the current signal can achieve smoothing of the current signal, reduce electromagnetic interference caused by sudden changes in the current signal, improve system compatibility, reduce resource consumption, and improve system performance.
[0079] As an implementation manner, the segmented detection unit 30 can divide the signal change stage of the current signal into multiple segments. For example, the current signal less than the first current value in the rising edge can be divided into a first segment V1, the current signal between the first current value and the second current value can be divided into a second segment V2, the current signal between the second current value and the third current value can be divided into a third segment V3, and the current signal between the (n-1)th current value and the nth current value can be divided into an nth segment Vn.
[0080] For example, the difference between the maximum value and the minimum value in the rising edge can be calculated, the difference can be divided to form multiple segments, the segments can be equally spaced or unequally spaced, and the specific division is determined according to the actual situation. Then, starting from the minimum value, the increment of each segment is increased each time, so as to divide the rising edge of the target current signal into multiple segments.
[0081] In some examples, in combination with Figure 1 and Figure 5As shown, the variable gain unit 10 includes a digital control unit 101 and a controllable current source 102. The input end of the digital control unit 101 serves as the input end of the variable gain unit 10 and is connected to the output end of the segmented detection unit 30. The output end of the digital control unit 101 is connected to the input end of the controllable current source 102. The output end of the controllable current source 102 serves as the output end of the variable gain unit 10 and is connected to the input end of the amplification unit 20. The digital control unit 101 receives the segmented results of the current signal and outputs the digital identifiers corresponding to the segmented signals in the current signal to the controllable current source 102. After receiving the digital identifiers corresponding to the segmented signals in the current signal, the controllable current source 102 outputs the current gains of the segmented signals in the current signal based on the digital identifiers. Based on this, the current gains of the segmented signals in the current signal can be output to the amplification unit. By using the digital control unit and the controllable current source in combination, precise gain adjustment can be achieved, and flexibility and response speed are enhanced. The application of the digital control unit enables the gain to be adjusted flexibly according to the segmented results, thereby adapting to different working conditions.
[0082] For example, the correspondence between the current segments and the digital identifiers can be pre-set, and the correspondence between the digital identifiers and the current gains can be set. Then, the digital control unit 101 can match the corresponding digital identifiers for the segmented signals in the current signal based on the correspondence between the current segments and the digital identifiers. The controllable current source 102 can match the corresponding current gains for the digital identifiers based on the correspondence between the digital identifiers and the current gains, thereby matching the corresponding current gains for the segmented signals in the current signal and improving the response speed.
[0083] In actual applications, the current gains corresponding to the segmented current signals output by the controllable current source 102 can be reflected by the curvature of the current. For example, if the number corresponding to the digital identifier is small, the controllable current source can be controlled to change with a small curvature. If the number corresponding to the digital identifier is large, the controllable current source can be controlled to change with a large curvature.
[0084] For example, the first segment of the current signal corresponds to the number 5, the digital control unit outputs the number 5 to the controllable current source, and the controllable current source outputs the current with a small curvature change. The fourth segment of the current signal corresponds to the number 9, the digital control unit outputs the number 9 to the controllable current source, and the controllable current source outputs the current with a large curvature change.
[0085] Correspondingly, the amplification unit can process the segmented current signals based on the curvature changes corresponding to the segmented current signals output by the controllable current source. For example, the amplification unit amplifies a certain segment of the current signal based on the curvature change corresponding to the segment, so that the differential change corresponding to the amplified segment of the current signal remains consistent with the curvature change output by the controllable current source.
[0086] As an implementation manner, the digital control unit 101 can be a multiplexer or a decoder. The multiplexer can select a corresponding digital identifier to the controllable current source based on the current segment. The decoder can convert an encoded input signal into a specific output signal, for example, convert the current segment into the corresponding digital identifier.
[0087] In some other examples, the variable gain unit 10 can include a controllable current source. An input end of the controllable current source is connected to the input end of the variable gain unit 30, and an output end of the controllable current source is connected to the output end of the variable gain unit 30 and the output end of the amplification unit 20. The controllable current source receives the segmented result of the current signal and outputs the gain of each segment of the current signal, which simplifies the circuit design and reduces the cost.
[0088] In some examples, the controllable current source can be controlled to have a smaller curvature change or a larger curvature change according to the current segment corresponding to each segment of the current signal. For example, the controllable current source can be controlled to have a smaller curvature change for the first segment of the current signal, and the controllable current source can be controlled to have a larger curvature change for the fourth segment of the current signal.
[0089] In some other examples, the original signal is a voltage signal. Then, the amplification unit 20 includes a transconductance amplifier 202. Figure 1 and Figure 6 As shown in FIG. 2B, an input end of the transconductance amplifier 202 is connected to the output end of the variable gain unit 10 and the input end of the amplification unit 20, and an output end of the transconductance amplifier 202 outputs a smoothed signal of the voltage signal.
[0090] Correspondingly, the segmentation detection unit 30 can output the segmented result of the voltage signal to the variable gain unit 10 after segmenting the voltage signal, and the variable gain unit 10 can match a corresponding voltage gain for each segment of the voltage signal and output the voltage gain of each segment of the voltage signal to the amplification unit 20 after receiving the segmented result of the voltage signal. The amplification unit 20 can process each segment of the voltage signal based on the voltage gain of each segment of the voltage signal and output a smoothed signal of the voltage signal after receiving the voltage gain of each segment of the voltage signal. Since each segment of the voltage signal has a corresponding voltage gain, processing each segment of the voltage signal using the corresponding voltage gain of each segment of the voltage signal can achieve smoothing processing of the voltage signal, reduce electromagnetic interference caused by sudden changes of the voltage signal, improve system compatibility, reduce resource consumption, and improve system performance.
[0091] As an implementation manner, the segment detection unit 30 can divide the signal change stage of the voltage signal into multiple segments. For example, the voltage signal less than the first voltage value in the rising edge can be divided into a first segment V1, the voltage signal between the first voltage value and the second voltage value can be divided into a second segment V2, the voltage signal between the second voltage value and the third voltage value can be divided into a third segment V3, and the voltage signal between the n-1 voltage value and the n voltage value can be divided into an n segment Vn.
[0092] For example, the difference between the maximum value and the minimum value in the rising edge can be calculated, the difference can be divided into multiple segments, which can be equally divided or non-equally divided, and the specific division is determined according to the actual situation. Then, starting from the minimum value, the increment of each segment is increased each time, so that the rising edge of the voltage signal is divided into multiple segments.
[0093] In some examples, in combination with Figure 1 and Figure 7 As shown, the variable gain unit 10 includes a digital control unit 101 and a controllable voltage source 103. The input end of the digital control unit 101 serves as the input end of the variable gain unit 10 and is connected to the output end of the segment detection unit 30. The output end of the digital control unit 101 is connected to the input end of the controllable voltage source 103. The output end of the controllable voltage source 103 serves as the output end of the variable gain unit 10 and is connected to the input end of the amplification unit 20. The digital control unit 101 receives the segmenting result of the voltage signal and outputs the digital identifier corresponding to each segment of the voltage signal to the controllable voltage source 102. After receiving the digital identifier corresponding to each segment of the voltage signal, the controllable voltage source 102 outputs the voltage gain of each segment of the voltage signal based on the digital identifier. Based on this, the voltage gain of each segment of the voltage signal can be output to the amplification unit 20. By using the digital control unit and the controllable voltage source in combination, accurate gain adjustment can be achieved, and flexibility and response speed are enhanced. The application of the digital control unit enables the gain to be adjusted flexibly according to the segmenting result, thereby adapting to different working conditions.
[0094] For example, the corresponding relationship between the voltage segment and the digital identifier can be preset, and the corresponding relationship between the digital identifier and the voltage gain can be set. Then, the digital control unit 101 can match the corresponding digital identifier for each segment of the voltage signal based on the corresponding relationship between the voltage segment and the digital identifier. The controllable voltage source 103 can match the corresponding voltage gain for the digital identifier according to the corresponding relationship between the digital identifier and the voltage gain, thereby matching the corresponding voltage gain for each segment of the voltage signal, and improving the response speed.
[0095] In practical applications, the voltage gain corresponding to each segment of the voltage signal output by the controllable voltage source 103 can be reflected by the curvature of the voltage. For example, if the number corresponding to the digital identifier is small, the controllable voltage source can be controlled to change with a small curvature, and if the number corresponding to the digital identifier is large, the controllable voltage source can be controlled to change with a large curvature.
[0096] For example, the first segment of the voltage in the voltage signal corresponds to the number 5, the digital control unit outputs the number 5 to the controllable voltage source, and the controllable voltage source outputs the voltage with a small curvature change; the fourth segment of the voltage in the voltage signal corresponds to the number 9, the digital control unit outputs the number 9 to the controllable voltage source, and the controllable voltage source outputs the voltage with a large curvature change.
[0097] Correspondingly, the amplification unit can process each segment of the voltage signal based on the curvature change corresponding to each segment of the voltage signal output by the controllable voltage source, for example, the amplification unit amplifies a certain segment of the voltage signal based on the curvature change corresponding to the segment, so that the differential change corresponding to the amplified segment of the voltage signal is consistent with the curvature change output by the controllable voltage source.
[0098] As an implementation manner, the digital control unit 101 can be a multiplexer or a decoder. The multiplexer can select the corresponding digital identifier based on the voltage segment to the controllable voltage source. Specifically, the multiplexer is a digital switch component, and the digital signal received by the multiplexer controls the selection end of the multiplexer, so as to select different gain paths. Each gain path can be composed of a resistance network with different resistance values, or realized by different operational amplifiers, so as to quickly switch the gain value to adapt to the change of the input signal. This mode has fast response speed and high flexibility, and is suitable for occasions requiring fast gain adjustment. The decoder can convert the encoded input signal into a specific output signal, for example, convert the voltage segment into the corresponding digital identifier.
[0099] In some other examples, the variable gain unit 10 can include a controllable voltage source. The input end of the controllable voltage source is connected to the output end of the segmentation detection unit 30 as the input end of the variable gain unit 10, and the output end of the controllable voltage source is connected to the output end of the amplification unit 30 as the output end of the variable gain unit 10. The controllable voltage source receives the segmentation result of the voltage signal and outputs the gain of each segment of the voltage signal, which simplifies the circuit design and reduces the cost.
[0100] For example, the first segment of the voltage in the voltage signal controls the controllable voltage source to change with a small curvature, and the fourth segment of the voltage in the voltage signal controls the controllable voltage source to change with a large curvature.
[0101] As an implementation manner, the controllable voltage source comprises an input resistor and a feedback resistor, a first end of the input resistor is an input end of the controllable voltage domain, a second end of the input resistor is connected to a first end of the feedback resistor, and a second end of the feedback resistor is an output end of the controllable voltage source. The feedback resistor can adjust the resistance value of the feedback resistor according to the segmentation result of the voltage signal output by the segmentation detection unit, so as to output the voltage gain of each segment signal in the voltage signal. For example, the resistance value of the feedback resistor can be adjusted according to each segmentation result, so as to output the voltage gain corresponding to each segmentation result.
[0102] It should be noted that the gain can be determined by the ratio of the feedback resistor and the input resistor. By adjusting the resistance value of the variable resistor, the resistance value in the feedback path can be dynamically changed, and different gains can be output. This method is simple and low in cost, is suitable for application occasions sensitive to power consumption and not high in gain variation speed requirement, is easy to integrate and maintain, and is suitable for embedded systems or other resource-limited environments.
[0103] The signal shaping circuit provided by the embodiment of the application is described in detail above. Since each segment signal in the input signal has a corresponding gain, processing each segment signal in the input signal based on the corresponding gain of each segment signal in the input signal can achieve the purpose of smoothing the input signal, reduce or eliminate electromagnetic interference caused by signal mutation, and improve the electromagnetic compatibility of the system. Moreover, since the entire smoothing process is implemented through simple calculation, resource consumption is reduced, and system performance is further improved.
[0104] The embodiment of the application further provides an integrated circuit chip comprising the signal shaping circuit described above.
[0105] For example, the signal shaping circuit can be used for shaping processing of signals transmitted by a serial interface.
[0106] Finally, it should be noted that, upon consideration of the specification and practice of the application disclosed herein, other embodiments of the application will be easily conceived by those skilled in the art. The application is intended to cover any variations, uses, or adaptive changes of the application that follow the general principles of the application and include common knowledge or conventional technical means in the art that are not disclosed by the application, and is not limited to the precise structures described above and shown in the drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the application is only limited by the appended claims.
Claims
1. A signal shaping circuit, characterized by, The application relates to a variable gain unit and an amplifier unit. The input end of the segment detection unit receives an input signal, the output end of the segment detection unit is connected with the input end of the variable gain unit, the output end of the variable gain unit is connected with the input end of the amplifier unit, the segment detection unit outputs the segment result of the input signal and an enable signal after segmenting the input signal; The variable gain unit receives the segment result of the input signal and the enable signal, selects the gain of each segment signal of the input signal based on the enable signal, and outputs the gain of each segment signal of the input signal; The amplifier unit receives the gain of each segment signal of the input signal, processes each segment signal of the input signal based on the gain of each segment signal of the input signal, and outputs a smooth signal of the input signal. The input signal is an original signal; 2. The circuit of claim 1, wherein, Or, The input end of the segment detection unit is connected with the output end of the amplifier unit, and the input signal is an output signal corresponding to the original signal. The segment detection unit comprises a comparator; 3. The circuit of claim 1 or 2, characterized in that, The first input end of the comparator is used as the input end of the segment detection unit, the second input end of the comparator receives a reference signal, and the output end of the comparator is used as the output end of the segment detection unit; The comparator compares the input signal with the reference signal and outputs the segment result of the input signal. The input signal is a current signal; 4. The circuit of claim 1, wherein, The amplifier unit comprises a current amplifier, the input end of the current amplifier is connected with the output end of the variable gain unit, and the output end of the current amplifier outputs a smooth signal of the current signal. The variable gain unit comprises a digital control unit and a controllable current source; 5. The circuit of claim 4, wherein, The input end of the digital control unit is used as the input end of the variable gain unit, the output end of the digital control unit is connected with the input end of the controllable current source, and the output end of the controllable current source is used as the output end of the variable gain unit; The digital control unit receives the segment result of the current signal and outputs the digital identifier corresponding to each segment signal of the current signal; The controllable current source receives the digital identifier corresponding to each segment signal of the current signal and outputs the current gain of each segment signal of the current signal based on the digital identifier. The variable gain unit comprises a controllable current source; 6. The circuit of claim 4, wherein, The input end of the controllable current source is used as the input end of the variable gain unit, and the output end of the controllable current source is used as the output end of the variable gain unit; The controllable current source receives the segment result of the current signal and outputs the current gain of each segment signal of the current signal. The input signal is a voltage signal; 7. The circuit of claim 1, wherein, The amplifier unit comprises a transconductance amplifier, the input end of the transconductance amplifier is connected with the output end of the variable gain unit, and the output end of the transconductance amplifier outputs a smooth signal of the voltage signal. The variable gain unit comprises a digital control unit and a controllable voltage source; 8. The circuit of claim 7, wherein, An input terminal of the digital control unit is connected to an input terminal of the variable gain unit, and an output terminal of the digital control unit is connected to an input terminal of the controllable voltage source, and an output terminal of the controllable voltage source is connected to an output terminal of the variable gain unit. The digital control unit receives the segmented results of the voltage signal and outputs digital identifiers corresponding to each segment of the voltage signal. The controllable voltage source receives the digital identifiers corresponding to each segment of the voltage signal and outputs voltage gains of each segment of the voltage signal based on the digital identifiers.
9. The circuit of claim 7, wherein, The variable gain unit comprises a controllable voltage source. An input terminal of the controllable voltage source is connected to an input terminal of the variable gain unit, and an output terminal of the controllable voltage source is connected to an output terminal of the variable gain unit. The controllable voltage source receives the segmented results of the voltage signal and outputs voltage gains of each segment of the voltage signal.
10. The circuit of claim 8 or 9, characterized in that, The controllable voltage source comprises: an input resistor and a feedback resistor, a first terminal of the input resistor is connected to an input terminal of the controllable voltage source, a second terminal of the input resistor is connected to a first terminal of the feedback resistor, and a second terminal of the feedback resistor is connected to an output terminal of the controllable voltage source. The feedback resistor adjusts the resistance value of the feedback resistor according to the segmented results of the voltage signal to output voltage gains of each segment of the voltage signal.
11. The circuit of claim 5 or 8, wherein, The digital control unit comprises a multiplexer or a decoder.
12. An integrated circuit chip, characterized by The signal shaping circuit comprises any one of claims 1-11.