DATA COMPARISON CIRCUIT AND SEMICONDUCTOR DEVICE
20170244398 · 2017-08-24
Inventors
Cpc classification
G11C11/401
PHYSICS
International classification
Abstract
A semiconductor device that enables a memory size reduction is provided. The semiconductor device includes a converter circuit, a memory circuit, and a detection circuit. The converter circuit has a function of converting first data that includes a digital voltage value to second data that includes an analog current value. The memory circuit has a function of storing third data that includes an analog current value. The detection circuit has a function of generating data that indicates whether the analog current values of the second and third data match.
Claims
1. A data comparison circuit comprising: a first circuit; a second circuit; and a third circuit, wherein the first circuit is configured to convert first data comprising a digital voltage value to second data comprising an analog current value, wherein the second circuit is configured to store third data comprising an analog current value, and wherein the third circuit is configured to generate data that indicate whether the analog current value of the second data and the analog current value of the third data match.
2. The data comparison circuit according to claim 1, wherein the first circuit comprises a current-mirror circuit, a first transistor and a second transistor, wherein one of a source and a drain of the first transistor is electrically connected to one of a source and a drain of the second transistor, wherein the other of the source and the drain of the first transistor is electrically connected to the other of the source and the drain of the second transistor, and wherein the current-mirror circuit is electrically connected to the one of the source and the drain of the first transistor and the one of the source and the drain of the second transistor.
3. The data comparison circuit according to claim 2, wherein a channel width of the first transistor is different from a channel width of the second transistor.
4. The data comparison circuit according to claim 1, wherein the second circuit comprises a first transistor, a second transistor, and a capacitor, and wherein one of a source and a drain of the first transistor and one of a source and a drain of the second transistor are electrically connected to one electrode of the capacitor.
5. The data comparison circuit according to claim 4, wherein at least one of the first transistor and the second transistor comprises an oxide semiconductor material in a channel formation region.
6. The data comparison circuit according to claim 1, wherein the third circuit comprises a current comparison circuit, wherein the current comparison circuit comprises an output terminal, and wherein a potential at the output terminal oscillates at a oscillation frequency.
7. The data comparison circuit according to claim 1, wherein the third circuit comprises a current comparison circuit and a determination circuit, wherein the current comparison circuit comprises a first transistor, a second transistor, a first comparator and a second comparator, wherein the determination circuit comprises a third transistor and a fourth transistor, wherein the first transistor is electrically connected to an input terminal of the first comparator, wherein the second transistor is electrically connected to an input terminal of the second comparator, wherein an output terminal of the first comparator is electrically connected to a gate of the third transistor, and wherein an output terminal of the second comparator is electrically connected to a gate of the fourth transistor.
8. A data comparison circuit comprising: a first circuit; a second circuit; and a third circuit, wherein the first circuit is configured to convert first data comprising a digital voltage value to second data comprising an analog current value, wherein the second circuit is configured to store third data comprising an analog current value, wherein the third circuit is configured to detect a difference between the analog current value of the second data and the analog current value of the third data, and wherein the third circuit is configured to generate data that indicates whether the second data and the third data match, using the difference.
9. The data comparison circuit according to claim 8, wherein the first circuit comprises a current-mirror circuit, a first transistor and a second transistor, wherein one of a source and a drain of the first transistor is electrically connected to one of a source and a drain of the second transistor, wherein the other of the source and the drain of the first transistor is electrically connected to the other of the source and the drain of the second transistor, and wherein the current-mirror circuit is electrically connected to the one of the source and the drain of the first transistor and the one of the source and the drain of the second transistor.
10. The data comparison circuit according to claim 9, wherein a channel width of the first transistor is different from a channel width of the second transistor.
11. The data comparison circuit according to claim 8, wherein the second circuit comprises a first transistor, a second transistor, and a capacitor, and wherein one of a source and a drain of the first transistor and one of a source and a drain of the second transistor are electrically connected to one electrode of the capacitor.
12. The data comparison circuit according to claim 11, wherein at least one of the first transistor and the second transistor comprises an oxide semiconductor material in a channel formation region.
13. The data comparison circuit according to claim 8, wherein the third circuit comprises a current comparison circuit, wherein the current comparison circuit comprises an output terminal, and wherein a potential at the output terminal oscillates at a oscillation frequency.
14. The data comparison circuit according to claim 8, wherein the third circuit comprises a current comparison circuit and a determination circuit, wherein the current comparison circuit comprises a first transistor, a second transistor, a first comparator and a second comparator, wherein the determination circuit comprises a third transistor and a fourth transistor, wherein the first transistor is electrically connected to an input terminal of the first comparator, wherein the second transistor is electrically connected to an input terminal of the second comparator, wherein an output terminal of the first comparator is electrically connected to a gate of the third transistor, and wherein an output terminal of the second comparator is electrically connected to a gate of the fourth transistor.
15. A data comparison circuit comprising: a first circuit; a second circuit; and a third circuit, wherein the first circuit is configured to convert first data comprising a digital voltage value to second data comprising an analog current value, wherein the second circuit is configured to store third data comprising an analog current value, wherein the third circuit is configured to detect a difference between the analog current value of the second data and the analog current value of the third data, and wherein the third circuit is configured to generate fourth data that includes information about the difference.
16. The data comparison circuit according to claim 15, wherein the first circuit comprises a current-mirror circuit, a first transistor and a second transistor, wherein one of a source and a drain of the first transistor is electrically connected to one of a source and a drain of the second transistor, wherein the other of the source and the drain of the first transistor is electrically connected to the other of the source and the drain of the second transistor, and wherein the current-mirror circuit is electrically connected to the one of the source and the drain of the first transistor and the one of the source and the drain of the second transistor.
17. The data comparison circuit according to claim 16, wherein a channel width of the first transistor is different from a channel width of the second transistor.
18. The data comparison circuit according to claim 15, wherein the second circuit comprises a first transistor, a second transistor, and a capacitor, and wherein one of a source and a drain of the first transistor and one of a source and a drain of the second transistor are electrically connected to one electrode of the capacitor.
19. The data comparison circuit according to claim 18, wherein at least one of the first transistor and the second transistor comprises an oxide semiconductor material in a channel formation region.
20. The data comparison circuit according to claim 15, wherein the third circuit comprises a current comparison circuit, wherein the current comparison circuit comprises an output terminal, and wherein a potential at the output terminal oscillates at a oscillation frequency.
21. The data comparison circuit according to claim 15, wherein the third circuit comprises a current comparison circuit and a determination circuit, wherein the current comparison circuit comprises a first transistor, a second transistor, a first comparator and a second comparator, wherein the determination circuit comprises a third transistor and a fourth transistor, wherein the first transistor is electrically connected to an input terminal of the first comparator, wherein the second transistor is electrically connected to an input terminal of the second comparator, wherein an output terminal of the first comparator is electrically connected to a gate of the third transistor, and wherein an output terminal of the second comparator is electrically connected to a gate of the fourth transistor.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
[0035]
[0036]
[0037]
[0038]
[0039]
[0040]
[0041]
[0042]
[0043]
[0044]
[0045]
[0046]
[0047]
[0048]
[0049]
[0050]
[0051]
DETAILED DESCRIPTION OF THE INVENTION
[0052] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. However, the present invention is not limited to the following description and it is easily understood by those skilled in the art that the mode and details can be variously changed without departing from the scope and spirit of the present invention. Accordingly, the present invention should not be construed as being limited to the description of the embodiments below.
[0053] In the drawings, the size, the layer thickness, or the region is exaggerated for clarity in some cases. Therefore, the size, the layer thickness, or the region is not limited to the illustrated scale. Note that the drawings are schematic views showing ideal examples, and embodiments of the present invention are not limited to shapes or values shown in the drawings. For example, the following can be included: variation in signal, voltage, or current due to noise or difference in timing.
[0054] In this specification, terms for describing arrangement, such as “over”, “above”, “under”, and “below”, are used for convenience in describing a positional relationship between components with reference to drawings in some cases. Furthermore, the positional relationship between components is changed as appropriate in accordance with a direction in which each component is described. Thus, there is no limitation on terms used in this specification, and description can be made appropriately depending on the situation.
[0055] The positional relation of circuit blocks illustrated in a block diagram is specified for description. Even when a block diagram shows that different functions are achieved by different circuit blocks, one circuit block may be actually configured to achieve different functions. The functions of circuit blocks are specified for description, and even in the case where one circuit block is illustrated, blocks might be provided in an actual circuit block so that processing performed by one circuit block is performed by a plurality of circuit blocks.
Embodiment 1
[0056]
[0057] A data comparison circuit 10 illustrated in
[0058] The memory circuit 12 has a function of storing analog data that is input from the converter circuit 11. Specifically, the memory circuit 12 has a function of storing the current value included in the current I.sub.data when the current I.sub.data that includes the analog data is input from the converter circuit 11.
[0059] The detection circuit 13 has a function of comparing the current value of the current I.sub.data obtained in the converter circuit 11 with the current value of the current I.sub.data stored in the memory circuit 12, and generating data that includes the results of the comparison. Specifically, the detection circuit 13 has a function of generating data that indicates whether the two current values match. Whether the two current values match can be determined by detecting a difference between the two current values, for example. Alternatively, the detection circuit 13 has a function of detecting the difference between the two current values and a function of generating data using the difference.
[0060] The operation of the data comparison circuit 10 under the following circumstance is described, as an example: the current value of the current ‘data’ is stored in the memory circuit 12, and the detection circuit 13 compares the current value of the current bawl with the current I.sub.data2, which is obtained in the converter circuit 11. In this case, a current I.sub.dif, which is the difference between the current I.sub.data1 and the current I.sub.data2, is input to the detection circuit 13. The relationship between the current values of the currents I.sub.dif, I.sub.data1, and I.sub.data2 is expressed as follows: I.sub.dif=I.sub.data2−I.sub.data1.
[0061] The detection circuit 13 can generate data that indicates whether the two currents match by detecting the current value of I.sub.dif. In addition, the detection circuit 13 can generate data that corresponds to the current value of I.sub.dif from the current value of I.sub.dif. The generated data is output from an output terminal (OUT) of the detection circuit 13.
[0062] In other words, in the data comparison circuit illustrated in
[0063] Next, a configuration example of the converter circuit 11 is described with reference to
[0064] In the switch circuit 14, the conduction states of a plurality of current routes are controlled with a plurality of switches. Specifically, a switch circuit that is compatible with a 4-bit signal SigD is illustrated in
[0065] In the transistors M0 to M3, one of a source and a drain in each transistor is electrically connected to each other, and the other of the source and the drain in each transistor is electrically connected to each other. In addition, one of a source and a drain in each of the transistors M0 to M3 is each electrically connected to the current-mirror circuit 15, and the other of the source and the drain in each of the transistors M0 to M3 is each electrically connected to the node (wiring) that is supplied with the power supply voltage VSS.
[0066] Gates of the transistors M0, M1, M2 and M3 are supplied with a potential of the least significant bit D[0] of the digital data, a potential of the second bit D[1] of the digital data, a potential of the third bit D[2] of the digital data, and a potential of the most significant bit D[3] of the digital data, respectively.
[0067] Among the transistors M0 to M3, the drain current of a transistor corresponding to a high-order bit is preferably configured to be larger. For example, when the current value of the drain current of the transistor M0 is assumed to be Id, the linearity of the current value obtained from the value of the input digital data can be increased by configuring the current values of the drain currents of the transistors M1, M2 and M3 as 2×Id, 4×Id, and 8×Id, respectively.
[0068] For example, when digital data of n bits is to be converted into analog data, the switch circuit 14 includes n transistors, that is, the transistor M0 to a transistor M(n−1). Furthermore, a potential of a (t+1)-th bit D[t] of the digital data is supplied to a gate of a transistor Mt (t is an integer greater than or equal to 0 and less than or equal to n−1). In addition, when the drain current of the transistor M0 is assumed as Id, the drain current of the transistor Mt may be configured to be 2.sup.t×Id.
[0069] A drain current of a transistor can be controlled by adjusting the size of a channel width W. For example, when the channel width W of the transistor M0 is assumed as X, the linearity of the current value obtained from the value of the input digital data can be increased by setting the channel widths W of the transistors M1, M2 and M3 to 2X, 4X, and 8X, respectively.
[0070] In the switch circuit 14, the conduction states of the transistors M0 to M3 is controlled in accordance with the value of the digital data, thereby determining the current value of a current ‘data’ that flows through the switch circuit 14. Accordingly, it can be said that the current value of the current ‘data’ reflects the value of the digital data, and that the switch circuit 14 converts the signal SigD that includes a digital voltage value to the current ‘data’ that includes an analog current value.
[0071] For example, D[0]=1, D[1]=0, D[2]=1 and D[3]=0 are assumed. In this case, the transistor M0 is turned on; the transistor M1 is turned off; the transistor M2 is turned on; and the transistor M3 is turned off. Accordingly, when the current value of the drain current during a period when only the transistor M0 is turned on is assumed as Id, the current value of the current ‘data’ can be expressed as follows:
I.sub.data′=Id+4×Id=5×Id.
[0072] Each of the transistors M0 to M3 is operated preferably in a saturation region as this allows the current value of the drain current to be independent of the voltage applied between the source and the drain.
[0073] The current-mirror circuit 15 has a function of outputting the current I.sub.data that includes the same current value as the current I.sub.data′ that flows across the switch circuit 14, or outputting the current ‘data that includes a current value that corresponds to the current Law’. Specifically,
[0074] In both of the transistors M4 and M5, one of a source and a drain is electrically connected to the node (wiring) that is supplied with the power supply voltage VDD. The other of the source and the drain of the transistor M4 is electrically connected to the switch circuit 14. Furthermore, the other of the source and the drain of the transistor M5 is electrically connected to a terminal Ter1. The gates of the transistors M4 and M5 are electrically connected to each other, and the gate of the transistor M4 is electrically connected to the other of the source and the drain of the transistor M4.
[0075] The current I.sub.data′ that flows across the switch circuit 14 flows between the node (wiring) that is supplied with the power supply voltage VDD and the node (wiring) that is supplied with a power supply voltage VSS, through the transistor M4 of the current-mirror circuit 15. The current-mirror circuit 15 has a function of supplying the current I.sub.data that includes the same current value as the current I.sub.data′ or supplying the current I.sub.data that includes a current value that corresponds to the current I.sub.data′ between the node (wiring) that is supplied with the power supply voltage VDD and the terminal Ter1, through the transistor M5.
[0076] Note that a relation between the current values of the currents that flow through the transistors M4 and M5 changes according to the ratio (L/W) of the channel length L to the channel width W of the transistor M4. If the transistors M4 and M5 have substantially the same electrical characteristics (e.g., mobility) and substantially the same ratio (L/W), the current values of the currents that flow through the transistors M4 and M5 become substantially the same.
[0077] In the descriptions below, for ease of description, it is assumed that the current values of the currents that flow through the transistors M4 and M5 are substantially the same. The current I.sub.data that includes the same current value as the current I.sub.data′ that flows across the switch circuit 14 is supplied to the terminal Ter1 from the current-mirror circuit 15.
[0078] Next, a specific configuration example of the memory circuit 12 is described with reference to
[0079] The memory circuit 12 illustrated in
[0080] Note that
[0081] The current I.sub.data from the converter circuit 11 is supplied through the terminal Ter1 to the one of the source and the drain of each of the transistors M6 and M7. When the current Law is written into the memory circuit 12, the transistor M6 is turned on by controlling the potential of the signal WRITE. When the transistor M6 is on, the one of the source and the drain of the transistor M7 is electrically connected to the gate of the transistor M7 through the transistor M6.
[0082] Thus, when the gate of the transistor M7 is designated as a node ND1, turning the transistor M6 on causes the potential at the node ND1 to gradually increase. Then, the potential at the node ND1 is determined at a level where the drain current of the transistor M7 is I.sub.data and the level of the gate voltage of the transistor M7 corresponds to the drain current. The potential described above is designated as V.sub.data here. The capacitor Cs has a function of retaining the potential V.sub.data.
[0083] After the potential at the node ND1 is determined at the potential V.sub.data, the transistor M6 is turned off by controlling the potential of the signal WRITE. Turning the transistor M6 off brings the node ND1 into a floating state, thereby retaining the potential V.sub.data at the node ND1. The potential V.sub.data is analog data that includes an analog voltage value. The memory circuit 12 can store analog data that includes an analog current value by converting the analog data that includes the analog current value to analog data that includes an analog voltage value, and retaining the voltage value at the node ND1 that is in a floating state.
[0084] Note that a transistor with low off-state current is preferably used as the transistor M6. In addition, a transistor with less gate leakage than the transistor M6, such as a transistor with a thicker gate insulating film than the transistor M6, is preferably used as the transistor M7.
[0085] The memory circuit 12 illustrated in
[0086] Note that
[0087] The current Law from the converter circuit 11 is supplied through the terminal Ter1 to the one of the source and the drain of each of the transistors M8 and M9. When the gate of the transistor M9 is designated as the node ND1, before the current I.sub.data is written into the memory circuit 12, a potential at the node ND1 is reset by controlling the potential of the signal RES to turn the transistor M11 on. Next, after the potential of the signal RES is controlled to turn the transistor M11 off, the potential of the signal WRITE is controlled to turn the transistor M8 on. Turning the transistor M8 on causes the potential at a node ND2 to gradually increase, which then turns the transistor M10 on. When the gate of the transistor M9 is designated as the node ND1, turning on the transistor M10 causes the potential at the node ND1 to gradually increase. The increase of the potential at the node ND1 turns the transistor M9 on.
[0088] When the transistor M9 is turned on, the drain current of the transistor M9 increases until the drain current becomes I.sub.data. Then, the potential at the node ND1 is determined so that the level of the gate voltage of the transistor M9 corresponds to the drain current. The potential described above is designated as V.sub.data here. Note that the power supply voltage VDD is supplied to the one of the source and the drain of the transistor M10. Accordingly, the potential at the node ND1 at its maximum would take a value lower than the potential at the node ND2 by the threshold voltage value of the transistor M10.
[0089] After the potential at the node ND1 is determined at the potential V.sub.data, the transistor M8 is turned off by controlling the potential of the signal WRITE. The node ND2 is brought into a floating state when the transistor M8 is turned off, the transistor M10 remain on and the potential V.sub.data at the node ND1 is retained. The potential V.sub.data is analog data that includes an analog voltage value. The memory circuit 12 can store analog data that includes an analog current value by converting the analog data that includes the analog current value to analog data that includes an analog voltage value, and retaining the voltage value at the node ND1 that is in a floating state.
[0090] Note that a transistor with low off-state current is preferably used as the transistor M8. In addition, a transistor with less gate leakage than the transistor M8, such as a transistor with a thicker gate insulating film than the transistor M8, is preferably used as the transistor M10.
[0091] In the memory circuit 12 illustrated in
[0092] To reduce the off-state current of a transistor, a channel formation region contains a semiconductor with a wide energy gap, for example. The energy gap of the semiconductor is preferably greater than or equal to 2.5 eV, greater than or equal to 2.7 eV, or greater than or equal to 3 eV. An oxide semiconductor can be given as an example of such a semiconductor material. A transistor containing an oxide semiconductor in a channel formation region may be used as the transistors M8 and M10. The leakage current of an OS transistor (a transistor containing an oxide semiconductor in a channel formation region) normalized by channel width can be lower than or equal to 10×10.sup.−21 A/μm (10 zA/μm) with a source-drain voltage of 10 V at room temperature (approximately 25° C.). The leakage current of the OS transistor used as each of the transistors M8 and M10 is preferably lower than or equal to 1×10.sup.18 A, lower than or equal to 1×10.sup.−21 A, or lower than or equal to 1×10.sup.−24 A at room temperature (approximately 25° C.). Alternatively, the leakage current is preferably lower than or equal to 1×10.sup.−15 A, lower than or equal to 1×10.sup.−18 A, or lower than or equal to 1×10.sup.−21A at 85° C.
[0093] An oxide semiconductor is a semiconductor which has a large energy gap and in which electrons are unlikely to be excited and the effective mass of a hole is large. Accordingly, an avalanche breakdown and the like are less likely to occur in the OS transistor than in a generally-used transistor using silicon or the like. Since hot-carrier degradation or the like due to the avalanche breakdown is inhibited, the OS transistor has high drain breakdown voltage and can be driven at high drain voltage.
[0094] A channel formation region of the transistor is preferably formed using an oxide semiconductor containing at least one of indium (In) and zinc (Zn). Typical examples of such an oxide semiconductor include an In oxide, a Zn oxide, an In—Zn oxide, and an In—M—Zn oxide (element M is Al, Ti, Ga, Y, Zr, La, Ce, Nd, or Hf). A reduction in impurities serving as electron donors, such as hydrogen, and a reduction in oxygen vacancies can make an oxide semiconductor i-type (intrinsic) or substantially i-type. Such an oxide semiconductor can be referred to as a highly purified oxide semiconductor.
[0095] The channel formation region is preferably formed with an oxide semiconductor with a low carrier density. The carrier density of an oxide semiconductor is, for example, preferably less than 8×10.sup.11/cm.sup.3 and more than or equal to 1×10.sup.−9/cm.sup.3. The carrier density is preferably less than 1×10.sup.11/cm.sup.3, and further preferably less than 1×10.sup.10/cm.sup.3.
[0096] A highly purified intrinsic or substantially highly purified intrinsic oxide semiconductor has few carrier generation sources, and thus can have a low carrier density. The highly purified intrinsic or substantially highly purified intrinsic oxide has a low density of defect states and accordingly has a low density of trap states in some cases. A charge trapped by a trap state in the oxide semiconductor takes a long time to be released and may behave like a fixed charge. Thus, a transistor whose channel formation region is formed using an oxide semiconductor with a high density of trap states has unstable electrical characteristics in some cases.
[0097] Thus, in order to obtain stable electrical characteristics of the OS transistor, it is effective to reduce the concentration of impurities in the channel formation region. In addition, in order to reduce the concentration of impurities in the channel formation region, the concentration of impurities in a region in that is adjacent to the channel formation region is preferably low. Examples of impurities in an oxide semiconductor include hydrogen, nitrogen, carbon, silicon, alkali metal, and alkaline earth metal.
[0098]
[0099] When the current I.sub.data is written into the memory circuit 12, the transistor M6 is turned on by controlling the potential of the signal WRITE, and the transistor M12 is turned on by controlling the potential of the signal SE. When both the transistors M6 and M12 are on, the one of the source and the drain of the transistor M7 and the gate of the transistor M7 are electrically connected to each other. In this state, the potential V.sub.data can be written to the node ND1 through an operation similar to that illustrated in
[0100] After the potential at the node ND1 is determined at the potential V.sub.data, the transistor M6 is turned off by controlling the potential of the signal WRITE, so as to retain the potential V.sub.data at the node ND1. At this time, the transistor M12 may be kept on; however, the transistor M12 can be turned off by controlling the potential of the signal SE, thus reducing the power consumption of the memory circuit 12.
[0101]
[0102] When the current I.sub.data is written into the memory circuit 12, the transistor M8 is turned on by controlling the potential of the signal WRITE, and the transistor M13 is turned on by controlling the potential of the signal SE. When both the transistors M8 and M13 are on, the potential V.sub.data can be written at the node ND1 through an operation similar to that illustrated in
[0103] After the potential at the node ND1 is determined at the potential V.sub.data, the transistor M8 is turned off by controlling the potential of the signal WRITE, so as to retain the potential V.sub.data at the node ND1. At this time, the transistor M13 may be kept on; however, the transistor M13 can be turned off by controlling the potential of the signal SE, thus reducing the power consumption of the memory circuit 12.
[0104] Note that when the converter circuit 11 illustrated in
[0105] Furthermore, a gate insulating film of the OS transistor can be formed thickly, even when the transistor is downsized. Thus, a use of the transistor with an oxide semiconductor in the transistors M8 and M10 of the memory circuit 12 illustrated in
[0106] Next,
[0107] In the memory circuit 12 illustrated in
[0108] The signals WRITE from different systems are input to the gates of the transistors M6 included in the memory cells 16-1 to 16-3. In
[0109] The signals SE from different systems are input to the gate of the transistor M12 included in each of the memory cells 16-1 to 16-3. In
[0110] The current I.sub.data is input through the terminal Ter1 to each of the memory cells 16-1 to 16-3. For example, when the current value of the current I.sub.data is stored in only the memory cell 16-1 among the memory cells 16-1 to 16-3, the potentials of the signals SE1 to SE3 and the signals WRITE1 to WRITE3 are controlled to turn on the transistors
[0111] M6 and M12 included in the memory cell 16-1, and to turn off the transistors M6 and M12 included in each of the memory cells 16-2 and 16-3. In this state, the current value of the current I.sub.data can be written into only the memory cell 16-1 by inputting the current I.sub.data to the node ND1 of the memory cell 16-1. Then, the analog data can be retained in the memory cell 16-1 by controlling the potentials of the signals SE1 and WRITE1 to turn off the transistors M6 and M12 included in the memory cell 16-1, bringing the node ND1 into a floating state.
[0112] When the current value of the current I.sub.data stored in the memory cell 16-1 is read, the potentials of the signals SE1 to SE3 and the signals WRITE1 to WRITE3 may be controlled to turn on the transistor M12 included in the memory cell 16-1, to keep the transistor M12 included in each of the memory cells 16-2 and 16-3 off, and to keep the transistor M6 included in each of the memory cells 16-1 to 16-3 off
[0113] Next,
[0114] In the memory circuit 12 illustrated in
[0115] The signals WRITE from different systems are input to the gate of the transistor M8 included in each of the memory cells 17-1 to 17-3. In
[0116] The signals SE from different systems are input to the gate of the transistor M13 included in each of the memory cells 17-1 to 17-3. In
[0117] The current I.sub.data is input through the terminal Ter1 to each of the memory cells 17-1 to 17-3. For example, when the current value of the current I.sub.data is stored in only the memory cell 17-1 among the memory cells 17-1 to 17-3, the potential of the signals SE1 to SE3 and the signals WRITE1 to WRITE3 are controlled to achieve the following effect: turning on the transistors M8 and M13 included in the memory cell 17-1, and turning off the transistors M8 and M13 included in each of the memory cells 17-2 and 17-3. In this state, the current value of the current I.sub.data can be written into only the memory cell 17-1 by inputting the current Law to the node ND2 of the memory cell 17-1. Then, the analog data can be retained at the memory cell 17-1 by controlling the potential of the signals SE1 and WRITE1 to turn off the transistors M8 and M13 included in the memory cell 17-1, bringing the node ND2 into a floating state.
[0118] When the current value of the current I.sub.data stored in the memory cell 17-1 is read, the potential of the signals SE1 to SE3 and the signals WRITE1 to WRITE3 may be controlled to achieve the following effect: turning on the transistor M13 included in the memory cell 17-1, keeping the transistor M13 included in each of the memory cells 17-2 and 17-3 off, and keeping the transistor M8 included in each of the memory cells 17-1 to 17-3 off.
[0119] Next, a specific configuration example of the detection circuit 13 is described.
[0120] The detection circuit 13 illustrated in
[0121] Specifically, the detection circuit 13 has a function of generating data that contains information indicating the relation between the currents bawl and I.sub.data2, from the current value of the current I.sub.dif. The data indicate whether the current value of the current bawl is equal to, greater than, or less than the current value of the current I.sub.data2. Alternatively, the detection circuit 13 has a function of generating data that contains information indicating which of the currents bawl and I.sub.data2 has a greater current value, and how much greater the current value is.
[0122] The determination circuit 19 has a function of performing signal processing on a signal that contains the results of comparison in the detection circuit 13, and outputting the processed signal. The function of the determination circuit 19 varies depending on the type of information that is to be contained within the signal output from the data comparison circuit 10. For example, the determination circuit 19 can generate a digital signal that contains information that indicates whether the current value of the I.sub.data1 matches the current value of the I.sub.data2, from the digital data output from the detection circuit 13. Alternatively, the determination circuit 19 can generate a digital or analog signal that contains information indicating the difference between the current values of the currents bawl and I.sub.data2.
[0123] The retention circuit 20 has a function of retaining a signal that is output from the determination circuit 19. Note that the detection circuit 13 can be configured without the retention circuit 20.
[0124]
[0125] The switch M14 has a function of controlling the input to the transistors M15 and M16 through the terminal Ter1 of the current I.sub.dif, in accordance with the potential of a signal READ.
[0126] One of a source and a drain of the transistor M15 is electrically connected to one of a source and a drain of the transistor M16. The other of the source and the drain of the transistor M15 is electrically connected to a non-inverting input terminal (+) of the comparator 21. The other of the source and the drain of the transistor M16 is electrically connected to a non-inverting input terminal (+) of the comparator 22. An inverting input terminal (−) of the comparator 21 is electrically connected to a node (wiring) that is supplied with a reference potential VREFM. An inverting input terminal (−) of the comparator 22 is electrically connected to a node (wiring) that is supplied with a reference potential VREFP.
[0127] An output terminal of the comparator 21 is electrically connected to a gate of the transistor M17 and a terminal Ter2. An output terminal of the comparator 22 is electrically connected to a gate of the transistor M18 and a terminal Ter3. One of a source and a drain of the transistor M17 is electrically connected to the node (wiring) that is supplied with the power supply voltage VDD. The other of the source and the drain of the transistor M17 is electrically connected to the non-inverting input terminal (+) of the comparator 21. One of a source and a drain of the transistor M18 is electrically connected to the node (wiring) that is supplied with the power supply voltage VSS. The other of the source and the drain of the transistor M18 is electrically connected to the non-inverting input terminal (+) of the comparator 22.
[0128] When the switch M14 is turned on in accordance with the potential of the signal READ, the current I.sub.dif is input to the current comparison circuit 18 through the terminal Ter1. The relationship between the current values of the currents I.sub.dif, I.sub.data1 and I.sub.data2 is expressed as I.sub.dif=I.sub.data2−I.sub.data1. When I.sub.data1>I.sub.data2, I.sub.dif<0. When I.sub.data1 <I.sub.data2, I.sub.dif>0. When I.sub.data1=I.sub.data2, I.sub.dif=0.
[0129] When I.sub.dif<0, the transistor M15 is turned on, and the transistor M16 is turned off. When the non-inverting input terminal (+) of the comparator 21 is designated as a node ND3, turning on the transistor M15 causes the potential at the node ND3 to gradually decrease. When the potential at the node ND3 decreases to a level lower than the potential VREFM, the potential at the output terminal of the comparator 21 is set at a low level, and the low-level potential is supplied to the terminal Ter2.
[0130] When the output terminal of the comparator 21 is designated as a node ND5, setting the potential at the node ND5 at a low level turns on the transistor M17. When the transistor M17 is turned on, the power supply voltage VDD is supplied through the transistor M17 to the non-inverting input terminal (+) of the comparator 21; thus, the potential at the node ND3 gradually increases. When the potential at the node ND3 increases to a level higher than the potential VREFM, the potential at the output terminal of the comparator 21 is set at a high level, and the high-level potential is supplied to the terminal Ter2.
[0131] Thus, when I.sub.dif<0, the potential at the terminal Ter2 changes so as to oscillate between high and low levels at certain intervals. The oscillation frequency of the potential at the terminal Ter2 (i.e., the node ND5) becomes higher as the I.sub.dif becomes smaller.
[0132] At this time, the transistor M16 is off. Thus the potential at the output terminal of the comparator 22 is not oscillating, and the comparator 22 is in a steady state. Here, the non-inverting input terminal (+) of the comparator 22 is designated as a node ND4 and the output terminal of the comparator 22 is designated as a node ND6. When the comparator 22 is in a steady state, the potential at the node ND4 is set to be slightly lower than the potential VREFP, a low-level potential is supplied to the node ND6, and the transistor M18 retains its off state. Thus, when I.sub.dif<0, the terminal Ter3 is supplied with the low-level potential.
[0133] When I.sub.dif>0, the transistor M16 is turned on, and the transistor M15 is turned off. Turning on the transistor M16 causes the potential at the node ND4, which is the non-inverting input terminal (+) of the comparator 22, to gradually increase. When the potential of the node ND4 increases to a level higher than the potential VREFP, the potential at the output terminal of the comparator 22 is set at a high level, and the high-level potential is supplied to the terminal Ter3.
[0134] Then, when the potential at the node ND6, which is the output terminal of the comparator 22, is set at a high level, the transistor M18 is turned on. When the transistor M18 is turned on, the power supply voltage VSS is supplied through the transistor M18 to the non-inverting input terminal (+) of the comparator 21; thus, the potential at the node ND4 gradually decreases. When the potential at the node ND4 decreases to a level lower than the potential VREFP, the potential at the output terminal of the comparator 22 is set at a low level, and the low-level potential is supplied to the terminal Ter3.
[0135] Thus, when I.sub.dif>0, the potential at the terminal Ter3 changes so as to oscillate between high and low levels at certain intervals. The oscillation frequency of the potential at the terminal Ter3 (i.e., the node ND6) becomes larger as the I.sub.dif becomes larger.
[0136] At this time, the transistor M15 is off. Thus the potential at the output terminal of the comparator 21 is not oscillating, and the comparator 21 is in a steady state. When the comparator 21 is in a steady state, the potential at the node ND3 (the non-inverting input terminal (+) of the comparator 21) is set to be slightly higher than the potential VREFM, the node ND5 (the output terminal of the comparator 21) is supplied with a high-level potential, and the transistor M17 retains its off state. Thus, when I.sub.dif>0, the terminal Ter2 is supplied with the high-level potential.
[0137] When I.sub.dif=0, the comparators 21 and 22 are both in a steady state. Thus, the terminal Ter2 is supplied with a high-level potential, and the terminal Ter3 is supplied with a low-level potential. Alternatively, the potential at one of the output terminals may change with a significantly low oscillation frequency, when compared with cases where I.sub.dif<0 or I.sub.dif>0.
[0138] Next, a configuration example of the determination circuit 19 and the retention circuit 20 is described with reference to
[0139] The determination circuit 19 illustrated
[0140] A signal is input to a gate of the transistor M19 through the terminal Ter2, from the current comparison circuit 18. One of a source and a drain of each of the transistors M19 to M21 is electrically connected to the node (wiring) that is supplied with the power supply voltage VDD. One of a source and a drain of each of the transistors M22 and M23 is electrically connected to the node (wiring) that is supplied with the power supply voltage VSS. A signal ENB is supplied to a gate of the transistor M22. A signal is input to a gate of the transistor M23 through the terminal Ter3, from the current comparison circuit 18. The other of the source and the drain of each of the transistors M19 and M20 is electrically connected to the other of the source and the drain of the transistor M22. The gates of transistors M20 and M21 and the other of the source and the drain of the transistor M21 are all electrically connected to the other of the source and the drain of the transistor M23.
[0141] The retention circuit 20 illustrated in
[0142] In the determination circuit 19 illustrated in
[0143] In the determination circuit 19 illustrated in
[0144] Note that turning on the transistor M22 by controlling the potential ENB can supply the power supply voltage VSS through the transistor M22 to the node ND7, which can reset the potential at the node ND7.
[0145] In the determination circuit 19 illustrated in
[0146] In the retention circuit 20 illustrated in
[0147] Next, an example of the operation of the data comparison circuit 10 is described with reference to the timing chart illustrated in
[0148] Note that
[0149] At time T0, the potential of the signal ENB that is input to the determination circuit 19 illustrated in
[0150] At time T0, writing of analog data to the memory circuit 12 illustrated in
[0151] Next, at time T1, writing of analog data to the memory circuit 12 illustrated in
[0152] After the transistor M6 is turned off, in a period from time T1 to time T2, the digital data of the signal SigD that is input to the converter circuit 11 illustrated in
[0153] Next, at time T2, the signal L-RES that is input to the retention circuit 20 illustrated in
[0154] Then, at time T2, the potential of the signal READ that is input to the current comparison circuit 18 illustrated in
[0155] Note that
[0156] When the current I.sub.dif is input to the current comparison circuit 18, the potential at the node ND6 (the output terminal of the comparator 22) oscillates; the potential at the node ND4 also oscillates correspondingly. At this time, the comparator 21 is in a steady state, and the node ND3 (the non-inverting input terminal (+) of the comparator 21) retains a potential that is slightly higher than the potential VREFM, and the node ND5 (the output terminal of the comparator 21) retains a high-level potential.
[0157] Then, the oscillation of the potential at the node ND6 and the retention of the high-level potential at the node ND5 cause the potential at the node ND7 in the determination circuit 19 illustrated in
[0158] In one embodiment of the present invention, two digital data that are each made up of multiple bits and have been converted to analog data that each include an analog current value can be compared with each other through the operations described above. When digital data are directly compared, whether the data match needed to be determined on a per bit basis. In one embodiment of the present invention, the configuration described above eliminates the necessity to compare data on a per bit basis.
[0159]
[0160] The current I.sub.data from the converter circuit 11 is supplied through the terminal Ter1 to one of a source and a drain of each of the transistors M6 and M7. When the current I.sub.data is written into the memory circuit 12, the transistor M6 is turned on by controlling the potential of the signal WRITE. When the transistor M6 is on, one of a source and a drain of the transistor M7 is electrically connected to the gate of the transistor M7 through the transistor M6.
[0161] Next, a configuration example of the converter circuit 11 in the case where the transistor M7 is a p-channel transistor is described with reference to
[0162] In the transistors M0 to M3, one of a source and a drain in each transistor is electrically connected to each other, and the other of the source and the drain in each transistor is electrically connected to each other. In addition, one of a source and a drain in each of the transistors M0 to M3 is each electrically connected to the current-mirror circuit 15, and the other of the source and the drain in each of the transistors M0 to M3 is each electrically connected to the node (wiring) that is supplied with the power supply voltage VDD.
[0163] The gates of the transistors M0, M1, M2 and M3 are supplied with the potential of a lowest-level bit Db[0] of the digital data, a second bit Db[1] of the digital data, a third bit Db[2] of the digital data, and a highest-level bit Db[3] of the digital data, respectively.
[0164] The current-mirror circuit 15 is supplied with the current I.sub.data that includes the same current value as the current I.sub.data that flows across the switch circuit 14, or the current Law that includes a current value that corresponds to the current I.sub.data′, through the terminal Ter1. Specifically,
[0165] In both of the transistors M4 and M5, one of a source and a drain is electrically connected to the node (wiring) that is supplied with the power supply voltage VSS. The other of the source and the drain of the transistor M4 is electrically connected to the switch circuit 14. Furthermore, the other of the source and the drain of the transistor M5 is electrically connected to a terminal Ter1. The gates of the transistors M4 and M5 are electrically connected to each other, and the gate of the transistor M4 is electrically connected to the other of the source and the drain of the transistor M4.
[0166] The current I.sub.data that flows across the switch circuit 14 flows through the transistor M4 of the current-mirror circuit 15 and between the node (wiring) that is supplied with a power supply voltage VDD and the node (wiring) that is supplied with a power supply voltage VSS. The current-mirror circuit 15 has a function of supplying the current I.sub.data that includes the same current value as the current I.sub.data′ or supplying the current I.sub.data that includes a current value that corresponds to the current I.sub.data between the node (wiring) that is supplied with the power supply voltage VSS and the terminal Ter1, through the transistor M5.
[0167] In the data comparison circuit 10 that includes the memory circuit 12 illustrated in
[0168] This embodiment can be combined with any of the other embodiments as appropriate.
Embodiment 2
[0169] The determination circuit 19 illustrated in
[0170] For example, the combinations of the values of bits in the digital data composed of four bits D[3], D[2], D[1] and D[0] are assumed as 0000, 0001, 0010, . . . , 1110 and 1111, and the current values of the current I.sub.data obtained in the converter circuit 11 from the digital data are assumed as I.sub.00, I.sub.01, I.sub.02, . . . , I.sub.14, and I.sub.15. Using I.sub.00 which has the smallest current value, I.sub.01, I.sub.02, . . . , I.sub.14 and I.sub.15 can be expressed as 2×I.sub.00, 3×I.sub.00. . . , 15×I.sub.00 and 16×I.sub.00, respectively. Thus, a subtraction operation can be performed on digital data that correspond to reference data and digital data that correspond to comparison data, using the difference between the current value that corresponds to the reference data and the current value that corresponds to the comparison data.
[0171] For example, when the value of the reference data is 0010, the current value of the current I.sub.data that corresponds to the reference data is expressed as I.sub.02=3×I.sub.00. In addition, when the value of the comparison data is 0100, the current value of the current I.sub.data that corresponds to the comparison data is expressed as I.sub.04=5×I.sub.00. Thus, the current value of the difference obtained by subtracting the reference data from the comparison data is expressed as 2×I.sub.00. Accordingly, the difference between the reference data and the comparison data can be determined to be 2 in the decimal numeral system by detecting the current value as 2×I.sub.00 in the determination circuit 19.
[0172] In the current comparison circuit 18 illustrated in
[0173] For example, when the current I.sub.dif flows through the transistor M16, the potential at the node ND4 starts to increase because of the input of the current I.sub.dif. The speed of increase of the potential described above depends on the current value of the current I.sub.dif. Specifically, when the current value of the current I.sub.dif is large, the potential at the node ND4 increases immediately. Conversely, when the current value of the current I.sub.dif is small, increase in the potential of the node ND4 is gradual. In addition, the comparator 22 starts to output a high-level potential when the potential at the node ND4 becomes higher than VREFP. This turns on the transistor M18, which causes the potential at the node ND4 to start to decrease. Repeating the operations described above causes the potentials at the nodes ND4 and ND6 to oscillate. Thus, when the current value of the current I.sub.dif is large, the oscillation frequency becomes high. In contrast, when the current value of the current I.sub.dif is small, the oscillation frequency becomes low.
[0174] The current value of the current I.sub.dif includes the information about the difference between the reference data and the comparison data. As a result, information about the difference between the reference data and the comparison data can be obtained from the oscillation frequency of the node ND5 or ND6.
[0175] An example of the determination circuit 19 that has a function of generating data that includes information about the difference between the currents bawl and I.sub.data2 from the oscillation frequency is described with reference to
[0176] A configuration example of the detection circuit 13 is illustrated in
[0177] Specifically, the determination circuit 19 illustrated in
[0178]
[0179]
[0180] In addition,
[0181] The low-pass filter 30 has a function of letting signals with frequencies lower than the cutoff frequency f through, and attenuating signals with frequencies higher than the cutoff frequency f. The cutoff frequency f is expressed as ½πRCp (R is the resistance of the resistor 31). The low-pass filters 30-1 to 30-16 have different capacitances Cp, which makes the cutoff frequency f for each of the low-pass filters different. Thus, the oscillation frequency of the node ND5 or the node ND6 can be determined by inputting the signal output from the current comparison circuit 18 to a plurality of low-pass filters 30 with different cutoff frequencies f, and monitoring the potential of the signal that is output from the output terminal of each of the low-pass filters 30. The information about the difference between the reference data and the comparison data can be obtained using the oscillation frequency described above.
[0182] Next, another example of the determination circuit 19 that has a function of generating data that includes information about the difference between the currents bawl and I.sub.data2 from the oscillation frequency is described with reference to
[0183] A configuration example of the detection circuit 13 is illustrated in
[0184] Specifically, the determination circuit 19 illustrated in
[0185] A configuration example of the low-pass filter 33 is illustrated in
[0186] One terminal of the resistor 35 is electrically connected to the terminal Ter2 (the node ND5) or the terminal Ter3 (the node ND6), which corresponds to an input terminal. The other terminal of the resistor 35 is electrically connected to the terminal Ter4, which corresponds to an output terminal. One of a source and a drain of each of the transistors 36-0 to 36-3 is electrically connected to the terminal Ter4. The other of the source and the drain of each of the transistors 36-0 to 36-3 is electrically connected to one electrode of a corresponding capacitor from the capacitors 37-0 to 37-3. The other electrode of each of the capacitors 37-0 to 37-3 is electrically connected to the node (wiring) that is supplied with a predetermined potential, such as a ground potential or a reference potential.
[0187] In addition, signals ENB[0], ENB[1], ENB[2] and ENB[3] are input to the gates of the transistors 36-0, 36-1, 36-2 and 36-3, respectively. The conduction states of the transistors 36-0 to 36-3 are controlled by the signals ENB[0] to ENB[3], respectively.
[0188]
[0189] The low-pass filter 33 illustrated in
[0190] The low-pass filter 33 has a function of letting signals with frequencies lower than the cutoff frequency f through, and attenuating signals with frequencies higher than the cutoff frequency f. The cutoff frequency f is expressed as ½πRCq (R is the resistance of the resistor 35). Because the capacitance Ct is variable in the low-pass filter 33, the cutoff frequency f can be changed in accordance with the value of the capacitance Ct. Thus, the oscillation frequency of the nodes ND5 and ND6 can be determined by inputting the signal output from the current comparison circuit 18 to the low-pass filter 33 and monitoring the potential of the signal that is output from the output terminal of each of the low-pass filters 33 (the terminal Ter4), while changing the cutoff frequency f The information about the difference between the reference data and the comparison data can be obtained using the oscillation frequency described above.
[0191] The use of the low-pass filter 33 illustrated in
[0192]
[0193] In the retention circuit 20 illustrated in
[0194] The control circuit 34 illustrated in
[0195]
[0196] Next, an example of the operation of the detection circuit 13 illustrated in
[0197] In periods before time TO, the potentials of the signals RESET[0] to RESET[3] that are input to the signal generation circuits 44-0 to 44-3 illustrated in
[0198] Accordingly, the capacitance of the combined capacitance Ct that is connected to the terminal Ter4 in the low-pass filter 33 illustrated in
[0199] Furthermore, in periods before time TO, the potential of the signal RES10 is set at a high level, and the potential at the output terminal OUT of the retention circuit 20 illustrated in
[0200] Next, at time TO, the potential of the signal RESET[3] changes from a high level to a low level. Then, the potential of the signal SET[3] that is input to the signal generation circuit 44-3 illustrated in
[0201] This description assumes the case where the difference between the reference data and the comparison data is represented as 10 in the decimal numeral system. Thus, in the low-pass filter 33, the signal input to the terminal Ter3 is output from the terminal Ter4 after a certain amount of delay. In this state, the potential of the signal RES10 is changed from the high level to a low level so as to determine the potential at the output terminal OUT of the retention circuit 20 illustrated in
[0202] When the potential at the terminal Ter4 increases to a level that surpasses the threshold voltage Vth described above in time T1, the potential at the output terminal of the NAND 41 changes from a low level to a high level, and the potential at the output terminal OUT of the retention circuit 20 changes from the low level to a high level. Furthermore, the potential of the signal SET[3] is set at the high level. Thus, the transistor M47 in the signal generation circuit 44-3 is in an on state. Therefore, when the first input terminal of the NOR 45 included in the signal generation circuit 44-3 is designated as a node ND9[3] (refer to
[0203] Next, in time T2, the potential of the signal SET[3] changes from a high level to a low level, turning off the transistor M47. The use of a transistor with an extremely low off-state current as the transistor M47 can ensure a long retention time of the potential at the node ND9[3]. When the potential at the node ND9[3] is retained at the high level, the potential of the signal ENB[3] is retained at the high level even when the potential of the signal SET[3] is set at the low level. Thus, the transistor 36-3 included in the low-pass filter 33 illustrated in
[0204] Next, the potential of the signal RES10 is changed from the low level to the high level so that the potential at the output terminal OUT of the retention circuit 20 is reset to a low level.
[0205] Next, in time T3, the potential of the signal RESET[2] changes from a high level to a low level. Then, the potential of the signal SET[2] that is input to the signal generation circuit 44-2 illustrated in
[0206] When the potential of the signal ENB[2] is set at a high level, the transistor 36-2 in the low-pass filter 33 illustrated in
[0207] This description assumes the case where the difference between the reference data and the comparison data is represented as 10 in the decimal numeral system. Thus, when the capacitance of the combined capacitance Ct is expressed as 12C, the signal input to the terminal Ter3 of the low-pass filter 33 is attenuated, and the output thereof from the terminal Ter4 is stopped. In other words, the potential at the terminal Ter4 becomes lower than the threshold voltage Vth of the n-channel transistor included in the NAND 41.
[0208] Next, at time T4, the potential at the terminal Ter4 is lower than the threshold voltage Vth described above; thus, the potential at the output terminal OUT of the retention circuit 20 is retained at the low level. The transistor M47 in the signal generation circuit 44-2 is in an on state because the potential of the signal SET[2] is set at the high level. At this time, the potential at the node ND9[2] is retained at a low level.
[0209] Next, in time T5, the potential of the signal SET[2] changes from a high level to a low level. Because the potential at the node ND9[2] is set at a low level, the potential of the signal ENB[2] changes from a high level to a low level. Accordingly, in the low-pass filter 33 illustrated in
[0210] Repeating similar oparations successively changes the capacitance of the combined capacitance Ct in the low-pass filter 33 illustrated in
[0211] Specifically, at time T6, the potentials of the signals ENB[3], ENB[2], ENB[1], and ENB[0] are set at the high level, the low level, a high level, and the low level, respectively. Thus, the difference can be calculated to be 1010 in a binary numerical system, and 10 in the decimal numerical system.
[0212] As described above, the data comparison circuit 10 of one embodiment of the present invention can perform a subtraction operation on digital data of multiple bits.
[0213] This embodiment can be combined with any of the other embodiments as appropriate.
Embodiment 3
[0214]
[0215] The retention circuit 20 illustrated in
[0216]
[0217] The signal RES10 is input to a gate of the transistor M42. One of a source and a drain of the transistor M42 is electrically connected to the node (wiring) that is supplied with the power supply voltage VDD, and the other of the source and the drain of the transistor M42 is electrically connected to one of a source and a drain of the transistor M40. A signal output from the low-pass filter 33 is input, through the terminal Ter4, to a gate of the transistor M40. The other of the source and the drain of the transistor M40 is electrically connected to the output terminal OUT of the retention circuit 20. A gate of the transistor M41 is electrically connected to the gate of the transistor M42. One of a source and a drain of the transistor M41 is electrically connected to the node (wiring) that is supplied with the power supply voltage VSS. The other of the source and the drain of the transistor M41 is electrically connected to the output terminal OUT.
[0218] When the potential of the signal RES10 is set at a high level, the transistor M41 is turned on, resetting the potential at the output terminal OUT to a low level. When a high-level potential is supplied to the terminal Ter4 in this state, the transistor M40 is turned on. The transistor M42 is in an off state as the potential of the signal RES10 is set at a high level. Thus, the flow of a flow-through current between the node (wiring) that is supplied with the power supply voltage VDD and the node (wiring) that is supplied with the power supply voltage VSS can be prevented.
[0219] Next, when the potential of the signal RES10 is changed from the high level to a low level, the transistor M41 is turned off, and the transistor M42 is turned on. In this state, when the potential of the signal input to the terminal Ter4 changes to the high level even once, the transistor M40 is turned on, thereby changing the potential at the output terminal OUT from the low level to a high level. In addition, after the potential at the output terminal OUT changes from the low level to the high level even once, the high-level potential is retained at the output terminal OUT.
[0220] The use of a transistor with extremely low off-state current as the transistors M40 and M41 can ensure a long retention time of the potential at the output terminal OUT.
[0221] This embodiment can be combined with any of the other embodiments as appropriate.
Embodiment 4
[0222] Next, a configuration example of a transistor with an oxide semiconductor is described.
[0223]
[0224] The semiconductor device of one embodiment of the present invention includes insulating layers 512 to 520, metal oxide films 521 to 524, and conductive layers 550 to 553. A transistor 501 is formed over an insulating surface.
[0225] Note that the insulating layers, the metal oxide films, the conductive layers or the like that constitute the transistor 501 may each be a single film, or a stack of multiple films. These films and layers can be formed by any of a variety of deposition methods such as sputtering, molecular beam epitaxy (MBE), pulsed laser deposition (PLD), chemical vapor deposition (CVD), and atomic layer deposition (ALD). Examples of CVD include plasma CVD, thermal CVD, and metal organic CVD.
[0226] The conductive layer 550 includes a region that functions as a gate electrode of the transistor 501. The conductive layers 551 and 552 include regions that function as a source electrode and a drain electrode. The conductive layer 553 includes a region that functions as a back gate electrode. The insulating layer 517 includes a region that functions as a gate insulating layer on the gate electrode (front gate electrode) side, and an insulating layer that is composed of the insulating layers 514 to 516 includes a region that functions as a gate insulating layer on the back gate electrode side. The insulating layer 518 can serve as an interlayer insulating layer. The insulating layer 519 can serve as a barrier layer.
[0227] The metal oxide films 521 to 524 will be collectively designated as an oxide layer 530. As shown in
[0228] The metal oxide film 524 covers the metal oxide films 521 to 523, the conductive layer 551, and the conductive layer 552. The insulating layer 517 is positioned between the metal oxide film 523 and the conductive layer 550. The conductive layers 551 and 552 each include a region that overlaps the conductive layer 550 with the metal oxide film 523, the metal oxide film 524 and the insulating layer 517 positioned therebetween.
[0229] The conductive layers 551 and 552 are fabricated from a hard mask that is used in the formation of the metal oxide films 521 and 522. Thus, the conductive layers 551 and 552 do not include a region that is in contact with the side surfaces of the metal oxide films 521 and 522. For example, the metal oxide films 521 and 522 and the conductive layers 551 and 552 can be formed through the following steps. First, a conductive film is formed over a stack of two metal oxide films. The conductive film is processed (etched) into a desired shape, forming a hard mask. The hard mask is used to process the shape of the two-layered metal oxide film, forming the metal oxide films 521 and 522 that are stacked. Next, the hard mask is processed into a desired shape, forming the conductive layers 551 and 552.
[0230] Examples of insulating materials used for the insulating layers 511 to 518 include aluminum nitride, aluminum oxide, aluminum nitride oxide, aluminum oxynitride, magnesium oxide, silicon nitride, silicon oxide, silicon nitride oxide, silicon oxynitride, gallium oxide, germanium oxide, yttrium oxide, zirconium oxide, lanthanum oxide, neodymium oxide, hafnium oxide, tantalum oxide, and aluminum silicate. The insulating layers 511 to 518 are formed using a single-layer structure or a stack of these insulating materials. The layers used for the insulating layers 511 to 518 may include a plurality of insulating materials.
[0231] Note that in this specification and the like, an oxynitride refers to a substance that contains more oxygen than nitrogen, and a nitride oxide refers to a substance that contains more nitrogen than oxygen.
[0232] In order to inhibit the increase in oxygen vacancies in the oxide layer 530, the insulating layers 516 to 518 preferably include oxygen. More preferably, at least one of the insulating layers 516 to 518 is formed using an insulating film from which oxygen is released by heating (hereinafter such an insulating film is referred to as an insulating film containing excess oxygen). When oxygen is supplied from the insulating film containing excess oxygen to the oxide layer 530, the oxygen vacancies in the oxide layer 530 can be compensated. Thus, reliability and electrical characteristics of the transistor 501 can be improved.
[0233] The insulating film containing excess oxygen is a film from which oxygen molecules at more than or equal to 1.0×10.sup.18 molecules/cm.sup.3 are released in thermal desorption spectroscopy (TDS) at a surface temperature of the film of higher than or equal to 100° C. and lower than or equal to 700° C., or higher than or equal to 100° C. and lower than or equal to 500° C. The amount of released oxygen molecules is preferably more than or equal to 3.0×10.sup.20 atoms/cm.sup.3.
[0234] The insulating film containing excess oxygen can be formed by performing treatment for adding oxygen to an insulating film. The treatment for adding oxygen can be performed by heat treatment under an oxygen atmosphere, an ion implantation method, an ion doping method, a plasma immersion ion implantation method, plasma treatment, or the like. As a gas for adding oxygen, an oxygen gas of .sup.16O.sub.2, .sup.18O.sub.2, or the like, a nitrous oxide gas, an ozone gas, or the like can be used.
[0235] The hydrogen concentration in the insulating layers 512 to 519 is preferably low in order to prevent an increase in the hydrogen concentration in the oxide layer 530. In particular, the concentration of hydrogen in the insulating layers 513 to 518 is preferably low. Specifically, the concentration of hydrogen is lower than or equal to 2×10.sup.20 atoms/cm.sup.3, preferably lower than or equal to 5×10.sup.19 atoms/cm.sup.3, more preferably lower than or equal to 1×10.sup.19 atoms/cm.sup.3, still more preferably lower than or equal to 5×10.sup.18 atoms/cm.sup.3.
[0236] The nitrogen concentration in the insulating layers 513 to 518 is preferably low in order to prevent an increase in the nitrogen concentration in the oxide layer 530. Specifically, the concentration of nitrogen is lower than 5×10.sup.19 atoms/cm.sup.3, preferably lower than or equal to 5×10.sup.18 atoms/cm.sup.3, more preferably lower than or equal to 1×10.sup.18 atoms/cm.sup.3, still more preferably lower than or equal to 5×10.sup.17 atoms/cm.sup.3.
[0237] The hydrogen concentration and the nitrogen concentration described above are measured by secondary ion mass spectrometry (SIMS).
[0238] In the transistor 501, the oxide layer 530 is preferably surrounded by an insulating layer with oxygen and hydrogen barrier properties (hereinafter such an insulating layer is referred to as a barrier layer). A use of such a structure prevents release of oxygen from the oxide layer 530, and intrusion of hydrogen into the oxide layer 530. Thus, reliability and electrical characteristics of the transistor 501 can be improved.
[0239] For example, the insulating layer 519 functions as a barrier layer and at least one of the insulating layers 511, 512, and 514 functions as a barrier layer. The barrier layer can be formed using a material such as aluminum oxide, aluminum oxynitride, gallium oxide, gallium oxynitride, yttrium oxide, yttrium oxynitride, hafnium oxide, hafnium oxynitride, or silicon nitride.
[0240] Structure example of the insulating layers 511 to 518 is described. In this example, each of the insulating layers 511, 512, 515, and 519 function as a barrier layer. The insulating layers 516 to 518 are oxide layers containing excess oxygen. The insulating layer 511 is formed using silicon nitride. The insulating layer 512 is formed using aluminum oxide. The insulating layer 513 is formed using silicon oxynitride. The insulating layers 514 to 516 that serve as the gate insulating layers in the back gate side are formed using a stack of silicon oxide, aluminum oxide, and silicon oxide. The insulating layer 517 that serves as the gate insulating layer in the front gate side is formed using silicon oxynitride. The insulating layer 518 that serves as the interlayer insulating layer is formed using silicon oxide. The insulating layer 519 is formed using aluminum oxide.
[0241] Examples of a conductive material used for the conductive layers 550 to 553 include a metal such as molybdenum, titanium, tantalum, tungsten, aluminum, copper, chromium, neodymium, or scandium; and a metal nitride containing any of the above metals as its component (tantalum nitride, titanium nitride, molybdenum nitride, or tungsten nitride). Alternatively, materials such as indium tin oxide, indium oxide containing tungsten oxide, indium zinc oxide containing tungsten oxide, indium oxide containing titanium oxide, indium tin oxide containing titanium oxide, indium zinc oxide, or indium tin oxide containing silicon oxide can be used for the conductive layers 550 to 553.
[0242] Structure example of the conductive layers 550 to 553 is described. The conductive layer 550 is a single layer of tantalum nitride or tungsten. Alternatively, the conductive layer 550 is a stack of tantalum nitride and tantalum or tantalum nitride. The conductive layer 551 is formed with a single layer of tantalum nitride, or a stack of tantalum nitride and tungsten. The structure of the conductive layer 552 is the same as that of the conductive layer 551. The conductive layer 553a is composed of tantalum nitride, and the conductive layer 553b is composed of tungsten.
[0243] In order to reduce the off-state current of the transistor 501, for example, the energy gap of the metal oxide film 522 is preferably large. The energy gap of the metal oxide film 522 is greater than or equal to 2.5 eV and less than or equal to 4.2 eV, preferably greater than or equal to 2.8 eV and less than or equal to 3.8 eV, more preferably greater than or equal to 3 eV and less than or equal to 3.5 eV.
[0244] The oxide layer 530 preferably exhibits crystallinity. At least the metal oxide film 522 preferably exhibits crystallinity. With the structure described above, the transistor 501 can have high reliability and favorable electrical characteristics.
[0245] As the oxide of the metal oxide film 522, typically, an In-Ga oxide, an In—Zn oxide, or an In—M—Zn oxide (M is Al, Ga, Y, or Sn) can be used. The metal oxide film 522 is not limited to the oxide layer containing indium. The metal oxide film 522 can be formed using a Zn—Sn oxide, a Ga—Sn oxide, or a Zn—Mg oxide, for example. The metal oxide films 521, 523 and 524 can be formed using an oxide that is similar to the oxide of the metal oxide film 522. In particular, each of the metal oxide films 521, 523 and 524 can be formed with Ga oxide.
[0246] When an interface level is formed at the interface between the metal oxide film 522 and the metal oxide film 521, a channel region is formed also in the vicinity of the interface, which causes a change in the threshold voltage of the transistor 501. It is preferable that the metal oxide film 521 contains at least one of the metal elements contained in the metal oxide film 522. Accordingly, an interface level is unlikely to be formed at the interface between the metal oxide film 522 and the metal oxide film 521, and variations in the electrical characteristics of the transistor 501, such as the threshold voltage can be reduced.
[0247] It is preferable that the metal oxide film 524 contains at least one of the metal elements contained in the metal oxide film 522 as its component because interface scattering is unlikely to occur at the interface between the metal oxide film 522 and the metal oxide film 524, and carrier transfer is not inhibited. Thus, the field-effect mobility of the transistor 501 can be increased.
[0248] It is preferable that the metal oxide film 522 have the highest carrier mobility among the metal oxide films 521 to 524. Accordingly, a channel can be formed in the metal oxide film 522 that is apart from the insulating layers 516 and 517.
[0249] For example, in a metal oxide containing indium such as an In—M—Zn oxide, carrier mobility can be increased by an increase in the indium content. In the In-M-Zn oxide, the s orbital of heavy metal mainly contributes to carrier transfer, and when the indium content in the oxide semiconductor is increased, overlaps of the s orbitals of indium atoms are increased; therefore, an oxide having a high content of indium has higher mobility than an oxide having a low content of indium. Therefore, an oxide having a high content of indium is used as an oxide semiconductor film, so that carrier mobility can be increased.
[0250] Thus, for example, the metal oxide film 522 is formed using an In—Ga—Zn oxide, and the metal oxide films 521 and 523 are formed using a Ga oxide. For example, when the metal oxide films 521 to 523 are formed using an In—M—Zn oxide, the indium content of the metal oxide film 522 is made higher than the indium content of the metal oxide films 521 and 523. When the In-M-Zn oxide is formed by sputtering, the indium content can be changed by a change in the atomic ratio of metal elements of a target.
[0251] For example, it is preferable that the atomic ratio of metal elements of a target used for depositing the metal oxide film 522 be In:M:Zn=1:1:1, 3:1:2, or 4:2:4.1. For example, it is preferable that the atomic ratio of metal elements of a target used for depositing the metal oxide films 521 and 523 be In:M:Zn=1:3:2, or 1:3:4. The atomic ratio of an In—M—Zn oxide deposited using a target of In:M:Zn=4:2:4.1 is approximately In:M:Zn=4:2:3.
[0252] For the transistor 501 to have stable electrical characteristics, it is preferable to reduce the concentration of impurities in the oxide layer 530. In the metal oxide, hydrogen, nitrogen, carbon, silicon, and a metal element other than a main component are impurities. For example, hydrogen and nitrogen form donor levels to increase the carrier density, and silicon and carbon form impurity levels in the oxide semiconductor. The impurity levels serve as traps and might cause deterioration of electrical characteristics of the transistor.
[0253] For example, the oxide layer 530 includes a region where the concentration of silicon is lower than or equal to 2×10.sup.18 atoms/cm.sup.3, or preferably lower than or equal to 2×10.sup.17 atoms/cm.sup.3. The same applies to the concentration of carbon in the oxide layer 530.
[0254] The oxide layer 530 includes a region where the concentration of alkali metal is lower than or equal to 1×10.sup.18 atoms/cm.sup.3, or preferably lower than or equal to 2×10.sup.16 atoms/cm.sup.3. The same applies to the concentration of alkaline earth metal in the metal oxide film 522.
[0255] The oxide layer 530 includes a region where the concentration of nitrogen is lower than 5×10.sup.19 atoms/cm.sup.3, preferably lower than or equal to 5×10.sup.18 atoms/cm.sup.3, further preferably lower than or equal to 1×10.sup.18 atoms/cm.sup.3, still further preferably lower than or equal to 5×10.sup.17 atoms/cm.sup.3.
[0256] The oxide layer 530 includes a region where the concentration of hydrogen is lower than 1×10.sup.20 atoms/cm.sup.3, preferably lower than 1×10.sup.19 atoms/cm.sup.3, further preferably lower than 5×10.sup.18 atoms/cm.sup.3, still further preferably lower than 1×10.sup.18 atoms/cm.sup.3.
[0257] The above concentrations of the impurities in the metal oxide film 522 are measured by SIMS.
[0258] In the case where the metal oxide film 522 contains oxygen vacancies, donor levels are formed by entry of hydrogen into sites of oxygen vacancies in some cases, to cause reduction in the on-state current of the transistor 501. Note that sites of oxygen vacancies become more stable by entry of oxygen than by entry of hydrogen. Thus, by reducing oxygen vacancies in the metal oxide film 522, the on-state current of the transistor 501 can be increased in some cases. Consequently, preventing entry of hydrogen into sites of oxygen vacancies by a reduction in hydrogen in the metal oxide film 522 is effective in improving on-state current characteristics.
[0259] Hydrogen contained in a metal oxide reacts with oxygen bonded to a metal atom to be water, and thus causes an oxygen vacancy, in some cases. An electron serving as a carrier is generated due to entry of hydrogen into the oxygen vacancy, in some cases. Furthermore, in some cases, bonding of part of hydrogen to oxygen bonded to a metal atom causes generation of an electron serving as a carrier. Thus, the transistor 501 is likely to be normally-on when the metal oxide film 522 contains hydrogen because the metal oxide film 522 includes a channel formation region.
[0260] Accordingly, it is preferable that hydrogen in the metal oxide film 522 be reduced as much as possible.
[0261]
[0262] Effects of the stack of the metal oxide films 521, 522, and 524 are described with reference to
[0263] In
[0264] Here, a difference in energy between the vacuum level and the bottom of the conduction band (the difference is also referred to as electron affinity) corresponds to a value obtained by subtracting an energy gap from a difference in energy between the vacuum level and the top of the valence band (the difference is also referred to as an ionization potential). The energy gap can be measured using a spectroscopic ellipsometer (UT-300 manufactured by HORIBA JOBIN YVON S.A.S.). The energy difference between the vacuum level and the top of the valence band can be measured using an ultraviolet photoelectron spectroscopy (UPS) device (VersaProbe manufactured by ULVAC-PHI, Inc.).
[0265] Since the insulating layers 516 and 517 are insulators, Ec516e and Ec517e are closer to the vacuum level than Ec521e, Ec522e, and Ec524e (i.e., the insulating layers 516 and 517 have a lower electron affinity than the metal oxides films 521, 522, and 524).
[0266] The metal oxide film 522 has a higher electron affinity than the metal oxide films 521 and 524. For example, the difference in electron affinity between the metal oxide films 521 and 522 and the difference in electron affinity between the metal oxide films 522 and 524 are each greater than or equal to 0.07 eV and less than or equal to 1.3 eV, preferably greater than or equal to 0.1 eV and less than or equal to 0.7 eV, further preferably greater than or equal to 0.15 eV and less than or equal to 0.4 eV. Note that the electron affinity is a difference in energy between the vacuum level and the bottom of the conduction band.
[0267] When voltage is applied to the gate electrode (the conductive layer 550) of the transistor 501, a channel is mainly formed in the metal oxide film 522 having the highest electron affinity among the metal oxide films 521, 522, and 524.
[0268] An indium gallium oxide has low electron affinity and a high oxygen-blocking property. Therefore, the metal oxide film 524 preferably includes an indium gallium oxide. The gallium atomic ratio [Ga/(In+Ga)] is, for example, higher than or equal to 70%, preferably higher than or equal to 80%, further preferably higher than or equal to 90%.
[0269] In some cases, there is a mixed region of the metal oxide films 521 and 522 between the metal oxide films 521 and 522. Furthermore, in some cases, there is a mixed region of the metal oxide films 522 and 524 between the metal oxide films 522 and 524. Because the mixed region has low interface state density, a region with a stack formed with the metal oxide films 521, 522, and 524 has a band structure where energy at each interface and in the vicinity of the interface is changed continuously (continuous junction).
[0270] Electrons transfer mainly through the metal oxide film 522 in the oxide layer 530 having such an energy band structure. Therefore, even when an interface state exists at an interface between the metal oxide film 521 and the insulating layer 516 or an interface between the metal oxide film 524 and the insulating layer 517, electron movement in the oxide layer 530 is less likely to be inhibited and the on-state current of the transistor 501 can be increased.
[0271] Although trap states Et526e and Et527e due to impurities or defects might be formed in the vicinity of the interface between the metal oxide film 521 and the insulating layer 516 and the vicinity of the interface between the metal oxide film 524 and the insulating layer 517 as illustrated in
[0272] Note that when a difference between Ec521e and Ec522e is small, an electron in the metal oxide film 522 might reach the trap state Et526e by passing over the difference in energy. Since the electron is trapped at the trap state Et526e, negative fixed charge is generated at the interface with the insulating film, causing the threshold voltage of the transistor to be shifted in a positive direction. The same applies to the case where a difference in energy between Ec521e and Ec524e is small.
[0273] Each of the difference in energy between Ec521e and Ec522e and the difference in energy between Ec522e and Ec524e is preferably greater than or equal to 0.1 eV, further preferably greater than or equal to 0.15 eV so that a change in the threshold voltage of the transistor 501 can be reduced and the transistor 501 can have favorable electrical characteristics.
[0274] The transistor 501 does not necessarily include a back gate electrode.
[0275]
[0276] The data comparison circuit 10 includes a stack of a CMOS layer 561, wiring layers W.sub.1 to W.sub.5, a transistor layer 562, and wiring layers W.sub.6 and W.sub.7.
[0277] A transistor including silicon in a channel formation region is provided in the CMOS layer 561. Active layers of the transistors M13 are formed using a single crystalline silicon wafer 560.
[0278] The transistor M8 is provided in the transistor layer 562. The transistor M8 in
[0279] This embodiment can be combined with any of the other embodiments as appropriate.
Embodiment 5
[0280] In this embodiment, an oxide semiconductor is described. An oxide semiconductor is classified into a single crystal oxide semiconductor and a non-single-crystal oxide semiconductor. Examples of a non-single-crystal oxide semiconductor include a c-axis-aligned crystalline oxide semiconductor (CAAC-OS), a polycrystalline oxide semiconductor, a nanocrystalline oxide semiconductor (nc-OS), an amorphous-like oxide semiconductor (a-like OS), and an amorphous oxide semiconductor.
[0281] From another perspective, an oxide semiconductor is classified into an amorphous oxide semiconductor and a crystalline oxide semiconductor. Examples of a crystalline oxide semiconductor include a single crystal oxide semiconductor, a CAAC-OS, a polycrystalline oxide semiconductor, and an nc-OS.
[0282] An amorphous structure is generally thought to be isotropic and have no non-uniform structure, to be metastable and not to have fixed positions of atoms, to have a flexible bond angle, and to have a short-range order but have no long-range order, for example.
[0283] This means that a stable oxide semiconductor cannot be regarded as a completely amorphous oxide semiconductor. Moreover, an oxide semiconductor that is not isotropic (e.g., an oxide semiconductor that has a periodic structure in a microscopic region) cannot be regarded as a completely amorphous oxide semiconductor. In contrast, an a-like OS, which is not isotropic, has an unstable structure that contains a void. Because of its instability, an a-like OS is close to an amorphous oxide semiconductor in terms of physical properties.
[0284] A CAAC-OS is one of oxide semiconductors having a plurality of c-axis aligned crystal parts (also referred to as pellets).
[0285] As described above, the CAAC-OS has c-axis alignment, includes crystal parts (nanocrystals) connected in the a-b plane direction, and has a crystal structure with distortion. The size of the crystal part is greater than or equal to 1 nm, or greater than or equal to 3 nm. For this reason, the crystal part of the CAAC-OS can be referred to as a nanocrystal, and the CAAC-OS can also be referred to as an oxide semiconductor including a c-axis-aligned a-b-plane-anchored (CAA) crystal.
[0286] The CAAC-OS is an oxide semiconductor with high crystallinity. Entry of impurities, formation of defects, or the like might decrease the crystallinity of an oxide semiconductor. This means that the CAAC-OS has reduced impurities and defects (e.g., oxygen vacancy).
[0287] Note that the impurity means an element other than the main components of the oxide semiconductor, such as hydrogen, carbon, silicon, or a transition metal element. For example, an element (specifically, silicon or the like) having higher strength of bonding to oxygen than a metal element included in an oxide semiconductor extracts oxygen from the oxide semiconductor, which results in disorder of the atomic arrangement and reduced crystallinity of the oxide semiconductor. A heavy metal such as iron or nickel, argon, carbon dioxide, or the like has a large atomic radius (or molecular radius), and thus disturbs the atomic arrangement of the oxide semiconductor and decreases crystallinity.
[0288] The characteristics of an oxide semiconductor having impurities or defects might be changed by light, heat, or the like. Impurities contained in the oxide semiconductor might serve as carrier traps or carrier generation sources. For example, oxygen vacancy in the oxide semiconductor might serve as a carrier trap or serve as a carrier generation source when hydrogen is captured therein.
[0289] The CAAC-OS having small amounts of impurities and oxygen vacancy is an oxide semiconductor with a low carrier density. Specifically, an oxide semiconductor with a carrier density of lower than 8×10.sup.11/cm.sup.3, preferably lower than 1×10.sup.11/cm.sup.3, further preferably lower than 1×10.sup.10/cm.sup.3, and higher than or equal to 1×10.sup.−9/cm.sup.3 can be used. Such an oxide semiconductor is referred to as a highly purified intrinsic or substantially highly purified intrinsic oxide semiconductor. A CAAC-OS has a low impurity concentration and a low density of defect states. Thus, the CAAC-OS can be referred to as an oxide semiconductor having stable characteristics.
[0290] In the nc-OS, a microscopic region (for example, a region with a size greater than or equal to 1 nm and less than or equal to 10 nm, in particular, a region with a size greater than or equal to 1 nm and less than or equal to 3 nm) has a periodic atomic arrangement. Note that there is no regularity of crystal orientation between different crystal parts in the nc-OS. Thus, the orientation of the whole film is not observed. Since there is no regularity of crystal orientation between the crystal parts (nanocrystals), the nc-OS can also be referred to as an oxide semiconductor including randomly aligned nanocrystals (RANC) or an oxide semiconductor including non-aligned nanocrystals (NANC).
[0291] Since the crystal of the nc-OS does not have alignment, the nc-OS cannot be distinguished from an a-like OS or an amorphous oxide semiconductor in some cases depending on an analysis method.
[0292] The a-like OS has lower density than the nc-OS and the CAAC-OS. Specifically, the density of the a-like OS is higher than or equal to 78.6% and lower than 92.3% of the density of the single crystal oxide semiconductor having the same composition. The density of each of the nc-OS and the CAAC-OS is higher than or equal to 92.3% and lower than 100% of the density of the single crystal oxide semiconductor having the same composition. Note that it is difficult to deposit an oxide semiconductor having a density of lower than 78% of the density of the single crystal oxide semiconductor.
[0293] For example, in the case of an oxide semiconductor having an atomic ratio of In:Ga:Zn=1:1:1, the density of single crystal InGaZnO.sub.4 with a rhombohedral crystal structure is 6.357 g/cm.sup.3. Accordingly, in the case of the oxide semiconductor having an atomic ratio of In:Ga:Zn=1:1:1, the density of the a-like OS is higher than or equal to 5.0 g/cm.sup.3 and lower than 5.9 g/cm.sup.3. For example, in the case of the oxide semiconductor having an atomic ratio of In:Ga:Zn=1:1:1, the density of each of the nc-OS and the CAAC-OS is higher than or equal to 5.9 g/cm.sup.3 and lower than 6.3 g/cm.sup.3.
[0294] Note that in the case where an oxide semiconductor having a certain composition does not exist in a single crystal structure, single crystal oxide semiconductors with different compositions are combined at an adequate ratio, which makes it possible to estimate density equivalent to that of a single crystal oxide semiconductor with the desired composition. The density of a single crystal oxide semiconductor having the desired composition can be estimated using a weighted average according to the combination ratio of the single crystal oxide semiconductors with different compositions. Note that it is preferable to use as few kinds of single crystal oxide semiconductors as possible to estimate the density.
[0295] As described above, oxide semiconductors have various structures and various properties. Note that an oxide semiconductor may be a stacked layer including two or more films of an amorphous oxide semiconductor, an a-like OS, an nc-OS, and a CAAC-OS, for example.
[0296] The carrier density of an oxide semiconductor is described below.
[0297] Examples of a factor affecting the carrier density of an oxide semiconductor include oxygen vacancy (Vo) and impurities in the oxide semiconductor.
[0298] As the amount of oxygen vacancy in the oxide semiconductor increases, the density of defect states increases when hydrogen is bonded to the oxygen vacancy (this state is also referred to as VoH). The density of defect states also increases with an increase in the amount of impurity in the oxide semiconductor. Hence, the carrier density of an oxide semiconductor can be controlled by controlling the density of defect states in the oxide semiconductor.
[0299] A transistor using the oxide semiconductor in a channel region will be described below.
[0300] The carrier density of the oxide semiconductor is preferably reduced in order to inhibit the negative shift of the threshold voltage of the transistor or reduce the off-state current of the transistor. In order to reduce the carrier density of the oxide semiconductor, the impurity concentration in the oxide semiconductor is reduced so that the density of defect states can be reduced. In this specification and the like, a state with a low impurity concentration and a low density of defect states is referred to as a highly purified intrinsic or substantially highly purified intrinsic state. The carrier density of a highly purified intrinsic oxide semiconductor is lower than 8×10.sup.15 cm.sup.−3, preferably lower than 1×10.sup.11 cm.sup.−3, and further preferably lower than 1×10.sup.10 cm.sup.−3 and is higher than or equal to 1×10.sup.−9 cm.sup.−3.
[0301] In contrast, the carrier density of the oxide semiconductor is preferably increased in order to improve the on-state current of the transistor or improve the field-effect mobility of the transistor. In order to increase the carrier density of the oxide semiconductor, the impurity concentration or the density of defect states in the oxide semiconductor is slightly increased. Alternatively, the bandgap of the oxide semiconductor is preferably narrowed. For example, an oxide semiconductor that has a slightly high impurity concentration or a slightly high density of defect states in the range where a favorable on/off ratio is obtained in the Id-Vg characteristics of the transistor can be regarded as substantially intrinsic. Furthermore, an oxide semiconductor that has a high electron affinity and thus has a narrow bandgap so as to increase the density of thermally excited electrons (carriers) can be regarded as substantially intrinsic. Note that a transistor using an oxide semiconductor with higher electron affinity has lower threshold voltage.
[0302] The aforementioned oxide semiconductor with an increased carrier density has a slightly n-type conductivity; thus, it can be referred to as a “slightly-n” oxide semiconductor.
[0303] The carrier density of a substantially intrinsic oxide semiconductor is preferably higher than or equal to 1×10.sup.5 cm.sup.−3 and lower than 1×10.sup.18 cm.sup.−3, further preferably higher than or equal to 1×10.sup.7 cm.sup.−3 and lower than or equal to 1×10.sup.17 cm-.sup.3, still further preferably higher than or equal to 1×10.sup.9 cm.sup.−3 and lower than or equal to 5×10.sup.16 cm.sup.−3, yet further preferably higher than or equal to 1×10.sup.10 cm.sup.3 and lower than or equal to 1×10.sup.16 cm .sup.3, and yet still preferably higher than or equal to 1×10.sup.11 cm.sup.−3 and lower than or equal to 1×10.sup.15 cm.sup.−3.
[0304] As described above, oxide semiconductors have various structures and various properties. Note that an oxide semiconductor may be a stacked layer including two or more films of an amorphous oxide semiconductor, an a-like OS, an nc-OS, and a CAAC-OS, for example. The structure of the oxide semiconductor can be identified by X-ray diffraction (XRD), nanobeam electron diffraction, observation with a transmission electron microscope (TEM), or the like.
[0305] This embodiment can be combined with any of the other embodiments as appropriate.
Embodiment 6
[0306] In this embodiment, a configuration example of the memory circuit 12 is described.
[0307] The memory circuit 12 illustrated in
[0308] The memory circuit 12 illustrated in
[0309] Threshold voltage and a shift value of a transistor that includes a back gate electrode can be controlled with the potential that is supplied to the back gate electrode. Note that the term “shift value” refers to the value of the gate voltage when the drain current is 10.sup.−12 A. Specifically, when an n-channel transistor is assumed, the shift value can be made large by shifting the potential supplied to the back gate electrode to the positive side, thereby shifting the threshold voltage to the negative side. Specifically, when an n-channel transistor is assumed, the shift value can be made small by shifting the potential supplied to the back gate electrode to the negative side, thereby shifting the threshold voltage to the positive side. When the transistor is a p-channel transistor, the relationship between the potential supplied to the back gate electrode, the threshold voltage and the shift value is reversed from the case of the n-channel transistor.
[0310] Thus, for example, controlling the potential at the back gate electrode of a transistor to shift the threshold voltage to the negative side, and to increase the shift value can increase the on-state current of the transistor. This enables a quick supply of potential to the node ND2. For example, controlling the potential at the back gate electrode of a transistor to shift the threshold voltage to the positive side, and to decrease the shift value can decrease the cutoff current of the transistor. This enables a potential to be retained for a long time at the node ND2.
[0311] Note that the structures of transistors M8 and M10 described in this embodiment can be applied to the memory circuit 12 illustrated in
[0312] Next, a configuration example of a circuit 50 that has a function of retaining a potential at the terminal BG is illustrated in
[0313] This embodiment can be combined with any of the other embodiments as appropriate.
Embodiment 7
[0314]
[0315] In the package in
[0316]
[0317] In the module of a cellular phone in
[0318]
[0319] This embodiment can be combined with any of the other embodiments as appropriate.
Embodiment 8
[0320] A storage device in one embodiment of the present invention can be used for display devices, personal computers, or image reproducing devices provided with recording media (typically, devices that reproduce the content of recording media such as digital versatile discs (DVDs) and have displays for displaying the reproduced images). Other than the above, as an electronic device which can be provided with the memory device according to one embodiment of the present invention, mobile phones, game machines (including portable game machines), portable information terminals, e-book readers, video cameras, cameras (e.g. digital still cameras), goggle-type displays (head mounted displays), navigation systems, audio reproducing devices (e.g., car audio units and digital audio players), copiers, facsimiles, printers, multifunction printers, automated teller machines (ATM), vending machines, medical equipment and the like can be given.
[0321]
[0322]
[0323]
[0324]
[0325]
[0326]
[0327] This embodiment can be combined with any of the other embodiments as appropriate.
[0328] This application is based on Japanese Patent Application serial No. 2016-031740 filed with Japan Patent Office on Feb. 23, 2016, the entire contents of which are hereby incorporated by reference.