Analog-to-digital conversion apparatus, devices, and methods using bit skipping - Patents.com
The MS-MAC circuit with MSB skipping logic addresses the energy inefficiency of ADC in mixed-signal circuits by combining analog and digital processing, achieving up to 25% energy savings in MAC operations for neural network models.
Patent Information
- Application Number
- JP2024507891
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-08-19
- Filing Date
- 2022-08-03
- Publication Date
- 2024-10-10
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Analog-to-digital conversion (ADC) energy consumption is a limiting factor in mixed-signal circuits, particularly in neural network models, where multiply-accumulate (MAC) operations are energy inefficient in the digital domain but more efficient in the analog domain.
Implementing a mixed-signal MAC (MS-MAC) circuit that performs MAC operations by combining analog and digital processing, utilizing a successive approximation register (SAR) ADC with most significant bit (MSB) skipping logic to reduce ADC conversion energy.
Significantly reduces energy consumption in MAC operations by up to 25% through MSB skipping, enhancing the energy efficiency of mixed-signal circuits in neural network models.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Technical field]
[0001] This field relates to analog-to-digital conversion (ADC), and more particularly to ADCs in mixed-signal circuits, such as, but not limited to, multiply-accumulate (MAC) circuits used in neural network models. Mixed-signal circuits operate in both the analog and digital signal domains. Thus, an ADC is typically required to perform at least some of the calculations. However, ADC conversion energy can be a limiting factor in the design of mixed-signal circuits. Summary of the Invention
[0002] SUMMARY OF THE PRESENT EMBODIMENTS Embodiments of the present invention provide improved techniques for performing analog-to-digital conversion calculations, such as in mixed-signal circuits configured to implement neural network models.
[0003] In one embodiment, an apparatus comprises at least one processor and at least one memory including instruction code, the at least one memory and the instruction code configured to cause the apparatus to at least perform an analog to digital conversion, by the at least one processor, from an analog input to a digital output including a set of bits, the set of bits including a most significant bit and one or more additional bits, the analog to digital conversion starting at a given bit of the one or more additional bits following the most significant bit.
[0004] In another embodiment, a method includes performing an analog to digital conversion from an analog input to a digital output comprising a set of bits, the set of bits including a most significant bit and one or more additional bits, the analog to digital conversion beginning with a given bit of the one or more additional bits following the most significant bit. The method is performed by a processing circuit configured to execute an instruction code.
[0005] In yet another embodiment, an article of manufacture comprises a non-transitory computer readable storage medium having executable instruction code embodied thereon that, when executed by a processor, causes the processor to perform steps of performing an analog-to-digital conversion from an analog input to a digital output comprising a set of bits, the set of bits including a most significant bit and one or more additional bits, the analog-to-digital conversion beginning with a given bit of the one or more additional bits following the most significant bit.
[0006] In a further embodiment, a system includes a dot-product summation computation unit configured to perform binary multiplication of a first vector and a second vector, a successive approximation register-analog-to-digital converter unit configured to convert an analog output of the dot-product summation computation unit to a digital output including a set of bits, the set of bits including a most significant bit and one or more additional bits, and controller logic operatively coupled to the successive approximation register-analog-to-digital converter unit, the controller logic configured to determine a value of the set of bits of the digital output based at least in part on a comparison of an output of the dot-product summation computation unit to a sequence of a weighted binary code starting with a given bit of the one or more additional bits following the most significant bit.
[0007] In an additional embodiment, a device includes a dot product summation circuit configured to output a first signal, the first signal comprising a dot product sum of a binary multiplication of a first vector and a second vector, and a successive approximation register analog-to-digital converter configured to perform a conversion of the first signal output by the dot product summation circuit to a digital output comprising a set of bits, the set of bits comprising a most significant bit and one or more additional bits. The successive approximation register analog-to-digital converter includes a successive approximation register controller circuit configured to output a second signal, and a comparator circuit comprising a first input node coupled to the dot product summation circuit, a second input node coupled to the successive approximation register controller circuit, and an output node configured to provide an output value based at least in part on a comparison of the first value output by the dot product summation circuit and the second value output by the successive approximation register controller circuit. The successive approximation register controller circuit is configured to determine a value of the set of bits of the digital output based at least in part on an output value of the comparator circuit produced when a sequence of the weighted binary code is output as the second signal, the sequence of the weighted binary code starting with a given bit of the one or more additional bits following the most significant bit.
[0008] These and other features and advantages of the embodiments described herein will become more apparent from the accompanying drawings and the following detailed description.
[0009] Embodiments of the present invention will now be described, by way of example only, with reference to the following drawings: [Brief description of the drawings]
[0010] [Figure 1A]FIG. 1 illustrates a neural network accelerator for use in implementing one or more exemplary embodiments and a mathematical representation of the computations performed in the neural network accelerator. [Figure 1B] FIG. 1 illustrates a neural network accelerator for use in implementing one or more exemplary embodiments and a mathematical representation of the computations performed in the neural network accelerator. [Diagram 2] FIG. 2 illustrates a mixed signal multiply-accumulate circuit for use in implementing one or more exemplary embodiments. [Figure 3A] FIG. 2 illustrates a dot product engine for use in implementing one or more exemplary embodiments. [Figure 3B] FIG. 2 illustrates a dot product engine for use in implementing one or more exemplary embodiments. [Figure 3C] FIG. 2 illustrates a dot product engine for use in implementing one or more exemplary embodiments. [Figure 3D] FIG. 2 illustrates a dot product engine for use in implementing one or more exemplary embodiments. [Figure 4] FIG. 1 illustrates an algebraic representation associated with a dot product calculation for use in implementing one or more exemplary embodiments. [Figure 5A] FIG. 1 illustrates dot product statistics utilized by an exemplary embodiment. [Figure 5B] FIG. 1 illustrates dot product statistics utilized by an exemplary embodiment. [Figure 5C] FIG. 1 illustrates dot product statistics utilized by an exemplary embodiment. [Figure 6] FIG. 1 illustrates a motivation for energy-efficient analog-to-digital conversion implementing most significant bit skipping in a dot product engine, according to an exemplary embodiment. [Figure 7]FIG. 1 illustrates a mathematical representation of energy-efficient analog-to-digital conversion implementing most significant bit skipping in a dot product engine, according to an exemplary embodiment. [Figure 8] FIG. 1 illustrates a cycle flow for demonstrating error tolerance associated with an implementation of most significant bit skipping in a dot product engine, in accordance with an example embodiment. [Figure 9] 1A and 1B are diagrams illustrating a comparison of energy savings according to an example embodiment. [Figure 10] FIG. 1 illustrates an energy-efficient analog-to-digital conversion methodology implementing bit skipping for use in a dot product engine, according to an exemplary embodiment. [Figure 11] FIG. 1 illustrates an exemplary implementation of an artificial intelligence system in accordance with an illustrative embodiment. [Figure 12] FIG. 1 illustrates a representative processor system in accordance with an exemplary embodiment. [Figure 13] FIG. 1 illustrates a cloud computing environment in accordance with an exemplary embodiment. [Figure 14] FIG. 1 illustrates an abstraction model layer in accordance with an illustrative embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] It should be understood that the various features shown in the accompanying drawings are schematic views and not drawn to scale. Moreover, the same or similar reference numbers are used throughout the drawings to denote the same or similar features, elements, or structures, and thus, detailed descriptions of the same or similar features, elements, or structures are not repeated for each of the drawings. Moreover, as used herein, the terms "exemplary" and "exemplary" mean "serving as an example, instance, or illustration." An embodiment or design described herein as "exemplary" or "exemplary" should not be construed as preferred or advantageous over other embodiments or designs.
[0012] Furthermore, the phrase "configured to" when used in connection with a circuit (wherein the term "circuitry" is sometimes used interchangeably herein), structure, element, component, etc., that performs one or more functions or otherwise provides some functionality, is intended to encompass embodiments in which the circuit, structure, element, component, etc. is implemented in hardware, software, and / or combinations thereof, and it will be understood that in implementations that include hardware, the hardware may include discrete circuit elements (e.g., transistors, inverters, logic gates, etc.), programmable elements, processing devices, one or more integrated circuits, and / or other types of circuits, and / or combinations thereof. Thus, by way of example only, when a circuit, structure, element, component, etc. is defined as being configured to provide a particular functionality, it is intended, without limitation, to cover embodiments that consist of an element, processing device, integrated circuit, or other type of circuit, or combinations thereof, that enables the circuit, structure, element, component, etc. to perform a particular function when in an operational state (e.g., connected or deployed in a system, powered on, receiving input, or producing output, or a combination thereof), and to cover embodiments when the circuit, structure, element, component, etc. is in a non-operational state (e.g., not connected or deployed in a system, powered on, not receiving input, or not producing output, or a combination thereof) or is partially operational.
[0013] Neural network models are one of the most widely used types of machine learning (ML) algorithms in artificial intelligence systems. For example, neural network models can be used to recognize relationships and / or patterns underlying a set of data through a process that mimics the way the human brain works. First, a training data set is used to train the neural network model (training phase), and then the trained neural network model is used to recognize relationships and / or patterns in a target data set (inference phase).
[0014] Many workloads that execute neural network models typically require a large number of matrix multiplications, which typically involve multiply-and-accumulate (MAC) operations. It is generally understood that accumulation operations are less energy efficient when performed in the digital signal domain, but much more energy efficient when performed in the analog signal domain. It has therefore been further realized that more efficient multiply-and-accumulate operations can be achieved by combining digital signal domain techniques for multiplication and analog signal domain techniques for accumulation. Circuits that combine analog and digital processing to perform MAC operations are referred to as mixed signal MAC (MS-MAC) circuits.
[0015] FIG. 1A illustrates a neural network accelerator 100 for use in implementing one or more exemplary embodiments. In some exemplary embodiments, the neural network accelerator 100 is implemented in one or more graphics processing units (GPUs), one or more field programmable gate arrays (FPGAs), one or more application specific integrated circuits (ASICs), one or more multi-core central processing units (CPUs), or other types of circuitry or combinations thereof. By way of example, the neural network accelerator 100, or a portion thereof, may comprise one or more of the above devices, customized for a particular purpose, or otherwise configured for a particular purpose, including circuitry (e.g., circuits, processors, memories, etc.) programmed with executable program code (e.g., instruction code, computer program code, etc.). By way of example only, the particular purpose may be the implementation and execution of an artificial intelligence system (e.g., machine learning algorithms). The neural network accelerator 100 may also be part of a system-on-chip (SoC), such as, for example, a neuromorphic computing system. However, the neural network accelerator 100 may also be used in a variety of other applications that benefit from such artificial intelligence based decision making.
[0016] As shown, the neural network accelerator 100 includes a matrix multiplication engine 102 configured to perform calculations corresponding to the convolutional and fully connected layers of a neural network, which may typically be performed using low-precision integer arithmetic on data from a memory 104. The results are then transferred via an output first-in-first-out (FIFO) data structure 106 to a special function unit 108, which performs calculations corresponding to one or more activation functions, such as, but not limited to, batch normalization, a sigmoid function, a rectified linear unit (ReLU) function, and a SoftMax function. The calculations in the special function unit 108 typically need to be performed with high precision to maintain the accuracy of the neural network that is mapped to the accelerator.
[0017] However, it is understood that matrix multiplication accounts for a large portion of the computations in a neural network workload, and thus, the matrix multiplication engine 102 may consume a significant percentage of the total power consumed by the neural network accelerator 100. It is further understood that the low precision integer computations performed in the matrix multiplication engine 102 may be performed at least in part by operating in the analog domain, resulting in an accelerator that consumes less total power as compared to an accelerator that performs its computations entirely in the digital domain using digital circuitry.
[0018] 1B illustrates a mathematical representation 110 that enables a vector dot product (also referred to herein as an inner product, as described further below) to be computed by one or more multiply-add operations in the neural network accelerator 100 of FIG. 1A, according to an exemplary embodiment. In the example of FIG. 1B, the equation on the left mathematically represents the dot product of two vectors x and w, each of size 64, with element x i and w iEach of the 4-bit by 4-bit products (4b*4b) is divided into 16 1-bit by 1-bit products (1b*1b). The equation on the right represents the mathematical multiplication of 1b*1b, x i,m and w i,n has one bit each.
[0019] First, bitwise products are performed, and then summation is performed based on the weight of the bits. Essentially, 4-bit by 4-bit terms are divided into 16 1-bit products, the 1-bit products are accumulated (summed), and then appropriately scaled by powers of 2 by outer summation to generate the sum. Based on power considerations, 1b*1b multiplications are performed in the digital domain, inner summation of 1b*1b multiplications is performed in the analog domain, and outer summation is performed in the digital domain. In the analog domain, analog circuits are superior to digital circuits in terms of power, so the inner summation is performed in the analog domain. In the analog domain, there is little advantage to performing 16-way summation, so the 16-way summation may be performed in the digital domain. In an exemplary embodiment, the input and output of the inner summation are digital.
[0020] It should be noted that FIG. 1B represents one exemplary embodiment, and thus, other embodiments may use different partitioning of analog and digital domain calculations. It should also be understood that the dot product calculation depicted as mathematical representation 110 is intended as an example for ease of explanation. Thus, the element x i and w i Implementations of the dot product of vectors x and w where x has a different number of bits, as well as implementations of the dot product of vectors x and w where one vector has a different number of elements compared to the other vector, are supported by alternative embodiments based on the teachings provided herein.
[0021] 2 illustrates a mixed signal multiply-accumulate circuit 200 for performing integer matrix multiplication, according to an exemplary embodiment. It should be understood that some or all of the mixed signal multiply-accumulate circuit 200 is implemented as part of the matrix multiplication engine 102 of FIG. 1 in some embodiments. As shown, each bit x of a first digital input X is i , and the digital weight w of the second digital input W i A corresponding bit representing x, y, and z are input to one of sixteen one-bit (lb) dot-product engines 210-1, 210-2..., 210-15, 210-16 (collectively referred to herein as dot-product engines 210). The dot-product engines 210 may be referred to as counters because they effectively count the number of ones that occur in a binary multiplication operation as described further below. In one example, the first digital input X represents an activation function represented by a four-bit element, and the second digital input W represents a weight represented by a four-bit element. The digital partial sums 220-1, 220-2..., 220-15, 220-16 (collectively referred to herein as partial sums 220) are output by the dot-product engines 210-1, 210-2..., 210-15, 210-16, respectively. The digital partial sums 220 are input to a digital reduction circuit 230 which performs an outer summation to generate the MS-MAC output.
[0022] 3A-3D show examples of MS-MAC circuits configured for dot-product summation performed by the dot-product engine 210, according to an exemplary embodiment. In the exemplary embodiment of FIG. 3A-3D, it is assumed that the input vectors X and W each contain 63 elements, with each element containing 4 bits. In general, the MS-MAC circuit performs multiplication in the digital signal domain using digital logic and accumulation in the analog domain using charge-sharing capacitors. In effect, the MS-MAC circuit multiplies digital inputs in the digital domain, accumulates the multiplication results in the analog domain, and generates a binary-weighted digital code based on the accumulated results. The number of bits of the binary-weighted digital code is referred to as the analog resolution or quantization level (p) of the analog-to-digital conversion operation performed by the MS-MAC circuit. To generate a unique binary-weighted code for a set of 63-bit inputs, p is 6, i.e., D[0:5]. Throughout FIG. 3A-3D, circuit elements providing similar or similar functionality utilize the same or similar reference numbers.
[0023] 3A, the MS-MAC circuit 300 includes an analog dot-product engine 302 and a successive approximation register (SAR) ADC 304. As shown, the analog dot-product engine 302 outputs an output V IN provides an input V IN is the sum of weights produced by the analog dot product engine 302, Σx i w i The analog dot product engine 302 receives inputs x[62:0] and w[62:0] and outputs V IN ∝Σx i w iThe output of the comparator 310 is input to a SAR controller 306 that implements a most significant bit (MSB) skip logic 308, described in further detail elsewhere herein. The SAR controller 306 outputs a binary weighted code D[0:5], which is provided to a set of capacitors 312 (having respective capacitance values C, 2C, 4C, 8C, 16C, 32C). It should be appreciated that the bits of the binary weighted code D[0:5] are each coupled to a set of capacitors 312 (e.g., from MSB to Least Significant Bit (LSB)). For 6-bit quantization, the MSB (D5) of the binary weighted output of the SAR controller 306 is coupled to a 32C capacitor, the next bit (D4) is coupled to a 16C capacitor, the next bit (D3) is coupled to an 8C capacitor, the next bit (D2) is coupled to a 4C capacitor, the next bit (D1) is coupled to a 2C capacitor, and the LSB (D0) is coupled to a 1C capacitor. The binary weighted code D[0:5] output from the SAR controller 306 is provided to the bottom plate of a capacitor 312 via a set of buffers and a switch 314 as shown. The SAR ADC 304 also includes a reset switch 316 that, when open, allows the top plate of the capacitor 312 to electrically float.
[0024] 3B illustrates an MS-MAC circuit 320 that illustrates one example of an implementation of the analog dot-product engine 302. As shown in FIG. 3B, the analog dot-product engine 302 includes a set of 63 AND gates 322, each of which performs a multiplication of a corresponding set of inputs x[62:0] and w[62:0]. The outputs of the AND gates 322 (i.e., x0*w0, x1*w1, ..., x 62 *w 62 ) are coupled through reset switches 324 to the bottom plates of capacitors 326, each having the same capacitance value C. The analog dot product engine 302 further includes a reset switch 328. The top plate of capacitor 326 is coupled to the output V IN ∝Σx i wi is provided to comparator 310.
[0025] 3C illustrates an MS-MAC circuit 340 that includes a SAR ADC 304 that functions in a manner similar to that described above with respect to FIG. 3A. The MS-MAC circuit 340 also includes a set of bit cells 342. The bit cells 342 may be implemented as resistive random access memory (RRAM), magnetoresistive random access memory (MRAM), static random access memory (SRAM), etc. The bit cells 342 may act as a resistive processing unit (RPU), where each bit cell 342 may be configured to read and write data from the w i The input x i When applied to bit cell 342, V IN Create multiple x i *w i It acts on.
[0026] FIG. 3D illustrates an MS-MAC circuit 360 that includes input terminals of a set of digital (logical) AND gates 362-1, 362-2, ..., 362-63 (collectively referred to herein as AND gates 362), which receive data inputs x0w0, x1w1 ... x 62 w 62 , while the output terminals of the set of AND gates 362 are respectively connected to a set of switch pairs 364-1, 364-2, ..., 364-63 (collectively referred to as switch pair 364). Switch pair 364 allows MS-MAC circuit 360 to be switched between summation and SAR phases of operation via control inputs "sum" and "sar" generated by SAR controller 306, as will be further described. SAR controller 306 is configured to implement MSB skip logic 308, which will be described in further detail elsewhere herein.
[0027] Switch pair 364 is connected to the bottom plate of each of a set of capacitors 366-1, 366-2, ..., 366-63, collectively referred to as capacitors 366. Each of capacitors 366 has the same capacitance C0 = C1 =... = C 63 The top plate of capacitor 366 is connected to a first input of comparator 310 and to a precharge switch 368. Precharge switch 368 couples a common-mode voltage V to the top plate of capacitor 366 via a control signal “prech,” as will be described further. CM The second input of the comparator 310 is V CM Connected to the voltage V CM is set to the natural common mode voltage of the comparator 310, which is the voltage at which the comparator 310 is most likely to have the best sensitivity / noise characteristics. The output of the comparator 310 is connected to the SAR controller 306. The SAR controller 306 outputs a binary weighted code D[0:5]. Also, note that as shown, the data input and the control input are each buffered by a buffer 370. A clock signal (clk, not explicitly shown) synchronizes the timing between the SAR controller 306 and the comparator 310, which may be buffered by a clock buffer (not explicitly shown).
[0028] As shown in Figure 3D, for the MS-MAC circuit 360, the same set of capacitors 366 are utilized for both input summation and SAR conversion. This mitigates problems associated with charge sharing attenuation and capacitor nonlinearity. During the input summation phase, the capacitors 366 are individually controlled, and during the SAR conversion operation, the capacitors 366 are controlled in a binary weighted manner.
[0029] During the first operating phase (sum), the voltage V SUM V CM Precharge switch 368 is closed, effectively electrically shorting the inputs of comparator 310 so that input x is equal to i , w iThe product of each pair of is calculated and applied individually to the bottom plate of a respective one of the capacitors 366 by switching the sum switch of each switch pair 364 closed and the SAR switch of each switch pair 364 open. The bottom plate of each of the capacitors 366 is coupled to a reference voltage (V REF , not explicitly shown) or 0 V. Thus, each capacitor 366 is charged to a charge Q i =C(x i *w i *V REF -V CM ) to accumulate.
[0030] During the second phase of operation (SAR), the precharge switches 368 are first opened, allowing the common node 372 connecting the top plates of the capacitors 366 to electrically float. The switch pairs 364 are then configured to pass the control output of the SAR controller 306 (the sum switch of each switch pair 364 is opened and the SAR switch of each switch pair 364 is closed) so that the output of the SAR controller 306 (through the buffer 370) controls the operational configuration of the capacitors 366. That is, the set of capacitors 366 is configured as an array of binary-weighted capacitances during this phase, i.e., a subset of the capacitors 366 is connected to predetermined ones of the bit control lines of the SAR controller 306, e.g., from LSB to MSB. Each of the bit control lines corresponds to a bit in the binary-weighted output (code) generated by the SAR controller 306, e.g., D[0:5] for quantization level 6. That is, when the SAR control signal closes a corresponding switch of switch pair 364, a given capacitor of capacitors 366 is connected to a given bit control line of the bit control lines. For 6-bit quantization, the MSB (D5) of the binary weighted output of SAR controller 306 is coupled to capacitors 306-32 through 306-63 (32 capacitors), the next bit (D4) is coupled to capacitors 306-16 through 306-31 (16 capacitors), the next bit (D3) is coupled to capacitors 306-8 through 306-15 (8 capacitors), the next bit (D2) is coupled to capacitors 306-4 through 306-7 (4 capacitors), the next bit (D1) is coupled to capacitors 306-2 and 306-3 (2 capacitors), and the LSB (D0) is coupled to capacitor 306-1 (1 capacitor).
[0031] Depending on the result of the multiplication by AND gate 362 and the resulting charge stored by set of capacitors 366, a decision (1 or 0) is made by comparator 310 in successive iterations for each output bit D[0:5]. Thus, six SAR iterations are required to generate the 6-bit binary weighted output for the 63-way data input shown in FIG.
[0032] 3D, in a first phase of operation (first cycle), AND gate 362 multiplies the data received at its respective inputs, and the output of AND gate 362 drives capacitor 366. Then, in a second phase of operation (second through seventh cycles, corresponding to a 6-bit binary weighted output), normal SAR ADC operation is performed as described above.
[0033] FIG. 4 illustrates an algebraic expression 400 associated with the dot product calculations performed by the MS-MAC circuits 300, 320, 340, and 360 illustrated in FIGS. 3A-3D. The mixed signal dot product engine (MS-DPE) counts the number of ones in a 63-way binary multiplication. As discussed herein above, it is understood that the total energy consumption, and therefore the energy efficiency, of the matrix multiplication engine 102 is dominated by the energy consumption of the dot product engine 210, which is further dominated by the ADC conversion energy of the MS-MAC circuit. For example, in the context of the MS-MAC circuit 360 of FIG. 3D, the energy consumption associated with the components involved in the SAR ADC operation accounts for more than 75% of the total energy consumption. Exemplary embodiments provide a solution to address this and other issues, at least in part, through the use of MSB skip logic 308.
[0034] 5A-5C illustrate dot product statistics utilized by an exemplary embodiment. More specifically, table 500 illustrates the probability P of individual bits in the dot product of input vectors X and W. As shown, P(X i =0)=0.5, P(Wi=0)=0.5, while P(X i W i =0) = 0.25. Table 510 shows the 2b dot product engine (
number
number
[0035] 6 shows a graph 600 further illustrating the motivation for MSB skipping in the dot product engine according to an example embodiment. As graphed in the context of a cumulative distribution function (CDF), the output of all sixteen 63b dot product engines 210 of FIGS. 2 and 3A-3D is less than 28 (6'b011100), with a probability of over 98.9%.
[0036] It should be noted that for clarity of illustration, various embodiments are described with respect to MSB skip logic 308 skipping only the MSB. However, MSB skip logic 308 may instead "skip" k most significant bits, where k > 1. The selection of k may be based at least in part on an analysis of the output probability distribution of the dot product engine utilized, as discussed above with respect to Figures 5A-5C and 6.
[0037] 7 illustrates a mathematical representation 700 of an energy-efficient analog-to-digital conversion implementing most significant bit skipping in a dot-product engine, according to an exemplary embodiment. More specifically, the ADC computation portion of the MS-MAC circuit in the D-bit dot-product engine is
number
[0038] Typically, there are multiple dot product engines in an MS-MAC. For example, as shown in Figures 2 and 3A-3D, for X and W in 4b,
number
[0039] A conservative choice of n increases the error penalty but ensures that the output of the dot product engine is
number
[0040] When an error is detected in any of the dot product engines (all n bits are 1), all dot product engines take (n+N) cycles.
[0041] FIG. 8 illustrates a process cycle flow 800 for demonstrating error tolerance associated with implementing MSB skipping in a dot product engine, according to an exemplary embodiment. More specifically, the process cycle flow 800 illustrates cycles 0-5 for both normal operation 810 (e.g., MSB is not skipped) and energy efficient operation 820 (e.g., MSB is skipped). For normal operation 810, in cycle 0 the MSB is calculated, which may have a value C equal to 0 or 1. In the next cycle, the (MSB-1)th is calculated, which may also correspond to C equal to 0 or 1. This continues in subsequent cycles (e.g., cycle 2 onwards). According to an exemplary embodiment, for energy efficient operation 820, cycle 0 may be "skipped" by assuming that the MSB is 0, and with that assumption, processing may begin with cycle 1. As mentioned above, in some embodiments, MSB skipping may involve skipping k most significant bits, where k>1, and thus the energy efficient operation 820 may skip multiple cycles (e.g., if k=2, then cycle 0 and cycle 1 would be skipped).
[0042] If the bit is 1 for the following n cycles, the calculation is "restarted" in energy efficient operation 820. Once restarted, the process transitions to normal operation 810 where the MSB is not skipped. As shown in FIG. 8, the average conversion cycle is: P(ΣX*W <E TH )*(N-1)+P(ΣX*W≧E TH )*(N+n) where E TH is the low probability event mentioned above, i.e.,
number
[0043] 9A-9C show a comparison of energy savings according to an exemplary embodiment. More specifically, for a 6-bit binary weighted output in an ADC SAR operation, graph 900 shows the original approach (e.g., MSB skipping is not used), and graph 910 shows the energy-efficient approach according to an exemplary embodiment (e.g., MSB skipping is used). Using the energy-efficient approach, significant energy savings (e.g., 25% or more) can be achieved compared to the normal approach. Such energy savings can be achieved by reducing the energy consumption of various components of the MS-MAC circuit (e.g., ADC bottom plate energy, SAR control and driver energy, etc.), which more than offsets the increase in control energy required to provide bit reconfigurability.
[0044] FIG. 10 illustrates a methodology 1000 for energy-efficient mixed-signal dot product computation utilizing skipping of the k most significant bits, k≧1. The methodology 1000 is an example of a function implemented by the MSB skip logic 308 of the SAR controller 306 described above. The methodology 1000 begins at step 1002, where the k most significant bits are 0 (e.g., the SAR MSB From SAR MSB-(k-1) For example, for k=1 (corresponding to skipping only the MSB), the SAR MSB = 0. For k = 2 (corresponding to skipping the two most significant bits MSB and MSB-1), the SAR MSB =SAR MSB-1 = 0. The calculation starts from the (MSB-k)th bit. In step 1004, the SARMSB-k From SAR MSB-n-k Up to n SAR determinations are calculated.
[0045] Following step 1004, the method 1000 proceeds to decision block 1006 or continues directly to step 1008. Decision block 1006 is used to determine whether to restart the calculations in response to detecting one or more specified conditions. Such specified conditions may include the SAR MSB-k From SAR MSB-n-k The detection may be based at least in part on the value of the SAR determination calculated for . Such restart of the calculations is not required, such as in cases where less precise calculations are permitted, as described elsewhere herein. For such embodiments, decision block 1006 may be skipped and processing proceeds directly from step 1004 to step 1008.
[0046] If decision block 1006 is not skipped, a determination is made as to whether to restart the calculations based on whether one or more specified conditions are detected. One example of a specified condition that may trigger a restart of the calculations is a determination that the calculations of step 1004 produce an output of all ones (e.g., SAR MSB-k :SAR MSB-k-n+1 If the result of the determination in step 1006 is "no," the methodology proceeds to step 1008, where the bit SAR MSB-n-k The remaining (Nnk) SAR decisions are calculated from bit SAR0 through bit SAR0, and in step 1010, a precise SAR output is produced.
[0047] If the result of the determination at step 1006 is "yes", the methodology 1000 proceeds to another decision block 1012. At decision block 1012, a determination is made as to whether to proceed directly to restarting the calculation from the MSB, or whether to decrement the value of k so that the MSB skip logic is retried while skipping less than k most significant bits. If the result of decision block 1012 is "yes", the value of k is decremented. In some embodiments, k is decremented by 1 each time decision block 1012 outputs "yes" (e.g., so that in successive iterations, the MSB skip logic is retried while skipping as many bits as possible). In other embodiments, k may be decremented by 2 or more each time decision block 1012 outputs "yes" to mitigate the "penalty" associated with restarting the iterations of the calculation. The methodology 1000 then proceeds to decision block 1014, which determines whether the current value of k=0 after the decrement applied when decision block 1012 output "yes". If the outcome of decision block 1014 is "yes", which corresponds to no "skip" being performed, methodology 1000 proceeds to step 1016, where calculations begin with the MSB. If the outcome of decision block 1014 is "no" (e.g., k>0 after the reduction applied when decision block 1012 output "yes"), processing returns to step 1002 using the new, reduced value of k.
[0048] If the result of decision block 1012 is "no" or if the result of decision block 1014 is "yes", the calculations are restarted from the MSB in step 1016. A normal SAR operation is then performed in step 1018, followed by a precise SAR output in step 1010. The output of decision block 1012 may be controlled based on various factors, such as the number of iterations of steps 1002 and 1004 that have already been performed. In some embodiments, a threshold is set for the number of iterations, such that bit skipping is attempted a threshold number of times before the result of decision block 1012 is "no" and the calculations are restarted from the MSB in step 1014. In some embodiments, the threshold may be set to 1 (e.g., such that decision block 1012 always outputs "no" and the calculations are restarted from the MSB in step 1016 whenever decision block 1006 outputs "yes").
[0049] Consider an example where in a first iteration steps 1002 and 1004 are performed with k=2 such that the two most significant bits are "skipped". If the specified condition is detected in decision block 1006 and if decision block 1012 outputs "yes", k may be decremented by 1. Then a second iteration of steps 1002 and 1004 may be performed with k=1 such that in the second iteration only the MSB is skipped. If the specified condition is again detected in decision block 1006, processing proceeds to step 1016 and calculations start from the MSB (e.g., even if decision block 1012 outputs "yes", k will be decremented to 0 and therefore decision block 1014 will output "yes" and the methodology will proceed to step 1016).
[0050] 11 illustrates an exemplary implementation of an artificial intelligence system 1100 according to an exemplary embodiment. As illustrated, the system 1100 includes a data set 1110, a neural network model 1120, and a MAC unit with energy-efficient ADC 1130. The MAC unit with energy-efficient ADC 1130 implements MSB skipping (e.g., MSB skip logic 309) as described elsewhere herein to perform computations of the neural network model 1120 using the data set 1110, which may include training data in a training mode or an inference data set in an inference mode.
[0051] In one representative embodiment, the artificial intelligence system 1100 is implemented by one or more application specific integrated circuits (ASICs). An ASIC is an integrated circuit (IC) chip or device that is customized or otherwise configured for a specific purpose, including logic (e.g., circuits, processors, memory, etc.) programmed with executable program code (e.g., instruction code, computer program code, etc.). In this representative case, the specific purpose is the implementation and execution of an artificial intelligence system (e.g., machine learning algorithms). An ASIC may also be considered a system on a chip (SoC). Some ASIC implementations used with one or more exemplary embodiments employ cell libraries of user-selectable basic logic functions (e.g., multiplexers, comparators, etc., composed of multiple VLSI transistor devices to provide various functions such as switching, comparing, etc.) that allow configuration (and reconfiguration) of the system.
[0052] It should be further appreciated that the artificial intelligence system 1100, and portions thereof, may be realized with alternative circuit / processor-based technologies, such as technologies including one or more multi-core central processing units (CPUs), one or more graphics processing units (GPUs), and one or more field programmable gate arrays (FPGAs). In some embodiments, the artificial intelligence system 1100 may be implemented as a combination of two or more circuit / processor-based technologies (e.g., ASICs, CPUs, GPUs, FPGAs, etc.).
[0053] The techniques illustrated in Figures 1-11 may also include providing a system, as described herein, where the system includes separate software modules, each of the separate software modules being embodied on a tangible computer-readable recordable storage medium. All of the modules (or any subset thereof) may, for example, be present on the same medium, or each may be present on different media. The modules may include any or all of the components shown in the figures and / or described herein. In one embodiment of the invention, the modules may, for example, be executed on a hardware processor. In that case, the method steps may be performed using the separate software modules of the system, which are executed on the hardware processor as described above. Additionally, a computer program product may include a tangible computer-readable recordable storage medium having code adapted to be executed to perform at least one method step described herein, including providing a system having separate software modules.
[0054] 1-4 may be implemented via a computer program product that may include computer usable program code stored on a computer readable storage medium in a data processing system, the computer usable program code being downloaded over a network from a remote data processing system. Also, in one embodiment of the present invention, the computer program product may include computer usable program code stored on a computer readable storage medium in a server data processing system, the computer usable program code being downloaded over a network to the remote data processing system for use on the computer readable storage medium by the remote system.
[0055] Embodiments of the present invention or elements thereof may be implemented in the form of an apparatus including a memory and at least one processor coupled to the memory and configured to perform the steps of the exemplary method.
[0056] In some embodiments, an apparatus comprises at least one processor and at least one memory including instruction code, the at least one memory and the instruction code configured to cause the apparatus to at least perform an analog-to-digital conversion, by the at least one processor, from an analog input to a digital output including a set of bits, the set of bits including a most significant bit and one or more additional bits, the analog-to-digital conversion starting at a given bit of the one or more additional bits following the most significant bit.
[0057] The at least one memory and the instruction code are further configured to cause, by the at least one processor, the apparatus to detect one or more specified conditions and, in response to detecting at least one of the one or more specified conditions, restart the analog-to-digital conversion beginning with another bit of the set of bits. Detecting the at least one of the one or more specified conditions may be based at least in part on a value of a threshold number of consecutive bits of the one or more additional bits following a given bit of the one or more additional bits. The threshold number may be selected at least in part based on at least one of an output probability distribution of a dot product engine that performs binary multiplication of the first vector and the second vector and a tolerance error in an output of the analog-to-digital conversion.
[0058] The given bit of the one or more additional bits following the most significant bit may include a first bit of the one or more additional bits following the most significant bit, and restarting the analog to digital conversion starting from another bit of the set of bits may include restarting the analog to digital conversion starting from the most significant bit.
[0059] The given bit of the one or more additional bits following the MSB may include an (MSB-k)th bit, and restarting the analog to digital conversion starting from another bit of the set of bits may include restarting the analog to digital conversion starting from the (MSB-k+l)th bit, where l is an integer greater than or equal to 1. The value of k may be selected based at least in part on at least one of an output probability distribution of a dot product engine that performs binary multiplication of the first vector and the second vector and a tolerance error in an output of the analog to digital conversion.
[0060] In some embodiments, the method includes performing an analog-to-digital conversion from an analog input to a digital output comprising a set of bits, the set of bits including a most significant bit and one or more additional bits, the analog-to-digital conversion beginning with a given bit of the one or more additional bits following the most significant bit. The method is performed by a processing circuit configured to execute an instruction code.
[0061] The method may further include detecting one or more specified conditions and, in response to detecting at least one of the one or more specified conditions, restarting the analog-to-digital conversion starting at another bit of the set of bits. The given bit of the one or more additional bits following the MSB may include the (MSB-k)th bit, and restarting the analog-to-digital conversion starting at another bit of the set of bits may include restarting the analog-to-digital conversion starting at the (MSB-k+l)th bit, where l is an integer greater than or equal to 1.
[0062] In some embodiments, an article of manufacture comprises a non-transitory computer readable storage medium having executable instruction code embodied thereon that, when executed by a processor, causes the processor to perform an analog-to-digital conversion from an analog input to a digital output comprising a set of bits, the set of bits including a most significant bit and one or more additional bits, and the analog-to-digital conversion beginning with a given bit of the one or more additional bits following the most significant bit.
[0063] The executable instruction code, when executed by the processor, further causes the processor to perform the steps of detecting one or more specified conditions and, in response to detecting at least one of the one or more specified conditions, restarting the analog-to-digital conversion beginning at another bit of the set of bits. The given bit of the one or more additional bits following the most significant bit (MSB) may include a (MSB-k)th bit, and restarting the analog-to-digital conversion beginning at another bit of the set of bits may include restarting the analog-to-digital conversion beginning at a (MSB-k+l)th bit, where l is an integer greater than or equal to 1.
[0064] In some embodiments, a system includes a dot-product summation computation unit configured to perform a binary multiplication of a first vector and a second vector, a SAR ADC unit configured to convert an analog output of the dot-product summation computation unit to a digital output comprising a set of bits, the set of bits comprising a most significant bit and one or more additional bits, and controller logic operatively coupled to the SAR ADC unit, the controller logic configured to determine a value of the set of bits of the digital output based at least in part on a comparison of an output of the dot-product summation computation unit to a sequence of a weighted binary code starting with a given bit of the one or more additional bits following the most significant bit.
[0065] The given bit of the one or more additional bits following the MSB may include an (MSB-k)th bit, and the controller logic is further configured to, in response to detecting the one or more specified conditions based at least in part on values of a threshold number of consecutive bits of the one or more additional bits following the given bit of the one or more additional bits, restart determining values of the set of bits of the digital output using a new sequence of the weighted binary code starting with the (MSB-k+l)th bit, where l is an integer greater than or equal to 1.
[0066] The system may be implemented as part of an artificial intelligence system, as part of one or more integrated circuits, a combination thereof, etc.
[0067] In some embodiments, a device comprises a dot product summation circuit configured to output a first signal, the first signal comprising a dot product sum of a binary multiplication of a first vector and a second vector, and a SAR ADC configured to perform a conversion of the first signal output by the dot product summation circuit to a digital output comprising a set of bits, the set of bits comprising a most significant bit and one or more additional bits. The SAR ADC comprises a SAR controller circuit configured to output a second signal, and a comparator circuit comprising a first input node coupled to the dot product summation circuit, a second input node coupled to the SAR controller circuit, and an output node configured to provide an output value based at least in part on a comparison of the first value output by the dot product summation circuit and the second value output by the SAR controller circuit. The SAR controller circuit is configured to determine a value of the set of bits of the digital output based at least in part on an output value of the comparator circuit produced when a sequence of weighted binary codes is output as the second signal. The sequence of the weighted binary code begins with a given bit among one or more additional bits following the most significant bit.
[0068] The given bit of the one or more additional bits following the MSB includes an (MSB-k)th bit, and the SAR controller circuit may be further configured to, in response to detecting the one or more specified conditions based at least in part on values of a threshold number of consecutive bits of the one or more additional bits following the given bit of the one or more additional bits, restart determining a value of the set of bits of the digital output based at least in part on an output value of the comparator circuit produced when a new sequence of weighted binary codes is output as the second signal, where the new sequence of weighted binary codes starts from the (MSB-k+l)th bit, where l is an integer greater than or equal to 1.
[0069] The SAR controller circuit may be coupled to the comparator circuit via a number of capacitors.
[0070] The plurality of capacitors may each have a different capacitance value. The dot-product summation circuit may comprise a plurality of logical AND gates, each of the plurality of logical AND gates receiving as inputs a first vector element of the first vector and a second vector element of the second vector, the plurality of logical AND gates having respective outputs coupled to first plates of the plurality of capacitors.
[0071] Alternatively, each of the multiple capacitors may have the same capacitance value and multiple switches may be coupled between each of the multiple logical AND gates and the multiple capacitors, the multiple switches being configured to switch between a first operating mode in which a voltage on a common line coupled to second plates of the multiple capacitors represents a dot product sum of the first vector and the second vector, and a second operating mode in which a voltage on a common line coupled to the second plates of the multiple capacitors represents one of a sequence of weighted binary codes.
[0072] The dot product summation circuit may comprise an additional plurality of capacitors coupled via a plurality of switches to a plurality of logical AND gates, each of the plurality of logical AND gates receiving as inputs a first vector element of the first vector and a second vector element of the second vector, the plurality of logical AND gates having respective outputs coupled to first plates of the additional plurality of capacitors.
[0073] The dot-product summation circuit may comprise a plurality of bit cell processing units, each of which stores a first vector element value representing one of the elements of a first vector, receives as an input a second vector element value representing one of the elements of a second vector, and outputs a value representing a binary multiplication of the first vector element value and the second vector element value. Each of the plurality of bit cell processing units may comprise one of an RPU and a memory cell.
[0074] Further, embodiments of the present invention may utilize software executed on a computer or workstation. With reference to FIG. 12, such implementations may employ, for example, a processor 1202, a memory 1204, and an input / output interface formed, for example, by a display 1206 and a keyboard 1208. The term "processor" as used herein is intended to include any processing device, such as, for example, a multi-core CPU, a GPU, an FPGA, or other forms of processing circuitry, such as one or more ASICs, or a combination thereof. Furthermore, the term "processor" may refer to two or more individual processors. The term "memory" is intended to include memory associated with a processor (e.g., a CPU, a GPU, an FPGA, an ASIC, etc.), such as, for example, a RAM (random access memory), a ROM (read only memory), a fixed memory device (e.g., a hard drive), a removable memory device (e.g., a diskette), a flash memory, etc. Furthermore, the phrase "input / output interface" as used herein is intended to include, for example, mechanisms for inputting data into a processing unit (e.g., a mouse), and mechanisms for providing results associated with a processing unit (e.g., a printer). The processor 1202, memory 1204, and input / output interfaces such as a display 1206 and a keyboard 1208 may be interconnected via a bus 1210, for example, as part of a data processing unit 1212. Suitable interconnections may also be provided, for example via the bus 1210, to a network interface 1214, such as a network card provided for interfacing with a computer network, and a media interface 1216, such as a diskette or CD-ROM drive provided for interfacing with a media 1218.
[0075] Thus, computer software containing instructions or code for carrying out the inventive methodologies described herein may be stored in an associated memory device (e.g., ROM, fixed memory or removable memory) and loaded partially or entirely (e.g., into RAM) and executed by a CPU when ready for use. Such software includes, but is not limited to, firmware, resident software, microcode, etc.
[0076] A data processing system suitable for storing and / or executing program code will include at least one processor 1202 coupled directly or indirectly to memory elements 1204 via a system bus 1210. The memory elements may include local memory used during the actual execution of the program code, bulk storage, and cache memory that provides temporary storage of at least some of the program code to reduce the number of times the code must be retrieved from bulk storage during execution.
[0077] Input / output or I / O devices (including but not limited to keyboard 1208, display 1206, pointing device, etc.) may be coupled to the system either directly (such as via a bus 1210) or through intervening I / O controllers (omitted for clarity).
[0078] Network adapters, such as network interface 1214, may also be coupled to the system to enable the data processing system to become coupled to other data processing systems or remote printers or storage devices through intervening private or public networks. Modems, cable modems, and Ethernet® cards are just a few of the types of network adapters currently available.
[0079] As used herein, including the claims, a "server" includes a physical data processing system that executes a server program (e.g., system 1212 shown in FIG. 12). It will be understood that such a physical server may or may not include a display and keyboard.
[0080] The invention may be a system, method, and / or computer program product at any possible level of technical detail integration. The computer program product may include a computer readable storage medium (or multiple computer readable storage media) having computer readable program instructions for causing a processor to implement aspects of the invention.
[0081] A computer readable storage medium may be a tangible device capable of holding and storing instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. A non-exhaustive list of more specific examples of computer readable storage media includes the following: portable computer diskettes, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), SRAM, portable compact disk read only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically encoded devices such as punch cards or raised structures in grooves with instructions recorded thereon, and any suitable combination of the above. As used herein, a computer-readable storage medium should not be construed as a transitory signal per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., light pulses through a fiber optic cable), or electrical signals transmitted over electrical wires.
[0082] The computer readable program instructions described herein may be downloaded from a computer readable storage medium to the respective computing / processing device or to an external computer or storage device via a network, such as the Internet, a local area network, a wide area network, or a wireless network, or a combination thereof. The network may include copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each computing / processing device receives the computer readable program instructions from the network and forwards the computer readable program instructions to a computer readable storage medium within the respective computing / processing device for storage.
[0083] The computer readable program instructions for carrying out the operations of the present invention may be either assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, configuration data for an integrated circuit, or source or object code written in any combination of one or more programming languages, including object oriented programming languages such as Smalltalk®, C++, and procedural programming languages such as the “C” programming language or similar programming languages. The computer readable program instructions may be executed entirely on the user's computer as a stand-alone software package, partially on the user's computer, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may execute computer readable program instructions to perform aspects of the invention by utilizing state information of the computer readable program instructions to personalize the electronic circuitry.
[0084] Aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, are implemented by computer readable program instructions.
[0085] These computer readable program instructions may be provided to a processor of a computer or other programmable data processing apparatus to produce a machine, such that the instructions, executed by the processor of the computer or other programmable data processing apparatus, produce means for performing the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams. These computer readable program instructions may also be stored on a computer readable medium, such that the computer readable storage medium on which the instructions are stored comprises an article of manufacture including instructions implementing aspects of the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams, and can direct a computer, programmable data processing apparatus, or other device, or combination thereof, to function in a particular manner.
[0086] The computer readable program instructions may also be loaded into a computer, other programmable data processing apparatus, or other device to create a computer-implemented process that causes a series of operational steps to be performed on the computer, other programmable apparatus, or other device, such that the instructions, which execute on the computer, other programmable apparatus, or other device, perform the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams.
[0087] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or portion of instructions, including one or more executable instructions for implementing a specified logical function. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may in fact be accomplished as one step, or may be executed simultaneously, substantially simultaneously, partially or fully in a time-overlapping manner, or in some cases the blocks may be executed in the reverse order, depending on the functionality involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, are implemented by a dedicated hardware-based system that performs the specified functions or operations, or performs a combination of dedicated hardware and computer instructions.
[0088] It should be noted that any of the methods described herein may include the additional step of providing a system including separate software modules embodied on a computer-readable storage medium, i.e., the modules may include, for example, any or all of the components detailed herein. In that case, the method steps may be performed using the separate software modules and / or sub-modules of the system, executed on the hardware processor 1202 as described above. Additionally, a computer program product may include a computer-readable storage medium having code adapted to be implemented to perform at least one method step described herein, including providing a system having separate software modules.
[0089] In each case, it will be understood that the components illustrated herein may be implemented in various forms of hardware, software, or combinations thereof, such as, for example, application specific integrated circuits (ASICs), functional circuits, appropriately programmed digital computers with associated memories, etc. Those skilled in the relevant art will be able to contemplate other implementations of the components of the present invention given the teachings of the invention provided herein.
[0090] Although this disclosure includes detailed descriptions of cloud computing, it should be understood that implementation of the teachings described herein is not limited to a cloud computing environment. Rather, embodiments of the invention may be implemented in conjunction with any other type of computing environment now known or later developed.
[0091] Cloud computing is a service delivery model that enables convenient, on-demand network access to a shared pool of configurable computing resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) and enables these computing resources to be rapidly provisioned and released with minimal administrative effort or interaction with the service provider. The cloud model may include at least five characteristics, at least three service models, and at least four deployment models.
[0092] Its features are as follows:
[0093] On-Demand Self-Service: Cloud consumers can unilaterally provision computing capacity, such as server time and network storage, automatically as needed, without the need for human interaction with the provider of the service.
[0094] Pervasive Network Access: Functionality is available over the network and accessed through standard mechanisms that facilitate use by heterogeneous thin- or thick-client platforms (e.g., cell phones, laptops, and PDAs).
[0095] Resource Pooling: Providers' computing resources are pooled to serve multiple consumers using a multi-tenant model, with different physical and virtual resources dynamically allocated and reallocated on demand. There is location independence in that consumers generally have no control or knowledge of the exact location of the provided resources, although it may be possible to specify the location at a higher level of abstraction (e.g., country, state, or data center).
[0096] Rapid Elasticity: Capabilities can be rapidly and elastically provisioned, sometimes automatically, to rapidly scale out and rapidly release to rapidly scale in. To the consumer, the capabilities available for provisioning often appear to be unlimited and can be purchased in any quantity at any time.
[0097] Service Metering: Cloud systems automatically control and optimize resource usage by leveraging metering capabilities at a certain level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported, providing transparency to both providers and consumers of the services utilized.
[0098] The service model is as follows:
[0099] Software as a Service (SaaS): The capability offered to a consumer to use a provider's applications running on a cloud infrastructure. The applications are accessible from a variety of client devices through thin-client interfaces such as web browsers (e.g., web-based email). With the possible exception of limited user-specific application configuration settings, the consumer does not manage or control the underlying cloud infrastructure, including the network, servers, operating systems, storage, or individual application features.
[0100] Platform as a Service (PaaS): is the capability offered to a consumer to deploy applications that the consumer creates or acquires, written using programming languages and tools supported by the provider, onto a cloud infrastructure. The consumer does not manage or control the underlying cloud infrastructure, such as networks, servers, operating systems, or storage, but does control the deployed applications and, in some cases, the application hosting environment configuration.
[0101] Infrastructure as a Service (IaaS): The capability offered to consumers to provision processing, storage, network, and other basic computational resources on which the consumer can deploy and run any software, which may include operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure, but does control the operating systems, storage, deployed applications, and possibly limited control over selected network components (e.g., host firewalls).
[0102] The deployment model is as follows:
[0103] Private Cloud: The cloud infrastructure is operated exclusively for an organization. This cloud infrastructure may be managed by the organization or a third party and may reside on-premise or off-premise.
[0104] Community Cloud: Cloud infrastructure is shared by multiple organizations to support a specific community of shared concerns (e.g., mission, security requirements, policies, and compliance considerations). This cloud infrastructure may be managed by the organizations or a third party and may reside on-premise or off-premise.
[0105] Public Cloud: The cloud infrastructure is available to the general public or large industry groups and is owned by organizations that sell cloud services.
[0106] Hybrid Cloud: A cloud infrastructure is a composition of two or more clouds (private, community, or public) that remain unique entities but are tied together by standardized or proprietary technologies that allow for data and application portability (e.g., cloud bursting for load balancing between clouds).
[0107] Cloud computing environments are service-oriented with an emphasis on statelessness, low coupling, modularity, and semantic interoperability. At the heart of cloud computing is an infrastructure that includes a network of interconnected nodes.
[0108] 13, an exemplary cloud computing environment 1350 is shown. As shown, the cloud computing environment 1350 includes one or more cloud computing nodes 1310 with which a local computing device used by a cloud consumer, such as, for example, a personal digital assistant (PDA) or mobile phone 1354A, a desktop computer 1354B, a laptop computer 1354C, or an automobile computer system 1354N, or a combination thereof, may communicate. The nodes 1310 may communicate with each other. They may be physically or virtually grouped in one or more networks, such as a private cloud, a community cloud, a public cloud, or a hybrid cloud, or a combination thereof, as described herein above (not shown). This enables the cloud computing environment 1350 to provide infrastructure, platform, and / or software as a service without the cloud consumer having to maintain resources on a local computing device. It should be understood that the types of computing devices 1354A-1354N shown in FIG. 13 are intended to be illustrative only, and that the computing node 1310 and cloud computing environment 1350 can communicate with any type of computerized device via any type of network and / or network addressable connections (e.g., using a web browser).
[0109] Referring now to Figure 14, a set of functional abstraction layers provided by cloud computing environment 1350 (Figure 13) is shown. It should be understood in advance that the components, layers, and functions shown in Figure 14 are intended to be illustrative only, and embodiments of the present invention are not limited thereto. As shown, the following layers and corresponding functions are provided:
[0110] Hardware and software layer 1460 includes hardware and software components. Examples of hardware components include mainframes 1461, RISC (reduced instruction set computer) architecture based servers 1462, servers 1463, blade servers 1464, storage devices 1465, and networks and networking components 1466. In some embodiments, software components include network application server software 1467 and database software 1468.
[0111] The virtualization layer 1470 provides an abstraction layer from which the following examples of virtual entities may be provided: virtual servers 1471, virtual storage 1472, virtual networks including virtual private networks 1473, virtual applications and operating systems 1474, and virtual clients 1475.
[0112] In one example, management layer 1480 may provide the functionality described below. Resource provisioning 1481 provides dynamic procurement of computational and other resources utilized to execute tasks within the cloud computing environment. Metering and pricing 1482 provides cost tracking as resources are utilized within the cloud computing environment and charging or billing for the consumption of these resources. In one example, these resources may include application software licenses. Security provides identity verification for cloud consumers and tasks, and protection for data and other resources. User portal 1483 provides consumers and system administrators with access to the cloud computing environment. Service level management 1484 provides allocation and management of cloud computational resources such that requested service levels are met. Service level agreement (SLA) planning and fulfillment 1485 provides pre-positioning and procurement of cloud computational resources anticipated to be required in the future according to SLAs.
[0113] The Workloads tier 1490 provides examples of functions for which cloud computing environments are utilized. Examples of workloads and functions provided from this tier include mapping and navigation 1491, software development and lifecycle management 1492, virtual classroom instructional delivery 1493, data analytics processing 1494, transaction processing 1495, and artificial intelligence algorithm processing (with energy-efficient MS-DPE / MS-MAC computation) 1496 in accordance with one or more embodiments of the present invention.
[0114] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will be further understood that the terms "comprises" and / or "comprising", as used herein, indicate the presence of stated features, steps, operations, elements, or components, or a combination thereof, but do not exclude the presence or addition of other features, steps, operations, elements, components, or groups thereof, or a combination thereof.
[0115] The description of various embodiments of the present invention is presented for illustrative purposes and is not intended to be exhaustive or limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terms used in this specification are selected to best explain the principles of the embodiments, practical applications, or technical improvements to the technology found in the market, or to allow those skilled in the art to understand the embodiments disclosed in this specification.
Claims
1. 1. An apparatus comprising: At least one processor; at least one memory containing instruction code; wherein the at least one memory and the instruction code are transmitted by the at least one processor to the device, Performing an analog-to-digital conversion from an analog input to a digital output comprising a set of bits, the set of bits comprising a most significant bit and one or more additional bits, the analog-to-digital conversion beginning with a given bit of the one or more additional bits following the most significant bit. An apparatus configured to cause
2. The at least one memory and the instruction code are transmitted by the at least one processor to the device, Detecting one or more specified conditions; in response to detecting at least one of the one or more specified conditions, restarting the analog-to-digital conversion beginning with another bit of the set of bits; The apparatus of claim 1 , further configured to:
3. 3. The apparatus of claim 2, wherein detecting the at least one of the one or more specified conditions is based at least in part on a value of a threshold number of consecutive bits of the one or more additional bits following the given bit of the one or more additional bits.
4. 4. The apparatus of claim 3, wherein the threshold number is selected based at least in part on at least one of an output probability distribution of a dot product engine that performs binary multiplication of a first vector and a second vector and a tolerance of error in an output of the analog-to-digital conversion.
5. 3. The apparatus of claim 2, wherein the given bit of the one or more additional bits following the most significant bit comprises a first bit of the one or more additional bits following the most significant bit, and wherein restarting the analog to digital conversion starting from another bit of the set of bits comprises restarting the analog to digital conversion starting from the most significant bit.
6. 3. The apparatus of claim 2, wherein the given bit of the one or more additional bits following the most significant bit (MSB) comprises a (MSB-k)th bit, and restarting the analog to digital conversion starting at another bit of the set of bits comprises restarting the analog to digital conversion starting at a (MSB-k+l)th bit, where l is an integer greater than or equal to 1.
7. 7. The apparatus of claim 6, wherein a value of k is selected based at least in part on at least one of an output probability distribution of a dot product engine that performs binary multiplication of a first vector and a second vector and a tolerance of error in an output of the analog-to-digital conversion.
8. a dot-product sum computation unit configured to perform a binary multiplication of a first vector and a second vector; the analog-to-digital conversion is performed by a successive approximation register analog-to-digital converter unit, an analog output of the dot-product summation computation unit being the analog input, the apparatus further comprising controller logic operatively coupled to the successive approximation register analog-to-digital converter unit, the controller logic configured to determine a value of the set of bits of the digital output based at least in part on a comparison of an output of the dot-product summation computation unit to a sequence of a weighted binary code; 2. The apparatus of claim 1, wherein the sequence of weighted binary codes begins with a given bit of the one or more additional bits following the most significant bit.
9. 10. The system of claim 8, wherein the given bit of the one or more additional bits following the most significant bit (MSB) comprises a (MSB-k)th bit, and the controller logic is further configured to, in response to detecting one or more specified conditions based at least in part on a value of a threshold number of consecutive bits of the one or more additional bits following the given bit of the one or more additional bits, restart determining the value of the set of bits of the digital output using a new sequence of weighted binary codes starting at a (MSB-k+l)th bit, where l is an integer greater than or equal to 1.
10. The system of claim 8 , wherein the system is implemented as part of an artificial intelligence system.
11. The system of claim 8 , wherein the system is implemented as part of one or more integrated circuits.
12. 1. A method comprising: performing an analog-to-digital conversion from an analog input to a digital output comprising a set of bits, the set of bits comprising a most significant bit and one or more additional bits, the analog-to-digital conversion beginning with a given bit of the one or more additional bits following the most significant bit; 4. A method according to claim 1, wherein the method is performed by a processing circuit configured to execute instruction code.
13. Detecting one or more specified conditions; in response to detecting at least one of the one or more specified conditions, restarting the analog-to-digital conversion beginning with another bit of the set of bits; Further comprising:
13. The method of claim 12, wherein the given bit of the one or more additional bits following the most significant bit (MSB) comprises a (MSB-k)th bit, and restarting the analog to digital conversion beginning with another bit of the set of bits comprises restarting the analog to digital conversion beginning with a (MSB-k+l)th bit, where l is an integer greater than or equal to 1.
14. 1. An article of manufacture comprising a non-transitory computer readable storage medium having executable instruction code embodied therein, the executable instruction code, when executed by a processor, causing the processor to: performing an analog-to-digital conversion from an analog input to a digital output comprising a set of bits, the set of bits comprising a most significant bit and one or more additional bits, the analog-to-digital conversion beginning with a given bit of the one or more additional bits following the most significant bit; A manufactured product that performs the following:
15. The executable instruction code, when executed by the processor, further causes the processor to: Detecting one or more specified conditions; in response to detecting at least one of the one or more specified conditions, restarting the analog-to-digital conversion beginning with another bit of the set of bits; Run the command, 15. The article of manufacture of claim 14, wherein the given bit of the one or more additional bits following the most significant bit (MSB) comprises a (MSB-k)th bit, and restarting the analog to digital conversion beginning at another bit of the set of bits comprises restarting the analog to digital conversion beginning at a (MSB-k+l)th bit, where l is an integer greater than or equal to 1.
16. 1. A system comprising: a dot-product sum computation unit configured to perform a binary multiplication of a first vector and a second vector; a successive approximation register analog-to-digital converter unit configured to convert an analog output of the dot-product summation computation unit into a digital output comprising a set of bits, the set of bits comprising a most significant bit and one or more additional bits; controller logic operably coupled to the successive approximation register analog-to-digital converter unit, the controller logic configured to determine a value of the set of bits of the digital output based at least in part on a comparison of an output of the dot-product summation computation unit to a sequence of a weighted binary code; Including, The system wherein the sequence of weighted binary codes begins with a given bit of the one or more additional bits following the most significant bit.
17. 17. The system of claim 16, wherein the given bit of the one or more additional bits following the most significant bit (MSB) comprises a (MSB-k)th bit, and the controller logic is further configured to, in response to detecting one or more specified conditions based at least in part on a value of a threshold number of consecutive bits of the one or more additional bits following the given bit of the one or more additional bits, restart determining the value of the set of bits of the digital output using a new sequence of weighted binary codes starting at a (MSB-k+l)th bit, where l is an integer greater than or equal to 1.
18. The system of claim 16 , wherein the system is implemented as part of an artificial intelligence system.
19. The system of claim 16 , wherein the system is implemented as part of one or more integrated circuits.
20. A device, comprising: a dot-product summation circuit configured to output a first signal, the first signal comprising a dot-product sum of a binary multiplication of a first vector and a second vector; a successive approximation register analog-to-digital converter configured to perform a conversion of the first signal output by the dot-product summation circuit to a digital output comprising a set of bits, the set of bits comprising a most significant bit and one or more additional bits; said successive approximation register analog to digital converter comprising: a successive approximation register controller circuit configured to output a second signal; and a comparator circuit comprising a first input node coupled to the dot product summation circuit, a second input node coupled to the successive approximation register controller circuit, and an output node configured to provide an output value based at least in part on a comparison of a first value output by the dot product summation circuit and a second value output by the successive approximation register controller circuit. Equipped with the successive approximation register controller circuit is configured to determine values of the set of bits of the digital output based at least in part on an output value of the comparator circuit produced when a sequence of weighted binary codes is output as the second signal; The device, wherein the sequence of weighted binary codes begins at a given bit of the one or more additional bits following the most significant bit.
21. 21. The device of claim 20, wherein the given bit of the one or more additional bits following the most significant bit (MSB) comprises a (MSB-k)th bit, and wherein the successive approximation register controller circuit is further configured to, in response to detecting one or more specified conditions based at least in part on a value of a threshold number of consecutive bits of the one or more additional bits following the given bit of the one or more additional bits, restart determining the value of the set of bits of the digital output based at least in part on an output value of the comparator circuit produced when a new sequence of weighted binary codes is output as the second signal, the new sequence of weighted binary codes starting from a (MSB-k+l)th bit, where l is an integer greater than or equal to 1.
22. 21. The device of claim 20, wherein the successive approximation register controller circuit is coupled to the comparator circuit through a plurality of capacitors.
23. 23. The device of claim 22, wherein the plurality of capacitors each have a different capacitance value.
24. 23. The device of claim 22, wherein the dot product summation circuit comprises a plurality of logical AND gates, each of the plurality of logical AND gates receiving as inputs a first vector element of the first vector and a second vector element of the second vector, the plurality of logical AND gates having respective outputs coupled to first plates of the plurality of capacitors.
25. 23. The device of claim 22, wherein each of the plurality of capacitors has the same capacitance value.
26. 26. The device of claim 25, wherein a plurality of switches are coupled between each of the plurality of logical AND gates and the plurality of capacitors, the plurality of switches being configured to switch between a first operating mode in which a voltage on a common line coupled to second plates of the plurality of capacitors represents the dot product sum of the first vector and the second vector, and a second operating mode in which the voltage on the common line coupled to the second plates of the plurality of capacitors represents one of the sequences of a weighted binary code.
27. 23. The device of claim 22, wherein the dot product summation circuit comprises an additional plurality of capacitors coupled via a plurality of switches to a plurality of logical AND gates, each of the plurality of logical AND gates receiving as inputs a first vector element of the first vector and a second vector element of the second vector, the plurality of logical AND gates having respective outputs coupled to first plates of the additional plurality of capacitors.
28. the dot-product summation circuit comprises a plurality of bit cell processing units, each of the plurality of bit cell processing units comprising: storing a first vector element value representing one of said elements of said first vector; receiving as an input a second vector element value representing one of the elements of the second vector; 21. The device of claim 20, wherein the device outputs a value representing a binary multiplication of the first vector element value and the second vector element value.
29. 30. The device of claim 28, wherein each of the plurality of bit cell processing units comprises one of a resistive processing unit and a memory cell.
Citation Information
Patent Citations
Successive approximation ad converter and method of inspecting the same
JP2012209686A
Ultrasound diagnostic apparatus and ultrasound image producing method
JP2012235912A
Analog-digital conversion device
JP2013085134A
A / d conversion circuit and electronic apparatus
JP2013211651A
Configurable in-memory computing engines, platforms, bit cells, and layouts therefor
JP2021527886A
