Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
MEMRISTOR-BASED CIRCUIT AND METHOD
Document Type and Number:
WIPO Patent Application WO/2020/212443
Kind Code:
A1
Abstract:
A memristor-based circuit is described in which a voltage generator is arranged to apply a series of voltage pulses to a memristor to progressively change the resistance of the memristor. A comparator is arranged: to receive an input electrical value; to receive an electrical value based on the resistance of the memristor; to compare the received values; and, based on the comparison, to enable the application of the voltage pulses to the memristor by the voltage generator until a defined condition is satisfied. This circuit can be used to enable the memristor to be programmed to a desired resistance value, such as for use as a non-volatile memory. It can also enable the resistance of one memristor to be replicated to another memristor. By counting the number of applied voltage pulses, the circuit can be used as an encoder or analog-to- digital converter. Other variants of the circuit enable construction of a decoder or digital-to-analog converter, and an authentication circuit.

Inventors:
JABIR ABUSALEH (GB)
KHANDELWAL SAURABH (GB)
YANG XIAOHAN (GB)
Application Number:
PCT/EP2020/060620
Publication Date:
October 22, 2020
Filing Date:
April 15, 2020
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
UNIV OXFORD BROOKES (GB)
International Classes:
G11C13/00; G06F21/00; G11C7/16; G11C7/24; G11C27/00
Domestic Patent References:
WO2011099961A12011-08-18
WO2018057766A12018-03-29
WO2015134037A12015-09-11
Foreign References:
CN105897269A2016-08-24
US20100165722A12010-07-01
US9805770B12017-10-31
Other References:
ARAFIN MD TANVIR ET AL: "Memristors for Secret Sharing-Based Lightweight Authentication", IEEE TRANSACTIONS ON VERY LARGE SCALE INTEGRATION (VLSI) SYSTEMS, IEEE SERVICE CENTER, PISCATAWAY, NJ, USA, vol. 26, no. 12, 30 November 2018 (2018-11-30), pages 2671 - 2683, XP011702484, ISSN: 1063-8210, [retrieved on 20181130], DOI: 10.1109/TVLSI.2018.2823714
Attorney, Agent or Firm:
BARKER BRETTELL LLP (GB)
Download PDF:
Claims:
CLAIMS 1. A memristor-based circuit, comprising:

a memristor;

a voltage generator arranged to apply a series of voltage pulses to the memristor to incrementally change the resistance of the memristor; and

a comparator arranged to receive an input electrical value, to receive an electrical value based on the resistance of the memristor, to compare the received values, and based on the comparison to enable the application of the voltage pulses to the memristor by the voltage generator until a defined condition is satisfied. 2. A circuit according to claim 1, wherein the input electrical value comprises an input voltage, and the electrical value based on the resistance of the memristor is a voltage obtained from a potential divider circuit comprising the memristor. 3. A circuit according to claim 1 or 2, wherein the memristor is a destination memristor, and further comprising a source memristor in a potential divider circuit to provide said input voltage, wherein the resistance of the source memristor is replicated in the resistance of the destination memristor. 4. An encoder comprising:

a circuit according to any of claims 1 to 3; and

a counter arranged to count the number of voltage pulses applied to the memristor, and to output that number. 5. An analog-to-digital converter comprising the encoder of claim 4, wherein the input electrical value comprises an analog input, and the counted number of pulses comprises a digital output. 6. A decoder comprising:

a circuit according to claim 1 without the comparator; and

a counter, arranged to receive a number as an input, and arranged to cause the voltage generator to apply that number of voltage pulses to the memristor.

7. A decoder according to claim 6, wherein the counter is a down-counter initialized to the input number, which is configured to decrement each time a voltage pulse is applied by the voltage generator to the memristor, and is configured to stop the application of the voltage pulses to the memristor by the voltage generator when a the count value reaches zero. 8. A digital-to-analog converter comprising the decoder of claim 6 or 7, wherein the received input number comprises a digital input, and an electrical value based on the resistance of the memristor comprises an analog output. 9. An authentication circuit comprising an encoder according to claim 4, without the memristor, wherein the authentication circuit is connectable to a memristor provided in an external circuit, wherein the input electrical value comprises a challenge, and wherein the output number comprises a response based on the memristor of the external circuit. 10. An authentication circuit comprising an decoder according to claim 6 or 7, without the memristor, wherein the authentication circuit is connectable to a memristor provided in an external circuit, wherein the number received as the input comprises a challenge, and wherein the electrical value based on the resistance of the memristor of the external circuit comprises a response. 11. An authentication circuit according to claim 9 or 10, wherein the external circuit comprises a chip that is tagged or identified by the memristor. 12. A method comprising:

receiving an input electrical value;

applying a series of voltage pulses to a memristor to incrementally change the resistance of the memristor;

receiving an electrical value based on the resistance of the memristor; and comparing the received values, and, based on the comparison, enabling the application of the voltage pulses to the memristor until a defined condition is satisfied.

13. A method according to claim 12, wherein the input electrical value comprises an input voltage, and the electrical value based on the resistance of the memristor is a voltage obtained from a potential divider circuit comprising the memristor. 14. A method according to claim 12 or 13, wherein the memristor is a destination memristor, and wherein a source memristor in a potential divider circuit provides said input voltage, and whereby the resistance of the source memristor is replicated in the resistance of the destination memristor. 15. A method comprising:

receiving an input electrical value;

applying a series of voltage pulses to a memristor to incrementally change the resistance of the memristor;

receiving an electrical value based on the resistance of the memristor;

comparing the received values, and, based on the comparison, enabling the application of the voltage pulses to the memristor until a defined condition is satisfied; and

counting the number of voltage pulses applied to the memristor, and outputting that number. 16. A method comprising:

receiving a number as an input;

applying a series of voltage pulses to a memristor to incrementally change the resistance of the memristor;

counting such that the number of voltage pulses applied to the memristor is equal to the number received as an input; and

outputting an electrical value based on the resulting resistance of the memristor.

Description:
MEMRISTOR-BASED CIRCUIT AND METHOD The present invention relates to a memristor-based circuit and method, for example for replicating a memristor resistance, performing encoding and decoding, and for use in authentication. A memristor is a circuit element in which there has been a lot of interest for use in the designs of high density non-volatile memory, neuromorphic systems, logic design, and most recently in sensors and solar cells. This is due to the non-volatility and fine resolution programmability. Conventional techniques for tuning a memristor’s resistance to a predetermined value involve programming. These programming techniques however suffer from requiring external processing to accurately tune the memristor. A programming approach, although accurate, also has the drawback of not being able to program devices of high ON/OFF ratio. Additionally, analog-to-digital converters (ADCs) are widely used in modern electronics to represent (encode) values of analog signals in digital form for subsequent storage and/or logic processing by traditional micro-controllers. There is a problem of making simple, compact, low-power encoders and decoders. There is also a need to be able to securely tag chips or other electronic circuits for authentication purposes i.e. to identify unauthorized clones and identify authentic ones. The present invention has been devised in view of the above problems. Accordingly, one aspect of the present invention provides a memristor-based circuit, comprising:

a memristor;

a voltage generator arranged to apply a series of voltage pulses to the memristor to incrementally change the resistance of the memristor; and

a comparator arranged to receive an input electrical value, to receive an electrical value based on the resistance of the memristor, to compare the received values, and based on the comparison to enable the application of the voltage pulses to the memristor by the voltage generator until a defined condition is satisfied. Another aspect of the invention provides an encoder comprising:

a memristor;

a voltage generator arranged to apply a series of voltage pulses to the memristor to incrementally change the resistance of the memristor;

a comparator arranged to receive an input electrical value, to receive an electrical value based on the resistance of the memristor, to compare the received values, and based on the comparison to enable the application of the voltage pulses to the memristor by the voltage generator until a defined condition is satisfied; and

a counter arranged to count the number of voltage pulses applied to the memristor, and to output that number. Another aspect of the invention provides a decoder comprising:

a memristor;

a voltage generator arranged to apply a series of voltage pulses to the memristor to incrementally change the resistance of the memristor; and

a counter, arranged to receive a number as an input, and arranged to cause the voltage generator to apply that number of voltage pulses to the memristor. Another aspect of the invention provides an authentication circuit connectable to a memristor provided in an external circuit, the authentication circuit comprising:

a voltage generator arranged to apply a series of voltage pulses to the memristor to incrementally change the resistance of the memristor;

a comparator arranged to receive an input electrical value, to receive an electrical value based on the resistance of the memristor, to compare the received values, and based on the comparison to enable the application of the voltage pulses to the memristor by the voltage generator until a defined condition is satisfied; and

a counter arranged to count the number of voltage pulses applied to the memristor, and to output that number,

wherein the input electrical value comprises a challenge, and wherein the output number comprises a response based on the memristor of the external circuit. Another aspect of the invention provides an authentication circuit connectable to a memristor provided in an external circuit, the authentication circuit comprising:

a voltage generator arranged to apply a series of voltage pulses to the memristor to incrementally change the resistance of the memristor; and a counter, arranged to receive a number as an input, and arranged to cause the voltage generator to apply that number of voltage pulses to the memristor,

wherein the number received as the input comprises a challenge, and wherein an electrical value based on the final resistance of the memristor of the external circuit comprises a response. Another aspect of the present invention provides a method comprising:

receiving an input electrical value;

applying a series of voltage pulses to a memristor to incrementally change the resistance of the memristor;

receiving an electrical value based on the resistance of the memristor; and comparing the received values, and, based on the comparison, enabling the application of the voltage pulses to the memristor until a defined condition is satisfied. Another aspect of the present invention provides a method comprising:

receiving an input electrical value;

applying a series of voltage pulses to a memristor to incrementally change the resistance of the memristor;

receiving an electrical value based on the resistance of the memristor;

comparing the received values, and, based on the comparison, enabling the application of the voltage pulses to the memristor until a defined condition is satisfied; and

counting the number of voltage pulses applied to the memristor, and outputting that number. Another aspect of the invention provides a method comprising:

receiving a number as an input;

applying a series of voltage pulses to a memristor to incrementally change the resistance of the memristor;

counting such that the number of voltage pulses applied to the memristor is equal to the number received as an input; and

outputting an electrical value based on the resulting resistance of the memristor. Further aspects of the invention are defined in dependent claims. Embodiments of the invention can provide a simple and efficient lightweight memristor replicator architecture, which is able to replicate the resistance of a source memristor into a destination memristor by repeatedly applying programming pulses. Such a circuit can be used for backing up analogue data, e.g. from a memristor sensor, before or during conversion to digital form. The proposed circuit architecture is extremely versatile and can be used not only for replicating memristors, but also for generating non-linear digital code and decoding the code back to the source memristance/voltage (within quantization limits). Owing to the nonlinear encoding, the architecture also provides a level of inherent security features. Memristors can offer physical uncloneability, so embodiments of the invention can be used in applications such as chip tagging/identification, as well as for preventing unauthorized fabrications. Owing to their simple and versatile nature, embodiments of the invention can be used in remote and low power devices which require some level of security, e.g. in remote sensor nodes, etc. Embodiments of the invention will now be described, by way of example only, with reference to the accompanying drawings, in which:

Fig. 1(a) and 1(b) show the structure of a TiO 2 -based memristor and the corresponding circuit symbol, respectively;

Fig. 2 is a schematic circuit diagram of a memristor circuit according to an embodiment of the invention;

Fig. 3 is a schematic circuit diagram of a memristor replicator circuit according to an embodiment of invention;

Fig. 4 is a schematic circuit diagram of a memristor-based encoder (or analog- to-digital converter (ADC)) circuit according to an embodiment of invention; Fig. 5 is a schematic circuit diagram of a memristor-based decoder (or digital- to-analog converter (DAC)) circuit according to an embodiment of invention; Fig. 6 is a more detailed circuit diagram of a memristor-based replicator/encoder/decoder according to another embodiment of invention;

Fig. 7 shows graphs of encoded digital output for different memristor dimensions;

Fig. 8 shows graphs of encoded digital output for different programming pulse voltages; and Figs. 9(a) and 9(b) are graphs showing the effect on encoded value of different programming pulse widths. In the drawings, like parts are given like reference signs, and duplicate description thereof is omitted. Memristors are known in the art as devices whose electrical resistance (also called memristance) is changed by the electrical current that flows through the device. The resistance has a minimum value R ON and a maximum value R OFF . The resistance can be tuned by application of appropriate voltage or current, and is non-volatile (the resistance value is‘remembered’), so that a memristor can be used as a memory element. The resistance can also be influenced by external factors, so a memristor can be used as a sensor element. Memristors can be made of various materials, such as: TiO 2 (for example with doped and undoped regions and with Pt electrodes); Ag/Ag 5 In 5 Sb 60 Te 30 /Ta; Ag-a-LSMO-Pt (Ag nano-filaments in amorphous manganite thin films); other metal oxide semiconductors, such as aluminium oxide, copper oxide, silicon oxide, zinc oxide, tantalum oxide, hafnium oxide; amorphous perovskite oxides (such as a-SrTiO 3 ); as well as other ferroelectric and doped polymeric materials, and also graphene oxide. Embodiments of the present invention are not limited to any specific material, provided the memristive property is present. A component that acts as a memristor is described herein as being memristive. In the following description, embodiments are based on TiO 2 memristors, by way of example only. Memristors typically manifest non-linear behaviour. According to one model the overall resistance of a memristor is determined by the resistance of two regions: an undoped region (TiO2) and a doped region (TiO 2-X ), as shown in Fig. 1(a). If the initial resistance of the memristor is Rinit, then for x = 0, Rinit=Ron (Low Resistance State) and for x = D, R init =R off (High Resistance State). The lengths (x and D) depicted in this figure will be used in the rest of this description. In practical memristive devices, the memristance is dependent on a tunnelling effect, which is highly non-linear. Therefore, any change in the tunnel barrier width changes the memristance, and is assumed to change exponentially in x. The instantaneous memristance, R M , is given as in Equation 1 where are the lower and upper bounds of the

undoped region. Fig. 1(b) shows the symbol of a memristor. Here, P and N are its‘positive’ and ‘negative’ terminals respectively. The memristor switches to High Resistance State (R off ) when the instantaneous voltage V P >V off and switches to Low Resistance State (R on ) when V P <V on , as defined in Equation 2 for V in =V P . The memristor’s state does not change, i.e. it is in a‘hold’ state, when V on <V P <V off .

where K off , K on , a on , a off are constants, and V on and V off are threshold voltages. Functions F off (x) and F on (x) represent the dependence of the derivative of the state variable x. These functions behave as window functions, which constrain the state variable to bounds of x Î [ x on , x off ]. A write voltage V W (0 < V off < V W ) is applied to shift a memristor’s barrier from R on towards R off , and a read voltage V R (V on < V R < V off ) is applied to read the resistance/voltage drop across it, as given in Equation 2. Referring to Fig. 2, a basic circuit is illustrated in which a voltage generator 10 is arranged to apply a voltage across a potential divider circuit comprising a memristor M D and a load resistor R DL . The memristor M D is initialized to be in the low- resistance state R ON . Next, the voltage generator 10 receives a clock signal clk input at terminal 12 that is a substantially rectangular wave repeatedly switching between high level for time T prog and low level for time T hold , and generator 10 outputs a programming voltage V prog and a hold voltage V hold during T prog and T hold , respectively. V prog is adjusted to be sufficiently high so that V W appears across memristor M D taking into account the load R DL . Similarly, V hold is adjusted to be sufficiently high such that a V R appears across memristor M D . In this way, a series of voltage pulses are applied to the memristor M D which incrementally change the resistance of the memristor. A comparator 14 receives an input electrical value, in this case an input voltage, at terminal 16. The comparator 14 also receives the voltage from the potential divider comprising the memristor M D . During the periods T hold when the programming voltage pulse is not being applied to the memristor, the comparator compares the two received voltages, optionally with weighting factors. When a defined condition is satisfied, such as the voltage at the potential divider equaling or exceeding the input voltage at terminal 16, then the output of the comparator stops the voltage generator 10 from applying further programming voltage pulses, and the resistance of the memristor is now fixed. In this way, the resistance of the memristor M D can be accurately and reproducibly ‘programmed’ to a value that depends on the input voltage value; and different input voltages will produce different resistances. Fig. 3 illustrates a development of the circuit of Fig. 2 in which the input terminal 16 is connected to a potential divider comprising a source memristor M S and a source load resistor R SL . The original memristor is now a destination memristor M D . In a preferred embodiment, the load resistors R SL and R DL are matched, and the source and destination memristors M S and M D are also matched. The source memristor M S has a resistance (memristance) value that has already been set, for example the source memristor might be a sensor whose resistance value is related to a property being sensed. The voltage V hold is applied to the terminal 18 of the source memristor M S , and the memristor M D is initialized to be in a low-resistance state R ON . When the clock signal is now applied to terminal 12, the resistance of the destination memristor is incrementally changed by the programming voltage pulses (V prog during the periods T prog ) until the two voltages input to the comparator 14 are equal (during the T hold periods) at which point the process is terminated. The result is that the resistance of the source memristor MS has been replicated to the destination memristor MD. If different component values are used in the circuit, then the memristor resistances will not necessarily be identical, but the resistance of the destination memristor will be related to the resistance of the source memristor. This embodiment has illustrated how a resistance can be used as an input electrical value to be replicated to another resistance. However, embodiments of the invention can use other things as the input electrical value, such as a voltage or a current. The resulting output can also be a resistance, voltage, current or other electrical value. With the embodiment of Fig. 3, if the source memristor is, for example, a sensor, then the replication process described above can be used to read and store the sensed value at a particular time. The destination memristor can be one of an array of such memristors that are selectable and each programmed in turn over time to store the sensed values for later retrieval. It is, of course, not essential to have a source memristor, and the reading and storing could simply be done of any electrical value, such as an input voltage as in the circuit of Fig. 2. This technique of reading and storing an electrical value is advantageous because it is does not require significant digital circuitry, so can be compact and low-power. This makes is especially suited to remote sensing applications. Another embodiment of the invention is illustrated in Fig. 4, based on the circuit of Fig. 2, but with the addition of a counter 20. The counter 20 counts the number of programming voltage pulses V prog that are applied to the memristor M D until the programming is stopped, and then outputs that number, for example as an n-bit binary number. This output number is related to the input analog electrical value (e.g. voltage) at terminal 16. Thus the circuit acts as an analog-to-digital converter (ADC). The circuit also acts as an encoder, turning an input value into a unique number. The encoding is non-linear because it depends on properties such as the electrical characteristics of the memristor M D (as well as on parameters such as the V prog , T prog ). This makes the encoding secure because the actual output numerical value is meaningless without knowledge of the memristor properties, i.e. one cannot decode the number back to obtain the original input value without at least access to or prior knowledge of these properties and parameters, and even trends in the numbers are not useful because of the non-linearity. Thus the generated code (number) is effectively unique to the specific memristor used to generate it, and so is locked to that specific device. Any of the embodiments described herein can, of course, be combined with any of the other embodiments, or with features thereof, as appropriate. So, the source memristor potential divider of Fig. 3 can be used with the circuit of Fig. 4. This would enable the source memristor value to be read, backed-up and simultaneously output as a digital value, all with a single, simple circuit. Following on from the encoder circuit of Fig. 4, the circuit of Fig. 5 provides a corresponding decoder. A number C is input to the counter 20 as an initial count value, and in this case the counter is configured as a down-counter; the memristor M D is initialized to be in a low-resistance state R ON . When the clock signal clk is now applied to terminal 12, the resistance of the destination memristor is incrementally changed by the programming voltage pulses. Each time a voltage pulse is applied, the counter 20 is decremented. When the counter reaches zero, this is signaled as an output that stops the voltage generator 10 from applying further programming voltage pulses, and instead just applies V hold . The memristor M D has had precisely C programming pulses applied to it. The voltage on terminal 22 of the potential divider is now an analog value based on the input number C i.e. the number C has been uniquely decoded (non-linearly) to the voltage at terminal 22. Thus this circuit also acts as a digital-to-analog converter (DAC). The circuits of Figs. 4 and 5 can also each be used as authenticators for authentication checking purposes. The inputs are an analog voltage and a digital number (Fig. 4 and Fig. 5), respectively, and the corresponding outputs are a digital number and an analog voltage. The input and output form a Challenge-Response-Pair (CRP). In one implementation, the memristor MD is provided in an external circuit, such as in a chip in a piece of electronics or in an IC-card, such as a bank card, and is connected to the rest of the respective circuit. The expected responses (outputs) based on one or more challenges (inputs) are known to the entity seeking to authenticate. If the memristor is authentic then the correct response(s) will be obtained (within defined error margins), and the chip/electronics can be verified as authentic. If the original memristor is not used, then the correct response will not be obtained, and authentication can be denied. Unauthorized copies of the memristor cannot readily be made because the electronic properties of the memristor are strongly dependent on the fabrication parameters and are non-linear, as discussed further below. Thus the chip/electronics can be tagged and identified using the memristor, and cannot be subject to cloning. Fig. 6 shows an embodiment of a specific architecture for replicating a source memristor M S to a destination memristor M D within certain quantization limits. The memristors M S , M D and the load resistors, R SL and R DL , form two voltage dividers. R SL and R DL are assumed to be closely matched. The output voltages of the voltage dividers V INS and V IND are continually compared by the comparator Comp. The architecture is simple, power efficient, and requires a small number of logic gates, a comparator, a level-shifter (also known as a voltage translator, and effectively a form of comparator, and which performs the function of the voltage generator 10 in the previously described embodiments), and an edge-sensitive counter. In the preferred embodiment, the level-shifter is‘strobed’, i.e. enabled or disabled according to whether power is supplied to the power input line of the level-shifter indicated ‘Strobe’ in Fig. 6. A. Replication and Encoding: Let f rep be the replication frequency of the clock (clk) and T rep =T prog +T hold = 1/f rep be the clock cycle. Voltages V prog and V hold are alternatively applied during T prog and T hold . V prog is adjusted to be sufficiently high so that V W appears across memristor M D only even with the load R DL . Similarly, V hold is adjusted to be sufficiently high such that a V R appears across both memristors M S and M D simultaneously. Hence resistance of memristor M S is copied to memristor M D by repeatedly applying these pulses based on Equation 2. During each T prog , V prog shifts the barrier of M D from the R on region towards the R off region by a small amount, but non-linearly, and during the following T hold , memristances of M D and M S are compared. The counter at the top counts the number of clock pulses required to replicate. The replication starts by first resetting the counter and a‘CLR’ pulse applied to the negative terminal of memristor M D . This pulse is of sufficient amplitude such that a very short duration resets memristor M D to R on . The first stage of the counter is used to generate the pulse and once CLR is complete the counter is reused for encoding. During CLR: the level-shifter is disabled via the strobe input; AND gates A2 and A3 block the inputs and produce a constant zero. Hence, the clock signal clk is prevented from reaching the level-shifter. As a result, the level-shifter produces 0 at the P- terminal of memristor M D and the high CLR pulse at its N-terminal resets memristor M D to R on . When CLR returns to 0, the level-shifter and the AND gates A2 and A3 are enabled and the replication starts. A2 passes clk to the level-shifter which switches between V prog and V hold in the same cycle (T rep ). V prog shifts the barrier of memristor M D during T prog , and the resulting voltage is compared with that across memristor M S during T hold by the comparator Comp. During T hold the comparator keeps producing a 1 until the voltage across memristor M D exceeds that across memristor M S . This forces A3 and A4 to produce a 0, which lets A1 pass clk through to the level-shifter. As a result the voltage across memristor M D gradually increases during each clock cycle, until it exceeds that across memristor M S at which point the comparator produces a 0 during T hold . This forces A3 and A4 to produce a 1, and the level-shifter is disabled via the strobe. This stops A1 from letting clk through thereby indicating an end of replication. Essentially the circuit enters a‘locked’ state which is controlled by the voltage across memristor M D . During replication, the counter counts the number of clock cycles required to replicate, which is the encoded digital value for analogue voltage (resistance) of memristor M S . Hence, the proposed architecture performs non-linear encoding of the analogue voltage/resistance while the replication takes place. As mentioned, when replication (or encoding conversion) is complete, the level-shifter is disabled by the stopping applying the power supply (Vdd) to the‘strobe’ input. This means that the level-shifter produces a 0V output as opposed to V hold ; so zero voltage is applied to the memristor M D , to avoid undesirably applying a persistent voltage across the memristor for long periods. The power switching or strobing can be achieved using a single PMOS or NMOS transistor. After this, a second phase of replication can start by the CLR pulse, which resets memristor M D thereby bringing the system out of the locked state (having enabled the level-shifter). The accuracy depends on the width of Tprog for a fixed Vprog, and lower Tprog results in higher accuracy, but at the cost of increased replication/conversion time. If the source memristor M S resistance (or equivalently, the voltage V INS ) is stable, then the replicating/encoding process will terminate naturally. However, in applications where V INS is changing over time (such as in sensor applications), the counter may continue to increase as the circuit tries to match V INS and V IND , which can be undesirable. One alternative embodiment is to include a latch (such as a SR flip- flop, D flip-flop, etc.) between the output of the comparator and the input of the level- shifter (voltage generator), such as between gate A4 and gate A1. The latch will operate to‘lock’ in the reading (counter value and/or memristance) at the first instance when V IND matches V INS , which is appropriate for some applications. However, this can be undesirable in other situations, so another embodiment of the invention is to have a predetermined‘sense’ period of time, and the clock is stopped automatically after that preset sense period has elapsed to give the reading then. The sense period can be made sufficiently long relative to T rep such that V IND will have time to match V INS . B. Decoding: If, while replicating, the counter registered digital value C. Decoding is achieved by first clearing memristor M D with CLR and by‘programming’ it with the same V prog and V hold at the same frequency f rep = 1/(T prog +T hold ) for C number of cycles. A part of the decoder logic appears in the dashed box in Fig. 6 labelled ‘decoding’. A down counter (not shown), initialized to C, is used to count the number of clock cycles. After decoding, V hold - V DL , where V DL is the voltage drop across R DL , divided by the current gives the corresponding encoded resistance within quantization limits. C. Security and Physical Uncloneability: The circuit architecture provides a certain level of inherent security by virtue of non-linear encoding. The encoded value C is a function of VW, Tprog, Thold, and MD itself. Hence, it is extremely challenging to guess what resistance or voltage C represents without having full knowledge of these quantities. Additionally, obtaining access to an almost exact matching memristor to M D provides further challenge and difficulty. The architecture also provides physical uncloneability by virtue of non-linearity as well as its sensitivity to process and parametric variations. As revealed by experimental results, the non-linear code depends heavily on the physical parameters of the memristor M D , e.g. the length dimension D, threshold voltage, etc. Any small variations in these are amplified by the counting based encoding mechanism and results in different codes (Fig. 7). Hence, any two fabricated chips are likely to produce different codes for the same input voltage/resistance thereby making it very hard to clone. While this architecture is geared towards replicating memristors, it can also be used for non-linear encoding/decoding and for Challenge-Response-Pair (CRP) based authentication. Instead of memristor M S , in Fig. 6 V INS can be an input voltage serving as a challenge. After encoding, the contents of the counter can serve as a unique non- linear response. Additionally, this response will vary from chip to chip owing to its physical uncloneability thereby also offering provisions for chip identification/tagging. The analogue input voltage at V INS can be obtained from a lightweight encryption hardware or a hash function generator, e.g. a linear feedback shift register, for added security. In the preceding embodiments of the invention, the memristor M D is initialized to be in a low-resistance state R ON and the application of voltage pulses progressively increases the resistance towards the high-resistance state R OFF , until a defined condition is satisfied. However, alternate embodiments of the invention can equally operate by the memristor M D being initialized to be in a high-resistance state R OFF and then applying voltage pulses (of the opposite polarity to that in the preceding embodiments) to negatively incrementally change the resistance towards the low- resistance state R ON , until a defined condition is satisfied (for example as detected by a comparator with input terminals swapped over relative to the preceding embodiments). Experimental Results: the memristors were coded using the above model, and the circuits were simulated. The 32nm technology node was used for the experiments with V prog = 41mV, V hold = 20mV, T prog = 2.5ns, R SL = R DL = 1K W, R on =1K W, R off =100K W, D=3nm, K off =5e-4, K on = -10, a on =3, a off =1, V on = -0.2 and V off =0.02. Table 1 shows the results as M S was varied from 10K W to 90K W. Clearly, the encoded value is non-linear in nature and maintains low percentage error in copying the resistance to the destination memristor M D .

The circuit architecture inherently provides a particular level of security by virtue of non-linear encoding as shown in Fig. 7. This figure also shows that a small variation in the physical parameters of memristor M D results in different analogue-to-digital transfer characteristics. Fig. 8 and Fig. 9(a) & 9(b) show the results of varying Vprog and Tprog respectively while keeping the other parameters fixed. As can be seen the behaviour of the architecture is non-linear through-out, i.e. it is non-linear for specific V prog or T prog and also for their differences. Embodiments of a novel memristor replicator circuit architecture, capable of replicating a source memristor to a destination memristor, have been disclosed herein. This architecture is also capable of generating non-linear digital codes and can provide additional security features and physical uncloneability. The architecture is lightweight and relies only on a few logic components, two comparators (one functioning as a level-shifter), and a counter. Experimental results show that this architecture is capable of outperforming existing designs in terms of chip area, power consumption and performance reliability. The architecture is extremely versatile and can be used in applications for backing up analogue data (e.g. sensed information) especially in remote sensor nodes, non-linear encoding, chip tagging/identification, as well as for preventing unauthorized chip fabrications.