Abstract
A first-order low-pass filter based on a single memristive operational transconductance amplifier (memOTA) and one grounded capacitor is proposed. This dual-port memOTA has separate signal and memory ports, and its memory acts on the bias current without touching the signal path. The bias current only selects the frequency band, and inside the band, the cutoff frequency is set by the state stored in the memOTA. This state is written by 2 µs logic pulses on an up line and a down line, and each pulse changes the cutoff frequency by less than 0.5 kHz. Hence, the filter is tuned, coarsely or finely, by counting pulses, without a digital-to-analog converter. Between the pulses, the memory draws no current, and the state is held, so, for states up to 0.6 V, the filter has the same total harmonic distortion, noise and power as a memory-free OTA-capacitor (OTA-C) filter with the same cutoff frequency. With a bias current of 20 µA, the stored state sets the cutoff frequency from 16.5 kHz to 63.7 kHz. A simple loop with a two-sample phase detector tunes the filter automatically to a reference tone and can also correct the slow drift of the held setting. This simulation-based proof of concept is carried out at the transistor level in 0.18 µm complementary metal-oxide-semiconductor (CMOS) with ±0.9 V supplies, including process corners, temperature and mismatch. The filter and its pulse programming are also emulated in real time on an STM32L476RG microcontroller and observed on an oscilloscope.
1. Introduction
The memristor was postulated by Chua as the fourth fundamental circuit element [1] and was later generalized to the class of memristive systems [2]. Since a physical nanoscale realization was reported [3], circuit elements with memory have become an active research field. The concept has been extended to memcapacitors and meminductors [4], and memristive devices are now regarded as key elements of analog storage and in-memory computing [5,6]. In these applications, the memory stores an analog value that sets the behavior of a circuit, so that the circuit can be programmed instead of being controlled continuously.
In analog signal processing, the memory property has mostly been used by inserting a memristive device into the signal path of a conventional circuit. Adaptive filtering with physical memristive devices was demonstrated in [7], programmable analog circuits using memristors as configuration elements were proposed in [8], and first-order memristor-capacitor filters were analyzed in [9]. Since physical memristive devices are not yet available in standard complementary metal–oxide–semiconductor (CMOS) processes, memristor emulators built with standard active building blocks are widely used instead. Emulators based on the operational transconductance amplifier (OTA) and the current differencing buffered amplifier (CDBA) have been reported [10,11], and the OTA-based emulator of [11] has been verified experimentally and applied to a high-pass filter in simulation. In most of these approaches [7,9,10,11], the memory element is a two-terminal device, or an emulator block, placed in the signal path. Therefore, the memory element loads the signal path, its nonlinearity appears directly in the transfer function, and its state can be changed by the processed signal.
OTA-C filters, also known as Gm-C filters, are one of the standard approaches to integrated continuous-time filtering [12]. Their main attraction is electronic tunability. The cutoff frequency is proportional to the transconductance of the OTA, which is set by a bias current [13], so that process and temperature variations can be compensated by automatic tuning loops [12,14]. The design of single-stage CMOS OTAs is also well documented [15]. However, a conventional OTA has no memory. Its transconductance depends only on the present value of the bias current. Therefore, when the cutoff frequency of an OTA-C filter is selected by a digital word, the word must be converted into an analog quantity. This is usually done in one of two ways. In the first, binary-weighted transistor arrays or current-division networks, switched by the control bits, scale a current or a current gain of the active element [16,17] and thus act as a current-mode digital-to-analog converter (DAC). In the second, arrays of transconductor cells [18,19] or banks of capacitors [20] are switched in and out of the filter. In each case, an array of matched elements is needed; its size and the number of control lines grow with the resolution, and the control word must be kept as long as the setting is needed. Floating-gate transistors can store a bias current without a DAC and in a nonvolatile way, but they are programmed by hot-electron injection and tunneling, which require dedicated programming circuitry [21].
The memristive OTA (memOTA), introduced in [22], offers a different approach, in which the memory is placed inside the active element instead of the signal path. In the memOTA, an additional differential stage, referred to here as the memory stage, integrates the input activity on a memory capacitor, and the resulting state variable controls the tail current of a conventional OTA core. Thus, the transconductance has a memristive memory, while the signal path remains a plain OTA. The memOTA was verified at the transistor level in 0.18 µm CMOS technology and applied to a chaotic system [22]. However, the most direct application of the element has not been studied yet. Since the cutoff frequency of an OTA-C filter is proportional to the transconductance, a memOTA should give a filter whose cutoff frequency is stored in the element and can be programmed. To the best of our knowledge, such a filter has not been reported.
In this paper, a first-order OTA-C low-pass filter (LPF) employing a single memOTA and one grounded capacitor is proposed. The inputs of the memory stage of the memOTA are brought out as a separate memory port, which turns the element into a dual-port memOTA without any additional device. The bias current of the memOTA is fixed and only selects the frequency band. Inside the band, the cutoff frequency is set by the stored state, which is written by pulses on two lines, an up line and a down line. During each pulse, the memory stage is fully switched, and its output current, about ±Iconst, charges or discharges the memory capacitor for a fixed time; thus, an almost constant charge is added or removed. Hence, the number of pulses is converted into the stored state, and the state sets the total bias current of the OTA core. In other words, the pulse count is converted into a bias current inside the memOTA, without a separate DAC. The memory stage is switched on only during a pulse; between the pulses, the setting is held on the memory capacitor, and the memory draws no current. The proposed LPF exhibits several distinct advantages.
- It uses a single active element and only one grounded capacitor in the signal path.
- Its cutoff frequency is set, inside the band selected by the bias current, coarsely by packets of pulses and finely by single pulses on two lines, without a DAC or switched arrays; the number of lines does not depend on the resolution.
- In the hold mode, that is, at all times except during the short write pulses, its total harmonic distortion (THD), output noise and power are, for states up to 0.6 V, equal to those of a memory-free OTA-C filter with the same cutoff frequency.
- A simple loop with a two-sample phase detector tunes it automatically to a reference tone.
- The memory requires only five additional transistors (M5–M9), a memory capacitor and resistor, two hold switches, and a bias current of 2 µA that flows only during a pulse.
The rest of this paper is organized as follows. Section 2 introduces the dual-port memOTA, its CMOS realization, and its two operating modes. Section 3 presents the proposed LPF and its pulse programming. Section 4 gives the simulation results, including automatic tuning. Section 5 presents a real-time emulation of the filter on a microcontroller. Section 6 discusses the role of the bias current and compares the proposed LPF with previous memristive filters, and Section 7 concludes the paper.
2. The memOTA and Its Dual-Port Extension
A conventional OTA, whose symbol is given in Figure 1a, provides an output current proportional to its differential input voltage
Figure 1.
Circuit symbols. (a) Conventional OTA. (b) Dual-port memOTA, whose transconductance is controlled by the internal state w, which is driven through the memory port (vm+, vm−), shown by dashed lines.
For a five-transistor CMOS OTA biased in strong inversion, , where kn is the transconductance parameter of the input pair, and Ibias is the tail current of the OTA. Since the cutoff frequency of an OTA-C filter is proportional to gm, it is tuned by the bias current [12,13]. The memOTA keeps this property, but its bias current is also controlled by an internal state variable that is driven by the circuit activity.
Figure 1b shows the symbol of the dual-port memOTA used in this work. At the behavioral level, the memOTA is described by three equations [22], written here for the dual-port memOTA. The output current has the OTA form with a state-dependent transconductance
The state variable is obtained by a leaky integration of the memory-port voltage vm = vm+ − vm−
and the state controls the bias current of the OTA core
Here, β and γ set the amplitude and the slope of the state drive, and I1 and η set those of the state-controlled part of the bias current. In addition, I0 is the constant part of the bias current, and Cw and Rw are the memory capacitor and resistor. The drive term βtanh(γvm) in (3) is limited to ±β, so the state remains bounded. For vm = 0, this term is zero, and only the leakage term −w/Rw remains; then the state decays toward zero with the time constant τ = RwCw, so the memory is volatile and its retention time is set by the designer.
The CMOS realization of the dual-port memOTA used in this work is shown in Figure 2, adapted from [22]. The signal path is a five-transistor OTA consisting of the input pair M1–M2, the current mirror M3–M4, and a tail source formed by the constant current I0 in parallel with the state-controlled transistor M5. The memory stage consists of the differential pair M6–M7 biased by Iconst and the current mirror M8–M9, which copies the current of M6 to the memory node vw. The memory node is loaded by Cw in parallel with Rw. The switches S1 and S2 select the operating mode of the memory stage, as explained at the end of this section. The current balance at the memory node gives
Figure 2.
CMOS realization of the dual-port memOTA. The signal port drives the input pair (M1, M2) of the OTA core, while the memory port (vm+, vm−) drives the input pair (M6, M7) of the memory stage. The switches S1 and S2 are closed only in the write mode (Table 1).
Here, i6, i7 and i9 are the drain currents of M6, M7 and M9, and the state w = vw − VSS is the voltage of the memory node with respect to VSS. Since i9 ≈ i6, the memory node receives i6 − i7. At Iconst = 2 µA, M6 and M7 operate in weak inversion, so that i6 − i7 = Iconsttanh(vm/(2nVT)), where n is the subthreshold slope factor and VT is the thermal voltage. Therefore, (5) realizes (3) with β = Iconst and γ = 1/(2nVT). In the OTA core, as long as M5 operates in saturation, it adds the current to the tail current for w > VTN5. With the square-law characteristic of the input pair, the state-to-transconductance relation becomes
where kn1,2 and kn5 are the transconductance parameters of the input pair and of M5, respectively, and VTN5 is the threshold voltage of M5. According to (6), the state has practically no effect below the threshold voltage, so the tuning curve has a flat lower part set by I0 alone. Below and close to VTN5, M5 operates in weak inversion, and its small current rises almost exponentially with w. At the nominal bias, this current is negligible compared with I0, so (6) is a good approximation, but at very small I0 it becomes important, as discussed in Section 6. Above the threshold voltage, the transconductance increases monotonically with the state up to a limit, because w cannot exceed the supply range, and for large w, M5 enters the triode region because the tail node has little voltage headroom, so its current levels off. Hence, the tuning curve is S-shaped and bounded, like the tanh law of (4).
In the original memOTA [22], the gates of M6 and M7 are connected to the input terminals of the OTA core, so the signal-port voltage vd also writes the memory. In this work, these two gates are brought out as a separate memory port, denoted by vm+ and vm− in Figure 2. This modification requires no additional device or bias branch; only two gate connections are changed. The element then has a signal port, which sets the output current through (2), and a memory port, which drives the state through (3). If the two ports are connected together (vm = vd), the original memOTA is obtained. As shown in Section 3 and Section 4, this simple change makes pulse programming of the filter possible.
The switch S1 connects the tail current Iconst of the memory stage, and S2 connects Rw to the memory node. Together, they set the two operating modes of the memory stage, which are summarized in Table 1. The port terminals are driven by two logic lines, the up line vm+ and the down line vm−, whose levels are VSS for logic 0 and VDD for logic 1. In the write mode, S1 and S2 are closed, and a pulse of width tp is applied to one of the lines. The pair M6–M7 is then fully switched, and Iconst charges or discharges Cw, so the state steps up or down. In the hold mode, S1 and S2 are open, and both lines are at logic 0. Then, the memory stage draws no current, M6 and M7 are off, and the memory node floats on Cw, so the state is stored. In both modes, the OTA core processes the signal. The hold mode is the normal mode of the filter, and the write mode lasts only for the duration of a pulse. Both switches are controlled by one signal, the OR of the up and down lines. This signal is at logic 1, and S1 and S2 are closed, only while a pulse is present on either line; hence, no extra control line is needed.
Table 1.
Operating modes of the memory stage.
3. Proposed First-Order Low-Pass Filter
The proposed LPF is shown in Figure 3. The non-inverting input of the memOTA receives the input voltage, the inverting input is connected to the output, and the output is loaded by a grounded capacitor CL. The current balance at the output node gives
Figure 3.
Proposed dual-port memOTA-C first-order LPF. The dashed terminals form the memory port, which is driven by the up and down logic lines.
If the state changes much more slowly than the signal, the transconductance can be regarded as constant during a signal period (quasi-static assumption). Then, (7) becomes linear, and the transfer function and the cutoff frequency of the LPF are obtained as
The DC gain is unity. Equations (8) and (9) are the same as those of a conventional OTA-C filter, except that the cutoff frequency is now a function of the internal state, which in turn is set through the memory port. The quasi-static assumption holds, because the state is constant in the hold mode and changes only in small steps during a pulse.
During a pulse, the pair M6–M7 is fully switched, so the memory stage charges or discharges Cw with a current of about Iconst. Hence, one pulse changes the state by
With Iconst = 2 µA, tp = 2 µs and Cw = 1 nF, the nominal step is 4 mV. Since Cw is fixed by the design, (10) shows that the resolution can be changed by the pulse width tp, much as it is set by the number of bits in a DAC. Coarse tuning uses packets of pulses, and fine tuning uses single pulses. Each step is small and nearly constant; hence, gm changes only slightly per pulse, and the quasi-static assumption also holds during programming. Since the ports are separate, the cutoff frequency is set by pulses on the memory port without disturbing the signal path.
4. Simulation Results
All simulations are performed at the transistor level in PSpice (OrCAD X 25.1, Cadence Design Systems, San Jose, CA, USA) using the same 0.18 µm CMOS BSIM3v3 model parameters as in [22] with ±0.9 V supply voltages at 27 °C and the transistor dimensions given in Table 2. Unless stated otherwise, I0 = 20 µA, CL = 2 nF, Cw = 1 nF and Rw = 2 MΩ, and the switches S1 and S2 are ideal. In all simulations, the memory node floats on Cw, as in the real circuit, and the desired state w is set by charging Cw at the start of the simulation. The memory stage is switched on only during the pulses.
Table 2.
Transistor dimensions and element values.
First, the band is selected by I0 with the state at its minimum, w = 0. Then M5 is off, and the circuit is a conventional OTA-C filter. As shown in Figure 4a, when I0 is increased by three decades, from 0.1 µA to 100 µA, the cutoff frequency increases by more than two decades, from 0.116 kHz to 50.8 kHz, and the response remains first order. The passband gain is −0.2 dB instead of unity, owing to the finite output resistance of the OTA core. Over the whole range, M1–M4 stay in saturation. As shown in Figure 4b, the static power grows with I0 from 0.18 µW to 180 µW, and in the hold mode the memory stage adds nothing to it. At I0 = 20 µA, the cutoff frequency is 16.5 kHz and the power is 36.0 µW.
Figure 4.
Band selection and state tuning in the hold mode. (a) Magnitude responses for I0 = 0.1, 0.3, 1, 3, 10, 30 and 100 µA with w = 0. (b) Cutoff frequency and static power versus I0 (w = 0). (c) fc(w) for I0 = 20 µA; M5 is in the triode region in the shaded area. (d) THD versus cutoff frequency for bias tuning (w = 0, I0 varied) and state tuning (I0 = 20 µA, w varied) for a 50 mV input at 0.3fc; the shaded area corresponds to w > 0.6 V.
Second, I0 is fixed at 20 µA, and the cutoff frequency is set by the state, as shown in Figure 4c. As expected from (6), the curve is flat while M5 is off, rises above the threshold voltage of about 0.44 V, and flattens again when M5 enters the triode region, because the tail node has little voltage headroom. The tail current follows the tanh law of (4) if w is measured from VTN5, that is, if tanh(ηw) is replaced by tanh[η(w − VTN5)] for w > VTN5, while below VTN5 the tail current stays at I0. A least-squares fit to the simulated tail current over the whole range of w, from 0 to VDD − VSS, with VTN5 fixed at 0.44 V, gives I1 ≈ 290 µA and η ≈ 0.62 V−1, with a maximum error of about 8% of the largest current. The error is below 4% in the triode region of M5 and is largest just above VTN5, where the current of M5 rises as a square law. For states from 0 to 1.2 V, the range used in this work, the cutoff frequency covers 16.5 kHz to 63.7 kHz, a ratio of 3.9. In the shaded area of Figure 4c, where w > 0.76 V and fc > 39.8 kHz, M5 operates in the triode region. The filter still works there, because M1–M4 remain in saturation, but the current of M5, and hence fc, increases more slowly with w (the curve flattens but does not fall), and the THD increases, as discussed below. Figure 4d compares the THD of state tuning and bias tuning at the same cutoff frequency for a sine input with 50 mV amplitude at 0.3fc. The amplitude of 50 mV was chosen because it keeps the simple input pair of the OTA in its nearly linear range. Up to w = 0.6 V (24.1 kHz), state tuning is as linear as bias tuning and needs the same tail current, so tuning through the memory costs nothing in linearity or power. For larger states, the THD grows. The reason is that M5 approaches the triode region, where its current also depends on its drain voltage, that is, on the voltage of the tail node. Since this voltage follows the signal, the current of M5, and hence gm, varies with the signal, which distorts the output. Still, the THD stays below 0.1% up to 33.8 kHz and below 0.65% over the whole band. Overall, since fc is proportional to gm, which is set by the tail current, raising the cutoff frequency by the state raises the tail current and the power, just as bias tuning does in Figure 4b. For states above 0.6 V, it also costs linearity, because of the triode region of M5.
Figure 5a shows the complete tuning map fc(I0,w). Below the threshold of M5, the map is flat along the state axis and reduces to the band-selection curve of Figure 4b. Above the threshold, the state raises the cutoff frequency, and in the gray area, where M5 is in the triode region, the map flattens. The state is most effective at low bias currents, because the current of M5 does not depend on I0 and forms a larger part of the tail current. At I0 = 0.1 µA, the state alone moves the cutoff frequency from 0.116 kHz to 60.5 kHz. Why a larger I0 is still used is discussed in Section 6.
Figure 5.
Three-dimensional simulation results in the hold mode. (a) Tuning map fc(I0, w), with the color showing fc from low (blue) to high (yellow); M5 operates in the triode region in the gray area. (b) THD versus input frequency and amplitude for the proposed LPF with w = 0.6 V and I0 = 20 µA (surface) and for the memory-free OTA-C filter with the same cutoff frequency (black mesh).
In the hold mode, the memory does not degrade the filter. Table 3 compares the proposed LPF, with the state held at w = 0.6 V, with a memory-free OTA-C filter in which M5 and the memory stage are removed. The bias current of the memory-free filter, 32.4 µA, is equal to the tail current of the proposed LPF, so both filters have the same cutoff frequency of 24.1 kHz. Their THD, output noise and static power are practically equal. Since the model parameters contain no flicker-noise data, the flicker-noise coefficient of all transistors was also varied over two decades. In all cases, the output noise of the two filters, including the 1/f noise, is practically the same, because in the hold mode the memory stage carries no current, and the noise of M5 enters the OTA as a common-mode tail current. Figure 5b extends this comparison over the input frequency and amplitude. The black mesh of the memory-free filter lies on the surface of the proposed LPF. The reason is that the separate memory port keeps the signal away from the state, so gm(w) stays constant and adds no distortion.
Table 3.
Proposed LPF in the hold mode and a memory-free OTA-C filter with the same cutoff frequency.
A DC simulation of the pair M6–M7 confirms the model of Section 2. The pair operates in weak inversion, and i6 − i7 follows the tanh law with γ ≈ 12 V−1 (n ≈ 1.6). The difference between the simulated i6 − i7 and the tanh law is less than 1% of Iconst. Figure 6 shows pulse programming in the time domain. Both simulations start from the operating point of Table 3, w = 0.6 V and fc = 24.1 kHz, and the memory stage is on only during a pulse. In Figure 6a, a packet of 50 up pulses raises the cutoff frequency to about 43 kHz, and a packet of 41 down pulses brings it back to 24.1 kHz; between the packets, the setting does not change. Each packet consists of 2 µs pulses with a period of 4 µs, which appear as a solid bar on this time scale. On average over the packet, an up pulse raises the state by about 3.8 mV, and a down pulse lowers it by about 4.7 mV. The down steps are slightly larger, because during a pulse, Rw also discharges Cw.
Figure 6.
Pulse programming and hold (Cw = 1 nF; 2 µs logic pulses with a period of 4 µs; the memory stage is on only during a pulse). (a) Coarse tuning by pulse packets from 24.1 kHz to about 43 kHz and back, showing the cutoff frequency (top) and the up and down lines (bottom). (b) Programming with 50 up pulses (shaded area) from 24.1 kHz, followed by the hold mode or by S2 left closed.
Figure 6b shows why S2 must be open in the hold mode. After 50 up pulses, the setting stays constant in the hold mode. If S2 is left closed, Rw discharges Cw with the time constant RwCw = 2 ms, and the cutoff frequency returns to the bottom of the band within a few milliseconds. S1 is needed as well. With both lines at logic 0, M6 and M7 are off, but their small subthreshold currents could still flow through the current source, and a logic-0 level slightly above VSS could turn the pair partly on. In both cases, the state would be slowly written through (5). With S1 open, no current flows in the memory stage, and the state is held on Cw. Unlike the setting of a DAC, the held setting is not permanent. In the hold mode, M9 is off, but its subthreshold current slowly charges Cw, so the held setting drifts upward by about one step in a few hundred milliseconds. This drift is corrected automatically by the tuning loop described below.
Both the setting and the correction of the drift can be made automatically, as in the tuning loops of conventional OTA-C filters [12,14]. The loop is shown in Figure 7a. It consists of a reference tone with an input switch, a sample-and-hold circuit, a comparator and a logic circuit, which sends one pulse per tone period to the up or down line. The loop uses the phase of the LPF, which follows from (8) as
Figure 7.
Automatic tuning. (a) Tuning loop; the input switch is shown in the tuning mode. (b) Output for a tone of frequency fref = 24.1 kHz in two separate simulations, sampled at T/8 and 5T/8. When the filter is tuned (fc = fref, solid line), vA ≈ vB; when it is not tuned (fc = 45 kHz, dashed line), vA > vB. (c) Simulated loop, showing the cutoff frequency (top) and up and down lines (bottom). The tone frequency, shown by the dashed lines, is 45 kHz from 0.5 ms to 3 ms and 24.1 kHz from 3 ms to 6 ms; fc reaches 45 kHz at about 1.8 ms and 24.1 kHz at about 4.9 ms; after 6 ms (shaded area), the tone is removed, and the setting is held.
At f = fc, the phase is −45°. In the tuning mode, the input switch in Figure 7a applies a reference tone of frequency fref, the desired cutoff frequency, instead of the signal. The output is sampled twice per tone period, at T/8 and 5T/8, where T = 1/fref. The two sampling instants and the pulses are timed by the tone itself (dashed line in Figure 7a). If the tone is a sine of period T that starts at t = 0, the output in the steady state is vout(t) = VDC + Bsin(2πt/T + φ), where VDC is its DC level, B is its amplitude and φ = φ(fref) is the phase in (11). The difference between the two samples is then
Hence, if fc = fref, the two samples vA and vB are equal, as shown in Figure 7b. If fc is higher than fref, φ > −45° and vA > vB; if fc is lower, vA < vB. Since VDC does not appear in (12), the DC offset of the output cancels. A comparator compares the two samples, and once per tone period, the logic sends one pulse to the down line if vA > vB and to the up line if vA < vB. In this way, fc moves step by step to fref. The loop needs no DAC, since the setting is stored as the state on Cw. After tuning, the switch returns to the normal mode, and the setting is held.
Figure 7c shows the simulated loop with an ideal sample-and-hold circuit and comparator. The filter starts at 24.1 kHz. A 45 kHz tone, applied at 0.5 ms, raises the cutoff frequency step by step until it reaches 45 kHz, and when the tone is changed to 24.1 kHz at 3 ms, the loop starts to lower the cutoff frequency toward 24.1 kHz and reaches it at about 4.9 ms. Each transition takes less than 2 ms, and in lock, the simulated phase is about −45°. The tuning time depends on the number of steps and on the tone frequency, since one pulse is sent per tone period. Once fc has reached the tone frequency, each pulse moves it one step above or below fref, which causes the small ripple of one to two steps in Figure 7c. When the tone is removed at 6 ms, the setting is held. The same loop can also correct the drift of the held setting and the change of fc with temperature. For this, a timer can start the tuning mode at intervals shorter than the time in which the held state drifts by one step.
In the tuning mode, the signal is interrupted. With a single filter, this is acceptable if the tuning mode is entered only briefly, at start-up and then from time to time, since the drift is slow. If the signal must not be interrupted, the master–slave scheme of OTA-C filters [12,14] can be used. The master is a replica of the OTA core with its own load capacitor. Its input receives the tone, and its output goes only to the sample-and-hold circuit of the loop. The slave is the proposed filter itself, whose input receives the signal and whose output is the filter output. The gates of M5 in the two cores are connected to the same memory node, so both share one memory stage and one state w. The loop is run on the master from time to time, and the slave follows it, so the drift of the held setting is also corrected without interrupting the signal.
Temperature effects are examined in the hold mode at w = 0.6 V. The cutoff frequency is 30.3 kHz, 24.1 kHz and 20.0 kHz at −25 °C, 27 °C and 75 °C, respectively, which is a change of +25% to −17% with respect to 27 °C. This change can be removed by the loop of Figure 7.
Process variations and mismatch were examined in the same way, and the results are shown in Figure 8. The process corners were modeled by changing the threshold voltage and the mobility of all NMOS and PMOS transistors together by ±10% (TT, FF, SS, FS and SF corners; T, F and S stand for typical, fast and slow, the first letter for NMOS and the second for PMOS). As Figure 8a shows, the corners shift the tuning curve, as in any OTA-C filter, about as much as the temperature does. A ±5% change in the supply voltages changes the cutoff frequency by less than 0.8% at all corners and temperatures, so the spread of fc is set by the process and the temperature. For mismatch, a Monte Carlo analysis with 100 runs was performed, in which the threshold voltage and the mobility of each transistor were varied independently with a standard deviation of 1%. Figure 8b shows that the cutoff frequency changes only slightly, and Figure 8c shows that the up step varies more than the down step. The reason is that the up current is copied to the memory node by the mirror M8–M9, whereas the down current is Iconst itself. A change of Iconst would change both steps in the same proportion. The loop does not need equal steps, since it only sends pulses until the phase condition is met. Figure 8d shows the loop at all five corners and three temperatures. Before tuning, the cutoff frequency differs widely from case to case, and after tuning, it is within 1% of the tone frequency in all 15 cases.
Figure 8.
Process variations and mismatch (I0 = 20 µA, hold mode). (a) Cutoff frequency versus state at the five process corners at 27 °C. (b) Monte Carlo distribution of the cutoff frequency at w = 0.6 V (100 runs). (c) Monte Carlo distribution of the up step at w = 0.6 V; the distribution of the down step is too narrow to be shown. (d) Cutoff frequency at the five corners and three temperatures before tuning (open symbols) and after tuning with the loop of Figure 7 (filled symbols) for a 24.1 kHz tone. The dotted lines mark 24.1 kHz, and the colors in (d) denote the corners, as in (a).
The hold switches were also simulated at transistor level. S1 and S2 were realized by NMOS switches in series with the current source of the memory stage and with Rw, respectively, and their gates are driven from the two lines through a NOR gate and an inverter, so that they are closed only during a pulse. Since Cw is much larger than the parasitic capacitances of the switch transistors, turning these switches on and off at each pulse changes the state by about 1 µV, which is negligible compared with a step. The main non-ideality of the hold mode is the leakage of the memory node, mainly the subthreshold current of M9. Figure 9a shows the time in which this leakage changes the state by one step. At 27 °C, it is a few hundred milliseconds in the typical corner, and at 75 °C, it falls to about 20 ms in the worst corner, SF (slow NMOS and fast PMOS transistors). The held setting must therefore be refreshed more often at high temperature, which the loop of Figure 7 does automatically, or Cw must be made larger.
Figure 9.
Non-idealities of the hold mode and of the tuning loop. (a) Time in which the leakage of the memory node changes the state by one step at w = 0.6 V, with transistor-level switches. (b) Tuning from different initial states for a 35 kHz tone. (c) Locked cutoff frequency versus comparator offset for a 30 kHz tone. The dotted lines in (b,c) mark the tone frequency.
The tuning loop was also simulated under non-ideal conditions. As Figure 9b shows for a 35 kHz tone of 50 mV amplitude, the convergence time depends on the initial state, since one pulse is sent per tone period. It is longest when the state starts below the threshold of M5, because the first pulses only bring the state to the steep part of the tuning curve, but even then the loop locks within a few milliseconds. For tone frequencies from 20 kHz to 60 kHz, the loop locks within 2% of the tone frequency, and noise added to the tone mainly increases the ripple around the lock point. Figure 9c shows the cutoff frequency at which the loop locks for a 30 kHz tone. With an ideal comparator, the loop locks within one step of the tone, because the state changes only in steps. As in other automatic tuning loops, an offset of the comparator shifts the phase at which the decision changes and therefore the lock point. For the 50 mV tone, an offset of 1 mV shifts the lock point by about 3%, and this shift decreases as the tone amplitude increases. A comparator with the usual offset cancellation, or a larger tone, therefore keeps the lock point close to the tone. The performance characteristics of the proposed LPF are summarized in Table 4.
Table 4.
Performance characteristics of the proposed LPF.
5. Real-Time Emulation on a Microcontroller
To show that the pulse programming can be driven by an ordinary digital controller and observed with standard laboratory equipment, the proposed LPF was emulated in real time on a NUCLEO-L476RG development board (STMicroelectronics, Geneva, Switzerland) equipped with an STM32L476RG microcontroller. Its Cortex-M4F core runs at 80 MHz, and a timer derived from this clock sets the 2 µs step. The experimental setup is shown in Figure 10a. The board solves (7) every 2 µs, that is, once per pulse width, with gm(w) = 2πCLfc(w) taken from the fc(w) curve of Figure 4c, which is stored in the board as a table. Since fc changes only at the pulses, (7) is linear within each step and is solved by its exact solution, with the input taken as linear between two samples (first-order hold). The up and down pulses, 2 µs wide with a period of 4 µs, are generated in software in the same form as a digital controller would apply them to the memory port of a real memOTA, and at each pulse, the state is changed by the step obtained from the transistor-level simulation of Figure 6a. Here, the memOTA is represented by a look-up table (LUT) behavioral model extracted from the transistor-level simulation. This is done so that the screen can be compared directly with Figure 6a, because the idealized models (3) and (6) do not include all transistor-level effects, such as the triode region of M5. Unlike an offline plot, however, the board solves the differential Equation (7) in real time, 500,000 times per second, while the up and down pulses are applied one by one at their real timing, so that the output follows each pulse as it happens. All element values are the nominal values of Section 4 (I0 = 20 µA, Iconst = 2 µA, CL = 2 nF, Cw = 1 nF and ), and, as in Figure 6a, the state starts from w = 0.6 V, that is, from 24.1 kHz. Between the pulses, the state is held. A 30 kHz sine wave with an amplitude of 50 mV is applied to the input of the emulated circuit. The board is powered from a USB port, and its two on-chip DAC channels, which are used only for display, send fc and vout to a two-channel oscilloscope with 1× probes. These two signals are taken directly from the DAC pins PA4 (A2) and PA5 (D13). The whole computation runs on the board in single-precision floating-point arithmetic, and no host computer or post-processing is involved. Hence, the board reproduces the transistor-level behavior in real time, but it is not a measurement of a fabricated circuit.
Figure 10.
Real-time emulation of the pulse programming of Figure 6a. (a) Experimental setup with the microcontroller board (NUCLEO-L476RG), powered from a USB port, and a two-channel oscilloscope (GW Instek GDS-1022, Good Will Instrument Co., Ltd., New Taipei City, Taiwan). (b) Oscilloscope screen (0.5 ms/div, 1× probes). CH1 (yellow, DC coupling, 200 mV/div) shows fc with a scale of 40 mV/kHz, and CH2 (blue, AC coupling, 200 mV/div) shows vout multiplied by 10 for a 30 kHz input with an amplitude of 50 mV. The text labels were added to the photographs.
Since an oscilloscope displays voltages, the cutoff frequency is converted into a voltage. At every step, the board writes fc to the first DAC channel with a scale of 40 mV/kHz, so that 24.1 kHz appears as 0.96 V and 43 kHz as about 1.7 V. With 200 mV/div, one vertical division of CH1 therefore corresponds to 5 kHz. Since the DAC output is limited to 0–3.3 V and cannot be negative, the second DAC channel gives 1.0 V + 10 vout. The 1.0 V offset is removed by the AC coupling of CH2, the factor of 10 makes the 50 mV signal clearly visible, and one vertical division of CH2 corresponds to 20 mV of vout.
Figure 10b shows the oscilloscope screen, whose time axis is real time. The sequence of Figure 6a is repeated every 3 ms. The packet of 50 up pulses raises fc from 24.1 kHz to about 43 kHz, the setting stays constant in the hold mode, and the packet of 41 down pulses brings it back to 24.1 kHz. The two levels of CH1 read by the oscilloscope (Vmax and Vmin in Figure 10b) agree with these values within the DC accuracy of the oscilloscope. The output amplitude follows the setting. The gain of (8) is close to unity only well below fc. At 30 kHz, it is about 0.82 when fc is about 43 kHz because the input then lies inside the passband, and about 0.63 when fc is 24.1 kHz because the input then lies above the cutoff frequency. Hence, in Figure 10b, the output is larger where fc is high and smaller where fc is low. With the factor of 10, the input of 100 mV peak-to-peak appears as 1 V on CH2, so that the expected output is 0.82 V and 0.63 V peak-to-peak, and the oscilloscope reads 0.816 V for the larger one (Vpp of CH2). Thus, the screen confirms that the cutoff frequency is set in real time only by counting up and down pulses.
6. Discussion
Table 5 compares the proposed LPF with representative memristive filters and circuits. In [7,9,10,11], the memristor or its emulator is in the signal path, so its nonlinearity acts directly on the signal and its state can be changed by the signal. In [8], the memristor is used as a configuration element, but it is still a two-terminal device in the signal path, and the signal must be kept below its threshold. In the proposed LPF, the memory is placed in the bias of the active element, the signal path remains a plain OTA-C section, and the state is written only through the separate memory port. This is why, for states up to 0.6 V, the held memory adds no distortion, noise or power (Table 3 and Figure 5b). Moreover, the memory stage uses only one small current during a pulse, whereas an emulator needs extra active blocks with their own bias currents.
Table 5.
Comparison with representative memristive filters and circuits.
A conventional OTA-C filter can also be tuned by its bias current. At the same cutoff frequency and for states up to 0.6 V, both filters have the same linearity, noise and supply current (Table 3), so the memory does not save power. The difference is the control interface. To set the cutoff frequency from a digital controller, a conventional filter uses current-division networks, which act as a DAC, or switched arrays of transconductors or capacitors, and the control word must be kept as long as the setting is needed [16,17,18,19,20]. In the proposed LPF, the setting is written by pulses on two lines and stored in the memOTA itself, and the loop of Figure 7 tunes it.
Although the state alone covers more than two decades at a very small I0 (Figure 5a), a larger I0 is used. Near the threshold of M5, the current of M5 depends almost exponentially on w. Therefore, at a small I0, the cutoff frequency is very sensitive to w, as the steep part of Figure 5a shows. A single pulse, or the slow drift of the held setting, changes it by a large amount. A larger I0 forms a larger part of the tail current and makes this dependence weaker, so that each pulse is a fine step and the drift has only a small effect. Hence, I0 is a fixed bias that selects the band and keeps the stored setting robust, while all tuning inside the band is done through the memory.
The proposed LPF also has some limitations. First, the held setting must be corrected every few hundred milliseconds, which a DAC does not need; with the loop of Figure 7, this is done automatically. Second, the leakage of the memory node grows with temperature, so at high temperature the setting must be refreshed more often. In addition, the accuracy of the loop depends on the offset of its comparator. Third, states above 0.6 V give a higher THD than bias tuning. Fourth, the filter is single-ended, but since the memory stage only sets the tail current of the OTA core, the same approach can also be used with a fully differential core.
The results suggest a simple design procedure. CL and I0 are chosen using (9) to set the band. Then, Cw and tp are chosen using (10) to set the step per pulse, that is, the resolution of the tuning inside the band. Since CL and I0 set the band, the same memOTA can serve several frequency bands. For higher-order filters, where several elements must be chosen together, numerical optimization methods can be used, for example, evolutionary algorithms for the component values of analog active filters [23], many-objective algorithms for the sizing of OTAs [24] and genetic algorithms for two-dimensional finite impulse response (FIR) filters [25].
In the write mode, the memory stage adds or removes an almost constant charge per pulse, so it works like the charge pump of a phase-locked loop [26], and Cw holds the setting. Phase-locked loops are also used to tune conventional OTA-C filters [27]. In the proposed filter, however, the memory stage, Cw and Rw are part of the active element, and the state is written directly by logic pulses. Rw makes the memory volatile, which other applications of the memOTA may need. Here, it is used to reset the state to the bottom of the band, by keeping S2 closed with a reset signal added to its control (Figure 6b).
The large load capacitor follows from the low cutoff frequencies chosen in this work. By (9), CL is, for the same transconductance, inversely proportional to the cutoff frequency, so for a cutoff frequency a hundred times higher, it falls to tens of picofarads, and at low frequencies an external capacitor can also be used. Cw = 1 nF was chosen to obtain a long retention time in this proof of concept. In an on-chip design, a smaller Cw can be used, and the pulse width and the other parameters are then chosen accordingly by (10).
The proposed approach can be extended to higher-order filters. In an OTA-C filter of any order, the gates of M5 of all OTA cores can be connected to the same memory node, so that one memory stage, one pair of lines and one tuning loop set all cutoff frequencies together, as a common bias current does in conventional OTA-C filters. If the signal must not be interrupted, the master–slave scheme described in Section 4 can be used, with a single master core for the whole filter.
7. Conclusions
In this paper, a first-order OTA-C LPF with a single dual-port memOTA and one grounded capacitor has been proposed; to the best of our knowledge, this is the first filter application of the memOTA. The bias current is fixed and selects the band, and the cutoff frequency inside the band is set by the state stored in the memOTA, which is written by logic pulses on two lines. The memory stage is on only during a pulse, and the state is held between the pulses, so, for states up to 0.6 V, the filter has the same THD, noise and power as a memory-free OTA-C filter with the same cutoff frequency. A simple loop with a two-sample phase detector tunes the filter automatically to a reference tone and can also correct the slow drift of the held setting. Transistor-level simulations in 0.18 µm CMOS confirm these results; for example, with a bias current of 20 µA, the state sets the cutoff frequency from 16.5 kHz to 63.7 kHz, and each pulse changes it by less than 0.5 kHz. The held setting shifts with the process corners, temperature and mismatch, as in any OTA-C filter, and the loop brings it back to the reference tone at all simulated corners and temperatures. This work is a simulation-based proof of concept, and a real-time emulation on a microcontroller shows that the pulse programming works with an ordinary digital controller. Biquadratic filters, a transistor-level tuning loop with an offset-cancelled comparator, and a layout of the circuit with post-layout simulations and measurements of a fabricated chip are possible directions for future work.
Author Contributions
Conceptualization, S.M.; methodology, S.M.; software, S.A. and S.M.; investigation, S.A.; visualization, S.A.; supervision, S.M.; writing—original draft preparation, S.A.; writing—review and editing, S.M. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
The simulation data generated during the current study are available from the corresponding author upon reasonable request. The data are not publicly available because they are part of an ongoing thesis.
Acknowledgments
During the preparation of this work, the authors used Claude Opus 5.5 (Anthropic, San Francisco, CA, USA) for language editing and for writing and checking parts of the simulation code. All simulations were run by the authors. The authors reviewed and edited the code, results, and text, and take full responsibility for the content of the publication.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Chua, L.O. Memristor—The missing circuit element. IEEE Trans. Circuit Theory 1971, 18, 507–519. [Google Scholar] [CrossRef] [Scilit]
- Chua, L.O.; Kang, S.M. Memristive devices and systems. Proc. IEEE 1976, 64, 209–223. [Google Scholar] [CrossRef] [Scilit]
- Strukov, D.B.; Snider, G.S.; Stewart, D.R.; Williams, R.S. The missing memristor found. Nature 2008, 453, 80–83, Erratum in Nature 2009, 459, 1154. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Di Ventra, M.; Pershin, Y.V.; Chua, L.O. Circuit elements with memory: Memristors, memcapacitors, and meminductors. Proc. IEEE 2009, 97, 1717–1724. [Google Scholar] [CrossRef] [Scilit]
- Yang, J.J.; Strukov, D.B.; Stewart, D.R. Memristive devices for computing. Nat. Nanotechnol. 2013, 8, 13–24. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zidan, M.A.; Strachan, J.P.; Lu, W.D. The future of electronics based on memristive systems. Nat. Electron. 2018, 1, 22–29. [Google Scholar] [CrossRef] [Scilit]
- Driscoll, T.; Quinn, J.; Klein, S.; Kim, H.T.; Kim, B.J.; Pershin, Y.V.; Di Ventra, M.; Basov, D.N. Memristive adaptive filters. Appl. Phys. Lett. 2010, 97, 093502. [Google Scholar] [CrossRef] [Scilit]
- Pershin, Y.V.; Di Ventra, M. Practical approach to programmable analog circuits with memristors. IEEE Trans. Circuits Syst. I Regul. Pap. 2010, 57, 1857–1864. [Google Scholar] [CrossRef] [Scilit]
- Sözen, H.; Çam, U. First-order memristor-capacitor filter circuits employing HP memristor. J. Circuits Syst. Comput. 2014, 23, 1450116. [Google Scholar] [CrossRef] [Scilit]
- Yadav, N.; Rai, S.K.; Pandey, R. New grounded and floating memristor emulators using OTA and CDBA. Int. J. Circuit Theory Appl. 2020, 48, 1154–1179. [Google Scholar] [CrossRef] [Scilit]
- Ranjan, R.K.; Sharma, P.K.; Sagar; Raj, N.; Kumari, B.; Khateb, F. Memristor emulator circuit using multiple-output OTA and its experimental results. J. Circuits Syst. Comput. 2019, 28, 1950166. [Google Scholar] [CrossRef] [Scilit]
- Tsividis, Y.P. Integrated continuous-time filter design—An overview. IEEE J. Solid-State Circuits 1994, 29, 166–176. [Google Scholar] [CrossRef] [Scilit]
- Geiger, R.L.; Sánchez-Sinencio, E. Active filter design using operational transconductance amplifiers: A tutorial. IEEE Circuits Devices Mag. 1985, 1, 20–32. [Google Scholar] [CrossRef] [Scilit]
- Krummenacher, F.; Joehl, N. A 4-MHz CMOS continuous-time filter with on-chip automatic tuning. IEEE J. Solid-State Circuits 1988, 23, 750–758. [Google Scholar] [CrossRef] [Scilit]
- Choi, J.; Kweon, S.-J.; Jeon, H. Single-stage complementary metal–oxide–semiconductor operational transconductance amplifiers (OTAs): A design tutorial. Electronics 2023, 12, 3833. [Google Scholar] [CrossRef] [Scilit]
- Alzaher, H.A. A CMOS digitally programmable universal current-mode filter. IEEE Trans. Circuits Syst. II Express Briefs 2008, 55, 758–762. [Google Scholar] [CrossRef] [Scilit]
- Singh, D.; Afzal, N. Digitally programmable high-Q voltage mode universal filter. Radioengineering 2013, 22, 995–1006. [Google Scholar]
- Pavan, S.; Tsividis, Y.P.; Nagaraj, K. Widely programmable high-frequency continuous-time filters in digital CMOS technology. IEEE J. Solid-State Circuits 2000, 35, 503–511. [Google Scholar] [CrossRef] [Scilit]
- Chamla, D.; Kaiser, A.; Cathelin, A.; Belot, D. A Gm-C low-pass filter for zero-IF mobile applications with a very wide tuning range. IEEE J. Solid-State Circuits 2005, 40, 1443–1450. [Google Scholar] [CrossRef] [Scilit]
- Wang, Y.; Liu, J.; Yan, N.; Min, H. A low-noise widely tunable Gm-C filter with frequency calibration. J. Semicond. 2016, 37, 095002. [Google Scholar] [CrossRef] [Scilit]
- Graham, D.W.; Hasler, P.E.; Chawla, R.; Smith, P.D. A low-power programmable bandpass filter section for higher order filter applications. IEEE Trans. Circuits Syst. I Regul. Pap. 2007, 54, 1165–1176. [Google Scholar] [CrossRef] [Scilit]
- Minaei, S.; Sağbaş, M. Embedding memory into a fundamental analog building block: The memOTA concept. Integration 2026, 110, 102807. [Google Scholar] [CrossRef] [Scilit]
- Vural, R.A.; Yildirim, T.; Kadioglu, T.; Basargan, A. Performance evaluation of evolutionary algorithms for optimal filter design. IEEE Trans. Evol. Comput. 2012, 16, 135–147. [Google Scholar] [CrossRef] [Scilit]
- Valencia-Ponce, M.A.; Tlelo-Cuautle, E.; de la Fraga, L.G. On the sizing of CMOS operational amplifiers by applying many-objective optimization algorithms. Electronics 2021, 10, 3148. [Google Scholar] [CrossRef] [Scilit]
- Yeh, K.-H.; Tzeng, S.-T. Design of 2-D FIR narrow transition band filters by double transformations using GA approach. Multidimens. Syst. Signal Process. 2008, 19, 199–218. [Google Scholar] [CrossRef] [Scilit]
- Gardner, F.M. Charge-pump phase-lock loops. IEEE Trans. Commun. 1980, 28, 1849–1858. [Google Scholar] [CrossRef] [Scilit]
- Khorramabadi, H.; Gray, P.R. High-frequency CMOS continuous-time filters. IEEE J. Solid-State Circuits 1984, 19, 939–948. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.











