Crossbar circuitry for performing convolution operations

The crossbar-based device optimizes memory access and reduces power consumption by employing separate crossbar circuits for 2D and depthwise convolutions, addressing inefficiencies in conventional systems and improving neural network performance.

JP2024536522AActive Publication Date: 2024-10-04TETRAMEM INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2024522495
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-10-18
Filing Date
2022-10-18
Publication Date
2024-10-04
Estimated Expiration
2042-10-18

AI Technical Summary

Technical Problem

Conventional crossbar circuits face inefficiencies in memory access and high power consumption when performing both 2D and depthwise convolution operations due to the need for different memory access patterns, leading to suboptimal performance in neural networks.

Method used

A crossbar-based device with separate crossbar circuits for 2D and depthwise convolutions, each connected to selection logic and word line logic, allowing for unified memory access patterns and efficient performance of both operations.

Benefits of technology

Enables efficient memory access and reduced power consumption by using the same memory access pattern for both 2D and depthwise convolutions, enhancing the performance of neural networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024536522000001_ABST
    Figure 2024536522000001_ABST
Patent Text Reader

Abstract

An apparatus for performing a convolution operation is provided according to some embodiments of the present disclosure. The apparatus includes a first crossbar circuit including a first plurality of crosspoint elements, a second crossbar circuit including a second plurality of crosspoint elements, and word line logic that applies input signals to the first crossbar circuit and the second crossbar circuit. The word line logic is configured to provide input signals representing input data to be convolved using one or more two-dimensional convolution kernels and one or more depthwise convolution kernels. The first crossbar circuit is configured to output a first plurality of output signals representing the convolution of the input data with the two-dimensional convolution kernels. The second crossbar circuit is configured to output a second plurality of output signals representing the convolution of the input data with the depthwise convolution kernels.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] (CROSS REFERENCE TO RELATED APPLICATIONS) This application claims priority to U.S. patent application Ser. No. 17 / 504,478, filed on October 18, 2022, entitled "Crossbar Circuits For Performing Convolution Operations," which is incorporated herein by reference in its entirety.

[0002] Implementations of the present disclosure relate generally to crossbar circuitry, and more specifically to crossbar circuitry for performing regular 2D convolution operations and depth-wise convolution operations. [Background technology]

[0003] A crossbar circuit can refer to a circuit structure with interconnected conductive lines that sandwich memory elements, such as resistive switching materials, at their intersections. The resistive switching materials can include, for example, memristors, sometimes called resistive random access memories (RRAM or ReRAM). Crossbar circuits can be used to implement in-memory computing applications, non-volatile solid-state memories, image processing applications, neural networks, and the like. Summary of the Invention [Means for solving the problem]

[0004] The following is a simplified summary of the disclosure to provide a basic understanding of some aspects of the disclosure. This summary is not an extensive overview of the disclosure. It is not intended to identify key or critical elements of the disclosure or to delineate the scope of particular implementations of the disclosure or the claims. Its sole purpose is to present some concepts of the disclosure in a simplified form as a prelude to the more detailed description provided later.

[0005] According to one or more aspects of the present disclosure, an apparatus for performing a depth convolution operation is provided, the apparatus including: a plurality of cross point elements connecting a plurality of word lines and a plurality of bit lines; and a plurality of select lines. The plurality of select lines includes a first select line connecting a first group of the plurality of cross point elements and a second select line connecting a second group of the plurality of cross point elements. The first group of the plurality of cross point elements includes a first cross point element connecting a first bit line of the plurality of bit lines to a first word line of the plurality of word lines, and a second cross point element connecting a second bit line of the plurality of bit lines to a second word line of the plurality of word lines. The second group of the plurality of cross point elements includes a third cross point element connecting the second word line to the first bit line, and a fourth cross point element connecting a third word line to the second bit line.

[0006] In some embodiments, the apparatus further includes selection logic configured to selectively enable one or more of the plurality of crosspoint elements via the plurality of select lines.

[0007] In some embodiments, the selection logic is further configured to enable the first of the plurality of crosspoint elements via the first select lines.

[0008] In some embodiments, the selection logic is further configured to enable the second plurality of crosspoint elements via the second select lines.

[0009] In some embodiments, the apparatus further includes programming logic configured to map a first plurality of elements of the depthwise convolution kernel to the first plurality of cross-point elements and to map a second plurality of elements of the depthwise convolution kernel to the second plurality of cross-point elements.

[0010] In some embodiments, the apparatus further includes word line logic coupled to the plurality of word lines, the word line logic configured to receive input data to be convolved using a plurality of depthwise convolution kernels, generate a plurality of input signals representative of the input data, and apply the plurality of input signals to one or more cross point elements of the plurality of cross point elements that are enabled by the selection logic.

[0011] In some embodiments, the apparatus further includes sensing logic that generates a digital output based on a plurality of output signals output via the plurality of bit lines, the digital output representing a convolution of the input data with the plurality of depthwise convolution kernels.

[0012] In some embodiments, the first plurality of cross point elements further includes a fifth cross point element connecting the third word line and the third bit line, In some embodiments, the second plurality of cross point elements further includes a sixth cross point element connecting a fourth word line and the third bit line.

[0013] In some embodiments, the select lines are not parallel to the bit lines.

[0014] In some embodiments, the select lines are not parallel to the word lines.

[0015] In some embodiments, at least one of the plurality of cross point elements comprises a transistor and a memristor.

[0016] In some embodiments, the first select line and the second select line are connected to a first select register.

[0017] In some embodiments, the first select line is connected to a first select register and the second select line is connected to a second select register.

[0018] According to one or more aspects of the present disclosure, a method is provided for performing depthwise convolution using a crossbar-based device, the method including: mapping a plurality of kernels to a plurality of crosspoint elements of a crossbar circuit, enabling the plurality of crosspoint elements via a plurality of select lines of the crossbar circuit, applying a plurality of input signals to the plurality of crosspoint elements representing input data to be convolved with the plurality of kernels, and outputting a plurality of output signals representing convolution results of the input data and the kernels via a plurality of bit lines of the crossbar circuit, the plurality of select lines including a first select line connecting a first group of the crosspoint elements and a second group of the crosspoint elements, the first group of the crosspoint elements including a first crosspoint element connecting a first word line and a first bit line, and a second crosspoint element connecting a second word line and a second bit line. The second group of cross point elements includes a third cross point element connecting the second word line and the first bit line, and a fourth cross point element connecting a third word line and the second bit line.

[0019] In some embodiments, the plurality of kernels comprises a plurality of depthwise convolution kernels used to perform a depthwise convolution operation.

[0020] In some embodiments, mapping the plurality of kernels to the plurality of crosspoint elements of the crossbar circuitry includes programming a conductance value of the first crosspoint element to a first value representing a first element of a first kernel of the plurality of kernels, and programming a conductance value of the first crosspoint element to a second value representing a first element of a second kernel of the plurality of kernels.

[0021] In some embodiments, mapping the plurality of kernels to the plurality of crosspoint elements of the crossbar circuit further includes programming a conductance value of the third crosspoint element to a third value representing a second element of the first kernel, and programming a conductance value of the fourth crosspoint element to a fourth value representing a second element of the second kernel.

[0022] In some embodiments, enabling the plurality of cross point elements via the plurality of select lines includes applying a first select voltage to the first select line to enable the first group of the cross point elements.

[0023] In some embodiments, enabling the plurality of cross point elements via the plurality of select lines includes applying a second select voltage to the second select lines to enable the second group of the cross point elements.

[0024] In some embodiments, applying the plurality of input signals representing the input data to be convolved with the plurality of kernels to the plurality of crosspoint elements comprises applying a first input signal to the first crosspoint element via a first word line of the crossbar circuitry and applying a second input signal to the second crosspoint element via a second word line of the crossbar circuitry, the first input signal representing a first portion of a first channel of the input data and the second input signal representing a second portion of a second channel of the input data.

[0025] In some embodiments, the method further includes retrieving from a storage device a first data item and a second data item stored in consecutive addresses, the first input signal representing the first data item and the second input signal representing the second data item.

[0026] According to some embodiments of the present disclosure, an apparatus is provided for performing regular 2D convolution and depthwise convolution operations. The apparatus includes a first crossbar circuit including a first plurality of crosspoint elements, a second crossbar circuit including a second plurality of crosspoint elements, and word line logic connected to the first crossbar circuit and the second crossbar circuit via a plurality of word lines. In some embodiments, the word line logic is configured to provide a plurality of input signals to the first crossbar circuit and the second crossbar circuit via a plurality of word lines. The input signals can represent input data to be convolved using a plurality of 2D convolution kernels and a plurality of depthwise convolution kernels.

[0027] The apparatus further includes a first plurality of bit lines connected to the first crossbar circuit and a second plurality of bit lines connected to the second crossbar circuit, the first crossbar circuit configured to output a first plurality of output signals representative of convolution results of the input data with the plurality of two-dimensional convolution kernels via the first plurality of bit lines, and the second crossbar circuit configured to output a second plurality of output signals representative of convolution results of the input data with the plurality of depthwise convolution kernels via the second plurality of bit lines.

[0028] In some embodiments, the second plurality of output signals includes a first output signal output via a first bit line and a second output signal output via a second bit line, the first output signal representing a convolution of a first channel of the input data with a first depthwise convolution kernel, and the second output signal representing a convolution of a second channel of the input data with a second depthwise convolution kernel.

[0029] In some embodiments, the apparatus further includes a first selection logic configured to selectively enable one or more of the first plurality of crosspoint elements of the first crossbar circuit via a first plurality of select lines, and a second selection logic configured to selectively enable one or more of the second plurality of crosspoint elements of the second crossbar circuit via a second plurality of select lines.

[0030] In some embodiments, the second plurality of select lines includes a first select line connecting a first group of the second plurality of cross point elements, the first group of the second plurality of cross point elements including a first cross point element connecting a first bit line of the plurality of bit lines to a first word line of the plurality of word lines and a second cross point element connecting a second bit line of the plurality of bit lines to a second word line of the plurality of word lines.

[0031] In some embodiments, the second plurality of select lines includes a second select line connecting a second group of the second plurality of cross point elements, the second group of the second plurality of cross point elements including a third cross point element connecting a third word line to the first bit line and a fourth cross point element connecting a fourth word line to the second bit line.

[0032] In some embodiments, the second selection logic includes a selection register coupled to the first selection line.

[0033] In some embodiments, the selection register is further coupled to one or more other select lines of the second plurality of select lines.

[0034] In some embodiments, the second selection logic is configured to enable the first group of the second plurality of cross point elements by applying a first select voltage to the first select line.

[0035] In some embodiments, the second selection logic is configured to enable the second group of the second plurality of cross point elements by applying a second select voltage to the second select line.

[0036] In some embodiments, the apparatus further includes programming circuitry configured to program one or more of the first plurality of cross point elements to store the two-dimensional convolution kernels and to program one or more of the second plurality of cross point elements to store the plurality of depthwise convolution kernels.

[0037] In some embodiments, the apparatus further includes sensing logic that generates a digital output based on the first plurality of output signals and the second plurality of output signals.

[0038] In some embodiments, at least one of the second plurality of cross point elements comprises a transistor and a memristor.

[0039] In some embodiments, there is at least one other word line between the first word line and the second word line.

[0040] According to some embodiments of the present disclosure, a method for performing convolution is provided, the method including providing a plurality of input signals to a first crossbar circuit and a second crossbar circuit of a crossbar-based device via word line logic of the crossbar-based device, the plurality of input signals representing input data to be convolved with a plurality of two-dimensional convolution kernels and a plurality of depthwise convolution kernels, outputting, using the first crossbar circuit, a first plurality of output signals representing results of convolving the input data with the plurality of two-dimensional convolution kernels, and outputting, using the second crossbar circuit, a second plurality of output signals representing results of convolving the input data with the plurality of depthwise convolution kernels.

[0041] In some embodiments, the method for performing the convolution further comprises programming a first plurality of crosspoint elements of the first crossbar circuitry to store the plurality of two-dimensional kernels.

[0042] In some embodiments, the method for performing the folding further includes enabling the first plurality of crosspoint elements of the first crossbar circuit via a first plurality of select lines of the crossbar-based device and outputting the first plurality of output signals via a first plurality of bit lines of the crossbar-based device.

[0043] In some embodiments, the method for performing the convolution further includes programming a second plurality of crosspoint elements of the second crossbar circuit to store the plurality of depthwise convolution kernels.

[0044] In some embodiments, the method for performing the folding further includes enabling the second plurality of crosspoint elements of the second crossbar circuit via a second plurality of select lines of the crossbar-based device and outputting the second plurality of output signals via a second plurality of bit lines of the crossbar-based device.

[0045] In some embodiments, programming the second plurality of cross point elements of the second crossbar circuit to store the plurality of depthwise convolution kernels includes programming a first cross point element to store a first element of a first kernel, the first cross point element connecting a first bit line and a first word line, and programming a second cross point element to store a first element of a second kernel, the second cross point element connecting a second bit line and a second word line.

[0046] In some embodiments, enabling the second plurality of cross point elements includes enabling the first cross point element and the second cross point element via a first select line of the second plurality of select lines.

[0047] The present disclosure will become more fully understood from the detailed description given below and from the accompanying drawings which illustrate various embodiments of the present disclosure, however, these drawings are for purposes of illustration and understanding and should not be construed as limiting the present disclosure to specific embodiments. [Brief description of the drawings]

[0048] [Figure 1] FIG. 1 is a schematic diagram illustrating an example of a crossbar-based device according to some implementations of the present disclosure. [Diagram 2] FIG. 2 is a schematic diagram illustrating an example of a cross point element according to some implementations of the present disclosure. [Diagram 3] FIG. 2 is a schematic diagram illustrating an example of a crossbar circuit in accordance with some implementations of the present disclosure. [Figure 4A] FIG. 1 is a schematic diagram illustrating an example of a crossbar circuit and mapping scheme for performing depthwise convolution operations in accordance with some embodiments of the present disclosure. [Figure 4B] FIG. 1 is a schematic diagram illustrating an example of a crossbar circuit and mapping scheme for performing depthwise convolution operations in accordance with some embodiments of the present disclosure. [Figure 4C] FIG. 1 is a schematic diagram illustrating an example of a crossbar circuit and mapping scheme for performing depthwise convolution operations in accordance with some embodiments of the present disclosure. [Figure 4D] FIG. 1 is a schematic diagram illustrating an example of a crossbar circuit and mapping scheme for performing depthwise convolution operations in accordance with some embodiments of the present disclosure. [Figure 4E] FIG. 1 is a schematic diagram illustrating an example of a crossbar circuit and mapping scheme for performing depthwise convolution operations in accordance with some embodiments of the present disclosure. [Figure 5A] 1 is a flowchart illustrating an example of a method for performing depthwise folding using a crossbar circuit according to some embodiments of the present disclosure. [Figure 5B] 1 is a flowchart illustrating an example of a method for performing depthwise folding using a crossbar circuit according to some embodiments of the present disclosure. [Figure 6A] FIG. 1 is an explanatory diagram illustrating an example of a convolution operation. [Figure 6B] FIG. 1 is an explanatory diagram illustrating an example of a convolution operation. [Figure 7A] FIG. 2 illustrates an example of a data structure that may be used to store image data in accordance with some embodiments of the disclosure. [Figure 7B] FIG. 2 illustrates an example of a data structure that may be used to store image data in accordance with some embodiments of the disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0049] Aspects of the present disclosure provide crossbar-based apparatus and crossbar circuitry for performing convolution operations, and methods for performing convolution operations using the crossbar-based apparatus and crossbar circuitry.

[0050] The crossbar circuit can be used to implement neural networks that perform machine learning algorithms. The neural network can include multiple convolution layers that perform various types of convolution operations, such as 2D convolution operations, depthwise convolution operations, etc. The 2D convolution can be performed by applying a single convolution kernel to the input data. More specifically, the convolution kernel can be used to scan each portion of the input data with the same size as the convolution kernel to generate the convolution result. The convolution kernel and the input data have the same number of channels. For example, performing a 2D convolution on a three-channel image using a 3×3×3 kernel may require performing a scalar matrix multiplication on a portion of the image having a size of 3×3×3 using a 3×3×3 kernel. As another example, performing a depthwise convolution on an image may require convolving each channel of the image with a respective kernel and overlapping the convolution outputs. As a more specific example, performing a depthwise convolution on an image may require convolving each channel of the image with a 3×3 kernel.

[0051] An image can be stored in memory as a three-dimensional array. For example, each element of an image can be represented by a three-dimensional array, in which the last dimension represents a channel dimension (e.g., an array of height values ​​(h), width values ​​(w), and channel values ​​(c)). The first element of a first channel of an image, the first element of a second channel of an image, and the first element of a third channel of an image can be represented as (h0,w0,c0), (h0,w0,c1), and (h0,w0,c2), respectively. The second element of a first channel of an image, the second element of a second channel of an image, and the second element of a third channel of an image can be represented as (h1,w0,c0), (h1,w0,c1), and (h1,w0,c2), respectively. The elements (h0,w0,c0), (h0,w0,c1), (h0,w0,c2), (h1,w0,c0), (h1,w0,c1), and (h1,w0,c2) may be stored in consecutive addresses of a memory. For example, an image may be stored in a memory using a data structure as shown in Figures 7A and 7B.

[0052] As described above, performing 2D convolution and depthwise convolution on the same image requires convolution of different portions of the image with different kernels. For example, to convolve a 3×3×3 portion of an image with a 3×3×3 2D convolution kernel, a conventional crossbar circuit can retrieve data items stored at addresses 710, 720, and 730 as shown in FIG. 7A. As another example, to perform a depthwise convolution on a 3×3×3 portion of an image, a conventional crossbar circuit can convolve data items stored in addresses 711, 714, 717, 721, 724, 727, 731, 743, and 737 with a first 3×3 kernel. A conventional crossbar circuit can convolve data items stored in addresses 712, 715, 718, 722, 725, 728, 732, 735, and 738 with a second 3×3 kernel. The conventional crossbar circuit may further convolve the data items stored in addresses 713, 716, 719, 723, 726, 729, 733, 736, and 739 with a third 3×3 kernel. Thus, to perform 2D convolutions and depthwise convolutions on the same image, the conventional crossbar circuit may have to utilize different memory access patterns to retrieve the image data from memory, resulting in poor memory access efficiency and high (computing) power consumption.

[0053] The present disclosure provides a crossbar-based device capable of performing both 2D and depthwise convolutions that enables efficient memory access during the 2D and depthwise convolution operations.

[0054] In some embodiments, a crossbar-based device can include a first crossbar circuit for performing 2D folding and a second crossbar circuit for performing depth folding, each of the first crossbar circuit and the second crossbar circuit can include crosspoint elements connecting intersecting word lines and bit lines.

[0055] The first crossbar circuitry may be connected to the first selection logic via a first plurality of select lines, each of which may connect a plurality of crosspoint elements of the first crossbar circuitry, and the first selection logic may selectively enable the crosspoint elements connected to one or more of the first plurality of select lines.

[0056] The second crossbar circuit can be connected to the second select logic via a second plurality of select lines, each of which can connect a plurality of cross point elements of the second crossbar circuit that are not connected to the same word lines or bit lines, and the second select logic can selectively enable the cross point elements connected to one or more of the second plurality of select lines.

[0057] The first crossbar circuit and the second crossbar circuit can be connected to word line (WL) logic via word lines. The WL logic can retrieve image data stored in consecutive addresses of a memory device (e.g., an input buffer) associated with the crossbar-based device. The WL logic can further generate input signals (e.g., voltage signals) based on the retrieved image data and apply the input signals to the first crossbar circuit and the second crossbar circuit via the word lines.

[0058] The first crossbar circuit can be programmed to store a 2D convolution kernel for performing a 2D convolution operation. For example, the crosspoint elements of the first crossbar circuit can be programmed with conductance values ​​that represent the 2D convolution kernel. In response to an input signal, the first crossbar circuit can output a current signal that represents a result of convolving the image with the 2D convolution kernel.

[0059] The second crossbar circuit can be programmed to store a depthwise convolution kernel for performing a depthwise convolution operation. For example, the crosspoint elements of the second crossbar circuit can be programmed with a conductance value representing the depthwise convolution kernel. In response to an input signal, the second crossbar circuit can output a current signal representing a convolution result of the depthwise kernel. Thus, the crossbar-based device can perform both 2D convolution and depthwise convolution utilizing the same memory access pattern, which can enable efficient memory usage of neural networks incorporating the crossbar-based device.

[0060] 1 is a schematic diagram illustrating an example of an apparatus 100, also referred to herein as a crossbar-based apparatus, for performing convolution operations according to some embodiments of the present disclosure. The apparatus 100 may be a neural processing unit (NPU) or part of an NPU for performing machine learning algorithms.

[0061] As shown, the device 100 may include a first crossbar circuit 101 and a second crossbar circuit 102 for performing a convolution operation. Each of the first crossbar circuit 101 and the second crossbar circuit 102 may include one or more crossbar arrays. Each of the crossbar arrays may include a plurality of intersecting wires, such as one or more word lines (WL) 111, bit lines (BL) 113, etc. Further, the crossbar array may include one or more crosspoint elements 120 connecting one or more intersections between the word lines and the bit lines. A crosspoint element connecting a jth word line and a kth bit line may be referred to as a crosspoint element 120(j,k). Each of the crosspoint elements may be an element with a programmable resistance, such as a memristor, a phase change memory (PCM) element, a floating gate element, a spintronics element, a resistive random access memory (RRAM), a static random access memory (SRAM), etc. In some embodiments, the cross point element 120 may be and / or include a one-transistor-one-memristor (1T1M) circuit structure, a one-selector-one-resistor (1S1R) structure, a two-resistor (2R) structure, etc. In some embodiments, one or more of the cross point elements 120 may include a cross point element 200 as described in connection with FIG.

[0062] As illustrated in FIG. 1 , the first crossbar circuit 101 and the second crossbar circuit can be connected to word line (WL) logic 103 via word lines 111 (e.g., WL 111-1, 111-2, 111-3, 111-4, etc.) and to programming circuit 104 and sensing circuit 105 via bit lines 113. The WL logic 103 can include any suitable components for converting input data into input signals that are applied to the crossbar circuit 101 and / or the crossbar circuit 102. Each of the input signals can be a voltage signal, a current signal, etc. In some embodiments, the WL logic 103 can be one or more digital-to-analog converters (DACs) that can convert the input data into an analog signal.

[0063] The programming circuitry 104 can program the cross point elements 120 to appropriate conductance values. For example, programming a cross point element may require application of an appropriate voltage or current signal across the cross point element. The resistance of each cross point element can be electrically switched between a high resistance state and a low resistance state. Setting a cross point element may require switching the resistance of the cross point from a high resistance state to a low resistance state. Resetting a cross point element may require switching the resistance of the cross point from a low resistance state to a high resistance state.

[0064] The first crossbar circuit 101 can be connected to the first selection logic 106 via the select lines 140. The second crossbar circuit 102 can be connected to the second selection logic 107 via the select lines 130. Each of the select lines 130 and 140 can include any suitable conductive material. In some implementations, each select line 130 and 140 can be and / or include a metal wire. While an appropriate voltage (sometimes referred to herein as a select voltage) is applied to a given select line 130, the cross point element connected to that select line 130 can be enabled. The first selection logic 106 can selectively enable one or more cross point elements of the first crossbar circuit 101 via one or more select lines 140 (e.g., by applying a select voltage to one or more select lines 140). The second selection logic 107 can selectively enable one or more crosspoint elements of the second crossbar circuit 102 via one or more selection lines 130 (e.g., by applying a selection voltage to one or more selection lines 130).

[0065] The sensing circuit 105 can generate an output signal based on the current flowing through the bit lines 113. In some embodiments, the sensing circuit 105 can include any suitable components for converting the current to a digital output. For example, the sensing circuit 105 can include a plurality of analog-to-digital converters (ADCs) (not shown). Each of the ADCs can convert the current flowing through a respective bit line to a digital output. In some embodiments, the input signal can include a voltage signal V. The output signal can include a current signal I. The relationship between the input signal and the output signal can be expressed as I=VG, where G represents the conductance value of the cross point element 120. Thus, the input signal is weighted by its conductance at each of the cross point elements according to Ohm's law. The weighted currents are output through each bit line and can be integrated according to Kirchhoff's current law.

[0066] Each of the crossbar circuits 101 and 102 can be configured to perform vector matrix multiplication (VMM). The VMM operation can be expressed as Y=XA, where each of Y, X, and A represents a respective matrix. More specifically, for example, an input vector X can be mapped to an input voltage V of the crossbar circuits 101 and / or 102. The matrix A can be mapped to a conductance value G. The output current I can be read out and mapped back to an output result Y.

[0067] In some implementations, the first crossbar circuit 101 and the second crossbar circuit 102 can perform different types of convolution operations. For example, the first crossbar circuit 101 can perform a 2D convolution operation. The second crossbar circuit 102 can perform a depth-wise convolution.

[0068] Performing a 2D convolution on input data may require the application of a single convolution kernel to the input data. The convolution kernel may have a particular size defined by multiple dimensions (e.g., width, height, channels, etc.). The convolution kernel may be applied to a portion of the input data having the same size as the convolution kernel to generate an output. The output may be mapped to an element of the convolution result at a location corresponding to the location of the portion of the input data.

[0069] For example, as shown in FIG. 6A, a kernel 620 may be used to perform a 2D convolution on an image 610 to generate an output image 630. The image 610 may include a first channel 610a, a second channel 610b, and a third channel 610c. The size of the image 610 may be defined by a width (w), a height (h), and a channel (c). As an example, the size of the image 610 may be 7×7×3. The size of the kernel 620 may be 3×3×3. The kernel 620 may be applied to a first portion 611 of the image 610. As shown, the size of the first portion 611 is the same as the size of the kernel 620. A scalar multiplication of the first portion 611 by the kernel 620 may be performed to obtain a first element 631 of the output image. The kernel 620 may be used to scan each of a plurality of 3×3×3 sized portions of the image 610 to generate an element of the output image 630. In some implementations, a kernel 620 may be applied to such a 5×5×1 portion of image 610 to generate a 5×5×1 output image 630.

[0070] The elements of image 610 can be defined by a three-dimensional array of height, width, and channel values. For example, as shown in Figure 6A, a first portion 611 of image 610 can be thought of as an image of three channels 611a, 611b, and 611c. Each of the images of channels 611a, 611b, and 611c can include nine elements defined by various width (w), height (h), and channel (c) values, as shown in Figure 6A. Image 610 can be stored in a storage device as a three-dimensional array using the data structures illustrated in Figures 7A-7B.

[0071] Performing a depthwise convolution on input data may require convolving each channel of the input data with a respective kernel corresponding to that channel and overlapping the convolution outputs. For example, performing a depthwise convolution on image 610 may require convolving each channel of image 610 with each of kernels 621, 623, and 625. Each of kernels 621, 623, and 625 may correspond to a channel of kernel 620 in FIG. 6A. Convolving channel 611a of image 610 with kernel 621 may require performing element-wise multiplications between co-located elements of channel 611a of image 610 and elements of kernel 621. Convolution of a first channel 611a of image 610 with kernel 621 may generate output 641. Convolution of a second channel 611b of image 610 with kernel 623 may generate output 643. Convolution of the third channel 611c of image 610 with kernel 625 may produce output 645. Outputs 641, 643, and 645 may be overlaid as output 640. A point-wise convolution may then be performed on output 640 with a 1×1×3 kernel 650 to produce output image 630.

[0072] 1, the WL logic 103 may retrieve input data to be processed by the crossbar circuits 101 and / or 102 from a storage device associated with the device 100. The storage device may be an input buffer in some embodiments. The WL logic 103 may convert the input data into a vector and may further generate input signals that represent the vector. The input signals may be applied to the crossbar circuits 101 and / or 102 via one or more word lines 111.

[0073] In some implementations, the input signals applied to the first and second crossbar circuits via 111-1, 111-2, 111-3, ..., 111-n may correspond to data stored in consecutive addresses of a memory device. For example, to perform a convolution on a first portion 611 of an image 610 of Figures 6A-6B, the WL logic 103 may retrieve image data for the first portion 611 of an image 610 stored in addresses 710, 720, and / or 730 of a memory device as shown in Figure 7A.

[0074] More specifically, for example, a first data item stored in a first address 711 of the storage device may be applied to the first and second crossbar circuits via word line 111a. A second data item stored in a second address 712 of the storage device may correspond to a second input signal applied to the first and second crossbar circuits via word line 111b. A third data item stored in a third address 713 of the storage device may correspond to a third input signal applied to the first and second crossbar circuits via word line 111c. An ith data item stored in an ith address of the storage device may be applied to the first and second crossbar circuits via 111i. The first address, second address, ..., ith address, etc. may be consecutive.

[0075] The programming circuit 104 can program the first crossbar circuit 101 to store a 2D convolution kernel for performing a 2D convolution operation. For example, the 2D convolution kernel can be converted into a vector and mapped to a plurality of crosspoint elements of the first crossbar circuit connected to a given bit line. In particular, the conductance values ​​of the crosspoint elements can be programmed to values ​​representing the 2D convolution kernel. The first crossbar circuit 101 can output a current signal representing a convolution of the image and the 2D convolution kernel via a given bit line in response to an input signal. In some embodiments, the first crossbar circuit 101 can store a plurality of 2D convolution kernels by mapping each of the 2D convolution kernels to a crosspoint element connected to a respective bit line. The first crossbar circuit 101 can output a plurality of output signals (e.g., current signals) representing the convolution results via a first plurality of bit lines 113a.

[0076] The programming circuit 104 can program the second crossbar circuit 102, which can be programmed to store a depth-wise convolution kernel for performing a depth-wise convolution operation. For example, the crosspoint elements of the second crossbar circuit can be programmed to conductance values ​​that represent the depth-wise convolution kernel. In response to an input signal, the second crossbar circuit can output a current signal that represents a convolution result of the depth-wise convolution operation via the second plurality of bit lines 113b. In some embodiments, the crossbar circuit 102 can include one or more crossbar circuits, as described in connection with FIGS. 3-4D.

[0077] 2 is a schematic diagram illustrating an example cross point element 200 according to some embodiments of the present disclosure. As shown, the cross point element 200 can be connected to a bit line (BL) 211, a select line (SEL) 213, and a word line (WL) 215. The bit line 211, the select line 213, and the word line 215 can be the bit line 113, the select line 130 or 140, and the word line 111, respectively, as described in connection with FIG. 1.

[0078] The cross point element 200 may include an RRAM element 201 and a transistor 203. The transistor is a three terminal element, which may be marked as a gate (G), a source (S), and a drain (D). The transistor 203 may be connected in series with the RRAM element 201. As shown in FIG. 2, a first electrode of the RRAM element 201 may be connected to a drain of the transistor 203. A second electrode of the RRAM element 201 may be connected to a bit line 211. A source of the transistor 203 may be connected to a word line 215. A gate of the transistor 203 may be connected to a select line 213. The RRAM element 201 may include one or more RRAM elements, as described below in connection with FIGS. 3A-5B. The cross point element 200 may also be described as a one-transistor-one-resistor (1T1R) configuration. The transistor 203 may act as a selector as well as a current controller to set a current compliance for the RRAM element 201 during programming. The gate voltage of the transistor 203 can set the current compliance to the cross point element 200 during programming, and thus control the conductance and analog behavior of the cross point element 200. For example, when setting the cross point element 200 from a high resistance state to a low resistance state, a set signal (e.g., a voltage signal, a current signal) can be provided via the bit line (BL) 211. Another voltage, also called a select voltage or gate voltage, can be applied to the gate of the transistor via the select line (SEL) 213 to open the gate and set the current compliance, while the word line (WL) 215 can be set to ground. When resetting the cross point element 200 from a low resistance state to a high resistance state, a gate voltage can be applied to the gate of the transistor 203 via the select line 213 to open the gate of the transistor. Meanwhile, a reset signal can be sent to the RRAM element 201 via the word line 215, while the bit line 211 can be set to ground.

[0079] 3 is a diagram illustrating an example crossbar circuit 300 capable of performing a depthwise folding operation. The crossbar circuit 300 may be the crossbar circuit 102 as described in connection with FIG.

[0080] As shown, crossbar circuitry 300 may include word lines 111, bit lines 113, cross point elements 120, and select lines 130 (e.g., select lines 130-1, 130-2, etc.). In some embodiments, the number of select lines may be n-m+1, where n and m refer to the number of word lines 111 and the number of bit lines 113, respectively.

[0081] In some embodiments, each select line 130 can electrically connect multiple cross point elements (e.g., cross point elements in different rows and different columns) that do not share any bit or word lines. The select lines 130, in some embodiments, do not run parallel to the bit lines 113 or the word lines 111. For example, the select line 130-1 can connect the first cross point element 120(1,1), the second cross point element 120(2,2), the third cross point element 120(3,3), etc. The first cross point element 120(1,1) can connect the first word line 111-1 and the first bit line 113-1. The second cross point element 120(2,2) can connect the second word line 111-2 and the second bit line 113-2. The third cross point element 120(3,3) may connect the third word line 111-3 and the third bit line 113-3. Therefore, the first cross point element, the second cross point element, and the third cross point element are not connected to the same word line or the same bit line. As another example, the select line 130-2 may connect the cross point elements 120(2,1), 120(3,2), ..., 120((m+1),m).

[0082] A crosspoint element connected to a given select line 130 can be enabled while applying an appropriate voltage to that select line 130. A crosspoint element that can be enabled by one or more of the select lines 130 is also referred to herein as a "valid cell." A crosspoint element that cannot be enabled by a select line 130 is also referred to herein as a "dummy cell." A dummy cell does not function when the crossbar circuitry 300 performs a depthwise folding operation. In one implementation, the dummy cell is not connected to a select line. In another implementation, the dummy cell is connected to one or more select lines (not shown) but is never enabled during a folding operation. In a further implementation, the crossbar circuitry 300 does not include a dummy cell. As shown, the valid cells can form a parallelogram shape in some embodiments.

[0083] To perform a depthwise convolution operation on input data (e.g., one or more images), the crossbar circuitry 300 can compute a matrix multiplication of one or more matrices corresponding to the input data and one or more matrices corresponding to a depthwise convolution kernel. The input data can have multiple channels. The depthwise convolution kernel can be divided into multiple two-dimensional kernels. Each of the two-dimensional kernels can be used to convolve a respective channel of the input data. The elements of the kernel can be mapped to crosspoint elements of the crossbar circuitry 300 by programming the conductance of the crosspoint element to a value corresponding to the value of that element of the kernel. The crosspoint elements can be programmed to store the depthwise convolution kernels using one or more mapping schemes described below in connection with FIGS. 4A-4E.

[0084] As an example, convolution of a first channel of input data with a kernel may require the computation of a matrix multiplication of a first matrix representing a first channel of a first image and a second matrix representing the kernel. The crossbar circuit 300 may program the crosspoint elements (e.g., by programming the crosspoint elements with programming signals corresponding to the conductance values) such that the conductance values ​​of the crosspoint elements may represent the values ​​of the elements of the kernel. The first matrix may be converted into a plurality of vectors representing portions of the first matrix. The crossbar circuit 300 may receive a plurality of input signals representing the vectors. When the input signals are applied to the crossbar circuit 300 via the word lines, Ohm's law dictates that the current through each crosspoint element is the product of its conductance and the corresponding voltage applied to the word line connected to that crosspoint element. Kirchhoff's current law dictates that the currents from each crosspoint element connected to the same bit line are multiplied. The output current from each bit line represents the result of a multiply-accumulate operation, and the convolution of the kernel with the first channel of the input data.

[0085] The crossbar circuitry 300 can perform multiple depthwise convolution operations in parallel utilizing a kernel mapping scheme, described below in connection with FIGS. 4A-4E.

[0086] 4A illustrates an example crossbar circuit 400a for performing depthwise folding operations according to some embodiments of the present disclosure. The crossbar circuit 400a may be and / or include the crossbar circuit 300 as described in connection with FIG.

[0087] As shown, the crossbar circuit 400a may include a number of crosspoint elements 420 (e.g., 420(1,1), 420(2,2), etc.) connecting a number of word lines (e.g., word lines 401, 403, 405) and a number of bit lines (bit lines 407-1, 407-2, 407-3, . . . , 407-m). A crosspoint element 420(j,k) may refer to a crosspoint element connecting a jth word line and a kth bit line. The crossbar circuit 400a may further include select lines for selectively enabling one or more of the crosspoint elements 420. For example, a first select line 430-1 may connect a first group of crosspoint elements (e.g., crosspoint elements 420(1,1), 420(2,2), 420(3,3), . . . , 420(m,m)) of the crossbar circuit 400a. A second select line 430-2 may connect a second group of cross point elements of the crossbar circuit 400a (e.g., cross point elements 420(m+1,1), 420(m+2,2), 420(m+3,3),..., 420(m+m,m)). An ith select line 430-i may connect an ith group of cross point elements of the crossbar circuit 400a (e.g., cross point elements 420(2m+i-1,1), 420(2m+i,2), 420(2m+i+1,3),..., 420(3m+i-1,m)). The cross point elements, word lines, bit lines, and select lines shown in FIG. 4A may be the same as their counterparts in FIGS. 1-3.

[0088] The crossbar circuit 400a can store multiple kernels to perform depthwise convolution operations in parallel. Each of the kernels can be used to convolve portions of a respective channel of the input data. Elements of the kernels at the same location (e.g., locations defined by the same width and height) can be mapped to crosspoint elements connected to the same select line. Elements of a given kernel can be mapped to multiple crosspoint elements connected to the same bit line. For example, the first element of each kernel can be mapped to a crosspoint element connected to a first select line. More specifically, for example, the first element of the first kernel, the first element of the second kernel, the first element of the third kernel, ..., and the first element of the mth kernel can be mapped to crosspoint elements 420(1,1), 420(2,2), 420(3,3), ..., and 420(m,m), respectively. As another example, the second element of each kernel can be mapped to a crosspoint element connected to a second select line 430-2. More specifically, for example, the second element of the first kernel, the second element of the second kernel, the second element of the third kernel, ..., and the second element of the mth kernel may be mapped to cross point elements 420(m+1,1), 420(m+2,2), 420(m+3,3), ..., 420(m+m,m), respectively. As another example, the i-th element of each kernel may be mapped to a cross point element (e.g., cross point element 420(2m+i-1,1), 420(2m+i,2), 420(2m+i+1,3), ..., 420(3m+i-1,m)) connected to the i-th select line 430-i.

[0089] In one implementation, word lines 401-m and 403-1 are adjacent to one another. For example, select lines 430-1 and 430-2 can correspond to select lines 434-1 and 434-2, respectively, of FIG. 4C. In another implementation, word lines 401-m and 403-1 are not adjacent to one another. One or more other word lines (not shown) are positioned between word lines 401-m and 403-1. For example, select lines 430-1 and 430-2 can correspond to select lines 431-1 and 432-1, respectively, of FIG. 4B. Similarly, word lines 403-m and 405-1 can be adjacent or non-adjacent to one another.

[0090] The crossbar circuitry can perform m depthwise convolution operations in parallel. Each of the depthwise convolution operations can generate a convolution of a kernel having i elements with a portion of the input data. For example, the first select line, the second select line, ..., and the i-th select line can be selected (e.g., by applying appropriate voltages to each of the select lines). The cross-point elements connected to the first select line, the second select line, ..., and the i-th select line can be enabled accordingly. Input signals representing the input data to be convolved can be applied to the enabled cross-point elements via word lines connected to the enabled cross-point elements. For example, input signals 411-1, 411-2, 411-3, ..., 411-m can be applied to the first group of cross-point elements via word lines 401-1, 401-2, 401-3, ..., 401-m, respectively. Input signals 413-1, 413-2, 413-3, ..., 413-m can be applied to the second group of cross point elements via word lines 403-1, 403-2, 403-3, ..., 403-m, respectively. Input signals 415-1, 415-2, 415-3, ..., 415-m can be applied to the third group of cross point elements via word lines 405-1, 405-2, 405-3, ..., 405-m, respectively. Input signals 411-1, 411-2, ..., 411-m can correspond to a portion of the input data corresponding to a first width value (e.g., w0). Input signals 413-1, 413-2, ..., 413-m can correspond to a second portion of the input data corresponding to a second width value (e.g., w1). Input signals 415-1, 415-2, ..., 415-m may correspond to a third portion of the input data corresponding to a third width value (e.g., w2). Input signals 411-1, 413-1, 415-1 may correspond to a first channel of the input data (e.g., c0). Input signals 411-2, 413-2, 415-2 may correspond to a second channel of the input data (e.g., c1).Input signals 411-3, 413-3, 415-3 may correspond to a third channel of input data (e.g., c2). As an example, input signals 411, 413, and 415 may represent data items stored in addresses 710, 720, and 730, respectively, of Figure 7. More specifically, for example, input signals 411-1, 411-2,..., 411-m may represent data items stored in consecutive addresses 711, 713,..., 719 of a storage device.

[0091] The integrated currents output via bit lines 417 (e.g., bit lines 417-1, 417-2, 417-3, ..., and 417-m) can represent a convolution of a kernel mapped to a channel of input data and a cross point element connected to that bit line. For example, a first output signal, a second output signal, a third output signal, ..., an mth output signal can be output via bit lines 417-1, 417-2, 417-3, ..., and 417-m, respectively. The first output signal can represent a convolution of a first channel of input data with a first kernel. The second output signal can represent a convolution of a second channel of input data with a second kernel.

[0092] 4B, the crossbar circuit 400b may include a first group of select lines 431 connecting the first plurality of cross point elements 421, a second group of select lines 432 connecting the second plurality of cross point elements 422, ..., and an i-th group of select lines 433 connecting the i-th group of cross point elements 423. Each of the select lines 431, 432, and 433 may be a select line 430 as described in connection with FIG. 4A. Each cross point element of the plurality of cross point elements 421, 422, and 423 may be a cross point element 420 as described in connection with FIG. 4A. Each of the select line groups may include a certain number of select lines. The number of select lines that different select line groups (e.g., select line groups 431 and 432) have may be the same or may not be the same.

[0093] The crossbar circuitry 400b can be configured to perform multiple depthwise convolution operations using multiple kernels in parallel, and to perform depthwise convolution operations using multiple groups of kernels sequentially. For example, a first element of each of the first plurality of kernels can be mapped to a crosspoint element connected to a select line 431-1. A second element of each of the first plurality of kernels can be mapped to a crosspoint element connected to a select line 432-1. An i-th element of each of the first plurality of kernels can be mapped to a crosspoint element connected to a select line 433-1. A first element, a second element, ..., an i-th element of each of the second plurality of kernels can be mapped to a crosspoint element connected to select lines 431-2, 432-2, ..., and 433-2, respectively. The first element, the second element, ..., the i-th element of each of the n-th plurality of kernels may be mapped to a cross point element connected to select lines 431-N, 432-N, ..., and 433-N, respectively. Each kernel of the first plurality of kernels, the second plurality of kernels, and the third plurality of kernels may be a depthwise convolution kernel used to perform a depthwise convolution operation.

[0094] To perform a depthwise convolution operation using the first plurality of kernels, a first select line in each of the group of select lines (e.g., select lines 431-1, 432-1, ..., 433-1) may be selected and the other select lines may be deselected. For example, an appropriate select voltage may be applied to each of the first select lines in the group of select lines. Thus, the cross point elements connected to the first select lines in the group of select lines may be enabled. A first input signal representing first input data to be convolved with the first plurality of kernels may be applied to the enabled cross point elements via word lines (not shown) connected to the enabled cross point elements.

[0095] As another example, a second select line of each of the group of select lines (e.g., select lines 431-2, 432-2, ..., 433-2) can be selected to perform a depthwise convolution operation using a second plurality of kernels. Thus, the cross point elements connected to select lines 431-2, 432-2, ..., 433-2 can be enabled. A second input signal representing second input data to be convolved with the second plurality of kernels can be applied to the enabled cross point elements via word lines (not shown) connected to the enabled cross point elements.

[0096] FIG. 4C illustrates an example crossbar circuit 400c according to some embodiments of the present disclosure.

[0097] As shown, the crossbar circuitry 400c may include groups of crosspoint elements 424, 425,...,426 and selection logic 460a. The groups of crosspoint elements 424, 425,...,426 may be connected to the selection logic 460a via select lines 434, 435, and 436, respectively. Each of the select lines 434, 435, and 436 may be and / or include the select line 430 of FIG. 4A. Each crosspoint element of the groups of crosspoint elements 424, 425,...,426 may include multiple crosspoint elements 420 as described above in connection with FIG. 4A. The crosspoint elements in the crossbar array 424 may be connected to a first portion 461 of the selection logic 460a via select lines 434. The crosspoint elements in the crossbar array 425 can be connected to a second portion 463 of the selection logic 460a via select lines 435. The crosspoint elements in the crossbar array 426 can be connected to a third portion 465 of the selection logic 460a via select lines 436. The selection logic 460a can include selection registers 461-1, 461-2, 461-3, 461-4, 461-5, 461-6, ..., 461-N, 463-1, 463-2, 463-3, 463-4, 463-5, 463-6, ..., 463-N, 465-1, 465-2, 465-3, 465-4, 465-5, 465-6, ..., and 465-N. As shown, each of the select lines 434, 435, and 436 may be connected to a respective select register of the selection logic 460a. Crosspoint elements connected to the same select line may be enabled and used simultaneously for performing convolution operations. Each of the select lines 434, 435, and 436 may be connected to a particular number of crosspoint elements. The number of crosspoint elements connected to one select line of the crossbar circuit 400c may correspond to the number of convolution operations that the crossbar circuit 400c can perform in parallel.

[0098] The depthwise convolution kernels can be mapped to one or more crosspoint elements of the crossbar circuitry 400c to perform the depthwise convolution operation. For example, as described in connection with FIG. 4B, the first plurality of kernels, the second plurality of kernels, and the third plurality of kernels can be mapped to the crosspoint elements 424, 425, and 426, respectively. To perform the depthwise convolution operation using the first plurality of kernels, the crossbar circuitry 400c can enable the crosspoint elements 424 via the select lines 434. A first input signal representing first input data to be convolved with the first plurality of kernels can be applied to the enabled crosspoint elements 424. Each of these input signals can be a voltage signal representing a portion of the first input data. The output generated via the bit lines 417-1, 417-2, ..., 417-m can represent the convolution result of the first input data and the first plurality of kernels.

[0099] To perform a depthwise convolution operation using the second plurality of kernels, the crossbar circuitry 400c can enable the crosspoint elements 425 via the select lines 435. Second input signals representing second input data to be convolved with the second plurality of kernels can be applied to the enabled crosspoint elements 425. Each of the second input signals can be a voltage signal representing a portion of the second input data. The output generated via the bit lines 417-1, 417-2, ..., 417-m can represent the convolution result of the second input data with the second plurality of kernels.

[0100] The crossbar circuit 400c may perform depthwise convolution operations using kernels of any suitable size. As an example, each of the groups of crosspoint elements 424, 425, 426 may store eight kernels, and may perform convolution of input data in parallel using these eight kernels by eight different channels. Each of the groups of crosspoint elements 424, 425, 426 may be referred to as a crossbar array. The crossbar circuit 400c may perform depthwise convolution operations on input data of three channels. Three depthwise convolution kernels may be mapped to the crossbar circuit 400c to perform convolution of input data of a first channel, input data of a second channel, and input data of a third channel, respectively. The size of the depthwise convolution kernels (e.g., defined by the width dimension and the height dimension) may be the same. As an example, each of the first kernel, the second kernel, and the third kernel may be a 3×3 kernel with a width of 3 and a height of 3.

[0101] In some implementations, the crossbar circuit 400c can perform a depthwise convolution operation on the input data using a 3×3 depthwise kernel having a width of 3 and a height of 3. For example, the crossbar circuit 400c can store a first 3×3 kernel, a second 3×3 kernel, and a third 3×3 kernel by setting the conductances of the crosspoint elements of the crossbar circuit 400c to values ​​that represent the elements of those kernels. For example, the first element of the first kernel, the first element of the second kernel, and the first element of the third kernel can be mapped to the crosspoint elements 420(1,1), 420(2,2), and 420(3,3), respectively. The first element of the first kernel, the first element of the second kernel, and the first element of the third kernel can be defined by a first width value (e.g., w0) and a first height value (e.g., h0). The second element of the first kernel, the second element of the second kernel, and the second element of the third kernel may be mapped to cross point element 420(4,1), 420(5,2), and 420(6,3), respectively. The second element of the first kernel, the second element of the second kernel, and the second element of the third kernel may be defined by a first width value (e.g., w0) and a second height value (e.g., h1). The third element of the first kernel may be mapped to cross point element 420(7,1). The third element of the second kernel may be mapped to cross point element 420(8,2). The third element of the third kernel may be mapped to cross point element 420(9,3). The third element of the first kernel, the third element of the second kernel, and the third element of the third kernel may be defined by a first width (e.g., w0) and a third height (e.g., h2).

[0102] The remaining elements of the first kernel, the second kernel, and the third kernel may be mapped to the crossbar circuit 400c in a similar manner. For example, the i-th element of the first kernel, the i-th element of the second kernel, and the i-th element of the third kernel may be mapped to three cross point elements connected by the i-th select line. The ninth element of the first kernel (w2h2c0) may be mapped to the cross point element 420(27,1) (not shown). The ninth element of the second kernel (w2h2c1) may be mapped to the cross point element 420(28,2) (not shown). The ninth element of the third kernel (w2h2c2) may be mapped to the cross point element 420(29,3) (not shown).

[0103] To perform the depthwise convolution operation, a plurality of input signals can be applied to a plurality of word lines (not shown). Each of the word lines can be connected to an enabled cross point element. For example, a first input signal, a second input signal, a third input signal, a fourth input signal, ..., and a ninth input signal can be applied to a first word line, a second word line, a third word line, a fourth word line, ..., and a ninth word line of the crossbar circuit, respectively. The first input signal can represent a first element of a first channel of an image defined by a first width (w0) and a first height (h0). The second input signal can represent a first element of a second channel of an image defined by a first width and a first height. The third input signal can represent a first element of a third channel of an image defined by a first width and a first height. In some embodiments, the first input signal, the second input signal, ..., and the ninth input signal may represent data items stored within consecutive addresses 711, 712, 713, 714, 715, 716, 717, 718, and 719, respectively, as illustrated in FIG. 7.

[0104] The integrated current output via the first bit line 417-1 may represent a convolution of the first kernel with a first channel of the input data since the first kernel is mapped to the cross point element connected to the first bit line. Similarly, the integrated current output via the second bit line 417-2 may represent a convolution of the second kernel with a second channel of the input data. The integrated current output via the third bit line may represent a convolution of the third kernel with a third channel of the image.

[0105] 4D and 4E illustrate an example of a kernel mapping scheme for performing depthwise convolution by the crossbar circuitry 400d according to some embodiments of the present disclosure.

[0106] As shown, the crossbar circuit 400d can include a crossbar array 450b and selection logic 460b. The crossbar array can include one or more crossbar arrays 300 as described above in connection with FIG. 3. The select lines 130-1, 130-2, 130-3, ..., 130-8 can be connected to a select register 462 and enabled simultaneously. In some embodiments, the crossbar circuit 400d can include more than nine crossbar arrays. Thus, the crossbar circuit 400d can include 72 select lines. The 72 select lines can be divided into nine groups. Each group of select lines can include eight select lines. The select lines in the same group connect to a shared select register and can be selected simultaneously. Thus, the crosspoint elements connected by the select lines of the same group can be enabled simultaneously.

[0107] Crossbar circuit 400d can program the crosspoint elements to store 3×3 kernels to perform depthwise convolution on a three-channel image as described above in connection with FIGURE 4C. Crossbar circuit 400c can store 64 sets of one-channel 3×3 kernels and can run eight of them simultaneously using eight different channels.

[0108] For example, as shown in FIG. 4E, the first, second, and third elements of the first kernel may be mapped to crosspoint elements 120(1,1), 120(9,1), and 120(17,1), respectively. The first, second, and third elements of the second kernel may be mapped to crosspoint elements 120(2,2), 120(10,2), and 120(18,2), respectively. The first, second, and third elements of the third kernel may be mapped to crosspoint elements 120(3,3), 120(11,3), and 120(19,3), respectively. The remaining elements of the first, second, and third kernels may be mapped to the crossbar circuit 400c in a similar manner. The ninth element of the first kernel (w2h2c0) may be mapped to cross point element 120 (65,1) (not shown). The ninth element of the second kernel (w2h2c1) may be mapped to cross point element 120 (66,2). The ninth element of the third kernel (w2h2c2) may be mapped to cross point element 120 (67,3).

[0109] If the number of channels in the depthwise convolution is less than 8, data gaps may be required in the input buffer. The number of gaps can be the number of bit lines (8) minus the number of channels.

[0110] 5A and 5B are flow charts illustrating example methods 500 and 550 for performing depthwise folding using a crossbar circuit according to some embodiments of the present disclosure. The crossbar circuit may be and / or include crossbar circuit 102, 300, 400a, 400b, 400c, and / or 400d.

[0111] In the case where multiple depthwise convolution kernels can be mapped to multiple cross-point elements of a crossbar circuit, process 500 can begin at block 505. The cross-point elements can be connected to multiple select lines. Each of the select lines can connect cross-point elements that are connected to different word lines and different bit lines of the crossbar circuit. As an example, these cross-point elements can include cross-point elements connected to select lines 430-1, 430-2, ..., 430-i, as described in connection with FIG. 4A. As another example, these cross-point elements can include cross-point elements connected to select lines 431-1, 432-1, ..., 433-1, as described in connection with FIG. 4B. As a further example, these cross-point elements can include cross-point elements connected to select line 434, as described in connection with FIG. 4C.

[0112] In some implementations, a first element of each of the depthwise convolution kernels can be mapped to a first group of crosspoint elements connected to a first select line (e.g., the crosspoint element connected to select line 430-1 in FIG. 4A, the crosspoint element connected to select line 431-1 in FIG. 4B). A second element of each of the depthwise convolution kernels can be mapped to a second group of crosspoint elements connected to a second select line (e.g., the crosspoint element connected to select line 430-2 in FIG. 4A, the crosspoint element connected to select line 432-1 in FIG. 4B, the crosspoint element connected to select line 434-2 in FIG. 4C). A i-th element of each of the depthwise convolution kernels can be mapped to an i-th group of crosspoint elements connected to an i-th select line (e.g., the crosspoint element connected to select line 430-i in FIG. 4A, the crosspoint element connected to select line 433-1 in FIG. 4B, the crosspoint element connected to select line 434-N in FIG. 4C). In some implementations, each of the kernels can be a k×k kernel.

[0113] A depthwise convolution kernel may be mapped to a crosspoint element by programming the conductance value of the crosspoint element to a value representative of the element of that kernel. For example, a first element of a first kernel may be mapped to a first crosspoint element by programming the first crosspoint element to a first conductance value representative of the first element of the first kernel. The first crosspoint element may connect a first bit line and a first word line of a crossbar circuit. As another example, a first element of a second kernel may be mapped to a second crosspoint element by programming the second crosspoint element to a second conductance value representative of the first element of the second kernel. The second crosspoint element may connect a second bit line and a second word line of the crossbar circuit. The first element of the first kernel and the first element of the second kernel correspond to a first height value and a first width value. As yet another example, the second element of the first kernel may be mapped to a third cross point element by programming the third cross point element to a third conductance value representative of the second element of the first kernel. The third cross point element may connect the second word line and the first bit line. As a further example, the second element of the second kernel may be mapped to a fourth cross point element by programming the fourth cross point element to a fourth conductance value representative of the second element of the second kernel. The fourth cross point element may connect the third word line and the second bit line of the crossbar circuit. The second element of the first kernel and the second element of the second kernel may correspond to a second height value and a first width value.

[0114] At block 510, a plurality of cross point elements may be enabled via a plurality of select lines. For example, a first group of cross point elements may be enabled via a first select line. The first group of cross point elements may include a first cross point element and a second cross point element. As another example, a second group of cross point elements may be enabled via a second select line. The second group of cross point elements may include a third cross point element and a fourth cross point element. In some implementations, enabling the cross point elements may require application of an appropriate select voltage to each of a plurality of select lines.

[0115] At block 515, a plurality of input signals may be applied to the crossbar circuit. These input signals may be applied to the crossbar circuit via a plurality of word lines (e.g., word lines 401, 403, and 405 described in connection with FIG. 4A) that are connected to the crosspoint elements that are enabled. These input signals may represent input data to be convolved with a kernel that is mapped to the crossbar circuit. For example, the plurality of input signals may include a first input signal that represents a first portion of a first channel of the input data, and a second input signal that represents a second portion of a second channel of the input data. The first input signal and the second input signal may be applied to the crossbar circuit via a first word line and a second word line, respectively. In some embodiments, the input data may include one or more images.

[0116] In block 520, the crossbar circuitry can generate a plurality of output signals representing the convolution results of the input data and the kernel via a plurality of bit lines of the crossbar circuitry. These output signals can be, for example, output signals 417-1, 417-2, ..., 417-m output via bit lines 407-1, 407-2, ..., 407-m as described in connection with FIG. 4A. As an example, a first output signal (e.g., output signal 417-1 of FIG. 4A) representing a first convolution of a first portion of the input data with a first kernel can be output via a first bit line. As another example, a second output signal (e.g., output signal 417-2 of FIG. 4A) representing a second convolution of a second portion of the input data with a second kernel can be output via a second bit line. The first portion of the input data and the second portion of the input data can correspond to a first channel of the input data and a second channel of the input data, respectively.

[0117] Process 550 may begin at 555 where the first plurality of kernels may be mapped to a first plurality of cross point elements of the crossbar circuit. The first plurality of cross point elements may be connected to a first group of select lines. Each of the first group of select lines may connect a plurality of cross point elements that do not share a bit line or a word line. As an example, the first plurality of kernels may be mapped to cross point elements connected to select lines 431-1, 432-1, ..., and 433-1, as described above in connection with FIG. 4B. As another example, the first plurality of kernels may be mapped to cross point elements connected to select lines 434-1, 434-2, ..., 434-N, as described above in connection with FIG. 4C.

[0118] At 560, the second plurality of kernels can be mapped to a second plurality of cross point elements of the crossbar circuit. The second plurality of cross point elements can be connected to a second group of select lines. Each of the second group of select lines can connect a plurality of cross point elements that do not share a bit line or a word line. As an example, the second plurality of kernels can be mapped to cross point elements connected to select lines 431-2, 432-2, ..., and 433-2, as described above in connection with FIG. 4B. As another example, the first plurality of kernels can be mapped to cross point elements connected to select lines 435-1, 435-2, ..., 435-N, as described above in connection with FIG. 4C.

[0119] At 565, a first plurality of cross point elements may be enabled via a first group of select lines. For example, an appropriate select voltage may be applied to each of the first group of select lines. As a more specific example, the cross point elements connected to select lines 431-1, 432-1, ..., 433-1 of Figure 4B may be enabled. As another more specific example, the cross point elements connected to select lines 434-1, 434-2, ..., 434-N may be enabled.

[0120] At 570, a first plurality of input signals can be provided to the first plurality of cross point elements. Each of the first plurality of input signals can represent a portion of the first input data to be convolved with the first plurality of kernels. The first plurality of input signals can be applied to the first plurality of cross point elements via a first plurality of word lines. Each of the first plurality of word lines can be connected to a respective cross point element of the first plurality of cross point elements.

[0121] At 575, a first plurality of output signals may be output over a plurality of bit lines of the crossbar circuitry. The first output signals may represent the results of convolving the first input data with the first plurality of kernels. These bit lines may be, for example, bit lines 413-1, 413-2, ..., 417-m, as described above in connection with Figures 4B and 4C.

[0122] At 580, a second plurality of cross point elements may be enabled via a second group of select lines. For example, an appropriate select voltage may be applied to each of the second group of select lines. As a more specific example, the cross point elements connected to select lines 431-2, 432-2, ..., 433-2 of Figure 4B may be enabled. As another more specific example, the cross point elements connected to select lines 435-1, 435-2, ..., 435-N may be enabled.

[0123] At 585, a second plurality of input signals may be provided to the second plurality of cross point elements. The second plurality of input signals may represent second input data to be convolved with the second plurality of kernels. The second plurality of input signals may be applied to the second plurality of cross point elements via a second plurality of word lines. Each of the second plurality of word lines may be connected to a respective cross point element of the second plurality of cross point elements.

[0124] At 590, a second plurality of output signals may be output over a plurality of bit lines of the crossbar circuitry. The second output signals may represent results of convolving the second input data with the second plurality of kernels.

[0125] For simplicity of explanation, the methods of this disclosure are shown and described as a series of actions. However, actions according to this disclosure may occur in various orders and simultaneously or alternatively, and may occur with other actions not shown and described herein. Furthermore, not all actions illustrated may be required to implement a methodology in accordance with the disclosed subject matter. In addition, those skilled in the art will understand and appreciate that a methodology can alternatively be represented as a series of interrelated states via a state diagram or events.

[0126] The terms "approximately," "about," and "substantially" can be used to mean in some embodiments within ±20% of a target feature, in some embodiments within ±10% of a target feature, in some embodiments within ±5% of a target feature, and even in some embodiments within ±2% of a target feature. The terms "approximately" and "about" can include the target feature.

[0127] In the above description, numerous details are set forth. However, it will be apparent that the disclosure may be practiced without these specific details. In some instances, well-known structures and devices are shown in block diagram form, rather than in detail, in order to avoid obscuring the disclosure.

[0128] The terms "first," "second," "third," "fourth," etc., as used herein, are intended to be labels distinguishing between different elements and may not necessarily have a sequential meaning according to their numerical designations.

[0129] The term "example" or "exemplary" is used herein to mean serving as an example, instance, or illustration. An embodiment or design described herein as an "example" or "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the term "example" or "exemplary" is intended to present concepts in a specific embodiment. As used in this application, the term "or" is intended to mean an inclusive "or" rather than an exclusive "or." In other words, unless otherwise stated in the specification or clear from the context, "X includes A or B" is intended to mean any natural inclusive permutation. That is, if X includes A; X includes B; or X includes both A and B, then "X includes A or B" is satisfied under any of these cases. In addition, as used in this application and the accompanying claims, "a" and no quantitative designation should be construed generally to mean "one or more" unless otherwise stated in the specification or where a singular designation is clear from the context. References throughout this specification to "an implementation" or "an implementation" mean that the particular feature, structure, or characteristic described in connection with that implementation is included in at least one implementation. Thus, the appearances of the phrase "a implementation" or "an implementation" in various places throughout this specification are not necessarily all referring to the same implementation.

[0130] Although many variations and modifications of the present disclosure will no doubt become apparent to those skilled in the art after reading the foregoing description, it will be understood that it is not intended in any way that any particular embodiment shown and described by way of illustration is to be regarded as limiting, and therefore references to details of various embodiments are not intended to limit the scope of the claims, but as such are merely reciting those features which are considered as disclosures. [Explanation of symbols]

[0131] 100 devices 101 First crossbar circuit 102 second crossbar circuit, crossbar circuit 103 Word Line (WL) Logic, WL Logic 104 Programming Circuit 105 Sensing Circuit 106 First Selection Logic 107 Second Selection Logic 111 Word Line (WL), Word Line 111-1, 111-2, 111-3, 111-4, 111-n, 111a, 111b, 111c Word Line 113, 113-1, 113-2, 113-3, 113a, 113b bit line (BL), bit line 120 Crosspoint Element 130, 140 selection line 200 Crosspoint Elements 201 RRAM element 203 Transistor 211 Bit Line (BL), Bit Line 213 Select Line (SEL), Select Line 215 Word Line (WL), Word Line 300 Crossbar circuit, crossbar array 400a, 400b, 400c, 400d Crossbar circuit 401, 401-1, 401-2, 401-3, 401-m Ward Line 403, 403-1, 403-2, 403-3, 403-m Word Line 405, 405-1, 405-2, 405-3, 405-m Word Line 407-1, 407-2, 407-3, 407-m bit lines 411, 411-1, 411-2, 411-3, 411-m Input signal 413, 413-1, 413-2, 413-3, 413-m Input signal 415, 415-1, 415-2, 415-3, 415-m Input signal 417, 417-1, 417-2, 417-3, 417-m bit lines 420, 421, 422, 423, 424, 425, 426 Crosspoint elements, crossbar arrays 430, 430-1, 430-2, 430-i selection line 430c crossbar circuit 431, 431-1, 431-2, 431-N selection lines 432, 432-1, 432-2, 432-N selection lines 433, 433-1, 433-2, 433-N selection lines 434, 434-1, 434-2, 434-N selection lines 435, 435-1, 435-2, 435-N Selection Line 436 Selection Line 450b Crossbar Array 460a, 460b Selection logic 461 First Part 461-1, 461-2, 461-3, 461-4, 461-5, 461-6, 461-N Selection Register 462 Selection Register 463 Second Part 463-1, 463-2, 463-3, 463-4, 463-5, 463-6, 463-N Selection Register 465 Third Part 465-1, 465-2, 465-3, 465-4, 465-5, 465-6, 465-N Selection Register 610 images 610a First Channel 610b Second Channel 610c 3rd Channel 611 First Part 611a First Channel 611b Second Channel 611c 3rd Channel 620, 621, 623, 625 Kernels 630 Output Images 631 First Element 640, 641, 643, 645 Output 650 1x1x3 kernel 710, 711, 712, 713, 714, 715, 716, 717, 718, 719 Address 720, 721, 722, 723, 724, 725, 726, 727, 728, 729 Address 730, 731, 732, 733, 735, 736, 737, 738, 739, 743 Address

Claims

1. a plurality of cross-point elements connecting a plurality of word lines and a plurality of bit lines; a plurality of select lines, including first select lines connecting a first group of the plurality of cross point elements and second select lines connecting a second group of the plurality of cross point elements; It encompasses the first group of the plurality of cross point elements; a first crosspoint element connecting a first bit line of the plurality of bit lines and a first word line of the plurality of word lines; a second crosspoint element connecting a second bit line of the plurality of bit lines and a second word line of the plurality of word lines; It encompasses the second group of the plurality of cross point elements; a third crosspoint element connecting the second word line and the first bit line; a fourth crosspoint element connecting a third word line and the second bit line; An apparatus comprising:

2. The apparatus of claim 1 , further comprising selection logic for selectively enabling one or more of the plurality of cross point elements via the plurality of select lines.

3. 3. The apparatus of claim 2, wherein the selection logic enables the first group of the plurality of cross point elements via the first select lines.

4. 4. The apparatus of claim 3, wherein the selection logic enables the second group of the plurality of cross point elements via the second select lines.

5. The apparatus further comprises: mapping a first plurality of elements of a plurality of depthwise convolution kernels to the first group of the plurality of cross-point elements; and mapping a second plurality of elements of the plurality of depthwise convolution kernels to the second group of the plurality of cross-point elements; Contains programming logic, 5. The apparatus of claim 4.

6. further comprising word line logic connected to said plurality of word lines; The word line logic includes: receiving input data to be convolved with multiple depthwise convolution kernels; generating a plurality of input signals representative of the input data; and applying the plurality of input signals to one or more of the plurality of crosspoint elements that are enabled by the selection logic; 3. The apparatus of claim 2.

7. further comprising sensing logic for generating a digital output based on a plurality of output signals output via the plurality of bit lines; The apparatus of claim 6 , wherein the digital output represents a convolution of the input data with the plurality of depthwise convolution kernels.

8. the first group of crosspoint elements further includes a fifth crosspoint element connecting the third word line and a third bit line; 2. The apparatus of claim 1, wherein said second group of said plurality of crosspoint elements further comprises a sixth crosspoint element connecting a fourth word line and said third bit line.

9. 2. The device of claim 1, wherein the plurality of select lines are not parallel to the plurality of bit lines.

10. 10. The device of claim 9, wherein the plurality of select lines are not parallel to the plurality of word lines.

11. at least one of the plurality of cross point elements includes a transistor and a memristor; 10. The apparatus of claim 1.

12. 2. The apparatus of claim 1, wherein the first select line and the second select line are connected to a first select register.

13. 2. The apparatus of claim 1, wherein the first select line is connected to a first select register and the second select line is connected to a second select register.

14. Mapping the plurality of kernels to a plurality of crosspoint elements of a crossbar circuit; enabling the plurality of crosspoint elements via a plurality of select lines of the crossbar circuitry; applying a plurality of input signals to the plurality of cross-point elements, the input signals representing input data to be convolved with the plurality of kernels; outputting a plurality of output signals representing the convolution result of the input data with the kernel via a plurality of bit lines of the crossbar circuit; It encompasses the plurality of select lines include first select lines connecting a first group of the plurality of cross point elements and second select lines connecting a second group of the plurality of cross point elements; the first group of the plurality of crosspoint elements includes a first crosspoint element connecting a first word line and a first bit line, and a second crosspoint element connecting a second word line and a second bit line; the second group of the plurality of crosspoint elements includes a third crosspoint element connecting the second word line and the first bit line, and a fourth crosspoint element connecting the third word line and the second bit line. method.

15. Mapping the plurality of kernels to the plurality of crosspoint elements of the crossbar circuitry comprises: mapping a first element of a first kernel of the plurality of kernels to the first cross point element; mapping a first element of a second kernel of the plurality of kernels to the second cross point element; The method of claim 14, comprising:

16. Mapping the plurality of kernels to the plurality of crosspoint elements of the crossbar circuitry further comprises: mapping a second element of the first kernel to the third crosspoint element; mapping a second element of the second kernel to the fourth cross point element; The method of claim 15, comprising:

17. 15. The method of claim 14, wherein enabling the plurality of cross point elements via the plurality of select lines comprises applying a first select voltage to the first select line to enable the first group of the plurality of cross point elements.

18. 15. The method of claim 14, wherein enabling the plurality of cross point elements via the plurality of select lines comprises applying a second select voltage to the second select lines to enable the second group of the plurality of cross point elements.

19. applying to the plurality of cross-point elements the plurality of input signals representing the input data to be convolved with the plurality of kernels, applying a first input signal to the first crosspoint element via a first word line of the crossbar circuit; applying a second input signal to the second crosspoint element via a second word line of the crossbar circuit; It encompasses the first input signal represents a first portion of a first channel of the input data, and the second input signal represents a second portion of a second channel of the input data; 15. The method of claim 14.

20. further retrieving from the storage device the first data item and the second data item stored in consecutive addresses; It encompasses the first input signal represents the first data item and the second input signal represents the second data item; 20. The method of claim 19.

Citation Information

Patent Citations

  • Suppressing Drift Coefficient Outliers During Programming of Phase-Change Memory Synapses

    JP2022546032A

  • Crossbar arrays for calculating matrix multiplication

    US20180350433A1

  • Resistive memory device for matrix-vector multiplications

    US20200013462A1