A computing circuit and a chip
Through the combination of the capacitor charging and discharging module and the error amplification module, the implementation of multiplication and division operations in digital circuits is simplified, the problem of complex multiplication and division operations in the existing technology is solved, and a flexible application operation circuit is provided.
Patent Information
- Application Number
- CN202110925657.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-12
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-08-12
AI Technical Summary
The implementation circuit and hardware of multiplication and division operations in existing digital circuits are relatively complex and difficult to implement easily.
The capacitor charging and discharging module and the error amplification module are used to realize the multiplication and division operations of the electrical signal through the gradual approximation calculation method.
It simplifies the implementation of multiplication and division operations in digital circuits and provides a relatively easy operation circuit, which is suitable for a variety of circuits and can be used flexibly.
Smart Images

Figure CN113655988B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of integrated circuit design, and in particular to a computing circuit and a chip. Background Art
[0002] In the field of electronics, more and more applications require A*B / C operations on electrical signals (where A, B, and C can be voltage signals or current signals). For example, in some signal processing situations or in the fast charging PPS (Programmable Power Supply) protocol, a constant power function is required, and power is the product of voltage and current. The A*B / C operation can be implemented using digital circuits or analog circuits.
[0003] In terms of digital circuit implementation, if A, B, and C are analog signals, an ADC (Analog-to-Digital Converter) is required to convert the analog signals into digital signals. The idea of a digital multiplier is shift addition, and the idea of a digital divider is subtraction. The hardware of a digital divider is generally more complicated. In digital circuits, it is more convenient to implement addition, subtraction, and multiplication, but it is particularly troublesome to implement division.
[0004] Therefore, it is necessary to provide a simple operation circuit. Summary of the invention
[0005] The present invention provides an operation circuit and a chip, which are used to solve the problem of relatively complex circuits and hardware for implementing multiplication and division operations in digital circuits in the prior art.
[0006] In a first aspect, the present invention provides an operation circuit, including a capacitor charging and discharging module and an error amplification module electrically connected to the capacitor charging and discharging module, wherein:
[0007] The capacitor charging and discharging module is used to receive a first signal, a second signal and a third signal input from the outside, and output a reference signal and a feedback signal;
[0008] The error amplification module is used to receive the reference signal and the feedback signal, and output a target signal to the capacitor charging and discharging module based on the reference signal and the feedback signal;
[0009] The first signal, the second signal and the third signal are all analog signals, and the value of the target signal in a stable state satisfies a predetermined mathematical relationship with the value of the first signal, the value of the second signal and the value of the third signal, and the predetermined mathematical relationship includes the following factors: the value of the first signal multiplied by the value of the second signal and divided by the value of the third signal.
[0010] According to the operational circuit of the present invention, the capacitor charging and discharging module comprises a first capacitor charging and discharging electronic module and a second capacitor charging and discharging electronic module, wherein
[0011] The first capacitor charging and discharging electronic module is used to receive the first signal and the second signal, and output the reference signal to the error amplification module based on the first signal and the second signal;
[0012] The error amplification module is electrically connected to the first capacitor charge and discharge electronic module, and is used to calculate the error between the reference signal and the feedback signal and output the target signal;
[0013] The second capacitor charging and discharging electronic module is electrically connected to the error amplification module, and is configured to receive the third signal and the target signal, and output the feedback signal based on the third signal and the target signal.
[0014] According to the operational circuit of the present invention, the first capacitor charge-discharge electronic module includes a first current source, a first capacitor, a first switch, a first comparator, a second switch, a third switch, a fourth switch, a second capacitor and a third capacitor; the second capacitor charge-discharge electronic module includes a third current source, a fifth switch, a fourth capacitor, a second comparator, a sixth switch, a seventh switch, an eighth switch, a fifth capacitor and a sixth capacitor;
[0015] The first end of the first switch, the first end of the first capacitor and the negative input end of the first comparator are electrically connected to the first current source, and the second end of the first switch and the second end of the first capacitor are grounded; the positive input end of the first comparator is used to receive the second signal, and the output end thereof is electrically connected to the control end of the second switch to control the on and off of the second switch, the first end of the second switch is electrically connected to the second current source to receive the first signal, the second end of the second switch is electrically connected to the first end of the third switch, the first end of the second capacitor and the first end of the fourth switch respectively, the first input end of the error amplification module is electrically connected to the second end of the fourth switch and the first end of the third capacitor to receive the reference signal, and the second end of the third switch, the second end of the second capacitor and the second end of the third capacitor are grounded;
[0016] The first end of the fifth switch, the first end of the fourth capacitor and the negative input end of the second comparator are electrically connected to the output end of the third current source, and the second end of the fifth switch and the second end of the fourth capacitor are grounded; the positive input end of the second comparator is used to receive the third signal, and the output end thereof is electrically connected to the control end of the sixth switch to control the on and off of the sixth switch, the second end of the sixth switch is electrically connected to the first end of the seventh switch, the first end of the fifth capacitor and the first end of the eighth switch respectively, the second input end of the error amplification module is electrically connected to the second end of the eighth switch and the first end of the sixth capacitor to receive the feedback signal, and the second end of the seventh switch, the second end of the fifth capacitor and the second end of the sixth capacitor are grounded;
[0017] The output end of the error amplification module is electrically connected to the first end of the sixth switch to output the target signal.
[0018] According to the operation circuit of the present invention, the first capacitor charge-discharge electronic module further includes a first pulse source and a second pulse source, and the second capacitor charge-discharge electronic module further includes a third pulse source and a fourth pulse source;
[0019] The control end of the first switch and the control end of the third switch are electrically connected to the first pulse source, the first pulse source outputs a first narrow pulse of a fixed frequency to the first switch and the third switch to control the on and off of the first switch and the third switch, the control end of the fourth switch is connected to the second pulse source, the second pulse source outputs a second narrow pulse of a fixed frequency to the fourth switch to control the on and off of the fourth switch, wherein the rising edge of the second narrow pulse corresponds to the falling edge of the output signal of the first comparator;
[0020] The control end of the fifth switch and the control end of the seventh switch are connected to the third pulse source, and the third pulse source outputs a third narrow pulse of a fixed frequency to the fifth switch and the seventh switch to control the on and off of the fifth switch and the seventh switch. The control end of the eighth switch is connected to the fourth pulse source, and the fourth pulse source outputs a fourth narrow pulse of a fixed frequency to the eighth switch to control the on and off of the eighth switch, wherein the rising edge of the fourth narrow pulse corresponds to the falling edge of the output signal of the second comparator.
[0021] According to the operational circuit of the present invention, the first switch is used to discharge the first capacitor within a first preset fixed period, the value of the second capacitor is proportional to the value of the first capacitor, the third switch is used to discharge the second capacitor within a second preset fixed period, the signal output by the first comparator is used to control the charging time of the second capacitor by controlling the on-off of the second switch, the fourth switch and the third capacitor constitute a peak voltage sampling circuit, and the value of the third capacitor is much smaller than the value of the second capacitor;
[0022] The fifth switch is used to discharge the fourth capacitor within a third preset fixed period, the value of the fifth capacitor is proportional to the value of the fourth capacitor, the seventh switch is used to discharge the fifth capacitor within a fourth preset fixed period, the signal output by the second comparator is used to control the charging time of the fifth capacitor by controlling the on and off of the sixth switch, the eighth switch and the sixth capacitor form a peak voltage sampling circuit, and the value of the sixth capacitor is much smaller than the value of the fifth capacitor;
[0023] Wherein, the error amplification module includes an error amplifier.
[0024] According to the operational circuit of the present invention, the value of the target signal is proportional to the product of the value of the first capacitor and the value of the second signal, the value of the first signal, the value of the signal output by the third current source, and the value of the fifth capacitor, and divided by the product of the value of the signal output by the first current source and the value of the second capacitor, the value of the fourth capacitor, and the value of the third signal.
[0025] According to the operational circuit of the present invention, the second capacitor charging and discharging electronic module further includes a fifth current source, and an output end of the fifth current source is electrically connected to the first end of the sixth switch and the output end of the error amplification module.
[0026] According to the operational circuit of the present invention, the sum of the value of the target signal and the value of the signal output by the fifth current source is proportional to the product of the value of the first capacitor and the value of the second signal, the value of the first signal, the value of the signal output by the third current source, and the value of the fifth capacitor, and divided by the product of the value of the signal output by the first current source and the value of the second capacitor, the value of the fourth capacitor, and the value of the third signal.
[0027] In a second aspect, the present invention further provides a chip, comprising a computing circuit as described in any one of the above items.
[0028] The present invention provides an operation circuit and chip, which can relatively easily realize multiplication and division operations of electrical signals by means of a capacitor charging and discharging module and an error amplification module in a step-by-step approximation calculation method, and can manufacture operation chips for flexible application in various circuits. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions in the present invention or 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 some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0030] Figure 1 is a schematic diagram of the operation circuit provided by the present invention;
[0031] Figure 2 is a schematic diagram of the operation circuit provided by the present invention;
[0032] Figure 3 yes Figure 2 A circuit diagram of an embodiment of the present invention;
[0033] Figure 4 yes Figure 2 A circuit diagram of another embodiment of the present invention;
[0034] Figure 5 is a schematic diagram of the chip provided by the present invention. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0036] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein.
[0037] In order to solve the problem of complicated circuits and hardware for implementing multiplication and division operations in digital circuits in the prior art, the present invention provides an operation circuit that can easily implement multiplication and division operations of electrical signals through a capacitor charging and discharging module and an error amplification module.
[0038] The following will be combined Figure 1-Figure 5 The computing circuit and chip of the present invention are described.
[0039] Figure 1is a schematic diagram of the operation circuit provided by the present invention, such as Figure 1 The operation circuit provided by the present invention includes a capacitor charging and discharging module and an error amplification module electrically connected to the capacitor charging and discharging module.
[0040] The capacitor charging and discharging module is used to receive a first signal, a second signal and a third signal input from the outside, and output a reference signal and a feedback signal.
[0041] The error amplification module is used to receive the reference signal and the feedback signal, and output a target signal to the capacitor charging and discharging module based on the reference signal and the feedback signal.
[0042] Among them, the first signal, the second signal and the third signal are all analog signals, and the value of the target signal in a stable state satisfies a predetermined mathematical relationship with the values of the first signal, the second signal and the third signal, and the predetermined mathematical relationship includes the following factors: the value of the first signal multiplied by the value of the second signal and divided by the value of the third signal, that is, the target signal = first signal * second signal / third signal.
[0043] Example 1:
[0044] Figure 2 is a schematic diagram of the operation circuit provided by the present invention, such as Figure 2 The capacitor charging and discharging module includes a first capacitor charging and discharging electronic module and a second capacitor charging and discharging electronic module, wherein:
[0045] The first capacitor charge-discharge electronic module is used to receive the first signal A and the second signal B input from the outside, and output a reference signal Vref to the error amplification module based on the first signal A and the second signal B. The reference signal Vref includes information of the first signal A and the second signal B.
[0046] The error amplification module is electrically connected to the first capacitor charge-discharge electronic module, and is used to calculate the error between the reference signal Vref and the feedback signal Vfb output by the second capacitor charge-discharge electronic module, and output the target signal Err to the second capacitor charge-discharge electronic module.
[0047] The second capacitor charging and discharging electronic module is electrically connected to the error amplifying module, and is used for receiving the target signal Err and the third signal C, and outputting a feedback signal Vfb based on the third signal C and the target signal Err.
[0048] Similarly, in steady state, the target signal = K*A*B / C, where K is a preset proportionality factor, which is determined by the size of the capacitor or current source in the specific embodiment, and K can also be adjusted by the target signal Err.
[0049] It should be noted that Example 1 and Example 2 are two forms of the operation circuit of the present invention. The error amplification module in Example 1 is placed after the second capacitor charge-discharge electronic module, and the error amplification module in Example 2 is placed before the second capacitor charge-discharge electronic module. The operation circuit of the present invention outputs a target signal.
[0050] Based on the above-mentioned example 1 and example 2, the present invention can perform sampling and output according to the above-mentioned target signal, and the output end of the operation circuit can be set in the second capacitor charging and discharging electronic module.
[0051] Therefore, the present invention makes the output signal of the operation circuit conform to the preset operation formula by utilizing the capacitor charging and discharging technology, closed loop, feedback and other technologies.
[0052] The specific circuit of Example 1 (corresponding to the following Embodiment 1 and Embodiment 2) is described below.
[0053] Embodiment 1:
[0054] Figure 3 yes Figure 2 A circuit diagram of an embodiment of the present invention is shown in FIG. Figure 3 shown.
[0055] The first capacitor charging and discharging electronic module includes a first current source I1, a first capacitor C1, a first switch K1, a first comparator U1, a second switch K2, a third switch K3, a fourth switch K4, a second capacitor C2 and a third capacitor C3.
[0056] The second capacitor charging and discharging electronic module includes a third current source I3, a fifth current source I5, a fifth switch K5, a fourth capacitor C4, a second comparator U2, a sixth switch K6, a seventh switch K7, an eighth switch K8, a fifth capacitor C5 and a sixth capacitor C6.
[0057] The connection relationship of the components of the first capacitor charging and discharging electronic module is as follows:
[0058] The first end of the first switch K1, the first end of the first capacitor C1 and the negative (-) input end of the first comparator U1 are electrically connected to the first current source, and the second end of the first switch K1 and the second end of the first capacitor C1 are grounded.
[0059] The positive (+) input terminal of the first comparator U1 is used to receive the second signal B input from the outside, and the output terminal thereof is electrically connected to the control terminal of the second switch K2 to control the on and off of the second switch K2. The first terminal of the second switch K2 is electrically connected to the second current source I2 to receive the first signal A, and the second terminal of the second switch K2 is electrically connected to the first terminal of the third switch K3, the first terminal of the second capacitor C2, and the first terminal of the fourth switch K4, respectively. The positive (+) input terminal (i.e., the first input terminal) of the error amplifier module OTA is electrically connected to the second terminal of the fourth switch K4 and the first terminal of the third capacitor C3 to receive the reference signal Vref. The second terminal of the third switch K3, the second terminal of the second capacitor C2, and the second terminal of the third capacitor C3 are grounded.
[0060] Among them, the connection relationship of the components of the second capacitor charging and discharging electronic module is:
[0061] The first end of the fifth switch K5, the first end of the fourth capacitor C4 and the negative (-) input end of the second comparator U2 are electrically connected to the output end of the third current source I3, and the second end of the fifth switch K5 and the second end of the fourth capacitor C4 are grounded.
[0062] The positive (+) input terminal of the second comparator U2 is used to receive the third signal, and the output terminal thereof is electrically connected to the control terminal of the sixth switch K6 to control the on and off of the sixth switch. The second terminal of the sixth switch K6 is electrically connected to the first terminal of the seventh switch K7, the first terminal of the fifth capacitor C5, and the first terminal of the eighth switch K8, respectively. The negative (-) input terminal (i.e., the second input terminal) of the error amplification module is electrically connected to the second terminal of the eighth switch K8 and the first terminal of the sixth capacitor C6 to receive the feedback signal Vfb. The second terminal of the seventh switch K7, the second terminal of the fifth capacitor C5, and the second terminal of the sixth capacitor C6 are grounded. The output terminal of the fifth current source I5 is electrically connected to the first terminal of the sixth switch K6 and the output terminal of the error amplification module OTA.
[0063] The output end of the error amplification module OTA (outputting the target signal Err, with a current value of I3) is electrically connected to the first end of the sixth switch K6 to output the target signal.
[0064] The driving signals corresponding to the first to fourth switches (K1 to K8) are G k1 ~G k8 .
[0065] Optionally, the first capacitor charge-discharge electronic module further includes a first pulse source and a second pulse source, and the second capacitor charge-discharge electronic module further includes a third pulse source and a fourth pulse source. k1 , G k3 The first pulse source controls the driving signal G k4 The second pulse source controls the driving signal G k2Controlled by signal V_TonC1. Drive signal G k5 , G k7 The third pulse source controls the driving signal G k8 The fourth pulse source controls the driving signal G k6 Controlled by signal V_TonC4.
[0066] The control end of the first switch K1 and the control end of the third switch K3 are electrically connected to the first pulse source, and the first pulse source outputs a first narrow pulse with a fixed frequency to the first switch K1 and the third switch K3 to control the on and off of the first switch K1 and the third switch K3. The control end of the fourth switch K4 is connected to the second pulse source, and the second pulse source outputs a second narrow pulse with a fixed frequency to the fourth switch K4 to control the on and off of the fourth switch K4.
[0067] The control end of the fifth switch K5 and the control end of the seventh switch K7 are connected to the third pulse source, and the third pulse source outputs a third narrow pulse with a fixed frequency to the fifth switch K5 and the seventh switch K7 to control the on and off of the fifth switch K5 and the seventh switch K7. The control end of the eighth switch K8 is connected to the fourth pulse source, and the fourth pulse source outputs a fourth narrow pulse with a fixed frequency to the eighth switch K8 to control the on and off of the eighth switch K8.
[0068] In the above, the voltage value V1 of the positive (+) input terminal of the first comparator U1 is proportional to the voltage value of the second signal B, the current value output by the second current source I2 is proportional to the current value of the first signal A, and the voltage value V2 of the positive (+) input terminal of the second comparator U2 is proportional to the voltage value of the third signal C.
[0069] In the above, the driving signal G of the first switch K1 is k1 is the first narrow pulse of fixed frequency (fs) (see Figure 3 The waveform on the middle right, G k1 =G k3 , is the first narrow pulse, G k2 is the pulse that drives the second switch, G k4 is the second narrow pulse, G k5 =G k7 , is the third narrow pulse, G k6 is the pulse for driving the sixth switch, G k8 is the fourth narrow pulse, where G k2 and G k6 are wider than the first narrow pulse, the second narrow pulse, and the third narrow pulse), G k1Its function is to discharge the first capacitor C1 to 0V at the first preset period. Since the voltage value V1 at the positive (+) input terminal of the first comparator U1 is proportional to the voltage value of the second signal B, the period of the signal V_TonC1 output by the first comparator U1 is fs, and the duration of the high level is V1*C1 / I1, which is proportional to the second signal B.
[0070] Among the above, the drive signal G of the third switch K3 k3 , G k3 = G k1 , G k3 Its function is to discharge the second capacitor C2 to 0V at the second preset period.
[0071] Among the above, the drive signal G of the second switch K2 k2 , G k2 Its function is to control the charging time of the second capacitor C2.
[0072] Among the above, the drive signal G of the fourth switch K4 k4 , the fourth switch K4 is connected to the third capacitor C3 to form a peak voltage sampling circuit. The value of the third capacitor C3 is much smaller than the value of the second capacitor C2, that is, C3 << C2. The drive signal G of the fourth switch K4 k4 is the second narrow pulse, and the rising edge of the second narrow pulse G k4 corresponds to the falling edge of the output signal of the first comparator U1 (see the waveform on the right in Figure 3 ).
[0073] Among the above, the voltage signal V at both ends of the third capacitor C3 C3 is equal to the voltage value of the reference signal Vref, that is, V C3 = Vref, Vref is the reference signal, and the positive input terminal of the error amplification module OTA is used to receive the reference signal Vref. The voltage value of the reference signal Vref is proportional to the product of the current value I2 of the first signal A and the voltage value of the second signal B (the value of V1 is proportional to the voltage value of the second signal B), that is, Vref = V1*I2 (i.e., A*B).
[0074] Among the above, the drive signal G of the fifth switch K5 k5 is a narrow pulse with a fixed frequency (fs), G k5= G k1= G k3= G k7 , G k5 Its function is to discharge the fourth capacitor to 0V at the third preset period.
[0075] In the above, the voltage value V2 of the positive (+) input terminal of the second comparator U2 is proportional to the voltage value of the third signal C, so the period of the voltage signal V_TonC4 output by the second comparator U2 is fs, and the duration of the high level is V2*C4 / I3, which is proportional to the voltage value of the third signal C.
[0076] In the above, the driving signal G of the seventh switch K7 k7 , G k7= G k5 , G k7 Used to discharge the fifth capacitor C5 to 0V in a fourth preset period.
[0077] In the above, the driving signal G of the sixth switch K6 k6 , used to control the charging time of the fifth capacitor C5.
[0078] In the above, the eighth switch K8 is electrically connected to the sixth capacitor C6 to form a peak voltage sampling circuit; the value of the sixth capacitor C6 is much smaller than the value of the fifth capacitor C5, that is, C6< <C5。
[0079] In the above, the driving signal G of the eighth switch K8 k8 , G k8 is the fourth narrow pulse, the fourth narrow pulse G k8 The rising edge of the second comparator output signal U2 corresponds to the falling edge (see Figure 3 The voltage across the sixth capacitor C6 is equal to the voltage of the feedback signal, that is, V C6 =Vfb.
[0080] The negative (-) input terminal of the error amplifier module OTA is used to receive the feedback signal Vfb, the voltage signal of the positive (+) input terminal is the reference signal Vref, and the fourth current value I4 outputted by the output terminal is equal to the current value of the target signal Err.
[0081] Optionally, the error amplification module OTA includes an error amplifier.
[0082] In steady state, the voltage value of the reference signal Vref is equal to the voltage value of the feedback signal Vfb, that is, Vref=Vfb, C1*V1*I2 / (I1*C2)=C4*V2*(I5+I4) / (I3*C5), so the sum of the value of the target signal and the value of the fifth current source is proportional to the product of the value of the first capacitor and the value of the second signal, the value of the first signal, the value of the signal output by the third current source, and the value of the fifth capacitor, and divided by the product of the value of the first current source and the value of the second capacitor, the value of the fourth capacitor, and the value of the third signal, that is, I4+I5=C1*V1*I2*I3*C5 / (I1*C2*C4*V2), that is, the sum of the value of the target signal (that is, the fourth current value I4) and the fifth current value I5 is proportional to K multiplied by the value of the first signal A and the value of the second signal B divided by the value of the third signal C, that is, I4+I5=K*A*B / C, K is a preset proportional coefficient.
[0083] Therefore, I4+I5=C1*V1*I2*I3*C5 / (I1*C2*C4*V2)=K*A*B / C.
[0084] Embodiment 2:
[0085] Figure 4 yes Figure 2 A circuit diagram of another embodiment of the present invention is as follows: Figure 4 shown.
[0086] The first capacitor charging and discharging electronic module includes a first current source I1, a first capacitor C1, a first switch K1, a first comparator U1, a second switch K2, a third switch K3, a fourth switch K4, a second capacitor C2 and a third capacitor C3.
[0087] The second capacitor charging and discharging electronic module includes a third current source I3, a fifth current source I5, a fifth switch K5, a fourth capacitor C4, a second comparator U2, a sixth switch K6, a seventh switch K7, an eighth switch K8, a fifth capacitor C5 and a sixth capacitor C6.
[0088] The connection relationship of the components of the first capacitor charging and discharging electronic module is as follows:
[0089] The first end of the first switch K1, the first end of the first capacitor C1 and the negative (-) input end of the first comparator U1 are electrically connected to the first current source, and the second end of the first switch K1 and the second end of the first capacitor C1 are grounded.
[0090] The positive (+) input terminal of the first comparator U1 is used to receive the second signal B input from the outside, and the output terminal thereof is electrically connected to the control terminal of the second switch K2 to control the on and off of the second switch K2. The first terminal of the second switch K2 is electrically connected to the second current source I2 to receive the first signal A, and the second terminal of the second switch K2 is electrically connected to the first terminal of the third switch K3, the first terminal of the second capacitor C2, and the first terminal of the fourth switch K4, respectively. The positive (+) input terminal (i.e., the first input terminal) of the error amplifier module OTA is electrically connected to the second terminal of the fourth switch K4 and the first terminal of the third capacitor C3 to receive the reference signal Vref. The second terminal of the third switch K3, the second terminal of the second capacitor C2, and the second terminal of the third capacitor C3 are grounded.
[0091] Among them, the connection relationship of the components of the second capacitor charging and discharging electronic module is:
[0092] The first end of the fifth switch K5, the first end of the fourth capacitor C4 and the negative (-) input end of the second comparator U2 are electrically connected to the output end of the third current source I3, and the second end of the fifth switch K5 and the second end of the fourth capacitor C4 are grounded.
[0093] The positive (+) input terminal of the second comparator U2 is used to receive the third signal, and the output terminal thereof is electrically connected to the control terminal of the sixth switch K6 to control the on and off of the sixth switch, and the second terminal of the sixth switch K6 is electrically connected to the first terminal of the seventh switch K7, the first terminal of the fifth capacitor C5, and the first terminal of the eighth switch K8, respectively, and the negative (-) input terminal (i.e., the second input terminal) of the error amplification module is electrically connected to the second terminal of the eighth switch K8, the first terminal of the sixth capacitor C6, and the negative (-) input terminal of the error amplification module OTA. The second terminal of the seventh switch K7, the second terminal of the fifth capacitor C5, and the second terminal of the sixth capacitor C6 are grounded.
[0094] The output end (outputting the target signal Err, the current value is I3) of the error amplification module OTA is electrically connected to the first end of the sixth switch K6.
[0095] The driving signals corresponding to the first to fourth switches (K1 to K8) are G k1 ~G k8 .
[0096] Optionally, the first capacitor charge-discharge electronic module further includes a first pulse source and a second pulse source, and the second capacitor charge-discharge electronic module further includes a third pulse source and a fourth pulse source. k1 , G k3 The first pulse source controls the driving signal G k4 The second pulse source controls the driving signal G k2 Controlled by signal V_TonC1. Drive signal G k5 , Gk7 The third pulse source controls the driving signal G k8 The fourth pulse source controls the driving signal G k6 Controlled by signal V_TonC4.
[0097] The control end of the first switch K1 and the control end of the third switch K3 are connected to the first pulse source, and the first pulse source outputs a first narrow pulse with a fixed frequency to the first switch K1 and the third switch K3 to control the on and off of the first switch K1 and the third switch K3. The control end of the fourth switch K4 is connected to the second pulse source, and the second pulse source outputs a second narrow pulse with a fixed frequency to the fourth switch K4 to control the on and off of the fourth switch K4.
[0098] The control end of the fifth switch K5 and the control end of the seventh switch K7 are connected to the third pulse source, and the third pulse source outputs a third narrow pulse with a fixed frequency to the fifth switch K5 and the seventh switch K7 to control the on and off of the fifth switch K5 and the seventh switch K7. The control end of the eighth switch K8 is connected to the fourth pulse source, and the fourth pulse source outputs a fourth narrow pulse with a fixed frequency to the eighth switch K8 to control the on and off of the eighth switch K8.
[0099] In the above, the voltage value V1 of the positive (+) input terminal of the first comparator U1 is proportional to the voltage value of the second signal B, the current value output by the second current source I2 is proportional to the current value of the first signal A, and the voltage value V2 of the positive (+) input terminal of the second comparator U2 is proportional to the voltage value of the third signal C.
[0100] In the above, the driving signal G of the first switch K1 is k1 is a narrow pulse with a fixed frequency (fs) (see Figure 4 The waveform on the middle right, G k1 =G k3 , is the first narrow pulse, G k2 is the pulse that drives the second switch, G k4 is the second narrow pulse, G k5 =G k7 , is the third narrow pulse, G k6 is the pulse for driving the sixth switch, G k8 is the fourth narrow pulse, where G k2 and G k6 are wider than the first narrow pulse, the second narrow pulse, and the third narrow pulse), G k1 The function is to discharge the first capacitor C1 to 0V in a first preset period. Since the voltage value V1 at the positive (+) input terminal of the first comparator U1 is proportional to the voltage value of the second signal B, the period of the voltage signal V_TonC1 output by the first comparator U1 is fs, and the duration of the high level is V1*C1 / I1, which is proportional to the second signal B.
[0101] Among the above, the driving signal G of the third switch K3 k3 , G k3 = G k1 , G k3 functions to discharge the second capacitor C2 to 0V at the second preset period.
[0102] Among the above, the driving signals G of the second switch K2 k2 , G k2 function to control the charging time of the second capacitor.
[0103] Among the above, the driving signal G of the fourth switch K4 k4 , the fourth switch K4 is connected to the third capacitor C3 to form a peak voltage sampling circuit. The value of the third capacitor C3 is much smaller than the value of the second capacitor C2, that is, C3 << C2. The driving signal G of the fourth switch K4 k4 is a second narrow pulse, and the rising edge of the second narrow pulse G k4 corresponds to the falling edge of the driving signal G of the second switch K2 k2 (see the right waveform in Figure 4 ).
[0104] Among the above, the voltage signal V at both ends of the third capacitor C3 C3 is equal to the voltage value of the reference signal Vref, that is, V C3 = Vref, Vref is a reference signal, and the positive input terminal of the error amplification module OTA is used to receive the reference signal Vref. The voltage value of the reference signal Vref is proportional to the product of the current value I2 of the first signal A and the voltage value of the second signal B (the value of V1 is proportional to the voltage value of the second signal B), that is, Vref = V1 * I2 (that is, A * B).
[0105] Among the above, the driving signal G of the fifth switch K5 k5 is a narrow pulse with a fixed frequency (fs), G k5= G k1= G k3= G k7 , G k5 functions to discharge the fourth capacitor to 0V at the third preset period.
[0106] Among the above, the voltage value V2 at the positive (+) input terminal of the second comparator U2 is proportional to the voltage value of the third signal C. Therefore, the period of the voltage signal V_TonC4 output by the second comparator U2 is fs, and the duration of the high level is V2 * C4 / I3, which is proportional to the voltage value of the third signal C.
[0107] Among the above, the driving signals G of the seventh switch K7 k7 , G k7= G k5 , G k7Used to discharge the fifth capacitor C5 to 0V in a fourth preset period.
[0108] In the above, the driving signal G of the sixth switch K6 k6 , used to control the charging time of the fifth capacitor C5.
[0109] In the above, the eighth switch K8 is electrically connected to the sixth capacitor C6 to form a peak voltage sampling circuit; the value of the sixth capacitor C6 is much smaller than the value of the fifth capacitor C5, that is, C6< <C5。
[0110] In the above, the driving signal G of the eighth switch K8 k8 , G k8 is the fourth narrow pulse, the fourth narrow pulse G k8 The rising edge of the second pulse G k6 The falling edge (see Figure 4 The voltage across the sixth capacitor C6 is equal to the voltage of the feedback signal, that is, V C6 =Vfb.
[0111] The negative (-) input terminal of the error amplifier module OTA is used to receive the feedback signal Vfb, the voltage signal of the positive (+) input terminal is the reference signal Vref, and the fourth current value I4 outputted by the output terminal is equal to the current value of the target signal Err.
[0112] In steady state, the voltage value of the reference signal Vref is equal to the voltage value of the feedback signal Vfb, that is, Vref=Vfb, C1*V1*I2 / (I1*C2)=C4*V2*I4 / (I3*C5), so the value of the target signal is proportional to the product of the value of the first capacitor and the value of the second signal, the value of the first signal, the value of the signal output by the third current source, and the value of the fifth capacitor, and divided by the product of the value of the signal output by the first current source and the value of the second capacitor, the value of the fourth capacitor, and the value of the third signal, that is, I4=C1*V1*I2*I3*C5 / (I1*C2*C4*V2), that is, the value of the target signal is proportional to K multiplied by the value of the first signal A and the value of the second signal B divided by the value of the third signal C, that is, I4=K*A*B / C, K is a preset proportional coefficient.
[0113] Optionally, the current value of the target signal is proportional to K multiplied by the current value of the first signal A, the voltage value of the second signal B, and the voltage value of the third signal C.
[0114] Therefore, I4=C1*V1*I2*I3*C5 / (I1*C2*C4*V2)=K*A*B / C.
[0115] The difference between the above-mentioned embodiment 2 and embodiment 1 is that the embodiment 2 lacks the fifth current source I5 compared with embodiment 1.
[0116] It can be seen from this that the circuit diagrams shown in Embodiment 1 and Embodiment 2 can easily realize the operation circuit described in the present invention.
[0117] Figure 5 is a schematic diagram of the chip provided by the present invention, such as Figure 2 The chip 500 of the present invention includes the arithmetic circuit 510 described above.
[0118] The structure of the operation circuit 510 may refer to the above description and will not be described in detail here.
[0119] By providing the operation circuit 510 , the chip 500 can be applied to more electronic fields to implement multiplication and division operations on electrical signals.
[0120] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A computing circuit, characterized in that: It includes a capacitor charging and discharging module and an error amplification module electrically connected to the capacitor charging and discharging module, wherein: The capacitor charging and discharging module is used to receive a first signal, a second signal and a third signal input from the outside, and output a reference signal and a feedback signal; The error amplification module is used to receive the reference signal and the feedback signal, and output a target signal to the capacitor charging and discharging module based on the reference signal and the feedback signal; Among them, the first signal, the second signal and the third signal are all analog signals, and the value of the target signal in a stable state satisfies a predetermined mathematical relationship with the values of the first signal, the second signal and the third signal, and the predetermined mathematical relationship is: there is a linear relationship determined by a preset proportional coefficient between the value of the target signal and the product of the value of the first signal and the value of the second signal divided by the value of the third signal.
2. The operation circuit according to claim 1, characterized in that: The capacitor charging and discharging module includes a first capacitor charging and discharging electronic module and a second capacitor charging and discharging electronic module, wherein The first capacitor charging and discharging electronic module is used to receive the first signal and the second signal, and output the reference signal to the error amplification module based on the first signal and the second signal; The error amplification module is electrically connected to the first capacitor charge and discharge electronic module, and is used to calculate the error between the reference signal and the feedback signal and output the target signal; The second capacitor charging and discharging electronic module is electrically connected to the error amplification module, and is configured to receive the third signal and the target signal, and output the feedback signal based on the third signal and the target signal.
3. The operation circuit according to claim 2, characterized in that: The first capacitor charge-discharge electronic module includes a first current source, a first capacitor, a first switch, a first comparator, a second switch, a third switch, a fourth switch, a second capacitor, and a third capacitor; the second capacitor charge-discharge electronic module includes a third current source, a fifth switch, a fourth capacitor, a second comparator, a sixth switch, a seventh switch, an eighth switch, a fifth capacitor, and a sixth capacitor; The first end of the first switch, the first end of the first capacitor and the negative input end of the first comparator are electrically connected to the first current source, and the second end of the first switch and the second end of the first capacitor are grounded; the positive input end of the first comparator is used to receive the second signal, and the output end thereof is electrically connected to the control end of the second switch to control the on and off of the second switch, the first end of the second switch is electrically connected to the second current source to receive the first signal, the second end of the second switch is electrically connected to the first end of the third switch, the first end of the second capacitor and the first end of the fourth switch respectively, the first input end of the error amplification module is electrically connected to the second end of the fourth switch and the first end of the third capacitor to receive the reference signal, and the second end of the third switch, the second end of the second capacitor and the second end of the third capacitor are grounded; The first end of the fifth switch, the first end of the fourth capacitor and the negative input end of the second comparator are electrically connected to the output end of the third current source, and the second end of the fifth switch and the second end of the fourth capacitor are grounded; the positive input end of the second comparator is used to receive the third signal, and the output end thereof is electrically connected to the control end of the sixth switch to control the on and off of the sixth switch, the second end of the sixth switch is electrically connected to the first end of the seventh switch, the first end of the fifth capacitor and the first end of the eighth switch respectively, the second input end of the error amplification module is electrically connected to the second end of the eighth switch and the first end of the sixth capacitor to receive the feedback signal, and the second end of the seventh switch, the second end of the fifth capacitor and the second end of the sixth capacitor are grounded; The output end of the error amplification module is electrically connected to the first end of the sixth switch to output the target signal.
4. The operation circuit according to claim 3, characterized in that: The first capacitor charge-discharge electronic module further includes a first pulse source and a second pulse source, and the second capacitor charge-discharge electronic module further includes a third pulse source and a fourth pulse source; The control end of the first switch and the control end of the third switch are electrically connected to the first pulse source, the first pulse source outputs a first narrow pulse of a fixed frequency to the first switch and the third switch to control the on and off of the first switch and the third switch, the control end of the fourth switch is connected to the second pulse source, the second pulse source outputs a second narrow pulse of a fixed frequency to the fourth switch to control the on and off of the fourth switch, wherein the rising edge of the second narrow pulse corresponds to the falling edge of the output signal of the first comparator; The control end of the fifth switch and the control end of the seventh switch are connected to the third pulse source, and the third pulse source outputs a third narrow pulse of a fixed frequency to the fifth switch and the seventh switch to control the on and off of the fifth switch and the seventh switch. The control end of the eighth switch is connected to the fourth pulse source, and the fourth pulse source outputs a fourth narrow pulse of a fixed frequency to the eighth switch to control the on and off of the eighth switch, wherein the rising edge of the fourth narrow pulse corresponds to the falling edge of the output signal of the second comparator.
5. The operation circuit according to claim 4, characterized in that: The first switch is used to discharge the first capacitor within a first preset fixed period, the value of the second capacitor is proportional to the value of the first capacitor, the third switch is used to discharge the second capacitor within a second preset fixed period, the signal output by the first comparator is used to control the charging time of the second capacitor by controlling the on and off of the second switch, the fourth switch and the third capacitor form a peak voltage sampling circuit, and the value of the third capacitor is much smaller than the value of the second capacitor; The fifth switch is used to discharge the fourth capacitor within a third preset fixed period, the value of the fifth capacitor is proportional to the value of the fourth capacitor, the seventh switch is used to discharge the fifth capacitor within a fourth preset fixed period, the signal output by the second comparator is used to control the charging time of the fifth capacitor by controlling the on and off of the sixth switch, the eighth switch and the sixth capacitor form a peak voltage sampling circuit, and the value of the sixth capacitor is much smaller than the value of the fifth capacitor; Wherein, the error amplification module includes an error amplifier.
6. The operation circuit according to claim 5, characterized in that: The value of the target signal is proportional to the product of the value of the first capacitor and the value of the second signal, the value of the first signal, the value of the signal output by the third current source, and the value of the fifth capacitor, and divided by the product of the value of the signal output by the first current source and the value of the second capacitor, the value of the fourth capacitor, and the value of the third signal.
7. The operation circuit according to claim 6, characterized in that: The second capacitor charging and discharging electronic module further includes a fifth current source, and an output end of the fifth current source is electrically connected to the first end of the sixth switch and the output end of the error amplification module.
8. The operation circuit according to claim 7, characterized in that: The sum of the value of the target signal and the value of the signal output by the fifth current source is proportional to the product of the value of the first capacitor and the value of the second signal, the value of the first signal, the value of the signal output by the third current source, and the value of the fifth capacitor, divided by the product of the value of the signal output by the first current source and the value of the second capacitor, the value of the fourth capacitor, and the value of the third signal.
9. A chip, characterized in that: The method comprises the operation circuit as claimed in any one of claims 1 to 8.
