An electronic comparison system includes input stages that successively provide bits of code words. One-shots connected to respective stages successively provide a first bit value until receiving a bit having a non-preferred value concurrently with an enable signal, and then provide a second, different bit value. An enable circuit provides the enable signal if at least one of the one-shots is providing the first bit value. A neural network system includes a crossbar with row and column electrodes and resistive memory elements at their intersections. A writing circuit stores weights in the elements. A signal source applies signals to the row electrodes. comparators compare signals on the column electrodes to corresponding references using domain-wall neurons and store bit values in CMOS latches by comparison with a threshold.
|
17. A system, comprising:
a crossbar array having a plurality of row electrodes, a plurality of column electrodes, and a plurality of resistive memory elements, each memory element connected to one of the row electrodes and one of the column electrodes;
a writing circuit configured to store selected weights in the resistive memory elements;
a signal source configured to apply a plurality of test electrical signals to respective ones of the row electrodes;
a reference source configured to provide one or more reference electrical signal(s);
a plurality of domain-wall neurons;
a plurality of latches; and
a plurality of comparators, each configured to compare an electrical signal on a respective one of the column electrodes to a corresponding one of the reference electrical signal(s), wherein each comparator includes:
a respective domain-wall neuron of the plurality of domain-wall neurons, the respective domain-wall neuron connected to the respective column electrode and to the reference source; and
a latch of the plurality of latches, the respective latch configured to compare an output of the respective domain-wall neuron with a selected threshold and store a respective bit value according to the result of the comparison,
wherein:
the reference source includes:
a reference controller programmed to sequence through a selected number of bits, starting with a most-significant bit of the selected number of bits; and
a plurality of reference circuits, each configured to provide one of the reference electrical signal(s) to a respective one of the comparators;
each reference circuit includes:
a register configured to hold respective values for the selected number of bits; and
a signal generator that provides the respective one of the reference electrical signals in response to the values in the register; and
the reference controller is configured to successively update the bits of each of the registers in the sequence according to the stored bit value in the respective one of the comparators.
1. A system, comprising:
a crossbar array having a plurality of row electrodes, a plurality of column electrodes, and a plurality of resistive memory elements, each memory element connected to one of the row electrodes and one of the column electrodes;
a writing circuit configured to store selected weights in the resistive memory elements;
a signal source configured to apply a plurality of test electrical signals to respective ones of the row electrodes;
a reference source configured to provide one or more reference electrical signal(s), each of the reference electrical signal(s) comprising a respective reference current or a respective reference voltage;
a plurality of domain-wall neurons;
a plurality of latches; and
a plurality of comparators, each configured to compare an electrical signal on a respective one of the column electrodes to a corresponding one of the reference electrical signal(s), wherein each comparator comprises:
a respective domain-wall neuron of the plurality of domain-wall neurons, the respective domain-wall neuron connected to the respective column electrode and to the reference source; and
a latch of the plurality of latches, the respective latch configured to compare an output of the respective domain-wall neuron with a selected threshold and store a respective bit value according to the result of the comparison,
wherein:
the reference source comprises:
a reference controller programmed to sequence through a selected number of bits, starting with a most-significant bit of the selected number of bits; and
a plurality of reference circuits, each configured to provide one of the reference electrical signal(s) to a respective one of the comparators; each reference circuit comprises:
a register configured to hold respective values for the selected number of bits; and
a signal generator that provides the respective one of the reference electrical signals in response to the values in the register; and
the reference controller is configured to successively update the bits of each of the registers in the sequence according to the stored bit value in the respective one of the comparators.
2. The system according to
receive the respective stored bit values of the comparators;
determine updated weights using the selected weights, the test electrical signals, and the received bit values; and
cause the writing circuit to store the updated weights in the resistive memory elements.
3. The system according to
4. The system according to
5. The system according to
6. The system according to
7. The system according to
receive the respective bit values in the registers;
determine updated weights using the selected weights, the test electrical signals, and the received bit values; and
cause the writing circuit to store the updated weights in the resistive memory elements.
8. The system according to
a plurality of one-shots connected to respective ones of the input stages to successively receive the bits of the registers, starting with most-significant bits thereof, wherein each one-shot is configured to successively provide a first bit value until receiving a bit having a non-preferred value concurrently with an enable signal, and then to provide a second, different bit value; and
an enable circuit connected to the outputs of the one-shots and configured to provide the enable signal if at least one of the one-shots is providing the first bit value.
9. The system according to
receive an input vector and a plurality of test vectors;
operate the writing circuit to store values from each of the test vectors in the resistive memory elements directly connected to a respective one of the column electrodes;
operate the signal source to apply the test electrical signals corresponding to the input vector;
determine which one(s) of the test vectors satisfy a selected criterion with respect to the input vector using the outputs of the one-shots.
10. The system according to
11. The system according to
a node selectively carrying the enable signal;
a precharge circuit configured to precharge the node to a signal level different from the enable signal; and
a modification circuit configured to provide the enable signal on the node in response to the first bit value from at least one of the one-shots.
12. The system according to
the precharge circuit comprises a pullup;
the discharge circuit comprises respective selective pulldowns controlled by the outputs of respective ones of the one-shots;
the enable signal corresponds to a low signal level of the node; and
the signal level different from the enable signal corresponds to a high signal level of the node.
13. The system according to
14. The system according to
15. The system according to
individual ones of the one-shots comprise AND gates and first and second D flip-flops (DFFs) enabled by the enable signal;
the output of the first DFF and the input of the first DFF are connected as the inputs of the AND gate; and
the output of the AND gate is connected to the input of the second DFF.
16. The system according to
determine that the output of the second DFF is the second, different bit value and the enable signal is provided; and
in response, set the input of the first DFF to the non-preferred value.
18. The system according to
receive the respective bit values in the registers;
determine updated weights using the selected weights, the test electrical signals, and the received bit values; and
cause the writing circuit to store the updated weights in the resistive memory elements.
19. The system according to
a plurality of one-shots connected to respective ones of the input stages to successively receive the bits of the registers, starting with most-significant bits thereof, wherein each one-shot is configured to successively provide a first bit value until receiving a bit having a non-preferred value concurrently with an enable signal, and then to provide a second, different bit value; and
an enable circuit connected to the outputs of the one-shots and configured to provide the enable signal if at least one of the one-shots is providing the first bit value.
20. The system according to
|
This application is a continuation of U.S. patent application Ser. No. 15/334,649, filed Oct. 26, 2016, which is a divisional of U.S. patent application Ser. No. 14/287,701, filed May 27, 2014, the entirety of each of which is incorporated herein by reference.
This invention was made with Government support under Contract No. HR0011-13-3-0002 awarded by the Defense Advanced Research Projects Agency. The government has certain rights in the invention.
The present application relates to electronic systems, and particularly to such systems for performing comparisons of signals or data.
In recent years several device solutions have been proposed for fabricating nano-scale programmable resistive elements, generally categorized under the term “memristor.” Of special interest are those which are amenable to integration with state of art CMOS technology, like memristors based on Ag—Si filaments. Such devices can be integrated into metallic crossbars to obtain high density resistive crossbar networks (RCN; also referred to as “resistive crossbar memory,” RCM).
The substantially continuous range of resistance values obtainable in memristors 130 can facilitate the design of multi-level, non-volatile memory. The RCN technology permits combining memory with computation. RCNs can be used for a large number of non-Boolean computing applications that involve patter-matching. Note that, the class of non-Boolean pattern-matching computations, a prospective application of RCN technology, is inherently approximate and have relaxed precision constraints. Such applications employ memory-intensive computing that can involve correlation of multidimensional input data with a large number of stored patterns or templates, in order to find the best match. Use of conventional digital processing techniques for such tasks incurs prohibitively high energy and real-estate costs, due to the number of computations involved. RCNs can be used for this class of associative computation. Owing to the direct use of nano-scale memory array for associative computing, RCNs can provide a very high degree of parallelism, and can reduce or eliminate the overhead due to memory reading.
Associative computing with RCNs is largely analog in nature, as it involves evaluating the degree of correlation between inputs and the stored data. As a result, many prior schemes for associative hardware using RCNs perform processing using, e.g., analog CMOS circuits or analog operational amplifiers (for current-mode processing). However, use of multiple analog blocks for large scale RCNs may lead to high static power consumption. This can eclipse the potential energy benefits of RCN for non-Boolean computing. Moreover, with technology scaling, the impact of process variations upon analog circuits becomes increasingly more prominent, resulting in lower resolution for signal amplification and processing. This limits scalability of analog approaches. Hence, the conventional analog circuits may fail to exploit the RCN technology for energy efficient, non-Boolean computing.
A prior scheme for finding data in an RCN correlated with a test input involves a digital or mixed-signal CMOS “winner-take-all” (WTA) circuit. The RCN provides correlation values between stored vectors and input data. The WTA is used to identify the maximum (or minimum) among a the correlation values. WTAs are used in some pattern matching applications to find the maximum (minimum) among the outputs of a distance-evaluation matrix.
Tree 230 includes approximately N pairwise comparators 240 (“WTA-2”; details shown in the inset). Schemes using digital rather than current comparisons require each comparator 240 be an m-bit comparator. Comparators 240 are arranged in a binary tree structure. Each comparator 240 computes the winner (larger or smaller) between two of its input and passes the larger (smaller) value to the next stage of nodes. With increasing number of inputs to the WTA, the numbers of stages and nodes in the binary WTA tree 230 increase, leading to larger delay and area. Therefore the area required increases steeply, and the time required also increases steeply.
In general, the use of such analog WTA circuits leads to large static power consumption. In fact, the power consumption of an analog WTA unit can be several times larger than the RCN itself. Moreover, the performance of such current-mirror based circuits is limited by random mismatches in the constituent transistors and other non-idealities, e.g., channel length modulation, that introduce mismatch in different current paths. In order to maintain a sufficiently high resolution, larger transistor dimensions (both length as well as width) and hence, larger cell area is needed. This is evident from some recent designs that used scaled technology but with long channel lengths. This leads to increased parasitic capacitances and thus lower operating frequency for a given static power. Higher frequency and resolution can be achieved at the cost of increased input currents and thus larger power consumption. Special techniques to enhance the precision of current mirrors have been proposed in literature, but they introduce significant overhead in terms of power consumption and area complexity. Voltage-mode processing can also be employed in an RCN; however, it can incur additional overhead due to current to voltage conversion and subsequent amplifications. This can incur larger mismatch, non-linearity and power consumption. Digital processing can also be used by placing analog-to-digital converters (ADCs) in the input stage 220, but a full tree 230 of m-bit digital comparators 240 is then required, at considerable cost in area. Accordingly, conventional mixed-signal CMOS design techniques may not be able to leverage the emerging nano-scale resistive memory technology for memory based computing.
There is, therefore, a need of an improved WTA circuit and improved ways of comparing and storing values.
The above and other objects, features, and advantages of the various aspects will become more apparent when taken in conjunction with the following description and drawings wherein identical reference numerals have been used, where possible, to designate identical features that are common to the figures, and wherein:
The attached drawings are for purposes of illustration and are not necessarily to scale.
According to various aspects, there is provided an electronic comparison system, comprising:
According to various aspects, there is provided a neural network system, comprising:
Various embodiments advantageously provide comparison of signals with reduced power and die-area consumption. This can permit associative memories and neural networks to be used in a wider range of applications.
The above is intended only to provide a brief overview of subject matter disclosed herein according to one or more illustrative embodiments, and does not serve as a guide to interpreting the claims or to define or limit scope, which is defined only by the appended claims. The above is provided to introduce an illustrative selection of concepts in a simplified form that are further described below. The above is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter. The claimed subject matter is not limited to implementations that solve any or all disadvantages noted in the Background.
Throughout this description, some aspects are described in terms that would ordinarily be implemented as software programs. Those skilled in the art will readily recognize that the equivalent of such software can also be constructed in hardware, firmware, or micro-code. Because data-manipulation algorithms and systems are well known, the present description is directed in particular to algorithms and systems forming part of, or cooperating more directly with, systems and methods described herein. Other aspects of such algorithms and systems, and hardware or software for producing and otherwise processing signals or data involved therewith, not specifically shown or described herein, are selected from such systems, algorithms, components, and elements known in the art. Given the systems and methods as described herein, software not specifically shown, suggested, or described herein that is useful for implementation of any aspect is conventional and within the ordinary skill in such arts.
Various aspects use low-voltage, fast-switching, magneto-metallic ‘spin-neurons’ for ultra low-power non-Boolean computing with resistive crossbar networks (RCNs). Herein is described, e.g., the design of analog associative memory for face recognition using an RCN. Substituting conventional analog circuits with spin-neurons according to various aspects can achieve ˜100× lower power than an analog RCN+WTA system. Various aspects are ˜1000× more energy-efficient than a 45 nm-CMOS digital ASIC. These improvements can significantly expand the realm of applications of RCN-based computational hardware.
Referring back to
When input voltages or currents are applied to one or more of the row electrodes 110, e.g., when currents are applied by current source 105, current flows in each column electrode 120, as represented graphically by the dotted arrows. Each column electrode 120 can be connected to a readout circuit. An example readout circuit is shown connected to the rightmost column electrode 120 and includes ammeter 140 connecting that column electrode 120 to ground (or another voltage reference). The current measured by ammeter 140, into or out of column electrode 120 or, in general, the jth column electrode 120, can be visualized as the dot product of the inputs Vi and the cross-bar conductance values gij. Hence, an RCN can directly evaluate correlation between an analog input vector and a number of stored patterns. This technique can be exploited in evaluating the degree of match (DOM) between an input and the stored patterns, the best match being the pattern corresponding to the highest magnitude of correlation ΣiVigij.
In each column, the analog vector of a pattern is stored in the resistive memories. To compare an analog test vector to each pattern, successive elements of the test vector are applied to successive ones of the row electrodes 110. Each column electrode 120 will then carry an analog representation of the dot product of the test vector with the corresponding elements of the pattern stored in the memristors 130 connected to that column electrode 120.
As noted above, WTA circuits can be connected to the outputs of RCN 100 to determine which column electrode 120 is carrying a signal indicative of the highest (lowest) correlation. Conventional WTA circuits can be very expensive in area, time, and power consumption. Various aspects herein overcome these limitations using non-CMOS device technologies that can provide a better fit for the required non-Boolean, analog functionality, as compared to CMOS switches. These device technologies can be CMOS compatible.
Spin neuron 300 is a domain-wall neuron (DWN) including a thin and short (e.g., 20×60×3 nm3) nano-magnet domain 302 connecting two anti-parallel nano-magnet domains of fixed polarity, domain 301 and domain 303. Domain 301 forms the input port, whereas, domain 303 is grounded. In general, input electron current enters the device 300 through domain 301 and exits through domain 302, or vice versa. Spin-polarity of the DWM free-layer (domain 302) can be written parallel to domain 301 or domain 303 by injecting a small electron current along domain 302 from domain 301 to domain 303 or domain 303 to domain 301, respectively. Thus, the DWN can detect the polarity of the current flow at its input node. Hence it acts as a low voltage and compact current-comparator that can be employed in energy efficient current-mode data processing. Dimension 394 can be, e.g., 40 nm. Dimension 392 can be, e.g., 60 nm. Dimension 391 can be, e.g., 20 nm.
A magnetic tunnel junction (MTJ) formed between a fixed polarity magnet 304 and domain 302 is used to read the state of domain 302. The effective resistance of the MTJ is smaller when domain 304 and domain 302 have the same spin-polarity (Rparrallel˜5 kΩ) and larger when domains 302, 304 have opposite spin polarity (Ranti-parrallel˜15 kΩ).
A spin device operates as a compact current-mode comparator. The magnetic spin states are identified by up or down arrows. Up and down are stable. Domains 301, 303 have fixed, opposite spins, in this example down in domain 301 and up in domain 302. Domain 302 is free and can have either spin. If electrons are injected into domain 301 and a path exists through domain 302 and domain 303 and then out of the device, electrons flow along that path. Those electrons acquire a spin of domain 301 and carry that spin into domain 302, so domain 302 switches to have spin parallel to the spin of domain 301. This is because a fixed magnetic domain acts as a spin polarizer. Similarly, for electron current flow from domain 303 through domain 302 to domain 301, domain 302 changes to have spin parallel to domain 303. The resistance of the write path can be, e.g., ˜1000Ω.
To detect the state of domain 302, detection magnetic domain 304 is used. Domain 304 has fixed spin, in this example up. Tunneling barrier 305, e.g., an oxide barrier, separates domain 302 and domain 304 so they form a magnetic tunnel junction (MTJ). The resistance to current flow across barrier 305 is lower when domain 302 and domain 304 have same spin direction than when they have opposite spin directions, e.g., by a factor of 2×-3×.
In an example, current is injected into domain 304 and the current out of domain 303 (or domain 301) is measured to determine the spin state of domain 302. The current is small enough that it does not disturb domain 302 out of equilibrium. For reading, current can be passed through domains 302, 304 in either direction.
Robustness to read disturb can be improved by the appropriate design choice of ml. Notably, the branch with effective lower resistance draws comparatively higher read current (Ihigh). By setting the polarity of domain 304 parallel to domain 303, for the parallel configuration of the DWN MTJ (and hence lower resistance) the free layer (domain 302) is already parallel to domain 303 and hence a larger transient current does not disturb domain 302. This technique facilitates lowering of DWN threshold to physical limits without reduced concern of read-disturb. Apart from device scaling, the DWN threshold can also be lowered by manipulating other device parameters, like the anisotropy energy (Eb) of the magnet, or the use of spin-orbital coupling in the form of Spin Hall Effect or Rashba coupling.
In various aspects, current-driven heating in the magneto-metallic spin-neuron 300, and particularly in the thin and short central free domain 302 of the device, is reduced by increasing contact area of the two fixed domains 301, 303, or by shortening the free domain 302. In various aspects, the maximum current input through spin neuron 300 is below 40 μA.
Recent experiments on spin-torque devices have demonstrated high-speed switching of scaled nano-magnets with small currents. Such magneto-metallic devices can operate at low terminal voltages and can implement current-mode summation and comparison operations, at low energy cost. Such current-mode spin switches or ‘neurons,’ e.g., spin neuron 300, can be exploited in energy efficient analog-mode computing. Herein is presented a design of RCN based associative memory using such “spin neurons”. In various aspects, the spin neurons form the core of hybrid processing elements (PE) that are employed in RCN based associative modules and can achieve two orders of magnitude lower computation energy as compared to conventional mixed-signal (MS) CMOS circuits. Application of spin neurons to RCN is useful as a non-Boolean computation tool. Further details of RCNs with DWNs are given below with reference to
An electrical signal is applied across input 501 and reference 503 to set the state of the spin neuron 300. E.g., a fixed current from a current source can be applied to domain 301, and a source/sink (e.g., GND) can be connected to reference 503. The state of domain 302 will be set to that of domain 301 for electron current into domain 301, and to that of domain 303 for electron current out of domain 301 (i.e., from reference 503 into domain 303).
To read the state of the MTJ, one of the load branches of latch 500 is connected to the MTJ region 304 of spin neuron 300. The other load branch is connected to a reference MTJ 510 whose resistance is midway between the up-spin and down-spin resistances of the MTJ in the spin neuron 300. The latch 500 compares the resistance between its two load branches through transient discharge currents. In an example using Vdd as the reference, after setting the state of domain 302, the transient evaluation current is applied and flows from domain 303 to domain 302. The current required for the DW motion increases proportional to the switching speed. Since the transient read current flows only for a short duration, it does not disturb the state of domain 302. This advantageously converts the two resistance states into conventional CMOS logic levels on the “out” and “outb” nodes, and permits synchronizing changes in those levels with a logic clock (“clk”).
Similar spin-device structures with CMOS have been used for memory applications. However, such devices have larger energy barriers, threshold currents, and dimensions. Using a separate memory element advantageously permits scaling latch 500 and spin neuron 300, providing significant power and area savings in analog-mode non-Boolean computing.
The input digital value can have any selected bit depth. Any type of DAC 610, voltage or current, can be used. In various aspects, since associative computing can be approximate in nature, a lower bit depth of the DAC can be used, or wider process variation permitted, than in prior schemes using non-associative comparison. Multiple rows are present, each driven by one DAC; the other rows are omitted for clarity. Memristors 130 connect row electrodes and column electrodes. Therefore the columns carry the dot products, as noted in
Three spin neurons (DWNs) 300 are shown with their input (domain 301 terminals) connected to respective column lines of the RCN 100. A DC voltage, V, is applied to the domain 303 terminals of all the DWNs (access transistors are not shown for simplicity). Owing to the small resistance of the DWN devices, this effectively biases output ends of the RCN (connected to domain 301 terminals) to the same voltage. Each spin neuron 300 acts as a current-mode comparator. This is further discussed below with reference to
As a result, the current input through a memristor connecting the ith input bar to the jth output bar (in-plane) can be written as I(i,j)=ΔV·GT(i)GST/(GT(i)+GST)G(i,j)/GST), where, G(i,j) is the programmed conductance of the memristor. For improved dot-product evaluation, the current I(i,j) can be proportional to the product of GT (i.e., the DTCS conductance, proportional to the input data) and G(i,j).
In various aspects, voltage signals are applied to the row electrodes 110 instead of currents. The applied voltage signals, e.g., the sources of drive transistors, can be connected to a voltage reference. The voltage reference can be selected with respect to the voltage on reference 503 of the DWNs 300 so that appropriate currents will be developed across memristors 130 and latched by latch circuits 500 (
The range of current output from the DTCS-DAC needed can be selected based on the choice of WTA resolution. If the DWNs are designed to have a threshold of ˜1 μA, the maximum value of the dot-product output must be greater than 32 μA for a 5 bit resolution for the WTA. This in turn, translates to the required range of DAC output current. For 128-element input vectors and 5-bit resolution for the WTA, the maximum value for DAC output required can be ˜10 μA. This range of current can be obtained using different combination of DTCS sizing and the terminal voltage, ΔV. For a required amount of DAC current, ΔV can be reduced to reduce the static power consumption in the RCN. The minimum value of ΔV is limited mainly by the parasitic voltage drops that degrade the detection margin and hence the matching accuracy. For an example simulated design (RCN of size 128×40), a ΔV of 30mV was found to be enough to preserve acceptable matching accuracy. Various aspects effectively bias the RCN across a small terminal voltage (ΔV), thereby ensures that the static current flow in RCN takes place across a small terminal voltage of ˜30 mV (between two DC supplies V and V+ΔV). As noted above, the application of DWN in the RCN offers the benefit of low voltage operation and reduces the static power consumption in a current-mode, analog computing mode.
When a plurality of dot products is available, e.g., as discussed above with reference to
A plurality of one-shots 1020 are connected to respective ones of the input stages 1010 to successively receive the bits of the respective code words therefrom. Each one-shot 1020 is configured to successively provide a first bit value, e.g., 1, until receiving a bit having a non-preferred value, e.g., 0, concurrently with an enable signal (“en”), and then to provide a second, different bit value, e.g., 0. To locate smaller values rather than larger, the non-preferred value can be 1. The first and second bit values can be interchanged with suitable changes to the circuit, e.g., adding inverters or changing the polarity of gate inputs or outputs.
An enable circuit 1030 is connected to the outputs of the one-shots 1020. The enable circuit 1030 is configured to provide the enable signal if at least one of the one-shots 1020 is providing the first bit value. Enable circuit 1030 can provide the enable signal by driving an output to a signal level corresponding to enabling. In this example, the enable signal is a high-logic-level output from the enable circuit 1030, and enables D flip-flops (DFFs) 1023, 1026 (for clarity, not all are labeled).
In the example shown, enable circuit 1030 includes a node 1032 selectively carrying the enable signal. The enable signal can have a different representation inside the enable circuit 1030 than outside. In this example, node 1032 carries a low logic level when enabled, and inverters 1034 (for clarity, not all are labeled) produce the desired high logic level to enable DFFs 1023, 1026. In another example, inverters 1034 or other components can be connected between enable circuit 1030 and one-shots 120.
Enable circuit 1030 also includes a precharge circuit 1036 configured to precharge the node 1032 to a signal level different from the enable signal, here a high logic level. The illustrated precharge circuit 1036 includes a pullup (e.g., a PFET) that pulls node 1032 to VDD (not providing the enable signal) when the PRECHG control input is low. Enable circuit 1030 in this example further includes a modification circuit 1038 (for clarity, not all are labeled) configured to provide the enable signal on the node 1032 in response to the first bit value from at least one of the one-shots. In this example, node 1032 is connected to a plurality of modification circuits 1038, each including a selective pulldown (e.g., an NFET) that pulls node 1032 to GND (providing the enable signal) whenever the output of a respective one-shot 1020 is outputting a high logic level. In this example, the enable signal corresponds to a low signal level of the node, and the signal level different from the enable signal corresponds to a high signal level of the node.
In the example shown, each of the one-shots 1020 includes an AND gate 1029 (for clarity, not all are labeled) and the first and second D flip-flops (DFFs) 1023, 1026 enabled by the enable signal. The output of the first DFF 1033 and the input of the first DFF 1033 are connected as the inputs of the AND gate 1029. The output of the AND gate 1029 is connected to the input of the second DFF 1026.
In this example, the input stages 1010 include output registers of successive-approximation (SAR) ADCs. Input data in SAR registers 1010 is provided to a chain of flip-flops 1023, 1026. As the number N of inputs increases, hardware size increases linearly (one input stage 1010 and one-shot 1020 per input). As bit width m increases, hardware size also grows only linearly (one bit in each SAR register and each DFF 1023, 1026 per input bit). The number of DFFs 1023, 1026 does not grow with m. In a simulated configuration, at m=6 the power consumption is similar to comparative schemes; for m>6, the power consumption of the inventive hardware is lower than the comparative hardware.
In various aspects, the WTA (including one-shots 1020 and enable circuit 1030) operates in parallel with a SAR ADC, the output registers of which are the registers in the input stage 1010. This system can be pipelined if desired. The WTA can also be used on digital bit-serial inputs, e.g., digitally-computed dot product or other correlation values.
The second half of the WTA algorithm can operate in parallel with the first (i.e., the ADC operation). In various aspects, results of the first ADC conversion step obtained from the SAR are directly transferred to tracking registers (DFFS 1023) through the pass-gate multiplexing switch (PGS). Thus that, at this stage, all the DFFs 1023 with a high output correspond to the ADC results with MSB=‘1’. In the second cycle operation, the detection line (node 1032) is first pre-charged to Vdd and the set of discharge registers (DFFs 1026), driving it are cleared to low output. Next, if for at least one of the SAR's with high MSB, the second MSB also evaluates to ‘1’, the corresponding DFF 1026 is driven high by the associated AND gate 1029. Thus, node 1032 is discharged to ground and the write of all the DFFs 1023 is enabled.
All the DFFs 1023 for which both, first and second MSB's evaluated to ‘1’, stay high, but the rest are set to low. In an example, if at least one of the SAR's (5-bit) evaluated to ‘11000’ in the second conversion cycle, node 1032 is discharged and DFFs 1023 with SAR value ‘11000’ stay high, while those with SAR value ‘10000’ are set to low. In case all SAR's evaluated to ‘10000’ in the second cycle, no change is made to the values in DFFs 1023. Thus, at the end of conversion cycle, if only one of the DFFs 1023 remains high-output, it is identified as the winner and the corresponding SAR value is effectively the degree of match (DOM).
The winner-tracking circuitry described above is fully digital and does not consume any static power (except for leakage). Moreover, each one-shot 1020 can use common control lines (“CTL”). This permits readily scaling with increases in N or m.
The overall power consumption in various aspects is drastically reduced as compared to a mixed-signal (MS) CMOS realization, due to two main reasons. Firstly, the power consumption in the RCN itself is significantly lowered due to low voltage operation, and secondly, the fully digital WTA structure avoids any additional static power consumption. Note that various WTA schemes implemented in MS-CMOS would result in large power consumption, resulting from conventional ADC's. The low-voltage current-mode switching characterisitcs of DWN however, provides a compact and low power digitization technique. Various aspects herein can be implemented in a standard digital CMOS process.
In various aspects, each cycle, ones of the inputs that can be determined not to be the winner based on the current bit position i are deselected (On goes low). Input(s) that remain selected after all cycles are the winner or ties for the winner.
In various aspects the WTA operates in parallel with the SAR-ADC and hence operates on the successive bits of SAR-outputs. Referring to
A fully parallel bit-serial digital Winner Take All (WTA) circuit according to various aspects described above can advantageously identify the largest among Nm-bit words in m cycles, even if N is a large number. The time taken by various WTA circuits herein to identify the maximum among the m-bit inputs is independent of the number of inputs N. This advantageously provides fast, low power WTA operation compared to prior schemes. Various WTAs herein can be combined with bit-serial data processing circuits such as bit-serial digital hardware for, e.g., Hamming-distance calculation or Successive Approximation Register Analog to Digital conversion (SAR-ADC); various of these combinations can be used in pattern matching hardware.
The operation of various WTAs herein is based on a new algorithm for detecting a winner among large number of parallel bit-serial inputs. The WTA can include a digital controller circuit and a digital logic block.
Various aspects can determine the highest of the N input values or the lowest, by interchanging 1 and 0 in the discussion above. In various aspects, a clock-driven pre-discharge circuit is operated by the logic and controller. An example WTA starts comparing N m-bit inputs from the MSB position and proceeds towards the LSB in a total of m cycles. (Various aspects include one or more additional cycles for latency or pipelining, but the number of additional cycles does not vary with N.) In each cycle, any inputs determined to be smaller than the current maximum (e.g., any input with a 0 bit in the same position as a 1 bit in another input) (or larger, e.g., with a 1 bit where others have a 0 bit) are discarded from the comparison using the control and logic circuits. Inputs that are not clearly smaller (larger) than another input in the bit position under test are considered during subsequent stage(s) of comparison, where the next lower bit of significance, then the next, . . . , down to the LSB, is compared using the inventive charge-discharge circuit. The total process takes m+O(1) cycles for m-bit comparison and hence the total delay is independent of the number of WTA inputs N.
Each ADC 1320 includes input terminal 1330 and register 1310 connected to the respective input stage 1010 to successively provide the bits. Register 1310 can alternatively be part of input stage 1010.
Programmable reference 1340 provides a reference electrical signal in response to the value in the register 1310. Programmable reference 1340 can include, e.g., a binary-weighted transistor digital-to-analog converter (DAC) responsive to the value in the register to provide the reference electrical signal. Other DACs noted above with reference to
Comparator 1350 is configured to compare an electrical signal at the input terminal 1330 to the reference electrical signal and adjust a bit in the register 1310 indicated by the controller 1386. Comparator 1350 includes a domain-wall neuron connected to the input terminal 1350 and the programmable reference 1340 and a CMOS latch (
In various aspects, the system also includes crossbar array 100 having a plurality of row electrodes 110, a plurality of column electrodes 120, and a plurality of resistive memory elements 130, each memory element 130 directly connected to one of the row electrodes 110 and one of the column electrodes 120; and a signal source 1342 configured to apply a plurality of test electrical signals to respective ones of the row electrodes 110. The column electrodes 120 are electrically connected to the input terminals of the respective ADCs 1320 in this example.
The “RCB network” is the column lines. Triangles are spin neurons. Outputs of neurons drive DTCS (binary-weighted) values. Value in SAR register is converted to a current by the DTCS, then compared to the dot product output. P is a Pass gate that modifies SAR value. E.g., if SAR is higher, reduce SAR.
The circuit realization of this operation using DWNs is shown in
The DWN device essentially acts as a low voltage, high speed, high resolution current-mode comparator and hence can be exploited in digitizing analog current levels at low energy cost. Various WTA techniques, algorithmically depicted in
The first half of the flowchart is an example algorithm for successive approximation register (SAR) ADC. To begin the conversion, the approximation register (that stores the digitization result) is initialized to the midscale (i.e., all but the most significant bit is set to 0). At every cycle a digital to analog converter (DAC) produces an analog level corresponding to the digital value stored in the SAR (step 1425) and a comparator compares it with the analog input using an analog comparator (step 1430, 1435). If the comparator output is high, the current bit remains high (step 1440), else it is turned low (step 1445) and the next lower bit is turned high. The process is repeated for all the bits. At the end of conversion, the SAR stores the digitized value corresponding to the analog input.
The second half of the WTA algorithm operates in parallel with the first (i.e., the ADC operation), as described above with reference to
Simulations for MS-CMOS designs show that the power consumption for the WTA unit dominates the total power. On the other hand, for inventive techniques herein, there is negligible static power consumption in the WTA operation. However, since, the static power consumption in RCN is also significantly lowered, it becomes comparable to the dynamic switching power in the WTA. This is evident from the trend shown in
In order to compare the performance of various aspects with state of the art mixed signal (MS) CMOS design, two different analog CMOS designs were simulated. These designed employed binary tree WTA circuits according to two prior schemes, using 45 nm CMOS technology models. The first design is the standard BT-WTA, whereas, the second is a recently proposed modification. A third 45 nm digital CMOS design was also simulated and employed multiply and accumulate operations for evaluating the correlation between the 5-bit 128 element digital templates and input features of the same size.
A micro-magnetic simulation model was used for DWN. The model that was calibrated with experimental data on DWMs. Effect of thermal fluctuation and device heating were also considered for characterizing the device. Behavioral model based on statistical characteristics of the device were used in SPICE simulation to assess the system level functionality. Some design parameters used are listed in Table 1.
TABLE 1
Design parameters
Template
16 × 8,
Magnet
NiFe
size
5-bit
material
# template
40
free-layer
3 × 33 × 60 nm3
comparator
5-bit
size
resolution
Ms
800 emu/cm3
Input data
100 MHz
Ku2V
20 KT
rate
crossbar
1 Ω/μm,
Ic
1 μA
parasitics
0.4 fF/μm
Tswitch
1.5 ns
Crossbar
Cu
Cross-bar
Cu
material
material
memristor
Ag-aSi
Resistance
1 kΩ to 32 kΩ
material
range
The plot in
Table 2 compares a spin-CMOS design according to an aspect with prior MS-CMOS designs, and with the 45 nm digital CMOS design. The device parameters for the design used for Table 2 are given in Table 1. The results shown are for σVT=5 mV for minimum sized transistors. Results for three different WTA resolutions are given which show similar energy benefits of the inventive technique, even for smaller WTA resolution. Energy is given in relative units, and Table 2 compares power numbers and performance for the dot product operation and the WTA together. For analog designs, lower resolution constrain allows smaller transistors and hence better performance. Power consumption for the DWN based design, also reduces with resolution. Lower WTA resolution allows smaller DAC currents, resulting in reduced static power and lower switched capacitance for the smaller WTA blocks, leading to reduced dynamic power.
Results for comparison with 45 nm digital hardware shows ˜1000× lower computing energy for the inventive technique. Note that, this comparison does not include the overhead due to memory read in the digital design. As discussed earlier, digital hardware in general prove inefficient for the class of computation considered herein. Also, the use of MS-CMOS circuits in RCN barely perform ˜10× better than the digital implementation and hence achieve far less energy efficiency as compared to inventive designs herein. Thus, low-energy analog computing using spin neurons can significantly enhance the prospect of RCN technology for computational hardware.
TABLE 2
Performance
spin-
45 nm
CMOS
Digital
PE
[ 18 ]
[ 17 ]
CMOS
Power
5-bit
65
μW
5.5
mW
8
mW
4
mW
4-bit
45
μW
2.9
mW
5.0
mW
2.8
mW
3-bit
32
μW
2.3
mW
3.2
mW
1.2
mW
Frequency
100
MHz
50
MHz
50
MHz
2.5
MHz
Energy
5-bit
1
160
215
2460
4-bit
1
140
221
2300
3-bit
1
155
210
1100
Inventive designs herein can achieve more than three orders of magnitude lower energy cost as compared to a dedicated digital hardware. The use of spin-torque neurons can therefore boost the prospects of RCN as a computation tool.
In a crossbar array 100, comprising or consisting of large number of memristors 130, write voltage applied across two cross connected bars (one row 110, one column 120) for programming the interconnecting memristor 130 can also results in sneak current paths through neighboring devices. This can disturb the state of unselected memristors. To overcome the sneak path problem, application of access transistors and diodes can be used. Methods for programming one memristor 130 at a time without access transistors can also be used. In this example, row electrodes 1910 are connected to row switches 1910 and column electrodes 120 are connected to column switches 1920. As long as only one of the row switches 1910 and one of the column switches 1920 is closed at a time, only one memristor 130 will be programmed.
In order to accomplish the write operation, a constant current can be injected into the selected memristor 130 and the voltage developed on the row electrode 110 is compared with a comparator threshold by comparator 1930. The threshold, in turn, is set proportional to the target resistance, by using a compact switched capacitor digital to analog converter (DAC) 1940. The current source 1950 is disconnected as soon as the accessed memristor 130 acquires the target resistance value. A lower value of write current results in slower ramp in the resistance value and hence, allows more precise tuning. Various memristive devices (including Ag—Si) exhibit a finite write threshold for an applied current/voltage, below which there is negligible change in the resistance value. As described above, application of spin-based neurons in RCN facilitates ultra-low voltage (and hence low current) operation of the memristors 130 for computing and hence, can achieve reduced read-disturb for the array.
The write precision in the method described above is mainly limited by random offset of the comparator 1930 and inaccuracy in the current source 1950 and the DAC 1940.
In various examples, components shown in
In a simulation, a resolution of 4% (5-bit) was chosen. Resolving ˜4% difference among the current-mode dot product results requires a precision of 5-bits for the detection unit, responsible for identifying the winning pattern. As described above with reference to
The patterns are analog, so an RCN and WTA can be used to determine whether a test image of an input face image matches any of the patterns. The analog patterns are stored in resistive memory. Input patterns of current or voltage are applied on the rows and the dot products of the input and each stored vector are received on the columns as currents or voltages. The resulting analog vector of currents or voltages can be digitized using a spin neuron and a SAR ADC. A WTA circuit running in parallel can then determine the closest match.
Various aspects can be useful for pattern-matching hardware. Some aspects match stored patterns with input data and select the winner among a large number of stored patterns. WTA circuits herein can lead to low power and compact designs for such pattern-matching hardware, which is of great interest in the field of cognitive computing. A WTA herein can be fabricated in a standard CMOS process. Patterns do not have to be face images. In an example, if a random image is input to the hardware, various aspects will still identify the ‘winning’ pattern. But if the degree of match (DOM) is lower than a predetermined threshold, the winner can be discarded, implying that the input image does not belong to the stored data set.
The basic associative memory module (AMM) unit herein, including an RCN, SAR ADC, and WTA, can be extended. For example, very large number of images can be grouped into smaller clusters that can be hierarchically stored in the RCN modules. Individual patterns of larger dimensions can also be paritioned and stored in modular RCN blocks. Various aspects are applicable to a wide class of non-Boolean computing architectures that also include different categories of neural networks. For instance, the spin-RCN based correlation modules presented in this work can provide energy efficient hardware solution to convolutional neural networks that are attractive for cognitive computing tasks, but involve very high computational cost.
Comparators 2230 are each configured to compare an electrical signal on a respective one of the column electrodes 120 to a corresponding one of the reference electrical signal(s). Each comparator 2230 includes a domain-wall neuron 300 connected to the respective column electrode 120 and the reference source 2216, as discussed above with reference to
In various aspects, processor 2286 is configured to receive the respective stored bit values of the comparators 2230 from the latches 500. Processor 2286 determines updated weights using the selected weights stored in the memristors 130, the test electrical signals, and the received bit values. This can be done using known neural-network training algorithms such as those described in U.S. Pat. No. 8,694,451, incorporated herein by reference, or other supervised, unsupervised, or reinforcement algorithms, including but not limited to gradient-descent algorithms, particle-swarm optimization, genetic algorithms, evolutionary methods, simulated annealing, or expectation-maximization or other mathematical optimization methods. Processor 2286 then causes the writing circuit to store the updated weights in the resistive memory elements. In this way, the neural network can improve its performance on classification tasks.
Various aspects use analog rather than digital outputs. In these aspects, reference source 2216 includes a controller 1386 (
The controller 1386 is configured to successively update the bits of each of the registers 1310 in the sequence according to the stored bit value in the respective one of the comparators 2230 (or 1350,
In various aspects, the reference source 2216 can then provide the digital values of registers 1310, e.g., N values, each with m bits, one for each column line 120, to processor 2286. Processor 2286 can then receive the respective bit values in the registers 1310, determine updated weights using the selected weights, the test electrical signals, and the received bit values, and cause the writing circuit 1900 to store the updated weights in the resistive memory elements 1300. In this way, processor 2286 can conduct neural network training as described above, but using analog outputs rather than digital. Processor 2286 can also use a combination of analog and digital outputs in neural-network training.
In view of the foregoing, various aspects provide lower-power, lower-area winner-take-all circuits and neural networks. A technical effect of various aspects is to receive input data and efficiently compare it to a set of known patterns.
Processor 2386 can implement processes of various aspects described herein, e.g., processes shown in
Processor 2386 can be or include one or more device(s) for automatically operating on data, e.g., a central processing unit (CPU), microcontroller (MCU), desktop computer, laptop computer, mainframe computer, personal digital assistant, digital camera, cellular phone, smartphone, or any other device for processing data, managing data, or handling data, whether implemented with electrical, magnetic, optical, biological components, or otherwise.
The phrase “communicatively connected” includes any type of connection, wired or wireless, for communicating data between devices or processors. These devices or processors can be located in physical proximity or not. For example, subsystems such as peripheral system 2320, user interface system 2330, and data storage system 2340 are shown separately from the data processing system 2386 but can be stored completely or partially within the data processing system 2386.
The peripheral system 2320 can include one or more devices configured to provide digital content records to the processor 2386. For example, the peripheral system 2320 can include digital still cameras, digital video cameras, cellular phones, or other data processors. The processor 2386, upon receipt of digital content records from a device in the peripheral system 2320, can store such digital content records in the data storage system 2340.
The user interface system 2330 can convey information in either direction, or in both directions, between a user 2338 and the processor 2386 or other components of system 2301. The user interface system 2330 can include a mouse, a keyboard, another computer (connected, e.g., via a network or a null-modem cable), or any device or combination of devices from which data is input to the processor 2386. The user interface system 2330 also can include a display device, a processor-accessible memory, or any device or combination of devices to which data is output by the processor 2386. The user interface system 2330 and the data storage system 2340 can share a processor-accessible memory.
In various aspects, processor 2386 includes or is connected to communication interface 2315 that is coupled via network link 2316 (shown in phantom) to network 2350. For example, communication interface 2315 can include an integrated services digital network (ISDN) terminal adapter or a modem to communicate data via a telephone line; a network interface to communicate data via a local-area network (LAN), e.g., an Ethernet LAN, or wide-area network (WAN); or a radio to communicate data via a wireless link, e.g., WiFi or GSM. Communication interface 2315 sends and receives electrical, electromagnetic or optical signals that carry digital or analog data streams representing various types of information across network link 2316 to network 2350. Network link 2316 can be connected to network 2350 via a switch, gateway, hub, router, or other networking device.
In various aspects, system 2301 can communicate, e.g., via network 2350, with a data processing system 2302, which can include the same types of components as system 2301 but is not required to be identical thereto. Systems 2301, 2302 are communicatively connected via the network 2350. Each system 2301, 2302 executes computer program instructions to carry out methods or processes noted above.
Processor 2386 can send messages and receive data, including program code, through network 2350, network link 2316 and communication interface 2315. For example, a server can store requested code for an application program (e.g., a JAVA applet) on a tangible non-volatile computer-readable storage medium to which it is connected. The server can retrieve the code from the medium and transmit it through network 2350 to communication interface 2315. The received code can be executed by processor 2386 as it is received, or stored in data storage system 2340 for later execution.
Data storage system 2340 can include or be communicatively connected with one or more processor-accessible memories configured to store information. The memories can be, e.g., within a chassis or as parts of a distributed system. The phrase “processor-accessible memory” is intended to include any data storage device to or from which processor 2386 can transfer data (using appropriate components of peripheral system 2320), whether volatile or nonvolatile; removable or fixed; electronic, magnetic, optical, chemical, mechanical, or otherwise. Example processor-accessible memories include but are not limited to: registers, floppy disks, hard disks, tapes, bar codes, Compact Discs, DVDs, read-only memories (ROM), erasable programmable read-only memories (EPROM, EEPROM, or Flash), and random-access memories (RAMs). One of the processor-accessible memories in the data storage system 2340 can be a tangible non-transitory computer-readable storage medium, i.e., a non-transitory device or article of manufacture that participates in storing instructions that can be provided to processor 2386 for execution.
In an example, data storage system 2340 includes code memory 2341, e.g., a RAM, and disk 2343, e.g., a tangible computer-readable rotational storage device such as a hard drive. Computer program instructions are read into code memory 2341 from disk 2343. Processor 2386 then executes one or more sequences of the computer program instructions loaded into code memory 2341, as a result performing process steps described herein. In this way, processor 2386 carries out a computer implemented process. For example, steps of methods described herein, blocks of the flowchart illustrations or block diagrams herein, and combinations of those, can be implemented by computer program instructions. Code memory 2341 can also store data, or can store only code.
Example Clauses
A: An electronic comparison system, comprising: a plurality of input stages, each configured to successively provide bits of a respective code word, starting with a most-significant bit thereof; a plurality of one-shots connected to respective ones of the input stages to successively receive the bits of the respective code words, wherein each one-shot is configured to successively provide a first bit value until receiving a bit having a non-preferred value concurrently with an enable signal, and then to provide a second, different bit value; an enable circuit connected to the outputs of the one-shots and configured to provide the enable signal if at least one of the one-shots is providing the first bit value.
B: The system according to paragraph A, wherein the enable circuit includes a node selectively carrying the enable signal, a precharge circuit configured to precharge the node to a signal level different from the enable signal, and a modification circuit configured to provide the enable signal on the node in response to the first bit value from at least one of the one-shots.
C: The system according to paragraph B, wherein the precharge circuit includes a pullup, the discharge circuit includes respective selective pulldowns controlled by the outputs of respective ones of the one-shots, the enable signal corresponds to a low signal level of the node, and the signal level different from the enable signal corresponds to a high signal level of the node.
D: The system according to any of paragraphs A-C, wherein the non-preferred value is zero.
E: The system according to paragraph D, wherein the first bit value is unity and the second, different bit value is zero.
F: The system according to any of paragraphs A-E, wherein each of the one-shots includes an AND gate and first and second D flip-flops (DFFs) enabled by the enable signal, the output of the first DFF and the input of the first DFF are connected as the inputs of the AND gate, and the output of the AND gate is connected to the input of the second DFF.
G: The system according to paragraph F, further including a gate configured to force the input of the first DFF to the non-preferred value if the output of the second DFF is the second, different bit value and the enable signal is provided.
H: The system according to any of paragraphs A-G, further comprising a controller programmed to sequence through a selected number of bits and a plurality of successive-approximation analog-to-digital converters (ADCs), wherein the each input stage successively receives the bits from a respective one of the ADCs and each ADC comprises: an input terminal; a register connected to the respective input stage to successively provide the bits; a programmable reference that provides a reference electrical signal in response to the value in the register; and a comparator configured to compare an electrical signal at the input terminal to the reference electrical signal and adjust a bit in the register indicated by the controller, wherein the comparator includes a domain-wall neuron connected to the input terminal and the programmable reference and a CMOS latch configured to compare an output of the domain-wall neuron with a selected threshold and store a bit value according to the result of the comparison.
I: The system according to paragraph H, wherein the programmable reference includes a binary-weighted transistor digital-to-analog converter (DAC) responsive to the value in the register to provide the reference electrical signal.
J: The system according to paragraph H or I, further including: a crossbar array having a plurality of row electrodes, a plurality of column electrodes, and a plurality of resistive memory elements, each memory element directly connected to one of the row electrodes and one of the column electrodes; and a signal source configured to apply a plurality of test electrical signals to respective ones of the row electrodes; wherein the column electrodes are electrically connected to the input terminals of the respective ADCs.
K: The system according to paragraph J, further including a writing circuit configured to store selected values in the resistive memory elements.
L: The system according to paragraph K, further including a controller configured to automatically: receive an input vector and a plurality of test vectors; operate the writing circuit to store values from each of the test vectors in the resistive memory elements directly connected to a respective one of the column electrodes; operate the signal source to apply the test electrical signals corresponding to the input vector; determine which one(s) of the test vectors satisfy a selected criterion with respect to the input vector using the outputs of the one-shots.
M: A neural network system, comprising: a crossbar array having a plurality of row electrodes, a plurality of column electrodes, and a plurality of resistive memory elements, each memory element directly connected to one of the row electrodes and one of the column electrodes; a writing circuit configured to store selected weights in the resistive memory elements; and a signal source configured to apply a plurality of test electrical signals to respective ones of the row electrodes; a reference source configured to provide one or more reference electrical signal(s); and a plurality of comparators, each configured to compare an electrical signal on a respective one of the column electrodes to a corresponding one of the reference electrical signal(s), wherein each comparator includes: a domain-wall neuron connected to the respective column electrode and the reference source; and a CMOS latch configured to compare an output of the domain-wall neuron with a selected threshold and store a bit value according to the result of the comparison.
N: The system according to paragraph M, further including a processor configured to receive the respective stored bit values of the comparators, determine updated weights using the selected weights, the test electrical signals, and the received bit values, and cause the writing circuit to store the updated weights in the resistive memory elements.
O: The system according to paragraph M or N, wherein: the reference source includes: a controller programmed to sequence through a selected number of bits, starting with a most-significant bit of the selected number of bits; and a plurality of reference circuits, each configured to provide one of the reference electrical signal(s) to a respective one of the comparators; each reference circuit includes: a register configured to hold respective values for the selected number of bits; and a signal generator that provides the respective one of the reference electrical signals in response to the values in the register; and the controller is configured to successively update the bits of each of the registers in the sequence according to the stored bit value in the respective one of the comparators.
P: The system according to paragraph O, wherein each signal generator includes a binary-weighted transistor digital-to-analog converter (DAC) responsive to the values in the respective register to provide the respective one of the reference electrical signals.
Q: The system according to paragraph O or P, further including a processor configured to receive the respective bit values in the registers, determine updated weights using the selected weights, the test electrical signals, and the received bit values, and cause the writing circuit to store the updated weights in the resistive memory elements.
R: A system, comprising: a crossbar array having a plurality of row electrodes, a plurality of column electrodes, and a plurality of resistive memory elements, each memory element connected to one of the row electrodes and one of the column electrodes; a writing circuit configured to store selected weights in the resistive memory elements; a signal source configured to apply a plurality of test electrical signals to respective ones of the row electrodes; a reference source configured to provide one or more reference electrical signal(s); a plurality of domain-wall neurons; a plurality of latches; and a plurality of comparators, each configured to compare an electrical signal on a respective one of the column electrodes to a corresponding one of the reference electrical signal(s), wherein each comparator includes: a respective domain-wall neuron of the plurality of domain-wall neurons, the respective domain-wall neuron connected to the respective column electrode and to the reference source; and a latch of the plurality of latches, the respective latch configured to compare an output of the respective domain-wall neuron with a selected threshold and store a respective bit value according to the result of the comparison.
S: The system according to paragraph R, further including a processor configured to: receive the respective stored bit values of the comparators; determine updated weights using the selected weights, the test electrical signals, and the received bit values;and cause the writing circuit to store the updated weights in the resistive memory elements.
T: The system according to paragraph S, wherein the processor is configured to determine the updated weights using a neural-network training algorithm.
U: The system according to any of paragraphs R-T, wherein the resistive memory elements comprise respective memristors.
V: The system according to any of paragraphs R-U, wherein the reference source includes at least one binary-weighted transistor digital-to-analog converter (DAC) configured to provide a respective reference electrical signal of the one or more reference electrical signal(s).
W: The system according to any of paragraphs R-V, wherein: the reference source includes: a reference controller programmed to sequence through a selected number of bits, starting with a most-significant bit of the selected number of bits; and a plurality of reference circuits, each configured to provide one of the reference electrical signal(s) to a respective one of the comparators; each reference circuit includes: a register configured to hold respective values for the selected number of bits; and a signal generator that provides the respective one of the reference electrical signals in response to the values in the register; and the reference controller is configured to successively update the bits of each of the registers in the sequence according to the stored bit value in the respective one of the comparators.
X: The system according to paragraph W, wherein each signal generator includes a binary-weighted transistor digital-to-analog converter (DAC) responsive to the values in the respective register to provide the respective one of the reference electrical signals.
Y: The system according to paragraph W or X, further including a processor configured to: receive the respective bit values in the registers; determine updated weights using the selected weights, the test electrical signals, and the received bit values; and cause the writing circuit to store the updated weights in the resistive memory elements.
Z: The system according to any of paragraphs W-Y, further comprising: a plurality of one-shots connected to respective ones of the input stages to successively receive the bits of the registers, starting with most-significant bits thereof, wherein each one-shot is configured to successively provide a first bit value until receiving a bit having a non-preferred value concurrently with an enable signal, and then to provide a second, different bit value; and an enable circuit connected to the outputs of the one-shots and configured to provide the enable signal if at least one of the one-shots is providing the first bit value.
AA: The system according to paragraph Z, further including a controller configured to automatically: receive an input vector and a plurality of test vectors; operate the writing circuit to store values from each of the test vectors in the resistive memory elements directly connected to a respective one of the column electrodes; operate the signal source to apply the test electrical signals corresponding to the input vector; determine which one(s) of the test vectors satisfy a selected criterion with respect to the input vector using the outputs of the one-shots.
AB: The system according to paragraph AA, wherein the controller is configured to automatically determine which one of the test vectors corresponds with the highest value of the values in the registers.
AC: The system according to any of paragraphs Z-AB, wherein the enable circuit includes: a node selectively carrying the enable signal; a precharge circuit configured to precharge the node to a signal level different from the enable signal; and a modification circuit configured to provide the enable signal on the node in response to the first bit value from at least one of the one-shots.
AD: The system according to paragraph AC, wherein: the precharge circuit includes a pullup; the discharge circuit includes respective selective pulldowns controlled by the outputs of respective ones of the one-shots; the enable signal corresponds to a low signal level of the node; and the signal level different from the enable signal corresponds to a high signal level of the node.
AE: The system according to any of paragraphs Z-AD, wherein the non-preferred value is zero.
AF: The system according to any of paragraphs Z-AE, wherein the first bit value is unity and the second, different bit value is zero.
AG: The system according to any of paragraphs Z-AF, wherein: individual ones of the one-shots include AND gates and first and second D flip-flops (DFFs) enabled by the enable signal; the output of the first DFF and the input of the first DFF are connected as the inputs of the AND gate; and the output of the AND gate is connected to the input of the second DFF.
AH: The system according to paragraph AG, further including a gate circuit configured: determine that the output of the second DFF is the second, different bit value and the enable signal is provided; and in response, set the input of the first DFF to the non-preferred value.
Various aspects described herein may be embodied as systems or methods. Accordingly, various aspects herein may take the form of an entirely hardware aspect, an entirely software aspect (including firmware, resident software, micro-code, etc.), or an aspect combining software and hardware aspects These aspects can all generally be referred to herein as a “service,” “circuit,” “circuitry,” “module,” or “system.”
Furthermore, various aspects herein may be embodied as computer program products including computer readable program code stored on a tangible non-transitory computer readable medium. Such a medium can be manufactured as is conventional for such articles, e.g., by pressing a CD-ROM. The program code includes computer program instructions that can be loaded into processor 2386 (and possibly also other processors), to cause functions, acts, or operational steps of various aspects herein to be performed by the processor 2386 (or other processor). Computer program code for carrying out operations for various aspects described herein may be written in any combination of one or more programming language(s), and can be loaded from disk 2343 into code memory 2341 for execution. The program code may execute, e.g., entirely on processor 2386, partly on processor 2386 and partly on a remote computer connected to network 2350, or entirely on the remote computer.
The invention is inclusive of combinations of the aspects described herein. References to “a particular aspect” (or “embodiment” or “version”) and the like refer to features that are present in at least one aspect. Separate references to “an aspect” (or “embodiment”) or “particular aspects” or the like do not necessarily refer to the same aspect or aspects; however, such aspects are not mutually exclusive, unless so indicated or as are readily apparent to one of skill in the art. The use of singular or plural in referring to “method” or “methods” and the like is not limiting. The word “or” is used in this disclosure in a non-exclusive sense, unless otherwise explicitly noted.
Various aspects have been described in detail with particular reference to certain preferred aspects thereof, but it will be understood that variations, combinations, and modifications can be effected by a person of ordinary skill in the art within the spirit and scope of the invention.
Patent | Priority | Assignee | Title |
11038520, | Apr 15 2020 | Polytechnic University Of Turin | Analog-to-digital conversion with reconfigurable function mapping for neural networks activation function acceleration |
11443171, | Jul 15 2020 | International Business Machines Corporation | Pulse generation for updating crossbar arrays |
11568217, | Jul 15 2020 | International Business Machines Corporation | Sparse modifiable bit length deterministic pulse generation for updating analog crossbar arrays |
Patent | Priority | Assignee | Title |
3577084, | |||
3638196, | |||
3675204, | |||
3757226, | |||
3882303, | |||
3967061, | Mar 05 1975 | NCR Corporation | Method and apparatus for recovering data and clock information in a self-clocking data stream |
3970989, | Mar 06 1974 | NEW ONTEL CORPORATION A CORP OF DE | Data transfer error check |
4631670, | Jul 11 1984 | IBM Corporation | Interrupt level sharing |
4843263, | Jan 10 1986 | NEC Corporation | Clock timing controller for a plurality of LSI chips |
4864543, | Apr 30 1987 | Texas Instruments Incorporated; TEXAS INSTRUMENTS INCORPORATED, A CORP OF DE | First-in, first-out memory with counter address pointers for generating multiple memory status flags |
4885631, | Mar 18 1983 | Hitachi, Ltd. | High resolution color television signal transmission system and receiver utilizing motion information of a picture |
5165009, | Jan 24 1990 | Hitachi, Ltd. | Neural network processing system using semiconductor memories |
5336937, | Aug 28 1992 | State University of New York | Programmable analog synapse and neural networks incorporating same |
5450621, | Aug 18 1992 | CALLAHAN CELLULAR L L C | Radio receiver with digital control loop for coarse frequency acquisition and analog control loop for frequency lock-in |
5479579, | Sep 04 1992 | The United States of America as represented by the Administrator of the | Cascaded VLSI neural network architecture for on-line learning |
5542051, | Mar 03 1993 | Mitsubishi Denki Kabushiki Kaisha; Mitsubishi Electric Semiconductor Software Corporation | Watch dog timer |
5588069, | Dec 19 1990 | Canon Kabushiki Kaisha | Image processing apparatus for advantageously encoding blocks of data having either substantially the same or varied colors |
5588090, | May 20 1993 | Ricoh Company, LTD | Signal processing apparatus |
6389404, | Dec 30 1998 | HANGER SOLUTIONS, LLC | Neural processing module with input architectures that make maximal use of a weighted synapse array |
6844582, | May 10 2002 | MATSUSHITA ELECTRIC INDUSTRIAL CO , LTD | Semiconductor device and learning method thereof |
7085749, | May 31 2001 | Canon Kabushiki Kaisha | Pulse signal circuit, parallel processing circuit, pattern recognition system, and image input system |
7577020, | Oct 01 2007 | TAIWAN SEMICONDUCTOR MANUFACTURING CO , LTD | System and method for reading multiple magnetic tunnel junctions with a single select transistor |
8923040, | Jan 30 2013 | Taiwan Semiconductor Manufacturing Co., Ltd.; TAIWAN SEMICONDUCTOR MANUFACTURING CO , LTD | Accommodating balance of bit line and source line resistances in magnetoresistive random access memory |
9489618, | May 27 2014 | Purdue Research Foundation | Electronic comparison systems |
20040039717, | |||
20060123280, | |||
20100238700, | |||
20100241601, | |||
20130132314, | |||
20130285739, | |||
20140028347, | |||
20150106311, | |||
20150347896, | |||
20170047913, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Aug 18 2014 | SHARAD, MRIGANK | Purdue Research Foundation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 050623 | /0306 | |
Dec 02 2014 | ROY, KAUSHIK | Purdue Research Foundation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 050623 | /0306 | |
Nov 02 2017 | Purdue Research Foundation | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Nov 02 2017 | BIG: Entity status set to Undiscounted (note the period is included in the code). |
Nov 30 2017 | SMAL: Entity status set to Small. |
Oct 03 2019 | BIG: Entity status set to Undiscounted (note the period is included in the code). |
May 24 2023 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
May 24 2023 | M1554: Surcharge for Late Payment, Large Entity. |
Date | Maintenance Schedule |
Nov 12 2022 | 4 years fee payment window open |
May 12 2023 | 6 months grace period start (w surcharge) |
Nov 12 2023 | patent expiry (for year 4) |
Nov 12 2025 | 2 years to revive unintentionally abandoned end. (for year 4) |
Nov 12 2026 | 8 years fee payment window open |
May 12 2027 | 6 months grace period start (w surcharge) |
Nov 12 2027 | patent expiry (for year 8) |
Nov 12 2029 | 2 years to revive unintentionally abandoned end. (for year 8) |
Nov 12 2030 | 12 years fee payment window open |
May 12 2031 | 6 months grace period start (w surcharge) |
Nov 12 2031 | patent expiry (for year 12) |
Nov 12 2033 | 2 years to revive unintentionally abandoned end. (for year 12) |