Semiconductor device and electronic device

A semiconductor device with a layered structure and metal oxide transistors addresses temperature-induced inaccuracies and power consumption issues in neuromorphic computing, providing efficient product-sum operations and reduced circuit area for neuromorphic computing applications.

JP7571127B2Active Publication Date: 2024-10-22SEMICON ENERGY LAB CO LTD

Patent Information

Application Number
JP2022514869
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-04-17
Filing Date
2021-04-05
Publication Date
2024-10-22
Estimated Expiration
2041-04-05

AI Technical Summary

Technical Problem

Transistors in silicon channel formation regions are susceptible to temperature changes, affecting the accuracy of product-sum calculations in integrated circuits, and digital multiplication and addition circuits require large areas and high power consumption, limiting the performance of neuromorphic computing devices.

Method used

A semiconductor device with a layered structure including a sensor array, arithmetic circuits, and transistors with metal oxide channels, designed to perform product-sum operations with reduced power consumption and circuit area, while maintaining performance under varying temperatures.

Benefits of technology

The device achieves low power consumption, reduced circuit area, and maintains operating performance despite heat, enabling efficient neuromorphic computing for tasks like pattern recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007571127000025
    Figure 0007571127000025
  • Figure 0007571127000026
    Figure 0007571127000026
  • Figure 0007571127000027
    Figure 0007571127000027
Patent Text Reader

Abstract

Provided is a semiconductor device, with which the freedom of layout is high, and which is capable of product-sum operation. A semiconductor device in which a first, a second, and a third layer are formed in the order stated, the first layer having a first cell, a first circuit, first wiring and second wiring adjacent to the first wiring, the second layer having third wiring and fourth wiring adjacent to the third wiring, the third layer having an electrode and a sensor. The first circuit has a switch. The sensor is electrically connected to the third wiring via an electrode and a first plug. A first terminal of the switch is electrically connected to the third wiring via a second plug and a second terminal of the switch is electrically connected to the first cell via the first wiring. The electrode has an area that overlaps the sensor and an area that overlaps a first plug. The first to fourth wirings, respectively, are parallel to each other, and the distance between the third and the fourth wirings is 0.9 to 1.1 times inclusive the distance between the first and the second wirings.
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 driving method, or a manufacturing method. Alternatively, one embodiment of the present invention relates to a process, a machine, manufacture, or a composition of matter. Therefore, more specific examples of the technical field of one embodiment of the present invention disclosed in this specification include semiconductor devices, display devices, liquid crystal display devices, light-emitting devices, power storage devices, imaging devices, memory devices, signal processing devices, sensors, processors, electronic devices, systems, driving methods thereof, manufacturing methods thereof, and inspection methods thereof. [Background technology]

[0003] Currently, active development is underway on integrated circuits that mimic the workings of the human brain. These integrated circuits incorporate the workings of the brain as electronic circuits, and have circuits that correspond to the "neurons" and "synapses" of the human brain. For this reason, such integrated circuits are sometimes called "neuromorphic," "brain-morphic," or "brain-inspired." These integrated circuits have a non-von Neumann architecture, and are expected to be able to perform parallel processing with significantly less power consumption than von Neumann architectures, which consume more power as processing speed increases.

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

[0005] Non-Patent Document 1 proposes a multiply-and-accumulate circuit using non-volatile memory elements. In this multiply-and-accumulate circuit, each memory element utilizes the subthreshold operation of a transistor having silicon in its channel formation region to output a current corresponding to the multiplication of data corresponding to a multiplier stored in the memory element and input data corresponding to a multiplicand. Furthermore, data corresponding to the multiply-and-accumulate operation is obtained by summing the currents output by the memory elements in each column. Because this multiply-and-accumulate circuit has internal memory elements, it is possible to eliminate the need to read and write data from and to external memory during multiplication and addition. This reduces the number of data transfers due to reads and writes, and is therefore expected to reduce power consumption. [Prior art documents] [Non-patent literature]

[0006] [Non-Patent Document 1] X. Guo et al., “Fast,Energy-Efficient,Robust,and Reproducible Mixed-Signal Neuromorphic Classifier Based on Embedded NOR Flash Memory Technology”IEDM2017,pp.151-154. Summary of the Invention [Problem to be solved by the invention]

[0007] A transistor having silicon in the channel formation region is susceptible to temperature changes in transistor characteristics, field-effect mobility, etc. In particular, when a product-sum operation circuit or the like is formed as an integrated circuit, the temperature of the integrated circuit increases due to heat generated when the circuit is operated, which may change the characteristics of the transistors included in the integrated circuit and prevent correct operation.

[0008] Furthermore, when a multiply-and-accumulate operation is performed using a digital circuit, a digital multiplier circuit multiplies digital data (multiplier data) that serves as a multiplier by digital data (multiplicand data) that serves as a multiplicand. Then, a digital adder circuit adds the digital data (product data) obtained by the multiplication, and obtains digital data (product-and-accumulate data) as the result of the multiply-and-accumulate operation. It is preferable that the digital multiplier circuit and the digital adder circuit are capable of handling multi-bit operations. However, in this case, the circuit scale of each of the digital multiplier circuit and the digital adder circuit must be increased, which may result in an increase in circuit area and power consumption.

[0009] Furthermore, by combining a calculation circuit that performs neural network calculations with a sensor, it may be possible to make electronic devices recognize various information. For example, by combining an optical sensor (e.g., a photodiode) as a sensor with the calculation circuit, it is possible to perform pattern recognition such as face recognition and image recognition from image data obtained by the optical sensor.

[0010] Furthermore, for example, when a sensor array including the sensor is disposed above a semiconductor chip on which the arithmetic circuit is configured, the sensor array is preferably disposed at or near the center of the semiconductor chip in a top view. By disposing the sensor array at or near the center of the semiconductor chip in a top view, the drive circuits for the sensors included in the sensor array can be disposed around the sensor array. Furthermore, when the sensors included in the sensor array are photodiodes and a convex lens is provided on the sensor array, the convex lens can be stably positioned by positioning the convex lens at or near the center of the semiconductor chip in a top view. From this perspective, too, the sensor array is preferably disposed at or near the center of the semiconductor chip in a top view. However, the layout of the arithmetic circuit, wiring, etc. formed on the semiconductor chip must be designed to match the sensor array located at or near the center above the semiconductor chip, which may limit the degree of freedom in the layout.

[0011] An object of one embodiment of the present invention is to provide a semiconductor device capable of performing a product-sum operation.An object of one embodiment of the present invention is to provide a semiconductor device with low power consumption.An object of one embodiment of the present invention is to provide a semiconductor device with a reduced circuit area.An object of one embodiment of the present invention is to provide a semiconductor device in which a decrease in operating capability due to heat is suppressed.

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

[0013] Note that 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. Note that 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. Note that one embodiment of the present invention solves at least one of the problems listed above and other problems. Note that one embodiment of the present invention does not necessarily solve all of the problems listed above and other problems. [Means for solving the problem]

[0014] (1) One embodiment of the present invention is a semiconductor device having a first layer, a second layer located above the first layer, and a third layer located above the second layer. The first layer has a first cell, a first circuit, a first wiring, and a second wiring adjacent to the first wiring. The second layer has a third wiring and a fourth wiring adjacent to the third wiring. The third layer has an electrode and a sensor. The first circuit also has a switch. The sensor is electrically connected to the third wiring via the electrode and a first plug. A first terminal of the switch is electrically connected to the third wiring via a second plug, and a second terminal of the switch is electrically connected to the first cell via the first wiring. The electrode has a region overlapping with the sensor and a region overlapping with the first plug. Furthermore, the first wiring, the second wiring, the third wiring, and the fourth wiring are parallel to each other, and the distance between the third wiring and the fourth wiring is 0.9 to 1.1 times the distance between the first wiring and the second wiring.

[0015] (2) Alternatively, in one aspect of the present invention, in the above-mentioned (1), the first layer may include a second cell. Preferably, the first cell includes a first transistor, a second transistor, and a first capacitor, and the second cell includes a third transistor, a fourth transistor, and a second capacitor. Specifically, it is preferable that the gate of the first transistor is electrically connected to a first terminal of the first capacitor and a first terminal of the second transistor, the first terminal of the first transistor is electrically connected to a second terminal of the second transistor, and the second terminal of the first capacitor is electrically connected to a second terminal of the switch via a first wiring. It is also preferable that the gate of the third transistor is electrically connected to a first terminal of the second capacitor and a first terminal of the fourth transistor, the first terminal of the third transistor is electrically connected to a second terminal of the fourth transistor and the first wiring, and the second terminal of the second capacitor is electrically connected to a second terminal of the switch via a first wiring.

[0016] (3) Alternatively, in one aspect of the present invention, in the above (2), the first layer may have a first current source circuit. Preferably, the first current source circuit has a function of causing a first current to flow from an output terminal of the first current source circuit, and the output terminal of the first current source circuit is electrically connected to a first terminal of the first transistor. Preferably, the sensor has a function of causing a second current to flow according to information obtained by sensing, and a function of applying an input potential according to the amount of the second current to each of the second terminal of the first capacitance and the second terminal of the second capacitance. Preferably, the second cell has a function of setting the amount of current flowing between the first terminal and the second terminal of the third transistor to the amount of the second current by holding a potential according to the second current at the gate of the third transistor. The first cell preferably has a function of setting the amount of current flowing between the first terminal and the second terminal of the first transistor to the amount of the first current by maintaining a potential corresponding to the first current at the gate of the first transistor, and a function of changing the amount of the first current flowing between the first terminal and the second terminal of the first transistor to the amount of a third current corresponding to a fluctuation in the input potential when the amount of the second current flowing by the sensor changes. Note that the amounts of the first current and the third current are each within a range of a current flowing when the first transistor operates in a subthreshold region, and the amount of the second current is within a range of a current flowing when the second transistor operates in a subthreshold region.

[0017] (4) Alternatively, in one embodiment of the present invention, in the above (2) or (3), each of the first transistor, the second transistor, the third transistor, and the fourth transistor may have a metal oxide in a channel formation region.

[0018] (5) Alternatively, in one embodiment of the present invention, in any one of the above (1) to (4), the sensor may include a photodiode.

[0019] (6) Another embodiment of the present invention is an electronic device including the semiconductor device according to any one of (1) to (5) above and a housing. The semiconductor device preferably has a function of performing a product-sum operation.

[0020] 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. It also refers to any device that can function by utilizing semiconductor characteristics. For example, an integrated circuit, a chip including an integrated circuit, or an electronic component that houses a chip in a package or the like are examples of semiconductor devices. Furthermore, memory devices, display devices, light-emitting devices, lighting devices, electronic devices, etc. are themselves semiconductor devices and may include semiconductor devices.

[0021] Furthermore, when it is stated in this specification that X and Y are connected, it is understood that the following cases are 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 predetermined connection relationship, for example, a connection relationship shown in a figure or text, and it is understood that connections other than those shown in a figure or text are also disclosed in a figure or text. X and Y are understood to be objects (e.g., a device, an element, a circuit, wiring, an electrode, a terminal, a conductive film, a layer, etc.).

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

[0023] As an example of a case where X and Y are functionally connected, one or more circuits that enable the functional connection between X and Y (for example, logic circuits (inverters, NAND circuits, NOR circuits, etc.), signal conversion circuits (digital-analog conversion circuits, analog-digital conversion circuits, gamma correction circuits, etc.), potential level conversion circuits (power supply circuits (boosting circuits, step-down circuits, etc.), level shifter circuits that change the potential level of signals, 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.

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

[0025] Furthermore, for example, it can be expressed as follows: "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 follows: "The source (or first terminal, etc.) of the transistor is electrically connected to X, and 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 follows: "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 define 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 limiting. Here, X and Y are assumed to be objects (e.g., devices, elements, circuits, wiring, electrodes, terminals, conductive films, layers, etc.).

[0026] Note that even when independent components are shown electrically connected in a circuit diagram, one component may have the functions of multiple components. For example, if part of a wiring also functions as an electrode, one conductive film has the functions of both wiring and an electrode. Therefore, the term "electrically connected" in this specification also includes such cases where one conductive film has the functions of multiple components.

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

[0028] Furthermore, in this specification, a "capacitive element" can refer to, for example, a circuit element having a capacitance value higher than 0 F, a wiring region having a capacitance value, a parasitic capacitance, a gate capacitance of a transistor, etc. Furthermore, terms such as "capacitive element," "parasitic capacitance," and "gate capacitance" can be replaced with terms such as "capacitance," and conversely, the term "capacitance" can be replaced with terms such as "capacitive element," "parasitic capacitance," and "gate capacitance." Furthermore, the term "pair of electrodes" in "capacitance" can be replaced with "pair of conductors," "pair of conductive regions," "pair of regions," etc. The value of the capacitance can be, for example, 0.05 fF or more and 10 pF or less. It may also be, for example, 1 pF or more and 10 μF or less.

[0029] 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 conduction 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 serves as a source and the other as a drain depending on the conductivity type (n-channel or p-channel) of the transistor and the level of the potential applied to the three terminals of the transistor. Therefore, in this specification, the terms source and drain are interchangeable. In addition, in this specification, when describing the connection relationship of a transistor, the terms "one of the source or drain" (or first electrode or first terminal) and "the other of the source or drain" (or second electrode or second terminal) are used. Note that, depending on the structure of a transistor, a backgate may be included in addition to the three terminals described above. In this case, in this specification, one of the gate or backgate of the transistor may be referred to as a first gate, and the other of the gate or backgate of the transistor may be referred to as a second gate. Furthermore, for the same transistor, the terms "gate" and "backgate" may be interchangeable. Furthermore, when a transistor has three or more gates, the gates may be referred to as a first gate, a second gate, a third gate, and so on in this specification and the like.

[0030] Furthermore, even when a single circuit element is shown on a circuit diagram, the circuit element may comprise multiple circuit elements. For example, when a circuit diagram shows one resistor, this includes two or more resistors electrically connected in series. For example, when a circuit diagram shows one capacitor, this includes two or more capacitors electrically connected in parallel. For example, when a circuit diagram shows one transistor, this includes two or more transistors electrically connected in series, with the gates of the respective transistors electrically connected to each other. Similarly, when a circuit diagram shows one switch, this includes two or more transistors electrically connected in series, with the gates of the respective transistors electrically connected to each other.

[0031] Furthermore, 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 the circuit configuration, device structure, etc. Furthermore, a terminal, a wiring, etc. can be referred to as a node.

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

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

[0034] "Current" refers to the phenomenon of charge transfer (electrical conduction). For example, a statement that "electrical conduction of a positively charged body is occurring" can be rephrased as "electrical conduction of a negatively charged body is occurring in the opposite direction." Therefore, in this specification, unless otherwise specified, "current" refers to the phenomenon of charge transfer (electrical conduction) associated with 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 (e.g., semiconductor, metal, electrolyte, vacuum, etc.). Furthermore, the "direction of current" in wiring, etc., refers to the direction in which positively charged carriers move and is expressed as a positive current amount. In other words, the direction in which negatively charged carriers move is opposite to the direction of current flow and is expressed as a negative current amount. Therefore, in this specification, etc., unless otherwise specified regarding the positive or negative sign of the current (or the direction of current), a statement such as "current flows from element A to element B" can be rephrased as "current flows from element B to element A," etc. Furthermore, statements such as "current is input to element A" can be rephrased as "current is output from element A" or the like.

[0035] Furthermore, in this specification, the ordinal numbers "first," "second," and "third" are used to avoid confusion between 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. Furthermore, for example, a component referred to as "first" in one embodiment of this specification may be omitted in another embodiment or in the claims.

[0036] Furthermore, in this specification, terms indicating position, such as "above" and "below," may be used for convenience in describing the positional relationship between components with reference to the drawings. Furthermore, the positional relationship between components changes as appropriate depending on the direction in which each component is depicted. Therefore, the terms are not limited to those used 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 180 degrees.

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

[0038] Furthermore, in this specification and the like, terms such as "film" and "layer" can be interchanged depending on the situation. For example, the term "conductive layer" may be interchanged with the term "conductive film." Or, for example, the term "insulating film" may be interchanged with the term "insulating layer." Or, in some cases or depending on the situation, terms such as "film" and "layer" may not be used and may be interchanged with other terms. For example, the terms "conductive layer" or "conductive film" may be interchanged with the term "conductor." Or, for example, the terms "insulating layer" and "insulating film" may be interchanged with the term "insulator."

[0039] Furthermore, in this specification and the like, terms such as "electrode," "wiring," and "terminal" do not functionally limit 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" and "wirings" are integrally formed. Furthermore, for example, a "terminal" may be used as part of a "wiring" and / or "electrode," and vice versa. Furthermore, the term "terminal" includes cases where multiple "electrodes," "wirings," "terminals," etc. are integrally formed. Therefore, for example, an "electrode" can be part of a "wiring" or "terminal," and a "terminal" can be part of a "wiring" or "electrode." Furthermore, terms such as "electrode," "wiring," and "terminal" may be replaced with terms such as "region" in some cases.

[0040] Furthermore, in this specification and the like, terms such as "wiring," "signal line," and "power line" may be interchangeable 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." Vice versa, terms such as "signal line" and "power line" may be changed to the term "wiring." A term such as "power line" may be changed to the term "signal line." Vice versa, terms such as "signal line" may be changed to the term "power line." Furthermore, the term "potential" applied to a wiring may be changed to the term "signal" depending on the circumstances. Vice versa, terms such as "signal" may be changed to the term "potential."

[0041] In this specification and the like, the term "impurities" in semiconductors refers to, for example, elements other than the main components constituting the semiconductor layer. For example, an element with a concentration of less than 0.1 atomic % is an impurity. The presence of impurities can cause, for example, an increase in the defect level density of the semiconductor, a decrease in carrier mobility, and a decrease in crystallinity. When the semiconductor is an oxide semiconductor, impurities that change the semiconductor characteristics include, for example, Group 1 elements, Group 2 elements, Group 13 elements, Group 14 elements, Group 15 elements, and transition metals other than the main components, particularly, for example, hydrogen (also contained in water), lithium, sodium, silicon, boron, phosphorus, carbon, and nitrogen. Specifically, when the semiconductor is a silicon layer, impurities that change the semiconductor characteristics include, for example, Group 1 elements, Group 2 elements, Group 13 elements, and Group 15 elements (excluding oxygen and hydrogen).

[0042] In this specification and the like, a switch refers to a device that has the 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 the function of selecting and switching a path through which a current flows. As an example, an electrical switch, a mechanical switch, or the like can be used. In other words, the switch is not limited to a specific one as long as it can control a current.

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

[0044] An example of a mechanical switch is a switch that uses MEMS (microelectromechanical systems) technology. This switch has a mechanically movable electrode, and the movement of the electrode controls whether the switch is conductive or non-conductive.

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

[0046] According to one embodiment of the present invention, a semiconductor device capable of performing a product-sum operation can be provided. Alternatively, according to one embodiment of the present invention, a semiconductor device with low power consumption can be provided. Alternatively, according to one embodiment of the present invention, a semiconductor device with a reduced circuit area can be provided. Alternatively, according to one embodiment of the present invention, a semiconductor device in which a decrease in operating capability due to heat is suppressed can be provided.

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

[0048] The effects of one embodiment of the present invention are not limited to the effects listed above. The effects listed above do not preclude the existence of other effects. The other effects are described below and are not mentioned in this section. 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 extracted as appropriate 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 explanation of the drawings]

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

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

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

[0052] Neural network models include, for example, Hopfield and hierarchical types. In particular, neural networks with multi-layer structures are sometimes called "deep neural networks" (DNNs), and machine learning using deep neural networks is sometimes called "deep learning."

[0053] In this specification and the like, a 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 as OSs), and the like. For example, when a metal oxide is contained in a channel formation region of a transistor, the metal oxide may be referred to as an oxide semiconductor. In other words, when a metal oxide can form 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. Furthermore, an OS transistor can be rephrased as a transistor including a metal oxide or an oxide semiconductor.

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

[0055] In this specification and the like, the configurations shown in each embodiment can be combined as appropriate 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 combined as appropriate with each other.

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

[0057] Note that the content described in the embodiments refers to the content described in each embodiment (or example) using various figures, or the content described using text in the specification.

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

[0059] The embodiments described in this specification will be described with reference to the drawings. However, it will be readily understood by those skilled in the art that the embodiments can be implemented in many different ways, and that various changes in form and details can be made without departing from the spirit and scope of the invention. Therefore, the present invention should not be interpreted as being limited to the description of the embodiments. Note that in the configuration of the invention of the embodiments, the same reference numerals are used in different drawings for the same parts or parts having similar functions, and repeated description thereof may be omitted. Also, in perspective views and the like, the description of some components may be omitted to ensure clarity of the drawings.

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

[0061] In addition, in the drawings of this specification, the size, layer thickness, or region may be exaggerated for clarity. Therefore, the drawings are 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, variations in signals, voltages, or currents due to noise, or variations in signals, voltages, or currents due to timing differences may be included.

[0062] (Embodiment 1) In this embodiment, an example of a semiconductor device capable of product-sum operation, which is one embodiment of the present invention, will be described.

[0063] <Configuration example of semiconductor device> 1 shows an example of the configuration of a semiconductor device capable of performing a multiply-and-accumulate operation between a plurality of first data and a plurality of second data. The semiconductor device SDV shown in FIG. 1 has a layer PDL, a layer ERL, and a layer CCL.

[0064] Since the semiconductor device SDV shown in FIG. 1 is shown as a three-dimensional structure, arrows indicating the x-direction, y-direction, and z-direction are added to FIG. 1. Note that the x-direction, y-direction, and z-direction are shown as directions that are orthogonal to each other, as an example. Furthermore, in this specification, one of the x-direction, y-direction, and z-direction may be referred to as the "first direction" or "first direction." Furthermore, the other may be referred to as the "second direction" or "second direction." Furthermore, the remaining one may be referred to as the "third direction" or "third direction."

[0065] The layer ERL is located above the layer CCL, and the layer PDL is located above the layer ERL. That is, the layer CCL, the layer ERL, and the layer PDL are stacked in this order in the z direction.

[0066] The layer PDL has a sensor array SCA, for example. The sensor array SCA has a plurality of electrodes and a plurality of sensors. In FIG. 1, for example, electrodes DNK[1] to DNK[m] (where m is an integer greater than or equal to 1) are shown as the plurality of electrodes, and sensors SNC[1] to SNC[m] are shown as the plurality of sensors. In addition, for example, m electrodes DNK are arranged in a matrix on the layer PDL, and sensors SNC[1] to SNC[m] are provided on the electrodes DNK[1] to DNK[m], respectively.

[0067] In the layer PDL shown in Fig. 1, the symbols of the electrodes DNK[1], DNK[i] (where i is an integer of 1 to m) and DNK[m] are selected from the electrodes DNK[1] to DNK[m]. In addition, in the layer PDL shown in Fig. 1, the symbols of the sensors SNC[1], SNC[i] and SNC[m] are selected from the sensors SNC[1] to SNC[m].

[0068] The sensors SNC[1] to SNC[m] have the function of converting sensed information into current amounts and outputting the current amounts. Furthermore, the electrodes DNK[1] to DNK[m] function as terminals for outputting the current amounts in the sensors SNC[1] to SNC[m], respectively. For example, an optical sensor can be applied as the sensor SNC. By applying an optical sensor as the sensors SNC[1] to SNC[m], the layer PDL can be used as part of the image sensor. In this case, it is desirable that the range of light intensity that the optical sensor can sense includes the intensity of light irradiated in the environment in which the optical sensor is used. FIG. 2 also shows a semiconductor device SDV in which a sensor SNC having a photodiode PD is applied as the optical sensor.

[0069] Furthermore, the circuit configuration of the sensor SNC[i] may be such that one of the input terminal or output terminal of the photodiode PD included in the sensor SNC[i] is electrically connected to the wiring EIL[i] via the electrode DNK[i]. Furthermore, the circuit configuration of the sensor SNC[i] may be such that a switch or the like is provided to cut off the power supply in order to temporarily stop the sensor SNC[i]. In this way, the sensor SNC[i] may include circuits, elements, and the like having other functions.

[0070] In addition to optical sensors, sensors that can be applied to the sensors SNC[1] to SNC[m] include, for example, pressure sensors, gyro sensors, acceleration sensors, auditory sensors, temperature sensors, and humidity sensors.

[0071] The sensors SNC[1] to SNC[m] are preferably provided in an area close to the outside world in order to sense information about the outside world, for example. That is, the layer PDL is preferably provided above the layers CCL and ERL, for example, as shown in FIG.

[0072] The layer ERL has wirings EIL[1] to EIL[m]. In the layer ERL shown in FIG. 1, the reference symbols for the wirings EIL[1], EIL[i], and EIL[m] are selected from the wirings EIL[1] to EIL[m].

[0073] The wiring EIL[1] is electrically connected to the electrode DNK[1] on the layer PDL. The wiring EIL[i] is electrically connected to the electrode DNK[i] on the layer PDL. The wiring EIL[m] is electrically connected to the electrode DNK[m] on the layer PDL.

[0074] Specifically, for example, in a top view of the semiconductor device SDV (viewing in the opposite direction of the z-axis arrow shown in Figures 1 and 2), plugs (sometimes called contact holes, etc.) are provided at the locations where each of the electrodes DNK[1] to DNK[m] intersects with the wiring EIL[1] to EIL[m], thereby electrically connecting each of the electrodes DNK[1] to DNK[m] to each of the wiring EIL[1] to EIL[m].

[0075] At this time, in order to facilitate the electrical connection between the plug and the electrode DNK, the area of ​​each of the electrodes DNK[1] to DNK[m] may be increased.

[0076] Therefore, when information is sensed in each of the sensors SNC[1] to SNC[m], the wiring EIL[1] to EIL[m] function as a path through which a current flows in an amount corresponding to the information output by each of the sensors SNC[1] to SNC[m].

[0077] Note that the layer PDL is preferably configured such that the sensors SNC[1] to SNC[m] can sequentially perform sensing, respectively, and current can sequentially flow through the wirings EIL[1] to EIL[m]. In this case, for example, the layer PDL may be configured to include signal lines for selecting the sensors SNC[1] to SNC[m], and signals or the like may be sequentially sent to the signal lines to operate the sensors SNC[1] to SNC[m] sequentially.

[0078] Furthermore, when the sensors SNC[1] to SNC[m] are optical sensors configured with photodiodes or the like, the layer PDL of the semiconductor device SDV may be configured, for example, so that the output terminal (cathode) of the photodiode is electrically connected to the electrode DNK. Alternatively, as another configuration example of the layer PDL of the semiconductor device SDV, the layer PDL may be configured so that the input terminal (anode) of the photodiode is electrically connected to the electrode DNK.

[0079] Furthermore, when the sensors SNC[1] to SNC[m] are optical sensors configured with photodiodes or the like, for example, by preparing a filter that irradiates only one of the sensors SNC[1] to SNC[m] with light, the sensors SNC[1] to SNC[m] can be operated sequentially. Since there are m sensors SNC, there are m types of filters that irradiate only one sensor SNC with light. Furthermore, if there is prepared an additional filter that does not irradiate any of the sensors SNC[1] to SNC[m] with light, there will be m+1 types of filters. When light is irradiated onto the layer PDL, the sensors SNC[1] to SNC[m] can perform sensing sequentially by sequentially switching such filters.

[0080] Furthermore, when the sensors SNC[1] to SNC[m] are optical sensors configured with photodiodes or the like, for example, the semiconductor device SDV may be configured to individually irradiate the sensors SNC[1] to SNC[m] with light. By configuring the sensors SNC[1] to SNC[m] to individually irradiate with light, the sensors SNC[1] to SNC[m] can be sequentially irradiated with light, and the sensors SNC[1] to SNC[m] can sequentially perform sensing.

[0081] The layer CCL includes an arithmetic circuit, which includes, for example, a cell array CA, a circuit PTC, a circuit XCS, a circuit WCS, a circuit WSD, a circuit ITS, a circuit SWS1, and a circuit SWS2.

[0082] The cell array CA has a plurality of cells. As will be described in detail later, the plurality of cells included in the cell array CA have functions such as holding first data for performing a product-sum operation and multiplying the first data by second data.

[0083] The cell array CA is also electrically connected to a plurality of wirings. Specifically, for example, FIG. 1 shows a configuration in which the cell array CA is electrically connected to wirings WCL[1] to WCL[n] (where n is an integer equal to or greater than 1), wirings WSL[1] to WSL[m], and wirings XCL[1] to XCL[m]. In particular, the wirings WCL[1] to WCL[n] electrically connect the circuit SWS1 and the circuit SWS2. That is, the circuit SWS1 can be said to be electrically connected to the circuit SWS2 via the cell array CA by the wirings WCL[1] to WCL[n]. Note that in FIG. 1, the wirings WSL[1] to WSL[m] and the wirings XCL[1] to XCL[m] extend in the x-direction, and the wirings WCL[1] to WCL[n] extend in the y-direction.

[0084] Furthermore, each of the cells in the cell array CA is electrically connected to one of the lines WCL[1] through WCL[n], one of the lines WSL[1] through WSL[m], and one of the lines XCL[1] through XCL[m]. Therefore, the cells included in the cell array CA are arranged in a matrix of at least m rows and n columns.

[0085] The circuit WCS has a function of supplying current to the wirings WCL[1] to WCL[n] in an amount corresponding to the first data, and therefore is electrically connected to each of the wirings WCL[1] to WCL[n] via the circuit SWS1.

[0086] The circuit SWS1 has a function of bringing the circuit WCS into electrical continuity or non-conduction between the circuit WCS and each of the wirings WCL[1] to WCL[n].

[0087] The circuit WSD is electrically connected to the wirings WSL[1] to WSL[m]. When writing first data to a cell included in the cell array CA, the circuit WSD has a function of selecting a row of the cell array CA to which the first data is to be written by supplying a predetermined signal to the wirings WSL[1] to WSL[m]. In other words, the wirings WSL[1] to WSL[m] function as write word lines.

[0088] The circuit XCS is electrically connected to the wirings XCL[1] to XCL[m]. The circuit XCS has a function of supplying a current corresponding to reference data (described later) or second data to the wirings XCL[1] to XCL[m].

[0089] The circuit PTC includes circuits PTR[1] to PTR[m]. A first terminal of the circuit PTR[1] is electrically connected to a wiring XCL[1], a first terminal of the circuit PTR[i] is electrically connected to a wiring XCL[i], and a first terminal of the circuit PTR[m] is electrically connected to a wiring XCL[m].

[0090] In addition, the second terminal of the circuit PTR[1] is electrically connected to the wiring EIL[1] of the layer ERL, the second terminal of the circuit PTR[i] is electrically connected to the wiring EIL[i] of the layer ERL, and the second terminal of the circuit PTR[m] is electrically connected to the wiring EIL[m] of the layer ERL.

[0091] Specifically, for example, in a top view of the semiconductor device SDV, plugs or the like are provided at the locations where the second terminals of the circuits PTR[1] to PTR[m] intersect with the wirings EIL[1] to EIL[m], respectively, to electrically connect the second terminals of the circuits PTR[1] to PTR[m] with the wirings EIL[1] to EIL[m], respectively.

[0092] The circuit PTR[1] has a function of bringing the wiring EIL[1] and the wiring XCL[1] into a conductive state or a non-conductive state. Similarly, the circuit PTR[i] has a function of bringing the wiring EIL[i] and the wiring XCL[i] into a conductive state or a non-conductive state, and the circuit PTR[m] has a function of bringing the wiring EIL[m] and the wiring XCL[m] into a conductive state or a non-conductive state. In other words, each of the circuits PTR[1] to PTR[m] functions as a switching element.

[0093] The circuit ITS has a function of acquiring the amount of current flowing through the wirings WCL[1] to WCL[n] and outputting a result according to the amount of current to the wirings OL[1] to OL[n]. Therefore, the circuit ITS is electrically connected to each of the wirings WCL[1] to WCL[n] via the circuit SWS2. The circuit ITS is also electrically connected to each of the wirings OL[1] to OL[n].

[0094] The circuit SWS2 has a function of bringing the circuit ITS into a conductive state or a non-conductive state between the circuit ITS and each of the wirings WCL[1] to WCL[n].

[0095] In Figure 1, a configuration is shown in which the layer CCL is provided with the circuits PTC, XCS, WCS, WSD, ITS, SWS1, and SWS2 as peripheral circuits of the cell array CA, but all or part of these peripheral circuits may be provided in a layer other than the layer CCL.

[0096] For example, one embodiment of the present invention may be configured as a semiconductor device SDV having layers PDL, ERL, CCL, and PHL, as shown in FIG. 3. In FIG. 3, the layer PDL is located above the layer ERL, the layer ERL is located above the layer CCL, and the layer CCL is located above the layer PHL. The semiconductor device SDV of FIG. 3 differs from the semiconductor device SDV of FIG. 1 in that it includes a layer PHL and in that circuits XCS, WCS, WSD, ITS, SWS1, and SWS2, which correspond to peripheral circuits of the cell array CA, are provided in the layer PHL. Because the cell array CA is provided in the layer CCL, the circuits XCS, WCS, WSD, ITS, SWS1, and SWS2 are located below the cell array CA. In one embodiment of the present invention, as shown in FIG. 3, the cell array CA may be configured to be located above the circuits XCS, WCS, WSD, ITS, SWS1, and SWS2, which correspond to the peripheral circuits of the cell array CA.

[0097] Furthermore, although FIG. 3 shows a configuration in which the layer PHL is located below the cell array CA, the layer PHL may be located above the cell array CA and below the layer ERL (not shown).

[0098] Here, the structures of the wirings EIL[1] to EIL[m] included in the layer ERL in the semiconductor device of one embodiment of the present invention will be described.

[0099] 1 to 3, the wirings EIL[1] to EIL[m] preferably extend along the x-direction. That is, the direction in which the wirings EIL[1] to EIL[m] extend is preferably, for example, approximately parallel to the wirings XCL[1] to XCL[m] when viewed in the y-direction, and more preferably parallel. Furthermore, for example, the wirings EIL[1] to EIL[m] preferably extend approximately parallel to the wirings XCL[1] to XCL[m] included in the layer CCL when viewed from above, and more preferably parallel. That is, the wirings EIL[1] to EIL[m] preferably extend so as to be approximately parallel or parallel to the row direction (x-direction) of the cell array CA when viewed from above. In this case, the width of the wirings EIL[1] to EIL[m] is preferably 0.7 times or more, 0.8 times or more, or 0.9 times or more, and preferably 1.1 times or less, 1.2 times or less, 1.3 times or less, 1.5 times or less, or 2 times or less, of the width of the wirings XCL[1] to XCL[m]. Furthermore, the distance between adjacent wirings in the wirings EIL[1] to EIL[m] is preferably 0.1 times or more, 0.5 times or more, 0.7 times or more, 0.8 times or more, or 0.9 times or more, and preferably 1.1 times or less, 1.2 times or less, 1.3 times or less, or 1.5 times or less, of the distance between adjacent wirings in the wirings XCL[1] to XCL[m]. Note that the above-mentioned lower limit values ​​and upper limit values ​​can be combined with each other.

[0100] Furthermore, when the wirings EIL[1] to EIL[m] and the wirings XCL[1] to XCL[m] are parallel to each other, the process for forming the wirings EIL[1] to EIL[m] may be the same as the process for forming the wirings XCL[1] to XCL[m]. For example, the photomask for forming the wirings EIL[1] to EIL[m] may be the same as the photomask for forming the wirings XCL[1] to XCL[m].

[0101] Note that, in a top view, each of the wirings XCL[1] to XCL[m] and each of the wirings EIL[1] to EIL[m] do not have to be parallel to each other. For example, Fig. 4 is a top view (viewed from the z direction) showing an example of routing of the wirings XCL[1] to XCL[m] and the wirings EIL[1] to EIL[m] in the semiconductor device SDV. As shown in Fig. 4, in a top view, the angle formed by the wirings XCL[1] to XCL[m] and the wirings EIL[1] to EIL[m] may be greater than 0 degrees. In other words, since the angle formed by the wirings XCL[1] to XCL[m] and the wirings EIL[1] to EIL[m] can be made greater than 0 degrees, the degree of freedom in the position of the sensor array SCA electrically connected to each of the wirings EIL[1] to EIL[m] can be increased. Note that, since the width of each of the wirings EIL[1] to EIL[m] has a finite value, if the angle between the wirings XCL[1] to XCL[m] and the wirings EIL[1] to EIL[m] is increased, adjacent wirings in the wirings EIL[1] to EIL[m] may come into contact with each other. Therefore, the width and angle need to be set so that adjacent wirings in the wirings EIL[1] to EIL[m] do not come into contact with each other.

[0102] Furthermore, it is preferable that the layer ERL has an area where at least two of the wirings EIL[1] to EIL[m] are parallel to each other, and it is more preferable that the layer ERL has an area where the wirings EIL[1] to EIL[m] are parallel to each other.

[0103] Furthermore, the shapes of the wirings EIL[1] to EIL[m] are not particularly limited as long as they are designed so that there is no electrical continuity between the wirings EIL[1] to EIL[m] (no current, signals, etc. flow between the wirings). For example, the wirings EIL[1] to EIL[m] may be angled wirings as shown in FIG. 5A or wirings having curved portions as shown in FIG. 5B. The wirings EIL[1] to EIL[m] may also be wirings that combine the shapes shown in FIGS. 5A and 5B. The wirings EIL[1] to EIL[m] do not have to be parallel to each other. The wiring spacing between the wirings EIL[1] to EIL[m] is preferably the same as that between the wirings XCL[1] to XCL[m], for example.

[0104] By aligning the wirings EIL[1] to EIL[m] in one direction, for example, the region formed by the layer PDL above the layer ERL can be freely determined along that one direction. Specifically, as shown in Figure 6, the arrangement of the sensor array SCA on the layer PDL can be freely determined as long as it is in the direction in which the wirings EIL[1] to EIL[m] extend on the layer ERL (the direction of the black arrow in Figure 6).

[0105] 1 to 3, the placement location of the sensor array SCA on the semiconductor chip forming the arithmetic circuit (layer CCL) can be determined almost freely. Therefore, for example, the sensor array SCA can be placed at or near the center of the semiconductor chip when viewed from above. Furthermore, the layout of the arithmetic circuit included in the layer CCL does not depend on the placement location of the sensor array SCA, which increases the degree of freedom in the layout of the arithmetic circuit and its surrounding wiring.

[0106] <Example of arithmetic circuit configuration> Next, a specific configuration example of each circuit included in the layer CCL in the semiconductor device SDV shown in FIG. 1 will be described.

[0107] 7 shows an example of the configuration of an arithmetic circuit that performs a product-sum operation on first data, which is positive or "0", and second data, which is positive or "0", and can be the arithmetic circuit included in the layer CCL of FIG. 1. The arithmetic circuit MAC1 shown in FIG. 7 is a circuit that performs a product-sum operation on first data corresponding to the potential held in each cell and input second data, and calculates an activation function using the result of the product-sum operation. Note that the first data and second data can be, for example, analog data or multi-valued data (discrete data).

[0108] The arithmetic circuit MAC1 has, like the layer CCL in FIG. 1, a circuit WCS, a circuit XCS, a circuit WSD, a circuit PTC, a circuit SWS1, a circuit SWS2, a circuit ITS, and a cell array CA.

[0109] The cell array CA includes cells IM[1,1] to IM[m,n] and cells IMref[1] to IMref[m]. Each of the cells IM[1,1] to IM[m,n] has a function of holding a potential corresponding to a current amount according to first data, and the cells IMref[1] to IMref[m] have a function of supplying the held potential and a potential according to second data required for performing a product-sum operation to the wirings XCL[1] to XCL[m].

[0110] Although the cell array CA in FIG. 7 has cells arranged in a matrix of m rows and n+1 columns, the cell array CA may have any configuration in which the cells are arranged in a matrix of one or more rows and two or more columns.

[0111] Each of cells IM[1,1] to IM[m,n] has, for example, a transistor F1, a transistor F2, and a capacitance C5, and each of cells IMref[1] to IMref[m] has, for example, a transistor F1m, a transistor F2m, and a capacitance C5m.

[0112] In particular, it is preferable that the sizes (e.g., channel length, channel width, transistor configuration, etc.) of the transistors F1 included in each of the cells IM[1,1] to IM[m,n] are equal to each other, and it is also preferable that the sizes of the transistors F2 included in each of the cells IM[1,1] to IM[m,n] are equal to each other. It is also preferable that the sizes of the transistors F1m included in each of the cells IMref[1] to IMref[m] are equal to each other, and it is also preferable that the sizes of the transistors F2m included in each of the cells IMref[1] to IMref[m] are equal to each other. It is also preferable that the sizes of the transistors F1 and F1m are equal to each other, and it is also preferable that the sizes of the transistors F2 and F2m are equal to each other.

[0113] By making the transistor sizes equal to each other, the electrical characteristics of each transistor can be made approximately equal. Therefore, by making the size of the transistor F1 included in each of cells IM[1,1] to IM[m,n] equal and making the size of the transistor F2 included in each of cells IM[1,1] to IM[m,n] equal, each of cells IM[1,1] to IM[m,n] can perform approximately the same operation under the same conditions. Here, the same conditions refer to, for example, the potentials of the source, drain, gate, etc. of transistor F1, the potentials of the source, drain, gate, etc. of transistor F2, and the voltages input to each of cells IM[1,1] to IM[m,n]. Furthermore, by making the size of the transistor F1m included in each of cells IMref[1] to IMref[m] equal and making the size of the transistor F2m included in each of cells IMref[1] to IMref[m] equal, for example, the operation and results of the operation of cells IMref[1] to IMref[m] can be made approximately the same. They can perform substantially the same operation when they are under the same conditions, which means, for example, the potentials of the source, drain, gate, etc. of transistor F1m, the potentials of the source, drain, gate, etc. of transistor F2m, and the voltages input to cells IMref[1] to IMref[m].

[0114] Unless otherwise specified, the transistors F1 and F1m are considered to ultimately operate in a linear region when they are on. That is, the gate voltage, source voltage, and drain voltage of each of the above-described transistors are considered to include a case where they are appropriately biased to voltages within a range in which they operate in a linear region. However, one aspect of the present invention is not limited to this. For example, the transistors F1 and F1m may operate in a saturation region when they are on, or may operate in both a linear region and a saturation region.

[0115] Furthermore, unless otherwise specified, the transistors F2 and F2m are considered to operate in the subthreshold region (i.e., in the transistor F2 or F2m, the gate-source voltage is lower than the threshold voltage, more preferably, the drain current increases exponentially with the gate-source voltage). That is, the gate voltage, source voltage, and drain voltage of each of the above-mentioned transistors are considered to be appropriately biased to voltages within the range in which they operate in the subthreshold region. Therefore, the transistors F2 and F2m also include a case in which they operate such that an off-state current flows between the source and the drain.

[0116] For example, the transistor F1 and / or the transistor F1m is preferably an OS transistor. The channel formation region of the transistor F1 and / or the transistor F1m is preferably an oxide containing at least one of indium, gallium, and zinc. Instead of the oxide, an oxide containing at least one of indium, an element M (e.g., aluminum, gallium, yttrium, copper, vanadium, beryllium, boron, titanium, iron, nickel, germanium, zirconium, molybdenum, lanthanum, cerium, neodymium, hafnium, tantalum, tungsten, magnesium, etc.) and zinc may be used. The transistor F1 and / or the transistor F1m preferably has the structure of the transistor described in the fifth embodiment.

[0117] By using OS transistors as the transistors F1 and / or F1m, the leakage current of the transistors F1 and / or F1m can be suppressed, thereby reducing the power consumption of the arithmetic circuit. Specifically, when the transistors F1 and / or F1m are off, the leakage current from the retention node to the write word line can be significantly reduced, thereby reducing the number of refresh operations for the potential of the retention node. Furthermore, reducing the number of refresh operations can reduce the power consumption of the arithmetic circuit. Furthermore, by significantly reducing the leakage current from the retention node to the wiring WCL or XCL, the cell can retain the potential of the retention node for a long time, thereby improving the arithmetic accuracy of the arithmetic circuit.

[0118] Furthermore, by using an OS transistor for the transistor F2 and / or the transistor F2m, the transistors can operate over a wide current range in the subthreshold region, thereby reducing current consumption. Furthermore, by using an OS transistor for the transistor F2 and / or the transistor F2m, the transistors can be manufactured simultaneously with the transistors F1 and F1m, which may shorten the manufacturing process of the arithmetic circuit. The transistors F2 and / or the transistor F2m can be transistors containing silicon in their channel formation regions (hereinafter referred to as Si transistors) other than OS transistors. Examples of silicon that can be used include amorphous silicon (sometimes referred to as hydrogenated amorphous silicon), microcrystalline silicon, polycrystalline silicon, and single-crystal silicon.

[0119] However, when semiconductor devices and the like are highly integrated on a chip, the chip may generate heat due to the operation of the circuit. This heat increases the temperature of the transistor, which can change the characteristics of the transistor, resulting in changes in field-effect mobility and a decrease in operating frequency. OS transistors have higher heat resistance than Si transistors, so they are less likely to experience changes in field-effect mobility due to temperature changes and are less likely to experience a decrease in operating frequency. Furthermore, OS transistors tend to maintain the characteristic that their drain current increases exponentially with respect to the gate-source voltage, even at high temperatures. Therefore, by using OS transistors, it is easy to perform calculations, processing, and the like, even in high-temperature environments. Therefore, when configuring a semiconductor device that is resistant to heat generation due to operation, it is preferable to use OS transistors as the transistors.

[0120] In each of the cells IM[1,1] to IM[m,n], a first terminal of the transistor F1 is electrically connected to a gate of the transistor F2. A first terminal of the transistor F2 is electrically connected to a wiring VE. A first terminal of the capacitor C5 is electrically connected to the gate of the transistor F2.

[0121] In each of the cells IMref[1] to IMref[m], a first terminal of the transistor F1m is electrically connected to a gate of the transistor F2m, a first terminal of the transistor F2m is electrically connected to a wiring VE, and a first terminal of the capacitor C5m is electrically connected to the gate of the transistor F2m.

[0122] 7, back gates are illustrated for the transistors F1, F2, F1m, and F2m. Although the connection configuration of the back gates is not illustrated, the electrical connection destination of the back gates can be determined at the design stage. For example, in a transistor having a back gate, the gate and back gate may be electrically connected to increase the on-state current of the transistor. That is, for example, the gate and back gate of the transistor F1 may be electrically connected, or the gate and back gate of the transistor F1m may be electrically connected. Furthermore, for example, in a transistor having a back gate, in order to change the threshold voltage of the transistor or reduce the off-state current of the transistor, a wiring may be provided to electrically connect the back gate of the transistor to an external circuit or the like, and a potential may be applied to the back gate of the transistor from the external circuit or the like.

[0123] 7 includes a back gate, the semiconductor device of one embodiment of the present invention is not limited thereto. For example, the transistors F1 and F2 in FIG. 7 may have a structure without a back gate, that is, may have a single-gate structure. Furthermore, some of the transistors may have a back gate, and other transistors may have a structure without a back gate.

[0124] 7 illustrates n-channel transistors as the transistors F1 and F2, but the semiconductor device of one embodiment of the present invention is not limited to this. For example, some or all of the transistors F1 and F2 may be replaced with p-channel transistors.

[0125] The above-described modifications to the transistor structures and polarities are not limited to transistors F1 and F2. For example, the same applies to transistors F1m, F2m, transistors F3[1] to F3[n], and transistors F4[1] to F4[n], which will be described later, as well as transistors described elsewhere in the specification or shown in other drawings.

[0126] The wiring VE is a wiring for passing a current between the first terminal and the second terminal of the transistor F2 of each of the cells IM[1,1], IM[m,1], IM[1,n], and IM[m,n], and also functions as a wiring for passing a current between the first terminal and the second terminal of the transistor F2 of each of the cells IMref[1] and IMref[m]. As an example, the wiring VE functions as a wiring for supplying a constant voltage. The constant voltage can be, for example, a low-level potential, a ground potential, or the like.

[0127] In cell IM[1,1], the second terminal of transistor F1 is electrically connected to wiring WCL[1], and the gate of transistor F1 is electrically connected to wiring WSL[1]. The second terminal of transistor F2 is electrically connected to wiring WCL[1], and the second terminal of capacitor C5 is electrically connected to wiring XCL[1]. In FIG. 7, the connection point between the first terminal of transistor F1, the gate of transistor F2, and the first terminal of capacitor C5 in cell IM[1,1] is designated as node NN[1,1].

[0128] In cell IM[m,1], the second terminal of transistor F1 is electrically connected to wiring WCL[1], and the gate of transistor F1 is electrically connected to wiring WSL[m]. The second terminal of transistor F2 is electrically connected to wiring WCL[1], and the second terminal of capacitor C5 is electrically connected to wiring XCL[m]. In FIG. 7, the connection point between the first terminal of transistor F1, the gate of transistor F2, and the first terminal of capacitor C5 in cell IM[m,1] is designated as node NN[m,1].

[0129] In cell IM[1,n], the second terminal of transistor F1 is electrically connected to wiring WCL[n], and the gate of transistor F1 is electrically connected to wiring WSL[1]. The second terminal of transistor F2 is electrically connected to wiring WCL[n], and the second terminal of capacitor C5 is electrically connected to wiring XCL[1]. In FIG. 7, the connection point between the first terminal of transistor F1, the gate of transistor F2, and the first terminal of capacitor C5 in cell IM[1,n] is referred to as node NN[1,n].

[0130] In cell IM[m,n], the second terminal of transistor F1 is electrically connected to wiring WCL[n], and the gate of transistor F1 is electrically connected to wiring WSL[m]. The second terminal of transistor F2 is electrically connected to wiring WCL[n], and the second terminal of capacitor C5 is electrically connected to wiring XCL[m]. In FIG. 7, the connection point between the first terminal of transistor F1, the gate of transistor F2, and the first terminal of capacitor C5 in cell IM[m,n] is designated as node NN[m,n].

[0131] In cell IMref[1], the second terminal of transistor F1m is electrically connected to line XCL[1], and the gate of transistor F1m is electrically connected to line WSL[1]. The second terminal of transistor F2m is electrically connected to line XCL[1], and the second terminal of capacitor C5 is electrically connected to line XCL[1]. In FIG. 7, the connection point between the first terminal of transistor F1m, the gate of transistor F2m, and the first terminal of capacitor C5 in cell IMref[1] is referred to as node NNref[1].

[0132] In cell IMref[m], the second terminal of transistor F1m is electrically connected to line XCL[m], and the gate of transistor F1m is electrically connected to line WSL[m]. The second terminal of transistor F2m is electrically connected to line XCL[m], and the second terminal of capacitor C5 is electrically connected to line XCL[m]. In FIG. 7, the connection point between the first terminal of transistor F1m, the gate of transistor F2m, and the first terminal of capacitor C5 in cell IMref[m] is referred to as node NNref[m].

[0133] Note that the nodes NN[1,1] to NN[m,n] and the nodes NNref[1] to NNref[m] function as holding nodes for the respective cells.

[0134] In cells IM[1,1] to IM[m,n], for example, when transistor F1 is in the on state, transistor F2 is configured as a diode. When transistor F1 is in the on state and a current of magnitude I flows from wiring WCL to the second terminal of transistor F2, with the constant voltage provided by wiring VE as the ground potential (GND), the potential of the gate (node ​​NN) of transistor F2 is determined according to the current magnitude I. Since transistor F1 is in the on state, the potential of the second terminal of transistor F2 is ideally equal to the gate (node ​​NN) of transistor F2. By turning transistor F1 off, the potential of the gate (node ​​NN) of transistor F2 is maintained. This allows transistor F2 to pass a current of magnitude I between its source and drain, depending on the ground potential of the first terminal of transistor F2 and the potential of the gate (node ​​NN) of transistor F2. In this specification and the like, this operation is referred to as "setting (programming) the amount of current flowing between the source and drain of transistor F2 of cell IM to I."

[0135] As described above, the circuit PTC includes circuits PTR[1] to PTR[m]. Furthermore, the circuits PTR[1] to PTR[m] each include, for example, switches SA[1] to SA[m].

[0136] For example, electrical switches such as analog switches and transistors can be used as each of the switches SA[1] to SA[m]. Note that when transistors are used as the switches SA[1] to SA[m], the transistors can have the same structure as the transistors F1 and F2. In addition to electrical switches, mechanical switches can also be used.

[0137] A first terminal of the switch SA[1] is electrically connected to the wiring XCL[1], and a control terminal of the switch SA[1] is electrically connected to the wiring SWLA. Although not shown, a second terminal of the switch SA[1] is electrically connected, for example, to the wiring EIL[1] of the layer ERL of the semiconductor device SDV of FIG. 1. Similarly, a first terminal of the switch SA[m] is electrically connected to the wiring XCL[m], and a control terminal of the switch SA[m] is electrically connected to the wiring SWLA. Although not shown, a second terminal of the switch SA[m] is electrically connected, for example, to the wiring EIL[m] of the layer ERL of the semiconductor device SDV of FIG. 1.

[0138] For example, the wiring SWLA functions as a wiring for switching between the on state and the off state of each of the switches SA[1] to SA[m]. Therefore, a high-level potential or a low-level potential is supplied to the wiring SWLA.

[0139] The circuit SWS1 includes, for example, transistors F3[1] to F3[n]. A first terminal of the transistor F3[1] is electrically connected to the wiring WCL[1], a second terminal of the transistor F3[1] is electrically connected to the circuit WCS, and a gate of the transistor F3[1] is electrically connected to the wiring SWL1. A first terminal of the transistor F3[n] is electrically connected to the wiring WCL[n], a second terminal of the transistor F3[n] is electrically connected to the circuit WCS, and a gate of the transistor F3[n] is electrically connected to the wiring SWL1.

[0140] For example, the wiring SWL1 functions as a wiring for switching the transistors F3[1] to F3[n] between an on state and an off state, and therefore a high-level potential or a low-level potential is supplied to the wiring SWL1.

[0141] For example, a transistor applicable to the transistor F1 and / or the transistor F2 can be used as each of the transistors F3[1] to F3[n]. In particular, it is preferable to use an OS transistor as each of the transistors F3[1] to F3[n]. Furthermore, an electrical switch such as an analog switch, a mechanical switch, or the like may be used instead of each of the transistors F3[1] to F3[n].

[0142] As described above, the circuit SWS1 functions as a circuit that brings the circuit WCS and each of the wirings WCL[1] to WCL[n] into a conductive state or a non-conductive state. That is, the circuit SWS1 uses the transistors F3[1] to F3[n] as switching elements to switch the conductive state or the non-conductive state between the circuit WCS and each of the wirings WCL[1] to WCL[n].

[0143] The circuit SWS2 includes, for example, transistors F4[1] to F4[n]. A first terminal of the transistor F4[1] is electrically connected to the wiring WCL[1], a second terminal of the transistor F4[1] is electrically connected to an input terminal of a conversion circuit ITRZ[1] (described later), and a gate of the transistor F4[1] is electrically connected to the wiring SWL2. A first terminal of the transistor F4[n] is electrically connected to the wiring WCL[n], a second terminal of the transistor F4[n] is electrically connected to an input terminal of a conversion circuit ITRZ[n] (described later), and a gate of the transistor F4[n] is electrically connected to the wiring SWL2.

[0144] For example, the wiring SWL2 functions as a wiring for switching the transistors F4[1] to F4[n] between an on state and an off state, and therefore a high-level potential or a low-level potential is supplied to the wiring SWL2.

[0145] For example, a transistor applicable to the transistor F1 and / or the transistor F2 can be used as each of the transistors F4[1] to F4[n]. In particular, it is preferable to use an OS transistor as each of the transistors F4[1] to F4[n]. Furthermore, an electrical switch such as an analog switch, a mechanical switch, or the like may be used instead of each of the transistors F4[1] to F4[n].

[0146] As described above, the circuit SWS2 has a function of turning on or off the wirings WCL[1] to WCL[n] and the circuit ITS. That is, the circuit SWS1 uses the transistors F4[1] to F4[n] as switching elements to switch the conduction or non-conduction between the circuit ITS and each of the wirings WCL[1] to WCL[n].

[0147] As described above, the circuit WCS has a function of supplying current to the wirings WCL[1] to WCL[n] in an amount corresponding to the first data. That is, when the transistors F3[1] to F3[n] are turned on, the circuit WCS supplies the first data to be stored in each cell of the cell array CA.

[0148] As described above, the circuit XCS has a function of passing a current of an amount corresponding to the reference data or the second data to the wirings XCL[1] to XCL[m]. That is, in the arithmetic circuit MAC1 of Fig. 7, the circuit XCS passes a current of an amount corresponding to the reference data or the second data to each of the cells IMref[1] to IMref[m] included in the cell array CA.

[0149] As described above, when writing first data to the cells IM[1,1] to IM[m,n], the circuit WSD has a function of selecting a row of the cell array CA to which the first data is to be written by supplying predetermined signals to the wirings WSL[1] to WSL[m]. For example, the circuit WSD can supply a high-level potential to the wiring WSL[1] and a low-level potential to the wirings WSL[2] (not shown) to WSL[m] to turn on the transistor F1 having a gate electrically connected to the wiring WSL[1] and turn off the transistor F1 having a gate electrically connected to each of the wirings WSL[2] to WSL[m].

[0150] 7, the circuit WSD is electrically connected to, for example, a wiring SWL1 and a wiring SWL2. The circuit WSD has a function of bringing the circuit WCS and the cell array CA into a conductive state or a non-conductive state by supplying a predetermined signal to the wiring SWL1, and a function of bringing the conversion circuits ITRZ[1] to ITRZ[n] (described later) into a conductive state or a non-conductive state between the cell array CA and the conversion circuits ITRZ[1] to ITRZ[n] by supplying a predetermined signal to the wiring SWL2.

[0151] The circuit ITS includes conversion circuits ITRZ[1] to ITRZ[n].

[0152] Each of the conversion circuits ITRZ[1] to ITRZ[n] has, for example, an input terminal and an output terminal. For example, the output terminal of the conversion circuit ITRZ[1] is electrically connected to the wiring OL[1], and the output terminal of the conversion circuit ITRZ[n] is electrically connected to the wiring OL[n].

[0153] Each of the conversion circuits ITRZ[1] to ITRZ[n] has a function of converting a current input to an input terminal into a voltage corresponding to the amount of current and outputting the voltage from an output terminal. The voltage may be, for example, an analog voltage or a digital voltage. Each of the conversion circuits ITRZ[1] to ITRZ[n] may also include a function-based arithmetic circuit. In this case, for example, the arithmetic circuit may perform a function calculation using the converted voltage, and the calculation result may be output to the wiring OL[1] to wiring OL[n].

[0154] In particular, when performing calculations on a hierarchical neural network, the above-mentioned functions may be, for example, a sigmoid function, a tanh function, a softmax function, a ReLU function, a threshold function, or the like.

[0155] <<Circuit WCS, Circuit XCS>> Here, specific examples of the circuit WCS and the circuit XCS will be described.

[0156] First, the circuit WCS will be described. Fig. 8A is a block diagram showing an example of the circuit WCS. Note that Fig. 8A also shows the circuit SWS1, the transistor F3, the wiring SWL1, and the wiring WCL in order to show the electrical connection of the circuit WCS with the peripheral circuits.

[0157] The circuit WCS has, for example, the same number of circuits WCSa as the number of wirings WCL, that is, n circuits WCSa.

[0158] The circuit SWS1 also has transistors F3 equal to the number of wirings WCL, that is, n transistors F3.

[0159] Therefore, the transistor F3 shown in Fig. 8A can be any one of the transistors F3[1] to F3[n] included in the arithmetic circuit MAC1 in Fig. 7. Similarly, the wiring WCL can be any one of the wirings WCL[1] to WCL[n] included in the arithmetic circuit MAC1 in Fig. 7.

[0160] Therefore, the wirings WCL[1] to WCL[n] are electrically connected to different circuits WCSa via different transistors F3, respectively.

[0161] The circuit WCSa shown in FIG. 8A includes, as an example, a switch SWW. A first terminal of the switch SWW is electrically connected to a second terminal of the transistor F3, and a second terminal of the switch SWW is electrically connected to a wiring VINIL1. The wiring VINIL1 functions as a wiring that applies an initialization potential to the wiring WCL, and the initialization potential can be a ground potential (GND), a low-level potential, a high-level potential, or the like. Note that the switch SWW is turned on only when the initialization potential is applied to the wiring WCL, and is turned off otherwise.

[0162] As the switch SWW, for example, an electrical switch such as an analog switch or a transistor can be applied. Note that, when a transistor is applied as the switch SWW, the transistor can have the same structure as the transistors F1 and F2. Furthermore, in addition to an electrical switch, a mechanical switch may also be applied.

[0163] 8A has a plurality of current sources CS. Specifically, the circuit WCSa has a K-bit (2 KIn this case, the circuit WCSa has a function of outputting the first data of the value (K is an integer of 1 or more) as a current amount. K The circuit WCSa has one current source CS that outputs information corresponding to the value of the first bit as a current, two current sources CS that output information corresponding to the value of the second bit as a current, and two current sources CS that output information corresponding to the value of the K-th bit as a current. K-1 There are individual ones.

[0164] 8A, each current source CS has a terminal T1 and a terminal T2. The terminal T1 of each current source CS is electrically connected to the second terminal of the transistor F3 of the circuit SWS1. The terminal T2 of one current source CS is electrically connected to the wiring DW[1], and the terminals T2 of the two current sources CS are electrically connected to the wiring DW[2]. K-1 Each of the terminals T2 of the current sources CS is electrically connected to a wiring DW[K].

[0165] The multiple current sources CS in the circuit WCSa each supply the same constant current I Wut from the terminal T1. In reality, errors may occur during the manufacturing stage of the arithmetic circuit MAC1 due to variations in the electrical characteristics of the transistors included in each current source CS. Therefore, the constant current I output from each terminal T1 of the multiple current sources CS is Wut The error is preferably within 10%, more preferably within 5%, and even more preferably within 1%. In this embodiment, the constant current I output from the terminal T1 of the multiple current sources CS included in the circuit WCSa is Wut The following explanation will be given assuming that there is no error.

[0166] The wirings DW[1] to DW[K] are electrically connected to a current source CS and a constant current I Wut Specifically, for example, when a high-level potential is applied to the wiring DW[1], the current source CS electrically connected to the wiring DW[1] outputs a constant current IWut flows to the second terminal of the transistor F3, and when a low-level potential is applied to the wiring DW[1], the current source CS electrically connected to the wiring DW[1] flows as follows: Wut For example, when a high-level potential is applied to the wiring DW[2], the two current sources CS electrically connected to the wiring DW[2] output a total of 2I Wut When a constant current of 2I flows to the second terminal of the transistor F3 and a low-level potential is applied to the wiring DW[2], the current source CS electrically connected to the wiring DW[2] flows through the second terminal of the transistor F3. Wut For example, when a high-level potential is applied to the wiring DW[K], the 2 K-1 The current sources CS are K-1 I Wut When a constant current of 100 V flows to the second terminal of the transistor F3 and a low-level potential is applied to the wiring DW[K], the current source CS electrically connected to the wiring DW[K] has a total of 2 K-1 I Wut It does not output a constant current.

[0167] The current flowing from one current source CS electrically connected to the wiring DW[1] corresponds to the value of the first bit, the current flowing from two current sources CS electrically connected to the wiring DW[2] corresponds to the value of the second bit, and the amount of current flowing from K current sources CS electrically connected to the wiring DW[K] corresponds to the value of the Kth bit. Here, consider the circuit WCSa when K is 2. For example, when the value of the first bit is "1" and the value of the second bit is "0", a high-level potential is applied to the wiring DW[1] and a low-level potential is applied to the wiring DW[2]. At this time, a constant current I is supplied from the circuit WCSa to the second terminal of the transistor F3 of the circuit SWS1. Wut Also, for example, when the value of the first bit is "0" and the value of the second bit is "1", a low level potential is applied to the wire DW[1] and a high level potential is applied to the wire DW[2]. At this time, a constant current of 2I flows from the circuit WCSa to the second terminal of the transistor F3 of the circuit SWS1. WutFurthermore, for example, when the value of the first bit is "1" and the value of the second bit is "1", a high level potential is applied to the wires DW[1] and DW[2]. At this time, a constant current of 3I flows from the circuit WCSa to the second terminal of the transistor F3 of the circuit SWS1. Wut flows. Also, for example, when the value of the first bit is "0" and the value of the second bit is "0", a low-level potential is applied to the wire DW[1] and the wire DW[2]. At this time, no constant current flows from the circuit WCSa to the second terminal of the transistor F3 of the circuit SWS1.

[0168] 8A illustrates the circuit WCSa when K is an integer equal to or greater than 3, but when K is 1, the circuit WCSa in FIG. 8A may be configured without a current source CS electrically connected to the wirings DW[2] to DW[K]. When K is 2, the circuit WCSa in FIG. 8A may be configured without a current source CS electrically connected to the wirings DW[3] to DW[K].

[0169] Next, a specific example of the configuration of the current source CS will be described.

[0170] The current source CS1 shown in FIG. 9A is a circuit that can be applied to the current source CS included in the circuit WCSa in FIG. 8A, and the current source CS1 has a transistor Tr1 and a transistor Tr2.

[0171] A first terminal of the transistor Tr1 is electrically connected to the wiring VDDL, and a second terminal of the transistor Tr1 is electrically connected to the gate of the transistor Tr1, the back gate of the transistor Tr1, and the first terminal of the transistor Tr2. A second terminal of the transistor Tr2 is electrically connected to the terminal T1, and a gate of the transistor Tr2 is electrically connected to the terminal T2. The terminal T2 is also electrically connected to the wiring DW.

[0172] The wiring DW is any one of the wirings DW[1] to DW[n] in FIG. 8A.

[0173] The line VDDL functions as a line that applies a constant voltage, which may be, for example, a high-level potential.

[0174] When the constant voltage applied by the wiring VDDL is set to a high-level potential, a high-level potential is input to the first terminal of the transistor Tr1. The potential of the second terminal of the transistor Tr1 is set to a potential lower than the high-level potential. At this time, the first terminal of the transistor Tr1 functions as a drain, and the second terminal of the transistor Tr1 functions as a source. Since the gate of the transistor Tr1 and the second terminal of the transistor Tr1 are electrically connected, the gate-source voltage of the transistor Tr1 is 0V. Therefore, when the threshold voltage of the transistor Tr1 is within an appropriate range, a current (drain current) in the subthreshold region current range flows between the first terminal and the second terminal of the transistor Tr1. When the transistor Tr1 is an OS transistor, the amount of this current is, for example, 1.0×10 -8 A or less, and 1.0 × 10 -12 A or less is more preferable, and 1.0 × 10 -15 It is more preferable that the current is less than or equal to I. Also, for example, it is more preferable that the current is in a range that increases exponentially with respect to the gate-source voltage. In other words, the transistor Tr1 functions as a current source for supplying a current in the current range when operating in the subthreshold region. Note that the current is the above-mentioned I Wut , or I, as described below. Xut is equivalent to

[0175] Transistor Tr2 functions as a switching element. When the potential of the first terminal of transistor Tr2 is higher than the potential of the second terminal of transistor Tr2, the first terminal of transistor Tr2 functions as a drain, and the second terminal of transistor Tr2 functions as a source. Because the back gate of transistor Tr2 and the second terminal of transistor Tr2 are electrically connected, the back gate-source voltage is 0 V. Therefore, when the threshold voltage of transistor Tr2 is within an appropriate range, transistor Tr2 is turned on when a high-level potential is input to the gate of transistor Tr2, and turned off when a low-level potential is input to the gate of transistor Tr2. Specifically, when transistor Tr2 is on, a current in the subthreshold region flows from the second terminal of transistor Tr1 to terminal T1. When transistor Tr2 is off, the current does not flow from the second terminal of transistor Tr1 to terminal T1.

[0176] Note that the circuit applicable to the current source CS included in the circuit WCSa of FIG. 8A is not limited to the current source CS1 of FIG. 9A. For example, while the current source CS1 is configured such that the back gate of the transistor Tr2 is electrically connected to the second terminal of the transistor Tr2, the back gate of the transistor Tr2 may be electrically connected to a separate wiring. An example of such a configuration is shown in FIG. 9B. The current source CS2 shown in FIG. 9B is configured such that the back gate of the transistor Tr2 is electrically connected to a wiring VTHL. By electrically connecting the wiring VTHL to an external circuit or the like, the current source CS2 can apply a predetermined potential to the wiring VTHL via the external circuit or the like, thereby applying the predetermined potential to the back gate of the transistor Tr2. This allows the threshold voltage of the transistor Tr2 to be varied. In particular, increasing the threshold voltage of the transistor Tr2 can reduce the off-state current of the transistor Tr2.

[0177] For example, the current source CS1 has a configuration in which the back gate of the transistor Tr1 is electrically connected to the second terminal of the transistor Tr1, but a configuration in which a capacitor is used to maintain a voltage between the back gate of the transistor Tr2 and the second terminal of the transistor Tr2 is also possible. Such a configuration example is shown in FIG. 9C. The current source CS3 shown in FIG. 9C includes a transistor Tr3 and a capacitor C6 in addition to the transistors Tr1 and Tr2. The current source CS3 differs from the current source CS1 in that the second terminal of the transistor Tr1 is electrically connected to the back gate of the transistor Tr1 via the capacitor C6 and the back gate of the transistor Tr1 is electrically connected to the first terminal of the transistor Tr3. The current source CS3 also has a configuration in which the second terminal of the transistor Tr3 is electrically connected to the wiring VTL and the gate of the transistor Tr3 is electrically connected to the wiring VWL. The current source CS3 can apply a high-level potential to the wiring VWL to turn on the transistor Tr3, thereby establishing electrical continuity between the wiring VTL and the back gate of the transistor Tr1. At this time, a predetermined potential can be input to the back gate of transistor Tr1 from line VTL. Then, by applying a low-level potential to line VWL to turn off transistor Tr3, the capacitor C6 can maintain the voltage between the second terminal of transistor Tr1 and the back gate of transistor Tr1. In other words, by determining the voltage applied to the back gate of transistor Tr1 from line VTL, the threshold voltage of transistor Tr1 can be varied, and the threshold voltage of transistor Tr1 can be fixed by transistor Tr3 and capacitor C6.

[0178] 9D may be used as the current source CS included in the circuit WCSa of FIG. 8A. The current source CS4 is configured such that the back gate of the transistor Tr2 in the current source CS3 of FIG. 9C is electrically connected to the line VTHL instead of the second terminal of the transistor Tr2. In other words, the current source CS4, like the current source CS2 of FIG. 9B, can vary the threshold voltage of the transistor Tr2 depending on the potential provided by the line VTHL.

[0179] In the current source CS4, when a large current flows between the first and second terminals of the transistor Tr1, it is necessary to increase the on-current of the transistor Tr2 in order to pass that current from the terminal T1 to the outside of the current source CS4. In this case, the current source CS4 applies a high-level potential to the line VTHL to lower the threshold voltage of the transistor Tr2 and increase the on-current of the transistor Tr2, thereby allowing the large current flowing between the first and second terminals of the transistor Tr1 to flow from the terminal T1 to the outside of the current source CS4.

[0180] 9A to 9D as the current source CS included in the circuit WCSa of Fig. 8A, the circuit WCSa can output a current corresponding to the K-bit first data. The amount of the current can be, for example, the amount of current flowing between the first terminal and the second terminal within a range in which the transistor F1 operates in the subthreshold region.

[0181] 8A may be replaced by the circuit WCSa shown in FIG. 8B. The circuit WCSa in FIG. 8B has a configuration in which the current source CS in FIG. 9A is connected to each of the wirings DW[1] to DW[K]. When the channel width of the transistor Tr1[1] is w[1], the channel width of the transistor Tr1[2] is w[2], and the channel width of the transistor Tr1[K] is w[K], the ratio of the respective channel widths is w[1]:w[2]:w[K]=1:2:2. K-1Since the current flowing between the source and drain of a transistor operating in the subthreshold region is proportional to the channel width, the circuit WCSa shown in FIG. 8B can output a current corresponding to the K-bit first data, similar to the circuit WCSa in FIG. 8A.

[0182] Note that the transistors Tr1 (including transistors Tr1[1] to Tr1[K]), Tr2 (including transistors Tr2[1] to Tr2[K]), and Tr3 can be, for example, transistors applicable to the transistors F1 and / or F2. In particular, OS transistors are preferably used as the transistors Tr1 (including transistors Tr1[1] to Tr1[K]), Tr2 (including transistors Tr2[1] to Tr2[K]), and Tr3.

[0183] Next, a specific example of the circuit XCS will be described.

[0184] Fig. 8C is a block diagram showing an example of the circuit XCS, and also shows wiring XCL to show the electrical connection between the circuit XCS and the peripheral circuits.

[0185] The circuit XCS includes, for example, as many circuits XCSa as there are wirings XCL, that is, the circuit XCS includes m circuits XCSa.

[0186] Therefore, the wiring XCL shown in Fig. 8C can be any one of the wirings XCL[1] to XCL[m] included in the arithmetic circuit MAC1 in Fig. 7. Therefore, a separate circuit XCSa is electrically connected to each of the wirings XCL[1] to XCL[m].

[0187] The circuit XCSa shown in FIG. 8C includes, as an example, a switch SWX. A first terminal of the switch SWX is electrically connected to a second terminal of the transistor F4, and a second terminal of the switch SWX is electrically connected to a wiring VINIL2. The wiring VINIL2 functions as a wiring that applies an initialization potential to the wiring XCL. The initialization potential may be a ground potential (GND), a low-level potential, a high-level potential, or the like. The initialization potential applied by the wiring VINIL2 may be equal to the potential applied by the wiring VINIL1. The switch SWX is turned on only when the initialization potential is applied to the wiring XCL, and is turned off otherwise.

[0188] The switch SWX may be, for example, a switch applicable to the switch SWW.

[0189] The circuit configuration of the circuit XCSa in FIG. 8C can be substantially the same as that of the circuit WCSa in FIG. 9A. Specifically, the circuit XCSa has a function of outputting reference data as a current amount and a function of outputting L bits (2 L and a function of outputting second data of the second input signal (L is an integer of 1 or more) as a current amount. In this case, the circuit XCSa has a function of outputting second data of the second input signal (L is an integer of 1 or more) as a current amount. L The circuit XCSa has one current source CS that outputs information corresponding to the value of the first bit as a current, two current sources CS that output information corresponding to the value of the second bit as a current, and two current sources CS that output information corresponding to the value of the Lth bit as a current. L-1 There are individual ones.

[0190] Incidentally, the reference data output as a current by the circuit XCSa can be, for example, information in which the value of the first bit is "1" and the values ​​of the second and subsequent bits are "0".

[0191] In FIG. 8C, the terminal T2 of one current source CS is electrically connected to the wiring DX[1], and each of the terminals T2 of the two current sources CS is electrically connected to the wiring DX[2]. L-1Each of the terminals T2 of the current sources CS is electrically connected to the wiring DX[L].

[0192] The multiple current sources CS in the circuit XCSa are each set to the same constant current I Xut from the terminal T1. The wirings DX[1] to DX[L] are electrically connected to the current source CS and the Xut That is, the circuit XCSa has a function of causing the amount of current corresponding to L-bit information transmitted from the wirings DX[1] to DX[L] to flow through the wiring XCL.

[0193] Specifically, consider the circuit XCSa when L is set to 2. For example, when the value of the first bit is "1" and the value of the second bit is "0", a high level potential is applied to the wire DX[1] and a low level potential is applied to the wire DX[2]. At this time, a constant current I is applied from the circuit XCSa to the wire XCL. Xut For example, when the value of the first bit is "0" and the value of the second bit is "1", a low level potential is applied to the wire DX[1] and a high level potential is applied to the wire DX[2]. At this time, a constant current of 2I flows from the circuit XCSa to the wire XCL. Xut Furthermore, for example, when the value of the first bit is "1" and the value of the second bit is "1", a high level potential is applied to the wires DX[1] and DX[2]. At this time, a constant current of 3I flows from the circuit XCSa to the wire XCL. Xut Furthermore, for example, when the value of the first bit is "0" and the value of the second bit is "0", a low level potential is applied to the wires DX[1] and DX[2]. At this time, no constant current flows from the circuit XCSa to the wire XCL. Note that in this specification and other places, this may be rephrased as a current of zero amount flows from the circuit XCSa to the wire XCL. Furthermore, the current of zero amount, I, output by the circuit XCSa Xut , 2I Xut , 3I Xut The second data output by the circuit XCSa can be, in particular, the amount of current I Xutcan be the reference data output by the circuit XCSa.

[0194] In addition, when an error occurs due to variations in the electrical characteristics of the transistors included in each current source CS of the circuit XCSa, the constant current I output from each of the terminals T1 of the multiple current sources CS is Xut The error is preferably within 10%, more preferably within 5%, and even more preferably within 1%. In this embodiment, the constant current I output from the terminal T1 of each of the multiple current sources CS included in the circuit XCSa is Xut The following explanation will be given assuming that there is no error.

[0195] 9A to 9D can be used as the current source CS of the circuit XCSa, similar to the current source CS of the circuit WCSa. In this case, the wiring DW shown in FIGS. 9A to 9C can be replaced with the wiring DX. This allows the circuit XCSa to pass a current in the subthreshold current range through the wiring XCL as reference data or L-bit second data.

[0196] 8C can be configured similarly to the circuit WCSa shown in Fig. 8B. In this case, the circuit WCSa shown in Fig. 8B can be replaced with the circuit XCSa, the wiring DW[1] with the wiring DX[1], the wiring DW[2] with the wiring DX[2], the wiring DW[K] with the wiring DX[L], the switch SWW with the switch SWX, and the wiring VINIL1 with the wiring VINIL2.

[0197] <<Conversion circuit ITRZ[1] to conversion circuit ITRZ[n]>> Here, a specific example of a circuit that can be applied to the conversion circuits ITRZ[1] to ITRZ[n] included in the circuit ITS shown in FIG. 7 will be described.

[0198] The conversion circuit ITRZ1 shown in Fig. 10A is an example of a circuit that can be applied to the conversion circuits ITRZ[1] to ITRZ[n] in Fig. 7. Note that Fig. 10A also illustrates a circuit SWS2, wiring WCL, wiring SWL2, and transistor F4 to show the electrical connection of the conversion circuit ITRZ1 with peripheral circuits. The wiring WCL is any one of the wirings WCL[1] to WCL[n] included in the arithmetic circuit MAC1 in Fig. 7, and the transistor F4 is any one of the transistors F4[1] to F4[n] included in the arithmetic circuit MAC1 in Fig. 7.

[0199] The conversion circuit ITRZ1 in FIG. 10A is electrically connected to the wiring WCL via a transistor F4. The conversion circuit ITRZ1 is also electrically connected to the wiring OL. The conversion circuit ITRZ1 has a function of converting the amount of current flowing from the conversion circuit ITRZ1 to the wiring WCL or the amount of current flowing from the wiring WCL to the conversion circuit ITRZ1 into an analog voltage and outputting the analog voltage to the wiring OL. In other words, the conversion circuit ITRZ1 has a current-voltage conversion circuit.

[0200] The conversion circuit ITRZ1 in FIG. 10A includes, for example, a resistor R5 and an operational amplifier OP1.

[0201] The inverting input terminal of the operational amplifier OP1 is electrically connected to the first terminal of the resistor R5 and the second terminal of the transistor F4. The non-inverting input terminal of the operational amplifier OP1 is electrically connected to the wiring VRL. The output terminal of the operational amplifier OP1 is electrically connected to the second terminal of the resistor R5 and the wiring OL.

[0202] The wiring VRL functions as a wiring that applies a constant voltage, which may be, for example, a ground potential (GND) or a low-level potential.

[0203] By configuring the conversion circuit ITRZ1 as shown in Figure 10A, the amount of current flowing from the wiring WCL to the conversion circuit ITRZ1 via transistor F4, or the amount of current flowing from the conversion circuit ITRZ1 to the wiring WCL via transistor F4, can be converted into an analog voltage and output to the wiring OL.

[0204] In particular, by setting the constant voltage provided by the line VRL to ground potential (GND), the inverting input terminal of the operational amplifier OP1 becomes a virtual ground, and the analog voltage output to the line OL can be a voltage based on ground potential (GND).

[0205] Furthermore, although the conversion circuit ITRZ1 in FIG. 10A is configured to output an analog voltage, the circuit configuration applicable to the conversion circuits ITRZ[1] to ITRZ[n] in FIG. 7 is not limited to this. For example, the conversion circuit ITRZ1 may be configured to include an analog-to-digital conversion circuit ADC, as shown in FIG. 10B. Specifically, the conversion circuit ITRZ2 in FIG. 10B is configured such that the input terminal of the analog-to-digital conversion circuit ADC is electrically connected to the output terminal of the operational amplifier OP1 and the second terminal of the resistor R5, and the output terminal of the analog-to-digital conversion circuit ADC is electrically connected to the wiring OL. With this configuration, the conversion circuit ITRZ2 in FIG. 10B can output a digital signal to the wiring OL.

[0206] Also, in the conversion circuit ITRZ2, when the digital signal output to the wiring OL is 1 bit (binary), the conversion circuit ITRZ2 may be replaced with the conversion circuit ITRZ3 shown in FIG. 10C. The conversion circuit ITRZ3 in FIG. 10C has a configuration in which a comparator CMP1 is provided in the conversion circuit ITRZ1 in FIG. 10A. Specifically, in the conversion circuit ITRZ3, the first input terminal of the comparator CMP1 is electrically connected to the output terminal of the operational amplifier OP1 and the second terminal of the resistor R5, the second input terminal of the comparator CMP1 is electrically connected to the wiring VRL2, and the output terminal of the comparator CMP1 is electrically connected to the wiring OL. The wiring VRL2 functions as a wiring that provides a potential for comparing with the potential of the first terminal of the comparator CMP1. With such a configuration, the conversion circuit ITRZ3 in FIG. 10C outputs a low-level potential or a high-level potential (binary digital signal) to the wiring OL according to the magnitude of the voltage converted from the amount of current flowing between the source and drain of the transistor F4 by the current-voltage conversion circuit and the voltage provided by the wiring VRL2.

[0207] Also, the conversion circuits ITRZ[1] to ITRZ[n] applicable to the arithmetic circuit MAC1 in FIG. 7 are not limited to the conversion circuits ITRZ1 to ITRZ3. For example, when using the arithmetic circuit MAC1 for the arithmetic of a hierarchical neural network, it is preferable for the conversion circuits ITRZ1 to ITRZ3 to have an arithmetic circuit of a function type. Further, as the arithmetic circuit of the function type, an arithmetic circuit such as a sigmoid function, a tanh function, a softmax function, a ReLU function, and a threshold function can be used.

[0208] Note that one embodiment of the present invention is not limited to the circuit configuration of the arithmetic circuit MAC1 described in this embodiment. The circuit configuration of the arithmetic circuit MAC1 can be changed depending on the situation. For example, the arithmetic circuit MAC1 may be changed to a configuration without the circuit SWS1, as in the arithmetic circuit MAC1A shown in FIG. 11. In the case of the arithmetic circuit MAC1, the circuit SWS1 can stop the current flowing from the circuit WCS to the wirings WCL[1] to WCL[n]. In the case of the arithmetic circuit MAC1A, however, the circuit WCS can stop the current flowing from the circuit WCS to the wirings WCL[1] to WCL[n]. Specifically, for example, when the circuit WCSa of FIG. 8A is used as the circuit WCSa included in the circuit WCS of the arithmetic circuit MAC1A and the current source CS1 of FIG. 9A is used as the current source CS, a low-level potential is input to each of the wirings DW[1] to DW[K] and the switch SWW is turned off. By operating the circuit WCSa in this way, the current flowing from the circuit WCS to the wirings WCL[1] to WCL[n] can be stopped. In this manner, by stopping the current flowing from the circuit WCS to the wirings WCL[1] to WCL[n], arithmetic can be performed using the arithmetic circuit MAC1A instead of the arithmetic circuit MAC1.

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

[0210] 12 shows a timing chart of an example of the operation of the arithmetic circuit MAC1. The timing chart of FIG. 12 shows fluctuations in the potentials of the wiring SWL1, wiring SWL2, wiring SWLA, wiring WSL[i] (i is an integer of 1 to m-1), wiring WSL[i+1], wiring XCL[i], wiring XCL[i+1], node NN[i,j] (j is an integer of 1 to n-1), node NN[i+1,j], node NNref[i], and node NNref[i+1] between time T11 and time T23 and in the vicinity thereof. Furthermore, the timing chart of FIG. 12 shows fluctuations in the amount of current I flowing between the first terminal and the second terminal of the transistor F2 included in the cell IM[i,j]. F2[i,j] and the current I flowing between the first and second terminals of transistor F2m included in cell IMref[i] F2m [i] and the current I flowing between the first and second terminals of transistor F2 included in cell IM[i+1,j] F2 [i+1,j] and the current I flowing between the first and second terminals of transistor F2m included in cell IMref[i+1] F2m The respective variations of [i+1] and are also shown.

[0211] It is to be noted that the circuit WCS of the arithmetic circuit MAC1 is the circuit WCS of FIG. 8A, and the circuit XCS of the arithmetic circuit MAC1 is the circuit XCS of FIG. 8C.

[0212] In this operation example, the potential of the wiring VE is set to the ground potential GND. Also, before time T11, the potentials of the nodes NN[i,j], NN[i+1,j], NNref[i], and NNref[i+1] are set to the ground potential GND as an initial setting. Specifically, for example, by setting the initialization potential of the wiring VINIL1 in FIG. 8A to the ground potential GND and turning on the switch SWW, the transistor F3, and the transistors F1 included in the cells IM[i,j] and IM[i+1,j], the potentials of the nodes NN[i,j] and NN[i+1,j] can be set to the ground potential GND. Furthermore, for example, by setting the initialization potential of the wiring VINIL2 in Figure 8C to the ground potential GND and turning on the switch SWX and the transistors F1m included in the cells IMref[i,j] and IMref[i+1,j], the potentials of the nodes NNref[i,j] and NNref[i+1,j] can be set to the ground potential GND.

[0213] In this operation example, each of the switches SA[1] to SA[m] is turned on when a high-level potential is input to the control terminal, and is turned off when a low-level potential is input to the control terminal. The potential applied by the wiring SWLA is always a low-level potential (denoted as Low in FIG. 12). Therefore, in this operation example, the switches SA[1] to SA[m] are always turned off.

[0214] <<From time T11 to time T12>> Between time T11 and time T12, a high-level potential (denoted as "High" in FIG. 12) is applied to the wiring SWL1, and a low-level potential (denoted as "Low" in FIG. 12) is applied to the wiring SWL2. As a result, a high-level potential is applied to the gates of the transistors F3[1] to F3[n], turning on the transistors F3[1] to F3[n], and a low-level potential is applied to the gates of the transistors F4[1] to F4[n], turning off the transistors F4[1] to F4[n].

[0215] Furthermore, between time T11 and time T12, a low-level potential is applied to the wiring WSL[i] and the wiring WSL[i+1]. As a result, a low-level potential is applied to the gate of the transistor F1 included in the cells IM[i,1] to IM[i,n] in the i-th row of the cell array CA and the gate of the transistor F1m included in the cell IMref[i], turning off the respective transistors F1 and F1m. Furthermore, a low-level potential is applied to the gate of the transistor F1 included in the cells IM[i+1,1] to IM[i+1,n] in the i+1-th row of the cell array CA and the gate of the transistor F1m included in the cell IMref[i+1], turning off the respective transistors F1 and F1m.

[0216] Also, between time T11 and time T12, the ground potential GND is applied to wiring XCL[i] and wiring XCL[i + 1]. Specifically, for example, when the wiring XCL shown in FIG. 8C is each of the wiring XCL[i] and wiring XCL[i + 1], by setting the initialization potential of the wiring VINIL2 to the ground potential GND and turning on the switch SWX, the potentials of the wiring XCL[i] and wiring XCL[i + 1] can be set to the ground potential GND.

[0217] Also, between time T11 and time T12, in each of the circuits WCSa in FIG. 8A that are electrically connected to the wiring WCL[1] to wiring WCL[n] via separate transistors F3, no first data is input to the wiring DW[1] to wiring DW[K]. In this case, it is assumed that a low-level potential is input to each of the wiring DW[1] to wiring DW[K] in the circuit WCSa in FIG. 8A. Also, between time T11 and time T12, in each of the circuits XCSa in FIG. 8C that are electrically connected to the wiring XCL[1] to wiring XCL[m], no second data is input to the wiring DX[1] to wiring DX[L]. In this case, it is assumed that a low-level potential is input to each of the wiring DX[1] to wiring DX[L] in the circuit XCSa in FIG. 8C.

[0218] Also, between time T11 and time T12, no current flows through the wiring WCL[j], wiring XCL[i], and wiring XCL[i + 1]. Therefore, I F2 [i,j], I F2m [i]I F2 [i + 1,j], I F2m [i + 1] becomes 0.

[0219] <<From time T12 to time T13>> Between time T12 and time T13, a high-level potential is applied to the wiring WSL[i]. As a result, a high-level potential is applied to the gate of the transistor F1 included in the cells IM[i,1] to IM[i,n] in the i-th row of the cell array CA and the gate of the transistor F1m included in the cell IMref[i], turning on the transistor F1 and the transistor F1m. Also, between time T12 and time T13, a low-level potential is applied to the wirings WSL[1] to WSL[m] other than the wiring WSL[i], turning off the transistor F1 included in the cells IM[1,1] to IM[m,n] other than the i-th row of the cell array CA and the transistor F1m included in the cells IMref[1] to IMref[m] other than the i-th row.

[0220] Furthermore, the ground potential GND has been applied to the wirings XCL[1] to XCL[m] continuously since before time T12.

[0221] <<From time T13 to time T14>> Between time T13 and time T14, a current of a current amount I0[i,j] flows as the first data from the circuit WCS to the cell array CA via the transistor F3[j]. Specifically, when the wiring WCL shown in FIG. 8A is the wiring WCL[j], signals corresponding to the first data are input to each of the wirings DW[1] to DW[K], and a current I0[i,j] flows from the circuit WCSa to the second terminal of the transistor F3[j]. That is, the value of the K-bit signal input as the first data is set to α[i,j] (α[i,j] is set to a value between 0 and 2). K -1 or less), then I0[i,j]=α[i,j]×I Wut This becomes:

[0222] Note that when α[i,j] is 0, I0[i,j]=0, so strictly speaking, no current flows from circuit WCSa to cell array CA via transistor F3[j]. However, in this specification, it may be stated that "a current of I0[i,j]=0 flows."

[0223] Between time T13 and time T14, there is a conductive state between the first terminal of transistor F1 included in cell IM[i,j] in the i-th row of cell array CA and wiring WCL[j], and there is a non-conductive state between the first terminal of transistor F1 included in cells IM[1,j] to IM[m,j] other than the i-th row of cell array CA and wiring WCL[j], so that a current of an amount I0[i,j] flows from wiring WCL[j] to cell IM[i,j].

[0224] Incidentally, when the transistor F1 included in the cell IM[i,j] is turned on, the transistor F2 included in the cell IM[i,j] is configured as a diode connection. Therefore, when a current flows from the wiring WCL[j] to the cell IM[i,j], the potentials of the gate of the transistor F2 and the second terminal of the transistor F2 become approximately equal. This potential is determined by the amount of current flowing from the wiring WCL[j] to the cell IM[i,j] and the potential of the first terminal of the transistor F2 (GND in this case). In this operation example, when a current of the amount I0[i,j] flows from the wiring WCL[j] to the cell IM[i,j], the potential of the gate of the transistor F2 (node ​​NN[i,j]) becomes V g [i,j]. That is, in transistor F2, the gate-source voltage is V g [i,j]-GND, and the amount of current I0[i,j] is set as the current flowing between the first terminal and the second terminal of the transistor F2.

[0225] Here, the threshold voltage of transistor F2 is V th [i,j], the amount of current I0[i,j] when the transistor F2 operates in the subthreshold region can be expressed as follows:

[0226]

number

[0227] In addition, I a is Vg [i,j] is V th [i,j] is the drain current when J is a correction coefficient determined by temperature, device structure, etc.

[0228] In addition, between time T13 and time T14, the circuit XCS supplies the wire XCL[i] with a current amount I ref0 Specifically, when the wiring XCL shown in FIG. 8C is the wiring XCL[i], a high-level potential is input to the wiring DX[1] and a low-level potential is input to each of the wirings DX[2] to DX[K], and a current I flows from the circuit XCSa to the wiring XCL[i]. ref0 In other words, I ref0 =I Xut This becomes:

[0229] Between time T13 and time T14, a state of conduction is established between the first terminal of the transistor F1m included in the cell IMref[i] and the wiring XCL[i], so that a current I ref0 A current of flows.

[0230] As with cell IM[i,j], when transistor F1m included in cell IMref[i] is turned on, transistor F2m included in cell IMref[i] is configured as a diode connection. Therefore, when current flows from wiring XCL[i] to cell IMref[i], the potentials of the gate of transistor F2m and the second terminal of transistor F2m become approximately equal. This potential is determined by the amount of current flowing from wiring XCL[i] to cell IMref[i] and the potential of the first terminal of transistor F2m (here, GND), etc. In this operation example, the amount of current I flows from wiring XCL[i] to cell IMref[i]. ref0 As a result of this current flowing, the gate of transistor F2 (node ​​NNref[i]) is V gm [i], and the potential of the wiring XCL[i] at this time is also V gm [i]. That is, in transistor F2m, the gate-source voltage is Vgm [i]-GND, and the current flowing between the first and second terminals of transistor F2m is I ref0 is set.

[0231] Here, the threshold voltage of transistor F2m is V thm When [i] is set, the amount of current I when transistor F2m operates in the subthreshold region is ref0 can be written as follows. Note that the correction coefficient J is assumed to be the same as that of transistor F2 included in cell IM[i,j]. For example, the device structure and size (channel length, channel width) of the transistors are assumed to be the same. Furthermore, although the correction coefficient J of each transistor varies due to manufacturing variations, it is assumed that the variations are suppressed to a level that allows the discussion below to be carried out with sufficient accuracy for practical use.

[0232]

number

[0233] Here, the weighting coefficient w[i,j], which is the first data, is defined as follows:

[0234]

number

[0235] Therefore, equation (1.1) can be rewritten as follows:

[0236]

number

[0237] The current I output by the current source CS of the circuit WCSa in Figure 8A Wut and the current I output by the current source CS of the circuit XCSa in Figure 8C. Xut If and are equal, then w[i,j]=α[i,j]. That is, I Wut And, I XutIf and are equal, α[i,j] corresponds to the value of the first data, so I Wut And, I Xut Preferably, and are equal to each other.

[0238] <<From time T14 to time T15>> Between time T14 and time T15, a low-level potential is applied to the wiring WSL[i], which applies a low-level potential to the gates of the transistors F1 included in the cells IM[i,1] to IM[i,n] in the i-th row of the cell array CA and the gate of the transistor F1m included in the cell IMref[i], turning off the transistors F1 and F1m.

[0239] When the transistor F1 included in the cell IM[i,j] is turned off, the capacitance C5 is charged with V, which is the difference between the potential of the gate of the transistor F2 (node ​​NN[i,j]) and the potential of the wiring XCL[i]. g [i,j]-V gm [i] is held. Also, by turning off the transistor F1 included in the cell IMref[i], the capacitance C5m holds 0, which is the difference between the potential of the gate (node ​​NNref[i]) of the transistor F2m and the potential of the wiring XCL[i]. Note that the voltage held by the capacitance C5m is a voltage (here, for example, V ds In this case, the potential of the node NNref[i] is V ds This can be thought of as the sum of the potentials.

[0240] <<From time T15 to time T16>> 8C is the line XCL[i], the potential of the line XCL[i] can be set to the ground potential GND by setting the initialization potential of the line VINIL2 to the ground potential GND and turning on the switch SWX.

[0241] Therefore, the potentials of nodes NN[i,1] to NN[i,n] change due to capacitive coupling by capacitance C5 contained in each of cells IM[i,1] to IM[i,n] in the i-th row, and the potential of node NNref[i] changes due to capacitive coupling by capacitance C5m contained in cell IMref[i].

[0242] The amount of change in the potential of the nodes NN[i,1] to NN[i,n] is the potential obtained by multiplying the amount of change in the potential of the wiring XCL[i] by a capacitive coupling coefficient determined by the configuration of each of the cells IM[i,1] to IM[i,n] included in the cell array CA. The capacitive coupling coefficient is calculated based on the capacitance of the capacitor C5, the gate capacitance of the transistor F2, the parasitic capacitance, etc. In each of the cells IM[i,1] to IM[i,n], when the capacitive coupling coefficient due to the capacitor C5 is p, the potential of the node NN[i,j] of the cell IM[i,j] is calculated by multiplying the potential at the time between time T14 and time T15 by p(V gm [i]-GND) decreases.

[0243] Similarly, when the potential of the wiring XCL[i] changes, the potential of the node NNref[i] also changes due to the capacitive coupling by the capacitance C5m included in the cell IMref[i]. If the capacitive coupling coefficient of the capacitance C5m is p, the same as the capacitance C5, the potential of the node NNref[i] of the cell IMref[i] changes from the potential between time T14 and time T15 to p(V gm [i]-GND) decreases.

[0244] 12, as an example, p = 1. Therefore, the potential of the node NNref[i] between time T15 and time T16 is GND.

[0245] As a result, the potential of the node NN[i,j] of the cell IM[i,j] drops, so that the transistor F2 is turned off. Similarly, the potential of the node NNref[i] of the cell IMref[i] drops, so that the transistor F2m is also turned off. Therefore, between time T15 and time T16, F2 [i,j], I F2m Each of [i] is 0.

[0246] <<From time T16 to time T17>> Between time T16 and time T17, a high-level potential is applied to the wiring WSL[i+1]. As a result, a high-level potential is applied to the gate of the transistor F1 included in the cells IM[i+1,1] to IM[i+1,n] in the i+1th row of the cell array CA and the gate of the transistor F1m included in the cell IMref[i+1], turning on the transistor F1 and the transistor F1m. Also, between time T16 and time T17, a low-level potential is applied to the wirings WSL[1] to WSL[m] other than the wiring WSL[i+1], turning off the transistor F1 included in the cells IM[1,1] to IM[m,n] other than the i+1th row of the cell array CA and the transistor F1m included in the cells IMref[1] to IMref[m] other than the i+1th row of the cell array CA.

[0247] Furthermore, the ground potential GND has been applied to the wirings XCL[1] to XCL[m] continuously since before time T16.

[0248] <<From time T17 to time T18>> Between time T17 and time T18, a current of a current amount I0[i+1,j] flows as the first data from the circuit WCS to the cell array CA via the transistor F3[j]. Specifically, when the wiring WCL shown in FIG. 8A is the wiring WCL[j+1], signals corresponding to the first data are input to each of the wirings DW[1] to DW[K], and a current I0[i+1,j] flows from the circuit WCSa to the second terminal of the transistor F3[j]. That is, the value of the K-bit signal input as the first data is set to α[i+1,j] (α[i+1,j] is 0 to 2). K -1 or less.) I0[i+1,j]=α[i+1,j]×I Wut This becomes:

[0249] Note that when α[i+1,j] is 0, I0[i+1,j]=0, so strictly speaking, no current flows from circuit WCSa to cell array CA via transistor F3[j]. However, in this specification, as in the case of I0[i,j]=0, it may be stated that "a current of I0[i+1,j]=0 flows."

[0250] At this time, there is a conductive state between the first terminal of transistor F1 included in cell IM[i+1,j] in the i+1th row of cell array CA and wiring WCL[j], and there is a non-conductive state between the first terminal of transistor F1 included in cells IM[1,j] to IM[m,j] other than the i+1th row of cell array CA and wiring WCL[j], so a current of an amount I0[i+1,j] flows from wiring WCL[j] to cell IM[i+1,j].

[0251] Incidentally, when transistor F1 included in cell IM[i+1,j] is turned on, transistor F2 included in cell IM[i+1,j] is configured as a diode. Therefore, when current flows from wiring WCL[j] to cell IM[i+1,j], the potentials of the gate of transistor F2 and the second terminal of transistor F2 become approximately equal. This potential is determined by the amount of current flowing from wiring WCL[j] to cell IM[i+1,j] and the potential of the first terminal of transistor F2 (here, GND). In this operation example, when a current of a current amount I0[i+1,j] flows from wiring WCL[j] to cell IM[i+1,j], the potential of the gate of transistor F2 (node ​​NN[i+1,j]) becomes V g [i+1,j]. That is, in transistor F2, the gate-source voltage is V g [i+1,j]-GND, and the amount of current I0[i+1,j] is set as the current flowing between the first terminal and the second terminal of the transistor F2.

[0252] Here, the threshold voltage of transistor F2 is V th When transistor F2 operates in the subthreshold region, the current I0[i+1,j] can be expressed as follows: Note that the correction coefficient is J, which is the same as that for transistor F2 included in cell IM[i,j] and transistor F2m included in cell IMref[i].

[0253]

number

[0254] In addition, between time T17 and time T18, the circuit XCS supplies the wire XCL[i+1] with the current amount I ref0Specifically, as in the period from time T13 to time T14, when the wiring XCL shown in FIG. 8C is the wiring XCL[i+1], a high-level potential is input to the wiring DX[1] and a low-level potential is input to each of the wirings DX[2] to DX[K], and a current I flows from the circuit XCSa to the wiring XCL[i+1]. ref0 =I Xut is playing.

[0255] Between time T17 and time T18, a state of conduction is established between the first terminal of the transistor F1m included in the cell IMref[i+1] and the wiring XCL[i+1], so that a current I ref0 A current of flows.

[0256] As with cell IM[i+1,j], when transistor F1m included in cell IMref[i+1] is turned on, transistor F2m included in cell IMref[i+1,j] is configured as a diode connection. Therefore, when current flows from wiring XCL[i+1] to cell IMref[i+1], the potentials of the gate of transistor F2m and the second terminal of transistor F2m become approximately equal. This potential is determined by the amount of current flowing from wiring XCL[i+1] to cell IMref[i+1] and the potential of the first terminal of transistor F2m (here, GND). In this operation example, a current amount I flows from wiring XCL[i+1] to cell IMref[i+1]. ref0 The current flowing through the transistor F2 gate (node ​​NNref[i+1]) is V gm [i+1], and the potential of the wiring XCL[i+1] at this time is also V gm [i+1]. That is, in transistor F2m, the gate-source voltage is V gm [i+1]-GND, and the current flowing between the first and second terminals of transistor F2m is I ref0 is set.

[0257] Here, the threshold voltage of transistor F2m is V thmWhen [i+1,j], the amount of current I when transistor F2m operates in the subthreshold region is ref0 can be written as follows: Note that the correction coefficient J is the same as that of the transistor F2 included in the cell IM[i+1,j].

[0258]

number

[0259] Here, the weighting coefficient w[i+1,j], which is the first data, is defined as follows:

[0260]

number

[0261] Therefore, equation (1.5) can be rewritten as follows:

[0262]

number

[0263] The current I output by the current source CS of the circuit WCSa in Figure 8A Wut and the current I output by the current source CS of the circuit XCSa in Figure 8C. Xut If and are equal, then w[i+1,j]=α[i+1,j]. That is, I Wut And, I Xut If and are equal, α[i+1,j] corresponds to the value of the first data, so I Wut And, I Xut Preferably, and are equal to each other.

[0264] <<From time T18 to time T19>> Between time T18 and time T19, a low-level potential is applied to the wiring WSL[i+1], which applies a low-level potential to the gates of the transistors F1 included in the cells IM[i+1,1] to IM[i+1,n] in the i+1th row of the cell array CA and the gate of the transistor F1m included in the cell IMref[i+1], turning off the transistors F1 and F1m.

[0265] When the transistor F1 included in the cell IM[i+1,j] is turned off, the capacitance C5 is charged with V, which is the difference between the potential of the gate of the transistor F2 (node ​​NN[i+1,j]) and the potential of the wiring XCL[i+1]. g [i+1,j]-V gm [i+1] is held. Also, by turning off the transistor F1 included in the cell IMref[i+1], the capacitor C5m holds 0, which is the difference between the potential of the gate (node ​​NNref[i+1]) of the transistor F2m and the potential of the wiring XCL[i+1]. Note that the voltage held by the capacitor C5m is a voltage (here, for example, V ds In this case, the potential of the node NNref[i+1] is V ds This can be thought of as the sum of the potentials.

[0266] <<From time T19 to time T20>> 8C is the wiring XCL[i+1], the potential for initialization of the wiring VINIL2 can be set to the ground potential GND by turning on the switch SWX.

[0267] Therefore, the potentials of nodes NN[i,1] to NN[i+1,n] change due to capacitive coupling by capacitance C5 contained in each of cells IM[i+1,1] to IM[i+1,n] in the i+1th row, and the potential of node NNref[i+1] changes due to capacitive coupling by capacitance C5m contained in cell IMref[i+1].

[0268] The change in the potential of the nodes NN[i+1,1] to NN[i+1,n] is calculated by multiplying the change in the potential of the wiring XCL[i+1] by a capacitive coupling coefficient determined by the configuration of each of the cells IM[i+1,1] to IM[i+1,n] included in the cell array CA. The capacitive coupling coefficient is calculated based on the capacitance of the capacitor C5, the gate capacitance of the transistor F2, the parasitic capacitance, etc. In each of the cells IM[i+1,1] to IM[i+1,n], when the capacitive coupling coefficient of the capacitor C5 is set to p, which is the same as the capacitive coupling coefficient of the capacitor C5 in each of the cells IM[i,1] to IM[i,n], the potential of the node NN[i+1,j] of the cell IM[i+1,j] is calculated by multiplying the change in the potential of the wiring XCL[i+1] by p(V gm [i+1]-GND) decreases.

[0269] Similarly, when the potential of the wiring XCL[i+1] changes, the potential of the node NNref[i+1] also changes due to the capacitive coupling by the capacitance C5m included in the cell IMref[i+1]. If the capacitive coupling coefficient of the capacitance C5m is p, like the capacitance C5, the potential of the node NNref[i+1] of the cell IMref[i+1] changes from the potential at the time point between T18 and T19 to p(V gm [i+1]-GND) decreases.

[0270] 12, as an example, p = 1. Therefore, the potential of the node NNref[i+1] between time T20 and time T21 is GND.

[0271] As a result, the potential of the node NN[i+1,j] of the cell IM[i+1,j] drops, so that the transistor F2 is turned off. Similarly, the potential of the node NNref[i+1] of the cell IMref[i+1] drops, so that the transistor F2m is also turned off. Therefore, between time T19 and time T20, F2 [i+1,j], I F2m Each of [i+1] is 0.

[0272] <<From time T20 to time T21>> Between time T20 and time T21, a low-level potential is applied to the wiring SWL1, so that a low-level potential is applied to the gates of the transistors F3[1] to F3[n], turning off the transistors F3[1] to F3[n].

[0273] <<From time T21 to time T22>> Between time T21 and time T22, a high-level potential is applied to the wiring SWL2, so that a high-level potential is applied to the gates of the transistors F4[1] to F4[n], turning on the transistors F4[1] to F4[n].

[0274] <<From time T22 to time T23>> Between time T22 and time T23, the circuit XCS transmits the current amount I ref0 x[i] times x[i]I ref0 Specifically, for example, when the wiring XCL shown in FIG. 8C is the wiring XCL[i], a high-level potential or a low-level potential is input to each of the wirings DX[1] to DX[K] according to the value of x[i], and a current of x[i]I flows from the circuit XCSa to the wiring XCL[i]. ref0 =x[i]I Xut In this operation example, x[i] corresponds to the value of the second data. At this time, the potential of the line XCL[i] varies from 0 to V gm[i]+ΔV[i].

[0275] When the potential of the wiring XCL[i] changes, the potentials of the nodes NN[i,1] to NN[i,n] also change due to the capacitive coupling of the capacitor C5 included in each of the cells IM[i,1] to IM[i,n] in the i-th row of the cell array CA. Therefore, the potential of the node NN[i,j] of the cell IM[i,j] is V g [i,j]+pΔV[i].

[0276] Similarly, when the potential of the wiring XCL[i] changes, the potential of the node NNref[i] also changes due to the capacitive coupling of the capacitance C5m included in the cell IMref[i]. Therefore, the potential of the node NNref[i] of the cell IMref[i] is V gm [i]+pΔV[i].

[0277] As a result, between time T22 and time T23, the amount of current I1[i,j] flowing between the first terminal and the second terminal of the transistor F2 and the amount of current I ref1 [i,j] can be written as follows:

[0278]

number

[0279]

number

[0280] Note that x[i] is as follows:

[0281]

number

[0282] Therefore, equation (1.9) can be rewritten as the following equation using equations (1.4) and (1.11):

[0283]

number

[0284] In other words, the amount of current flowing between the first terminal and the second terminal of the transistor F2 included in the cell IM[i,j] is proportional to the product of the first data w[i,j] and the second data x[i].

[0285] In addition, between time T22 and time T23, the circuit XCS transmits the current amount I ref0 x[i+1] is x[i+1] times I ref0 Specifically, for example, when the wiring XCL shown in FIG. 8C is the wiring XCL[i+1], a high-level potential or a low-level potential is input to each of the wirings DX[1] to DX[K] according to the value of x[i+1], and a current of x[i+1]I flows from the circuit XCSa to the wiring XCL[i+1]. ref0 =x[i+1]I Xut In this operation example, x[i+1] corresponds to the value of the second data. At this time, the potential of the wiring XCL[i+1] changes from 0 to V gm [i+1]+ΔV[i+1].

[0286] As the potential of the wiring XCL[i+1] changes, the potentials of the nodes NN[i+1,1] to NN[i+1,n] also change due to capacitive coupling by the capacitor C5 included in each of the cells IM[i+1,1] to IM[i+1,n] in the i+1th row of the cell array CA. Therefore, the potential of the node NN[i+1,j] of the cell IM[i+1,j] is V g [i+1,j]+pΔV[i+1].

[0287] Similarly, when the potential of the wiring XCL[i+1] changes, the potential of the node NNref[i+1] also changes due to the capacitive coupling of the capacitance C5m included in the cell IMref[i+1]. Therefore, the potential of the node NNref[i+1] of the cell IMref[i+1] is V gm [i+1]+pΔV[i+1].

[0288] As a result, between time T22 and time T23, the amount of current I1[i+1,j] flowing between the first terminal and the second terminal of the transistor F2 and the amount of current I ref1 [i+1,j] can be written as follows:

[0289]

number

[0290]

number

[0291] Note that x[i+1] is expressed as follows:

[0292]

number

[0293] Therefore, equation (1.13) can be rewritten as the following equation using equations (1.8) and (1.15):

[0294]

number

[0295] In other words, the amount of current flowing between the first terminal and the second terminal of transistor F2 included in cell IM[i+1,j] is proportional to the product of the first data w[i+1,j] and the second data x[i+1].

[0296] Here, consider the total amount of current flowing from the conversion circuit ITRZ[j] to the cells IM[i,j] and IM[i+1,j] via the transistor F4[j] and the wiring WCL[j]. Let I S If [j], then I S [j] can be expressed as follows using equations (1.12) and (1.16):

[0297]

number

[0298] Therefore, the amount of current output from the conversion circuit ITRZ[j] is proportional to the sum of the products of the first data, which are the weighting coefficients w[i,j] and w[i+1,j], and the second data, which are the neuron signal values ​​x[i] and x[i+1].

[0299] In the above example, the sum of the currents flowing through the cells IM[i,j] and IM[i+1,j] is considered, but the sum of the currents flowing through the cells IM[1,j] to IM[m,j] may also be considered. In this case, equation (1.17) can be rewritten as follows:

[0300]

number

[0301] Therefore, even in the case of an arithmetic circuit MAC1 having three or more rows and two or more columns of cell arrays CA, it is possible to perform a product-sum operation as described above. In this case, the arithmetic circuit MAC1 selects one of the multiple columns as a current amount I ref0 , and xI ref0 By using a cell that holds the data, it is possible to simultaneously perform multiply-and-accumulate operations for the remaining number of columns among the multiple columns. In other words, by increasing the number of columns in the memory cell array, it is possible to provide a semiconductor device that realizes high-speed multiply-and-accumulate operations.

[0302] <Operation example 2 of the arithmetic circuit> Next, an example of the operation of the arithmetic circuit MAC1, which is different from the above example of operation, will be described.

[0303] Fig. 13 shows a timing chart of an operation example of the arithmetic circuit MAC1. Similar to the timing chart of Fig. 12, the timing chart of Fig. 13 shows fluctuations in the potentials of the wiring SWL1, wiring SWL2, wiring SWLA, wiring WSL[i] (i is an integer of 1 to m-1), wiring WSL[i+1], wiring XCL[i], wiring XCL[i+1], node NN[i,j] (j is an integer of 1 to n-1), node NN[i+1,j], node NNref[i], and node NNref[i+1] between time T11 and time T23 and in the vicinity thereof, and fluctuations in the current I F2 [i,j], current amount I F2m [i], current amount I F2 [i+1,j], and current I F2m [i+1] and the amount of fluctuation.

[0304] Note that the operation example of the timing chart of Fig. 13 differs from the timing chart of Fig. 12 in that a high-level potential is input to the wiring SWLA at a predetermined timing. That is, the operation example of the timing chart of Fig. 13 differs from the timing chart of Fig. 12 in that sensors SNC[1] to SNC[m] are used. Therefore, in describing the operation example of the timing chart of Fig. 13, the contents of the operation example of the timing chart of Fig. 12 will be taken into consideration, and differences from the operation example of the timing chart of Fig. 12 will be mainly described.

[0305] In the timing chart of FIG. 13, before time T11 and between time T11 and time T13, the operation is the same as in the timing chart of FIG.

[0306] A case where a high-level potential is input to the wiring SWLA between time T13 and time T15 is considered. Note that the fluctuation in the potential of the wiring SWLA in this case is indicated by a solid line between time T13 and time T15 in the timing chart of FIG.

[0307] When a high-level potential is input to the wiring SWLA, each of the switches SA[1] to SA[m] having a control terminal electrically connected to the wiring SWLA is turned on.

[0308] When each of the switches SA[1] to SA[m] is turned on, a state of conduction is established between each of the wirings XCL[1] to XCL[m] and each of the wirings EIL[1] to EIL[m] in Figure 1. Furthermore, since each of the wirings EIL[1] to EIL[m] is electrically connected to each of the sensors SNC[1] to SNC[m], a state of conduction is established between each of the wirings XCL[1] to XCL[m] and each of the sensors SNC[1] to SNC[m].

[0309] Note that when a high-level potential is input to the wiring SWLA between time T13 and time T15, a constant current does not flow from the circuit XCS to the wirings XCL[1] to XCL[m]. In other words, between time T13 and time T15, a low-level potential is input to all of the wirings DX[1] to DX[L] electrically connected to the circuit XCSa.

[0310] Between time T13 and time T15 in the timing chart of FIG. 13, the amount of current I flows from the sensor SNC[i] of the layer PDL to the wiring XCL[i] via the wiring EIL[i]. ref0 is playing. ref0 can be, for example, the amount of current (sometimes referred to as a reference current) output by the sensor SNC[i] in FIG. 1 when it senses the first information that serves as a reference. In addition, in the circuit XCS, by turning off the switch SWX of the circuit XCSa in the i-th row, the potential of the wiring XCL[i] can be, for example, V gm [i] shall be the case.

[0311] 13, the sensors SNC[1] to SNC[m] other than the sensor SNC[i] may or may not perform sensing. At this time, in the circuit XCS, it is preferable to turn on all of the switches SWX included in the circuits XCSa other than the i-th row, and set the potentials of the wirings XCL[1] to XCL[m] other than the wiring XCL[i] to the ground potential.

[0312] In the timing chart of FIG. 13, the operation between time T15 and time T17 is the same as in the timing chart of FIG.

[0313] From time T17 to time T19 in the timing chart of FIG. 13, a current I flows from the sensor SNC[i+1] of the layer PDL to the wiring XCL[i+1]. ref0 is playing. ref0 For example, the first information can be a reference current output by the sensor SNC[i] in FIG. 1, which senses the first information serving as a reference. Note that the first information may be the same as or different from the first information sensed by the sensor SNC[i] between time T13 and time T15 in the timing chart of FIG. 13. In addition, in the circuit XCS, by turning off the switch SWX of the circuit XCSa in the (i+1)th row, the potential of the wiring XCL[i+1] can be, for example, V gm It will be [i+1].

[0314] 13, the sensors SNC[1] to SNC[m] other than the sensor SNC[i+1] may or may not perform sensing. At this time, in the circuit XCS, it is preferable to turn on all of the switches SWX included in the circuits XCSa other than the i-th row, and set the potentials of the wirings XCL[1] to XCL[m] other than the wiring XCL[i] to the ground potential.

[0315] In the timing chart of FIG. 13, the operation from time T19 to time T22 is the same as in the timing chart of FIG.

[0316] From time T22 to time T23 in the timing chart of FIG. 13, I ref0 x[i] times x[i]I ref0 The amount of current that flows is x[i]I ref0 can be, for example, the current output by the sensor SNC[i] in Fig. 1 when it senses the second information. That is, in the sensor SNC[i], the output current corresponding to the second information corresponds to x[i] times the output current corresponding to the first information. In addition, in the circuit XCS, by turning off the switch SWX of the circuit XCSa in the i-th row, the potential of the wiring XCL[i] becomes, for example, V gm [i]+ΔV[i].

[0317] In addition, from time T22 to time T23 in the timing chart of FIG. 13, I ref0 x[i+1] is x[i+1] times I ref0 The current x[i+1]I flows. ref0 can be, for example, the current output by the sensor SNC[i+1] in FIG. 1 after sensing the second information. That is, in the sensor SNC[i+1], the output current corresponding to the second information corresponds to x[i+1] times the output current corresponding to the first information. In addition, in the circuit XCS, by turning off the switch SWX of the circuit XCSa in the (i+1)th row, the potential of the wiring XCL[i+1] becomes, for example, V gm [i+1]+ΔV[i+1].

[0318] 12, the amount of current flowing between the conversion circuit ITRZ[j] and the wiring WCL[j] is the sum (corresponding to equation (1.17)) of the amount of current I1[i,j] flowing between the first terminal and the second terminal of the transistor F2 of the cell IM[i,j] and the amount of current I1[i+1,j] flowing between the first terminal and the second terminal of the transistor F2 of the cell IM[i+1,j]. Therefore, the amount of current output from the conversion circuit ITRZ[j] to the wiring WCL[j] is proportional to the sum of the products of the weight coefficients w[i,j] and w[i+1,j], which are the first data, and the neuron signal values ​​x[i] and x[i+1], which are the second data, i.e., x[i]w[i,j]+x[i+1]w[i+1,j].

[0319] 1 can perform calculations from the first layer (input layer) to the second layer (middle layer) of a hierarchical neural network. That is, the information (values) sensed by the sensors SNC[1] to SNC[m] correspond to signals transmitted from the neurons in the first layer to the neurons in the second layer. Furthermore, by storing weighting coefficients between the neurons in the first layer and the neurons in the second layer in the cells IM[1,j] to IM[m,j], the arithmetic circuit MAC1 can calculate the sum of products of the information (values) and the weighting coefficients.

[0320] The hierarchical neural network will be described in detail in the fourth embodiment.

[0321] The above-described operation example of the semiconductor device SDV is suitable for calculating the sum of products of positive first data and positive second data. An operation example for calculating the sum of products of positive or negative first data and positive second data, and an operation example for calculating the sum of products of positive or negative first data and positive or negative second data will be described in the second embodiment.

[0322] Although the present embodiment has described the case where the transistor included in the semiconductor device SDV is an OS transistor or a Si transistor, one embodiment of the present invention is not limited thereto. The transistor included in the semiconductor device SDV may be, for example, a transistor including Ge or the like in a channel formation region, a transistor including a compound semiconductor such as ZnSe, CdS, GaAs, InP, GaN, or SiGe in a channel formation region, a transistor including a carbon nanotube in a channel formation region, or a transistor including an organic semiconductor in a channel formation region.

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

[0324] (Embodiment 2) In the first embodiment, an arithmetic circuit that performs a product-sum operation between first data that is positive or "0" and second data that is positive or "0", and an example of its operation were described. In the present embodiment, an arithmetic circuit that can perform a product-sum operation between first data that is positive, negative, or "0" and second data that is positive or "0", and a product-sum operation between first data that is positive or "0" and second data that is "1" or "0" (binary, 1-bit digital value) will be described.

[0325] <Configuration example 1 of an arithmetic circuit> 14 shows an example of the configuration of an arithmetic circuit that performs multiplication and accumulation of first data that is positive, negative, or "0" and second data that is positive or "0". The arithmetic circuit MAC2 shown in FIG. 14 has a configuration obtained by modifying the arithmetic circuit MAC1 in FIG. 7. Therefore, in the arithmetic circuit MAC2, explanations of parts that overlap with the explanation of the arithmetic circuit MAC1 will be omitted.

[0326] The cell array CA shown in Figure 14 has circuits CES[1,j] to CES[m,j], where the circuit CES[1,j] has a cell IM[1,j] and a cell IMr[1,j], and the circuit CES[m,j] has a cell IM[m,j] and a cell IMr[m,j]. Note that Figure 14 illustrates the circuits CES[1,j] and CES[m,j], and omits other circuits CES. Furthermore, in this specification, when describing the circuits CES[1,j] to CES[m,j], the cells IM[1,j], IMr[1,j], IM[m,j], and IMr[m,j], the [m,n] and other symbols attached to the respective circuits may be omitted.

[0327] The cells IM can have the same configuration as the cells IM[1,1] to IM[m,n] included in the cell array CA of the arithmetic circuit MAC1 in FIG.

[0328] Furthermore, cell IMr can have the same configuration as cell IM. As an example, cell IMr in Fig. 14 is illustrated as having the same configuration as cell IM. Furthermore, in order to distinguish between the transistors, capacitances, etc. included in cell IM and cell IMr, the symbols indicating the transistors and capacitances included in cell IMr are appended with "r."

[0329] Specifically, cell IMr has a transistor F1r, a transistor F2r, and a capacitance C5r. Note that the transistor F1r corresponds to the transistor F1 of cell IM, the transistor F2r corresponds to the transistor F2 of cell IM, and the capacitance C5r corresponds to the capacitance C5 of cell IM. Therefore, for the electrical connection configurations of the transistor F1r, the transistor F2r, and the capacitance C5r, refer to the description of cells IM[1,1] to IM[m,n] in the first embodiment.

[0330] In the cell IMr, the connection point between the first terminal of the transistor F1r, the gate of the transistor F2r, and the first terminal of the capacitor C5r is defined as a node NNr.

[0331] In the circuit CES[1,j], the second terminal of the capacitor C5 is electrically connected to the wiring XCL[1], the gate of the transistor F1 is electrically connected to the wiring WSL[1], the second terminal of the transistor F1 and the second terminal of the transistor F2 are electrically connected to the wiring WCL[j], the second terminal of the capacitor C5r is electrically connected to the wiring XCL[1], the gate of the transistor F1r is electrically connected to the wiring WSL[1], and the second terminal of the transistor F1r and the second terminal of the transistor F2r are electrically connected to the wiring WCLr[j].

[0332] Similarly, in the circuit CES[m,j], the second terminal of the capacitor C5 is electrically connected to the wiring XCL[m], the gate of the transistor F1 is electrically connected to the wiring WSL[m], and the second terminals of the transistors F1 and F2 are electrically connected to the wiring WCL[j]. Also, the second terminal of the capacitor C5r is electrically connected to the wiring XCL[m], the gate of the transistor F1r is electrically connected to the wiring WSL[m], and the second terminals of the transistors F1r and F2r are electrically connected to the wiring WCLr[j].

[0333] Each of the wirings WCL[j] and WCLr[j] functions, for example, as a wiring that allows current to flow from the circuit WCS to the cells IM and IMr included in the circuit CES, similar to the wirings WCL[1] to WCL[n] described in Embodiment 1. Also, for example, each of the wirings WCL[j] and WCLr[j] functions as a wiring that allows current to flow from the conversion circuit ITRZD[j] to the cells IM and IMr included in the circuit CES.

[0334] 14, the circuit SWS1 includes a transistor F3[j] and a transistor F3r[j]. A first terminal of the transistor F3[j] is electrically connected to the wiring WCL[j], a second terminal of the transistor F3[j] is electrically connected to the circuit WCS, and a gate of the transistor F3[j] is electrically connected to the wiring SWL1. A first terminal of the transistor F3r[j] is electrically connected to the wiring WCLr[j], a second terminal of the transistor F3r[j] is electrically connected to the circuit WCS, and a gate of the transistor F3r[j] is electrically connected to the wiring SWL1.

[0335] 14, the circuit SWS2 includes a transistor F4[j] and a transistor F4r[j]. A first terminal of the transistor F4[j] is electrically connected to the wiring WCL[j], a second terminal of the transistor F4[j] is electrically connected to the conversion circuit ITRZD[j], and a gate of the transistor F4[j] is electrically connected to the wiring SWL2. A first terminal of the transistor F4r[j] is electrically connected to the wiring WCLr[j], a second terminal of the transistor F4r[j] is electrically connected to the conversion circuit ITRZD[j], and a gate of the transistor F4r[j] is electrically connected to the wiring SWL2.

[0336] 14, the circuit ITS has a conversion circuit ITRZD[j]. The conversion circuit ITRZD[j] is a circuit equivalent to the conversion circuit ITRZ[j] in the arithmetic circuit MAC1, and has a function of generating a voltage corresponding to the difference between the amount of current flowing from the conversion circuit ITRZD[j] to the wiring WCL[j] and the amount of current flowing from the conversion circuit ITRZD[j] to the wiring WCLr[j], for example, and outputting the voltage to the wiring OL[j].

[0337] FIG. 15A shows a specific configuration example of the conversion circuit ITRZD[j]. The conversion circuit ITRZD1 shown in FIG. 15A is an example of a circuit that can be applied to the conversion circuit ITRZD[j] of FIG. 14. Note that FIG. 15A also shows the circuit SWS2, wiring WCL, wiring WCLr, wiring SWL2, transistor F4, and transistor F4r to show the electrical connection of the conversion circuit ITRZD1 with peripheral circuits. Furthermore, the wiring WCL and wiring WCLr can be, for example, the wiring WCL[j] and wiring WCLr[j] included in the arithmetic circuit MAC2 of FIG. 14, respectively, and the transistor F4 and transistor F4r can be, for example, the transistor F4[j] and transistor F4r[j] included in the arithmetic circuit MAC2 of FIG. 14.

[0338] The conversion circuit ITRZD1 in FIG. 15A is electrically connected to the wiring WCL via a transistor F4. The conversion circuit ITRZD1 is also electrically connected to the wiring WCLr via a transistor F4r. The conversion circuit ITRZD1 is also electrically connected to the wiring OL. The conversion circuit ITRZD1 has a function of converting the amount of current flowing from the conversion circuit ITRZD1 to the wiring WCL or the amount of current flowing from the wiring WCL to the conversion circuit ITRZD1 into a first voltage, a function of converting the amount of current flowing from the conversion circuit ITRZD1 to the wiring WCLr or the amount of current flowing from the wiring WCLr to the conversion circuit ITRZD1 into a second voltage, and a function of outputting an analog voltage corresponding to the difference between the first voltage and the second voltage to the wiring OL.

[0339] The conversion circuit ITRZD1 in FIG. 15A includes, for example, a resistor RP, a resistor RM, an operational amplifier OPP, an operational amplifier OPM, and an operational amplifier OP2.

[0340] The inverting input terminal of the operational amplifier OPP is electrically connected to the first terminal of the resistor RP and the second terminal of the transistor F4. The non-inverting input terminal of the operational amplifier OPP is electrically connected to the wiring VRPL. The output terminal of the operational amplifier OPP is electrically connected to the second terminal of the resistor RP and the non-inverting input terminal of the operational amplifier OP2. The inverting input terminal of the operational amplifier OPM is electrically connected to the first terminal of the resistor RM and the second terminal of the transistor F4r. The non-inverting input terminal of the operational amplifier OPM is electrically connected to the wiring VRML. The output terminal of the operational amplifier OPM is electrically connected to the second terminal of the resistor RM and the inverting input terminal of the operational amplifier OP2. The output terminal of the operational amplifier OP2 is electrically connected to the wiring OL.

[0341] The wiring VRPL functions as a wiring that applies a constant voltage. This constant voltage can be, for example, a ground potential (GND) or a low-level potential. The wiring VRML also functions as a wiring that applies a constant voltage. This constant voltage can be, for example, a ground potential (GND) or a low-level potential. The constant voltages applied by the wiring VRPL and the wiring VRML may be equal to each other or different from each other. In particular, by setting the constant voltages applied by the wiring VRPL and the wiring VRML to the ground potential (GND), the inverting input terminal of the operational amplifier OPP and the inverting input terminal of the operational amplifier OPM can each be virtually grounded.

[0342] 15A, the conversion circuit ITRZD1 can convert the amount of current flowing from the line WCL to the conversion circuit ITRZD1 via the transistor F4, or the amount of current flowing from the conversion circuit ITRZD1 to the line WCL via the transistor F4, into a first voltage. Furthermore, the conversion circuit ITRZD1 can convert the amount of current flowing from the line WCLr to the conversion circuit ITRZD1 via the transistor F4r, or the amount of current flowing from the conversion circuit ITRZD1 to the line WCLr via the transistor F4r, into a second voltage. An analog voltage corresponding to the difference between the first voltage and the second voltage can then be output to the line OL.

[0343] Furthermore, although the conversion circuit ITRZD1 in FIG. 15A is configured to output an analog voltage, the circuit configuration applicable to the conversion circuit ITRZD[j] in FIG. 14 is not limited to this. For example, the conversion circuit ITRZD1 may be configured to include an analog-to-digital conversion circuit ADC, as shown in FIG. 15B, similar to FIG. 10B. Specifically, the conversion circuit ITRZD2 in FIG. 15B is configured such that the input terminal of the analog-to-digital conversion circuit ADC is electrically connected to the output terminal of the operational amplifier OP2, and the output terminal of the analog-to-digital conversion circuit ADC is electrically connected to the wiring OL. With this configuration, the conversion circuit ITRZD2 in FIG. 15B can output a digital signal to the wiring OL.

[0344] Furthermore, in the case where the digital signal output to the wiring OL in the conversion circuit ITRZD2 is 1 bit (binary), the conversion circuit ITRZ2 may be replaced with the conversion circuit ITRZD3 shown in FIG. 15C. The conversion circuit ITRZ3 in FIG. 15C, like that in FIG. 10C, is configured by adding a comparator CMP2 to the conversion circuit ITRZD1 in FIG. 15A. Specifically, the conversion circuit ITRZD3 is configured such that a first input terminal of the comparator CMP2 is electrically connected to the output terminal of the operational amplifier OP2, a second input terminal of the comparator CMP2 is electrically connected to a wiring VRL3, and an output terminal of the comparator CMP2 is electrically connected to a wiring OL. The wiring VRL3 functions as a wiring that provides a potential to be compared with the potential of the first terminal of the comparator CMP2. By configuring in this manner, the conversion circuit ITRZD3 of Figure 15C can output a low-level potential or a high-level potential (binary digital signal) to the wiring OL depending on the magnitude of the difference between the first voltage converted from the amount of current flowing between the source and drain of transistor F4 and the second voltage converted from the amount of current flowing between the source and drain of transistor F4r, and the voltage provided by the wiring VRL3.

[0345] <<Example of first data retention>> Next, an example will be described in which first data is stored in the circuit CES for performing a product-sum operation between first data that is positive, negative, or "0" and second data that is positive or "0" in the arithmetic circuit MAC2 of Figure 14.

[0346] Since the circuit CES has the cell IM and the cell IMr, the circuit CES can use two circuits, the cell IM and the cell IMr, to hold the first data. That is, the circuit CES can set two current amounts and hold potentials corresponding to the respective current amounts in the cell IM and the cell IMr. Therefore, the first data can be expressed by the current amount set in the cell IM and the current amount set in the cell IMr. Here, the positive first data, negative first data, or first data of "0" held in the circuit CES is defined as follows:

[0347] When positive first data is stored in the circuit CES[1,j], the cell IM[1,j] is configured, for example, so that a current corresponding to the absolute value of the positive first data flows between the first terminal and the second terminal of the transistor F2 of the cell IM[1,j]. Specifically, a potential corresponding to the current is maintained at the gate of the transistor F2 (node ​​NN[1,j]). On the other hand, the cell IMr[1,j] is configured, for example, so that no current flows between the first terminal and the second terminal of the transistor F2r of the cell IMr[1,j]. Specifically, the gate of the transistor F2r (node ​​NNr[1,j]) may be maintained at a potential provided by the wiring VE or an initialization potential provided by the wiring VINIL1 of the circuit WCSa of FIG. 8A.

[0348] Furthermore, when negative first data is stored in the circuit CES[1,j], the cell IMr[1,j] is configured, for example, so that a current corresponding to the absolute value of the negative first data flows through the transistor F2r of the cell IMr[1,j]. Specifically, a potential corresponding to the current is maintained at the gate of the transistor F2r (node ​​NNr[1,j]). On the other hand, the cell IM[1,j] is configured, for example, so that no current flows through the transistor F2 of the cell IM[1,j]. Specifically, the gate of the transistor F2 (node ​​NN[1,j]) may be maintained at a potential provided by the wiring VE, an initialization potential provided by the wiring VINIL1 of the circuit WCSa of FIG. 8A, or the like.

[0349] Furthermore, when the first data "0" is held in the circuit CES[1,j], for example, the transistor F2 of the cell IM[1,j] and the transistor F2r of the cell IMr[1,j] are set so that no current flows through them. Specifically, the gate of the transistor F2 (node ​​NN[1,j]) and the gate of the transistor F2r (node ​​NNr[1,j]) may hold a potential provided by the wiring VE, an initialization potential provided by the wiring VINIL1 of the circuit WCSa in FIG. 8A, or the like.

[0350] In addition, for other circuits CES, when holding positive first data or negative first data, similarly to the above-described circuit CES[1,j], it is sufficient to set so that an amount of current corresponding to the first data flows between the cell IM and the wiring WCL or between the cell IMr and the wiring WCLr, and so that no current flows between the cell IM and the wiring WCL or between the cell IMr and the wiring WCLr. Furthermore, when holding first data of "0" in other circuits CES, similarly to the above-described circuit CES[1,j], it is sufficient to set so that no current flows between the cell IM and the wiring WCL or between the cell IMr and the wiring WCLr.

[0351] As an example, when the first data is "+3", "+2", "+1", "0", "-1", "-2", or "-3", and the first data is stored in the circuit CES, by setting the amount of current flowing from the wiring WCL to the cell IM and the amount of current flowing from the wiring WCLr to the cell IMr as described above, each of the first data "+3", "+2", "+1", "0", "-1", "-2", or "-3" can be defined, for example, as shown in the following table.

[0352] [Table 1]

[0353] 14, consider a case where first data is stored in each of the circuits CES[1,j] to CES[m,j] and second data is input to each of the wirings XCL[1] to XCL[m]. At this time, a low-level potential is applied to the wiring SWL1 to turn off the transistors F3[j] and F3r[j]. At this time, a high-level potential is applied to the wiring SWL2 to turn on the transistors F4[j] and F4r[j]. This brings the conversion circuit ITRZD[j] and the wiring WCL[j] into electrical continuity, which may cause a current to flow from the conversion circuit ITRZD[j] to the wiring WCL[j]. Furthermore, the conversion circuit ITRZD[j] and the wiring WCLr[j] into electrical continuity, which may cause a current to flow from the conversion circuit ITRZD[j] to the wiring WCLr[j]. The total current flowing from the conversion circuit ITRZD[j] to the wiring WCL[j] is I S [j], and the total current flowing from the conversion circuit ITRZD[j] to the wiring WCLr[j] is I Sr [j], taking into consideration the operation example of the arithmetic circuit MAC1 explained in the first embodiment, I S [j] and I Sr [j] can be expressed by the following formula:

[0354]

number

[0355] Note that w[i,j] in equation (2.1) is the value of the first data written to cell IM[i,j], and w r [i,j] is the value of the first data to be written to the cell IMr[i,j]. r When either [i,j] is a non-zero value, w[i,j] or w r By setting the other of [i,j] to a value of "0", the first data held in the circuit CES[i,j] can comply with the definition shown in Table 1, for example.

[0356] The conversion circuit ITRZD[j] calculates, for example, the sum I S [j] is converted into the first voltage, and the total amount of current flowing through the wiring WCLr is calculated as I Sr The conversion circuit ITRZD[j] converts the first voltage to the second voltage. The conversion circuit ITRZD[j] can then output a voltage corresponding to the difference between the first voltage and the second voltage to the wiring OL.

[0357] 15A to 15C each have a circuit configuration that outputs a voltage to the wiring OL, but one embodiment of the present invention is not limited to this. For example, the conversion circuit ITRZD[j] included in the arithmetic circuit MAC2 in FIG. 14 may have a circuit configuration that outputs a current.

[0358] The conversion circuit ITRZD4 shown in FIG. 16 is a circuit that can be applied to the conversion circuit ITRZD[j] included in the arithmetic circuit MAC2 in FIG. 14, and has a circuit configuration that outputs the results of the product-sum operation and the activation function operation as a current amount.

[0359] 16 also illustrates the circuit SWS2, wiring WCL, wiring WCLr, wiring OL, transistor F4, and transistor F4r in order to show the electrical connection of the conversion circuit ITRZD4 with peripheral circuits. The wiring WCL and wiring WCLr may be, for example, the wiring WCL[j] and wiring WCLr[j] included in the arithmetic circuit MAC2 in FIG. 14, and the transistor F4 and transistor F4r may be, for example, the transistor F4[j] and transistor F4r[j] included in the arithmetic circuit MAC2 in FIG.

[0360] The conversion circuit ITRZD4 in FIG. 16 is electrically connected to the wiring WCL via a transistor F4. The conversion circuit ITRZD4 is also electrically connected to the wiring WCLr via a transistor F4r. The conversion circuit ITRZD4 is also electrically connected to the wiring OL. The conversion circuit ITRZD4 has a function of acquiring a differential current between either the amount of current flowing from the conversion circuit ITRZD4 to the wiring WCL or the amount of current flowing from the wiring WCL to the conversion circuit ITRZD4, and either the amount of current flowing from the conversion circuit ITRZD4 to the wiring WCLr or the amount of current flowing from the wiring WCLr to the conversion circuit ITRZD4. The conversion circuit ITRZD4 also has a function of flowing this differential current between the conversion circuit ITRZD4 and the wiring OL.

[0361] The conversion circuit ITRZD4 in FIG. 16 includes, for example, a transistor F5, a current source CI, a current source CIr, and a current mirror circuit CM1.

[0362] The second terminal of transistor F4 is electrically connected to the first terminal of current mirror circuit CM1 and the output terminal of current source CI, and the second terminal of transistor F4r is electrically connected to the second terminal of current mirror circuit CM1, the output terminal of current source CIr, and the first terminal of transistor F5. The input terminal of current source CI is electrically connected to wiring VHE, and the input terminal of current source CIr is electrically connected to wiring VHE. The third terminal of current mirror circuit CM1 is electrically connected to wiring VSE, and the fourth terminal of current mirror circuit CM1 is electrically connected to wiring VSE.

[0363] A second terminal of the transistor F5 is electrically connected to the wiring OL, and a gate of the transistor F5 is electrically connected to the wiring OEL.

[0364] As an example, the current mirror circuit CM1 has the function of flowing a current amount corresponding to the potential of the first terminal of the current mirror circuit CM1 between the first terminal and the third terminal of the current mirror circuit CM1 and between the second terminal and the fourth terminal of the current mirror circuit CM1.

[0365] The wiring VHE functions as, for example, a wiring that applies a constant voltage. Specifically, the constant voltage may be, for example, a high-level potential.

[0366] The wiring VSE functions as, for example, a wiring that applies a constant voltage. Specifically, the constant voltage may be, for example, a low-level potential, a ground potential, or the like.

[0367] The wiring OEL functions as a wiring for transmitting a signal for switching the transistor F5 on or off, for example. Specifically, for example, a high-level potential or a low-level potential may be input to the wiring OEL.

[0368] The current source CI has a function of supplying a constant current between the input terminal and the output terminal of the current source CI. Also, the current source CIr has a function of supplying a constant current between the input terminal and the output terminal of the current source CIr. In the conversion circuit ITRZD4 of FIG. 16, it is preferable that the magnitude of the current supplied by the current source CI is equal to the magnitude of the current supplied by the current source CIr.

[0369] Here, an example of the operation of the conversion circuit ITRZD4 in FIG. 16 will be described.

[0370] First, the amount of current flowing from the conversion circuit ITRZD4 to the wiring WCL via the transistor F4 is calculated as I SThe amount of current flowing from the conversion circuit ITRZD4 to the wiring WCLr via the transistor F4r is I Sr The amount of current flowing from each of the current sources CI and CIr is defined as I0.

[0371] I S is the sum of the currents flowing through the cells IM[1,j] to IM[m,j] located in the j-th column in the arithmetic circuit MAC2 of FIG. Sr is the sum of the amounts of currents flowing through the cells IMr[1,j] to IMr[m,j] located in the j-th column in the arithmetic circuit MAC2 of FIG.

[0372] When a high-level potential is input to the wiring SWL2, the transistors F4 and F4r are turned on. Therefore, the amount of current flowing from the first terminal to the third terminal of the current mirror circuit CM1 is I0-I S In addition, the current mirror circuit CM1 transfers I0-I S A current of flows.

[0373] Next, a high-level potential is input to the wiring OEL, and the transistor F5 is turned on. At this time, the amount of current flowing through the wiring OL is I out Then, I out =I0-(I0-I S )-I Sr =I S -I Sr This becomes:

[0374] Here, in the arithmetic circuit MAC2 of Figure 14, for performing a product-sum operation between first data that is positive, negative, or "0" and second data that is positive or "0," the first data is stored in the circuit CES, and the above example of storing first data should be taken into consideration.

[0375] That is, when positive first data is held in the circuit CES[i,j], the cell IM[i,j] is set so that a current corresponding to the absolute value of the positive first data flows between the first terminal and the second terminal of the transistor F2 of the cell IM[i,j], and the cell IMr[i,j] is set so that no current flows between the first terminal and the second terminal of the transistor F2r of the cell IMr[i,j]. Also, when negative first data is held in the circuit CES[i,j], the cell IM[i,j] is set so that no current flows between the first terminal and the second terminal of the transistor F2 of the cell IM[i,j], and the cell IMr[i,j] is set so that a current corresponding to the absolute value of the negative first data flows between the first terminal and the second terminal of the transistor F2r of the cell IMr[i,j]. Furthermore, when the first data of "0" is held in the circuit CES[i,j], the cell IM[i,j] is set so that no current flows between the first terminal and the second terminal of the transistor F2 of the cell IM[i,j], and the cell IMr[i,j] is set so that no current flows between the first terminal and the second terminal of the transistor F2r of the cell IMr[i,j].

[0376] Here, when second data is input to each of the wirings XCL[1] to XCL[m] of the arithmetic circuit MAC2 in Figure 14, the amount of current flowing between the first terminal and the second terminal of the transistor F2 of the cell IM[i,j] and the amount of current flowing between the first terminal and the second terminal of the transistor F2 of the cell IMr[i,j] are each proportional to the second data.

[0377] I S is the sum of the currents flowing through the cells IM[1,j] to IM[m,j] located in the j-th column. S is the sum of the currents flowing through the cells IM included in the circuits CES[1,j] to CES[m,j] in which the positive first data is held, and can be expressed in the same way as in equation (2.1), for example. S corresponds to the result of multiply-and-accumulate operation between the absolute value of the positive first data and the second data. Sr is the sum of the currents flowing through the cells IMr[1,j] to IMr[m,j] located in the j-th column. Sris the sum of the currents flowing through the cells IMr included in the circuits CES[1,j] to CES[m,j] in which negative first data is held, and can be expressed in the same way as in equation (2.2), for example. Sr corresponds to the result of a multiply-and-accumulate operation between the absolute value of the negative first data and the second data.

[0378] Therefore, the current flowing through the wiring OL is I out =I S -I Sr corresponds to the difference between the result of the multiplication and accumulation operation between the absolute value of the positive first data and the second data and the result of the multiplication and accumulation operation between the absolute value of the negative first data and the second data. out =I S -I Sr corresponds to the result of a multiplication and accumulation operation between the negative, "0", or positive first data held in the circuits CES[1,j] to CES[m,j] and the second data input to each of the wirings XCL[1] to XCL[m].

[0379] Incidentally, when the sum of the currents flowing through the cells IM[1,j] to IM[m,j] is greater than the sum of the currents flowing through the cells IMr[1,j] to IMr[m,j], that is, when I S I Sr When it is greater than out becomes a current amount greater than 0, and flows from the conversion circuit ITRZD4 to the wiring OL. On the other hand, when the sum of the current amounts flowing through the cells IM[1,j] to IM[m,j] is smaller than the sum of the current amounts flowing through the cells IMr[1,j] to IMr[m,j], that is, when I S I Sr When the voltage is smaller than I, there is a possibility that no current will flow from the wiring OL to the converter circuit ITRZD4. S I Sr When it is smaller than out can be set to approximately 0. Therefore, the transformation circuit ITRZD4 can be considered to function as, for example, an ReLU function.

[0380] The ReLU function can be used, for example, as the activation function of a neural network. In the operation of the neural network, it is necessary to calculate the sum of products of the signal values ​​(which can be, for example, second data) of the neurons in the previous layer and the corresponding weighting coefficients (which can be, for example, first data). It is also necessary to calculate the value of the activation function according to the result of the sum of products. Therefore, when the activation function of the neural network is the ReLU function, the operation of the neural network can be performed by using an arithmetic circuit MAC2 including a conversion circuit ITRZD4.

[0381] The hierarchical neural network will be described later in the fourth embodiment.

[0382] Next, an example of a specific circuit configuration of the conversion circuit ITRZD4 in FIG. 16 will be described.

[0383] The conversion circuit ITRZD4 shown in Fig. 17A is an example of the conversion circuit ITRZD4 of Fig. 16. Specifically, Fig. 17A shows examples of the configurations of the current mirror circuit CM1, the current source CI, and the current source CIr.

[0384] 17A, the current mirror circuit CM1 includes, for example, a transistor F6 and a transistor F6r, the current source CI includes, for example, a transistor F7, and the current source CIr includes, for example, a transistor F7r. Note that the transistors F6, F6r, F7, and F7r are n-channel transistors.

[0385] For example, the first terminal of the current mirror circuit CM1 is electrically connected to the first terminal of the transistor F6, the gate of the transistor F6, and the gate of the transistor F6r, the third terminal of the current mirror circuit CM1 is electrically connected to the second terminal of the transistor F6, the second terminal of the current mirror circuit CM1 is electrically connected to the first terminal of the transistor F6r, and the fourth terminal of the current mirror circuit CM1 is electrically connected to the second terminal of the transistor F6r.

[0386] Also, for example, the output terminal of the current source CI is electrically connected to the first terminal of the transistor F7 and the gate of the transistor F7, and the input terminal of the current source CI is electrically connected to the second terminal of the transistor F7.

[0387] Also, for example, the output terminal of the current source CIr is electrically connected to the first terminal of the transistor F7r and the gate of the transistor F7r, and the input terminal of the current source CIr is electrically connected to the second terminal of the transistor F7r.

[0388] The gate and the first terminal of each of the transistors F7 and F7r are electrically connected, and the second terminal is electrically connected to the wiring VHE. Therefore, the gate-source voltage of each of the transistors F7 and F7r is 0 V, and when the threshold voltages of each of the transistors F7 and F7r are within an appropriate range, a constant current flows between the first terminal and the second terminal of each of the transistors F7 and F7r. In other words, each of the transistors F7 and F7r functions as a current source.

[0389] Note that the configurations of the current sources CI and CIr included in the conversion circuit ITRZD4 in Fig. 16 are not limited to the current sources CI and CIr shown in Fig. 17A. The configurations of the current sources CI and CIr included in the conversion circuit ITRZD4 may be changed depending on the situation.

[0390] For example, each of the current source CI and the current source CIr included in the conversion circuit ITRZD4 in FIG. 16 may be the current source CI (current source CIr) shown in FIG. 17B.

[0391] 17B includes, as an example, a plurality of current sources CSA, each of which includes a transistor F7, a transistor F7s, a terminal U1, a terminal U2, and a terminal U3.

[0392] As an example, the current source CSA outputs a current I between terminals U2 and U1. CSA The current source CI (current source CIr) has a function of flowing, for example, 2 P -When there is one current source CSA (where P is an integer equal to or greater than 1), the current source CI (current source CIr) outputs a current of s × I CSA (s is 0 to 2 P -1 or less).

[0393] In practice, errors may occur during the manufacturing process of the current source CI (current source CIr) due to variations in the electrical characteristics of the transistors included in each current source CSA. Therefore, the constant current I output from each terminal U1 of the multiple current sources CSA may be CSA The error is preferably within 10%, more preferably within 5%, and even more preferably within 1%. In this embodiment, the constant current I output from the terminal U1 of the multiple current sources CSA included in the current source CI (current source CIr) is CSA The following explanation will be given assuming that there is no error.

[0394] In one of the multiple current sources CSA, a first terminal of a transistor F7s is electrically connected to the terminal U1, and a gate of the transistor F7s is electrically connected to the terminal U3. A first terminal of the transistor F7 is electrically connected to the gate of the transistor F7 and a second terminal of the transistor F7s. A second terminal of the transistor F7 is electrically connected to the terminal U2.

[0395] The terminal U1 of each of the multiple current sources CSA is electrically connected to the output terminal of the current source CI (current source CIr). Also, the terminal U2 of each of the multiple current sources CSA is electrically connected to the input terminal of the current source CI (current source CIr). In other words, there is electrical continuity between the terminal U2 of each of the multiple current sources CSA and the wiring VHE.

[0396] In addition, the terminal U3 of one current source CSA is electrically connected to the wiring CL[1], and each of the terminals U3 of the two current sources CSA is electrically connected to the wiring CL[2]. P-1 Each of the terminals U3 of the current sources CS is electrically connected to a line CL[P].

[0397] The lines CL[1] to CL[P] receive a constant current I from the electrically connected current source CSA. CSA Specifically, for example, when a high-level potential is applied to the line CL[1], the current source CSA electrically connected to the line CL[1] outputs a constant current I CSA flows to the terminal U1, and when a low-level potential is applied to the wiring CL[1], the current source CSA electrically connected to the wiring CL[1] flows as follows: CSA For example, when a high-level potential is applied to the wiring CL[2], the two current sources CSA electrically connected to the wiring CL[2] output a total of 2I CSA is applied to the terminal U1 as a constant current, and when a low-level potential is applied to the wiring CL[2], the current source CSA electrically connected to the wiring CL[2] has a total of 2I CSA For example, when a high-level potential is applied to the wiring CL[P], the constant current of the P-1 The current sources CSA are P-1 I CSA is applied to the terminal U1 as a constant current, and when a low-level potential is applied to the wiring CL[P], the current source CSA electrically connected to the wiring CL[P] has a total of 2 P-1 I CSAIt does not output a constant current.

[0398] Therefore, the current source CI (current source CIr) can flow a current to the output terminal of the current source CI (current source CIr) by applying a high-level potential to one or more wirings selected from the wirings CL[1] to CL[P]. The amount of the current can be determined by the combination of one or more wirings selected from the wirings CL[1] to CL[P] that input the high-level potential. For example, when a high-level potential is applied to the wirings CL[1] and CL[2] and a low-level potential is applied to the wirings CL[3] to CL[P], the current source CI (current source CIr) supplies a total of 3I to the output terminal of the current source CI (current source CIr). CSA A current of 1000 kJ / s can be passed through the capacitor.

[0399] As described above, by using the current source CI (current source CIr) in FIG. 17B, the amount of current that the current source CI (current source CIr) supplies to the output terminal can be changed depending on the situation.

[0400] 16, by applying the conversion circuit ITRZD4 of FIG. 17A to the conversion circuit ITRZD4 of FIG. 16, all transistors included in the conversion circuit ITRZD4 can be OS transistors. Furthermore, since the cell array CA, circuit WCS, circuit XCS, etc. of the arithmetic circuit MAC2 can be configured only with OS transistors, the conversion circuit ITRZD4 can be fabricated simultaneously with the cell array CA, circuit WCS, circuit XCS, etc. Therefore, the fabrication process of the arithmetic circuit MAC2 can be shortened in some cases. This also applies when the current source CI (current source CIr) of FIG. 17B is applied to the current source CI and current source CIr of the conversion circuit ITRZD4 of FIG. 17A.

[0401] For example, since the current source CI and the current source CIr included in the conversion circuit ITRZD4 in FIG. 16 need to pass the same current, each of the current source CI and the current source CIr may be replaced with a current mirror circuit.

[0402] The conversion circuit ITRZD4 shown in Fig. 18A has a configuration in which the current sources CI and CIr included in the conversion circuit ITRZD4 of Fig. 16 are replaced with current mirror circuits CM2. The current mirror circuit CM2 includes, as an example, a transistor F8 and a transistor F8r. Note that the transistors F8 and F8r are p-channel transistors.

[0403] The first terminal of the transistor F8 is electrically connected to the gate of the transistor F8, the gate of the transistor F8r, the second terminal of the transistor F4, and the first terminal of the current mirror circuit CM1. The second terminal of the transistor F8 is electrically connected to the wiring VHE. The first terminal of the transistor F8r is electrically connected to the second terminal of the transistor F4r and the second terminal of the current mirror circuit CM1. The second terminal of the transistor F8r is electrically connected to the wiring VHE.

[0404] As in the conversion circuit ITRZD4 of FIG. 18A, by replacing each of the current sources CI and CIr included in the conversion circuit ITRZD4 of FIG. 16 with a current mirror circuit CM2, it is possible to make approximately equal amounts of current flow through the connection point between the second terminal of transistor F4 and the first terminal of current mirror circuit CM1, and through the connection point between the second terminal of transistor F4r, the second terminal of current mirror circuit CM1, and the first terminal of transistor F5.

[0405] 18A illustrates the current mirror circuit CM2 as being configured with transistors F8 and F8r, but the circuit configuration of the current mirror circuit CM2 is not limited to this. For example, the current mirror circuit CM2 may be configured with the transistors included in the current mirror circuit CM2 cascode-connected, as in FIG. 18C described below. In this way, the circuit configuration of the current mirror circuit CM2 in FIG. 18A may be changed depending on the situation.

[0406] 18A may be configured without the current mirror circuit CM1, as in the configuration of the conversion circuit ITRZD4 shown in FIG. 18B. The conversion circuit ITRZD4 shown in FIG. 18B can make the amount of current flowing from the first terminal of the current mirror circuit CM2 to the second terminal of the transistor F4 and the amount of current flowing from the second terminal of the current mirror circuit CM2 to the connection point between the second terminal of the transistor F4r, the wiring VSE, and the first terminal of the transistor F5 approximately equal to each other. S I Sr When the current I flows through the wiring OL in Figure 18B, out is the same as the conversion circuit ITRZD4 in Figure 16. S -I Sr It can be said that:

[0407] The conversion circuit ITRZD4 of Fig. 18B does not have a current mirror circuit CM1, so the circuit area can be reduced compared to the conversion circuit ITRZD4 of Fig. 18A. Furthermore, since there is no steady current flowing from the current mirror circuit CM2 to the current mirror circuit CM1, the conversion circuit ITRZD4 of Fig. 18B can consume less power than the conversion circuit ITRZD4 of Fig. 18A.

[0408] 18B does not show the transistors F8 and F8r, and shows the current mirror circuit CM2 as a block diagram. Therefore, the configuration of the current mirror circuit CM2 in FIG. 18B can be determined depending on the situation, similar to the current mirror circuit CM2 in FIG. 18A.

[0409] For example, the current mirror circuit CM2 included in the conversion circuit ITRZD4 of Fig. 18B may be the current mirror circuit CM2 shown in Fig. 18C. The current mirror circuit CM2 shown in Fig. 18C is configured by adding p-channel transistors F8s and F8sr to the current mirror circuit CM2 shown in Fig. 18B, with transistors F8 and F8s cascode-connected and transistors F8r and F8sr cascode-connected. As shown in Fig. 18C, by cascode-connecting the transistors included in the current mirror circuit, the operation of the current mirror circuit can be made more stable.

[0410] Furthermore, the current mirror circuit CM1 included in the conversion circuit ITRZD4 of Fig. 16 is not limited to the current mirror circuit CM1 shown in Fig. 17A. The configuration of the current mirror circuit CM1 included in the conversion circuit ITRZD4 of Fig. 17A may be changed depending on the situation.

[0411] For example, the current mirror circuit CM1 included in the conversion circuit ITRZD4 of Fig. 16 may be the current mirror circuit CM1 shown in Fig. 18D. The current mirror circuit CM1 shown in Fig. 18D is configured by further adding n-channel transistors F6s and F6sr to the current mirror circuit CM1 shown in Fig. 17A, with transistors F6 and F6s cascode-connected and transistors F6r and F6sr cascode-connected. As shown in Fig. 18D, by cascode-connecting the transistors included in the current mirror circuit, the operation of the current mirror circuit can be made more stable.

[0412] Note that one embodiment of the present invention is not limited to the circuit configuration of the arithmetic circuit MAC2 described in this embodiment. The circuit configuration of the arithmetic circuit MAC2 can be changed depending on the situation. For example, the capacitors C5 and C5r included in the arithmetic circuit MAC2 can be gate capacitances of transistors (not shown). Furthermore, in the arithmetic circuit MAC2, when the parasitic capacitances between the nodes NN, NNr, and NNref and the surrounding wirings are large, the capacitors C5, C5r, and C5m are not necessarily provided.

[0413] As described above, by using the arithmetic circuit MAC2, it is possible to perform a product-sum operation between the first data, which is positive, negative, or "0," and the second data, which is positive or "0."

[0414] <Configuration example 2 of arithmetic circuit> 19 shows an example of the configuration of an arithmetic circuit MAC3A that performs multiplication and addition of first data, which is positive or "0," and second data, which is "1" or "0" (binary, 1-bit digital value). The arithmetic circuit MAC3A in FIG. 19 differs from the arithmetic circuit MAC1 in FIG. 7 in that, in the cell array CA, cell IM includes transistors F1, F2, F9, and a capacitor C5, and the second terminal of capacitor C5 is electrically connected to wiring VE2. Furthermore, the cell array CA in FIG. 19 does not necessarily have to include cell IMref, which is included in the cell array CA shown in FIG. 7.

[0415] The transistor F9 can be, for example, a transistor that can be used as the transistor F1.

[0416] The cell array CA in Fig. 19 has m × n cells IM, which are arranged in an m × n matrix. In Fig. 19, in order to distinguish the cells IM, the cell IM in the i-th row and j-th column is represented as cell IM[i, j].

[0417] In the cell IM, the gate of the transistor F2 is electrically connected to a first terminal of the capacitor C5 and a first terminal of the transistor F1. The second terminal of the transistor F1 is electrically connected to the wiring WCL, and the gate of the transistor F1 is electrically connected to the wiring WSL. The second terminal of the capacitor C5 is electrically connected to the wiring VE2. The first terminal of the transistor F2 is electrically connected to the wiring VE1, and the second terminal of the transistor F2 is electrically connected to the first terminal of the transistor F9. The second terminal of the transistor F9 is electrically connected to the wiring WCL, and the gate of the transistor F9 is electrically connected to the wiring XCL.

[0418] The wiring VE1, like the wiring VE shown in FIG. 7, is a wiring for passing a current between the first terminal and the second terminal of the transistor F2, and functions as a wiring for supplying a constant voltage. The constant voltage may be, for example, a low-level potential, a ground potential, or the like. The wiring VE2 also functions as a wiring for supplying a constant voltage. The constant voltage may be, for example, a high-level potential, a low-level potential, a ground potential, or the like.

[0419] When setting the amount of current in the transistor F2 of the cell IM, the transistors F1 and F9 are turned on, a potential corresponding to the amount of current is written to the gate of the transistor F2, and then the transistor F1 is turned off, thereby holding the potential of the gate of the transistor F2 at the first terminal of the capacitor C5. This allows the cell IM to hold the first data sent from the line WCL.

[0420] Next, consider the case where second data is input to cell IM. When "1" is input to cell IM as the second data, a high-level potential is applied to the line XCL, and when "0" is input to cell IM as the second data, a low-level potential is applied to the line XCL. When the second data is "1," transistor F9 is turned on, allowing the drain current of transistor F2 to flow from the second terminal of transistor F2 to the line WCL. On the other hand, when the second data is "0," transistor F9 is turned off, preventing the drain current of transistor F2 from flowing from the second terminal of transistor F2 to the line WCL. In other words, a current of zero magnitude flows from the second terminal of transistor F2 to the line WCL. As a result, a current of an amount (including zero) corresponding to the product of the first data and the second data can flow from the second terminal of transistor F2 to the line WCL.

[0421] The transistor F1 can be switched between an on state and an off state in the same manner as the circuit WSD shown in Fig. 7. Therefore, the circuit WSD shown in Fig. 19 is preferably the same as the circuit WSD shown in Fig. 7. Here, the wirings WSL[1] to WSL[m] in Fig. 19 are preferably electrically connected to the circuit WSD shown in Fig. 19.

[0422] Furthermore, the wirings XCL[1] to XCL[m] function not only as wirings for inputting the second data but also as wirings for selecting the cell I M. Therefore, the circuits electrically connected to the wirings XCL[1] to XCL[m] have a function of inputting a selection signal for selecting the cell I M to which the first data is written, in addition to a function of inputting the second data to each of the wirings XCL[1] to XCL[m].

[0423] 19, the current output from the sensor SNC is preferably converted into a voltage by a current-voltage converter circuit or the like, and the voltage is further binarized by an analog-to-digital converter circuit, a comparator circuit, or the like, and input to the wirings XCL[1] to XCL[m]. The current-to-voltage converter circuit, analog-to-digital converter circuit, or the like may be included in the layer CCL. Specifically, for example, the circuits AC[1] to AC[m] shown in FIG. 19 may include the circuit PTR shown in FIG. 7 and the current-to-voltage converter circuit, analog-to-digital converter circuit, or the like. In FIG. 19, a first terminal of the circuit AC[1] is electrically connected to the wiring XCL[1], and a second terminal of the circuit AC[1] is electrically connected to the wiring EIL[1]. In addition, in FIG. 19, a first terminal of the circuit AC[m] is electrically connected to the wiring XCL[m], and a second terminal of the circuit AC[m] is electrically connected to the wiring EIL[m].

[0424] Note that one embodiment of the present invention is not limited to the circuit configuration of the arithmetic circuit MAC3A shown in FIG. 19 described in this embodiment. The circuit configuration of the arithmetic circuit MAC3A in FIG. 19 can be changed depending on the situation. For example, one embodiment of the present invention may have the circuit configuration of the arithmetic circuit MAC3B shown in FIG. 20. The arithmetic circuit MAC3B shown in FIG. 20 differs from the arithmetic circuit MAC3A in FIG. 19 in that the second terminal of the transistor F9 included in each cell IM is electrically connected to the wiring RCL instead of the wiring WCL, and in that the circuits SWS1 and SWS2 are not provided but the circuit SWS3 is provided.

[0425] 20, the circuit SWS3 has switches SB[1] to SB[n]. Note that, as the switches SB[1] to SB[n], for example, switches applicable to the switches SA[1] to SA[m] can be used.

[0426] A first terminal of the switch SB is electrically connected to the line WCL[1], a second terminal of the switch SB is electrically connected to the line RCL[1], and a control terminal of the switch SB is electrically connected to the line SWLB.

[0427] For example, the wiring SWLB functions as a wiring for switching between the on state and the off state of each of the switches SB[1] to SB[n]. Therefore, a high-level potential or a low-level potential is supplied to the wiring SWLB.

[0428] The wirings RCL[1] to RCL[n] are electrically connected to the circuit ITS.

[0429] When setting the amount of current in transistor F2 of cell IM, transistors F1 and F9 are turned on, switch SB is turned on, and a potential corresponding to the amount of current is written to the gate of transistor F2. Then, transistor F1 is turned off, and switch SB is turned off, thereby holding the potential of the gate of transistor F2 at the first terminal of capacitor C5. This allows first data sent from line WCL to be held in cell IM.

[0430] When inputting the second data to the cell IM, the switch SB is turned off in advance. Then, by inputting "1" (high-level potential) or "0" (low-level potential) as the second data to the line XCL, a current of an amount (including zero) corresponding to the product of the first data and the second data can be made to flow from the second terminal of the transistor F2 to the line RCL.

[0431] Furthermore, when second data is input to cell IM and current flows from cell IM to line RCL, a voltage in the range in which transistor F2 operates in the subthreshold region is input to line RCL. In cell IM shown in FIG. 20, the second terminal of transistor F9 is electrically connected to line RCL rather than line WCL, so that voltage is not input to the second terminal of transistor F1. Therefore, when current flows from cell IM to circuit ITS via line RCL, the electrical load across the source-drain of transistor F1 can be reduced. Furthermore, because transistor F9 is connected between the second terminal of transistor F2 and line RCL, the voltage reduced by transistor F9 is input to the second terminal of transistor F2. In other words, providing transistor F9 also has the effect of suppressing overvoltage input to the second terminal of transistor F2.

[0432] As described above, by using the arithmetic circuit MAC3A of FIG. 19 or the arithmetic circuit MAC3B of FIG. 20, it is possible to perform a product-sum operation between the first data, which is positive or "0", and the second data, which is "1" or "0".

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

[0434] (Embodiment 3) In this embodiment, a circuit configuration for transmitting second data to the circuit XCS included in the arithmetic circuit MAC1 or the arithmetic circuit MAC2 described in the above embodiments will be described.

[0435] The example circuit configuration shown in FIG. 21A includes a circuit LGC and a circuit LS for transmitting a signal corresponding to second data to the circuit XCS. To illustrate the connection between the circuit LGC and the circuit LS, FIG. 21A also illustrates the circuit XCS, the circuit PTC and the cell array CA included in the layer CCL, and the sensors SNC[1] to SNC[m] included in the layer PDL. In FIG. 21A, the circuit LGC and the circuit LS are included in the layer CCL, as an example. By configuring the circuit shown in FIG. 21A, the degree of freedom of the current input from the wiring XCL[1] to the wiring XCL[m] to the cell array CA can be increased. By increasing the degree of freedom of the current, for example, the current corresponding to the reference data or the second data described in the first embodiment can be set according to the situation.

[0436] The circuit LGC is electrically connected to the circuit LS by wirings LXS[1] to LXS[m]. The circuit LS is also electrically connected to the circuit XCS by wirings DXS[1] to DXS[m].

[0437] As described in Embodiment 1, the circuit XCS has a function of causing a current amount corresponding to the reference data or a current amount corresponding to the second data to flow through each of the wirings XCL[1] to XCL[m]. As an example, the circuit XCS can have the configuration of the circuit XCS shown in FIG.

[0438] 8C is used as the circuit XCS, the amount of current flowing through one of the wirings XCL[1] to XCL[m] is determined according to the combination of potentials input to the wirings DX[1] to DX[L] of the circuit XCSa electrically connected to that wiring. Here, in FIG. 21A, the wiring DXS[1] refers to the wirings DX[1] to DX[L] of the circuit XCSa electrically connected to the wiring XCL[1], and the wiring DXS[m] refers to the wirings DX[1] to DX[L] of the circuit XCSa electrically connected to the wiring XCL[m]. In other words, one of the wirings DXS[1] to DXS[m] can be a bus wiring for transmitting a digital signal.

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

[0440] For example, the circuit LGC has a function of sequentially holding data DT input to the circuit LGC and outputting the data DT simultaneously or sequentially in parallel to the wirings LXS[1] to LXS[m] at a desired timing. The data DT here can be, for example, reference data or second data input to the wirings XCL[1] to XCL[m]. That is, the circuit LGC holds the reference data or second data received from outside the circuit LGC and outputs the reference data or second data to the wirings LXS[1] to LXS[m] at a predetermined timing in order to pass a current amount corresponding to the reference data or the second data through the wirings XCL[1] to XCL[m] shown in FIG. 21A. A specific circuit configuration example of the circuit LGC will be described later.

[0441] If there is no need to level-shift the voltage output from the circuit LGC, the circuit LS may be omitted from the circuit configuration shown in Figure 21A, and each of the wirings LXS[1] to LXS[m] may be electrically connected to each of the wirings DXS[1] to DXS[m].

[0442] Next, as an example, a method for inputting current flowing from the wiring XCL[1] to the wiring XCL[m] to the cell array CA will be described assuming that the sensors SNC[1] to SNC[m] are configured as optical sensors including a photodiode PD. Specifically, as shown in FIG. 21B, the configuration of the sensor SNC included in the layer PDL is such that the input terminal of the photodiode PD is electrically connected to the wiring VANL, and the output terminal of the photodiode PD is electrically connected to the wiring EIL. The wiring VANL functions as a wiring that applies a constant voltage, and this constant voltage can be a low-level potential, a ground potential, a negative potential, or the like. Therefore, when light is irradiated onto the photodiode PD, a current flows from the output terminal of the photodiode PD to the wiring VANL via the input terminal.

[0443] In the circuit configuration of FIG. 21A, in which sensors SNC[1] to SNC[m] are configured as shown in FIG. 21B, one method of inputting current from the wiring XCL[i] to the cell array CA is, for example, to turn off the switches SA[1] to SA[m]. By turning off the switches SA[1] to SA[m], the current generated in the photodiode PD does not flow to the wiring XCL[i]. Therefore, the current flowing from the wiring XCL[i] to the cell array CA can be a current corresponding to the reference data or second data generated by the circuit XCS.

[0444] 21A, in which sensors SNC[1] to SNC[m] are configured as shown in FIG. 21B, one mode of inputting current from the wiring XCL[i] to the cell array CA is a mode in which switches SA[1] to SA[m] are turned on. By turning on switches SA[1] to SA[m], the current flowing from the wiring XCL[i] to the cell array CA can be set to the difference current between the desired current generated by the circuit XCS and the current generated by the photodiode PD.

[0445] Incidentally, in the circuit configuration of sensors SNC[1] to SNC[m], the input terminal and output terminal of the photodiode PD in FIG. 21B may be interchanged. Specifically, as shown in FIG. 21C, sensor SNC is configured such that the input terminal of the photodiode PD is electrically connected to the wiring EIL, and the output terminal of the photodiode PD is electrically connected to the wiring VANL. In this case, the constant voltage applied by the wiring VANL is set to a high-level potential or the like. Therefore, when light is irradiated onto the photodiode PD, a current flows from the output terminal of the photodiode PD to the input terminal. Therefore, when light is irradiated onto the photodiode PD, a current flows from the wiring VANL to the input terminal via the output terminal of the photodiode PD.

[0446] 21A in which the sensors SNC[1] to SNC[m] have the configuration of FIG. 21C, one mode of inputting a current from the wiring XCL[i] to the cell array CA is, for example, a mode in which the switches SA[1] to SA[m] are turned off. By operating in this mode, the current generated in the photodiode PD can be prevented from flowing to the wiring XCL[i], just as by turning off the switches SA[1] to SA[m] in the circuit configuration of FIG. 21A in which the sensors SNC[1] to SNC[m] have the configuration of FIG. 21B, and the current flowing from the wiring XCL[i] to the cell array CA can be a current corresponding to the reference data or the second data generated by the circuit XCS.

[0447] 21A, in which sensors SNC[1] to SNC[m] are configured as shown in FIG. 21C, one mode of inputting current from the wiring XCL[i] to the cell array CA is, for example, a mode in which switches SA[1] to SA[m] are turned on. By operating in this mode and turning on switches SA[1] to SA[m], the current flowing from the wiring XCL[i] to the cell array CA can be the sum of the desired current generated by the circuit XCS and the current generated in the photodiode PD.

[0448] Also, at this time, by setting the amount of current flowing from the circuit XCS to the wiring XCL[i] to 0, that is, by preventing current from being supplied from the circuit XCS to the wiring SCL[i], the current flowing from the wiring XCL[i] to the cell array CA can be limited to the current generated in the photodiode PD.

[0449] As described above, by applying the circuit configuration of FIG. 21A to the semiconductor device SDV of FIG. 1 or FIG. 3, the degree of freedom of the current input from the wirings XCL[1] to XCL[m] to the cell array CA can be increased, and the current corresponding to the reference data or the second data described in embodiment 1 can be set according to the situation.

[0450] For example, when inputting reference data or second data to the cell array CA, if the current generated by the sensor SNC is not used, the switches SA[1] to SA[m] of the circuit PTC are turned off, and the circuit XCS generates a current corresponding to the reference data or second data, and the current is passed through the wiring XCL[1] to wiring XCL[m].

[0451] Furthermore, for example, when inputting reference data or second data to the cell array CA, if the current generated by the sensor SNC is used, the switches SA[1] to SA[m] of the circuit PTC are turned on to allow the current generated by the sensor SNC to flow through the wirings XCL[1] to XCL[m]. Note that, depending on the circumstances, the amount of current flowing from the circuit XCS to the wirings XCL[1] to XCL[m] may be a desired amount or may be zero.

[0452] 12 in the semiconductor device SDV to which the circuit configuration of Fig. 21A is applied, for example, between time T13 and time T14 and between time T17 and time T19, the switches SA[1] to SA[m] included in the circuit PTC are turned off, and a current corresponding to the reference data is caused to flow from the circuit XCS to the wirings XCL[1] to XCL[m]. Also, between time T22 and time T23, for example, the amount of current flowing from the circuit XCS to the wirings XCL[1] to XCL[m] is set to 0, and the switches SA[1] to SA[m] included in the circuit PTC are turned on, and a current generated by the sensor SNC is caused to flow to the wirings XCL[1] to XCL[m].

[0453] Furthermore, for example, in the semiconductor device SDV employing the circuit configuration of FIG. 21A, when reference data or second data is input to the cell array CA, the sum (or differential current) of the current generated by the circuit XCS and the current generated by the sensor SNC may be passed through the wirings XCL[1] to XCL[m] as the reference data or second data. Here, when the sensor SNC is configured to include the photodiode PD shown in FIG. 21B or FIG. 21C, the current flowing through the wirings XCL[1] to XCL[m] corresponds to the data captured by the photodiode PD. In this case, by generating correction data for the captured data as currents flowing through the wirings XCL[1] to XCL[m] from the circuit XCS, currents corresponding to the corrected captured data can be passed through the wirings XCL[1] to XCL[m] to the cell array CA. Examples of such corrections include color correction, which adds intensity to a specific color.

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

[0455] When the circuit LGC is configured as a logic circuit, the circuit LGC may have the circuit configuration shown in Fig. 22A, for example. The circuit LGC shown in Fig. 22A includes a shift register SR, latch circuits LTA[1] to LTA[m], latch circuits LTB[1] to LTB[m], and switches SW[1] to SW[m].

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

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

[0458] The switches SW[1] to SW[m] may be, for example, electrical switches such as analog switches or transistors. Alternatively, the switches SW[1] to SW[m] may be, for example, mechanical switches. When transistors are used as the switches SW[1] to SW[m], the transistors may be OS transistors or Si transistors.

[0459] In addition, each of the switches SW[1] to SW[m] shown in Figure 22A is turned on when a high-level potential is input to the control terminal, and is turned off when a low-level potential is input to the control terminal.

[0460] For example, the wirings SWL[1] to SWL[m] function as wirings for switching the conduction state and the non-conduction state of the switches SW[1] to SW[m].

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

[0462] Moreover, the line SCL functions as a line for transmitting a clock signal to the shift register SR, for example.

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

[0464] Each of the wirings SEL[1] to SEL[m], the wirings DL[1] to DL[m], and the wiring DAT can be used as wirings for transmitting digital signals. Therefore, each of the wirings SEL[1] to SEL[m], the wirings DL[1] to DL[m], and the wiring DAT can be used as bus wiring. Furthermore, the wiring SWL can also be used as a bus wiring.

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

[0466] For example, when a high-level potential is input to the wiring SPL as a start pulse signal and the potential rises from a low-level potential to a high-level potential in response to the clock signal from the wiring SCL, the wiring SEL[1] outputs a high-level potential. Subsequently, when a low-level potential is input to the wiring SPL and the potential rises again from a low-level potential to a high-level potential in response to the clock signal from the wiring SCL, the wiring SEL[1] outputs a low-level potential, and the wiring SEL[2] outputs a high-level potential. Furthermore, when a low-level potential is input to the wiring SPL and the potential rises again, for example, a third time in response to the clock signal from the wiring SCL, the wirings SEL[1] and SEL[2] output low-level potentials, and the wiring SEL[3] outputs a high-level potential.

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

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

[0469] An example of the operation of the circuit LGC will now be described.

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

[0471] 23A shows an example of an operation in which the circuit LGC simultaneously outputs data DT to each of the wirings LXS[1] to LXS[m] between time T31 and time T40 and at times around that time. This example of an operation is assumed to be performed, for example, between time T21 and time T23 in the timing chart of FIG.

[0472] Also, assume that, prior to time T31, a low-level potential is input to the wiring LAT, and a low-level potential is input to each of the wirings SWL[1] to SWL[m]. Also, assume that the shift register SR outputs a low-level potential to each of the wirings SEL[1] to SEL[m].

[0473] Between time T31 and time T32, a high-level potential is input to the line SPL as a start pulse signal. Also, a pulse voltage is input to the line SCL as a clock signal. When the rising edge of the pulse voltage of the clock signal is input, the shift register SR acquires the high-level potential, which is the start pulse signal input to the line SPL.

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

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

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

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

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

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

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

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

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

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

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

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

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

[0487] Between time T39 and time T40, a high-level potential is input to the wirings SWL[1] to SWL[m]. This turns on the switches SW[1] to SW[m], and electrical continuity is established between the output terminals Q of the latch circuits LTB[1] to LTB[m] and the wirings LXS[1] to LXS[m]. This allows the circuit LGC to simultaneously output data DT[1] to DT[m] from the wirings LXS[1] to LXS[m].

[0488] The circuit LGC performs the operation of the timing chart shown in Fig. 23A, and can simultaneously output the data DT[1] to DT[m] sequentially input to the circuit LGC in parallel to the wirings LXS[1] to LXS[m]. This allows a desired current to be simultaneously supplied to the wirings XCL[1] to XCL[m] of the arithmetic circuit shown in Fig. 21, for example, between time T21 and time T23 in the timing chart of Fig. 12.

[0489] 23A shows an example of an operation in which the circuit LGC outputs data DT to each of the wirings LXS[1] to LXS[m] simultaneously, but the circuit LGC may also output data DT sequentially to each of the wirings LXS[1] to LXS[m]. The timing chart of FIG. 23B shows an example of an operation in which the circuit LGC outputs data DT sequentially to each of the wirings LXS[1] to LXS[m]. Note that the operation before time T39 in the timing chart of FIG. 23B is assumed to be the operation example from before time T31 to time T39 in the timing chart of FIG. 23A.

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

[0491] Between time T39 and time T40, a high-level potential is input to the line SWL[1], which turns on the switch SW[1], establishing electrical continuity between the output terminal Q of the latch circuit LTB[1] and the line LXS[1], thereby transmitting the data DT[1] output from the output terminal Q of the latch circuit LTB to the line LXS[1].

[0492] Between time T40 and time T41, a low-level potential is input to the line SWL[1] and a high-level potential is input to the line SWL[2]. This turns the switch SW[1] off and the switch SW[2] on. Because there is no conduction between the output terminal Q of the latch circuit LTB[1] and the line LXS[1], the data DT[1] output from the output terminal Q of the latch circuit LTB is not transmitted to the line LXS[1]. In addition, there is conduction between the output terminal Q of the latch circuit LTB[2] and the line LXS[2], so the data DT[2] output from the output terminal Q of the latch circuit LTB is transmitted to the line LXS[2].

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

[0494] Between time T42 and time T43, a low-level potential is input to the line SWL[m-2] and a high-level potential is input to the line SWL[m-1]. As a result, the switch SW[m-2] is turned off and the switch SW[m-1] is turned on. Because there is no conduction between the output terminal Q of the latch circuit LTB[m-2] and the line LXS[m-2], the data DT[m-2] output from the output terminal Q of the latch circuit LTB is not transmitted to the line LXS[m-2]. In addition, there is conduction between the output terminal Q of the latch circuit LTB[m-1] and the line LXS[m-1], so the data DT[m-1] output from the output terminal Q of the latch circuit LTB is transmitted to the line LXS[m-1].

[0495] Between time T43 and time T44, a low-level potential is input to the line SWL[m-1] and a high-level potential is input to the line SWL[m]. This turns the switch SW[m-1] off and the switch SW[m] on. Because there is no conduction between the output terminal Q of the latch circuit LTB[m-1] and the line LXS[m-1], the data DT[m-1] output from the output terminal Q of the latch circuit LTB is not transmitted to the line LXS[m-1]. Furthermore, because there is conduction between the output terminal Q of the latch circuit LTB[m] and the line LXS[m], the data DT[m] output from the output terminal Q of the latch circuit LTB is transmitted to the line LXS[m].

[0496] The circuit LGC operates up to time T39 in the timing chart shown in Figure 23A, and then operates as shown in the timing chart of Figure 23B, thereby allowing the data DT[1] to data DT[m] sequentially input to the circuit LGC to be sequentially output to the wirings LXS[1] to LXS[m].

[0497] In the operation example of the timing chart shown in Figure 23B, an example is shown in which each of the switches SWL[1] to SWL[m] is sequentially turned on and data DT[1] to data DT[m] is sequentially output to wirings LXS[1] to LXS[m]. However, the operation may also be such that a switch to be turned on is selected from the switches SWL[1] to SWL[m] and data DT is output to a wiring selected from the wirings LXS[1] to LXS[m].

[0498] According to the above-described operation example, for example, a desired current can be supplied to any one of the wirings XCL[1] to XCL[m] of the arithmetic circuit MAC1 in FIG. 7 between time T13 and time T15 in the timing chart of FIG. 12 or between time T17 and time T19.

[0499] 21A included in the semiconductor device of one embodiment of the present invention may not be the circuit LGC shown in FIG. 22A , and the circuit configuration of the circuit LGC shown in FIG. 22A may be modified depending on the situation. For example, the circuit LGC shown in FIG. 22A may have a configuration in which buffer circuits are provided between each of the switches SW[1] to SW[m] and the wirings LXS[1] to LXS[m] shown in FIG. 22A . The circuit LGC shown in FIG. 22B has a configuration in which buffer circuits BF[1] to BF[m] are provided between each of the switches SW[1] to SW[m] and the wirings LXS[1] to LXS[m]. As shown in FIG. 22B, providing the buffer circuits BF[1] to BF[m] in the circuit LGC stabilizes the electric signals (potentials) output from the circuit LGC to the wirings LXS[1] to LXS[m].

[0500] By using the arithmetic circuit shown in FIG. 18A, the current generated by the circuit XCS and / or the current generated by the sensor SNC can be input to the cell array CA as the reference data or the current corresponding to the second data.

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

[0502] (Fourth embodiment) In this embodiment mode, a hierarchical neural network will be described. Note that the operation of the hierarchical neural network can be performed by using the semiconductor device described in the above embodiment mode.

[0503] <Hierarchical neural network> As an example, a hierarchical neural network has one input layer, one or more intermediate layers (hidden layers), and one output layer, for a total of three or more layers. The hierarchical neural network 100 shown in FIG. 24A shows an example, and the neural network 100 has a first layer through an Rth layer (where R can be an integer equal to or greater than four). 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. Note that FIG. 24A illustrates the (k-1)th layer and the kth layer (where k is an integer equal to or greater than three and equal to or less than R-1) as intermediate layers, and does not illustrate the other intermediate layers.

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

[0505] In addition, in Figure 24A, 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.

[0506] 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 at each neuron. j (k) Focus on.

[0507] Figure 24B shows the k-th layer neuron N j (k) and neuron N j (k) and the signal input to neuron N j (k) 10 shows the signal output from the

[0508] Specifically, the neuron N1 in the (k-1)th layer (k-1) Neuron N m (k-1) The output signal z1 (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).

[0509] The degree of signal transmission for 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 connecting 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 k-th layer neuron N j (k) The weight coefficient of the synapse between i (k-1) j (k) Then, the k-th layer neuron N j (k) The signal input to can be expressed by equation (4.1).

[0510]

number

[0511] That is, the neuron N1 in the (k-1)th layer (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) has w1 (k-1) j (k) z1 (k-1) Or even w m (k-1) j (k) z m (k-1)is input. At this time, the k-th layer neuron N j (k) The sum of the signals input to j (k) is expressed as equation (4.2).

[0512]

number

[0513] Also, the weighting factor w1 (k-1) j (k) Or even w m (k-1) j (k) and the neuron signal z1 (k-1) ~z m (k-1) The result of the sum of products of and can be given a bias. When the bias is b, equation (4.2) can be rewritten as the following equation.

[0514]

number

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

[0516]

number

[0517] 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 for each layer. In addition, the activation functions of neurons can be the same or different for each layer.

[0518] The signals, weighting coefficients w, and biases b output by neurons in each layer may be analog or digital values. Digital values ​​may be, for example, binary or ternary. Values ​​with even larger bit counts are also acceptable. For example, in the case of analog values, activation functions such as linear ramp functions and sigmoid functions may be used. In the case of binary digital values, for example, step functions that output −1 or 1, or 0 or 1 may be used. Furthermore, the signals output by neurons in each layer may be ternary or more. In this case, ternary activation functions may be used, such as step functions that output −1, 0, or 1, or step functions that output 0, 1, or 2. Furthermore, for example, a step function that outputs five values, such as −2, −1, 0, 1, or 2, may be used. Using digital values ​​for at least one of the signals, weighting coefficients w, and biases b output by neurons in each layer can reduce the circuit size, power consumption, and computation speed. Furthermore, the accuracy of calculations can be improved by using analog values ​​for at least one of the signals output by neurons in each layer, the weighting coefficients w, and the biases b.

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

[0520] When the arithmetic circuit MAC1 described in the first embodiment is applied as the hidden layer, the weight coefficient w s[k-1] (k-1) s[k] (k) (where s[k-1] is an integer between 1 and m, and s[k] is an integer between 1 and n) is used as the first data, and the current amount corresponding to the first data is stored in each cell IM of the same column, and the neuron N in the (k-1) layer s[k-1] (k-1) Output signal z from s[k-1] (k-1) is used as the second data, and the current amount according to the second data is passed from the circuit XCS to the wiring XCL of each row, so that the current amount I S In addition, by using the value of the sum of products to calculate the value of the activation function, the value of the activation function is used as a signal to activate the neuron N in the kth layer. s[k] (k) The output signal z s[k] (k) It can be said that:

[0521] In addition, when the arithmetic circuit MAC1 described in the first embodiment is applied to the output layer, the weighting coefficient w s[R-1] (R-1) s[R] (R) (s[R-1] is an integer equal to or greater than 1, and s[R] is an integer equal to or greater than 1 and equal to or less than q) is used as the first data, and the current amount corresponding to the first data is stored in each cell IM of the same column, and the neuron N in the (R-1) layer s[R-1] (R-1) Output signal z from s[R-1](R-1) is used as the second data, and the current amount according to the second data is passed from the circuit XCS to the wiring XCL of each row, so that the current amount I S In addition, by using the value of the sum of products to calculate the value of the activation function, the value of the activation function is used as a signal to activate the neuron N in the Rth layer. s[R] (R) The output signal z s[R] (R) It can be said that:

[0522] The input layer described in this embodiment may function as a buffer circuit that outputs an input signal to the second layer.

[0523] In addition, when the calculation circuit MAC2 in which the conversion circuit ITRZD[j] is the conversion circuit ITRZD4 in FIG. 16 as described in the second embodiment is applied as the hidden layer, the weight coefficient w s[k-1] (k-1) s[k] (k) is used as the first data, and the current amount corresponding to the first data is stored in the cells IM and IMr of each circuit CES in the same column, and the neuron N in the (k-1)th layer s[k-1] (k-1) Output signal z from s[k-1] (k-1) is used as the second data, and the current amount according to the second data is passed from the circuit XCS to the wiring XCL of each row, so that the current amount I S , and I Sr The activation function value corresponding to the sum of the products of the first data and the second data can be calculated from the above. In other words, the activation function value is used as a signal to activate the k-th layer neuron N s[k] (k) The output signal z s[k] (k) In addition, since the conversion circuit ITRZD4 is configured to output a current amount corresponding to the value, for example, a neuron N in the kth layer that is input to a plurality of neurons in the (k+1)th layer can be s[k] (k) The output signal z s[k] (k)That is, when the arithmetic circuit MAC2 is applied as the hidden layer of the (k+1)th layer, the neuron N of the kth layer input to the wiring XCL of the arithmetic circuit MAC2 s[k] (k) The output signal z s[k] (k) can be a current output from the conversion circuit ITRZD4 of the arithmetic circuit MAC2 in the k-th hidden layer, without being generated by the circuit XCS.

[0524] Specifically, the above-described hierarchical neural network operation can be performed by using the arithmetic circuit shown in FIG. 25. The arithmetic circuit of FIG. 25 includes, as an example, an arithmetic circuit MAC2-1 having the same configuration as the arithmetic circuit MAC2 of FIG. 14, and an arithmetic circuit MAC2-2 having the same configuration as the arithmetic circuit MAC2 of FIG. 14 except that the circuit XCS and the circuit PTC are not provided. Note that the cell array CA of the arithmetic circuit MAC2-1 has m×n circuits CES arranged in a matrix, and the cell array CA of the arithmetic circuit MAC2-2 has n×t circuits CES (where t is an integer equal to or greater than 1) arranged in a matrix. Furthermore, the wirings OL[1] to OL[n] of the arithmetic circuit MAC2-1 are electrically connected to the wirings XCL[1] to XCL[n] of the arithmetic circuit MAC2-2, respectively.

[0525] For example, in the arithmetic circuit MAC2-1 of FIG. 25, the weighting coefficients between the neurons in the (k-1)th layer and the neurons in the kth layer are stored as first data in the circuits CES[1,1] to CES[m,n] of the cell array CA, and the weighting coefficients between the neurons in the (k-1)th layer and the neurons in the kth layer are stored as first data in the circuits CES[1,1] to CES[m,n] of the cell array CA. s[k-1] (k-1) Output signal z from s[k-1] (k-1) The amount of current corresponding to the second data is passed from the circuit XCS to the wiring XCL of each row, and the k-th layer neuron N1 (k) Neuron N n (k) Output signal z1 (k) ~z n (k) The output signal z1(k) ~z n (k) Each of the values ​​can be expressed as the amount of current output from the conversion circuits ITRZD4[1] to ITRZD4[n].

[0526] Here, in the arithmetic circuit MAC2-2 of FIG. 25, the weighting coefficient between the neuron in the kth layer and the neuron in the (k+1)th layer is held as first data in the circuits CES[1,1] to CES[n,t] of the cell array CA, and the amount of current flowing through the wiring XCL of each row, i.e., the neuron N1 in the kth layer, is held as first data in the circuits CES[1,1] to CES[n,t] of the cell array CA. (k) Neuron N n (k) Output signal z1 (k) ~z n (k) By using this as the second data, the wiring OL[s[k+1]] (where s[k+1] is an integer between 1 and t) is connected to the (k+1)th layer neuron N s[k+1] (k+1) The output signal z s[k+1] (k+1) can be output.

[0527] As described in the second embodiment, by applying any one of the conversion circuits ITRZD4 shown in FIGS. 16, 17A, and 18A to 18C to the conversion circuits ITRZD4[1] to ITRZD4[n] of the arithmetic circuit MAC2-1 shown in FIG. 25, the conversion circuits ITRZD4[1] to ITRZD4[n] function as a ReLU function. Therefore, for example, when the result of the product-sum operation in the circuits CES[1,j] to CES[m,j] is "negative," the amount of current flowing from the conversion circuit ITRZD4 to the wiring OL[j] is ideally preferably 0. However, in reality, a small amount of current may flow from the conversion circuit ITRZD4 to the wiring OL[j], or a small amount of current may flow from the wiring OL[j] to the conversion circuit ITRZD4.

[0528] For this reason, a configuration example of an arithmetic circuit MAC2-2 for properly performing calculations on the next layer and beyond of a hierarchical neural network is shown in Figure 26. The arithmetic circuit MAC2-2 shown in Figure 26 has a configuration in which the circuits CES arranged in the cell array CA in the arithmetic circuit MAC2 of Figure 14 are changed from an m x n matrix to an n x t matrix, and the circuit XCS is not provided. Furthermore, because the circuits CES of the cell array CA of the arithmetic circuit MAC2-2 are arranged in an n x t matrix, the values ​​of coordinates and the like written in [ ] attached to the symbols of the wiring, circuits, etc. shown in Figure 26 have also been changed.

[0529] Furthermore, in the arithmetic circuit MAC2-2 of Figure 26, as an example, an example of a circuit configuration is shown in which the arithmetic circuit MAC2-2 is provided with wiring TM[1], wiring TM[n], wiring TH[1,h] (h is an integer greater than or equal to 1 and less than or equal to t), wiring TH[n,h], wiring THr[1,h], and wiring THr[n,h]. In the arithmetic circuit MAC2-2 of Figure 26, wiring TM[1] is electrically connected to the back gate of transistor F2m of cell IMref[1], wiring TM[n] is electrically connected to the back gate of transistor F2m of cell IMref[n], wiring TH[1,h] is electrically connected to the back gate of transistor F2 of cell IM[1,h], wiring THr[1,h] is electrically connected to the back gate of transistor F2r of cell IMr[1,h], wiring TH[n,h] is electrically connected to the back gate of transistor F2 of cell IM[n,h], and wiring THr[n,h] is electrically connected to the back gate of transistor F2r of cell IMr[n,h].

[0530] Applying a low-level potential to each of the wirings TM[1], TM[n], TH[1,h], TH[n,h], THr[1,h], and THr[n,h] can increase the threshold voltage of the transistors having backgates electrically connected to the respective wirings. This prevents a small amount of current flowing through the wiring OL of the arithmetic circuit MAC2-1 from flowing to the wiring VE via the cell IMref of the arithmetic circuit MAC2-2. In other words, the output characteristics of the conversion circuits ITRZD4[1] to ITRZD4[n] can be made closer to the ReLU function. This allows the next-layer calculation of the hierarchical neural network to be performed appropriately.

[0531] Also, for example, the configuration of the arithmetic circuit MAC2-2 in Fig. 26 may be applied to the arithmetic circuit MAC2-1 in Fig. 25. By using such a configuration, it is possible to vary the threshold voltages of the transistors F2, F2r, and F2m included in the arithmetic circuit MAC2-1, similarly to the arithmetic circuit MAC2-2.

[0532] Note that while Figure 26 illustrates wiring TM[1], wiring TM[n], wiring TH[1,h], wiring TH[n,h], wiring THr[1,h], and wiring THr[n,h], the arithmetic circuit MAC2-2 in Figure 26 may be configured, for example, by combining wiring TM[1], wiring TH[1,h], and wiring THr[1,h] into a single wiring, and by combining wiring TM[n], wiring TH[n,h], and wiring THr[n,h] into a single wiring.

[0533] As described above, by configuring the arithmetic circuit shown in Figure 25 to perform hierarchical neural network operations, the value (amount of current) of the neuron output signal output from arithmetic circuit MAC2-1 can be input directly to arithmetic circuit MAC2-2, so that hierarchical neural network operations can be performed continuously, for example, from the first layer. Furthermore, since the output signals output from wiring OL[1] to wiring OL[n] of arithmetic circuit MAC2-1 do not need to be temporarily stored in an external circuit or the like, there is no need to provide a separate storage device required for temporary storage. In other words, by configuring the arithmetic circuit shown in Figure 25, the circuit area can be reduced, and the power required for data transmission for temporary storage can be reduced.

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

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

[0536] <Configuration example of semiconductor device> Fig. 27 shows, as an example, a configuration of the semiconductor device SDV described in the first embodiment, in which a photoelectric conversion element is applied as a photodiode to the sensor SNC. Specifically, the semiconductor device shown in Fig. 27 has layers LY1, LY2, and LY3, where the layer LY1 includes a transistor 300, a transistor 500, and a capacitor 600, and the layer LY3 includes a photoelectric conversion element 700. Fig. 29A shows a cross-sectional view of the transistor 500 in the channel length direction, Fig. 29B shows a cross-sectional view of the transistor 500 in the channel width direction, and Fig. 29C shows a cross-sectional view of the transistor 300 in the channel width direction.

[0537] The transistor 500 is a transistor (OS transistor) having a metal oxide in a channel formation region. The transistor 500 has characteristics of a small off-state current and a field-effect mobility that does not change easily even at high temperatures. By using the transistor 500 in a semiconductor device, such as a transistor included in the arithmetic circuit MAC1, arithmetic circuit MAC1A, arithmetic circuit MAC2, arithmetic circuit MAC3A, or arithmetic circuit MAC3B described in the above embodiments, a semiconductor device whose operating performance is not easily degraded even at high temperatures can be realized. In particular, by utilizing the characteristics of a small off-state current, the transistor 500 can be used in the transistors F1 and F1m, allowing a potential written to the cells IM and IMref to be held for a long time.

[0538] First, the layer LY1 will be described. For example, the circuit included in the layer CCL in the semiconductor device SDV of Fig. 1 can be formed on the layer LY1. Also, for example, the circuit included in the layer CCL and the layer PHL in the semiconductor device of Fig. 3 can be formed on the layer LY1.

[0539] In this specification and the like, the layer LY1 may be referred to as, for example, a circuit layer or a structure.

[0540] The transistor 500 is provided above the transistor 300, for example, and the capacitor 600 is provided above the transistor 300 and the transistor 500, for example. The photoelectric conversion element 700 is provided above the capacitor 600, for example. The capacitor 600 can be a capacitor included in the arithmetic circuit MAC1, the arithmetic circuit MAC1A, the arithmetic circuit MAC2, the arithmetic circuit MAC3A, the arithmetic circuit MAC3B, or the like described in the above embodiments. Depending on the circuit configuration, the capacitor 600 shown in FIG. 27 is not necessarily provided.

[0541] The transistor 300 is provided over a substrate 310 and includes an element isolation layer 312, a conductor 316, an insulator 315, a semiconductor region 313 formed of part of the substrate 310, and low-resistance regions 314a and 314b functioning as source and drain regions. Note that the transistor 300 can be applied to, for example, a transistor included in the arithmetic circuit MAC1, the arithmetic circuit MAC1A, the arithmetic circuit MAC2, the arithmetic circuit MAC3A, or the arithmetic circuit MAC3B described in the above embodiment. Specifically, the transistor 300 can be, for example, a transistor included in an operational amplifier OP1 included in the conversion circuits ITRZ1 to ITRZ3 in FIGS. 10A and 10B. Note that Figure 27 shows a configuration in which the gate of the transistor 300 is electrically connected to one of the source and drain of the transistor 500 through a pair of electrodes of the capacitor 600; however, depending on the configuration of the arithmetic circuit MAC1, arithmetic circuit MAC1A, arithmetic circuit MAC2, arithmetic circuit MAC3A, or arithmetic circuit MAC3B, one of the source and drain of the transistor 300 may be electrically connected to one of the source and drain of the transistor 500 through a pair of electrodes of the capacitor 600, or one of the source and drain of the transistor 300 may be electrically connected to the gate of the transistor 500 through a pair of electrodes of the capacitor 600. Furthermore, each terminal of the transistor 300 may not be electrically connected to each terminal of the transistor 500 or each terminal of the capacitor 600.

[0542] The substrate 310 is preferably a semiconductor substrate (for example, a single crystal substrate or a silicon substrate).

[0543] 29C , the upper surface and the side surfaces 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 way, the effective channel width is increased, thereby improving the on-state characteristics of the transistor 300. Furthermore, the contribution of the electric field of the gate electrode can be increased, thereby improving the off-state characteristics of the transistor 300.

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

[0545] The region where the channel of the semiconductor region 313 is formed, the region nearby, the low-resistance region 314a that serves as 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), GaN (gallium nitride), or the like. A configuration using silicon in which the effective mass is controlled by applying stress to the crystal lattice and changing the lattice spacing may also be used. Alternatively, the transistor 300 may be a HEMT (High Electron Mobility Transistor) by using GaAs and GaAlAs, or the like.

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

[0547] The conductor 316 functioning as the gate electrode can be made of a conductive material such as a semiconductor material, metal material, alloy material, or metal oxide 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.

[0548] 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 as the conductor. Furthermore, in order to achieve both conductivity and embeddability, it is preferable to use a metal material such as tungsten or aluminum as the conductor in a stacked structure, and tungsten is particularly preferable in terms of heat resistance.

[0549] The element isolation layer 312 is provided to isolate a plurality of transistors formed on the substrate 310. The element isolation layer can be formed by using, for example, a local oxidation of silicon (LOCOS) method, a shallow trench isolation (STI) method, a mesa isolation method, or the like.

[0550] 27 is just an example, and the structure is not limited thereto. An appropriate transistor may be used depending on the circuit configuration, driving method, and the like. For example, the transistor 300 may have a planar structure instead of the FIN structure shown in FIG. 29C. For example, when the semiconductor device is a unipolar circuit including only OS transistors, the structure of the transistor 300 may be the same as that of the transistor 500 including an oxide semiconductor, as shown in FIG. 28. The details of the transistor 500 will be described later.

[0551] In FIG. 28, the transistor 300 is provided on a substrate 310A. However, in this case, the substrate 310A may be a semiconductor substrate similar to the substrate 310 of the semiconductor device in FIG. 27. The substrate 310A may be, for example, 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 stainless steel foil, a tungsten substrate, a substrate having tungsten foil, a flexible substrate, a laminated film, paper containing a fibrous material, or a base film. Examples of glass substrates include barium borosilicate glass, aluminoborosilicate glass, and soda-lime glass. Examples of flexible substrates, laminated films, and base films include the following: Plastics such as polyethylene terephthalate (PET), polyethylene naphthalate (PEN), polyethersulfone (PES), and polytetrafluoroethylene (PTFE). Another example is a synthetic resin such as acrylic. Examples of the material include polypropylene, polyester, polyvinyl fluoride, and polyvinyl chloride, as well as polyamide, polyimide, aramid, epoxy resin, inorganic vapor deposition film, and paper.

[0552] In the transistor 300 shown in FIG. 27, an insulator 320, an insulator 322, an insulator 324, and an insulator 326 are stacked in this order from the substrate 310 side.

[0553] The insulators 320, 322, 324, and 326 can be formed using, for example, silicon oxide, silicon oxynitride, silicon nitride oxide, silicon nitride, aluminum oxide, aluminum oxynitride, aluminum nitride oxide, aluminum nitride, or the like.

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

[0555] The insulator 322 may function as a planarizing film that flattens steps caused by the insulator 320 and the transistor 300 covered by the insulator 322. For example, the top surface of the insulator 322 may be planarized by planarization treatment using a chemical mechanical polishing (CMP) method or the like to improve flatness.

[0556] The insulator 324 is preferably a film having a barrier property that prevents hydrogen, impurities, and the like from diffusing from the substrate 310 or the transistor 300 to a region where the transistor 500 is provided.

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

[0558] The amount of desorption of hydrogen can be analyzed using, for example, thermal desorption spectroscopy (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 TDS analysis. 15 atoms / cm 2 Less than or equal to 5 x 10 15atoms / cm 2 The following is fine.

[0559] It is preferable that the insulator 326 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. Furthermore, 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 that occurs between wirings can be reduced.

[0560] Conductors 328 and 330, which connect to the capacitor 600 or the transistor 500, are embedded in the insulators 320, 322, 324, and 326. The conductors 328 and 330 function as plugs or wirings. A plurality of conductors that function as plugs or wirings may be collectively denoted by the same reference numeral. In this specification and the like, a wiring and a plug connected to the wiring may be integral. That is, a part of a conductor may function as a wiring, and a part of a conductor may function as a plug.

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

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

[0563] Note that, for example, the insulator 350 is preferably an insulator having barrier properties against impurities such as hydrogen and water, similar to the insulator 324. Similarly to the insulator 326, the insulators 352 and 354 are preferably insulators having a relatively low dielectric constant in order to reduce parasitic capacitance between wirings. The conductor 356 preferably includes a conductor having barrier properties against impurities such as hydrogen and water. In particular, a conductor having barrier properties against hydrogen is formed in the opening of the insulator 350 having barrier properties against hydrogen. With this structure, the transistor 300 and the transistor 500 can be separated by a barrier layer, thereby suppressing diffusion of hydrogen from the transistor 300 to the transistor 500.

[0564] Note that, for example, tantalum nitride or the like is preferably used as the conductor having a barrier property against hydrogen. Stacking tantalum nitride and highly conductive tungsten can 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.

[0565] Furthermore, on the insulator 354 and the conductor 356, an insulator 360, an insulator 362, and an insulator 364 are stacked in this order.

[0566] The insulator 360 is preferably an insulator having barrier properties against impurities such as water and hydrogen, similar to the insulator 324. Therefore, the insulator 360 can be made of, for example, a material that can be used for the insulator 324.

[0567] The insulators 362 and 364 function as an interlayer insulating film and a planarizing film. As the insulators 362 and 364, it is preferable to use an insulator that has a barrier property against impurities such as water and hydrogen, similar to the insulator 324. Therefore, the insulator 362 and / or the insulator 364 can be made of a material that can be used for the insulator 324.

[0568] Furthermore, openings are formed in the insulators 360, 362, and 364 in regions that overlap with part of the conductor 356, and the conductor 366 is provided to fill the openings. The conductor 366 may also be formed over part of the insulator 362. For example, the conductor 366 functions as a plug or wiring connected to the transistor 300. Note that the conductor 366 can be formed using a material similar to that of the conductors 328 and 330.

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

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

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

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

[0573] In particular, aluminum oxide has a high blocking effect of preventing the permeation of both oxygen and impurities such as hydrogen and moisture, which can 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. Furthermore, 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.

[0574] For example, the insulator 513 is preferably a film having a barrier property that prevents diffusion of impurities such as water and hydrogen, similar to the insulators 510 and 514. In particular, in FIG. 27, the insulator 513 functions as a film that seals the transistor 500 together with the insulator 576 described later. For this reason, the insulator 513 is preferably made of a material that can be used for the insulator 576. The insulator 513 may also be made of a material that can be used for the insulator 510 or the insulator 514.

[0575] 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 insulators 512 and 516 can be formed using a silicon oxide film, a silicon oxynitride film, or the like.

[0576] A conductor 518, a conductor constituting the transistor 500 (for example, the conductor 503 shown in FIGS. 29A and 29B), and the like are embedded in the insulators 510, 512, 513, 514, and 516. 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 conductors 328 and 330.

[0577] In particular, the conductor 518 in the region in contact with the insulator 510 and the insulator 514 is preferably a conductor that has a barrier property against oxygen, hydrogen, and water. With this structure, the transistor 300 and the transistor 500 can be separated by a layer that has a barrier property against oxygen, hydrogen, and water, and diffusion of hydrogen from the transistor 300 to the transistor 500 can be suppressed.

[0578] Above the insulator 516 is the transistor 500 .

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

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

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

[0582] Although the transistor 500 has a three-layer structure of oxides 530a, 530b, and 530c in and around a channel formation region, one embodiment of the present invention is not limited to this structure. For example, the transistor may have a single layer of oxide 530b, a two-layer structure of oxides 530b and 530a, a two-layer structure of oxides 530b and 530c, or a stacked structure of four or more layers. Although the transistor 500 has a two-layer structure, one embodiment of the present invention is not limited to this structure. For example, the conductor 560 may have a single-layer structure or a stacked structure of three or more layers. The transistor 500 illustrated in FIGS. 27, 29A, and 29B is merely an example, and the transistor is not limited to this structure. An appropriate transistor may be used depending on the circuit configuration and driving method.

[0583] Here, the conductor 560 functions as the gate electrode of the transistor, and the conductors 542a and 542b function as the source and drain electrodes, 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 arrangements of the conductors 560, 542a, and 542b are 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 positioned between the source and drain electrodes in a self-aligned manner. Therefore, the conductor 560 can be formed without providing an alignment margin, thereby reducing the area occupied by the transistor 500. This allows for miniaturization and high integration of semiconductor devices.

[0584] 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 that overlaps with the conductor 542a or the conductor 542b. This reduces the parasitic capacitance formed between the conductor 560 and the conductor 542a and between the conductor 560 and the conductor 542b. This improves the switching speed of the transistor 500 and provides high frequency characteristics.

[0585] 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, applying a negative potential to the conductor 503 can increase the threshold voltage of the transistor 500 above 0 V and reduce the off-state current. 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.

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

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

[0588] Here, the conductor 503a is preferably made of a conductive material that has the 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). Alternatively, it is preferably made of a conductive material that has the function of suppressing the diffusion of oxygen (for example, at least one of oxygen atoms, oxygen molecules, etc.) (the oxygen is less likely to permeate). 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 and oxygen.

[0589] 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 its conductivity from decreasing.

[0590] Furthermore, when the conductor 503 also functions as a wiring, it is preferable that the conductor 503b be made of a highly conductive material containing tungsten, copper, or aluminum as a main component. Furthermore, when the conductivity of the wiring can be maintained at a high level, the conductor 503a is not necessarily provided. While the conductor 503b is illustrated as a single layer, it may have a multilayer structure, for example, a multilayer structure of titanium or titanium nitride and the above-mentioned conductive material.

[0591] The insulators 522 and 524 function as a second gate insulating film.

[0592] Here, the insulator 524 in contact with the oxide 530 preferably contains more oxygen than the oxygen required for the stoichiometric composition. In other words, the insulator 524 preferably has an excess oxygen region. By providing an insulator containing such excess oxygen in contact with the oxide 530, oxygen vacancies in the oxide 530 can be reduced, improving the reliability of the transistor 500. Note that in this specification and elsewhere, oxygen vacancies in a metal oxide are referred to as V O This is sometimes called oxygen vacancy.

[0593] A transistor using a metal oxide has impurities or oxygen vacancies (VO ) may cause fluctuations in electrical characteristics and reduce reliability. O ) hydrogen near the oxygen vacancy (V O ) with hydrogen (hereafter referred to as V O H.) and generate electrons that serve as carriers. Therefore, if oxygen vacancies are present in the region where a channel is formed in the oxide semiconductor, the transistor is likely to have normally-on characteristics (a channel exists and current flows through the transistor even when no voltage is applied to the gate electrode). Therefore, in the region where a channel is formed in the oxide semiconductor, impurities, oxygen vacancies, and V O It is preferable that H is reduced as much as possible. In other words, it is preferable that the region in the oxide semiconductor where a channel is formed has a reduced carrier concentration and is i-type (intrinsic) or substantially i-type.

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

[0595] Alternatively, the oxide 530 may be brought into contact with the insulator having the excess oxygen region and subjected to one or more of heat treatment, microwave treatment, and RF treatment. By performing such treatment, water or hydrogen in the oxide 530 can be removed. For example, a reaction occurs in the oxide 530 that breaks the VOH bond, in other words, "V O H→V O +H" reaction occurs, resulting in dehydrogenation. Some of the generated hydrogen may combine with oxygen to form HO and be removed from the oxide 530 or the insulator near the oxide 530. Some of the hydrogen may also be diffused or captured (also called gettered) in the conductor 542a and the conductor 542b.

[0596] The microwave treatment is preferably performed using, for example, an apparatus having a power source for generating high-density plasma or an apparatus having a power source for applying RF to the substrate side. For example, high-density oxygen radicals can be generated by using an oxygen-containing gas and high-density plasma, and the oxygen radicals generated by the high-density plasma can be efficiently introduced into the oxide 530 or an insulator near the oxide 530 by applying RF to the substrate side. The microwave treatment is performed at a pressure of 133 Pa or higher, preferably 200 Pa or higher, and more preferably 400 Pa or higher. The gases introduced into the microwave treatment apparatus may be, for example, oxygen and argon, with an oxygen flow ratio (O2 / (O2+Ar)) of 50% or less, preferably 10% to 30%.

[0597] During the manufacturing process of the transistor 500, heat treatment is preferably performed with the surface of the oxide 530 exposed. The heat treatment may be performed, for example, at a temperature of 100° C. to 450° C., more preferably 350° C. to 400° C. Note that the heat treatment is performed in a nitrogen gas or inert gas atmosphere, or an atmosphere containing an oxidizing gas at 10 ppm or more, 1% or more, or 10% or more. For example, the heat treatment is preferably performed in an oxygen atmosphere. This supplies oxygen to the oxide 530, thereby eliminating oxygen vacancies (V O) can be reduced. The heat treatment may be performed under reduced pressure. Alternatively, the heat treatment may be performed in an atmosphere containing 10 ppm or more, 1% or more, or 10% or more of an oxidizing gas after the heat treatment in a nitrogen gas or inert gas atmosphere to compensate for the desorbed oxygen. Alternatively, the heat treatment may be performed in an atmosphere containing 10 ppm or more, 1% or more, or 10% or more of an oxidizing gas, and then the heat treatment may be performed in a nitrogen gas or inert gas atmosphere.

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

[0599] When the insulator 524 has an excess oxygen region, the insulator 522 preferably has a function of suppressing the diffusion of oxygen (for example, oxygen atoms, oxygen molecules, etc.) (preferably making the oxygen less permeable).

[0600] The insulator 522 preferably has a function of suppressing diffusion of oxygen, impurities, and the like, which prevents oxygen contained in the oxide 530 from diffusing toward the conductor 503 and the insulator 516. Furthermore, reaction of the conductor 503 with oxygen contained in the insulator 524 and / or the oxide 530 can be suppressed.

[0601] The insulator 522 is preferably a single-layer or multi-layer insulator containing a 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, thinner gate insulating films can cause problems such as leakage current. Using a high-k material for the insulator that functions as the gate insulating film makes it possible to reduce the gate potential during transistor operation while maintaining the physical film thickness.

[0602] In particular, an insulator containing an oxide of one or both of aluminum and hafnium, which is an insulating material that has the function of suppressing the diffusion of impurities and oxygen (i.e., is difficult for oxygen to permeate), is preferably used. As an insulator containing an oxide of one or both of aluminum and hafnium, aluminum oxide, hafnium oxide, or an oxide containing aluminum and hafnium (hafnium aluminate) is preferably used. When the insulator 522 is formed using such a material, the insulator 522 functions as a layer that suppresses oxygen release from the oxide 530 and the intrusion of impurities such as hydrogen from the periphery of the transistor 500 into the oxide 530.

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

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

[0605] In the transistor 500, a metal oxide functioning as an oxide semiconductor is preferably used 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 elements selected from aluminum, gallium, yttrium, copper, vanadium, beryllium, boron, titanium, iron, nickel, germanium, zirconium, molybdenum, lanthanum, cerium, neodymium, hafnium, tantalum, tungsten, magnesium, etc.) may be used for the oxide 530. In particular, the In-M-Zn oxide that can be used for the oxide 530 is preferably a C-Axis Aligned Crystalline Oxide Semiconductor (CAAC-OS) or a Cloud-Aligned Composite Oxide Semiconductor (CAC-OS). Alternatively, an In-Ga oxide, an In-Zn oxide, an In oxide, or the like may be used for the oxide 530.

[0606] Furthermore, it is preferable to use a metal oxide with a low carrier concentration for the transistor 500. To lower the carrier concentration of a metal oxide, the impurity concentration in the metal oxide should be lowered to lower the density of defect states. In this specification and the like, a low impurity concentration and a low density of defect states are referred to as high-purity intrinsic or substantially high-purity intrinsic. Examples of impurities in metal oxides include hydrogen, nitrogen, alkali metals, alkaline earth metals, iron, nickel, and silicon.

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

[0608] Defects in which hydrogen has entered oxygen vacancies can function as donors in metal oxides. However, it is difficult to quantitatively evaluate such defects. Therefore, metal oxides are sometimes evaluated using carrier concentration rather than donor concentration. Therefore, in this specification and the like, the carrier concentration assuming a state in which no electric field is applied may be used as a parameter of metal oxides, rather than donor concentration. In other words, the "carrie...

Claims

1. A first layer, a second layer located above the first layer, and a third layer located above the second layer, the first layer includes a first cell, a first circuit, a first wiring, and a second wiring adjacent to the first wiring; the second layer includes a third wiring and a fourth wiring adjacent to the third wiring, the third layer includes an electrode and a sensor; the first circuit includes a switch; the sensor is electrically connected to the third wiring via the electrode and the first plug; a first terminal of the switch is electrically connected to the third wiring via a second plug; a second terminal of the switch is electrically connected to the first cell via the first wiring; the electrode has a region overlapping the sensor and a region overlapping the first plug; the first wiring, the second wiring, the third wiring, and the fourth wiring are parallel to each other; a distance between the third wiring and the fourth wiring is 0.9 to 1.1 times a distance between the first wiring and the second wiring, Semiconductor device.

2. In claim 1, the first layer has a second cell; the first cell includes a first transistor, a second transistor, and a first capacitance; the second cell includes a third transistor, a fourth transistor, and a second capacitor; a gate of the first transistor is electrically connected to a first terminal of the first capacitance and a first terminal of the second transistor; a first terminal of the first transistor electrically connected to a second terminal of the second transistor; a second terminal of the first capacitance is electrically connected to a second terminal of the switch via the first wiring; a gate of the third transistor is electrically connected to a first terminal of the second capacitor and a first terminal of the fourth transistor; a first terminal of the third transistor is electrically connected to a second terminal of the fourth transistor and to the first wiring; a second terminal of the second capacitance is electrically connected to a second terminal of the switch via the first wiring; Semiconductor device.

3. In claim 2, the first layer includes a first current source circuit; an output terminal of the first current source circuit is electrically connected to a first terminal of the first transistor; the first current source circuit has a function of causing a first current to flow from an output terminal of the first current source circuit; The sensor includes: a function of applying a second current in response to information obtained by the sensing; a function of applying an input potential according to an amount of the second current to each of a second terminal of the first capacitance and a second terminal of the second capacitance, the second cell has a function of setting an amount of a current flowing between a first terminal and a second terminal of the third transistor to an amount of the second current by holding a potential corresponding to the second current at a gate of the third transistor; The first cell is a function of setting an amount of a current flowing between a first terminal and a second terminal of the first transistor to an amount of the first current by holding a potential corresponding to the first current at a gate of the first transistor; a function of changing an amount of the first current flowing between the first terminal and the second terminal of the first transistor to an amount of a third current corresponding to an amount of fluctuation of the input potential when an amount of the second current flowing by the sensor changes; the amount of the first current and the amount of the third current are each within a range of a current that flows when the first transistor operates in a subthreshold region; the amount of the second current is in a range of a current that flows when the second transistor operates in a subthreshold region; Semiconductor device.

4. In claim 2 or claim 3, each of the first transistor, the second transistor, the third transistor, and the fourth transistor has a metal oxide in a channel formation region; Semiconductor device.

5. In any one of claims 1 to 4, The sensor includes a photodiode. Semiconductor device.

6. A semiconductor device according to any one of claims 1 to 5, and a housing, The semiconductor device has a function of performing a product-sum operation. electronic equipment.

Citation Information

Patent Citations

  • Event detection device and measurement method for measuring activity of neural network

    JP2006507557A

  • Image pickup element, semiconductor integrated circuit, and image pickup apparatus

    JP2014030170A

  • Semiconductor device and electronic equipment

    JP2019047006A

Cited By

  • Semiconductor device

    JP2025003452A