Semiconductor devices, electronic devices

The semiconductor device addresses power consumption and temperature susceptibility issues in neural networks by employing a hierarchical architecture with transistors and capacitors, enhancing scalability and reliability.

JP7562785B2Active Publication Date: 2024-10-07SEMICON ENERGY LAB CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2023130363
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2018-08-01
Filing Date
2023-08-09
Publication Date
2024-10-07
Estimated Expiration
2039-05-31

AI Technical Summary

Technical Problem

As the number of layers and neurons in artificial neural networks increases, the number of circuits and power consumption also increases, leading to heat generation that affects circuit characteristics and can cause variations in circuit element characteristics, necessitating a solution that reduces power consumption, temperature susceptibility, and corrects variations in circuit elements.

Method used

A semiconductor device with a hierarchical artificial neural network architecture that includes transistors, capacitors, and switching circuits to manage signal processing, correct signal inputs, and reduce power consumption by using metal oxide transistors in the channel formation region.

Benefits of technology

The solution provides a semiconductor device with reduced power consumption, lower temperature susceptibility, and the ability to correct variations in circuit elements, effectively managing the challenges of scaling in neural networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007562785000011
    Figure 0007562785000011
  • Figure 0007562785000012
    Figure 0007562785000012
  • Figure 0007562785000013
    Figure 0007562785000013
Patent Text Reader

Abstract

To provide a semiconductor device capable of product-sum operations in which dispersion in transistor characteristics is reduced.SOLUTION: A semiconductor device has: a first circuit including a drive unit, a correction unit, and a holding unit; and an inverter circuit. The first circuit has a function of generating an inverted signal of a signal input to an input terminal of the first circuit and outputting the inverted signal to the output terminal of the first circuit. The drive unit has a p-channel type first transistor and a second transistor of an n-channel type having a back gate. The correction unit has a function of correcting a threshold voltage of one or both of the first transistor and the second transistor. The holding unit has a function of holding a potential of the back gate of the second transistor. The output terminal of the first circuit is electrically connected to the input terminal of the inverter circuit. A time from when the signal is input to the input terminal of the first circuit until the signal is output from an output terminal of the inverter circuit depends on the potential of the back gate of the second transistor.SELECTED DRAWING: Figure 15
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, a 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 storage device, a signal processing device, 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" or "brainmorphic." Such integrated circuits have a non-von Neumann architecture, and are expected to be able 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 having "neurons" and "synapses" is called an artificial neural network (ANN). For example, Patent Document 1, Patent Document 2, Non-Patent Document 1, and Non-Patent Document 2 disclose a computing device that configures an artificial neural network using a ReRAM (Resistive Random Access Memory). In particular, Non-Patent Document 1 and Non-Patent Document 2 disclose a circuit that mimics the mechanism of the brain and has the computing device. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] Patent No. 5885719 [Patent Document 2] JP 2017-228295 A [Non-patent literature]

[0006] [Non-Patent Document 1] D. Miyashita et al., IEEE Asian Solid-State Circuits Conference, Nov. 7-9, 2016, S4-2(4077), pp.25-28. [Non-Patent Document 2] D. Miyashita et al., IEEE JOURNAL OF SOLID-STATE CIRCUITS, VOL.52, NO.10, Oct. 2017, pp.2679-2689. Summary of the Invention [Problem to be solved by the invention]

[0007] In general, in an artificial neural network, a calculation is performed in which the connection strength (sometimes called a weighting coefficient) of a synapse connecting two neurons is multiplied by a signal transmitted between the two neurons. In particular, in a hierarchical artificial neural network, it is necessary to multiply and add up the connection strength of each synapse between a plurality of first neurons in the first layer and one of the second neurons in the second layer and each signal input from a plurality of first neurons in the first layer to one of the second neurons in the second layer, and the number of parameters indicating the connection strength and the signal is determined according to the scale of the artificial neural network. In other words, in an artificial neural network, the greater the number of layers and neurons, the greater the number of circuits corresponding to "neurons" and "synapses", and the amount of calculations may become enormous.

[0008] As the number of circuits constituting a chip increases, the power consumption increases and the amount of heat generated during operation of the device also increases. In particular, the higher the amount of heat generated, the more the characteristics of the circuit elements included in the chip are affected, so it is preferable that the circuits constituting the chip have circuit elements that are less susceptible to temperature effects. In addition, when multiple circuit elements are formed in the chip manufacturing process, there is a possibility that the characteristics of the circuit elements will vary, so it is preferable that the circuits constituting the chip have a function of correcting the variation in the characteristics of the circuit elements.

[0009] An object of one embodiment of the present invention is to provide a semiconductor device or the like in which a hierarchical artificial neural network is constructed. Another object of one embodiment of the present invention is to provide a semiconductor device or the like with low power consumption. Another object of one embodiment of the present invention is to provide a semiconductor device or the like that is not easily affected by environmental temperature. Another object of one embodiment of the present invention is to provide a semiconductor device or the like that has a function of correcting variation in characteristics of circuit elements. Another object of one embodiment of the present invention is to provide a novel semiconductor device or the like.

[0010] 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]

[0011] (1) One embodiment of the present invention is a semiconductor device including a circuit including an input terminal, an output terminal, and a first transistor, and a first holding unit including a sixth transistor and a capacitor, the first transistor having a first gate and a second gate, the second gate of the first transistor being electrically connected to a first terminal of the sixth transistor and a first terminal of the capacitor, the first holding unit having a function of holding a potential at the first terminal of the capacitor, and having a function of determining a time from when an input signal is input to an input terminal of the circuit to when an output signal is output from an output terminal, depending on the potential.

[0012] (2) Another embodiment of the present invention includes a first circuit, the first circuit including a first input terminal, a second input terminal, a first output terminal, a second output terminal, a second circuit, a third circuit, and a switching circuit, the second circuit including a first transistor, the first transistor including a first gate and a second gate, the switching circuit including third to fifth input terminals, the first input terminal being electrically connected to an input terminal of the second circuit, the second input terminal being electrically connected to an input terminal of the third circuit, the output terminal of the second circuit being electrically connected to the third input terminal, and the output terminal of the third circuit being electrically connected to a fourth input terminal, and the second circuit corrects a signal input to the input terminal of the second circuit. and a function of outputting a corrected signal to an output terminal of the second circuit and a function of varying a time from when a signal is input to the input terminal of the second circuit to when the corrected signal is output from the output terminal of the second circuit in accordance with the potential of the second gate of the first transistor. The third circuit has a function of correcting the signal input to the input terminal of the third circuit and outputting the corrected signal to the output terminal of the third circuit. The switching circuit has a function of electrically connecting the third input terminal to one of the first output terminal and the second output terminal, and electrically connecting the fourth input terminal to the other of the first output terminal and the second output terminal in accordance with the signal input to the fifth input terminal.

[0013] (3) Also, one aspect of the present invention is a semiconductor device having a plurality of stages of first circuits in the configuration of (2) above, wherein a first output terminal of the first circuit of a previous stage is electrically connected to a first input terminal of a first circuit of a subsequent stage, a second output terminal of the first circuit of the previous stage is electrically connected to a second input terminal of the first circuit of the subsequent stage, a potential corresponding to corresponding first data is applied to each of the second gates of the first transistors of all the first circuits, and a first signal corresponding to corresponding second data is applied to each of the fifth input terminals of all the switching circuits, whereby input signals are input to the first input terminal and the second input terminal of the first circuit of the first stage, respectively, and a time difference between the respective output signals output from the first output terminal and the second output terminal of the first circuit of the final stage becomes a time corresponding to the product-sum of the first data and the second data.

[0014] (4) Furthermore, one embodiment of the present invention is a semiconductor device having the above-mentioned configuration (3), which further includes a fourth circuit electrically connected to a first output terminal and a second output terminal of a first circuit in a final stage, and which has a function of generating a signal according to a time difference between the output signals.

[0015] (5) Another embodiment of the present invention is a semiconductor device having any one of the configurations (2) to (4) above, wherein the second circuit includes a second transistor, a first holding unit, and a first inverter circuit, the first transistor is an n-channel transistor, the second transistor is a p-channel transistor, an input terminal of the second circuit is electrically connected to a gate of the second transistor and a first gate of the first transistor, the first terminal of the second transistor is electrically connected to the first terminal of the first transistor and an input terminal of the first inverter circuit, an output terminal of the first inverter circuit is electrically connected to an output terminal of the second circuit, the second gate of the first transistor is electrically connected to the first holding unit, and the first holding unit has a function of holding a potential of the second gate of the first transistor.

[0016] (6) According to another aspect of the present invention, in any one of the configurations (2) to (4), the second circuit includes second to fifth transistors, a first holding unit, a second holding unit, and a first inverter circuit, the first transistor and the third transistor are n-channel transistors, the second transistor is a p-channel transistor, the fourth transistor has a third gate and a fourth gate, an input terminal of the second circuit is electrically connected to a gate of the second transistor, a third gate of the fourth transistor, and a first gate of the first transistor, a first terminal of the second transistor is electrically connected to a first terminal of the third transistor, and a second terminal of the fifth transistor is electrically connected to a first terminal of the fifth transistor. and an input terminal of a first inverter circuit, a second terminal of the third transistor is electrically connected to the first terminal of the first transistor, a second terminal of the fifth transistor is electrically connected to the first terminal of the fourth transistor, an output terminal of the first inverter circuit is electrically connected to an output terminal of the second circuit, a second gate of the first transistor is electrically connected to a first holding section, and a fourth gate of the fourth transistor is electrically connected to a second holding section, the first holding section has a function of holding a potential of the second gate of the first transistor, and the second holding section has a function of holding a potential of the fourth gate of the fourth transistor.

[0017] (7) Furthermore, one aspect of the present invention is a semiconductor device in any one of the configurations (2) to (4) above, wherein the second circuit includes a second transistor, a third transistor, a first holding unit, and a first inverter circuit, the first transistor and the third transistor are each an n-channel transistor, and the second transistor is a p-channel transistor, an input terminal of the second circuit is electrically connected to a gate of the second transistor, a gate of the third transistor, and a first gate of the first transistor, a first terminal of the second transistor is electrically connected to a first terminal of the third transistor and an input terminal of the first inverter circuit, a second terminal of the third transistor is electrically connected to the first terminal of the first transistor, an output terminal of the first inverter circuit is electrically connected to an output terminal of the second circuit, a second gate of the first transistor is electrically connected to the first holding unit, and the first holding unit has a function of holding a potential of the second gate of the first transistor.

[0018] (8) Also, one embodiment of the present invention is a semiconductor device having any one of the configurations (2) to (4) above, wherein the second circuit has a load element, a first holding unit, and a first inverter circuit, an input terminal of the second circuit is electrically connected to a first gate of the first transistor, a first terminal of the load element is electrically connected to a first terminal of the first transistor and an input terminal of the first inverter circuit, an output terminal of the first inverter circuit is electrically connected to an output terminal of the second circuit, a second gate of the first transistor is electrically connected to the first holding unit, and the first holding unit has a function of holding a potential of the second gate of the first transistor.

[0019] (9) Another embodiment of the present invention is a semiconductor device having any one of the configurations (5) to (8) above, wherein the first holding unit has a sixth transistor and a capacitance element, a second gate of the first transistor is electrically connected to a first terminal of the sixth transistor and a first terminal of the capacitance element, and the sixth transistor has a metal oxide in a channel formation region.

[0020] (10) Also, one aspect of the present invention is a semiconductor device having any one of the configurations (5) to (8) above, wherein the first holding unit has a second inverter circuit and a third inverter circuit, the second gate of the first transistor is electrically connected to an input terminal of the second inverter circuit and an output terminal of the third inverter circuit, and the output terminal of the second inverter circuit is electrically connected to the input terminal of the third inverter circuit.

[0021] (11) Another embodiment of the present invention is a semiconductor device including a circuit, the circuit including a driver, a correction unit, and a first holding unit, the driver including a first transistor and a second transistor, the second transistor being a p-channel transistor, and the first transistor being an n-channel transistor having a first gate and a second gate, the driver including a function of generating an inverted signal of a signal input to an input terminal of the circuit and outputting the inverted signal to an output terminal of the circuit, the correction unit including a function of correcting a threshold voltage of the first transistor and / or the second transistor, and the first holding unit including a function of holding a potential of the second gate of the first transistor.

[0022] (12) Also, one aspect of the present invention is a semiconductor device having the configuration of (11) above, wherein the correction unit has first to fourth switches and a first capacitance element, an input terminal of the circuit is electrically connected to a first gate of the first transistor and a gate of the second transistor, a first terminal of the second transistor is electrically connected to a first terminal of the first switch and an output terminal of the circuit, the first terminal of the first transistor is electrically connected to a second terminal of the first switch and a first terminal of the second switch, the second terminal of the first transistor is electrically connected to a first terminal of the third switch, a second gate of the first transistor is electrically connected to a second terminal of the second switch and a first terminal of the first capacitance element, the second terminal of the first capacitance element is electrically connected to a second terminal of the third switch and a first terminal of the fourth switch, and the second terminal of the fourth switch is electrically connected to the first holding unit.

[0023] (13) Also, one aspect of the present invention is a semiconductor device having the configuration of (11) above, wherein the correction unit has third to eighth switches and a first capacitance element, an input terminal of the circuit is electrically connected to a gate of the second transistor and a first terminal of the fifth switch, a second terminal of the fifth switch is electrically connected to a first gate of the first transistor and a first terminal of the seventh switch, a first terminal of the second transistor is electrically connected to a first terminal of the first transistor and an output terminal of the circuit, a second terminal of the first transistor is electrically connected to a first terminal of the third switch, a second terminal of the seventh switch, and a first terminal of the eighth switch, a second gate of the first transistor is electrically connected to a first terminal of the sixth switch and a first terminal of the first capacitance element, a second terminal of the first capacitance element is electrically connected to a second terminal of the third switch and a first terminal of the fourth switch, and a second terminal of the fourth switch is electrically connected to the first holding unit.

[0024] (14) Also, one aspect of the present invention is a semiconductor device having the configuration of (11) above, wherein the correction unit has first to fourth switches and a first capacitance element, an input terminal of the circuit is electrically connected to a first gate of the first transistor and a gate of the second transistor, a first terminal of the second transistor is electrically connected to a first terminal of the first transistor and an output terminal of the circuit, a second terminal of the second transistor is electrically connected to a first terminal of the first switch, a first terminal of the first transistor is electrically connected to a first terminal of the second switch, a second terminal of the first transistor is electrically connected to a first terminal of the third switch, a second gate of the first transistor is electrically connected to a second terminal of the second switch and a first terminal of the first capacitance element, a second terminal of the first capacitance element is electrically connected to a second terminal of the third switch and a first terminal of the fourth switch, and a second terminal of the fourth switch is electrically connected to the first holding unit.

[0025] (15) Also, according to one aspect of the present invention, in the configuration of (11), the correction unit includes eighth to eleventh switches and a second capacitance element, an input terminal of the circuit is electrically connected to a first terminal of the tenth switch and a first gate of the first transistor, a first terminal of the second transistor is electrically connected to a first terminal of the first transistor and a first terminal of the eleventh switch, a second terminal of the second transistor is electrically connected to a first terminal of the ninth switch, and a second terminal of the tenth switch is electrically connected to a second terminal of the ninth switch and a second capacitance element. the gate of the second transistor is electrically connected to the second terminal of the eleventh switch and to the second terminal of the second capacitive element, the first terminal of the first transistor is electrically connected to an output terminal of the circuit, the eighth switch is a circuit element electrically connected between the first terminal of the first transistor and the first terminal of the second transistor or a circuit element electrically connected to the second terminal of the first transistor, and the second gate of the first transistor is electrically connected to the first holding unit.

[0026] (16) Also, one aspect of the present invention is a semiconductor device having the configuration of (11) above, wherein the correction unit has first, ninth, tenth, and eleventh switches and a second capacitance element, an input terminal of the circuit is electrically connected to a first terminal of the tenth switch and a first gate of the first transistor, a first terminal of the second transistor is electrically connected to a first terminal of the first transistor and an output terminal of the circuit, a second terminal of the second transistor is electrically connected to a first terminal of the first switch and a first terminal of the ninth switch, a second terminal of the tenth switch is electrically connected to a second terminal of the ninth switch and a first terminal of the second capacitance element, a gate of the second transistor is electrically connected to a first terminal of the eleventh switch and a second terminal of the second capacitance element, and a second gate of the first transistor is electrically connected to the first holding unit.

[0027] (17) Furthermore, one aspect of the present invention is a semiconductor device having the configuration of (12) or (13) above, wherein the correction unit has ninth to eleventh switches and a second capacitance element, and between an input terminal of the circuit and a gate of the second transistor, an input terminal of the circuit and a first terminal of the tenth switch are electrically connected, a second terminal of the tenth switch and a first terminal of the second capacitance element are electrically connected, a second terminal of the second capacitance element and a gate of the second transistor are electrically connected, a first terminal of the ninth switch is electrically connected to a first terminal of the second transistor, a second terminal of the ninth switch is electrically connected to the second terminal of the tenth switch and the first terminal of the second capacitance element, a first terminal of the eleventh switch is electrically connected to a second terminal of the second transistor, and a second terminal of the eleventh switch is electrically connected to the second terminal of the second capacitance element and the first gate of the second transistor.

[0028] (18) Also, one aspect of the present invention is a semiconductor device having the configuration of (13) above, wherein the correction unit includes a first switch, ninth to eleventh switches, and a second capacitance element, the first switch is electrically connected to the second terminal of the second transistor, the input terminal of the circuit is electrically connected to a first terminal of the tenth switch between an input terminal of the circuit and a gate of the second transistor, the second terminal of the tenth switch is electrically connected to a first terminal of the second capacitance element, the second terminal of the second capacitance element is electrically connected to a gate of the second transistor, the first terminal of the ninth switch is electrically connected to the second terminal of the second transistor and the first terminal of the first switch, the second terminal of the ninth switch is electrically connected to the second terminal of the tenth switch and the first terminal of the second capacitance element, and the first terminal of the eleventh switch is electrically connected to the second terminal of the second capacitance element and the gate of the second transistor.

[0029] (19) Also, one aspect of the present invention is a semiconductor device having the configuration of (14) above, wherein the correction unit has ninth to eleventh switches and a second capacitance element, and between an input terminal of the circuit and a gate of the second transistor, an input terminal of the circuit and a first terminal of the tenth switch are electrically connected, a second terminal of the tenth switch and a first terminal of the second capacitance element are electrically connected, a second terminal of the second capacitance element and a gate of the second transistor are electrically connected, a first terminal of the ninth switch is electrically connected to a second terminal of the second transistor and a first terminal of the first switch, a second terminal of the ninth switch is electrically connected to a second terminal of the tenth switch and a first terminal of the second capacitance element, and a first terminal of the eleventh switch is electrically connected to a second terminal of the second capacitance element and a gate of the second transistor.

[0030] (20) Another aspect of the present invention is a semiconductor device having any one of the configurations (11) to (19) above, wherein the first holding unit has a third transistor and a third capacitance element, a second gate of the first transistor is electrically connected to a first terminal of the third transistor and a first terminal of the third capacitance element, and the third transistor has a metal oxide in a channel formation region.

[0031] (21) Also, one aspect of the present invention is a semiconductor device having any one of the configurations (11) to (19) above, wherein the first holding unit has a first inverter circuit and a second inverter circuit, the second gate of the first transistor is electrically connected to an input terminal of the first inverter circuit and an output terminal of the second inverter circuit, and the output terminal of the first inverter circuit is electrically connected to the input terminal of the second inverter circuit.

[0032] (22) Furthermore, one aspect of the present invention, in any one of the configurations (11) to (21) above, includes a first circuit including two circuits, the first circuit including a first input terminal, a second input terminal, a first output terminal, a second output terminal, a second circuit, a third circuit, and a switching circuit, the switching circuit including third to fifth input terminals and third and fourth output terminals, the first input terminal being electrically connected to an input terminal of one of the two circuits, the output terminal of one of the two circuits being electrically connected to the third input terminal, the third output terminal being electrically connected to the first output terminal, the second input terminal being electrically connected to an input terminal of the other of the two circuits, the output terminal of the other of the two circuits being electrically connected to the fourth input terminal, and the fourth output terminal being electrically connected to the second output terminal, the second circuit being between the first input terminal and an input terminal of one of the two circuits, the third circuit is electrically connected either between the second input terminal and an input terminal of the other of the two circuits, between the output terminal of the other of the two circuits and a fourth input terminal, or between the fourth output terminal and the second output terminal; the second circuit has a function of generating an inverted signal of a signal input to the input terminal of the second circuit and outputting the inverted signal to an output terminal of the second circuit; the third circuit has a function of generating an inverted signal of a signal input to the input terminal of the third circuit and outputting the inverted signal to an output terminal of the third circuit; and the switching circuit has a function of electrically connecting the third input terminal to either the third output terminal or the fourth output terminal, and electrically connecting the fourth input terminal to the other of the third output terminal or the fourth output terminal, in response to a signal input to the fifth input terminal.

[0033] (23) Also, one embodiment of the present invention is a semiconductor device having a first circuit in a plurality of stages in the configuration of (22), a first output terminal of the first circuit in a preceding stage is electrically connected to a first input terminal of the first circuit in a succeeding stage, a second output terminal of the first circuit in the preceding stage is electrically connected to a second input terminal of the first circuit in a succeeding stage, a potential corresponding to a corresponding first data is held in each of the retention nodes of all the first circuits, and a first signal corresponding to a corresponding second data is applied to each of the fifth input terminals of all the switching circuits, when input signals are input to the first input terminal and the second input terminal of the first circuit in the first stage, respectively, a time difference between the respective output signals output from the first output terminal and the second output terminal of the first circuit in the final stage becomes a time corresponding to the product sum of the first data and the second data.

[0034] (24) Another embodiment of the present invention is a semiconductor device having the above configuration (23), which includes a fourth circuit, the fourth circuit being electrically connected to a first output terminal and a second output terminal of a first circuit in a final stage, and the fourth circuit having a function of generating a signal according to a time difference between the output signals.

[0035] (25) Another embodiment of the present invention is a semiconductor device having any one of the above structures (1) to (24), in which the first transistor includes a metal oxide in a channel formation region.

[0036] (26) Another embodiment of the present invention is an electronic device that includes the semiconductor device described above in any one of (1) to (25) and performs calculations on a neural network using the semiconductor device.

[0037] 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 that houses a chip in a package are examples of semiconductor devices. Also, memory devices, display devices, light-emitting devices, lighting devices, electronic devices, etc. are themselves semiconductor devices and may have semiconductor devices.

[0038] 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.).

[0039] As an example of a case where X and Y are electrically connected, one or more elements (e.g., a switch, a transistor, a capacitance element, an inductor, a resistance element, a diode, a display element, a light-emitting element, 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.

[0040] 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 (DA conversion circuits, AD 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.

[0041] In addition, when it is explicitly stated that X and Y are electrically connected, this includes the cases where X and Y are electrically connected (i.e., when they are connected with another element or circuit between them), where X and Y are functionally connected (i.e., when they are connected with another circuit between them), and where X and Y are directly connected (i.e., when they are connected without another element or circuit between them). In other words, when it is explicitly stated that X and Y are electrically connected, this is the same as when it is explicitly stated that they are simply connected.

[0042] 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.).

[0043] 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.

[0044] In addition, in this specification, 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, the terms source and drain can be replaced. In addition, in this specification, 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, 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" can be interchanged. 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.

[0045] 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.

[0046] In addition, in this specification and the like, "voltage" and "potential" can be interchanged as appropriate. "Voltage" refers to the 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." Ground potential does not necessarily mean 0V. Note that potential is relative, and the potential applied to wiring, etc. may change depending on the reference potential.

[0047] Generally, "electric current" is defined as a charge transfer phenomenon (electrical conduction) accompanying the movement of a positively charged body, but 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, "electric current" refers to a charge transfer phenomenon (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 of the current (or the 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.

[0048] 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.

[0049] 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.

[0050] 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.

[0051] 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".

[0052] In addition, the terms "electrode" and "wiring" used in this specification and the like do not limit the functionality of these components. For example, an "electrode" may be used as part of a "wiring", and vice versa. Furthermore, the terms "electrode" and "wiring" include cases where multiple "electrodes" or "wirings" are formed integrally.

[0053] 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".

[0054] In this specification and the like, the impurity of a semiconductor refers to, for example, anything 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. The inclusion of an impurity may cause, for example, the formation of DOS (Density of States) in the semiconductor, the decrease in carrier mobility, or the decrease in crystallinity. 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, or a transition metal other than the main component, and in particular, for example, hydrogen (also contained in water), lithium, sodium, silicon, boron, phosphorus, carbon, nitrogen, or the like. In the case of an oxide semiconductor, for example, oxygen vacancies may be formed by the inclusion of an impurity such as hydrogen. In addition, 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, or a Group 15 element other than oxygen and hydrogen.

[0055] 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.

[0056] 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.

[0057] An example of a mechanical switch is a switch that uses MEMS (microelectromechanical system) technology, such as a digital micromirror device (DMD). 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. Effect of the Invention

[0058] According to one embodiment of the present invention, a semiconductor device in which a hierarchical artificial neural network is constructed can be provided. According to one embodiment of the present invention, a semiconductor device with low power consumption can be provided. According to one embodiment of the present invention, a semiconductor device that is not easily affected by the temperature of the environment can be provided. According to one embodiment of the present invention, a semiconductor device having a function of correcting variation in characteristics of a circuit element can be provided. According to one embodiment of the present invention, a novel semiconductor device can be provided.

[0059] 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]

[0060] [Figure 1] 1A is a block diagram showing a configuration example of a semiconductor device, and FIGS. 1B and 1C are block diagrams showing configuration examples of a circuit included in the semiconductor device. [Diagram 2] 1A is a block diagram showing a configuration example of a circuit included in a semiconductor device, and FIGS. 1B, 1B, 1C, and 1C are circuit diagrams showing configuration examples of a circuit included in a semiconductor device. [Diagram 3] 1A to 1D are circuit diagrams showing examples of the configuration of a circuit included in a semiconductor device. [Figure 4] (A)(B) Diagram explaining a hierarchical neural network. [Diagram 5] 1A and 1B are block diagrams illustrating examples of the configuration of a circuit included in a semiconductor device. [Figure 6] FIG. 1 is a circuit diagram illustrating a configuration example of a circuit included in a semiconductor device. [Figure 7]5A, 5B, 5C, and 5D are timing charts showing an example of the operation of a circuit included in a semiconductor device. [Figure 8] 1A and 1B are circuit diagrams showing configuration examples of circuits included in a semiconductor device. [Figure 9] FIG. 1 is a block diagram illustrating a configuration example of a semiconductor device. [Figure 10] FIG. 1 is a circuit diagram illustrating a configuration example of a circuit included in a semiconductor device. [Figure 11] FIG. 1 is a block diagram illustrating a configuration example of a semiconductor device. [Figure 12] 1A to 1D are circuit diagrams showing examples of the configuration of a circuit included in a semiconductor device. [Figure 13] 1A to 1F are circuit diagrams showing examples of the configuration of a circuit included in a semiconductor device. [Figure 14] 1A and 1B are circuit diagrams showing configuration examples of circuits included in a semiconductor device. [Figure 15] 1A and 1B are block diagrams illustrating examples of the configuration of a circuit included in a semiconductor device. [Figure 16] 1A and 1B are circuit diagrams showing configuration examples of circuits included in a semiconductor device. [Figure 17] 1 is a timing chart showing an example of operation of a circuit included in a semiconductor device. [Figure 18] FIG. 1 is a circuit diagram illustrating a configuration example of a circuit included in a semiconductor device. [Figure 19] 1 is a timing chart showing an example of operation of a circuit included in a semiconductor device. [Figure 20] 1A and 1B are circuit diagrams showing configuration examples of circuits included in a semiconductor device. [Figure 21] 1 is a timing chart showing an example of operation of a circuit included in a semiconductor device. [Figure 22] FIG. 1 is a circuit diagram illustrating a configuration example of a circuit included in a semiconductor device. [Diagram 23] 1 is a timing chart showing an example of operation of a circuit included in a semiconductor device. [Figure 24] FIG. 1 is a circuit diagram illustrating a configuration example of a circuit included in a semiconductor device. [Diagram 25] FIG. 1 is a circuit diagram illustrating a configuration example of a circuit included in a semiconductor device. [Figure 26] FIG. 1 is a circuit diagram illustrating a configuration example of a circuit included in a semiconductor device. [Figure 27] FIG. 1 is a circuit diagram illustrating a configuration example of a circuit included in a semiconductor device. [Figure 28] FIG. 1 is a circuit diagram illustrating a configuration example of a circuit included in a semiconductor device. [Figure 29] FIG. 1 is a circuit diagram illustrating a configuration example of a circuit included in a semiconductor device. [Diagram 30] FIG. 1 is a circuit diagram illustrating a configuration example of a circuit included in a semiconductor device. [Diagram 31] 1A and 1B are circuit diagrams showing configuration examples of circuits included in a semiconductor device. [Diagram 32] 1A and 1B are block diagrams illustrating examples of the configuration of a circuit included in a semiconductor device. [Diagram 33] FIG. 1 is a block diagram illustrating a configuration example of a semiconductor device. [Diagram 34] 1 is a cross-sectional view showing a configuration example of a semiconductor device. [Diagram 35] 1 is a cross-sectional view showing a configuration example of a semiconductor device. [Diagram 36] 1A, 1B, and 1C are cross-sectional views showing examples of transistor structures. [Figure 37] 1A is a top view illustrating an example of a transistor structure, and FIGS. 1B and 1C are cross-sectional views illustrating an example of a transistor structure. [Figure 38] FIG. 1A is a top view illustrating an example of a transistor structure, and FIGS. 1B and 1C are cross-sectional views illustrating an example of a transistor structure. [Figure 39] FIG. 1A is a top view illustrating an example of a transistor structure, and FIGS. 1B and 1C are cross-sectional views illustrating an example of a transistor structure. [Diagram 40] FIG. 1A is a top view illustrating an example of a transistor structure, and FIGS. 1B and 1C are cross-sectional views illustrating an example of a transistor structure. [Diagram 41] FIG. 1A is a top view illustrating an example of a transistor structure, and FIGS. 1B and 1C are cross-sectional views illustrating an example of a transistor structure. [Diagram 42] 1A is a top view illustrating an example of a transistor structure, and FIG. 1B is a perspective view illustrating an example of a transistor structure. [Diagram 43] 1A and 1B are cross-sectional views illustrating examples of the structure of a transistor. [Diagram 44]FIG. 1A is a top view showing an example of the structure of a capacitive element, and FIGS. 1B and 1C are cross-sectional perspective views showing an example of the structure of a capacitive element. [Diagram 45] FIG. 1A is a top view showing a structural example of a capacitive element, FIG. 1B is a cross-sectional view showing the structural example of a capacitive element, and FIG. 1C is a cross-sectional perspective view showing the structural example of a capacitive element. [Figure 46] FIG. 1A is a perspective view showing an example of a semiconductor wafer, and FIGS. 1B, 1C, and 1D are perspective views showing examples of electronic components. [Figure 47] FIG. 1 is a perspective view showing an example of an electronic device. [Figure 48] 1A, 1B, and 1C are perspective views showing an example of an electronic device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0061] 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."

[0062] 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."

[0063] 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."

[0064] In this specification and the like, the term "metal oxide" refers to 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"). 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, or an OS for short. In addition, when an OS FET or an OS transistor is described, it can be rephrased as a transistor having a metal oxide or an oxide semiconductor.

[0065] 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.

[0066] 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.

[0067] 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.

[0068] The contents described in the embodiments refer to contents described in each embodiment using various figures or contents described using text in the specification.

[0069] 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.

[0070] The embodiments described in this specification are described with reference to the drawings. However, it is easily understood by those skilled in the art that the embodiments can be implemented in many different ways, and 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, etc., the description of some components may be omitted in order to ensure the clarity of the drawings.

[0071] 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.

[0072] 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.

[0073] (Embodiment 1) In this embodiment, an arithmetic circuit that performs arithmetic operations of a neural network, which is a semiconductor device of one embodiment of the present invention, will be described.

[0074] <Hierarchical neural network> First, a hierarchical neural network will be described. As an example, a hierarchical neural network has one input layer, one or more intermediate layers (hidden layers), and one output layer, and is composed of a total of three or more layers. FIG. 4(A) 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. 4(A) shows 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, and does not show the other intermediate layers.

[0075] Each layer of the neural network 100 has one or more neurons. In FIG. 4A, the first layer has a neuron 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).

[0076] In addition, in Fig. 4(A), 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) (where j is an integer between 1 and n) are also shown, and other neurons are omitted from the illustration.

[0077] 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:

[0078] Figure 4(B) 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

[0079] 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).

[0080] 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 before being input to a neuron in the next layer. If i is an integer between 1 and m, then the (k-1)th layer neuron N 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 (1.1).

[0081]

number

[0082] 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 N j (k) The sum of the signals input to j (k) becomes equation (1.2).

[0083]

number

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

[0085]

number

[0086] 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.

[0087] Incidentally, the signals output by the neurons in each layer may be analog values ​​or binary values. In the former case, a linear ramp function or a sigmoid function may be used as the activation function. In the latter case, a step function that outputs -1 or 1 may be used.

[0088] In neural network 100, an input signal is input to the first layer (input layer), and 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 formulas (1.1) to (1.3) 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.

[0089] <Arithmetic circuit> Here, an arithmetic circuit capable of performing the calculations of equations (1.2) and (1.3) in a neural network 100 in which the activation function of a neuron is a step function whose output is −1 or 1 will be described.

[0090] The arithmetic circuit 110 shown in FIG. 1A is a semiconductor device including circuits MPC[1] to MPC[m], a circuit ACTF, and a conversion circuit TRF. The arithmetic circuit 110 is a semiconductor device including a neuron N j (k) The signal input to the neuron N j (k) The signal z output from j (k) Note that in this specification and the like, when there is no need to distinguish between the circuits MPC[1] to MPC[m], they will be referred to as the circuit MPC.

[0091] <<Circuit MPC>> 1B is a diagram illustrating terminals included in the circuit MPC. The circuit MPC includes, for example, a terminal inp, a terminal inn, a terminal outp, a terminal outn, a terminal wt, and a terminal xt.

[0092] The circuit MPC has a function of outputting a signal input to a terminal inp to one of a terminal outp and a terminal outn, and outputting a signal input to a terminal inn to the other of the terminal outp and the terminal outn. As an example, the output destination of the signals input to the terminals inp and inn can be determined by the signal input to the terminal xt.

[0093] Also, as an example, the circuit MPC has a function of varying the time it takes for a signal to be input to the terminal inp and output from either the terminal outp or the terminal outn. The time can be determined by the signal input to the terminal wt. Note that hereinafter, the time it takes for a signal to be input to the input terminal of the circuit and output from the output terminal of the circuit is referred to as the input / output time.

[0094] A configuration example of the circuit MPC is shown in Fig. 2(A). The circuit MPC shown in Fig. 2(A) includes a circuit BF1, a circuit BF2, and a switching circuit SC.

[0095] An input terminal of the circuit BF1 is electrically connected to the terminal inp, and an output terminal of the circuit BF1 is electrically connected to one of the two input terminals of the switching circuit SC. An input terminal of the circuit BF2 is electrically connected to the terminal inn, and an output terminal of the circuit BF2 is electrically connected to the other of the two input terminals of the switching circuit SC. One of the two output terminals of the switching circuit SC is electrically connected to the terminal outp, and the other of the two output terminals of the switching circuit SC is electrically connected to the terminal outn.

[0096] [Circuit BF1] The circuit BF1 functions as a circuit that corrects a signal input to the input terminal of the circuit BF1 and outputs the signal to the output terminal of the circuit BF1. For example, a circuit (buffer circuit) in which two inverter circuits are connected in series can be used as the circuit BF1. The number of inverter circuits is not limited to two. However, since it is easier to configure a circuit that outputs the same logical value as the input, it is preferable to have multiple inverter circuits. In addition to the inverter circuit, a NAND circuit, a NOR circuit, etc. can also be used. For example, a logic circuit, a signal conversion circuit, a potential level conversion circuit, etc. can be used as the circuit BF1. In FIG. 2(A), the circuit BF1 has an inverter circuit DINV1 and an inverter circuit INV1.

[0097] Each of the inverter circuit DINV1 and the inverter circuit INV1 has a function of outputting an inverted signal of an input signal. In particular, the inverter circuit DINV1 is electrically connected to the terminal wt, and the driving speed of the inverter circuit DINV1 can be determined according to the signal input to the terminal wt. In other words, the input / output time of the inverter circuit DINV1 can be changed.

[0098] FIG. 2B1 shows a specific configuration example of the circuit BF1. As an example, the inverter circuit DINV1 includes transistors Tr01 to Tr03 and a capacitor C01, and the inverter circuit INV1 includes transistors Tr04 and Tr05. As an example, the transistors Tr01 and Tr04 are p-channel transistors, and the transistors Tr02, Tr03, and Tr05 are n-channel transistors. As an example, the transistor Tr02 has a backgate. Similarly, as an example, the transistor Tr03 may have a backgate. Alternatively, as an example, the transistor Tr03 is preferably a transistor with low off-state current. As a specific example, the transistor Tr03 is preferably an OS transistor. For transistors other than the transistor Tr03, OS transistors may be used as n-channel transistors.

[0099] For example, in this specification and the like, transistors of various structures can be used as the transistor. Therefore, the type of the transistor used is not limited. As an example of the transistor, a transistor having single crystal silicon, or a transistor having a non-single crystal semiconductor film typified by amorphous silicon, polycrystalline silicon, microcrystalline (also called microcrystal, nanocrystal, or semi-amorphous) silicon, etc. can be used. Alternatively, a thin film transistor (TFT) in which such a semiconductor is thinned can be used. There are various advantages when using a TFT. For example, since it can be manufactured at a lower temperature than the case of single crystal silicon, it is possible to reduce the manufacturing cost or increase the size of the manufacturing equipment. Since the manufacturing equipment can be enlarged, it can be manufactured on a large substrate. Therefore, since a large number of display devices can be manufactured at the same time, it is possible to manufacture at low cost. Alternatively, since the manufacturing temperature is low, a substrate with low heat resistance can be used. Therefore, a transistor can be manufactured on a substrate having light-transmitting properties. Alternatively, the transmission of light in a display element can be controlled by using a transistor on a substrate having light-transmitting properties. Alternatively, since the film thickness of the transistor is thin, a part of the film forming the transistor can transmit light. Therefore, the aperture ratio can be improved.

[0100] As an example of a transistor, a transistor having a compound semiconductor (e.g., SiGe, GaAs, etc.) or an oxide semiconductor (e.g., Zn-O, In-Ga-Zn-O, In-Zn-O, In-Sn-O (ITO), Sn-O, Ti-O, Al-Zn-Sn-O, In-Sn-Zn-O, etc.) can be used. Alternatively, a thin film transistor in which these compound semiconductors or these oxide semiconductors are thinned can be used. This allows the manufacturing temperature to be lowered, so that it is possible to manufacture a transistor at room temperature, for example. As a result, a transistor can be formed directly on a substrate with low heat resistance, such as a plastic substrate or a film substrate. Note that these compound semiconductors or oxide semiconductors can be used not only for the channel portion of a transistor, but also for other purposes. For example, these compound semiconductors or oxide semiconductors can be used as wiring, resistor elements, pixel electrodes, or electrodes having light transmission. They can be formed or deposited simultaneously with the transistor, so that costs can be reduced.

[0101] As an example of a transistor, a transistor formed by an inkjet method or a printing method can be used. These methods allow manufacturing at room temperature, at a low degree of vacuum, or on a large substrate. Therefore, since manufacturing is possible without using a mask (reticle), the layout of the transistor can be easily changed. Alternatively, since manufacturing is possible without using a resist, material costs can be reduced and the number of steps can be reduced. Alternatively, since a film can be applied only to a necessary portion, materials are not wasted and costs can be reduced compared to a manufacturing method in which a film is formed on the entire surface and then etched.

[0102] As an example of a transistor, a transistor having an organic semiconductor or a carbon nanotube can be used. This allows a transistor to be formed on a substrate that can be bent. A device using a transistor having an organic semiconductor or a carbon nanotube can be made resistant to impacts.

[0103] It should be noted that transistors of various other structures can be used as the transistors. For example, MOS transistors, junction transistors, bipolar transistors, etc. can be used as the transistors. By using MOS transistors as the transistors, the size of the transistors can be reduced. Therefore, a large number of transistors can be mounted. By using bipolar transistors as the transistors, a large current can be passed. Therefore, the circuit can be operated at high speed. It should be noted that MOS transistors and bipolar transistors may be mixed and formed on one substrate. This makes it possible to realize low power consumption, miniaturization, high speed operation, etc.

[0104] As an example of a transistor, a transistor having a structure in which gate electrodes are arranged above and below a channel can be applied. By adopting a structure in which gate electrodes are arranged above and below a channel, a circuit configuration in which multiple transistors are connected in parallel is obtained. This increases the channel formation region, making it possible to increase the current value. Alternatively, by adopting a structure in which gate electrodes are arranged above and below a channel, it becomes easier to form a depletion layer, making it possible to improve the S value.

[0105] As an example of a transistor, a structure in which a gate electrode is disposed above a channel formation region, a structure in which a gate electrode is disposed below a channel formation region, a positive staggered structure, an inverted staggered structure, a structure in which a channel formation region is divided into a plurality of regions, a structure in which channel formation regions are connected in parallel, or a structure in which channel formation regions are connected in series can be used. Alternatively, the transistor can have various configurations, such as a planar type, a FIN type, a TRI-GATE type, a top gate type, a bottom gate type, a double gate type (gates are disposed above and below a channel), etc.

[0106] As an example of a transistor, a transistor having a structure in which a source electrode or a drain electrode overlaps with a channel formation region (or a part thereof) can be used. By using a structure in which a source electrode or a drain electrode overlaps with a channel formation region (or a part thereof), it is possible to prevent the operation from becoming unstable due to accumulation of electric charge in a part of the channel formation region.

[0107] As an example of a transistor, a structure with an LDD region can be applied. By providing the LDD region, it is possible to reduce the off-current or improve the breakdown voltage (improve reliability) of the transistor. In addition, by providing the LDD region, even if the voltage between the drain and source changes when operating in the saturation region, the drain current does not change much, and it is possible to obtain voltage-current characteristics with a flat slope.

[0108] For example, in the present specification, a transistor can be formed using various substrates. The type of substrate is not limited to a specific one. Examples of the substrate include a semiconductor substrate (e.g., a single crystal substrate or a silicon substrate), an SOI substrate, a glass substrate, a quartz substrate, a plastic substrate, a sapphire glass substrate, a metal substrate, a stainless steel substrate, a substrate having a stainless steel foil, a tungsten substrate, a substrate having a tungsten foil, a flexible substrate, a laminated film, a paper containing a fibrous material, or a base film. Examples of glass substrates include barium borosilicate glass, aluminoborosilicate glass, or soda lime glass. Examples of flexible substrates, laminated films, base films, and the like include the following. For example, there are plastics represented by polyethylene terephthalate (PET), polyethylene naphthalate (PEN), polyethersulfone (PES), and polytetrafluoroethylene (PTFE). Alternatively, for example, there is a synthetic resin such as acrylic. Examples of the material include polypropylene, polyester, polyvinyl fluoride, and polyvinyl chloride. Examples of the material include polyamide, polyimide, aramid, epoxy resin, inorganic vapor deposition film, and paper. In particular, by manufacturing a transistor using a semiconductor substrate, a single crystal substrate, or an SOI substrate, a transistor with small variations in characteristics, size, or shape, high current capacity, and small size can be manufactured. When a circuit is configured using such transistors, it is possible to reduce the power consumption of the circuit or to increase the integration of the circuit.

[0109] Alternatively, a flexible substrate may be used as the substrate, and the transistor may be formed directly on the flexible substrate. Alternatively, a peeling layer may be provided between the substrate and the transistor. The peeling layer can be used to separate the semiconductor device from the substrate after a part or whole of the semiconductor device is completed thereon, and to transfer the semiconductor device to another substrate. In this case, the transistor can be transferred to a substrate having poor heat resistance or a flexible substrate. Note that the above-mentioned peeling layer may be, for example, a laminated structure of inorganic films of a tungsten film and a silicon oxide film, or a structure in which an organic resin film such as polyimide is formed on a substrate.

[0110] That is, a transistor may be formed using a certain substrate, and then the transistor may be transferred to another substrate, and the transistor may be disposed on the other substrate. Examples of substrates onto which transistors are transferred include, in addition to the substrates on which the above-mentioned transistors can be formed, paper substrates, cellophane substrates, aramid film substrates, polyimide film substrates, stone substrates, wood substrates, cloth substrates (including natural fibers (silk, cotton, hemp), synthetic fibers (nylon, polyurethane, polyester), or regenerated fibers (acetate, cupra, rayon, regenerated polyester), etc.), leather substrates, or rubber substrates. By using these substrates, it is possible to form transistors with good characteristics, form transistors with low power consumption, manufacture devices that are not easily broken, impart heat resistance, and reduce weight or thickness.

[0111] It is possible to form all of the circuits required to realize a given function on the same substrate (e.g., a glass substrate, a plastic substrate, a single crystal substrate, or an SOI substrate, etc.). This makes it possible to reduce costs by reducing the number of components, or to improve reliability by reducing the number of connections to the circuit components.

[0112] It is possible that all of the circuits required to realize the predetermined function are not formed on the same substrate. That is, a part of the circuit required to realize the predetermined function is formed on one substrate, and another part of the circuit required to realize the predetermined function is formed on another substrate. For example, a part of the circuit required to realize the predetermined function is formed on a glass substrate, and another part of the circuit required to realize the predetermined function is formed on a single crystal substrate (or an SOI substrate). Then, the single crystal substrate (also called an IC chip) on which another part of the circuit required to realize the predetermined function is formed can be connected to the glass substrate by COG (Chip On Glass), and the IC chip can be arranged on the glass substrate. Alternatively, the IC chip can be connected to the glass substrate by TAB (Tape Automated Bonding), COF (Chip On Film), SMT (Surface Mount Technology), a printed circuit board, or the like. In this way, by forming a part of the circuit on the same substrate as the pixel portion, it is possible to reduce the cost by reducing the number of components, or to improve the reliability by reducing the number of connections with the circuit components. In particular, circuits with high drive voltages or high drive frequencies often consume a lot of power. Therefore, such circuits are formed on a substrate (such as a single crystal substrate) separate from the pixel section to form an IC chip. By using this IC chip, it is possible to prevent an increase in power consumption.

[0113] In the inverter circuit DINV1, the gate of the transistor Tr01 and the gate of the transistor Tr02 are electrically connected to the terminal inp, the first terminal of the transistor Tr01 is electrically connected to the wiring VDDL, and the second terminal of the transistor Tr01 is electrically connected to the first terminal of the transistor Tr02. The second terminal of the transistor Tr02 is electrically connected to the wiring VSSL, and the back gate of the transistor Tr02 is electrically connected to the first terminal of the transistor Tr03 and the first terminal of the capacitor C01. The second terminal of the transistor Tr03 is electrically connected to the terminal wt, and the gate of the transistor Tr03 is electrically connected to the wiring SL01. The second terminal of the capacitor C01 is electrically connected to the wiring VL. In addition, the second terminal of the transistor Tr01 and the first terminal of the transistor Tr02 are electrically connected to the input terminal of the inverter circuit INV1.

[0114] In the inverter circuit INV1, the gate of the transistor Tr04 and the gate of the transistor Tr05 are electrically connected to the input terminal of the inverter circuit INV1, the first terminal of the transistor Tr04 is electrically connected to the wiring VDDL, and the second terminal of the transistor Tr04 is electrically connected to the first terminal of the transistor Tr05. The second terminal of the transistor Tr05 is electrically connected to the wiring VSSL. In addition, the second terminal of the transistor Tr04 and the first terminal of the transistor Tr05 are electrically connected to the output terminal of the inverter circuit INV1.

[0115] The wiring VDDL functions as a voltage line that supplies a voltage VDD, which is a high-level potential, and the wiring VSSL functions as a voltage line that supplies a voltage VSS, which is a low-level potential. A negative potential, a positive potential, or a potential of 0V (GND) may be supplied to the wiring VSSL. The wiring VL functions as a voltage line that supplies a constant voltage, and the constant voltage may be VDD, VSS, a ground potential, or the like.

[0116] In the inverter circuit DINV1, the transistor Tr03 and the capacitive element C01 are included in the holding unit HCA. The holding unit HCA has a function of holding a potential corresponding to a signal input from the terminal wt. The potential can be one of a low level potential and a high level potential indicating two values, or a potential indicating an analog value.

[0117] The transistor Tr03 included in the holding unit HCA functions as a switching element, and the transistor Tr03 can be turned on or off by applying a potential to the gate of the transistor Tr03 from the wiring SL01.

[0118] By applying a high-level potential to the wiring SL01 and turning on the transistor Tr03, it is possible to establish electrical continuity between the terminal wt and the first terminal of the capacitance element C01. At this time, the circuit MPC can receive a signal from the terminal wt and write a potential corresponding to the signal to the first terminal of the capacitance element C01. After writing the potential to the first terminal of the capacitance element C01, a low-level potential can be applied to the wiring SL01 to turn off the transistor Tr03, thereby allowing the potential to be held in the holding unit HCA.

[0119] In the holding unit HCA, if it is desired to hold the potential written to the first terminal of the capacitance element C01 for a long time, the transistor Tr03 is preferably an OS transistor. In addition, the channel formation region of the transistor Tr03 is more preferably an oxide containing at least one of indium, element M (examples of element M include aluminum, gallium, yttrium, and tin), and zinc. It is further preferable that the transistor Tr03 has the structure of the transistor described in the fifth embodiment.

[0120] The OS transistor has a characteristic that its off-state current is extremely small due to the large band gap of the metal oxide that functions as the channel formation region. Therefore, by using an OS transistor as the transistor Tr03, it is possible to significantly reduce the leakage current from the first terminal of the capacitance element C01 to the terminal wt when the transistor Tr03 is in the off state. In other words, it is possible to reduce the number of refresh operations for the potential of the first terminal of the capacitance element C01, thereby reducing the power consumption required to hold the potential of the first terminal of the capacitance element C01.

[0121] By the way, since the transistor Tr02 has a back gate, by applying a potential to the back gate, the threshold voltage of the transistor Tr02 can be varied according to the potential. In the circuit MPC, since the back gate of the transistor Tr02 is connected to the first terminal of the capacitance element C01, the threshold voltage of the transistor Tr02 is determined according to the potential of the first terminal of the capacitance element C01.

[0122] For example, when the potential of the first terminal of the capacitance element C01 is high, the threshold voltage of the transistor Tr02 shifts to the negative side, and the amount of current flowing between the source and drain of the transistor Tr02 increases, thereby shortening the input / output time it takes from when a signal is input to the input terminal of the inverter circuit DINV1 until the signal is output from the output terminal.

[0123] Furthermore, for example, when the potential of the first terminal of the capacitance element C01 is a low-level potential, the threshold voltage of the transistor Tr02 shifts to the positive side, so that the amount of current flowing between the source and drain of the transistor Tr02 decreases, which lengthens the input / output time from when a signal is input to the input terminal of the inverter circuit DINV1 until the signal is output from the output terminal.

[0124] Specifically, when the range of potential applied to the gate of transistor Tr02 is set to -0.8V or more and 2.5V or less, the back gate of transistor Tr02 may be supplied with, for example, a potential of 1.5V or more as a high-level potential, and a potential of less than 1.5V as a low-level potential.

[0125] The transistor Tr03 may also have a backgate. FIG. 2B2 shows a circuit configuration in which the transistor Tr03 has a backgate in the inverter circuit DINV1 in FIG. 2B1. Note that the backgate of the transistor Tr03 may be electrically connected to, for example, the gate of the transistor Tr03. By electrically connecting the gate and backgate of the transistor Tr03, the current flowing when the transistor Tr03 is in an on state can be increased. For example, a wiring for electrically connecting the backgate of the transistor Tr03 to an external circuit may be provided to the backgate of the transistor Tr03, and the external circuit may apply a potential to the backgate of the transistor Tr03 to increase the threshold voltage. With such a configuration, the off-state current of the transistor Tr03 can be reduced by the external circuit.

[0126] [Circuit BF2] In FIG. 2A, the circuit BF2 includes an inverter circuit DINV2 and an inverter circuit INV2. As with the circuit BF1, the circuit BF2 functions as an amplifier circuit that amplifies a signal input to the input terminal of the circuit BF2 and outputs the signal to the output terminal of the circuit BF2. Therefore, the circuit BF2 can have a similar configuration to the circuit BF1 shown in FIG. 2B1. In this case, it is preferable to hold an intermediate potential between a high-level potential and a low-level potential at the first terminal of the capacitor C01 of the inverter circuit DINV2. By setting the potential of the first terminal of the capacitor C01 of the inverter circuit DINV1 to a high-level potential or a low-level potential, the input / output time of the circuit BF1 can be made shorter or longer than the input / output time of the circuit BF2.

[0127] The circuit BF2 may have a circuit configuration shown in Fig. 2C1. The inverter circuit DINV2 in Fig. 2C1 includes transistors Tr06 and Tr07, and the inverter circuit INV2 includes transistors Tr08 and Tr09. The transistors Tr06 and Tr08 are p-channel transistors, and the transistors Tr07 and Tr09 are n-channel transistors.

[0128] In the inverter circuit DINV2, the gate of the transistor Tr06 and the gate of the transistor Tr07 are electrically connected to the terminal inn, the first terminal of the transistor Tr06 is electrically connected to the wiring VDDL, and the second terminal of the transistor Tr06 is electrically connected to the first terminal of the transistor Tr07. The second terminal of the transistor Tr07 is electrically connected to the wiring VSSL. In addition, the second terminal of the transistor Tr06 and the first terminal of the transistor Tr07 are electrically connected to the input terminal of the inverter circuit INV2.

[0129] In the inverter circuit INV2, the gate of the transistor Tr08 and the gate of the transistor Tr09 are electrically connected to the input terminal of the inverter circuit INV2, the first terminal of the transistor Tr08 is electrically connected to the wiring VDDL, and the second terminal of the transistor Tr08 is electrically connected to the first terminal of the transistor Tr09. The second terminal of the transistor Tr09 is electrically connected to the wiring VSSL. In addition, the second terminal of the transistor Tr08 and the first terminal of the transistor Tr09 are electrically connected to the output terminal of the inverter circuit INV2.

[0130] That is, the inverter circuit DINV2 may have the same circuit configuration as the inverter circuit INV2. Alternatively, a back gate may be provided to the transistor Tr07 and connected to the wiring VSSL.

[0131] The inverter circuits INV1, INV2, and DINV2 may be replaced with the inverter circuit INV1A shown in Fig. 2C2. In the inverter circuit INV1A, the transistor Tr05 (transistor Tr07, transistor Tr09) has a backgate that is electrically connected to the second terminal of the transistor Tr05 (transistor Tr07, transistor Tr09) in the circuit configuration of the inverter circuits INV1, INV2, and DINV2.

[0132] [Switching circuit SC] The switching circuit SC has a function of selecting either the terminal outp or the terminal outn as the output destination of a signal input to the terminal inp or the terminal inn in the circuit MPC. The switching circuit SC is also electrically connected to the terminal xt, and selects the output destination of the signal input to the terminal xt (signal x1 in FIG. 1A). (k-1) 〜x m (k-1) The output destination can be determined according to the

[0133] 3A shows a configuration example of the switching circuit SC. The switching circuit SC includes switches S01 to S04 and an inverter circuit INV3.

[0134] A first terminal of the switch S01 is electrically connected to an output terminal of the circuit BF1 and a first terminal of the switch S03, and a second terminal of the switch S01 is electrically connected to the terminal outp. A first terminal of the switch S02 is electrically connected to an output terminal of the circuit BF2 and a first terminal of the switch S04, and a second terminal of the switch S02 is electrically connected to the terminal outn. A second terminal of the switch S03 is electrically connected to the terminal outn, and a second terminal of the switch S04 is electrically connected to the terminal outp. The terminal xt is electrically connected to each of the control terminals of the switches S01 and S02 and the input terminal of the inverter circuit INV3, and the output terminal of the inverter circuit INV3 is electrically connected to each of the control terminals of the switches S03 and S04.

[0135] In this specification and the like, each of the switches S01 to S04 is turned on when a high-level potential is applied to the control terminal, and turned off when a low-level potential is applied to the control terminal.

[0136] Next, the operation of the switching circuit SC will be described. For example, when a high-level potential is applied to the terminal xt, the switches S01 and S02 are turned on and the switches S03 and S04 are turned off, so that the switching circuit SC operates so that the output terminal of the circuit BF1 and the terminal outp are in a conductive state and the output terminal of the circuit BF2 and the terminal outn are in a conductive state. Also, when a low-level potential is applied to the terminal xt, the switches S03 and S04 are turned on and the switches S01 and S02 are turned off, so that the switching circuit SC operates so that the output terminal of the circuit BF1 and the terminal outn are in a conductive state and the output terminal of the circuit BF2 and the terminal outp are in a conductive state.

[0137] Next, a specific configuration example of the switching circuit SC will be described. Fig. 3B shows a circuit configuration in which the switches S01 to S04 included in the switching circuit SC of Fig. 3A are replaced with analog switches A01 to A04.

[0138] As a specific example of the switching circuit SC in FIG. 3A, which is different from that in FIG. 3B, the circuit configuration shown in FIG. 3C can be used. The switching circuit SC in FIG. 3C includes transistors Tr11 to Tr14 and an inverter circuit INV3. The transistors Tr11 to Tr14 are n-channel transistors. The control terminals of the switches S01 to S04 correspond to the gates of the transistors Tr11 to Tr14.

[0139] A first terminal of the transistor Tr11 is electrically connected to the output terminal of the circuit BF1 and a first terminal of the transistor Tr13, and a second terminal of the transistor Tr11 is electrically connected to the terminal outp. A first terminal of the transistor Tr12 is electrically connected to the output terminal of the circuit BF2 and a first terminal of the transistor Tr14, and a second terminal of the transistor Tr12 is electrically connected to the terminal outn. A second terminal of the transistor Tr13 is electrically connected to the terminal outn, and a second terminal of the transistor Tr14 is electrically connected to the terminal outp. The terminal xt is electrically connected to the gates of the transistors Tr11 to Tr14. The gates of the transistors Tr13 and Tr14 are electrically connected to the terminal xt via the inverter circuit INV3.

[0140] As a specific example of the switching circuit SC in FIG. 3A, which is different from those in FIG. 3B and FIG. 3C, the switching circuit SC in FIG. 3D may have a circuit configuration. The switching circuit SC in FIG. 3D includes transistors Tr11 to Tr14, as in FIG. 3C. The transistors Tr11 and Tr12 are n-channel transistors, and the transistors Tr13 and Tr14 are p-channel transistors. The control terminals of the switches S01 to S04 correspond to the gates of the transistors Tr11 to Tr14. The transistors Tr11 and Tr12 have polarities different from those of the transistors Tr13 and Tr14, and therefore the switching circuit SC in FIG. 3D does not include an inverter circuit INV3.

[0141] In addition, by configuring the switching circuit SC as shown in FIG. 3(A) to (D), the signal x1 input to the terminal xt (k-1) 〜x m (k-1) Each of the signals may be a low level potential or a high level potential.

[0142] The switching circuit SC applied to the circuit MPC can be selected from any one of the switching circuits shown in Figures 3A to 3D depending on the situation. The switching circuit SC applied to the circuit MPC may have a circuit configuration different from that of the switching circuits SC shown in Figures 3A to 3D.

[0143] <<Circuit ACTF>> 1C is a diagram illustrating terminals of the circuit ACTF. The circuit ACTF has a terminal inpa, a terminal inna, and a terminal outa.

[0144] The circuit ACTF has a function of generating a signal according to the order and / or time difference of the signals (signals Sp[m], Sn[m] in FIG. 1A) input to the terminals inpa and inna, respectively, and outputting the signal from the terminal outa. The signal is z j (k)is equivalent to.

[0145] For example, the circuit ACTF can be configured to output a low-level potential as a signal from the terminal outa when the signal input to the terminal inpa is slower than the signal input to the terminal inner, and to output a high-level potential as a signal from the terminal outa when the signal input to the terminal inpa is faster than the signal input to the terminal inner. In other words, the circuit ACTF can be configured to output a low-level potential as a signal from the terminal outa when the transition of the potential input to the terminal inpa is slower than the transition of the potential input to the terminal inner, and to output a high-level potential as a signal from the terminal outa when the transition of the potential input to the terminal inpa is faster than the transition of the potential input to the terminal inner. In this case, a signal z corresponding to -1 for the low-level potential and 1 for the high-level potential is j (k) By so doing, the circuit ACTF can correspond to a circuit that performs the calculation of a step function.

[0146] Also, for example, the circuit ACTF may be a circuit that outputs an analog value such as a sigmoid function, a linear ramp function, etc. Alternatively, the circuit ACTF may have a function of outputting a digital value or an analog value in response to a difference in timing between signals input to the terminals inpa and inna.

[0147] In other words, the circuit ACTF has a function of calculating the activation function of neurons in the neural network 100.

[0148] In the present embodiment, the circuit ACTF will be described below as a circuit that performs a step function operation.

[0149] In this case, a flip-flop circuit can be applied to the circuit ACTF as a circuit that performs the step function operation. In this case, when the signal input to the terminal inna transitions, the circuit ACTF reads out the signal input to the terminal inpa and outputs the signal to the terminal outa.

[0150] <<Conversion circuit TRF>> The conversion circuit TRF converts the neuron N1 in the (k-1)th layer in the neural network 100. (k-1) Neuron N m (k-1) The signal z1 output from each (k-1) ~z m (k-1) and transmits the converted signals to the circuits MPC[1] to MPC[m].

[0151] In Figure 1(A), the signal z1 (k-1) ~z m (k-1) A signal x1 (k-1) 〜x m (k-1) Convert to signal x1 (k-1) 〜x m (k-1) 4 illustrates a state in which the MPC[1] to MPC[m] are respectively transmitted to the circuits MPC[1] to MPC[m].

[0152] In addition, signal z1 (k-1) ~z m (k-1) As mentioned above, each of the signals x1 and x2 has a value of -1 or 1. (k-1) 〜x m (k-1) As explained above about the switching circuit SC, since it can be a signal of low level potential or high level potential, the conversion circuit TRF can be configured as a logic circuit.

[0153] In addition, the signal z1 generated by the conversion circuit TRF (k-1) ~z m (k-1) The conversion will be described later.

[0154] <<Examples of changes to the MPC circuit, ACTF circuit, and TRF conversion circuit>> The circuit MPC included in the arithmetic circuit 110 in FIG. 1 is not limited to the above-described configuration of the circuit MPC, and the circuit configuration of the circuit MPC may be changed depending on the situation. For example, as a semiconductor device of one embodiment of the present invention, the circuit MPC can have the configurations of FIG. 5A and FIG. 5B. The circuit MPC shown in FIG. 5A has a configuration in which the order of electrical connection between the inverter circuit DINV1 and the inverter circuit INV1 in the circuit BF1 in FIG. 2A is changed, and the order of electrical connection between the inverter circuit DINV2 and the inverter circuit INV2 in the circuit BF2 in FIG. 2A is changed. The circuit MPC shown in FIG. 5B has a configuration in which the order of electrical connection between the inverter circuit INV1 and the switching circuit SC in the circuit BF1 in FIG. 2A is changed, and the order of electrical connection between the inverter circuit INV2 and the switching circuit SC in FIG. 2A is changed.

[0155] Moreover, the transistors included in the above-described circuit MPC, circuit ACTF, conversion circuit TRF, and the like are preferably OS transistors. In the description of the holding unit HCA, it has been mentioned that an OS transistor is preferably used as the transistor Tr03, but it is also preferable to use an OS transistor as the other transistors. In particular, when an OS transistor is used as the other transistor, it is more preferable that the OS transistor has the structure of the transistor described in Embodiment 5. However, one embodiment of the present invention is not limited thereto.

[0156] Moreover, the transistors included in the circuit MPC, the circuit ACTF, the conversion circuit TRF, and the like may be transistors containing silicon in the channel formation region (hereinafter referred to as Si transistors) instead of OS transistors. As silicon, for example, hydrogenated amorphous silicon, microcrystalline silicon, polycrystalline silicon, or the like can be used. As transistors other than OS transistors and Si transistors, transistors with Ge as an active layer, transistors with compound semiconductors such as ZnSe, CdS, GaAs, InP, GaN, and SiGe as an active layer, transistors with carbon nanotubes as an active layer, transistors with organic semiconductors as an active layer, and the like can be used.

[0157] Note that, in the metal oxide of the semiconductor layer of the OS transistor, an n-type semiconductor can be fabricated using a metal oxide containing indium (e.g., In oxide) or a metal oxide containing zinc (e.g., Zn oxide), but it is difficult to fabricate a p-type semiconductor in terms of mobility and reliability. Therefore, the arithmetic circuit 110 may be configured such that OS transistors are used as n-channel transistors included in the circuit MPC, the circuit ACTF, the conversion circuit TRF, and the like, and Si transistors are used as p-channel transistors.

[0158] <How it works> Here, an example of the operation method of the arithmetic circuit 110 will be described.

[0159] Fig. 6A shows an example of the configuration of the circuit MPC[i] used in this operation example. The circuit MPC[i] uses the circuit BF1 shown in Fig. 2B1 as the circuit BF1 and the circuit BF2, and uses the switching circuit SC shown in Fig. 3A as the switching circuit SC.

[0160] In addition, the circuit elements of the inverter circuit DINV2 of the circuit BF2 shown in Fig. 6A are marked with "m" at the end of their reference symbols to distinguish them from the inverter circuit DINV1 of the circuit BF1. Therefore, in the inverter circuit DINV2, the holding unit HCAm corresponds to the holding unit HCA, the transistor Tr01m corresponds to the transistor Tr01 of the inverter circuit DINV1, the transistor Tr02m corresponds to the transistor Tr02 of the inverter circuit DINV1, the transistor Tr03m corresponds to the transistor Tr03 of the inverter circuit DINV1, the capacitance element C01m corresponds to the capacitance element C01 of the inverter circuit DINV1, and the wiring SL01m corresponds to the wiring SL01 of the inverter circuit DINV1. Also, the terminal wtm functions as an input terminal for writing a potential to the first terminal of the capacitance element C01m.

[0161] 6, the terminal wt in the holding unit HCA of the circuit BF1 is electrically connected to the wiring DL, and the terminal wtm in the holding unit HCAm of the circuit BF2 is electrically connected to the wiring DLm. Also, in the circuit MPC shown in FIG. 6, the wiring SL01 in the circuit BF1 and the wiring SL01m in the circuit BF2 are electrically connected to the wiring SWL.

[0162] In this specification and the like, unless otherwise specified, the transistors Tr01 to Tr05, Tr01m to Tr03m, Tr08, Tr09, and Tr11 to Tr14 include cases where they ultimately operate in a linear region when they are on. In other words, the gate voltage, source voltage, and drain voltage of each of the above-mentioned transistors include cases where they are appropriately biased to voltages within a range where they operate in a linear region.

[0163] In this specification and the like, the terms "low-level potential" and "high-level potential" do not mean a specific potential, and the specific potential may be different depending on the wiring. For example, the low-level potential and the high-level potential according to the signal input to and output from the circuit MPC may be different from the low-level potential and the high-level potential applied to the wiring SL01.

[0164] <<Initial operation>> As an initial operation, the terminal xt is connected to the signal x i (k-1) As a result, each of the transistors Tr11 to Tr14 receives a potential corresponding to the signal x i (k-1) The transistor is turned on or off depending on the potential corresponding to

[0165] In addition, the wiring DL has a weighting factor w i (k-1) j (k) A potential corresponding to the weighting coefficient w is input to the first terminal of the capacitance element C01, and an intermediate potential is input to the wiring DLm. Then, a high-level potential is applied to the wiring SWL to turn on the transistors Tr03 and Tr03m. This operation causes a potential corresponding to the weighting coefficient w i (k-1) j (k) A potential equivalent to the weighting coefficient w is written to the first terminal of the capacitance element C01m, and an intermediate potential is written to the first terminal of the capacitance element C01m. Therefore, the threshold voltage of the transistor Tr02 is i (k-1) j (k) The threshold voltage of the transistor Tr02m varies depending on the intermediate potential, and the threshold voltage of the transistor Tr02m varies depending on the intermediate potential. Finally, a low-level potential is applied to the wiring SWL to turn off the transistors Tr03 and Tr03m, so that the potentials of the first terminals of the capacitors C01 and C01m can be held.

[0166] <<Calculation operation>> After the initial operation, a signal Sp[i-1] is input to the terminal inp of the circuit MPC[i] (where i is an integer between 1 and m), and a signal Sn[i-1] is input to the terminal inn, thereby starting an arithmetic operation in the circuit MPC[i]. In particular, when i is 1, the signals Sp[0] and Sn[0] are input to the terminal inp and terminal inn of the circuit MPC[1] with almost no time difference (almost simultaneously). Also, when i is 2 or more, the signals Sp[i-1] and Sn[i-1] are output from the circuit MPC[i-1], so there may be a time difference between them. In the explanation of the arithmetic operation, for the sake of convenience, it is assumed that the signals Sp[i-1] and Sn[i-1] are input to the terminal inp and terminal inn of the circuit MPC[i] with almost no time difference (almost simultaneously).

[0167] [Condition 1] Here, the weighting factor w i (k-1) j (k) The potential corresponding to the signal x i (k-1) Consider a case where the potential corresponding to is a high-level potential. Fig. 7(A) is a timing chart showing the fluctuation of the potentials of the terminals inp, inn, outp, and outn in this case. First, high-level potentials are applied to the terminals inp and inn of the circuit MPC[i] as signals Sp[i-1] and Sn[i-1], respectively. Then, at time T1, it is assumed that the potentials of the terminals inp and inn of the circuit MPC[i] have reached high-level potentials.

[0168] At this time, a high level potential is applied as the signal Sp[i-1] to the input terminal of the circuit BF1 of the circuit MPC[i], so that a high level potential is output from the output terminal of the circuit BF1 of the circuit MPC[i]. Similarly, a high level potential is applied as the signal Sn[i-1] to the input terminal of the circuit BF2 of the circuit MPC[i], so that a high level potential is output from the output terminal of the circuit BF2 of the circuit MPC[i]. Note that a high level potential is applied to the back gate of the transistor Tr02 of the circuit BF1, and an intermediate potential is applied to the back gate of the transistor Tr02m of the circuit BF2, so that the circuit BF1 operates faster than the circuit BF2. Therefore, when signals are input to the terminal inp and the terminal inn at the same time, the circuit BF1 outputs an output signal before the circuit BF2.

[0169] In the switching circuit SC, since a high-level potential is applied to the terminal xt, the output terminal of the circuit BF1 and the terminal outp are in a conductive state, and the output terminal of the circuit BF2 and the terminal outn are in a conductive state. That is, the output signal from the circuit BF1 is output from the terminal outp, and the output signal from the circuit BF2 is output from the terminal outn.

[0170] Since the output signal from the circuit BF1 is output faster than the output signal from the circuit BF2, as shown in FIG. 7A, the potential of the terminal outp becomes high level potential at time T2, and the potential of the terminal outn becomes high level potential at the following time T3. That is, at time T2, the output signal Sp[i] is output from the terminal outp, and at time T3, the output signal Sn[i] is output from the terminal outn. Note that in FIG. 7A, the input / output time from when the signal Sp[i-1] is input to the terminal inp until the signal Sp[i] is output from the terminal outp is T H The input / output time from when the signal Sn[i-1] is input to the terminal inn until the signal Sn[i] is output from the terminal outn is T M It states:

[0171] [Condition 2] In addition, the weighting factor w i (k-1)j (k) The potential corresponding to the signal x is a low level potential. i (k-1) Consider a case where the potential corresponding to is a high-level potential. Fig. 7(B) is a timing chart showing the fluctuation of the potentials of the terminals inp, inn, outp, and outn in this case. As in the case of Fig. 7(A), first, high-level potentials are applied to the terminals inp and inn of the circuit MPC[i] as signals Sp[i-1] and Sn[i-1], respectively. Then, at time T1, it is assumed that the potentials of the terminals inp and inn of the circuit MPC[i] reach high-level potentials.

[0172] At this time, a high-level potential is applied as the signal Sp[i-1] to the input terminal of the circuit BF1 of the circuit MPC[i], so that a high-level potential is output from the output terminal of the circuit BF1 of the circuit MPC[i]. Similarly, a high-level potential is applied as the signal Sn[i-1] to the input terminal of the circuit BF2 of the circuit MPC[i], so that a high-level potential is output from the output terminal of the circuit BF2 of the circuit MPC[i]. Note that a low-level potential is applied to the back gate of the transistor Tr02 of the circuit BF1, and an intermediate potential is applied to the back gate of the transistor Tr02m of the circuit BF2, so that the circuit BF1 operates slower than the circuit BF2. Therefore, when signals are input to the terminals inp and inn at the same time, the circuit BF1 outputs an output signal later than the circuit BF2.

[0173] In the switching circuit SC, since a high-level potential is applied to the terminal xt, the output terminal of the circuit BF1 and the terminal outp are in a conductive state, and the output terminal of the circuit BF2 and the terminal outn are in a conductive state, as in the case of Fig. 7(A). That is, the output signal from the circuit BF1 is output from the terminal outp, and the output signal from the circuit BF2 is output from the terminal outn.

[0174] Since the output signal from the circuit BF1 is output later than the output signal from the circuit BF2, as shown in FIG. 7B, the potential of the terminal outn becomes high level potential at time T3, and the potential of the terminal outp becomes high level potential at the following time T4. That is, at time T3, Sn[i] is output as an output signal from the terminal outn, and at time T4, Sp[i] is output as an output signal from the terminal outp. Note that in FIG. 7B, the input / output time from when the signal Sp[i-1] is input to the terminal inp until the signal Sp[i] is output from the terminal outp is T L The input / output time from when the signal Sn[i-1] is input to the terminal inn until the signal Sn[i] is output from the terminal outn is T M It states:

[0175] [Condition 3] In addition, the weighting factor w i (k-1) j (k) The potential corresponding to the signal x i (k-1) Consider a case where the potential corresponding to is a low-level potential. Fig. 7(C) is a timing chart showing the fluctuation of the potentials of the terminals inp, inn, outp, and outn in this case. As in the case of Fig. 7(A), first, high-level potentials are applied to the terminals inp and inn of the circuit MPC[i] as signals Sp[i-1] and Sn[i-1], respectively. Then, at time T1, it is assumed that the potentials of the terminals inp and inn of the circuit MPC[i] reach high-level potentials.

[0176] At this time, a high level potential is applied as the signal Sp[i-1] to the input terminal of the circuit BF1 of the circuit MPC[i], so that a high level potential is output from the output terminal of the circuit BF1 of the circuit MPC[i]. Similarly, a high level potential is applied as the signal Sn[i-1] to the input terminal of the circuit BF2 of the circuit MPC[i], so that a high level potential is output from the output terminal of the circuit BF2 of the circuit MPC[i]. Note that a high level potential is applied to the back gate of the transistor Tr02 of the circuit BF1, and an intermediate potential is applied to the back gate of the transistor Tr02m of the circuit BF2, so that the circuit BF1 operates faster than the circuit BF2. Therefore, when signals are input to the terminal inp and the terminal inn at the same time, the circuit BF1 outputs an output signal before the circuit BF2.

[0177] In the switching circuit SC, since a low-level potential is applied to the terminal xt, the output terminal of the circuit BF1 and the terminal outn are in a conductive state, and the output terminal of the circuit BF2 and the terminal outp are in a conductive state. In other words, the output signal from the circuit BF1 is output from the terminal outn, and the output signal from the circuit BF2 is output from the terminal outp.

[0178] Since the output signal from the circuit BF1 is output faster than the output signal from the circuit BF2, as shown in FIG. 7C, the potential of the terminal outn becomes high level potential at time T2, and the potential of the terminal outp becomes high level potential at the following time T3. That is, at time T2, Sn[i] is output as an output signal from the terminal outn, and at time T3, Sp[i] is output as an output signal from the terminal outp. Note that in FIG. 7C, the input / output time from when the signal Sp[i-1] is input to the terminal inp until the signal Sn[i] is output from the terminal outn is T H The input / output time from when the signal Sn[i-1] is input to the terminal inn until the signal Sp[i] is output from the terminal outp is T M It states:

[0179] [Condition 4] In addition, the weighting factor w i (k-1)j (k) The potential corresponding to the signal x is a low level potential. i (k-1) Consider a case where the potential corresponding to is a low-level potential. Fig. 7(D) is a timing chart showing the fluctuation of the potentials of the terminals inp, inn, outp, and outn in this case. As in the case of Fig. 7(A), first, high-level potentials are applied to the terminals inp and inn of the circuit MPC[i] as signals Sp[i-1] and Sn[i-1], respectively. Then, at time T1, it is assumed that the potentials of the terminals inp and inn of the circuit MPC[i] reach high-level potentials.

[0180] At this time, a high-level potential is applied as the signal Sp[i-1] to the input terminal of the circuit BF1 of the circuit MPC[i], so that a high-level potential is output from the output terminal of the circuit BF1 of the circuit MPC[i]. Similarly, a high-level potential is applied as the signal Sn[i-1] to the input terminal of the circuit BF2 of the circuit MPC[i], so that a high-level potential is output from the output terminal of the circuit BF2 of the circuit MPC[i]. Note that a low-level potential is applied to the back gate of the transistor Tr02 of the circuit BF1, and an intermediate potential is applied to the back gate of the transistor Tr02m of the circuit BF2, so that the circuit BF1 operates slower than the circuit BF2. Therefore, when signals are input to the terminals inp and inn at the same time, the circuit BF1 outputs an output signal later than the circuit BF2.

[0181] In the switching circuit SC, since a low-level potential is applied to the terminal xt, the output terminal of the circuit BF1 and the terminal outn are in a conductive state, and the output terminal of the circuit BF2 and the terminal outp are in a conductive state. In other words, the output signal from the circuit BF1 is output from the terminal outn, and the output signal from the circuit BF2 is output from the terminal outp.

[0182] Since the output signal from the circuit BF1 is output later than the output signal from the circuit BF2, as shown in FIG. 7(D), the potential of the terminal outp becomes high level potential at time T3, and the potential of the terminal outn becomes high level potential at the following time T4. That is, at time T3, the output signal Sp[i] is output from the terminal outp, and at time T4, the output signal Sn[i] is output from the terminal outn. Note that in FIG. 7(D), the input / output time from when the signal Sp[i-1] is input to the terminal inp until the signal Sn[i] is output from the terminal outn is T L The input / output time from when the signal Sn[i-1] is input to the terminal inn until the signal Sp[i] is output from the terminal outp is T M It states:

[0183] In the above conditions 1 to 4, the time when the signal Sn[i] is output from the terminal outn is used as a reference, and the time difference when the signal Sp[i] is output from the terminal outp is set as T[i] (in FIGS. 7A to 7D, this is set as |T[i]|). As described in conditions 1 to 4, T[i] is calculated by multiplying the weight coefficient w i (k-1) j (k) and the potential corresponding to the signal x i (k-1) and the potential corresponding to

[0184] For example, signal x i (k-1) When the potential corresponding to is a high level potential, the weighting coefficient w i (k-1) j (k) The larger the weighting coefficient w i (k-1) j (k) The higher the potential corresponding to the weighting coefficient w, the smaller T[i] becomes. Also, T[i] takes a negative value when the time when the signal Sn[i] is output from the terminal outn is used as the reference. i (k-1) j (k) The smaller the weighting factor w i (k-1)j (k) In addition, T[i] takes a positive value when the time when the signal Sn[i] is output from the terminal outn is used as a reference.

[0185] Also, for example, signal x i (k-1) When the potential corresponding to the high level potential is set, the difference in input / output time of the circuit BF1 with respect to the circuit BF2 is output as it is, and the signal x i (k-1) is a low-level potential, the circuit MPC[i] outputs the difference in input / output time of the circuit BF1 with respect to the circuit BF2 multiplied by -1. Specifically, under condition 1 (timing chart of FIG. 7(A)), when the time when the signal Sn[i] is output from the terminal outn is used as a reference and the time difference when the signal Sp[i] is output from the terminal outp is T[i], under condition 3 (timing chart of FIG. 7(C)), the time difference when the signal Sp[i] is output from the terminal outp is -T[i],

[0186] However, in reality, a delay occurs between when a signal is input and when it is output in the switching circuit SC, so the time difference T[i] between when the signal Sn[i] is output from the terminal outn and when the signal Sp[i] is output from the terminal outp includes the time of this delay. Note that in the present embodiment, the explanation will be given while ignoring the delay.

[0187] As described above, when the signals Sp[i-1] and Sn[i-1] are input to the circuit MPC[i], the weight coefficient w i (k-1) j (k) and the potential corresponding to the signal x i (k-1) and a time difference T[i] corresponding to the potential are applied to the two signals Sp[i] and Sn[i] output from the circuit MPC[i].

[0188] <<Calculation operation when multiple circuit MPCs are connected>> Here, the operation of the arithmetic circuit 110 when m circuits MPC are connected as shown in FIG. i (k-1) j (k) and signal x i (k-1) In order to impart a time difference T[i] corresponding to the above to the two signals Sp[i] and Sn[i] output from the circuit MPC[i], signals Sp[0] and Sn[0] are simultaneously applied to the circuit MPC[1], thereby accumulating the time differences occurring in each of the circuits MPC[1] to MPC[m].

[0189] If the time difference between the two signals Sp[i-1] and Sn[i-1] output from the circuit MPC[i-1] is T[i-1] and the time difference between the two signals Sp[i] and Sn[i] output from the circuit MPC[i] is T[i], the relationship between T[i] and T[i-1] can be expressed by the following equation.

[0190]

number

[0191] g(w i (k-1) j (k) ) is a function that outputs the time difference between the signals output from the circuit BF1 and the circuit BF2 in the circuit MPC[i], with the weighting coefficient as a variable. When the delay time in the switching circuit SC is taken into consideration, a term indicating the delay time can be added to the formula (1.4).

[0192] Equation (1.4) expresses the weighting coefficient w held in the circuit MPC[i] for the time difference T[i-1] between the two signals Sp[i-1] and Sn[i-1] output from the circuit MPC[i-1]. i (k-1) j (k) The time difference g(w i(k-1) j (k) ) and add it to the value of the signal x as the effect of the switching circuit SC. i (k-1) The value is multiplied by .

[0193] Note that T[1] is expressed by the following formula.

[0194]

number

[0195] Here, solving the recurrence formulas of formulas (1.4) and (1.5) to find T[m] gives formula (1.6), where Π is a polynomial operator indicating a total multiplication.

[0196]

number

[0197] Here, Πx i (k-1) Z i (k-1) Consider replacing it with .

[0198]

number

[0199] Πx i (k-1) Z i (k-1) By replacing it with the above, from equation (1.6) and equation (1.7), T[m] is a function g(w i (k-1) j (k) ) and signal z i (k-1) That is, the formula (1.2) can be calculated by the arithmetic circuit 110.

[0200] Next, Πx i(k-1) Z i (k-1) x to replace i (k-1) and z i (k-1) and the signal z1 (k-1) ~z m (k-1) A signal x1 (k-1) 〜x m (k-1) The conversion circuit TRF for converting the signal into the signal shown in FIG.

[0201] First, z i+1 (k-1) Think about it. i+1 (k-1) can be expressed as the following equation by using equation (1.7) (where i is an integer between 1 and m-1):

[0202]

number

[0203] Next, by dividing equation (1.7) and equation (1.8) together, we obtain the following equation.

[0204]

number

[0205] Also, when i=m, x m (k-1) From equation (1.7), we obtain the following equation.

[0206]

number

[0207] By satisfying the relationship of equation (1.9) and equation (1.10), in equation (1.6), Πx i (k-1) Z i (k-1) can be replaced with.

[0208] Next, the signal z1 is set to satisfy the relationship of equations (1.9) and (1.10). (k-1) ~z m (k-1) A signal x1 (k-1) 〜x m (k-1) The conversion circuit TRF for converting the signal into the signal shown in FIG.

[0209] z shown in equation (1.9) i (k-1) , z i+1 (k-1) are the neurons N i (k-1) , neuron N i+1 (k-1) In the arithmetic circuit 110, the activation function of the neuron is a step function whose output is −1 or 1, so the signal x i (k-1) The value of x is also -1 or 1. i (k-1) is z i (k-1) and z i+1 (k-1) This can be expressed by taking the negation of the exclusive OR with .

[0210] In each of Fig. 8(A) and (B), a signal z1 (k-1) ~z m (k-1) A signal x1 (k-1) 〜x m (k-1) 4 illustrates an example of the configuration of a conversion circuit TRF that converts

[0211] The conversion circuit TRF shown in Fig. 8A has match circuits (exclusive OR NOT circuits) E[1] to E[m-1]. Note that Fig. 8A shows only match circuits E[1], E[2], E[i], E[m-2], and E[m-1], and does not show the other match circuits.

[0212] The match circuit E[i] (where i is an integer between 1 and m-1) will now be described. The first terminal of the match circuit E[i] receives a signal z i (k-1) is input, and the second terminal of the match circuit E[i] receives the signal z i+1 (k-1) Also, the signal x is output from the output terminal of the match circuit E[i]. i (k-1) will be output.

[0213] The conversion circuit TRF shown in FIG. m (k-1) When the signal z m (k-1) A signal x m (k-1) It is output as is.

[0214] By configuring the conversion circuit TRF shown in FIG. 8(A), the signal z1 (k-1) ~z m (k-1) Signal x1 (k-1) 〜x m (k-1) Conversion to can be performed.

[0215] Note that the conversion circuit TRF included in the arithmetic circuit 110 is not limited to the circuit configuration shown in FIG. 8A, and the configuration of the conversion circuit TRF shown in FIG. 8A may be changed depending on the situation.

[0216] For example, the conversion circuit TRF shown in Fig. 8(B) may be applied as the conversion circuit TRF included in the arithmetic circuit 110. The conversion circuit TRF in Fig. 8(B) has a configuration in which a matching circuit E[m] is added to the conversion circuit TRF in Fig. 8(A).

[0217] Specifically, the first terminal of the match circuit E[m] is connected to a signal z m (k-1) is input to the second terminal of the match circuit E[m], and a signal SigL corresponding to a low level potential is input to the second terminal of the match circuit E[m]. Also, a signal x m (k-1)By configuring the conversion circuit TRF in Fig. 8(B), it is possible to perform the same operation as the conversion circuit in Fig. 8(A).

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

[0219] (Embodiment 2) In this embodiment, another configuration example of the arithmetic circuit 110 described in Embodiment 1 will be described.

[0220] <Configuration example of arithmetic circuit 110> 1A, the circuits MPC can be arranged in a matrix, for example. An example of the configuration of such an arithmetic circuit is shown in FIG.

[0221] The arithmetic circuit 120 has an array part ALP in which circuits MPC are arranged in a matrix, a circuit AFP including a plurality of circuits ACTF, a circuit TSG, a circuit WLD, a circuit SWLD, and a conversion circuit TRF.

[0222] The array unit ALP has n×m circuits MPC, and the circuits MPC are arranged in a matrix of n rows and m columns in the array unit ALP. In Fig. 9, the circuit MPC located in the jth row and the ith column (where j is an integer between 1 and n, and i is an integer between 1 and m) is represented as circuit MPC[j,i]. However, in Fig. 9, only circuit MPC[1,1], circuit MPC[1,m], circuit MPC[n,1], and circuit MPC[n,m] are illustrated, and the other circuits MPC are omitted from the illustration.

[0223] The circuit AFP has n circuits ACTF, and each circuit ACTF is arranged in a column in the circuit AFP. In Fig. 9, the circuit ACTF located in the jth row is represented as the circuit ACTF[j]. However, in Fig. 9, only the circuits ACTF[1] and ACTF[n] are illustrated, and the other circuits ACTF are omitted.

[0224] In the array section ALP and the circuit AFP, when focusing on row j, the adjacent circuits MPC[j,1] to MPC[j,m] have their terminals outp and inp electrically connected, and their terminals outn and inn electrically connected. The terminals outp and outn of the circuit MPC[j,m] are electrically connected to the terminals inpa and inna of the circuit ACTF[j], respectively. The terminals xt of the circuits MPC[j,1] to MPC[j,m] are electrically connected to the conversion circuit TRF.

[0225] That is, by focusing on the circuits MPC and ACTF in one row of the array unit ALP of the arithmetic circuit 120, the circuits MPC and ACTF in that row can be regarded as the arithmetic circuit 110 shown in FIG.

[0226] The circuit MPC of the array unit ALP has a terminal st in addition to the terminals wt, wtm, xt, inp, inn, outp, and outn described in embodiment 1. The terminal st is a terminal electrically connected to the wiring SL01 described in embodiment 1.

[0227] A terminal st of each of the circuits MPC[j,1] to MPC[j,m] is electrically connected to a wiring SWL[j]. The wiring SWL[j] corresponds to the wiring SWL in the first embodiment, and in FIG. 9, the wiring SWL[1] and the wiring SWL[n] are illustrated. Furthermore, a terminal wt of each of the circuits MPC[1,i] to MPC[n,i] is electrically connected to a wiring DL[i]. The wiring DL[i] corresponds to the wiring DL in the first embodiment, and in FIG. 9, the wiring DL[1] and the wiring DL[m] are illustrated. Furthermore, a terminal wtm of each of the circuits MPC[1,i] to MPC[n,i] is electrically connected to a wiring DLm[i]. The wiring DLm[i] corresponds to the wiring DLm in the first embodiment, and in FIG. 9, the wiring DLm[1] and the wiring DLm[m] are illustrated.

[0228] The circuit TSG is a circuit that generates signals to be input to the terminals inp and inn of each of the circuits MPC[1,1] to MPC[n,1].

[0229] The circuit WLD has a function of applying potentials according to the weighting coefficients to the wirings DL[1] to DL[m] and a function of applying intermediate potentials to the wirings DLm[1] to DLm[m].

[0230] The circuit SWLD is a circuit for selecting a holding unit for holding a potential according to the weighting coefficient. Specifically, the circuit SWLD has a function of applying a potential to the gates of the transistors Tr03 and Tr03m of the holding units HCA and HCAm in the circuits MPC[j,1] to MPC[j,m] via the wiring SWL[j].

[0231] For example, when potentials are held in the holding units HCA and HCAm of the circuit MPC[j,i], the circuit WLD applies the potentials to the wiring DL[i] and the wiring DLm[i], and the circuit SWLD applies a high-level potential to the wiring SWL[j] to turn on the transistors Tr03 and Tr03m of the holding units HCA and HCAm of the circuit MPC[j,i], thereby writing the potentials of the wiring DL[i] and the wiring DLm[i] to the first terminals of the capacitors C01 and C01m. After writing the potentials to the first terminals of the capacitors C01 and C01m, the circuit SWLD applies a low-level potential to the wiring SWL[j] to turn off the transistors Tr03 and Tr03m of the holding units HCA and HCAm of the circuit MPC[j,i], thereby writing the potentials written to the holding units HCA and HCAm.

[0232] Regarding the conversion circuit TRF, the description of the conversion circuit TRF described in the first embodiment is to be referred to. In FIG. 9, the conversion circuit TRF is connected to a signal z1 (k-1) and signal z m (k-1)The figure shows how the signal z1 is input to the conversion circuit TRF. (k-1) ~z m (k-1) is converted and output signal x1 (k-1) 〜x m (k-1) is sent to the circuit MPC of the array unit ALP. In particular, the signal x i (k-1) is sent to terminal xt of circuits MPC[1,i] through MPC[n,i].

[0233] By configuring the arithmetic circuit 120 shown in Fig. 9, it is possible to perform multiple calculations simultaneously. In the first embodiment, the arithmetic circuit 110 in Fig. 1 is a neuron N j (k) The signal z output by j (k) However, by using the arithmetic circuit 120 shown in FIG. (k) Neuron N n (k) The signal z1 output by each of (k) to signal z n (k) can be calculated simultaneously.

[0234] In detail, the kth layer neuron N1 (k) Neuron N n (k) Each of these has a neuron N1 in the (k-1)th layer. (k-1) Neuron N m (k-1) The signal z1 output from each (k-1) ~z m (k-1) This is because the signal x1 output from the conversion circuit TRF (k-1) 〜x m (k-1) This corresponds to being sent to the circuit MPC of the array unit ALP. Then, the (k-1)th layer neuron N i (k-1) and the kth layer neuron N j (k)The potential corresponding to the weighting coefficient between the k-th layer neuron N j (k) The signal z output from j (k) In FIG. 9, the signal z1 can be output from the circuit ACTF[j]. (k) and outputs signal z from circuit ACTF[n]. n (k) The figure shows how the following is output:

[0235] Note that the semiconductor device of one embodiment of the present invention is not limited to the arithmetic circuit 120 illustrated in Fig. 9. The arithmetic circuit 120 illustrated in Fig. 9 has a configuration in which the circuits MPC[i] illustrated in Fig. 6 are arranged in a matrix, but an arithmetic circuit can also be configured in which the circuits MPC[i] illustrated in Fig. 10 are arranged in a matrix. The circuit MPC[i] in Fig. 10 differs from the circuit MPC[i] in Fig. 6 in that a terminal wt in the holding unit HCA of the circuit BF1 and a terminal wtm in the holding unit HCAm of the circuit BF2 are electrically connected to a wiring DL, that a wiring SL01 in the circuit BF1 is electrically connected to a wiring SWL, and that a wiring SL01m in the circuit BF2 is electrically connected to a wiring SWLm.

[0236] Fig. 11 shows an example of an arithmetic circuit configured by arranging the circuits MPC[i] in Fig. 10 in a matrix of n × m pieces, similar to the arithmetic circuit 120 in Fig. 9. The arithmetic circuit 130 shown in Fig. 11 is different from the arithmetic circuit 120 in Fig. 9 in some terminals of the circuit MPC and the wirings connected to the some terminals.

[0237] The circuit MPC of the array unit ALP has terminals st and stm in addition to the terminals wt, wtm, xt, inp, inn, outp, and outn shown in Fig. 10. The terminal st is a terminal electrically connected to the wiring SL01 in the circuit BF1, and the terminal stm is a terminal electrically connected to the wiring SL01m in the circuit BF2. Note that since the terminals wt and wtm are electrically connected to each other in Fig. 10, the illustration of the terminal wtm is omitted in Fig. 11, and the terminal wtm will be described as being the same terminal as the terminal wt.

[0238] A terminal st of each of the circuits MPC[j,1] to MPC[j,m] is electrically connected to a wiring SWL[j]. The wiring SWL[j] corresponds to the wiring SWL in FIG. 10, and the wirings SWL[1] and SWL[n] are illustrated in FIG. 11. A terminal stm of each of the circuits MPC[j,1] to MPC[j,m] is electrically connected to a wiring SWLm[j]. The wiring SWLm[j] corresponds to the wiring SWLm in FIG. 10, and the wirings SWLm[1] and SWLm[n] are illustrated in FIG. 11. A terminal wt of each of the circuits MPC[1,i] to MPC[n,i] is electrically connected to a wiring DL[i]. The wiring DL[i] corresponds to the wiring DL in FIG. 10, and the wirings DL[1] and DL[m] are illustrated in FIG. 11.

[0239] In other words, the arithmetic circuit 120 is configured to input potentials to be held in the two holding units HCA of the circuit MPC via separate wiring, and to switch the on and off states of transistors Tr03 and Tr03m using a single wiring, while the arithmetic circuit 130 is configured to input potentials to be held in the two holding units HCA of the circuit MPC via a single wiring, and to switch the on and off states of transistors Tr03 and Tr03m using separate wiring.

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

[0241] (Embodiment 3) In this embodiment, another configuration example of the inverter circuit DINV1 and the inverter circuit DINV2 will be described.

[0242] 12(A1), (A2), (B), (C), (D), and 13(A), (B), (C), (D), (E), and (F) used in the description of this embodiment show the inverter circuit DINV1, but a circuit similar to the inverter circuit DINV1 can be applied to the inverter circuit DINV2 as well. As described above, a circuit similar to the inverter circuit DINV1 can be applied to the inverter circuit DINV2, and therefore a circuit configuration similar to that of the circuit BF1 can be applied to the circuit BF2.

[0243] <Configuration example 1> The inverter circuit DINV1 shown in FIG. 12(A1) is a circuit obtained by modifying the configuration of the inverter circuit DINV1 of the circuit BF1 shown in FIG. 2(B1).

[0244] The inverter circuit DINV1 shown in Fig. 12A1 has a configuration in which a transistor Tr04 is added to the inverter circuit DINV1 shown in Fig. 2B1. Note that the transistor Tr04 is a transistor having a back gate. Also, unlike the inverter circuit DINV1 shown in Fig. 2B1, the transistor Tr02 does not have a back gate and is therefore not electrically connected to the first terminal of the capacitor C01.

[0245] A first terminal of the transistor Tr04 is electrically connected to the second terminal of the transistor Tr02, a second terminal of the transistor Tr04 is electrically connected to the wiring VSSL, a gate of the transistor Tr04 is electrically connected to the terminal inp, and a back gate of the transistor Tr04 is electrically connected to a first terminal of the capacitance element C01 and a first terminal of the transistor Tr03.

[0246] That is, the inverter circuit DINV1 in Fig. 12A1 has the same configuration as the inverter circuit INV1 shown in Fig. 2B1, which is made up of transistors Tr01 and Tr02, and is configured to input a low-level potential via a transistor Tr04. The driving speed of the inverter circuit DINV1 in Fig. 12A1 can be determined according to the potential given to the back gate of the transistor Tr04. Also, the potential of the back gate of the transistor Tr04 can be held by a transistor Tr03 and a capacitor C01, similar to the inverter circuit DINV1 in Fig. 2B1.

[0247] Note that one embodiment of the present invention is not limited to the inverter circuit DINV1 shown in FIG. 12A1, and the circuit configuration may be changed depending on the situation. For example, the inverter circuit DINV1 shown in FIG. 12A2 has a configuration in which the connection of the transistor Tr04 in the inverter circuit DINV1 in FIG. 12A1 is changed. Specifically, a first terminal of the transistor Tr04 is electrically connected to a wiring VDDL, and a second terminal of the transistor Tr04 is electrically connected to a first terminal of the transistor Tr01. In the inverter circuit DINV1 in FIG. 12A2, like the inverter circuit DINV1 in FIG. 12A1, the potential of the backgate of the transistor Tr04 is held by the transistor Tr03 and the capacitor C01, and the driving speed of the inverter circuit DINV1 can be determined according to the potential of the backgate of the transistor Tr04.

[0248] <Configuration example 2> The inverter circuit DINV1 shown in FIG. 12B has a configuration in which the holding unit HCA of the inverter circuit DINV1 shown in FIG. 2B1 is changed to a holding unit HCB.

[0249] The holding unit HCB has an inverter circuit SINV1 and an inverter circuit SINV2. An input terminal of the inverter circuit SINV1 is electrically connected to the terminal wt, an output terminal of the inverter circuit SINV2, and a back gate of the transistor Tr02, and an output terminal of the inverter circuit SINV1 is electrically connected to an input terminal of the inverter circuit SINV2.

[0250] In addition, the high power supply potential input terminals of the inverter circuits SINV1 and SINV2 are electrically connected to the wiring VSS1L, and the low power supply potential input terminals of the inverter circuits SINV1 and SINV2 are electrically connected to the wiring VSS2L.

[0251] The wiring VSS1L functions as a voltage line that supplies the voltage VSS1. The wiring VSS2L functions as a voltage line that supplies a potential VSS2 that is lower than the voltage VSS1. Note that the voltage VSS1 can be set to, for example, a value equal to or lower than the voltage VSS.

[0252] As shown in Figure 12 (B), the holding unit HCB has an inverter loop configuration consisting of inverter circuits SINV1 and SINV2, and can hold the potential of the backgate of transistor Tr02 as either VSS1 or VSS2 depending on the potential corresponding to the signal input to terminal wt.

[0253] That is, the holding unit HCB of the inverter circuit DINV1 shown in Fig. 12B can hold binary data as the weighting coefficient. Therefore, when the circuit BF1 shown in Fig. 12B is applied as the circuit BF1 included in the circuit MPC, it is preferable that the weighting coefficient input to the terminal wt is binary data.

[0254] 12B has two drive speeds, because the potential applied to the back gate of the transistor Tr02 is either VSS1 or VSS2. Specifically, when the potential applied to the back gate of the transistor Tr02 is VSS1, the drive speed of the inverter circuit DINV1 is faster than when the potential applied to the back gate of the transistor Tr02 is VSS2.

[0255] <Configuration example 3> The inverter circuit DINV1 shown in Fig. 12C is a circuit obtained by modifying the configuration of the inverter circuit DINV1 of the circuit BF1 shown in Fig. 2B1. Specifically, the inverter circuit DINV1 shown in Fig. 12C uses a transistor Tr01p having a backgate as the transistor Tr01. For example, a p-channel transistor having an SOI (Silicon On Insulator) structure can be used as the transistor Tr01p. Also, the transistor Tr02 does not need to have a backgate.

[0256] The back gate of the transistor Tr01p is electrically connected to the first terminal of the capacitive element C01 and the first terminal of the transistor Tr03. With this configuration, the inverter circuit DINV1 in Fig. 12C can change the input / output time, similar to the inverter circuit DINV1 in Fig. 2B1.

[0257] <Configuration Example 4> The inverter circuit DINV1 shown in Fig. 12D is a circuit obtained by modifying the configuration of the inverter circuit DINV1 of the circuit BF1 shown in Fig. 2B1. Specifically, the inverter circuit DINV1 shown in Fig. 12D does not include a transistor Tr01, and includes a load element LE, a transistor Tr02, a transistor Tr03, and a capacitance element C01.

[0258] A first terminal of the load element LE is electrically connected to the wiring VDDL, and a second terminal of the load element LE is electrically connected to a first terminal of the transistor Tr02 and an input terminal of the inverter circuit INV1. For other connection configurations, refer to the description of the connection configuration of the inverter circuit DINV1 in FIG. 2B1.

[0259] The load element LE may be, for example, a resistor element. The inverter circuit DINV1 shown in Fig. 13A is configured to use a resistor element R01 as the load element LE.

[0260] The load element LE may be, for example, a diode. The inverter circuit DINV1 shown in Fig. 13B has a configuration in which a diode D01 is used as the load element LE.

[0261] The load element may be, for example, an n-channel transistor similar to the transistor Tr02. The inverter circuit DINV1 shown in Fig. 13C is configured to use, as the load element LE, a transistor Tr15 whose gate and first terminal are electrically connected (diode-connected).

[0262] Moreover, the inverter circuit DINV1 shown in FIG. 13(D) is configured to use, as the load element LE, a transistor Tr15 whose gate and second terminal are electrically connected to each other.

[0263] In addition, in Figures 13(C) and (D), the transistor Tr15 used as the load element LE may be a transistor having a backgate. Furthermore, by using a transistor whose gate and backgate are electrically connected, the on-current of the transistor can be increased. In each of Figures 13(E) and (F), a backgate is provided in the transistor Tr05 shown in Figures 13(C) and (D), and the gate and backgate of the transistor Tr15 are electrically connected.

[0264] <Configuration Example 5> The circuit BF1 shown in Fig. 14(A) is a circuit obtained by modifying the configuration of the inverter circuit DINV1 of the circuit BF1 shown in Fig. 2(B1). Specifically, the inverter circuit DINV1 shown in Fig. 14(A) has a circuit configuration including a holding unit HCA1 and a holding unit HCA2 as the holding unit HCA of the circuit BF1 in Fig. 2(B1).

[0265] The circuit BF1 in FIG. 14A includes a transistor Tr02a, a switch S05, and a switch S05a in addition to the circuit elements included in the circuit BF1 in FIG. 2B1. In particular, the transistor Tr02a is a transistor having a back gate. The holding unit HCA1 and the holding unit HCA2 have the same circuit configuration as the holding unit HCA in the circuit BF1 in FIG. 2B1. Note that in FIG. 14A, the holding unit HCA1 is described as a transistor Tr03 and a capacitor C01, and the holding unit HCA2 is described as a transistor Tr03a and a capacitor C01a to distinguish them from the circuit elements of the holding unit HCA1.

[0266] The switch S05 is electrically connected between the second terminal of the transistor Tr01 and the first terminal of the transistor Tr02 in the circuit BF1 of Fig. 2(B1). Specifically, the second terminal of the transistor Tr01 is electrically connected to the first terminal of the switch S05 and the input terminal of the inverter circuit INV1, and the first terminal of the transistor Tr02 is electrically connected to the second terminal of the switch S05. In addition, the control terminal of the switch S05 is electrically connected to the wiring SL02.

[0267] The first terminal of the switch S05a is electrically connected to the second terminal of the transistor Tr01 and the input terminal of the inverter circuit INV1, the second terminal of the switch S05a is electrically connected to the first terminal of the transistor Tr02a, and the control terminal of the switch S05a is electrically connected to the wiring SL02a. The second terminal of the transistor Tr02a is electrically connected to the wiring VSSL, and the gate of the transistor Tr02a is electrically connected to the terminal inp, the gate of the transistor Tr01, and the gate of the transistor Tr02. The back gate of the transistor Tr02a is electrically connected to the first terminal of the transistor Tr03a included in the holding unit HCA2 and the first terminal of the capacitance element C01a. The second terminal of the transistor Tr03a is electrically connected to the terminal wta, the gate of the transistor Tr03a is electrically connected to the wiring SL01, and the second terminal of the second terminal of the capacitance element C01a is electrically connected to the wiring VL.

[0268] As described above, the gate of the transistor Tr03a is electrically connected to the wiring SL01, as is the gate of the transistor Tr03. Therefore, the switching control of the transistors Tr03 and Tr03a is performed by the wiring SL01. In this case, since the switching control of the transistors Tr03 and Tr03a is performed simultaneously, the terminals wt and wta to which the potentials held in the holding units HCA1 and HCA2 are input need to be connected by separate wirings. Therefore, in the circuit BF1 in FIG. 14(A), the terminal wt is electrically connected to the wiring DL, and the terminal wta is electrically connected to the wiring DLm.

[0269] The switch S05 can be turned on or off by applying a potential from the wiring SL02 to the control terminal of the switch S05. Similarly, the switch S05a can be turned on or off by applying a potential from the wiring SL02a to the gate of the switch S05a.

[0270] The transistor Tr03a functions as a switching element, similar to the transistor Tr03, and can be turned on or off by applying a potential to the gate of the transistor Tr03a from the wiring SL01a.

[0271] A potential corresponding to a weighting factor is input to the terminal wta, similarly to the terminal wt. That is, each of the holding units HCA1 and HCA2 can hold a potential corresponding to the corresponding weighting factor, similarly to the holding unit HCA. That is, the circuit BF1 in FIG. 14(A) can hold potentials corresponding to two weighting factors.

[0272] 14A as the circuit BF1 included in all the circuits MPC of the arithmetic circuit 110, the weighting coefficient can be switched and arithmetic can be performed. For example, a weighting coefficient w1 (k-1) j (k) Or even w m (k-1) j (k) The potential corresponding to the weighting coefficient w1 is stored in the storage unit HCA2. (k-1) h (k) Or even w m (k-1) h (k) (h is an integer between 1 and n, but not including j.) (k-1) ~z m (k-1) Signal according to x1 (k-1) 〜x m (k-1) In this case, a high-level potential is applied to the wiring SL02 to turn on the switch S05, and a low-level potential is applied to the wiring SL02a to turn off the switch S05a. In this case, the arithmetic circuit 110 calculates the weight coefficient w1 (k-1) j (k) Or even w m (k-1)j (k) and signal z1 (k-1) ~z m (k-1) In addition, the arithmetic circuit 110 can calculate the sum of products of the weighting coefficient w1 and the activation function by applying a low-level potential to the wiring SL02 to turn off the switch S05 and applying a high-level potential to the wiring SL02a to turn on the switch S05a. (k-1) h (k) Or even w m (k-1) h (k) and signal z1 (k-1) ~z m (k-1) It is possible to perform product-sum and activation function calculations with

[0273] 14A as the circuit BF1 included in all the circuits MPC of the arithmetic circuit 110, it is possible to switch the weighting coefficients and perform calculations corresponding to the respective weighting coefficients. In addition, in the circuit BF1 of FIG. 14A, the holding unit HCA1 and the holding unit HCA2 are illustrated as the holding unit HCA, but the inverter circuit DINV1 may have three or more holding units. In addition, when the weighting coefficient handled by the neural network is 1 bit (2 values), for example, a high level potential is held in the holding unit HCA1 and a low level potential is held in the holding unit HCA2, and calculations can be performed while switching the weighting coefficient according to the situation.

[0274] In addition, the location where the switch S05 and the switch S05a for switching the weighting coefficient are provided is not limited to the configuration of the circuit BF1 in FIG. 14(A). For example, as shown in the circuit BF1 in FIG. 14(B), the location where the switch S05 and the switch S05a are provided can be different from that in FIG. 14(A). In the circuit BF1 in FIG. 14(B), the switch S05 is provided between the second terminal of the transistor Tr02 and the wiring VSSL, and the switch S05a is provided between the second terminal of the transistor Tr02a and the wiring VSSL. With this configuration, the circuit BF1 in FIG. 14(B) can perform the same operation as the circuit BF1 in FIG. 14(A).

[0275] Note that the circuits included in the semiconductor device according to one embodiment of the present invention are not limited to the circuit configurations shown in Figures 12(A1)(A2)(B)(C) and (D), Figures 13(A) to (F), and Figures 14(A)(B), and may have a configuration obtained by modifying the circuits shown in Figures 12(A1)(A2)(B)(C) and (D), Figures 13(A) to (F), and Figures 14(A)(B) depending on the situation. Furthermore, the circuits included in the semiconductor device according to one embodiment of the present invention may have a configuration obtained by combining the circuits shown in Figures 12(A1)(A2)(B)(C) and (D), Figures 13(A) to (F), and Figures 14(A)(B).

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

[0277] (Embodiment 4) In this embodiment, a configuration example of an inverter circuit DINV1 (inverter circuit DINV2) capable of correcting the threshold voltage of the transistor Tr01 and / or the transistor Tr02 in the circuit MPC described in the previous embodiment will be described.

[0278] Fig. 15(A) is a block diagram showing an example of a circuit that can be applied to the circuit BF1 (circuit BF2) included in the circuit MPC described in the previous embodiment. The circuit BF1 (BF2) in Fig. 15(A) has an inverter circuit DINV1 (inverter circuit DINV2) including a drive unit DRV, a correction unit COR, and a holding unit HCA (holding unit HCAm), and an inverter circuit INV1 (inverter circuit INV2).

[0279] The driver DRV includes a transistor Tr01 and a transistor Tr02. As described in the previous embodiment, the transistor Tr01 is a p-channel transistor, and the transistor Tr02 is an n-channel transistor having a back gate.

[0280] The correction unit COR has a function of correcting the threshold voltage of the transistor Tr01 and / or the transistor Tr02. Therefore, the correction unit COR is electrically connected to the driving unit DRV. The correction unit COR is also electrically connected to a wiring CL, and the wiring CL has a function of supplying a necessary signal to the correction unit COR to operate the correction unit COR. Note that the wiring CL may be shown as multiple wirings rather than one wiring.

[0281] As described in the previous embodiment, the holding unit HCA (holding unit HCAm) has a function of holding the potential of the back gate of the transistor Tr02. Therefore, the holding unit HCA (holding unit HCAm) is electrically connected to the driving unit DRV. Note that the correction unit COR may be electrically connected to the wiring that electrically connects the holding unit HCA (holding unit HCAm) and the driving unit DRV. In other words, the holding unit HCA (holding unit HCAm) may be electrically connected to the correction unit COR.

[0282] For details of the holding unit HCA (holding unit HCAm), the description of the previous embodiment should be referred to.

[0283] Incidentally, the inverter circuit DINV1 (inverter circuit DINV2) (strictly speaking, the driving unit DRV having the function of an inverter circuit) and / or the inverter circuit INV1 (inverter circuit INV2) shown in FIG. 15(A) can be replaced with, for example, a NAND circuit, a NOR circuit, an XOR circuit, or a circuit combining these (hereinafter, the NAND circuit, the NOR circuit, the XOR circuit, or a circuit combining these will be collectively referred to as a logic circuit). FIG. 15(B) is a block diagram showing an example of a circuit that can be applied to the circuit BF1 (circuit BF2) of the circuit MPC described in the previous embodiment, which is different from FIG. 15(A), in which the driving unit DRV is replaced with a logic circuit LGC1, and the inverter circuit INV1 (inverter circuit INV2) is replaced with a logic circuit LGC2. Each of the logic circuits LGC1 and LGC2 has a function of generating and outputting an inverted signal for a signal input to the corresponding circuit, and an example of such a circuit can be the inverter circuit described above.

[0284] For example, when a NAND circuit is applied as the logic circuit LGC1 and / or the logic circuit LGC2, the NAND circuit can function as an inverter circuit by inputting a high-level potential as a fixed potential to one of the two input terminals of the NAND circuit. Also, when a NOR circuit is applied as the logic circuit LGC1 and / or the logic circuit LGC2, the NOR circuit can function as an inverter circuit by inputting a low-level potential as a fixed potential to one of the two input terminals of the NOR circuit. Also, when an XOR circuit is applied as the logic circuit LGC1 and / or the logic circuit LGC2, the XOR circuit can function as an inverter circuit by inputting a high-level potential as a fixed potential to one of the two input terminals of the XOR circuit.

[0285] As described above, the inverter circuit described in this specification can be replaced with a logic circuit such as a NAND circuit, a NOR circuit, an XOR circuit, or a combination of these circuits. Therefore, in this specification, the term "inverter circuit" can be broadly referred to as a "logic circuit."

[0286] A specific example of the configuration of the circuit BF1 (circuit BF2) shown in Figures 15(A) and (B) will be described below. Since the circuit BF2 can be configured in the same way as the circuit BF1, in the drawings used in the following description, the reference numeral BF1 (BF2) is used to represent the circuit BF1. Furthermore, components of the circuit BF2 that have different reference numerals from those of the circuit BF1 are written in parentheses near the reference numerals representing the components of the circuit BF1.

[0287] In the following description, unless otherwise specified, the circuit BF1 will be described. Therefore, when considering the circuit BF2, the reference numerals in parentheses in the drawings can be used to replace the reference numerals of the components of the circuit BF1 described below with the reference numerals in parentheses.

[0288] <Configuration example 1> Fig. 16A shows a configuration example of the circuit BF1 in Fig. 15A. The circuit BF1 shown in Fig. 16A has a function of correcting the threshold voltage of the transistor Tr02.

[0289] In the circuit BF1 in FIG. 16A, the correction unit COR includes switches S51 to S54 and a capacitor C21.

[0290] The second terminal of the transistor Tr01 of the driving unit DRV is electrically connected to the first terminal of the switch S51 and the input terminal of the inverter circuit INV1, and the second terminal of the switch S51 is electrically connected to the first terminal of the transistor Tr02 of the driving unit DRV and the first terminal of the switch S52. The second terminal of the switch S52 is electrically connected to the back gate of the transistor Tr02 and the first terminal of the capacitance element C21, and the second terminal of the transistor Tr02 is electrically connected to the first terminal of the switch S53 and the wiring VSSL. The second terminal of the capacitance element C21 is electrically connected to the second terminal of the switch S53 and the first terminal of the switch S54. The second terminal of the switch S54 is electrically connected to the first terminal of the transistor Tr03 of the holding unit HCA and the first terminal of the capacitance element C01 of the holding unit HCA. In addition, the terminal inp of the circuit MPC is electrically connected to the gates of the transistors Tr01 and Tr02.

[0291] For the other connection configurations, refer to the contents of the circuit BF1 (particularly, FIG. 2B1 and the like) described in the above embodiment.

[0292] Wirings SL51 to SL54 are electrically connected to the control terminals of the switches S51 to S54, respectively. That is, by applying a predetermined voltage to each of the wirings SL51 to SL54, each of the switches S51 to S54 can be turned on or off. Note that in this specification and the like, each of the switches S51 to S54 is turned on when a high-level potential is applied to its control terminal, and turned off when a low-level potential is applied to its control terminal. The wirings SL51 to SL54 correspond to the wirings CL in FIG. 15A.

[0293] Note that, for example, electrical switches such as analog switches or transistors can be used as the switches S51 to S54. For example, mechanical switches may be used as the switches S51 to S54. In particular, when a transistor is used as the switch S52, the transistor is preferably an OS transistor. Since it is preferable to hold the potential of the first terminal of the capacitor C21 and the potential of the backgate of the transistor Tr02 for a long time, it is preferable that the switch S52 be an OS transistor with low off-current. Also, OS transistors may be used for switches other than the switch S52.

[0294] Also, the electrical connection point between the second terminal of the switch S52, the backgate of the transistor Tr02, and the first terminal of the capacitance element C21 is referred to as node nd1. In addition, the electrical connection point between the second terminal of the capacitance element C21, the second terminal of the switch S53, and the first terminal of the switch S54 is referred to as node nd3. Furthermore, the electrical connection point between the first terminal of the transistor Tr03, the first terminal of the capacitance element C01, and the second terminal of the switch S54 is referred to as node nd2.

[0295] Note that the circuit BF1 included in the semiconductor device of one embodiment of the present invention is not limited to the circuit BF1 in Figure 16(A) and may have a configuration modified from the circuit BF1 in Figure 16(A) depending on the situation. For example, in the circuit BF1 in Figure 16(A), a switch S51 is provided between the second terminal of the transistor Tr01 and the first terminal of the transistor Tr02, but as in the circuit BF1 shown in Figure 16(B), the switch S51 may be provided between the wiring VDDL and the first terminal of the transistor Tr01. Note that the reference symbol for the wiring CL is omitted in Figure 16(B).

[0296] Next, an example of the operation for correcting the threshold voltage of the transistor Tr02 in the circuit BF1 of FIGS. 16(A) and 16(B) will be described.

[0297] FIG. 17 is a timing chart showing an example of operation of compensating the threshold voltage of transistor Tr02 in circuit BF1 of FIGS. 16(A) and 16(B), and shows changes in potential of terminal inp, wirings SL51 to SL54, wiring SL01, and nodes nd1 to nd3 from time T11 to time T16 and at times around those times.

[0298] In this operation example, the voltage VSS applied by the line VSSL is set to 0 V as an example.

[0299] Between time T11 and time T12, the circuit BF1 is initialized in the operation of correcting the threshold voltage of the transistor Tr02. Specifically, the voltage VSS is applied to the terminal inp, a high-level potential is applied to the wirings SL51 to SL53, and a low-level potential is applied to the wirings SL54 and SL01.

[0300] As a result, the switches S51 to S53 are turned on, and the switch S54 and the transistor Tr03 are turned off.

[0301] A voltage of 0V is input as VSS to the gate of the transistor Tr01, which turns the transistor Tr01 on.

[0302] Also, because the switches S51 and S52 are in an on state, the line VDDL and the first terminal of the capacitance element C21 are in a conductive state. As a result, the potential of the node nd1 becomes VDD. In addition, because the switch S53 is in an on state, the second terminal of the capacitance element C21 and the line VSSL are in a conductive state. As a result, the potential of the node nd3 becomes VSS (=0V). In other words, the voltage between the first terminal and the second terminal of the capacitance element C21 becomes VDD.

[0303] At this time, 0V is input as VSS to the gate of transistor Tr02, 0V is input as VSS to the second terminal of transistor Tr02, and VDD is input to the first terminal of transistor Tr02, so that the first terminal of transistor Tr02 functions as a drain and the second terminal of transistor Tr02 functions as a source.

[0304] At this time, the gate-source voltage V of the transistor Tr02 GS becomes 0 V. In addition, VDD is input to the back gate of the transistor Tr02, and the threshold voltage of the transistor Tr02 is shifted to the negative side, so that the transistor Tr02 is in the on state.

[0305] Between time T12 and time T13, the potential of the line SL51 changes to a low level potential, and the switch S51 is turned off. As a result, the positive charge stored in the first terminal of the capacitance element C21 flows to the line VSSL through the first and second terminals of the transistor Tr02 until the transistor Tr02 is turned off. In other words, negative charge flows from the line VSSL to the first terminal of the capacitance element C21 through the first and second terminals of the transistor Tr02 until the transistor Tr02 is turned off.

[0306] Through this process, the potential of the node nd1 drops from VDD, and the threshold voltage of the transistor Tr02 shifts to the positive side. Eventually, the threshold voltage of the transistor Tr02 becomes equal to the voltage V GS When the potential of the node nd1 reaches V (=0V), the transistor Tr02 is turned off, and the potential of the node nd1 at this time is held in the first terminal of the capacitance element C21. The voltage between the back gate and source of the transistor Tr02 at this time, that is, the voltage between the first terminal and the second terminal of the capacitance element C21, is V BGS Let us assume that.

[0307] Between time T13 and time T14, the potential of the wiring SL52 changes to a low-level potential, and the switch S52 is turned off, whereby the node nd1 is brought into an electrically floating state and the potential of the node nd1 is held by the capacitor C21.

[0308] Due to this operation, the voltage between the back gate and source of the transistor Tr02 (between the first terminal and the second terminal of the capacitance element C21) becomes the voltage V BGS is set to.

[0309] Between time T14 and time T15, the potential of the line SL53 changes to a low-level potential, and the switch S53 is turned off, thereby causing a non-conductive state between the second terminal of the capacitance element C21 and the line VSSL.

[0310] During the period from time T14 to time T15, a high-level potential is applied to the wiring SL01, so that the transistor Tr03 is turned on. At this time, the terminal wt is supplied with a potential V W Therefore, the potential V W In this operation example, the potential V W As an example, it is treated as a potential less than 0V.

[0311] Between time T15 and time T16, the potential of the line SL54 changes to a high level potential, and the switch S54 is turned on. This causes a state of conduction between the terminal wt and the second terminal of the capacitance element C21, and the second terminal (node ​​nd3) of the capacitance element C21 is supplied with the potential V W is applied.

[0312] At this time, since the node nd1 is in an electrically floating state, when the potential of the node nd3 fluctuates, the potential of the node nd1 also fluctuates due to the capacitive coupling of the capacitive element C21. The amount of fluctuation in the potential of the node nd1 is determined by a capacitive coupling coefficient, which is determined by the gate capacitance of the transistor Tr02 and the parasitic capacitance of the wiring around the node nd1. In this operation example, to avoid complexity of explanation, the amount of fluctuation in the potential of the node nd1 and the amount of fluctuation in the potential of the node nd3 are described as being the same value. This is equivalent to the capacitive coupling coefficient being set to 1.

[0313] Since the capacitance coupling coefficient is set to 1, the potential of node nd3 changes from VSS (= 0V) to V W The potential of the node nd1 rises to V BGS +V W In this operation example, V W Since is a negative potential, the potential of node nd1 is V BGS V than W The potential becomes low.

[0314] After time T16, the potential of the wiring SL01 is changed to a low-level potential, and the transistor Tr03 is turned off. As a result, the potentials of the nodes nd2 and nd3 are held by the capacitors C01 and C21. That is, the potential of the node nd1, V BGS +V W is also retained.

[0315] 16A and 16B, by performing the operations from time T11 to time T16 and after time T16 shown in the timing chart of FIG. 17, the threshold voltage of the transistor Tr02 can be corrected to approximately 0, and then a potential corresponding to the weighting coefficient can be input to the back gate of the transistor Tr02. Therefore, it is possible to suppress the variation in the threshold voltage of each transistor Tr02 that occurs when a plurality of circuits BF1 are manufactured, and thus it is possible to more accurately input a potential corresponding to the weighting coefficient to the back gate of each transistor Tr02.

[0316] <Configuration example 2> FIG. 18 shows a configuration example different from configuration example 1 as the circuit BF1 having the function of correcting the threshold voltage of the transistor Tr02.

[0317] In the circuit BF1 in FIG. 18, the correction unit COR has switches S53 to S58 and a capacitor C21.

[0318] The second terminal of the transistor Tr01 of the driving unit DRV is electrically connected to the input terminal of the inverter circuit INV1 and the first terminal of the transistor Tr02 of the driving unit DRV, and the gate of the transistor Tr01 is electrically connected to the first terminal of the switch S55. The second terminal of the switch S55 is electrically connected to the gate of the transistor Tr02 and the first terminal of the switch S57. The second terminal of the switch S57 is electrically connected to the second terminal of the transistor Tr02, the first terminal of the switch S53, and the first terminal of the switch S58, and the second terminal of the switch S58 is electrically connected to the wiring VSSL. The back gate of the transistor Tr02 is electrically connected to the first terminal of the switch S56 and the first terminal of the capacitance element C21, and the second terminal of the switch S56 is electrically connected to the wiring Vref1L. The second terminal of the capacitance element C21 is electrically connected to the second terminal of the switch S53 and the first terminal of the switch S54, and the second terminal of the switch S54 is electrically connected to the first terminal of the transistor Tr03 of the holding unit HCA and the first terminal of the capacitance element C01 of the holding unit HCA. In addition, the terminal inp of the circuit MPC is electrically connected to the gate of the transistor Tr01 and the first terminal of the switch S55.

[0319] For the other connection configurations, refer to the contents of the circuit BF1 (particularly, FIG. 2B1 and the like) described in the above embodiment.

[0320] Wirings SL53 to SL58 are electrically connected to the control terminals of the switches S53 to S58, respectively. That is, by applying a predetermined voltage to each of the wirings SL53 to SL58, each of the switches S53 to S58 can be turned on or off. Note that in this specification and the like, each of the switches S53 to S58 is turned on when a high-level potential is applied to its control terminal, and turned off when a low-level potential is applied to its control terminal. The wirings SL53 to SL58 correspond to the wirings CL in FIG. 15A.

[0321] Note that, as the switches S53 to S58, analog switches, transistors, or the like can be used, for example, like the switches S51 to S54 described in the configuration example 1. Also, as the switches S53 to S58, for example, mechanical switches may be used. In particular, when a transistor is used as the switch S56, the transistor is preferably an OS transistor. Since it is preferable to hold the potential of the first terminal of the capacitor C21 and the potential of the backgate of the transistor Tr02 for a long time, it is preferable that the switch S56 be an OS transistor with low off-current. Also, OS transistors may be used for switches other than the switch S56.

[0322] The wire Vref1L is connected to a predetermined constant voltage V ref1 The constant voltage is preferably a voltage that, when input to the back gate of the transistor Tr02, shifts the threshold voltage of the transistor Tr02 in the negative direction.

[0323] In this configuration example, the electrical connection point between the first terminal of the switch S56, the backgate of the transistor Tr02, and the first terminal of the capacitance element C21 is referred to as node nd1. Similarly to configuration example 1, the electrical connection point between the second terminal of the capacitance element C21, the second terminal of the switch S53, and the first terminal of the switch S54 is referred to as node nd3. Furthermore, the electrical connection point between the first terminal of the transistor Tr03, the first terminal of the capacitance element C01, and the second terminal of the switch S54 is referred to as node nd2.

[0324] Next, an example of the operation for correcting the threshold voltage of the transistor Tr02 in the circuit BF1 of FIG. 18 will be described.

[0325] FIG. 19 is a timing chart showing an example of the operation of compensating the threshold voltage of transistor Tr02 in circuit BF1 of FIG. 18, and shows the changes in potential of terminal inp, wiring SL53 to wiring SL58, wiring SL01, and nodes nd1 to nd3 from time T21 to time T26 and at times around those times.

[0326] In this operation example, the voltage VSS applied by the line VSSL is set to 0 V as an example.

[0327] Between time T21 and time T22, the circuit BF1 is initialized in the operation of correcting the threshold voltage of the transistor Tr02. Specifically, the voltage VSS is applied to the terminal inp, a high-level potential is applied to the wirings SL53 and SL56 to SL58, and a low-level potential is applied to the wirings SL54, SL55, and SL01.

[0328] As a result, the switches S53, S56 to S58 are turned on, and the switches S54, S55 and the transistor Tr03 are turned off.

[0329] A voltage of 0V is input as VSS to the gate of the transistor Tr01, which turns the transistor Tr01 on.

[0330] In addition, since the switch S56 is in an on state, the line Vref1L and the first terminal of the capacitance element C21 are in a conductive state. As a result, the potential of the node nd1 is V ref1 In addition, because the switches S53 and S58 are in the on state, the second terminal of the capacitance element C21 and the wiring VSSL are in a conductive state. As a result, the potential of the node nd3 becomes VSS (=0V). In other words, the voltage between the first terminal and the second terminal of the capacitance element C21 (between the back gate and source of the transistor Tr02) becomes V ref1 It becomes.

[0331] In addition, because the switches S57 and S58 are on, the line VSSL and the gate of the transistor Tr02 are electrically connected. As a result, 0V is input as VSS to the gate and the second terminal of the transistor Tr02. Because VDD is applied to the first terminal of the transistor Tr02, the first terminal of the transistor Tr02 functions as a drain, and the second terminal of the transistor Tr02 functions as a source.

[0332] At this time, the gate-source voltage V of the transistor Tr02 GS The back gate of transistor Tr02 is V ref1 is input, and the threshold voltage of the transistor Tr02 is shifted to the negative side, so that the transistor Tr02 is in the on state.

[0333] Between time T22 and time T23, the potential of the line SL58 changes to a low level potential, and the switch S58 is turned off. As a result, the negative charge stored in the second terminal of the capacitance element C21 flows to the line VDDL through the first terminal and the second terminal of the transistor Tr02 until the transistor Tr02 is turned off. In other words, a positive charge flows from the line VDDL to the second terminal of the capacitance element C21 through the first terminal and the second terminal of the transistor Tr02 until the transistor Tr02 is turned off.

[0334] Through this process, the potential of the node nd3 rises from VSS. Therefore, the voltage between the back gate and source of the transistor Tr02 becomes V ref1 The threshold voltage of the transistor Tr02 gradually decreases from the voltage V GS When the potential at the node nd3 reaches V (=0V), the transistor Tr02 is turned off, and the potential at the node nd3 at this time is held at the second terminal of the capacitance element C21. The voltage between the back gate and source of the transistor Tr02 at this time, that is, the voltage between the first terminal and the second terminal of the capacitance element C21, is V BGS In addition, the potential of the node nd3 at this time is V ref1 -V BGS It becomes.

[0335] Between time T23 and time T24, the potential of the wiring SL56 changes to a low level potential, and the switch S56 is turned off. As a result, the node nd1 is in an electrically floating state, and the potential V ref1 is held by the first terminal of the capacitive element C21.

[0336] This operation causes the voltage between the back gate and source of the transistor Tr02 (between the first and second terminals of the capacitance element C21) to become equal to the voltage V BGS is set to.

[0337] Between time T24 and time T25, the potentials of the wirings SL53 and SL57 change to a low level potential, and the switches S53 and S57 are turned off. In addition, the potentials of the wirings SL55 and SL58 change to a high level potential, and the switches S55 and S58 are turned on. As a result, a conductive state is established between the terminal inp and the gate of the transistor Tr01, and between the terminal inp and the gate of the transistor Tr02. Also, a conductive state is established between the second terminal of the transistor Tr02 and the wiring VSSL.

[0338] In addition, a high-level potential is applied to the wiring SL01 between time T24 and time T25, so that the transistor Tr03 is turned on. At this time, the terminal wt is supplied with a potential V W Therefore, the potential V W In this operation example, the potential V W As an example, it is treated as a potential less than 0V.

[0339] Between time T25 and time T26, the potential of the line SL54 changes to a high level potential, and the switch S54 is turned on. This causes a state of conduction between the terminal wt and the second terminal of the capacitance element C21, and the second terminal (node ​​nd3) of the capacitance element C21 is supplied with the potential V W is applied.

[0340] At this time, since the node nd1 is in an electrically floating state, when the potential of the node nd3 fluctuates, the potential of the node nd1 also fluctuates due to the capacitive coupling of the capacitive element C21. In this operation example, as in the configuration example 1, the capacitive coupling coefficient of the capacitive element C21 is considered to be 1. Therefore, the amount of fluctuation in the potential of the node nd1 will be described as being the same as the amount of fluctuation in the potential of the node nd3.

[0341] Since the capacitive coupling coefficient is set to 1, the potential of node nd3 is V ref1 -V BGS From V ref1 -V BGS +V W The potential of the node nd1 rises to V BGS +V W In this operation example, V W Since is a negative potential, the potential of node nd1 is V BGS V than W The potential becomes low.

[0342] After time T26, the potential of the wiring SL01 changes to a low-level potential, and the transistor Tr03 is turned off. As a result, the potentials of the nodes nd2 and nd3 are held by the capacitors C01 and C21. That is, the potential of the node nd1, V BGS +V W is also retained.

[0343] 19, the circuit BF1 in Fig. 18 performs operations from time T21 to time T26 and after time T26, and can input a potential corresponding to the weighting coefficient to the back gate of the transistor Tr02 after correcting the threshold voltage of the transistor Tr02 to approximately 0, as in configuration example 1. Therefore, it is possible to suppress the variation in the threshold voltage of each transistor Tr02 that occurs when a plurality of circuits BF1 are fabricated, and thus it is possible to more accurately input a potential corresponding to the weighting coefficient to the back gate of each transistor Tr02.

[0344] <Configuration example 3> Fig. 20A shows a configuration example of the circuit BF1 in Fig. 15A. The circuit BF1 shown in Fig. 20A has a function of correcting the threshold voltage of a transistor Tr01.

[0345] In the circuit BF1 in FIG. 20A, the correction unit COR includes switches S58 to S61 and a capacitor C22.

[0346] A first terminal of the transistor Tr01 of the driving unit DRV is electrically connected to a first terminal of the switch S59 and the wiring VDDL, and a second terminal of the switch S59 is electrically connected to a first terminal of the capacitance element C22 and a first terminal of the switch S60. A second terminal of the capacitance element C22 is electrically connected to a gate of the transistor Tr01 and a first terminal of the switch S61, and a second terminal of the transistor Tr01 is electrically connected to a second terminal of the switch S61 and a first terminal of the switch S58. A second terminal of the switch S58 is electrically connected to a first terminal of the transistor Tr02 of the driving unit DRV and an input terminal of the inverter circuit INV1, and a second terminal of the switch S60 is electrically connected to a terminal inp and a gate of the transistor Tr02.

[0347] For the other connection configurations, refer to the contents of the circuit BF1 (particularly, FIG. 2B1 and the like) described in the above embodiment.

[0348] Wirings SL58 to SL61 are electrically connected to the control terminals of the switches S58 to S61, respectively. That is, by applying a predetermined voltage to the wirings SL58 to SL61, the switches S58 to S61 can be turned on or off. Note that in this specification and the like, the switches S58 to S61 are turned on when a high-level potential is applied to the control terminal, and turned off when a low-level potential is applied to the control terminal. The wirings SL58 to SL61 correspond to the wirings CL in FIG. 15A.

[0349] Note that, for example, analog switches, transistors, or the like can be used as the switches S58 to S61. For example, mechanical switches may be used as the switches S58 to S61. In particular, when a transistor is used as the switch S61, the transistor is preferably an OS transistor. Since it is preferable to hold the potential of the second terminal of the capacitor C22 and the potential of the gate of the transistor Tr01 for a long time, it is preferable that the switch S61 be an OS transistor with low off-current. Also, OS transistors may be used for switches other than the switch S61.

[0350] An electrical connection point between the gate of the transistor Tr01, the second terminal of the capacitive element C22, and the first terminal of the switch S61 is referred to as a node nd4. In addition, an electrical connection point between the first terminal of the transistor Tr03, the first terminal of the capacitive element C01, and the backgate of the transistor Tr02 is referred to as a node nd2.

[0351] Note that the circuit BF1 included in the semiconductor device of one embodiment of the present invention is not limited to the circuit BF1 in Fig. 20(A) and may have a configuration modified from the circuit BF1 in Fig. 20(A) depending on the situation. For example, in the circuit BF1 in Fig. 20(A), the switch S58 provided between the second terminal of the transistor Tr01 and the first terminal of the transistor Tr02 may be provided between the wiring VSSL and the second terminal of the transistor Tr02 as in the circuit BF1 shown in Fig. 20(B). Note that the reference symbol for the wiring CL is omitted in Fig. 20(B).

[0352] Next, an example of the operation for correcting the threshold voltage of the transistor Tr01 in the circuit BF1 of FIGS. 20(A) and 20(B) will be described.

[0353] FIG. 21 is a timing chart showing an example of operation of compensating the threshold voltage of transistor Tr01 in circuit BF1 in FIGS. 20(A) and (B), and shows changes in the potentials of terminal inp, wirings SL58 to SL61, wiring SL01, node nd2, and node nd4 from time T31 to time T35 and at times around those times.

[0354] In this operation example, the voltage VSS applied by the line VSSL is set to 0 V as an example.

[0355] Between time T31 and time T32, the circuit BF1 is initialized in the operation of correcting the threshold voltage of the transistor Tr01. Specifically, a voltage VDD is applied to the terminal inp, a high-level potential is applied to the wirings SL58, SL59, and SL61, and a low-level potential is applied to the wirings SL60 and SL01.

[0356] As a result, the switches S58, S59, and S61 are turned on, and the switch S60 and the transistor Tr03 are turned off.

[0357] The gate of the transistor Tr02 is supplied with VDD, which turns the transistor Tr02 on.

[0358] Also, because the switch S58, the switch S61, and the transistor Tr02 are in an on state, the wiring VSSL and the gate of the transistor Tr01, the wiring VSSL and the second terminal of the transistor Tr01, and the wiring VSSL and the second terminal of the capacitance element C22 are in a conductive state. As a result, the potential of the node nd4 becomes VSS (=0V). In addition, because the switch S59 is in an on state, the first terminal of the capacitance element C22 and the wiring VDDL are in a conductive state. As a result, the voltage between the first terminal and the second terminal of the capacitance element C22 becomes VDD.

[0359] At this time, 0V is input as VSS to the gate of transistor Tr01, 0V is input as VSS to the second terminal of transistor Tr01, and VDD is input to the first terminal of transistor Tr02, so that the first terminal of transistor Tr01 functions as a source and the second terminal of transistor Tr01 functions as a drain.

[0360] At this time, the gate-source voltage V of transistor Tr01 GS is -VDD, so the transistor Tr01 is in the on state.

[0361] Between time T32 and time T33, the potential of the line SL58 changes to a low level potential, and the switch S58 is turned off. As a result, the negative charge stored in the second terminal of the capacitance element C22 flows to the line VDDL through the first terminal and the second terminal of the transistor Tr01 until the transistor Tr01 is turned off. In other words, a positive charge flows from the line VDDL to the second terminal of the capacitance element C22 through the first terminal and the second terminal of the transistor Tr02 until the transistor Tr01 is turned off.

[0362] Through this process, the potential of the node nd4 rises from VSS, and the voltage V of the transistor Tr01 GS Finally, the voltage V of transistor Tr01 GS However, when the threshold voltage of the transistor Tr01 is reached, the transistor Tr01 is turned off, and the potential of the node nd4 at this time is held by the second terminal of the capacitance element C22. th Then, the potential of node nd4 is VDD+V th Therefore, the voltage between the first terminal and the second terminal of the capacitance element C22 is V th It becomes.

[0363] Between time T33 and time T34, the potential of the wiring SL61 changes to a low-level potential, and the switch S61 is turned off, whereby the node nd4 is brought into an electrically floating state and the potential of the node nd4 is held by the capacitor C22.

[0364] This operation causes the voltage between the gate and source of the transistor Tr01 (between the first and second terminals of the capacitance element C22) to become equal to the threshold voltage V th is set to.

[0365] Between time T34 and time T35, the potentials of the wiring SL58 and the wiring SL60 change to a high level potential, and the switches S58 and S60 are turned on. In addition, the potential of the wiring SL59 changes to a low level potential, and the switch S59 is turned off. This causes a state of conduction between the gate of the transistor Tr02 and the first terminal of the capacitance element C22. In the case of FIG. 20(A), a state of conduction occurs between the second terminal of the transistor Tr01 and the first terminal of the transistor Tr02, and in the case of FIG. 20(B), a state of conduction occurs between the second terminal of the transistor Tr02 and the wiring VSSL.

[0366] During the period from time T34 to time T35, a high-level potential is applied to the wiring SL01, so that the transistor Tr03 is turned on. At this time, the terminal wt is supplied with a potential V W Therefore, the potential V W The back gate of the transistor Tr02 is held at the potential V W In this example, the potential V W As an example, it is treated as a potential less than 0V.

[0367] After time T35, the potential of the wiring SL01 changes to a low level potential, and the transistor Tr03 is turned off. As a result, the potential V Wis held by the capacitance element C01.

[0368] 20A and 20B can correct the threshold voltage of the transistor Tr01 to approximately 0 by performing the operations from time T31 to time T35 and after time T35 shown in the timing chart of Fig. 21. Therefore, it is possible to suppress the variation in the threshold voltage of each transistor Tr01 that occurs when a plurality of circuits BF1 are manufactured.

[0369] <Configuration Example 4> FIG. 22 shows a configuration example different from configuration example 3 as the circuit BF1 having the function of correcting the threshold voltage of the transistor Tr01.

[0370] In the circuit BF1 in FIG. 22, the correction unit COR has a switch S51, a switch S59, a switch S60, a switch S62, and a capacitance element C22.

[0371] The first terminal of the switch S51 is electrically connected to the wiring VDDL, and the second terminal of the switch S51 is electrically connected to the first terminal of the transistor Tr01 of the driving unit DRV and the first terminal of the switch S59. The second terminal of the switch S59 is electrically connected to the first terminal of the capacitance element C22 and the first terminal of the switch S60, the second terminal of the capacitance element C22 is electrically connected to the gate of the transistor Tr01 and the first terminal of the switch S62, and the second terminal of the switch S62 is electrically connected to the wiring Vref2L. The second terminal of the transistor Tr01 is electrically connected to the first terminal of the transistor Tr02 of the driving unit DRV and the input terminal of the inverter circuit INV1, and the second terminal of the switch S60 is electrically connected to the gate of the transistor Tr02 and the terminal inp.

[0372] For the other connection configurations, refer to the contents of the circuit BF1 (particularly, FIG. 2B1 and the like) described in the above embodiment.

[0373] The control terminals of the switch S51, the switch S59, the switch S60, and the switch S62 are electrically connected to the wiring SL51, the wiring SL59, the wiring SL60, and the wiring SL62, respectively. That is, by applying a predetermined voltage to each of the wiring SL51, the wiring SL59, the wiring SL60, and the wiring SL62, each of the switch S51, the switch S59, the switch S60, and the switch S62 can be turned on or off. Note that in this specification and the like, each of the switch S51, the switch S59, the switch S60, and the switch S62 is turned on when a high-level potential is applied to the control terminal, and turned off when a low-level potential is applied to the control terminal. Also, the wiring SL51, the wiring SL59, the wiring SL60, and the wiring SL62 correspond to the wiring CL in FIG. 15(A).

[0374] Note that, for example, analog switches, transistors, or the like can be used as the switches S51, S59, S60, and S62. Also, for example, mechanical switches may be used as the switches S51, S59, S60, and S62. In particular, when a transistor is used as the switch S62, the transistor is preferably an OS transistor. Since it is preferable to hold the potential of the second terminal of the capacitance element C22 and the potential of the gate of the transistor Tr01 for a long time, it is suitable that the switch S62 is an OS transistor with a small off-current. Also, OS transistors may be used for switches other than the switch S62.

[0375] The wire Vref2L is connected to a predetermined constant voltage V ref2 The constant voltage is preferably a potential lower than VDD, for example. ref2 It is more preferable that −VDD is a potential that is less than the threshold voltage of the transistor Tr01. ref2 may be at ground potential.

[0376] An electrical connection point between the gate of the transistor Tr01, the second terminal of the capacitance element C22, and the first terminal of the switch S62 is referred to as a node nd4, and an electrical connection point between the second terminal of the switch S51, the first terminal of the switch S59, and the first terminal of the transistor Tr01 is referred to as a node nd5. In addition, similar to the configuration example 3, an electrical connection point between the first terminal of the transistor Tr03, the first terminal of the capacitance element C01, and the back gate of the transistor Tr02 is referred to as a node nd2.

[0377] Next, an example of the operation for correcting the threshold voltage of the transistor Tr01 in the circuit BF1 of FIG. 22 will be described.

[0378] FIG. 23 is a timing chart showing an example of operation of correcting the threshold voltage of transistor Tr01 in circuit BF1 of FIG. 22, and shows changes in potential of terminal inp, wiring SL51, wiring SL59, wiring SL60, wiring SL62, wiring SL01, node nd2, and node nd4 from time T41 to time T45 and at times around those times.

[0379] In this operation example, the voltage VSS applied by the line VSSL is set to 0 V as an example.

[0380] Between time T41 and time T42, the circuit BF1 is initialized in the operation of correcting the threshold voltage of the transistor Tr01. Specifically, a voltage VDD is applied to the terminal inp, a high-level potential is applied to the wirings SL51, SL59, and SL62, and a low-level potential is applied to the wirings SL60 and SL01.

[0381] As a result, the switches S51, S59, and S62 are turned on, and the switch S60 and the transistor Tr03 are turned off.

[0382] The gate of the transistor Tr02 is supplied with VDD, which turns the transistor Tr02 on.

[0383] In addition, since the switch S62 is in an on state, the line Vref2L and the second terminal of the capacitive element C22 and the line Vref2L and the gate of the transistor Tr01 are in a conductive state. As a result, the potential of the node nd4 is V ref2 In addition, since the switches S51 and S59 are in the on state, the line VDDL and the first terminal of the capacitance element C22 are in a conductive state. As a result, the voltage between the first terminal and the second terminal of the capacitance element C22 becomes equal to VDD-V ref2 Furthermore, since the transistor Tr02 is in the on state, electrical continuity is established between the line VSSL and the second terminal of the transistor Tr01.

[0384] To summarize the above, the gate of transistor Tr01 is V ref2 is input to the second terminal of transistor Tr01 as VSS, 0V is input to the second terminal of transistor Tr01 as VSS, and VDD is input to the first terminal of transistor Tr02, so that the first terminal of transistor Tr01 functions as a source and the second terminal of transistor Tr01 functions as a drain.

[0385] At this time, the gate-source voltage V of transistor Tr01 GS is V ref2 Since the voltage is -VDD, the transistor Tr01 is in the on state.

[0386] Between time T42 and time T43, the potential of the line SL51 changes to a low level potential, and the switch S51 is turned off. As a result, the positive charge stored in the first terminal of the capacitance element C22 flows to the line VSSL through the first and second terminals of the transistor Tr01 until the transistor Tr01 is turned off. In other words, negative charge flows from the line VSSL to the first terminal of the capacitance element C22 through the first and second terminals of the transistor Tr02 and the first and second terminals of the transistor Tr01 until the transistor Tr01 is turned off.

[0387] Through this process, the potential of the node nd5 drops from VDD, and the voltage V of the transistor Tr01 GS Finally, the voltage V of transistor Tr01 GS However, when the threshold voltage of the transistor Tr01 is reached, the transistor Tr01 is turned off, and the potential of the node nd5 at this time is held in the first terminal of the capacitance element C22. th Then, the potential of node nd5 at this time is V ref2 -V th Therefore, the voltage between the first terminal and the second terminal of the capacitance element C22 is V th It becomes.

[0388] Between time T43 and time T44, the potential of the wiring SL62 changes to a low-level potential, and the switch S62 is turned off, whereby the node nd4 is brought into an electrically floating state and the potential of the node nd4 is held by the second terminal of the capacitor C22.

[0389] This operation causes the voltage between the gate and source of the transistor Tr01 (between the first and second terminals of the capacitance element C22) to become equal to the threshold voltage V th is set to.

[0390] Between time T44 and time T45, the potentials of the lines SL51 and SL60 change to a high level potential, and the switches S51 and S60 are turned on. In addition, the potential of the line SL59 changes to a low level potential, and the switch S59 is turned off. This results in a conductive state between the terminal inp and the first terminal of the capacitance element C22. Also, a conductive state is established between the first terminal of the transistor Tr01 and the line VDDL.

[0391] During the period from time T44 to time T45, a high-level potential is applied to the wiring SL01, so that the transistor Tr03 is turned on. At this time, the terminal wt is supplied with a potential V WTherefore, the potential V W The back gate of the transistor Tr02 is held at the potential V W In this example, the potential V W As an example, it is treated as a potential less than 0V.

[0392] After time T45, the potential of the wiring SL01 changes to a low level potential, and the transistor Tr03 is turned off. As a result, the potential V W is held by the capacitance element C01.

[0393] The circuit BF1 in Fig. 22 can correct the threshold voltage of the transistor Tr01 to approximately 0 by performing the operations from time T41 to time T45 and after time T45 shown in the timing chart of Fig. 23. Therefore, it is possible to suppress the variation in the threshold voltage of each transistor Tr01 that occurs when a plurality of circuits BF1 are manufactured.

[0394] <Configuration Example 5> In configuration examples 1 and 2, a circuit BF1 having a function of compensating for the threshold voltage of transistor Tr02 has been described, and in configuration examples 3 and 4, a circuit BF1 having a function of compensating for the threshold voltage of transistor Tr01 has been described. However, by combining configuration examples 1 to 4, a circuit BF1 having a function of compensating for the threshold voltages of transistors Tr01 and Tr02 can be configured.

[0395] For example, FIG. 24 shows an example of a configuration in which the circuit BF1 of FIG. 16A described in the configuration example 1 and the circuit BF1 of FIG. 20A described in the configuration example 3 are combined. The switch S58 of the circuit BF1 shown in FIG. 24 can also function as a substitute for the switch S51 of the correction unit COR of the circuit BF1 of FIG. 16A. That is, the circuit BF1 of FIG. 24 is configured so that the switch S51 included in the circuit BF1 of FIG. 16A and the switch S58 included in the circuit BF1 of FIG. 20A are the same switch. By applying the circuit BF1 of FIG. 24 to the circuit MPC of the previous embodiment, the threshold voltages of the transistors Tr01 and Tr02 included in the circuit BF1 can be corrected. In this case, the wirings SL52 to SL54 and the wirings SL58 to SL61 correspond to the wirings CL in FIG. 15A (the reference numerals of the wirings CL are not shown in FIG. 24).

[0396] 25 shows an example of a configuration in which the circuit BF1 in FIG. 18 described in Configuration Example 2 and the circuit BF1 in FIG. 20A described in Configuration Example 3 are combined. By applying the circuit BF1 shown in FIG. 25 to the circuit MPC of the previous embodiment, the threshold voltages of the transistors Tr01 and Tr02 included in the circuit BF1 can be corrected. In this case, the wirings SL54 to SL61 correspond to the wirings CL in FIG. 15A (the reference numerals for the wirings CL are not shown in FIG. 25).

[0397] 26 shows an example of a configuration in which the circuit BF1 of FIG. 16B described in the configuration example 1 and the circuit BF1 of FIG. 22 described in the configuration example 4 are combined. In the circuit BF1 shown in FIG. 26, the switch S51 included in the circuit BF1 of FIG. 16B and the switch S51 included in the circuit BF1 of FIG. 22 are configured with the same switch. By applying the circuit BF1 of FIG. 26 to the circuit MPC of the previous embodiment, the threshold voltages of the transistors Tr01 and Tr02 included in the circuit BF1 can be corrected. In this case, the wirings SL51 to SL54, the wiring SL59, the wiring SL60, and the wiring SL62 correspond to the wirings CL in FIG. 15A (the reference symbol for the wirings CL is not shown in FIG. 26).

[0398] 27 shows an example of a configuration in which the circuit BF1 in FIG. 18 described in Configuration Example 2 and the circuit BF1 in FIG. 22 described in Configuration Example 4 are combined. By applying the circuit BF1 shown in FIG. 27 to the circuit MPC of the previous embodiment, the threshold voltages of the transistors Tr01 and Tr02 included in the circuit BF1 can be corrected. In this case, the wirings SL51, SL53 to SL60, and SL62 correspond to the wirings CL in FIG. 15A (the reference symbol for the wirings CL is not shown in FIG. 27).

[0399] <Configuration Example 6> Although the configuration example 5 shows an example in which the configuration example 1 or 2 described in this embodiment is combined with the configuration example 3 or 4, one embodiment of the present invention is not limited thereto. For example, the configuration examples 1 to 4 can be combined with the inverter circuit DINV1 described in Embodiment 3.

[0400] For example, a circuit BF1 shown in Fig. 28 can be configured by combining the circuit BF1 in Fig. 16(A) described in Configuration Example 1 with the inverter circuit DINV1 in Fig. 12(B) described in Embodiment 3. The circuit BF1 shown in Fig. 28 is configured by replacing the holding unit HCA in Fig. 16(A) with a circuit that combines the holding unit HCB in Fig. 12(B) and a transistor Tr03.

[0401] In FIG. 28, the output terminal of the inverter circuit SINV1 is electrically connected to the input terminal of the inverter circuit SINV2, the output terminal of the inverter circuit SINV2 is electrically connected to the second terminal of the switch S54, the input terminal of the inverter circuit SINV1, and the first terminal of the transistor Tr03, and the second terminal of the transistor Tr03 is electrically connected to the terminal wt.

[0402] The transistor Tr03 functions as a switching element for holding a potential according to the weighting coefficient input from the terminal wt, similar to the transistor Tr03 included in the circuit BF1 in Fig. 16(A). Note that, in some cases, like the inverter circuit DINV1 in Fig. 12(B), the inverter circuit DINV1 in Fig. 28 does not need to include the transistor Tr03.

[0403] For the holding portion HCB, please refer to the description of FIG. 12(B) in the third embodiment.

[0404] In FIG. 28, a circuit is shown in which the holding unit HCA of FIG. 16(A) is combined with the holding unit HCB of FIG. 12(B) and transistor Tr03. However, as another example, the HCA included in the circuit BF1 of FIG. 18 may be a circuit in which the holding unit HCB of FIG. 12(B) and transistor Tr03 are combined (see FIG. 29).

[0405] Also, for example, a circuit BF1 shown in Fig. 30 can be configured by combining the circuit BF1 of Fig. 16(A) described in Configuration Example 1 with the inverter circuit DINV1 of Fig. 14(A) described in Embodiment 3. The circuit BF1 shown in Fig. 30 has a circuit configuration that can hold two weighting coefficients and switch between the weighting coefficients depending on the situation, similar to the circuit BF1 of Fig. 14(A) in the embodiment 3.

[0406] Since the circuit BF1 in Fig. 30 is configured to switch between two weighting coefficients, the driving unit DRV included in the circuit BF1 in Fig. 30 is configured by adding a transistor Tr02a to the driving unit DRV of the circuit BF1 in Fig. 16(A). In addition, the inverter circuit DINV1 has a correction unit CORa with a circuit configuration similar to that of the correction unit COR in order to correct the threshold voltage of the transistor Tr02a. Furthermore, the inverter circuit DINV1 has a holding unit HCA1 and a holding unit HCA2 with a circuit configuration similar to that of the holding unit HCA included in the inverter circuit DINV1 in Fig. 16(A) in order to hold two potentials according to the weighting coefficients.

[0407] In Fig. 30, the circuit elements included in the holding unit HCA1 are indicated by the same reference numerals as the circuit elements included in the holding unit HCA of the inverter circuit DINV1 in Fig. 16(A). On the other hand, the circuit elements included in the holding unit HCA2 are indicated by adding "a" to the reference numerals of the circuit elements included in the holding unit HCA of the inverter circuit DINV1 in Fig. 16(A) to distinguish them from the holding unit HCA1.

[0408] Moreover, the circuit elements included in the correction unit CORa are also denoted by the reference numerals with the letter "a" added thereto in order to distinguish them from the circuit elements included in the correction unit COR.

[0409] Also, in Figure 30, unlike Figures 15(A)(B), Figures 16(A)(B), Figures 18, Figures 20(A)(B), Figures 22, and Figures 24 to 29, the parentheses and the symbols within the parentheses indicating the components of circuit BF2 are omitted, but the circuit BF1 in Figure 30 can also be applied to circuit BF2.

[0410] The second terminal of the transistor Tr01 is electrically connected to the first terminal of the switch S05, the first terminal of the switch S05a, and the input terminal of the inverter circuit INV1. The second terminal of the switch S05 is electrically connected to the first terminal of the switch S51 of the correction unit COR, and the second terminal of the switch S05a is electrically connected to the first terminal of the switch S51a of the correction unit CORa. The switches S51 and S51a have a function of selecting the weighting coefficients held in the holding units HCA1 and HCA2, respectively. For example, when using the weighting coefficients held in the holding unit HCA1, the switch S05 is turned on and the switch S05a is turned off, and when using the weighting coefficients held in the holding unit HCA2, the switch S05 is turned off and the switch S05a is turned on. When correcting the threshold voltages of the transistors Tr02 and Tr02a, the switches S51 and S51a can be turned on simultaneously.

[0411] A control terminal of the switch S51a is electrically connected to the wiring SL51, a control terminal of the switch S52a is electrically connected to the wiring SL52, a control terminal of the switch S53a is electrically connected to the wiring SL53, and a control terminal of the switch S54a is electrically connected to the wiring SL54. In other words, since the switching operations of the switches S51a to S54a of the correction unit CORa operate in the same manner as the switches S51 to S54 of the correction unit COR, respectively, the correction of the threshold voltage of the transistor Tr02a can be performed simultaneously with the correction of the threshold voltage of the transistor Tr02.

[0412] <Configuration Example 7> The circuit BF1 shown in configuration examples 1 to 6 has been described as a circuit configuration applicable to the circuit BF1 in Figure 15(A). However, the driver unit DRV and / or the inverter circuit INV1 described in configuration examples 1 to 6 may be replaced with a logic circuit LGC1 and a logic circuit LGC2 having the function of an inverter circuit, as in the configuration example of the circuit BF1 in Figure 15(B).

[0413] For example, Fig. 31(A) shows a circuit configuration in which the driving unit DRV and the inverter circuit INV1 shown in Fig. 16(A) described in Configuration Example 1 are replaced with logic circuits LGC1 and LGC2, respectively. In Fig. 31(A), the logic circuit LGC1 is configured as a NAND circuit, as an example.

[0414] In FIG. 31A, the logic circuit LGC1 includes transistors Tr01, Tr02, Tr41, and Tr42, and these transistors form a NAND circuit. Specifically, the first terminal of the transistor Tr01 is electrically connected to a wiring VDDL, the second terminal of the transistor Tr01 is electrically connected to a first terminal of the transistor Tr41 and an input terminal of the logic circuit LGC2, and the gate of the transistor Tr01 is electrically connected to a terminal inp and a gate of the transistor Tr02. The second terminal of the transistor Tr41 is electrically connected to a first terminal of the switch S51, and the gate of the transistor Tr41 is electrically connected to a gate of the transistor Tr42 and a wiring VAL. The first terminal of the transistor Tr42 is electrically connected to a wiring VDDL, and the second terminal of the transistor Tr42 is electrically connected to an input terminal of the logic circuit LGC2. The second terminal of the switch S51 is electrically connected to a first terminal of the transistor Tr02.

[0415] For connection configurations other than those described above, please refer to the explanation of FIG.

[0416] The wiring VAL functions as a wiring that supplies a constant voltage. The constant voltage is preferably a high-level potential. By using the wiring VAL as a wiring that supplies a high-level potential, the logic circuit LGC1 in FIG. 31A can function as an inverter circuit.

[0417] Also, the connection configuration around the transistor Tr02 included in the circuit BF1 of Fig. 31(A) is similar to the connection configuration around the transistor Tr02 of the circuit BF1 of Fig. 16(A). That is, the circuit BF1 of Fig. 31(A) can correct the threshold voltage of the transistor Tr02 included in the logic circuit LGC1, similar to the circuit BF1 of Fig. 16(A).

[0418] Also, for example, in Fig. 30(A), the logic circuit LGC1 is configured as a NAND circuit, but may be configured as a NOR circuit. As an example, the circuit BF1 in Fig. 31(B) is configured such that the logic circuit LGC1 is configured as a NOR circuit.

[0419] In FIG. 31B, the logic circuit LGC1 includes a transistor Tr01, a transistor Tr02, a transistor Tr43, and a transistor Tr44, and these transistors form a NOR circuit. Specifically, a first terminal of the transistor Tr01 is electrically connected to a wiring VDDL, a second terminal of the transistor Tr01 is electrically connected to a first terminal of the transistor Tr43, and a gate of the transistor Tr01 is electrically connected to a terminal inp and a gate of the transistor Tr02. A second terminal of the transistor Tr43 is electrically connected to a first terminal of the switch S51, an input terminal of the logic circuit LGC2, and a first terminal of the transistor Tr44, and a gate of the transistor Tr43 is electrically connected to a gate of the transistor Tr44 and a wiring VBL. A first terminal of the transistor Tr02 is electrically connected to a second terminal of the switch S51, and a second terminal of the transistor Tr02 is electrically connected to a second terminal of the transistor Tr44. A second terminal of the switch S51 is electrically connected to a first terminal of the transistor Tr02.

[0420] For connection configurations other than those described above, please refer to the explanation of FIG.

[0421] The wiring VBL functions as a wiring that supplies a constant voltage. The constant voltage is preferably a low-level potential. When the wiring VBL is a wiring that supplies a low-level potential, the logic circuit LGC1 in FIG. 31B can function as an inverter circuit.

[0422] Also, the connection configuration around the transistor Tr02 included in the circuit BF1 of Fig. 31(B) is similar to the connection configuration around the transistor Tr02 of the circuit BF1 of Fig. 16(A). That is, the circuit BF1 of Fig. 31(B) can correct the threshold voltage of the transistor Tr02 included in the logic circuit LGC1, similar to the circuit BF1 of Fig. 16(A).

[0423] As described above, even if the driving unit DRV and / or the inverter circuit INV1 in FIG. 15(A) are replaced with the logic circuits LGC1 and LGC2 having the function of an inverter circuit as in the configuration example of the circuit BF1 in FIG. 15(B), the circuit BF1 in FIG. 15(B) can have the same function as the circuit BF1 in FIG. 15(A). Therefore, the inverter circuit DINV1 (inverter circuit DINV2) (strictly speaking, the driving unit DRV having the function of an inverter circuit) and / or the inverter circuit INV1 (inverter circuit INV2) described in this specification and the like can be configured as a logic circuit such as a NAND circuit or a NOR circuit. In addition, the inverter circuit DINV1 (inverter circuit DINV2) (the driving unit DRV having the function of an inverter circuit) and / or the inverter circuit INV1 (inverter circuit INV2) may be a logic circuit combining a NAND circuit, a NOR circuit, an XOR circuit, or the like.

[0424] <Example of arithmetic circuit configuration> Here, the circuit BF1 described in Configuration Examples 1 to 7 is applied to the circuit MPC described in embodiment 1, and an example of an arithmetic circuit in which the circuits MPC are arranged in a matrix like the arithmetic circuit 120 described in embodiment 2 is described.

[0425] First, a configuration example of a circuit MPC to which the circuit BF1 (circuit BF2) in Fig. 16A described in Configuration Example 1 is applied and wiring electrically connected to the circuit MPC will be described. The circuit MPC shown in Fig. 32A includes the circuit BF1 in Fig. 16 and a circuit BF2 having the same configuration as the circuit BF1.

[0426] 32A illustrates a correction unit COR in each of the inverter circuits DINV1 and DINV2 included in the circuit MPC. Wirings SL51 to SL54 can be electrically connected to the correction units COR, and such a connection configuration allows the threshold voltages of the transistors Tr02 (not shown) included in each of the inverter circuits DINV1 and DINV2 to be corrected simultaneously.

[0427] In addition, in Figure 32(A), the wirings SL51 to SL54 are collectively referred to as wirings CL. As one example, the wirings CL can extend in the column direction. As another example, as shown in Figure 32(B), the wirings CL may extend in the row direction. As another example, some of the wirings SL51 to SL54 may extend in the column direction, and the rest may extend in the row direction (not shown).

[0428] 32A and 32B show a circuit configuration in which the circuit BF1 (circuit BF2) in FIG. 16A of Configuration Example 1 is applied to the circuit MPC, and therefore the wirings SL51 to SL54 are illustrated as the wirings CL, but when the circuit BF1 (circuit BF2) described in another configuration example is applied to the circuit MPC, the wirings corresponding to the wirings CL may be different from the wirings SL51 to SL54. For example, when the circuit BF1 (circuit BF2) in FIG. 20A of Configuration Example 3 is applied to the circuit MPC, the wirings SL51 and the wirings SL59 to SL61 correspond to the wirings CL, and when the circuit BF1 (circuit BF2) in FIG. 26 of Configuration Example 5 is applied to the circuit MPC, the wirings SL51 to SL54, the wiring SL59, the wiring SL60, and the wiring SL62 correspond to the wirings CL.

[0429] The terminal wt electrically connected to the inverter circuit DINV1 is electrically connected to the wiring DL, and the terminal wt electrically connected to the inverter circuit DINV2 is electrically connected to the wiring DLm. In addition, the wiring SL01 electrically connected to the inverter circuits DINV1 and DINV2 is electrically connected to the wiring SWL.

[0430] The wiring DL and / or wiring DLm may extend in the column direction, for example. In addition, the wiring SWL may extend in the row direction, for example. Note that the direction in which the wiring DL, wiring DLm, and wiring SWL of the circuit MPC shown in Figures 32(A) and 32(B) extend is the same as the direction in which the wiring DL, wiring DLm, and wiring SWL connected to the circuit MPC shown in Figure 9 extend.

[0431] 32A and 32B may be configured, for example, as in the circuit MPC shown in FIG 11, with the wiring DL extending in the column direction and the wiring SWL and wiring SWLm extending in the row direction. In this case, the circuit MPC in FIG 32A and 32B may be configured such that the terminals wt and wtm are electrically connected to the wiring DL, the wiring SL01 of the inverter circuit DINV1 is electrically connected to the wiring SWL, and the wiring SL01 of the inverter circuit DINV2 is electrically connected to the wiring SWLm (not shown). For details of the connection configuration, refer to the description of FIG 11.

[0432] Next, FIG. 33 shows a configuration example of an arithmetic circuit in which the circuits MPC in FIG. 32(A) are arranged in a matrix.

[0433] The arithmetic circuit 140 is configured by applying the circuit MPC of Fig. 32(A) and separately providing a circuit COD in the configuration of the arithmetic circuit 120 of Fig. 9 described in the embodiment 2. Therefore, the description of the embodiment 2 should be referred to for the circuit AFP including a plurality of circuits ACTF, the circuit TSG, the circuit WLD, the circuit SWLD, and the conversion circuit TRF shown in Fig. 33.

[0434] The array unit ALP has n×m circuits MPC, similar to the arithmetic circuit 120 in Fig. 9, and the circuits MPC are arranged in a matrix of n rows and m columns in the array unit ALP. In Fig. 9, the circuit MPC located in the jth row and the ith column (where j is an integer between 1 and n, and i is an integer between 1 and m) is represented as the circuit MPC[j,i]. However, in Fig. 33, only the circuit MPC[1,1], the circuit MPC[1,m], the circuit MPC[n,1], and the circuit MPC[n,m] are illustrated, and the other circuits MPC are not illustrated.

[0435] 33, for convenience, the terminal ct is illustrated in each of the circuits MPC[1,1] to MPC[n,m]. The terminal ct functions as a terminal for supplying a signal to the correction unit COR of the inverter circuit DINV1 and the inverter circuit DINV2 included in each of the circuits MPC[1,1] to MPC[n,m].

[0436] The terminals ct of the circuits MPC[1,i] to MPC[n,i] are electrically connected to the wiring CL[i]. The wiring CL[i] corresponds to the wiring CL in the configuration examples 1 to 7, and the wirings CL[1] and CL[m] are illustrated in FIG.

[0437] The circuit COD has a function of applying a predetermined signal to the wiring CL[1] to wiring CL[m] in order to operate the correction unit COR of the inverter circuit DINV1 and the inverter circuit DINV2 included in each of the circuits MPC[1,1] to MPC[n,m]. As described in the operation example of FIG. 16A, the circuit COD can apply a predetermined signal to the wiring SL51 to wiring SL54 included in each of the wirings CL[1] to CL[m] to correct the threshold voltage of the transistor Tr02 of the inverter circuit DINV1 and the inverter circuit DINV2 included in each of the circuits MPC[1,1] to MPC[n,m].

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

[0439] (Embodiment 5) In this embodiment, a structural example of an OS transistor that can be used in the semiconductor device described in the above embodiment will be described.

[0440] <Example of semiconductor device configuration> The semiconductor device shown in Fig. 34 includes a transistor 300, a transistor 500, and a capacitor 600. Fig. 36A is a cross-sectional view of the transistor 500 in the channel length direction, Fig. 36B is a cross-sectional view of the transistor 500 in the channel width direction, and Fig. 36C is a cross-sectional view of the transistor 300 in the channel width direction.

[0441] The transistor 500 is a transistor having a metal oxide in a channel formation region (OS transistor). Since the off-state current of the transistor 500 is small, the use of the transistor 500 for a semiconductor device, particularly for the transistor Tr03 in the arithmetic circuit 110, enables written data to be held for a long period of time. In other words, the frequency of refresh operations is low or the refresh operations are not required, and therefore the power consumption of the semiconductor device can be reduced.

[0442] 34, the semiconductor device described in this embodiment includes a transistor 300, a transistor 500, and a capacitor 600. The transistor 500 is provided above the transistor 300, and the capacitor 600 is provided above the transistors 300 and 500. Note that the capacitor 600 can be the capacitor C01 in the circuit BF1, for example.

[0443] 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 functioning as a source region or a drain region. Note that the transistor 300 can be applied to, for example, the transistor in the above embodiment.

[0444] 36(C), the top 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.

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

[0446] 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 containing Ge (germanium), SiGe (silicon germanium), GaAs (gallium arsenide), GaAlAs (gallium aluminum arsenide), 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.

[0447] 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.

[0448] 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.

[0449] 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 a material such as titanium nitride or tantalum nitride for the conductor. Furthermore, in order to achieve both electrical conductivity and embeddability, it is preferable to use a metal material such as tungsten or aluminum as the conductor in a laminated state, and in particular, it is preferable to use tungsten in terms of heat resistance.

[0450] Note that the transistor 300 illustrated in Figure 34 is just an example and is not limited to this structure, and an appropriate transistor may be used depending on the circuit configuration and driving method. 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 illustrated in Figure 35. Details of the transistor 500 will be described later.

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

[0452] 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.

[0453] 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.

[0454] 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.

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

[0456] 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.

[0457] 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.

[0458] 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.

[0459] 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.

[0460] 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.

[0461] A wiring layer may be provided over the insulator 326 and the conductor 330. For example, in FIG. 34 , 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.

[0462] 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.

[0463] 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.

[0464] A wiring layer may be provided over the insulator 354 and the conductor 356. For example, in FIG. 34, 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.

[0465] 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.

[0466] A wiring layer may be provided over the insulator 364 and the conductor 366. For example, in FIG. 34, an insulator 370, an insulator 372, and an insulator 374 are stacked in this order. A conductor 376 is formed in the insulator 370, the insulator 372, and the insulator 374. The conductor 376 functions as a plug or a wiring. Note that the conductor 376 can be provided using a material similar to that of the conductor 328 and the conductor 330.

[0467] Note that, for example, the insulator 370 is preferably an insulator having a barrier property against hydrogen, similar to the insulator 324. The conductor 376 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 370 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.

[0468] A wiring layer may be provided over the insulator 374 and the conductor 376. For example, in FIG. 34, an insulator 380, an insulator 382, ​​and an insulator 384 are stacked in this order. A conductor 386 is formed in the insulator 380, the insulator 382, ​​and the insulator 384. The conductor 386 functions as a plug or a wiring. Note that the conductor 386 can be provided using a material similar to that of the conductor 328 and the conductor 330.

[0469] Note that, for example, the insulator 380 is preferably an insulator having a barrier property against hydrogen, similar to the insulator 324. The conductor 386 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 380 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.

[0470] In the above, a wiring layer including the conductor 356, a wiring layer including the conductor 366, a wiring layer including the conductor 376, and a wiring layer including the conductor 386 have been described, but the semiconductor device of this embodiment is not limited to this. There may be three or fewer wiring layers similar to the wiring layer including the conductor 356, or there may be five or more wiring layers similar to the wiring layer including the conductor 356.

[0471] An insulator 510, an insulator 512, an insulator 514, and an insulator 516 are stacked in this order over the insulator 384. 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 or hydrogen.

[0472] For example, the insulator 510 and the insulator 514 are preferably formed using a film having a barrier property that prevents hydrogen or impurities 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.

[0473] 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.

[0474] 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.

[0475] 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.

[0476] 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.

[0477] 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.

[0478] 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.

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

[0480] As shown in Figures 36(A) and (B), 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 conductor 542a and the conductor 542b and having an opening formed therein overlapping with the conductor 542a and the conductor 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.

[0481] 36(A)(B), it is preferable that an insulator 544 be arranged 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 FIG. 36(A)(B). It is preferable that an insulator 574 be arranged on the insulator 580, the conductor 560, and the insulator 550, as shown in FIG. 36(A)(B).

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

[0483] In the transistor 500, a three-layer structure of the oxide 530a, the oxide 530b, and the oxide 530c is shown in the region where the channel is formed and in the vicinity thereof, but 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 shown as having a two-layer stacked structure, but 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. In addition, the transistor 500 shown in FIG. 34 and FIG. 36(A)(B) is only an example, and the present invention is not limited thereto, and an appropriate transistor may be used depending on the circuit configuration and the driving method.

[0484] 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.

[0485] 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.

[0486] 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.

[0487] 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.

[0488] 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 inside. Note that, although the transistor 500 has a structure in which the conductor 503a and the conductor 503b are stacked, the present invention is not limited to this. For example, the conductor 503 may have a single layer or a stacked structure of three or more layers.

[0489] 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.

[0490] 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.

[0491] Furthermore, when the conductor 503 also functions as a wiring, it is preferable that the conductor 503b is made of a highly conductive material containing tungsten, copper, or aluminum as a main component. In that case, the conductor 505 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, titanium nitride, and the above-mentioned conductive material.

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

[0493] 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.

[0494] 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 more and 700° C. or less, or 100° C. or more and 400° C. or less.

[0495] 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).

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

[0497] 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.

[0498] 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 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.

[0499] 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.

[0500] 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.

[0501] 36A and 36B, the second gate insulating film has a stacked structure of three layers, which includes the insulator 520, the insulator 522, and the insulator 524. However, the second gate insulating film may have a single layer, a two-layer, or a four or more layer stacked structure. In this case, the second gate insulating film is not limited to a stacked structure made of the same material, and may have a stacked structure made of different materials.

[0502] 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, or the like) may be used for the oxide 530. In particular, it is preferable that the In-M-Zn oxide applicable to the oxide 530 is CAAC-OS or CAC-OS described in the sixth embodiment. Alternatively, the oxide 530 may be In-Ga oxide or In-Zn oxide.

[0503] 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.

[0504] 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.

[0505] The oxide 530 preferably has a laminated structure of oxides 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.

[0506] 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.

[0507] 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.

[0508] 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.

[0509] 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.

[0510] 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 nitride, 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.

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

[0512] 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.

[0513] 36A, 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 between the regions 543a and 543b.

[0514] 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 density in the region 543a (region 543b) increases, and the region 543a (region 543b) becomes a low-resistance region.

[0515] 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 surface of the oxide 530 and to be in contact with the insulator 524.

[0516] 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.

[0517] 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.

[0518] 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.

[0519] 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.

[0520] 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.

[0521] 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.

[0522] 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.

[0523] 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.

[0524] The conductor 560 functioning as the first gate electrode is shown as having a two-layer structure in FIGS. 36(A) and 36(B), but may have a single-layer structure or a stacked structure of three or more layers.

[0525] 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.). When the conductor 560a has a function of suppressing the diffusion of oxygen, it is possible to suppress the conductor 560b from being oxidized by the oxygen contained in the insulator 550 and the 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.

[0526] 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, titanium nitride, and the above conductive material.

[0527] 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 an excess oxygen region can be easily formed in a later step.

[0528] 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.

[0529] 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.

[0530] 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.

[0531] 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.

[0532] 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.

[0533] 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.

[0534] 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.

[0535] 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.

[0536] 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.

[0537] 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.

[0538] 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, a silicon oxide film, a silicon oxynitride film, or the like can be used as the insulator 586.

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

[0540] 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.

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

[0542] 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.

[0543] 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.

[0544] 34, the conductor 612 and the conductor 610 have a single-layer structure, but are not limited to this structure and may have a laminated 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.

[0545] 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.

[0546] 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.

[0547] 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.

[0548] <Example of transistor structure> Note that the transistor 500 of the semiconductor device described in this embodiment is not limited to the above structure. Structural examples that can be used for the transistor 500 will be described below. Note that the transistor described below is a modified example of the transistor described above, and therefore, in the following description, differences will be mainly described, and similarities may be omitted.

[0549] <<Transistor structure example 1>> A structural example of a transistor 500A will be described with reference to Figures 37(A) to (C). Figure 37(A) is a top view of the transistor 500A. Figure 37(B) is a cross-sectional view of a portion indicated by dashed dotted line L1-L2 in Figure 37(A). Figure 37(C) is a cross-sectional view of a portion indicated by dashed dotted line W1-W2 in Figure 37(A). Note that in the top view of Figure 37(A), some elements are omitted for clarity.

[0550] A transistor 500A shown in Figures 37(A) to (C) has a structure in which an insulator 511 that functions as an interlayer film and a conductor 505 that functions as a wiring are added to the transistor 500 shown in Figure 36(A).

[0551] 37A to 37C, the oxide 530c, the insulator 550, and the conductor 560 are disposed in an opening in the insulator 580 with the insulator 544 interposed therebetween. The oxide 530c, the insulator 550, and the conductor 560 are disposed between the conductor 542a and the conductor 542b.

[0552] As the insulator 511, a single layer or a stack of insulators such as silicon oxide, silicon oxynitride, silicon nitride oxide, aluminum oxide, hafnium oxide, tantalum oxide, zirconium oxide, lead zirconate titanate (PZT), strontium titanate (SrTiO3), or (Ba,Sr)TiO3 (BST) can be used. 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.

[0553] For example, the insulator 511 preferably functions as a barrier film that suppresses impurities such as water or hydrogen from entering the transistor 500A from the substrate side. Therefore, the insulator 511 is preferably made of an insulating material that has 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 the insulator). Alternatively, the insulator 511 is preferably made of an insulating material that has a function of suppressing the diffusion of oxygen (for example, at least one of oxygen atoms, oxygen molecules, and the like) (the oxygen is less likely to permeate through the insulator). For example, aluminum oxide or silicon nitride may be used as the insulator 511. With this configuration, it is possible to suppress the diffusion of impurities such as hydrogen and water from the substrate side toward the transistor 500A side through the insulator 511.

[0554] For example, the insulator 512 preferably has a lower dielectric constant than the insulator 511. By using a material with a low dielectric constant as an interlayer film, parasitic capacitance generated between wirings can be reduced.

[0555] The conductor 505 is formed so as to be embedded in the insulator 512. Here, the height of the top surface of the conductor 505 and the height of the top surface of the insulator 512 can be approximately the same. Note that although the conductor 505 is shown as having a single layer structure, the present invention is not limited to this. For example, the conductor 505 may have a multi-layer structure of two or more layers. Note that the conductor 505 is preferably made of a highly conductive material containing tungsten, copper, or aluminum as a main component.

[0556] The insulator 514 and the insulator 516 function as an interlayer film, similar to the insulator 511 or the insulator 512. For example, the insulator 514 preferably functions as a barrier film that suppresses impurities such as water or hydrogen from entering the transistor 500A from the substrate side. With this structure, impurities such as hydrogen or water can be suppressed from diffusing from the substrate side to the transistor 500A side through the insulator 514. For example, the insulator 516 preferably has a lower dielectric constant than the insulator 514. By using a material with a low dielectric constant as an interlayer film, parasitic capacitance generated between wirings can be reduced.

[0557] The insulator 522 preferably has a barrier property. When the insulator 522 has a barrier property, it functions as a layer that prevents impurities such as hydrogen from entering the transistor 500A from the periphery of the transistor 500A.

[0558] The oxide 530c is preferably provided in an opening in the insulator 580 via the insulator 544. When the insulator 544 has a barrier property, it can suppress diffusion of impurities from the insulator 580 to the oxide 530.

[0559] A barrier layer may be provided over the conductor 542a and the conductor 542b. The barrier layer is preferably formed using a substance that has a barrier property against oxygen or hydrogen. With this structure, oxidation of the conductor 542a and the conductor 542b can be suppressed when the insulator 544 is formed.

[0560] For example, a metal oxide can be used for the barrier layer. In particular, it is preferable to use an insulating film having a barrier property against oxygen and hydrogen, such as aluminum oxide, hafnium oxide, or gallium oxide. Silicon nitride formed by a CVD method may also be used.

[0561] The provision of the barrier layer can broaden the range of material choices for the conductor 542a and the conductor 542b. For example, a material that has low oxidation resistance but high conductivity, such as tungsten or aluminum, can be used for the conductor 542a and the conductor 542b. In addition, for example, a conductor that is easy to form or process can be used.

[0562] The insulator 550 functions as a first gate insulating film. The insulator 550 is preferably provided in an opening in the insulator 580 with the oxide 530c and the insulator 544 interposed therebetween.

[0563] As the material of the conductor 540a and the conductor 540b, 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 stacked layer, similar to the conductor 503. For example, it is preferable to use a high melting point material such as tungsten or molybdenum that has both heat resistance and conductivity. Alternatively, it is preferable to form the conductor 540a and the conductor 540b from a low resistance conductive material such as aluminum or copper. By using a low resistance conductive material, the wiring resistance can be reduced.

[0564] For example, by using a layered structure of tantalum nitride, a conductor having barrier properties against hydrogen and oxygen, and tungsten, which has high conductivity, for the conductors 540a and 540b, it is possible to suppress the diffusion of impurities from the outside while maintaining the conductivity as wiring.

[0565] With the above structure, a semiconductor device including a transistor having an oxide semiconductor and high on-state current can be provided. Alternatively, a semiconductor device including a transistor having an oxide semiconductor and low off-state current can be provided. Alternatively, a semiconductor device in which fluctuation in electrical characteristics is suppressed, which has stable electrical characteristics and improved reliability can be provided.

[0566] <<Transistor structure example 2>> A structural example of a transistor 500B will be described with reference to Figures 38(A) to (C). Figure 38(A) is a top view of the transistor 500B. Figure 38(B) is a cross-sectional view of a portion indicated by dashed dotted line L1-L2 in Figure 38(A). Figure 38(C) is a cross-sectional view of a portion indicated by dashed dotted line W1-W2 in Figure 38(A). Note that in the top view of Figure 38(A), some elements are omitted for clarity.

[0567] The transistor 500B is a modified example of the transistor 500A. Therefore, in order to avoid repetition of the description, the following description will mainly focus on the differences from the transistor 500A.

[0568] The transistor 500B has a region in which the conductor 542a (the conductor 542b), the oxide 530c, the insulator 550, and the conductor 560 overlap with each other. With this structure, a transistor with high on-state current can be provided. In addition, a transistor with high controllability can be provided.

[0569] The conductor 560 functioning as the first gate electrode has a conductor 560a and a conductor 560b on the conductor 560a. As with the conductor 503a, the conductor 560a is preferably made of a conductive material having a function of suppressing diffusion of impurities such as hydrogen atoms, hydrogen molecules, water molecules, and copper atoms. Alternatively, the conductor 560a is preferably made of a conductive material having a function of suppressing diffusion of oxygen (for example, at least one of oxygen atoms, oxygen molecules, and the like).

[0570] The conductor 560a has a function of suppressing oxygen diffusion, which improves the material selectivity of the conductor 560b. In other words, the presence of the conductor 560a suppresses oxidation of the conductor 560b, thereby preventing a decrease in electrical conductivity.

[0571] It is also preferable to provide an insulator 544 so as to cover the top and side surfaces of the conductor 560, the side surfaces of the insulator 550, and the side surfaces of the oxide 530c.

[0572] Providing the insulator 544 can suppress oxidation of the conductor 560. Furthermore, providing the insulator 544 can suppress diffusion of impurities such as water and hydrogen contained in the insulator 580 to the transistor 500B.

[0573] Furthermore, the contact plug of the transistor 500B has a different configuration from that of the transistor 500A. In the transistor 500B, an insulator 576a (insulator 576b) having barrier properties is disposed between a conductor 546a (conductor 546b) functioning as a contact plug and an insulator 580. By providing the insulator 576a (insulator 576b), it is possible to suppress the conductor 546 from being oxidized due to a reaction of oxygen in the insulator 580 with the conductor 546.

[0574] Furthermore, by providing the insulator 576a (insulator 576b) having a barrier property, the range of materials that can be selected for the conductors used for the plugs and wirings can be expanded. For example, by using a metal material that has a property of absorbing oxygen and has high conductivity for the conductor 546a (conductor 546b), a semiconductor device with low power consumption can be provided. Specifically, a material that has low oxidation resistance but high conductivity, such as tungsten or aluminum, can be used. Also, for example, a conductor that is easy to form or process can be used.

[0575] <<Transistor structure example 3>> A structural example of a transistor 500C will be described with reference to Figures 39(A) to (C). Figure 39(A) is a top view of the transistor 500C. Figure 39(B) is a cross-sectional view of a portion indicated by dashed dotted line L1-L2 in Figure 39(A). Figure 39(C) is a cross-sectional view of a portion indicated by dashed dotted line W1-W2 in Figure 39(A). Note that in the top view of Figure 39(A), some elements are omitted for clarity.

[0576] The transistor 500C is a modified example of the transistor 500A, and therefore, in order to avoid repetition of description, the following description will focus mainly on the differences from the transistor 500A.

[0577] 39A to 39C, a conductor 547a is disposed between the conductor 542a and the oxide 530b, and a conductor 547b is disposed between the conductor 542b and the oxide 530b. The conductor 542a (conductor 542b) extends beyond the top surface of the conductor 547a (conductor 547b) and the side surface on the conductor 560 side, and has a region in contact with the top surface of the oxide 530b. The conductor 547a and the conductor 547b may be made of any conductor that can be used for the conductor 542a and the conductor 542b. Furthermore, the thicknesses of the conductor 547a and the conductor 547b are preferably at least thicker than the thicknesses of the conductor 542a and the conductor 542b.

[0578] 39 has the above-described structure, the conductor 542a and the conductor 542b can be closer to the conductor 560 than in the transistor 500A. Alternatively, the ends of the conductor 542a and the conductor 542b can overlap with the conductor 560. This can shorten the effective channel length of the transistor 500C, thereby improving the on-state current and the frequency characteristics.

[0579] Moreover, the conductor 547a (conductor 547b) is preferably provided so as to overlap the conductor 542a (conductor 542b). With this configuration, the conductor 547a (conductor 547b) functions as a stopper in etching to form an opening in which the conductor 540a (conductor 540b) is to be embedded, thereby preventing the oxide 530b from being overetched.

[0580] 39 has a structure in which an insulator 545 is disposed on and in contact with an insulator 544. The insulator 544 preferably functions as a barrier insulating film that suppresses impurities such as water or hydrogen or excess oxygen from entering the transistor 500C from the insulator 580. The insulator 545 can be any insulator that can be used for the insulator 544. The insulator 544 may be a nitride insulator such as aluminum nitride, aluminum titanium nitride, titanium nitride, silicon nitride, or silicon nitride oxide.

[0581] 37, the transistor 500C shown in FIG. 39 has a single-layer structure for the conductor 503. In this case, an insulating film to be the insulator 516 is formed on the patterned conductor 503, and the upper part of the insulating film is removed by a CMP method or the like until the upper surface of the conductor 503 is exposed. Here, it is preferable to improve the flatness of the upper surface of the conductor 503. For example, the average surface roughness (Ra) of the upper surface of the conductor 503 is set to 1 nm or less, preferably 0.5 nm or less, and more preferably 0.3 nm or less. This improves the flatness of the insulating layer formed on the conductor 503, and improves the crystallinity of the oxide 530b and the oxide 530c.

[0582] <<Transistor structure example 4>> A structural example of a transistor 500D will be described with reference to Figures 40(A) to (C). Figure 40(A) is a top view of the transistor 500D. Figure 40(B) is a cross-sectional view of a portion indicated by dashed dotted line L1-L2 in Figure 40(A). Figure 40(C) is a cross-sectional view of a portion indicated by dashed dotted line W1-W2 in Figure 40(A). Note that in the top view of Figure 40(A), some elements are omitted for clarity.

[0583] The transistor 500D is a variation of the transistor described above, and therefore, in order to avoid repetition of the description, differences from the transistor described above will be mainly described.

[0584] 40A to 40C, unlike the transistor 500 and the transistors 500A to 500C, the transistor 500D does not include the conductor 542a and the conductor 542b, and includes a region 531a and a region 531b in a part of the exposed surface of the oxide 530b. One of the region 531a and the region 531b functions as a source region, and the other functions as a drain region.

[0585] 39, the transistor 500D does not include a conductor 505, and instead uses a conductor 503 that functions as a second gate as a wiring. The transistor 500D also includes an insulator 550 over the oxide 530c, and a metal oxide 552 over the insulator 550. The transistor 500D also includes a conductor 560 over the metal oxide 552, and an insulator 570 over the conductor 560. The transistor 500D also includes an insulator 571 over the insulator 570.

[0586] The metal oxide 552 preferably has a function of suppressing oxygen diffusion. By providing the metal oxide 552, which suppresses oxygen diffusion, between the insulator 550 and the conductor 560, the diffusion of oxygen to the conductor 560 is suppressed. That is, a decrease in the amount of oxygen supplied to the oxide 530 can be suppressed. In addition, oxidation of the conductor 560 by oxygen can be suppressed.

[0587] Note that the metal oxide 552 may function as a part of the first gate. For example, an oxide semiconductor that can be used as the oxide 530 can be used as the metal oxide 552. In that case, by forming the conductor 560 by a sputtering method, the electric resistance value of the metal oxide 552 can be reduced to form a conductive layer, that is, an OC electrode.

[0588] Furthermore, the metal oxide 552 may function as a part of the gate insulating film. Therefore, when silicon oxide or silicon oxynitride is used for the insulator 550, it is preferable to use a metal oxide that is a high-k material with a high relative dielectric constant for the metal oxide 552. By using such a stacked structure, a stacked structure that is stable against heat and has a high relative dielectric constant can be obtained. Therefore, it is possible to reduce the gate potential applied during transistor operation while maintaining the physical film thickness. In addition, it is possible to reduce the equivalent oxide thickness (EOT) of the insulating layer that functions as a gate insulating film.

[0589] Although the metal oxide 552 in the transistor 500D is shown as a single layer, it may have a stacked structure of two or more layers. For example, a metal oxide functioning as part of a gate electrode and a metal oxide functioning as part of a gate insulating film may be stacked.

[0590] When the metal oxide 552 functions as a gate electrode, the on-state current of the transistor 500D can be improved without weakening the influence of the electric field from the conductor 560. Alternatively, when the metal oxide 552 functions as a gate insulating film, the physical thickness of the insulator 550 and the metal oxide 552 can maintain a distance between the conductor 560 and the oxide 530, thereby suppressing leakage current between the conductor 560 and the oxide 530. Therefore, by providing a stacked structure of the insulator 550 and the metal oxide 552, the physical distance between the conductor 560 and the oxide 530 and the electric field strength applied from the conductor 560 to the oxide 530 can be easily and appropriately adjusted.

[0591] Specifically, an oxide semiconductor that can be used for the oxide 530 can be used as the metal oxide 552 by reducing the resistance thereof. Alternatively, a metal oxide containing one or more elements selected from hafnium, aluminum, gallium, yttrium, zirconium, tungsten, titanium, tantalum, nickel, germanium, magnesium, and the like can be used.

[0592] In particular, it is preferable to use an insulating layer 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 process. Note that the metal oxide 552 is not an essential component. It may be appropriately designed depending on the desired transistor characteristics.

[0593] The insulator 570 may be made of an insulating material that has a function of suppressing the permeation of impurities such as water or hydrogen, and oxygen. For example, aluminum oxide or hafnium oxide is preferably used. This can suppress the conductor 560 from being oxidized by oxygen from above the insulator 570. In addition, impurities such as water or hydrogen from above the insulator 570 can be suppressed from being mixed into the oxide 530 through the conductor 560 and the insulator 550.

[0594] The insulator 571 functions as a hard mask. By providing the insulator 571, when the conductor 560 is processed, the side surface of the conductor 560 can be approximately vertical, specifically, the angle between the side surface of the conductor 560 and the substrate surface can be set to 75 degrees or more and 100 degrees or less, preferably 80 degrees or more and 95 degrees or less.

[0595] Note that the insulator 571 may also function as a barrier layer by using an insulating material that has a function of suppressing transmission of impurities such as water or hydrogen and oxygen. In that case, the insulator 570 is not necessarily provided.

[0596] Using insulator 571 as a hard mask, portions of insulator 570, conductor 560, metal oxide 552, insulator 550, and oxide 530c can be selectively removed to roughly align their sides and expose a portion of the surface of oxide 530b.

[0597] The transistor 500D also has a region 531a and a region 531b on a portion of the exposed oxide 530b surface, where one of the regions 531a and 531b functions as a source region and the other functions as a drain region.

[0598] The regions 531a and 531b can be formed by introducing an impurity element such as phosphorus or boron into the exposed surface of the oxide 530b by, for example, ion implantation, ion doping, plasma immersion ion implantation, plasma treatment, etc. In this embodiment and the like, the term "impurity element" refers to an element other than the main component element.

[0599] Alternatively, a metal film can be formed after exposing a portion of the surface of oxide 530b, and then heat-treated to diffuse elements contained in the metal film into oxide 530b, thereby forming regions 531a and 531b.

[0600] The electrical resistivity of a portion of the oxide 530b into which the impurity element has been introduced is reduced. For this reason, the regions 531a and 531b are sometimes referred to as "impurity regions" or "low-resistance regions."

[0601] By using the insulator 571 a...

Claims

1. A circuit comprising: The circuit includes a drive unit, a correction unit, and a first holding unit, the driving unit includes a first transistor and a second transistor, The second transistor is a p-channel transistor, The first transistor is an n-channel transistor having a first gate and a second gate, the driving unit has a function of generating an inverted signal of a signal input to an input terminal of the circuit and outputting the inverted signal to an output terminal of the circuit; the correction unit has a function of correcting a threshold voltage of the first transistor and / or the second transistor, the first holding unit has a function of holding a potential of the second gate of the first transistor, the correction unit includes first to fourth switches and a first capacitance element, an input terminal of the circuit is electrically connected to the first gate of the first transistor and to the gate of the second transistor; a first terminal of the second transistor electrically connected to a first terminal of the first switch and to an output terminal of the circuit; a first terminal of the first transistor is electrically connected to a second terminal of the first switch and a first terminal of the second switch; a second terminal of the first transistor electrically connected to a first terminal of the third switch; the second gate of the first transistor is electrically connected to a second terminal of the second switch and a first terminal of the first capacitive element; a second terminal of the first capacitive element is electrically connected to a second terminal of the third switch and a first terminal of the fourth switch; A semiconductor device, wherein a second terminal of the fourth switch is electrically connected to the first holding portion.

2. A circuit comprising: The circuit includes a drive unit, a correction unit, and a first holding unit, the driving unit includes a first transistor and a second transistor, The second transistor is a p-channel transistor, The first transistor is an n-channel transistor having a first gate and a second gate, the driving unit has a function of generating an inverted signal of a signal input to an input terminal of the circuit and outputting the inverted signal to an output terminal of the circuit; the correction unit has a function of correcting a threshold voltage of the first transistor and / or the second transistor, the first holding unit has a function of holding a potential of the second gate of the first transistor, the correction unit includes third to eighth switches and a first capacitance element, an input terminal of the circuit electrically connected to the gate of the second transistor and to a first terminal of a fifth switch; a second terminal of the fifth switch electrically connected to the first gate of the first transistor and to a first terminal of the seventh switch; the first terminal of the second transistor is connected to the first terminal of the first transistor and to an output terminal of the circuit; is electrically connected to a second terminal of the first transistor is electrically connected to a first terminal of the third switch, a second terminal of the seventh switch, and a first terminal of the eighth switch; the second gate of the first transistor is electrically connected to a first terminal of the sixth switch and a first terminal of the first capacitive element; a second terminal of the first capacitive element is electrically connected to a second terminal of the third switch and a first terminal of the fourth switch; A semiconductor device, wherein a second terminal of the fourth switch is electrically connected to the first holding portion.

3. A circuit comprising: The circuit includes a drive unit, a correction unit, and a first holding unit, the driving unit includes a first transistor and a second transistor, The second transistor is a p-channel transistor, The first transistor is an n-channel transistor having a first gate and a second gate, the driving unit has a function of generating an inverted signal of a signal input to an input terminal of the circuit and outputting the inverted signal to an output terminal of the circuit; the correction unit has a function of correcting a threshold voltage of the first transistor and / or the second transistor, the first holding unit has a function of holding a potential of the second gate of the first transistor, the correction unit includes first to fourth switches and a first capacitance element, an input terminal of the circuit is electrically connected to the first gate of the first transistor and to the gate of the second transistor; a first terminal of the second transistor electrically connected to a first terminal of the first transistor and to an output terminal of the circuit; a second terminal of the second transistor electrically connected to a first terminal of the first switch; a first terminal of the first transistor electrically connected to a first terminal of the second switch; a second terminal of the first transistor electrically connected to a first terminal of the third switch; the second gate of the first transistor is electrically connected to a second terminal of the second switch and a first terminal of the first capacitive element; a second terminal of the first capacitive element is electrically connected to a second terminal of the third switch and a first terminal of the fourth switch; A semiconductor device, wherein a second terminal of the fourth switch is electrically connected to the first holding portion.

4. A circuit comprising: The circuit includes a drive unit, a correction unit, and a first holding unit, the driving unit includes a first transistor and a second transistor, The second transistor is a p-channel transistor, The first transistor is an n-channel transistor having a first gate and a second gate, the driving unit has a function of generating an inverted signal of a signal input to an input terminal of the circuit and outputting the inverted signal to an output terminal of the circuit; the correction unit has a function of correcting a threshold voltage of the first transistor and / or the second transistor, the first holding unit has a function of holding a potential of the second gate of the first transistor, the correction unit includes eighth to eleventh switches and a second capacitance element, an input terminal of the circuit is electrically connected to a first terminal of the tenth switch and to the first gate of the first transistor; a first terminal of the second transistor is electrically connected to a first terminal of the first transistor and a first terminal of the eleventh switch; a second terminal of the second transistor electrically connected to a first terminal of the ninth switch; a second terminal of the tenth switch is electrically connected to a second terminal of the ninth switch and a first terminal of the second capacitive element; a gate of the second transistor is electrically connected to a second terminal of the eleventh switch and a second terminal of the second capacitive element; a first terminal of the first transistor electrically connected to an output terminal of the circuit; the eighth switch is a circuit element electrically connected between a first terminal of the first transistor and a first terminal of the second transistor, or a circuit element electrically connected to a second terminal of the first transistor, the second gate of the first transistor is electrically connected to the first holding unit.

5. A circuit comprising: The circuit includes a drive unit, a correction unit, and a first holding unit, the driving unit includes a first transistor and a second transistor, The second transistor is a p-channel transistor, The first transistor is an n-channel transistor having a first gate and a second gate, the driving unit has a function of generating an inverted signal of a signal input to an input terminal of the circuit and outputting the inverted signal to an output terminal of the circuit; the correction unit has a function of correcting a threshold voltage of the first transistor and / or the second transistor, the first holding unit has a function of holding a potential of the second gate of the first transistor, the correction unit includes first, ninth, tenth, and eleventh switches and a second capacitance element, an input terminal of the circuit is electrically connected to a first terminal of the tenth switch and to the first gate of the first transistor; a first terminal of the second transistor electrically connected to a first terminal of the first transistor and to an output terminal of the circuit; a second terminal of the second transistor is electrically connected to a first terminal of the first switch and a first terminal of the ninth switch; a second terminal of the tenth switch is electrically connected to a second terminal of the ninth switch and a first terminal of the second capacitive element; a gate of the second transistor is electrically connected to a first terminal of the eleventh switch and a second terminal of the second capacitive element; the second gate of the first transistor is electrically connected to the first holding unit.

6. In claim 1 or 2, the correction unit includes ninth to eleventh switches and a second capacitance element, between an input terminal of the circuit and a gate of the second transistor, an input terminal of the circuit and a first terminal of the tenth switch are electrically connected, a second terminal of the tenth switch and a first terminal of the second capacitance element are electrically connected, and a second terminal of the second capacitance element and the gate of the second transistor are electrically connected; a first terminal of the ninth switch electrically connected to a first terminal of the second transistor; a second terminal of the ninth switch is electrically connected to a second terminal of the tenth switch and a first terminal of the second capacitive element; a first terminal of the eleventh switch electrically connected to a second terminal of the second transistor; a second terminal of the eleventh switch is electrically connected to a second terminal of the second capacitive element and to the first gate of the second transistor.

7. In claim 2, the correction unit includes a first switch, ninth to eleventh switches, and a second capacitance element, the first switch is electrically connected to a second terminal of the second transistor; between an input terminal of the circuit and a gate of the second transistor, an input terminal of the circuit and a first terminal of the tenth switch are electrically connected, a second terminal of the tenth switch and a first terminal of the second capacitance element are electrically connected, and a second terminal of the second capacitance element and a gate of the second transistor are electrically connected; a first terminal of the ninth switch is electrically connected to a second terminal of the second transistor and a first terminal of the first switch; a second terminal of the ninth switch is electrically connected to a second terminal of the tenth switch and a first terminal of the second capacitive element; a first terminal of the eleventh switch is electrically connected to a second terminal of the second capacitive element and a gate of the second transistor.

8. In claim 3, the correction unit includes ninth to eleventh switches and a second capacitance element, between an input terminal of the circuit and a gate of the second transistor, an input terminal of the circuit and a first terminal of the tenth switch are electrically connected, a second terminal of the tenth switch and a first terminal of the second capacitance element are electrically connected, and a second terminal of the second capacitance element and a gate of the second transistor are electrically connected; a first terminal of the ninth switch is electrically connected to a second terminal of the second transistor and a first terminal of the first switch; a second terminal of the ninth switch is electrically connected to a second terminal of the tenth switch and a first terminal of the second capacitive element; a first terminal of the eleventh switch is electrically connected to a second terminal of the second capacitive element and a gate of the second transistor.

9. In any one of claims 1 to 8, the first holding unit includes a third transistor and a third capacitive element; the second gate of the first transistor is electrically connected to a first terminal of the third transistor and a first terminal of the third capacitive element; The third transistor has a metal oxide in a channel formation region.

10. In any one of claims 1 to 8, the first holding unit has a first inverter circuit and a second inverter circuit, the second gate of the first transistor is electrically connected to an input terminal of the first inverter circuit and an output terminal of the second inverter circuit; an output terminal of the first inverter circuit electrically connected to an input terminal of the second inverter circuit.

11. In any one of claims 1 to 10, A first circuit including two of the circuits, the first circuit has a first input terminal, a second input terminal, a first output terminal, a second output terminal, a second circuit, a third circuit, and a switching circuit; the switching circuit has third to fifth input terminals and third and fourth output terminals; The first input terminal is electrically connected to an input terminal of one of the two circuits, an output terminal of one of the two circuits is electrically connected to the third input terminal; the third output terminal is electrically connected to the first output terminal; The second input terminal is electrically connected to the input terminal of the other of the two circuits, the output terminal of the other of the two circuits is electrically connected to the fourth input terminal; the fourth output terminal is electrically connected to the second output terminal; the second circuit is electrically connected to any one of between the first input terminal and an input terminal of one of the two circuits, between an output terminal of one of the two circuits and the third input terminal, or between the third output terminal and the first output terminal; the third circuit is electrically connected to any one of between the second input terminal and an input terminal of the other of the two circuits, between an output terminal of the other of the two circuits and the fourth input terminal, or between the fourth output terminal and the second output terminal; the second circuit has a function of generating an inverted signal of a signal input to an input terminal of the second circuit and outputting the inverted signal to an output terminal of the second circuit; the third circuit has a function of generating an inverted signal of a signal input to an input terminal of the third circuit and outputting the inverted signal to an output terminal of the third circuit; the switching circuit has a function of electrically connecting the third input terminal to one of the third output terminal or the fourth output terminal, and electrically connecting the fourth input terminal to the other of the third output terminal or the fourth output terminal, in response to a signal input to the fifth input terminal.

12. 12. The power supply according to claim 11, further comprising a plurality of first circuits, the first output terminal of the first circuit in a front stage is electrically connected to the first input terminal of the first circuit in a rear stage; the second output terminal of the first circuit in a front stage is electrically connected to the second input terminal of the first circuit in a rear stage; a first signal corresponding to second data is applied to each of the fifth input terminals of all of the switching circuits, and an input signal is input to the first input terminal and the second input terminal of the first circuit in a first stage, so that a time difference between output signals output from the first output terminal and the second output terminal of the first circuit in a final stage becomes a time corresponding to the product of the first data and the second data.

13. 13. The method of claim 12, further comprising: the fourth circuit is electrically connected to the first output terminal and the second output terminal of the first circuit in a final stage; The fourth circuit has a function of generating a signal according to a time difference of the output signals.

14. In any one of claims 1 to 13, The first transistor has a metal oxide in a channel formation region.

15. In claim 14, The metal oxide comprises an In oxide.

16. A semiconductor device according to any one of claims 1 to 15, An electronic device that performs neural network calculations using the semiconductor device.

Citation Information

Patent Citations

  • Mounting device of power unit

    JP1983085719A

  • Logic operation circuit

    JP1999307652A

  • Semiconductor device and semiconductor device manufacturing method

    JP2014045009A

  • Arithmetic unit

    JP2017228295A

  • Variable Delay Element

    US20150028930A1