Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
RECONFIGURABLE DAC IMPLEMENTED BY MEMRISTOR BASED NEURAL NETWORK
Document Type and Number:
WIPO Patent Application WO/2019/012533
Kind Code:
A1
Abstract:
A digital to analog converter is constructed using a neural network layer. The converter has inputs for receiving parallel bits of a digital input signal and an output for outputting an analog signal which is based on the digital input. Connecting the input and the output is a neural network layer which is configured to convert the parallel bits into an output analog signal that is representative of the digital input signal. The neural network may be hardwired and the synapses may rely on memristors as programmable elements.

Inventors:
KVATINSKY SHAHAR (IL)
DANIAL LOAI (IL)
Application Number:
PCT/IL2018/050759
Publication Date:
January 17, 2019
Filing Date:
July 11, 2018
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
TECHNION RES & DEV FOUNDATION (IL)
International Classes:
G06N3/04; G06N3/063; G06N3/08; H03M1/66; H03M1/80
Domestic Patent References:
WO2016195637A12016-12-08
Foreign References:
US8954363B22015-02-10
US20160364643A12016-12-15
Other References:
LIGANG GAO ET AL.: "Digital-To-Analog and Analog-To Digital Conversion with Metal Oxide Memristors for Ultra-Low Power Computing", IEEE 2013 INTERNATIONAL SYMPOSIUM ON NANOSCALE ARCHITECTURES, pages 19 - 23
FABIEN ALIBART ET AL.: "Nanotechnology", vol. 23, 20 January 2012, INSTITUTE OF PHYSICS PUBLISHING, pages: 75201
MOHAMMED RAZEKH JAHROMI ET AL.: "Memristor Based Digital to Analog Converter and its Programming", 23RD IRANIAN CONFERENCE ON ELECTRICAL ENGINEERING, 2015, pages 1351 - 1356
See also references of EP 3652680A4
Attorney, Agent or Firm:
EHRLICH, Gal et al. (IL)
Download PDF:
Claims:
WHAT IS CLAIMED IS:

1. A digital to analog converter comprising:

inputs for receiving parallel bits of a digital input signal;

an output for outputting an analog signal; and

a neural network layer connecting said inputs with said output and configured to convert said parallel bits into an output analog signal representative of said digital input signal.

2. The device of claim 1, wherein the network comprises a plurality of adaptable synapses, each associated with a respective one of said inputs; and

said output being connected to each of said plurality of adaptable synapses to receive a combined synapse signal from which to provide said output analog signal.

3. The device of claim 2, wherein each synapse is set with a respective weight and said output analog signal is a weighted sum of said parallel bits of said digital input signal.

4. The device of claim 3, wherein each of said adaptable synapses comprises a memristor, said memristor being set with said respective weight.

5. The device of claim 4, wherein said adaptable synapses have respective enablement inputs and wherein said respective weights are configurable via feedback upon enabling via said enablement inputs at each respective memristor.

6. The device of claim 5, wherein respective weights at said adaptable synapses are configurable via said feedback to minimize a discrete analog error measured in said output.

7. The device of claim 6, wherein said error minimization is carried out using successive iterations of a stochastic gradient descent.

8. The device of claim 7, wherein said stochastic gradient descent comprises iterations of

ffci dE dE dA (k) ffcl

wherein Wi(k) are the respective weights for the sample, η is a learning rate and Vi(k) is a single empirical sample provided to the input at the iteration.

9. The device of claim 5, wherein said adaptable synapses respectively comprise a memristor connected to a common terminal of two MOSFET transistors of complementary type respectively, a synapse output comprising current flowing through the memristor.

10. The device of claim 9, wherein said two MOSFET transistors have respective gates and said enablement input comprises a connection to said respective gates.

11. The device of claim 6, wherein said error minimization is carried out using successive iterations of a binary weighted time-varying gradient descent learning rule.

12. The device of claim 11 wherein said rule is:

wherein η(ΐ) =

η if k <= K/2

η/2 if k/2<k<= 3K/4

Η/2Ν-ι if (2N-I _i).K/2N-1<k<=(2N-l).K/2N

Wi^ are the respective weights for the sample, and

Vi(k) is a single empirical sample provided to the input at the iteration.

13. A method for carrying out digital to analog conversion comprising:

receiving parallel bits of a digital input signal;

using a neural network layer to pass said parallel bits via respectively weighted synapses to an output, thereby to form an output analog signal representative of said digital input signal at said output; and

outputting said output analog signal.

14. The method of claim 13, comprising setting said respective weights at individual synapses.

15. The method of claim 13, wherein each of said weighted synapses comprises a memristor, the method comprising setting said memristors with said respective weight.

16. The method of claim 15, wherein said synapses have respective enablement inputs, the method comprising enabling said enablement inputs and writing in said respective weightings using feedback from an error measured in said output.

17. The method of claim 16, comprising adjusting said weightings to minimize said error.

18. The method of claim 17, wherein said minimizing said error is carried out using successive iterations of a stochastic gradient descent.

19. The method of claim 18, wherein said stochastic gradient descent comprises iterations of

(k-) dE dE dAik) (k

dW;

wherein Wi(k) are the respective weights for the sample, η is a learning rate and Vi(k) is a single empirical sample provided to the input at the iteration.

20. The method of claim 13, wherein said synapses respectively comprise a memristor connected to a common terminal of two MOSFET transistors of complementary type respectively, the method comprising using current flowing through said memristor as the synapse output.

21. The method of claim 15, wherein said minimizing said error is carried out using successive iterations of a binary weighted time-varying gradient descent learning rule.

22. The method of claim 21, wherein said rule is:

AW^ = -η(ΐ) (ΑΜ - t(fc))

wherein η(ί) =

η if k <= K/2

η/2 if k/2<k<= 3K/4

Η/2Ν-ι if (2N-I _i).K/2N-1<k<=(2N-l).K/2N Wi^ are the respective weights for the sample, and

Vi(k) is a single empirical sample provided to the input at the iteration.

Description:
REC ONFIGURAB LE DAC IMPLEMENTED BY MEMRISTOR BASED NEURAL

NETWORK

FIELD AND BACKGROUND OF THE INVENTION

The present invention, in some embodiments thereof, relates to a reconfigurable digital to analog converter (DAC).

The digital to analog converter (DAC) is a ubiquitous component in data-driven acquisition systems and mixed-signal circuitry. Easily processed digital information in digital systems, is routinely converted to real-world analog signals such as temperature, pressure, sound, and images. In modern VLSI circuit design, power consumption awareness and reliable computation constraints have rigorously paved the way to hybrid analog-digital design methodologies. A key role of an efficient hybrid framework is a fast, robust and ultra-low-energy DAC. However, achieving both high resolution and speed is challenging due to the effect of timing errors, jitters and parasitic capacitance.

Furthermore, the real limiter of such accurate data converters is device mismatches, which are due to manufacturing process variations over advanced continuous scaling. These imperfections are poorly handled by techniques in ways that have tremendous overhead. Therefore, the trade-off between performance and reliability is considered as a major bottleneck within data converter design, and requiring special

purpose design and sophisticated techniques for specific applications.

A. Binary-Weighted DAC

Conceptually, the simplest type of DAC uses a binary weighted style architecture, where N (number of bits) binary- weighted distributed elements (current sources, resistors, or capacitors) are combined to provide a discrete analog output with finite resolution. Binary- weighted DAC is based on a very simple and intuitive concept, and utilizes the fundamental rule-of-thumb binary to decimal basis transformation. The direct conversion feature may be suitable for high-speed applications using a minimal number of conventional components with small die area. Such a device employs the characteristics of the inverting summer operational amplifier circuit and negative feedback resistor (KCL and virtual ground). In this type of DAC, the output voltage is the inverted sum of all the input voltages as illustrated in Fig. 1, which shows a conventional binary weighted resistor-based DAC.

Digital inputs follow full-scale voltages, this means that T is equivalent to Vdd, and similarly '0' is equivalent to 0 V. The LSB input is connected to the highest resistance value, which resistance is equal to the feedback resistance R. Accordingly, the MSB input is connected to the lowest resistance value R/2 N~l , and the intermediate bits are determined according to the corresponding binary- weights as appropriate. The resulting discrete voltage of the amplifier output is given by:

Vout = -^- i *∑^ 2\ V t (1)

where the minus sign is a result of the inverting operational amplifier, and V t is the digital voltage input of a bit with index i, after it has been attenuated by (2 N —1), which is a normalization factor that fits the full-scale voltage. The output voltage is proportional to the binary value of the word

Despite the fact that the binary- weighted DAC concept and implementation are very simple, it suffers from critical practical shortcomings. The spread components which define the ratio between the MSB and LSB coefficients (dynamic range) are very large and grow exponentially with the number of resolution bits. Thus, accurate matching becomes difficult, and a huge asymmetric area is overwhelmed with power starved resistors, e.g., for N bits the number of resistors may equal 2 N~l . Furthermore, the maintenance of accurate resistances over a wide range of values is problematic. In advanced submicron CMOS fabrication technologies, it is challenging to manufacture resistors over a wide resistance range that preserve an accurate ratio especially in the presence of temperature variations. Furthermore, process imperfections degrade the conversion precision and increase the vulnerability to mismatch errors.

In conclusion, practical limitations and scalability drawbacks are pushing this type of DAC out of the applications' band of interest, meaning out of both high-speed and high precision applications. Tremendous efforts have been invested to develop new techniques to eliminate such mismatch errors, such as self-calibration and current steering. Furthermore, alternative architectures have been observed e.g., fully/partially segmented DACs, to achieve better accuracy and robustness.

B. Memristors

The memristor was originally proposed as the missing fourth fundamental passive circuit element. Memristors are two-terminal analog passive devices with varying resistance, where their resistance changes according to the time integral of the current through the device, or alternatively, the integrated voltage upon the device. Memristors are non-volatile by definition, and today, most resistive non-volatile memory technologies can be considered as memristors, and are usually fabricated in a BEOL CMOS process.

Furthermore, the memristor' s relatively small size enables the integration of memory with computing elements and allows a compact, dense and efficient parallel architecture for machine learning algorithms and artificial neural networks. Thus, it is very attractive to integrate memristors as weighted elements in binary- weighted DAC to achieve high energy-efficiency and scalability, thanks to its activation-dependent dynamics, which renders it promising for registering and updating of synaptic weights. In previous work of the present inventors it was suggested to use the following "small signal" analysis model of memristor which would describe the gradual adaptation process of synaptic weights

(t) = ((t))(t) (2)

s(t) = v(t) (3)

where s is a general state variable that evolves according to voltage - equation (3), and equation (2) is Ohm's law with variable conductance.

Thus, the memristor enables an efficient implementation of trainable neural networks in hardware. To accurately model the memristive non-linear behaviors in the present embodiments design and evaluation, the VTEAM model based on the above is used herein.

C. Online Gradient Descent Learning Algorithm

The field of machine learning (ML) is dedicated to the construction and study of systems that can be learned from data, which evolve a cognitive ability to make crucial decisions intelligently based on a training phase. Artificial Neural Networks (ANNs) and neuromorphic computing are well-established infrastructures that apply brain-inspired learning rules to interpolate novel computational abilities beyond the conventional paradigm, e.g., adaptation and self-repair. In previous work of the present inventors, a simple neural network topology (perceptron), composed from a single layer of binary inputs, synapses Wi (decimal weights) and a single neuron was analyzed. The neuron is considered as the de-facto element of neuro-processing and performs the following dot product of inputs and weights

where A is an analog result of the weighted sum of the digital inputs.

SUMMARY OF THE INVENTION

An equivalence between the above equations (1) and (4) above may be derived. Thus, equation (1) of the binary- weighted DAC could be seen as a special case of single-layer NN, and equation (4) could be adjusted using ANNs learning methods to behave as a binary-weighted DAC.

The present embodiments may thus provide a digital to analog converter made from at least one neural network layer. The layer may be hardwired and may use a memristor as the programmable element to allow the network to learn, and a feedback-based learning process is provided.

According to an aspect of some embodiments of the present invention there is provided a digital to analog converter comprising:

inputs for receiving parallel bits of a digital input signal;

an output for outputting an analog signal; and

a neural network layer connecting the inputs with the output and configured to convert the parallel bits into an output analog signal representative of the digital input signal.

In an embodiment, the network comprises a plurality of adaptable synapses, each associated with a respective one of the inputs; and the output is connected to each of the plurality of adaptable synapses to receive a combined synapse signal from which to provide the output analog signal.

In an embodiment, each synapse is set with a respective weight and the output analog signal is a weighted sum of the parallel bits of the digital input signal.

In an embodiment, each of the adaptable synapses comprises a memristor, the memristor being set with the respective weight.

In an embodiment, the synapses have respective enablement inputs and the respective weightings are configurable via feedback upon enabling via the enablement inputs at each respective memristor.

In an embodiment, the adjustable weightings are configurable via the feedback to minimize an error measured in the discrete analog output.

In an embodiment, the error minimization is carried out using successive iterations of a stochastic gradient descent.

In an embodiment, the stochastic gradient descent comprises iterations of

in which Wi (k) are the respective weights for the sample, η is a learning rate and Vi (k) is a single empirical sample provided to the input at the iteration.

In an embodiment, the synapses respectively comprise a memristor connected to a common terminal of two MOSFET transistors of complementary type respectively, a synapse output being the current flowing through the memristor.

In an embodiment, the two MOSFET transistors have respective gates and the enablement input comprises a connection to the respective gates.

In embodiments, the error minimization is carried out using successive iterations of a binary weighted time-varying gradient descent learning rule. The rule may thus be wherein 7 (t) =

η if k <= K/2

η/2 if k/2<k<= 3K/4

Η/2 Ν-ι if (2 N-I _i). K 2 N - 1 <k<=(2 N -l).K 2 N

Wi^ are the respective weights for the sample, and

Vi (k) is a single empirical sample provided to the input at the iteration.

According to a second aspect of the present invention there is provided a method for carrying out digital to analog conversion comprising:

receiving parallel bits of a digital input signal;

using a neural network layer to pass the parallel bits via respectively weighted synapses to an output, thereby to form an output analog signal representative of the digital input signal at the output; and

outputting the output analog signal.

The method may comprise setting the respective weights at individual synapses.

In embodiments, each of the adaptable synapses comprises a memristor, the method comprising setting the memristors with the respective weight.

In embodiments, the synapses have respective enablement inputs, the method comprising enabling the enablement inputs and writing in the respective weightings using feedback from an error measured in the output.

The synapses may respectively comprise a memristor connected to a common terminal of two MOSFET transistors of complementary type respectively, and the method may in such a case comprise using current flowing through the memristor as the synapse output.

Unless otherwise defined, all technical and/or scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the invention pertains. Although methods and materials similar or equivalent to those described herein can be used in the practice or testing of embodiments of the invention, exemplary methods and/or materials are described below. In case of conflict, the patent specification, including definitions, will control. In addition, the materials, methods, and examples are illustrative only and are not intended to be necessarily limiting. BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWING(S)

Some embodiments of the invention are herein described, by way of example only, with reference to the accompanying drawings. With specific reference now to the drawings in detail, it is stressed that the particulars shown are by way of example and for purposes of illustrative discussion of embodiments of the invention. In this regard, the description taken with the drawings makes apparent to those skilled in the art how embodiments of the invention may be practiced.

In the drawings:

Fig. 1 is a simplified diagram illustrating a prior art digital analog converter DAC;

Fig. 2 is a simplified diagram illustrating a DAC constructed using a neural network layer according to an embodiment of the present invention;

Fig. 3 A is a simplified diagram of the embodiment of Fig. 2 in greater detail;

Fig. 3B is a simplified diagram of a synapse of neural network constructed using a memristor according to an embodiment of the present invention;

Fig. 3C is a simplified diagram showing a feedback loop for using learning to update weightings at the synapses according to an embodiment of the present invention;

Fig. 3D is a simplified diagram showing a feedback circuit for a gradient descent learning algorithm;

Fig. 3E is a simplified schematic diagram of a PWM circuit that generates fixed amplitude pulses with a time width proportional to the subtraction product between the real and teaching signals.

Figs. 4(a) to 4(e) are graphs showing exemplary evaluations of the present embodiments;

Fig. 5 is a simplified schematic flow chart showing digital to analog conversion using embodiments of the present invention; and

Fig. 6 is a simplified diagram showing an iteration of the learning process for updating the weightings at the synapses according to an embodiment of the present invention.

Fig. 7A shows a binary-weighted synaptic adaptation during the training phase for the 1.8V full-scale output voltage range, according to embodiments of the present invention;

Fig. 7B shows an exemplary comparison between the teaching dataset and the actual neural discrete analog DAC output at three different time stamps during the training, according to embodiments of the present invention;

Fig. 7C shows an exemplary differential, according to embodiments of the present invention;

Fig. 7D shows exemplary integral non-linearities of the DAC at three different time stamps in response to the DC input voltage ramp, according to embodiments of the present invention; Figs. 8 A - 8D show exemplary comparisons between regular gradient descent (GD) and the binary-weighted time-varying gradient descent (BW TV GD) algorithms of the present embodiments in the presence of noise and process variations, in FIG. 8A the GD fails to converge the synapses, whereas the BW TV GD succeeds and outperforms the GD, Fig 8B shows smaller MSE, FIG 8C shows better DNL, and FIG 8D shows better INL;

Fig. 9A shows exemplary statistical simulations of randomly generated variations and noise sources and a probability distribution of typical and extreme cases in terms of the effective number of resistive levels, according to embodiments of the present invention;

Fig. 9B shows the impact of exemplary variations in the number of effective levels on the number of training samples in each case, according to embodiments of the present invention;

Fig. 9C shows ENOB as a function of the number of stable resistive levels, where the minimum is five uniformly distributed binary-weighted levels, according to embodiments of the present invention;

Fig. 9D shows an example of how endurance degradation along device lifetime, in terms of full switching cycles, logarithmically affect AR in each training sample and are compensated for by the increasing training time for the whole epoch, according to embodiments of the present invention;

Fig. 10A shows an exemplary high impedance state ZOFF as a function of sampling frequency; dashed lines indicate the maximum possible frequency bandwidth for a half- to full- scale voltage range with a high-to-low-impedance ratio of 32 and 16, respectively, according to embodiments of the present invention;

Fig. 10B shows an exemplary DAC reconfiguration for a 10MSPS sampling frequency, by continuous synaptic update. The frequency-dependent variations were captured by the synaptic weights, according to embodiments of the present invention;

Fig. 11 shows an eight-bit reconfigurable DAC composed from two four-bit DACs by using a two-layer neural network according to embodiments of the present invention; and

Fig. 12 shows a simplified flow of the online binary-weighted time-varying gradient descent training algorithm, which updates the weights according to the error function, according to embodiments of the present invention. DESCRIPTION OF SPECIFIC EMBODIMENTS OF THE INVENTION

The present invention, in some embodiments thereof, relates to a reconfigurable digital to analog converter (DAC) and, more particularly, but not exclusively, to such a DAC that uses a trainable integrated circuit and that is implemented using a memristor based neural network. In an increasingly data-diverse world, where reciprocal data are interactively transferred at high data rates, there is an ever-growing demand for high-precision data converters, and the present embodiments may provide a digital to analog converter that is constructed using a neural network layer, based on the above-discussed equivalence between a single layer neural network and a DAC. The convertor has inputs for receiving parallel bits of a digital input signal and an output for outputting an analog signal which is based on the digital input. Connecting the input and the output is a neural network layer which is configured to convert the parallel bits into an output analog signal that is representative of said digital input signal. The neural network may be hardwired and the synapses may rely on memristors as programmable elements.

That is to say, the present embodiments investigate digital-to-analog converter (DAC) configuration and calibration using an artificial intelligent neural network technique. The present embodiments are demonstrated on an adaptive and self-calibrated binary-weighted DAC that can be configured on-chip in real-time. The configuration uses an online supervised machine learning algorithm called binary- weighted time-varying gradient descent to fit multiple voltage ranges by iterative synaptic adjustments, while providing inherent calibration. The present embodiments provide an exemplary 4-bit DAC implementation using a memristor-based neural network. Theoretical analysis, as well as simulation results, show the efficiency of the training algorithm in reconfiguration and self-calibration, to significantly improve the DAC precision in terms of INL and DNL.

The present embodiments investigate approaches for digital to analog conversion by artificial intelligence-based techniques. An approach to design a generic high-precision, high-speed and energy-efficient DAC using Artificial Neural Networks (ANNs) and neuromorphic computing is provided herein.

Encouraged by the immense computational power of neuromorphic techniques, emergent collective characteristics may be interpolated into DAC design. Parallelism, simplicity, fault tolerance and energy-efficiency are just a few examples of such attractive properties beyond conventional DACs. Besides the quantitative equivalence, neuromorphic computing is a platform for mixed-signals circuits that inherently combines conversion procedures, abstracting biophysical dynamics in analog and digital domains.

The trainable, adaptive and self-repairing capabilities that follow machine learning algorithms may be considered as intelligent features suitable for the next generation DACs. By utilizing the massive amount of correlated data, it is possible to take future predictions and make online cognitive decisions for DAC configuration and calibration. In an ANN solution of the present embodiments, memristor technology may be used to mimic synapses in the realization of artificial neural systems. The recent advent of nanoscale memristive integrated technologies for ANNs potentially can offer brain-like density for their size, analog storage properties, low energy, and non-volatility. The present embodiments may leverage the use of memristors as synapses in neuromorphic circuit-based DAC to achieve high precision, low power consumption and configurable neuro-inspired architecture.

The 4-bit binary-weighted DAC of one of the exemplary embodiments consists of an adaptive single-layer neural network, based on hybrid CMOS memristor mixed- signal circuit design. The conductance of the memristors may be adjusted on chip by a gradient descent training algorithm as explained herein. The algorithm may use different full scale analog training signals to flexibly adjust the memristors' conductance online for configurable DAC. The proposed DAC may be capable of self-calibrating device mismatches and process variations which alleviate non-linear distortions, improve the

effective number of bits (ENOB) and achieve almost ideal static figures of merit (INL/DNL ~ 0 LSB).

The method may be used over different full-scale voltages, sampling frequencies, and numbers of bits.

For purposes of better understanding some embodiments of the present invention, as illustrated in Figs. 2 - 6 of the drawings, reference is first made to the construction and operation of a binary weighted resistor based DAC as illustrated in Fig. 1. N inputs Vo - VN-I are provided via different resistances, R, R/2, R/4, R/8... R/2 N 1 , so that the total input provided to the negative input 10 of Op Amp 12 is a weighted sum of the N inputs. A feedback resistor R 14 is connected between the output 16 and the negative input 10 and the positive input 18 is grounded.

Fig. 1 illustrates the simplest type of DAC, which uses a binary weighted style architecture, where N (number of bits) binary-weighted distributed elements, here resistors, are combined to provide a discrete analog output with finite resolution. As explained in the background, the binary- weighted DAC is based on a very simple and intuitive concept, and utilizes the fundamental rule- of-thumb binary to decimal basis transformation. The DAC employs the characteristics of the inverting summer operational amplifier circuit and negative feedback resistor. In this type of DAC, the output voltage is the inverted sum of all the input voltages.

Digital inputs follow full-scale binary voltages, so that T is equivalent to Vdd, and similarly '0' is equivalent to 0 V. The LSB input is connected to the highest resistance value equals to the feedback resistance R. Accordingly, the MSB input is connected to the lowest resistance value R/2 N~l , and the intermediate bits are determined according to their respective intermediate binary weights. The resulting discrete voltage of the amplifier output is as given in equation (1) above.

Before explaining at least one embodiment of the invention in detail, it is to be understood that the invention is not necessarily limited in its application to the details of construction and the arrangement of the components and/or methods set forth in the following description and/or illustrated in the drawings and/or the Examples. The invention is capable of other embodiments or of being practiced or carried out in various ways.

Reference is now made to Fig. 2 which illustrates a digital to analog converter 19 comprising inputs BO - B3 for receiving parallel bits of a digital input signal. The digital input is generally (but not necessarily) binary, so each input is a power of two of the previous input and will typically have half the frequency if say the signal is simply counting up or down. An output 20 produces the analog signal, which may be a discrete analog signal such as will be discussed in greater detail below.

The inputs and the output are connected via a neural network 24 layer and the network converts the parallel bits into an output analog signal representative of the digital input signal as a whole. The neural network is programmable via learning, as will be discussed in greater detail below, so that weights applied to the various inputs can be altered. Alterations may be necessary for example when changes are made to the characteristics of the input signal. Thus the frequency of the input signal may change due to programming changes or changes of use of a device, or even due to the device being placed in an environment with a different temperature. Likewise the same DAC component may be placed in different systems with different specifications and the different specifications may be compensated for by carrying out a learning process on the neural network.

Reference is now made to Fig. 3 A, which shows the DAC component 19 of Fig. 2 in greater detail. As before, inputs BO - B3 receive parallel bits of a digital input signal. The digital input is generally (but not necessarily) binary, so each input is a power of two of the previous input and will typically have half the frequency if say the signal is simply counting up or down. Output 20 produces the analog signal, which may be a discrete analog signal such as signal 22 shown.

The inputs and the output are connected via neural network 24 layer and the network converts the parallel bits into an output analog signal representative of the digital input signal as a whole. The neural network takes on the task of the bank of resistors in Fig. 1 to take into account that more significant bits contribute more to the overall value and less significant bits contribute less. In order to deal with the significance of each bit, a weighting is applied, but in this case the weightings are contained in synapses 26.0...26.3. Each synapse is modifiable, that is it can be adapted so that the weighting can be changed. The weightings are changed in a write cycle of a learning process, as will be discussed below, and each synapse 26.0...26.3 is connected to one of the inputs, for which it is set with the appropriate weighting. The output 20 is connected to all of the synapses and op amp 28 integrates the signals received from the different synapses to generate a combined synapse signal from which to provide the output analog signal 22.

Reference is now made to Fig. 3B which shows an exemplary circuit 30 for a synapse according to the present embodiments. Each adaptable synapse comprises a memristor 32, which is the component that contains the weighting and is adjusted in the write cycle. In use, the memristor 32 is set with a weight that is obtained via learning for the particular input to which it is connected. The memristor 32 is for example connected to the common drain of two complementary MOSFETs 34 and 36, being NMOS and PMOS respectively. The sources of the MOSFETs provide positive and negative inputs for the signal and the common gate of the two MOSFETs provides an enable input 38 which allows writing to the memristor when set.

Thus the synapses have enablement inputs, and weightings can be configured using the feedback when the enable inputs are set, as will be explained below. When the enable inputs are not set then the feedback, even if available, has no effect.

The adjustable weightings are set via the feedback process to minimize an error measured in the discrete analog output based on a known input. That is to say a known training input is provided, so that the expected output is known. The actual output is measured and the weightings are adjusted until the error is minimized or eliminated. In an embodiment the error minimization is carried out using successive iterations of a stochastic gradient descent, and an example of a stochastic gradient descent uses iterations of

where Wi (k) are the respective weights for the sample, η is a learning rate and Vi (k) is a single empirical sample of the known training input and is provided to the input at the iteration.

The embodiments are now considered in greater detail. To the best of the authors' knowledge, a neural based DAC is not known. The present embodiments may exploit the intelligence properties of the neural network to achieve adaptive DAC as trained online by a machine learning (ML) algorithm such as that provided herein. For example, consider the following supervised learning task. Assume a learning system that operates on K discrete trials, with N digital inputs actual discrete output according to (4) and desired labeled output (teaching) (k Wi is tuned to minimize the mean square error of the DAC through the training phase

E = T∑Li0 (fc) - t^) 2 (5) A reasonable iterative update rule for minimizing objective (5) (i.e., updating W where initially W is arbitrarily chosen) is the following online stochastic gradient descent iteration

1 ' dwr> 1 9A k awi / J 1

where η is the learning rate, a small positive constant, and for each iteration k, a single empirical sample V(k) is chosen randomly and presented at the input of the system. This

learning algorithm is called Adaline or LMS, and is used in adaptive signal processing and control systems.

It is noted that the update rule (6) is local, i.e., the change in synaptic weight Wi depends only on the related components, e.g., actual output A, desired output t, and digital input Vi. This local update, which ubiquitously appears in neural network training and machine learning algorithms, enables a massively parallel acceleration. The present embodiments may slightly modify the update rule (6) to guarantee a global minimum and fine tune the weights proportionally to their degrees of significance utilizing locality. Thus, for example, if the MSB has converged to its desired weight while the LSB is still adjusting iteratively, then we may avoid disturbing the MSB weight.

The LSB may in one embodiment represent the precise quantum and may follow the longest resolution match, termed the "binary-weighted time varying gradient descent" learning rule as follows:

AW^ = -η(ί)(Α - t∞) v k (7) where η (t) is a time varying learning rate, decreasing in a binary- weighted manner along with the training time. The expression for η(ΐ) is f η if k≤K/2

v (t) = I 17/2 if K/2 < k≤ 3K/4

Ι η/ "- 1 if (2" "1 - 1) K/2 N~1 < k≤ (2 N - 1) K /2 N

In an alternative embodiment, the LSB, which represents the most precise quantum, requires the longest resolution match and the lengthiest training time to converge. While the MSB can quickly achieve a stable value, the LSB may still present oscillations, thus continuously changing the collective error function in (5). Concurrently, the MSB will be disturbed and swing back and forth recursively in a deadlock around a fixed point. This problem is aggravated in the presence of noise and variations, and ameliorated by using smaller learning rates. Hence, we propose a slightly modified update rule to guarantee a global minimum of the error, and to fine-tune the weights proportionally to their significance degree. We call the modified rule the binary-weighted time- varying gradient descent learning rule, expressed as

where η (t) is a time-varying learning rate, decreasing in a binary-weighted manner along with the training time, as shown in Fig. 2. The expression for η (t) is

f η if k≤K/2

η ( = I 17/2 if K/2 < k≤ 3K/4 η/2 Ν~1 if (2* "1 - 1) K/2 N~1 < k≤ (2 N - 1) K/2 N

The learning rule of equation 7.1 utilizes the convergence time acceleration and the decaying learning rate to reduce bit fluctuations around a fixed point. Hereinbelow, we show that this learning rule is better than (6) in terms of training time duration, accuracy, and robustness to learning rate non-uniformity.

The present embodiments may leverage the conceptual simplicity, parallelism level, and minimum die size of the binary- weighted DAC of Fig. 1 by implementing online gradient descent in hardware. Such an implementation may achieve a scalable, accurate and adaptive DAC that may be used for high-speed and high-precision applications. In Fig. 3A a 4-bit DAC architecture is shown, based on memristive weights and a feedback circuit to regulate the values of the weights according to equation (7).

The supervised learning process is possible by interchangeable synchronous read and write cycles, thus utilizing the same execution path for both read and write operations in-situ. Reading is the intended conversion phase, whose final result may be sampled at the end of the reading cycle after transient effects are mitigated, and latched by a negative edge triggered latch for the whole writing cycle. The writing cycle may activate the feedback circuit that implements the learning algorithm.

Artificial Synapse

The present embodiments may provide a synapse circuit which is composed of a single memristor connected to a shared terminal having two MOSFET transistors (p-type and n-type), in like manner to pass transmission gates, as discussed above in respect of Fig. 3B. The output of the synapse is the current flowing through the memristor. The synapse receives three voltage input signals: u and u = -u are connected, respectively, to the source of one of the two MOSFETs, and an enable signal e is connected to the common gate of both transistors. The enable signal may have a zero value so that neither transistor is conducting, or VDD so that only the NMOS is conducting, or -VDD so that only the PMOS is conducting. Thus, the magnitude of the input signal u should be less than the minimum conductance threshold

\u\ < min (V Tn > \V Tp \) (8)

The writing voltage V w that modifies the synaptic weight based on the enable signal may be inserted as an input u (and u ) via the common source terminal of both the transistors, and using the VTEAM model referred to above, may be bigger than the threshold voltage for memristive switching.

The read voltage Vr is very small relatively to the memristor switching threshold, and accumulative read does not disturb the memristance value over multiple read iterations. In the reading cycle only the NMOS of the two complementary transistors conducts and e =Vdd, with negative read voltage to eliminate the inverting Opamp input.

An advantage of the low voltages possible with the above arrangement is the low power consumption, so that the low subthreshold current leakage which threatens the memristance accuracy is attenuated. That is to say Vw and Vr are attenuated voltages of the digital DAC inputs which may fit the design constraints provided in equations (9) and (10). A shock absorption capacitor may be added to eliminate spike fluctuations derived from either subthreshold leakage or high frequency switching. In embodiments, the memristor right terminal is connected to the virtual ground of the Op Amp.

The assumption of ohmic operation is valid only if the conductance of the memristor is much smaller than the effective conductance of the transistor, as follows,

Rmem(s(t)) »— (12)

K ( V DD - 2max(V Tn , V Tp )) where K is a technology dependent constant that describes the transistor conduction strength, V DD is the maximum power supply, s is the memristor internal state variable distributed between [0- 1], and R MEM refers to the memristor resistance as a function of the state variable s. The latter relationship is chosen to be linear.

(t) = s(t) 0 - R 0N ) + RON- (13)

As a result, the memristor resistance level that could be achieved during training is lower bounded. Otherwise, the applied voltage over the memristor during the write cycle will not be sufficient to stimulate it. This constraint is achieved by the following condition: TABLE 2

Circuit Variations & Noise

Type NOMINAL VALUE Variance

Device mismatch

W = 2um

Resistor ±0.5%um

R = 50/2/

W = 0.15um ±l%um

Capacitor

C A = 0.68/F/um 2

W/L ± 10%

NMOS/PMOS

V T ±7%V

Comparator ^offset ±5mV

Von/off ±10%V

Memristor Kon/off +10%mm/s

RON ±10%β

Noise sources

Thermal noise 2kTg^ 10- 16 K 2 s

IR drop V„ ±10%V

Pulse- width

modulation noise

Opamp input noise flicker noise 1//

Slew rate 2nfV FS 1.13V /ns

ROFF

Memristor OFF impedance R O FF J -znf) 2

I T/ I ^merri'min

I V w I i . ( , . I V th,mem | ■ 14 J

K-(V DD -2V7-) K mem.min S mlrl

The voltage division creates non-uniformity in the writing voltage of each cycle and may explicitly affect the learning rate. A shock absorption capacitor may be added to eliminate fluctuation spikes derived from either subthreshold leakage or high frequency switching. Its value is bounded by the sampling frequency of the DAC,

1 1

77777 λτ \ ^shock.max— 77 (l^)

Artificial Neuron

The neuron may be implemented by an operational amplifier with a negative feedback resistor R . The neuron may receive currents from N memristors and may sum them simultaneously, as follows:

where V t is a read voltage via a memristor with index i, which represents the digital input value of the z ' -th bit. In the reading cycle, only the NMOS transistor is conducting since e = V dd , with a negative read voltage to eliminate the inverting sign of the operational amplifier. The resolution of the DAC, which equals the minimal quantum, is defined by r = V FS /2 N . The maximum analog output is achieved when the digital input Ί 1...11 ' is inserted, and is equal to A max = (2 N — 1)V FS /2 N . Therefore, the read voltage equals V r = r = V FS /2 N , and it should obey the constraints in (11). Based on this read voltage, bounds on the number of resolution bits that the DAC could hold were formalized. From (11),

where the maximal number of resolution bits is bounded by the binary- weighted levels

1 . Because of the serial transistor

R ON

resistance, however, it is undesirable to use surrounding levels. Doing so decreases the number of bits by log 2 , which is approximated to be zero in our case because R 0N »

RONK(V DD -2 V T )

1/K(V DD — 2V T ) . Additionally, in the case of smaller full-scale voltage, some levels should be reserved. For example, if the full-scale voltage is half of the maximum power supply V FS = V DD /2, then the highest binary-weighted level should be reserved. Doing so will decrease the effective number of bits by maximum number of bits that the proposed DAC could

convert is up to

In this case, if the minimal full-scale voltage is V FS = V DD /2, then the number of bits that could be converted by a DAC with the device parameters listed in Table I is at most four.

In the same context, the feedback resistor is upper-bounded by the minimal full- scale voltage and the highest resistance of the memristor,

R OFF V FS

R F ≤ (19)

VDD

when considering bi-directional variations of the training above and below the fixed resistance level, respectively. These variations are evaluated as +10% of the nominal value.

Feedback Circuit

Reference is now made to Fig. 3C, which illustrates a feedback circuit 40. The feedback circuit 40 is the component in the binary weighted gradient descent algorithm execution that may precisely regulate the synaptic adaptation procedure. The present embodiments may synthesize hardware and implement subtraction and multiplication operations.

The subtraction or error discrete voltage product may be pulse modulated by pulse width modulator (PWM) 42 with time width linearly proportional to the error and + Vdd, 0 V pulse levels. The PWM product may be transmitted via feedback to the synapse 26.0...26.3 as an enable signal. Therefore multiplication may be invoked as an AND logic gate and controlled by the modulated enable signal, while the attenuated digital input is connected via the source connection of the synapse. The attenuation is carried out to stand in for four different operational voltages that generate a binary-weighted update ratio as specified in Table 1. The learning rate is a key factor of the adaptation performance and depends on the selected circuit's parameters listed in Table 1. Multiplexer 44 with clock 46 sets or resets the enable input 38.

Fig. 3D shows a feedback circuit for the gradient descent learning algorithm, and Fig. 3E shows a schematic of a PWM circuit that generates fixed amplitude pulses with a time width proportional to the subtraction product between the real and teaching signals. RESULTS & EVALUATION

The 4-bit DAC is implemented, synthesized in a SPICE simulation using CMOS 0.18um process and the VTEAM memristor model mentioned above and tested. The circuit parameters, architectural specifications and design constraints are listed in Table 1. First, the basic deterministic functionality of a 4-bit DAC is demonstrated while being trained by an online binary-weighted time varying gradient descent algorithm. Two sawtooth training datasets with different voltage ranges are given to show how the network converges from a random initial state to a steady state once the error is smaller than a sufficient threshold.

The DAC may be evaluated in terms of accuracy and training speed as illustrated in Fig. 4. Fig 4(a) shows binary synaptic weighted adaptation during the training phase for a 1.8V full-scale output voltage range. Fig 4(b) is a comparison between a teaching dataset 50 and the actual "neural" discrete analog DAC output 52 over 3 different time stamps 54, 56 and 58 during the training process, and an identical staircase is achieved only in the last cycle 58, after the training is complete.

TABLE I

CIRCUIT PARAMETERS

Type Parameter Value Type Parameter Value

Device parameters Desij *n Parameters

Power supply v DD 1.8V Shock capacitor r

^shock 100 pF

W/L 10 Writing voltage

NMOS Vw 0.35 V

0.5 V Reading voltage V r -0.1125 V

W/L 20 Feedback resistor

PMOS R r 90 kn

V

'p -0.42 V Reading time 5

Von/off ±0.3 V Writing time T w 5

Kon/off +lmm/s

Memristors a on/off 1

RON 100 /2

ROFF 200 kD

DAC parameters Learning parameters

Sampling Learning rate

1MSPS Ά 0.01 frequency fs 0.

Number of bits N 4 Error threshold ^threshold 2 10 -3

Full-scale voltage v FS bf - v DD ]

Fig. 4(c) shows a synaptic weights adaptation which is trained for a 0.9V full-scale output voltage range, in the presence of +10% process variations of every circuit element. Figs. 4(d & e) shown integral and differential non-linearities of the DAC, again over three different time stamps, before 60, during, 62 and after 64.

Note that the number of bits is bounded by the ratio between the highest and lowest resistance levels of the memristor, and the sampling frequency may be the Nyquist frequency.

Reference is now made to Fig. 5, which is a simplified flow chart illustrating a method for carrying out digital to analog conversion. The method comprises receiving parallel bits of a digital input signal - 50 and passing the bits through a neural network layer - 52. The different bits of the signal are sent via respectively weighted synapses to an output where they are combined or integrated -54- to form an output analog signal representative of the original digital input signal.

Reference is now made to Fig. 6, which is a simplified flow chart schematically illustrating an iteration of a training procedure for modifying the weights of the synapses. The weights may be modified in a set up phase when starting to operate new equipment and on subsequent occasions, say when signal characteristics change or the operating environment changes.

A sequence of test signals is provided to the DAC, each signal providing an iteration - 56. The signal propagates through the network and the output is latched 58. The error is measured against an expected output -60- and the current iteration of the online stochastic gradient descent is generated 42. The enable is set at the synapses and the new weight to minimize the error is written to the memristors - 64. Evaluation

In this section, the proposed four-bit DAC design is discussed and evaluated in a SPICE simulation using a 0.18μιη CMOS process and the VTEAM memristor model. First, the learning algorithm is evaluated in terms of mean square error (MSE) and training time. Then, a static evaluation of the circuit is described, and finally the dynamic evaluation is presented. The proposed DAC has been tested in both ideal and non-ideal cases. The circuit parameters, architectural specifications, and design constraints are listed in Table I.

Ideal Case

Reference is now made to Figs. 7A - 7D. Fig. 7A shows binary-weighted synaptic adaptation during the training phase for the 1.8V full-scale output voltage range. Immediately, synapses are trained for the 0.9V full-scale output voltage range and shown in real time. Fig. 7B shows a comparison between the teaching dataset and the actual neural discrete analog DAC output at three different time stamps during the training; an identical staircase is achieved after the training is complete. Fig. 7C shows a differential and Fig. 7D shows integral non-linearities of the DAC at three different time stamps in response to the DC input voltage ramp.

The basic deterministic functionality of the four-bit DAC is demonstrated while being trained by the online gradient descent algorithm. Figure 7A shows the synapse resistive value where two sawtooth training datasets with different full-scale voltage ranges (V DD , and V DD /2) are applied successively in real time. It can be observed that the network converges from a random initial state to a steady state once the error determined by (5) is lower than E threshold , after -2000 training samples. Furthermore, it can be observed that when the full-scale voltage changes to V DD /2, the system converges to a new steady state that quantizes 0.9V full-scale. In each case, the network is successfully reconfigured to operate under different specifications, as shown by different binary- weighted synaptic values in Fig. 7A.

The DAC is next evaluated in terms of accuracy and training time, as illustrated in Fig. 7B

- 7D. The static evaluation in response to the DC ramp signal at three different time stamps is shown in Fig. 7B for (I) the initial state before training, (II) coarse-grained training (i.e., where the error is slightly higher than E threshold ), and (III) fine-grained training (i.e., where the error is low enough and the DAC response converges to the final, desired state). The teaching staircase in Fig. 7B is the same DC ramp input that statically evaluates the DAC at the three given time stamps. Therefore, the differences between two adjacent digital input codes within the actual DAC output are the differential non-linearity (DNL), and similarly, the total voltage differences between the actual DAC output and the desired staircase for each digital input code are the integral non-linearity (INL). Results of the DNL and INL are shown, respectively, in Fig. 7C and 7D. As shown in Figs. 7C and 7D, before the training state the DAC is completely non-linear and non-monotonic, with several missing codes. Thus, the maximum difference between the discrete analog output and the ideal staircase, and the maximum difference between two adjacent analog levels, are considerably high: INL--32 LSB, and DNL--13 LSB. At the second time stamp (2ms ~ 200 samples), however, the DAC performs better and appears monotonic but not sufficiently accurate (INL--1 LSB, DNL--1 LSB). After the training is complete (20ms), the DAC is fully calibrated: INL-0 LSB, and DNL-0 LSB. The fact that the DNL and INL are almost ideal proves that the training algorithm achieves maximum performance. The DAC also showed robustness when it was simulated with a randomly generated training dataset.

The improvements in static figures of merit significantly affect the dynamic figures of merit. The ENOB is a function of signal-to-noise and distortion ratio, whereas the distortions are a result of the DAC' s non-linearity. If the DAC is non-linear (e.g. , INL, DNL≠0), then harmonic distortion spurs will appear in the dynamic response, degrading the ENOB. Therefore, improving the INL and DNL by learning and calibration techniques alleviates distortions and improves the ENOB, improving the precision of the DAC. To evaluate the ENOB, the DAC is dynamically evaluated and analyzed in response to a sine input with 40 kHz frequency, which meets the Nyquist condition: fi nput ≤ f s /2. The achieved ENOB in the ideal case is 3.71, which is almost ideal considering the intrinsic quantization error. All the extracted performance metrics are summarized in Table III. Non-Ideal Case

Reference is now made to Figs. 8A - 8D. Fig. 8A shows a comparison between regular gradient descent (GD) and the proposed binary-weighted time-varying gradient descent (BW TV GD) algorithms in the presence of noise and process variations. Figs 8B - 8D show that the GD failed to converge the synapses, whereas the BW TV GD succeeded and outperformed the GD with Fig. 8B smaller MSE, Fig. 8C better DNL, and Fig. 8D INL.

Usually, analog domains suffer from reduced robustness and vulnerability to noise and variations in comparison to their digital counterparts. DACs are being continuously pushed towards their performance limits as technology scales down and system specifications become more challenging. While device mismatch and process imperfections in modern DACs can be compensated for by calibration mechanisms, noise can irreparably degrade performance and is less straightforward to capture at design time. Several analysis methods have been established to estimate noise sources and their impact on the performance. All these mechanisms are specific and technology dependent, requiring exhaustive characterization, massive validation, and relatively long development time-to-market. Adaptive intelligent systems motivated by machine learning algorithms are, however, inherently robust to noise, which is a key element in the set of problems they are designed to solve. This suggests that the effects of intrinsic noise on the performance of the analog circuit are relatively small. Therefore, online training algorithms are not exclusive to reconfiguration, but can also be used for self-calibration, adaptation, and noise tolerance with generic standard methodology.

For this reason, a crude estimation of the magnitude of noise and variability is listed in Table II:

1. The process variation parameters for the memristor are pessimistically chosen, with a coefficient of variation (CV = standard deviation/mean -30%) to cover wide reliability margins. The variability in the parameters of the memristors is equivalent either to corresponding changes in the synaptic weights or to the learning rate η. In Figs. 8A - 8D, we show that the proposed binary-weighted time-varying gradient descent training algorithm is able to tolerate such process variations over time. The variability in the transistor parameters can also dramatically affect the learning performance; thus, transistor parameters such as V w , W/L, and V T in Table I are chosen to guarantee a global optimal solution even in such extreme scenarios.

2. Noise sources include intrinsic thermal noise coming from the feedback resistor, memristor, and transistor, as well as pulse-width modulation noise, input referred noise, training label fluctuations as a result of supplier converter quantization noise, and frequency-dependent noise sources, which are quantified and estimated.

3. Frequency-dependent variations capture the parasitic capacitance and inductance of the memristor and model it by a varying impedance as a function of the frequency. In addition, AR degradation along switching cycles as a result of oxide defects and device aging is considered.

TABLE III

ACCURACY COMPARISON

Type Value

Ideal case - - Gradient descent

Maximum DNL « 0

Maximum INL « 0

ENOB 3.71

Training time 20ms

MSE 2 10 -3

Non-ideal case - Gradient descent

Maximum DNL 0.15 LSB

Maximum INL 0.38 LSB

ENOB 3.18

Training time 30ms

MSE 5 10 "3

Non-ideal case - Binary-weighted time- varying g radient descent

Maximum DNL 0.11 LSB

Maximum INL 0.12 LSB

ENOB 3.63

Training time 30ms

MSE 2 10 "3

Non-ideal case - - Resistor-based DAC

Maximum DNL 1.28 LSB

Maximum INL 0.81 LSB

ENOB 2.66

While process variations determine the convergence time and accuracy, noise can cause the network to deviate from the optimum weights with destructive oscillations. In Fig. 8A, the training processes for both gradient descent and the binary-weighted time-varying gradient descent with decaying learning rate are shown. Observe that the regular gradient descent, which succeeded in stabilizing the synapses without the presence of noise, now fails to stabilize the synapses. Conversely, the binary-weighted time-varying gradient descent with decaying learning rate successfully overcame noise and variations with stable synapses. The comparison is made, accordingly, in terms of MSE, DNL, and INL, as shown in Figs. 8B - 8D, respectively. The switching non-linearity and threshold of the memristor device mitigate synaptic fluctuations derived from noise and variation sources. Nevertheless, the gradient descent algorithm fails to converge to a global optimum and keeps excessively capturing stochastic dynamics whereas the time-varying learning rate of the proposed algorithm enhances the network immunity against overfitting and achieves reliable predictive performance on unseen data.

Reference is now made to Figs. 9A to 9D. Fig. 9A shows statistical simulations of randomly generated variations and noise sources show the probability distribution of typical and extreme cases in terms of the effective number of resistive levels. Fig. 9B shows the impact of variations in the number of effective levels on the number of training samples in each case. Fig. 9C shows ENOB as a function of the number of stable resistive levels, where the minimum is five uniformly distributed binary-weighted levels, and Fig. 9D shows endurance degradation along device lifetime, in terms of full switching cycles, logarithmically affect AR in each training sample and are compensated for by the increasing training time for the whole epoch. For robust validation of the DAC functionality in the presence of correlated variations and noise sources in Table II, we statistically analyzed the DAC performance for large numbers of randomly generated scenarios. We show the distribution of the achieved effective number of resistive levels in Fig. 9A. The number of resistive levels, however, is finite and is a function of variations, data retention, noise margin, and amplifier sensitivity. Fig. 9A shows that extreme cases where the write variation is + 10% and the comparator offset of the PWM is ±SmV are less likely. Therefore, the effective number of resistive levels in the typical case (approximately 38% of the cases) is -64. The number of resistive levels has a key role in achieving such adaptive, self-calibrated, noise-tolerant, and highly accurate DACs. Due to its self-calibration capability, the DAC can tolerate variations and compensate for them by imposing a penalty of more training samples, as shown in Fig. 9B. Alternately, fewer training samples or stable resistive levels are sufficient for lower accuracy, as shown in Fig. 9C, in terms of ENOB, lower-bounded by five uniformly distributed binary- weighted levels covering a half- to full-scale voltage range. Results of the dynamic evaluation in terms of ENOB and training time in the typical case are listed in Table III, and compared to a resistor based binary- weighted DAC.

Endurance is an essential performance criterion of memristive devices for memory applications. Therefore, qualitative and pessimistically approximate analysis is done to evaluate the DACs lifetime versus the increasing training time as a result of the memristor's endurance degradation. Endurance failure behavior is observed in Hf -based RRAM and can be explained by different physical mechanisms that degrade its switching characteristics and high-to-low resistance ratio. Among these mechanisms is the oxidation induced interface reaction, a result of high voltage/current during SET. The endurance of the fitted Pt/HfO x /Hf/TiN is ~8K cycles with 1.15 V for SET and—2.25 V for RESET. Decreasing operational voltages considerably improves the endurance while increasing the switching time of the device. According to the fitted parameters in Table I, the simulated switching time with ±V W is 75 instead of the reported 400 ns with 1.15 V for SET, and 1 ms instead of the reported 10 with—2.25 V for RESET. The trade-off between write latency and endurance has been well- studied, and the relationship between them is formalized as

where t WP is write latency, t 0 is a device related constant, and Expo_factor is an empirical constant with a typical value of 2. Accordingly, the endurance of the device will increase to 8 10 7 cycles with the proposed writing voltage. Due to the nature of the proposed DAC, it will continue training until it equals E threshold and achieves a high ENOB. Thus, the high-to-low resistance ratio degradation is not discernible, as it is compensated for by longer training times. A rough approximation, using logarithmic endurance degradation in time, is modeled by a 10% drop of AR per decade, as listed in Table II. The training time as a function of the number of switching cycles is shown in Fig. 9D. To prove that the endurance is not a limitation for the proposed DAC, we estimate the number of training epochs until wear-out. As a pessimistic evaluation, we assume that every 1 ms of training time equals a full RESET. This assumption is more aggressive for degradation than a total of 200 intermediate switches in 1 ms. Therefore, the maximum training time is 160 ms and the

8 10 ^

corresponding minimal number of training epochs until wear- out is «—^- = 500ft\ This finding implies that, in the worst case, the DAC could be reconfigured -150 times per day for -10 years either for new configuration or for calibration-only, depending on the running application.

The proposed DAC was simulated with different sampling frequencies f s to show its versatility and flexibility to adapt to different conditions that represent different specifications for different applications. At high frequency the memristor is modeled as a resistor in parallel to a capacitor and is connected in series with an inductance on each side. The parasitic capacitance between electrodes of the memristor is dominant at high frequencies. As a result, the equivalent impedance of the memristor decays along the frequency. The values of the parasitic capacitance and inductance are listed in Table I. The maximum frequency at which the DAC can operate, f max , is defined as the frequency at which the high-to-low-impedance ratio will not allow binary- weighted distribution of N-bits that covers the half- to full-scale voltage range:

\ ^ \≤ 2 N+ (23)

^ON

where Z 0FF and Z 0N are high and low impedance states, respectively. At the frequency- band of interest, Z 0N « R 0N , Z 0FF « R 0F F \ \— ; = ^ ^° „— > and the series inductance is negligible. By solving (22), we find

Reference is now made to Figs 10A and 10B. Fig. 10A shows a high impedance state ZO FF as a function of sampling frequency; dashed lines indicate the maximum possible frequency bandwidth for a half- to full-scale voltage range with a high-to-low-impedance ratio of 32 and 16, respectively. Fig. 10B shows a DAC reconfiguration for a lOMSPS sampling frequency, by continuous synaptic update. The frequency-dependent variations were captured by the synaptic weights.

The decay of Z 0FF as a function of frequency is shown in Fig. 10A, along with the maximum frequency bandwidth for different- scale voltages. In our case, for a four-bit DAC and full- to half-scale voltage range, f max = 1.668GHz, which is below the transit frequency f T of 0.18 μτη CMOS transistors, the cutoff frequency of memristors, and the Op Amp slew rate.

The training dynamics are different in this case because the learning rate is a function of the pulse-width duration, which is a function of the sampling frequency. The higher the sampling frequency, the smaller the learning rate and the higher the number of training samples. Additionally, taking the frequency dependent variations into consideration, the synaptic weights are different and are able to absorb and compensate for these variations, as shown in Fig. 10B in response to the 10 MSPS sampling frequency. The frequency is lOOx higher than 100 KSPS; as a result, the time interval for a single sample is lOOx smaller, as is the learning rate. However, the total number of training samples until the error equals E threshold is ~ 1.5x greater, with ~66x smaller training time (~0.45ms). The ratios are not linear because the convergence time is different among the bits and not linear. This property proves that the DAC is a general-purpose device with a generic standard methodology.

Expanding the DAC Design

Reference is now made to Fig. 11 which shows an eight-bit reconfigurable DAC composed from two four-bit DACs by using a two-layer neural network. As explained in the previous sections, a DAC is determined by its sampling frequencies and the number of resolution bits. These two specifications are challenging to achieve together in conventional DACs, and they are considered two major bottlenecks. We show an efficient mechanism that achieves optimal possible accuracy from the number of real allocated bits N for each sampling frequency f s . Hereinabove, we formalized the constraints on the number of bits in (17) and (18). Using these constraints and the design parameters listed in Table I, the maximum number of bits was at most four. This section discusses large-scale DACs by using the proposed four-bit DAC as a prototype that can be duplicated or cascaded to create a larger architecture. Interestingly, AI techniques that involve deep neural networks and backpropagation algorithms can be exploited and interpolated into the design of large-scale DACs that are based on the four-bit DAC.

For example, in Fig. 11, an eight-bit DAC that is based on the four-bit DAC is shown. The analog output of such a DAC is

7— 1 2

where W 21 , W 22 are the second-layer weights (W 2 j = Rf/R 2 j ' ) . Similarly to (5), the error function of the eight-bit deep neural network DAC is

The learning rules of the first layer synapses W li( ^ ≤i≤7 ^ are extracted by using the error gradient descent and backpropagation algorithms

A W W dE dE dA tot dA^

^ l i (0 ≤i≤ 3) = -1 -(« = -'?

(fc) _ _ dE dE dA^] dA^

Δ¾4 ≤ί≤7) - d w w - * aA W - aA W - a w W

Using the same design methodology as for the four-bit DAC, this network defines a high precision eight-bit DAC with adaptive abilities to self-calibrate mismatches and tolerate variations. The weights in the second layer are fixed and predefined during design time; they do not need to be adjustable, and they do not obey the learning rule. Thus, learning rules (27) and (28) depend on predefined parameters and do not vary during training as in multi-layer neural networks with a backpropagation algorithm. The training data-set is given through and compared to the DAC output, which is the second layer output, and then the error product is back-propagated directly to the first layer synapses for both four-bit DACs simultaneously. Different learning rates are used for each four-bit DAC. Although resistors are highly prone to manufacturing variations, they can be used effectively for the second layer since the mismatches in that layer will be calibrated and compensated for by the weights of the first layer. Thus, the proposed large-scale concept will actually take advantage of the defects and handle them robustly. Furthermore, considering adjustable weights in the second layer will necessarily increase the design complexity of the training mechanism: its implementation will involve specific circuitry with higher area and power consumption, which may lead to undesired oscillations and wasteful training time. A major challenge that directly relates to large-scale trainable DACs is how to generate the data-set for teaching. We assume that peripheral circuitry is provided and able to generate real-time data-sets with different specifications that fit the required DAC. Larger numbers of bits, smaller full-scale voltages, and higher frequencies, however, will be challenging for these circuits, which are not only technology dependent but also special purpose. For example, pulse- width modulators are bounded by the frequency with they can work. Therefore, the proposed binary-weighted time- varying gradient descent complicates the design but improves accuracy, compared to the regular gradient descent that uses a uniform learning rate.

Fig. 12 illustrates flow of the online binary- weighted time-varying gradient descent training algorithm, which updates the weights according to the error function.

Thus according to the above description, a reconfigurable and self-calibrating binary- weighted DAC, based on artificial neural network, may be provided. The configuration consists of a machine learning or artificial intelligence algorithm that adjusts the synapses of the neural network to achieve a DAC. The equivalence between single-layer neural network and binary weighted DAC has been shown. A supervised learning algorithm termed the binary weighted gradient descent, which is based on online stochastic gradient descent, has been developed to train the network efficiently on-chip in real time to perform an adaptive high -precision 4-bit DAC.

A hybrid CMOS-memristor circuit implementation may be provided as described for the realization of the neural network. The learning algorithm successfully adjusts the memristors along with the full-scale voltage range, and calibrates the DAC to improve linearity of the DAC. With an output range of 1.8 V, the calibration process was shown to improve INL from -32 LSB to 0 LSB, and DNL from -13 LSB to 0 LSB. To our knowledge, this is the first neural-network based DAC.

The present embodiments may provide valuable results in data-driven converters achieving high-precision, high-speed, low-cost and low-power consumption for different applications.

It is expected that during the life of a patent maturing from this application many relevant memristor and learning technologies will be developed and the scopes of the corresponding terms are intended to include all such new technologies a priori.

The terms "comprises", "comprising", "includes", "including", "having" and their conjugates mean "including but not limited to".

As used herein, the singular form "a", "an" and "the" include plural references unless the context clearly dictates otherwise.

It is appreciated that certain features of the invention, which are, for clarity, described in the context of separate embodiments, may also be provided in combination in a single embodiment. Conversely, various features of the invention, which are, for brevity, described in the context of a single embodiment, may also be provided separately or in any suitable subcombination or as suitable in any other described embodiment of the invention. The present specification is to be read is if all such single embodiments and separate embodiments and subcombinations are explicitly set forth herein. Certain features described in the context of various embodiments are not to be considered essential features of those embodiments, unless the embodiment is inoperative without those elements.

Although the invention has been described in conjunction with specific embodiments thereof, it is evident that many alternatives, modifications and variations will be apparent to those skilled in the art. Accordingly, it is intended to embrace all such alternatives, modifications and variations that fall within the spirit and broad scope of the appended claims.

All publications, patents and patent applications mentioned in this specification are herein incorporated in their entirety by reference into the specification, to the same extent as if each individual publication, patent or patent application was specifically and individually indicated to be incorporated herein by reference. In addition, citation or identification of any reference in this application shall not be construed as an admission that such reference is available as prior art to the present invention. To the extent that section headings are used, they should not be construed as necessarily limiting.