Input-pattern aware reference generation system and computing-in-memory system including the same
10340003 ยท 2019-07-02
Assignee
Inventors
Cpc classification
G11C7/12
PHYSICS
G11C7/1006
PHYSICS
G11C2013/0054
PHYSICS
International classification
G11C11/00
PHYSICS
G11C7/12
PHYSICS
G11C13/00
PHYSICS
G11C11/56
PHYSICS
Abstract
An input-pattern aware reference generation system for a memory cell array having a plurality of word lines crossing a plurality of bit lines includes an input counting circuit, a reference array, and a reference word line control circuit. The input counting circuit receives the input signal of the memory cell array, discovers input activated word lines according to the input signal and generates a number signal representing a number of the input activated word lines. The reference array includes a plurality of reference memory cells storing a predetermined set of weights. The reference word line control circuit is electrically connected between the input counting circuit and the reference array. Moreover, the reference word line control circuit controls the reference array to generate a plurality of reference signals being able to distinguish candidates of the computational result of the bit lines in the memory cell array.
Claims
1. An input-pattern aware reference generation system for a memory cell array having a plurality of word lines crossing a plurality of bit lines, the plurality of word lines being selectively activated by an input signal such that each of the plurality of bit lines generates a computational result of multiply-and-accumulate (MAC) computation, the system comprising: an input counting circuit, receiving the input signal of the memory cell array, discovering input activated word lines according to the input signal and generating a number signal representing a number of the input activated word lines; a reference array, comprising a plurality of reference memory cells storing a predetermined set of weights; and a reference word line control circuit, electrically connected between the input counting circuit and the reference array, the reference word line control circuit controlling the reference array to generate a plurality of reference signals being able to distinguish candidates of the computational result of the bit lines in the memory cell array according to the number signal.
2. The system of claim 1, wherein the reference array comprises a plurality of reference bit lines, and the predetermined set of weights is arranged such that the plurality of reference bit lines each represents a possible MAC computational result of a combination of 0's and 1's stored in each memory cell of the memory cell array.
3. The system of claim 2, wherein the plurality of reference signals are selected according to outputs of the reference bit lines.
4. The system of claim 3, wherein the plurality of reference signals each represents an average of two neighboring outputs of the reference bit lines.
5. The system of claim 1, wherein the reference array comprises one or more reference sub-array and each of the reference sub-arrays comprises m reference word lines crossing n reference bit lines; wherein when the number signal is q, q reference word lines among m reference word lines are activated according to the input signal, the n reference bit lines generate at least q+1 MAC computational results corresponding to combinations of r 1's and s 0's, wherein m, n, and q are integers, 0r, sq, and r+s=q.
6. The system of claim 1, wherein the reference signals are voltage signals or current signals.
7. The system of claim 1, wherein the memory cell array is a non-volatile memory (NVM) used in a computing-in-memory (CIM) application.
8. A system for computing-in-memory approach, comprising: a memory cell array having a plurality of word lines crossing a plurality of bit lines, the plurality of word lines being selectively activated by an input signal such that each of the plurality of bit lines generates a computational result of multiply-and-accumulate (MAC) computation; an input-pattern aware reference generation circuit, comprising: an input counting circuit, receiving the input signal of the memory cell array, and discovering input activated word lines according to the input signal and generating a number signal representing a number of input activated word lines; a reference array, comprising a plurality of reference memory cells storing a predetermined set of weights; and a reference word line control circuit, electrically connected between the input counting circuit and the reference array, the reference word line control circuit controlling the reference array to generate a plurality of reference signals being able to distinguish candidates of the computational result of the bit lines in the memory cell array according to the number signal; and a multi-level sensing current sense amplifier comprising: a sense amplifier, electrically connected to the memory cell array; a reference selecting circuit, electrically connected between the reference array and the sense amplifier, the reference selecting circuit selecting and transmitting at least one of the reference signals to the sense amplifier; and a sense amplifier output latch, electrically connected between the sense amplifier and the reference selecting circuit, the sense amplifier output latch matching the computational result of the bit lines with the candidates and outputting a matched computational result of the bit lines.
9. The system of claim 8, wherein the reference array comprise a plurality of reference bit lines, and the predetermined set of weights is arranged such that the plurality of reference bit lines each represents a possible MAC computational result of a combination of 0's and 1's stored in each memory cell of the memory cell array.
10. The system of claim 9, wherein the plurality of reference signals are selected according to outputs of the reference bit lines.
11. The system of claim 10, wherein the plurality of reference signals each represents an average of two neighboring outputs of the reference bit lines.
12. The system of claim 8, wherein the reference array comprises one or more reference sub-array and each of the reference sub-arrays comprises m reference word lines crossing n reference bit lines; wherein when the number signal is q, q reference word lines among m reference word lines are activated according to the input signal, the n reference bit lines generate at least q+1 MAC computational results corresponding to combinations of r 1's and s 0's, wherein m, n, and q are integers, 0r, sq, and r+s=q.
13. The system of claim 8, wherein the reference signals are voltage signals or current signals.
14. The system of claim 8, wherein the memory cell array is a non-volatile memory (NVM).
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
(11) The advantages, features and technical methods of this invention will be described in detail in order to be understood easier. Moreover, the present invention may be realized in different form and should not be limited to the embodiments described here. On the contrary, the provided embodiments make the disclosure more clear and define the scope of this invention entirely and completely. Further, the present invention is only defined according to the attached claims.
(12)
(13) Refer to
(14)
wherein INP.sub.i represents the input signal of the word line WL.sub.i; W.sub.ij represents weight of the memory cell connecting to the word line WL.sub.i and the bit line BL.sub.j; I.sub.MC.sub._.sub.ij represents the memory cell current of the memory cell connecting to the word line WL.sub.i and the bit line BL.sub.j. Refer to
(15) However, refer to
(16) In order to solve the current variation problem in the MAC computation, a system which can properly distinguish candidates of the computational MAC (multiply-and-accumulate) result of each bit line of the memory cell array 200 under the existence of the leakage current is needed. The present disclosure thus provides the input-pattern aware reference generation system to generate reference signals for properly distinguish candidates of the computational result of each bit line so as to correctly judge the MACV of each bit line of the memory cell 200.
(17) Hereinafter, the generation of the reference signals for distinguishing candidates of the computational MAC (multiply-and-accumulate) result of each bit line of the memory cell array 200 will be described in detail.
(18) According to an embodiment of the present disclosure, refer to
(19) The reference array 103 is arranged on a host memory cell array 104 and includes at least one reference sub-array. Each reference sub-array has a plurality of reference memory cells. Furthermore, each of the reference memory cells is a binary resistor which is configured in the low resistive state (LRS) or in the high resistive state (HRS) in advance.
(20) According to an embodiment of the present disclosure, the table in
(21) It should be noted that the number of the reference bit lines in each reference sub-array may be arbitrary rather than 8 illustrated in the embodiment of the present disclosure. Similarly, the number of the reference sub-arrays in the reference array 103 may be arbitrary as well.
(22) Refer to
(23) Refer to
(24) According to the present embodiment, after receiving the number signal NSL, the reference word line control circuit 102 then activates reference word lines RWL of each reference sub-array according to the number signal NSL. In Example 1 of
(25) After the foregoing reference word lines are activated, each reference sub-array generates a plurality of reference signals. According to an embodiment having the reference sub-array with the resistor configuration shown in the table of
(26) According to Eq. (1), each reference signal of the reference bit lines RBL0-RBL7 is the summation of the memory cell currents of the reference memory cells connecting to the corresponding reference bit line, respectively. That is, each reference signal is the reference bit line current of the corresponding reference bit line (hereinafter, the reference signal is referred as the reference bit line current). For, example, the reference bit line current of the reference bit line RBL3 is the summation of the memory cell currents of three low resistive state memory cells and two high resistive state memory cells when the number signal NWL is equal to 5 in the present embodiment. In other words, the reference bit line current of the reference bit line RBL3 (hereinafter, denoted as I.sub.RBL3) is the computational MAC result of three H's (weight=0) and two L's (weight=1) when the number signal NWL is equal to 5. In the meantime, when the number signal NWL is equal to 5, the reference bit line current of the reference bit line RBL0 (hereinafter, denoted as I.sub.RBL0) is the computational MAC result of five H's; the reference bit line current of the reference bit line RBL1 (hereinafter, denoted as I.sub.RBL1) is the computational MAC result of four H's and one L; the reference bit line current of the reference bit line RBL2 (hereinafter, denoted as I.sub.RBL2) is the computational MAC result of three H's and two L's; the reference bit line current of the reference bit line RBL4 (hereinafter, denoted as I.sub.RBL4) is the computational MAC result of one H and four L's; the reference bit line current of each reference bit lines RBL5RBL7 (hereinafter, denoted as I.sub.RBL5I.sub.RBL7) is the computational MAC result of five L's.
(27) After being generated, eight reference bit line currents are then selectively transmitted to the multi-level sensing current sense amplifier 400 through the multiplexer 500 connecting to the reference sub-array, as shown in
(28) Hereinafter, the comparison process for judging the MACV of the bit line current is discussed:
(29) Refer to
(30) In some embodiments of the present disclosure, only one of the eight reference bit line currents is selected to compare with the bit line current each time, while in some embodiments, two of the eight reference bit line currents are simultaneously selected each time. However, the present disclosure should not be limit to this. The number of the selected reference bit line currents may be arbitrary.
(31) Refer to
(32) In some embodiments of the present disclosure, an average value of two reference bit line currents is used each time. Refer to
I.sub.REF.sub._.sub.av0=(I.sub.RBL0+I.sub.RBL1)/2(2)
I.sub.REF.sub._.sub.av1=(I.sub.RBL1+I.sub.RBL2)/2(3)
I.sub.REF.sub._.sub.av2=(I.sub.RBL2+I.sub.RBL3)/2(4)
I.sub.REF.sub._.sub.av3=(I.sub.RBL3+I.sub.RBL4)/2(5)
I.sub.REF.sub._.sub.av4=(I.sub.RBL4+I.sub.RBL5)/2(6)
I.sub.REF.sub._.sub.av5=(I.sub.RBL5+I.sub.RBL6)/2(7)
I.sub.REF.sub._.sub.av6=(I.sub.RBL6+I.sub.RBL7)/2(8)
(33) It should be noted that those average values are depicted as an up-pointing arrow in
(34) According to the embodiment having the reference array 103 with the resistor configuration shown in the table of
I.sub.REF.sub._.sub.av0=(I.sub.HRS+I.sub.LRS)/2
I.sub.REF.sub._.sub.av1=(I.sub.LRS+I.sub.LRS)/2
I.sub.REF.sub._.sub.av2=(I.sub.LRS+I.sub.LRS)/2
I.sub.REF.sub._.sub.av3=(I.sub.LRS+I.sub.LRS)/2
I.sub.REF.sub._.sub.av4=(I.sub.LRS+I.sub.LRS)/2
I.sub.REF.sub._.sub.av5=(I.sub.LRS+I.sub.LRS)/2
I.sub.REF.sub._.sub.av6=(I.sub.LRS+I.sub.LRS)/2
Wherein I.sub.HRS represents memory cell current of a memory cell in the high resistive state and I.sub.LRS represents memory cell current of a memory cell in the low resistive state.
(35) Furthermore, only the average values of each two reference bit line currents which are closest to each other and different from each other in the reference bit line current set are denoted as an up-pointing arrow in
(36) Similarly, when the number signal NWL is equal to 2, Eq. (2)-Eq. (8) become:
I.sub.REF.sub._.sub.av0=(2I.sub.HRS+(I.sub.LRS+I.sub.HRS))/2
I.sub.REF.sub._.sub.av1=((I.sub.LRS+I.sub.HRS)+2I.sub.LRS)/2
I.sub.REF.sub._.sub.av2=(2I.sub.LRS+2I.sub.LRS)/2
I.sub.REF.sub._.sub.av3=(2I.sub.LRS+2I.sub.LRS)/2
I.sub.REF.sub._.sub.av4=(2I.sub.LRS+2I.sub.LRS)/2
I.sub.REF.sub._.sub.av5=(2I.sub.LRS+2I.sub.LRS)/2
I.sub.REF.sub._.sub.av6=(2I.sub.LRS+2I.sub.LRS)/2
wherein only I.sub.REF.sub._.sub.av0 and I.sub.REF.sub._.sub.av1 are both denoted as an up-pointing arrow when NSL=2 in
(37) Similarly, when the number signal NWL is equal to 7, Eq. (2)-Eq. (8) become:
I.sub.REF.sub._.sub.av0=(7I.sub.HRS+(6I.sub.HRS+I.sub.LRS))/2
I.sub.REF.sub._.sub.av1=((6I.sub.HRS+I.sub.LRS)+(5I.sub.HRS+2I.sub.LRS))/2
I.sub.REF.sub._.sub.av2=((5I.sub.HRS+2I.sub.LRS)+(4I.sub.HRS+3I.sub.LRS))/2
I.sub.REF.sub._.sub.av3=((4I.sub.HRS+3I.sub.LRS)+(3I.sub.HRS+4I.sub.LRS))/2
I.sub.REF.sub._.sub.av4=((3I.sub.HRS+4I.sub.LRS)+(2I.sub.HRS+5I.sub.LRS))/2
I.sub.REF.sub._.sub.av5=((2I.sub.HRS+5I.sub.LRS)+(I.sub.HRS+6I.sub.LRS))/2
I.sub.REF.sub._.sub.av6=((I.sub.HRS+6I.sub.LRS)+(7I.sub.LRS))/2
wherein I.sub.REF.sub._.sub.av0-I.sub.REF.sub._.sub.av6 are all denoted as an up-pointing arrow when NSL=7 in
(38) Similarly, when the number signal NWL is equal to 9, Eq. (2)-Eq. (8) become:
I.sub.REF.sub._.sub.av0=(9I.sub.HRS+(8I.sub.HRS+I.sub.LRS))/2
I.sub.REF.sub._.sub.av1=((8I.sub.HRS+I.sub.LRS)+(7I.sub.HRS+2I.sub.LRS))/2
I.sub.REF.sub._.sub.av2=((7I.sub.HRS+2I.sub.LRS)+(6I.sub.HRS+3I.sub.LRS))/2
I.sub.REF.sub._.sub.av3==((6I.sub.HRS+3I.sub.LRS)+(5I.sub.HRS+4I.sub.LRS))/2
I.sub.REF.sub._.sub.av4=((5I.sub.HRS+4I.sub.LRS)+(4I.sub.HRS+5I.sub.LRS))/2
I.sub.REF.sub._.sub.av5=((4I.sub.HRS+5I.sub.LRS)+(3I.sub.HRS+6I.sub.LRS))/2
I.sub.REF.sub._.sub.av6=((3I.sub.HRS+6I.sub.LRS)+(2I.sub.HRS+7I.sub.LRS))/2
wherein I.sub.REF.sub._.sub.av0-I.sub.REF.sub._.sub.av6 are all denoted as an up-pointing arrow when NSL=9 in
(39) Refer to
(40) The average values of the reference bit line currents include the leakage currents of the high resistive state cells of each reference sub-array, which means that those average values (those up-pointing arrows in
(41) Refer to
(42) Refer to
(43) In accordance with the above description, the input-pattern aware reference generation system can properly distinguish candidates of the bit line current and further increase the sensing margin and improve the sensing yield in comparison with the conventional reference bit line current scheme.
(44) The above description is merely illustrative and not restrictive. Any equivalent modification or change without departing from the spirit and scope of the present disclosure should be included in the appended claims.