Semiconductor device and electronic apparatus
The semiconductor device addresses the power and area inefficiencies in hierarchical neural networks by using stacked cell arrays and a drive circuit to reduce the need for coefficient rewriting, enhancing power efficiency and calculation performance.
Patent Information
- Application Number
- PCT/IB2024/051800
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-02
- Filing Date
- 2024-02-26
- Publication Date
- 2024-09-06
AI Technical Summary
Hierarchical neural networks face challenges in reducing power consumption and circuit area due to the need to rewrite weighting coefficients for each layer, especially when the number of neurons and synapses are large, leading to increased power consumption and inefficient calculation efficiency.
A semiconductor device with stacked cell arrays, each corresponding to a layer in the neural network, eliminates the need to rewrite weighting coefficients for each layer, reducing power consumption and circuit area by using multiple cell arrays for large layers and providing a drive circuit for the arithmetic circuit.
This approach reduces power consumption, minimizes circuit area, and maintains calculation efficiency even for small-scale calculations, providing a novel semiconductor device with improved performance.
Smart Images

Figure IB2024051800_06092024_PF_FP
Abstract
Description
Semiconductor devices and electronic devices
[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 and the like 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, specific examples of the technical field of one embodiment of the present invention disclosed in this specification include semiconductor devices, display devices (including liquid crystal display devices), light-emitting devices, power storage devices, imaging devices, memory devices, signal processing devices, processors, electronic devices, systems, driving methods thereof, manufacturing methods thereof, and testing methods thereof.
[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," "brainmorphic," 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 having "neurons" and "synapses" is called an artificial neural network (ANN). For example, Non-Patent Documents 1 and 2 disclose a computing device that configures an artificial neural network using an SRAM (Static Random Access Memory).
[0005] There have also been attempts to use a computing device that configures an artificial neural network to, for example, correct an image displayed on a display device. For example, Patent Document 1 discloses a display device that uses a computing circuit that configures an artificial neural network to adjust the brightness and color tone of a displayed image to suit the preferences of the viewer.
[0006] JP 2018-36639 A
[0007] M. Kang et al. , “IEEE Journal Of Solid-State Circuits”, 2018, Volume 53, No. 2, p. 642-655. J. Zhang et al. , “IEEE Journal Of Solid-State Circuits”, 2017, Volume 52, No. 4, p. 915-924.
[0008] An example of an arithmetic circuit that constitutes an artificial neural network is an arithmetic circuit (hereinafter, sometimes referred to as an analog product-sum arithmetic circuit) that performs a product-sum operation by adding analog currents corresponding to the products of weighting coefficients and input data. Because this arithmetic circuit uses analog currents for calculation, the circuit scale can be smaller than that of an arithmetic circuit constituted by a digital circuit, and as a result, the circuit area can be reduced. Furthermore, by designing this arithmetic circuit to reduce the analog currents used in the calculation, the power consumption of the arithmetic circuit can be reduced.
[0009] A hierarchical neural network, which is one type of artificial neural network, requires a multiply-and-accumulate operation for each layer. When the same arithmetic circuit is used to perform calculations for a hierarchical neural network, the weight coefficients must be rewritten for each layer, which consumes a huge amount of power.
[0010] Furthermore, the number of neurons and synapses in a hierarchical neural network may differ for each layer. In particular, the number of neurons and synapses may be large depending on the layer. Therefore, when performing calculations in a hierarchical neural network using the same calculation circuit, it is necessary to perform multiplication and accumulation calculations of weight coefficients and input data multiple times. In this case, a memory circuit is required to store the calculation results in the middle of the calculation, and the power required to rewrite the weight coefficients also increases.
[0011] An object of one embodiment of the present invention is to provide a semiconductor device with reduced 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 calculation efficiency per area is not reduced even when small-scale calculation is performed.An object of one embodiment of the present invention is to provide a novel semiconductor device.An object of one embodiment of the present invention is to provide an electronic device including the semiconductor device.
[0012] Note that the problem of one embodiment of the present invention is not limited to the above problem. The above problem does 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 above problem and other problems, and does not necessarily solve all of the above problem and other problems.
[0013] One aspect of the present invention is an arithmetic circuit in which a plurality of cell arrays are stacked, each cell array having arithmetic cells arranged in a matrix, each cell array performing a multiplication of first data and second data.
[0014] Each cell array corresponds to a layer in the hierarchical neural network. When a layer in the hierarchical neural network has a large number of neurons and synapses, two or more cell arrays are used for calculations.
[0015] In addition, a driving circuit for the arithmetic circuit can be provided below the stacked cell arrays.
[0016] (1) One embodiment of the present invention is a semiconductor device including a first layer, a second layer, and a third layer. The second layer is located above the first layer, and the third layer is located above the second layer. The first layer includes a first circuit, a second circuit, a third circuit, a fourth circuit, a first switching circuit, a second switching circuit, a third switching circuit, and a fourth switching circuit. The second layer includes a first arithmetic cell, and the third layer includes a second arithmetic cell.
[0017] The first circuit has a function of generating a first current corresponding to first data and a function of generating a second current corresponding to second data. The second circuit has a function of generating a third current corresponding to third data and a function of generating a fourth current corresponding to fourth data. The first switching circuit has a function of establishing a conductive state between one of the first and second arithmetic cells and the first circuit. The second switching circuit has a function of establishing a conductive state between one of the first and second arithmetic cells and one of the second and fourth circuits. The third switching circuit has a function of establishing a conductive state between one of the first and second arithmetic cells and the third circuit. The fourth switching circuit has a function of establishing a conductive state between one of the fourth and fifth circuits and the third circuit. The first arithmetic cell has a function of maintaining a first potential corresponding to the first current and a function of outputting a fifth current corresponding to the product of the first data and the third data when a third potential corresponding to the third current is input. The second processing cell has a function of holding a second potential corresponding to the second current and a function of outputting a sixth current corresponding to the product of the second data and the fourth data when a fourth potential corresponding to the fourth current is input. The third circuit has a function of calculating an activation function using the amount of the fifth current, the amount of the sixth current, or the sum of the amounts of the fifth and sixth currents as input values, and outputting a seventh current as the calculation result. The fourth circuit has a function of holding data corresponding to the seventh current. The third circuit has a function of converting the seventh current into digital data.
[0018] (2) Another embodiment of the present invention is a semiconductor device including a first layer, a second layer, and a third layer, and having a configuration different from that of the semiconductor device described above in (1). The second layer is located above the first layer, and the third layer is located above the second layer. The first layer includes a first circuit, a second circuit, a third circuit, a fourth circuit, and a fifth circuit. The second layer includes a first arithmetic cell, and the third layer includes a second arithmetic cell.
[0019] The first circuit has a function of generating a first current corresponding to first data and a function of generating a second current corresponding to second data. The second circuit has a function of generating a third current corresponding to third data. The third circuit has a function of generating a fourth current corresponding to fourth data. The first arithmetic cell has a function of holding a first potential corresponding to the first current and, upon receiving a third potential corresponding to the third current, outputting a fifth current corresponding to the product of the first data and the third data. The second arithmetic cell has a function of holding a second potential corresponding to the second current and, upon receiving a fourth potential corresponding to the fourth current, outputting a sixth current corresponding to the product of the second data and the fourth data. The fourth circuit has a function of calculating an activation function using the sum of the amount of the fifth current and the amount of the sixth current as an input value and outputting a seventh current as the calculation result. The fifth circuit has a function of converting the seventh current into digital data.
[0020] (3) Another embodiment of the present invention is a semiconductor device including a first layer, a second layer, and a third layer, and having a configuration different from that of the semiconductor device described above in (1) and (2). The second layer is located above the first layer, and the third layer is located above the second layer. The first layer includes a first circuit, a second circuit, and a third circuit. The second layer includes a first arithmetic cell and a fourth circuit. The third layer includes a second arithmetic cell and a fifth circuit.
[0021] The first circuit has a function of generating a first current corresponding to first data and a function of generating a second current corresponding to second data. The second circuit has a function of generating a third current corresponding to third data. The first arithmetic cell has a function of holding a first potential corresponding to the first current and, upon receiving a third potential corresponding to the third current, outputting a fifth current corresponding to the product of the first data and the third data. The fourth circuit has a function of calculating an activation function using the amount of the fifth current as an input value and outputting a fourth current corresponding to fourth data as the calculation result. The second arithmetic cell has a function of holding a second potential corresponding to the second current and, upon receiving a fourth potential corresponding to the fourth current, outputting a sixth current corresponding to the product of the second data and the fourth data. The fifth circuit has a function of calculating an activation function using the amount of the sixth current as an input value and outputting a seventh current as the calculation result. The third circuit has a function of converting the seventh current into digital data.
[0022] (4) Alternatively, according to one embodiment of the present invention, in any one of (1) to (3), each of the first calculation cell and the second calculation cell can include a first transistor, a second transistor, and a capacitor.
[0023] In particular, the first transistor preferably has a first semiconductor layer, a first conductive layer having a region in contact with the upper surface of the first semiconductor layer and functioning as one of the source and drain, a second conductive layer having a region in contact with the upper surface of the first semiconductor layer and functioning as the other of the source and drain, a first insulating layer having regions in contact with the upper surface of the first semiconductor layer, a side surface of the first conductive layer, and a side surface of the second conductive layer, and a third conductive layer located above the first insulating layer and functioning as a gate.
[0024] Furthermore, it is preferable that the capacitive element has a fourth conductive layer that functions and has an area that contacts the upper surface of the second insulating layer and the side of the opening formed in the second insulating layer, a third insulating layer that is located on the fourth conductive layer and functions as a dielectric, a fifth conductive layer that is located above the third insulating layer, a fourth insulating layer that is located above the fifth conductive layer and above the third insulating layer and functions as a dielectric, and a sixth conductive layer that functions and has an area that contacts the upper surface of the fourth conductive layer and the upper surface of the fourth insulating layer.
[0025] Furthermore, the second transistor preferably has a sixth conductive layer located below the fifth insulating layer and functioning as one of the source and drain, a seventh conductive layer located above the fifth insulating layer and functioning as the other of the source and drain, a second semiconductor layer in contact with the side of the opening formed in the fifth insulating layer and in contact with the sixth conductive layer and the seventh conductive layer, a sixth insulating layer located on the second semiconductor layer, and an eighth conductive layer located on the sixth insulating layer and functioning as a gate.
[0026] It is also preferable that the third conductive layer, the fourth conductive layer, the fifth conductive layer, the sixth conductive layer, and the eighth conductive layer have overlapping regions.
[0027] The third conductive layer and the fourth conductive layer are electrically connected to each other.
[0028] (5) Alternatively, according to one embodiment of the present invention, in the above (4), each of the first semiconductor layer and the second semiconductor layer can contain one or more elements selected from indium, zinc, and an element M.
[0029] The element M is one or more selected from aluminum, gallium, silicon, yttrium, tin, copper, vanadium, beryllium, boron, titanium, iron, nickel, germanium, zirconium, molybdenum, lanthanum, cerium, neodymium, hafnium, tantalum, tungsten, cobalt, magnesium, and antimony.
[0030] (6) Another embodiment of the present invention is an electronic device including the semiconductor device described in (5) above and a housing.
[0031] In the semiconductor device of one embodiment of the present invention, a calculation circuit is formed by stacking a plurality of cell arrays, each of which has calculation cells arranged in a matrix, each of which calculates the product of first data and second data. This makes it possible to correspond each cell array to each layer in a hierarchical neural network. This eliminates the need to rewrite weight coefficients for each layer, thereby reducing power consumption required for rewriting.
[0032] Furthermore, even when the number of neurons and synapses in a certain layer of a hierarchical neural network is large, by performing calculations using two or more cell arrays, it is no longer necessary to repeat calculations using the same cell array. In other words, it is no longer necessary to rewrite the weight coefficients each time they are repeated, thereby reducing the power consumption required for rewriting.
[0033] Furthermore, by providing a drive circuit for the arithmetic circuit below the stacked cell arrays, the circuit scale of the arithmetic circuit can be reduced, thereby reducing the circuit area of the arithmetic circuit.
[0034] According to one embodiment of the present invention, a semiconductor device with reduced power consumption can be provided. According to one embodiment of the present invention, a semiconductor device with a reduced circuit area can be provided. According to one embodiment of the present invention, a semiconductor device in which calculation efficiency per area is not reduced even when small-scale calculations are performed can be provided. According to one embodiment of the present invention, a novel semiconductor device can be provided. According to one embodiment of the present invention, an electronic device including the semiconductor device can be provided.
[0035] Note that the effects of one embodiment of the present invention are not limited to the above-described effects. The above-described effects 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. Note that one embodiment of the present invention has at least one of the above-described effects and other effects. Therefore, one embodiment of the present invention may not have the above-described effects in some cases.
[0036] FIG. 1 is a block diagram showing an example of the configuration of an arithmetic circuit. FIG. 2 is a block diagram showing an example of the configuration of an arithmetic circuit. FIGS. 3A to 3D are circuit diagrams showing example configurations of circuits included in the arithmetic circuit. FIG. 4 is a schematic diagram showing an example of a hierarchical neural network. FIG. 5 is a block diagram showing an example of the operation of the arithmetic circuit. FIG. 6 is a block diagram showing an example of the operation of the arithmetic circuit. FIG. 7 is a block diagram showing an example of the operation of the arithmetic circuit. FIG. 8 is a block diagram showing an example of the operation of the arithmetic circuit. FIG. 9 is a block diagram showing an example of the operation of the arithmetic circuit. FIG. 10 is a block diagram showing an example of the operation of the arithmetic circuit. FIG. 11 is a block diagram showing an example of the operation of the arithmetic circuit. FIG. 12 is a block diagram showing an example of the configuration of an arithmetic circuit. FIG. 13 is a block diagram showing an example of the configuration of an arithmetic circuit. FIG. 14 is a schematic diagram showing an example of a hierarchical neural network. FIG. 15 is a block diagram showing an example of the operation of the arithmetic circuit. FIG. 16 is a block diagram showing an example of the configuration of an arithmetic circuit. FIG. 17 is a block diagram showing an example of the configuration of an arithmetic circuit. FIG. 18 is a block diagram showing an example of the configuration of an arithmetic circuit. FIG. 19 is a block diagram showing an example of the configuration of an arithmetic circuit. FIG. 20 is a block diagram showing an example of the configuration of an arithmetic circuit. FIG. 21 is a block diagram showing an example of the configuration of an arithmetic circuit. FIG. 22 is a block diagram showing an example of the operation of the arithmetic circuit. FIG. 23 is a circuit diagram showing an example of the configuration of an arithmetic circuit. FIGS. 24A to 24C are circuit diagrams showing an example of the configuration of a circuit included in the arithmetic circuit. FIGS. 25A to 25D are circuit diagrams showing an example of the configuration of a circuit included in the arithmetic circuit. FIG. 26 is a circuit diagram showing an example of the configuration of a circuit included in the arithmetic circuit. FIG. 27 is a circuit diagram showing an example of the configuration of a circuit included in the arithmetic circuit. FIG. 28 is a timing chart showing an example of the operation of the arithmetic circuit. FIG. 29 is a circuit diagram showing an example of the configuration of a circuit included in the arithmetic circuit. FIG. 30 is a circuit diagram showing an example of the configuration of an arithmetic circuit. FIG. 31 is a circuit diagram showing an example of the configuration of a circuit included in the arithmetic circuit. FIG. 32 is a circuit diagram showing an example of the configuration of a circuit included in the arithmetic circuit. FIG. 33 is a schematic diagram showing an example of the cross-sectional configuration of an arithmetic circuit.FIG. 34A is a schematic plan view showing an example of the configuration of an arithmetic circuit, and FIGS. 34B and 34C are schematic cross-sectional views showing an example of the configuration of an arithmetic circuit. FIG. 35A is a schematic plan view showing an example of a method for fabricating an arithmetic circuit, and FIGS. 35B and 35C are schematic cross-sectional views showing an example of the method for fabricating an arithmetic circuit. FIG. 36A is a schematic plan view showing an example of a method for fabricating an arithmetic circuit, and FIGS. 36B and 36C are schematic cross-sectional views showing an example of the method for fabricating an arithmetic circuit. FIG. 37A is a schematic plan view showing an example of a method for fabricating an arithmetic circuit, and FIGS. 37B and 37C are schematic cross-sectional views showing an example of the method for fabricating an arithmetic circuit. FIG. 38A is a schematic plan view showing an example of a method for fabricating an arithmetic circuit, and FIGS. 38B and 38C are schematic cross-sectional views showing an example of a method for fabricating an arithmetic circuit. FIG. 39A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 39B and 39C are schematic cross-sectional views showing an example of the method for manufacturing an arithmetic circuit. FIG. 40A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 40B and 40C are schematic cross-sectional views showing an example of the method for manufacturing an arithmetic circuit. FIG. 41A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 41B and 41C are schematic cross-sectional views showing an example of the method for manufacturing an arithmetic circuit. FIG. 42A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 42B and 42C are schematic cross-sectional views showing an example of the method for manufacturing an arithmetic circuit. FIG. 43A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 43B and 43C are schematic cross-sectional views showing an example of a method for manufacturing an arithmetic circuit. FIG. 44A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 44B and 44C are schematic cross-sectional views showing an example of the method for manufacturing an arithmetic circuit. FIG. 45A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 45B and 45C are schematic cross-sectional views showing an example of the method for manufacturing an arithmetic circuit. FIG. 46A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 46B and 46C are schematic cross-sectional views showing an example of the method for manufacturing an arithmetic circuit. FIG. 47A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 47B and 47C are schematic cross-sectional views showing an example of the method for manufacturing an arithmetic circuit. FIG. 48A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 48B and 48C are schematic cross-sectional views showing an example of the method for manufacturing an arithmetic circuit.FIG. 49A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 49B and 49C are schematic cross-sectional views showing an example of the method for manufacturing an arithmetic circuit. FIG. 50A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 50B and 50C are schematic cross-sectional views showing an example of the method for manufacturing an arithmetic circuit. FIG. 51A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 51B and 51C are schematic cross-sectional views showing an example of the method for manufacturing an arithmetic circuit. FIG. 52A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 52B and 52C are schematic cross-sectional views showing an example of the method for manufacturing an arithmetic circuit. FIG. 53A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 53B and 53C are schematic cross-sectional views showing an example of a method for manufacturing an arithmetic circuit. FIG. 54A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 54B and 54C are schematic cross-sectional views showing an example of the method for manufacturing an arithmetic circuit. FIG. 55A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 55B and 55C are schematic cross-sectional views showing an example of the method for manufacturing an arithmetic circuit. FIG. 56A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 56B and 56C are schematic cross-sectional views showing an example of the method for manufacturing an arithmetic circuit. FIG. 57A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 57B and 57C are schematic cross-sectional views showing an example of the method for manufacturing an arithmetic circuit. FIG. 58A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 58B and 58C are schematic cross-sectional views showing an example of the method for manufacturing an arithmetic circuit. Fig. 59A is a schematic plan view showing an example of a manufacturing method of an arithmetic circuit, and Figs. 59B and 59C are schematic cross-sectional views showing an example of the manufacturing method of an arithmetic circuit. Fig. 60A is a schematic plan view showing an example of a manufacturing method of an arithmetic circuit, and Figs. 60B and 60C are schematic cross-sectional views showing an example of the manufacturing method of an arithmetic circuit. Fig. 61A is a schematic plan view showing an example of a manufacturing method of an arithmetic circuit, and Figs. 61B and 61C are schematic cross-sectional views showing an example of the manufacturing method of an arithmetic circuit. Fig. 62A is a schematic plan view showing an example of a manufacturing method of an arithmetic circuit, and Figs. 62B and 62C are schematic cross-sectional views showing an example of the manufacturing method of an arithmetic circuit.FIG. 63A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 63B and 63C are schematic cross-sectional views showing an example of the method for manufacturing an arithmetic circuit. FIG. 64A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 64B and 64C are schematic cross-sectional views showing an example of the method for manufacturing an arithmetic circuit. FIG. 65A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 65B and 65C are schematic cross-sectional views showing an example of the method for manufacturing an arithmetic circuit. FIG. 66A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 66B and 66C are schematic cross-sectional views showing an example of the method for manufacturing an arithmetic circuit. FIG. 67A is a schematic plan view showing an example of a method for manufacturing an arithmetic circuit, and FIGS. 67B and 67C are schematic cross-sectional views showing an example of a method for manufacturing an arithmetic circuit. FIG. 68A is a plan view showing an example of a manufacturing method of an arithmetic circuit, and FIGS. 68B and 68C are cross-sectional views showing an example of the manufacturing method of an arithmetic circuit. FIG. 69A is a plan view showing an example of a manufacturing method of an arithmetic circuit, and FIGS. 69B and 69C are cross-sectional views showing an example of the manufacturing method of an arithmetic circuit. FIG. 70A is a plan view showing an example of a manufacturing method of an arithmetic circuit, and FIGS. 70B and 70C are cross-sectional views showing an example of the manufacturing method of an arithmetic circuit. FIG. 71A is a plan view showing an example of a manufacturing method of an arithmetic circuit, and FIGS. 71B and 71C are cross-sectional views showing an example of the manufacturing method of an arithmetic circuit. FIG. 72 is a block diagram illustrating a CPU. FIGS. 73A and 73B are perspective views of a semiconductor device. FIGS. 74A and 74B are perspective views of a semiconductor device. FIGS. 75A and 75B are perspective views of a semiconductor device. FIGS. 76A and 76B are views showing various memory devices by layer. Fig. 77A and Fig. 77B are diagrams showing an example of electronic components. Fig. 78A and Fig. 78B are diagrams showing an example of electronic equipment, and Fig. 78C to Fig. 78E are diagrams showing an example of a mainframe computer. Fig. 79 is a diagram showing an example of space equipment. Fig. 80 is a diagram showing an example of a storage system applicable to a data center.
[0037] In this specification, an arithmetic circuit is a device that utilizes semiconductor characteristics, and refers to a "circuit including a semiconductor element (e.g., a transistor, a diode, and a photodiode)" or a "device having such a circuit." An arithmetic circuit also refers to any device that can function by utilizing semiconductor characteristics. For example, an "integrated circuit," a "chip equipped with an integrated circuit," and an "electronic component having a chip housed in a package" are each an example of an arithmetic circuit. Furthermore, for example, a memory device, a display device, a light-emitting device, a lighting device, and an electronic device may themselves be an arithmetic circuit, or may have an arithmetic circuit.
[0038] In this specification, in an artificial neural network (hereinafter sometimes referred to as a neural network), the connection strength of synapses can be changed by providing existing information to the neural network. This process of providing existing information to the neural network and determining weight coefficients (sometimes referred to as connection strengths) is sometimes referred to as "learning."
[0039] Furthermore, by providing some information to a neural network that has undergone "learning" (with weighting coefficients determined), the neural network can output new information based on the weighting coefficients. 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."
[0040] Examples of neural network models include Hopfield and hierarchical neural networks. In particular, a neural network with a multi-layer structure is sometimes called a "deep neural network" (DNN), and machine learning using a deep neural network is sometimes called "deep learning."
[0041] 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 specific 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 or a layer).
[0042] As an example of a case where X and Y are electrically connected, one or more elements (for example, a switch, a transistor, an inductor, a resistive element, a diode, a display device, a light-emitting device, or a load) 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.
[0043] 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, a logic circuit (for example, an inverter, a NAND circuit, or a NOR circuit), a signal conversion circuit (for example, a digital-analog conversion circuit, an analog-digital conversion circuit, or a gamma correction circuit), a potential level conversion circuit (for example, a power supply circuit (for example, a step-up circuit or a step-down circuit), and a level shifter circuit that changes the potential level of a signal), a voltage source, a current source, a switching circuit, an amplifier circuit (for example, a circuit that can increase the signal amplitude or the amount of current, an operational amplifier, a differential amplifier circuit, a source follower circuit, or a buffer circuit), a signal generation circuit, a memory circuit, or a control circuit) can be connected between X and Y. Note that, 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.
[0044] It should be noted that 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 another circuit sandwiched 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 another circuit sandwiched between them).
[0045] This specification also deals with a circuit configuration in which multiple elements are electrically connected to wiring (wiring that supplies a fixed potential or wiring that transmits a signal). For example, if X and a wiring are directly connected and Y and the wiring are also directly connected, this specification may state that X and Y are directly electrically connected.
[0046] For example, the term "X, Y, the source (sometimes referred to as either the first terminal or the second terminal) and the drain (sometimes referred to as the other of the first terminal or the second terminal) of the transistor are electrically connected to each other, and are electrically connected in the order of X, the source of the transistor, the drain of the transistor, and Y." Alternatively, the term "the source of the transistor is electrically connected to X, the drain of the transistor is electrically connected to Y, and X, the source of the transistor, the drain of the transistor, and Y are electrically connected in this order." Alternatively, the term "X is electrically connected to Y through the source and drain of the transistor, and X, the source of the transistor, the drain of the transistor, and Y are connected in this order." Using a similar expression to these examples, the order of connections in the circuit configuration can be specified to distinguish between the source and drain of the transistor and determine the technical scope. Note that these expression methods are merely examples and are not limiting. Here, X and Y represent objects (e.g., devices, elements, circuits, wiring, electrodes, terminals, conductive films, or layers).
[0047] Note that even when independent components are shown electrically connected to each other 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 both the function of a wiring and the function of an electrode. Therefore, in this specification, the term "electrically connected" also includes such a case where one conductive film has the functions of multiple components.
[0048] Furthermore, in this specification, a "resistance element" can be, for example, a circuit element having a resistance value higher than 0Ω, or a wiring having a resistance value higher than 0Ω. Therefore, in this specification, a "resistance element" includes a wiring having a resistance value, a transistor in which a current flows between the source and drain, a diode, or a coil. Therefore, the term "resistance element" can sometimes be replaced with terms such as "resistance," "load," or "region having a resistance value." Conversely, terms such as "resistance," "load," or "region having a resistance value" can sometimes be replaced with the term "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 can be replaced with a resistance value of 1 Ω or more and 1×10 9 It can be made smaller than Ω.
[0049] 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 higher than 0 F, a parasitic capacitance, or a gate capacitance of a transistor. Furthermore, terms such as "capacitive element," "parasitic capacitance," and "gate capacitance" can sometimes be replaced with the term "capacitance." Conversely, the term "capacitance" can sometimes be replaced with terms such as "capacitive element," "parasitic capacitance," and "gate capacitance." Furthermore, a "capacitive element" (including a "capacitive element" with three or more terminals) includes an insulator and a pair of conductors sandwiching the insulator. Therefore, the term "pair of conductors" in "capacitance" can be replaced with "pair of electrodes," "pair of conductive regions," "pair of regions," or "pair of terminals." Furthermore, the terms "one of the pair of terminals" and "the other of the pair of terminals" may be referred to as a first terminal and a second terminal, respectively. The capacitance value can be, for example, 0.05 fF to 10 pF. Furthermore, it can be, for example, 1 pF to 10 μF.
[0050] 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 potential applied to the three terminals of the transistor. Therefore, in this specification, the terms source and drain may be interchangeable. In addition, in this specification, when describing the connection relationship of a transistor, the terms "one of the source or drain" (sometimes referred to as a "first electrode" or a "first terminal") and "the other of the source or drain" (sometimes referred to as a "second electrode" or a "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 the backgate of the transistor may be referred to as a first gate, and the other of the gate or the backgate of the transistor may be referred to as a second gate. Furthermore, the terms "gate" and "back gate" may be interchangeable for the same transistor. When a transistor has three or more gates, the respective gates may be referred to as a first gate, a second gate, a third gate, etc. in this specification.
[0051] For example, in this specification, a transistor having a multi-gate structure with two or more gate electrodes can be used as an example of a transistor. In a multi-gate structure, the channel formation regions are connected in series, resulting in a structure in which multiple transistors are connected in series. Therefore, the multi-gate structure can reduce the off-state current and improve the breakdown voltage (reliability) of the transistor. Alternatively, when operating in the saturation region, the multi-gate structure can provide voltage-current characteristics with a flat slope, such that the current between the drain and source does not change significantly even when the voltage between the drain and source changes. By utilizing voltage-current characteristics with a flat slope, an ideal current source circuit or an active load with a very high resistance value can be realized. As a result, a differential circuit or a current mirror circuit with excellent characteristics can be realized.
[0052] Furthermore, even when a single circuit element is shown on a circuit diagram, the circuit element may include 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 transistors electrically connected to each other. Similarly, when a circuit diagram shows one switch, this includes two or more transistors electrically connected in series or parallel, with the gates of the transistors electrically connected to each other.
[0053] In this specification and the like, a node can be referred to as a terminal, a wiring, an electrode, a conductive layer, a conductor, or an impurity region depending on the circuit configuration and device structure. Also, a terminal, a wiring, etc. can be referred to as a node.
[0054] 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., and the potential output from a circuit, etc. also change.
[0055] Furthermore, in this specification and the like, the terms "high-level potential" and "low-level potential" do not mean specific potentials. For example, when two wirings are both described as "functioning as wirings that supply a high-level potential," the high-level potentials provided by the two wirings may be different from 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 the two wirings may be different from each other.
[0056] Furthermore, "current" refers to the phenomenon of charge transfer (electrical conduction). For example, the statement "electrical conduction of a positively charged body is occurring" can be rephrased as "electrical conduction of a negatively charged body is occurring in the opposite direction." Therefore, in this specification, unless otherwise specified, "current" refers to the phenomenon of charge transfer (electrical conduction) associated with the movement of carriers. Examples of carriers here include electrons, holes, anions, cations, or complex ions, and the carrier differs depending on the system through which the current flows (e.g., semiconductor, metal, electrolyte, or vacuum). 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 and is expressed as a negative current amount. Therefore, in this specification, unless otherwise specified regarding the positive / negative sign of the current (or the direction of current), the statement "current flows from element A to element B" can be rephrased as "current flows from element B to element A." Furthermore, the statement "current is input to element A" can be rephrased as "current is output from element A."
[0057] Furthermore, in this specification, ordinal numbers such as "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.
[0058] 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 configuration is depicted. Therefore, the terms are not limited to those described in the specification, and can be rephrased appropriately depending on the situation. For example, the expression "insulator located on the upper surface of a conductor" can be rephrased as "insulator located on the lower surface of a conductor" by rotating the orientation of the drawing 180 degrees.
[0059] Furthermore, the terms "above" and "below" do not limit the positional relationship of components to being directly above or below and in direct contact with each other. For example, the expression "electrode B on insulating layer A" does not require that electrode B be formed in direct contact with insulating layer A, and does not exclude the inclusion of other components between insulating layer A and electrode B. Similarly, the expression "electrode B above 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. Similarly, the expression "electrode B below insulating layer A" does not require that electrode B be formed in direct contact below insulating layer A, and does not exclude the inclusion of other components between insulating layer A and electrode B.
[0060] Furthermore, in this specification, terms such as "row" and "column" may be used to describe components arranged in a matrix and their positional relationships. Furthermore, the positional relationships between components change 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 may be rephrased appropriately depending on the situation. For example, the expression "row direction" may be rephrased as "column direction" by rotating the orientation of the drawing by 90 degrees.
[0061] Furthermore, in this specification and the like, the terms "film" and "layer" can be interchanged depending on the situation. For example, the term "conductive layer" may be changed to the term "conductive film". Or, for example, the term "insulating film" may be changed to the term "insulating layer". Furthermore, depending on the situation, the terms "film" and "layer" may not be used and may be replaced with other terms. For example, the terms "conductive layer" or "conductive film" may be changed to the term "conductor". Furthermore, for example, the terms "insulating layer" or "insulating film" may be changed to the term "insulator".
[0062] Furthermore, in this specification and the like, terms such as "electrode," "wiring," and "terminal" do not limit the functionality of these components. For example, an "electrode" may be used as part of a "wiring," and vice versa. Furthermore, terms such as "electrode" or "wiring" include cases where multiple "electrodes" or "wirings" are integrally formed. Furthermore, for example, a "terminal" may be used as part of a "wiring" or "electrode," and vice versa. Furthermore, the term "terminal" includes cases where one or more selected from "electrode," "wiring," and "terminal" 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, the terms "electrode," "wiring," and "terminal" may be replaced with the term "region" in some cases.
[0063] 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" or "power line" may be changed to the term "wiring." The term "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." The term "potential" applied to wiring may be changed to the term "signal" depending on the circumstances. Vice versa, the term "signal" may be changed to the term "potential."
[0064] Furthermore, in this specification and the like, timing charts may be used to explain the operation method of an arithmetic circuit. Furthermore, the timing charts used in this specification and the like illustrate ideal operation examples, and the periods, magnitudes, and timings of signals (e.g., potentials or currents) described in the timing charts are not limited unless otherwise specified. The timing charts described in this specification and the like may change the magnitudes and timings of signals (e.g., potentials or currents) input to each wiring (including nodes) in the timing charts depending on the situation. For example, even if two periods are shown at equal intervals in a timing chart, the lengths of the two periods may be different. Furthermore, for example, even if one period is shown as long and the other period is shown as short, the lengths of the two periods may be equal, or one period may be short and the other period may be long.
[0065] Furthermore, in this specification, flowcharts may be used to explain the operation of an arithmetic circuit. The flowcharts used in this specification show ideal operation examples, and the steps shown in the flowcharts are classified by function and shown as independent steps. However, in actual processing, it is difficult to separate the processing shown in the flowcharts by function, and there may be cases where one step involves multiple steps, or where one step involves multiple steps. Therefore, the processing shown in the flowcharts is not limited to the steps described in this specification, and can be appropriately rearranged depending on the situation. Specifically, the order of steps can be rearranged, and steps can be added or deleted depending on the situation.
[0066] 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 referred to as a transistor including a metal oxide or an oxide semiconductor.
[0067] 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.
[0068] In this specification and the like, the term "impurities" in a semiconductor refers to, for example, elements other than the main component constituting the semiconductor layer. For example, an element with a concentration of less than 0.1 atomic % is an impurity. The presence of impurities may cause one or more of the following: 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 characteristics of the semiconductor 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 component, particularly, for example, hydrogen (also contained in water), lithium, sodium, silicon, boron, phosphorus, carbon, and nitrogen.
[0069] In this specification, a switch refers to a device that can be in a conductive state (on state) or a non-conductive state (off state) and has the function of 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. Therefore, a switch may have two or more terminals through which a current flows, in addition to a control terminal. As an example, an electrical switch, a mechanical switch, or the like can be used. Therefore, unless otherwise specified, the switch is not limited to a specific type.
[0070] 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, and diode-connected transistors), or logic circuits combining these. When a transistor is used as a switch, the "conductive state" of the transistor refers to, for example, a state in which the source electrode and drain electrode of the transistor can be considered to be electrically short-circuited, or a state in which current can flow between the source electrode and drain electrode. 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.
[0071] 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.
[0072] 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.
[0073] In this specification and the like, the configurations shown in each embodiment can be appropriately combined with the configurations shown in other embodiments to form one aspect of the present invention. In addition, when multiple configuration examples are shown in one embodiment, the configuration examples can be appropriately combined with each other.
[0074] In addition, the content (all or part) described in one embodiment can be applied, combined, or replaced with at least one of another content (all or part) described in that embodiment and the content (all or part) described in one or more other embodiments.
[0075] The contents described in the embodiments refer to the contents described in each embodiment using various figures or the contents described using text in the specification.
[0076] Furthermore, a figure (in whole or in part) described in one embodiment can be combined with another part of that figure, another figure (in whole or in part) described in that embodiment, and at least one figure (in whole or in part) described in one or more other embodiments to form even more figures.
[0077] The embodiments described in this specification are 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.
[0078] In this specification, when the same reference numeral is used for multiple elements, and particularly when it is necessary to distinguish between them, an identification symbol such as "_1", "[n]", "[m, n]" may be added to the reference numeral. Also, when an identification symbol such as "_1", "[n]", "[m, n]" is added to the reference numeral in the drawings, etc., the identification symbol may not be added if it is not necessary to distinguish between them in this specification.
[0079] 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.
[0080] Embodiment 1 In this embodiment, a semiconductor device of one embodiment of the present invention will be described.
[0081] 1 is a block diagram showing a configuration example of an arithmetic circuit CDV1, which is a semiconductor device according to one embodiment of the present invention. The arithmetic circuit CDV1, for example, has a function of calculating the sum of products of a plurality of first data items and a plurality of second data items and a function of performing a function operation using the sum of products as an input value. Furthermore, the sum-of-products operation circuit, for example, has a function of performing an operation of a hierarchical neural network. In this case, for example, the plurality of first data items are treated as weight data (sometimes referred to as weight coefficients), and the plurality of second data items are treated as data to be input to neurons (sometimes referred to as input data).
[0082] The arithmetic circuit CDV1 has, for example, layers LY[0] to LY[3]. In addition, in the arithmetic circuit CDV1, for example, the layer LY[1] is located above the layer LY[0], the layer LY[2] is located above the layer LY[1], and the layer LY[3] is located above the layer LY[2].
[0083] The circuits included in the arithmetic circuit CDV1 can be classified into layers LY[0] to LY[3] according to their functions. For example, the arithmetic circuit CDV1 includes a cell array having arithmetic cells in each of the layers LY[1] to LY[3], and includes a drive circuit, a power supply circuit, an input / output circuit, and the like for driving the cell array in the layer LY[0].
[0084] In the arithmetic circuit CDV1 of FIG. 1, the layer LY[0] includes, as an example, a circuit WCS, a circuit XCS, a circuit RLC, a circuit ADC, a switching circuit WSWC, a switching circuit XSWC, a switching circuit RSWC, a switching circuit ASWC, a holding circuit MA, a circuit WSD, a control circuit CTL, and a power supply circuit GEN.
[0085] Furthermore, the layer LY[1] has a cell array CA[1], the layer LY[2] has a cell array CA[2], and the layer LY[3] has a cell array CA[3].
[0086] As an example, each of cell arrays CA[1] to CA[3] has a plurality of calculation cells, and the plurality of calculation cells are arranged in a matrix in each of cell arrays CA[1] to CA[3].
[0087] The arithmetic cells included in each of the cell arrays CA[1] to CA[3] have a function of holding first data (weighting coefficients), for example. Furthermore, when a signal serving as second data is input, the arithmetic cells have a function of outputting an analog current of an amount corresponding to the product of the first data and the second data. A specific configuration example of the arithmetic cells will be described in the second embodiment.
[0088] The layer LY[0] can be formed by, for example, providing circuit elements such as transistors and capacitors on a substrate. The substrate can be a semiconductor substrate (e.g., a single-crystal substrate made of silicon or germanium). Other than semiconductor substrates, examples of usable substrates include an SOI (silicon-on-insulator) substrate, a glass substrate, a quartz substrate, a plastic substrate, a sapphire glass substrate, a metal substrate, a stainless steel substrate, a substrate with stainless steel foil, a tungsten substrate, a substrate with 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 plastics such as polyethylene terephthalate (PET), polyethylene naphthalate (PEN), polyethersulfone (PES), and polytetrafluoroethylene (PTFE). Another example is a synthetic resin such as acrylic. Another example is polypropylene, polyester, polyvinyl fluoride, or polyvinyl chloride. Another example is polyamide, polyimide, aramid, epoxy resin, inorganic vapor deposition film, or paper. If the manufacturing process of the arithmetic circuit CDV1 includes heat treatment, it is preferable to select a material with high heat resistance for the substrate.
[0089] In this embodiment, the substrate included in the layer LY[0] is described as a semiconductor substrate containing silicon.
[0090] By using a semiconductor substrate made of silicon as the substrate included in layer LY[0], the transistors included in each of the circuits WCS, XCS, RLC, ADC, WSWC, XSWC, RSWC, ASWC, MA, WSD, CTL, and GEN can be formed on the semiconductor substrate. In this case, the transistors are transistors containing silicon in their channel formation regions (hereinafter referred to as "Si transistors"). Si transistors have high field-effect mobility and can therefore pass large on-state currents. This makes it possible to increase the drive speed of each of the above-mentioned circuits and widen the signal range.
[0091] The stacked structure of the layer LY[0] and the layer LY[1] can be fabricated by directly forming the layer LY[1] on top of the layer LY[0]. Alternatively, the layer LY[1] can be fabricated by mounting a substrate on top of the layer LY[0], on which circuit elements such as transistors and capacitors are provided.
[0092] When the layer LY[1] is formed directly on the layer LY[0], the layer LY[1] preferably includes an OS transistor. OS transistors can be formed not only on a semiconductor substrate but also on an insulating substrate, a conductive substrate, or even on a conductive film, an insulating film, or a semiconductor film. Therefore, they can be easily provided on the semiconductor substrate (on the layer LY[0]) on which Si transistors are formed. Therefore, the transistors included in the cell array CA[1] of the layer LY[1] can be OS transistors.
[0093] Furthermore, when forming circuit elements such as transistors and capacitors on a substrate as the layer LY[1] and mounting the substrate on the layer LY[0], methods such as flip-chip bonding and wire bonding can be used. Alternatively, a first bonding layer can be provided on the layer LY[0] side, a second bonding layer can be provided on the substrate of the layer LY[1], and the first and second bonding layers can be bonded together using one or both of a surface activated bonding method and a hydrophilic bonding method, thereby mounting the layer LY[1] on the layer LY[0]. In particular, bonding in which copper (Cu) is used as the conductor contained in each of the first and second bonding layers and the copper (Cu) layers are bonded together is called Cu-Cu bonding.
[0094] Furthermore, by using the same method as above, a layer LY[2] can be formed on top of the layer LY[1]. Similarly, a layer LY[3] can be formed on top of the layer LY[2].
[0095] Structure examples of a Si transistor and an OS transistor will be described in detail in Embodiment 3. Characteristics of an OS transistor will be described in detail in Embodiment 4.
[0096] In FIG. 1, the circuits WCS, XCS, RLC, ADC, WSWC, XSWC, RSWC, ASWC, MA, WSD, CTL, and GEN included in the layer LY[0] are electrically connected to the bus wiring BS, as an example.
[0097] In particular, the control circuit CTL has the function of controlling each of the circuit WCS, the circuit XCS, the circuit RLC, the circuit ADC, the switching circuit WSWC, the switching circuit XSWC, the switching circuit RSWC, the switching circuit ASWC, the holding circuit MA, the circuit WSD, and the power supply circuit GEN.
[0098] Specifically, the control circuit CTL has the function of performing general-purpose processing such as running an operating system, controlling data, and executing various calculations and programs.
[0099] Therefore, the control circuit CTL can include a processor such as a CPU (Central Processing Unit), a GPU (Graphics Processing Unit), etc. Furthermore, the arithmetic circuit CDV1 itself can function as a processor.
[0100] The power supply circuit GEN has a function of generating voltages to be supplied to circuits included in the layer LY[0] (control circuit CTL, circuit WCS, circuit XCS, circuit RLC, circuit ADC, switching circuit WSWC, switching circuit XSWC, switching circuit RSWC, switching circuit ASWC, holding circuit MA, and circuit WSD), arithmetic cells included in cell arrays CA[1] to CA[3], and the like. It is preferable that the power supply circuit GEN has a function of selecting the circuit to which to supply voltage. For example, the power supply circuit GEN can reduce the power consumption of the entire arithmetic circuit CDV1 by stopping the supply of voltage to circuits related to the arithmetic operation during periods when the arithmetic operation circuit CDV1 is not performing an operation.
[0101] For example, the circuit WSD functions as a driver circuit that selects a target arithmetic cell to which the first data (weight coefficient) is written in the cell arrays CA[1] to CA[3].
[0102] 2 is a block diagram illustrating the connections of multiple circuits included in the arithmetic circuit CDV1. Note that Fig. 2 excerpts the circuit WCS, the circuit XCS, the circuit RLC, the circuit ADC, the switching circuit WSWC, the switching circuit XSWC, the switching circuit RSWC, the switching circuit ASWC, the holding circuit MA, and the cell arrays CA[1] to CA[3].
[0103] 2, the circuit WCS includes, for example, a terminal WITS that functions as an input terminal and a terminal WOTS that functions as an output terminal, and the switching circuit WSWC includes, for example, a terminal WSIS that functions as an input terminal and terminals WSOS[1] to WSOS[3] that function as output terminals.
[0104] For example, the terminal WOTS of the circuit WCS is electrically connected to the terminal WSIS of the switching circuit WSWC. Furthermore, for example, the terminal WSOS[1] of the switching circuit WSWC is electrically connected to the cell array CA[1] via the wiring WCL1. Furthermore, for example, the terminal WSOS[2] of the switching circuit WSWC is electrically connected to the cell array CA[2] via the wiring WCL2. Furthermore, for example, the terminal WSOS[3] of the switching circuit WSWC is electrically connected to the cell array CA[3] via the wiring WCL3.
[0105] 2, the circuit XCS has, for example, a terminal XITS that functions as an input terminal and a terminal XOTS that functions as an output terminal, and the switching circuit XSWC has, for example, terminals XSISA and XSISB that function as input terminals and terminals XSOS[1] to XSOS[3] that function as output terminals.
[0106] For example, the terminal XOTS of the circuit XCS is electrically connected to the terminal XSISA of the switching circuit XSWC. For example, the terminal XSOS[1] of the switching circuit XSWC is electrically connected to the cell array CA[1] via the wiring XCL1. For example, the terminal XSOS[2] of the switching circuit XSWC is electrically connected to the cell array CA[2] via the wiring XCL2. For example, the terminal XSOS[3] of the switching circuit XSWC is electrically connected to the cell array CA[3] via the wiring XCL3. For example, the terminal XSISB of the switching circuit XSWC is electrically connected to the holding circuit MA.
[0107] 2, the circuit RLC has, for example, a terminal RITS that functions as an input terminal and a terminal ROTS that functions as an output terminal, and the switching circuit RSWC has, for example, terminals RSIS[1] to RSIS[3] that function as input terminals and a terminal RSOS that functions as an output terminal.
[0108] For example, the terminal RSIS[1] of the switching circuit RSWC is electrically connected to the cell array CA[1]. For example, the terminal RSIS[2] of the switching circuit RSWC is electrically connected to the cell array CA[2]. For example, the terminal RSIS[3] of the switching circuit RSWC is electrically connected to the cell array CA[3]. For example, the terminal RSOS of the switching circuit RSWC is electrically connected to the terminal ROTS of the circuit RLC.
[0109] 2, the circuit ADC has, for example, a terminal AITS that functions as an input terminal and a terminal AOTS that functions as an output terminal, and the switching circuit ASWC has, for example, a terminal ASIS that functions as an input terminal and terminals ASOSA and ASOSB that function as output terminals.
[0110] The terminal ASIS of the switching circuit ASWC is electrically connected to the terminal ROTS of the circuit RLC, the terminal ASOSA of the switching circuit ASWC is electrically connected to the terminal AITS of the circuit ADC, and the terminal ASOSB of the switching circuit ASWC is electrically connected to the holding circuit MA.
[0111] As an example, the circuit WCS has a function of converting digital data input to a terminal WITS of the circuit WCS into an analog current corresponding to the value of first data, and a function of outputting the analog current to a terminal WOTS.
[0112] The circuit WCS can be configured to perform driving in response to a control signal from the control circuit CTL, for example.
[0113] For example, the switching circuit WSWC has a function of bringing the terminal WSIS and any one of the terminals WSOS[1] to WSOS[3] into a conductive state, and bringing the terminal WSIS and each of the remaining two of the terminals WSOS[1] to WSOS[3] into a non-conductive state. Also, for example, the switching circuit WSWC can have a function of bringing the terminal WSIS and each of the terminals WSOS[1] to WSOS[3] into a non-conductive state.
[0114] It is preferable that the switching circuit WSWC is configured to switch between a conductive state and a non-conductive state between the terminals of the switching circuit WSWC by receiving a control signal from the control circuit CTL, for example.
[0115] For example, the circuit XCS has a function of converting digital data input to a terminal XITS of the circuit XCS into an analog current corresponding to the value of second data, and a function of outputting the analog current to a terminal XOTS. The circuit XCS also has a function of outputting an analog current corresponding to the value of reference data (described in the second embodiment) required for calculation to the terminal XOTS.
[0116] As an example, it is preferable that the circuit XCS is configured to select, as the current to be output to the terminal XOTS, either an analog current corresponding to the value of the second data or an analog current corresponding to the value of the reference data in response to a control signal from the control circuit CTL.
[0117] For example, the switching circuit XSWC has a function of establishing a conductive state between one of the terminals XSISA and XSISB and any one of the terminals XSOS[1] to XSOS[3]. Furthermore, for example, the switching circuit XSWC can have a function of establishing a non-conductive state between a selected terminal and a non-selected terminal, and between the non-selected terminals. For example, when the terminal XSISA and the terminal XSOS[1] are established in a conductive state, the selected terminal XSISA is established in a non-conductive state with the non-selected terminals XSOS[2] and XSOS[3], and the non-selected terminal XSISB is established in a non-conductive state with the non-selected terminals XSOS[2] and XSOS[3].
[0118] It is preferable that the switching circuit XSWC is configured to switch between a conductive state and a non-conductive state between the terminals of the switching circuit XSWC by receiving a control signal from the control circuit CTL, for example.
[0119] For example, the switching circuit RSWC has a function of bringing any one of the terminals RSIS[1] to RSIS[3] into a conductive state and the terminal RSOS, and bringing each of the remaining two of the terminals RSIS[1] to RSIS[3] into a non-conductive state and the terminal RSOS. Also, for example, the switching circuit RSWC can have a function of bringing each of the terminals RSIS[1] to RSIS[3] into a non-conductive state and the terminal RSOS.
[0120] It is preferable that the switching circuit RSWC is configured to switch between a conductive state and a non-conductive state between the terminals of the switching circuit RSWC by receiving a control signal from the control circuit CTL, for example.
[0121] The circuit RLC has, as an example, a function-based arithmetic circuit, which performs an operation according to the function using data corresponding to an analog current input to a terminal RITS as an input value, and outputs data resulting from the operation as an analog current to a terminal ROTS.
[0122] The above-mentioned functions function as activation functions in the neural network, such as a sigmoid function, a tanh function, a softmax function, a ReLU function, or a threshold function.
[0123] The switching circuit ASWC has, for example, a function of bringing the terminal ASIS into a conductive state with one of the terminals ASOSA and ASOSB, and a function of bringing the terminal ASIS into a non-conductive state with the other of the terminals ASOSA and ASOSB. Also, for example, the switching circuit ASWC can have a function of bringing the terminal ASIS into a non-conductive state with each of the terminals ASOSA and ASOSB.
[0124] It is preferable that the switching circuit ASWC is configured to switch between a conductive state and a non-conductive state between the terminals of the switching circuit ASWC by receiving a control signal from the control circuit CTL, for example.
[0125] The circuit ADC has, for example, an analog-to-digital conversion circuit, and has a function of generating digital data (sometimes referred to as a digital voltage) according to the amount of analog current input to the terminal AITS and outputting the digital data to the terminal AOTS.
[0126] As an example, the holding circuit MA has the function of acquiring the analog current output from the terminal ASOSB of the switching circuit ASWC and holding data corresponding to the amount of the analog current, and the function of outputting the held data as an analog current to the terminal XSISB of the switching circuit XSWC.
[0127] Preferably, the holding circuit MA is configured to hold data corresponding to the amount of analog current in response to a control signal from the control circuit CTL, or to output the held data as an analog current.
[0128] <<Configuration Example of Switching Circuit>> Here, a description will be given of configuration examples of the switching circuit WSWC, the switching circuit XSWC, the switching circuit RSWC, and the switching circuit ASWC shown in FIG.
[0129] As an example, the switching circuit WSWC can be configured to include an analog demultiplexer ADMX_W as shown in FIG. 3A.
[0130] The input terminal of the analog demultiplexer ADMX_W is electrically connected to the terminal WSIS of the switching circuit WSWC, and each of the multiple output terminals of the analog demultiplexer ADMX_W is separately electrically connected to the terminals WSOS[1] to WSOS[3] of the switching circuit WSWC.
[0131] As an example, the switching circuit XSWC can be configured to include an analog multiplexer AMX_X and an analog demultiplexer ADMX_X, as shown in FIG. 3B.
[0132] The multiple input terminals of the analog multiplexer AMX_X are electrically connected to the terminals XSISA and XSISB of the switching circuit XSWC, respectively. The output terminal of the analog multiplexer AMX_X is electrically connected to the input terminal of the analog demultiplexer ADMX_X, respectively. The multiple output terminals of the analog demultiplexer ADMX_X are electrically connected to the terminals XSOS[1] to XSOS[3] of the switching circuit XSWC, respectively.
[0133] As an example, the switching circuit RSWC can be configured to include an analog multiplexer AMX_R as shown in FIG. 3C.
[0134] The multiple input terminals of the analog multiplexer AMX_R are each electrically connected to a terminal RSIS[1] to a terminal RSIS[3] of the switching circuit RSWC, and the output terminal of the analog multiplexer AMX_R is electrically connected to a terminal RSOS of the switching circuit RSWC.
[0135] As an example, the switching circuit ASWC can be configured to include an analog demultiplexer ADMX_A as shown in FIG. 3D.
[0136] An input terminal of the analog demultiplexer ADMX_A is electrically connected to a terminal ASIS of the switching circuit ASWC, and each of a plurality of output terminals of the analog demultiplexer ADMX_A is electrically connected separately to a terminal ASOSA and a terminal ASOSB of the switching circuit ASWC.
[0137] Note that the switching circuit WSWC, the switching circuit XSWC, the switching circuit RSWC, and the switching circuit ASWC shown in Figures 3A to 3D are each an example, and the circuit configurations of the switching circuit WSWC, the switching circuit XSWC, the switching circuit RSWC, and the switching circuit ASWC can be changed depending on the situation.
[0138] <<Operation Example 1>> Next, an operation example of the arithmetic circuit CDV1 shown in Figure 1 and Figure 2 will be described. Here, as an example, an operation example of the arithmetic circuit CDV1 will be described using the hierarchical neural network model of Figure 4.
[0139] 4 shows an example of a model of a hierarchical neural network that can be calculated by the calculation circuit CDV1, and the neural network has an input layer IPL, intermediate layers HIDL1 and HIDL2, and an output layer OPL. Note that the intermediate layer may also be called a hidden layer.
[0140] The input layer IPL is a layer that contains input values for performing calculations in the hierarchical neural network. In this operation example, the input layer IPL has X(1) as an input value. As an example, X(1) is a matrix with 1 row and p columns (p is an integer equal to or greater than 1).
[0141] As an example, the hidden layer HIDL1 acquires X(1) output from the input layer IPL, calculates X(1)W(1), and generates an activation function F 1 (Y(1)) and calculate the activation function result X(2) (=F 1 (Y(1))). W(1) is a weighting coefficient in the hidden layer HIDL1, and is, for example, a matrix with p rows and q columns (q is an integer equal to or greater than 1). 1 ( ) is the activation function in the hidden layer HIDL1. Furthermore, by the above calculation, X(2) becomes a matrix with 1 row and q columns.
[0142] As an example, the hidden layer HIDL2 acquires X(2) output from the hidden layer HIDL1, calculates X(2)W(2), and generates an activation function F 2 (Y(2)) and calculate the activation function result X(3) (=F 2 (Y(2))). W(2) is a weighting coefficient in the hidden layer HIDL2, and is, for example, a matrix of q rows and r columns (r is an integer equal to or greater than 1). 2 ( ) is the activation function in the hidden layer HIDL2. Furthermore, by the above calculation, X(3) becomes a matrix with 1 row and r columns.
[0143] As an example, the output layer OPL acquires X(3) output from the intermediate layer HIDL2, calculates X(3)W(3), and generates an activation function F 3 (Y(2)) and calculate the activation function Z (=F 3 (Y(3))). W(3) is a weighting coefficient in the output layer OPL, and is, for example, a matrix of r rows and s columns (s is an integer equal to or greater than 1). 3 ( ) is the activation function in the output layer OPL. Furthermore, by the above calculation, Z is output as an output value of the hierarchical neural network in FIG. 4 as a matrix with 1 row and s columns.
[0144] When the hierarchical neural network of Figure 4 is performed in the calculation circuit CDV1, weighting factors W(1) to W(3) are written to each of the cell arrays CA[1] to CA[3] as a preliminary preparation for the calculation.
[0145] For example, an example in which a weighting factor W(1) is written to cell array CA[1] is shown in FIG.
[0146] 5, the wiring connected to the terminal WITS of the circuit WCS is shown by a solid line, indicating that the weighting factor W(1) is input to the terminal WITS, and the wiring WCL1 is shown by a solid line, indicating that the weighting factor W(1) is transmitted from the circuit WCS to the cell array CA[1] via the switching circuit WSWC. The other wirings are shown by dashed lines.
[0147] In FIG. 5, first, in the switching circuit WSWC, an operation is performed to bring the terminal WSIS and the terminal WSOS[1] into a conductive state, and bring the terminal WSIS into a non-conductive state with each of the terminals WSOS[2] and WSOS[3].
[0148] Next, the weighting factor W(1) is input as digital data to the terminal WITS of the circuit WCS. The circuit WCS converts the weighting factor W(1), which is digital data, into an analog current. This analog current flows from the terminal WOTS of the circuit WCS to the terminal WSIS of the switching circuit WSWC. Since the terminal WSIS and the terminal WSOS[1] are in a conductive state, this analog current flows to the cell array CA[1].
[0149] The analog current flows into the processing cell included in the cell array CA[1]. At this time, the processing cell maintains a potential corresponding to the amount of the analog current. As a result, the weighting factor W(1) is written into the cell array CA[1].
[0150] Similarly, an example of writing a weighting factor W(2) to the cell array CA[2] is shown in FIG.
[0151] 6, the wiring connected to the terminal WITS of the circuit WCS is shown by a solid line, indicating that the weighting factor W(2) is input to the terminal WITS, and the wiring WCL2 is shown by a solid line, indicating that the weighting factor W(2) is transmitted from the circuit WCS to the cell array CA[2] via the switching circuit WSWC. The other wirings are shown by dashed lines.
[0152] In FIG. 6, first, in the switching circuit WSWC, an operation is performed to bring the terminal WSIS and the terminal WSOS[2] into a conductive state, and bring the terminal WSIS into a non-conductive state with each of the terminals WSOS[1] and WSOS[3].
[0153] Next, the weighting factor W(2) is input as digital data to the terminal WITS of the circuit WCS. The circuit WCS converts the digital weighting factor W(2) into an analog current. This analog current flows from the terminal WOTS of the circuit WCS to the terminal WSIS of the switching circuit WSWC. Since the terminal WSIS and the terminal WSOS[2] are in a conductive state, this analog current flows to the cell array CA[2].
[0154] The analog current flows into the processing cell included in the cell array CA[2]. At this time, the processing cell maintains a potential corresponding to the amount of the analog current. As a result, the weighting factor W(2) is written into the cell array CA[2].
[0155] For writing the weighting factor W(3) to the cell array CA[3], see the descriptions of FIGS. 5 and 6.
[0156] FIG. 7 shows an example in which the calculation circuit CDV1 performs calculations for the hidden layer HIDL1 of the hierarchical neural network of FIG.
[0157] 7, the wiring connected to the terminal XITS of the circuit XCS is shown with a solid line, indicating that input data X(1) is input to the terminal XITS. Also, the wiring XCL1 is shown with a solid line, indicating that input data X(1) is transmitted from the circuit XCS to the cell array CA[1] via the switching circuit XSWC. Also, in FIG. 7, the wiring from the cell array CA[1] to the circuit RLC via the switching circuit RSWC is shown with a solid line, indicating that an analog current corresponding to X(1)W(1) flows from the cell array CA[1] to the circuit RLC via the switching circuit RSWC. Also, in FIG. 7, the wiring connected to the terminal AOTS of the circuit ADC is shown with a solid line, indicating that input data X(2) is output from the circuit RLC via the switching circuit ASWC and the circuit ADC. The other wiring is shown with dashed lines.
[0158] In Figure 7, first, in the switching circuit XSWC, an operation is performed to bring the terminal XSISA and the terminal XSOS[1] into a conductive state, bring the terminal XSISA and each of the terminals XSOS[2] and XSOS[3] into a non-conductive state, and bring the terminal XSISB into a non-conductive state between the terminal XSISA and each of the terminals XSOS[1] to XSOS[3].
[0159] In addition, the switching circuit RSWC performs an operation to bring the terminal RSIS[1] and the terminal RSOS into a conductive state, and bring the terminals RSIS[2] and RSIS[3] and the terminal RSOS into a non-conductive state.
[0160] Furthermore, in the switching circuit ASWC, an operation is performed to bring the terminals ASIS and ASOSA into a conductive state and the terminals ASIS and ASOSB into a non-conductive state.
[0161] Next, input data X(1) from the input layer IPL is input as digital data to the terminal XITS of the circuit XCS. Note that the input data X(1) can be transmitted from, for example, a storage device (not shown) provided outside the arithmetic circuit CDV1.
[0162] The circuit XCS converts the input X(1) from digital data into an analog current. The analog current corresponding to X(1) flows from the terminal XOTS of the circuit XCS to the terminal XSISA of the switching circuit XSWC. Since the terminal XSISA and the terminal XSOS[1] are in a conductive state, the analog current corresponding to X(1) flows to the cell array CA[1].
[0163] An analog current corresponding to X(1) flows through a computation cell included in cell array CA[1], causing the computation cell to multiply the input data X(1) by the stored weighting coefficient W(1) and output an analog current corresponding to the multiplication result, X(1)W(1). Note that the analog current corresponding to X(1)W(1) flows through switching circuit RSWC. Furthermore, because there is a conductive state between terminal RSIS[1] and terminal RSOS, the analog current corresponding to X(1)W(1) flows through circuit RLC.
[0164] As an analog current corresponding to X(1)W(1) flows through the circuit RLC, the circuit RLC performs an activation function calculation using X(1)W(1) as an input value and outputs an analog current corresponding to X(2), which is the result of the calculation. Note that the analog current corresponding to X(2) flows through the switching circuit ASWC. Furthermore, since there is a conductive state between the terminal ASIS and the terminal ASOSA, the analog current corresponding to X(2) flows through the circuit ADC.
[0165] When an analog current corresponding to X(2) flows through the circuit ADC, the circuit ADC converts the analog current corresponding to X(2) into digital data and outputs the digital data to the terminal AOTS. The digital data can be stored in a storage device (not shown) external to the arithmetic circuit CDV1. This completes the calculation of the hidden layer HIDL1 of the hierarchical neural network of FIG. 4.
[0166] FIG. 8 shows an example in which the calculation circuit CDV1 performs calculations for the intermediate layer HIDL2 of the hierarchical neural network of FIG.
[0167] In FIG. 8 , the wiring connected to the terminal XITS of the circuit XCS is shown with a solid line, indicating that input data X(2) is input to the terminal XITS. The wiring XCL2 is shown with a solid line, indicating that input data X(2) is transmitted from the circuit XCS to the cell array CA[2] via the switching circuit XSWC. Also, in FIG. 8 , the wiring from the cell array CA[2] to the circuit RLC via the switching circuit RSWC is shown with a solid line, indicating that an analog current corresponding to X(2)W(2) flows from the cell array CA[2] to the circuit RLC via the switching circuit RSWC. Also, in FIG. 8 , the wiring connected to the terminal AOTS of the circuit ADC is shown with a solid line, indicating that input data X(3) is output from the circuit RLC via the switching circuit ASWC and the circuit ADC. The other wiring is shown with dashed lines.
[0168] In Figure 8, first, in the switching circuit XSWC, an operation is performed to bring the terminal XSISA and the terminal XSOS[2] into a conductive state, bring the terminal XSISA into a non-conductive state with the terminal XSISA and each of the terminals XSOS[1] and XSOS[3], and bring the terminal XSISB into a non-conductive state with the terminal XSISA and each of the terminals XSOS[1] to XSOS[3].
[0169] In addition, the switching circuit RSWC performs an operation to bring the terminal RSIS[2] and the terminal RSOS into a conductive state, and bring the terminals RSIS[1] and RSIS[3] and the terminal RSOS into a non-conductive state.
[0170] Furthermore, in the switching circuit ASWC, an operation is performed to bring the terminals ASIS and ASOSA into a conductive state and the terminals ASIS and ASOSB into a non-conductive state.
[0171] Next, input data X(2) from the hidden layer HIDL1 is input as digital data to the terminal XITS of the circuit XCS. Note that the input data X(2) can be transmitted from, for example, a storage device (not shown) provided outside the arithmetic circuit CDV1.
[0172] The circuit XCS converts the input X(2) from digital data into an analog current. The analog current corresponding to X(2) flows from the terminal XOTS of the circuit XCS to the terminal XSISA of the switching circuit XSWC. Since the terminal XSISA and the terminal XSOS[2] are in a conductive state, the analog current corresponding to X(2) flows to the cell array CA[2].
[0173] An analog current corresponding to X(2) flows through a computation cell included in cell array CA[2], causing the computation cell to multiply the input data X(2) by the stored weighting factor W(2) and output an analog current corresponding to the multiplication result, X(2)W(2). Note that the analog current corresponding to X(2)W(2) flows through switching circuit RSWC. Furthermore, because there is electrical continuity between terminal RSIS[2] and terminal RSOS, the analog current corresponding to X(2)W(2) flows through circuit RLC.
[0174] As an analog current corresponding to X(2)W(2) flows through the circuit RLC, the circuit RLC performs an activation function calculation using X(2)W(2) as an input value and outputs an analog current corresponding to X(3), which is the result of the calculation. Note that the analog current corresponding to X(3) flows through the switching circuit ASWC. Furthermore, because there is a conductive state between the terminal ASIS and the terminal ASOSA, the analog current corresponding to X(3) flows through the circuit ADC.
[0175] When an analog current corresponding to X(3) flows through the circuit ADC, the circuit ADC converts the analog current corresponding to X(3) into digital data and outputs the digital data to the terminal AOTS. The digital data can be stored in a storage device (not shown) external to the arithmetic circuit CDV1. This completes the calculation of the hidden layer HIDL2 of the hierarchical neural network of FIG. 4.
[0176] 7 and 8 can be referred to for the calculation of the output layer OPL of the hierarchical neural network of Fig. 4. Specifically, X(3), which is the calculation result of the hidden layer HIDL2, is input to the circuit XCS, X(3)W(3) is calculated in the cell array CA[3], and an activation function is calculated in the circuit RLC using X(3)W(3) as an input value, so that Z, which is the result of the calculation of the activation function, can be output from the terminal AOTS of the circuit ADC as the output value of the output layer OPL.
[0177] 7 and 8 show an example in which the output value X(2) of the intermediate layer HIDL1 and the output value X(3) of the intermediate layer HIDL2 are output to the outside of the arithmetic circuit CDV1, but the operation method of the arithmetic circuit of one embodiment of the present invention is not limited to this. The output value X(2) of the intermediate layer HIDL1 and the output value X(3) of the intermediate layer HIDL2 can be held in a holding circuit MA provided in the arithmetic circuit CDV1, for example.
[0178] The operation example shown in FIG. 9 is a modified example of the operation example of FIG. 7, and differs from the operation example of FIG. 7 in that, in the switching circuit ASWC, the terminals ASIS and ASOSB are in a conductive state, and the terminals ASIS and ASOSA are in a non-conductive state.
[0179] 9, the wiring connected to the terminal XITS of the circuit XCS is shown with a solid line, indicating that input data X(1) is input to the terminal XITS. Also, the wiring XCL1 is shown with a solid line, indicating that input data X(1) is transmitted from the circuit XCS to the cell array CA[1] via the switching circuit XSWC. Also, in FIG. 9, the wiring from the cell array CA[1] to the circuit RLC via the switching circuit RSWC is shown with a solid line, indicating that an analog current corresponding to X(1)W(1) flows from the cell array CA[1] to the circuit RLC via the switching circuit RSWC. Also, in FIG. 9, the wiring between the switching circuit ASWC and the holding circuit MA is shown with a solid line, indicating that input data X(2) is input from the circuit RLC to the holding circuit MA via the switching circuit ASWC. The other wiring is shown with dashed lines.
[0180] In the switching circuit ASWC, the terminals ASIS and ASOSB are in a conductive state, so that an analog current corresponding to X(2), which is the calculation result of the activation function in the circuit RLC, flows to the holding circuit MA. As the analog current flows through the holding circuit MA, the holding circuit MA holds a potential corresponding to the analog current.
[0181] Thereafter, as shown in FIG. 10, in the switching circuit XSWC, the terminal XSISB and the terminal XSOS[2] are brought into a conductive state, the terminal XSISB and each of the terminals XSOS[1] and XSOS[3] are brought into a non-conductive state, and the terminal XSISA and the terminal XSISB and each of the terminals XSOS[1] to XSOS[3] are brought into a non-conductive state.
[0182] 10, the wiring between the holding circuit MA and the switching circuit XSWC is shown by a solid line, indicating that input data X(2) is input from the holding circuit MA to the terminal XSISB of the switching circuit XSWC. Also, the wiring XCL2 is shown by a solid line, indicating that input data X(2) flows from the switching circuit XSWC to the cell array CA[2]. Also, in FIG. 10, the wiring from the cell array CA[2] to the circuit RLC via the switching circuit RSWC is shown by a solid line, indicating that an analog current corresponding to X(2)W(2) flows from the cell array CA[2] to the circuit RLC via the switching circuit RSWC. Also, in FIG. 10, the wiring between the switching circuit ASWC and the holding circuit MA is shown by a solid line, indicating that input data X(3) is input from the circuit RLC to the holding circuit MA via the switching circuit ASWC. All other wiring is shown by dashed lines.
[0183] When performing an operation in the intermediate layer HIDL2, the holding circuit MA outputs an analog current corresponding to the held X(2) to the terminal XSISB of the switching circuit XSWC, and the analog current corresponding to X(2) flows to the cell array CA[2] via the terminal XSISB and the terminal XSOS[2] of the switching circuit XSWC. As a result, the cell array CA[2] performs an operation on X(2)W(2), and the circuit RLC performs an operation on an activation function using X(2)W(2) as an input value, and the analog current of X(3), which is the operation of the activation function, is input to the holding circuit MA.
[0184] 11, when performing an operation on the output layer OPL, first, in the switching circuit XSWC, the terminal XSISB and the terminal XSOS[3] are brought into a conductive state, the terminal XSISB and the terminal XSOS[1] and the terminal XSOS[3] are brought into a non-conductive state, and the terminal XSISA and the terminal XSISB and the terminals XSOS[1] to XSOS[3] are brought into a non-conductive state. Also, in the switching circuit ASWC, the terminal ASIS and the terminal ASOSA are brought into a conductive state, and the terminal ASIS and the terminal ASOSB are brought into a non-conductive state.
[0185] 11, the wiring between the holding circuit MA and the switching circuit XSWC is shown by a solid line, indicating that input data X(3) is input from the holding circuit MA to the terminal XSISB of the switching circuit XSWC. Also, the wiring XCL3 is shown by a solid line, indicating that input data X(3) flows from the switching circuit XSWC to the cell array CA[3]. Also, in FIG. 11, the wiring from the cell array CA[3] to the circuit RLC via the switching circuit RSWC is shown by a solid line, indicating that an analog current corresponding to X(3)W(3) flows from the cell array CA[3] to the circuit RLC via the switching circuit RSWC. Also, in FIG. 11, the wiring connected to the terminal AOTS is shown by a solid line, indicating that Z is output from the circuit RLC via the switching circuit ASWC and the circuit ADC at the terminal AOTS of the circuit ADC as a result of the activation function calculation performed in the circuit RLC. The other wiring is shown by dashed lines.
[0186] As a result, an analog current corresponding to the held X(3) can be passed from the holding circuit MA to the cell array CA[3], and the cell array CA[3] performs a calculation of X(3)W(3). Also, the circuit RLC performs an activation function calculation using X(3)W(3) as an input value, and the result of the activation function calculation, Z, is output from the terminal AOTS of the circuit ADC as the output value of the output layer OPL.
[0187] <Configuration Example 2 of Achievement Circuit> Next, an arithmetic circuit which is a semiconductor device of one embodiment of the present invention and is different from the arithmetic circuit CDV1 illustrated in FIG. 1 will be described.
[0188] The arithmetic circuit CDV2 shown in the block diagram of Fig. 12 has the function of calculating the sum of products of a plurality of first data and a plurality of second data, and the function of performing a function operation using the result of the sum of products as an input value, similar to the arithmetic circuit CDV1 in Fig. 1. Therefore, it can be said that the arithmetic circuit CDV2 also has the function of performing operations of a hierarchical neural network, similar to the arithmetic circuit CDV1.
[0189] 12 differs from the arithmetic circuit CDV1 in that the layer LY[0] has circuits XCS[1], XCS[2], and XCS[3] instead of the circuit XCS, and in that the layer LY[0] does not have the switching circuits XSWC, RSWC, and ASWC. Also, the arithmetic circuit CDV2 differs from the arithmetic circuit CDV1 in some of its connection configurations.
[0190] Therefore, for the configuration of the arithmetic circuit CDV2 in FIG. 12 that is common to the arithmetic circuit CDV1 in FIG. 1, the description of the arithmetic circuit CDV1 in FIG. 1 can be referred to.
[0191] 13 is a block diagram illustrating the connections of multiple circuits included in the arithmetic circuit CDV2. Note that Fig. 13 excerpts the circuit WCS, the circuits XCS[1] to XCS[3], the circuit RLC, the circuit ADC, the switching circuit WSWC, and the cell arrays CA[1] to CA[3].
[0192] 13, the circuit XCS[1] has, for example, a terminal XITS[1] that functions as an input terminal and a terminal XOTS[1] that functions as an output terminal. The circuit XCS[2] has, for example, a terminal XITS[2] that functions as an input terminal and a terminal XOTS[2] that functions as an output terminal. The circuit XCS[3] has, for example, a terminal XITS[3] that functions as an input terminal and a terminal XOTS[3] that functions as an output terminal.
[0193] For example, the terminal XOTS[1] of the circuit XCS[1] is electrically connected to the cell array CA[1] via a wiring XCL1. For example, the terminal XOTS[2] of the circuit XCS[2] is electrically connected to the cell array CA[2] via a wiring XCL2. For example, the terminal XOTS[3] of the circuit XCS[3] is electrically connected to the cell array CA[3] via a wiring XCL3.
[0194] A terminal RITS of the circuit RLC is electrically connected to each of the cell arrays CA[1] to CA[3], and a terminal ROTS of the circuit RLC is electrically connected to a terminal AITS of the circuit ADC.
[0195] For the connection configuration of the circuit WCS and the switching circuit WSWC, please refer to the description of the arithmetic circuit CDV1 in FIG.
[0196] The circuit XCS[1] has a function of converting digital data input to the terminal XITS[1] of the circuit XCS[1] into an analog current corresponding to the value of second data, and a function of outputting the analog current to the terminal XOTS[1], similar to the circuit XCS of the arithmetic circuit CDV1 in Fig. 1. Note that the circuits XCS[2] and XCS[3] also have a function of converting digital data input to their respective input terminals (terminals XITS[2] and XITS[3]) into analog currents corresponding to the value of second data, and a function of outputting the analog currents to their output terminals (terminals XOTS[2] and XOTS[3]), similar to the circuit XCS of the arithmetic circuit CDV1 in Fig. 1.
[0197] <<Operation Example 2>> Next, an operation example of the arithmetic circuit CDV2 shown in Fig. 12 and Fig. 13 will be described. Here, as an example, an operation example of the arithmetic circuit CDV2 will be described using the hierarchical neural network model of Fig. 14.
[0198] 14 shows an example of a model of a hierarchical neural network, which has an input layer IPL, a hidden layer HIDL, and an output layer OPL. In particular, the calculation circuit CDV2 is suitable for performing calculations in the hidden layer HIDL of the hierarchical neural network of FIG.
[0199] For an explanation of the input layer IPL, please refer to the explanation of the input layer IPL of the hierarchical neural network in Fig. 4. Note that the input layer IPL of the hierarchical neural network in Fig. 14 has one row p 1 +p 2 +p 3 Specifically, X(1) has a row p1 Column matrix X 1 (1) and one line p 2 Column matrix X 2 (1) and one line p 3 Column matrix X 3 (1) and Therefore, X(1) can be expressed as follows:
[0200]
[0201] For an explanation of the hidden layer HIDL, please refer to the explanation of the hidden layer HIDL1 and the hidden layer HIDL2 of the hierarchical neural network in Fig. 4. Note that the weight coefficients in the hidden layer HIDL of the hierarchical neural network in Fig. 14 are p 1 +p 2 +p 3 It is assumed that W(1) is a matrix with q rows and q columns. Specifically, W(1) is a matrix with p 1 A matrix W with q rows and columns 1 (1) and p 2 A matrix W with q rows and columns 2 (1) and p 3 A matrix W with q rows and columns 3 (1) and Therefore, X(1) can be expressed as follows:
[0202]
[0203] In the hidden layer HIDL, for example, X(1) output from the input layer IPL is acquired, and the activation function F is calculated using the calculation result Y(1) (=X(1)W(1)) as an input value. 1 (Y(1)) and calculate the activation function result X(2) (=F 1 This is the layer that outputs (Y(1)).
[0204] Specifically, in the intermediate layer HIDL, X 1 (1) W 1 The operation of (1) and X 2 (1) W 2 The operation of (1) and X 3 (1) W 3 The calculations of (1) and (2) are performed. The results of these calculations are then stored as Y 1 (1) (= X 1(1) W 1 (1)), Y 2 (1) (= X 2 (1) W 2 (1)), Y 3 (1) (= X 3 (1) W 3 (1)) and the sum Y 1 (1) + Y 2 (1) + Y 3 (1) becomes Y(1). 1 (1) Y 2 (1) Y 3 Each of Y(1) and Y(1) is a matrix with 1 row and q columns. Also, X(2) (=F 1 (Y(1))) is also a matrix with 1 row and q columns.
[0205] For a description of the output layer OPL, refer to the description of the output layer OPL of the hierarchical neural network in FIG.
[0206] When the hierarchical neural network of FIG. 14 is performed in the calculation circuit CDV2, a weighting factor W is set for each of the cell arrays CA[1] to CA[3] as a preliminary calculation. 1 (1) to W 3 The weighting coefficients W for the cell arrays CA[1] to CA[3] of the arithmetic circuit CDV2 are written. 1 (1) to W 3 For the writing of (1), refer to the write operation of the weighting coefficient of the arithmetic circuit CDV1 shown in FIGS.
[0207] FIG. 15 shows an example of the calculation of the intermediate layer HIDL of the hierarchical neural network of FIG. 14 in the calculation circuit CDV2.
[0208] In FIG. 15, the input data X is input to the terminal XITS[1] of the circuit XCS[1]. 1 The wiring connected to the terminal XITS[1] is shown by a solid line as the state in which (1) is input, and the input data X 115, the wiring XCL1 is shown by a solid line as a state in which the input data X (1) is transmitted to the terminal XITS[2] of the circuit XCS[2]. 2 The wiring connected to the terminal XITS[2] is shown by a solid line as the state in which (1) is input, and the input data X 2 The wiring XCL2 is shown by a solid line as a state in which the input data X (1) is transmitted. 3 The wiring connected to the terminal XITS[3] is shown by a solid line as the state in which (1) is input, and the input data X 3 The line XCL3 is shown by a solid line to indicate how (1) is transmitted.
[0209] In addition, in FIG. 15, cell arrays CA[1] to X 1 (1) W 1 An analog current corresponding to (1) is output, and the cell array CA[2] outputs X 2 (1) W 2 An analog current corresponding to (1) is output, and the cell array CA[3] outputs X 3 (1) W 3 15, the wiring from cell arrays CA[1] to CA[3] to circuit RLC is shown by solid lines, indicating that analog currents corresponding to (1) are output and the sum of these currents flows through circuit RLC. Also, in FIG. 15, the wiring between circuit RLC and circuit ADC and the wiring connected to terminal AOTS of circuit ADC are shown by solid lines, indicating that input data X(2) is output from circuit RLC via circuit ADC and from terminal AOTS of circuit ADC. Furthermore, the other wiring is shown by dashed lines.
[0210] In Fig. 15, input data X(1) from the input layer IPL is input as digital data to a terminal XITS[1] of the circuit XCS[1], a terminal XITS[2] of the circuit XCS[2], and a terminal XITS[3] of the circuit XCS[3]. 1(1) is input to the terminal XITS[1] of the circuit XCS[1], and X included in the input data X(1) is 2 (1) is input to the terminal XITS[2] of the circuit XCS[2], and X included in the input data X(1) is 3 (1) is input to the terminal XITS[3] of the circuit XCS[3]. 1 (1), X 2 (1) and X 3 (1) can be transmitted, for example, from a storage device (not shown) provided outside the arithmetic circuit CDV2.
[0211] In the circuit XCS[1], the input X 1 (1) is converted from digital data to analog current. 1 An analog current corresponding to (1) flows from the terminal XOTS[1] of the circuit XCS[1] to the cell array CA[1]. Similarly, in the circuit XCS[2], the input X 2 (1) is converted from digital data to analog current, and X 2 An analog current corresponding to (1) flows from the terminal XOTS[2] of the circuit XCS[2] to the cell array CA[2]. Similarly, in the circuit XCS[3], the input X 3 (1) is converted from digital data to analog current, and X 3 An analog current according to (1) flows from the terminal XOTS[3] of the circuit XCS[3] to the cell array CA[3].
[0212] X 1 When an analog current corresponding to (1) flows through the processing cell included in the cell array CA[1], the processing cell converts the input data X 1 (1) and the weighting factor W 1 (1) is multiplied by the result of the multiplication, X 1 (1) W 1 (1) outputs an analog current according to X 1 (1) W 1 An analog current according to (1) flows through the circuit RLC. Similarly, X 2An analog current corresponding to (1) flows through the processing cell included in the cell array CA[2], and the processing cell converts the input data X 2 (1) and the weighting factor W 2 (1) is multiplied by the result of the multiplication, X 2 (1) W 2 An analog current corresponding to (1) flows through the circuit RLC. 3 An analog current corresponding to (1) flows through the processing cell included in the cell array CA[3], and the processing cell 3 (1) and the weighting factor W 3 (1) is multiplied by the result of the multiplication, X 3 (1) W 3 An analog current corresponding to (1) flows through the circuit RLC.
[0213] X 1 (1) W 1 (1), X 2 (1) W 2 (1) and X 3 (1) W 3 As a result, the analog current corresponding to each of (1) flows through the circuit RLC, and as a result, the terminal RITS of the circuit RLC is 1 (1) W 1 (1), X 2 (1) W 2 (1) and X 3 (1) W 3 (1) flows. As a result, the circuit RLC 1 (1) + Y 2 (1) + Y 3 An activation function is calculated using (1) = Y(1) as an input value, and an analog current corresponding to the result of the calculation, X(2), is output. The analog current corresponding to X(2) flows into the ADC circuit.
[0214] When an analog current corresponding to X(2) flows through the circuit ADC, the circuit ADC converts the analog current corresponding to X(2) into digital data and outputs the digital data to the terminal AOTS. The digital data can be stored in a storage device (not shown) external to the arithmetic circuit CDV2. This completes the calculation of the hidden layer HIDL of the hierarchical neural network of FIG. 14.
[0215] By using the arithmetic circuit CDV2, when the scale of the calculation of a certain layer in the hierarchical neural network is large (when the number of neurons and synapses is large), the calculation can be performed using two or more cell arrays CA. This reduces the number of times the weight coefficients need to be rewritten compared to when the calculation is performed using the same cell array, thereby reducing the power consumption required to rewrite the weight coefficients.
[0216] <<Modifications of the Arithmetic Circuit>> The configuration of the arithmetic circuit CDV2 shown in Figures 12 and 13 can be modified depending on the situation. For example, the arithmetic circuit CDV2 in Figure 12 can be modified to an arithmetic circuit CDV2A shown in Figure 16.
[0217] 16 differs from the arithmetic circuit CDV2 in that the layer LY[0] has circuits WCS[1], WCS[2], and WCS[3] instead of the circuit WCS, and in that the layer LY[0] does not have a switching circuit WSWC. In addition, the arithmetic circuit CDV2 differs from the arithmetic circuit CDV2A in some of its connection configurations.
[0218] Therefore, for the configuration of the arithmetic circuit CDV2A in FIG. 16 that is common to the arithmetic circuit CDV2 in FIG. 12, the description of the arithmetic circuit CDV2 in FIG. 12 can be referred to.
[0219] 17 is a block diagram illustrating connections between multiple circuits included in the arithmetic circuit CDV2A. Note that in FIG. 17, the circuits WCS[1] to WCS[3], the circuits XCS[1] to XCS[3], the circuit RLC, the circuit ADC, and the cell arrays CA[1] to CA[3] are selectively illustrated.
[0220] 17, the circuit WCS[1] includes, for example, a terminal WITS[1] that functions as an input terminal and a terminal WOTS[1] that functions as an output terminal. The circuit WCS[2] includes, for example, a terminal WITS[2] that functions as an input terminal and a terminal WOTS[2] that functions as an output terminal. The circuit WCS[3] includes, for example, a terminal WITS[3] that functions as an input terminal and a terminal WOTS[3] that functions as an output terminal.
[0221] For example, the terminal WOTS[1] of the circuit WCS[1] is electrically connected to the cell array CA[1] via a wiring WCL1. For example, the terminal WOTS[2] of the circuit WCS[2] is electrically connected to the cell array CA[2] via a wiring WCL2. For example, the terminal WOTS[3] of the circuit WCS[3] is electrically connected to the cell array CA[3] via a wiring WCL3.
[0222] In other words, the arithmetic circuit CDV2A in Fig. 17 is configured such that circuits WCS[1] to WCS[3] are electrically connected to cell arrays CA[1] to CA[3], respectively. That is, while the arithmetic circuit CDV2 in Fig. 13 is configured such that one circuit WCS writes weighting coefficients to cell arrays CA[1] to CA[3], the arithmetic circuit CDV2A in Fig. 17 is configured such that circuit WCS[1] writes a weighting coefficient to cell array CA[1], circuit WCS[2] writes a weighting coefficient to cell array CA[2], and circuit WCS[3] writes a weighting coefficient to cell array CA[3].
[0223] 16, the circuits WCS[1] to WCS[3] can be driven simultaneously, and therefore weighting coefficients can be written simultaneously to the cell arrays CA[1] to CA[3]. Therefore, the calculation circuit CDV2A in FIG. 16 can write weighting coefficients to the cell arrays CA[1] to CA[3] faster than the calculation circuit CDV2 in FIG. 12.
[0224] On the other hand, in layer LY[0], the calculation circuit CDV2 of FIG. 12 has fewer circuits for writing weight coefficients compared to the calculation circuit CDV2A of FIG. 16, so the circuit area of the calculation circuit CDV2 of FIG. 12 can be reduced more than the circuit area of the calculation circuit CDV2A of FIG. 16.
[0225] 13 and the arithmetic circuit CDV2A of FIG. 17 may be provided with the switching circuit RSWC included in the arithmetic circuit CDV1 of FIG. 2. For example, as shown in FIGS. 18 and 19, by providing a switching circuit RSWC in the arithmetic circuit CDV2A of FIG. 17, it is possible to select the cell arrays CA[1] to CA[3] to perform the operation. That is, in a hierarchical neural network, when the scale of the hierarchical operation is small, it is possible to select one of the cell arrays CA[1] to CA[3] to perform the operation, or when the scale of the hierarchical operation is large, it is possible to select two or more of the cell arrays CA[1] to CA[3] to perform the operation.
[0226] <Configuration Example 3 of Achievement Circuit> Next, an arithmetic circuit which is a semiconductor device of one embodiment of the present invention and which is different from the arithmetic circuit CDV1 shown in FIG. 1 , the arithmetic circuit CDV2 shown in FIG. 12 , and the arithmetic circuit CDV2A shown in FIG. 16 will be described.
[0227] The arithmetic circuit CDV3 shown in the block diagram of Fig. 20 has the function of calculating the sum of products of a plurality of first data and a plurality of second data, and the function of performing a function operation using the result of the sum of products as an input value, similar to the arithmetic circuit CDV1 of Fig. 1. Therefore, it can be said that the arithmetic circuit CDV3 also has the function of performing operations of a hierarchical neural network, similar to the arithmetic circuit CDV1.
[0228] 20 differs from the arithmetic circuit CDV1 in that the layer LY[1] has a circuit RLC[1], the layer LY[2] has a circuit RLC[2], the layer LY[3] has a circuit RLC[3], and the layer LY[0] does not have the switching circuit XSWC, the switching circuit RSWC, the switching circuit ASWC, the circuit RLC, or the holding circuit MA. The arithmetic circuit CDV3 also differs from the arithmetic circuit CDV1 in some of its connection configurations.
[0229] Therefore, for the configuration of the arithmetic circuit CDV3 in FIG. 20 that is common to the arithmetic circuit CDV1 in FIG. 1, the description of the arithmetic circuit CDV1 in FIG. 1 can be referred to.
[0230] 21 is a block diagram illustrating the connections between multiple circuits included in the arithmetic circuit CDV3. Note that Fig. 21 excerpts the circuit WCS, the switching circuit WSWC, the circuit XCS, the circuits RLC[1] to RLC[3], the circuit ADC, and the cell arrays CA[1] to CA[3].
[0231] As shown in FIG. 21, the circuit XCS has, as an example, a terminal XITS that functions as an input terminal and a terminal XOTS that functions as an output terminal.
[0232] A terminal XOTS of the circuit XCS is, for example, electrically connected to the cell array CA[1] via a line XCL1.
[0233] 21 , the switching circuit RLC[1] has, for example, a terminal RITS[1] that functions as an input terminal and a terminal ROTS[1] that functions as an output terminal. The switching circuit RLC[2] has, for example, a terminal RITS[2] that functions as an input terminal and a terminal ROTS[2] that functions as an output terminal. The switching circuit RLC[3] has, for example, a terminal RITS[3] that functions as an input terminal and a terminal ROTS[3] that functions as an output terminal.
[0234] For example, the terminal RITS[1] of the circuit RLC[1] is electrically connected to the cell array CA[1]. Also, for example, the terminal ROTS[1] of the circuit RLC[1] is electrically connected to the cell array CA[2] via the wiring XCL2. Also, for example, the terminal RITS[2] of the circuit RLC[2] is electrically connected to the cell array CA[2]. Also, for example, the terminal ROTS[2] of the circuit RLC[2] is electrically connected to the cell array CA[3] via the wiring XCL3. Also, for example, the terminal ROTS[3] of the circuit RLC[3] is electrically connected to the terminal AITS of the circuit ADC.
[0235] For the connection configuration of the circuit WCS and the switching circuit WSWC, please refer to the description of the arithmetic circuit CDV1 in FIG.
[0236] The circuit RLC[1] has a function-based arithmetic circuit, similar to the circuit RLC in the arithmetic circuit CDV1 of FIG. 1. As an example, the circuit RLC[1] has a function of performing an arithmetic operation according to the function using data corresponding to an analog current input to the terminal RITS[1] as an input value, and outputting the data resulting from the arithmetic operation as an analog current to the terminal ROTS[1]. Note that, similar to the circuit RLC in the arithmetic circuit CDV1 of FIG. 1, the circuits RLC[2] and RLC[3] also have a function of performing an arithmetic operation according to the function using data corresponding to an analog current input to their respective input terminals (terminals RITS[2] and RITS[3]) as input values, and outputting the data resulting from the arithmetic operation as an analog current to the output terminals (terminals ROTS[2] and ROTS[3]).
[0237] <<Operation Example 3>> Next, an operation example of the arithmetic circuit CDV3 shown in Figures 20 and 21 will be described. Here, as an example, an operation example of the arithmetic circuit CDV3 will be described using the hierarchical neural network model of Figure 4. Note that for the hierarchical neural network of Figure 4, the explanation given in the operation example of the arithmetic circuit CDV1 in Figures 1 and 2 can be referenced.
[0238] 4 in the arithmetic circuit CDV3, as a preliminary preparation for the arithmetic operation, weighting factors W(1) to W(3) are written to the cell arrays CA[1] to CA[3], respectively. Note that the explanations of FIGS. 5 and 6 can be referred to for the operation of writing the weighting factors W(1) to W(3) to the cell arrays CA[1] to CA[3], respectively.
[0239] FIG. 22 shows an example in which the calculation circuit CDV3 performs calculations on the hidden layer HIDL1, the hidden layer HIDL2, and the output layer OPL of the hierarchical neural network of FIG.
[0240] 22, the wiring connected to the terminal XITS of the circuit XCS is shown by a solid line, indicating that input data X(1) is input to the terminal XITS. The wiring XCL1 is also shown by a solid line, indicating that input data X(1) is transmitted from the circuit XCS to the cell array CA[1]. The wiring from the cell array CA[1] to the circuit RLC[1] is also shown by a solid line, indicating that an analog current corresponding to X(1)W(1) flows from the cell array CA[1] to the circuit RLC[1]. The wiring XCL2 is also shown by a solid line, indicating that input data X(2) is transmitted from the circuit RLC[1] to the cell array CA[2]. The wiring from the cell array CA[2] to the circuit RLC[2] is also shown by a solid line, indicating that an analog current corresponding to X(2)W(2) flows from the cell array CA[2] to the circuit RLC[2]. The wiring XCL3 is shown with a solid line to indicate that input data X(3) is transmitted from the circuit RLC[2] to the cell array CA[3]. The wiring from the cell array CA[3] to the circuit RLC[3] is shown with a solid line to indicate that an analog current corresponding to X(3)W(3) flows from the cell array CA[3] to the circuit RLC[3]. The wiring between the circuit RLC[3] and the circuit ADC and the wiring connected to the terminal AOTS of the circuit ADC are shown with solid lines to indicate that the output value Z of the hierarchical neural network is output from the circuit RLC[3] via the circuit ADC and from the terminal AOTS of the circuit ADC. The other wiring is shown with dashed lines.
[0241] 22, input data X(1) from the input layer IPL is input as digital data to the terminal XITS of the circuit XCS[1]. Note that X(1) can be transmitted from, for example, a storage device (not shown) provided outside the arithmetic circuit CDV3.
[0242] The circuit XCS converts the input X(1) from digital data into an analog current. The analog current corresponding to X(1) flows from the terminal XOTS of the circuit XCS to the cell array CA[1] via the line XCL1.
[0243] An analog current corresponding to X(1) flows through a computation cell included in cell array CA[1], causing the computation cell to multiply the input data X(1) by the stored weighting factor W(1) and output an analog current corresponding to the multiplication result, X(1)W(1). Note that the analog current corresponding to X(1)W(1) flows through circuit RLC[1].
[0244] As an analog current corresponding to X(1)W(1) flows through the circuit RLC[1], the circuit RLC[1] performs an activation function calculation using X(1)W(1) as an input value and outputs an analog current corresponding to the result of the calculation, X(2). The analog current corresponding to X(2) flows to the cell array CA[2] via the wiring XCL2. Furthermore, the calculation of the hidden layer HIDL1 of the hierarchical neural network of FIG. 4 is completed by outputting an analog current corresponding to X(2) from the terminal ROTS[1] of the circuit RLC[1].
[0245] 22, input data X(2) from the hidden layer HIDL1 flows as an analog current to the cell array CA[2]. An analog current corresponding to X(2) flows through an arithmetic cell included in the cell array CA[2], causing the arithmetic cell to multiply the input data X(2) by the stored weighting coefficient W(2) and output an analog current corresponding to the multiplication result, X(2)W(2). The analog current corresponding to X(2)W(2) flows through the circuit RLC[2].
[0246] As an analog current corresponding to X(2)W(2) flows through circuit RLC[2], circuit RLC[2] performs an activation function calculation using X(2)W(2) as an input value and outputs an analog current corresponding to X(3), which is the result of the calculation. The analog current corresponding to X(3) flows to cell array CA[3] via wiring XCL3. Furthermore, the calculation of hidden layer HIDL2 of the hierarchical neural network of FIG. 4 is completed by outputting an analog current corresponding to X(3) from terminal ROTS[2] of circuit RLC[2].
[0247] 22, input data X(3) from the hidden layer HIDL2 flows as an analog current into the cell array CA[3]. An analog current corresponding to X(3) flows into the arithmetic cell included in the cell array CA[3], causing the arithmetic cell to multiply the input data X(3) by the stored weighting coefficient W(3) and output an analog current corresponding to the multiplication result, X(3)W(3). The analog current corresponding to X(3)W(3) flows into the circuit RLC[3].
[0248] As an analog current corresponding to X(3)W(3) flows through the circuit RLC[3], the circuit RLC[3] performs an activation function calculation using X(3)W(3) as an input value and outputs an analog current corresponding to Z, which is the result of the calculation. The analog current corresponding to Z flows through the circuit ADC. As a result, the analog current corresponding to Z is converted into digital data by the circuit ADC, and the digital data corresponding to Z is output from the terminal AOTS of the circuit ADC. As a result, the calculation of the output layer OPL of the hierarchical neural network of FIG. 4 is completed by outputting from the terminal AOTS of the circuit ADC. Furthermore, the output value of the hierarchical neural network of FIG. 4 corresponds to the digital data Z.
[0249] 1, the arithmetic circuit CDV2 in FIG. 12, the arithmetic circuit CDV2A in FIG. 16, and the arithmetic circuit CDV3 in FIG. 20 each have a configuration in which three layers of cell arrays are stacked, but one embodiment of the present invention is not limited to this. In one embodiment of the present invention, for example, the number of cell arrays in the above-described arithmetic circuits can be one layer. Alternatively, two or four or more layers of cell arrays can be stacked.
[0250] Note that this embodiment mode can be appropriately combined with the same or other embodiment modes described in this specification. For example, the configurations, structures, methods, and the like described in this embodiment mode can be appropriately combined and used with the configurations, structures, methods, and the like described in the other embodiment modes. For example, the configurations, structures, methods, and the like described in this embodiment mode can be appropriately combined and used with the configurations, structures, methods, and the like described in the other embodiment modes.
[0251] Embodiment Mode 2 In this embodiment mode, a specific configuration example and an operation example of the arithmetic circuit described in the above embodiment mode will be described.
[0252] <Configuration Example 1> FIG. 23 is a circuit diagram for explaining a specific configuration of the arithmetic circuit CDV1, the arithmetic circuit CDV2, the arithmetic circuit CDV2A, and the arithmetic circuit CDV3 described in the above embodiments.
[0253] 23, the cell array CA has m×n cells IM that function as calculation cells and m cells IMd that function as drive cells, where m and n are integers equal to or greater than 1.
[0254] In particular, when the cell array CA is a cell array CA[1] included in the layer LY[1] of the arithmetic circuit CDV1, the arithmetic circuit CDV2, the arithmetic circuit CDV2A, or the arithmetic circuit CDV3, m is equal to or greater than p used in the above embodiments or 1Preferably, m is an integer equal to or greater than q, and n is preferably an integer equal to or greater than q. Furthermore, when the cell array CA is a cell array CA[2] included in layer LY[2] of the arithmetic circuit CDV1, arithmetic circuit CDV2, arithmetic circuit CDV2A, or arithmetic circuit CDV3, m is preferably an integer equal to or greater than q as used in the above embodiments, and n is preferably an integer equal to or greater than r. Furthermore, when the cell array CA is a cell array CA[3] included in layer LY[3] of the arithmetic circuit CDV1, arithmetic circuit CDV2, arithmetic circuit CDV2A, or arithmetic circuit CDV3, m is preferably an integer equal to or greater than r as used in the above embodiments, and n is preferably an integer equal to or greater than s.
[0255] In the cell array CA of Figure 23, cell IMd[1], cell IMd[m], cell IM[1,1], cell IM[m,1], cell IM[1,n], and cell IM[m,n] are shown in excerpt.
[0256] Each of cells IM[1,1] to IM[m,n] has, as an example, a transistor F1, a transistor F2, and a capacitance element C5, and each of cells IMd[1] to IMd[m] has, as an example, a transistor F1d, a transistor F2d, and a capacitance element C5d.
[0257] In particular, the structure and size (e.g., channel length and channel width) of the transistor F1 included in each of the cells IM[1,1] to IM[m,n] are preferably equal to each other, and the structure and size of the transistor F2 included in each of the cells IM[1,1] to IM[m,n] are preferably equal to each other. Furthermore, the structure and size of the transistor F1d included in each of the cells IMd[1] to IMd[m] are preferably equal to each other, and the structure and size of the transistor F2d included in each of the cells IMd[1] to IMd[m] are preferably equal to each other. Furthermore, the structure and size of the transistor F1 and the transistor F1d are preferably equal to each other, and the structure and size of the transistor F2 and the transistor F2d are preferably equal to each other.
[0258] By making the structures and sizes of the transistors equal to each other, the electrical characteristics of the respective transistors can be made approximately equal. Therefore, by making the structure and size of the transistor F1 included in each of the cells IM[1,1] to IM[m,n] equal and making the structure and size of the transistor F2 included in each of the cells IM[1,1] to IM[m,n] equal, each of the 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 input to the source, drain, and gate of the transistor F1, the potentials input to the source, drain, and gate of the transistor F2, and the potentials input to each of the cells IM[1,1] to IM[m,n]. Furthermore, by making the size of the transistor F1d included in each of the cells IMd[1] to IMd[m] equal and making the size of the transistor F2d included in each of the cells IMd[1] to IMd[m] equal, for example, the cells IMd[1] to IMd[m] can perform substantially the same operation and the results of the operation. Under the same conditions, the cells IMd[1] to IMd[m] can perform substantially the same operation. Here, the same conditions refer to, for example, the potentials input to the source, drain, and gate of the transistor F1d, the potentials input to the source, drain, and gate of the transistor F2d, and the potentials input to each of the cells IMd[1] to IMd[m].
[0259] Unless otherwise specified, the transistors F1 and F1d are considered to ultimately operate in a linear region when they are in an on state. 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, one or both of the transistors F1 and F1d may operate in a saturation region when they are in an on state, or may operate in both a linear region and a saturation region.
[0260] Furthermore, unless otherwise specified, the transistors F2 and F2d are considered to operate in the subthreshold region (i.e., in the transistor F2 or F2d, 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 include cases where they are appropriately biased to voltages within the range in which they operate in the subthreshold region. Therefore, the transistors F2 and F2d also include cases where they operate such that an off-current (sometimes called a leakage current) flows between the source and drain.
[0261] For example, one or both of the transistors F1 and F1d are preferably OS transistors. In addition, the channel formation regions of one or both of the transistors F1 and F1d are preferably oxides containing at least one of indium, gallium, and zinc. Alternatively, an oxide containing one or more of indium, an element M (e.g., aluminum, gallium, silicon, yttrium, tin, copper, vanadium, beryllium, boron, titanium, iron, nickel, germanium, zirconium, molybdenum, lanthanum, cerium, neodymium, hafnium, tantalum, tungsten, cobalt, magnesium, and antimony) or zinc can be used instead of the oxide. It is more preferable that one or both of the transistors F1 and F1d have the structure of the transistor described in Embodiment 3.
[0262] By using an OS transistor as one or both of the transistors F1 and F1d, leakage current of one or both of the transistors F1 and F1d can be suppressed, thereby reducing the power consumption of the arithmetic circuit. Specifically, when one or both of the transistors F1 and F1d are off, 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.
[0263] Furthermore, by using an OS transistor for one or both of the transistors F2 and F2d, 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 transistors F2 and F2d, the transistors can be manufactured simultaneously with the transistors F1 and F1d, which may shorten the manufacturing process of the arithmetic circuit. Alternatively, one or both of the transistors F2 and F2d can be a transistor containing silicon in a channel formation region (hereinafter referred to as a Si transistor), other than an OS transistor. Examples of silicon that can be used include amorphous silicon, microcrystalline silicon, polycrystalline silicon, and single crystal silicon.
[0264] Incidentally, when semiconductor devices and the like are highly integrated on a chip, the chip may generate heat due to the operation of the circuits. This heat increases the temperature of the transistor, which may change the characteristics of the transistor, resulting in, for example, a change in field-effect mobility or a decrease in operating frequency. OS transistors have higher heat resistance than Si transistors, so their field-effect mobility is less likely to change due to temperature changes, and their operating frequency is less likely to decrease. 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, the use of OS transistors makes it easy to perform calculations 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.
[0265] In each of the cells IM[1,1] to IM[m,n], the first terminal of the transistor F1 is electrically connected to the gate of the transistor F2. The first terminal of the transistor F2 is electrically connected to the wiring VE. The first terminal of the capacitor C5 is electrically connected to the gate of the transistor F2.
[0266] In each of the cells IMd[1] to IMd[m], the first terminal of the transistor F1d is electrically connected to the gate of the transistor F2d, the first terminal of the transistor F2d is electrically connected to the wiring VE, and the first terminal of the capacitor C5d is electrically connected to the gate of the transistor F2d.
[0267] 23 , back gates are illustrated for the transistors F1, F2, F1d, and F2d. 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 can 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 can be electrically connected, and the gate and back gate of the transistor F1d can 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 can be provided to electrically connect the back gate of the transistor to an external circuit or the like, and a potential can be applied to the back gate of the transistor from the external circuit or the like.
[0268] 23 includes a back gate, the semiconductor device of one embodiment of the present invention is not limited to this. For example, the transistors F1 and F2 shown in FIG. 23 can be configured without a back gate, that is, as single-gate transistors. Some of the transistors can have a back gate, and other transistors can be configured without a back gate.
[0269] 23 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 can be replaced with p-channel transistors.
[0270] It should be noted that the above-described modifications to the transistor structure and polarity are not limited to transistors F1 and F2, but also apply to transistors F1d, F2d, and other transistors described elsewhere in the specification or illustrated in other figures.
[0271] 23 , the wiring VE is a wiring for passing 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 current between the first terminal and the second terminal of the transistor F2d of each of the cells IMd[1] and IMd[m]. As an example, the wiring VE functions as a wiring for supplying a constant voltage. The constant voltage may be, for example, a low-level potential or a ground potential.
[0272] In the cell IM[1,1], the second terminal of the transistor F1 is electrically connected to the wiring WCL[1], and the gate of the transistor F1 is electrically connected to the wiring WSL[1]. The second terminal of the transistor F2 is electrically connected to the wiring WCL[1], and the second terminal of the capacitor C5 is electrically connected to the wiring XCL[1]. In FIG. 23 , the node N[1,1] is the connection point between the first terminal of the transistor F1, the gate of the transistor F2, and the first terminal of the capacitor C5 in the cell IM[1,1].
[0273] In the cell IM[m,1], the second terminal of the transistor F1 is electrically connected to the wiring WCL[1], and the gate of the transistor F1 is electrically connected to the wiring WSL[m]. The second terminal of the transistor F2 is electrically connected to the wiring WCL[1], and the second terminal of the capacitor C5 is electrically connected to the wiring XCL[m]. In FIG. 23 , the node N[m,1] is the connection point between the first terminal of the transistor F1, the gate of the transistor F2, and the first terminal of the capacitor C5 in the cell IM[m,1].
[0274] In the cell IM[1,n], the second terminal of the transistor F1 is electrically connected to the wiring WCL[n], and the gate of the transistor F1 is electrically connected to the wiring WSL[1]. The second terminal of the transistor F2 is electrically connected to the wiring WCL[n], and the second terminal of the capacitor C5 is electrically connected to the wiring XCL[1]. In FIG. 23 , the connection point between the first terminal of the transistor F1, the gate of the transistor F2, and the first terminal of the capacitor C5 in the cell IM[1,n] is referred to as a node N[1,n].
[0275] In the cell IM[m,n], the second terminal of the transistor F1 is electrically connected to the wiring WCL[n], and the gate of the transistor F1 is electrically connected to the wiring WSL[m]. The second terminal of the transistor F2 is electrically connected to the wiring WCL[n], and the second terminal of the capacitor C5 is electrically connected to the wiring XCL[m]. In FIG. 23 , the node N[m,n] is the connection point between the first terminal of the transistor F1, the gate of the transistor F2, and the first terminal of the capacitor C5 in the cell IM[m,n].
[0276] In the cell IMd[1], the second terminal of the transistor F1d is electrically connected to the wiring XCL[1], and the gate of the transistor F1d is electrically connected to the wiring WSL[1]. The second terminal of the transistor F2d is electrically connected to the wiring XCL[1], and the second terminal of the capacitor C5d is electrically connected to the wiring XCL[1]. In FIG. 23, the node Nd[1] is the connection point between the first terminal of the transistor F1d, the gate of the transistor F2d, and the first terminal of the capacitor C5d in the cell IMd[1].
[0277] In the cell IMd[m], the second terminal of the transistor F1d is electrically connected to the wiring XCL[m], and the gate of the transistor F1d is electrically connected to the wiring WSL[m]. The second terminal of the transistor F2d is electrically connected to the wiring XCL[m], and the second terminal of the capacitor C5d is electrically connected to the wiring XCL[m]. In FIG. 23 , the node Nd[m] is the connection point between the first terminal of the transistor F1d, the gate of the transistor F2d, and the first terminal of the capacitor C5d in the cell IMd[m].
[0278] Note that nodes N[1,1] to N[m,n] and nodes Nd[1] to Nd[m] function as holding nodes for the respective cells.
[0279] 2, 13, 17, and 21. Wirings XCL[1] to XCL[m] correspond to the wirings WCL1 to WCL3 shown in FIGS. 2, 13, and 17, or the wiring XCL1 shown in FIG.
[0280] In cells IM[1,1] to IM[m,n], for example, when transistor F1 is in an on state, transistor F2 is diode-connected. When transistor F1 is in an on state and a current of an amount I flows from wiring WCL to the second terminal of transistor F2, with the constant voltage provided by wiring VE serving as ground potential (GND), the potential of the gate (node N) of transistor F2 is determined according to the amount I. Note that, because transistor F1 is in an on state, the potential of the second terminal of transistor F2 is ideally equal to the potential of the gate (node N) of transistor F2. By turning transistor F1 off, the potential of the gate (node N) of transistor F2 is maintained. This allows transistor F2 to pass a current of an amount 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 N) of transistor F2. In this specification, this operation is referred to as "setting the amount of current flowing between the source and drain of the transistor F2 of the cell IM to I (programming)."
[0281] Next, specific configuration examples of the circuits WCS, XCS, WSD, and RLC will be described.
[0282] 23 corresponds to the circuit WCS included in the arithmetic circuit CDV1 shown in FIGS. 1 and 2, the circuit WCS included in the arithmetic circuit CDV2 shown in FIGS. 12 and 13, the circuits WCS[1] to WCS[3] included in the arithmetic circuit CDV2A shown in FIGS. 16 and 17, or the circuit WCS included in the arithmetic circuit CDV3 shown in FIGS. 20 and 21. The circuit WCS includes, for example, a circuit SWS1 and a circuit WCG. The circuit WCG includes, for example, circuits WCSa[1] to WCSa[n].
[0283] The circuit SWS1 includes, for example, switches SW3[1] to SW3[n]. A first terminal of the switch SW3[1] is electrically connected to the wiring WCL[1], a second terminal of the switch SW3[1] is electrically connected to the circuit WCSa[1], and a control terminal of the switch SW3[1] is electrically connected to the wiring SWL1. A first terminal of the switch SW3[n] is electrically connected to the wiring WCL[n], a second terminal of the switch SW3[n] is electrically connected to the circuit WCSa[n], and a control terminal of the switch SW3[n] is electrically connected to the wiring SWL1.
[0284] For example, the wiring SWL1 functions as a wiring for switching between an on state and an off state of each of the switches SW3[1] to SW3[n]. Therefore, a high-level potential or a low-level potential is supplied to the wiring SWL1.
[0285] Each of the switches SW3[1] to SW3[n] can be, for example, an electrical switch (e.g., a transistor or an analog switch) or a mechanical switch. Furthermore, a transistor that can be used as the transistor F1 or the transistor F2 can be used as one of the electrical switches. In particular, the transistor is preferably, for example, an OS transistor.
[0286] As described above, the circuit SWS1 functions as a circuit that brings the circuit WCG 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 switches SW3[1] to SW3[n] as switching elements to switch the conductive state or the non-conductive state between the circuit WCG and each of the wirings WCL[1] to WCL[n].
[0287] The circuit WCG has a function of supplying a signal of an amount corresponding to the first data to the wirings WCL[1] to WCL[n]. That is, when the switches SW3[1] to SW3[n] are in the on state, the circuit WCG supplies the first data to be stored in each cell IM of the cell array CA. Note that in the case of the arithmetic circuit CDV of FIG. 23, the signal is preferably a current.
[0288] For example, the circuit WCG can have the configuration shown in Fig. 24A. Note that Fig. 24A also illustrates a circuit SWS1, a switch SW3, a wiring SWL1, and a wiring WCL in order to show electrical connection of the circuit WCG with peripheral circuits.
[0289] The circuit SWS1 also has the same number of switches SW3 as the number of wirings WCL, i.e., n switches SW3.
[0290] 24A can be any one of the switches SW3[1] to SW3[n] included in the arithmetic circuit CDV in Fig. 23. Similarly, the wiring WCL can be any one of the wirings WCL[1] to WCL[n] included in the arithmetic circuit CDV in Fig. 23.
[0291] Therefore, the wirings WCL[1] to WCL[n] are electrically connected to separate circuits WCSa via separate switches SW3.
[0292] The circuit WCSa shown in FIG. 24A includes, as an example, a switch SWW. A first terminal of the switch SWW is electrically connected to a second terminal of the switch SW3, and the 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, or a high-level potential. Note that the switch SWW is turned on only when the initialization potential is applied to the wiring WCL, and is turned off otherwise.
[0293] For example, an electrical switch (for example, a transistor or an analog switch) can be applied to the switch SWW. Note that, when a transistor is applied as the switch SWW, the transistor can have a structure similar to that of the transistor F1 or the transistor F2. In addition to an electrical switch, a mechanical switch can also be applied.
[0294] 24A has a plurality of current sources CS. K value) (K is an integer of 1 or more) as a current amount. In this case, the circuit WCSa has a function of outputting the first data of K The circuit WCSa has, for example, 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.
[0295] 24A, 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 switch SW3 of the circuit SWS1. The terminal T2 of one current source CS is electrically connected to the wiring DW[1], and each of the terminals T2 of the two current sources CS is 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].
[0296] In particular, the wirings DW[1] to DW[K] can be wirings electrically connected to the terminals WITS of the circuit WCS described in embodiment 1 (including the terminal WITS[1] of the circuit WCS[1], the terminal WITS[2] of the circuit WCS[2], and the terminal WITS[3] of the circuit WCS[3]).
[0297] The multiple current sources CS included in the circuit WCSa each supply the same constant current I Wutfrom the terminal T1. In practice, errors may occur due to variations in the electrical characteristics of the transistors included in each current source CS during the manufacturing stage of the arithmetic circuit CDV. Therefore, the constant current I output from each of the terminals 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 each 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.
[0298] The wirings DW[1] to DW[K] are electrically connected to a current source CS and receive 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 I Wut flows to the second terminal of the switch SW3, and when a low-level potential is applied to the wiring DW[1], the current source CS electrically connected to the wiring DW[1] 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] do not output a total of 2I Wut When a constant current of 2I flows through the second terminal of the switch SW3 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 switch SW3 and a low-level potential is applied to the wiring DW[2]. Wut For example, when a high-level potential is applied to the wiring DW[K], the constant current of the second K−1 The current sources CS are a total of 2 K−1 I Wut When a constant current of 1 V flows through the second terminal of the switch SW3 and a low-level potential is applied to the wiring DW[K], the current source CS electrically connected to the wiring DW[K] is K−1 I Wut It does not output a constant current.
[0299] 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 switch SW3 of the circuit SWS1. Wut Furthermore, 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 wiring DW[1] and a high level potential is applied to the wiring DW[2]. At this time, a constant current of 2I flows from the circuit WCSa to the second terminal of the switch SW3 of the circuit SWS1. Wut 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 wiring DW[1] and the wiring DW[2]. At this time, a constant current of 3I flows from the circuit WCSa to the second terminal of the switch SW3 of the circuit SWS1. Wut 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 wiring DW[1] and the wiring DW[2]. At this time, no constant current flows from the circuit WCSa to the second terminal of the switch SW3 of the circuit SWS1.
[0300] 24A illustrates the circuit WCSa when K is an integer of 3 or more, but when K is 1, the circuit WCSa in FIG. 24A can be configured without the current source CS electrically connected to the wirings DW[2] to DW[K]. When K is 2, the circuit WCSa in FIG. 24A can be configured without the current source CS electrically connected to the wirings DW[3] to DW[K].
[0301] Next, a specific example of the configuration of the current source CS will be described.
[0302] The current source CS1 shown in FIG. 25A is a circuit that can be applied to the current source CS included in the circuit WCSa in FIG. 24A, and the current source CS1 has a transistor Tr1 and a transistor Tr2.
[0303] 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. The second terminal of the transistor Tr2 and the back gate of the transistor Tr2 are each electrically connected to the terminal T1, and the gate of the transistor Tr2 is electrically connected to the terminal T2. The terminal T2 is also electrically connected to the wiring DW.
[0304] The wiring DW is any one of the wirings DW[1] to DW[K] in FIG. 24A.
[0305] The wiring VDDL functions as a wiring that applies a constant voltage. The constant voltage can be, for example, a high-level potential.
[0306] When the constant voltage applied by the wiring VDDL is set to a high-level potential, the 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. In this case, 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 0 V. Therefore, when the threshold voltage of the transistor Tr1 is within an appropriate range, a current (drain current) in the subthreshold current range flows between the first and second terminals of the transistor Tr1. When the transistor Tr1 is an OS transistor, the amount of the 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 −15It is more preferable that the current is equal to or less than 1 A. Furthermore, 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 described below Xut is equivalent to
[0307] The transistor Tr2 functions as a switching element. When the potential of the first terminal of the transistor Tr2 is higher than the potential of the second terminal of the transistor Tr2, the first terminal of the transistor Tr2 functions as a drain, and the second terminal of the transistor Tr2 functions as a source. The back gate of the transistor Tr2 and the second terminal of the transistor Tr2 are electrically connected, so the back gate-source voltage is 0 V. Therefore, when the threshold voltage of the transistor Tr2 is within an appropriate range, the transistor Tr2 is turned on when a high-level potential is input to the gate of the transistor Tr2, and is turned off when a low-level potential is input to the gate of the transistor Tr2. Specifically, when the transistor Tr2 is on, a current in the subthreshold region flows from the second terminal of the transistor Tr1 to the terminal T1. When the transistor Tr2 is off, the current does not flow from the second terminal of the transistor Tr1 to the terminal T1.
[0308] Note that circuits applicable to the current source CS included in the circuit WCSa of FIG. 24A are not limited to the current source CS1 of FIG. 25A. For example, the current source CS1 is configured such that the back gate of transistor Tr2 is electrically connected to the second terminal of transistor Tr2, but the back gate of transistor Tr2 can be electrically connected to a separate wiring. An example of such a configuration is shown in FIG. 25B. The current source CS2 shown in FIG. 25B is configured such that the back gate of transistor Tr2 is electrically connected to wiring VTHL. By electrically connecting wiring VTHL to an external circuit or the like, the current source CS2 can apply a predetermined potential to wiring VTHL via the external circuit or the like, thereby applying the predetermined potential to the back gate of transistor Tr2. This allows the threshold voltage of transistor Tr2 to be varied. In particular, increasing the threshold voltage of transistor Tr2 can reduce the off-state current of transistor Tr2.
[0309] For example, the current source CS1 may be configured such that the back gate of transistor Tr1 is electrically connected to the second terminal of transistor Tr1, while a capacitive element maintains a voltage between the back gate and the second terminal of transistor Tr2. An example of such a configuration is shown in FIG. 25C . The current source CS3 shown in FIG. 25C includes transistors Tr1 and Tr2, as well as transistor Tr3 and a capacitive element C6. The current source CS3 differs from the current source CS1 in that the second terminal of transistor Tr1 is electrically connected to the back gate of transistor Tr1 via the capacitive element C6, and the back gate of transistor Tr1 is electrically connected to the first terminal of transistor Tr3. The current source CS3 is also configured such that the second terminal of transistor Tr3 is electrically connected to the wiring VTL, and the gate of transistor Tr3 is electrically connected to the wiring VWL. The current source CS3 can apply a high-level potential to the line VWL to turn on the transistor Tr3, thereby establishing electrical continuity between the line VTL and the back gate of the transistor Tr1. At this time, a predetermined potential can be input from the line VTL to the back gate of the transistor Tr1. Then, by applying a low-level potential to the line VWL to turn off the transistor Tr3, the capacitor C6 can maintain the voltage between the second terminal of the transistor Tr1 and the back gate of the transistor Tr1. In other words, by determining the voltage applied to the back gate of the transistor Tr1 by the line VTL, the threshold voltage of the transistor Tr1 can be varied, and the threshold voltage of the transistor Tr1 can be fixed by the transistor Tr3 and the capacitor C6.
[0310] 25D is an example of a circuit that can be used as the current source CS included in the circuit WCSa of FIG. 24A. Current source CS4 is configured such that the back gate of transistor Tr2 in current source CS3 of FIG. 25C is electrically connected to wiring VTHL instead of the second terminal of transistor Tr2. In other words, current source CS4, like current source CS2 of FIG. 25B, can vary the threshold voltage of transistor Tr2 depending on the potential provided by wiring VTHL.
[0311] 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 the 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 wiring 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.
[0312] 25A to 25D as the current source CS included in the circuit WCSa of Fig. 24A, 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 the range in which the transistor F1 operates in the subthreshold region.
[0313] 24A can be replaced by the circuit WCSa shown in FIG. 24B. The circuit WCSa in FIG. 24B has a configuration in which the current source CS in FIG. 25A 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 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. 24B can output a current corresponding to the K-bit first data, similar to the circuit WCSa in FIG. 24A.
[0314] Note that the transistor Tr1 (including transistors Tr1[1] to Tr1[K]), the transistor Tr2 (including transistors Tr2[1] to Tr2[K]), and the transistor Tr3 can be, for example, a transistor that can be used for the transistor F1 or the transistor F2. In particular, OS transistors are preferably used for the transistor Tr1 (including transistors Tr1[1] to Tr1[K]), the transistor Tr2 (including transistors Tr2[1] to Tr2[K]), and the transistor Tr3.
[0315] 24B can be modified to a CMOS circuit configuration including n-channel transistors and p-channel transistors. For example, the circuit WCSa in FIG. 24A can be modified to a circuit configuration shown in FIG. 26.
[0316] Fig. 26 shows the configuration of a circuit WCSa including n-channel transistors and p-channel transistors, and the circuit WCSa in Fig. 26 has K current sources CS and a current mirror circuit CRM. The current source CS shown in Fig. 26 differs from the current source CS shown in Fig. 24B in terms of its connection configuration.
[0317] First, each current source CS will be described.
[0318] A first terminal of the transistor Tr1[1] is electrically connected to the wiring VSSL, a second terminal of the transistor Tr1[1] is electrically connected to the first terminal of the transistor Tr2[1], and a gate of the transistor Tr1[1] is electrically connected to the wiring DW[1]. In addition, a gate of the transistor Tr2[1] is electrically connected to the wiring BIS.
[0319] Similarly, a first terminal of the transistor Tr1[2] is electrically connected to the wiring VSSL, a second terminal of the transistor Tr1[2] is electrically connected to the first terminal of the transistor Tr2[2], and a gate of the transistor Tr1[2] is electrically connected to the wiring DW[2]. In addition, a gate of the transistor Tr2[2] is electrically connected to the wiring BIS.
[0320] Similarly, a first terminal of the transistor Tr1[K] is electrically connected to the wiring VSSL, a second terminal of the transistor Tr1[K] is electrically connected to the first terminal of the transistor Tr2[K], and a gate of the transistor Tr1[K] is electrically connected to the wiring DW[K]. Also, a gate of the transistor Tr2[K] is electrically connected to the wiring BIS.
[0321] Further, second terminals of the transistors Tr2[1] to Tr2[K] are electrically connected to a terminal CTi of a current mirror circuit CRM, which will be described later.
[0322] In FIG. 26, the channel widths of the transistors Tr1[1] to Tr1[K] can be determined by referring to the description of the transistors Tr1[1] to Tr1[K] in FIG. 24B.
[0323] 26, the transistors Tr2[1] to Tr2[K] function as transistors capable of adjusting the amount of current flowing between the source and drain of each of the transistors Tr1[1] to Tr1[K]. Therefore, a fixed potential (bias potential) is input to the wiring BIS. Note that the fixed potential may be a high-level potential, a positive potential, or the like. Depending on the situation, the fixed potential may be a low-level potential, a ground potential, a negative potential, or the like.
[0324] For example, the wiring VSSL functions as a wiring that applies a fixed potential. The fixed potential may be, for example, a low-level potential, a ground potential, a negative potential, or the like. Depending on the situation, the fixed potential may be a high-level potential.
[0325] The current source CS shown in FIG. 26 has the above-described connection configuration, and therefore functions as a current sink circuit that causes a current to flow from the terminal T1 of the current source CS to the wiring VSSL via the transistors Tr1 and Tr2.
[0326] Next, the current mirror circuit CRM will be described.
[0327] The current mirror circuit CRM has a terminal CTi that functions as an input terminal and a terminal CTo that functions as an output terminal, and has a function of outputting a current to the terminal CTo that is equal to the amount of current flowing through the terminal CTi, for example.
[0328] The current mirror circuit CRM includes a transistor Tr5, a transistor Tr5m, a transistor Tr6, and a transistor Tr6m.
[0329] The first terminal of the transistor Tr5 is electrically connected to the terminal CTi, the gate of the transistor Tr6, and the gate of the transistor Tr6m. The second terminal of the transistor Tr5 is electrically connected to the first terminal of the transistor Tr6. The gate of the transistor Tr5 is electrically connected to the gate of the transistor Tr5m and the wiring CPE. The second terminal of the transistor Tr6 is electrically connected to the wiring VDDL. The first terminal of the transistor Tr5m is electrically connected to the terminal CTo. The second terminal of the transistor Tr5m is electrically connected to the first terminal of the transistor Tr6m. The second terminal of the transistor Tr6m is electrically connected to the wiring VDDL.
[0330] For the wiring VDDL, the description of the wiring VDDL shown in FIG. 24A can be referred to.
[0331] For example, the wiring CPE functions as a wiring that applies a fixed potential. The fixed potential may be a low-level potential, a ground potential, a negative potential, or the like. Depending on the situation, the fixed potential may be a high-level potential, or the like.
[0332] In the current mirror circuit CRM, the second terminals of the transistors Tr6 and Tr6m are connected such that a potential is applied from the wiring VDDL, and the gates of the transistors Tr6 and Tr6m are connected such that a potential of the terminal CTi is applied. Ideally, therefore, equal amounts of current flow between the source and drain of the transistors Tr6 and Tr6m.
[0333] Furthermore, transistor Tr5 functions as a transistor cascode-connected to transistor Tr6. Similarly, transistor Tr5m functions as a transistor cascode-connected to transistor Tr6m. This prevents the potential of terminal CTi from being directly input to the first terminal of transistor Tr6. In other words, this prevents the potential of the first terminal of transistor Tr6 from suddenly fluctuating, thereby stabilizing the operation of the current mirror circuit CRM.
[0334] 23 corresponds to the circuit XCS included in the arithmetic circuit CDV1 shown in FIGS. 1 and 2, the circuits XCS[1] to XCS[3] included in the arithmetic circuit CDV2 shown in FIGS. 12 and 13, the circuits XCS[1] to XCS[3] included in the arithmetic circuit CDV2A shown in FIGS. 16 and 17, or the circuit XCS included in the arithmetic circuit CDV3 shown in FIGS. 20 and 21. The circuit XCS includes, for example, circuits XCSa[1] to XCSa[m].
[0335] In FIG. 23, the circuit XCSa[1] is, for example, electrically connected to a wiring XCL[1], and the circuit XCSa[m] is, for example, electrically connected to a wiring XCL[m].
[0336] The circuit XCSa has a function of supplying a signal of an amount corresponding to the second data to the wirings XCL[1] to XCL[n]. Note that in the case of the arithmetic circuit CDV in FIG. 23, the signal is preferably a current.
[0337] Fig. 24C is a block diagram showing an example of a circuit XCS that can be applied to the arithmetic circuit CDV of Fig. 23. Note that Fig. 24C also shows wiring XCL to show electrical connection between the circuit XCS and peripheral circuits.
[0338] The circuit XCS has, for example, the same number of circuits XCSa and switches SW5 as the number of wirings XCL. That is, the circuit XCS has m circuits XCSa and m switches SW5.
[0339] 24C can be any one of the wirings XCL[1] to XCL[m] included in the arithmetic circuit CDV in Fig. 23. Therefore, the wirings XCL[1] to XCL[m] are each electrically connected to a first terminal of a different switch SW5, and the m circuits XCSa are each electrically connected to a second terminal of a different switch SW5.
[0340] Depending on the circuit configuration of the arithmetic circuit, the circuit XCS in FIG. 24C may be configured without the switch SW5.
[0341] The circuit XCSa shown in FIG. 24C includes, as an example, a switch SWX. A first terminal of the switch SWX is electrically connected to the wiring XCL, and a second terminal of the switch SWX is electrically connected to the wiring VINIL2. The wiring VINIL2 functions as a wiring that applies an initialization potential to the wiring XCL, and the initialization potential can be a ground potential (GND), a low-level potential, or a high-level potential. The initialization potential applied by the wiring VINIL2 can be equal to the potential applied by the wiring VINIL1. Note that the switch SWX is turned on only when the initialization potential is applied to the wiring XCL, and is turned off otherwise.
[0342] The switch SWX may be, for example, a switch applicable to the switch SWW.
[0343] The circuit configuration of the circuit XCSa in Fig. 24C can be made almost the same as that of the circuit WCSa in Fig. 24A. Specifically, the circuit XCSa has a function of outputting reference data as a current amount and a function of outputting L bits (2L and a function of outputting second data of the value (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 value (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.
[0344] 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".
[0345] In FIG. 24C, the terminal T2 of one current source CS is electrically connected to the wiring DX[1], and each of the terminals T2 of two current sources CS is electrically connected to the wiring DX[2]. L−1 Each of the terminals T2 of the current sources CS is electrically connected to the wiring DX[L].
[0346] In particular, the wirings DW[1] to DW[K] can be wirings electrically connected to the terminal XITS of the circuit XCS described in embodiment 1 (including the terminal XITS[1] of the circuit XCS[1], the terminal XITS[2] of the circuit XCS[2], and the terminal XITS[3] of the circuit XCS[3]).
[0347] The multiple current sources CS of the circuit XCSa are each supplied with the same constant current I Xut from the terminal T1. The wirings DX[1] to DX[L] are electrically connected to the current sources CS and I Xut That is, the circuit XCSa has a function of causing a current amount corresponding to L-bit information transmitted from the wirings DX[1] to DX[L] to flow through the wiring XCL.
[0348] 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 wiring DX[1] and a low-level potential is applied to the wiring DX[2]. At this time, a constant current I is applied from the circuit XCSa to the wiring XCL. Xut Furthermore, 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 wiring DX[1] and a high level potential is applied to the wiring DX[2]. At this time, a constant current of 2I flows from the circuit XCSa to the wiring 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 wiring DX[1] and the wiring DX[2]. At this time, a constant current of 3I flows from the circuit XCSa to the wiring XCL. Xut 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 wiring DX[1] and the wiring DX[2]. At this time, no constant current flows from the circuit XCSa to the wiring XCL. Note that in this specification and the like, this may be rephrased as a current of zero amount flows from the circuit XCSa to the wiring XCL. Also, the current of zero amount, I, output by the circuit XCSa Xut , 2I Xut , 3I Xut etc. can be the second data output by the circuit XCSa, and in particular, the constant current I Xut can be the reference data output by the circuit XCSa.
[0349] 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 In this embodiment, the constant current I output from the terminal T1 of each of the multiple current sources CS included in the circuit WCSa isWut The following explanation will be given assuming that there is no error.
[0350] 25A to 25D can be applied as the current source CS of the circuit XCSa, similar to the current source CS of the circuit WCSa. Specifically, the wiring DW shown in FIGS. 25A to 25D can be replaced with 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.
[0351] 24C can be configured similarly to the circuit WCSa shown in Fig. 24B. In this case, by replacing the circuit WCSa 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 in the symbols shown in Fig. 24B, the circuit XCSa can be configured similarly to the circuit WCSa.
[0352] 24C can have the same circuit configuration as the circuit WCSa shown in Fig. 26. In this case, by replacing the circuit WCSa with the circuit XCSa, the wiring DW[1] with the wiring DX[1], the wiring DW[2] with the wiring DX[2], and the wiring DW[K] with the wiring DX[L] in the reference symbols shown in Fig. 26, the circuit XCSa can have the same circuit configuration as the circuit WCSa.
[0353] <<Circuit WSD>> The circuit WSD corresponds to the circuit WSD described in Embodiment 1. 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 supplies a high-level potential to the wiring WSL[1] and a low-level potential to the wirings WSL[2] (not shown) to WSL[m]. This can 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]. As a result, the cell IM electrically connected to the wiring WSL[1] can be selected as the cell IM to which the first data is to be written.
[0354] 23 corresponds to the circuit RLC included in the arithmetic circuit CDV1 shown in FIGS. 1 and 2, the circuit RLC included in the arithmetic circuit CDV2 shown in FIGS. 12 and 13, the circuit RLC included in the arithmetic circuit CDV2A shown in FIGS. 16 and 17, or the circuits RLC[1] to RLC[3] included in the arithmetic circuit CDV3 shown in FIGS. 20 and 21. The circuit RLC includes, for example, a circuit SWS2 and conversion circuits ITRZ[1] to ITRZ[n].
[0355] The circuit SWS2 includes, for example, switches SW4[1] to SW4[n]. A first terminal of the switch SW4[1] is electrically connected to the wiring WCL[1], a second terminal of the switch SW4[1] is electrically connected to the input terminal of the conversion circuit ITRZ[1], and a control terminal of the switch SW4[1] is electrically connected to the wiring SWL2. A first terminal of the switch SW4[n] is electrically connected to the wiring WCL[n], a second terminal of the switch SW4[n] is electrically connected to the input terminal of the conversion circuit ITRZ[n], and a control terminal of the switch SW4[n] is electrically connected to the wiring SWL2.
[0356] In addition, 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].
[0357] In particular, the wirings OL[1] to OL[n] can be wirings electrically connected to the terminals ROTS of the circuit WCS described in embodiment 1 (including the terminals ROTS[1] of the circuit RLC[1], the terminals ROTS[2] of the circuit RLC[2], and the terminals ROTS[3] of the circuit RLC[3]).
[0358] For example, the wiring SWL2 functions as a wiring for switching between an on state and an off state of each of the switches SW4[1] to SW4[n]. Therefore, a high-level potential or a low-level potential is supplied to the wiring SWL2.
[0359] As each of the switches SW4[1] to SW4[n], for example, a switch that can be applied to the switches SW3[1] to SW3[n] can be used.
[0360] As described above, the circuit SWS2 has a function of bringing the wiring WCL and the conversion circuit ITRZ located in the same column into a conductive state or a non-conductive state. That is, the circuit SWS2 uses the switches SW4[1] to SW4[n] as switching elements to switch the conductive state or the non-conductive state between the circuit RLC and each of the wirings WCL[1] to WCL[n].
[0361] Each of the conversion circuits ITRZ[1] to ITRZ[n] has a function of calculating an activation function using a value corresponding to the amount of current input to the input terminal as an input value and outputting the calculation result to the output terminal.
[0362] The conversion circuit ITRZ1 shown in Fig. 27 is an example of a circuit that can be applied to the conversion circuits ITRZ[1] to ITRZ[n] in Fig. 23. Note that Fig. 27 also illustrates a circuit SWS2, wiring WCL, wiring SWL2, a switch SW4, and wiring OL to show 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 CDV in Fig. 23, the switch SW4 is any one of the switches SW4[1] to SW4[n] included in the arithmetic circuit CDV in Fig. 23, and the wiring OL is any one of the wirings OL[1] to OL[n] included in the arithmetic circuit CDV in Fig. 23.
[0363] The conversion circuit ITRZ1 in FIG. 27 is electrically connected to the wiring WCL via a switch SW4. The conversion circuit ITRZ1 is also electrically connected to the wiring OL. The conversion circuit ITRZ1 has a function of obtaining the difference between the amount of current flowing from the conversion circuit ITRZ1 to the wiring WCL and a predetermined amount of current, and outputting the difference current to the wiring OL. Note that, in the conversion circuit ITRZ1 in FIG. 27, if the amount of current flowing from the conversion circuit ITRZ1 to the wiring WCL is smaller than the predetermined amount of current, the conversion circuit ITRZ1 outputs the difference current to the wiring OL. If the amount of current flowing from the conversion circuit ITRZ1 to the wiring WCL is equal to or less than the predetermined amount of current, no current is output to the wiring OL (sometimes referred to as a current of zero amount flowing).
[0364] That is, the conversion circuit ITRZ1 in FIG. 27 functions as an arithmetic circuit of the ReLU function that outputs an analog current in response to an input of an analog current.
[0365] 23, the conversion circuits ITRZ[1] to ITRZ[n] can have the same configuration. Note that in this embodiment, each of the conversion circuits ITRZ[1] to ITRZ[n] will be described as having the circuit configuration of the conversion circuit ITRZ1.
[0366] The conversion circuit ITRZ1 shown in Figure 27 includes, as an example, transistors Tr12, Tr12m, Tr13, Tr13m, Tr14, Tr14m, Tr15, Tr15m, Tr16, Tr16m, Tr17, and Tr17m. In Figure 27, transistors Tr12, Tr12m, Tr13, Tr13m, Tr16, Tr16m, Tr17, and Tr17m are p-channel transistors. In Figure 27, transistors Tr14, Tr14m, Tr15, and Tr15m are n-channel transistors.
[0367] In the conversion circuit ITRZ1, a first terminal of the transistor Tr13 is electrically connected to the wiring VDE, a second terminal of the transistor Tr13 is electrically connected to the first terminal of the transistor Tr12, and a gate of the transistor Tr13 is electrically connected to the gate of the transistor Tr13m, the second terminal of the transistor Tr12, and the second terminal of the switch SW4. The gate of the transistor Tr12 is electrically connected to the wiring RSWL1 and the gate of the transistor Tr12m. The first terminal of the transistor Tr13m is electrically connected to the wiring VDE, and the second terminal of the transistor Tr13m is electrically connected to the first terminal of the transistor Tr12.
[0368] The second terminal of the transistor Tr12m is electrically connected to the input terminal of the constant current source CI, the first terminal of the transistor Tr14, the gate of the transistor Tr15, and the gate of the transistor Tr15m. The second terminal of the transistor Tr14 is electrically connected to the first terminal of the transistor Tr15, and the gate of the transistor Tr14 is electrically connected to the wiring RSWL2 and the gate of the transistor Tr14m. The second terminal of the transistor Tr15 is electrically connected to the wiring VSE.
[0369] The output terminal of the constant current source CI is electrically connected to the wiring VSE2.
[0370] A first terminal of the transistor Tr17 is electrically connected to the wiring VDE, and a second terminal of the transistor Tr17 is electrically connected to the first terminal of the transistor Tr16. The second terminal of the transistor Tr16 is electrically connected to the gate of the transistor Tr17, the gate of the transistor Tr17m, and the first terminal of the transistor Tr14m. The second terminal of the transistor Tr14m is electrically connected to the first terminal of the transistor Tr15m, and the second terminal of the transistor Tr15m is electrically connected to the wiring VSE.
[0371] The gate of the transistor Tr16 is electrically connected to the wiring RSWL3 and the gate of the transistor Tr16m. The first terminal of the transistor Tr17m is electrically connected to the wiring VDE, the second terminal of the transistor Tr17m is electrically connected to the first terminal of the transistor Tr16m, and the second terminal of the transistor Tr16m is electrically connected to the wiring OL.
[0372] For example, the wiring VDE functions as a wiring that applies a fixed potential. Note that the fixed potential is preferably a high-level potential. In some cases, the fixed potential may be a low-level potential, a ground potential, or a negative potential.
[0373] For example, the wiring VSE functions as a wiring that applies a fixed potential. Note that the fixed potential is preferably a low-level potential. In some cases, the fixed potential may be a high-level potential, a ground potential, a negative potential, or the like.
[0374] The wiring VSE2 functions as a wiring for applying a fixed potential to the output terminal of the constant current source CI. The fixed potential can be, for example, a low-level potential, a ground potential, or a negative potential. The fixed potential applied to the wiring VSE2 can be equal to the fixed potential applied to the wiring VSE.
[0375] 27 , transistors Tr12, Tr12m, Tr14, Tr14m, Tr16, and Tr16m function as cascode-connected transistors, for example. Therefore, wiring RSWL1 functions as a wiring that applies a bias potential to the gates of transistors Tr12 and Tr12m, for example. Wiring RSWL2 functions as a wiring that applies a bias potential to the gates of transistors Tr14 and Tr14m, for example. Wiring RSWL3 functions as a wiring that applies a bias potential to the gates of transistors Tr16 and Tr16m, for example.
[0376] Note that the transistors Tr12, Tr12m, Tr14, Tr14m, Tr16, and Tr16m can each function as a switching transistor. For example, applying a high-level potential to the wiring RSWL1 can turn off the transistors Tr12 and Tr12m. Applying a low-level potential to the wiring RSWL2 can turn off the transistors Tr15 and Tr15m. Applying a high-level potential to the wiring RSWL3 can turn off the transistors Tr16 and Tr16m.
[0377] 27, the gate of transistor Tr13 is electrically connected to the second terminal of transistor Tr12 and the gate of transistor Tr13m, so that the connection configuration of transistor Tr13 and transistor Tr13m forms a current mirror circuit. In other words, ideally, the amount of current flowing between the source and drain of transistor Tr13 is equal to the amount of current flowing between the source and drain of transistor Tr13m.
[0378] 27 , the first terminal of transistor Tr14 is electrically connected to the gate of transistor Tr15 and the gate of transistor Tr15m, so that the connection between transistor Tr15 and transistor Tr15m forms a current mirror circuit. Ideally, the amount of current flowing between the source and drain of transistor Tr15 is equal to the amount of current flowing between the source and drain of transistor Tr15m. Similarly, the gate of transistor Tr17 is electrically connected to the gate of transistor Tr17m and the second terminal of transistor Tr16, so that the connection between transistor Tr17 and transistor Tr17m forms a current mirror circuit. Ideally, the amount of current flowing between the source and drain of transistor Tr17 is equal to the amount of current flowing between the source and drain of transistor Tr17m.
[0379] The constant current source CI has, for example, a current amount I STD A constant current of I is output to the wiring VDE2. STD corresponds to the reference value of the ReLU function in the conversion circuit ITRZ1.
[0380] The conversion circuit ITRZ1 converts the amount of current I OP When a current of I is output, OP >I STD In this case, the current amount I OP -I STD It outputs a current of I OP ≦I STD If so, no current is output from the wiring OL.
[0381] <<Example of Arithmetic Operation>> Here, an example of the operation of the arithmetic circuit CDV shown in FIG. 23 will be described.
[0382] 28 shows a timing chart of an operation example of the arithmetic circuit CDV of FIG. 23. The timing chart of FIG. 23 shows fluctuations in the potentials of the wiring SWL1, the wiring SWL2, the wiring WSL[i] (i is an integer of 1 to m-1), the wiring WSL[i+1], the wiring XCL[i], the wiring XCL[i+1], the node N[i,j] (j is an integer of 1 to n-1), the node N[i+1,j], the node Nd[i], and the node Nd[i+1] between time T01 and time T13 and in the vicinity thereof. Furthermore, the timing chart of FIG. 28 shows fluctuations in the potentials of the wiring SWL1, the wiring SWL2, the wiring WSL[i] (i is an integer of 1 to m-1), the wiring WSL[i+1], the wiring XCL[i], the wiring XCL[i+1], the node N[i,j] (j is an integer of 1 to n-1), the node N[i+1,j], the node Nd[i], and the node Nd[i+1] between time T01 and time T13 and in the vicinity thereof. F2 [i, j] and the amount of current I flowing between the first terminal and the second terminal of the transistor F2d included in the cell IMd[i] F2d [i] and the amount of current I flowing between the first terminal and the second terminal of the transistor F2 included in the cell IM[i+1, j]. F2 [i+1, j] and the amount of current I flowing between the first terminal and the second terminal of the transistor F2d included in the cell IMd[i+1]. F2d The variations of [i+1] and [i+2] are also shown.
[0383] 24A is applied as the circuit WCS of the arithmetic circuit CDV, and the circuit XCS of FIG. 24C is applied as the circuit XCS of the arithmetic circuit CDV. The circuit XCS may be configured without the switch SW5, that is, the wiring XCL and the circuit XCSa may be directly and electrically connected. Alternatively, in this operation example, the switch SW5 of the circuit XCS may be always on during operation.
[0384] In this operation example, the potential of the wiring VE is set to the ground potential GND. Also, before time T01, the potentials of the nodes N[i,j], N[i+1,j], Nd[i], and Nd[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. 24A to the ground potential GND and turning on the switches SWW, SW3, and the transistors F1 included in the cells IM[i,j] and IM[i+1,j], the potentials of the nodes N[i,j] and N[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 24C to the ground potential GND and turning on the switch SWX and the transistor F1d included in each of the cells IMd[i] and IMd[i+1], the potentials of the nodes Nd[i, j] and Nd[i+1, j] can be set to the ground potential GND.
[0385] [From time T01 to time T02] Between time T01 and time T02, a high-level potential (denoted as High in FIG. 28) is applied to the wiring SWL1, and a low-level potential (denoted as Low in FIG. 28) is applied to the wiring SWL2. As a result, a high-level potential is applied to each control terminal of the switches SW3[1] to SW3[n], turning on each of the switches SW3[1] to SW3[n], and a low-level potential is applied to each gate of the switches SW4[1] to SW4[n], turning off each of the switches SW4[1] to SW4[n].
[0386] Furthermore, between time T01 and time T02, a low-level potential is applied to the wirings WSL[i] and WSL[i+1]. As a result, a low-level potential is applied 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 gates of the transistors F1d included in the cell IMd[i], turning off the transistors F1 and F1d. Furthermore, a low-level potential is applied to the gates of the transistors 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 gates of the transistors F1d included in the cell IMd[i+1], turning off the transistors F1 and F1d.
[0387] 24C is the wiring XCL[i] and 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.
[0388] 24A , the first data is not input to the wirings DW[1] to DW[K] between time T01 and time T02. In this case, a low-level potential is input to each of the wirings DW[1] to DW[K] in the circuit WCSa of FIG. 24A . In addition, the second data is not input to the wirings DX[1] to DX[L] in the circuit XCSa of FIG. 24C between time T01 and time T02. In this case, a low-level potential is input to each of the wirings DX[1] to DX[L] in the circuit XCSa of FIG. 24C .
[0389] Furthermore, between time T01 and time T02, no current flows through the wiring WCL[j], the wiring XCL[i], and the wiring XCL[i+1]. F2 [i, j], IF2d [i], I F2 [i+1, j] and I F2d [i+1] is 0.
[0390] [From Time T02 to Time T03] Between Time T02 and Time T03, a high-level potential is applied to the wiring WSL[i]. As a result, a high-level potential is applied 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 transistor F1d included in the cell IMd[i], turning on the transistors F1 and F1d. Between Time T02 and Time T03, a low-level potential is applied to the wirings WSL[1] to WSL[m] other than the wiring WSL[i]. Therefore, the transistors 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 F1d included in the cells IMd[1] to IMd[m] other than the i-th row of the cell array CA are turned off.
[0391] Furthermore, the ground potential GND has been applied to the wirings XCL[1] to XCL[m] continuously since before time T02.
[0392] [From time T03 to time T04] Between time T03 and time T04, the current amount I is supplied as first data from the circuit WCSa[j] to the wiring WCL[j] via the switch SW3[j]. 0 Specifically, when the wiring WCL shown in FIG. 24A is the wiring WCL[j], a signal corresponding to the first data is input to each of the wirings DW[1] to DW[K], and a current I flows from the circuit WCSa to the second terminal of the switch SW3[j]. 0 That is, the value of the K-bit signal input as the first data is α[i,j] (α[i,j] is set to 0 or more, 2 or more). K -1 or less), then I 0 [i,j]=α[i,j]×I Wut This becomes:
[0393] When α[i, j] is 0, I 0Since [i, j]=0, strictly speaking, no current flows from the circuit WCSa to the cell array CA via the switch SW3[j]. 0 It may be written as "a current of [i, j] = 0 flows."
[0394] Between time T03 and time T04, the first terminal of the transistor F1 included in the cell IM[i, j] of the i-th row of the cell array CA is in a conductive state between the wiring WCL[j], and the first terminal of the transistor F1 included in the cells IM[1, j] to IM[m, j] other than the i-th row of the cell array CA is in a non-conductive state between the wiring WCL[j]. Therefore, a current amount I flows from the wiring WCL[j] to the cell IM[i, j]. 0 A current of [i, j] flows.
[0395] 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 (here, GND). In this operation example, the amount of current I flows from the wiring WCL[j] to the cell IM[i,j]. 0 As a result of the current flowing through node N[i,j], the potential of the gate of transistor F2 (node N[i,j]) becomes V g [i, j]. That is, in the transistor F2, the gate-source voltage is V g [i, j]-GND, and the current flowing between the first terminal and the second terminal of the transistor F2 is the current I 0 [i, j] is set. In this operation example, GND is set to 0V.
[0396] Here, the threshold voltage of the transistor F2 of the cell IM[i, j] is V th When [i, j], the amount of current I when the transistor F2 operates in the subthreshold region 0[i, j] can be written as follows:
[0397]
[0398] In addition, I a is V g [i, j] is V th The drain current when [i, j] is the drain current, and J is a correction coefficient determined by the temperature, device structure, etc.
[0399] In addition, between time T03 and time T04, the circuit XCS supplies the wiring XCL[i] with a current amount I as reference data. ref0 Specifically, when the wiring XCL shown in FIG. 24C 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:
[0400] Between time T03 and time T04, a state of conduction is established between the first terminal of the transistor F1d included in the cell IMd[i] and the wiring XCL[i], so that a current amount I ref0 A current of flows.
[0401] As with cell IM[i, j], when transistor F1d included in cell IMd[i] is turned on, transistor F2d included in cell IMd[i] is configured as a diode connection. Therefore, when current flows from wiring XCL[i] to cell IMd[i], the potentials of the gate of transistor F2d and the second terminal of transistor F2d become approximately equal. This potential is determined by the amount of current flowing from wiring XCL[i] to cell IMd[i] and the potential of the first terminal of transistor F2d (here, GND), etc. In this operation example, a current amount I flows from wiring XCL[i] to cell IMd[i]. ref0 As a result of the current flowing, the potential of the gate (node Nd[i]) of the transistor F2 becomes V gd[i], and the potential of the wiring XCL[i] at this time is also V gd That is, in the transistor F2d, the gate-source voltage is V gd [i]-GND, and the current flowing between the first terminal and the second terminal of the transistor F2d is the current I ref0 As described above, in this operation example, GND is set to 0V.
[0402] Here, the threshold voltage of the transistor F2d is V thd When [i] is set, the amount of current I when the transistor F2d operates in the subthreshold region is ref0 can be written as the following formula:
[0403]
[0404] The correction coefficient J is assumed to be the same as that of the transistor F2 included in the cell IM[i, j]. For example, the device structure and size (channel length and channel width) of the transistors are assumed to be the same. Although the correction coefficient J of each transistor varies due to manufacturing variations, it is assumed that the variation is suppressed to a degree that allows the discussion below to be carried out with sufficient accuracy for practical use.
[0405] Here, the weighting coefficient w[i, j], which is the first data, is defined as follows:
[0406]
[0407] Therefore, Equation (2.2), Equation (2.3), I 0 [i,j]=α[i,j]×I Wut and I ref0 =I Xut Using this, equation (2.1) can be rewritten as the following equation:
[0408]
[0409] The constant current I output from the current source CS of the circuit WCSa in FIG. Wut and the constant current I output from the current source CS of the circuit XCSa of FIG. 24C. Xut If and are equal, then w[i,j] = α[i,j]. That is, I Wut And, IXut If 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.
[0410] [From time T04 to time T05] A low-level potential is applied to the wiring WSL[i] from time T04 to time T05. As a result, a low-level potential is applied 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 F1d included in the cell IMd[i], turning off the transistors F1 and F1d.
[0411] When the transistor F1 included in the cell IM[i, j] is turned off, a potential difference V between the gate of the transistor F2 (node N[i, j]) and the potential of the wiring XCL[i] is applied to the capacitance element C5. g [i, j]-V gd [i] is held. Also, by turning off the transistor F1 included in the cell IMd[i], the capacitance element C5d holds 0, which is the difference between the potential of the gate (node Nd[i]) of the transistor F2d and the potential of the wiring XCL[i]. Note that the voltage held by the capacitance element C5d is a non-zero voltage (here, for example, V ds In this case, the potential of the node Nd[i] is V ds can be thought of as the electric potential obtained by adding
[0412] 24C is the wiring XCL[i], the potential for initialization of the wiring VINIL2 can be set to the ground potential GND by turning on the switch SWX.
[0413] Therefore, the potentials of nodes N[i,1] to N[i,n] change due to capacitive coupling by capacitive element C5 included in each of cells IM[i,1] to IM[i,n] in the i-th row, and the potential of node Nd[i] changes due to capacitive coupling by capacitive element C5d included in cell IMd[i].
[0414] The amount of change in the potential of the nodes N[i,1] to N[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, for example, from the capacitance of the capacitive element C5, the gate capacitance of the transistor F2, and the parasitic capacitance. In each of the cells IM[i,1] to IM[i,n], when the capacitive coupling coefficient of the capacitive element C5 is U, the potential of the node N[i,j] of the cell IM[i,j] is calculated by multiplying the potential between time T04 and time T05 by U(V gd [i] -GND) decreases.
[0415] Similarly, when the potential of the wiring XCL[i] changes, the potential of the node Nd[i] also changes due to the capacitive coupling by the capacitive element C5d included in the cell IMd[i]. When the capacitive coupling coefficient of the capacitive element C5d is U, the same as the capacitive element C5, the potential of the node Nd[i] of the cell IMd[i] changes from the potential between time T04 and time T05 to U(V gd [i] -GND) decreases.
[0416] 28, as an example, U = 1. Therefore, the potential of the node Nd[i] between time T05 and time T06 is GND.
[0417] As a result, the potential of the node N[i,j] of the cell IM[i,j] drops, so that the transistor F2 is turned off, and similarly, the potential of the node Nd[i] of the cell IMd[i] drops, so that the transistor F2d is also turned off. F2 [i, j] and I F2d Each of [i] is 0.
[0418] [From Time T06 to Time T07] Between Time T06 and Time T07, a high-level potential is applied to the wiring WSL[i+1]. As a result, a high-level potential is applied 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 F1d included in the cell IMd[i+1], turning on the transistors F1 and F1d. Also, between Time T06 and Time T07, a low-level potential is applied to the wirings WSL[1] to WSL[m] other than the wiring WSL[i+1]. Therefore, the transistors 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 F1d included in the cells IMd[1] to IMd[m] other than the i+1th row of the cell array CA are turned off.
[0419] Furthermore, the ground potential GND has been applied to the lines XCL[1] to XCL[m] continuously since before time T16.
[0420] [From time T07 to time T08] Between time T07 and time T08, the circuit WCS supplies the current amount I as first data to the cell array CA via the switch SW3[j]. 0 A current of [i+1, j] flows. Amount of current I 0 For [i+1, j], the amount of current I flowing from the circuit WCS to the cell array CA between time T03 and time T04 0 Therefore, when the value of the first data is α[i+1, j], the amount of current I 0 [i+1, j] is I 0 [i+1,j]=α[i+1,j]×I Wut It can be expressed as:
[0421] At this time, the first terminal of the transistor F1 included in the cell IM[i+1,j] in the i+1th row of the cell array CA is in a conductive state between the wiring WCL[j], and the first terminal of the transistor F1 included in the cells IM[1,j] to IM[m,j] other than the i+1th row of the cell array CA is in a non-conductive state between the wiring WCL[j], so that a current amount I 0 A current of [i+1, j] flows.
[0422] By the way, when the transistor F1 included in the cell IM[i+1,j] is turned on, the transistor F2 included in the cell IM[i+1,j] is configured as a diode connection. Also, in this operation example, a current I 0 As a result of the current [i+1, j] flowing, the potential of the gate of transistor F2 (node N[i+1, j]) becomes V g Therefore, similar to the operation from time T03 to time T04, the gate-source voltage of the transistor F2 becomes V g [i+1, j]-GND, and the current flowing between the first terminal and the second terminal of the transistor F2 is the current I 0 [i+1, j] is set. As described above, in this operation example, GND is set to 0V.
[0423] Here, the threshold voltage of the transistor F2 of the cell IM[i+1, j] is V th When [i+1, j], the amount of current I when the transistor F2 operates in the subthreshold region 0 [i+1, j] can be written as follows:
[0424]
[0425] The correction coefficient is set to J, which is the same as that of the transistor F2 included in the cell IM[i, j] and the transistor F2d included in the cell IMd[i].
[0426] In addition, between time T07 and time T08, the circuit XCS supplies the wiring XCL[i+1] with a current amount I ref0 Specifically, as in the period from time T03 to time T04, when the wiring XCL shown in FIG. 24C 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.
[0427] Between time T07 and time T08, a state of conduction is established between the first terminal of the transistor F1d included in the cell IMd[i+1] and the wiring XCL[i+1], so that a current amount I ref0 A current of flows.
[0428] As with the cell IM[i+1, j], when the transistor F1d included in the cell IMd[i+1] is turned on, the transistor F2d included in the cell IMd[i+1] is diode-connected. In this operation example, when a current flows from the wiring XCL[i+1] to the cell IMd[i+1], the potential of the gate of the transistor F2d (node Nd[i+1]) becomes V gd Therefore, similar to the operation from time T03 to time T04, the gate-source voltage of the transistor F2d becomes V gd [i+1]-GND, and the current flowing between the first terminal and the second terminal of the transistor F2d is the current I ref0 As described above, in this operation example, GND is set to 0V.
[0429] Here, the threshold voltage of the transistor F2d is V thd When [i+1, j], the amount of current I when the transistor F2d operates in the subthreshold region ref0 can be written as the following formula:
[0430]
[0431] The correction coefficient J is the same as that of the transistor F2 included in the cell IM[i+1, j].
[0432] Here, the weighting coefficient w[i+1, j], which is the first data, is defined as follows:
[0433]
[0434] Therefore, equations (2.6), (2.7), and I 0 [i+1,j]=α[i+1,j]×I Wut and I ref0 =I Xut Using this, equation (2.5) can be rewritten as the following equation:
[0435]
[0436] As in equation (2.4), I Wut And, I Xut Preferably, and are equal to each other.
[0437] [From time T08 to time T09] A low-level potential is applied to the wiring WSL[i+1] from time T08 to time T09. As a result, a low-level potential is applied 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 F1d included in the cell IMd[i+1], turning off the transistors F1 and F1d.
[0438] When the transistor F1 included in the cell IM[i+1, j] is turned off, a potential difference V between the gate of the transistor F2 (node N[i+1, j]) and the potential of the wiring XCL[i+1] is applied to the capacitance element C5. g [i+1, j]-V gd[i+1] is held. Also, by turning off the transistor F1 included in the cell IMd[i+1], the capacitance element C5d holds 0, which is the difference between the potential of the gate of the transistor F2d (node Nd[i+1]) and the potential of the wiring XCL[i+1]. Note that the voltage held by the capacitance element C5d is a non-zero voltage (here, for example, V ds In this case, the potential of the node Nd[i+1] is V ds can be thought of as the electric potential obtained by adding
[0439] 24A 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.
[0440] Therefore, similar to the operation from time T05 to time T06, the potentials of nodes N[i+1,1] to N[i+1,n] change due to capacitive coupling by capacitive element C5 included in each of cells IM[i+1,1] to IM[i+1,n] in the i+1th row, and the potential of node Nd[i+1] changes due to capacitive coupling by capacitive element C5d included in cell IMd[i+1]. Note that for the changes in the potentials of nodes N[i+1,1] to N[i+1,n], the description of the changes in the potentials of nodes N[i,1] to N[i,n] from time T05 to time T06 can be referred to.
[0441] Here, the amount of change in the potential of the nodes N[i+1,1] to N[i+1,n] is the potential obtained by multiplying the amount of change in the potential of the wiring XCL[i+1] by a capacitive coupling coefficient U determined by the configuration of each of the cells IM[i+1,1] to IM[i+1,n] included in the cell array CA, similar to the operation from time T05 to time T06. At this time, the potential of the node N[i+1,j] of the cell IM[i+1,j] is calculated by multiplying the amount of change in the potential of the wiring XCL[i+1] by a capacitive coupling coefficient U determined by the configuration of each of the cells IM[i+1,1] to IM[i+1,n] included in the cell array CA. gd [i+1]-GND) decreases.
[0442] Similarly, when the potential of the wiring XCL[i+1] changes, the potential of the node Nd[i+1] also changes due to the capacitive coupling by the capacitive element C5d included in the cell IMd[i+1]. When the capacitive coupling coefficient of the capacitive element C5d is U, as with the capacitive element C5, the potential of the node Nd[i+1] of the cell IMd[i+1] changes from the potential at the time point between time T08 and time T09 to U(V gd [i+1]-GND) decreases.
[0443] As a result, the potential of the node N[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 Nd[i+1] of the cell IMd[i+1] drops, so that the transistor F2d is also turned off. Therefore, between time T09 and time T10, I F2 [i+1, j] and I F2d Each of [i+1] is 0.
[0444] [From time T10 to time T11] A low-level potential is applied to the wiring SWL1 from time T10 to time T11. As a result, a low-level potential is applied to each of the control terminals of the switches SW3[1] to SW3[n], and each of the switches SW3[1] to SW3[n] is turned off.
[0445] [From time T11 to time T12] A high-level potential is applied to the wiring SWL2 from time T11 to time T12. As a result, a high-level potential is applied to each control terminal of the switches SW4[1] to SW4[n], and each of the switches SW4[1] to SW4[n] is turned on.
[0446] [From time T12 to time T13] Between time T12 and time T13, the circuit XCS transmits the current amount I as second data to the wiring XCL[i]. ref0 x[i] times x[i]I ref0 Specifically, for example, when the wiring XCL shown in FIG. 24C is a wiring XCL[i], a high-level potential or a low-level potential is input to each of the wirings DX[1] to DX[K] depending on 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] is changed from 0 to V gd [i]+ΔV[i].
[0447] When the potential of the wiring XCL[i] changes, the potentials of the nodes N[i,1] to N[i,n] also change due to capacitive coupling by the capacitive element 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 N[i,j] of the cell IM[i,j] is V g [i, j]+UΔV[i].
[0448] Similarly, when the potential of the wiring XCL[i] changes, the potential of the node Nd[i] also changes due to capacitive coupling by the capacitive element C5d included in the cell IMd[i]. Therefore, the potential of the node Nd[i] of the cell IMd[i] is V gd [i]+UΔV[i].
[0449] As a result, the amount of current I flowing between the first terminal and the second terminal of the transistor F2 from time T12 to time T13 is 1[i, j], the amount of current I flowing between the first terminal and the second terminal of the transistor F2d ref1 [i, j] can be written as follows:
[0450]
[0451]
[0452] The value x[i] of the neuron signal, which is the second data, is given by the following formula.
[0453]
[0454] Therefore, equation (2.9) can be rewritten as the following equation using equations (2.4) and (2.11).
[0455]
[0456] In other words, the amount of current flowing between the first and second terminals of transistor F2 included in cell IM[i,j] is proportional to the product of the weight coefficient w[i,j], which is the first data, and the value x[i], which is the neuron signal, which is the second data.
[0457] In addition, between time T12 and time T13, the circuit XCS supplies the current amount I as second data to the wiring XCL[i+1]. ref0 x[i+1]I, which is x[i+1] times ref0 Specifically, for example, when the wiring XCL shown in FIG. 24C 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] depending on the value of x[i+1], and a current of x[i+1] 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 line XCL[i+1] changes from 0 to V gd It is assumed that the voltage V changes to [i+1]+ΔV[i+1].
[0458] When the potential of the wiring XCL[i+1] changes, the potentials of the nodes N[i+1,1] to N[i+1,n] also change due to capacitive coupling by the capacitive element 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 N[i+1,j] of the cell IM[i+1,j] is V g [i+1, j]+UΔV[i+1].
[0459] Similarly, when the potential of the wiring XCL[i+1] changes, the potential of the node Nd[i+1] also changes due to the capacitive coupling of the capacitive element C5d included in the cell IMd[i+1]. Therefore, the potential of the node Nd[i+1] of the cell IMd[i+1] is V gd [i+1]+UΔV[i+1].
[0460] As a result, the amount of current I flowing between the first terminal and the second terminal of the transistor F2 from time T12 to time T13 is 1 [i+1, j], the amount of current I flowing between the first terminal and the second terminal of the transistor F2m ref1 [i+1, j] can be written as follows:
[0461]
[0462]
[0463] The value x[i+1] of the neuron signal is given by the following formula:
[0464]
[0465] Therefore, equation (2.13) can be rewritten as the following equation using equations (2.8) and (2.15):
[0466]
[0467] In other words, the amount of current flowing between the first and second terminals of transistor F2 included in cell IM[i+1,j] is proportional to the product of the weight coefficient w[i+1,j], which is the first data, and the value x[i+1], which is the neuron signal, which is the second data.
[0468] Here, consider the total amount of current flowing from the conversion circuit ITRZ[j] to the cell IM[i, j] and the cell IM[i+1, j] via the switch SW4[j] and the wiring WCL[j]. The total amount of current is defined as I S [j], then I S [j] can be expressed by the following equation from equations (2.12) and (2.16).
[0469]
[0470] Therefore, the amount of current output from the conversion circuit ITRZ[j] is proportional to the result of the sum-of-products operation between the weighting 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.
[0471] In the above example of operation, the sum of the amounts of current flowing through cells IM[i,j] and IM[i+1,j] was considered, but the sum of the amounts of current flowing through each of cells IM[1,j] to IM[m,j] can also be considered. In this case, equation (2.17) can be rewritten as the following equation.
[0472]
[0473] Therefore, even in the case of an arithmetic circuit CDV having three or more rows and a plurality of columns of cell arrays CA, it is possible to perform a product-sum operation as described above. In this case, the arithmetic circuit CDV selects one of the plurality of 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.
[0474] The method of operating the semiconductor device of the present invention is not limited to the above. For example, in the above-described method of operation, the amount of current I is supplied as reference data from the circuit XCSa to the wiring XCL during the period from time T03 to time T04 and between time T07 and time T08 in the timing chart shown in FIG. ref0However, the amount of current flowing as reference data is not limited to this. In other words, between time T03 and time T04 and between time T07 and time T08 in the timing chart shown in FIG. 28, a current of I ref0 = x ut , that is, the amount of current that makes the value of the second data 1 flows, but the amount of current that flows as the reference data is x bs I ref0 (x bs where x is an integer of 1 or more. bs is a number that can be expressed by L bits in the circuit XCSa of FIG. 24C. For example, when L=8, x bs can take values from 0 to 255.
[0475] As a specific example, in the timing chart shown in FIG. 28, between time T03 and time T04, 255I is transmitted as reference data from the circuit XCSa[i] to the wiring XCL[i]. ref0 (=255x ut ) is passed through the circuit XCSa[i] to write the first data w[i,j] into the cell IM[i,j]. Then, between time T12 and time T13, the second data I is passed through the circuit XCSa[i] to the wiring XCL[i]. ref0 (= x ut ) flows, a current of an amount corresponding to w[i,j] / 255 flows between the cell IM[i,j] and the wiring WCL[j]. As another specific example, in the timing chart shown in FIG. 28, a current of 128I flows from the circuit XCSa[i] to the wiring XCL[i] between time T03 and time T04. ref0 (=128x ut ) is passed through the circuit XCSa[i] to the wiring XCL[i] as the second data, and then, between time T12 and time T13, a current of 192I is passed through the circuit XCSa[i] to the wiring XCL[i] as the second data. ref0 (=192x ut ) flows, a current of an amount corresponding to w[i,j]×192 / 128=1.5w[i,j] flows between the cell IM[i,j] and the wiring WCL[j].
[0476] To summarize the above, the reference data is x bs I ref0 (= x bs x ut ) to write the first data w[i,j] into the cell IM[i,j], and then write the second data x[i]I from the circuit XCSa[i] to the wiring XCL[i]. ref0 (= x[i]x ut ) flows, between the cell IM[i,j] and the wiring WCL[j], w[i,j]x[i] / x bs A current corresponding to the
[0477] <Configuration Example 2> The configuration of the cells IM and IMd included in the arithmetic circuit CDV shown in FIG. 23 and described in the above configuration example 1 can be changed depending on the situation.
[0478] For example, the cell IM and cell IMd included in the arithmetic circuit CDV shown in Fig. 23 can be changed to the cell IM and cell IMd shown in Fig. 29. As an example, Fig. 29 shows an excerpt of cell IMd[1], cell IMd[m], cell IM[1,1], cell IM[m,1], cell IM[1,n], and cell IM[m,n].
[0479] Each of cells IM[1,1] to IM[m,n] in Fig. 29 includes a transistor F5 in addition to the circuit elements included in cells IM[1,1] to IM[m,n] in Fig. 23. Also, each of cells IMd[1] to IMd[m] in Fig. 29 includes a transistor F5d in addition to the circuit elements included in cells IMd[1] to IMd[m] in Fig. 23.
[0480] Note that the transistors F5 and F5d may be, for example, transistors applicable to the transistors F1, F2, F1d, and F2d. Therefore, the configurations of the transistors F5 and F5d refer to the descriptions of the transistors F1, F2, F1d, and F2d.
[0481] 29, in each of the cells IM[1,1] to IM[m,n], the first terminal of the transistor F1 is electrically connected to the gate of the transistor F2. The first terminal of the transistor F2 is electrically connected to the wiring VE. The first terminal of the capacitor C5 is electrically connected to the gate of the transistor F2. The second terminal of the transistor F2 is electrically connected to the first terminal of the transistor F5. The second terminal of the transistor F5 is electrically connected to the second terminal of the transistor F1.
[0482] 29, the first terminal of the transistor F1d is electrically connected to the gate of the transistor F2d. The first terminal of the transistor F2d is electrically connected to the wiring VE. The first terminal of the capacitor C5d is electrically connected to the gate of the transistor F2d. The second terminal of the transistor F2d is electrically connected to the first terminal of the transistor F5d. The second terminal of the transistor F5d is electrically connected to the second terminal of the transistor F1d.
[0483] In the cell IMd[1] and cells IM[1,1] to IM[1,n] arranged in the first row of the cell array CA, the gates of the transistors F5 and F5d are electrically connected to the wiring CLL[1]. In the cell IMd[m] and cells IM[m,1] to IM[m,n] arranged in the mth row of the cell array CA, the gates of the transistors F5 and F5d are electrically connected to the wiring CLL[m].
[0484] For example, each of the wirings CLL[1] to CLL[m] functions as a wiring that applies a fixed potential. The fixed potential can be, for example, a potential higher than 0 V or a potential higher than ground potential.
[0485] 23 , since the transistor F2 is directly and electrically connected to the wiring WCL, a change in the amount of current flowing through the wiring WCL may change the potential of the second terminal of the transistor F2. Also, since the transistor F2d is directly and electrically connected to the wiring XCL, a change in the amount of current flowing through the wiring XCL may change the potential of the second terminal of the transistor F2d. Therefore, the source-drain voltage of the transistor F2 or the transistor F2d may change, and the amount of current flowing through the transistor F2 or the transistor F2d may change.
[0486] 29 , by providing transistor F5 in cell IM, the second terminal of transistor F2 is less likely to be directly affected by changes in the potential of wiring WCL. This makes it possible to prevent sudden changes in the potential of the second terminal of transistor F2 caused by changes in the potential of wiring WCL. Similarly, by providing transistor F5d in cell IMd, the second terminal of transistor F2d is less likely to be directly affected by changes in the potential of wiring XCL. This makes it possible to prevent sudden changes in the potential of the second terminal of transistor F2d caused by changes in the potential of wiring XCL.
[0487] That is, the transistor F5 has a function of fixing the potential of the second terminal of the transistor F2 or a function of preventing a sudden change in the potential of the second terminal of the transistor F2. Similarly, the transistor F5d has a function of fixing the potential of the second terminal of the transistor F2d or a function of preventing a sudden change in the potential of the second terminal of the transistor F2d.
[0488] Therefore, by changing the configuration of the cells IM and IMd of the arithmetic circuit CDV of FIG. 23 to the cells IM and IMd shown in FIG. 29, the operation of the arithmetic circuit CDV can be stabilized.
[0489] <Configuration Example 3> In the arithmetic circuit CDV of configuration example 1, a configuration example of an arithmetic circuit that performs a product-sum operation between first data that is a positive value or "0" and second data that is a positive value or "0" has been shown, but by changing the circuit configuration of the arithmetic circuit CDV, it is possible to configure an arithmetic circuit that can perform a product-sum operation between first data that is a positive value, a negative value, or "0" and second data that is a positive value or "0".
[0490] The arithmetic circuit CDVA shown in Figure 30 is a modified example of the arithmetic circuit CDV shown in Figure 23, and differs from the arithmetic circuit CDV in that it has multiple cells IMp and multiple cells IMn instead of multiple cells IM, and that it has multiple wirings WCLp and multiple wirings WCLn instead of multiple wirings WCL.
[0491] In the cell array CA of Fig. 30, for example, cell IMp[i,j] (not shown) and cell IMn[i,j] (not shown) in the i-th row and j-th column are arranged to form a pair. Therefore, in the cell array CA, the arithmetic cells of cell IMp and cell IMn are arranged in a matrix of m rows and 2n columns. Note that in the arithmetic circuit CDVA, one pair of cell IMp[i,j] and cell IMn[i,j] can hold one first datum.
[0492] In the cell array CA, for example, the j-th column wiring WCLp[j] (not shown) and the j-th column wiring WCLn[j] (not shown) are arranged to form a pair. That is, for example, in the cell array CA, the wirings WCLp[1] to WCLp[n] and the wirings WCLn[1] to WCLn[n] are extended in the column direction.
[0493] In the cell array CA, the cell IMp[i,j] is electrically connected to the wiring XCL[i] (not shown) and the wiring WSL[i] (not shown). The cell IMp[i,j] is also electrically connected to the wiring XCL[j] (not shown).
[0494] In the cell array CA, the cell IMn[i,j] is electrically connected to the wiring XCL[i] and the wiring WSL[i]. The cell IMn[i,j] is also electrically connected to the wiring WCLn[j].
[0495] In addition, the circuit RLC has the function of acquiring the difference in the amount of current flowing through the wiring WCLp[j] and the wiring WCLn[j], and outputting information corresponding to the difference (for example, one or both of the current and the voltage) to the wiring OL[j].
[0496] As an example, the cells IMp and IMn 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 CDV in FIG.
[0497] Next, an example of a specific configuration of the cells IMp, IMn, IMd, etc. shown in FIG. 30 will be described.
[0498] Cell IMd can have the same configuration as cells IMp and IMn. Cell IMp in FIG. 30 is illustrated as having the same configuration as cell IMn, as an example. Furthermore, to distinguish between the transistors, capacitance elements, etc. included in cell IMp and cell IMn, the reference symbols indicating the transistors and capacitance elements included in cell IMp are marked with "p," and the reference symbols indicating the transistors and capacitance elements included in cell IMn are marked with "n."
[0499] Specifically, cell IMp has transistors F1p, F2p, and a capacitance element C5p. Note that transistor F1p corresponds to transistor F1 of cell IM, transistor F2p corresponds to transistor F2 of cell IM, and capacitance element C5p corresponds to capacitance element C5 of cell IM. Therefore, for the electrical connection configurations of transistor F1p, transistor F2p, and capacitance element C5p, refer to the above description of cells IM[1,1] to IM[m,n].
[0500] Specifically, cell IMn includes transistors F1n, F2n, and a capacitance element C5n. Note that transistor F1n corresponds to transistor F1 of cell IM, transistor F2n corresponds to transistor F2 of cell IM, and capacitance element C5n corresponds to capacitance element C5 of cell IM. Therefore, the above description of cells IM[1,1] to IM[m,n] can be referred to for the electrical connection configurations of transistor F1n, transistor F2n, and capacitance element C5n.
[0501] In the cell IMp, the connection point between the first terminal of the transistor F1p, the gate of the transistor F2p, and the first terminal of the capacitance element C5p is a node Np. In the cell IMn, the connection point between the first terminal of the transistor F1n, the gate of the transistor F2n, and the first terminal of the capacitance element C5n is a node Nn.
[0502] In the cell IMp[1,j], the second terminal of the capacitance element C5p is electrically connected to the wiring XCL[1], the gate of the transistor F1p is electrically connected to the wiring WSL[1], and the second terminals of the transistors F1p and F2p are electrically connected to the wiring WCLp[j]. In the cell IMn[1,j], the second terminal of the capacitance element C5n is electrically connected to the wiring XCL[1], the gate of the transistor F1n is electrically connected to the wiring WSL[1], and the second terminals of the transistors F1n and F2n are electrically connected to the wiring WCLn[j].
[0503] Similarly, in the cell IMp[m,j], the second terminal of the capacitance element C5p is electrically connected to the wiring XCL[m], the gate of the transistor F1p is electrically connected to the wiring WSL[m], and the second terminals of the transistors F1p and F2p are electrically connected to the wiring WCLp[j]. Also, in the cell IMn[m,j], the second terminal of the capacitance element C5n is electrically connected to the wiring XCL[m], the gate of the transistor F1n is electrically connected to the wiring WSL[m], and the second terminals of the transistors F1n and F2n are electrically connected to the wiring WCLn[j].
[0504] 23 , the wiring WCLp[j] functions as, for example, a wiring that passes a current from the circuit WCS to the cell IMp. Also, for example, the wiring WCLp[j] functions as, for example, a wiring that passes a current from the circuit RLC to the cell IMp. Similarly, each of the wirings WCLn[j] functions as, for example, a wiring that passes a current from the circuit WCS to the cell IMn, like the wirings WCL[1] to WCL[n] in FIG. 23 . Also, for example, the wiring WCLp[j] functions as, for example, a wiring that passes a current from the circuit RLC to the cell IMn.
[0505] 30 , the circuit SWS1 includes a switch SW3p[j] and a switch SW3n[j]. The first terminal of the switch SW3p[j] is electrically connected to a wiring WCLp[j], the second terminal of the switch SW3p[j] is electrically connected to a circuit WCSap[j] included in the circuit WCG (described later), and the control terminal of the switch SW3p[j] is electrically connected to a wiring SWL1. The first terminal of the switch SW3n[j] is electrically connected to a wiring WCLn[j], the second terminal of the switch SW3n[j] is electrically connected to a circuit WCSa[j] included in the circuit WCG (described later), and the control terminal of the switch SW3n[j] is electrically connected to a wiring SWL1.
[0506] As an example, the circuit WCG of the circuit WCS shown in Fig. 30 includes a circuit WCSap[j] and a circuit WCSa[j]. For example, the circuit WCSa shown in Fig. 24A or 24B can be applied to each of the circuit WCSap[j] and the circuit WCSa[j] in Fig. 30.
[0507] 30, the circuit SWS2 includes a switch SW4p[j] and a switch SW4n[j]. A first terminal of the switch SW4p[j] is electrically connected to a wiring WCLp[j], a second terminal of the switch SW4p[j] is electrically connected to a conversion circuit ITRZA[j] (described later), and a control terminal of the switch SW4p[j] is electrically connected to a wiring SWL2. A first terminal of the switch SW4n[j] is electrically connected to a wiring WCLn[j], a second terminal of the switch SW4n[j] is electrically connected to a conversion circuit ITRZA[j] (described later), and a control terminal of the switch SW4n[j] is electrically connected to a wiring SWL2.
[0508] The conversion circuit ITRZA[j] shown in Figure 30 is a circuit equivalent to the conversion circuit ITRZ[j] in the calculation circuit CDV of Figure 23, and has the function of generating a voltage corresponding to the difference between the amount of current flowing from the conversion circuit ITRZA[j] to the wiring WCLp[j] and the amount of current flowing from the conversion circuit ITRZA[j] to the wiring WCLn[j], for example, and outputting the voltage to the wiring OL[j].
[0509] A specific configuration example of the conversion circuit ITRZA[j] is shown in Figure 31. The conversion circuit ITRZAa shown in Figure 31 is an example of a circuit that can be applied to the conversion circuit ITRZA[j] of Figure 30. Note that Figure 31 also illustrates a circuit SWS2, wiring WCLp, wiring WCLn, wiring SWL2, and switches SW4p and SW4n in order to show the electrical connection of the conversion circuit ITRZAa with peripheral circuits. Furthermore, as an example, the wiring WCLp and wiring WCLn can be the wiring WCLp[j] and wiring WCLn[j] included in the arithmetic circuit CDVA of Figure 30, respectively, and the switches SW4p and SW4n can be the switches SW4p[j] and SW4n[j] included in the arithmetic circuit CDVA of Figure 30, respectively.
[0510] The conversion circuit ITRZAa in FIG. 31 is electrically connected to the wiring WCLp via a switch SW4p. The conversion circuit ITRZAa is also electrically connected to the wiring WCLn via a switch SW4n. The conversion circuit ITRZAa is also electrically connected to the wiring OL. The conversion circuit ITRZAa has a function of acquiring a differential current between either the amount of current flowing from the conversion circuit ITRZAa to the wiring WCLp via the switch SW4p or the amount of current flowing from the wiring WCLp to the conversion circuit ITRZAa via the switch SW4p, and either the amount of current flowing from the conversion circuit ITRZAa to the wiring WCLn via the switch SW4n or the amount of current flowing from the wiring WCLn to the conversion circuit ITRZAa via the switch SW4n. The conversion circuit ITRZAa also has a function of flowing this differential current between the conversion circuit ITRZAa and the wiring OL.
[0511] The conversion circuit ITRZAa in FIG. 31 includes, for example, a transistor F6, a current source CIp, a current source CIn, and a current mirror circuit CM.
[0512] The second terminal of the switch SW4p is electrically connected to the first terminal of the current mirror circuit CM and the output terminal of the current source CIp, and the second terminal of the switch SW4n is electrically connected to the second terminal of the current mirror circuit CM, the output terminal of the current source CIn, and the first terminal of the transistor F6. The input terminal of the current source CIp is electrically connected to the wiring VHE, and the input terminal of the current source CIn is electrically connected to the wiring VHE. The third terminal of the current mirror circuit CM is electrically connected to the wiring VLE, and the fourth terminal of the current mirror circuit CM is electrically connected to the wiring VLE.
[0513] A second terminal of the transistor F6 is electrically connected to the wiring OL, and a gate of the transistor F6 is electrically connected to the wiring SWL3.
[0514] As an example, the current mirror circuit CM has the function of flowing an amount of current corresponding to the potential of the first terminal of the current mirror circuit CM between the first terminal and the third terminal of the current mirror circuit CM and between the second terminal and the fourth terminal of the current mirror circuit CM.
[0515] The wiring VHE functions as, for example, a wiring that applies a fixed potential. Specifically, the fixed potential may be, for example, a high-level potential. Note that, in some cases, the fixed potential may be a low-level potential, a ground potential, or a negative potential.
[0516] The wiring VLE functions as, for example, a wiring that applies a fixed potential. Specifically, the fixed potential can be, for example, a low-level potential, a ground potential, or a negative potential. Note that, in some cases, the fixed potential can be a high-level potential.
[0517] The wiring SWL3 functions as a wiring for transmitting a signal for switching the transistor F6 on or off, for example. Specifically, for example, a high-level potential or a low-level potential is preferably input to the wiring SWL3.
[0518] The current source CIp has a function of causing a constant current to flow between its input terminal and output terminal. Also, the current source CIn has a function of causing a constant current to flow between its input terminal and output terminal. Note that in the conversion circuit ITRZAa of Fig. 31, it is preferable that the magnitude of the current flowed by the current source CIp is equal to the magnitude of the current flowed by the current source CIn.
[0519] Here, an example of the operation of the conversion circuit ITRZAa in FIG. 31 will be described.
[0520] First, the amount of current flowing from the conversion circuit ITRZAa to the wiring WCLp via the switch SW4p is determined as I Sp The amount of current flowing from the conversion circuit ITRZAa to the wiring WCLn via the switch SW4n is I Sn The amount of current flowing from each of the current sources CIp and CIn is expressed as I ini Let's say.
[0521] I Sp is the sum of the amounts of currents flowing through the cells IMp[1,j] to IMp[m,j] located in the j-th column in the arithmetic circuit CDVA of FIG. Snis the sum of the amounts of currents flowing through the cells IMn[1,j] to IMn[m,j] located in the j-th column in the arithmetic circuit CDVA of FIG.
[0522] When a high-level potential is input to the wiring SWL2, the switches SW4p and SW4n are turned on. Therefore, the amount of current flowing from the first terminal to the third terminal of the current mirror circuit CM is I ini -I Sp In addition, the current mirror circuit CM transfers I from the second terminal to the fourth terminal of the current mirror circuit CM. ini -I Sp A current of flows.
[0523] Next, a high-level potential is input to the wiring SWL3, and the transistor F6 is turned on. At this time, the amount of current flowing through the wiring OL is I out Then, I Sp >I Sn When out =I ini - (I ini -I Sp ) -I Sn =I Sp -I Sn This becomes:
[0524] Also, a configuration example of a conversion circuit that can be applied to the conversion circuit ITRZA[j] of the arithmetic circuit CDVA shown in FIG. 30 and is different from the conversion circuit ITRZa in FIG. 31 will be described.
[0525] Fig. 32 shows an example of the configuration of a conversion circuit ITRZa that can be applied to the conversion circuit ITRZA[j] of the arithmetic circuit CDVA shown in Fig. 30. Note that Fig. 32 also shows a circuit RLC including the conversion circuit ITRZa in order to show the peripheral connection configuration of the conversion circuit ITRZa.
[0526] The circuit RLC of FIG. 32 is a modified example of the circuit RLC shown in FIG. 27, and differs from the configuration of the circuit RLC of FIG. 27 in that the second terminal of the transistor Tr12m and the first terminal of the transistor Tr14 are electrically connected to the second terminal of the switch SW4n instead of the constant current source CI.
[0527] For the operation of the conversion circuit ITRZa in Fig. 32, the explanation of the operation of the circuit ITRZ1 in Fig. 27 can be referred to. For example, when the amount of current I OPp A current of I is output from the wiring WCLn. OPn When a current of I is output, OPp >I OPn In this case, the current amount I OPp -I OPn It outputs a current of I OPp ≦I OPn If so, no current is output from the wiring OL.
[0528] As described above, the conversion circuit ITRZa in FIG. OPp >I OPn In this case, I OPp -I OPn It outputs a current of I OPp ≦I OPn In this case, no current is output to the wiring OL, and the circuit functions as an arithmetic circuit for the ReLU function.
[0529] Here, a case will be described in which the arithmetic circuit CDVA in Fig. 30 performs a product-sum operation between first data that is a positive value, a negative value, or "0" and second data that is a positive value or "0." Note that the storage of the first data in the cell IM refers to the example of storing the first data described above.
[0530] When positive first data is held in the pair of cell IMp[i,j] and cell IMn[i,j], the cell IMp[i,j] is set so that an amount of current corresponding to the absolute value of the positive first data flows between the first terminal and the second terminal of the transistor F2p of cell IMp[i,j], and the cell IMn[i,j] is set so that no current flows between the first terminal and the second terminal of the transistor F2n of cell IMn[i,j].Furthermore, when negative first data is held in the pair of cell IMp[i,j] and cell IMn[i,j], the cell IMp[i,j] is set so that no current flows between the first terminal and the second terminal of the transistor F2p of cell IMp[i,j], and the cell IMn[i,j] is set so that an amount of current corresponding to the absolute value of the negative first data flows between the first terminal and the second terminal of the transistor F2n of cell IMn[i,j]. Furthermore, when the first data "0" is held in the pair of cell IMp[i,j] and cell IMn[i,j], the cell IMp[i,j] is set so that no current flows between the first terminal and the second terminal of the transistor F2p of cell IMp[i,j], and the cell IMn[i,j] is set so that no current flows between the first terminal and the second terminal of the transistor F2n of cell IMn[i,j].
[0531] Specifically, for example, consider a case where first data of the value w[i,j] is written to the cell IMp[i,j] and the cell IMn[i,j]. p [i, j] and write the value of w n Then, if w[i,j] is positive, write the value of w p [i,j]=w[i,j],w n [i, j] = 0. Also, if w[i, j] is negative, then w p [i, j] = 0, w n [i, j] = |w[i, j]|. Also, if w[i, j] is 0, then w p [i, j] = 0, w n [i, j]=0.
[0532] Here, when second data is input to each of the wirings XCL[1] to XCL[m] of the arithmetic circuit CDVA in FIG. 30, the amount of current flowing between the first terminal and the second terminal of the transistor F2p of the cell IMp[i,j] and the amount of current flowing between the first terminal and the second terminal of the transistor F2n of the cell IMn[i,j] are proportional to the second data.
[0533] I Sp is the sum of the currents flowing through the cells IMp[1,j] to IMp[m,j] located in the j-th column. Sp can be expressed by the following equation (2.19), for example. Sp corresponds to the result of multiply-and-accumulate operation between the absolute value of the positive first data and the second data. Sn is the sum of the currents flowing through the cells IMn[1,j] to IMn[m,j] located in the j-th column. Sn is the sum of the currents flowing through the cells IMn, and can be expressed in the same way as in equation (2.20) below. Sn corresponds to the result of a multiplication and accumulation operation between the absolute value of the negative first data and the second data.
[0534]
[0535] Therefore, the amount of current I flowing through the wiring OL out =I Sp -I Sn corresponds to the difference between the result of the sum-of-products operation between the absolute value of the positive first data and the second data and the result of the sum-of-products operation between the absolute value of the negative first data and the second data. out =I Sp -I Sn corresponds to the result of a product-sum operation between the negative, "0", or positive first data held in cells IMp[1,j] to IMp[m,j] and cells IMn[1,j] to IMn[m,j] and the second data input to each of wirings XCL[1] to XCL[m].
[0536] Incidentally, when the sum of the currents flowing through the cells IMp[1,j] to IMp[m,j] is greater than the sum of the currents flowing through the cells IMn[1,j] to IMn[m,j], that is, when ISp Ga I Sn When it is larger than out becomes a current amount greater than 0 and flows from the conversion circuit ITRZAa to the wiring OL. On the other hand, when the sum of the current amounts flowing through the cells IMp[1,j] to IMp[m,j] is smaller than the sum of the current amounts flowing through the cells IMn[1,j] to IMn[m,j], that is, when I Sp Ga I Sn In the following cases, there is a case where current does not flow from the wiring OL to the conversion circuit ITRZAa. Sp Ga I Sn When it is smaller than out can be set to approximately 0. Therefore, the conversion circuit ITRZAa can be considered to act as, for example, a ReLU function.
[0537] 30, it is possible to perform a product-sum operation with the first data (weighting coefficient) set to a negative value, which may improve the inference accuracy of the hierarchical neural network.
[0538] Note that this embodiment mode can be appropriately combined with the same or other embodiment modes described in this specification. For example, the configurations, structures, methods, and the like described in this embodiment mode can be appropriately combined and used with the configurations, structures, methods, and the like described in the other embodiment modes. For example, the configurations, structures, methods, and the like described in this embodiment mode can be appropriately combined and used with the configurations, structures, methods, and the like described in the other embodiment modes.
[0539] Embodiment Mode 3 In this embodiment mode, an example of a cross-sectional configuration of the arithmetic circuit described in the above embodiment mode will be described.
[0540] 33 is a schematic cross-sectional view of an example of the arithmetic circuits CDV1 to CDV3, the arithmetic circuit CDV2A, the arithmetic circuit CDV, and the arithmetic circuit CDVA described in the above embodiment. Note that, for convenience, the reference symbol of the arithmetic circuit CDV is used in FIG.
[0541] 33 shows an excerpt of the layers LY[0], LY[1], and LY[2]. Although not shown in FIG. 33, a layer LY[3] can be formed above the layer LY[2].
[0542] As shown in Figures 1, 12, 16 and 20, in the arithmetic circuit CDV of Figure 33, layer LY[1] is located above layer LY[0], and layer LY[2] is located above layer LY[1].
[0543] 33 illustrates a transistor 400 included in the layer LY[0]. The transistor 400 is provided over a substrate 311 and includes a conductive layer 316 functioning as a gate, an insulating layer 315 functioning as a gate insulator, an insulating layer 317, a semiconductor region 313 including part of the substrate 311, and a low-resistance region 314a and a low-resistance region 314b functioning as a source region or a drain region. The transistor 400 may be a p-channel transistor or an n-channel transistor. The substrate 311 may be, for example, a single crystal silicon substrate.
[0544] Here, in the transistor 400 shown in FIG. 33 , a semiconductor region 313 (a part of a substrate 311) where a channel is formed has a convex shape. A conductive layer 316 is provided to cover the side and top surfaces of the semiconductor region 313 with an insulating layer 315 interposed therebetween. Note that the conductive layer 316 can be formed using a material that adjusts the work function. Such a transistor 400 is also called a FIN-type transistor because it utilizes the convex portion of the semiconductor substrate. Note that it is preferable to have an insulator in contact with the top of the convex portion and function as a mask for forming the convex portion. Here, the case where the convex portion is formed by processing a part of the semiconductor substrate is shown, but a semiconductor film having a convex shape can also be formed by processing an SOI substrate.
[0545] 33 is an example, and the structure of the transistor 400 is not limited thereto, and an appropriate transistor can be used depending on the circuit configuration or driving method. For example, the transistor 400 can be not only a fin type but also a planar type transistor.
[0546] Between each structure, a wiring layer having an interlayer film, wiring, and plugs can be provided. Furthermore, multiple wiring layers can be provided depending on the design. Furthermore, in this specification and the like, wiring and a plug electrically connected to the wiring can be integrated. That is, there are cases where a part of a conductor functions as wiring, and cases where a part of a conductor functions as a plug.
[0547] For example, an insulating layer 320, an insulating layer 324, and an insulating layer 326 are stacked in this order as an interlayer film over the transistor 400. A conductive layer 328 and the like are embedded in the insulating layer 320. A conductive layer 330 and the like are embedded in the insulating layer 324 and the insulating layer 326. The conductive layer 328 and the conductive layer 330 function as contact plugs or wirings.
[0548] The insulator serving as an interlayer film can also function as a planarizing film that covers the underlying unevenness. For example, the top surface of the insulating layer 320 can be planarized by planarization treatment using chemical mechanical polishing (CMP) to improve the planarity.
[0549] A wiring layer can be provided over the insulating layer 326 and the conductive layer 330. For example, in FIG. 33 , an insulating layer 350, an insulating layer 357, and an insulating layer 352 are stacked in this order over the insulating layer 326 and the conductive layer 330. A conductive layer 356 is formed in the insulating layer 350, the insulating layer 357, and the insulating layer 352. The conductive layer 356 functions as a contact plug or a wiring.
[0550] An insulating layer 353 and an insulating layer 354 are stacked in this order over the insulating layer 352 and the conductive layer 356. A conductive layer 358 is formed over the insulating layer 353 and the insulating layer 354. In particular, the conductive layer 358 functions as a contact plug or a wiring for electrically connecting to an upper circuit (for example, a circuit included in any of the layers LY[1] to LY[3]).
[0551] 33 illustrates a cell IM included in the layer LY[1] or the layer LY[2]. Specifically, the transistor F1, the transistor F2, and the capacitor C5 included in the cell IM are illustrated in FIG. 33. Note that the cell IM may be any of the cells IM[1,1] to IM[m,n] shown in FIG. 23 and described in the above embodiment.
[0552] In the layer LY[1] or layer LY[2] of the arithmetic circuit CDV in FIG. 33, the capacitive element C5 is located above the transistor F2, and the transistor F1 is located above the capacitive element C5.
[0553] In the layer LY[1] or the layer LY[2] in Figure 33, the transistor F2 has, on one island-shaped semiconductor layer, a conductive layer that functions as a source, a conductive layer that functions as a drain, and a conductive layer that functions as a gate.
[0554] In particular, the transistor F2 shown in Figure 33 can be formed by first depositing a conductive layer and an insulating layer that function as a source and drain on an island-shaped semiconductor layer in that order, then providing openings in the conductive layer and the insulating layer that reach the semiconductor layer, and providing a gate insulating film and a conductive layer that functions as a gate in the opening.
[0555] In particular, in transistor F2, the gate insulating film and the conductive layer functioning as the gate are provided in a self-aligned manner so as to fill an opening provided in the insulating layer. A transistor in which the gate insulating film and the conductive layer functioning as the gate are formed in a self-aligned manner so as to fill an opening is also called a TGSA (Top Gate Self Align or Trench Gate Self Align) FET.
[0556] The channel length of the TGSA FET is longer than that of the structure of transistor F1, which will be described later. Therefore, it is easier to reduce the off-state current of transistor F2 than that of transistor F1. In particular, in the calculation circuit CDV, since transistor F2 operates in the subthreshold region, reducing the off-state current of transistor F2 can sometimes improve the calculation accuracy of the calculation circuit CDV.
[0557] 33, a transistor having a conductive layer functioning as a back gate is used for the transistor F2. In particular, the back gate of the transistor F2 is located in a region overlapping with the gate insulating film and gate electrode of the transistor F2 below the one island-shaped semiconductor layer described above.
[0558] In particular, in the transistor F2, a conductive layer functioning as a gate and a conductive layer functioning as a back gate are arranged so that a channel formation region of the semiconductor is sandwiched between the two conductive layers. The back gate can function similarly to the gate. The threshold voltage of the transistor can be changed by changing the potential of the back gate. The potential of the back gate may be the same as that of the gate, or may be ground potential or any other potential.
[0559] In addition, since the gate and back gate are formed of conductive layers, they also have the function of preventing an electric field generated outside the transistor from acting on the semiconductor in which the channel is formed (particularly, an electrostatic shielding function against static electricity). That is, it is possible to prevent the electrical characteristics of the transistor from fluctuating due to the influence of an external electric field such as static electricity. Furthermore, by providing a back gate, it is possible to reduce the amount of change in the threshold voltage of the transistor before and after a bias thermal stress test (sometimes called a BT test).
[0560] For example, by using a transistor with a back gate as the transistor F2, the influence of an external electric field can be reduced, and the off state can be stably maintained. Therefore, data written to the first terminal of the capacitive element C5 can be stably held. By providing a back gate, the operation of the cell IM can be stabilized, and the reliability of the layer LY[1] or layer LY[2] including the cell IM can be improved.
[0561] 23 is electrically connected to one of the source electrode or drain electrode of transistor F2. In particular, wiring VE extends in the channel width direction (Y direction) of transistor F2, as an example. Furthermore, a conductor corresponding to wiring WCL1 or wiring WCL2 (wiring WCL in FIG. 23) in FIG. 2 is electrically connected to the other of the source electrode or drain electrode of transistor F2.
[0562] In Figure 33, the wiring WCL refers to a conductive layer that functions as a plug, but the region of the wiring WCL is not limited to this, and a conductive layer in contact with the plug may also be considered to be the region of the wiring WCL.
[0563] As an example, the capacitance element C5 includes, in this order, a lower conductive layer that functions as one of a pair of electrodes of the capacitance element C5, an insulating layer that functions as a first dielectric, a conductive layer that functions as the other of the pair of electrodes of the capacitance element C5, an insulating layer that functions as a second dielectric, and an upper conductive layer that functions as one of the pair of electrodes of the capacitance element C5. Note that the lower conductive layer that functions as one of the pair of electrodes of the capacitance element C5 and the upper conductive layer that functions as one of the pair of electrodes of the capacitance element C5 have a region where they are in contact with each other.
[0564] In the capacitor C5, the region where the lower conductive layer functioning as one of the pair of electrodes of the capacitor C5, the insulating layer functioning as the first dielectric, and the conductive layer functioning as the other of the pair of electrodes of the capacitor C5 overlap is a trench type. Also, in the capacitor C5, the region where the conductive layer functioning as the other of the pair of electrodes of the capacitor C5, the insulating layer functioning as the second dielectric, and the upper conductive layer functioning as one of the pair of electrodes of the capacitor C5 overlap is a planar type.
[0565] The conductive layer that functions as the other of the pair of electrodes of the capacitance element C5 extends in the channel width direction (Y direction) of the transistor F2 and corresponds to the wiring XCL in FIG.
[0566] The transistor F1 has a structure in which the conductive layer functioning as the source and the conductive layer functioning as the drain are located at different heights, and the current flowing through the semiconductor layer is in the height direction. In other words, the channel length direction has a component in the height direction (vertical direction or Z direction). Therefore, the transistor F1 can also be called a VFET (Vertical Field Effect Transistor), vertical transistor, vertical channel transistor, vertical channel transistor, etc. Furthermore, because the channel length of the transistor F1 has a component along the side of the opening, it is easier to make it shorter than the channel length of, for example, a TGSA FET, which will be described later.
[0567] By shortening the channel length, the transistor F1 can increase the on-current, thereby shortening the time required to write data to the cell IM.
[0568] The semiconductor layers in which the channels of the transistors F1 and F2 are formed can be formed using a single crystal semiconductor, a polycrystalline semiconductor, a microcrystalline semiconductor, an amorphous semiconductor, or the like, either singly or in combination. Examples of the semiconductor material include silicon and germanium. Other examples include compound semiconductors such as silicon germanium, silicon carbide, gallium arsenide, oxide semiconductors, and nitride semiconductors.
[0569] In particular, the transistors F1 and F2 are preferably transistors (OS transistors) that use an oxide semiconductor, which is a type of metal oxide, in a semiconductor layer where channels are formed. Since an oxide semiconductor has a band gap of 2 eV or more, its off-state current is significantly small. Therefore, the power consumption of the cell IM can be reduced. Therefore, the power consumption of the operational circuit CDV including the cell IM can be reduced.
[0570] Furthermore, the OS transistor operates stably even in a high-temperature environment, and its characteristics fluctuate little. For example, the off-state current hardly increases even in a high-temperature environment. Specifically, the off-state current hardly increases even in an ambient temperature range from room temperature to 200° C. Furthermore, the on-state current hardly decreases even in a high-temperature environment. Therefore, the cell IM operates stably even in a high-temperature environment, and high reliability is achieved.
[0571] <Configuration Example of Cell IM> Next, a specific example of the configuration of the cell IM shown in FIG. 33 will be described.
[0572] Fig. 34A shows a schematic plan view of cell IM. Fig. 34B is a schematic cross-sectional view corresponding to the portion of dashed dotted line A1-A2 shown in Fig. 34A, and is also a schematic cross-sectional view of transistor F1, transistor F2, and capacitance element C5. Fig. 34C is a schematic cross-sectional view corresponding to the portion of dashed dotted line A3-A4 shown in Fig. 34A, and is also a schematic cross-sectional view of transistor F1, transistor F2, and capacitance element C5.
[0573] In Figures 34A to 34C, the direction of the dashed dotted line A1-A2 is the X direction, and the direction of the dashed dotted line A3-A4 is the Y direction. The direction perpendicular to the X and Y directions is the Z direction. The X and Y directions can be perpendicular to each other. The definitions of the X, Y, and Z directions may be the same or different in subsequent drawings. In the description of the schematic plan view in Figure 34A etc., the right side may be referred to as the +X direction, the left side as the -X direction, the upper side as the +Y direction, and the lower side as the -Y direction. In the description of the schematic cross-sectional view in Figure 34B etc., the right side may be referred to as the +X direction, the left side as the -X direction, the upper side as the +Z direction, and the lower side as the -Z direction. In the description of the schematic cross-sectional view in Figure 34C etc., the right side may be referred to as the -Y direction, the left side as the +Y direction, the upper side as the +Z direction, and the lower side as the -Z direction.
[0574] The transistor F2 in FIGS. 34A to 34C is provided on an insulating layer IS1, for example.
[0575] The insulating layer IS1 functions as a base film for providing the transistor F2, for example, and is located above a substrate (corresponding to the substrate 311 in FIG. 33, not shown in FIG. 34).
[0576] As an example, transistor F2 in Figures 34A to 34C has an insulating layer IB1, a conductive layer ME1a, an insulating layer BGI1, an insulating layer BGI2, an insulating layer BGI3, a semiconductor layer SC1, a conductive layer ME2a, a conductive layer ME2b, an insulating layer IB2, an insulating layer GI1, and a conductive layer ME3a.
[0577] The insulating layer IB1 is located above the insulating layer IS1.
[0578] For example, the insulating layer IB1 functions as a barrier film that suppresses the diffusion of impurities from below the insulating layer IB1 to the conductive layer or semiconductor layer SC1 located above the insulating layer IB1.
[0579] For example, impurities in the conductive layer include oxygen, which reduces conductivity through oxidation. Furthermore, impurities in the semiconductor layer include elements, atoms, molecules, ions, etc., which increase the number of carriers in the semiconductor layer. In particular, in the transistor F1 of FIGS. 34A to 34C , the insulating layer IB1 preferably functions as a barrier film that suppresses the diffusion of impurities into the semiconductor layer SC1.
[0580] An insulating layer IS2 that functions as an interlayer film is located above the insulating layer IB1. As shown in Figures 34B and 34C, the insulating layer IB1 and the insulating layer IS2 have openings (sometimes referred to as grooves) that extend in the Y direction, and conductive layers ME1a are embedded in the openings.
[0581] The conductive layer ME1a has a region serving as the back gate of the transistor F2. As described above, the conductive layer ME1a is embedded in the openings of the insulating layers IB1 and IS2, and is therefore provided so as to extend in the Y direction as shown in FIGS.
[0582] As an example, insulating layers BGI1, BGI2, and BGI3 are located above the insulating layer IS2 and the conductive layer ME1a. In particular, the insulating layer BGI3 is formed in an island shape on the insulating layer BGI2.
[0583] The insulating layers BGI1 to BGI3 function as a back-gate insulating film (sometimes referred to as a second gate insulating film) of the transistor F2, for example.
[0584] As an example, a semiconductor layer SC1 is located above the insulating layer BGI3.
[0585] The semiconductor layer SC1 includes a channel formation region of the transistor F2.
[0586] For example, conductive layers ME2a and ME2b are located above the semiconductor layer SC1. In particular, the conductive layer ME2a has a region in contact with the semiconductor layer SC1, and the conductive layer ME2b has a region in contact with the semiconductor layer SC1.
[0587] The conductive layer ME2a has a region that functions as one of the source and drain of the transistor F2, and the conductive layer ME2b has a region that functions as the other of the source and drain of the transistor F2. In particular, the conductive layer ME2a and the conductive layer ME2b are separated into a pair of conductive layers by the insulating layer GI1 and the conductive layer ME3a in the schematic top view of FIG. 34A and the schematic cross-sectional view of FIG. 34B.
[0588] For example, an insulating layer IB2 is located on the top surfaces of the conductive layer ME2a, the conductive layer ME2b, and the insulating layer BGI2. Also, for example, the insulating layer IB2 is located on the side surfaces of the conductive layer ME2a, the conductive layer ME2b, the semiconductor layer SC1, and the insulating layer BGI3.
[0589] 34A to 34C , the insulating layer IB2 preferably functions as a barrier film that suppresses the diffusion of impurities from above the insulating layer IB2 to the conductive layer or semiconductor layer SC1 located below the insulating layer IB2.
[0590] Above the insulating layer IB2, for example, an insulating layer IS3 having a function as an interlayer film is located.
[0591] Furthermore, openings with the semiconductor layer SC1 as their bottoms are formed in the regions of the insulating layer IS3 and the insulating layer IB2 that overlap with the conductive layer ME1a. The formation of these openings results in the formation of conductive layers ME2a and ME2b. Furthermore, the insulating layer GI1 and the conductive layer ME3a are provided inside the openings.
[0592] Specifically, inside the opening, insulating layer GI1 is located on the side surfaces of insulating layer IS3, insulating layer BGI3, and semiconductor layer SC1. In addition, insulating layer GI1 is also located on the top surfaces of semiconductor layer SC1 and insulating layer BGI2, which is at the bottom of the opening. In other words, insulating layer GI1 has regions in contact with insulating layer IS3, insulating layer BGI3, and semiconductor layer SC1. Furthermore, conductive layer ME3a is located on the top surface and side surfaces of insulating layer GI1. In other words, conductive layer ME3a has regions in contact with insulating layer GI1.
[0593] The insulating layer GI1 functions as a gate insulating film (sometimes referred to as a first gate insulating film) in the transistor F2.
[0594] The conductive layer ME3a has a region serving as the gate of the transistor F2.
[0595] Furthermore, in the regions of the insulating layer IS3 and the insulating layer IB2 that overlap with the conductive layer ME2a, openings are formed with the conductive layer ME2a as their bottoms, and the conductive layer ME4a is embedded inside the openings.
[0596] Furthermore, in the regions of the insulating layer IS3 and the insulating layer IB2 that overlap with the conductive layer ME2b, openings are formed with the conductive layer ME2b as their bottoms, and the conductive layer ME4b is embedded inside the openings.
[0597] Above the transistor F1, for example, an insulating layer IB4 and an insulating layer IS4 having a function as an interlayer film are located.
[0598] For example, the insulating layer IB4 functions as a barrier film that suppresses the diffusion of oxygen from below the insulating layer IB4 to above the insulating layer IB4. By the insulating layer IB4 functioning as a barrier film that suppresses the diffusion of oxygen, the conductive layer located above the insulating layer IB4 can be prevented from being oxidized, and the conductivity of the conductive layer can be prevented from decreasing.
[0599] Furthermore, the insulating layer IB4 and the insulating layer IS4 have, for example, a plurality of openings, in which the conductive layers ME5a, ME5b, and ME5c are embedded.
[0600] The conductive layer ME5a is electrically connected to the conductive layer ME2a via the conductive layer ME4a. That is, the conductive layer ME5a functions as a wiring electrically connected to the source or drain of the transistor F1. Similarly, the conductive layer ME5c is electrically connected to the conductive layer ME2b via the conductive layer ME4b. That is, the conductive layer ME5c functions as a wiring electrically connected to the source or drain of the transistor F1. The conductive layer ME5b is electrically connected to the conductive layer ME3a, which functions as the gate of the transistor F2, and is also electrically connected to the conductive layer ME6, which has one of a pair of electrodes of the capacitance element C5 described later. In particular, it is preferable that the conductive layer ME5b has an area overlapping with the conductive layer ME3a.
[0601] Above the insulating layer IS4 and the conductive layers ME5a to ME5c, for example, an insulating layer IB5, an insulating layer IS5 having a function as an interlayer film, and an insulating layer IB6 are positioned.
[0602] For example, the insulating layer IB5 functions as a barrier film that suppresses the diffusion of oxygen from above the insulating layer IB5 to below the insulating layer IB5. By the insulating layer IB5 functioning as a barrier film that suppresses the diffusion of oxygen, it is possible to prevent the conductive layer located below the insulating layer IB5 from being oxidized and to prevent a decrease in the conductivity of the conductive layer.
[0603] For example, the insulating layer IB6 functions as a barrier film that suppresses the diffusion of oxygen from below the insulating layer IB6 to above the insulating layer IB6. By the insulating layer IB6 functioning as a barrier film that suppresses the diffusion of oxygen, the conductive layer located above the insulating layer IB6 can be prevented from being oxidized, and the conductivity of the conductive layer can be prevented from decreasing.
[0604] The capacitive element C5 in FIGS. 34A to 34C includes, as an example, a conductive layer ME6, an insulating layer DI1, a conductive layer ME7, an insulating layer DI2, and a conductive layer ME8.
[0605] An opening having the conductive layer ME5b as a bottom is formed in an area where the insulating layers IB5, IS5, and IB6 overlap with the conductive layer ME3a. The conductive layer ME6, the insulating layer DI1, and the conductive layer ME7 are provided inside the opening.
[0606] Specifically, inside the opening, conductive layer ME6 is located on the side surfaces of insulating layer IS5, insulating layer IS6, and insulating layer IB6. Conductive layer ME6 is also located on the top surfaces of insulating layer IB6 and conductive layer ME5b, which is at the bottom of the opening. In other words, conductive layer ME6 has regions that contact insulating layer IS5, insulating layer IS6, and insulating layer IB6. Insulating layer DI1 is located on the top surface and side surfaces of conductive layer ME6, and conductive layer ME7 is located on the top surface and side surfaces of insulating layer DI1.
[0607] An insulating layer DI2 is located on the top surface of each of the conductive layer ME7 and the insulating layer DI1. A conductive layer ME8 is located on the top surface of each of the insulating layers DI2 and IB6. The conductive layer ME8 is also located on the side surfaces of the insulating layers DI1, DI2, and the conductive layer ME6. In particular, the conductive layer ME8 has a region in contact with the conductive layer ME6.
[0608] The conductive layer ME6 is, for example, a lower conductive layer that functions as one of a pair of electrodes of the capacitance element C5.
[0609] The conductive layer ME7 is, for example, a conductive layer that functions as the other of the pair of electrodes of the capacitance element C5. The conductive layer ME7 also functions as the wiring XCL in Fig. 23. For this reason, the conductive layer ME7 is formed to extend in the Y direction, as shown in Figs. 34A and 34C.
[0610] The conductive layer ME8 is, for example, an upper conductive layer that functions as one of a pair of electrodes of the capacitance element C5. As described above, the conductive layer ME8 has a region in contact with the conductive layer ME6, and therefore the conductive layer ME8 and the conductive layer ME6 are electrically connected to each other.
[0611] For example, the insulating layer DI1 functions as a first dielectric in the capacitive element C5. The insulating layer DI1 also has a region sandwiched between the conductive layers ME6 and ME7. In particular, this region is included within the openings formed in the insulating layers IB5, IS5, and IB6, respectively, and this allows a portion of the capacitive element C5 to function as a trench-type capacitive element (sometimes referred to as a cylinder-type capacitive element).
[0612] For example, the insulating layer DI2 functions as a second dielectric in the capacitive element C5. The insulating layer DI2 also has a region sandwiched between the conductive layers ME7 and ME8. As a result, a capacitance is formed in the capacitive element C5 at the portion where the conductive layers ME7 and ME8 overlap.
[0613] As an example, an insulating layer IB7 is located above the conductive layer ME8. Also, as an example, an insulating layer IS6 functioning as an interlayer film is located above the insulating layer IB7. Also, as an example, an insulating layer IB8 is located above each of the insulating layer IS6, the insulating layer IB7, and the conductive layer ME8.
[0614] For example, the insulating layer IB7 functions as a barrier film that suppresses the diffusion of oxygen from above the insulating layer IB7 to below the insulating layer IB7. By the insulating layer IB7 functioning as a barrier film that suppresses the diffusion of oxygen, it is possible to prevent the conductive layer located below the insulating layer IB7 from being oxidized and to prevent a decrease in the conductivity of the conductive layer.
[0615] For example, the insulating layer IB8 functions as a barrier film that suppresses the diffusion of impurities from below the insulating layer IB8 to above the insulating layer IB8. For example, the insulating layer IB8 preferably functions as a barrier film that suppresses the diffusion of impurities into the semiconductor layer SC2, which will be described later.
[0616] The transistor F1 in FIGS. 34A to 34C includes, as an example, a conductive layer ME8, a semiconductor layer SC2, a conductive layer ME9, an insulating layer GI2, and a conductive layer ME10.
[0617] Above the insulating layer IB8, for example, an insulating layer IS7 functioning as an interlayer film, an insulating layer IB9, and a conductive layer ME9 are located.
[0618] As an example, the insulating layer IB9 functions as a barrier film that suppresses the diffusion of impurities from below the insulating layer IB9 to above the insulating layer IB9. In particular, in the transistor F1 of Figures 34A to 34C, the insulating layer IB9 preferably functions as a barrier film that suppresses the diffusion of oxygen into the conductive layer ME9. By having the insulating layer IB9 function as a barrier film that suppresses the diffusion of oxygen, it is possible to prevent the conductive layer ME9 from being oxidized and to prevent a decrease in the conductivity of the conductive layer ME9.
[0619] Furthermore, each of the conductive layers ME8 and ME9 has a region that functions as the source or drain of the transistor F1.
[0620] In particular, the conductive layer ME9 also functions as the wiring WCL in Fig. 23. For this reason, the conductive layer ME9 is formed so as to extend in the X direction, as shown in Fig. 34A and Fig. 34B.
[0621] An opening is formed in each of insulating layer IB8, insulating layer IS7, insulating layer IB9, and conductive layer ME9, with conductive layer ME8 at its bottom. A semiconductor layer SC2, insulating layer GI2, and conductive layer ME10 are provided inside the opening. By providing the opening in a region overlapping conductive layers ME3a and ME5b, the circuit area of cell IM can be reduced.
[0622] The semiconductor layer SC2 has a region in contact with the side surfaces of the insulating layers IB8, IS7, IB9, and ME9, which correspond to the side surfaces of the opening, and with the top surface of the conductive layer ME8, which corresponds to the bottom of the opening. Furthermore, the semiconductor layer SC2 has a region in contact with the top surface of the conductive layer ME9. As described above, the semiconductor layer SC2 includes a channel formation region for the transistor F1. The channel length of the transistor F1 is determined by the depth of the opening (the length of the side surfaces of the opening, and the film thicknesses of the insulating layers IB8, IS7, and IB9).
[0623] The insulating layer GI2 has a function as a gate insulating film (sometimes referred to as a gate insulating layer) of the transistor F1, for example. The insulating layer GI2 has a region in contact with the upper surface of the semiconductor layer SC2 and the upper surface of the conductive layer ME9.
[0624] In particular, the thickness of the insulating layer GI2 significantly contributes to the electrical characteristics of the transistor F1. For example, by increasing the thickness of the insulating layer GI2 of the transistor F1, the tolerance to the gate potential can be increased. On the other hand, by decreasing the thickness of the insulating layer GI2 of the transistor F1, the driving frequency of the transistor can be increased. In other words, by determining the thickness of the insulating layer GI2, which is the gate insulating layer of each of the multiple transistors F1, for each transistor F1, it is possible to easily create transistors with high tolerance to the gate potential and transistors with high driving frequencies.
[0625] The conductive layer ME10 has, for example, a region that functions as the gate of the transistor F1. The conductive layer ME10 has a region that overlaps with at least a portion of the semiconductor layer SC2 and is in contact with the upper surface of the insulating layer GI2.
[0626] In particular, the conductive layer ME10 also functions as the wiring WSL in Fig. 23. For this reason, the conductive layer ME10 is formed so as to extend in the Y direction, as shown in Fig. 34A and Fig. 34B.
[0627] An insulating layer IB10 and an insulating layer IS8 having a function as an interlayer film are located above the insulating layer GI2 and the conductive layer ME10.
[0628] As an example, the insulating layer IB10 functions as a barrier film that suppresses the diffusion of impurities from above the insulating layer IB10 to below the insulating layer IB10. In particular, in the transistor F1 of Figures 34A to 34C, the insulating layer IB10 preferably functions as a barrier film that suppresses the diffusion of oxygen into the conductive layers ME9 and ME10. By having the insulating layer IB10 function as a barrier film that suppresses the diffusion of oxygen, the conductive layers ME9 and ME10 can be prevented from being oxidized, and a decrease in the conductivity of the conductive layers ME9 and ME10 can be prevented.
[0629] <<Example of Manufacturing Method of Cell IM>> Here, an example of a method of manufacturing the cell IM shown in Figures 34A to 34C will be described. In this description, Figures 35A to 71C will be used.
[0630] 35A to 71C, (A) in each figure shows a schematic plan view. Also, B in each figure is a schematic cross-sectional view corresponding to the portion of dashed dotted line A1-A2 shown in each (A), and is also a schematic cross-sectional view in the X direction. Also, C in each figure is a schematic cross-sectional view corresponding to the portion of dashed dotted line A3-A4 shown in each (A), and is also a schematic cross-sectional view in the Y direction. Note that in the schematic plan view A in each figure, some elements are omitted for clarity.
[0631] In the following, an insulating material for forming an insulator, a conductive material for forming a conductor, or a semiconductor material for forming a semiconductor can be formed by appropriately using a film formation method such as a sputtering method, a CVD (Chemical Vapor Deposition) method, an MBE (Molecular Beam Epitaxy) method, a PLD (Pulsed Laser Deposition) method, or an ALD (Atomic Layer Deposition) method.
[0632] First, a substrate (not shown) is prepared, and an insulating layer IS1, an insulating film IB1A, and an insulating film IS2A are formed on the substrate in this order (see FIGS. 35A to 35C).
[0633] For example, the substrate described in the first embodiment can be used as the substrate.
[0634] The insulating layer IS1 functions as an interlayer film, for example. The insulating layer IS1, which functions as an interlayer film, can be made of, for example, silicon oxide, silicon oxynitride, silicon nitride oxide, or silicon nitride. Alternatively, the insulating layer IS1 can be made of, for example, silicon oxide doped with fluorine, silicon oxide doped with carbon, silicon oxide doped with carbon and nitrogen, or silicon oxide with vacancies. Silicon oxide and silicon oxynitride are particularly preferred because they are thermally stable. Materials such as silicon oxide, silicon oxynitride, and silicon oxide with vacancies are particularly preferred because they can easily form regions containing oxygen that is desorbed by heating. Alternatively, the insulating layer IS1 can be made of, for example, a resin. The material used for the insulating layer IS1 can be an appropriate combination of the insulating materials described above.
[0635] In this specification and elsewhere, an oxynitride refers to a material whose composition contains more oxygen than nitrogen, and a nitride oxide refers to a material whose composition contains more nitrogen than oxygen. For example, silicon oxynitride refers to a material whose composition contains more oxygen than nitrogen, and silicon nitride oxide refers to a material whose composition contains more nitrogen than oxygen.
[0636] Furthermore, it is preferable to use an insulating material with a low relative dielectric constant for the insulating layer IS1. By using an insulating material with a low relative dielectric constant as an interlayer film, it is possible to reduce the parasitic capacitance that occurs between wirings. Specifically, for example, the relative dielectric constant of the insulating layer IS1 is preferably less than 4, and more preferably less than 3. Examples of insulating materials with a low relative dielectric constant include silicon oxide, silicon oxynitride, and silicon nitride oxide.
[0637] The insulating film IB1A is a film that will become the insulating layer IB1 in a later process.
[0638] As an example, the insulating layer IB1 preferably functions as a barrier insulating film that prevents impurities such as water, hydrogen, nitrogen, and oxygen contained in the insulating layer IS1 from mixing into the conductive layer ME1 and semiconductor layer SC1 that will be formed later.
[0639] Therefore, the insulating film IB1A contains hydrogen atoms, hydrogen molecules, water molecules, nitrogen atoms, nitrogen molecules, and nitrogen oxide molecules (for example, N 2 O, NO or NO 2 It is preferable to use an insulating material that has a function of suppressing the diffusion of impurities such as copper atoms and copper atoms (i.e., the impurities are less likely to permeate through the insulating material). Alternatively, it is preferable to use an insulating material that has a function of suppressing the diffusion of oxygen (e.g., oxygen atoms and / or oxygen molecules) (i.e., the oxygen is less likely to permeate through the insulating material).
[0640] Examples of insulators that can suppress the permeation of impurities such as water and hydrogen and oxygen include insulators containing one or more elements selected from boron, carbon, nitrogen, oxygen, fluorine, magnesium, aluminum, silicon, phosphorus, chlorine, argon, gallium, germanium, yttrium, zirconium, lanthanum, neodymium, hafnium, and tantalum, and can be used in a single layer or a stacked layer. Specifically, examples of insulators that can suppress the permeation of impurities such as water and hydrogen and oxygen include metal oxides such as aluminum oxide, magnesium oxide, gallium oxide, germanium oxide, yttrium oxide, zirconium oxide, lanthanum oxide, neodymium oxide, hafnium oxide, and tantalum oxide. Examples of insulators that can suppress the permeation of impurities such as water and hydrogen and oxygen include oxides containing aluminum and hafnium (hafnium aluminate). Furthermore, examples of insulators that have the function of suppressing the permeation of impurities such as water and hydrogen, and oxygen include metal nitrides such as aluminum nitride, aluminum titanium nitride, titanium nitride, silicon nitride oxide, and silicon nitride.
[0641] In particular, it is preferable to use aluminum oxide or silicon nitride for the insulating film IB1A, which can prevent impurities such as water and hydrogen from diffusing from below the insulating layer IB1 into the transistor F2.
[0642] The insulating film IB1A can be formed by, for example, sputtering, CVD, MBE, PLD, or ALD.
[0643] The insulating film IS2A is a film that will become the insulating layer IS2 in a later process.
[0644] The insulating layer IS2 functions as an interlayer film, similar to the insulating layer IS1. Therefore, the insulating film IS2A can be made of a material that can be used for the insulating layer IS1.
[0645] Next, lithography is used to process the insulating films IB1A and IS2A into strips, forming openings (which may also be called grooves) extending in a direction parallel to the dashed-dotted line A3-A4 (the Y direction) (see FIGS. 36A to 36C). This processes the insulating film IB1A into the insulating layer IB1, and the insulating film IS2A into the insulating layer IS2. Dry etching or wet etching can be used for the above processing, and dry etching is particularly suitable for fine processing.
[0646] In lithography, a resist is first exposed through a mask. The exposed area is then removed or left using a developer to form a resist mask. Next, etching is performed through the resist mask to process a conductor, semiconductor, insulator, or the like into a desired shape. For example, a resist mask can be formed by exposing the resist using KrF excimer laser light, ArF excimer laser light, or EUV (extreme ultraviolet) light. An immersion technique can also be used, in which a liquid (e.g., water) is filled between the substrate and the projection lens for exposure. Alternatively, an electron beam or ion beam can be used instead of the light described above. When an electron beam or ion beam is used, a mask is not required. The resist mask can be removed by dry etching such as ashing, wet etching, dry etching followed by wet etching, or wet etching followed by dry etching.
[0647] Furthermore, a hard mask made of an insulator or conductor can be used under the resist mask. When using a hard mask, an insulating or conductive film serving as the hard mask material is formed on the insulating film IS2A, a resist mask is formed thereon, and the hard mask material is etched to form a hard mask of the desired shape. Etching of the insulating film IS2A and the like can be performed after removing the resist mask, or can be performed while leaving the resist mask in place. In the latter case, the resist mask may be lost during etching. Alternatively, the hard mask can be removed by etching after etching the insulating film IS2A and the like. On the other hand, if the hard mask material does not affect subsequent processes or can be used in subsequent processes, there is no need to remove the hard mask.
[0648] Next, a conductive film ME1A1 and a conductive film ME1A2 are formed in this order on the insulating layer IS2 and on the insulating layer IB1 (see FIGS. 37A to 37C).
[0649] The conductive films ME1A1 and ME1A2 are films that will become the conductive layer ME1a in a later process. A portion of the conductive layer ME1a functions as the back gate electrode of the transistor F2. Similarly, another portion of the conductive layer ME1a also functions as wiring for applying a potential to the back gate electrode. Therefore, it is preferable to use a highly conductive material for the conductive films ME1A1 and ME1A2.
[0650] The conductive films ME1A1 and ME1A2 can be formed by a film formation method such as a sputtering method, a CVD method, an MBE method, a PLD method, or an ALD method. In this manufacturing method, it is preferable to form a titanium nitride film as the conductive film ME1A1 by a CVD method or an ALD method, and form a tungsten film as the conductive film ME1A2 by a CVD method.
[0651] In addition to titanium nitride, the conductive film ME1A1 can be made of conductive materials such as tantalum, tantalum nitride, titanium, ruthenium, ruthenium oxide, nitrides containing titanium and aluminum, nitrides containing tantalum and aluminum, ruthenium oxide, ruthenium nitride, oxides containing strontium and ruthenium, and oxides containing lanthanum and nickel. In particular, the above-mentioned materials are conductive materials that are resistant to oxidation or materials that maintain conductivity even when absorbing oxygen, so it is preferable to use these materials for the conductive layer ME1a. Alternatively, the conductive film ME1A1 can be made of a stacked structure containing two or more materials selected from the above-mentioned materials.
[0652] In addition to tungsten, the conductive film ME1A2 may be made of a conductive material such as a metal element selected from the group consisting of aluminum, chromium, copper, silver, gold, platinum, tantalum, nickel, titanium, molybdenum, hafnium, vanadium, niobium, manganese, magnesium, zirconium, beryllium, indium, ruthenium, iridium, strontium, and lanthanum, an alloy containing the above-mentioned metal element, or an alloy combining the above-mentioned metal elements. In addition, the conductive film ME1A2 may have a stacked structure containing two or more materials selected from the above-mentioned materials.
[0653] Next, the conductive films ME1A1 and ME1A2 are polished by planarization such as CMP until the insulating layer IS2 is exposed (see FIGS. 38A to 38C), whereby the conductive layers ME1a1 and ME1a2 (collectively referred to as conductive layer ME1a) are embedded in the openings formed in the insulating layers IS2 and IB1.
[0654] Furthermore, this processing results in a configuration in which the conductive layer ME1a2 is surrounded by the conductive layer ME1a1. By surrounding the conductive layer ME1a2 with a conductive material that is resistant to oxidation or a material that maintains conductivity even when it absorbs oxygen, it is possible to suppress a decrease in conductivity of the conductive layer ME1a due to oxidation, and to maintain the conductivity of the conductive layer ME1a.
[0655] Next, on the insulating layer IS2 and the conductive layer ME1a, an insulating layer BGI1, an insulating layer BGI2, an insulating film BGI3A, a semiconductor film SC1A1 and a semiconductor film SC1A2 (collectively referred to as the semiconductor film SC1A), and a conductive film ME2A are deposited in this order (see Figures 39A to 39C).
[0656] The insulating layer BGI1 is formed by depositing silicon oxide using a sputtering method. By using a sputtering method that does not use molecules containing hydrogen in the deposition gas, the hydrogen concentration in the insulating layer BGI1 can be reduced.
[0657] In addition to silicon oxide, the insulating layer BGI1 may be made of an insulating material such as silicon oxynitride.
[0658] The insulating layer BGI2 preferably has a function of suppressing the diffusion of oxygen (for example, oxygen atoms, oxygen molecules, etc.) (is less permeable to the oxygen).
[0659] The insulating layer BGI2 has a function of suppressing...
Claims
A first layer, a second layer, and a third layer, the second layer is located above the first layer, the third layer is located above the second layer, the first layer includes a first circuit, a second circuit, a third circuit, a fourth circuit, a fifth circuit, a first switching circuit, a second switching circuit, a third switching circuit, and a fourth switching circuit; the second layer includes a first computation cell; the third layer includes a second arithmetic cell; the first circuit has a function of generating a first current corresponding to first data and a function of generating a second current corresponding to second data; the second circuit has a function of generating a third current corresponding to third data and a function of generating a fourth current corresponding to fourth data; the first switching circuit has a function of bringing one of the first arithmetic cell and the second arithmetic cell into a conductive state with the first circuit, the second switching circuit has a function of bringing one of the first processing cell and the second processing cell into a conductive state, and one of the second circuit and the fourth circuit, the third switching circuit has a function of bringing one of the first processing cell and the second processing cell into a conductive state with the third circuit, the fourth switching circuit has a function of bringing one of the fourth circuit and the fifth circuit into a conductive state with the third circuit, the first processing cell has a function of holding a first potential corresponding to the first current, and a function of outputting a fifth current corresponding to a product of the first data and the third data by receiving a third potential corresponding to the third current; the second processing cell has a function of holding a second potential corresponding to the second current, and a function of outputting a sixth current corresponding to a product of the second data and the fourth data by receiving a fourth potential corresponding to the fourth current; the third circuit has a function of calculating an activation function using an amount of the fifth current, an amount of the sixth current, or a sum of the amount of the fifth current and the sixth current as an input value, and outputting a seventh current as a calculation result; the fourth circuit has a function of holding data corresponding to the seventh current; The fifth circuit has a function of converting the seventh current into digital data. Semiconductor device. A first layer, a second layer, and a third layer, the second layer is located above the first layer, the third layer is located above the second layer, the first layer includes a first circuit, a second circuit, a third circuit, a fourth circuit, and a fifth circuit; the second layer includes a first computation cell; the third layer includes a second arithmetic cell; the first circuit has a function of generating a first current corresponding to first data and a function of generating a second current corresponding to second data; the second circuit has a function of generating a third current according to third data; the third circuit has a function of generating a fourth current according to fourth data; the first processing cell has a function of holding a first potential corresponding to the first current, and a function of outputting a fifth current corresponding to a product of the first data and the third data by receiving a third potential corresponding to the third current; the second processing cell has a function of holding a second potential corresponding to the second current, and a function of outputting a sixth current corresponding to a product of the second data and the fourth data by receiving a fourth potential corresponding to the fourth current; the fourth circuit has a function of calculating an activation function using a sum of the amount of the fifth current and the amount of the sixth current as an input value, and outputting a seventh current as a calculation result; The fifth circuit has a function of converting the seventh current into digital data. Semiconductor device. A first layer, a second layer, and a third layer, the second layer is located above the first layer, the third layer is located above the second layer, the first layer has a first circuit, a second circuit, and a third circuit; the second layer includes a first arithmetic cell and a fourth circuit; the third layer includes a second arithmetic cell and a fifth circuit; the first circuit has a function of generating a first current corresponding to first data and a function of generating a second current corresponding to second data; the second circuit has a function of generating a third current according to third data; the first processing cell has a function of holding a first potential corresponding to the first current, and a function of outputting a fifth current corresponding to a product of the first data and the third data by receiving a third potential corresponding to the third current; the fourth circuit has a function of calculating an activation function using an amount of the fifth current as an input value, and outputting a fourth current corresponding to fourth data which is a result of the calculation; the second processing cell has a function of holding a second potential corresponding to the second current, and a function of outputting a sixth current corresponding to a product of the second data and the fourth data by receiving a fourth potential corresponding to the fourth current; the fifth circuit has a function of calculating an activation function using an amount of the sixth current as an input value and outputting a seventh current as a calculation result; The third circuit has a function of converting the seventh current into digital data. Semiconductor device. In any one of claims 1 to 3, each of the first processing cell and the second processing cell includes a first transistor, a second transistor, and a capacitance element; the first transistor comprises a first semiconductor layer, a first conductive layer having a region in contact with an upper surface of the first semiconductor layer and functioning as one of a source or a drain, a second conductive layer having a region in contact with an upper surface of the first semiconductor layer and functioning as the other of the source or the drain, a first insulating layer having a region in contact with an upper surface of the first semiconductor layer, a side surface of the first conductive layer, and a side surface of the second conductive layer, and a third conductive layer located above the first insulating layer and functioning as a gate; the capacitance element comprises: a fourth conductive layer having a region in contact with an upper surface of a second insulating layer and a side surface of an opening formed in the second insulating layer; a third insulating layer located on the fourth conductive layer and functioning as a dielectric; a fifth conductive layer located above the third insulating layer; a fourth insulating layer located above the fifth conductive layer and above the third insulating layer and functioning as a dielectric; and a sixth conductive layer having a region in contact with an upper surface of the fourth conductive layer and an upper surface of the fourth insulating layer; the second transistor has: the sixth conductive layer located below a fifth insulating layer and functioning as one of a source or a drain; a seventh conductive layer located above the fifth insulating layer and functioning as the other of the source or the drain; a second semiconductor layer in contact with a side surface of an opening formed in the fifth insulating layer and in contact with the sixth conductive layer and the seventh conductive layer; a sixth insulating layer located on the second semiconductor layer; and an eighth conductive layer located on the sixth insulating layer and functioning as a gate; the third conductive layer, the fourth conductive layer, the fifth conductive layer, the sixth conductive layer, and the eighth conductive layer have regions that overlap each other, the third conductive layer and the fourth conductive layer are electrically connected to each other. Semiconductor device. In claim 4, Each of the first semiconductor layer and the second semiconductor layer contains one or more selected from indium, zinc, and an element M; The element M is one or more selected from aluminum, gallium, silicon, yttrium, tin, copper, vanadium, beryllium, boron, titanium, iron, nickel, germanium, zirconium, molybdenum, lanthanum, cerium, neodymium, hafnium, tantalum, tungsten, cobalt, magnesium, and antimony; Semiconductor device. A semiconductor device comprising: the semiconductor device according to claim 5; and a housing. electronic equipment.
Citation Information
Patent Citations
Semiconductor device
WO2021198841A1
Semiconductor device, display device, and electronic device
WO2022229789A1
