Semiconductor device

The semiconductor device optimizes product-sum operations through capacitive and transistors configurations, addressing power and circuit area issues in neural network calculations and sensor integration.

JP2024155924AActive Publication Date: 2024-10-31SEMICON ENERGY LAB CO LTD

Patent Information

Application Number
JP2024130665
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2020-01-21
Filing Date
2024-08-07
Publication Date
2024-10-31
Estimated Expiration
2041-01-08

AI Technical Summary

Technical Problem

Existing semiconductor devices face challenges in performing product-sum operations efficiently, leading to increased circuit area and power consumption, particularly in neural network calculations, due to high frequency data access to digital memory and the need for multiple circuits like digital multiplication and addition circuits.

Method used

A semiconductor device is designed with specific configurations including cells, circuits, and wirings that perform product-sum operations with reduced power consumption by utilizing capacitors and transistors to minimize current leakage and optimize data processing.

Benefits of technology

The device achieves efficient product-sum operations with lower power consumption, suitable for neural network calculations and sensor integration, reducing the need for additional circuits and minimizing data access frequency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024155924000001_ABST
    Figure 2024155924000001_ABST
Patent Text Reader

Abstract

To provide a semiconductor device capable of product-sum operation, in which the consumption power is reduced.SOLUTION: A semiconductor device includes first and second cells, a first circuit, and first to third wires. Each of the first and second cells includes a capacitor, and a first terminal of each capacitor is electrically connected to the third wire. Each of the first and second cells has a function of feeding current according to the potential held in a second terminal of the capacitor to the first and second wires. The first circuit is electrically connected to the first and second wires and stores currents I1 and I2 flowing to the first and second wires. When the potential of the third wire changes to cause the amount of current in the first wire change from I1 to I3 and the amount of current in the second wire change from I2 to I4, the first circuit generates current with the amount of I1-I2-I3+I4. The change of the third wire is caused by first inputting a reference potential to the third wire and then inputting a potential according to internal data or a potential according to information obtained by a sensor.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] One embodiment of the present invention relates to a semiconductor device and an electronic device.

[0002] Note that one embodiment of the present invention is not limited to the above technical field. The technical field of the invention disclosed in this specification relates to an object, an operation method, or a manufacturing method. Alternatively, one embodiment of the present invention relates to a process, a machine, a manufacture, or a composition of matter. Therefore, examples of the technical field of one embodiment of the present invention disclosed in this specification more specifically include a semiconductor device, a display device, a liquid crystal display device, a light-emitting device, a power storage device, an imaging device, a memory device, a signal processing device, a sensor, a processor, an electronic device, a system, a driving method thereof, a manufacturing method thereof, or an inspection method thereof. [Background technology]

[0003] Currently, the development of integrated circuits that mimic the mechanisms of the human brain is actively progressing. Such integrated circuits incorporate the mechanisms of the brain as electronic circuits, and have circuits that correspond to the "neurons" and "synapses" of the human brain. For this reason, such integrated circuits are sometimes called "neuromorphic," "brain-morphic," or "brain-inspired." Such integrated circuits have a non-von Neumann architecture, and are expected to perform parallel processing with extremely low power consumption, compared to the von Neumann architecture, which consumes more power as the processing speed increases.

[0004] An information processing model that mimics a neural network with "neurons" and "synapses" is called an artificial neural network (ANN). By using an artificial neural network, it is possible to make inferences with an accuracy comparable to or even exceeding that of humans. In an artificial neural network, the main operation is the weighted sum of neuron outputs, i.e., the product-sum operation.

[0005] An invention that utilizes a memory cell using an OS transistor as a circuit that executes product-sum operations is disclosed in, for example, Patent Document 1. An OS transistor (which may also be called an oxide semiconductor transistor) is a transistor that has a metal oxide semiconductor in a channel formation region, and has been reported to have an extremely small off-state current (for example, Non-Patent Documents 1 and 2). In addition, various semiconductor devices using OS transistors have been manufactured (for example, Non-Patent Documents 3 and 4). A manufacturing process for an OS transistor can be incorporated into a conventional CMOS process for Si transistors, and the OS transistor can be stacked on the Si transistor (for example, Non-Patent Document 4). [Prior art documents] [Patent documents]

[0006] [Patent Document 1] JP 2017-168099 A [Non-patent literature]

[0007] [Non-Patent Document 1] S. Yamazaki et al., “Properties of crystalline In-Ga-Zn-oxide semiconductor and its transistor characteristics,” Jpn.J.Appl.Phys.,vol.53,04ED18(2014). [Non-Patent Document 2] K. Kato et al., “Evaluation of Off-State Current Characteristics of Transistor Using Oxide Semiconductor Material, Indium-Gallium-Zinc Oxide,” Jpn.J.Appl.Phys., vol. 51, 021201 (2012). [Non-Patent Document 3] S. Amano et al., “Low Power LC Display Using In-Ga-Zn-Oxide TFTs Based on Variable Frame Frequency,” SID Symp. Dig. Papers, vol. 41, pp. 626-629 (2010). [Non-Patent Document 4] T. Ishizu et al., “Embedded Oxide Semiconductor Memories: A Key Enabler for Low-Power ULSI,” ECS Tran., vol.79, pp.149-156 (2017). Summary of the Invention [Problem to be solved by the invention]

[0008] When a multiply-and-accumulate operation is performed in a digital circuit, a digital multiplier circuit multiplies the digital data (multiplier data) that is the multiplier by the digital data (multiplicand data) that is the multiplicand. Then, a digital adder circuit adds the digital data (product data) obtained by the multiplication, and obtains digital data (product-and-accumulate data) as the result of the multiply-and-accumulate operation. It is preferable that the digital multiplier circuit and the digital adder circuit have specifications that can handle multi-bit operations. However, in this case, the circuit scale of each of the digital multiplier circuit and the digital adder circuit may become large, which may lead to an increase in the circuit area of ​​the entire operation circuit and an increase in power consumption.

[0009] Furthermore, when a calculation is performed by a processor or the like, the data of the calculation result is stored once in a digital memory, for example. For example, when a multiplication and accumulation operation is performed, the product data obtained by a digital multiplication circuit is stored once in a digital memory, and the product data is read out when the multiplication and accumulation data is calculated by a digital addition circuit. After the multiplication and accumulation data is calculated by the digital addition circuit, the product and accumulation data is stored in the digital memory. That is, when a multiplication and accumulation operation is performed, data access to the digital memory is performed every time multiplication and addition of digital data are performed. In particular, when an artificial neural network operation is performed, multiplication and addition of digital data are performed repeatedly, so that the frequency of data access to the digital memory becomes very high. As a result, the speed of writing and reading data related to the digital memory affects the processing speed of the operation. Furthermore, the power consumption required for writing and reading data related to the digital memory accounts for a large portion of the power consumption required for repeated operations such as a neural network.

[0010] In addition, by combining a calculation circuit that performs neural network calculations with a sensor, it may be possible to make electronic devices recognize various information. For example, by combining an optical sensor (e.g., a photodiode, etc.) as a sensor with the calculation circuit, pattern recognition such as face recognition and image recognition can be performed from image data obtained by the optical sensor. However, since the electric signal obtained from the optical sensor is weak, it is necessary to amplify the electric signal by an amplifier circuit in order to input the electric signal to the calculation circuit. In addition, if the calculation circuit is composed of a digital circuit, it is necessary to convert the electric signal into a digital signal by an analog-digital conversion circuit or the like. Therefore, in order to input the electric signal obtained from the optical sensor to the calculation circuit, it is necessary to process the electric signal by various circuits, which may increase the power consumption of the circuit.

[0011] An object of one embodiment of the present invention is to provide a semiconductor device capable of performing a product-sum operation. Another object of one embodiment of the present invention is to provide a semiconductor device with low power consumption.

[0012] Another object of one embodiment of the present invention is to provide a novel semiconductor device or the like. Another object of one embodiment of the present invention is to provide an electronic device including the semiconductor device.

[0013] The problems of one embodiment of the present invention are not limited to the problems listed above. The problems listed above do not preclude the existence of other problems. The other problems are problems not mentioned in this section, which will be described below. Problems not mentioned in this section can be derived by a person skilled in the art from the description in the specification or drawings, and can be appropriately extracted from these descriptions. One embodiment of the present invention solves at least one of the problems listed above and other problems. One embodiment of the present invention does not need to solve all of the problems listed above and other problems. [Means for solving the problem]

[0014] (1) One aspect of the present invention is a semiconductor device having a first cell, a second cell, a first circuit, a second circuit, a third circuit, a fourth circuit, a first wiring, a second wiring, and a third wiring. The first cell has a first capacitance, and the second cell has a second capacitance. The first circuit has a fifth circuit and a sixth circuit, and the third circuit has a sensor. The first cell is electrically connected to the first circuit via the first wiring, and a first terminal of the first capacitance of the first cell is electrically connected to the third wiring. The second cell is electrically connected to the first circuit via the second wiring, and a first terminal of the second capacitance of the second cell is electrically connected to the third wiring. The second circuit is electrically connected to the fourth circuit, the third circuit is electrically connected to the fourth circuit, and the third wiring is electrically connected to the fourth circuit. The fourth circuit has a function of setting the second circuit and the third wiring to one of a conductive state or a non-conductive state, and setting the third circuit and the third wiring to the other of a conductive state or a non-conductive state. The first cell has a function of holding a first potential at the second terminal of the first capacitance when a first input potential is input to the third wiring, a function of flowing a current according to the first potential between the first cell and the first wiring, and a function of changing the first potential held at the second terminal of the first capacitance to a second potential when the first input potential of the third wiring changes to a second input potential, and a function of flowing a current according to the second potential between the first cell and the first wiring. The second cell has a function of holding a third potential at the second terminal of the second capacitance when a first input potential is input to the third wiring, a function of flowing a current corresponding to the third potential between the second cell and the second wiring, and a function of changing the third potential held at the second terminal of the second capacitance to a fourth potential and flowing a current corresponding to the fourth potential between the second cell and the second wiring when the first input potential of the third wiring changes to the second input potential. Note that when the potential of the third wiring is the first input potential, a first current flows between the first circuit and the first wiring, and a second current flows between the first circuit and the second wiring, and when the potential of the third wiring is the second input potential, a third current flows between the first circuit and the first wiring, and a fourth current flows between the first circuit and the second wiring.The fifth circuit has a function of passing a first current amount I1 through the first wiring when the potential of the third wiring is the second input potential, and the sixth circuit has a function of passing a second current amount I2 through the first wiring when the potential of the third wiring is the second input potential. The first circuit has a function of acquiring a third current amount I3 and a fourth current amount I4 and generating a current of an amount I1-I2-I3+I4 when the potential of the third wiring is the second input potential. The second circuit has a function of generating a fifth potential, a function of generating a sixth potential according to internal data input to the second circuit, and a function of outputting the fifth potential as the first input potential or the sixth potential as the second input potential to the fourth circuit. In addition, the third circuit has a function of generating a seventh potential before the sensor acquires information, a function of generating an eighth potential according to the information acquired by the sensor, and a function of outputting the seventh potential as a first input potential or the eighth potential as a second input potential to the fourth circuit.

[0015] (2) Alternatively, in one aspect of the present invention, in the above (1), the third circuit may have a first transistor, a second transistor, a third transistor, and a fourth transistor. In particular, it is preferable that a first terminal of the sensor is electrically connected to a first terminal of the first transistor, a second terminal of the first transistor is electrically connected to a first terminal of the second transistor and a gate of the third transistor, and a first terminal of the third transistor and a first terminal of the fourth transistor are electrically connected to the third wiring via the fourth circuit.

[0016] (3) Alternatively, in the above-mentioned (2) aspect of the present invention, the sensor may have a photodiode. In particular, it is preferable that an output terminal of the photodiode is electrically connected to the first terminal of the sensor.

[0017] (4) Alternatively, in one aspect of the present invention, in any one of the above (1) to (3), the first cell may have a fifth transistor and a sixth transistor, and the second cell may have a seventh transistor and an eighth transistor. In particular, it is preferable that a first terminal of the fifth transistor is electrically connected to a second terminal of the first capacitance and a gate of the sixth transistor, a first terminal of the sixth transistor is electrically connected to the first wiring, a first terminal of the seventh transistor is electrically connected to a second terminal of the second capacitance and a gate of the eighth transistor, and a first terminal of the eighth transistor is electrically connected to the second wiring.

[0018] (5) Alternatively, in one embodiment of the present invention, in any one of the above (1) to (4), the second circuit may have a digital-analog converter circuit. In particular, it is preferable that the digital-analog converter circuit converts a digital signal corresponding to internal data input to the digital-analog converter circuit into a sixth potential and outputs the sixth potential to the fourth circuit.

[0019] (6) Alternatively, in one embodiment of the present invention, in any one of the above (1) to (5), the third circuit may be located above the first cell and the second cell.

[0020] (7) Another embodiment of the present invention is an electronic device including the semiconductor device described in any one of (1) to (6) above and a housing, in which the semiconductor device has a function of performing a product-sum operation.

[0021] In this specification and the like, a semiconductor device is a device that utilizes semiconductor characteristics, and refers to a circuit including a semiconductor element (transistor, diode, photodiode, etc.), a device having such a circuit, etc. Also, refers to any device that can function by utilizing semiconductor characteristics. For example, an integrated circuit, a chip including an integrated circuit, and an electronic component in which a chip is housed in a package are examples of a semiconductor device. Also, a memory device, a display device, a light-emitting device, a lighting device, an electronic device, etc. are themselves semiconductor devices and may have a semiconductor device.

[0022] In addition, when it is stated in this specification that X and Y are connected, the following cases are also disclosed in this specification: when X and Y are electrically connected, when X and Y are functionally connected, and when X and Y are directly connected. Therefore, it is not limited to a specific connection relationship, for example, a connection relationship shown in a figure or text, and it is also disclosed in a figure or text other than the connection relationship shown in the figure or text. X and Y are objects (for example, a device, an element, a circuit, a wiring, an electrode, a terminal, a conductive film, a layer, etc.).

[0023] As an example of a case where X and Y are electrically connected, one or more elements (e.g., a switch, a transistor, a capacitive element, an inductor, a resistive element, a diode, a display device, a light-emitting device, a load, etc.) that enable the electrical connection between X and Y can be connected between X and Y. The switch has a function of controlling on / off. In other words, the switch has a function of being in a conductive state (on state) or a non-conductive state (off state) and controls whether or not a current flows.

[0024] As an example of a case where X and Y are functionally connected, one or more circuits that enable the functional connection between X and Y (for example, logic circuits (inverters, NAND circuits, NOR circuits, etc.), signal conversion circuits (digital-analog conversion circuits, analog-digital conversion circuits, gamma correction circuits, etc.), potential level conversion circuits (power supply circuits (boosting circuits, step-down circuits, etc.), level shifter circuits that change the potential level of a signal, etc.), voltage sources, current sources, switching circuits, amplifier circuits (circuits that can increase the signal amplitude or current amount, operational amplifiers, differential amplifier circuits, source follower circuits, buffer circuits, etc.), signal generation circuits, memory circuits, control circuits, etc.) can be connected between X and Y. As an example, even if another circuit is sandwiched between X and Y, if a signal output from X is transmitted to Y, X and Y are considered to be functionally connected.

[0025] In addition, when it is explicitly stated that X and Y are electrically connected, this includes the case where X and Y are electrically connected (i.e., the case where X and Y are connected with another element or circuit between them) and the case where X and Y are directly connected (i.e., the case where X and Y are connected without having another element or circuit between them).

[0026] Also, for example, it can be expressed as "X, Y, and the source (or first terminal, etc.) and drain (or second terminal, etc.) of the transistor are electrically connected to each other, and are electrically connected in the order of X, the source (or first terminal, etc.) of the transistor, the drain (or second terminal, etc.) of the transistor, and Y." Or, it can be expressed as "The source (or first terminal, etc.) of the transistor is electrically connected to X, the drain (or second terminal, etc.) of the transistor is electrically connected to Y, and X, the source (or first terminal, etc.) of the transistor, the drain (or second terminal, etc.) of the transistor, and Y are electrically connected in this order." Or, it can be expressed as "X is electrically connected to Y via the source (or first terminal, etc.) and drain (or second terminal, etc.) of the transistor, and X, the source (or first terminal, etc.) of the transistor, the drain (or second terminal, etc.) of the transistor, and Y are provided in this connection order." By using expressions similar to these examples to specify the order of connections in a circuit configuration, the source (or first terminal, etc.) and drain (or second terminal, etc.) of a transistor can be distinguished and the technical scope can be determined. Note that these expressions are merely examples and are not limited to these expressions. Here, X and Y are objects (e.g., a device, an element, a circuit, a wiring, an electrode, a terminal, a conductive film, a layer, etc.).

[0027] In addition, even when components that are independent on a circuit diagram are shown as being electrically connected to each other, one component may have the functions of multiple components. For example, when a part of a wiring also functions as an electrode, one conductive film has both the functions of a wiring and an electrode. Therefore, the term "electrical connection" in this specification also includes such a case where one conductive film has the functions of multiple components.

[0028] In addition, in this specification, the term "resistance element" may be, for example, a circuit element or wiring having a resistance value higher than 0Ω. Therefore, in this specification, the term "resistance element" includes wiring having a resistance value, a transistor in which a current flows between the source and drain, a diode, a coil, and the like. Therefore, the term "resistance element" can be rephrased as "resistance", "load", "region having a resistance value", and the like, and conversely, the terms "resistance", "load", and "region having a resistance value" can be rephrased as "resistance element". The resistance value can be, for example, preferably 1 mΩ or more and 10 Ω or less, more preferably 5 mΩ or more and 5 Ω or less, and even more preferably 10 mΩ or more and 1 Ω or less. In addition, for example, 1 Ω or more and 1×10 9 It may be set to Ω or less.

[0029] In addition, in this specification, the term "capacitive element" may refer to, for example, a circuit element having a capacitance value higher than 0F, a region of a wiring having a capacitance value, a parasitic capacitance, a gate capacitance of a transistor, and the like. Therefore, in this specification, the term "capacitive element" refers not only to a circuit element including a pair of electrodes and a dielectric contained between the electrodes, but also to a parasitic capacitance appearing between wirings, a gate capacitance appearing between one of the source or drain of a transistor and the gate, and the like. In addition, the terms "capacitive element", "parasitic capacitance", "gate capacitance", and the like can be rephrased as "capacitance", and conversely, the term "capacitance" can be rephrased as "capacitive element", "parasitic capacitance", "gate capacitance", and the like. In addition, the term "pair of electrodes" in "capacitance" can be rephrased as "pair of conductors", "pair of conductive regions", "pair of regions", and the like. The value of the capacitance can be, for example, 0.05 fF or more and 10 pF or less. In addition, it may be, for example, 1 pF or more and 10 μF or less.

[0030] In addition, in this specification, etc., a transistor has three terminals called a gate, a source, and a drain. The gate is a control terminal that controls the conductive state of the transistor. The two terminals that function as a source or a drain are input / output terminals of the transistor. One of the two input / output terminals becomes a source and the other becomes a drain depending on the conductivity type (n-channel type, p-channel type) of the transistor and the level of the potential applied to the three terminals of the transistor. For this reason, in this specification, etc., the terms source and drain can be replaced with other terms. In addition, in this specification, etc., when describing the connection relationship of a transistor, the terms "one of the source or drain" (or the first electrode or the first terminal) and "the other of the source or drain" (or the second electrode or the second terminal) are used. Note that, depending on the structure of the transistor, a backgate may be included in addition to the above-mentioned three terminals. In this case, in this specification, etc., one of the gate or the backgate of the transistor may be referred to as the first gate, and the other of the gate or the backgate of the transistor may be referred to as the second gate. Furthermore, in the same transistor, the terms "gate" and "backgate" may be interchangeable. Furthermore, when a transistor has three or more gates, in this specification and the like, the respective gates may be referred to as a first gate, a second gate, a third gate, and so on.

[0031] In this specification and the like, a node can be referred to as a terminal, a wiring, an electrode, a conductive layer, a conductor, an impurity region, etc. depending on a circuit configuration, a device structure, etc. Also, a terminal, a wiring, etc. can be referred to as a node.

[0032] In addition, in this specification and the like, "voltage" and "potential" can be interchanged as appropriate. "Voltage" refers to a potential difference from a reference potential, and if the reference potential is the ground potential (earth potential), for example, "voltage" can be interchanged as "potential." Note that ground potential does not necessarily mean 0V. Furthermore, potential is relative, and as the reference potential changes, the potential applied to wiring, the potential applied to a circuit, etc., the potential output from a circuit, etc. also change.

[0033] In addition, in this specification and the like, the terms "high-level potential" and "low-level potential" do not mean specific potentials. For example, when two wirings are both described as "functioning as wirings that supply a high-level potential," the high-level potentials provided by both wirings do not have to be equal to each other. Similarly, when two wirings are both described as "functioning as wirings that supply a low-level potential," the low-level potentials provided by both wirings do not have to be equal to each other.

[0034] "Current" refers to the phenomenon of charge transfer (electrical conduction). For example, the statement "electrical conduction of a positively charged body is occurring" can be rephrased as "electrical conduction of a negatively charged body is occurring in the opposite direction." Therefore, in this specification, unless otherwise specified, "current" refers to the phenomenon of charge transfer (electrical conduction) accompanying the movement of carriers. The carriers referred to here include electrons, holes, anions, cations, complex ions, etc., and the carriers differ depending on the system through which the current flows (for example, semiconductors, metals, electrolytes, vacuum, etc.). In addition, the "direction of current" in wiring, etc. is the direction in which positive carriers move, and is described as a positive current amount. In other words, the direction in which negative carriers move is the opposite direction to the direction of current, and is expressed as a negative current amount. Therefore, in this specification, etc., unless otherwise specified regarding the positive and negative (or current direction) of the current, a statement such as "current flows from element A to element B" can be rephrased as "current flows from element B to element A" etc. Furthermore, statements such as "current is input to element A" can be rephrased as "current is output from element A" or the like.

[0035] In addition, in this specification, the ordinal numbers "first," "second," and "third" are used to avoid confusion of components. Therefore, they do not limit the number of components. Furthermore, they do not limit the order of the components. For example, a component referred to as "first" in one embodiment of this specification may be a component referred to as "second" in another embodiment or in the claims. Also, for example, a component referred to as "first" in one embodiment of this specification may be omitted in another embodiment or in the claims.

[0036] In addition, in this specification, the terms indicating the arrangement, such as "above" and "below", may be used for convenience in order to explain the positional relationship between the components with reference to the drawings. Furthermore, the positional relationship between the components changes as appropriate depending on the direction in which each component is depicted. Therefore, the terms are not limited to those described in the specification, and can be rephrased appropriately depending on the situation. For example, the expression "insulator located on the upper surface of a conductor" can be rephrased as "insulator located on the lower surface of a conductor" by rotating the orientation of the drawing shown by 180 degrees.

[0037] In addition, the terms "above" and "below" do not limit the positional relationship of components to being directly above or below and in direct contact with each other. For example, the expression "electrode B on insulating layer A" does not require that electrode B be formed in direct contact with insulating layer A, and does not exclude the inclusion of other components between insulating layer A and electrode B.

[0038] In addition, in this specification and the like, the terms "film" and "layer" can be interchanged depending on the situation. For example, the term "conductive layer" may be changed to the term "conductive film". Or, for example, the term "insulating film" may be changed to the term "insulating layer". Or, depending on the situation, it is possible to replace the terms "film" and "layer" with other terms without using them. For example, the terms "conductive layer" or "conductive film" may be changed to the term "conductor". Or, for example, the terms "insulating layer" and "insulating film" may be changed to the term "insulating body".

[0039] In addition, the terms "electrode", "wiring", "terminal" and the like in this specification do not limit the functions of these components. For example, "electrode" may be used as a part of "wiring", and vice versa. Furthermore, the terms "electrode" and "wiring" include cases where a plurality of "electrodes" and "wirings" are integrally formed. Furthermore, for example, "terminal" may be used as a part of "wiring", "electrode", and the like, and vice versa. Furthermore, the term "terminal" includes cases where a plurality of "electrodes", "wiring", "terminals", and the like are integrally formed. Therefore, for example, an "electrode" can be a part of a "wiring" or a "terminal", and for example, a "terminal" can be a part of a "wiring" or an "electrode". Furthermore, the terms "electrode", "wiring", "terminal" and the like may be replaced with terms such as "region" depending on the circumstances.

[0040] In addition, in this specification and the like, terms such as "wiring", "signal line", and "power line" can be interchanged with each other depending on the circumstances. For example, the term "wiring" may be changed to the term "signal line". For example, the term "wiring" may be changed to the term "power line". The opposite is also true, and terms such as "signal line" and "power line" may be changed to the term "wiring". The term "power line" may be changed to the term "signal line". The opposite is also true, and terms such as "signal line" may be changed to the term "power line". The term "potential" applied to the wiring may be changed to the term "signal" depending on the circumstances. The opposite is also true, and terms such as "signal" may be changed to the term "potential".

[0041] In this specification and the like, the impurity of a semiconductor refers to, for example, other than the main component constituting the semiconductor layer. For example, an element with a concentration of less than 0.1 atomic % is an impurity. When an impurity is contained, for example, the defect level density in the semiconductor may increase, the carrier mobility may decrease, the crystallinity may decrease, and so on. When the semiconductor is an oxide semiconductor, the impurity that changes the characteristics of the semiconductor may be, for example, a Group 1 element, a Group 2 element, a Group 13 element, a Group 14 element, a Group 15 element, a transition metal other than the main component, and in particular, for example, hydrogen (including water), lithium, sodium, silicon, boron, phosphorus, carbon, nitrogen, and the like. Specifically, when the semiconductor is a silicon layer, the impurity that changes the characteristics of the semiconductor may be, for example, a Group 1 element, a Group 2 element, a Group 13 element, a Group 15 element, oxygen, and the like, except for hydrogen.

[0042] In this specification and the like, a switch refers to a device that has a function of being in a conductive state (on state) or a non-conductive state (off state) and controlling whether or not a current flows. Alternatively, a switch refers to a device that has a function of selecting and switching a path through which a current flows. As an example, an electrical switch, a mechanical switch, or the like can be used. In other words, the switch is not limited to a specific one as long as it can control a current.

[0043] Examples of electrical switches include transistors (e.g., bipolar transistors, MOS transistors, etc.), diodes (e.g., PN diodes, PIN diodes, Schottky diodes, MIM (Metal Insulator Metal) diodes, MIS (Metal Insulator Semiconductor) diodes, diode-connected transistors, etc.), and logic circuits combining these. When a transistor is used as a switch, the "conductive state" of the transistor refers to a state in which the source electrode and drain electrode of the transistor can be considered to be electrically short-circuited. Also, the "non-conductive state" of the transistor refers to a state in which the source electrode and drain electrode of the transistor can be considered to be electrically cut off. When a transistor is operated simply as a switch, the polarity (conductivity type) of the transistor is not particularly limited.

[0044] An example of a mechanical switch is a switch that uses MEMS (microelectromechanical system) technology. The switch has an electrode that can be moved mechanically, and the movement of the electrode controls whether the switch is conductive or non-conductive.

[0045] In this specification, "parallel" refers to a state in which two straight lines are arranged at an angle of -10° or more and 10° or less. Therefore, it also includes the case of -5° or more and 5° or less. Furthermore, "substantially parallel" or "roughly parallel" refers to a state in which two straight lines are arranged at an angle of -30° or more and 30° or less. Furthermore, "perpendicular" refers to a state in which two straight lines are arranged at an angle of 80° or more and 100° or less. Therefore, it also includes the case of 85° or more and 95° or less. Furthermore, "substantially perpendicular" or "approximately perpendicular" refers to a state in which two straight lines are arranged at an angle of 60° or more and 120° or less. Effect of the Invention

[0046] According to one embodiment of the present invention, a semiconductor device capable of performing a product-sum operation can be provided. Alternatively, according to one embodiment of the present invention, a semiconductor device with low power consumption can be provided.

[0047] According to one embodiment of the present invention, a novel semiconductor device or the like can be provided. According to one embodiment of the present invention, an electronic device including the semiconductor device can be provided.

[0048] The effects of one embodiment of the present invention are not limited to the effects listed above. The effects listed above do not preclude the existence of other effects. The other effects are effects not mentioned in this section, which will be described below. Effects not mentioned in this section can be derived by a person skilled in the art from the description in the specification or drawings, and can be appropriately extracted from these descriptions. One embodiment of the present invention has at least one of the effects listed above and other effects. Therefore, one embodiment of the present invention may not have the effects listed above in some cases. [Brief description of the drawings]

[0049] [Figure 1] FIG. 1 is a block diagram showing an example of the configuration of a semiconductor device. [Diagram 2] FIG. 2 is a block diagram showing a configuration example of the semiconductor device. [Diagram 3] FIG. 3 is a circuit diagram showing a configuration example of a circuit included in the semiconductor device. [Figure 4] FIG. 4 is a circuit diagram showing a configuration example of a circuit included in the semiconductor device. [Diagram 5] 5A and 5B are circuit diagrams showing configuration examples of circuits included in a semiconductor device. [Figure 6] FIG. 6 is a circuit diagram showing a configuration example of a circuit included in the semiconductor device. [Figure 7] 7A and 7B are circuit diagrams showing configuration examples of circuits included in a semiconductor device. [Figure 8] FIG. 8 is a timing chart showing an example of the operation of the semiconductor device. [Figure 9] FIG. 9 is a timing chart showing an example of the operation of the semiconductor device. [Figure 10]FIG. 10 is a timing chart showing an example of the operation of the semiconductor device. [Figure 11] FIG. 11 is a block diagram showing a configuration example of a semiconductor device. [Figure 12] FIG. 12 is a circuit diagram showing a configuration example of a circuit included in a semiconductor device. [Figure 13] FIG. 13 is a block diagram showing a configuration example of a semiconductor device. [Figure 14] FIG. 14 is a circuit diagram showing a configuration example of a circuit included in a semiconductor device. [Figure 15] FIG. 15 is a circuit diagram showing a configuration example of a circuit included in a semiconductor device. [Figure 16] 16A and 16B are block diagrams showing configuration examples of circuits included in a semiconductor device. [Figure 17] 17A and 17B are timing charts showing an example of the operation of a circuit included in a semiconductor device. [Figure 18] 18A and 18B are diagrams illustrating a hierarchical neural network. [Figure 19] FIG. 19 is a block diagram showing a configuration example of a semiconductor device. [Figure 20] FIG. 20 is a schematic cross-sectional view showing a configuration example of a semiconductor device. [Figure 21] FIG. 21 is a schematic cross-sectional view showing a configuration example of a semiconductor device. [Figure 22] 22A to 22C are schematic cross-sectional views showing configuration examples of transistors. [Diagram 23] 23A and 23B are schematic cross-sectional views showing configuration examples of a transistor. [Figure 24] FIG. 24 is a schematic cross-sectional view showing a configuration example of a semiconductor device. [Diagram 25] 25A and 25B are schematic cross-sectional views showing configuration examples of a transistor. [Figure 26] FIG. 26 is a schematic cross-sectional view showing a configuration example of a semiconductor device. [Figure 27]FIG. 27A is a top view showing a configuration example of a capacitive element, and FIGS. 27B and 27C are cross-sectional perspective views showing the configuration example of a capacitive element. [Figure 28] 28A is a top view showing a configuration example of a capacitive element, FIG. 28B is a cross-sectional view showing the configuration example of a capacitor, and FIG. 28C is a cross-sectional perspective view showing the configuration example of a capacitive element. [Figure 29] FIG. 29 is a schematic cross-sectional view showing a configuration example of a semiconductor device. [Diagram 30] FIG. 30A is a diagram for explaining the classification of IGZO crystal structures, FIG. 30B is a diagram for explaining the XRD spectrum of crystalline IGZO, and FIG. 30C is a diagram for explaining the ultrafine electron beam diffraction pattern of crystalline IGZO. [Diagram 31] FIG. 31A is a perspective view showing an example of a semiconductor wafer, FIG. 31B is a perspective view showing an example of a chip, and FIGS. 31C and 31D are perspective views showing an example of an electronic component. [Diagram 32] 32A to 32F are perspective views of a package and a module that house an imaging device. [Diagram 33] FIG. 33 is a perspective view illustrating an example of an electronic device. [Diagram 34] 34A to 34C are perspective views showing an example of an electronic device. [Diagram 35] 35A to 35C are schematic diagrams showing an example of an electronic device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0050] In an artificial neural network (hereafter referred to as a neural network), the strength of synapses can be changed by providing existing information to the neural network. This process of providing existing information to a neural network and determining the strength of connections is sometimes called "learning."

[0051] In addition, by providing some information to a neural network that has undergone "learning" (with connection strengths determined), it is possible for the network to output new information based on the connection strengths. In this way, the process of outputting new information based on given information and connection strengths in a neural network is sometimes called "inference" or "cognition."

[0052] Examples of neural network models include the Hopfield type and hierarchical type. In particular, a neural network with a multi-layer structure is sometimes called a "deep neural network" (DNN), and machine learning using a deep neural network is sometimes called "deep learning."

[0053] In this specification and the like, a metal oxide is an oxide of a metal in a broad sense. Metal oxides are classified into oxide insulators, oxide conductors (including transparent oxide conductors), oxide semiconductors (also referred to as oxide semiconductors or simply OSs), and the like. For example, when a metal oxide is used in an active layer of a transistor, the metal oxide may be referred to as an oxide semiconductor. That is, when a metal oxide can constitute a channel formation region of a transistor having at least one of an amplifying function, a rectifying function, and a switching function, the metal oxide can be referred to as a metal oxide semiconductor. In addition, when an OS transistor is described, it can be rephrased as a transistor having a metal oxide or an oxide semiconductor.

[0054] In this specification and the like, nitrogen-containing metal oxides may also be collectively referred to as metal oxides. Nitrogen-containing metal oxides may also be referred to as metal oxynitrides.

[0055] In this specification and the like, the configurations shown in each embodiment can be appropriately combined with the configurations shown in other embodiments to form one aspect of the present invention. In addition, when multiple configuration examples are shown in one embodiment, the configuration examples can be appropriately combined with each other.

[0056] In addition, the content (or a part of the content) described in one embodiment may be applied, combined, or replaced with at least one of another content (or a part of the content) described in that embodiment and the content (or a part of the content) described in one or more other embodiments.

[0057] In addition, the contents described in the embodiments refer to the contents described in each embodiment (or example) using various figures, or the contents described using text in the specification.

[0058] Furthermore, a figure (or a part thereof) described in one embodiment can be combined with another part of that figure, with another figure (or a part thereof) described in that embodiment, and / or with at least one figure (or a part thereof) described in one or more other embodiments to form even more figures.

[0059] The embodiments described in this specification will be described with reference to the drawings. However, it is possible to implement the embodiments in many different ways, and it is easily understood by those skilled in the art that the form and details can be changed in various ways without departing from the spirit and scope of the invention. Therefore, the present invention is not interpreted as being limited to the description of the embodiments. In the configuration of the invention of the embodiments, the same reference numerals are used in common between different drawings for the same parts or parts having similar functions, and repeated explanations may be omitted. In addition, in perspective views and the like, the description of some components may be omitted in order to ensure the clarity of the drawings.

[0060] In this specification, when the same symbol is used for multiple elements, particularly when it is necessary to distinguish between them, an identification symbol such as “_1”, "[n]”, "[m,n]”, etc. may be added to the symbol.

[0061] In addition, in the drawings of this specification, the size, layer thickness, or area may be exaggerated for clarity. Therefore, it is not necessarily limited to the scale. Note that the drawings are schematic illustrations of ideal examples, and are not limited to the shapes or values ​​shown in the drawings. For example, it is possible to include variations in signals, voltages, or currents due to noise, or variations in signals, voltages, or currents due to timing deviations.

[0062] (Embodiment 1) In this embodiment, an example of an arithmetic circuit which is a semiconductor device of one embodiment of the present invention will be described.

[0063] <Arithmetic circuit configuration example 1> The arithmetic circuit MAC1 shown in Fig. 1 shows an example of the configuration of an arithmetic circuit capable of performing a multiply-and-accumulate operation and a function operation. The arithmetic circuit MAC1 is a circuit that performs a multiply-and-accumulate operation of a first data stored in a memory cell described later and an input second data, and performs an activation function operation using the result of the multiply-and-accumulate operation. Note that the first data and the second data can be, for example, analog data or multi-valued data (discrete data).

[0064] The arithmetic circuit MAC1 also has a sensor, and the information obtained by the sensor can be treated as the second data for the product-sum operation. As the sensor, a light sensor using a photodiode, a pressure sensor, a gyro sensor, an acceleration sensor, an auditory sensor, a temperature sensor, a humidity sensor, etc. can be applied.

[0065] Moreover, the arithmetic circuit MAC1 can handle data (hereinafter referred to as internal data) stored in advance in a storage device or the like as the second data, instead of the information obtained by the sensor. In other words, the arithmetic circuit MAC1 has a function of selecting either the information obtained from the sensor or the internal data as the second data.

[0066] The arithmetic circuit MAC1 includes, for example, a memory cell array CA, a circuit CMS, a circuit WDD, a circuit XLD, a circuit SCA, a circuit SWC, a circuit WLD, a circuit IVTC, and a circuit ACTV.

[0067] The memory cell array CA includes memory cells AM[1,1] to AM[m,n] and memory cells AMr[1] to AMr[m]. In the memory cell array CA, the memory cells AM[1,1] to AM[m,n] are arranged in a matrix of m rows and n columns (m is an integer equal to or greater than 1, and n is an integer equal to or greater than 1). The memory cells AMr[1] to AMr[m] are arranged in the n+1th column of the memory cell array CA.

[0068] The memory cells AM[1,1] to AM[m,n] have a function of storing first data, and the memory cells AMr[1] to AMr[m] have a function of storing reference data required for performing a multiply-and-accumulate operation. Note that the reference data can be analog data or multi-valued data (discrete data) like the first data and the second data.

[0069] The memory cell AM[1,1] is electrically connected to the wiring WD[1], the wiring BL[1], the wiring WL[1], and the wiring XL[1]. The memory cell AM[m,1] is electrically connected to the wiring WD[1], the wiring BL[1], the wiring WL[m], and the wiring XL[m]. The memory cell AM[1,n] is electrically connected to the wiring WD[n], the wiring BL[n], the wiring WL[1], and the wiring XL[1]. The memory cell AM[m,n] is electrically connected to the wiring WD[n], the wiring BL[n], the wiring WL[m], and the wiring XL[m]. The memory cell AMr[1] is electrically connected to the wiring WDr, the wiring BLr, the wiring WL[1], and the wiring XL[1]. In addition, the memory cell AMr[m] is electrically connected to the wiring WDr, the wiring BLr, the wiring WL[m], and the wiring XL[m].

[0070] An example of a detailed circuit configuration of each of the memory cells AM[1,1] to AM[m,n] and the memory cells AMr[1] to AMr[m] will be described later.

[0071] The circuit CMS is electrically connected to the wirings BL[1] to BL[n] and the wiring BLr. The circuit CMS has a function of supplying a current from the wiring BL[1] to each of the memory cells AM[1,1] to AM[m,1] and a function of setting the current to a constant current. The circuit CMS also has a function of supplying a current from the wiring BL[n] to each of the memory cells AM[1,n] to AM[m,n] and a function of setting the current to a constant current. The circuit CMS also has a function of supplying a current from the wiring BLr to each of the memory cells AMr[1] to AMr[m] and a function of setting the current to a constant current. The circuit CMS also has a function of subtracting the amount of the constant current flowing through the wiring BLr from the amount of the constant current flowing through each of the wirings BL[1] to BL[n].

[0072] The circuit WDD is electrically connected to the wirings WD[1] to WD[n] and the wiring WDr. The circuit WDD has a function of transmitting data to be stored in each memory cell of the memory cell array CA. For example, the circuit WDD can transmit first data as the data to the wirings WD[1] to WD[n] and can transmit reference data as the data to the wiring WDr.

[0073] The circuit WLD is electrically connected to the wirings WL[1] to WL[m]. When writing data to a memory cell in the memory cell array CA, the circuit WLD has a function of selecting a memory cell to which data is to be written. As a specific example, when writing data to a memory cell in the i-th row (i is an integer between 1 and m) of the memory cell array CA, the circuit WLD applies a high-level potential to the wiring WL[i] and applies a low-level potential to the wirings WL[1] to WL[m] other than the wiring WL[i], thereby selecting the memory cells AM[i,1] to AM[i,n] and the memory cell AMr[i] to which data is to be written.

[0074] As an example, the circuit SWC includes circuits SWT[1] to SWT[m].

[0075] Moreover, the circuit SCA includes, as an example, circuits RPC[1] to RPC[m].

[0076] The first terminal of the circuit SWT[1] is electrically connected to the wiring XL[1], the second terminal of the circuit SWT[1] is electrically connected to the circuit XLD, and the third terminal of the circuit SWT[1] is electrically connected to the circuit RPC[1]. In addition, the first terminal of the circuit SWT[m] is electrically connected to the wiring XL[m], the second terminal of the circuit SWT[m] is electrically connected to the circuit XLD, and the third terminal of the circuit SWT[m] is electrically connected to the circuit RPC[m].

[0077] As an example, each of circuits SWT[1] to SWT[m] has the function of putting a first terminal and a second terminal into one of a conductive state and a non-conductive state, and putting a first terminal and a third terminal into the other of a conductive state and a non-conductive state.

[0078] Each of the circuits RPC[1] to RPC[m] has a sensor that generates second data corresponding to information obtained by sensing. Therefore, the circuit RPC[1] has a function of applying a voltage corresponding to the second data to the third terminal of the circuit SWT[1]. Similarly, the circuit RPC[m] has a function of applying a voltage corresponding to the second data to the third terminal of the circuit SWT[m].

[0079] 1 shows that the circuits RPC[1] to RPC[m] are arranged in a single column, but the semiconductor device of one embodiment of the present invention is not limited to this. For example, the circuits RPC[1] to RPC[m] may be arranged in a matrix rather than in a single column. Similarly, the circuits SWT[1] to SWT[m] may be arranged in a matrix rather than in a single column.

[0080] The configuration of the arithmetic circuit MAC1 including the circuit SCA in which the circuits RPC[1] to RPC[m] are arranged in a matrix and the circuit SWC in which the circuits SWT[1] to SWT[m] are arranged in a matrix may be, for example, the configuration example shown in Fig. 2. Note that Fig. 2 shows only the circuit SA, the circuit SWC, and the circuit SCA.

[0081] 2, a circuit SWC in which circuits SWT[1] to SWT[m] are arranged in a matrix is ​​located above a memory cell array CA, and a circuit SCA in which circuits RPC[1] to RPC[m] are arranged in a matrix is ​​located above the circuit SWC. Note that the circuit SWC may be located below the memory cell array CA instead of above it (not shown).

[0082] The circuit XLD has a function of inputting a voltage according to the second data to the memory cells AM[1,1] to AM[1,n] and the memory cell AMr[1] of the memory cell array CA via the first terminal of the circuit SWT[1] and the second terminal of the circuit SWT[1]. The circuit XLD also has a function of inputting a voltage according to the second data to the memory cells AM[m,1] to AM[m,n] and the memory cell AMr[m] of the memory cell array CA via the first terminal of the circuit SWT[m] and the second terminal of the circuit SWT[m].

[0083] The circuit IVTC is electrically connected to the wirings BL[1] to BL[n] and the wirings OL[1] to OL[n]. The circuit IVTC has, for example, a function of converting the amount of current flowing from the wiring BL[1] to the circuit IVTC into a voltage or the like and a function of outputting the voltage to the wiring OL[1]. The circuit IVTC also has, for example, a function of converting the amount of current flowing from the wiring BL[n] to the circuit IVTC into a voltage or the like and a function of outputting the voltage to the wiring OL[n].

[0084] The circuit ACTV is electrically connected to the wiring OL[1] to wiring OL[n] and the wiring NIL[1] to wiring NIL[n]. The voltage output from the circuit IVTC is input to the circuit ACTV via the wiring OL[1]. The circuit ACTV has a function of performing a calculation on the voltage according to a predefined function system. As the function system, for example, a sigmoid function, a tanh function, a softmax function, a ReLU function, a threshold function, etc. can be used, and these functions are applied as activation functions in a neural network.

[0085] <<Memory cell configuration example>> Next, a configuration example of the memory cells AM[1,1] to AM[m,n] and the memory cells AMr[1] to AMr[m] included in the memory cell array CA will be described.

[0086] 3 is a circuit diagram showing a configuration example of the memory cell array CA and the circuit CMS. The memory cell array CA and the circuit CMS have a function of calculating the sum of products of first data and second data.

[0087] In the memory cell array CA shown in FIG. 3, each of the memory cells AM[1,1] to AM[m,n] and the memory cells AMr[1] to AMr[m] includes a transistor Tr11, a transistor Tr12, and a capacitor C1.

[0088] The sizes (e.g., channel length, channel width, transistor configuration, etc.) of the transistors Tr11 included in the memory cells AM[1,1] to AM[m,n] and the memory cells AMr[1] to AMr[m] are preferably equal to each other. The sizes of the transistors Tr12 included in the memory cells AM[1,1] to AM[m,n] and the memory cells AMr[1] to AMr[m] are preferably equal to each other.

[0089] By making the sizes of the transistors equal to each other, the electrical characteristics of each transistor can be made almost equal. Therefore, by making the sizes of the transistors Tr11 included in each of the memory cells AM[1,1] to AM[m,n] and the memory cells AMr[1] to AMr[m] equal and making the sizes of the transistors Tr12 included in each of the memory cells AM[1,1] to AM[m,n] and the memory cells AMr[1] to AMr[m] equal, each of the memory cells AM[1,1] to AM[m,n] and the memory cells AMr[1] to AMr[m] can perform almost the same operation under the same conditions. The same conditions here refer to, for example, the potentials of the source, drain, gate, etc. of the transistor Tr11, the potentials of the source, drain, gate, etc. of the transistor Tr12, and the voltages input to each of the memory cells AM[1,1] to AM[m,n] and the memory cells AMr[1] to AMr[m].

[0090] Unless otherwise specified, the transistor Tr11 is assumed to function as a switching element. In other words, the gate voltage, source voltage, and drain voltage of the transistor Tr11 are assumed to be appropriately biased to a voltage range in which the transistor Tr11 operates as a switching element. Therefore, the transistor Tr11 may operate in a saturation region when on, or may operate in both a linear region and a saturation region.

[0091] In addition, unless otherwise specified, the transistor Tr12 is assumed to operate in the saturation region when on, i.e., the gate voltage, source voltage, and drain voltage of each of the above-mentioned transistors are appropriately biased to voltages within the range in which they operate in the saturation region.

[0092] Note that the transistor Tr11 is preferably an OS transistor. In addition, it is more preferable that the channel formation region of the transistor Tr11 contains an oxide containing at least one of indium, gallium, and zinc. Alternatively, the channel formation region of the transistor Tr11 may be an oxide containing at least one of indium, an element M (for example, the element M may be one or more elements selected from aluminum, yttrium, copper, vanadium, beryllium, boron, titanium, iron, nickel, germanium, zirconium, molybdenum, lanthanum, cerium, neodymium, hafnium, tantalum, tungsten, magnesium, etc.), and zinc. It is more preferable that the transistor Tr11 has the structure of the transistor described in the fifth embodiment.

[0093] By using an OS transistor as the transistor Tr11, the leakage current of the transistor Tr11 can be suppressed, and therefore a multiply-and-accumulate circuit with high calculation accuracy can be realized. In addition, by using an OS transistor as the transistor Tr11, the leakage current from the retention node (for example, node N[1,1], node N[m,1], node N[1,n], node N[m,n], node Nr[1], node Nr[m], etc. described later) to the write word line (for example, wiring WD[1] to wiring WD[n], wiring WDr, etc.) when the transistor Tr11 is in a non-conductive state can be made very small. In other words, the number of refresh operations of the potential of the retention node can be reduced, and therefore the power consumption of the multiply-and-accumulate circuit can be reduced.

[0094] In addition, by using an OS transistor for the transistor Tr12, the transistor Tr12 can be manufactured simultaneously with the transistor Tr11, which may shorten the manufacturing process of the product-sum operation circuit. The channel formation region of the transistor Tr12 may contain silicon instead of oxide (in this specification, a transistor containing silicon in the channel formation region is referred to as a Si transistor). Silicon may be, for example, amorphous silicon (sometimes referred to as hydrogenated amorphous silicon), microcrystalline silicon, polycrystalline silicon, single crystal silicon, or the like.

[0095] However, when a semiconductor device or the like is highly integrated on a chip, the chip may generate heat due to the operation of the circuit. This heat causes the temperature of the transistor to rise, which may change the characteristics of the transistor, causing a change in field-effect mobility and a decrease in operating frequency. Since OS transistors have higher heat resistance than Si transistors, the field-effect mobility is less likely to change due to temperature changes, and the operating frequency is also less likely to decrease. In other words, OS transistors are more likely to maintain their electrical characteristics even when the temperature increases. Therefore, by using OS transistors, it is easier to perform calculations, processing, and the like, even in a high-temperature environment. Therefore, when configuring a semiconductor device that is resistant to heat generation due to operation, it is preferable to use OS transistors as the transistors.

[0096] In FIG. 3, the back gates of the transistors Tr11 and Tr12 are illustrated, and the connection configuration of the back gates is not illustrated, but the electrical connection destination of the back gates can be determined at the design stage. For example, in a transistor having a back gate, the gate and the back gate may be electrically connected to increase the on-current of the transistor. That is, for example, the gate and the back gate of the transistor Tr11 may be electrically connected, or the gate and the back gate of the transistor Tr12 may be electrically connected. Also, for example, in a transistor having a back gate, in order to change the threshold voltage of the transistor or to reduce the off-current of the transistor, a wiring for electrically connecting the back gate of the transistor to an external circuit or the like may be provided, and a potential may be applied to the back gate of the transistor by the external circuit or the like.

[0097] 3 have a backgate, the semiconductor device of one embodiment of the present invention is not limited thereto. For example, the transistors Tr11 and Tr12 shown in FIG. 3 may have a structure without a backgate, that is, a single-gate transistor. Some of the transistors may have a backgate, and other transistors may have a structure without a backgate.

[0098] 3, the transistors Tr11 and Tr12 are n-channel transistors, but the semiconductor device of one embodiment of the present invention is not limited to this. For example, the transistors Tr11 and Tr12 may be partially or entirely replaced with p-channel transistors.

[0099] The above-described modifications of the transistor structures and polarities are not limited to the transistors Tr11 and Tr12, but also apply to, for example, transistors Tr33, Tr34, and transistors Tr41 to Tr44 described later, as well as to transistors described elsewhere in the specification or shown in other drawings.

[0100] In each of the memory cells AM[1,1] to [m,n] and the memory cells AMr[1] to AMr[m], a first terminal of the transistor Tr11 is electrically connected to a gate of the transistor Tr12. A first terminal of the transistor Tr12 is electrically connected to a wiring VR. A first terminal of the capacitor C1 is electrically connected to the gate of the transistor Tr12.

[0101] In the memory cell AM[1,1], the second terminal of the transistor Tr11 is electrically connected to the wiring WD[1], and the gate of the transistor Tr11 is electrically connected to the wiring WL[1]. The second terminal of the transistor Tr12 is electrically connected to the wiring BL[1], and the second terminal of the capacitor C1 is electrically connected to the wiring XL[1]. In the memory cell AM[1,1], the electrical connection point between the first terminal of the transistor Tr11, the gate of the transistor Tr12, and the first terminal of the capacitor C1 is the node N[1,1].

[0102] In the memory cell AM[m,1], the second terminal of the transistor Tr11 is electrically connected to the wiring WD[1], and the gate of the transistor Tr11 is electrically connected to the wiring WL[m]. The second terminal of the transistor Tr12 is electrically connected to the wiring BL[1], and the second terminal of the capacitor C1 is electrically connected to the wiring XL[m]. In the memory cell AM[m,1], the electrical connection point between the first terminal of the transistor Tr11, the gate of the transistor Tr12, and the first terminal of the capacitor C1 is defined as a node N[m,1].

[0103] In the memory cell AM[1,n], the second terminal of the transistor Tr11 is electrically connected to the wiring WD[n], and the gate of the transistor Tr11 is electrically connected to the wiring WL[1]. The second terminal of the transistor Tr12 is electrically connected to the wiring BL[n], and the second terminal of the capacitor C1 is electrically connected to the wiring XL[1]. In the memory cell AM[1,n], the electrical connection point between the first terminal of the transistor Tr11, the gate of the transistor Tr12, and the first terminal of the capacitor C1 is the node N[1,n].

[0104] In the memory cell AM[m,n], the second terminal of the transistor Tr11 is electrically connected to the wiring WD[n], and the gate of the transistor Tr11 is electrically connected to the wiring WL[m]. The second terminal of the transistor Tr12 is electrically connected to the wiring BL[n], and the second terminal of the capacitor C1 is electrically connected to the wiring XL[m]. In the memory cell AM[m,n], the electrical connection point between the first terminal of the transistor Tr11, the gate of the transistor Tr12, and the first terminal of the capacitor C1 is defined as a node N[m,n].

[0105] In the memory cell AMr[1], the second terminal of the transistor Tr11 is electrically connected to the wiring WDr, and the gate of the transistor Tr11 is electrically connected to the wiring WL[1]. The second terminal of the transistor Tr12 is electrically connected to the wiring BLr, and the second terminal of the capacitor C1 is electrically connected to the wiring XL[1]. Note that in the memory cell AMr[1], the electrical connection point between the first terminal of the transistor Tr11, the gate of the transistor Tr12, and the first terminal of the capacitor C1 is defined as a node Nr[1]. In addition, the current flowing from the wiring BLr to the second terminal of the transistor Tr12 is defined as I AMr[1] Let us assume that.

[0106] In the memory cell AMr[m], the second terminal of the transistor Tr11 is electrically connected to the wiring WDr, and the gate of the transistor Tr11 is electrically connected to the wiring WL[m]. The second terminal of the transistor Tr12 is electrically connected to the wiring BLr, and the second terminal of the capacitor C1 is electrically connected to the wiring XL[m]. Note that in the memory cell AMr[m], the electrical connection point between the first terminal of the transistor Tr11, the gate of the transistor Tr12, and the first terminal of the capacitor C1 is defined as a node Nr[m]. In addition, the current flowing from the wiring BLr to the second terminal of the transistor Tr12 is defined as I AMr[2] Let us assume that.

[0107] The above-mentioned nodes N[1], N[m], Nr[1], and Nr[m] function as retention nodes for the respective memory cells.

[0108] The wiring VR is a wiring for passing a current between the first terminal and the second terminal of the transistor Tr12 of each of the memory cells AM[1,1] to AM[m,n] and the memory cells AMr[1] to AMr[m]. Therefore, the wiring VR functions as a wiring for applying a predetermined potential. Note that in this embodiment, the potential applied by the wiring VR can be, for example, a low-level potential, a ground potential, or a potential lower than the ground potential.

[0109] <<Example of Circuit CMS configuration>> Next, a configuration example of the circuit CMS will be described.

[0110] In FIG. 3, the circuit CMS includes circuits CS1[1] to CS1[n], circuits CS2[1] to CS2[n], a circuit CM, and switches SW3[1] to SW3[n].

[0111] Further, the control terminals of the switches SW3[1] to SW3[n] are electrically connected to a line SL3.

[0112] The wiring SL3 functions as a wiring that supplies a voltage for switching between the conductive state and the non-conductive state of each of the switches SW3[1] to SW3[n].

[0113] Each of the circuits CS1[1] to CS1[n] functions as, for example, a current source circuit that supplies a constant current. In addition, each of the circuits CS1[1] to CS1[n] has a function of setting the amount of the constant current, which will be described in detail later.

[0114] Each of the circuits CS1[1] to CS1[n] includes a p-channel transistor Tr33, a capacitor C6, and a switch SW1.

[0115] The transistor Tr33 is preferably a Si transistor. The silicon contained in the channel formation region of the transistor Tr33 may be, for example, amorphous silicon (sometimes called hydrogenated amorphous silicon), microcrystalline silicon, polycrystalline silicon, or single crystal silicon.

[0116] In addition, it is preferable that the transistors Tr33 included in each of the circuits CS1[1] to CS1[n] have the same electrical characteristics as each other. To achieve this, for example, it is preferable that the transistors Tr33 included in each of the circuits CS1[1] to CS1[n] have the same size as each other.

[0117] In addition, unless otherwise specified, the transistor Tr33 of each of the circuits CS1[1] to CS1[n] includes a case where the transistor Tr33 operates in the saturation region when on. In other words, the gate voltage, source voltage, and drain voltage of each of the above-mentioned transistors include a case where the gate voltage, source voltage, and drain voltage are appropriately biased to a voltage range where the transistor operates in the saturation region.

[0118] In each of the circuits CS1[1] to CS1[n], a first terminal of the transistor Tr33 is electrically connected to the wiring VHE, a gate of the transistor Tr33 is electrically connected to a first terminal of the capacitor C6 and a first terminal of the switch SW1, and a second terminal of the transistor Tr33 is electrically connected to a second terminal of the switch SW1. The second terminal of the capacitor C6 is electrically connected to the wiring VHE. The control terminal of the switch SW1 is electrically connected to the wiring SL1.

[0119] In the circuit CS1[1], a second terminal of the transistor Tr33 and a second terminal of the switch SW1 are electrically connected to a first terminal of the switch SW3[1] and a wiring BL[1].

[0120] In the circuit CS1[n], a second terminal of the transistor Tr33 and a second terminal of the switch SW1 are electrically connected to a first terminal of the switch SW3[n] and a wiring BL[n].

[0121] The wiring VHE functions as a wiring for applying a constant voltage, which is preferably, for example, a high-level potential.

[0122] The wiring SL1 functions as a wiring for supplying a voltage for switching the conductive state and non-conductive state of the switches SW1 in each of the circuits CS1[1] to CS1[n].

[0123] Each of the circuits CS1[1] to CS1[n] has a function of keeping the amount of current flowing between the source and drain of the transistor Tr33 constant, even if the source-drain voltage of the transistor Tr33 changes. Specifically, in each of the circuits CS1[1] to CS1[n], the switch SW1 is turned on to configure the transistor Tr33 as a diode connection. At this time, a current flows between the source and drain of the transistor Tr33 according to the source-drain (gate) voltage of the transistor Tr33. In addition, the potential of the gate of the transistor Tr33 is almost equal to the potential of the drain. Here, by turning off the switch SW1 and holding the potential of the gate of the transistor Tr33 by the first terminal of the capacitance C6, the gate-source voltage of the transistor Tr33 can be kept constant. Therefore, when the transistor Tr33 operates in the saturation region, even if the potential of the drain changes, the amount of current flowing between the source and drain can be kept constant as the amount of current flowing when the switch SW1 is turned on.

[0124] In this specification, temporarily connecting a transistor in a diode-connected configuration, making the gate potential of the transistor approximately equal to the drain potential, and then making the gate and drain of the transistor non-conductive to keep the amount of source-drain current of the transistor constant is described as "setting (programming) the amount of current flowing between the source-drain of a transistor", etc. Also, when the transistor is included in a circuit such as circuits CS1[1] to CS1[n], it is described as "setting (programming) the amount of current flowing into a circuit" or "setting (programming) the amount of current flowing out of a circuit (flowing into a circuit)".

[0125] Each of the circuits CS2[1] to CS2[n] functions as a current source circuit that supplies a constant current, for example. Similarly to the circuits CS1[1] to CS1[n], each of the circuits CS2[1] to CS2[n] also has a function of setting the amount of the constant current.

[0126] Each of the circuits CS2[1] to CS2[n] includes a transistor Tr34 which is an n-channel transistor, a capacitor C7, and a switch SW2.

[0127] Note that the transistor Tr34 can be, for example, an OS transistor or a Si transistor that can be used for the transistor Tr11. When a Si transistor is used for the transistor Tr34, silicon contained in the channel formation region of the transistor Tr34 can be, for example, amorphous silicon (sometimes called hydrogenated amorphous silicon), microcrystalline silicon, polycrystalline silicon, single crystal silicon, or the like.

[0128] In addition, it is preferable that the transistors Tr34 included in each of the circuits CS2[1] to CS2[n] have the same electrical characteristics as each other. To achieve this, for example, it is preferable that the transistors Tr34 included in each of the circuits CS2[1] to CS2[n] have the same size as each other.

[0129] In addition, unless otherwise specified, the transistors Tr34 of the circuits CS2[1] to CS2[n] are assumed to operate in the saturation region when on, i.e., the gate voltage, source voltage, and drain voltage of each of the above-mentioned transistors are assumed to be appropriately biased to voltages within the range in which they operate in the saturation region.

[0130] In each of the circuits CS2[1] to CS2[n], a first terminal of the transistor Tr34 is electrically connected to the wiring VLE, ​​a gate of the transistor Tr34 is electrically connected to a first terminal of the capacitor C7 and a first terminal of the switch SW2, and a second terminal of the transistor Tr34 is electrically connected to a second terminal of the switch SW2. The second terminal of the capacitor C7 is electrically connected to the wiring VLE. The control terminal of the switch SW2 is electrically connected to the wiring SL2.

[0131] In the circuit CS2[1], the second terminal of the transistor Tr34 and the second terminal of the switch SW2 are electrically connected to the second terminal of the switch SW3[1].

[0132] In the circuit CS2[n], the second terminal of the transistor Tr34 and the second terminal of the switch SW2 are electrically connected to the second terminal of the switch SW3[n].

[0133] The line VLE functions as a line that applies a constant voltage. The constant voltage is preferably, for example, a low-level potential.

[0134] The wiring SL2 functions as a wiring for supplying a voltage for switching the conductive state and non-conductive state of the switches SW2 in each of the circuits CS2[1] to CS2[n].

[0135] Each of the circuits CS2[1] to CS2[n] has a function of keeping the amount of current flowing between the source and drain of the transistor Tr34 constant, similar to each of the circuits CS1[1] to CS1[n], even if the source-drain voltage of the transistor Tr34 changes. Specifically, in each of the circuits CS2[1] to CS2[n], the switch SW2 is turned on to configure the transistor Tr34 as a diode connection. At this time, a current flows between the source and drain of the transistor Tr34 according to the source-drain (gate) voltage of the transistor Tr34. In addition, the potential of the gate of the transistor Tr34 becomes almost equal to the potential of the drain. Here, by turning off the switch SW2 and holding the potential of the gate of the transistor Tr34 by the first terminal of the capacitance C7, the gate-source voltage of the transistor Tr34 can be kept constant. Therefore, when the transistor Tr34 operates in the saturation region, even if the drain potential changes, the amount of current flowing between the source and drain can be kept constant as the amount of current flowing when the switch SW2 is turned on.

[0136] The circuit CM functions as, for example, a current mirror circuit, and includes, for example, a transistor Tr31 and transistors Tr32[1] to Tr32[n].

[0137] In order for the circuit CM to function as a current mirror circuit, it is preferable that the transistor Tr31 and the transistors Tr32[1] to Tr32[n] have the same electrical characteristics. To achieve this, for example, it is preferable that the transistors Tr31 and the transistors Tr32[1] to Tr32[n] have the same sizes.

[0138] In addition, unless otherwise specified, each of the transistors Tr31 and Tr32[1] to Tr32[n] includes a case where they operate in a saturation region when they are on, that is, the gate voltage, source voltage, and drain voltage of each of the above-mentioned transistors includes a case where they are appropriately biased to a voltage range where they operate in the saturation region.

[0139] A first terminal of the transistor Tr31 and each of the transistors Tr32[1] to Tr32[n] is electrically connected to the wiring VHE. A second terminal of the transistor Tr31 is electrically connected to a gate of the transistor Tr31, each of the gates of the transistors Tr31[1] to Tr31[n], and the wiring BLr.

[0140] The second terminal of the transistor Tr32[1] is electrically connected to the second terminal of the switch SW3[1], the second terminal of the transistor Tr34 of the circuit CS2[1], and the second terminal of the switch SW2 of the circuit CS2[1]. The second terminal of the transistor Tr32[n] is electrically connected to the second terminal of the switch SW3[n], the second terminal of the transistor Tr34 of the circuit CS2[n], and the second terminal of the switch SW2 of the circuit CS2[n].

[0141] By configuring the circuit CM as shown in FIG. 3, an amount of current approximately equal to the current flowing between the first terminal and the second terminal of transistor Tr31 can be caused to flow between the first terminal and the second terminal of each of transistors Tr32[1] to Tr32[n].

[0142] For example, electrical switches such as analog switches and transistors can be used as the switches SW1, SW2, and SW3[1] to SW3[n]. For example, mechanical switches can be used as the switches SW1, SW2, and SW3[1] to SW3[n]. When transistors are used as the switches SW1, SW2, and SW3[1] to SW3[n], the transistors can be OS transistors or Si transistors.

[0143] The configuration of the circuit CM is not limited to the configuration shown in Fig. 3. For example, the circuit CM may be configured as shown in Fig. 4, in which the transistors Tr31 and Tr35 are cascode-connected, and the transistors Tr32[1] to Tr32[n] are cascode-connected, respectively, to the transistors Tr36[1] to Tr36[n]. By cascode-connecting the transistors included in the current mirror circuit as shown in the circuit CM in Fig. 4, the operation of the current mirror circuit can be made more stable.

[0144] In this embodiment, each of switches SW1, SW2, and SW3[1] to SW3[n] is turned on when a high-level potential is input to the control terminal, and is turned off when a low-level potential is input to the control terminal.

[0145] <<Example of circuit IVTC configuration>> Next, a configuration example of the circuit IVTC will be described.

[0146] 5A is a circuit diagram showing a configuration example of the circuit IVTC. The circuit IVTC includes, as an example, resistors RE[1] to RE[n], operational amplifiers OP[1] to OP[n], and switches SW4[1] to SW4[n].

[0147] The first terminal of the switch SW4[1] is electrically connected to the wiring BL[1], and the second terminal of the switch SW4[1] is electrically connected to the first terminal of the resistor RE[1] and the inverting input terminal of the operational amplifier OP[1]. The non-inverting input terminal of the operational amplifier OP[1] is electrically connected to the wiring VdL, and the output terminal of the operational amplifier OP[1] is electrically connected to the second terminal of the resistor RE[1] and the wiring OL[1]. In other words, the resistor RE[1] and the operational amplifier OP[1] form a current-voltage conversion circuit.

[0148] Similarly, a first terminal of the switch SW4[n] is electrically connected to the wiring BL[n], and a second terminal of the switch SW4[n] is electrically connected to a first terminal of the resistor RE[n] and an inverting input terminal of the operational amplifier OP[n]. In addition, each control terminal of the switches SW4[1] to SW4[n] is electrically connected to a wiring SL4.

[0149] For example, the wiring SL4 functions as a wiring that supplies a voltage for switching the switches SW4[1] to SW4[n] between a conductive state and a non-conductive state.

[0150] The non-inverting input terminal of the operational amplifier OP[n] is electrically connected to the wiring VdL, and the output terminal of the operational amplifier OP[n] is electrically connected to the second terminal of the resistor RE[n] and the wiring OL[n].

[0151] The line VdL functions as, for example, a line that applies a constant voltage, which may be, for example, a ground potential or a low-level potential.

[0152] That is, in the circuit IVTC, n current-voltage conversion circuits are configured by the resistors RE[1] through RE[n], the operational amplifiers OP[1] through OP[n], and the wiring VdL.

[0153] Note that the switches SW4[1] to SW4[n] may be, for example, switches that can be applied to the switches SW1, SW2, SW3[1] to SW3[n], etc. In this specification and the like, like the switches SW1, SW2, and SW3[1] to SW3[n], each of the switches SW4[1] to SW4[n] is turned on when a high-level potential is input to a control terminal, and turned off when a low-level potential is input to the control terminal.

[0154] The circuit IVTC applicable to the arithmetic circuit MAC1 is not limited to the circuit IVTC shown in Fig. 5A. For example, as shown in Fig. 5B, the resistors RE[1] to RE[n] included in the circuit IVTC of Fig. 5A may be changed to loads LE[1] to LE[n]. For example, diodes, transistors, etc. may be used as the loads LE[1] to LE[n]. Even when these circuit elements are used, n current-voltage conversion circuits can be configured by the loads LE[1] to LE[n] and the operational amplifiers OP[1] to OP[n].

[0155] <<Example of circuit SWC configuration>> Next, a configuration example of the circuit SWC will be described.

[0156] Fig. 6 is a circuit diagram showing a configuration example of the circuit SWC, the circuit SCA, and the circuit XLD. In the circuit SWC shown in Fig. 6, each of the circuits SWT[1] to SWT[m] has a switch SW5a and a switch SW5b.

[0157] In the circuit SWT[1], a first terminal of the switch SW5a is electrically connected to the line XL[1] and a first terminal of the switch SW5b. A control terminal of the switch SW5a is electrically connected to the line SL5, and a control terminal of the switch SW5b is electrically connected to the line SL5B.

[0158] In the circuit SWT[m], a first terminal of the switch SW5a is electrically connected to the line XL[m] and a first terminal of the switch SW5b. A control terminal of the switch SW5a is electrically connected to the line SL5, and a control terminal of the switch SW5b is electrically connected to the line SL5B.

[0159] For example, the wiring SL5 functions as a wiring that supplies a voltage for switching the conductive state and non-conductive state of the switch SW5a of each of the circuits SWT[1] to SWT[m]. For example, the wiring SL5B functions as a wiring that supplies a voltage for switching the conductive state and non-conductive state of the switch SW5b of each of the circuits SWT[1] to SWT[m]. When the voltages supplied to the wiring SL5 and the wiring SL5B are digital signals, the signal supplied to the wiring SL5 can be a signal obtained by inverting the logic of the signal supplied to the wiring SL5B.

[0160] As the switches SW5a and SW5b, for example, switches applicable to the switches SW1, SW2, SW3[1] to SW3[n], etc. can be used. In the present embodiment, the switches SW5a and SW5b are each turned on when a high-level potential is input to a control terminal, and turned off when a low-level potential is input to the control terminal, similar to the switches SW1, SW2, and SW3[1] to SW3[n].

[0161] <<Example of circuit SCA configuration>> Next, a configuration example of the circuit SCA will be described.

[0162] In the circuit SCA shown in FIG. 6, each of the circuits RPC[1] to RPC[m] includes, for example, a transistor Tr41, a transistor Tr42, a transistor Tr43, a transistor Tr44, and a circuit SNC.

[0163] The sizes (e.g., channel length, channel width, transistor configuration, etc.) of the transistors Tr41 included in the circuits RPC[1] to RPC[m] are preferably equal to each other. The sizes of the transistors Tr42 included in the circuits RPC[1] to RPC[m] are preferably equal to each other. The sizes of the transistors Tr43 included in the circuits RPC[1] to RPC[m] are preferably equal to each other. The sizes of the transistors Tr44 included in the circuits RPC[1] to RPC[m] are preferably equal to each other. As described above, by making the sizes of the transistors equal to each other, the electrical characteristics of each transistor can be made almost equal. As a result, each of the circuits RPC[1] to RPC[m] can perform almost the same operation under the same conditions. The same conditions here refer to, for example, the potentials of the sources, drains, gates, etc. of the transistors Tr41 to Tr44, the voltages input to each of the circuits RPC[1] to RPC[m], etc.

[0164] In addition, unless otherwise specified, the transistors Tr41 and Tr42 are assumed to function as switching elements. In other words, the gate voltage, source voltage, and drain voltage of the transistors Tr41 and Tr42 are assumed to be appropriately biased to a voltage range in which the transistors Tr41 and Tr42 operate as switching elements. Therefore, the transistors Tr41 and Tr42 may operate in a saturation region when on, or may operate in both a linear region and a saturation region.

[0165] In addition, unless otherwise specified, the transistors Tr43 and Tr44 are assumed to operate in the saturation region when on, i.e., the gate voltage, source voltage, and drain voltage of each of the above-mentioned transistors are assumed to be appropriately biased to voltages within the range in which they operate in the saturation region.

[0166] The transistors Tr41 to Tr44 can be, for example, n-channel transistors. The transistors Tr41 to Tr44 can be, for example, OS transistors that can be used as the transistor Tr12 or Si transistors.

[0167] The circuit SNC also has a sensor that converts information obtained by sensing into a current amount and outputs the current amount. As the sensor, for example, as described above, a light sensor using a photodiode, a pressure sensor, a gyro sensor, an acceleration sensor, an auditory sensor, a temperature sensor, a humidity sensor, or the like can be used. In particular, by applying a light sensor to the circuit SNC, the circuit SCA can be made a part of an image sensor. FIG. 7A shows a configuration example in which a circuit SNC including a photodiode PD is applied to the circuit SCA of FIG. 6. Specifically, an input terminal of the photodiode PD is electrically connected to a first terminal of the circuit SNC, and an output terminal of the photodiode PD is electrically connected to a second terminal of the circuit SNC. Note that FIG. 7A also shows a circuit SWC in order to show electrical connections with each of the circuits RPC[1] to RPC[m].

[0168] The amount of current induced in the photodiode PD included in the circuit SCA of Fig. 7A is determined according to the intensity of the received light. In addition, since the photodiode PD is driven by applying a reverse bias, the current induced in the photodiode PD in Fig. 7A flows in the direction from the output terminal to the input terminal of the photodiode PD. Note that the circuit configuration of Fig. 7A is an example, and in some cases, the circuit SCA may be configured such that the input terminal of the photodiode PD is electrically connected to the second terminal of the circuit SNC, and the output terminal of the photodiode PD is electrically connected to the first terminal of the circuit SNC.

[0169] In each of the circuits RPC[1] to RPC[m], a first terminal of the circuit SNC is electrically connected to the wiring VBE, and a second terminal of the circuit SNC is electrically connected to the first terminal of the transistor Tr41. A gate of the transistor Tr41 is electrically connected to the wiring TXL, and a second terminal of the transistor Tr41 is electrically connected to a first terminal of the transistor Tr42 and a gate of the transistor Tr43. A gate of the transistor Tr42 is electrically connected to the wiring RSL, and a second terminal of the transistor Tr42 is electrically connected to the wiring VRS. A first terminal of the transistor Tr43 is electrically connected to the wiring VDE, a first terminal of the transistor Tr44 is electrically connected to the wiring VSE, and a gate of the transistor Tr44 is electrically connected to the wiring VBE. In particular, a node NS is defined as an electrical connection point between the gate of the transistor Tr43, the first terminal of the transistor Tr42, and the second terminal of the transistor Tr41.

[0170] In the circuit RPC[1], the second terminal of the transistor Tr43 is electrically connected to the second terminal of the transistor Tr44 and the second terminal of the switch SW5b in the circuit SWT[1].

[0171] In the circuit RPC[m], the second terminal of the transistor Tr43 is electrically connected to the second terminal of the transistor Tr44 and the second terminal of the switch SW5b of the circuit SWT[m].

[0172] For example, the wiring VDE functions as a wiring that supplies a constant voltage. Also, for example, the wiring VSE functions as a wiring that supplies a constant voltage. Note that the potential provided by the wiring VDE is higher than the potential provided by the wiring VSE.

[0173] Depending on the connection configuration of the transistor Tr43 and the transistor Tr44 and the potentials provided by the wiring VDE and the wiring VSE, the transistor Tr43 and the transistor Tr44 function as a source follower circuit.

[0174] For example, the line TXL functions as a line for switching the transistor Tr41 between a conductive state and a non-conductive state.

[0175] The wiring RSL functions, for example, as a wiring for switching the transistor Tr42 between a conductive state and a non-conductive state.

[0176] For example, the wiring VBE functions as a wiring that supplies a constant voltage. In each of the circuits RPC[1] to RPC[m], the transistor Tr44 preferably functions as a constant current source that flows a constant current between the first terminal and the second terminal. For this reason, the potential provided by the wiring VBE is preferably set so that the difference between the potential provided by the wiring VBE and the potential provided by the wiring VSE is larger than the threshold voltage of the transistor Tr44.

[0177] For example, the wiring AND functions as a wiring for supplying a constant voltage. Specifically, the wiring AND functions as a wiring for supplying a voltage for driving the circuit SNC. For example, as shown in FIG. 7A, when the circuit SNC includes a photodiode PD, it is necessary to apply a reverse bias to the photodiode PD, so that the constant voltage provided by the wiring AND is preferably a voltage lower than the reset potential.

[0178] For example, the wiring VRS functions as a wiring for supplying a constant voltage. Specifically, the wiring VRS functions as a wiring for supplying an initialization potential (hereinafter, referred to as a reset potential) to the node NS.

[0179] Each of the circuits RPC[1] to RPC[m] performs an initial operation before sensing. In the initial operation, for example, a low-level potential is input to the wiring TXL and a high-level potential is input to the wiring RSL. This causes the transistor Tr41 to be turned off and the transistor Tr42 to be turned on. As a result, the gate (node ​​NS) of the transistor Tr43 and the wiring VRS are brought into a conductive state, and a reset potential is input to the gate (node ​​NS) of the transistor Tr43.

[0180] Also, at this time, the source follower circuit of transistor Tr43 and transistor Tr44 outputs a potential corresponding to the reset potential of the gate (node ​​NS) of transistor Tr43 from the electrical connection point between the second terminal of transistor Tr43 and the second terminal of transistor Tr44 to the second terminal of switch SW5b.

[0181] When each of the circuits RPC[1] to RPC[m] performs sensing, for example, a high-level potential is input to the wiring TXL and a low-level potential is input to the wiring RSL. This causes the transistor Tr41 to be turned on and the transistor Tr42 to be turned off. As a result, the gate (node ​​NS) of the transistor Tr43 and the second terminal of the circuit SNC are brought into a conductive state, and an amount of charge according to the information obtained by the circuit SNC through sensing is supplied to the gate (node ​​NS) of the transistor Tr43.

[0182] Then, a potential according to the amount of charge at the gate (node ​​NS) of the transistor Tr43 is output from the electrical connection point between the second terminal of the transistor Tr43 and the second terminal of the transistor Tr44 to the second terminal of the switch SW5b by the source follower circuit of the transistor Tr43 and the transistor Tr44. That is, the potential is treated as the second data to be input to the memory cell array CA.

[0183] Note that the circuit configuration of each of the circuits RPC[1] to RPC[m] in FIG. 6 included in the semiconductor device of one embodiment of the present invention may be changed depending on the situation. For example, each of the circuits RPC[1] to RPC[m] in FIG. 6 may be configured to include a capacitor C8 at the node NS. Each of the circuits RPC[1] to RPC[m] shown in FIG. 7B has a configuration in which a first terminal of the capacitor C8 is electrically connected to the node NS and a wiring CVL is electrically connected to the second terminal of the capacitor C8. By providing the capacitor C8 in each of the circuits RPC[1] to RPC[m], the potential input to the node NS can be held for a long time. Note that FIG. 7B also illustrates a circuit SWC to show electrical connection to each of the circuits RPC[1] to RPC[m], as in FIG. 7A.

[0184] The line CVL functions as a line that applies a constant voltage, for example. The line CVL may be the same line as any one of the lines VDE, VSE, AND, VBE, and VRS.

[0185] <<Example of circuit XLD configuration>> Next, a configuration example of the circuit XLD will be described.

[0186] The circuit XLD shown in FIG. 6 includes, as an example, a circuit LGC, a circuit LS, and a circuit MUX.

[0187] The circuit LGC is electrically connected to the circuit LS by wirings LXS[1] to LXS[m]. The circuit LS is electrically connected to the circuit MUX by wirings DXS[1] to DXS[m]. The wirings LXS[1] to LXS[m] and the wirings DXS[1] to DXS[m] may function as bus wirings for transmitting digital signals.

[0188] The circuit MUX has a function of supplying a voltage corresponding to the reference data or a voltage (digital signal) corresponding to the second data to the second terminals of the circuits SWT[1] to SWT[m]. Specifically, for example, the circuit MUX can be a digital-analog conversion circuit that outputs a potential corresponding to a digital signal input to the wiring DXS[1] to the second terminal of the switch SW5a of the circuit SWT[1]. Also, for example, the circuit MUX can be a digital-analog conversion circuit that outputs a potential corresponding to a digital signal input to the wiring DXS[m] to the second terminal of the switch SW5a of the circuit SWT[m].

[0189] For example, the circuit LS has a function of level-shifting an input potential to a desired potential. Specifically, for example, the circuit LS level-shifts a potential input from the wiring LXS[1] to a desired potential and outputs the level-shifted potential to the wiring DXS[1]. Therefore, the number of wirings for the wiring LXS[1] can be the same as the number of wirings DXS[1]. Similarly, for example, the circuit LS level-shifts a potential input from the wiring LXS[m] to a desired potential and outputs the level-shifted potential to the wiring DXS[m]. Therefore, the number of wirings for the wiring LXS[m] can be the same as the number of wirings DXS[m].

[0190] For example, the circuit LGC has a function of sequentially holding data DT input to the circuit LGC and outputting the data DT to the wirings LXS[1] to LXS[m] in parallel at the same time or sequentially at a desired timing. The data DT here can be, for example, reference data or second data input to the wirings XCL[1] to XCL[m] via the circuit SWC. That is, the circuit LGC holds the reference data or the second data received from outside the circuit LGC and outputs the reference data or the second data to each of the wirings LXS[1] to LXS[m] at a predetermined timing in order to supply a voltage corresponding to the reference data or a voltage corresponding to the second data to the wirings XCL[1] to XCL[m]. Note that a specific circuit configuration example of the circuit LGC will be described later.

[0191] In addition, if there is no need to level-shift the voltage output from the circuit LGC, the circuit LS may be omitted in the circuit XLD shown in Figure 6, and each of the wirings LXS[1] to LXS[m] may be directly and electrically connected to each of the wirings DXS[1] to DXS[m].

[0192] <Operation example 1 of the calculation circuit> Next, an example of the operation of the arithmetic circuit MAC1 will be described.

[0193] Fig. 8 shows a timing chart of an operation example of the arithmetic circuit MAC1. The timing chart of Fig. 8 shows the fluctuation of the potentials of the wiring WL[1], wiring WL[2], wiring WL[m] (in this operation example, m is an integer of 4 or more), wiring SL1, wiring SL2, wiring SL3, wiring SL4, wiring SL5, wiring SL5B, wiring RSL, wiring TXL, wiring WD[1], wiring WDr, node N[1,1], node N[2,1], node N[m,1], node Nr[1], node Nr[2], node Nr[m], wiring XL[1], wiring XL[2], and wiring XL[m] at and around time T01 to time T15. Note that in Fig. 8, a high-level potential is represented as High, and a low-level potential is represented as Low.

[0194] <<From time T01 to time T02>> Between time T01 and time T02, a low-level potential is input to the wirings WL[1] to WL[m]. A low-level potential is input to the wirings SL1 to SL4, a high-level potential is input to the wiring SL5, and a low-level potential is input to the wiring SL5B. In addition, a ground potential (represented as GND in FIG. 8) is input to the wirings WD[1] and WDr.

[0195] Since a high-level potential is input to the wiring SL5 and a low-level potential is input to the wiring SL5B, in the circuit SWC, the switch SW5a included in the circuits SWT[1] to SWT[m] is turned on and the switch SW5b included in the circuits SWT[1] to SWT[m] is turned off. As a result, each of the wirings XL[1] to XL[m] is in a conductive state with the circuit XLD and in a non-conductive state with the circuit SCA. As a result, a voltage from the circuit XLD is supplied to each of the wirings XL[1] to XL[m]. Here, for example, the voltage supplied from the circuit XLD to each of the wirings XL[1] to XL[m] is set to a reference potential (V RFP It is written as follows.)

[0196] Between time T01 and time T02, the potentials of the nodes N[1,1] through N[m,n] and the potentials of the nodes Nr[1] through Nr[m] are set to the ground potential (denoted as GND in FIG. 8).

[0197] <<From time T02 to time T03>> A high-level potential is input to the wirings SL1 and SL2 between time T02 and time T03, so that in the circuit CMS, the switches SW1 included in each of the circuits CS1[1] to CS1[n] and the switches SW2 included in each of the circuits CS2[1] to CS2[n] are turned on.

[0198] In addition, between time T02 and time T03, a low-level potential is continuously input to the wiring SL3 and the wiring SL4 from before time T02, a high-level potential is continuously input to the wiring SL5 from before time T02, and a low-level potential is continuously input to the wiring SL5 from before time T02.

[0199] <<From time T03 to time T04>> Between time T03 and time T04, a high-level potential is input to the wiring WL[1], so that a high-level potential is applied to the gates of the transistors Tr11 included in each of the memory cells AM[1,1] to AM[1,n] and the memory cell AMr[1] in the memory cell array CA, turning on each of the transistors Tr11.

[0200] In addition, between time T03 and time T04, the line WD[1] is at a potential higher than the ground potential V PR -V W[1,1] At this time, since the transistor Tr11 of the memory cell AM[1,1] is in an on state, the line WD[1] and the node N[1,1] are in a conductive state, and the first terminal (node ​​N[1,1]) of the capacitor C1 of the memory cell AM[1,1] is supplied with a potential higher than the ground potential V PR -V W[1,1] A large potential is input.

[0201] In this operation example, V PR is the potential corresponding to the reference data, and V W[1,1] is a potential corresponding to the first data stored in the memory cell AM[1,1].

[0202] In addition, between time T03 and time T04, the line WDr is charged with a potential higher than the ground potential V PR At this time, since the transistor Tr11 of the memory cell AMr[1] is in an on state, the line WDr and the node Nr[1] are in a conductive state, and the first terminal (node ​​Nr[1]) of the capacitor C1 of the memory cell AMr[1] is supplied with a potential higher than the ground potential V PRA large potential is input.

[0203] In addition, between time T03 and time T04, the transistors Tr11 of the memory cells AM[1,2] to AM[1,n] are also in an on state, so that at this timing, the first data can be input from the wirings WD[2] to WD[n] to the memory cells AM[1,2] to AM[1,n], respectively, to write potentials corresponding to the first data to the nodes N[1,2] to N[1,n]. Note that in this operation example, the description focuses on the memory cells AM[1,1] to AM[m,1] electrically connected to the wiring WD[1] and the memory cells AMr[1] to AMr[m] electrically connected to the wiring WDr, and therefore the description of the operations of the other memory cells is omitted.

[0204] In addition, between time T03 and time T04, the wirings WL[2] to WL[m] continue to receive a low-level potential from before time T03. Therefore, in the memory cell array CA, a low-level potential is applied to the gates of the transistors Tr11 included in the memory cells AM[2,1] to AM[m,1] and the memory cells AMr[2] to AMr[m] arranged in the second to m-th rows, and the transistors Tr11 are in an off state. As a result, the data input to the wirings WD[1] and WDr are not written to the nodes N[2,1] to N[m,1] and the nodes Nr[2] to Nr[m].

[0205] Here, consider the current flowing from the second terminal to the first terminal of the transistor Tr12 of each of the memory cells AM[1,1] and AMr[1]. Let I AM[1,1],1 Then, I AM[1,1],1 can be expressed by the following formula:

[0206]

number

[0207] k is a constant determined by the channel length, channel width, mobility, and capacitance of the gate insulating film of the transistor Tr12. th is the threshold voltage of the transistor Tr12. Note that the constant k can be applied not only to the memory cell AM[1,1] but also to the other memory cells AM and AMr. In addition, the threshold voltages of the transistors Tr12 of not only the memory cell AM[1,1] but also the other memory cells AM and AMr are V th Let us assume that.

[0208] The current flowing from the wiring BLr to the first terminal via the second terminal of the transistor Tr12 of the memory cell AMr[1] is I AMr[1],2 Similarly, when AMr[1],2 can be expressed by the following formula:

[0209]

number

[0210] <<From time T04 to time T05>> Between time T04 and time T05, a low-level potential is input to the wiring WL[1], so that a low-level potential is applied to the gates of the transistors Tr11 included in each of the memory cells AM[1,1] to AM[1,n] and the memory cell AMr[1] in the memory cell array CA, turning off each of the transistors Tr11.

[0211] In the memory cell AM[1,1], the transistor Tr11 is turned off, so that the first terminal (node ​​N[1,1]) of the capacitor C1 of the memory cell AM[1,1] is charged with a potential higher than the ground potential V PR -V W[1,1]In addition, in the memory cell AMr[1], the transistor Tr11 is turned off, so that a potential higher than the ground potential is applied to the first terminal (node ​​Nr[1]) of the capacitor C1 of the memory cell AMr[1]. PR A large potential is maintained.

[0212] <<From time T05 to time T06>> Between time T05 and time T06, a high-level potential is input to the wiring WL[2], so that a high-level potential is applied to the gates of the transistors Tr11 included in each of the memory cells AM[2,1] to AM[2,n] and AMr[2] in the memory cell array CA, turning on each of the transistors Tr11.

[0213] In addition, between time T05 and time T06, the line WD[1] is at a potential higher than the ground potential V PR -V W[2,1] At this time, the transistor Tr11 of the memory cell AM[2,1] is in an on state, so that the line WD[1] and the node N[2,1] are in a conductive state, and the first terminal (node ​​N[2,1]) of the capacitor C1 of the memory cell AM[2,1] is supplied with a potential higher than the ground potential V PR -V W[2,1] A large potential is input.

[0214] In this operation example, V W[2,1] is a potential corresponding to the first data stored in the memory cell AM[2,1].

[0215] In addition, between time T05 and time T06, the line WDr is charged with a potential higher than the ground potential V PR At this time, since the transistor Tr11 of the memory cell AMr[2] is in an on state, the line WDr and the node Nr[2] are in a conductive state, and the first terminal (node ​​Nr[2]) of the capacitor C1 of the memory cell AMr[2] is supplied with a potential higher than the ground potential V PR A large potential is input.

[0216] In addition, between time T05 and time T06, the wiring WL[1] and the wirings WL[3] to WL[m] are continuously supplied with a low-level potential from before time T05. Therefore, in the memory cell array CA, a low-level potential is applied to the gates of the transistors Tr11 included in the memory cells AM[1,1], AM[3,1] to AM[m,1], AMr[1], and AMr[3] to AMr[m] arranged in the first row and the third row to the mth row, and each transistor Tr11 is in an off state. As a result, the data input to each of the wirings WD[1] and WDr is not written to the nodes N[1,1], N[3,1] to N[m,1], Nr[1], and Nr[3] to Nr[m].

[0217] Here, consider the current flowing from the second terminal to the first terminal of the transistor Tr12 of each of the memory cells AM[2,1] and AMr[2]. Let I be the current flowing from the wiring BL to the first terminal via the second terminal of the transistor Tr12 of the memory cell AM[2,1]. AM[2,1],1 Then, I AM[2,1],1 can be expressed by the following formula:

[0218]

number

[0219] The current flowing from the wiring BLr to the first terminal via the second terminal of the transistor Tr12 of the memory cell AMr[2] is I AMr[2],2 Similarly, when I AMr[2],2 can be expressed by the following formula:

[0220]

number

[0221] <<From time T06 to time T07>> Between time T06 and time T07, a low-level potential is input to the wiring WL[2], so that a low-level potential is applied to the gates of the transistors Tr11 included in each of the memory cells AM[2,1] to AM[2,n] and AMr[2] in the memory cell array CA, turning off each of the transistors Tr11.

[0222] In the memory cell AM[2,1], when the transistor Tr11 is turned off, a potential V ... PR -V W[2,1] In addition, in the memory cell AMr[2], the transistor Tr11 is turned off, so that a potential higher than the ground potential is applied to the first terminal (node ​​Nr[2]) of the capacitor C1 of the memory cell AMr[2]. PR A large potential is maintained.

[0223] Also, between time T06 and time T07, similar to the operation between time T03 and time T05 described above, a potential corresponding to the first data is held at the first terminal of the capacitance C1 of each of the memory cells AM[3,1] to AM[m-1,n]. Specifically, for example, the first terminal (node ​​N[3,1]) of the capacitance C1 of the memory cell AM[3,1] is held at a potential V higher than the ground potential. PR -V W[3,1] A higher potential is held, and the first terminal (node ​​N[m-1,1]) of the capacitor C1 of the memory cell AM[m-1,1] is supplied with a potential higher than the ground potential V PR -V W[m-1,1] A high potential is maintained.

[0224] In this operation example, V W[3,1] is the potential corresponding to the first data stored in the memory cell AM[3,1], and V W[m-1,1] is a potential corresponding to the first data stored in the memory cell AM[m-1,1].

[0225] <<From time T07 to time T08>> Between time T07 and time T08, a high-level potential is input to the wiring WL[m], so that a high-level potential is applied to the gates of the transistors Tr11 included in each of the memory cells AM[m,1] to AM[m,n] and AMr[m] in the memory cell array CA, turning on each of the transistors Tr11.

[0226] In addition, between time T07 and time T08, the line WD[1] is at a potential higher than the ground potential V PR -V W[m,1] At this time, since the transistor Tr11 of the memory cell AM[m,1] is in an on state, the line WD[1] and the node N[m,1] are in a conductive state, and the first terminal (node ​​N[m,1]) of the capacitor C1 of the memory cell AM[m,1] is supplied with a potential higher than the ground potential V PR -V W[m,1] A large potential is input.

[0227] In this operation example, V W[m,1] is a potential corresponding to the first data stored in the memory cell AM[m,1].

[0228] In addition, between time T07 and time T08, the line WDr is charged with a potential higher than the ground potential V PR At this time, since the transistor Tr11 of the memory cell AMr[m] is in an on state, the line WDr and the node Nr[m] are in a conductive state, and the first terminal (node ​​Nr[m]) of the capacitor C1 of the memory cell AMr[m] is supplied with a potential higher than the ground potential V PR A large potential is input.

[0229] In addition, between time T07 and time T08, the wirings WL[1] to WL[m-1] continue to receive a low-level potential from before time T07. Therefore, in the memory cell array CA, a low-level potential is applied to the gates of the transistors Tr11 included in the memory cells AM[1,1] to AM[m-1,1] and memory cells AMr[1] to AMr[m-1] arranged in the 1st to m-1st rows, and each transistor Tr11 is in an off state. As a result, data input to the wirings WD[1] and WDr is not written to the nodes N[1,1] to N[m-1,1] and the nodes Nr[1] to Nr[m-1].

[0230] Here, consider the current flowing from the second terminal to the first terminal of the transistor Tr12 of each of the memory cells AM[m,1] and AMr[m]. Let I AM[m,1],1 Then, I AM[m,1],1 can be expressed by the following formula:

[0231]

number

[0232] In addition, the current flowing from the wiring BLr to the first terminal via the second terminal of the transistor Tr12 of the memory cell AMr[m] is I AMr[m],2 Similarly, when AMr[m],2 can be expressed by the following formula:

[0233]

number

[0234] <<From time T08 to time T09>> Between time T08 and time T09, a low-level potential is input to the wiring WL[m], so that a low-level potential is applied to the gates of the transistors Tr11 included in each of the memory cells AM[m,1] to AM[m,n] and AMr[m] in the memory cell array CA, turning off each of the transistors Tr11.

[0235] In the memory cell AM[m,1], when the transistor Tr11 is turned off, a potential V 1 is applied to the first terminal (node ​​N[m,1]) of the capacitor C1 of the memory cell AM[m,1], which is higher than the ground potential. PR -V W[m,1] In addition, in the memory cell AMr[m], the transistor Tr11 is turned off, so that a potential higher than the ground potential is applied to the first terminal (node ​​Nr[m]) of the capacitor C1 of the memory cell AMr[m]. PR A large potential is maintained.

[0236] Here, consider the current flowing between the first terminal and the second terminal of the transistor Tr33 of the circuit CS1[1] included in the circuit CMS. In this operation example, the amount of this current is represented as I1.

[0237] Between time T08 and time T09, switch SW1 in circuit CS1[1] is on, switch SW3[1] is off, and switch SW4[1] in circuit IVTC is off. Therefore, the amount of current I1 flowing between the first terminal and the second terminal of transistor Tr33 in circuit CS1[1] can be expressed by the following equation using Kirchhoff's law.

[0238]

number

[0239] In addition, the transistor Tr33 of the circuit CS1[1] is configured as a diode connection, and a wiring VHE that provides a high-level potential as a constant voltage is electrically connected to the first terminal of the transistor Tr33 of the circuit CS1[1]. Therefore, the potential of the gate (second terminal) of the transistor Tr33 of the circuit CS1[1] is determined by the amount of current I1 flowing between the first terminal and the second terminal of the transistor Tr33.

[0240] Also, consider the current flowing between the first terminal and the second terminal of the transistor Tr34 of the circuit CS2[1] included in the circuit CMS. In this operation example, the amount of this current is represented as I2.

[0241] Between time T08 and time T09, switch SW2 of circuit CS2[1] is on and switch SW3[1] is off, so the amount of current flowing between the first terminal and the second terminal of transistor Tr34 of circuit CS2[1] is approximately equal to the amount of current flowing between the first terminal and the second terminal of transistor Tr32[1].

[0242] In addition, since the circuit CM is configured as a current mirror circuit, the amount of current flowing between the first terminal and the second terminal of the transistor Tr32[1] is approximately equal to the amount of current flowing between the first terminal and the second terminal of the transistor Tr31.

[0243] Since the amount of current flowing between the first terminal and the second terminal of transistor Tr31 is the sum of the currents flowing from wiring BLr to memory cells AMr[1] to AMr[m], the amount of current I2 flowing between the first terminal and the second terminal of transistor Tr34 in circuit CS2[1] can be expressed as follows:

[0244]

number

[0245] In addition, the transistor Tr34 of the circuit CS2[1] is configured as a diode connection, and the first terminal of the transistor Tr34 of the circuit CS2[1] is electrically connected to a wiring VLE that provides a high-level potential as a constant voltage. Therefore, the potential of the gate (second terminal) of the transistor Tr34 of the circuit CS2[1] is determined by the amount of current I2 flowing between the first terminal and the second terminal of the transistor Tr34.

[0246] <<From time T09 to time T10>> Between time T09 and time T10, a low-level potential is input to the wiring SL1, and a low-level potential is input to the wiring SL2. As a result, in the circuit CMS, the switches SW1 included in each of the circuits CS1[1] to CS1[n] are turned off, and the switches SW2 included in each of the circuits CS2[1] to CS2[n] are turned off.

[0247] Therefore, the gate potential of the transistor Tr33 of the circuit CS1[1] is held by the first terminal of the capacitor C6, and the gate potential of the transistor Tr34 of the circuit CS2[1] is held by the first terminal of the capacitor C7 during the period from time T09 to time T10. As a result, the gate-source voltage of the transistor Tr33 of the circuit CS1[1] is held, so that the amount of current I1 always flows between the first terminal and the second terminal of the transistor Tr33. Similarly, the gate-source voltage of the transistor Tr34 of the circuit CS2[1] is held, so that the amount of current I2 always flows between the first terminal and the second terminal of the transistor Tr34. That is, the amount of current I1 flowing out of the circuit CS[1] is set to the circuit CS[1], and the amount of current I2 flowing into the circuit CS[2] is set to the circuit CS[2].

[0248] <<From time T10 to time T11>> Between time T10 and time T11, a high-level potential is input to the wiring RSL, which turns on the transistors Tr42 in the circuits RPC[1] to RPC[m] included in the circuit SCA.

[0249] When the transistor Tr42 in each of the circuits RPC[1] to RPC[m] is turned on, a reset potential is supplied from the wiring VRS to the node NS in each of the circuits RPC[1] to RPC[m].

[0250] <<From time T11 to time T12>> Between time T11 and time T12, a low-level potential is input to the wiring RSL, which turns off the transistor Tr42 included in each of the circuits RPC[1] to RPC[m] included in the circuit SCA.

[0251] When the transistor Tr42 of each of the circuits RPC[1] to RPC[m] is turned off, the supply of the reset potential from the wiring VRS to the node NS of each of the circuits RPC[1] to RPC[m] is stopped.

[0252] The circuits RPC[1] to RPC[m] included in the circuit SCA are initialized by the above-mentioned operation between time T10 and time T12.

[0253] At this time, a potential corresponding to the potential of the node NS is output from the second terminal of the transistor Tr43 and the second terminal of the transistor Tr44 by the source follower circuit of the transistor Tr43 and the transistor Tr44. That is, a potential corresponding to the reset potential is output from the second terminal of the transistor Tr43 and the second terminal of the transistor Tr44. As an example, the potential output from the second terminal of the transistor Tr43 and the second terminal of the transistor Tr44 is V, which is supplied to the wirings XL[1] to XL[m] between time T01 and time T09. RFPSpecifically, for example, potentials applied to the wirings VRS, VDE, VSE, VBE, and the like are adjusted to apply V to the wirings XL[1] to XL[m]. RFP A potential approximately equal to

[0254] <<From time T12 to time T13>> A high-level potential is input to the wiring TXL between time T12 and time T13, which turns on the transistors Tr41 in the circuits RPC[1] to RPC[m] included in the circuit SCA.

[0255] When the transistor Tr41 of each of the circuits RPC[1] to RPC[m] is turned on, a current corresponding to the information sensed by the circuit SNC flows between the first terminal and the second terminal of the transistor Tr41. As a result, an amount of charge corresponding to the information is charged to each of the nodes NS of the circuits RPC[1] to RPC[m].

[0256] <<From time T13 to time T14>> A low-level potential is input to the wiring TXL from time T13 to time T14, which turns off the transistor Tr41 included in each of the circuits RPC[1] to RPC[m] included in the circuit SCA.

[0257] By turning off the transistor Tr41 of each of the circuits RPC[1] to RPC[m], the current from the circuit SNC to the node NS of each of the circuits RPC[1] to RPC[m] is stopped.

[0258] By the above-mentioned operation between time T12 and time T14, the node NS can hold an amount of charge according to the information sensed by the circuit SNC.

[0259] At this time, a potential corresponding to the potential of the node NS is output from the second terminal of the transistor Tr43 and the second terminal of the transistor Tr44 by the source follower circuit of the transistor Tr43 and the transistor Tr44. That is, a potential corresponding to the information sensed by the circuit SNC is output from the second terminal of the transistor Tr43 and the second terminal of the transistor Tr44.

[0260] <<From time T14 to time T15>> Between time T14 and time T15, a high-level potential is input to the wiring SL3, a high-level potential is input to the wiring SL4, a low-level potential is input to the wiring SL5, and a high-level potential is input to the wiring SL5B. As a result, in the circuit CMS, the switches SW3[1] to SW3[n] are turned on. In the circuit IVTC, the switches SW4[1] to SW4[n] are turned on. In the circuit SWC, the switches SW5a included in the circuits SWT[1] to SWT[m] are turned off, and the switches SW5b included in the circuits SWT[1] to SWT[m] are turned on.

[0261] When the switch SW5a included in the circuits SWT[1] to SWT[m] is turned off and the switch SW5b included in the circuits SWT[1] to SWT[m] is turned on, each of the wirings XL[1] to XL[m] is brought into a non-conductive state with the circuit XLD and into a conductive state with the circuit SCA. Therefore, a potential corresponding to information acquired by the circuit SNC included in each of the circuits RPC[1] to RPC[m] is input to each of the wirings XL[1] to XL[m]. Here, for example, the potential input from the circuit RPC[1] to the wiring XL[1] is set to V, which is higher than the ground potential. RFP +V X[1] The potential input from the circuit RPC[2] to the wiring XL[2] is V higher than the ground potential. RFP +V X[2] The potential input from the circuit RPC[m] to the wiring XL[m] is V higher than the ground potential. RFP+V X[m] The potential is set to high.

[0262] In this operation example, the potential V X[1] ~V X[m] is a potential corresponding to the second data.

[0263] Between time T14 and time T15, the potential of the wiring XL[1] is the reference potential V RFP From V RFP +V X[1] , the second terminal of the capacitance C1 of each of the memory cell AM[1] and the memory cell AMr[1] is V RFP +V X[1] At this time, since the nodes N[1,1] and Nr[1] are in an electrically floating state, the potentials of the nodes N[1,1] and Nr[1] change due to the capacitive coupling of the capacitor C1.

[0264] In each of the memory cell AM[1] and the memory cell AMr[1], the increment of the potential of the gate of the transistor Tr12 is the potential obtained by multiplying the potential change of the wiring XL[1] by a capacitance coupling coefficient determined by the configuration of the memory cell. The capacitance coupling coefficient is calculated based on the capacitance of the capacitor C1, the gate capacitance of the transistor Tr12, the parasitic capacitance, and the like. In this operation example, in order to avoid complexity of the explanation, the increment of the potential of the wiring XL[1] and the increment of the potential of the gate of the transistor Tr12 are described as having the same value. This corresponds to the capacitance coupling coefficient of each of the memory cell AM[1,1] and the memory cell AMr[1] being 1. In this operation example, the capacitance coupling coefficient of each of the memory cells other than the memory cell AM[1,1] and the memory cell AMr[1] included in the memory cell array CA is also described as being 1.

[0265] Since the capacitive coupling coefficient is set to 1, the potential of the second terminal of the capacitance C1 of each memory cell AM[1,1] and memory cell AMr[1] is V RFP From V RFP +V X[1]As a result, the potentials of the nodes N[1,1] and Nr[1] change to V X[1] to rise.

[0266] Here, the current flowing from the wiring BL to the first terminal via the second terminal of the transistor Tr12 of the memory cell AM[1,1] is I AM[1,1],3 Then, I AM[1.1],3 can be expressed by the following formula:

[0267]

number

[0268] Similarly, the current flowing from the wiring BLr to the first terminal via the second terminal of the transistor Tr12 of the memory cell AMr[1] is I AMr[1],4 Then, I AMr[1],4 can be expressed by the following formula:

[0269]

number

[0270] In addition, the capacitive coupling coefficient of the memory cell AM[2,1] and the memory cell AMr[2] is set to 1, so the potential of the second terminal of the capacitance C1 included in each of them is V RFP From V RFP +V X[2] As a result, the potentials of the nodes N[2,1] and Nr[2] change to V X[2] to rise.

[0271] Here, the current flowing from the wiring BL to the first terminal via the second terminal of the transistor Tr12 of the memory cell AM[2,1] is I AM[2,1],3 Then, I AM[2.1],3 can be expressed by the following formula:

[0272]

number

[0273] Similarly, the current flowing from the wiring BLr to the first terminal via the second terminal of the transistor Tr12 of the memory cell AMr[2] is I AMr[2],4 Then, I AMr[2],4 can be expressed by the following formula:

[0274]

number

[0275] In addition, the capacitive coupling coefficient of the memory cell AM[m,1] and the memory cell AMr[m] is set to 1, so that the potential of the second terminal of the capacitance C1 included in each of them is V RFP From V RFP +V X[m] By changing the potential of the node N[m,1] and the node Nr[m] to V X[m] to rise.

[0276] Here, the current flowing from the wiring BL to the first terminal via the second terminal of the transistor Tr12 of the memory cell AM[m,1] is I AM[m,1],3 Then, I AM[m.1],3 can be expressed by the following formula:

[0277]

number

[0278] Similarly, the current flowing from the wiring BLr to the first terminal via the second terminal of the transistor Tr12 of the memory cell AMr[2] is I AMr[m],4 Then, I AMr[m],4 can be expressed by the following formula:

[0279]

number

[0280] When the total amount of current flowing from wiring BL[1] to memory cells AM[1,1] to AM[m,1] between time T14 and time T15 is I3, the amount of current I3 can be expressed as follows:

[0281]

number

[0282] In addition, since the circuit CM is configured as a current mirror circuit, the amount of current flowing between the first and second terminals of the transistor Tr32[1] included in the circuit CM is approximately equal to the amount of current flowing between the first and second terminals of the transistor Tr31. In addition, the amount of current flowing between the first and second terminals of the transistor Tr31 is the sum of the currents flowing from the wiring BLr to the memory cells AMr[1] to AMr[m]. If the amount of current flowing between the first and second terminals of the transistor Tr32[1] included in the circuit CM between time T14 and time T15 is I4, the amount of current I4 can be expressed as follows:

[0283]

number

[0284] Furthermore, between time T14 and time T15, switches SW3[1] to SW3[n] and switches SW4[1] to SW4[n] are in the on state, so that current flows from the circuit CMS and memory cell array CA to the circuit IVTC via the wiring BL. Specifically, for example, a current I1 flows out of the circuit CS1[1], a current I2 flows into the circuit CS2[1], and a current I4 flows between the source and drain of the transistor Tr32[1] of the circuit CM. The sum of the currents flowing through the memory cells AM[1,1] to AM[m,1] is I3. Here, the amount of current flowing from the wiring BL[1] to the wiring OL[1] is I S [1], the amount of current I S[1] can be written as follows using Kirchhoff's law:

[0285]

number

[0286] From equation (1.17), the amount of current I input from wiring BL[1] to circuit IVTC S [1] is the potential V according to the first data W[1,1] ~V W[m,1] and a potential V according to the second data X[1] ~V X[m] In other words, the sum of the products of the first data and the second data is proportional to the amount of current I S [1]

[0287] <Operation example 2 of the calculation circuit> The operation of the semiconductor device of one embodiment of the present invention is not limited to the operation illustrated in the timing chart of Fig. 8. The operation of the semiconductor device of one embodiment of the present invention can be changed depending on the situation.

[0288] The operation shown in the timing chart of FIG. 8 is that the circuit XLD supplies V RFP However, between time T01 and time T14, each of the circuits RPC[1] to RPC[m] included in the circuit SNC may apply a potential to the wirings XL[1] to XL[m].

[0289] Specifically, for example, the operation of the semiconductor device of one embodiment of the present invention may be the operation shown in the timing chart in Fig. 9. The operation of the timing chart in Fig. 9 is different from the operation of the timing chart in Fig. 8 in that a low-level potential is always input to the wiring SL5 and a high-level potential is always input to the wiring SL5B. Therefore, the wirings XL[1] to XL[m] are always in a non-conductive state with the circuit XLD, and the wirings XL[1] to XL[m] are always in a conductive state with the circuit SCA.

[0290] In the operation of the timing chart of FIG. 9, a high-level potential is input to the wiring RSL between time T01 and time T02. That is, a reset potential is supplied to the nodes NS of the circuits RPC[1] to RPC[m] included in the circuit SCA. In addition, a low-level potential is input to the wiring RSL between time T02 and time T12, and the reset potential is held in the nodes NS of the circuits RPC[1] to RPC[m]. In addition, a potential corresponding to the reset potential of the node NS is output from the second terminal of the transistor Tr43 and the second terminal of the transistor Tr44 by the source follower circuits of the transistors Tr43 and Tr44 between time T01 and time T12. A high-level potential is applied to the wiring SL5B and the switch SW5b is in an on state, so that a potential corresponding to the reset potential of the node NS is output to the wirings XL[1] to XL[m]. In the timing chart of FIG. 9, the potentials output to the wirings XL[1] to XL[m] are set to V, which is the same as the potential output by the circuit XLD in the timing chart of FIG. RFP It states that:

[0291] In the operation of the timing chart of FIG. 9, a high-level potential is input to the wiring TXL between time T12 and time T13. That is, the nodes NS of the circuits RPC[1] to RPC[m] included in the circuit SCA are charged with an amount of charge corresponding to the information sensed by the circuit SNC. In addition, after time T13, a low-level potential is input to the wiring TXL, and the nodes NS of the circuits RPC[1] to RPC[m] are held in the amount of charge. In addition, after time T13, a potential corresponding to the amount of charge held in the node NS is output from the second terminal of the transistor Tr43 and the second terminal of the transistor Tr44 by the source follower circuit of the transistor Tr43 and the transistor Tr44. Since a high-level potential is applied to the wiring SL5B and the switch SW5b is in an on state, the potential corresponding to the amount of charge held in the node NS is output to the wirings XL[1] to XL[m]. In the timing chart of FIG. 9, the potential output to the wiring XL[1] is V RFP +V X[1] The potential output to the wire XL[2] is V RFP +V X[2] The potential output to the wiring XL[m] is V RFP +V X[m] It states that:

[0292] <Operation example 3 of the calculation circuit> Further, the operation of the semiconductor device of one embodiment of the present invention may be the operation shown in the timing chart in FIG. 10 instead of the operation shown in the timing chart in FIGS.

[0293] 10 is different from the operation of the timing chart of Fig. 8 in that a high-level potential is always input to the wiring SL5 and a low-level potential is always input to the wiring SL5B. Therefore, the wirings XL[1] to XL[m] and the circuit XLD are always in a conductive state, and the wirings XL[1] to XL[m] and the circuit SCA are always in a non-conductive state.

[0294] Since the wirings XL[1] to XL[m] and the circuit SCA are always in a non-conductive state, the circuits RPC[1] to RPC[m] included in the circuit SCA do not operate in the operation of the timing chart of Fig. 10. Therefore, for example, a low-level potential is always input to the wirings RSL and TXL in the operation of the timing chart of Fig. 10.

[0295] The operation of the timing chart in FIG. 10 differs from the operation of the timing chart in FIG. 8 and the operation of the timing chart in FIG. 9 in that a potential is always supplied to each of the wirings XL[1] to XL[m] by the circuit XLD.

[0296] In the operation of the timing chart of FIG. 10, from before time T01 to time T14, the potential V RFP is being supplied.

[0297] In addition, in the operation of the timing chart of FIG. 10, after time T14, the wiring XL[1] is connected to the circuit XLD via the circuit SWC. RFP +V X[1] Similarly, the wiring XL[2] is supplied with V RFP +V X[2] Similarly, V is supplied from the circuit XLD through the circuit SWC. RFP +V X[m] is being supplied.

[0298] As described above, the semiconductor device of one embodiment of the present invention can select a circuit that outputs a potential to be input to the wirings XL[1] to XL[m] from the circuit XLD or the circuit SWC by the circuit SWC. In other words, the semiconductor device of one embodiment of the present invention can select whether the second data is information acquired from a sensor or the like provided in the circuit SWC or the internal data held in a memory device or the like provided outside the arithmetic circuit, and perform arithmetic operation.

[0299] Moreover, by performing either the above-mentioned operation example 2 of the arithmetic circuit or the operation example 3 of the arithmetic circuit without updating the first data written to the memory cell array CA (without performing the operations from time T03 to time T08), it is possible to compare the results output from the wirings NIL[1] to NIL[n] in each operation example. For example, when a circuit SNC including a photodiode PD is applied as the circuit SNC as shown in FIG. 7A, it is possible to compare an image captured by the photodiode PD in operation example 2 of the arithmetic circuit with an image corresponding to the internal data input from the circuit XLD in operation example 3 of the arithmetic circuit. In particular, when performing image recognition or the like using a hierarchical neural network described in embodiment 4, by relatively comparing the results output in each of operation example 2 of the arithmetic circuit and operation example 3 of the arithmetic circuit, it is possible to optimize the settings of the voltages of each wiring in operation example 2 of the arithmetic circuit (e.g., the voltages provided by wiring VBE, wiring VDE, wiring VSE, and wiring VRS, the voltages input to each of wirings XL[1] to XL[n], etc.), and it is also possible to reduce the signal amplitude (amount of current, voltage, etc.), and to perform inference in a short period of time.

[0300] In the above-described second operation example of the arithmetic circuit, when the potential of the node NS of the circuits RPC[1] to RPC[m] is the reset potential, the potential supplied from the second terminal of the transistor Tr43 and the second terminal of the transistor Tr44 is V RFP 7A, when a circuit SNC including a photodiode PD is applied as the circuit SNC, and light of a certain intensity is incident on the photodiode PD, the potentials supplied from the second terminal of the transistor Tr43 and the second terminal of the transistor Tr44 change approximately in proportion to time (between time T12 and time T13). In other words, the potentials of the wirings XL[1] to XL[m] of the arithmetic circuit MAC1 are changed by the data obtained by the photodiode PD, such that the potential V RFPIt changes in proportion to time from time T12. Therefore, the difference in output increases in proportion to the time taken for the photodiode PD to acquire data (from time T12 to time T13). Therefore, if a relative difference in the output signals occurs to a degree sufficient for determining an inference, the inference can be terminated at that point, and it may be possible to perform the inference in a short time.

[0301] In addition, in this embodiment, the case where the transistor included in the arithmetic circuit MAC1 is an OS transistor or a Si transistor has been described, but one embodiment of the present invention is not limited thereto. The transistor included in the arithmetic circuit MAC1 may be, for example, a transistor having an active layer made of Ge or the like, a transistor having an active layer made of a compound semiconductor such as ZnSe, CdS, GaAs, InP, GaN, or SiGe, a transistor having an active layer made of a carbon nanotube, or a transistor having an active layer made of an organic semiconductor.

[0302] Note that this embodiment mode can be appropriately combined with other embodiment modes described in this specification.

[0303] (Embodiment 2) In this embodiment, an arithmetic circuit having a different configuration from the arithmetic circuit MAC1 described in the first embodiment will be described.

[0304] <Arithmetic circuit configuration example 2> The arithmetic circuit MAC2 shown in FIG. 11 differs from the arithmetic circuit MAC1 in that it has memory cells AMb[1] to AMb[n] in a memory cell array CA.

[0305] The memory cell AMb[1] is electrically connected to the wiring BL[1], the wiring WD[1], the wiring XLb, and the wiring WLb. The memory cell AMb[n] is electrically connected to the wiring BL[n], the wiring WD[n], the wiring XLb, and the wiring WLb.

[0306] A specific configuration example of the memory cells AMb[1] to AMb[n] is shown in Fig. 12. Note that Fig. 12 also illustrates memory cells AM[1,1] to AM[m,n], memory cells AMr[1] to AMr[m], a circuit WDD, a circuit CMS, a circuit IVTC, and a circuit ACTV in order to show electrical connections with the memory cells AMb[1] to AMb[n], respectively.

[0307] 12, the memory cells AMb[1] to AMb[n] can be configured in a similar manner to the memory cells AM[1,1] to AM[m,n] and the memory cells AMr[1] to AMr[m]. Therefore, in the arithmetic circuit MAC2 in FIG. 12, each of the memory cells AMb[1] to AMb[n] includes a transistor Tr11, a transistor Tr12, and a capacitance C1.

[0308] In each of the memory cells AMb[1] to AMb[n], a first terminal of the transistor Tr12 is electrically connected to the wiring VRA.

[0309] In the memory cell AMb[1], the electrical connection point between the first terminal of the transistor Tr11, the gate of the transistor Tr12, and the first terminal of the capacitor C1 is defined as a node Nb[1]. In the memory cell AMb[n], the electrical connection point between the first terminal of the transistor Tr11, the gate of the transistor Tr12, and the first terminal of the capacitor C1 is defined as a node Nb[n].

[0310] The wiring WLb functions as a wiring that supplies a selection signal from the circuit WLD to the memory cells AMb[1] to AMb[n] when writing data to the memory cells AMb[1] to AMb[n]. The wiring XLb functions as a wiring that applies a constant potential to the second terminals of the capacitors C1 of the memory cells AMb[1] to AMb[n], for example. The constant potential is preferably a ground potential, a low-level potential, a high-level potential, or the like. Alternatively, the wiring XLb may function as a wiring that supplies an arbitrary potential from the circuit XLD.

[0311] The wiring VRA of each of the memory cells AMb[1] to AMb[n] can be a low-level potential, a ground potential, or a potential lower than the ground potential, similar to the wirings VR of each of the memory cells AM[1,1] to AM[m,n] and the memory cells AMr[1] to AMr[m]. Alternatively, the wirings VRA of each of the memory cells AMb[1] to AMb[n] may be wirings that apply a high-level potential in some cases. For example, if a positive current is to flow from the memory cell AMb[1] to the wiring BL[1], the wiring VRA of the memory cell AMb[1] may be a wiring that applies a high-level potential.

[0312] As an example of the operation of the arithmetic circuit MAC2 in Fig. 12, for example, in the timing chart of Fig. 8, between time T01 and time T14, the nodes Nb[1] to Nb[n] are held at the ground potential, low-level potential, or potential applied by the wiring VR so that the transistors Tr12 of the memory cells AMb[1] to AMb[n] are turned off. Then, in the timing chart of Fig. 8, between time T14 and time T15, an arbitrary amount of current I BIAS [1]~I BIAS A potential V BIAS [1]~V BIAS [n] is held. For example, in this case, IBIAS [1] is expressed by the following formula.

[0313]

number

[0314] Therefore, between time T14 and time T15, for example, the amount of current I S [1] is expressed as follows:

[0315]

number

[0316] Equation (2.2) corresponds to an operation that further gives an arbitrary bias to the result of the product-sum operation. As will be described in detail in the fourth embodiment, the operation that further gives an arbitrary bias to the result of the product-sum operation is used in the operation of a hierarchical neural network. For this reason, it can be said that the arithmetic circuit MAC2 is suitable for performing the operation of a hierarchical neural network.

[0317] <Arithmetic circuit configuration example 3> Next, a configuration example of an arithmetic circuit which is a semiconductor device of one embodiment of the present invention, different from the arithmetic circuit MAC1 in FIG. 1 and the arithmetic circuit MAC2 in FIG. 11, will be described.

[0318] The arithmetic circuit MAC3 shown in FIG. 13 differs from the arithmetic circuits MAC1 and MAC2 in that a current related to the result of the product-sum operation flows from the circuit CMS to the circuit IVTC and the circuit ACTV.

[0319] 13, the circuit CMS is electrically connected to the circuit IVTC through wirings BLO[1] to BLO[n]. Note that for other circuit configurations, the description of the arithmetic circuit MAC1 in FIG. 1 should be referred to.

[0320] A specific configuration example of the circuit CMS is shown in Fig. 14. In Fig. 14, the circuit IVTC is also shown in order to show the connection configuration with the circuit CMS.

[0321] The circuit CMS shown in Figure 14 has a configuration in which, in the circuit CMS of Figure 3 described in embodiment 1, a wiring BLO[1] is electrically connected to the second terminal of the switch SW3[1], the second terminal of the transistor Tr32[1], and the second terminal of the transistor Tr34 of the circuit CS2[1], and a wiring BLO[n] is electrically connected to the second terminal of the switch SW3[n], the second terminal of the transistor Tr32[n], and the second terminal of the transistor Tr34 of the circuit CS2[n].

[0322] The circuit IVTC shown in Fig. 14 has a configuration similar to that of the circuit IVTC in Fig. 5A, except that the wirings BL[1] to BL[n] shown in Fig. 5A are replaced with wirings BLO[1] to BLO[n]. The wirings BLO[1] to BLO[n] are electrically connected to the first terminals of the switches SW4[1] to SW4 included in the circuit IVTC in Fig. 5A.

[0323] By applying the circuit CMS and the circuit IVTC having the configuration shown in FIG. 14 to the arithmetic circuit MAC3 in FIG. 13, it is possible to perform the same operation as the arithmetic circuit MAC1 described in the first embodiment.

[0324] Moreover, the configuration of the circuit CMS and the circuit IVTC included in the arithmetic circuit MAC3 in Fig. 13 is not limited to the configuration shown in Fig. 14. For example, the circuit CMS and the circuit IVTC included in the arithmetic circuit MAC3 in Fig. 13 may have the configuration example shown in Fig. 15.

[0325] The circuit CMS shown in Fig. 15 is configured by adding switches SW6[1] to SW6[n] to the circuit CMS shown in Fig. 3 described in the first embodiment. Specifically, a first terminal of the switch SW6[1] is electrically connected to a second terminal of the switch SW3[1], a second terminal of the transistor Tr32[1], and a second terminal of the transistor Tr34. The second terminal of the switch SW6[1] is electrically connected to a wiring BLO[1]. The control terminals of the switches SW6[1] to SW6[n] are electrically connected to a wiring SL6.

[0326] Note that the switches SW6[1] to SW6[n] may be, for example, switches that can be applied to the switches SW1, SW2, SW3[1] to SW3[n], etc. In this specification and the like, like the switches SW1, SW2, and SW3[1] to SW3[n], each of the switches SW6[1] to SW6[n] is turned on when a high-level potential is input to a control terminal, and turned off when a low-level potential is input to the control terminal.

[0327] 15 is configured without the switches SW4[1] to SW4[n] in the circuit IVTC of FIG 5A. Therefore, wirings BLO[1] to BLO[n] are electrically connected to the inverting input terminals of the operational amplifiers OP[1] to OP[n] included in the circuit IVTC of FIG 15.

[0328] That is, the circuit CMS in FIG. 15 is configured such that switches SW6[1] through SW6[n] are provided in place of the switches SW4[1] through SW4[n] included in the circuit IVTC in FIG. 14, respectively.

[0329] When the operation of the timing charts of FIGS. 8 to 10 described in embodiment 1 is performed using the circuit CMS of FIG. 15 and the arithmetic circuit MAC3 to which the circuit IVTC is applied, the timing at which the switches SW3[1] to SW3[n] and the switches SW6[1] to SW6[n] are turned on or off is the same, so the wiring SL3 and the wiring SL6 may be combined into a single wiring.

[0330] Note that this embodiment mode can be appropriately combined with other embodiment modes described in this specification.

[0331] (Embodiment 3) In this embodiment mode, a configuration example of the circuit LGC included in the circuit XLD of the arithmetic circuits MAC1 to MAC3 described in Embodiment Mode 1 and Embodiment Mode 2 will be described.

[0332] 16A shows a specific example of the circuit configuration of the circuit LGC. When one of the wirings LXS[1] to LXS[m] is a bus wiring for transmitting a digital signal, it is preferable that the data DT (reference data and the second data) input to the circuit LGC is input as a digital signal. By treating the data DT as a digital signal, the circuit LGC can be configured as a logic circuit.

[0333] The circuit LGC shown in FIG. 16A includes a shift register SR, latch circuits LTA[1] through LTA[m], latch circuits LTB[1] through LTB[m], and switches SW8[1] through SW8[m].

[0334] The shift register SR is electrically connected to the wirings SPL, SCL, and the wirings SEL[1] to SEL[m].

[0335] The control terminals (sometimes called clock input terminals, enable signal input terminals, etc.) of the latch circuits LTA[1] to LTA[m] are electrically connected to the wirings SEL[1] to SEL[m], and the control terminals of the latch circuits LTB[1] to LTB[m] are electrically connected to the wirings LAT. The input terminals D of the latch circuits LTA[1] to LTA[m] are electrically connected to the wirings DAT, and the output terminals Q of the latch circuits LTA[1] to LTA[m] are electrically connected to the wirings DL[1] to DL[m]. The input terminals D of the latch circuits LTB[1] to LTB[m] are electrically connected to the wirings DL[1] to DL[m], and the output terminals Q of the latch circuits LTB[1] to LTB[m] are electrically connected to the first terminals of the switches SW8[1] to SW8[m]. The second terminals of the switches SW8[1] to SW8[m] are electrically connected to the wirings LXS[1] to LXS[m], respectively, and the control terminals of the switches SW8[1] to SW8[m] are electrically connected to the wirings SL8[1] to SL8[m], respectively.

[0336] As the switches SW8[1] to SW8[m], for example, switches applicable to the switches SW1, SW2, SW3[1] to SW3[n], etc., can be used. In this specification, each of the switches SW8[1] to SW8[m] is assumed to be turned on when a high-level potential is input to a control terminal and turned off when a low-level potential is input to the control terminal, similar to the switches SW1, SW2, and SW3[1] to SW3[n].

[0337] For example, the wirings SL8[1] to SL8[m] function as wirings for switching the switches SW8[1] to SW8[m] between a conductive state and a non-conductive state.

[0338] The wiring SPL functions, for example, as a wiring that transmits a start pulse signal to the shift register SR.

[0339] Moreover, the line SCL functions as, for example, a line that transmits a clock signal to the shift register SR.

[0340] Moreover, the wiring DAT functions, for example, as a wiring for transmitting data DT to the circuit LGC.

[0341] Each of the wirings SEL[1] to SEL[m], the wirings DL[1] to DL[m], and the wiring DAT can be a wiring for transmitting a digital signal. Therefore, each of the wirings SEL[1] to SEL[m], the wirings DL[1] to DL[m], and the wiring DAT can be a bus wiring. In addition, the wirings SL8[1] to SL8[m] can also be a bus wiring.

[0342] For example, the shift register SR has a function of sequentially outputting a high-level potential to the wirings SEL[1] to SEL[m] in accordance with a change in potential input to the wirings SPL and SCL. Note that the shift register SR cannot output a high-level potential to two or more of the wirings SEL[1] to SEL[m], and when any one of the wirings SEL[1] to SEL[m] outputs a high-level potential, the remaining wirings SEL[1] to SEL[m] output a low-level potential.

[0343] For example, when a high-level potential is input to the wiring SPL as a start pulse signal, and the potential rises from a low-level potential to a high-level potential by the clock signal from the wiring SCL, for example, the wiring SEL[1] outputs a high-level potential. Then, when a low-level potential is input to the wiring SPL and the potential rises again from a low-level potential to a high-level potential by the clock signal from the wiring SCL, the wiring SEL[1] outputs a low-level potential, and the wiring SEL[2] outputs a high-level potential. Furthermore, after that, when a low-level potential is input to the wiring SPL and the clock signal from the wiring SCL rises for the third time, for example, the wiring SEL[1] and the wiring SEL[2] output a low-level potential, and the wiring SEL[3] outputs a high-level potential.

[0344] In this way, each time a potential rise occurs in the clock signal from the wiring SCL, the shift register SR can sequentially output a high-level potential to one of the wirings SEL[1] to SEL[m] and output a low-level potential to the other wirings.

[0345] Each of the latch circuits LTA[1] through LTA[m] and the latch circuits LTB[1] through LTB[m] has a function of becoming enabled when a high-level potential is input to the control terminal, holding the data input to the input terminal D, and outputting the data to the output terminal Q. Note that each of the latch circuits LTA[1] through LTA[m] and the latch circuits LTB[1] through LTB[m] becomes disabled when a low-level potential is input to the control terminal, and does not hold the data input to the input terminal D, nor does it output the data to the output terminal Q.

[0346] Here, an example of the operation of the circuit LGC will be described.

[0347] 17A is a timing chart showing an operation example of the circuit LGC. The timing chart shows changes in potentials in the wirings SPL, SCL, SEL[1], SEL[2], SEL[m-1], SEL[m], SL8[1] to SL8[m], and LAT, and shows data input to the wirings DAT, LXS[1], LXS[2], LXS[m-1], and LXS[m]. Note that in the wirings SPL, SCL, SEL[1], SEL[2], SEL[m], SEL[m-1], SL8[1] to SL8[m], and LAT, high-level potentials are indicated as "High" and low-level potentials are indicated as "Low."

[0348] 17A shows an example of an operation in which the circuit LGC simultaneously outputs data DT to each of the wirings LXS[1] to LXS[m] during and around the period from time T31 to time T40. This example of an operation is assumed to be performed during the period from time T14 to time T15 in the timing chart of FIG.

[0349] Also, at a time before time T31, a low-level potential is input to the wiring LAT, and a low-level potential is input to each of the wirings SL8[1] to SL8[m]. Also, it is assumed that the shift register SR outputs a low-level potential to each of the wirings SEL[1] to SEL[m].

[0350] Between time T31 and time T32, a high-level potential is input to the line SPL as a start pulse signal. A pulse voltage is input to the line SCL as a clock signal. The shift register SR receives the rising edge of the pulse voltage of the clock signal, thereby acquiring the high-level potential, which is the start pulse signal input to the line SPL.

[0351] Between time T32 and time T33, data DT[1] is input to the line DAT. A second pulse voltage is input to the line SCL as a clock signal. The shift register SR outputs a high-level potential to the line SEL[1] when the rising edge of the second pulse voltage of the clock signal is input.

[0352] At this time, the latch circuit LTA[1] is enabled, so it holds the data DT[1] input to its input terminal D and outputs the data DT[1] to its output terminal Q. The data DT[1] is input to the input terminal D of the latch circuit LTB[1]. At this time, a low-level potential is input to the control terminal of the latch circuit LTB[1], so the latch circuit LTB[1] does not hold the data DT[1] input to the input terminal D of the latch circuit LTB[1], and does not output the data DT[1] input to the output terminal Q of the latch circuit LTB[1].

[0353] Between time T33 and time T34, data DT[2] is input to the line DAT. A third pulse voltage is input to the line SCL as a clock signal. When the rising edge of the third pulse voltage of the clock signal is input, the shift register SR outputs a low-level potential to the line SEL[1] and a high-level potential to the line SEL[2].

[0354] At this time, the latch circuit LTA[1] is disabled and does not hold the data DT[2] input to the input terminal D of the latch circuit LTA[1]. The latch circuit LTA[1] continues to hold the data DT[1] from before time T33 and outputs the data DT[1] from the output terminal Q.

[0355] Furthermore, the latch circuit LTA[2] is enabled, so it holds the data DT[2] input to its input terminal D and outputs the data DT[2] to its output terminal Q. The data DT[2] is input to the input terminal D of the latch circuit LTB[2]. At this time, because a low-level potential is input to the control terminal of the latch circuit LTB[2], the latch circuit LTB[2] does not hold the data DT[2] input to the input terminal D of the latch circuit LTB[2], and does not output the data DT[2] input to the output terminal Q of the latch circuit LTB[2].

[0356] Between time T34 and time T35, data DT[3] to DT[m-2] are sequentially input to the wiring DAT, and high-level potentials are sequentially input to the wirings SEL[3] to SEL[m-2] by the shift register SR. As a result, data DT[3] to DT[m-2] are held in the latches LTA[3] to LTA[m-2], respectively. In addition, data DT[3] to DT[m-2] are output from the output terminals Q of the latches LTA[3] to LTA[m-2], respectively.

[0357] Between time T35 and time T36, data DT[m-1] is input to the line DAT. Also, the m-th pulse voltage is input to the line SCL as a clock signal. When the rising edge of the m-th pulse voltage of the clock signal is input, the shift register SR outputs a low-level potential to the line SEL[m-2] and a high-level potential to the line SEL[m-1].

[0358] At this time, the latch circuit LTA[m-2] is disabled and does not hold the data DT[m-1] input to the input terminal D of the latch circuit LTA[m-2]. The latch circuit LTA[m-2] continues to hold the data DT[m-2] from before time T35 and outputs the data DT[m-2] from the output terminal Q.

[0359] Furthermore, since the latch circuit LTA[m-1] is enabled, it holds the data DT[m-1] input to the input terminal D and outputs the data DT[m-1] to the output terminal Q. The data DT[m-1] is input to the input terminal D of the latch circuit LTB[m-1]. At this time, since a low-level potential is input to the control terminal of the latch circuit LTB[m-1], the latch circuit LTB[m-1] does not hold the data DT[m-1] input to the input terminal D of the latch circuit LTB[m-1], and does not output the data DT[m-1] input to the output terminal Q of the latch circuit LTB[m-1].

[0360] Between time T36 and time T37, data DT[m] is input to the line DAT. Also, the (m+1)th pulse voltage is input to the line SCL as a clock signal. When the rising edge of the (m+1)th pulse voltage of the clock signal is input, the shift register SR outputs a low-level potential to the line SEL[m-1] and a high-level potential to the line SEL[m].

[0361] At this time, the latch circuit LTA[m-1] is disabled and does not hold the data DT[m] input to the input terminal D of the latch circuit LTA[m-1]. The latch circuit LTA[m-1] continues to hold the data DT[m-1] from before time T36 and outputs the data DT[m-1] from the output terminal Q.

[0362] Furthermore, since the latch circuit LTA[m] is enabled, it holds the data DT[m] input to its input terminal D and outputs the data DT[m] to its output terminal Q. The data DT[m] is input to the input terminal D of the latch circuit LTB[m]. At this time, since a low-level potential is input to the control terminal of the latch circuit LTB[m], the latch circuit LTB[m] does not hold the data DT[m] input to the input terminal D of the latch circuit LTB[m], and does not output the data DT[m] input to the output terminal Q of the latch circuit LTB[m].

[0363] Between time T38 and time T39, a high-level potential is input to the line LAT. As a result, a high-level potential is input to each control terminal of the latch circuits LTB[1] to LTB[m], and each of the latch circuits LTB[1] to LTB[m] is enabled. As a result, the latch circuits LTB[1] to LTB[m] hold the data DT[1] to DT[m] input to their respective input terminals D, and output the data DT[1] to DT[m] from their respective output terminals Q.

[0364] Between time T39 and time T40, a high-level potential is input to the wirings SL8[1] to SL8[m]. This causes the switches SW8[1] to SW8[m] to be turned on, and electrical continuity is established between the output terminals Q of the latch circuits LTB[1] to LTB[m] and the wirings LXS[1] to LXS[m]. This allows the circuit LGC to simultaneously output data DT[1] to DT[m] from the wirings LXS[1] to LXS[m], respectively.

[0365] By performing the operation of the timing chart shown in Figure 17A, the circuit LGC can simultaneously output in parallel the data DT[1] to data DT[m] sequentially input to the circuit LGC to the wiring LXS[1] to wiring LXS[m].

[0366] In the timing chart of Fig. 17A, an operation example in which the circuit LGC outputs the data DT to each of the wirings LXS[1] to LXS[m] at the same time is shown, but the circuit LGC may output the data DT to each of the wirings LXS[1] to LXS[m] sequentially. The timing chart of Fig. 17B shows an operation example in which the circuit LGC outputs the data DT to each of the wirings LXS[1] to LXS[m] sequentially. Note that the operation before time T39 in the timing chart of Fig. 17B is assumed to be the operation example performed from before time T31 to time T39 in the timing chart of Fig. 17A.

[0367] 17B shows changes in the potentials of the wirings SL8[1], SL8[2], SL8[m-1], and SL8[m], and also shows data input to the wirings LXS[1], LXS[2], LXS[m-1], and LXS[m]. Note that in the wirings SL8[1], SL8[2], SL8[m-1], and SL8[m], high-level potentials are indicated as "High" and low-level potentials are indicated as "Low."

[0368] Between time T39 and time T40, a high-level potential is input to the line SL8[1]. This turns on the switch SW8[1], and the output terminal Q of the latch circuit LTB[1] and the line LXS[1] are in a conductive state, so that the data DT[1] output from the output terminal Q of the latch circuit LTB is transmitted to the line LXS[1].

[0369] Between time T40 and time T41, a low-level potential is input to the line SL8[1], and a high-level potential is input to the line SL8[2]. This causes the switch SW8[1] to be turned off, and the switch SW8[2] to be turned on. Since the output terminal Q of the latch circuit LTB[1] and the line LXS[1] are in a non-conductive state, the data DT[1] output from the output terminal Q of the latch circuit LTB is not transmitted to the line LXS[1]. Furthermore, since the output terminal Q of the latch circuit LTB[2] and the line LXS[2] are in a conductive state, the data DT[2] output from the output terminal Q of the latch circuit LTB is transmitted to the line LXS[2].

[0370] Between time T41 and time T42, high-level potentials are sequentially input to the wirings SL8[3] to SL8[m-2], and the switches SW8[3] to SW8[m-2] are sequentially turned on. As a result, the data DT[3] to DT[m-2] output to the output terminals Q of the latch circuits LTB[3] to LTB[m-2] are sequentially output from the wirings LXS[3] to LXS[m-2], respectively.

[0371] Between time T42 and time T43, a low-level potential is input to the wiring SL8[m-2], and a high-level potential is input to the wiring SL8[m-1]. This causes the switch SW8[m-2] to be turned off, and the switch SW8[m-1] to be turned on. Since the output terminal Q of the latch circuit LTB[m-2] and the wiring LXS[m-2] are in a non-conductive state, the data DT[m-2] output from the output terminal Q of the latch circuit LTB is not transmitted to the wiring LXS[m-2]. In addition, since the output terminal Q of the latch circuit LTB[m-1] and the wiring LXS[m-1] are in a conductive state, the data DT[m-1] output from the output terminal Q of the latch circuit LTB is transmitted to the wiring LXS[m-1].

[0372] Between time T43 and time T44, a low-level potential is input to the line SL8[m-1], and a high-level potential is input to the line SL8[m]. This causes the switch SW8[m-1] to be turned off, and the switch SW8[m] to be turned on. Since the output terminal Q of the latch circuit LTB[m-1] and the line LXS[m-1] are in a non-conductive state, the data DT[m-1] output from the output terminal Q of the latch circuit LTB is not transmitted to the line LXS[m-1]. Also, since the output terminal Q of the latch circuit LTB[m] and the line LXS[m] are in a conductive state, the data DT[m] output from the output terminal Q of the latch circuit LTB is transmitted to the line LXS[m].

[0373] The circuit LGC performs operations up to time T39 in the timing chart shown in FIG. 17A, and then performs operations in the timing chart shown in FIG. 17B, thereby enabling the circuit LGC to sequentially output data DT[1] to data DT[m] sequentially input to the circuit LGC to wirings LXS[1] to LXS[m].

[0374] In the operation example of the timing chart shown in FIG. 17B, an example is shown in which each of the wirings SL8[1] to SL8[m] is sequentially turned on to sequentially output data DT[1] to DT[m] to the wirings LXS[1] to LXS[m]. However, the operation may be such that a switch to be turned on is selected from the wirings SL8[1] to SL8[m] to output data DT to the wiring selected from the wirings LXS[1] to LXS[m].

[0375] According to the above-described operation example, for example, between time T14 and time T15 in the timing chart of FIG. 8, a potential corresponding to the data DT can be supplied to any one of the wirings XCL[1] to XCL[m] of the arithmetic circuit MAC1, the arithmetic circuit MAC2, or the arithmetic circuit MAC3.

[0376] 6 included in the semiconductor device of one embodiment of the present invention may be a circuit LGC shown in FIG. 16A that has a modified circuit configuration according to circumstances. For example, the circuit LGC shown in FIG. 16A may have a configuration in which a buffer circuit is provided between each of the switches SW8[1] to SW8[m] and the wirings LXS[1] to LXS[m] shown in FIG. 16A. The circuit LGC shown in FIG. 16B has a configuration in which a buffer circuit BF[1] to BF[m] are provided between each of the switches SW8[1] to SW8[m] and the wirings LXS[1] to LXS[m]. As shown in FIG. 16B, by providing the buffer circuits BF[1] to BF[m] in the circuit LGC, the electric signals (potentials) output from the circuit LGC to the wirings LXS[1] to LXS[m] can be stabilized.

[0377] Note that this embodiment mode can be appropriately combined with other embodiment modes described in this specification.

[0378] (Embodiment 4) In this embodiment, a structure of a hierarchical neural network that can perform an operation using a semiconductor device of one embodiment of the present invention will be described.

[0379] As an example, a hierarchical neural network has one input layer, one or more intermediate layers (hidden layers), and one output layer, which is composed of three or more layers in total. FIG. 18A shows an example of a hierarchical neural network 100, which has a first layer to an Rth layer (where R can be an integer of 4 or more). In particular, the first layer corresponds to the input layer, the Rth layer corresponds to the output layer, and the other layers correspond to intermediate layers. FIG. 18A shows only the (k-1)th layer and the kth layer (where k is an integer of 3 or more and R-1 or less) as intermediate layers.

[0380] Each layer of the neural network 100 has one or more neurons. In FIG. 18A, the first layer is made up of neurons N1 (1) Neuron N p (1) (where p is an integer equal to or greater than 1), and the (k-1)th layer has neurons N1 (k-1) Neuron N m (k-1) (where m is an integer equal to or greater than 1), and the kth layer has neurons N1 (k) Neuron N n (k) (where n is an integer equal to or greater than 1), and the Rth layer has neurons N1 (R) Neuron N q (R) (where q is an integer equal to or greater than 1).

[0381] In addition, in FIG. 18A, neuron N1 (1) , neuron N p (1) , neuron N1 (k-1) , neuron N m (k-1) , neuron N1 (k) , neuron N n (k) , neuron N1 (R) , neuron N q (R)In addition, the (k-1)th layer neuron N i (k-1) (where i is an integer between 1 and m), and the kth layer neuron N j (k) (Here j is an integer between 1 and n.)

[0382] Next, we will explain the transmission of signals from neurons in the previous layer to neurons in the next layer, and the signals input and output to and from each neuron. j (k) We are focusing on:

[0383] FIG. 18B shows the kth layer of neurons N j (k) and neuron N j (k) The input signal to neuron N j (k) 4 shows a signal output from the

[0384] Specifically, the (k-1)th layer neuron N1 (k-1) Neuron N m (k-1) The output signals of each (k-1) ~z m (k-1) But neuron N j (k) The output is directed to neuron N j (k) is z1 (k-1) ~z m (k-1) Depending on z j (k) Generate z j (k) is output as an output signal to each neuron in the (k+1)th layer (not shown).

[0385] The degree of signal transmission of a signal input from a neuron in the previous layer to a neuron in the next layer is determined by the connection strength (hereinafter referred to as a weighting coefficient) of the synapse that connects those neurons. In the neural network 100, the signal output from a neuron in the previous layer is multiplied by the corresponding weighting coefficient and input to a neuron in the next layer. i (k-1) and the kth layer neuron N j (k) The weight coefficient of the synapse between i (k-1) j (k) Then, the kth layer neuron N j (k) The signal input to can be expressed by equation (4.1).

[0386]

number

[0387] That is, the (k-1)th layer neuron N1 (k-1) Neuron N m (k-1) From each of these, the k-th layer neuron N j (k) When a signal is transmitted to the (k-1) ~z m (k-1) The weighting coefficients (w1 (k-1) j (k) Or even w m (k-1) j (k) ) is multiplied by the k-th layer neuron N j (k) For w1 (k-1) j (k) z1 (k-1) Or even w m (k-1) j (k) z m (k-1) At this time, the kth layer neuron Nj (k) The sum of the signals input to j (k) becomes equation (4.2).

[0388]

number

[0389] In addition, the weighting factor w1 (k-1) j (k) Or even w m (k-1) j (k) and the neuron's signal z1 (k-1) ~z m (k-1) The result of the multiplication and accumulation of and can be biased. When the bias is b, equation (4.2) can be rewritten as the following equation.

[0390]

number

[0391] Neuron N j (k) u j (k) Depending on j (k) Here, neuron N j (k) Output signal z from j (k) is defined as follows:

[0392]

number

[0393] The function f(u j (k)) is an activation function in a hierarchical neural network, and can be a step function, a linear ramp function, a sigmoid function, etc. The activation function can be the same for all neurons or different. In addition, the activation functions of neurons can be the same or different for each layer.

[0394] Meanwhile, the signal, weighting coefficient w, or bias b output by the neuron of each layer may be an analog value or a digital value. The digital value may be, for example, a binary value or a ternary value. It may also be a value with a larger number of bits. For example, in the case of an analog value, a linear ramp function, a sigmoid function, or the like may be used as an activation function. In the case of a binary digital value, for example, a step function with an output of -1 or 1, or 0 or 1 may be used. Furthermore, the signal output by the neuron of each layer may be ternary or more. In this case, the activation function may be ternary or more, for example, a step function with an output of -1, 0, or 1, or a step function with an output of 0, 1, or 2 may be used. Furthermore, for example, a step function with an output of -2, -1, 0, 1, or 2 may be used as an activation function that outputs five values. By using digital values ​​for at least one of the signals, weighting coefficients w, or biases b output by the neurons in each layer, it is possible to reduce the circuit size, reduce power consumption, increase the calculation speed, etc. Also, by using analog values ​​for at least one of the signals, weighting coefficients w, or biases b output by the neurons in each layer, it is possible to improve the accuracy of calculations.

[0395] In neural network 100, when an input signal is input to the first layer (input layer), each layer from the first layer (input layer) to the last layer (output layer) generates an output signal based on the signal input from the previous layer using formula (4.1), formula (4.2) (or formula (4.3)), and formula (4.4), and outputs the output signal to the next layer. The signal output from the last layer (output layer) corresponds to the result of calculation by neural network 100.

[0396] The calculations performed in the first layer (input layer), hidden layer, and last layer (output layer) of the neural network 100 can be performed using the calculation circuits MAC1 to MAC3 described in the first and second embodiments.

[0397] In particular, when it is desired to add a bias to the result of the multiplication and accumulation as in equation (4.3), the arithmetic circuit MAC2 described in the second embodiment may be used. In this case, the bias b in equation (4.3) is calculated by subtracting I BIAS Equivalent to [1].

[0398] The circuit XLD or the circuit SCA of the arithmetic circuits MAC1 to MAC3 described in the first and second embodiments can be applied as an example to the input layer described in the present embodiment. (2) Neuron N r (2) (r is an integer equal to or greater than 1), and consider a case in which a signal is sent from a neuron included in the first layer to a neuron included in the second layer. In this case, the memory cell array CA of the arithmetic circuits MAC1 to MAC3 has memory cells AM arranged in a matrix of p rows and r columns.

[0399] Neuron N in the first layer (input layer) s[1] (1) (s[1] is an integer between 1 and p) is the received signal z s[1] (1)is output to all neurons in the second layer (hidden layer). s[1] (1) By setting the potential (second data) output from the circuit XLD or the circuit SCA, the signal z s[1] (1) can be input to the memory cells AM[s[1],1] to AM[s[1],r] and the memory cell AMr[s[1]] included in the memory cell array CA via the wiring XL[s[1]].

[0400] At this time, a weight coefficient w s[1] (1) s[2] (2) is stored as the first data, so that the second layer (hidden layer) neuron N s[2] (2) At, the signal z s[1] (1) and the weighting factor w s[1] (1) s[2] (2) Specifically, the current I flowing through the circuit IVTC S [s[2]] to signal z s[1] (1) and the weighting factor w s[1] (1) s[2] (2) In addition, the activation function value is calculated from the result of the product sum by the circuit ACTV, and the activation function value is input to the neuron N s[2] (2) Output signal z s[2] (2) and output it from wiring NIL[s[2]].

[0401] Moreover, the arithmetic circuits MAC1 to MAC3 described in the first and second embodiments can be applied as the hidden layer. Here, a case is considered in which a signal is sent from a neuron included in the (k-1)th layer to a neuron included in the kth layer. In this case, the memory cell array CA of the arithmetic circuits MAC1 to MAC3 has memory cells AM arranged in a matrix of m rows and n columns.

[0402] Neuron N in the (k-1)th layer i (k-1) is the signal z i (k-1) The kth layer neuron N1 (k) Neuron N n (k) The signal z i (k-1) By setting the potential (second data) output from the circuit XLD, the signal z i (k-1) can be input to the memory cells AM[i,1] to AM[i,n] and the memory cell AMr[i] included in the memory cell array CA via the wiring XL[i].

[0403] At this time, a weighting coefficient w i (k-1) j (k) is stored as the first data, so that the kth layer neuron N j (k) At, the signal z i (k-1) and the weighting factor w i (k-1) j (k) Specifically, the current I flowing through the circuit IVTC S [j] to signal z i (k-1) and the weighting factor w i (k-1) j (k)In addition, the activation function value is calculated from the result of the product sum by the circuit ACTV, and the activation function value is input to the neuron N j (k) Output signal z j (k) and can be output from the wiring NIL[j].

[0404] Moreover, the arithmetic circuits MAC1 to MAC3 described in the first and second embodiments can be applied to the output layer. Here, the (R-1)th layer includes a neuron N1 (R-1) Neuron N v (R-1) (v is an integer equal to or greater than 1), and consider a case in which a signal is sent from a neuron included in the (R-1)th layer to a neuron included in the Rth layer. In this case, the memory cell array CA of the arithmetic circuits MAC1 to MAC3 has memory cells AM arranged in a matrix of v rows and q columns.

[0405] Neuron N in layer (R-1) s[R-1] (R-1) (s[R-1] is an integer between 1 and v.) s[R-1] (R-1) The Rth layer neuron N1 (R) Neuron N q (R) The signal z s[R-1] (R-1) By setting the potential (second data) output from the circuit XLD, the signal z output from the (R-1)th layer is s[R-1] (R-1) can be input to the memory cells AM[s[R-1],1] to AM[s[R-1],n] and the memory cell AMr[s[R-1]] included in the memory cell array CA via the wiring XL[s[R-1]].

[0406] At this time, a weight coefficient w s[R-1](R-1) s[R] (R) is stored as the first data, so that the Rth layer neuron N s[R] (R) At, the signal z s[R-1] (R-1) and the weighting factor w s[R-1] (R-1) s[R] (R) Specifically, the current I flowing through the circuit IVTC S [s[R]] to signal z s[R-1] (R-1) and the weighting factor w s[R-1] (R-1) s[R] (R) In addition, the activation function value is calculated from the result of the product sum by the circuit ACTV, and the activation function value is input to the neuron N in the Rth layer. s[R] (R) Output signal z s[R] (R) and it can be output from the wiring NIL[s[R]].

[0407] Incidentally, in the arithmetic circuit described in this embodiment, the number of rows of the memory cells AM is the number of neurons in the previous layer. In other words, the number of rows of the memory cells AM corresponds to the number of output signals of the neurons in the previous layer that are input to one neuron in the next layer. Also, in the arithmetic circuit described in this embodiment, the number of columns of the memory cells AM is the number of neurons in the next layer. In other words, the number of columns of the memory cells AM corresponds to the number of output signals output from the neurons in the next layer. In other words, the number of rows and columns of the memory cell array of the arithmetic circuit are determined by the number of neurons in the previous layer and the next layer, so the number of rows and columns of the memory cell array may be determined and designed according to the neural network to be configured.

[0408] For example, when the arithmetic circuit MAC1 described in the first embodiment is applied as the hidden layer, the weight coefficient w i (k-1) j (k)is used as the first data, and potentials corresponding to the first data are stored in the memory cells AM of the same column, so that the (k-1)th layer neuron N i (k-1) Output signal z from i (k-1) The amount of current I flowing through the circuit IVTC is calculated by supplying a potential corresponding to the second data from the circuit XLD or the circuit SCA to the wiring XL of each row. S From signal z i (k-1) and the weighting factor w i (k-1) j (k) The sum of products of these two is calculated, and the ACTV circuit calculates the value of the activation function according to this value. In other words, the activation function is used as a signal to activate the k-th layer neuron N j (k) Output signal z j (k) In addition, the circuit ACTV is configured to output a potential according to the value of the activation function, and the k-th layer neuron N j (k) Output signal z j (k) is input to another arithmetic circuit MAC1, the neuron N output from the (k+1)th layer in the other arithmetic circuit MAC1 is s[k+1] (k+1) (s[k+1] is an integer greater than or equal to 1 and less than or equal to the total number of neurons in the k+1th layer.) s[k+1] (k+1) can be calculated.

[0409] Specifically, the above-mentioned calculation can be performed by using the arithmetic circuit MAC4 shown in FIG. 19. The arithmetic circuit MAC4 in FIG. 19 has, as an example, an arithmetic circuit MAC1-1 having the same configuration as the arithmetic circuit MAC1 in FIG. 1, and an arithmetic circuit MAC1-2 having a configuration in which the circuit XLD, the circuit SCA, and the circuit SWC are not provided in the arithmetic circuit MAC1 in FIG. 1. Note that, in the memory cell array CA of the arithmetic circuit MAC1-1, m×n memory cells AM and m memory cells AMr are arranged in a matrix, and in the memory cell array CA of the arithmetic circuit MAC1-2, n×t (t is an integer of 1 or more and is the number of all neurons in the (k+1)th layer) memory cells AM and n memory cells AMr are arranged in a matrix. Also, the wirings NIL[1] to NIL[n] of the arithmetic circuit MAC1-1 are electrically connected to the wirings XL[1] to XL[n] of the arithmetic circuit MAC1-2, respectively.

[0410] For example, in the arithmetic circuit MAC1-1 of FIG. 19, the weight coefficient between the neuron in the (k-1)th layer and the neuron in the kth layer is stored as the first data in the memory cells AM[1,1] to AM[m,n] of the memory cell array CA, and the neuron N s[k-1] (k-1) Output signal z from s[k-1] (k-1) By applying a potential corresponding to the second data from the circuit XLD or the circuit SCA to the wiring XL of each row, the k-th layer neuron N1 (k) Neuron N n (k) Output signal z1 (k) ~z n (k) The output signal z1 (k) ~z n (k) Each value can be expressed as a potential output from the circuit ACTV to each of the wirings NIL[1] to NIL[n].

[0411] Here, in the arithmetic circuit MAC1-2 of FIG. 19, the weight coefficient between the neuron in the kth layer and the neuron in the (k+1)th layer is held as the first data in the memory cells AM[1,1] to AM[n,t] of the memory cell array CA, and the potential supplied to the wiring XL of each row, that is, the neuron N1 in the kth layer, is held as the first data in the memory cells AM[1,1] to AM[n,t] of the memory cell array CA. (k) Neuron N n (k) Output signal z1 (k) ~z n (k) By using the second data, the (k+1)th layer neuron N1 (k+1) Neuron N t (k+1) Each output signal z1 (k+1) ~z t (k+1) can be output.

[0412] As described above, the arithmetic circuits MAC1 to MAC3 can determine the number of rows and columns of the memory cell array CA according to the scale of the hierarchical neural network. Also, by using at least one of the arithmetic circuits MAC1 to MAC3 and connecting them as shown in Fig. 19, it is possible to perform an operation according to the number of layers of the hierarchical neural network.

[0413] Note that this embodiment mode can be appropriately combined with other embodiment modes described in this specification.

[0414] (Embodiment 5) In this embodiment, a structural example of the semiconductor device described in the above embodiment and a structural example of a transistor that can be applied to the semiconductor device described in the above embodiment will be described.

[0415] <Example of semiconductor device configuration> Fig. 20 is a cross-sectional view of any one of the arithmetic circuits MAC1 to MAC4 described in the above embodiments, as an example, and shows a configuration in which a photoelectric conversion element is applied to the circuit SNC as a photodiode. Specifically, the semiconductor device shown in Fig. 20 includes a transistor 300, a transistor 500, a capacitor 600, and a photoelectric conversion element 700. Fig. 22A is a cross-sectional view of the transistor 500 in the channel length direction, Fig. 22B is a cross-sectional view of the transistor 500 in the channel width direction, and Fig. 22C is a cross-sectional view of the transistor 300 in the channel width direction.

[0416] The transistor 500 is a transistor having a metal oxide in a channel formation region (OS transistor). The transistor 500 has a characteristic of having a small off-state current and a field effect mobility that does not change even at high temperatures. By applying the transistor 500 to a semiconductor device, for example, a transistor included in the arithmetic circuits MAC1 to MAC4 described in the above embodiment, a semiconductor device whose operation capability is not degraded even at high temperatures can be realized. In particular, by utilizing the characteristic of having a small off-state current, applying the transistor 500 to the transistor Tr11 can hold a potential written to the memory cell AM, the memory cell AMr, and the like for a long time. By applying the transistor 500 to the transistors Tr41 and Tr42, and the like, a potential written to the node NS of the circuit RPC can be held for a long time. By applying the transistor 500 to the transistor included in the switch SW1, a potential written to the first terminal of the capacitor C6 can be held for a long time. By applying the transistor 500 to the transistor included in the switch SW2, a potential written to the first terminal of the capacitor C7 can be held for a long time.

[0417] The transistor 500 is provided above the transistor 300, for example, and the capacitor 600 is provided above the transistor 300 and the transistor 500, for example. Note that the capacitor 600 can be a capacitor included in the arithmetic circuits MAC1 to MAC4 described in the above embodiment, or the like. Note that depending on the circuit configuration, the capacitor 600 shown in FIG. 20 is not necessarily provided.

[0418] The photoelectric conversion element 700 is provided above the capacitance element 600, for example.

[0419] The transistor 300 is provided over a substrate 311 and includes a conductor 316, an insulator 315, a semiconductor region 313 formed of a part of the substrate 311, and a low-resistance region 314a and a low-resistance region 314b each functioning as a source region or a drain region. The transistor 300 can be applied to, for example, a transistor included in the arithmetic circuits MAC1 to MAC4 described in the above embodiment. Specifically, the transistor 300 can be a transistor included in the operational amplifiers OP[1] to OP[n] included in the circuit IVTC in FIG. 5A or FIG. 5B. For example, the transistor 300 can be a transistor Tr31, a transistor Tr32[1] to a transistor Tr32[n], a transistor Tr33, a transistor Tr34, a transistor Tr35, and a transistor Tr36[1] to a transistor Tr36[n]. Note that Figure 20 shows a configuration in which the gate of the transistor 300 is electrically connected to one of the source or drain of the transistor 500 via a pair of electrodes of the capacitor 600; however, depending on the configuration of the arithmetic circuits MAC1 to MAC4, one of the source or drain of the transistor 300 may be electrically connected to one of the source or drain of the transistor 500 via a pair of electrodes of the capacitor 600, or one of the source or drain of the transistor 300 may be electrically connected to the gate of the transistor 500 via a pair of electrodes of the capacitor 600, or each terminal of the transistor 300 may not be electrically connected to each terminal of the transistor 500 or each terminal of the capacitor 600.

[0420] Moreover, as the substrate 311, it is preferable to use a semiconductor substrate (for example, a single crystal substrate or a silicon substrate).

[0421] 22C, the upper surface and the side surface in the channel width direction of the semiconductor region 313 of the transistor 300 are covered with a conductor 316 via an insulator 315. By forming the transistor 300 as a fin type in this manner, the effective channel width is increased, thereby improving the on-characteristics of the transistor 300. In addition, the contribution of the electric field of the gate electrode can be increased, thereby improving the off-characteristics of the transistor 300.

[0422] The transistor 300 may be either a p-channel type or an n-channel type.

[0423] The region where the channel of the semiconductor region 313 is formed, the region nearby, the low resistance region 314a which becomes the source region or the drain region, and the low resistance region 314b preferably contain a semiconductor such as a silicon-based semiconductor, and preferably contain single crystal silicon. Alternatively, they may be formed of a material having Ge (germanium), SiGe (silicon germanium), GaAs (gallium arsenide), GaAlAs (gallium aluminum arsenide), GaN (gallium nitride), or the like. A configuration using silicon in which the effective mass is controlled by applying stress to the crystal lattice and changing the lattice spacing may be used. Alternatively, the transistor 300 may be a HEMT (High Electron Mobility Transistor) by using GaAs and GaAlAs, or the like.

[0424] The low resistance region 314a and the low resistance region 314b contain, in addition to the semiconductor material applied to the semiconductor region 313, an element that imparts n-type conductivity, such as arsenic or phosphorus, or an element that imparts p-type conductivity, such as boron.

[0425] The conductor 316 functioning as the gate electrode can be made of a conductive material such as a semiconductor material, such as silicon, containing an element that imparts n-type conductivity, such as arsenic or phosphorus, or an element that imparts p-type conductivity, such as boron, a metal material, an alloy material, or a metal oxide material.

[0426] Since the work function is determined by the material of the conductor, the threshold voltage of the transistor can be adjusted by selecting the material of the conductor. Specifically, it is preferable to use materials such as titanium nitride and tantalum nitride for the conductor. Furthermore, in order to achieve both electrical conductivity and embeddability, it is preferable to use metal materials such as tungsten and aluminum as the conductor in a laminated state, and in particular, it is preferable to use tungsten in terms of heat resistance.

[0427] 20 is just an example and is not limited to the structure, and an appropriate transistor may be used depending on the circuit configuration, driving method, and the like. For example, when the semiconductor device is a unipolar circuit including only OS transistors, the structure of the transistor 300 may be similar to that of a transistor 500 including an oxide semiconductor, as shown in FIG 21. Details of the transistor 500 will be described later.

[0428] An insulator 320, an insulator 322, an insulator 324, and an insulator 326 are stacked in this order over the transistor 300.

[0429] As the insulators 320, 322, 324, and 326, for example, silicon oxide, silicon oxynitride, silicon nitride oxide, silicon nitride, aluminum oxide, aluminum oxynitride, aluminum nitride oxide, aluminum nitride, or the like can be used.

[0430] In this specification, silicon oxynitride refers to a material having a higher oxygen content than nitrogen, silicon nitride oxide refers to a material having a higher nitrogen content than oxygen, aluminum oxynitride refers to a material having a higher oxygen content than nitrogen, and aluminum nitride oxide refers to a material having a higher nitrogen content than oxygen.

[0431] The insulator 322 may function as a planarizing film that planarizes steps caused by the transistor 300 provided thereunder. For example, the top surface of the insulator 322 may be planarized by a planarization process using a chemical mechanical polishing (CMP) method or the like to improve the planarity.

[0432] The insulator 324 is preferably a film having a barrier property that prevents diffusion of hydrogen or impurities from the substrate 311, the transistor 300, or the like to a region where the transistor 500 is provided.

[0433] As an example of a film having a barrier property against hydrogen, for example, silicon nitride formed by a CVD method can be used. Here, when hydrogen diffuses into a semiconductor element having an oxide semiconductor such as the transistor 500, the characteristics of the semiconductor element may deteriorate. Therefore, it is preferable to use a film that suppresses the diffusion of hydrogen between the transistor 500 and the transistor 300. Specifically, the film that suppresses the diffusion of hydrogen is a film that releases a small amount of hydrogen.

[0434] The amount of desorption of hydrogen can be analyzed, for example, by using thermal desorption spectrometry (TDS). For example, the amount of desorption of hydrogen from the insulator 324 is calculated as 10×10 per area of ​​the insulator 324 when the surface temperature of the film is in the range of 50° C. to 500° C. in the TDS analysis. 15 atoms / cm 2 Less than or equal to 5×10 15 atoms / cm 2 The following is acceptable.

[0435] The insulator 326 preferably has a lower dielectric constant than the insulator 324. For example, the relative dielectric constant of the insulator 326 is preferably less than 4, and more preferably less than 3. For example, the relative dielectric constant of the insulator 326 is preferably 0.7 times or less, and more preferably 0.6 times or less, the relative dielectric constant of the insulator 324. By using a material with a low dielectric constant as the interlayer film, the parasitic capacitance generated between wirings can be reduced.

[0436] A conductor 328, a conductor 330, and the like that connect to the capacitor 600 or the transistor 500 are embedded in the insulator 320, the insulator 322, the insulator 324, and the insulator 326. The conductor 328 and the conductor 330 function as a plug or a wiring. In addition, a plurality of conductors that function as a plug or a wiring may be collectively given the same reference symbol. In this specification and the like, a wiring and a plug connected to the wiring may be integrated. That is, there are cases where a part of a conductor functions as a wiring and a case where a part of a conductor functions as a plug.

[0437] As the material for each plug and wiring (conductor 328, conductor 330, etc.), a conductive material such as a metal material, an alloy material, a metal nitride material, or a metal oxide material can be used in a single layer or a laminated layer. It is preferable to use a high melting point material such as tungsten or molybdenum that has both heat resistance and conductivity, and it is preferable to use tungsten. Alternatively, it is preferable to form the wiring from a low resistance conductive material such as aluminum or copper. By using a low resistance conductive material, it is possible to reduce the wiring resistance.

[0438] A wiring layer may be provided over the insulator 326 and the conductor 330. For example, in FIG. 20 , an insulator 350, an insulator 352, and an insulator 354 are stacked in this order. A conductor 356 is formed in the insulator 350, the insulator 352, and the insulator 354. The conductor 356 functions as a plug or a wiring connected to the transistor 300. Note that the conductor 356 can be provided using a material similar to that of the conductor 328 and the conductor 330.

[0439] Note that, for example, the insulator 350 is preferably an insulator having a barrier property against hydrogen, similar to the insulator 324. The conductor 356 preferably includes a conductor having a barrier property against hydrogen. In particular, a conductor having a barrier property against hydrogen is formed in an opening of the insulator 350 having a barrier property against hydrogen. With this structure, the transistor 300 and the transistor 500 can be separated by a barrier layer, and diffusion of hydrogen from the transistor 300 to the transistor 500 can be suppressed.

[0440] Note that, for example, tantalum nitride or the like may be used as the conductor having a barrier property against hydrogen. By stacking tantalum nitride and tungsten having high conductivity, it is possible to suppress diffusion of hydrogen from the transistor 300 while maintaining the conductivity of the wiring. In this case, a structure in which the tantalum nitride layer having a barrier property against hydrogen is in contact with the insulator 350 having a barrier property against hydrogen is preferable.

[0441] A wiring layer may be provided over the insulator 354 and the conductor 356. For example, in FIG. 20, an insulator 360, an insulator 362, and an insulator 364 are stacked in this order. A conductor 366 is formed in the insulator 360, the insulator 362, and the insulator 364. The conductor 366 functions as a plug or a wiring. The conductor 366 can be provided using a material similar to that of the conductor 328 and the conductor 330.

[0442] Note that, for example, the insulator 360 is preferably an insulator having a barrier property against hydrogen, similar to the insulator 324. The conductor 366 preferably includes a conductor having a barrier property against hydrogen. In particular, a conductor having a barrier property against hydrogen is formed in an opening of the insulator 360 having a barrier property against hydrogen. With this structure, the transistor 300 and the transistor 500 can be separated by a barrier layer, and diffusion of hydrogen from the transistor 300 to the transistor 500 can be suppressed.

[0443] Moreover, a wiring layer (not shown) may be provided over the insulator 364 and the conductor 366.

[0444] Although the above describes the wiring layer including the conductor 356 and the wiring layer including the conductor 366, the semiconductor device according to this embodiment is not limited to this. There may be one or less wiring layers similar to the wiring layer including the conductor 356, or there may be three or more wiring layers similar to the wiring layer including the conductor 356. Furthermore, there may be two or more wiring layers similar to the wiring layer including the conductor 366.

[0445] An insulator 510, an insulator 512, an insulator 514, and an insulator 516 are stacked in this order over the insulator 364. Any of the insulator 510, the insulator 512, the insulator 514, and the insulator 516 is preferably made of a substance that has a barrier property against oxygen, hydrogen, and the like.

[0446] For example, the insulator 510 and the insulator 514 are preferably formed using a film having a barrier property that prevents hydrogen, impurities, and the like from diffusing from the substrate 311 or a region where the transistor 300 is provided to a region where the transistor 500 is provided. Therefore, a material similar to that of the insulator 324 can be used.

[0447] As an example of a film having a barrier property against hydrogen, silicon nitride formed by a CVD method can be used. Here, when hydrogen diffuses into a semiconductor element having an oxide semiconductor such as the transistor 500, the characteristics of the semiconductor element may deteriorate. Therefore, it is preferable to use a film that suppresses the diffusion of hydrogen between the transistor 500 and the transistor 300. Specifically, the film that suppresses the diffusion of hydrogen is a film that releases a small amount of hydrogen.

[0448] As a film having a barrier property against hydrogen, for example, the insulator 510 and the insulator 514 are preferably made of a metal oxide such as aluminum oxide, hafnium oxide, or tantalum oxide.

[0449] In particular, aluminum oxide has a high blocking effect of preventing the film from permeating both oxygen and impurities such as hydrogen and moisture, which are factors that cause fluctuations in the electrical characteristics of a transistor. Therefore, aluminum oxide can prevent impurities such as hydrogen and moisture from entering the transistor 500 during and after the transistor manufacturing process. In addition, aluminum oxide can suppress the release of oxygen from the oxide that constitutes the transistor 500. Therefore, aluminum oxide is suitable for use as a protective film for the transistor 500.

[0450] For example, the insulator 512 and the insulator 516 can be formed using a material similar to that of the insulator 320. By using a material with a relatively low dielectric constant for these insulators, parasitic capacitance between wirings can be reduced. For example, the insulator 512 and the insulator 516 can be formed using a silicon oxide film, a silicon oxynitride film, or the like.

[0451] A conductor 518, a conductor constituting the transistor 500 (for example, the conductor 503), and the like are embedded in the insulator 510, the insulator 512, the insulator 514, and the insulator 516. Note that the conductor 518 functions as a plug or a wiring connected to the capacitor 600 or the transistor 300. The conductor 518 can be formed using a material similar to that of the conductor 328 and the conductor 330.

[0452] In particular, the insulator 510 and the conductor 518 in the region in contact with the insulator 514 are preferably conductors having barrier properties against oxygen, hydrogen, and water. With this structure, the transistors 300 and 500 can be separated by a layer having barrier properties against oxygen, hydrogen, and water, and diffusion of hydrogen from the transistor 300 to the transistor 500 can be suppressed.

[0453] Above the insulator 516 is a transistor 500 .

[0454] As shown in Figures 22A and 22B, the transistor 500 has a conductor 503 arranged so as to be embedded in the insulator 514 and the insulator 516, an insulator 520 arranged on the insulator 516 and the conductor 503, an insulator 522 arranged on the insulator 520, an insulator 524 arranged on the insulator 522, an oxide 530a arranged on the insulator 524, an oxide 530b arranged on the oxide 530a, conductors 542a and 542b arranged apart from each other on the oxide 530b, an insulator 580 arranged on the conductors 542a and 542b and having an opening formed therein overlapping between the conductors 542a and 542b, an oxide 530c arranged on the bottom and side surfaces of the opening, an insulator 550 arranged on the formation surface of the oxide 530c, and a conductor 560 arranged on the formation surface of the insulator 550. In this specification, conductor 542a and conductor 542b are collectively referred to as conductor 542.

[0455] 22A and 22B, it is preferable that an insulator 544 is disposed between the oxide 530a, the oxide 530b, the conductor 542a, and the conductor 542b and the insulator 580. It is preferable that the conductor 560 has a conductor 560a provided inside the insulator 550 and a conductor 560b provided so as to be embedded inside the conductor 560a, as shown in FIGS. 22A and 22B. It is preferable that an insulator 574 is disposed on the insulator 580, the conductor 560, and the insulator 550, as shown in FIGS. 22A and 22B.

[0456] In the following, oxide 530a, oxide 530b, and oxide 530c may be collectively referred to as oxide 530.

[0457] Note that in the transistor 500, a three-layer structure of the oxide 530a, the oxide 530b, and the oxide 530c is illustrated in the region where a channel is formed and in the vicinity thereof; however, one embodiment of the present invention is not limited thereto. For example, a single layer of the oxide 530b, a two-layer structure of the oxide 530b and the oxide 530a, a two-layer structure of the oxide 530b and the oxide 530c, or a stacked structure of four or more layers may be provided. In addition, in the transistor 500, the conductor 560 is illustrated as having a two-layer structure; however, one embodiment of the present invention is not limited thereto. For example, the conductor 560 may have a single-layer structure or a stacked structure of three or more layers. The transistor 500 illustrated in FIGS. 20, 22A, and 22B is an example, and the present invention is not limited to the structure, and an appropriate transistor may be used depending on the circuit configuration, the driving method, and the like.

[0458] Here, the conductor 560 functions as a gate electrode of the transistor, and the conductors 542a and 542b function as a source electrode and a drain electrode, respectively. As described above, the conductor 560 is formed so as to be embedded in the opening of the insulator 580 and in the region sandwiched between the conductors 542a and 542b. The arrangement of the conductors 560, 542a, and 542b is selected in a self-aligned manner with respect to the opening of the insulator 580. That is, in the transistor 500, the gate electrode can be arranged in a self-aligned manner between the source electrode and the drain electrode. Therefore, the conductor 560 can be formed without providing a margin for alignment, so that the area occupied by the transistor 500 can be reduced. This allows the semiconductor device to be miniaturized and highly integrated.

[0459] Furthermore, since the conductor 560 is formed in a self-aligned manner in the region between the conductor 542a and the conductor 542b, the conductor 560 does not have a region overlapping with the conductor 542a or the conductor 542b. This makes it possible to reduce the parasitic capacitance formed between the conductor 560 and the conductor 542a and between the conductor 560 and the conductor 542b. As a result, the switching speed of the transistor 500 can be improved, and high frequency characteristics can be achieved.

[0460] The conductor 560 may function as a first gate (also referred to as a top gate) electrode. The conductor 503 may function as a second gate (also referred to as a bottom gate) electrode. In this case, the threshold voltage of the transistor 500 can be controlled by changing the potential applied to the conductor 503 independently of the potential applied to the conductor 560. In particular, by applying a negative potential to the conductor 503, the threshold voltage of the transistor 500 can be made higher than 0 V, and the off-current can be reduced. Therefore, applying a negative potential to the conductor 503 can reduce the drain current when the potential applied to the conductor 560 is 0 V, compared to when a negative potential is not applied.

[0461] The conductor 503 is disposed so as to overlap the oxide 530 and the conductor 560. In this manner, when a potential is applied to the conductor 560 and the conductor 503, an electric field generated from the conductor 560 and an electric field generated from the conductor 503 are connected, and a channel formation region formed in the oxide 530 can be covered. In this specification and the like, a transistor structure in which a channel formation region is electrically surrounded by the electric fields of the first gate electrode and the second gate electrode is referred to as a surrounded channel (S-channel) structure.

[0462] The conductor 503 has a structure similar to that of the conductor 518, and the conductor 503a is formed in contact with the inner walls of the openings of the insulator 514 and the insulator 516, and the conductor 503b is formed further inward. Note that although the transistor 500 has a structure in which the conductor 503a and the conductor 503b are stacked, one embodiment of the present invention is not limited to this. For example, the conductor 503 may have a single layer structure or a stacked structure of three or more layers.

[0463] Here, the conductor 503a is preferably made of a conductive material having a function of suppressing the diffusion of impurities such as hydrogen atoms, hydrogen molecules, water molecules, and copper atoms (the impurities are less likely to permeate through). Alternatively, it is preferable to use a conductive material having a function of suppressing the diffusion of oxygen (e.g., at least one of oxygen atoms, oxygen molecules, etc.) (the oxygen is less likely to permeate through). Note that in this specification, the function of suppressing the diffusion of impurities or oxygen refers to the function of suppressing the diffusion of any one or all of the impurities or the oxygen.

[0464] For example, the conductor 503a has a function of suppressing the diffusion of oxygen, so that the conductor 503b can be prevented from being oxidized and the conductivity from decreasing.

[0465] In addition, when the conductor 503 also functions as a wiring, it is preferable that the conductor 503b is made of a highly conductive material mainly composed of tungsten, copper, or aluminum. In addition, when the conductivity of the wiring can be maintained high, the conductor 503a is not necessarily provided. Although the conductor 503b is illustrated as a single layer, it may have a laminated structure, for example, a laminate of titanium or titanium nitride and the above-mentioned conductive material.

[0466] The insulators 520, 522, and 524 function as a second gate insulating film.

[0467] Here, the insulator 524 in contact with the oxide 530 preferably contains more oxygen than the oxygen required for the stoichiometric composition. That is, an excess oxygen region is preferably formed in the insulator 524. By providing such an insulator containing excess oxygen in contact with the oxide 530, oxygen vacancies in the oxide 530 can be reduced and the reliability of the transistor 500 can be improved.

[0468] Specifically, it is preferable to use an oxide material from which some oxygen is released by heating as an insulator having an excess oxygen region. An oxide material from which oxygen is released by heating is an oxide material from which the amount of released oxygen converted into oxygen atoms is 1.0×10 18 atoms / cm 3 More than 1.0×10 19 atoms / cm 3 More preferably, 2.0×10 19 atoms / cm 3 or more than 3.0 x 10 20 atoms / cm 3 The oxide film is one having the above-mentioned properties. The surface temperature of the film during the TDS analysis is preferably in the range of 100° C. or higher and 700° C. or lower, or 100° C. or higher and 400° C. or lower.

[0469] In addition, the oxide 530 may be brought into contact with the insulator having the excess oxygen region and subjected to one or more of heat treatment, microwave treatment, and RF treatment. By carrying out such treatment, water or hydrogen in the oxide 530 can be removed. For example, a reaction occurs in the oxide 530 that breaks the bond of VoH, in other words, "V O H→V O A reaction of "H + H" occurs, resulting in dehydrogenation. Some of the hydrogen generated at this time may combine with oxygen to form HO and be removed from the oxide 530 or the insulator near the oxide 530. Some of the hydrogen may also be diffused or captured (also referred to as gettering) in the conductor 542a and the conductor 542b.

[0470] In addition, the microwave treatment is preferably performed using, for example, a device having a power source that generates high-density plasma or a device having a power source that applies RF to the substrate side. For example, high-density oxygen radicals can be generated by using a gas containing oxygen and high-density plasma, and the oxygen radicals generated by the high-density plasma can be efficiently introduced into the oxide 530 or an insulator near the oxide 530 by applying RF to the substrate side. In addition, the pressure of the microwave treatment may be set to 133 Pa or more, preferably 200 Pa or more, and more preferably 400 Pa or more. In addition, for example, oxygen and argon are used as gases to be introduced into the microwave treatment device, and the oxygen flow rate ratio (O2 / (O2+Ar)) is 50% or less, preferably 10% or more and 30% or less.

[0471] In addition, in a manufacturing process of the transistor 500, it is preferable to perform heat treatment while the surface of the oxide 530 is exposed. The heat treatment may be performed, for example, at a temperature of 100° C. or higher and 450° C. or lower, more preferably 350° C. or higher and 400° C. or lower. Note that the heat treatment is performed in an atmosphere of nitrogen gas or an inert gas, or an atmosphere containing an oxidizing gas at 10 ppm or higher, 1% or higher, or 10% or higher. For example, the heat treatment is preferably performed in an oxygen atmosphere. In this way, oxygen is supplied to the oxide 530 to reduce oxygen deficiencies (V O ) can be reduced. The heat treatment may be performed under reduced pressure. Alternatively, the heat treatment may be performed in an atmosphere containing 10 ppm or more, 1% or more, or 10% or more of an oxidizing gas in order to compensate for the desorbed oxygen after the heat treatment in a nitrogen gas or inert gas atmosphere. Alternatively, the heat treatment may be performed in an atmosphere containing 10 ppm or more, 1% or more, or 10% or more of an oxidizing gas in order to compensate for the desorbed oxygen. Alternatively, the heat treatment may be performed in an atmosphere containing 10 ppm or more, 1% or more, or 10% or more of an oxidizing gas in succession to a heat treatment in a nitrogen gas or inert gas atmosphere.

[0472] In addition, by subjecting the oxide 530 to an oxygen supplying treatment, the oxygen vacancies in the oxide 530 are repaired by the supplied oxygen. In other words, OIn addition, the reaction of the hydrogen remaining in the oxide 530 with the supplied oxygen can be removed as H2O (dehydration). As a result, the hydrogen remaining in the oxide 530 recombines with the oxygen vacancies to form V O The formation of H can be suppressed.

[0473] When the insulator 524 has an excess oxygen region, it is preferable that the insulator 522 has a function of suppressing the diffusion of oxygen (eg, oxygen atoms, oxygen molecules, etc.) (the oxygen is less likely to permeate).

[0474] The insulator 522 preferably has a function of suppressing diffusion of oxygen, impurities, and the like, so that oxygen contained in the oxide 530 does not diffuse toward the insulator 520. Furthermore, reaction of the conductor 503 with oxygen contained in the insulator 524, the oxide 530, and the like can be suppressed.

[0475] The insulator 522 is preferably a single layer or a multilayer insulator containing a so-called high-k material, such as aluminum oxide, hafnium oxide, oxide containing aluminum and hafnium (hafnium aluminate), tantalum oxide, zirconium oxide, lead zirconate titanate (PZT), strontium titanate (SrTiO3), or (Ba,Sr)TiO3 (BST). As transistors become smaller and more highly integrated, problems such as leakage current may occur due to the thinning of the gate insulating film. By using a high-k material for the insulator that functions as the gate insulating film, it is possible to reduce the gate potential during transistor operation while maintaining the physical film thickness.

[0476] In particular, it is preferable to use an insulator containing an oxide of one or both of aluminum and hafnium, which are insulating materials having a function of suppressing the diffusion of impurities and oxygen (the oxygen is unlikely to permeate through them). As an insulator containing an oxide of one or both of aluminum and hafnium, it is preferable to use aluminum oxide, hafnium oxide, an oxide containing aluminum and hafnium (hafnium aluminate), or the like. When the insulator 522 is formed using such a material, the insulator 522 functions as a layer that suppresses the release of oxygen from the oxide 530 and the intrusion of impurities such as hydrogen into the oxide 530 from the periphery of the transistor 500.

[0477] Alternatively, for example, aluminum oxide, bismuth oxide, germanium oxide, niobium oxide, silicon oxide, titanium oxide, tungsten oxide, yttrium oxide, or zirconium oxide may be added to these insulators. Alternatively, these insulators may be nitrided. Silicon oxide, silicon oxynitride, or silicon nitride may be stacked on the above insulators.

[0478] In addition, it is preferable that the insulator 520 is thermally stable. For example, silicon oxide and silicon oxynitride are preferable because they are thermally stable. In addition, by combining a high-k insulator with silicon oxide or silicon oxynitride, it is possible to obtain the insulator 520 having a thermally stable laminated structure with a high relative dielectric constant.

[0479] 22A and 22B, the insulator 520, the insulator 522, and the insulator 524 are illustrated as the second gate insulating film having a three-layer stack structure, but the second gate insulating film may have a single layer, a two-layer, or a four or more layer stack structure. In this case, the second gate insulating film is not limited to a stack structure made of the same material, and may be a stack structure made of different materials.

[0480] In the transistor 500, it is preferable to use a metal oxide functioning as an oxide semiconductor for the oxide 530 including the channel formation region. For example, a metal oxide such as In-M-Zn oxide (wherein the element M is one or more selected from aluminum, gallium, yttrium, copper, vanadium, beryllium, boron, titanium, iron, nickel, germanium, zirconium, molybdenum, lanthanum, cerium, neodymium, hafnium, tantalum, tungsten, magnesium, etc.) may be used as the oxide 530. In particular, it is preferable that the In-M-Zn oxide applicable to the oxide 530 is CAAC-OS (C-Axis Aligned Crystalline Oxide Semiconductor) or CAC-OS (Cloud-Aligned Composite Oxide Semiconductor). In addition, In-Ga oxide, In-Zn oxide, In oxide, etc. may be used as the oxide 530.

[0481] In addition, it is preferable to use a metal oxide with a low carrier concentration for the transistor 500. In order to reduce the carrier concentration of the metal oxide, the impurity concentration in the metal oxide may be reduced to reduce the defect state density. In this specification and the like, a low impurity concentration and a low defect state density are referred to as high purity intrinsic or substantially high purity intrinsic. Note that examples of impurities in the metal oxide include hydrogen, nitrogen, alkali metals, alkaline earth metals, iron, nickel, silicon, and the like.

[0482] In particular, hydrogen contained in the metal oxide reacts with oxygen that bonds with the metal atom to form water, which may cause oxygen vacancies in the metal oxide. In addition, when hydrogen enters an oxygen vacancy in the oxide 530, the oxygen vacancy and hydrogen combine to form V O May form H. V OH functions as a donor and may generate electrons as carriers. In addition, some of the hydrogen may bond with oxygen that bonds with metal atoms to generate electrons as carriers. Therefore, a transistor using a metal oxide containing a large amount of hydrogen is likely to have normally-on characteristics. In addition, hydrogen in a metal oxide is easily mobile due to stress such as heat or an electric field, so if a metal oxide contains a large amount of hydrogen, the reliability of the transistor may be deteriorated. In one embodiment of the present invention, V in the oxide 530 O It is preferable to reduce H as much as possible and make it high-purity intrinsic or substantially high-purity intrinsic. O In order to obtain a metal oxide with a sufficiently reduced amount of H, it is important to remove impurities such as water and hydrogen from the metal oxide (sometimes referred to as dehydration or dehydrogenation treatment) and to supply oxygen to the metal oxide to compensate for the oxygen deficiency (sometimes referred to as oxygen addition treatment). O By using a metal oxide in which impurities such as H are sufficiently reduced for the channel formation region of a transistor, stable electrical characteristics can be obtained.

[0483] A defect in which hydrogen has entered an oxygen vacancy can function as a donor for a metal oxide. However, it is difficult to quantitatively evaluate the defect. Therefore, in a metal oxide, the carrier concentration may be used instead of the donor concentration. Therefore, in this specification, the carrier concentration assuming a state in which no electric field is applied may be used as a parameter of the metal oxide, instead of the donor concentration. In other words, the "carrier concentration" described in this specification may be rephrased as the "donor concentration".

[0484] Therefore, when a metal oxide is used for the oxide 530, it is preferable that hydrogen in the metal oxide is reduced as much as possible. Specifically, in the metal oxide, the hydrogen concentration obtained by secondary ion mass spectrometry (SIMS) is 1×10 20 atoms / cm 3 Less than 1 x 10 19 atoms / cm3 less than 5×10 18 atoms / cm 3 less than 1×10 18 atoms / cm 3 By using a metal oxide in which impurities such as hydrogen are sufficiently reduced for a channel formation region of a transistor, stable electrical characteristics can be obtained.

[0485] In addition, when a metal oxide is used for the oxide 530, the metal oxide is a semiconductor that has a wide band gap and is intrinsic (also called I-type) or substantially intrinsic, and the carrier concentration of the metal oxide in the channel formation region is 1×10 18 cm -3 Preferably less than 1×10 17 cm -3 More preferably, it is less than 1×10 16 cm -3 More preferably, it is less than 1×10 13 cm -3 More preferably, it is less than 1×10 12 cm -3 The lower limit of the carrier concentration of the metal oxide in the channel formation region is not particularly limited, but is preferably, for example, 1×10 -9 cm -3 It can be said that:

[0486] Furthermore, when a metal oxide is used for the oxide 530, when the conductors 542a and 542b come into contact with the oxide 530, oxygen in the oxide 530 may diffuse to the conductors 542a and 542b, and the conductors 542a and 542b may be oxidized. When the conductors 542a and 542b are oxidized, the conductivity of the conductors 542a and 542b is likely to decrease. The diffusion of oxygen in the oxide 530 to the conductors 542a and 542b can be expressed in other words as the conductors 542a and 542b absorbing the oxygen in the oxide 530.

[0487] Furthermore, oxygen in the oxide 530 may diffuse into the conductor 542a and the conductor 542b, forming a heterogeneous layer between the conductor 542a and the oxide 530b and between the conductor 542b and the oxide 530b. Since the heterogeneous layer contains more oxygen than the conductor 542a and the conductor 542b, it is presumed that the heterogeneous layer has insulating properties. In this case, the three-layer structure of the conductor 542a or the conductor 542b, the heterogeneous layer, and the oxide 530b can be regarded as a three-layer structure made of a metal-insulator-semiconductor, and may be referred to as a metal-insulator-semiconductor (MIS) structure or a diode junction structure mainly based on the MIS structure.

[0488] Note that the above-mentioned different layer is not limited to being formed between the conductor 542a and the oxide 530b, and the different layer may be formed, for example, between the conductor 542a and the oxide 530c and the different layer between the conductor 542b and the oxide 530c.

[0489] The metal oxide that functions as a channel formation region in the oxide 530 preferably has a band gap of 2 eV or more, preferably 2.5 eV or more. In this manner, by using a metal oxide with a wide band gap, the off-state current of the transistor can be reduced.

[0490] The oxide 530 has the oxide 530a below the oxide 530b, so that the diffusion of impurities from structures formed below the oxide 530a to the oxide 530b can be suppressed. Also, the oxide 530 has the oxide 530c on the oxide 530b, so that the diffusion of impurities from structures formed above the oxide 530c to the oxide 530b can be suppressed.

[0491] The oxide 530 preferably has a laminated structure of a plurality of oxide layers having different atomic ratios of metal atoms. Specifically, in the metal oxide used for the oxide 530a, the atomic ratio of element M among the constituent elements is preferably larger than the atomic ratio of element M among the constituent elements in the metal oxide used for the oxide 530b. In addition, in the metal oxide used for the oxide 530a, the atomic ratio of element M to In is preferably larger than the atomic ratio of element M to In in the metal oxide used for the oxide 530b. In addition, in the metal oxide used for the oxide 530b, the atomic ratio of In to element M is preferably larger than the atomic ratio of In to element M in the metal oxide used for the oxide 530a. In addition, the oxide 530c can use a metal oxide that can be used for the oxide 530a or the oxide 530b.

[0492] Specifically, the oxide 530a may be a metal oxide having an atomic ratio of In, Ga, and Zn of In:Ga:Zn=1:3:4 or 1:1:0.5. The oxide 530b may be a metal oxide having an atomic ratio of In, Ga, and Zn of In:Ga:Zn=4:2:3 or 1:1:1. The oxide 530c may be a metal oxide having an atomic ratio of In, Ga, and Zn of In:Ga:Zn=1:3:4 and an atomic ratio of Ga and Zn of Ga:Zn=2:1 or Ga:Zn=2:5. Specific examples of the oxide 530c having a layered structure include layered structures in which the atomic ratios of In, Ga, and Zn are In:Ga:Zn=4:2:3 and In:Ga:Zn=1:3:4, layered structures in which the atomic ratios of Ga and Zn are Ga:Zn=2:1 and In:Ga:Zn=4:2:3, layered structures in which the atomic ratios of Ga and Zn are Ga:Zn=2:5 and In:Ga:Zn=4:2:3, and layered structures in which gallium oxide and the atomic ratio of In, Ga, and Zn are In:Ga:Zn=4:2:3.

[0493] Furthermore, for example, when the atomic ratio of In to element M in the metal oxide used for oxide 530a is smaller than the atomic ratio of In to element M in the metal oxide used for oxide 530b, an In-Ga-Zn oxide having an atomic ratio of In, Ga, and Zn of In:Ga:Zn=5:1:6 or thereabouts, In:Ga:Zn=5:1:3 or thereabouts, In:Ga:Zn=10:1:3 or thereabouts, or the like, can be used as oxide 530b.

[0494] In addition to the compositions described above, the oxide 530b may be a metal oxide having a composition of In:Zn=2:1, a composition of In:Zn=5:1, a composition of In:Zn=10:1, or a composition close to any one of these.

[0495] It is preferable to combine these oxides 530a, 530b, and 530c while satisfying the above-mentioned atomic ratio relationship. For example, it is preferable to use metal oxides having a composition of In:Ga:Zn=1:3:4 for the oxides 530a and 530c, and metal oxides having a composition of In:Ga:Zn=4:2:3 to 4.1 for the oxides 530b. The above composition indicates the atomic ratio in the oxide formed on the substrate, or the atomic ratio in the sputtering target. In addition, it is preferable to increase the ratio of In in the composition of the oxide 530b, since this can increase the on-current or field effect mobility of the transistor.

[0496] In addition, the energy of the conduction band minimum of the oxide 530a and the oxide 530c is preferably higher than that of the oxide 530b. In other words, the electron affinity of the oxide 530a and the oxide 530c is preferably smaller than that of the oxide 530b.

[0497] Here, the energy level of the conduction band minimum changes gradually at the junction of the oxide 530a, the oxide 530b, and the oxide 530c. In other words, it can be said that the energy level of the conduction band minimum at the junction of the oxide 530a, the oxide 530b, and the oxide 530c changes continuously or is a continuous junction. To achieve this, it is preferable to reduce the defect level density of the mixed layer formed at the interface between the oxide 530a and the oxide 530b and the interface between the oxide 530b and the oxide 530c.

[0498] Specifically, the oxides 530a and 530b, and the oxides 530b and 530c have a common element other than oxygen (as a main component), so that a mixed layer with a low density of defect states can be formed. For example, when the oxide 530b is an In-Ga-Zn oxide, the oxides 530a and 530c may be made of an In-Ga-Zn oxide, a Ga-Zn oxide, or a gallium oxide.

[0499] At this time, the main carrier path is the oxide 530b. By configuring the oxide 530a and the oxide 530c as described above, the defect state density at the interface between the oxide 530a and the oxide 530b and at the interface between the oxide 530b and the oxide 530c can be reduced. Therefore, the effect of interface scattering on carrier conduction is reduced, and the transistor 500 can obtain a high on-state current.

[0500] Conductors 542a and 542b functioning as a source electrode and a drain electrode are provided on the oxide 530b. As the conductors 542a and 542b, it is preferable to use a metal element selected from aluminum, chromium, copper, silver, gold, platinum, tantalum, nickel, titanium, molybdenum, tungsten, hafnium, vanadium, niobium, manganese, magnesium, zirconium, beryllium, indium, ruthenium, iridium, strontium, and lanthanum, an alloy containing the above-mentioned metal element as a component, or an alloy combining the above-mentioned metal elements. For example, it is preferable to use tantalum nitride, titanium nitride, tungsten, a nitride containing titanium and aluminum, a nitride containing tantalum and aluminum, ruthenium oxide, ruthenium nitride, an oxide containing strontium and ruthenium, an oxide containing lanthanum and nickel, or the like. In addition, tantalum nitride, titanium nitride, nitrides containing titanium and aluminum, nitrides containing tantalum and aluminum, ruthenium oxide, ruthenium nitride, oxides containing strontium and ruthenium, and oxides containing lanthanum and nickel are conductive materials that are difficult to oxidize, or materials that maintain conductivity even when oxygen is absorbed, and are therefore preferable.Furthermore, metal nitride films such as tantalum nitride are preferable because they have barrier properties against hydrogen or oxygen.

[0501] 22A and 22B, the conductor 542a and the conductor 542b are shown as a single-layer structure, but may be a laminated structure of two or more layers. For example, a tantalum nitride film and a tungsten film may be laminated. A titanium film and an aluminum film may be laminated. A two-layer structure in which an aluminum film is laminated on a tungsten film, a two-layer structure in which a copper film is laminated on a copper-magnesium-aluminum alloy film, a two-layer structure in which a copper film is laminated on a titanium film, or a two-layer structure in which a copper film is laminated on a tungsten film may be used.

[0502] In addition, there are three-layer structures in which a titanium film or titanium nitride film is laminated on the titanium film or titanium nitride film, an aluminum film or copper film is laminated on the titanium film or titanium nitride film, and a titanium film or titanium nitride film is further formed thereon, and a three-layer structure in which a molybdenum film or molybdenum nitride film is laminated on the molybdenum film or molybdenum nitride film, an aluminum film or copper film is laminated on the molybdenum film or molybdenum nitride film, and a molybdenum film or molybdenum nitride film is further formed thereon, etc. Note that a transparent conductive material containing indium oxide, tin oxide, or zinc oxide may be used.

[0503] 22A , regions 543a and 543b may be formed as low-resistance regions at and near the interface of the oxide 530 with the conductor 542a (conductor 542b). In this case, the region 543a functions as one of the source region and the drain region, and the region 543b functions as the other of the source region and the drain region. A channel formation region is formed in a region sandwiched between the regions 543a and 543b.

[0504] By providing the conductor 542a (conductor 542b) so as to be in contact with the oxide 530, the oxygen concentration in the region 543a (region 543b) may be reduced. Also, a metal compound layer containing a metal contained in the conductor 542a (conductor 542b) and a component of the oxide 530 may be formed in the region 543a (region 543b). In such a case, the carrier concentration in the region 543a (region 543b) increases, and the region 543a (region 543b) becomes a low-resistance region.

[0505] The insulator 544 is provided to cover the conductor 542a and the conductor 542b and suppresses oxidation of the conductor 542a and the conductor 542b. In this case, the insulator 544 may be provided to cover the side surfaces of the oxide 530 and the insulator 524 and to be in contact with the insulator 522.

[0506] The insulator 544 can be a metal oxide containing one or more elements selected from hafnium, aluminum, gallium, yttrium, zirconium, tungsten, titanium, tantalum, nickel, germanium, neodymium, lanthanum, magnesium, etc. Alternatively, the insulator 544 can be silicon nitride oxide, silicon nitride, or the like.

[0507] In particular, it is preferable to use, as the insulator 544, an insulator containing an oxide of either or both of aluminum and hafnium, such as aluminum oxide, hafnium oxide, or an oxide containing aluminum and hafnium (hafnium aluminate). In particular, hafnium aluminate has higher heat resistance than a hafnium oxide film. Therefore, it is preferable because it is less likely to crystallize in a heat treatment in a later step. Note that the insulator 544 is not an essential component when the conductor 542a and the conductor 542b are made of a material having oxidation resistance or when the conductivity does not decrease significantly even when oxygen is absorbed. It may be designed appropriately depending on the desired transistor characteristics.

[0508] The insulator 544 can prevent impurities such as water and hydrogen contained in the insulator 580 from diffusing to the oxide 530b through the oxide 530c and the insulator 550. The insulator 580 can also prevent the conductor 560 from being oxidized by excess oxygen contained in the insulator 580.

[0509] The insulator 550 functions as a first gate insulating film. The insulator 550 is preferably disposed in contact with the inside (top and side surfaces) of the oxide 530c. The insulator 550 is preferably formed using an insulator that contains excess oxygen and releases oxygen by heating, similar to the insulator 524 described above.

[0510] Specifically, silicon oxide having excess oxygen, silicon oxynitride, silicon nitride oxide, silicon nitride, silicon oxide to which fluorine is added, silicon oxide to which carbon is added, silicon oxide to which carbon and nitrogen are added, and silicon oxide having vacancies can be used. In particular, silicon oxide and silicon oxynitride are preferable because they are stable against heat.

[0511] By providing an insulator that releases oxygen when heated as the insulator 550 in contact with the top surface of the oxide 530c, oxygen can be effectively supplied from the insulator 550 to the channel formation region of the oxide 530b through the oxide 530c. Similarly to the insulator 524, the concentration of impurities such as water or hydrogen in the insulator 550 is preferably reduced. The thickness of the insulator 550 is preferably 1 nm or more and 20 nm or less.

[0512] Furthermore, in order to efficiently supply excess oxygen contained in the insulator 550 to the oxide 530, a metal oxide may be provided between the insulator 550 and the conductor 560. The metal oxide preferably suppresses oxygen diffusion from the insulator 550 to the conductor 560. By providing a metal oxide that suppresses oxygen diffusion, the diffusion of excess oxygen from the insulator 550 to the conductor 560 is suppressed. That is, a decrease in the amount of excess oxygen supplied to the oxide 530 can be suppressed. Furthermore, oxidation of the conductor 560 due to the excess oxygen can be suppressed. As the metal oxide, a material that can be used for the insulator 544 may be used.

[0513] The insulator 550 may have a laminated structure, similar to the second gate insulating film. As transistors become smaller and more highly integrated, problems such as leakage current may occur due to the thinning of the gate insulating film. Therefore, by making the insulator that functions as the gate insulating film a laminated structure of a high-k material and a thermally stable material, it is possible to reduce the gate potential during transistor operation while maintaining the physical film thickness. In addition, a laminated structure that is thermally stable and has a high relative dielectric constant can be obtained.

[0514] Although the conductor 560 functioning as the first gate electrode is shown as having a two-layer structure in FIGS. 22A and 22B, it may have a single-layer structure or a laminated structure of three or more layers.

[0515] The conductor 560a is preferably made of a conductive material having a function of suppressing the diffusion of impurities such as hydrogen atoms, hydrogen molecules, water molecules, nitrogen atoms, nitrogen molecules, nitrogen oxide molecules (N2O, NO, NO2, etc.), and copper atoms. Alternatively, it is preferably made of a conductive material having a function of suppressing the diffusion of oxygen (for example, at least one of oxygen atoms, oxygen molecules, etc.). The conductor 560a has a function of suppressing the diffusion of oxygen, so that it is possible to suppress the conductor 560b from being oxidized by the oxygen contained in the insulator 550 and its conductivity from decreasing. As a conductive material having a function of suppressing the diffusion of oxygen, for example, tantalum, tantalum nitride, ruthenium, or ruthenium oxide is preferably used. In addition, an oxide semiconductor applicable to the oxide 530 can be used as the conductor 560a. In that case, the conductor 560b can be formed by a sputtering method to reduce the electrical resistance value of the conductor 560a and make it a conductor. This can be called an OC (Oxide Conductor) electrode.

[0516] The conductor 560b is preferably made of a conductive material containing tungsten, copper, or aluminum as a main component. Since the conductor 560b also functions as wiring, it is preferable to use a conductor having high conductivity. For example, a conductive material containing tungsten, copper, or aluminum as a main component can be used. The conductor 560b may have a layered structure, for example, a layered structure of titanium or titanium nitride and the above conductive material.

[0517] The insulator 580 is provided on the conductor 542a and the conductor 542b via the insulator 544. The insulator 580 preferably has an excess oxygen region. For example, the insulator 580 preferably has silicon oxide, silicon oxynitride, silicon nitride oxide, silicon nitride, silicon oxide to which fluorine has been added, silicon oxide to which carbon has been added, silicon oxide to which carbon and nitrogen have been added, silicon oxide having voids, or a resin. In particular, silicon oxide and silicon oxynitride are preferable because they are thermally stable. In particular, silicon oxide and silicon oxide having voids are preferable because they allow for easy formation of an excess oxygen region in a later step.

[0518] The insulator 580 preferably has an excess oxygen region. By providing the insulator 580, which releases oxygen when heated, in contact with the oxide 530c, oxygen in the insulator 580 can be efficiently supplied to the oxide 530 through the oxide 530c. Note that the concentration of impurities such as water or hydrogen in the insulator 580 is preferably reduced.

[0519] The opening of the insulator 580 is formed to overlap the region between the conductor 542a and the conductor 542b. As a result, the conductor 560 is formed so as to be embedded in the opening of the insulator 580 and the region sandwiched between the conductor 542a and the conductor 542b.

[0520] In miniaturizing a semiconductor device, it is necessary to shorten the gate length, but it is also necessary to prevent the conductivity of the conductor 560 from decreasing. If the film thickness of the conductor 560 is increased for that purpose, the conductor 560 may have a shape with a high aspect ratio. In this embodiment, the conductor 560 is provided so as to be embedded in the opening of the insulator 580, so that even if the conductor 560 has a shape with a high aspect ratio, the conductor 560 can be formed without collapsing during the process.

[0521] The insulator 574 is preferably provided in contact with a top surface of the insulator 580, a top surface of the conductor 560, and a top surface of the insulator 550. By forming the insulator 574 by a sputtering method, excess oxygen regions can be provided in the insulator 550 and the insulator 580. This allows oxygen to be supplied from the excess oxygen regions into the oxide 530.

[0522] For example, the insulator 574 can be a metal oxide containing one or more elements selected from hafnium, aluminum, gallium, yttrium, zirconium, tungsten, titanium, tantalum, nickel, germanium, magnesium, and the like.

[0523] In particular, aluminum oxide has high barrier properties and can suppress the diffusion of hydrogen and nitrogen even in a thin film of 0.5 nm to 3.0 nm. Therefore, aluminum oxide formed by sputtering can function as a barrier film against impurities such as hydrogen as well as an oxygen source.

[0524] An insulator 581 functioning as an interlayer film is preferably provided over the insulator 574. Like the insulator 524, the insulator 581 preferably has a reduced concentration of impurities such as water or hydrogen.

[0525] Furthermore, conductor 540a and conductor 540b are arranged in openings formed in insulator 581, insulator 574, insulator 580, and insulator 544. Conductor 540a and conductor 540b are provided facing each other with conductor 560 interposed therebetween. Conductor 540a and conductor 540b have the same structure as conductor 546 and conductor 548, which will be described later.

[0526] An insulator 582 is provided over the insulator 581. The insulator 582 is preferably made of a substance that has a barrier property against oxygen and hydrogen. Therefore, the insulator 582 can be made of a material similar to that of the insulator 514. For example, the insulator 582 is preferably made of a metal oxide such as aluminum oxide, hafnium oxide, or tantalum oxide.

[0527] In particular, aluminum oxide has a high blocking effect of preventing the film from permeating both oxygen and impurities such as hydrogen and moisture, which are factors that cause fluctuations in the electrical characteristics of a transistor. Therefore, aluminum oxide can prevent impurities such as hydrogen and moisture from entering the transistor 500 during and after the transistor manufacturing process. In addition, aluminum oxide can suppress the release of oxygen from the oxide that constitutes the transistor 500. Therefore, aluminum oxide is suitable for use as a protective film for the transistor 500.

[0528] An insulator 586 is provided over the insulator 582. The insulator 586 can be formed using a material similar to that of the insulator 320. By using a material with a relatively low dielectric constant for these insulators, parasitic capacitance between wirings can be reduced. For example, the insulator 586 can be formed using a silicon oxide film, a silicon oxynitride film, or the like.

[0529] Furthermore, conductors 546, conductors 548, etc. are embedded in insulators 520, 522, 524, 544, 580, 574, 581, 582, and 586.

[0530] The conductor 546 and the conductor 548 function as a plug or a wiring connected to the capacitor 600, the transistor 500, or the transistor 300. The conductor 546 and the conductor 548 can be formed using a material similar to that of the conductor 328 and the conductor 330.

[0531] After the transistor 500 is formed, an opening may be formed to surround the transistor 500, and an insulator having a high barrier property against hydrogen or water may be formed to cover the opening. By surrounding the transistor 500 with the insulator having a high barrier property, it is possible to prevent moisture and hydrogen from entering from the outside. Alternatively, a plurality of transistors 500 may be collectively surrounded by an insulator having a high barrier property against hydrogen or water. When an opening is formed to surround the transistor 500, for example, it is preferable to form an opening that reaches the insulator 514 or the insulator 522 and form the insulator having a high barrier property in contact with the insulator 514 or the insulator 522, since this can serve as part of the manufacturing process of the transistor 500. As the insulator having a high barrier property against hydrogen or water, for example, a material similar to that of the insulator 522 may be used.

[0532] Next, a capacitor 600 is provided above the transistor 500. The capacitor 600 includes a conductor 610, a conductor 620, and an insulator 630.

[0533] A conductor 612 may be provided over the conductor 546 and the conductor 548. The conductor 612 functions as a plug or a wiring connected to the transistor 500. The conductor 610 functions as an electrode of the capacitor 600. Note that the conductor 612 and the conductor 610 can be formed at the same time.

[0534] A metal film containing an element selected from molybdenum, titanium, tantalum, tungsten, aluminum, copper, chromium, neodymium, and scandium, or a metal nitride film containing the above-mentioned element (tantalum nitride film, titanium nitride film, molybdenum nitride film, tungsten nitride film), or the like can be used for the conductor 612 and the conductor 610. Alternatively, a conductive material 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 to which silicon oxide is added can also be used.

[0535] 20, the conductor 612 and the conductor 610 have a single-layer structure, but are not limited to this structure and may have a stacked structure of two or more layers. For example, a conductor having barrier properties and a conductor having high adhesion to the conductor having high conductivity may be formed between a conductor having barrier properties and a conductor having high conductivity.

[0536] The conductor 620 is provided so as to overlap with the conductor 610 with the insulator 630 interposed therebetween. Note that the conductor 620 can be made of a conductive material such as a metal material, an alloy material, or a metal oxide material. It is preferable to use a high melting point material such as tungsten or molybdenum that has both heat resistance and conductivity, and it is particularly preferable to use tungsten. When the conductor 620 is formed simultaneously with other structures such as a conductor, a low resistance metal material such as Cu (copper) or Al (aluminum) may be used.

[0537] An insulator 650 is provided over the conductor 620 and the insulator 630. The insulator 650 can be provided using a material similar to that of the insulator 320. The insulator 650 may also function as a planarizing film that covers the uneven shape underneath.

[0538] By using this structure, in a semiconductor device including a transistor having an oxide semiconductor, a change in electrical characteristics can be suppressed and reliability can be improved, or miniaturization or high integration can be achieved in a semiconductor device including a transistor having an oxide semiconductor.

[0539] Next, another configuration example of an OS transistor shown in FIGS. 20 and 21 will be described.

[0540] 23A and 23B are modifications of the transistor 500 shown in Figures 22A and 22B, where Figure 23A is a cross-sectional view of the transistor 500 in the channel length direction and Figure 23B is a cross-sectional view of the transistor 500 in the channel width direction. Note that the structures shown in Figures 23A and 23B can also be applied to other transistors included in the semiconductor device of one embodiment of the present invention, such as the transistor 300.

[0541] 23A and 23B differs from the transistor 500 shown in Figures 22A and 22B in that the transistor 500 includes an insulator 402 and an insulator 404. The transistor 500 also differs from the transistor 500 shown in Figures 22A and 22B in that an insulator 552 is provided in contact with a side surface of the conductor 540a and an insulator 552 is provided in contact with a side surface of the conductor 540b. The transistor 500 also differs from the transistor 500 shown in Figures 22A and 22B in that the transistor 500 does not include an insulator 520.

[0542] 23A and 23B, the insulator 402 is provided over the insulator 512. Furthermore, the insulator 404 is provided over the insulator 574 and the insulator 402.

[0543] 23A and 23B, the insulator 514, the insulator 516, the insulator 522, the insulator 524, the insulator 544, the insulator 580, and the insulator 574 are provided, and the insulator 404 covers them. That is, the insulator 404 is in contact with the top surface of the insulator 574, the side surface of the insulator 574, the side surface of the insulator 580, the side surface of the insulator 544, the side surface of the insulator 524, the side surface of the insulator 522, the side surface of the insulator 516, the side surface of the insulator 514, and the top surface of the insulator 402. As a result, the oxide 530 and the like are isolated from the outside by the insulator 404 and the insulator 402.

[0544] The insulators 402 and 404 preferably have a high function of suppressing diffusion of hydrogen (for example, at least one of hydrogen atoms, hydrogen molecules, and the like) or water molecules. For example, the insulators 402 and 404 are preferably made of silicon nitride or silicon nitride oxide, which are materials with high hydrogen barrier properties. This can suppress diffusion of hydrogen and the like into the oxide 530, thereby suppressing deterioration of the characteristics of the transistor 500. Therefore, the reliability of the semiconductor device of one embodiment of the present invention can be improved.

[0545] The insulator 552 is provided in contact with the insulator 581, the insulator 404, the insulator 574, the insulator 580, and the insulator 544. The insulator 552 preferably has a function of suppressing diffusion of hydrogen or water molecules. For example, the insulator 552 is preferably made of an insulator having a high hydrogen barrier property, such as silicon nitride, aluminum oxide, or silicon nitride oxide. In particular, silicon nitride is preferably used as the insulator 552 because it has a high hydrogen barrier property. By using a material having a high hydrogen barrier property as the insulator 552, impurities such as water or hydrogen can be suppressed from diffusing from the insulator 580 or the like to the oxide 530 through the conductor 540a and the conductor 540b. Furthermore, oxygen contained in the insulator 580 can be suppressed from being absorbed by the conductor 540a and the conductor 540b. As described above, the reliability of the semiconductor device of one embodiment of the present invention can be improved.

[0546] 24 is a cross-sectional view illustrating a configuration example of a semiconductor device in which the transistor 500 and the transistor 300 have the configurations illustrated in FIGS. 23A and 23B. An insulator 552 is provided on the side surface of the conductor 546.

[0547] The transistor 500 shown in FIG. 23A and FIG. 23B may have a different configuration depending on the situation. For example, the transistor 500 shown in FIG. 23A and FIG. 23B may be modified to the transistor shown in FIG. 25A and FIG. 25B as a modified example. FIG. 25A is a cross-sectional view of the transistor in the channel length direction, and FIG. 25B is a cross-sectional view of the transistor in the channel width direction. The transistor shown in FIG. 25A and FIG. 25B is different from the transistor shown in FIG. 23A and FIG. 23B in that the oxide 530c has a two-layer structure of an oxide 530c1 and an oxide 530c2.

[0548] The oxide 530c1 is in contact with the top surface of the insulator 524, the side surface of the oxide 530a, the top surface and side surface of the oxide 530b, the side surfaces of the conductors 542a and 542b, the side surface of the insulator 544, and the side surface of the insulator 580. The oxide 530c2 is in contact with the insulator 550.

[0549] The oxide 530c1 may be, for example, an In-Zn oxide. The oxide 530c2 may be the same material as that used for the oxide 530c when the oxide 530c has a single-layer structure. For example, the oxide 530c2 may be a metal oxide having an atomic ratio of In:Ga:Zn=1:3:4, Ga:Zn=2:1, or Ga:Zn=2:5.

[0550] By forming the oxide 530c in a two-layer structure of the oxide 530c1 and the oxide 530c2, the on-current of the transistor can be increased compared to when the oxide 530c has a single-layer structure. Therefore, the transistor can be applied as, for example, a power MOS transistor. The oxide 530c of the transistor having the configuration shown in FIG. 22A and FIG. 22B can also have a two-layer structure of the oxide 530c1 and the oxide 530c2.

[0551] 25A and 25B can be applied to, for example, the transistor 300 shown in Figures 20 and 21. As described above, the transistor 300 can be applied to the semiconductor device described in the above embodiments, such as the transistors included in the arithmetic circuits MAC1 to MAC4 described in the above embodiments. Note that the transistors shown in Figures 25A and 25B can also be applied to transistors other than the transistor 300 and the transistor 500 included in the semiconductor device of one embodiment of the present invention.

[0552] 26 is a cross-sectional view illustrating a structural example of a semiconductor device in which the transistor 500 has the transistor structure illustrated in FIG. 22A and the transistor 300 has the transistor structure illustrated in FIG. 25A. Note that an insulator 552 is provided on a side surface of the conductor 546, as in the case of FIG. 24. As illustrated in FIG. 26, in the semiconductor device of one embodiment of the present invention, the transistors 300 and 500 are both OS transistors, but the transistors 300 and 500 can have different structures.

[0553] Next, a capacitive element that can be applied to the semiconductor devices of FIGS. 20, 21, 24, and 26 will be described.

[0554] Fig. 27 shows a capacitive element 600A as an example of the capacitive element 600 applicable to the semiconductor device shown in Fig. 20, Fig. 21, Fig. 24, and Fig. 26. Fig. 27A is a top view of the capacitive element 600A, Fig. 27B is a perspective view showing a cross section of the capacitive element 600A taken along dashed line L3-L4, and Fig. 27C is a perspective view showing a cross section of the capacitive element 600A taken along dashed line W3-L4.

[0555] The conductor 610 functions as one of a pair of electrodes of the capacitor 600A, and the conductor 620 functions as the other of the pair of electrodes of the capacitor 600A. The insulator 630 functions as a dielectric material sandwiched between the pair of electrodes.

[0556] As the insulator 630, for example, silicon oxide, silicon oxynitride, silicon nitride oxide, silicon nitride, aluminum oxide, aluminum oxynitride, aluminum nitride oxide, aluminum nitride, hafnium oxide, hafnium oxynitride, hafnium nitride oxide, hafnium nitride, zirconium oxide, etc. can be used, and can be provided as a stacked layer or a single layer.

[0557] In this specification, hafnium oxynitride refers to a material whose composition contains more oxygen than nitrogen, and hafnium nitride oxide refers to a material whose composition contains more nitrogen than oxygen.

[0558] Also, for example, a laminated structure of a material with high dielectric strength, such as silicon oxynitride, and a high dielectric constant (high-k) material may be used for the insulator 630. With this configuration, the capacitive element 600A can ensure sufficient capacitance by having an insulator with high dielectric constant (high-k), and the capacitive element 600A can improve its dielectric strength by having an insulator with high dielectric strength, thereby suppressing electrostatic breakdown of the capacitive element 600A.

[0559] Examples of high dielectric constant (high-k) material insulators (materials with a high relative dielectric constant) include gallium oxide, hafnium oxide, zirconium oxide, oxides having aluminum and hafnium, oxynitrides having aluminum and hafnium, oxides having silicon and hafnium, oxynitrides having silicon and hafnium, and nitrides having silicon and hafnium.

[0560] Alternatively, the insulator 630 may be a single layer or a multilayer insulator containing a high-k material such as aluminum oxide, hafnium oxide, tantalum oxide, zirconium oxide, lead zirconate titanate (PZT), strontium titanate (SrTiO3), or (Ba, Sr)TiO3 (BST). For example, when the insulator 630 is a multilayer, a three-layer stack in which zirconium oxide, aluminum oxide, and zirconium oxide are formed in this order, or a four-layer stack in which zirconium oxide, aluminum oxide, zirconium oxide, and aluminum oxide are formed in this order may be used. Alternatively, the insulator 630 may be a compound containing hafnium and zirconium. As semiconductor devices become finer and more highly integrated, problems such as leakage currents in transistors and capacitors may occur due to the thinning of the dielectrics used in the gate insulator and capacitor. By using a high-k material for the gate insulator and the insulator that functions as the dielectric used in the capacitor, it is possible to reduce the gate potential during transistor operation and ensure the capacitance of the capacitor while maintaining the physical film thickness.

[0561] The capacitor 600 is electrically connected to the conductor 546 and the conductor 548 at the bottom of the conductor 610. The conductor 546 and the conductor 548 function as plugs or wiring for connecting to other circuit elements. In addition, in Figures 27A to 27C, the conductor 546 and the conductor 548 are collectively referred to as the conductor 540.

[0562] Also, in order to clarify the figure, FIG. 27 omits the insulator 586 in which the conductor 546 and the conductor 548 are embedded, and the insulator 650 covering the conductor 620 and the insulator 630.

[0563] 20, 21, 24, 26, 27A, 27B, and 27C are planar type capacitive elements, but the shape of the capacitive element is not limited thereto. For example, the capacitive element 600 may be a cylindrical capacitive element 600B shown in FIGS. 28A to 28C.

[0564] 28A is a top view of the capacitive element 600B, FIG. 28B is a cross-sectional view of the capacitive element 600B taken along dashed line L3-L4, and FIG. 28C is a perspective view showing a cross-section of the capacitive element 600B taken along dashed line W3-L4.

[0565] In Figure 28B, the capacitor 600B has an insulator 631 on an insulator 586 in which a conductor 540 is embedded, an insulator 651 having an opening, a conductor 610 that functions as one of a pair of electrodes, and a conductor 620 that functions as the other of the pair of electrodes.

[0566] Also, in FIG. 28C, insulator 586, insulator 650, and insulator 651 are omitted for clarity.

[0567] The insulator 631 can be, for example, a material similar to that of the insulator 586.

[0568] Furthermore, a conductor 611 is embedded in the insulator 631 so as to be electrically connected to the conductor 540. The conductor 611 can be made of, for example, the same material as the conductors 330 and 518.

[0569] The insulator 651 can be, for example, a material similar to that of the insulator 586.

[0570] As described above, the insulator 651 has an opening that overlaps with the conductor 611.

[0571] The conductor 610 is formed on the bottom and side surfaces of the opening. That is, the conductor 610 overlaps with the conductor 611 and is electrically connected to the conductor 611.

[0572] The conductor 610 is formed by forming an opening in the insulator 651 by etching or the like, and then depositing the conductor 610 by sputtering, ALD, or the like. Thereafter, the conductor 610 deposited on the insulator 651 may be removed by chemical mechanical polishing (CMP) or the like, leaving the conductor 610 deposited in the opening.

[0573] The insulator 630 is located on the insulator 651 and on the surface on which the conductor 610 is formed. The insulator 630 functions as a dielectric material sandwiched between a pair of electrodes in the capacitor.

[0574] Conductor 620 is formed on insulator 630 so that the opening of insulator 651 is filled.

[0575] The insulator 650 is formed to cover the insulator 630 and the conductor 620 .

[0576] The cylindrical capacitive element 600B shown in FIG. 28 can have a higher capacitance value than the planar capacitive element 600A.

[0577] Next, the photoelectric conversion element 700 provided above the capacitance element 600 in FIGS. 20, 21, 24, and 26 will be described.

[0578] The photoelectric conversion element 700 includes, for example, a layer 767a, a layer 767b, a layer 767c, a layer 767d, and a layer 767e.

[0579] The photoelectric conversion element 700 shown in Figures 20, 21, 24, and 26 is an example of an organic photoconductive film, where the layer 767a is a lower electrode, the layer 767e is a light-transmitting upper electrode, and the layers 767b, 767c, and 767d correspond to a photoelectric conversion section. Note that, instead of the photoelectric conversion element 700 shown in Figures 20, 21, 24, and 26, for example, a pn junction photodiode, an avalanche photodiode, or the like may be used.

[0580] The layer 767a serving as the lower electrode can be either an anode or a cathode, and the layer 767b serving as the upper electrode can be the other of the anode or the cathode. Note that in this embodiment, the layer 767a serves as the cathode, and the layer 767b serves as the anode.

[0581] The layer 767a is preferably, for example, a low-resistance metal layer, etc. Specifically, the layer 767a may be, for example, aluminum, titanium, tungsten, tantalum, silver, or a laminate of these.

[0582] The layer 767e is preferably a conductive layer having a high light-transmitting property to visible light. Specifically, the layer 767e can be, for example, indium oxide, tin oxide, zinc oxide, indium-tin oxide, gallium-zinc oxide, indium-gallium-zinc oxide, graphene, or the like. Note that the layer 767e may be omitted.

[0583] In the photoelectric conversion portion, one of the layer 767b and the layer 767d can be a hole transport layer, and the other can be an electron transport layer. In addition, the layer 767c can be a photoelectric conversion layer.

[0584] For the hole transport layer, for example, molybdenum oxide can be used. For the electron transport layer, for example, C 60 , C 70 or derivatives thereof can be used.

[0585] As the photoelectric conversion layer, a mixed layer (bulk heterojunction structure) of an n-type organic semiconductor and a p-type organic semiconductor can be used.

[0586] 20, 21, 24, and 26, the insulator 751 is provided over the insulator 650, and the layer 767a is provided over the insulator 751. The insulator 752 is provided over the insulator 751 and the layer 767a. The layer 767b is provided over the insulator 752 and the layer 767a.

[0587] In addition, a layer 767c, a layer 767d, a layer 767e, and an insulator 753 are stacked in this order on the layer 767b.

[0588] For example, the insulator 751 functions as an interlayer insulating film. For example, like the insulator 324, the insulator 751 is preferably an insulator having a barrier property against hydrogen. By using an insulator having a barrier property against hydrogen for the insulator 751, diffusion of hydrogen to the transistor 500 can be suppressed. For this reason, for example, a material that can be used for the insulator 324 can be used for the insulator 751.

[0589] The insulator 752 functions as an element isolation layer, for example. Although not shown, the insulator 752 is provided to prevent a short circuit with another photoelectric conversion element located adjacent to the insulator 752. As the insulator 752, for example, an organic insulator or the like is preferably used.

[0590] For example, the insulator 753 functions as a light-transmitting planarization film. For example, a material such as silicon oxide, silicon oxynitride, silicon nitride oxide, or silicon nitride can be used for the insulator 753.

[0591] Above the insulator 753, for example, a light blocking layer 771, an optical conversion layer 772, and a microlens array 773 are provided.

[0592] The light-shielding layer 771 provided on the insulator 753 can suppress the inflow of light into adjacent pixels. A metal layer such as aluminum or tungsten can be used for the light-shielding layer 771. In addition, the metal layer and a dielectric film having a function as an anti-reflection film may be laminated.

[0593] A color filter can be used for the optical conversion layer 772 provided on the insulator 753 and the light-shielding layer 771. A color image can be obtained by assigning colors such as R (red), G (green), B (blue), Y (yellow), C (cyan), and M (magenta) to the color filters for each pixel.

[0594] Furthermore, if a wavelength cut filter is used in the optical conversion layer 772, an imaging device capable of obtaining images in various wavelength regions can be obtained.

[0595] For example, an infrared imaging device can be formed by using a filter that blocks light with wavelengths equal to or shorter than visible light in the optical conversion layer 772. A far-infrared imaging device can be formed by using a filter that blocks light with wavelengths equal to or shorter than near-infrared light in the optical conversion layer 772. An ultraviolet imaging device can be formed by using a filter that blocks light with wavelengths equal to or longer than visible light in the optical conversion layer 772.

[0596] Furthermore, if a scintillator is used for the optical conversion layer 772, it can be used as an imaging device for obtaining an image that visualizes the intensity of radiation to be used in an X-ray imaging device or the like. When radiation such as X-rays that has passed through a subject is incident on the scintillator, it is converted into light (fluorescence) such as visible light or ultraviolet light by the photoluminescence phenomenon. Then, image data is obtained by detecting the light with the photoelectric conversion element 700. Also, an imaging device having such a configuration may be used as a radiation detector or the like.

[0597] A scintillator contains a substance that, when irradiated with radiation such as X-rays or gamma rays, absorbs the energy and emits visible light, ultraviolet light, etc. For example, Gd2O2S:Tb, Gd2O2S:Pr, Gd2O2S:Eu, BaFCl:Eu, NaI, CsI, CaF2, BaF2, CeF3, LiF, LiI, ZnO, etc. dispersed in resin or ceramics can be used.

[0598] A microlens array 773 is provided on the light-shielding layer 771 and the optical conversion layer 772. Light passing through each lens of the microlens array 773 passes through the optical conversion layer 772 directly below, and is irradiated onto the photoelectric conversion element 700. By providing the microlens array 773, concentrated light can be incident on the photoelectric conversion element 700, so that photoelectric conversion can be performed efficiently. The microlens array 773 is preferably formed of a resin or glass that is highly translucent to visible light.

[0599] 20, 21, 24, and 26 show the configuration of a semiconductor device in which the photoelectric conversion element 700 using an organic photoconductive film is provided above the transistor 300 and the transistor 500, the semiconductor device of one embodiment of the present invention is not limited thereto. For example, the semiconductor device of one embodiment of the present invention may have a back-illuminated pn junction photoelectric conversion element instead of the photoelectric conversion element 700.

[0600] 29 illustrates a configuration example of a semiconductor device in which a back-illuminated pn junction photoelectric conversion element 700A is provided above the transistor 300 and the transistor 500. The semiconductor device illustrated in FIG 29 has a configuration in which a structure SA having the photoelectric conversion element 700A is attached above a substrate 311 on which the transistor 300, the transistor 500, and the capacitor 600 are provided.

[0601] The structure SA includes a light-shielding layer 771, an optical conversion layer 772, and a microlens array 773, and the above description should be referred to for the description of these.

[0602] The photoelectric conversion element 700A is a pn junction type photodiode formed on a silicon substrate, and has a layer 765b corresponding to a p-type region and a layer 765a corresponding to an n-type region. The photoelectric conversion element 700A is a buried type photodiode, and a thin p-type region (part of the layer 765b) provided on the surface side (current extraction side) of the layer 765a can suppress dark current and reduce noise.

[0603] The insulator 701, the conductor 741, and the conductor 742 function as bonding layers. The insulator 754 functions as an interlayer insulating film and a planarizing film. The insulator 755 functions as an element isolation layer. The insulator 756 functions to suppress the outflow of carriers.

[0604] The silicon substrate is provided with grooves for separating pixels, and the insulator 756 is provided on the upper surface of the silicon substrate and in the grooves. By providing the insulator 756, it is possible to prevent carriers generated in the photoelectric conversion element 700A from flowing out to adjacent pixels. The insulator 756 also has a function of suppressing the intrusion of stray light. Therefore, the insulator 756 can suppress color mixing. An anti-reflection film may be provided between the upper surface of the silicon substrate and the insulator 756.

[0605] The element isolation layer can be formed by using a LOCOS (LOCal Oxidation of Silicon) method. Alternatively, it may be formed by using a STI (Shallow Trench Isolation) method or the like. For example, an inorganic insulating film such as silicon oxide or silicon nitride, or an organic insulating film such as polyimide or acrylic can be used as the insulator 756. Note that the insulator 756 may have a multi-layer structure.

[0606] A layer 765a (n-type region, corresponding to a cathode) of the photoelectric conversion element 700A is electrically connected to the conductor 741. A layer 765b (p-type region, corresponding to an anode) is electrically connected to the conductor 742. The conductors 741 and 742 have regions embedded in the insulator 701. The surfaces of the insulator 701, the conductor 741, and the conductor 742 are flattened so that they are all at the same height.

[0607] An insulator 691 and an insulator 692 are stacked in this order above the insulator 650. Openings are provided in the insulator 691 and the insulator 692, and a conductor 743 is formed to fill the openings.

[0608] As the insulator 691, for example, a material that can be used for the insulator 751 can be used.

[0609] As the insulator 692, for example, a material that can be used for the insulator 650 can be used.

[0610] Each of the insulators 693 and 701 functions as a part of the bonding layer. Each of the conductors 741, 742, and 743 also functions as a part of the bonding layer.

[0611] For example, silicon oxide, silicon oxynitride, silicon nitride oxide, silicon nitride, titanium nitride, etc. can be used for the insulator 693 and the insulator 701. In particular, in order to bond the insulator 693 and the insulator 701 to each other, it is preferable that the insulator 693 and the insulator 701 be made of the same component.

[0612] For example, copper, aluminum, tin, zinc, tungsten, silver, platinum, or gold can be used as the conductor 741, the conductor 742, and the conductor 743. In particular, in order to easily bond the conductor 741 and the conductor 743, and the conductor 742 and the conductor 743, it is preferable to use copper, aluminum, tungsten, or gold.

[0613] Note that the conductor 741, the conductor 742, and the conductor 743 may each have a multilayer structure including a plurality of layers. For example, a first conductor may be formed on a side surface of an opening in which the conductor 741, the conductor 742, or the conductor 743 is provided, and then a second conductor may be formed to fill the opening. As the first conductor, for example, a conductor having a barrier property against hydrogen, such as tantalum nitride, can be used, and as the second conductor, for example, tungsten having high conductivity can be used.

[0614] In a pre-process for bonding the bonding layer on the substrate 311 side to the bonding layer on the structure SA side, the surfaces of the insulator 693 and the conductor 743 on the substrate 311 side are planarized so that they are equal in height. Similarly, the surfaces of the insulator 701, the conductor 741, and the conductor 742 on the structure SA side are planarized so that they are equal in height.

[0615] In the bonding process, when bonding the insulator 693 and the insulator 701, that is, bonding between insulating layers, a hydrophilic bonding method can be used in which the surfaces are polished to a high degree of flatness, then the surfaces are brought into contact with each other after being hydrophilically treated with oxygen plasma or the like to form a temporary bond, and then the final bond is performed by dehydrating the surfaces with a heat treatment. The hydrophilic bonding method also produces bonds at the atomic level, and therefore provides mechanically excellent bonds.

[0616] Furthermore, for example, when bonding conductor 741 and conductor 743, and conductor 742 and conductor 743, that is, bonding between conductors, a surface activation bonding method can be used in which oxide films and adsorption layers of impurities on the surfaces are removed by sputtering or the like, and cleaned and activated surfaces are brought into contact with each other to bond them. Alternatively, a diffusion bonding method can be used in which surfaces are bonded using a combination of temperature and pressure. In both cases, bonding occurs at the atomic level, so excellent bonding can be obtained not only electrically but also mechanically.

[0617] By carrying out the bonding process described above, the conductor 743 on the substrate 311 side can be electrically connected to the conductors 741 and 742 on the structure SA side. Also, a connection having sufficient mechanical strength can be obtained between the insulator 693 on the substrate 311 side and the insulator 701 on the structure SA side.

[0618] When bonding the substrate 311 and the structure SA, since an insulating layer and a metal layer are mixed on each bonding surface, for example, a surface activated bonding method and a hydrophilic bonding method may be combined.

[0619] For example, a method can be used in which the surface is cleaned after polishing, the surface of the metal layer is subjected to an anti-oxidation treatment, and then a hydrophilic treatment is performed before bonding. The surface of the metal layer may be made of a resistant metal such as gold and then subjected to a hydrophilic treatment. Note that bonding methods other than the above-mentioned methods may also be used.

[0620] Note that this embodiment mode can be appropriately combined with other embodiment modes described in this specification.

[0621] (Embodiment 6) In this embodiment, a metal oxide (hereinafter also referred to as an oxide semiconductor) which can be used for the OS transistor described in the above embodiment will be described.

[0622] The metal oxide preferably contains at least indium or zinc. In particular, it is preferable that the metal oxide contains indium and zinc. In addition to these, it is preferable that the metal oxide contains aluminum, gallium, yttrium, tin, etc. In addition, it may contain one or more elements selected from boron, silicon, titanium, iron, nickel, germanium, zirconium, molybdenum, lanthanum, cerium, neodymium, hafnium, tantalum, tungsten, magnesium, cobalt, etc.

[0623] <Classification of crystal structures> First, classification of crystal structures in oxide semiconductors will be described with reference to Fig. 30A. Fig. 30A is a diagram for explaining classification of crystal structures of oxide semiconductors, typically IGZO (metal oxide containing In, Ga, and Zn).

[0624] As shown in FIG. 30A, oxide semiconductors are broadly classified into "Amorphous", "Crystalline", and "Crystal". "Amorphous" includes completely amorphous. "Crystalline" includes c-axis-aligned crystalline (CAAC), nanocrystalline (nc), and cloud-aligned composite (CAC). "Crystalline" excludes single crystal, poly crystal, and completely amorphous. "Crystal" includes single crystal and poly crystal.

[0625] The structure in the bold frame shown in Fig. 30A is an intermediate state between "Amorphous" and "Crystal" and belongs to a new boundary region (New crystalline phase). In other words, this structure is completely different from the energetically unstable "Amorphous" and "Crystal".

[0626] The crystal structure of the film or substrate can be evaluated using an X-ray diffraction (XRD) spectrum. FIG. 30B shows an XRD spectrum obtained by GIXD (Grazing-Incidence XRD) measurement of the CAAC-IGZO film classified as "Crystalline" (the vertical axis represents the intensity in arbitrary units (au)). The GIXD method is also called the thin film method or the Seemann-Bohlin method. Hereinafter, the XRD spectrum obtained by the GIXD measurement shown in FIG. 30B will be simply referred to as the XRD spectrum. The composition of the CAAC-IGZO film shown in FIG. 30B is in the vicinity of In:Ga:Zn=4:2:3 [atomic ratio]. The thickness of the CAAC-IGZO film shown in FIG. 30B is 500 nm.

[0627] As shown in Figure 30B, a clear peak indicating crystallinity is detected in the XRD spectrum of the CAAC-IGZO film. Specifically, a peak indicating c-axis orientation is detected near 2θ=31° in the XRD spectrum of the CAAC-IGZO film. Note that, as shown in Figure 30B, the peak near 2θ=31° is asymmetric with respect to the angle at which the peak intensity is detected.

[0628] The crystal structure of the film or substrate can be evaluated by a diffraction pattern (also called a nanobeam electron diffraction pattern) observed by nanobeam electron diffraction (NBED). The diffraction pattern of the CAAC-IGZO film is shown in FIG. 30C. FIG. 30C is a diffraction pattern observed by NBED, which causes an electron beam to be incident parallel to the substrate. The composition of the CAAC-IGZO film shown in FIG. 30C is approximately In:Ga:Zn=4:2:3 [atomic ratio]. In the nanobeam electron diffraction method, electron diffraction is performed with a probe diameter of 1 nm.

[0629] As shown in FIG. 30C, multiple spots indicating c-axis orientation are observed in the diffraction pattern of the CAAC-IGZO film.

[0630] <<Structure of oxide semiconductor>> In addition, when focusing on the crystal structure, oxide semiconductors may be classified differently from that shown in FIG. 30A. For example, oxide semiconductors are divided into single-crystal oxide semiconductors and other non-single-crystal oxide semiconductors. Examples of non-single-crystal oxide semiconductors include the above-mentioned CAAC-OS and nc-OS. In addition, non-single-crystal oxide semiconductors include polycrystalline oxide semiconductors, pseudo-amorphous-like oxide semiconductors (a-like OS), amorphous oxide semiconductors, and the like.

[0631] Here, the above-mentioned CAAC-OS, nc-OS, and a-like OS will be described in detail.

[0632] [CAAC-OS] CAAC-OS is an oxide semiconductor having a plurality of crystalline regions, each of which has a c-axis aligned in a specific direction. The specific direction is the thickness direction of the CAAC-OS film, the normal direction of the surface on which the CAAC-OS film is formed, or the normal direction of the surface of the CAAC-OS film. The crystalline region is a region having periodic atomic arrangement. If the atomic arrangement is considered as a lattice arrangement, the crystalline region is also a region with a uniform lattice arrangement. CAAC-OS has a region in which a plurality of crystalline regions are connected in the ab-plane direction, and the region may have distortion. The distortion refers to a portion in which the direction of the lattice arrangement changes between a region with a uniform lattice arrangement and another region with a uniform lattice arrangement in the region in which the plurality of crystalline regions are connected. In other words, CAAC-OS is an oxide semiconductor having a c-axis aligned and no clear orientation in the ab-plane direction.

[0633] Each of the multiple crystalline regions is composed of one or more minute crystals (crystals with a maximum diameter of less than 10 nm). When a crystalline region is composed of one minute crystal, the maximum diameter of the crystalline region is less than 10 nm. When a crystalline region is composed of many minute crystals, the size of the crystalline region may be about several tens of nm.

[0634] In addition, in an In-M-Zn oxide (wherein element M is one or more elements selected from aluminum, gallium, yttrium, tin, titanium, etc.), the CAAC-OS tends to have a layered crystal structure (also referred to as a layered structure) in which a layer containing indium (In) and oxygen (hereinafter, In layer) and a layer containing element M, zinc (Zn), and oxygen (hereinafter, (M, Zn) layer) are stacked. Note that indium and element M are mutually substituted. Thus, the (M, Zn) layer may contain indium. Also, the In layer may contain element M. Note that the In layer may contain Zn. The layered structure is observed as a lattice image in a high-resolution TEM image, for example.

[0635] When the CAAC-OS film is subjected to structural analysis using, for example, an XRD device, a peak indicating c-axis orientation is detected at or near 2θ=31° in out-of-plane XRD measurement using θ / 2θ scan. Note that the position of the peak indicating c-axis orientation (2θ value) may vary depending on the type and composition of the metal elements constituting the CAAC-OS.

[0636] For example, a plurality of bright points (spots) are observed in the electron diffraction pattern of the CAAC-OS film, and the two spots are observed at positions symmetrical to each other with respect to the spot of the incident electron beam that has passed through the sample (also called the direct spot).

[0637] When the crystal region is observed from the specific direction, the lattice arrangement in the crystal region is based on a hexagonal lattice, but the unit lattice is not necessarily a regular hexagon, and may be a non-regular hexagon. The above distortion may have a lattice arrangement such as a pentagon or heptagon. In addition, in the CAAC-OS, no clear grain boundary can be confirmed even in the vicinity of the distortion. That is, it is found that the formation of grain boundaries is suppressed by the distortion of the lattice arrangement. This is considered to be because the CAAC-OS can tolerate distortion due to the fact that the arrangement of oxygen atoms is not dense in the ab-plane direction and the bond distance between atoms changes due to the substitution of metal atoms.

[0638] A crystal structure in which clear grain boundaries are observed is called a polycrystal. The grain boundaries are likely to become recombination centers and capture carriers, causing a decrease in the on-current of a transistor and a decrease in field effect mobility. Therefore, CAAC-OS in which clear grain boundaries are not observed is one of the crystalline oxides having a crystal structure suitable for a semiconductor layer of a transistor. In order to form a CAAC-OS, a structure containing Zn is preferable. For example, In-Zn oxide and In-Ga-Zn oxide are suitable because they can suppress the occurrence of grain boundaries more than In oxide.

[0639] The CAAC-OS is an oxide semiconductor with high crystallinity and no clear crystal grain boundaries. Therefore, it can be said that the CAAC-OS is less susceptible to a decrease in electron mobility due to crystal grain boundaries. In addition, since the crystallinity of an oxide semiconductor can be decreased by the inclusion of impurities or the generation of defects, the CAAC-OS can be said to be an oxide semiconductor with few impurities and defects (such as oxygen vacancies). Therefore, the physical properties of an oxide semiconductor having the CAAC-OS are stable. Therefore, an oxide semiconductor having the CAAC-OS is resistant to heat and has high reliability. In addition, the CAAC-OS is stable against high temperatures (so-called thermal budget) in the manufacturing process. Therefore, the use of the CAAC-OS in an OS transistor can increase the degree of freedom in the manufacturing process.

[0640] [nc-OS] The nc-OS has periodic atomic arrangement in a minute region (for example, a region of 1 nm to 10 nm, particularly a region of 1 nm to 3 nm). In other words, the nc-OS has minute crystals. Note that the size of the minute crystals is, for example, 1 nm to 10 nm, particularly 1 nm to 3 nm, and therefore the minute crystals are also called nanocrystals. In addition, the nc-OS does not show regularity in the crystal orientation between different nanocrystals. Therefore, no orientation is seen in the entire film. Therefore, depending on the analysis method, the nc-OS may be indistinguishable from an a-like OS or an amorphous oxide semiconductor. For example, when a structure analysis is performed on an nc-OS film using an XRD device, no peak indicating crystallinity is detected in out-of-plane XRD measurement using θ / 2θ scan. In addition, when an nc-OS film is subjected to electron diffraction (also called selected area electron diffraction) using an electron beam with a probe diameter larger than that of nanocrystals (for example, 50 nm or more), a diffraction pattern like a halo pattern is observed. On the other hand, when electron diffraction (also called nanobeam electron diffraction) is performed on an nc-OS film using an electron beam with a probe diameter (e.g., 1 nm to 30 nm) that is close to the size of a nanocrystal or smaller than the nanocrystal, an electron diffraction pattern in which multiple spots are observed within a ring-shaped region centered on the direct spot may be obtained.

[0641] [a-like OS] The a-like OS is an oxide semiconductor having a structure between the nc-OS and an amorphous oxide semiconductor. The a-like OS has a void or low-density region. That is, the a-like OS has lower crystallinity than the nc-OS and CAAC-OS. Moreover, the a-like OS has a higher hydrogen concentration in the film than the nc-OS and CAAC-OS.

[0642] <<Oxide semiconductor structure>> Next, the above-mentioned CAC-OS will be described in detail, with reference to its material composition.

[0643] [CAC-OS] CAC-OS is, for example, a material configuration in which elements constituting a metal oxide are unevenly distributed in a size range of 0.5 nm to 10 nm, preferably 1 nm to 3 nm, or in the vicinity thereof. In the following, a state in which one or more metal elements are unevenly distributed in a metal oxide and the regions having the metal elements are mixed in a size range of 0.5 nm to 10 nm, preferably 1 nm to 3 nm, or in the vicinity thereof, is also referred to as a mosaic or patch state.

[0644] Furthermore, CAC-OS is a composite metal oxide in which the material is separated into a first region and a second region, forming a mosaic structure, and the first region is distributed throughout the film (hereinafter, also referred to as a cloud structure). In other words, CAC-OS is a composite metal oxide in which the first region and the second region are mixed together.

[0645] Here, the atomic ratios of In, Ga, and Zn to the metal elements constituting the CAC-OS in the In-Ga-Zn oxide are represented as [In], [Ga], and [Zn], respectively. For example, in the CAC-OS in the In-Ga-Zn oxide, the first region is a region where [In] is larger than [In] in the composition of the CAC-OS film. Also, the second region is a region where [Ga] is larger than [Ga] in the composition of the CAC-OS film. Alternatively, for example, the first region is a region where [In] is larger than [In] in the second region and [Ga] is smaller than [Ga] in the second region. Also, the second region is a region where [Ga] is larger than [Ga] in the first region and [In] is smaller than [In] in the first region.

[0646] Specifically, the first region is a region mainly composed of indium oxide, indium zinc oxide, etc., and the second region is a region mainly composed of gallium oxide, gallium zinc oxide, etc. In other words, the first region can be rephrased as a region mainly composed of In, and the second region can be rephrased as a region mainly composed of Ga.

[0647] In addition, there are cases where a clear boundary between the first region and the second region cannot be observed.

[0648] For example, in the case of a CAC-OS of an In-Ga-Zn oxide, EDX mapping obtained using EDX (Energy Dispersive X-ray spectroscopy) has confirmed that the CAC-OS has a structure in which a region mainly composed of In (first region) and a region mainly composed of Ga (second region) are unevenly distributed and mixed.

[0649] When CAC-OS is used in a transistor, the conductivity due to the first region and the insulating property due to the second region act in a complementary manner, giving the CAC-OS a switching function (On / Off function). In other words, CAC-OS has a conductive function in part of the material and an insulating function in other parts of the material, and the material as a whole functions as a semiconductor. By separating the conductive function from the insulating function, it is possible to maximize both functions. Therefore, by using CAC-OS in a transistor, it is possible to achieve a high on-current (I on ), high field effect mobility (μ), and good switching behavior can be achieved.

[0650] Oxide semiconductors have a variety of structures and have different characteristics. The oxide semiconductor of one embodiment of the present invention may include two or more of an amorphous oxide semiconductor, a polycrystalline oxide semiconductor, an a-like OS, a CAC-OS, an nc-OS, and a CAAC-OS.

[0651] <Transistor Having Oxide Semiconductor> Next, the case where the oxide semiconductor is used for a transistor will be described.

[0652] By using the oxide semiconductor for a transistor, a transistor with high field-effect mobility and high reliability can be realized.

[0653] For the transistor, an oxide semiconductor having a low carrier concentration is preferably used. For example, the carrier concentration of the oxide semiconductor is 1×10 17 cm -3 Less than or equal to 1×10 15 cm -3 Less than 1×10, more preferably 13 cm -3 Less than or equal to 1×10 11 cm -3 Less than 1×10, more preferably 10 cm -3 Less than 1 x 10 -9 cm-3 The above is the case. Note that in order to reduce the carrier concentration of an oxide semiconductor film, the impurity concentration in the oxide semiconductor film may be reduced to reduce the density of defect states. In this specification and the like, an oxide semiconductor having a low impurity concentration and a low density of defect states is referred to as a high-purity intrinsic or substantially high-purity intrinsic oxide semiconductor. Note that an oxide semiconductor having a low carrier concentration may be referred to as a high-purity intrinsic or substantially high-purity intrinsic oxide semiconductor.

[0654] Furthermore, a highly purified intrinsic or substantially highly purified intrinsic oxide semiconductor film has a low density of defect states, and therefore the density of trap states might also be low.

[0655] In addition, charges trapped in the trap states of an oxide semiconductor take a long time to disappear and may behave as if they are fixed charges. Therefore, a transistor in which a channel formation region is formed in an oxide semiconductor with a high density of trap states may have unstable electrical characteristics.

[0656] Therefore, in order to stabilize the electrical characteristics of a transistor, it is effective to reduce the impurity concentration in the oxide semiconductor. In order to reduce the impurity concentration in the oxide semiconductor, it is preferable to also reduce the impurity concentration in a nearby film. Examples of impurities include hydrogen, nitrogen, alkali metals, alkaline earth metals, iron, nickel, silicon, and the like.

[0657] <Impurities> Here, the influence of each impurity in an oxide semiconductor will be described.

[0658] When an oxide semiconductor contains silicon or carbon, which is one of the Group 14 elements, defect levels are formed in the oxide semiconductor. For this reason, the concentrations of silicon and carbon in the oxide semiconductor and those near the interface with the oxide semiconductor (concentrations obtained by SIMS) are set to 2×10 18 atoms / cm 3 Less than or equal to 2×10 17 atoms / cm 3 The following applies.

[0659] In addition, when an oxide semiconductor contains an alkali metal or an alkaline earth metal, defect states may be formed and carriers may be generated. Therefore, a transistor using an oxide semiconductor containing an alkali metal or an alkaline earth metal is likely to have normally-on characteristics. For this reason, when the concentration of an alkali metal or an alkaline earth metal in an oxide semiconductor obtained by SIMS is 1×10 18 atoms / cm 3 Less than or equal to 2 x 10 16 atoms / cm 3 To the following:

[0660] Furthermore, when nitrogen is contained in an oxide semiconductor, electrons serving as carriers are generated, the carrier concentration increases, and the semiconductor is likely to become n-type. As a result, a transistor using an oxide semiconductor containing nitrogen as a semiconductor is likely to have normally-on characteristics. Alternatively, when nitrogen is contained in an oxide semiconductor, trap states may be formed. As a result, the electrical characteristics of the transistor may become unstable. For this reason, the nitrogen concentration in an oxide semiconductor obtained by SIMS is set to 5×10 19 atoms / cm 3 Less than 5 x 10 18 atoms / cm 3 Less than or equal to 1×10 18 atoms / cm 3 Less than 5×10, more preferably 17 atoms / cm 3 To the following:

[0661] Furthermore, hydrogen contained in an oxide semiconductor reacts with oxygen bonded to a metal atom to form water, which may form an oxygen vacancy. When hydrogen enters the oxygen vacancy, electrons serving as carriers may be generated. In addition, some of the hydrogen may bond with oxygen bonded to a metal atom to generate electrons serving as carriers. Therefore, a transistor using an oxide semiconductor containing hydrogen is likely to have normally-on characteristics. For this reason, it is preferable to reduce hydrogen in the oxide semiconductor as much as possible. Specifically, when the hydrogen concentration in an oxide semiconductor measured by SIMS is 1×10 20 atoms / cm 3 Less than 1 x 10 19 atoms / cm 3 less than 5×10 18 atoms / cm 3 less than 1×10 18 atoms / cm 3 Make it less than.

[0662] When an oxide semiconductor in which impurities are sufficiently reduced is used for a channel formation region of a transistor, stable electrical characteristics can be obtained.

[0663] Note that this embodiment mode can be appropriately combined with other embodiment modes described in this specification.

[0664] (Embodiment 7) This embodiment mode describes an example of a semiconductor wafer on which the semiconductor device or the like described in the above embodiment mode is formed, and an electronic component in which the semiconductor device is incorporated.

[0665] <Semiconductor wafer> First, an example of a semiconductor wafer on which semiconductor devices and the like are formed will be described with reference to FIG. 31A.

[0666] 31A includes a wafer 4801 and a plurality of circuit portions 4802 provided on the upper surface of the wafer 4801. Note that on the upper surface of the wafer 4801, a portion where the circuit portions 4802 are not present is a spacing 4803, which is a region for dicing.

[0667] The semiconductor wafer 4800 can be manufactured by forming a plurality of circuit portions 4802 on the surface of the wafer 4801 in a previous p...

Claims

[Claim 1] a first cell, a second cell, a first circuit, a second circuit, a third circuit, a fourth circuit, a first wiring, a second wiring, and a third wiring; The first cell has a first capacity; the second cell having a second capacity; the third circuit includes a sensor; the first cell is electrically connected to the first circuit via the first wiring, a first terminal of the first capacitance of the first cell is electrically connected to the third wiring; the second cell is electrically connected to the first circuit via the second wiring, a first terminal of the second capacitance of the second cell is electrically connected to the third wiring; the second circuit is electrically connected to the fourth circuit; the third circuit is electrically connected to the fourth circuit; the third wiring is electrically connected to the fourth circuit, the fourth circuit has a function of setting one of a conductive state and a non-conductive state between the second circuit and the third wiring, and a function of setting the other of the conductive state and the non-conductive state between the third circuit and the third wiring, The first cell is a function of holding a first potential at a second terminal of the first capacitance when a first input potential is input to the third wiring; a function of causing a current corresponding to the first potential to flow between the first cell and the first wiring; when the first input potential of the third wiring changes to a second input potential, the first potential held in the second terminal of the first capacitance changes to a second potential, and a current corresponding to the second potential is caused to flow between the first cell and the first wiring; The second cell is a function of holding a third potential at a second terminal of the second capacitor when the first input potential is input to the third wiring; a function of causing a current corresponding to the third potential to flow between the second cell and the second wiring; a function of changing the third potential held in the second terminal of the second capacitor to a fourth potential when the first input potential of the third wiring changes to the second input potential, and causing a current corresponding to the fourth potential to flow between the second cell and the second wiring; when a potential of the third wiring is the first input potential, a first current flows between the first circuit and the first wiring, and a second current flows between the first circuit and the second wiring; when the potential of the third wiring is the second input potential, a third current flows between the first circuit and the first wiring, and a fourth current flows between the first circuit and the second wiring; The first circuit supplies the first current I to the first wiring when the potential of the third wiring is the second input potential. 1 and a function of causing the second current amount I to flow through the first wiring when the potential of the third wiring is the second input potential. 2 and a function of flowing The first circuit generates the third current I when the potential of the third wiring is the second input potential. 3 and the amount of the fourth current I 4 and obtain I 1 -I 2 -I 3 +I 4 and generating a current in an amount of The second circuit is generating a fifth potential; a function of generating a sixth potential according to internal data input to the second circuit; a function of outputting the fifth potential as the first input potential or the sixth potential as the second input potential to the fourth circuit, The third circuit is generating a seventh electrical potential before the sensor acquires information; generating an eighth potential in response to information acquired by the sensor; and a function of outputting the seventh potential as the first input potential or the eighth potential as the second input potential to the fourth circuit. Semiconductor device.

Citation Information

Patent Citations

  • Semiconductor device, electronic equipment and authentication system

    JP2017201570A

  • Semiconductor device and electronic equipment

    JP2019047006A

  • Image pickup device

    WO2018234925A1

  • Semiconductor device

    JP2017168099A

Cited By

  • Semiconductor device

    WO2026126044A1