Memory calibration device, system and method

The memory calibration system applies test data patterns in the memory array to generate calibration information and perform distributed storage, which solves the problems of poor memory utilization and accuracy loss in neural network calculations, and achieves more efficient data processing and accuracy improvement. .

CN113178222BActive Publication Date: 2024-09-10STMICROELECTRONICS INT NV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110102642.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-01-25
Filing Date
2021-01-26
Publication Date
2024-09-10
Estimated Expiration
2041-01-26

AI Technical Summary

Technical Problem

Existing memory arrays suffer from poor memory utilization and accuracy loss in neural network calculations, especially when the data set changes, causing sense amplifier offsets that affect the accuracy of data readings.

Method used

A memory calibration system is used to generate calibration information by applying test data patterns, store it distributedly in memory cells, and combine the calibration information with data values ​​to compensate for the sense amplifier offset and optimize the computing cluster configuration of the memory array.

Benefits of technology

It improves the accuracy and utilization of the memory array, reduces accuracy loss due to sense amplifier offset, and enhances support for neural network calculations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113178222B_ABST
    Figure CN113178222B_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure relate to memory calibration devices, systems, and methods. The system includes a memory array having a plurality of memory cells; a sensing circuit coupled to the memory array; and a calibration circuit device. A test data pattern is applied to the memory array to generate calibration information based on an output provided by a first sensing circuit in response to applying the test data pattern to the memory array. The generated calibration information is stored in a distributed manner within the memory cells of the memory array. Some of the generated calibration information may be combined with data values ​​stored in a plurality of memory cells as part of one or more operations on the stored data values. The stored data values ​​may be stored in an in-memory computing cluster of the memory array, such that operating on the data values ​​of the memory includes combining a plurality of data values ​​of the in-memory computing cluster with at least a portion of the generated calibration information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure generally relates to a memory array, such as a memory array used in a learning / inference machine, such as an artificial neural network (ANN). Background Art

[0002] Processing cores and devices and systems including processing cores (such as processors, mobile phones, tablet computers, laptop computers, desktop computers, embedded processing systems, etc.) can typically include one or more memories, such as cache memory, main memory, auxiliary memory, etc. The memory can be implemented, for example, using one or more random access memories (RAMs) that can be volatile or non-volatile. The RAM can be organized into rows and columns corresponding to the data addresses in the memory. Sensing circuits (such as sense amplifiers) can be used to read cells, columns, or rows of the memory array.

[0003] Some applications can employ large amounts of memory. For example, various computer vision, speech recognition, and signal processing applications benefit from the use of a learning / inference engine that can rapidly perform hundreds, thousands, or even millions of concurrent operations and can therefore employ large amounts of memory. Learning / inference engines (as discussed in this disclosure) may fall under the technical names of machine learning, artificial intelligence, neural networks, probabilistic inference engines, accelerators, and the like. Conventional learning / inference engines may deliver hundreds of floating point calculations (i.e., one trillion (10 12 ) floating point calculations).

[0004] Such a learning / inference engine may include or otherwise utilize a deep convolutional neural network (DCNN). A DCNN is a computer-based tool that processes large amounts of data and adaptively "learns" by incorporating proximal-correlated features within the data, making broad predictions about the data, and improving the predictions based on reliable conclusions and new incorporations. A DCNN is arranged into multiple "layers," and at each layer a different type of prediction is made.

[0005] For example, if a plurality of two-dimensional pictures of faces are provided as input to a DCNN, the DCNN will learn various features of the face, such as edges, curves, angles, points, color contrast, bright spots, dark spots, etc. These one or more features are learned at one or more first layers of the DCNN. Then, in one or more second layers, the DCNN will learn various identifiable features of the face, such as eyes, eyebrows, forehead, hair, nose, mouth, cheeks, etc.; each of the various identifiable features can be distinguished from all other features. That is, the DCNN learns to recognize and distinguish eyes from eyebrows or any other facial features. In one or more third layers and subsequent layers, the DCNN learns the entire face and higher-order features, such as race, gender, age, emotional state, etc. In some cases, the DCNN is even taught to recognize a specific identity of a person. For example, a random image can be identified as a face, and the face can be identified as person A (Person_A), person B (Person_B), or some other identity.

[0006] In other examples, a DCNN can be provided with multiple pictures of animals and taught to identify lions, tigers, and bears; a DCNN can be provided with multiple pictures of cars and taught to identify and distinguish different types of vehicles; and many other DCNNs can also be formed. DCNNs can be used to learn word patterns in sentences, identify music, analyze personal shopping patterns, play video games, create traffic routes, and DCNNs can also be used for many other learning-based tasks. Summary of the invention

[0007] A memory calibration system can be summarized as including: a memory array including a plurality of memory cells; a first sensing circuit coupled to the memory array; and a calibration circuit device that, in operation, applies a test data pattern to the memory array, generates calibration information based on an output provided by the first sensing circuit in response to applying the test data pattern to the memory array; and stores the generated calibration information in a distributed manner in at least some of the plurality of memory cells. In operation and after storing the generated calibration information in a distributed manner, the first sensing circuit can be configured to combine at least a portion of the generated calibration information with one or more data values ​​stored in the plurality of memory cells as part of one or more operations performed on the one or more stored data values. The plurality of memory cells can be arranged such that one or more subsets of the memory cells, in operation, form one or more corresponding in-memory computation clusters for in-memory computations.

[0008] A method for memory array calibration can be summarized as: applying a test data pattern to a memory array having a plurality of memory cells; generating calibration information based on applying the test data pattern, such that generating the calibration information can include: analyzing output provided by a sensing circuit coupled to the plurality of memory cells in response to applying the test data pattern; storing the generated calibration information in a distributed manner within at least some of the plurality of memory cells; and after storing the generated calibration information in a distributed manner, and as part of one or more operations performed on one or more data values ​​stored in the plurality of memory cells, combining at least a portion of the generated calibration information with one or more stored data values. The plurality of memory cells can be arranged such that one or more subsets of the plurality of memory cells, in operation, form one or more corresponding in-memory computation clusters for in-memory computations.

[0009] A computing device may be summarized as including: means for applying a test data pattern to a memory array, such that the memory array may include a plurality of memory cells; means for generating calibration information based on output provided in response to applying the test data pattern; means for storing the generated calibration information in at least some of the plurality of memory cells in a distributed manner; and means for combining a portion of the generated calibration information with one or more stored data values ​​after storing the generated calibration information in a distributed manner and as part of one or more operations performed on one or more data values ​​stored in the plurality of memory cells. The plurality of memory cells may be arranged such that one or more subsets of the plurality of memory cells, in operation, form one or more corresponding in-memory computing clusters for in-memory computing.

[0010] A non-transitory computer-readable medium may be summarized as having content that causes a memory calibration circuit device to perform actions, the actions comprising: applying a test data pattern to a memory array having a plurality of memory cells; generating calibration information based on applying the test data pattern, such that generating the calibration information may include: analyzing output provided by a sensing circuit coupled to the plurality of memory cells in response to applying the test data pattern; storing the generated calibration information in at least some of the plurality of memory cells in a distributed manner; and combining at least a portion of the generated calibration information with one or more stored data values ​​after storing the generated calibration information in a distributed manner and as part of one or more operations performed on one or more data values ​​stored in the plurality of memory cells. The plurality of memory cells may be arranged such that one or more subsets of the memory cells, in operation, form one or more corresponding in-memory computation clusters for in-memory computations.

[0011] A system can be summarized as including: a memory array having a first plurality of cells arranged as a plurality of rows of cells intersecting a plurality of columns of cells; a plurality of first computation circuits, wherein each first computation circuit is operable to compute a computation value based on a cell value in a corresponding column of cells in the first plurality of cells; a first column multiplexer, the first column multiplexer being operable to cycle through a plurality of data lines, each of the plurality of data lines corresponding to a first computation circuit in the plurality of first computation circuits; a first sense circuit, the first sense circuit being operable to obtain computation values ​​from the plurality of first computation circuits via the first column multiplexer and cyclically combine the obtained computation values ​​through a determined number of multiplexers; and a cluster cycle management circuit device, the cluster cycle management circuit device being operable to determine a determined number of multiplexer cycles based on a number of columns storing data of a computation cluster. The determined number of multiplexer cycles can be less than a plurality of physical data lines of the first column multiplexer.

[0012] The calculated value may be a partial sum of cell values ​​in the corresponding column, and the first sensing circuit in operation calculates a first sum from the obtained partial sum via a first set of the plurality of data lines during a first set of cycles of the first column multiplexer, and the first sensing circuit in operation calculates a second sum from the obtained partial sum via a second set of the plurality of data lines during a second set of cycles of the first column multiplexer, wherein the first set of cycles and the second set of cycles have a determined number of multiplexer cycles. The first column multiplexer in operation may cycle through a second plurality of data lines, each of the second plurality of data lines corresponding to a respective second calculation circuit of a plurality of second calculation circuits, wherein each second calculation circuit calculates a partial sum based on cell values ​​in a corresponding column of cells of the second plurality of cells. The second plurality of data lines for the first column multiplexer may be provided by a second column multiplexer.

[0013] The system may include: a plurality of second calculation circuits, each of which calculates a calculation value in operation based on a cell value in a corresponding column of a second plurality of cells of a memory array; a second column multiplexer, which cycles through a plurality of data lines in operation, each of which corresponds to a second calculation circuit in the plurality of second calculation circuits; and a second sensing circuit, which obtains the calculation value from the plurality of second calculation circuits via the second column multiplexer in operation when the second column multiplexer cycles through the plurality of data lines and combines the obtained calculation values ​​through a determined number of multiplexer cycles.

[0014] A cluster cycle management circuit device, which can generate a plurality of control signals in response to a clock signal in operation, and can provide the plurality of control signals to a first sensing circuit and a first column multiplexer to cycle through a plurality of data lines at a determined number of multiplexer cycles for the first sensing circuit to obtain a calculated value from a corresponding first calculation circuit. A first column multiplexer, which can modify an address of each of a plurality of data lines of the first column multiplexer in operation to write a continuous plurality of data to a first plurality of cells. The system can include a data line selection circuit device, which can select different cycle orders through a plurality of data lines of the first column multiplexer in operation to write a continuous plurality of data to the first plurality of cells.

[0015] A method can be summarized as including: storing data in multiple memory cells, the multiple memory cells are arranged as multiple rows of cells intersecting multiple columns of cells; calculating multiple calculation values ​​based on cell values ​​from the multiple columns of cells, wherein each corresponding calculation value is calculated based on the cell values ​​from the corresponding column cells; determining the number of columns in the multiple columns of cells storing data of a data calculation cluster; selecting multiple multiplexer cycles based on the determined number of columns; generating a result of the data calculation cluster by using a column multiplexer to cycle through a first subset of multiple calculation values ​​for the selected number of multiplexer cycles, and by using a sensing engine to combine corresponding calculation values ​​from the first subset of calculation values; and outputting the result of the data calculation cluster.

[0016] The method may include: generating a second result for the data computation cluster by cycling through a second subset of the plurality of computation values ​​for a selected number of multiplexer cycles with a second column multiplexer and combining corresponding computation values ​​from the second subset of computation values ​​with a second sensing engine; and outputting the second result for the data computation cluster. The method may include: generating a second result for the data computation cluster by cycling through a second subset of the plurality of computation values ​​for a selected number of multiplexer cycles with a column multiplexer and combining corresponding computation values ​​from the second subset of computation values ​​with a sensing engine; and outputting the second result for the data computation cluster.

[0017] The method may include modifying the number of data lines utilized by a column multiplexer based on a selected number of multiplexer cycles for a data computation cluster. The method may include initiating the column multiplexer in response to a non-memory clock signal to cycle through a first subset of computed values ​​for the selected number of multiplexer cycles; and initiating each cycle for each data line of the column multiplexer in response to a memory clock signal for the selected number of multiplexer cycles to obtain the first subset of computed values. The method may include modifying an address of each of a plurality of data lines of the column multiplexer to write a continuous plurality of data to a first plurality of cells. The method may include selecting a different cycle order for the column multiplexer to cycle through a plurality of column cells so as to write a continuous plurality of data to a plurality of cells.

[0018] A computing device can be summarized as including: a device for storing data in multiple cells of multiple rows of cells configured to intersect multiple columns of cells; a device for calculating corresponding calculation values ​​based on cell values ​​from each corresponding column of the multiple columns of cells; a device for determining a calculation cluster loop size based on the number of columns in the multiple columns of cells storing data for a data calculation cluster; a device for looping through the corresponding calculation values ​​for the determined calculation cluster loop size; and a device for combining the corresponding calculation values ​​to generate a result of the data calculation cluster for the determined calculation cluster loop size.

[0019] The computing device may include: means for initiating a loop through corresponding computation values ​​for a determined computation cluster loop size; and means for initiating each loop for each corresponding computation value of the determined computation cluster loop size. The computing device may include: means for modifying an order in which data is stored in a plurality of columns of cells so as to write a plurality of data consecutively to the plurality of cells.

[0020] A non-transitory computer-readable medium having content that causes a cluster cycle management circuit device to perform actions that can be summarized as including: storing data in multiple memory cells, the multiple memory cells are arranged as multiple rows of cells intersecting multiple columns of cells; determining the number of columns in the multiple columns of cells that store data for a computing operation; selecting multiple multiplexer cycles based on the determined number of columns; generating a result of the data computing operation by using a column multiplexer to cycle through a first subset of the multiple columns of cells for the selected number of multiplexer cycles and by using a sensing engine to combine values ​​from the first subset of the multiple columns of cells; and outputting the result of the computing operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Non-limiting and non-exhaustive embodiments are described with reference to the following figures, wherein the same reference numerals represent the same parts throughout the various views unless otherwise specified. The sizes and relative positions of the elements in the figures are not necessarily drawn to scale. For example, the shapes of the various elements are selected, enlarged, and positioned to provide the legibility of the drawings. For ease of identification in the drawings, the specific shapes of the elements as drawn have been selected. Moreover, for ease of illustration, some elements known to those skilled in the art have not been illustrated in the drawings. One or more embodiments are described below with reference to the accompanying drawings, in which:

[0022] Figure 1 is a functional block diagram of an embodiment of an electronic device or system having a processing core and a memory according to an embodiment;

[0023] FIG. 2A to FIG. 2D A use case background diagram of a memory array with configurable multiplexers and sensing circuits is illustrated;

[0024] FIG. 3A to FIG. 3D A background diagram illustrating a use case of using a self-shifting multiplexer to continuously write multiple data into a memory array;

[0025] 4A to 4D A background diagram illustrating a use case of continuously writing multiple data to a memory array using pre-decoding shifting;

[0026] Figure 5 The diagram generally shows a method for using FIG. 2A to FIG. 2C A logic flow diagram of one embodiment of a process of reading data from a memory array using the configurable multiplexer and sensing circuits illustrated in FIG.

[0027] Figure 6 A logic flow diagram generally illustrates one embodiment of a process for employing a multiplexer that modifies a data line address to write multiple data lines consecutively to a plurality of data lines such as a FIG. 3A to FIG. 3D A memory array as shown in FIG.

[0028] Figure 7 The diagram generally shows a method for using pre-decoding shifting to continuously write multiple data into a 4A to 4D A logic flow diagram of one embodiment of a process for a memory array as illustrated in FIG.

[0029] Figure 8 A logic flow diagram generally illustrating one embodiment of a process for initiating multiplexer reads and writes to a memory array using a first clock, and initiating each cycle of the multiplexer reads and writes using a second clock is illustrated.

[0030] Fig. 9Illustrated is a logic flow diagram generally illustrating one embodiment of a process for memory array calibration according to the techniques described herein. DETAILED DESCRIPTION

[0031] The following description and the accompanying drawings set forth certain specific details in order to provide a thorough understanding of the various disclosed embodiments. However, those skilled in the relevant art will recognize that the disclosed embodiments may be practiced in various combinations without one or more of these specific details or with other methods, components, devices, materials, etc. In other cases, in order to avoid unnecessary confusion in the description of the embodiments, well-known structures or components associated with the environment of the present disclosure in the memory environment in computing, including but not limited to interfaces, power supplies, physical component layouts, etc., have not been shown or described. Additionally, the various embodiments may be methods, systems, or devices.

[0032] Throughout the specification, claims and drawings, unless the context clearly indicates otherwise, the following terms take the meanings clearly associated herein. The term "herein" refers to the specification, claims and drawings associated with the present application. The phrases "in one embodiment", "in another embodiment", "in various embodiments", "in some embodiments", "in other embodiments" and other variations thereof refer to one or more features, structures, functions, limitations or characteristics of the present disclosure, and are not limited to the same or different embodiments unless the context clearly indicates otherwise. As used herein, the term "or" is an inclusive "or" operator and is equivalent to the phrase "A or B or both" or "A or B or C or any combination thereof", and lists with additional elements are treated similarly. The term "based on" is not exclusive, and unless the context clearly indicates otherwise, additional features, functions, aspects or limitations based on undescribed are allowed. In addition, throughout the specification, the meanings of "one", "an" and "the" include singular references and plural references.

[0033] The calculations performed by DCNN or other neural networks typically include repeated calculations of large amounts of data. For example, many learning / inference engines compare known information or kernels with unknown data or feature vectors, such as comparing known pixel groups with a portion of an image. A common type of comparison is the dot product between the kernel and the feature vector. However, kernel size, feature size, and depth tend to vary between different layers of a neural network. In some cases, dedicated computing units can be used to implement these operations with varying data sets. However, due to varying data sets, memory utilization may not be fully optimized. For example, small swing calculations can be enabled by selecting all elements connected to a computing line, while large computing clusters can utilize a large number of elements on multiple computing lines, which can result in poor aspect ratio utilization of memory. In addition, such variations can result in accuracy loss due to limited voltage margin.

[0034] Figure 1 1 is a functional block diagram of an embodiment of an electronic device or system 100 of the type to which the embodiments to be described may be applied. The system 100 includes one or more processing cores or circuits 102. The processing core 102 may include, for example, one or more processors, state machines, microprocessors, programmable logic circuits, discrete circuit devices, logic gates, registers, etc., and various combinations thereof. The processing core may control the overall operation of the system 100, the execution of application programs by the system 100, etc.

[0035] The system 100 includes one or more memories (such as one or more volatile and / or non-volatile memories) that may store, for example, all or part of instructions and data related to the control of the system 100, applications and operations executed by the system 100, etc. As illustrated, the system 100 includes one or more cache memories 104, one or more main memories 106, and one or more secondary memories 108. One or more of the memories 104, 106, 108 include a memory array (see, e.g., FIG. 2A to FIG. 2C The memory array 202, FIG. 3A to FIG. 3D The memory array 302 or 4A to 4D 402 in the memory array 402), which is shared by one or more processes executed by the system 100 during operation.

[0036] The system 100 may include one or more sensors 120 (e.g., image sensors, audio sensors, accelerometers, pressure sensors, temperature sensors, etc.), one or more interfaces 130 (e.g., wireless communication interfaces, wired communication interfaces, etc.), and other circuits 150 (which may include antennas, power supplies, one or more built-in self-test (BIST) circuits, etc.), and a main bus system 170. The main bus system 170 may include one or more data, address, power, and / or control buses coupled to various components of the system 100. The system 100 may also include additional bus systems, such as a bus system 162 (which may communicatively couple the cache memory 104 and the processing core 102), a bus system 164 (which communicatively couples the cache memory 104 and the main memory 106), a bus system 166 (which communicatively couples the main memory 106 and the processing core 102), and a bus system 168 (which communicatively couples the main memory 106 and the auxiliary memory 108).

[0037] The system 100 also includes a calibration control circuit device 140, which controls the generation and storage of sense amplifier calibration information (such as offset information) in operation, which can be used by the system 100 to compensate for sense amplifier offset. Sensing circuits (such as sense amplifiers) can be used to read cells or columns of a memory array. (See, e.g., Figure 2A Sense amplifier offsets may be used to compensate for various sense circuit input offsets.

[0038] In some embodiments, calibration control circuitry 140 may apply the test data pattern to selected one or more memory cells of a provided memory array comprising a plurality of such memory cells. In some embodiments, calibration control circuitry may retrieve the defined test data pattern from a storage device, such as one of cache memory 104, main memory 106, auxiliary memory 108, or other external memory (not shown). In other embodiments, calibration control circuitry 140 may generate the test data pattern before applying the test data pattern to the one or more memory cells.

[0039] After applying the test data pattern to the selected memory cells, the sense circuit coupled to the memory array provides an output in response to reading the value associated with the test data pattern from one or more memory cells. In view of the expected results from applying the test data pattern, the calibration control circuit device 140 generates calibration information by analyzing the provided discharge output of the sense circuit. In at least some embodiments, the generated calibration information includes estimated sense amplifier offset data for the selected memory cells to which the test data pattern is applied.

[0040] In one embodiment, the calibration control circuit device 140 then stores the generated calibration information in a distributed manner within the memory array that includes the selected memory cells. For example, if the selected memory cells include one or more in-memory computing clusters, then the calibration control circuit device may store the generated calibration information (e.g., offset data) in the memory cells of the computing clusters, such as for use during future operations on data values ​​stored and operated on in those one or more computing clusters. In one or more embodiments that do not utilize in-memory computing clusters, such calibration information may be stored in various distributed manners. For example, to do so, the calibration information may be stored in one or more regions of the memory array, such as by specifying one or more regions of the memory array (e.g., one or more rows or columns), the one or more regions of the memory array corresponding to the memory cells coupled to the sensing circuit on which the calibration information is based.

[0041] In some embodiments, after the distributed storage of the calibration information, one or more operations may be initiated with respect to the data values ​​stored in the selected memory cells. For example, a clock input signal may be received and thereby initiate one or more circuits to combine data values ​​stored in one or more columns of a memory array forming a single in-memory computing cluster. Depending on the particular distributed manner in which the configuration information is stored, the operations to combine the selected data values ​​may be performed in such a manner that one or more portions of the configuration information (e.g., those portions associated with and / or proximate to the memory cell storing the selected data value) are also operated on (e.g., summed or otherwise combined) by the circuits.

[0042] In embodiments, the described memory array calibration may be performed at various times or in response to various criteria. As non-limiting examples, memory calibration may be performed at initial system power-up (such as to compensate for aging-related effects, changing operating conditions, or other variable conditions); intermittently, such as at one or more predefined intervals or other intervals; in response to an explicit request; at memory reconfiguration (such as when configuring one or more portions of the memory array into one or more in-memory compute clusters or other reconfiguration); or at some other event.

[0043] System 100 also includes cluster cycle management circuitry 160 that, in operation, employs one or more memory management routines to utilize configurable multiplexers and sense circuits to read data from memory 104, 106, or 108 (see, e.g., FIG. 2A to FIG. 2C ) or dynamically write data to the memory of a shared memory array (see e.g. FIG. 3A to FIG. 3D and 4A to 4D ). Memory management circuitry 160 may perform the routines and functionality described herein alone or in combination with other processing circuitry (such as processing core 102), including at Figures 5 to 8 The cluster cycle management circuit 160 may employ the stored sense amplifier offset information when reading data from a memory such as the cache memory 104, the main memory 106, and / or the auxiliary memory 108. The cluster cycle management circuit device 160 may include, as non-limiting examples, one or more processors, state machines, microprocessors, programmable logic circuits, discrete circuit devices, logic gates, registers, etc., and various combinations thereof.

[0044] The one or more main memories 106 are typically working memories for the system 100 (e.g., the one or more memories on which the processing cores 102 work), and may be typically volatile memories of limited size that store code and data related to the processes performed by the system 100. For convenience, references herein to data stored in a memory may also refer to code stored in the memory. The secondary memory 108 may be typically non-volatile memory that stores instructions and data that may be retrieved and stored in the main memory 106 when needed by the system 100. The cache memory 104 may be a relatively faster memory compared to the secondary memory 108, and may typically have a limited size, which may be larger than the size of the main memory 106.

[0045] Cache memory 104 temporarily stores code and data for later use by system 100. Instead of retrieving the required code or data from secondary storage 108 for storage in main memory 106, system 100 may first check cache memory 104 to see if the data or code is already stored in cache memory 104. Cache memory 104 may significantly improve the performance of a system (e.g., system 100) by reducing the time and other resources required to retrieve data and code for use by system 100. When code and data are retrieved (e.g., from secondary storage 108) for use by system 100, or when data or code is written (e.g., to main memory 106 or secondary storage 108), a copy of the data or code may be stored in cache memory 104 for later use by system 100. Various cache management routines may be employed to control the data stored in one or more cache memories 104.

[0046] FIG. 2A to FIG. 2D A use case background diagram of a memory array with configurable multiplexers and sensing circuits for reading data from the memory array is illustrated. Figure 2A The system 200A in includes a memory array 202, a plurality of computation circuits, a partial sum circuit 206 as illustrated, one or more column multiplexers 208a-208b, and one or more sense circuits 210a-210b.

[0047] As illustrated, the memory 202 includes a plurality of cells 230 configured in a column-row arrangement having multiple rows of cells intersecting multiple columns of cells. Each cell can be addressed via a specific column and a specific row. The number of cells 230 illustrated in the memory array 202 is for illustrative purposes only, and a system employing the embodiments described herein may include more or fewer cells in more or fewer columns and more or fewer rows. The details of the functionality and components for accessing a particular memory cell are known to those skilled in the art and are not described herein for the sake of brevity.

[0048] Each column 204a-204h of the memory array 202 is in electrical communication with a corresponding partial sum circuit 206. Each partial sum circuit 206 includes circuitry configured to calculate or determine, in operation, the sum of the cell values ​​from each cell 230 in the corresponding column. For example, the partial sum PS 1 is the sum of cells 230 in column 204a, the partial sum PS 2 is the sum of cells 230 in column 204b, and so on. In one embodiment, partial sum circuit 206 may be a sample-and-hold circuit.

[0049] Because the embodiments described herein can be used for neural network calculations, data can be processed in a computing cluster. A computing cluster is a plurality of calculations performed on a set of data. For example, a computing cluster may include a comparison between kernel data and feature vector data, such as on a preselected number of pixels. In the illustrated embodiment, data is added to memory 202 so that all data for a single computing cluster are associated with the same sensing circuits 210a to 210b. For example, data labeled as k1[a1], k1[a2], ..., k1[n1], k1[n2], ..., k1[p1], k1[p2], ..., k1[x1], and k1[x2] are used for a first computing cluster and are stored in cells 230 in columns 204a to 204d. In contrast, the data labeled k2[a1], k2[a2], ..., k2[n1], k2[n2], ..., k2[p1], k2[p2], ..., k2[x1], and k2[x2] are for a second separate computing cluster and are stored in cells 230 in columns 204e through 204h. In this way, the results obtained by sense circuit 210a are used for one computing cluster, while the results obtained by sense circuit 210b are used for another computing cluster.

[0050] Each multiplexer 208a-208b includes a plurality of data lines 216 and an output 218a-218b. In the illustrated embodiment, each multiplexer 208a-208b includes four physical data lines 216. Therefore, the multiplexers 208a-208b are considered to have four physical multiplexer loops. 1 , C 2 , C 3 and C 4 Data line 216 is illustrated. These references are not an indication of the values ​​passed along data line 216, but rather refer to a particular clock cycle within which multiplexers 208a-208b select a particular data line to pass a value from the corresponding partial sum 206 to the corresponding output 218a-218b. In other embodiments and configurations, the multiplexers may have two physical data lines, eight physical data lines, or other numbers of physical data lines. Moreover, multiplexers 208a-208b are illustrated as read-only multiplexers and are configured to read data from memory 202. However, in some embodiments, multiplexers 208a-208b may be read / write multiplexers and are configured to write data to and read data from memory 202.

[0051] Multiplexers 208a-208b are configured to cycle through data lines 216 based on a selected number of cycles in a complete compute cluster cycle. A compute cluster cycle corresponds to a column associated with a particular compute cluster. The number of data lines 216 that multiplexers 208a-208b cycle through for a given compute cluster cycle is determined based on the compute cluster cycle size, which is the number of columns 204 of data stored in memory 202 for a given compute cluster. The cluster cycle size is independent of the number of physical data line cycles available for each multiplexer. As described above and as Figure 2A As illustrated in , data for the first computing cluster is stored in four columns (columns 204a to 204d), and data for the second computing cluster is stored in four separate columns (columns 204e to 204h). In this example, the computing cluster size is four cycles.

[0052] In various embodiments, each multiplexer 208a-208b receives a control signal that indicates when to initiate a cycle through the data lines 216 or when to cycle to each individual data line 216, or a combination thereof. In the illustrated embodiment, the control signals received by the multiplexers 208a-208b include, for example, various clock signals. For example, each multiplexer 208a-208b includes a first clock input 228. The first clock input 228 receives one or more clock signals from the first clock 212 to cycle through the data lines 216 for a given computing cluster cycle during a read operation. The first clock 212 can be external or internal to the memory. In some embodiments, the first clock 212 is a system clock.

[0053] In some embodiments, the signal received from the first clock 212 via the first clock input 228 initializes the multiplexers 208a-208b to cycle through the data line 216, but each individual data line cycle is triggered by a signal received from the second clock 214 via the second clock input 226. In this manner, each individual computation cluster cycle is triggered by a clock signal from the first clock 212. In the illustrated example, the clock signal received from the first clock 212 is an example of a cluster control signal that initiates a cycle of the multiplexers, and the clock signal received from the second clock 214 is an example of a multiplexer cycle control signal that initiates each individual cycle of the multiplexers.

[0054] For example, when the multiplexer 208a receives the clock signal CLK from the first clock 212, the multiplexer 208a initiates a computation cluster cycle, which triggers the multiplexer 208a to cycle to the first data line 216 using the next clock signal from the second clock 214. 1 When the multiplexer 208a cycles to the corresponding partial sum PS1 The data line of 210a is connected to the sensing circuit 210a so that its partial sum value is obtained by the sensing circuit 210a. When the clock signal C is received from the second clock 214 2 When the multiplexer 208a cycles to the corresponding partial sum PS 2 The next data line of the second clock 214 is received by the sensing circuit 210a, so that its partial sum value is obtained by the sensing circuit 210a and combined with its previously held value. 3 and C 4 The multiplexer 208a continues to operate in a similar manner so that the sensing circuit 210a obtains the signal from the PS 3 and PS 4 The value of 3 and PS 4 The value from PS 1 and PS 2 The value combination of .

[0055] Similarly, when multiplexer 208b receives clock signal CLK from first clock 212, multiplexer 208b initiates a computation cluster cycle, which triggers multiplexer 208b to cycle to first data line 216 using the next clock signal from second clock 214. 1 When the multiplexer 208b cycles to the corresponding partial sum PS 5 216 so that its partial sum value is obtained by the sensing circuit 210b. In this example, the clock signal CLK that initiates the multiplexer 208b is the same as the clock signal that initiates the multiplexer 208a. In this way, a single clock signal initiates both multiplexers 208a to 208b to begin cycling through the corresponding data lines 216. The multiplexer 208b responds to receiving the clock signal C from the second clock 214. 2 , C 3 and C 4 And the loop through corresponds to the partial sum PS 6 ,PS 7 and PS 8 , so that similar to multiplexer 208a and sensing circuit 210b, the partial sum values ​​are obtained and combined by sensing circuit 210b.

[0056] Once the maximum number of multiplexer cycles is reached within a given compute cluster cycle (e.g. Figure 2A204e to 204h). And because the multiplexers 208a to 208b utilize the same clock signal (the first clock signal or a combination of the first and second clock signals) to cycle through their respective data lines 216, two results for the two computing clusters are obtained during a single computing cluster cycle.

[0057] As illustrated, the multiplexers 208a to 208b utilize one clock signal from the first clock 212 and four clock signals from the second clock 214 to access their corresponding four data lines 216. However, embodiments are not limited thereto. Instead, in other embodiments, receiving a clock signal from the first clock 212 may instruct the multiplexers 208a to 208b to cycle to the first data line 216 and then to the second data line 216 upon receiving the next clock signal from the second clock 214. In this manner, the multiplexers 208a to 208b will utilize one clock signal from the first clock 212 and three clock signals from the second clock 214 to access their corresponding four data lines 216 after the first cycle using the second clock 214.

[0058] In at least one embodiment, the second clock 214 may be a memory clock for refreshing data in the memory array 202. In other embodiments, the second clock 214 may be a clock dedicated to the multiplexers 208a to 208b or some other clock. The second clock 214 may be external or internal to the memory. Generally speaking, the second clock 214 is physically closer to the multiplexers 208a to 208b than the first clock 212, and the second clock 214 utilizes less power to circulate through the multiplexer data lines than the first clock 212. In various embodiments, the second clock signal may be referred to as a cyclic control signal.

[0059] In other embodiments, each signal received from the first clock 212 (or some other clock) via the first clock input 228 triggers a separate data line cycle. For example, when multiplexers 208a-208b receive the first clock signal from the first clock 212, multiplexer 208a cycles to the data line corresponding to the partial sum PS 1, so that its partial sum value is obtained by the sensing circuit 210a, and the multiplexer 208b cycles to the data line corresponding to the partial sum PS 5 , so that its partial sum value is obtained by the sensing circuit 210b. However, when the multiplexers 208a to 208b receive the second clock signal from the first clock 212, the multiplexer 208a cycles to the data line corresponding to the partial sum PS 2 , so that its partial sum value is obtained by the sensing circuit 210a, and the multiplexer 208b cycles to the data line corresponding to the partial sum PS 6 The data line of 208a to 208b is switched to the sense circuit 210b so that its partial sum value is obtained by the sense circuit 210b. Multiplexers 208a to 208b continue to operate in a similar manner for additional clock signals received from the first clock 212. Once the maximum number of multiplexer cycles is reached for the computing cluster cycle (e.g., Figure 1 In the illustrated example of FIG, four), the multiplexer 208a cycles back to the first data line on the next clock signal. In this embodiment, the second clock 214 is optional and is not utilized.

[0060] In some embodiments, the multiplexers 208a-208b may have other input / output interfaces (not shown), such as for selecting between read and write operations, selecting a specific data line 216, selecting a computing cluster loop size, etc.

[0061] For example, as illustrated, the multiplexers 208a-208b utilize the clock signal directly to cycle through the data lines 216. However, in other embodiments, each multiplexer 208a-208b may also include one or more data selection lines (not illustrated). The data selection lines are configured to receive addresses from the selection circuitry to cycle to specific data lines 216. In at least one such embodiment, the selection circuitry utilizes the first clock signal from the first clock 212 or the second clock signal from the second clock 214, or some combination thereof, to cycle through different data lines 216, as described herein. 4A to 4D An example of how such a selection circuit arrangement may be utilized is shown in FIG. 4A to 4D The data line selection circuit arrangement shown in is used to instruct a multiplexer to cycle through multiple data lines to write data to a memory, but a similar circuit arrangement can also be used to instruct a multiplexer to cycle through multiple data lines to read data from a memory.

[0062] As another example of other input / output interfaces, the multiplexers 208a-208b may include one or more compute cluster cycle size input lines (not shown). The compute cluster cycle size input lines may be used to identify how many columns 204 or data lines 216 the multiplexers 208a-208b and the sense circuits 210a-210b will use to obtain results from the memory 202 for a single compute cluster. For example, in Figure 2A In the example illustrated in , multiplexers 208a-208b utilize four data lines to obtain results from the partial sums of four columns for a single compute cluster. In this example, each multiplexer 208 may have one or more compute cluster cycle size input lines that instruct multiplexers 208a-208b to operate as a compute cluster cycle (e.g., as four multiplexer cycles or four data lines).

[0063] Similar to the multiplexers 208a-208b, the sense circuits 210a-210b may also receive clock signals from the first clock 212 and the second clock 214. These clock signals are used to trigger the sense circuits 210a-210b when the partial sum values ​​selected by the multiplexers 208a-208b are obtained and output via outputs 218a-218b for a given computing cluster cycle. When the computing cluster cycle is completed, in response to the final clock signal from the second clock 214 or in response to the next clock signal from the first clock, the sense circuits 210a-210b move their combined stored values ​​to the output buffers 232a-232b, respectively. In some embodiments, the sense circuits 210a-210b may also include one or more computing cluster cycle size input lines (not shown) to indicate how many different partial sum values ​​(the number of columns associated with a given computing cluster) will be obtained for a given computing cluster cycle, similar to what is described herein for the multiplexers 208a-208b.

[0064] System 200A also includes cluster loop management circuitry 160. In some embodiments, cluster loop management circuitry 160 determines the number of multiplexer loops to be used for a compute cluster loop (e.g., a compute cluster loop size) based on the number of columns storing data for a given compute cluster. In at least one embodiment, the number of columns storing data for a given compute cluster may be based on one or more thresholds compared to a batch size of kernel data for neural network processing. In some embodiments, the kernel set is partitioned into batches that are processed sequentially based on the current neural network layer being utilized.

[0065] In various embodiments, the cluster cycle management circuit device 160 provides information or instructions about the computing cluster cycle size or clock signal to be utilized (e.g., whether the first clock triggers all multiplexer cycles or whether the first clock initiates a multiplexer cycle in response to the second clock signal) to the multiplexers 208a-208b and the sensing circuits 210a-210b. In some embodiments, the cluster cycle management circuit device 160 manages or generates control signals (e.g., the first clock signal and the second clock signal) and provides the control signals to the multiplexers 208a-208b and the sensing circuits 210a-210b. In some embodiments, the cluster cycle management circuit device can coordinate the output of data from the output buffers 232a-232b for further processing, such as input to the next layer in a neural network process.

[0066] although Figure 2A An embodiment is illustrated in which multiplexers 208a-208b cycle through all four physical data lines 216 so that each sense circuit 210a-210b combines four partial sums during a single compute cluster cycle, but some embodiments may desire sense circuits 210a-210b to combine fewer partial sums, such as two partial sums. For example, in some cases and embodiments, a small compute cluster may not optimally utilize memory when four columns are used due to a poor aspect ratio. To improve the aspect ratio, data for the small compute cluster is stored in two columns, rather than four columns as described above, and as Figure 2B As illustrated in , the multiplexers 208a to 208b and the sensing circuits are reconfigured accordingly.

[0067] Figure 2B The system 200B in FIG. 1 illustrates an embodiment in which the configurable multiplexers 208 a - 208 b and the sensing circuits 210 a - 210 b utilize two columns in the memory 202 instead of four columns. The system 200B is Figure 2A An embodiment of the system 200A described in .

[0068] As described above, each column 204a-204h of the memory array 202 is in electrical communication with a corresponding partial sum circuit 206 that is configured to calculate or determine the sum of the cell values ​​from each cell in the corresponding column. However, in this example, the computation cluster is smaller than described above in Figure 2AIn the illustrated embodiment, data labeled k1[a1], k1[a2], ..., and k1[n1], k1[n2], ... are used for the first computing cluster and are stored in cells in columns 204a to 204b; data labeled k2[p1], k2[p2], k2[p3], k2[x1], and k2[x2] are used for the second computing cluster and are stored in cells in columns 204c to 204d; data labeled k3[a1], k3[a2], ..., and k3[n1], k3[n2], ... are used for the third computing cluster and are stored in cells in columns 204e to 204f; and data labeled k4[p1], k4[p2], k4[p3], k4[x1], and k4[x2] are used for the fourth computing cluster and are stored in cells in columns 204g to 204h.

[0069] Each multiplexer 208a-208b includes four physical data lines 216. Because each compute cluster is stored in two columns 204 in the memory 202, each multiplexer 208a-208b is reconfigured to cycle through two data lines 216 for a given compute cluster cycle. As described above, in some embodiments, a signal received from the first clock 212 via the first clock input 228 may initialize the multiplexers 208a-208b to cycle through the data lines 216, but each individual data line cycle is triggered by a signal received from the second clock 214 via the second clock input 226. The signal from the second clock 214 is utilized so that the number of multiplexer data lines cycled is equal to the number of columns utilized for a single compute cluster.

[0070] For example, when the multiplexer 208a receives the clock signal CLK from the first clock 212 1 To initiate a computing cluster cycle, the multiplexer 208a receives the next clock signal C from the second clock 214. 1 When looping to the corresponding partial sum PS 1 The data line from the PS 1 The partial sum value of is obtained by the sensing circuit 210a. When the clock signal C is received from the second clock 214 2 When multiplexer 208a cycles to the corresponding partial sum PS 2 The data line of PS is moved so that its partial sum value is obtained by the sensing circuit 210a and combined with its previously held value. 1 and PS 2 After obtaining the value of , the obtained value is output as the corresponding computing cluster output, such as outputting it to the output buffer 232a.

[0071] Then, the multiplexer 208a receives the second signal CLK from the first clock 212 2 To initiate another computing cluster cycle, which initiates a second computing cluster cycle. When receiving the clock signal C from the second clock 214 3 When the multiplexer 208a cycles to the corresponding partial sum PS 3 The data line of 210a is connected to the sensing circuit 210a so that its partial sum value is obtained by the sensing circuit 210a. When the clock signal C is received from the second clock 214 4 When the multiplexer 208a cycles to the corresponding partial sum PS 4 The data line of PS is received by the sensing circuit 210a so that its partial sum value is obtained by the sensing circuit 210a and combined with its previously held value. 3 and PS 4 After obtaining the value of , the obtained value is output to the output buffer 232a as the corresponding computing cluster output.

[0072] Similar to the multiplexer 208a, when the multiplexer 208b receives the clock signal CLK from the first clock 212 1 To initiate a computing cluster cycle, the multiplexer 208b cycles to the next clock signal C received from the second clock 214. 1 and C 2 The partial sum PS 5 and PS 6 When receiving the clock signal C from the second clock 214 2 When the multiplexer 208b cycles to the corresponding partial sum PS 6 The data line of PS is moved so that its partial sum value is obtained by the sensing circuit 210b and combined with its previously held value. 5 and PS 6 After obtaining the value of , the obtained value is output as the corresponding computing cluster output, such as outputting it to the output buffer 232b.

[0073] Then, the multiplexer 208b receives the second signal CLK from the first clock 212 2 To initiate another computing cluster cycle, this initiates a second computing cluster cycle. When receiving the clock signal C from the second clock 214 3 When the multiplexer 208b cycles to the corresponding partial sum PS 7 The data line of 210a is connected to the sensing circuit 210b, so that its partial sum value is obtained by the sensing circuit 210b. When the clock signal C is received from the second clock 214 4 When the multiplexer 208b cycles to the corresponding partial sum PS 8The data line of PS is moved so that its partial sum value is obtained by the sensing circuit 210b and combined with its previously held value. 7 and PS 8 After obtaining the value of , the obtained value is output to the output buffer 232b as the corresponding computing cluster output.

[0074] Once the maximum number of physical multiplexer cycles is reached (e.g. in Figure 2B In the illustrated example, four), the multiplexers 208a to 208b wait for the next first clock signal from the first clock 212 based on the computing cluster cycle size to initiate the multiplexers 208a to 208b to cycle through the data line 216 again.

[0075] Therefore, system 200B obtains four results for four computing clusters, one result is obtained for columns 204a-204b by sense circuit 210a, a second result is obtained for columns 204c-204d by sense circuit 210a, a third result is obtained for columns 204e-204f by sense circuit 210b, and a fourth result is obtained for columns 204g-204h by sense circuit 210b. And because multiplexers 208a-208b utilize the same clock signal (the first clock signal or a combination of the first clock signal and the second clock signal) to cycle through their respective data lines 216, the first two results for the first two computing clusters (columns 204a-204b and 204e-204f) are obtained during the first computing cluster cycle time, and the second two results for the second two computing clusters (columns 204c-204d and 204g-204h) are obtained during the second computing cluster cycle time.

[0076] Similar to the above description, the multiplexers 208a to 208b can use the clock signal from the first clock 212 to instruct the multiplexers 208a to 208b to cycle to the first data line 216 when receiving the next clock signal from the second clock 214, so as to allow each multiplexer cycle to be controlled by the clock signal received from the second clock 214, or the multiplexers 208a to 208b can use one clock signal from the first clock 212 and one clock signal from the second clock 214 to access its corresponding two data lines 216 for a given computing cluster, or the multiplexers 208a to 208b can use each individual clock signal received from the first clock 212 to cycle to the next data line. Similarly, the clock signals received from the first clock 212, the second clock 214, or a combination thereof can also be used to trigger the sensing circuits 210a to 210b to obtain the current output values ​​of the multiplexers 208a to 208b.

[0077] In some embodiments, the number of data lines utilized for a given computing cluster may be controlled by the first clock signal 212. For example, the first clock signal may maintain a value of "1" for two second clock signals and then drop to a value of "0". This change to "0" indicates the start of a new computing cluster cycle. In another example, other circuit devices (not shown) may store the number of columns associated with a given computing cluster cycle and monitor the number of second clock signals that enable the multiplexer to cycle to a corresponding number of data lines. Once the number of second clock signals equals the number of columns associated with a given computing cluster cycle, the other circuit devices release the next first clock signal to initiate a new computing cluster cycle.

[0078] In other embodiments, as described above, multiplexers 208a-208b may have a compute cluster cycle size input line (not shown) that indicates to the multiplexer the number of columns associated with a given compute cluster cycle. For example, a single input line may be used such that a "0" indicates two columns and a "1" indicates four columns. Other numbers of compute cluster cycle size input lines may also be used to indicate different compute cluster cycle sizes. Similarly, sense circuits 210a-210b may utilize a compute cluster cycle size input line or a clock signal to indicate to the sense circuit output the value currently held.

[0079] although Figure 2A and Figure 2B An embodiment is illustrated in which multiplexers 208a-208b cycle through four data lines 216 so that each sense circuit 210a-210b combines partial sums of one or more compute cluster cycles, but some embodiments may desire that the sense circuits combine more partial sums, such as eight partial sums. For example, in some cases and embodiments, very large compute clusters may not optimally utilize memory when using two or four columns due to poor aspect ratios. To improve the aspect ratio, data for a large compute cluster may be stored in eight columns, rather than two or four columns as described above, which is useful in some embodiments. Figure 2C The diagram is shown in .

[0080] As described above, Figure 2C The system 200C in FIG. 1 illustrates an embodiment in which the configurable multiplexers 208a-208b and the sensing circuits 210a-210b are reconfigured to utilize eight columns in the memory 202 instead of two or four columns. The system 200C is Figure 2A The system 200A and Figure 2B An embodiment of system 200B described in .

[0081] As described above, each column 204a-204h of the memory array 202 is in electrical communication with a corresponding partial sum circuit 206 that is configured to calculate or determine the sum of the cell values ​​from each cell in the corresponding column. However, in this example, the computation cluster is larger than described above in Figure 2A and Figure 2B In the illustrated embodiment, data labeled k1[a1], ..., k1[a4], k1[n1], ..., k1[n3], k1[p1], ..., k1[p3], k1[x1], k1[x2], k1[e1], ..., k1[e4], k1[h1], ..., k1[h3], k1[q1], ..., k1[q3], k1[y1], and k1[y2] are used for computing clusters and are stored in cells in columns 204a to 204h.

[0082] However, in the illustrated example, multiplexer 208a is reconfigured to have eight data lines 216. In some embodiments, multiplexer 208a is reconfigured so that the additional data lines are provided by a circuit device that was previously used as another multiplexer. In other embodiments, a second multiplexer (e.g. Figure 2A or Figure 2B Multiplexer 208b in the first multiplexer is controlled or "slaved" by multiplexer 208a to utilize its data line. For example, multiplexer 208a can provide a clock signal to a second multiplexer after multiplexer 208a has cycled through its physical data line.

[0083] As described above, in some embodiments, a signal received from the first clock 212 via the first clock input 228 may initialize the multiplexer 208a to cycle through the data lines 216, but each individual data line cycle is triggered by a signal received from the second clock 214 via the second clock input 226. The signal from the second clock 214 is utilized so that the number of multiplexer data lines cycled is equal to the number of columns cycled for a single computing cluster.

[0084] For example, when the multiplexer 208a receives the clock signal CLK from the first clock 212 to initiate a computing cluster cycle, the multiplexer 208a waits for the clock cycle C from the second clock 214. 1 To loop to the corresponding partial sum PS 1 When receiving the clock signal C from the second clock 214 2 When multiplexer 208a cycles to the corresponding partial sum PS 2 , so that its partial sum value is obtained by the sensing circuit 210a and combined with its previously held value. Multiplexer 208a continues to cycle to the data line corresponding to the partial sum PS 3,PS 4 ,PS 5 ,PS 6 ,PS 7 and PS 8 The other data lines 216 are configured such that the partial sum value thereof is sensed by the sensing circuit 210a in response to the clock signal C from the second clock 214. 3 , C 4 , C 5 , C 6 , C 7 and C 8 And obtain and combine.

[0085] The sensing circuit 210a has combined the 1 To PS 8 After the value of , the resulting value is output as the corresponding computing cluster output, such as outputting it to the output buffer 232a. Once the maximum number of multiplexer cycles is reached within the computing cluster cycle (e.g., Figure 2C If there are eight (eight in the illustrated example), the multiplexer 208a waits for the next first clock signal from the first clock 212 to initiate the multiplexer 208a to cycle through the data line 216 again.

[0086] Similar to what is described above, the multiplexer 208a can use the clock signal from the first clock 212 to instruct the multiplexer 208a to cycle to the first data line 216 when the next clock signal is received from the second clock 214 to allow the clock signal received from the second clock 214 to be controlled for each multiplexer cycle, or the multiplexer 208a can use one clock signal from the first clock 212 and seven clock signals from the second clock 214 to access the data line 216 for the computing cluster, or the multiplexer 208a can use each individual clock signal received from the first clock 212 to cycle to the next data line. As described above, the multiplexer 208a can use one or more computing cluster cycle size input lines (not shown) to reconfigure the multiplexer 208a to the correct number of data lines for a given computing cluster cycle size. Similarly, the sense circuit 210a can also be triggered by the clock signal received from the first clock 212, the second clock 214, or a combination thereof to obtain the current output value of the multiplexer 208a.

[0087] It should be appreciated that other numbers of multiplexers 208a-208b, sense circuits 210a-210b, and partial sum circuits 206 may be utilized for other sizes of memory 202. Similarly, other numbers of physical data lines and different compute cluster cycle sizes may be utilized by the multiplexers 208a-208b. Moreover, the partial sum circuits 206 may obtain a mathematical sum of each cell value in a corresponding column 204 in the memory 202. However, in some embodiments, the partial sum circuits 206 may obtain other mathematical combinations of cell values, such as multiplications.

[0088] Figure 2D The system 200D in the embodiment includes a memory array 202 and a plurality of computational circuits, as illustrated by a partial sum circuit 206, one or more column multiplexers 208a-208b, and one or more sense circuits 210a-210b. In addition, the system 200D includes: a calibration control circuit device 140, which, in the depicted embodiment, generates and stores calibration information in a distributed manner to compensate for undesirable and / or unwanted effects on one or more sense circuits 210a-210b; and a cluster cycle management circuit device 160, which, in the depicted embodiment, determines the number of multiplexer cycles to be used for a computational cluster cycle (e.g., a computational cluster cycle size) based on the number of columns storing data for a given computational cluster.

[0089] With and through Figure 2A In a manner similar to that illustrated in the system 200A in FIG. 1 , the memory 202 includes a plurality of cells 230 configured in a column-row arrangement, wherein multiple rows of cells are intersected by multiple columns of cells, wherein each cell is addressable via a specific column and a specific row. As previously mentioned, the number of cells 230 illustrated in the memory array 202 is for illustrative purposes only.

[0090] In the illustrated embodiment, data values ​​are added to memory 202 such that all data for a single computing cluster is associated with the same sense circuits 210a to 210b. For example, data values ​​labeled K1[a1], K1[a2], ..., K1[n1], K1[n2], ..., K1[p1], K1[p2], ..., K1[x1], and K1[x2] are for a first computing cluster and are stored in cells 230 in columns 204a to 204d. Conversely, data labeled K2[a1], K2[a2], ..., K2[n1], K2[n2], ..., K2[p1], K2[p2], ..., K2[x1], and K2[x2] are for a second, separate computing cluster and are stored in cells 230 in columns 204e to 204h. In this manner, the results obtained by sensing circuit 210a are used for one computing cluster, while the results obtained by sensing circuit 210b are used for another computing cluster.

[0091] In addition to the data values ​​stored in columns 204a to 204d for the first computing cluster and columns 204e to 204h for the second computing cluster, respectively, and with Figure 2A 200A, rows 240 of memory 202 in system 200D store distributed calibration information associated with sense circuits 210a and 210b associated with the first and second computing clusters, respectively. Each of columns 204a-204d stores calibration information (which may be viewed as offset data in the depicted embodiment) generated by calibration control circuitry 140 based on output provided by sense circuit 210a, such as in response to test data patterns previously applied to memory cells 230 of those columns 204a-204d. Specifically, row 240 of column 204a stores offset data. 1 [c1] and O 1 [c2]; Row 240 of column 204b stores offset data O 2 [c1] and O 2 [c2]; Row 240 of column 204c stores offset data O 3 [c1] and O 3 [c2]; and row 240 of column 204d stores offset data O 4 [c1] and O 4 [c2] Similarly, each of columns 204e-204h stores offset data generated by calibration control circuitry 140 based on output provided by sensing circuitry 210b (such as in response to a test data pattern previously applied to memory cells 230 of columns 204e-204h). Specifically, row 240 of column 204e stores offset data. 5 [c1] and O 5[c2]; Row 240 of column 204f stores offset data O 6 [c1] and O 6 [c2]; Row 240 of column 204g stores offset data O 7 [c1] and O 7 [c2]; and row 240 of column 204h stores offset data O 8 [c1] and O 8 [c2].

[0092] In addition, as mentioned above with respect to Figure 2A As described with respect to system 200A of system 200D, each column 204a to 204h of memory array 202 of system 200D is in electrical communication with a corresponding partial sum circuit 206. Each partial sum circuit 206 includes circuitry configured to calculate or determine, in operation, a sum of cell values ​​from each cell 230 in the corresponding column. For example, the partial sum PS 1 is the sum of cells 230 in column 204a, the partial sum PS 2 is the sum of cells 230 in column 204b, and so on. In one embodiment, partial sum circuit 206 may be a sample-and-hold circuit.

[0093] In the depicted embodiment, the offset data O is distributed in a distributed manner. 1 [c1] to O 8 [c2] is stored on the corresponding columns of the memory 202, and the offset data stored in these columns is included in the partial summation PS calculated by the partial summation circuit 206 1 To PS 8 In this manner, after the generated calibration information (e.g., offset data) is stored, operations performed on data values ​​stored in corresponding columns of memory cells—such as calculating or determining the sum of cell values ​​from each cell 230 in the corresponding column—are performed by combining both the data values ​​and the offset data, thereby improving the accuracy of such operations by compensating for aging and other factors affecting the sensing circuits 210a and 210c. It should be understood that in a memory array that does not utilize an in-memory computing cluster, this calibration information may be stored in a variety of distributed manners without departing from the techniques described herein. As a non-limiting example, to this end, the calibration information may be stored in one or more regions of the memory array, such as by designating one or more rows or columns of the memory array, the one or more regions of the memory array corresponding to the memory cells coupled to the sensing circuit on which the calibration information is based. In such embodiments, a so-called "regional penalty" associated with the designation of such additional rows or columns may be incurred.

[0094] As described above with respect to system 200A, in the depicted embodiment, multiplexers 208a-208b include a plurality of data lines 216 and outputs 218a-218b. Each multiplexer 208a-208b includes four physical data lines 216, indicating four physical multiplexer cycles. 1 , C 2 , C 3 and C 4 Data line 216 is illustrated. As described above, these references refer to a particular clock cycle in which multiplexers 208a-208b select a particular data line to pass a value from a corresponding partial sum 206 to a corresponding output 218a-218b. Also as described above with respect to system 200A, multiplexers 208a-208b are configured to cycle through data line 216 based on a selected number of cycles in a complete compute cluster cycle (corresponding to a column associated with a particular compute cluster). In this example, the compute cluster size is four cycles.

[0095] In various embodiments, each multiplexer 208a-208b receives a control signal indicating when to initiate a cycle through the data lines 216 or when to cycle to each individual data line 216, or a combination thereof. In the illustrated embodiment, the control signal received by the multiplexers 208a-208b includes a first clock input 228 via the first clock 212 to initiate the multiplexers 208a-208b to cycle through the data lines 216, wherein each individual data line cycle is triggered by a signal received from the second clock 214 via the second clock input 226. In this manner, the clock signal from the first clock 212 operates as a cluster control signal to initiate a multiplexer cycle, and the clock signal from the second clock 214 operates as a multiplexer cycle control signal that initiates each individual cycle of the multiplexers.

[0096] Once the maximum number of multiplexer cycles is reached within a given compute cluster cycle (e.g. Figure 2D204e to 204h). And because the multiplexers 208a to 208b utilize the same clock signal (the first clock signal or a combination of the first and second clock signals) to cycle through their respective data lines 216, two results for the two computing clusters are obtained during a single computing cluster cycle.

[0097] As described elsewhere herein, although multiplexers 208a-208b utilize one clock signal from first clock 212 and four clock signals from second clock 214 to access their corresponding four data lines 216, various other embodiments may utilize various clock signal arrangements to initiate and complete the indicated amount of compute cluster cycles.

[0098] Relative to Figure 2A Reference elements of system 200A describe additional features and processes depicted via system 200D.

[0099] Although FIG. 2A to FIG. 2D The embodiment described in the embodiment is described as using the clock signals from the first clock 212 and the second clock 214 to read data from the memory 202, but the embodiment is not limited thereto. In some embodiments, data can also be written to the memory using similar clock signals, such as in combination with FIG. 3A to FIG. 3D and 4A to 4D shown and described.

[0100] and, FIG. 2A to FIG. 2DEmbodiments are illustrated in which a number of multiplexer cycles to be employed during a read operation are determined and utilized based on the number of columns storing data for a given computing cluster, wherein the number of multiplexer cycles may be less than, equal to, or greater than the number of physical data lines of the multiplexer. In some other embodiments, during a write operation, the multiplexer may cycle through a determined number of multiplexer cycles that is less than, equal to, or greater than the number of physical data lines of the multiplexer. For example, in some embodiments, the cluster cycle management circuit device 160 may compare the kernel batch size of a given computing cluster to one or more thresholds to determine the number of columns to store kernel data for the given computing cluster. In one such embodiment, each threshold may correspond to a particular number of multiplexer cycles—for example, if the batch size is less than a first threshold, then the number of multiplexer cycles is two; if the batch size is greater than the first threshold but less than a second threshold, then the number of multiplexer cycles is four; and if the batch size is greater than the second threshold, then the number of multiplexer cycles is eight. Other numbers of thresholds and corresponding numbers of multiplexer cycles may also be utilized, which may vary based on the neural network layer or processing performed.

[0101] Combination of the above FIG. 2A to FIG. 2D The described embodiments illustrate various embodiments for utilizing a configurable multiplexer in a high data processing neural network environment to read data from memory while also performing computations on the values ​​read from memory - such as obtaining partial sums for a given compute cluster and combining the partial sums.

[0102] In order to read such an amount of data from the memory, the incoming data needs to be written to the memory. As mentioned above, neural networks typically involve many similar calculations performed on a large amount of data. Moreover, neural networks are designed to learn specific features from a large amount of training data. Some of the training data will be useful, while the other will be useless. Therefore, as the system learns, the wrong data is eventually removed from the system. However, some situations may lead to wrong training or input data. For example, if consecutive images are read into the memory in the same way, the same pixel location is stored in the same memory location. However, if the pixel becomes "dead" (for example, due to a failed photosensor or related circuit device or a failed memory cell), the memory location will always have the same value. Therefore, it is possible that the system can learn "dead" pixels as part of the training process, or the system cannot correctly process consecutive input images.

[0103] FIG. 3A to FIG. 3DA use case background diagram of using a shift or line shift multiplexer 308 to continuously write multiple data to a memory array 302 according to an embodiment is illustrated. A shift multiplexer or line shift multiplexer refers to a multiplexer that includes a circuit device that, in operation, causes the multiplexer itself to change the address of each physical data line of the multiplexer, or to modify the selection of physical data lines for continuous data writing. In various embodiments, the multiplexer 308 includes a barrel shifter that modifies the internal address of each data line 316 for continuous data writing of multiple data. The multiplexer 308 can be a write-only or read-write multiplexer.

[0104] Figure 3A An example 300A for writing to a first computing cluster is illustrated. Incoming data is written to columns 304a, 304b, 304c, and 304d via data lines addressed as 00, 01, 10, and 11, respectively, in this order. The first data of the first computing cluster is stored in column 304a, the second data of the first computing cluster is stored in column 304b, the third data of the first computing cluster is stored in column 304c, and the fourth data of the first computing cluster is stored in column 304d. The data in the memory is then processed, such as described above in conjunction with FIG. 2A to FIG. 2C As described.

[0105] Figure 3B The diagram shows the Figure 3A 300B is an example of a second computing cluster being written after the first computing cluster is written. When data for the second computing cluster to write is received, the barrel shifter modifies the address of the data line so that the data lines addressed as 00, 01, 10, and 11 correspond to columns 304b, 304c, 304d, and 304a, respectively. The incoming data is written to columns 304b, 304c, 304d, and 304a in this order via the data lines addressed as 00, 01, 10, and 11, respectively. The first data of the second computing cluster is stored in column 304b, the second data of the second computing cluster is stored in column 304c, the third data of the second computing cluster is stored in column 304d, and the fourth data of the second computing cluster is stored in column 304a. The data in the memory is then processed, such as in conjunction with the above. FIG. 2A to FIG. 2C As described.

[0106] Figure 3C The diagram shows the Figure 3BExample 300C of a third computing cluster write after the second computing cluster write in . When data for the third computing cluster write is received, the barrel shifter again modifies the address of the data line so that the data lines addressed as 00, 01, 10 and 11 correspond to columns 304c, 304d, 304a and 304b, respectively. The incoming data is written to columns 304c, 304d, 304a and 304b in this order via the data lines addressed as 00, 01, 10 and 11, respectively. The first data of the third computing cluster is stored in column 304c, the second data of the third computing cluster is stored in column 304d, the third data of the third computing cluster is stored in column 304a, and the fourth data of the third computing cluster is stored in column 304b. The data in the memory is then processed, such as in combination with the above. FIG. 2A to FIG. 2C As described.

[0107] Figure 3D The diagram shows the Figure 3C Example 300D of a fourth computing cluster write after the third computing cluster write in . When data for the fourth computing cluster write is received, the barrel shifter again modifies the address of the data line so that the data lines addressed as 00, 01, 10 and 11 correspond to columns 304d, 304a, 304b and 304c, respectively. The incoming data is written to columns 304d, 304a, 304b and 304c in this order via the data lines addressed as 00, 01, 10 and 11, respectively. The first data of the fourth computing cluster is stored in column 304d, the second data of the fourth computing cluster is stored in column 304a, the third data of the fourth computing cluster is stored in column 304b, and the fourth data of the fourth computing cluster is stored in column 304c. The data in the memory is then processed, such as in conjunction with the above. FIG. 2A to FIG. 2C As described.

[0108] like Figure 3A As shown in FIG, when receiving data for writing to the fifth computing cluster, the barrel shifter again modifies the address of the data line so that the data lines addressed as 00, 01, 10, and 11 correspond to columns 304a, 304b, 304c, and 304d, respectively. FIG. 3A to FIG. 3D As illustrated in , the shifting of the data line addresses can continue in this manner for successive compute cluster writes. The shifting helps in semi-random storage of successive errors, which helps in removing such errors through a learning / inference process or helps in ignoring such errors when analyzing a target image.

[0109] As described above, a first clock signal may be utilized to initiate a multiplexer to cycle through its data lines to perform a read operation of a computing cluster cycle of a configurable number of data lines. FIG. 3A to FIG. 3D The use of such a clock signal is also illustrated, but for a data write operation.

[0110] In some embodiments, the signal received from the first clock 212 via the first clock input 228 initializes the multiplexer 308 to cycle through the data line 216, but each individual data line cycle is triggered by a signal received from the second clock 214 via the second clock input 226. In this way, each individual compute cluster cycle is triggered by the clock signal from the first clock 212.

[0111] For example, in Figure 3A In the example, when the multiplexer 308 receives the clock signal CLK from the first clock 212 to initiate a computing cluster write cycle, the multiplexer 308 responds to the C from the second clock 214. 1 The clock signal C is then looped to the data line 216 with address 00 so that data can be written to column 304a. 2 Multiplexer 308 is cycled to data line 316 with address 01 so that data can be written to column 304b. Multiplexer 308 continues to operate in a similar manner for clock signal C 3 and C 4 Data is written to columns 304c and 304d, respectively.

[0112] Figure 3B is similar, but when the multiplexer 308 receives the clock signal CLK from the first clock 212 to initiate a compute cluster write cycle and then receives C from the second clock 214 1 When multiplexer 308 cycles to data line 316 with address 00, data can be written to column 304b (not Figure 3A 304a in FIG. 304b). The clock signal C received from the second clock 214 2 , C 3 and C 4 Multiplexer 308 is cycled to data lines 316 with addresses 01, 10, and 11, respectively, so that data can be written to columns 304c, 304d, and 304a, respectively.

[0113] Likewise, in Figure 3C In the example, the computing cluster write cycle is initiated when the multiplexer 308 receives the clock signal CLK from the first clock 212. When the multiplexer 308 receives the clock signal CLK from the second clock 214, the computing cluster write cycle is initiated. 1 When multiplexer 308 cycles to data line 316 with address 00, data can be written to column 304c (not Figure 3B 304b in FIG. 304b). The clock signal C received from the second clock 214 2 , C 3 and C 4Multiplexer 308 is cycled to data lines 316 with addresses 01, 10, and 11, respectively, so that data can be written to columns 304d, 304a, and 304b, respectively.

[0114] Moreover, in Figure 3D In the embodiment, when the multiplexer 308 receives the clock signal CLK from the first clock 212, the multiplexer 208 initiates a computing cluster write cycle, and in response to receiving the clock signal C from the second clock 214, the multiplexer 208 initiates a computing cluster write cycle. 1 The loop is to the data line 316 with address 00, so that data can be written to column 304d (not as Figure 3C 304c in column 304c). The clock signal C received from the second clock 214 2 , C 3 and C 4 Multiplexer 308 is cycled to data lines 316 with addresses 01, 10, and 11, respectively, so that data can be written to columns 304a, 304b, and 304c, respectively.

[0115] As illustrated, the multiplexer 308 uses one clock signal from the first clock 212 and four clock signals from the second clock 214 to write to the four data lines 216. However, the embodiments are not limited thereto. Instead, in other embodiments, receiving a clock signal from the first clock 212 may instruct the multiplexer 308 to cycle to the first data line 316 at address 00. In this manner, for a given computing cluster cycle write operation, using the first clock 212 to cycle to the first data line and using the second clock 214 to cycle through the data lines corresponding to each other, in the illustrated example, the multiplexer 308 will use three clock signals from the second clock 214 to write data to the columns 304a to 304d.

[0116] In other embodiments, each signal received from the first clock 212 via the first clock input 228 triggers a separate data line cycle. For example, when the multiplexer 308 receives the first clock signal from the first clock 212, the multiplexer 308 cycles to data line address 00. However, when the multiplexer 308 receives the second clock signal from the first clock 212, the multiplexer 308 cycles to data line address 01. The multiplexer 308 continues to operate in a similar manner for additional clock signals received from the first clock 212. Once the maximum number of multiplexer cycles is reached for the compute cluster cycle (e.g., at FIG. 3A to FIG. 3D If there are four in the illustrated example in FIG, then the multiplexer 308 cycles back to data line address 00 on the next clock signal. In this embodiment, the second clock 214 is optional and is not utilized.

[0117] although FIG. 3A to FIG. 3DThe multiplexer with a built-in barrel shifter is illustrated to change the address of the data line, but the embodiment is not limited thereto. Instead, in some embodiments, other shifting circuit devices (such as circuit devices outside the multiplexer) can be used as pre-decoding of the multiplexer to shift and select the data line for the multiplexer without changing the internal data line address of the multiplexer.

[0118] 4A to 4D A use case background diagram of using pre-decoded shifting to continuously write multiple data to a memory array is illustrated. The system includes a multiplexer 408, a memory array 402, and a data line selection circuit device 406. The multiplexer 408 can be a write-only or read-write multiplexer. Different from FIG. 3A to FIG. 3D , each data line 416 corresponds to an unchanged address while the address of the data line is changed. Thus, data line address 00 corresponds to column 404a in memory 402, data line address 01 corresponds to column 404b in memory 402, data line address 10 corresponds to column 404c in memory 402, and data line address 11 corresponds to column 404d in memory 402.

[0119] Figure 4A An example 400A for writing to a first computing cluster is illustrated. Data line selection circuitry 406 selects the order in which data lines 416 of multiplexer 408 are cycled to write data. In this example, data line selection circuitry 406 selects the data line addresses as 00, 01, 10, and 11 in this order and outputs the data line addresses to multiplexer 408 via address selection line 418. First data for the first computing cluster is stored in column 404a, second data for the first computing cluster is stored in column 404b, third data for the first computing cluster is stored in column 404c, and fourth data for the first computing cluster is stored in column 404d. The data in the memory is then processed, such as described above in conjunction with FIG. 2A to FIG. 2C As described.

[0120] Figure 4B The diagram shows the Figure 4A400B. When data for the second computing cluster to write is received, the data line selection circuit device 406 modifies the order in which the data lines 416 of the multiplexer 408 are cycled to write the data. In this example, the data line selection circuit device 406 selects the data line addresses as 01, 10, 11, and 00 in this order, and outputs the data line addresses to the multiplexer 408 via the address selection line 418. The first data of the second computing cluster is stored in the column 404b, the second data of the second computing cluster is stored in the column 404c, the third data of the second computing cluster is stored in the column 404d, and the fourth data of the second computing cluster is stored in the column 404a. The data in the memory is then processed, such as in conjunction with the above. FIG. 2A to FIG. 2C As described.

[0121] Figure 4C The diagram shows the Figure 4B 400C of an example of a third computing cluster write after a second computing cluster write. When data for the second computing cluster write is received, the data line selection circuit device 406 modifies the order in which the data lines 416 of the multiplexer 408 are cycled to write the data. In this example, the data line selection circuit device 406 selects the data line addresses as 10, 11, 00, and 01 in this order, and outputs the data line addresses to the multiplexer 408 via the address selection line 418. The first data of the third computing cluster is stored in column 404c, the second data of the third computing cluster is stored in column 404d, the third data of the third computing cluster is stored in column 404a, and the fourth data of the third computing cluster is stored in column 404b. The data in the memory is then processed, such as in conjunction with the above. FIG. 2A to FIG. 2C As described.

[0122] Figure 4D The diagram shows the Figure 4C 400D of an example of a fourth computing cluster write after a third computing cluster write in FIG. When data for a second computing cluster write is received, the data line selection circuit device 406 modifies the order in which the data lines 416 of the multiplexer 408 are cycled to write the data. In this example, the data line selection circuit device 406 selects the data line addresses as 11, 00, 01, and 10 in this order, and outputs the data line addresses to the multiplexer 408 via the address selection line 418. The first data of the fourth computing cluster is stored in column 404d, the second data of the fourth computing cluster is stored in column 404a, the third data of the fourth computing cluster is stored in column 404b, and the fourth data of the fourth computing cluster is stored in column 404c. The data in the memory is then processed, such as in conjunction with the above. FIG. 2A to FIG. 2C As described.

[0123] like Figure 4A As shown in FIG. 4 , when receiving data for writing to the fifth computing cluster, the data line selection circuit device 406 modifies the order of the data line 416 to become the data line address to 00, 01, 10 and 11 in this order. 4A to 4D As illustrated in , the shifting of the data line address can continue in this manner for consecutive compute cluster writes. FIG. 3A to FIG. 3D As discussed in , the shifting allows for semi-random storage of consecutive errors, which allows the errors to be removed through a learning / inference process or ignored when analyzing the target image.

[0124] As mentioned above FIG. 3A to FIG. 3D As described in , a first clock signal may be used to initiate a multiplexer to cycle through its data lines for a compute cluster cycle and a second clock for each individual cycle for a write operation. 4A to 4D The described embodiment can also utilize the first clock and the second clock in a similar manner. 4A to 4D In the illustrated example of FIG, the data line selection circuit device 406 receives clock signals from the first clock 212 and the second clock 214 rather than the multiplexer 408 itself. Instead, changes to the address selection line 418 are triggered by the clock signal and trigger the multiplexer to select the appropriate data line 416. Similar to FIG. 3A to FIG. 3D In other embodiments, multiplexer 408 may include an input (not shown) to receive the first clock signal and the second clock signal.

[0125] The data line selection circuitry 406 receives a signal from the first clock 212 to initialize the selection of the data line address, but each individual data line address cycle is triggered by a signal received from the second clock 214. In this way, each individual computing cluster cycle is triggered by the clock signal from the first clock 212.

[0126] Similar to what is described above, in some embodiments, the data line selection circuit device 406 selects four data line addresses for multiplexer 408 to write to four different columns 404a to 404d using one clock signal from the first clock 212 and four clock signals from the second clock 214. In other embodiments, receiving a clock signal from the first clock 212 can instruct the data line selection circuit device 406 to cycle to the first data line address and cycle through each of the remaining corresponding data line addresses for a given computing cluster cycle write operation using the second clock 214. In this illustrated example, the data line selection circuit device 406 will select four data line addresses using one clock signal from the first clock 212 and three clock signals from the second clock 214 for the multiplexer to write data to the columns 404a to 404d. In still other embodiments, each signal received from the first clock 212 via the first clock input 228 triggers a separate data line address selection.

[0127] In various embodiments, the above are respectively combined with FIG. 3A to FIG. 3D and 4A to 4D The described input sequence of the barrel shifter and data line selection circuit arrangement may also change the sequence of address / data line selection to a different sequence. Moreover, in some embodiments, not all address inputs / data line addresses may be shifted. For example, for large multiplexer ratios, only a subset of address inputs / data line addresses may be shifted to the dither data stored in the memory under consideration.

[0128] Now it will be relative to Figures 5 to 8 Describes the operation of certain aspects of the present disclosure. As described herein, in at least one embodiment of various embodiments, respectively, in combination with Figures 5 to 8 The described processes 500, 600, 700, and 800 may be implemented by one or more components or circuits associated with an in-memory computing element.

[0129] Figure 5 The diagram generally shows a method for using FIG. 2A to FIG. 2C , a logic flow diagram of one embodiment of a process 500 for reading data from a memory array using the configurable multiplexer and sensing circuits illustrated in FIG. After a start block, the process 500 begins in block 502 where clustered data is stored in a column-row memory array. Figure 6 and Figure 7 Various embodiments that facilitate storing data in memory are described in further detail.

[0130] Process 500 continues to block 504 where a partial sum is calculated for each column in memory.

[0131] Process 500 continues to block 506 where a number of columns are selected for the compute cluster. In various embodiments, this is the number of columns that store data for a single compute cluster, which may be referred to as the compute cluster round robin size.

[0132] Process 500 continues to decision block 508 where it is determined whether the selected number of columns for the compute cluster is greater than the number of column multiplexer cycles. In at least one embodiment, this determination is based on a comparison between the selected number of columns and the number of physical data lines on the multiplexer. If the selected number of columns for the compute cluster is greater than the number of multiplexer cycles, process 500 proceeds to block 510; otherwise, process 500 proceeds to block 512.

[0133] In block 510, the multiplexer is enlarged. In some embodiments, the number of data lines supported by the multiplexer is reconfigured to accommodate the selected number of columns for the computing cluster. In at least one embodiment, the enlargement of the multiplexer can include utilizing a second multiplexer as an enlarged portion of the multiplexer. This can be done, for example, by reconfiguring the first multiplexer to utilize the circuitry of the second multiplexer to provide additional data lines, or by configuring the first multiplexer to control, for example, the number of columns of the selected columns relative to the computing cluster. Figure 2C The multiplexer in question is complete. Process 500 continues to block 512.

[0134] If in decision block 508, the selected number of columns is equal to or less than the number of multiplexer cycles, or after block 510, process 500 proceeds to block 512. In block 512, the multiplexer and sensing circuits are initiated to cycle through the partial sums for each column in the memory associated with the computing cluster. As described above, the first clock signal can initiate the multiplexer to cycle through the partial sums for the computing cluster.

[0135] Process 500 continues to block 514 where the current partial sum for the current multiplexer cycle is obtained and combined with the computed cluster value.

[0136] The process 500 continues to decision block 516 where it is determined whether the number of partial sums obtained is equal to the selected number of columns for the compute cluster. In various embodiments, this determination is made based on a comparison between the selected number of multiplexer cycles (the number of partial sums obtained) and the selected number of columns (the compute cluster cycle size). If the number of partial sums obtained is equal to the selected number of columns, then the process 500 proceeds to block 520; otherwise, the process 500 proceeds to block 518.

[0137] In block 518, the multiplexer loop is incremented to obtain the next partial sum for the compute cluster. After block 518, process 500 loops to block 514 to obtain the next partial sum for the incremented multiplexer loop.

[0138] If, in decision block 516, the number of partial sums obtained is equal to the selected number of columns for the computational cluster, then process 500 proceeds from decision block 516 to block 520. In block 520, the combined computational cluster value is output to a buffer that can be accessed by another component of the system for further processing, such as input to the next layer of neural network processing.

[0139] The process 500 continues to decision block 522 where it is determined whether the maximum number of multiplexer cycles has been reached. In various embodiments, the maximum number of multiplexer cycles is the physical number of data lines associated with the multiplexer. If the maximum number of multiplexer cycles has been reached, the process 500 proceeds to decision block 524; otherwise, the process 500 loops to block 512 to initiate the multiplexer and sense circuitry to loop through the next set of partial sums for the next compute cluster for the selected number of columns.

[0140] In decision block 524, it is determined whether additional data is to be stored in memory, such as for the next set of computing clusters. If additional data is to be stored in memory, process 500 loops to block 502; otherwise, process 500 terminates or otherwise returns to the calling process to perform other actions.

[0141] Figure 6 A logic flow diagram generally illustrates one embodiment of a process 600 for employing a multiplexer that modifies a data line address to sequentially write multiple data lines such as FIG. 3A to FIG. 3D The memory array shown in FIG.

[0142] After a start block, process 600 begins in block 602 where a command is received to store data in a column-row memory array for cluster computing operations. The command may be a write command or may be data on a particular input data line.

[0143] Process 600 continues to block 604 where each multiplexer data line is associated with a corresponding column in the memory. In various embodiments, the association between a column in the memory and a particular data line in the multiplexer includes selecting a multiplexer address and assigning the multiplexer address to the particular data line. In one example embodiment, address 00 is assigned to a first data line of the multiplexer, address 01 is assigned to a second data line of the multiplexer, address 10 is assigned to a third data line of the multiplexer, and address 11 is assigned to a fourth data line of the multiplexer.

[0144] Process 600 continues to block 606 where next data for the cluster computing operation is received. In various embodiments, the next data is incoming data to be stored in a memory of a particular computing cluster.

[0145] Next, process 600 proceeds to block 608, where the next data for cluster calculation is stored in a column associated with the multiplexer data line for the current multiplexer cycle. In various embodiments, the current multiplexer cycle is the current address of the data line of the multiplexer. For example, when the first data is received, the current multiplexer cycle is the first cycle, and address 00 may be used; when the second data is received, the current multiplexer cycle is the second cycle, and address 01 may be used; and so on.

[0146] Next, process 600 continues to decision block 610 where it is determined whether the maximum data line cycle of the multiplexer has been reached. In some embodiments, the maximum data line cycle is the number of physical data lines of the multiplexer. In other embodiments, the maximum data line cycle may be a selected number of data lines or columns for a particular computing cluster. If the last data line cycle or the maximum data line cycle of the multiplexer has been reached, process 600 proceeds to block 612; otherwise, process 600 proceeds to block 616.

[0147] In block 616, the multiplexer cycles to the next data line. In at least one embodiment, the multiplexer increments its current multiplexer cycle data line address to the next address. For example, if data was stored via address 00 in block 608, the next multiplexer data line address may be 01. Process 600 then cycles to block 606 to receive the next data to be stored in memory for cluster computing operations.

[0148] If the maximum multiplexer data line cycle has been reached in decision block 610, then process 600 proceeds from decision block 610 to block 612. In block 612, cluster computing operations are performed. In some embodiments, a read command may be received, which is transmitted via a multiplexer and a sensing circuit (such as described herein, including FIG. 2A to FIG. 2C and Figure 5 Process 500 in ) initiates a read of a memory column.

[0149] Next, process 600 proceeds to decision block 614, where it is determined whether a command has been received to store data for a continuous cluster computing operation. If a continuous cluster computing operation is to be performed, process 600 proceeds to block 618; otherwise, process 600 terminates or otherwise returns to the calling process to perform other actions.

[0150] In block 618, the association between each multiplexer data line and a column in the memory is modified. In at least one non-limiting embodiment, the multiplexer includes a barrel shifter that modifies the data line / column association between storing data for successive cluster computing operations. For example, FIG. 3A to FIG. 3D As illustrated in , the barrel shifter modifies the addresses of the data lines. If the previous association indicated that the address 00 was assigned to the first data line of the multiplexer, the address 01 was assigned to the second data line of the multiplexer, the address 10 was assigned to the third data line of the multiplexer, and the address 11 was assigned to the fourth data line of the multiplexer; then the modified association can be: the address 01 is assigned to the first data line of the multiplexer, the address 10 is assigned to the second data line of the multiplexer, the address 11 is assigned to the third data line of the multiplexer, and the address 00 is assigned to the fourth data line of the multiplexer.

[0151] After block 618, process 600 loops to block 606 to receive data for the next cluster computer operation.

[0152] Figure 7 The diagram generally shows a method for using pre-decoding shifting to continuously write multiple data into a 4A to 4D 7. A logic flow diagram of one embodiment of a process 700 for a memory array illustrated in FIG.

[0153] After the start block, process 700 begins in block 702, where a command is received to store data in a column-row memory array for cluster computing operations. In various embodiments, block 702 may be implemented in conjunction with the above. Figure 6 The embodiment described in block 602 in FIG.

[0154] Process 700 continues to block 704 where each multiplexer data line is associated with a corresponding column in the memory. In various embodiments, block 704 may be implemented in conjunction with the above. Figure 6 The embodiment described in block 604 in FIG.

[0155] Process 700 continues to block 706 where an order is determined for writing data to the multiplexer data lines for cluster computing operations. In some embodiments, the initial order of the multiplexer data lines may be preselected or predetermined. In other embodiments, the initial data line order may be random.

[0156] In at least one embodiment, the multiplexer data line sequence is the sequence in which the data line addresses are provided to the multiplexer for data writing. For example, the selection circuit device may determine that the initial sequence of the data line addresses is 00, 01, 10, 11. However, other sequences may also be utilized. Similarly, other numbers of addresses may also be utilized depending on the size of the multiplexer.

[0157] Next, process 700 proceeds to block 708 where an initial multiplexer data line is selected based on the determined data line sequence. In at least one embodiment, the selection of the initial multiplexer data line is the first data line address in the determined data line sequence and the first data line address is output to the multiplexer.

[0158] Process 700 continues to block 710 where the next data for the cluster computing operation is received. In various embodiments, block 710 may be implemented in combination with the above. Figure 6 The embodiment described in block 606 in FIG.

[0159] Next, process 700 proceeds to block 712 where the next data of the cluster calculation is stored in the column associated with the selected multiplexer data line. In at least one embodiment, the received data is stored in the corresponding column in the memory using the data line associated with the data line address of the selected data line.

[0160] Next, process 700 continues to decision block 714 where it is determined whether the maximum data line cycle of the multiplexer has been reached. In various embodiments, decision block 714 may be implemented using Figure 6 If the last data line cycle or the maximum data line cycle of the multiplexer has been reached, then the process 700 proceeds to block 716; otherwise, the process 700 proceeds to block 720.

[0161] In block 720, the multiplexer is instructed to cycle to the next data line based on the determined data line sequence. In at least one embodiment, the selection circuit device increments the data line address in the determined data line sequence. For example, if the previous data line address is 00 and the data line sequence is address 00, 01, 10, 11, then the next data line address is 01. Then, the process 700 loops to block 710 to receive the next data to be stored in the memory for cluster computing operations.

[0162] If the maximum multiplexer data line cycle has been reached in decision block 714, then process 700 proceeds from decision block 714 to block 716. In block 716, cluster computing operations are performed. In various embodiments, block 716 may be implemented in combination with the above. Figure 6 The embodiment described in block 612 of FIG.

[0163] Next, process 700 proceeds to decision block 718, where it is determined whether a command has been received to store data for continued cluster computing operations. In various embodiments, decision block 718 may be implemented in conjunction with the above. Figure 6If a continuous cluster computing operation is to be performed, then process 700 proceeds to block 722; otherwise, process 700 terminates or otherwise returns to the calling process to perform other actions.

[0164] In block 722, a new multiplexer data line sequence is determined. The new multiplexer data line sequence may be random, or the new multiplexer data line sequence may increment the previous address. For example, if the previous sequence was addresses 00, 01, 10, 11, then the new sequence may be addresses 01, 10, 11, 00. In at least one non-limiting embodiment, the data line selection circuitry includes circuitry (e.g., a barrel shifter) that selects the data line sequence to store data for successive cluster computing operations. For example, 4A to 4D As shown in , the data line selection circuitry selects different sequences to instruct the multiplexer to cycle through its data lines for successive cluster computing operations.

[0165] After block 722, process 700 loops to block 708 to receive data for the next cluster computer operation.

[0166] Figure 8 A logic flow diagram generally illustrates one embodiment of a process for initiating multiplexer reads and writes to a memory array using a first clock (e.g., an external system clock) and initiating each cycle of the multiplexer reads and writes using a second clock (e.g., an internal memory clock) is illustrated.

[0167] After the start block, process 800 begins in block 802, storing, receiving a command for a cluster computing operation on data in a column-row memory. In some embodiments, the command may be a read command, such as to read data from the memory (e.g., as described above in conjunction with FIG. 2A to FIG. 2C In other embodiments, the command may be a write command, for example, to write data to a memory (for example, as described above in conjunction with FIG. 3A to FIG. 3D and 4A to 4D described).

[0168] Process 800 continues to block 804 where a column multiplexer is initiated using a first clock signal to facilitate a read or write operation to the memory. In various embodiments, the first clock is separate from the memory itself. In at least one embodiment, the first clock may be separate from the memory cell or chip and may be an overall system clock.

[0169] Process 800 continues to block 806 where the second clock is triggered to step through the multiplexer cycle. In at least one embodiment, the first clock signal can trigger the first multiplexer cycle. In other embodiments, the first multiplexer cycle is triggered with the first second clock signal after the first clock signal.

[0170] Next, process 800 proceeds to block 808 where data is read from or written to memory at the column corresponding to the current multiplexer cycle. In various embodiments, block 808 may be implemented in accordance with the operation and utilization of the multiplexer and memory. Figure 5 In the frame 514, Figure 6 Box 608 or Figure 7 An embodiment of box 712 in .

[0171] Next, process 800 continues to decision block 810, where it is determined whether the maximum number of multiplexer cycles has been reached. In various embodiments, decision block 810 may be implemented using Figure 5 Decision box 522 in Figure 6 Decision box 610 in or Figure 7 If the maximum multiplexer cycle is reached, then the process 800 proceeds to block 812, otherwise, the process 800 proceeds to block 816.

[0172] In block 816, the multiplexer is incremented to the next multiplexer cycle at the next second clock signal. In various embodiments, the current memory cycle address is incremented in response to receiving the next second clock signal. After block 816, process 800 loops to block 808 to read or write data to the next column in the memory associated with the next multiplexer cycle.

[0173] If the maximum multiplexer cycle is reached in decision block 810, process 800 proceeds from decision block 810 to block 812. In block 812, the memory is placed in a low power mode or a memory retention mode. In some embodiments, the memory can transition through other states between an operating mode and a memory retention mode, or between a low power mode and a retention mode. Such other states may include, but are not limited to, an idle state, a wait state, a light sleep state, etc. In other embodiments, block 812 may be optional, and after the maximum multiplexer cycle is reached in decision block 810, the memory may not be moved into a retention or low power mode.

[0174] Fig. 9 Illustrated is a logic flow diagram generally illustrating one embodiment of a process 900 for memory array calibration in accordance with the techniques described herein.

[0175] After a start block, process 900 begins in block 905 where a test data pattern is applied to a memory array (such as FIG. 2A to FIG. 2D The memory array 202, FIG. 3A to FIG. 3D The memory array 303 or 4A to 4D As mentioned elsewhere herein, in some embodiments, the test data pattern may be a defined pattern (e.g., a predefined pattern) obtained from one or more additional memory areas. In other embodiments, the test data pattern may be a calibration control circuit device (such as Figure 1 and Figure 2D The calibration control circuit device 140 generates.

[0176] Process 900 continues to block 910 where one or more outputs of a sensing circuit coupled to the memory array are provided in response to the applied test data pattern and then analyzed, such as relative to one or more expected values ​​for such outputs. Processing continues to block 915.

[0177] In block 915, calibration information is generated based on the analyzed sensing circuit output (such as by calibration control circuitry). For example, this calibration information may include offset data to compensate for any determined undesirable or unwanted discharge of the sensing circuit.

[0178] The process continues to block 920 where the generated calibration information is stored in cells of a memory array in a distributed manner. As described elsewhere herein, the distributed storage of the generated calibration information may be performed in various ways. As one example, the generated calibration information may be stored in portions of a computing cluster in memory in a manner such that operations performed on data values ​​in such computing clusters are also performed on the distributed calibration information.

[0179] Process 900 continues to block 925 where a request is received to perform one or more operations on selected data values ​​stored in one or more selected cells of a memory array. For example, the request may include a clock input signal that directs a partial summation circuit such as FIG. 2A to FIG. 2D The partial sum circuit 206) combines the values ​​stored in one or more columns of the memory array, and the one or more columns of the memory array form a single in-memory computing cluster.

[0180] In box 930, the requested operation is performed, such as by combining the selected data values ​​with corresponding stored calibration information (e.g., by calculating the sum of those selected data values ​​and the stored calibration information corresponding to the cells of the memory array in which those stored data values ​​are stored).

[0181] After performing the requested operation in block 930, process 900 proceeds to block 940 where it is determined whether another memory array calibration is to be initiated. For example, and as noted elsewhere herein, memory array calibration may be performed at initial system power up, intermittently, in response to an explicit request, upon memory reconfiguration or other event. If a memory array calibration is to be initiated, process 900 returns to block 905 to begin such calibration; otherwise, the process proceeds to block 995.

[0182] In block 995, determine whether process 900 is to continue, such as in the absence of a termination request. If the process is to continue, it returns to block 925, so as to wait for a new request for one or more operations to be performed on the selected data value; otherwise, the process returns to block 999 and ends.

[0183] Embodiments of the foregoing process and method may include Figures 5 to 9 Additional actions not shown in the Figures 5 to 8 All actions shown in the Figures 5 to 9 The actions shown in , actions can be combined, and can be modified in various ways. For example, Figure 8 Process 800 in may omit act 812, combine acts 804 and 806, etc. when writing successive computational clusters to memory and reading successive computational clusters from memory for successive neural network layer processing.

[0184] Some embodiments may take the form of or include a computer program product. For example, according to one embodiment, a computer readable medium is provided, which includes a computer program suitable for performing one or more of the methods or functions described above. The medium may be a physical storage medium (such as, for example, a read-only memory (ROM) chip) or a disk, such as a digital versatile disk (DVD-ROM), a compact disk (CD-ROM), a hard disk, a memory, a network, or a portable medium item read by a suitable drive or via a suitable connection, including one or more bar codes or other related codes encoded as stored on one or more such computer readable media and readable by a suitable reader device.

[0185] In addition, in some embodiments, some or all of the methods and / or functionality may be implemented or provided in other ways, such as at least in part using firmware and / or hardware (including but not limited to one or more application specific integrated circuits (ASICs), digital signal processors, discrete circuit devices, logic gates, standard integrated circuits, controllers (for example, by executing suitable instructions and including microcontrollers and / or embedded controllers), field programmable gate arrays (FPGAs), complex programmable logic devices (CPLDs), etc., as well as devices using RFID technology and various combinations thereof).

[0186] Further or alternatively, the embodiments may be generally summarized as described below.

[0187] A memory calibration system can be summarized as including: a memory array including a plurality of memory cells; a first sensing circuit coupled to the memory array; and calibration circuitry that, in operation, applies a test data pattern to the memory array, generates calibration information based on an output provided by the first sensing circuit in response to applying the test data pattern to the memory array; and stores the generated calibration information in a distributed manner in at least some of the plurality of memory cells. In operation and after storing the generated calibration information in a distributed manner, the first sensing circuit can be configured to combine at least a portion of the generated calibration information with one or more data values ​​stored in the plurality of memory cells as part of one or more operations performed on the one or more stored data values.

[0188] The one or more stored data values ​​may include a plurality of data values ​​stored in an in-memory computing cluster of a memory array. The one or more operations performed on the one or more stored data values ​​may include combining the plurality of data values ​​of the in-memory computing cluster with at least a portion of the generated calibration information as at least part of an in-memory computing operation for the in-memory computing cluster. The generated calibration information may include offset data for the in-memory computing cluster, and storing the generated calibration information in a distributed manner may include storing the offset data for the in-memory computing cluster in one or more memory cells of the in-memory computing cluster. Combining at least a portion of the generated calibration information with the one or more stored data values ​​may include calculating a sum of the one or more stored data values ​​by calculating a sum of the offset data and the one or more stored data values.

[0189] A plurality of memory cells may be arranged as a plurality of rows of memory cells intersecting a plurality of columns of memory cells, such that in operation, the memory array may include one or more in-memory computation clusters, each of which includes one or more columns of memory cells in the plurality of columns of memory cells. The memory calibration system may include: a plurality of first computation circuits, wherein each first computation cell in operation computes a computation value based on a cell value in a corresponding column of memory cells in the plurality of memory cells; a first column multiplexer in operation cycling through a plurality of data lines each corresponding to a first computation circuit in the plurality of first computation circuits; and a second sensing circuit in operation obtaining computation values ​​from the plurality of first computation circuits via the first column multiplexer and combining the obtained computation values ​​through a determined number of multiplexer cycles. The memory calibration system may include a cluster cycle management circuit device, which in operation determines a determined number of multiplexer cycles based on a number of columns storing data of the in-memory computation cluster.

[0190] A method for memory array calibration can be summarized as: applying a test data pattern to a memory array, the memory array comprising a plurality of memory cells; generating calibration information based on applying the test data pattern, such that generating the calibration information can include: analyzing an output provided by a sensing circuit coupled to the plurality of memory cells in response to applying the test data pattern; storing the generated calibration information in a distributed manner in at least some of the plurality of memory cells; and after storing the generated calibration information in a distributed manner, and as part of one or more operations performed on one or more data values ​​stored in the plurality of memory cells, combining at least a portion of the generated calibration information with one or more stored data values.

[0191] The one or more stored data values ​​may include a plurality of data values ​​stored in an in-memory computing cluster of the memory array. The one or more operations performed on the one or more stored data values ​​may include combining the plurality of data values ​​of the in-memory computing cluster with at least a portion of the generated calibration information as at least part of an in-memory computing operation for the in-memory computing cluster. The generated calibration information may include offset data for the in-memory computing cluster, such that storing the generated calibration information in a distributed manner may include storing the offset data for the in-memory computing cluster in one or more memory cells of the in-memory computing cluster. Combining at least a portion of the generated calibration information with the one or more stored data values ​​may include calculating a sum of the one or more stored data values ​​by calculating a sum of the offset data and the one or more stored data values.

[0192] Multiple memory cells can be arranged as multiple rows of memory cells intersecting multiple columns of memory cells, so that in operation, the memory array can include one or more in-memory computing clusters, each of which includes one or more columns of memory cells in the multiple columns of memory cells.

[0193] A computing device can be summarized as including: means for applying a test data pattern to a memory array, such that the memory array may include multiple memory cells; means for generating calibration information based on output provided in response to applying the test data pattern; means for storing the generated calibration information in at least some of the multiple memory cells in a distributed manner; and means for combining a portion of the generated calibration information with one or more stored data values ​​after storing the generated calibration information in a distributed manner and as part of one or more operations performed on one or more data values ​​stored in the multiple memory cells.

[0194] The computing device may include means for configuring a plurality of memory cells of a plurality of memory cells to operate as an in-memory computing cluster of a memory array. The computing device may include means for combining a portion of the generated calibration information with a plurality of data values ​​stored in a plurality of memory cells of the in-memory computing cluster as at least part of an in-memory computing operation for the in-memory computing cluster. The generated calibration information may include offset data for the in-memory computing cluster, such that the means for storing the generated calibration information in a distributed manner includes means for storing the offset data for the in-memory computing cluster in one or more memory cells of the in-memory computing cluster.

[0195] Multiple memory cells can be arranged as multiple rows of memory cells intersecting multiple columns of memory cells, so that in operation, the memory array can include one or more in-memory computing clusters, which respectively include one or more columns of memory cells in the multiple columns of memory cells.

[0196] A non-transitory computer-readable medium can be summarized as having content that causes a memory calibration circuit device to perform actions including: applying a test data pattern to a memory array having a plurality of memory cells; generating calibration information based on applying the test data pattern, such that generating the calibration information can include: analyzing output provided by a sensing circuit coupled to the plurality of memory cells in response to applying the test data pattern; storing the generated calibration information in a distributed manner in at least some of the plurality of memory cells; and, after storing the generated calibration information in a distributed manner and as part of one or more operations performed on one or more data values ​​stored in the plurality of memory cells, combining at least a portion of the generated calibration information with one or more stored data values.

[0197] A system can be summarized as including: a memory array having a plurality of cells arranged as a plurality of rows of cells intersecting a plurality of columns of cells; a column multiplexer having a plurality of data lines, wherein each respective data line corresponds to a respective column of a plurality of columns, and the column multiplexer having a plurality of select lines indicating which of the plurality of data lines are selected within a given cycle, wherein the column multiplexer in operation cycles through the plurality of data lines to write data to the plurality of cells based on data line addresses received via the plurality of select lines; and a data line selection circuit device, which in operation: selects a first cycle order for a first write operation to write a first plurality of data to the plurality of cells, and selects a second cycle order for a second write operation to write a second plurality of data to the plurality of cells, wherein the first cycle order and the second cycle order indicate an order in which the plurality of data lines are selected on each cycle, and wherein the first cycle order is different from the second cycle order.

[0198] The column multiplexer may include a data line selection circuit device to select the plurality of data lines in a first cyclic order during a first write operation, and to select the plurality of data lines in a second cyclic order during a second write operation. The data line selection circuit device may include a plurality of output lines corresponding to the plurality of selection lines of the column multiplexer, and the data line selection circuit device, in operation, outputs data line addresses of the plurality of data lines via the plurality of output lines according to the first selected cyclic order to write the first plurality of data into the plurality of cells during the first write operation, and outputs the data line addresses of the plurality of data lines via the plurality of output lines according to the second selected cyclic order to write the second plurality of data into the plurality of cells during the second write operation.

[0199] The system may include cluster cycle management circuitry that generates a plurality of control signals in response to a clock signal in operation and provides the plurality of control signals to a column multiplexer to cycle through a plurality of data lines to write data to corresponding columns of the plurality of columns of cells.

[0200] The system may include: a plurality of computation circuits, wherein each computation circuit computes a computation value based on a cell value in a corresponding column cell of a plurality of cells, and each computation circuit corresponds to a corresponding data line of a plurality of data lines of a column multiplexer; and a sensing circuit, which in operation obtains computation values ​​from the plurality of computation circuits via a column multiplexer as the column multiplexer cycles through the plurality of data lines, and combines the obtained computation values ​​for a determined number of multiplexer cycles during a read operation. The determined number of multiplexer cycles may be less than the plurality of data lines of the column multiplexer. The sensing circuit in operation may calculate a first value from the obtained computation values ​​via a first set of the plurality of data lines during a first set of cycles of the column multiplexer during a first portion of the read operation, and calculate a second value from the obtained computation values ​​via a second set of the plurality of data lines during a second set of cycles of the column multiplexer during a second portion of the read operation, wherein the first set of cycles and the second set of cycles include the determined number of multiplexer cycles. The column multiplexer can cycle through a second plurality of data lines in operation, the second plurality of data lines respectively corresponding to a corresponding second computation circuit in a plurality of second computation circuits, wherein each second computation circuit computes a computation value based on a cell value in a corresponding column cell in the second plurality of cells. The second plurality of data lines of the column multiplexer can be provided by a second column multiplexer. The system can include a first clock that, in operation, initiates a read operation of the column multiplexer to cycle through the plurality of data lines for a determined number of multiplexer cycles; and a second clock that, in operation, initiates each cycle for each data line of the column multiplexer for a determined number of multiplexer cycles during a read operation of the sensing circuit to obtain a computation value from a corresponding computation circuit.

[0201] A method can be summarized as including: receiving a first command to store first data for a first cluster computing operation in multiple cells, the multiple cells being arranged as multiple rows of cells intersecting multiple columns of cells; associating each of a plurality of multiplexer data lines with a corresponding column in a plurality of columns; determining a first data line sequence for storing the first data in the multiple cells; looping through the multiple data lines according to the first data line sequence to store the first data in corresponding columns in the multiple columns to perform a first cluster computing operation; performing the first cluster computing operation; in response to completion of the first cluster computing operation, receiving a second command to store second data for a second cluster computing operation in the multiple cells; determining a second data line sequence for storing the second data in the multiple cells, the second data line sequence being different from the first data line sequence; and looping through the multiple data lines according to the second data line sequence to store the second data in corresponding columns in the multiple columns to perform a second cluster computing operation.

[0202] Determining a second data line order for storing the second data in the plurality of cells may include employing a barrel shifter to modify an address of each of the plurality of data lines based on the first data line order. Determining a first data line order for storing the first data in the plurality of cells may include selecting the first data line order and instructing a column multiplexer to cycle through the plurality of data lines according to the first data line order, and wherein determining a second data line order for storing the second data in the plurality of cells may include selecting the second data line order and instructing the column multiplexer to cycle through the plurality of data lines according to the second data line order.

[0203] Cycling through the plurality of data lines according to a first data line sequence may include: initiating cycling through the plurality of data lines according to the first data line sequence in response to a first clock signal from a first clock; and initiating each cycle for each data line in the first data line sequence in response to a first set of clock signals from a second clock to write data to each corresponding column in a plurality of columns; wherein cycling through the plurality of data lines according to a second data line sequence may include: initiating cycling through the plurality of data lines according to the second data line sequence in response to a second clock signal from the first clock; and initiating each cycle for each data line in the first data line sequence in response to a second set of clock signals from the second clock to write data to each corresponding column in a plurality of columns.

[0204] Performing a first cluster computing operation may include: computing a plurality of computational values ​​based on cell values ​​from a plurality of columns of cells, wherein each respective computational value is computed based on cell values ​​from a respective column of cells; selecting a plurality of multiplexer cycles for the first cluster computing operation based on the number of columns storing data for the first cluster computing operation; generating a result of the first cluster computing operation by cycling through a first subset of the plurality of computational values ​​for a selected number of multiplexer cycles using a column multiplexer and combining respective computational values ​​from the first subset of computational values ​​using a sensing engine; and outputting the result of the first cluster computing operation. The method may also include: cycling through a second subset of the plurality of computational values ​​for a selected number of multiplexer cycles using a second column multiplexer and combining respective computational values ​​from the second subset of computational values ​​using a second sensing engine; and outputting the second result of the first cluster computing operation. The selected number of multiplexer cycles may be less than the plurality of data lines.

[0205] A computing device can be summarized as including: a device for receiving multiple data for storage in multiple cells, the multiple cells being arranged as multiple rows of cells intersecting multiple columns of cells; a device for determining a data line order for storing the received multiple data in the multiple cells; a device for looping through multiple data lines according to the data line order to store the received multiple data in corresponding columns of the multiple columns; and a device for modifying the data line order to store subsequently received multiple data in the multiple cells.

[0206] The computing device may also include: means for initiating a cycle through the plurality of data lines based on a signal from a first clock; and means for initiating each cycle for each of the plurality of data lines according to a data line order based on a signal from a second clock. The computing device may also include: means for calculating a corresponding calculation value based on a cell value from each corresponding column of a plurality of columns of cells; means for cycling through each corresponding calculation value of the determined number of calculation values; and means for combining corresponding calculation values ​​from a subset of the calculation values ​​to generate a result of a data calculation cluster of the determined number of calculation values.

[0207] A system may be summarized as including: a memory array having a plurality of cells arranged as a plurality of rows of cells intersecting a plurality of columns of cells; a column multiplexer having a plurality of data lines, wherein each respective data line corresponds to a respective column of the plurality of columns, wherein the column multiplexer is operable to initiate a cycle through the plurality of data lines to read data from the plurality of cells or write input to the plurality of cells in response to a clock signal from a first clock for a read or write operation, and wherein the column multiplexer is operable to initiate each cycle for each data line of the column multiplexer to read data from a respective column of the plurality of columns of cells or write data to a respective column of the plurality of columns of cells in response to a clock signal from a second clock separate from the first clock. The first clock may be a system clock external to the plurality of cells, and the second clock may be a memory refresh clock associated with the plurality of cells.

[0208] The system may include a data line selection circuit device that selects a first cycle order for a first write operation to write a first plurality of data into a plurality of cells, and selects a second cycle order for a second write operation to write a second plurality of data into the plurality of cells, wherein the first cycle order and the second cycle order indicate an order in which the plurality of data lines are selected on each cycle, and wherein the first cycle order is different from the second cycle order. The data line selection circuit device may include a plurality of output lines corresponding to a plurality of selection lines of the column multiplexer, and the data line selection circuit device is operative to output data line addresses of the plurality of data lines via the plurality of output lines according to the first selected cycle order to write the first plurality of data into the plurality of cells during the first write operation, and to output data line addresses of the plurality of data lines via the plurality of output lines according to the second selected cycle order to write the second plurality of data into the plurality of cells during the second write operation.

[0209] The column multiplexer can modify the address of each of the plurality of data lines of the column multiplexer in operation to write a plurality of consecutive data into the plurality of cells. The column multiplexer can select the plurality of data lines in a first cyclic sequence during a first write operation and select the plurality of data lines in a second cyclic sequence during a second write operation.

[0210] The system may include: a cluster cycle management circuit device, which in operation determines the number of multiplexer cycles based on the number of columns storing data associated with the read operation; a plurality of calculation circuits, wherein each calculation circuit calculates a calculation value according to a cell value in a corresponding column cell of a plurality of cells, and each calculation circuit corresponds to a corresponding data line of a plurality of data lines of a column multiplexer; and a sensing circuit, which in operation obtains the calculation values ​​from the plurality of calculation circuits via a column multiplexer as the column multiplexer cycles through the plurality of data lines, and combines the obtained calculation values ​​for a determined number of multiplexer cycles during a read operation. The determined number of multiplexer cycles may be less than the plurality of data lines of the column multiplexer. The sensing circuit may in operation calculate a first value from the obtained calculation values ​​via a first set of the plurality of data lines during a first portion of the read operation, and calculate a second value from the obtained calculation values ​​via a second set of the plurality of data lines during a second portion of the read operation, wherein the first set of cycles and the second set of cycles include the determined number of multiplexer cycles. The column multiplexer may be operable to cycle through a second plurality of data lines corresponding to respective second computation circuits of a plurality of second computation circuits, wherein each second computation circuit computes a computation value based on a cell value in a corresponding column of cells of the second plurality of cells.

[0211] A method can be summarized as including: receiving a command associated with a cluster computing operation to read data from or write data to a plurality of cells arranged as a plurality of rows of cells intersecting a plurality of columns of cells; initiating a multiplexer cycle through a plurality of data lines in response to a clock signal from a first clock, each of the plurality of data lines corresponding to a respective column in a plurality of columns; and initiating each cycle of the multiplexer for each of the plurality of data lines in response to a clock signal from a second clock to read data from or write data to each respective column in the plurality of columns. The first clock can be a system clock external to the plurality of cells, and the second clock is a memory refresh clock associated with the plurality of cells.

[0212] The method may also include: determining a data line order for storing first data in a plurality of cells before initiating a multiplexer cycle through the plurality of data lines; and wherein initiating each cycle of the multiplexer for each of the plurality of data lines includes: cycling through the plurality of data lines according to the data line order to store the data in a corresponding column of the plurality of columns.

[0213] The method may also include receiving a second command to write second data to the plurality of cells; determining a second data line sequence for storing the first data in the plurality of cells; initiating a multiplexer in response to a second clock signal from the first clock to cycle through the plurality of data lines; and initiating each cycle of the multiplexer for each of the plurality of data lines to store the second data in each respective column of the plurality of columns according to the second data line sequence and in response to an additional clock signal from the second data line. Determining the second data line sequence for storing the second data in the plurality of cells may include employing a barrel shifter to modify an address of each of the plurality of data lines based on the first data line sequence.

[0214] The method may also include: calculating multiple calculation values ​​based on cell values ​​from multiple columns of cells, wherein each corresponding calculation value is calculated based on cell values ​​from a corresponding column of cells; selecting multiple multiplexer cycles for the cluster computing read operation based on the number of columns storing data for the cluster computing read operation; and generating a result of the cluster computing read operation by using a multiplexer to cycle through a first subset of the multiple calculation values ​​for the selected number of multiplexer cycles, and by using a sensing engine to combine corresponding calculation values ​​from the first subset of the calculation values.

[0215] The method may also include: initiating a second multiplexer cycle through a second plurality of data lines in response to a clock signal from the first clock, each data line in the second plurality of data lines corresponding to a corresponding column in a second plurality of columns in the plurality of cells; and initiating each cycle of the second multiplexer for each data line in the second plurality of data lines in response to the clock signal from the second clock to read data from each corresponding column in the second plurality of columns; and generating a second result of the cluster computing read operation by cycling through a second subset of multiple calculation values ​​for a selected number of multiplexer cycles, and by combining corresponding calculation values ​​from the second subset of calculation values ​​using a second sensing engine.

[0216] A computing device can be summarized as including: a device for receiving a command to read data from or write data to a plurality of cells, the plurality of cells being arranged as a plurality of rows of cells intersecting a plurality of columns of cells; a device for initiating a multiplexer to cycle through a plurality of data lines from a first clock source, each of the plurality of data lines corresponding to a respective column in a plurality of columns; and a device for initiating each cycle of the multiplexer for each of the plurality of data lines to read data from or write data to each respective column in a plurality of columns from a second clock source.

[0217] The computing device may also include: a device for determining a data line order for storing a plurality of received data in a plurality of cells; a device for looping through a plurality of data lines according to the data line order to store the received plurality of data in corresponding columns of a plurality of columns; and a device for modifying the data line order to store the subsequently received plurality of data in a plurality of cells. The computing device may also include: a device for calculating a corresponding calculation value according to a cell value from each corresponding column of a plurality of columns of cells; a device for determining a plurality of calculation values ​​based on the number of columns storing data associated with a data calculation cluster; a device for looping through each corresponding calculation value of the determined number of calculation values; and a device for combining corresponding calculation values ​​from a subset of calculation values ​​to generate a result of the data calculation cluster of the determined number of calculation values.

[0218] The various embodiments described above can be combined to provide other embodiments. These and other changes can be made to the embodiments according to the above detailed description. In general, in the following claims, the terms used should not be interpreted as limiting the claims to the specific embodiments disclosed in the specification and claims, but should be interpreted as including all possible embodiments and the full range of equivalents authorized to be protected by such claims. Therefore, the claims are not limited by this disclosure.

Claims

1. A memory calibration system, comprising: a memory array comprising a plurality of memory cells arranged as a plurality of rows of memory cells intersecting a plurality of columns of memory cells; a first sensing circuit coupled to the memory array; as well as A calibration circuit arrangement, wherein the calibration circuit arrangement is operable to: applying a test data pattern to the memory array; generating calibration information based on output provided by the first sense circuit in response to applying the test data pattern to the memory array; as well as storing the generated calibration information in at least some of the plurality of memory cells in a distributed manner; wherein in operation, and after storing the generated calibration information in the distributed manner, the first sensing circuit is configured to combine at least a portion of the generated calibration information with one or more data values ​​stored in the plurality of memory cells as part of one or more operations performed on the stored one or more data values; a plurality of first computation circuits, wherein each first computation circuit is operable to compute a computation value based on a cell value in a corresponding column of memory cells in the plurality of memory cells; a first column multiplexer, wherein the first column multiplexer is operable to cycle through a plurality of data lines, the plurality of data lines each corresponding to a first computation circuit in the plurality of first computation circuits; as well as A second sensing circuit is operable to obtain the calculation values ​​from the plurality of first calculation circuits via the first column multiplexer and to combine the obtained calculation values ​​over a determined number of multiplexer cycles. 2 . The memory calibration system of claim 1 , wherein the one or more data values ​​stored comprise a plurality of data values ​​stored in an in-memory compute cluster of the memory array.

3. The memory calibration system of claim 2, wherein the one or more operations performed on the one or more stored data values ​​comprise: The plurality of data values ​​for the in-memory computing cluster are combined with the at least a portion of the generated calibration information as at least part of an in-memory computing operation for the in-memory computing cluster.

4. The memory calibration system of claim 2, wherein the generated calibration information includes offset data for the in-memory computing cluster, and wherein storing the generated calibration information in the distributed manner comprises: The offset data for the in-memory computing cluster is stored in one or more memory cells of the in-memory computing cluster.

5. The memory calibration system of claim 4, wherein combining at least a portion of the generated calibration information with the one or more stored data values ​​comprises: The stored one or more data values ​​are summed by summing the offset data and the stored one or more data values.

6. The memory calibration system of claim 1, wherein in operation, the memory array comprises one or more in-memory computing clusters, each of the one or more in-memory computing clusters comprising one or more columns of memory cells among the plurality of columns of memory cells.

7. The memory calibration system of claim 1, comprising cluster cycle management circuitry operable to determine the determined number of multiplexer cycles based on the number of columns storing data of a computation cluster within the memory.

8. A method for calibrating a memory array using a calibration circuit device, the method comprising: applying a test data pattern to a memory array, the memory array comprising a plurality of memory cells arranged as a plurality of rows of memory cells intersecting a plurality of columns of memory cells; generating calibration information based on applying the test data pattern, wherein generating the calibration information comprises: analyzing output provided by a sense circuit coupled to the plurality of memory cells in response to applying the test data pattern; storing the generated calibration information in at least some of the plurality of memory cells in a distributed manner; After storing the generated calibration information in the distributed manner and as part of one or more operations performed on one or more data values ​​stored in the plurality of memory cells, combining at least a portion of the generated calibration information with the stored one or more data values; and The calibration circuit device comprises: a plurality of first calculation circuits, wherein each first calculation circuit is operable to calculate a calculation value based on a cell value in a corresponding column of memory cells in the plurality of memory cells; a first column multiplexer that, in operation, cycles through a plurality of data lines, each of the plurality of data lines corresponding to a first computational circuit of the plurality of first computational circuits; and A second sensing circuit is operable to obtain the calculation values ​​from the plurality of first calculation circuits via the first column multiplexer and to combine the obtained calculation values ​​over a determined number of multiplexer cycles.

9. The method of claim 8, wherein the one or more data values ​​stored include: A plurality of data values ​​in a computational cluster are stored within the memory of the memory array.

10. The method of claim 9, wherein the one or more operations performed on the one or more stored data values ​​comprise: The plurality of data values ​​for the in-memory computing cluster are combined with the at least a portion of the generated calibration information as at least part of an in-memory computing operation for the in-memory computing cluster.

11. The method of claim 9, wherein the calibration information generated comprises: Offset data for the in-memory computing cluster, and wherein storing the generated calibration information in the distributed manner includes storing the offset data for the in-memory computing cluster in one or more memory units of the in-memory computing cluster.

12. The method of claim 11, wherein combining at least a portion of the generated calibration information with the one or more stored data values ​​comprises: The stored one or more data values ​​are summed by summing the offset data and the stored one or more data values.

13. The method of claim 8, wherein the plurality of memory cells are arranged as a plurality of rows of memory cells intersecting a plurality of columns of memory cells, and wherein in operation, the memory array comprises one or more in-memory computing clusters, each of the one or more in-memory computing clusters comprising one or more columns of memory cells from the plurality of columns of memory cells.

14. A computing device comprising: means for applying a test data pattern to a memory array, the memory array comprising a plurality of memory cells arranged as a plurality of rows of memory cells intersecting a plurality of columns of memory cells; means for generating calibration information based on output provided in response to applying said test data pattern; means for storing the generated calibration information in at least some of the plurality of memory cells in a distributed manner; as well as means for combining a portion of the generated calibration information with the one or more data values ​​stored in the plurality of memory cells after storing the generated calibration information in the distributed manner and as part of one or more operations performed on the one or more data values ​​stored in the plurality of memory cells; a plurality of first calculation circuits, wherein each first calculation circuit is operable to calculate a calculation value based on a cell value in a corresponding column of memory cells in the plurality of memory cells; a first column multiplexer that, in operation, cycles through a plurality of data lines, each of the plurality of data lines corresponding to a first computation circuit of the plurality of first computation circuits; as well as A second sensing circuit is operable to obtain the calculation values ​​from the plurality of first calculation circuits via the first column multiplexer and to combine the obtained calculation values ​​over a determined number of multiplexer cycles.

15. The computing device of claim 14, comprising: Means for configuring a plurality of the plurality of memory cells to operate as an in-memory computing cluster of the memory array.

16. The computing device of claim 15, comprising: Means for combining the generated portion of the calibration information with a plurality of data values ​​stored in the plurality of memory cells of the in-memory computing cluster as at least part of an in-memory computing operation for the in-memory computing cluster.

17. The computing device of claim 15, wherein the calibration information generated comprises: offset data for the in-memory computing cluster, and wherein the means for storing the generated calibration information in the distributed manner comprises means for storing the offset data for the in-memory computing cluster in one or more memory units of the in-memory computing cluster.

18. The computing device of claim 14, wherein the plurality of memory cells are arranged as a plurality of rows of memory cells intersecting a plurality of columns of memory cells, and wherein in operation, the memory array comprises one or more in-memory computing clusters, each of the one or more in-memory computing clusters comprising one or more columns of memory cells from the plurality of columns of memory cells.

19. A non-transitory computer-readable medium having content that causes a memory calibration circuit device to perform actions comprising: applying a test data pattern to a memory array, the memory array comprising a plurality of memory cells arranged as a plurality of rows of memory cells intersecting a plurality of columns of memory cells; generating calibration information based on applying the test data pattern, wherein generating the calibration information comprises: analyzing output provided by a sense circuit coupled to the plurality of memory cells in response to applying the test data pattern; storing the generated calibration information in at least some of the plurality of memory cells in a distributed manner; and After storing the generated calibration information in the distributed manner and as part of one or more operations performed on one or more data values ​​stored in the plurality of memory cells, combining at least a portion of the generated calibration information with the stored one or more data values; and The memory calibration circuit device comprises: a plurality of first calculation circuits, wherein each first calculation circuit is operable to calculate a calculation value based on a cell value in a corresponding column of memory cells in the plurality of memory cells; a first column multiplexer that, in operation, cycles through a plurality of data lines, each of the plurality of data lines corresponding to a first computational circuit of the plurality of first computational circuits; and A second sensing circuit is operable to obtain the calculation values ​​from the plurality of first calculation circuits via the first column multiplexer and to combine the obtained calculation values ​​over a determined number of multiplexer cycles.