Memory management device, system and method
By storing and utilizing the reliability information of the memory array area in the memory management circuit to dynamically allocate memory resources, the problem of memory array failure and high failure rate under low voltage is solved, and efficient, low-power memory management and allocation is achieved. Redundant memory requirements are reduced.
Patent Information
- Application Number
- CN202010591159.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-06-05
- Filing Date
- 2020-06-24
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2040-06-24
AI Technical Summary
In processing systems, manufacturing defects and failures over time in memory arrays lead to memory unreliability. Increasing the amount of on-chip memory can lead to throughput losses, and memory failure rates are higher at low operating voltages. Existing technologies are difficult to effectively manage and Allocate memory resources.
By storing the reliability information of the memory array area in the memory management circuit, and dynamically allocating memory resources according to the request type and reliability information, using spare rows or columns for fault repair, reducing redundant memory requirements and lowering the minimum operating voltage.
Improves the reliability of memory array allocation, reduces chip yield losses, reduces redundant memory requirements, and enables efficient, low-power memory management in embedded systems.
Smart Images

Figure CN112133360B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to memory configuration and management in a processing system, such as an embedded system implementing a deep machine learning system, having one or more processing cores that run multiple processes that share memory. For example, the present disclosure relates to an embedded system implementing an artificial neural network (ANN) such as a convolutional neural network (CNN). Background Art
[0002] The processing core and the devices and systems including the processing core (such as processors, mobile phones, tablet computers, notebook computers, desktop computers, embedded processing systems, etc.) may generally include one or more memories, such as cache memory, main memory, auxiliary memory, etc. The memory may be implemented, for example, using one or more random access memories (RAMs) that may be volatile memory or non-volatile memory. The RAM may be organized into rows and columns corresponding to the data addresses in the memory.
[0003] The memory may be a shared memory, which may be used, for example, by multiple processing cores, multiple processes (such as host system processes, application processes, etc.). Such a processing system may be implemented using one or more integrated circuits. The integrated circuit may include, for example, a processing core, a memory array, a memory controller, discrete circuit devices, etc., and various combinations thereof.
[0004] Memory arrays in integrated circuits may contain manufacturing defects that may cause one or more cells of the memory array to statistically fail to accurately store data. In addition, memory cells of the memory array may fail over time. To this end, the memory array may contain spare cells in spare rows or columns, or both, which can be used to replace failed rows or failed columns in the memory array.
[0005] The integrated circuit may be tested as part of a manufacturing process (e.g., at an electronic wafer sort (EWS) level), or periodically after the manufacturing process, to identify faulty rows and columns of a memory array of the integrated circuit. For example, circuit devices and test routines such as probe testing, built-in self-test (BIST), etc. may be employed. Faulty rows or columns, or both, may be identified using thresholds (e.g., the number of faulty cells in a row or column exceeding a threshold number), statistical analysis (e.g., the probability that an error correction technique such as error correction coding cannot correct an error in a row or column exceeding a threshold probability), etc., and various combinations thereof.
[0006] For example, various data patterns can be loaded into and read from the memory array, and the data read from the memory array can be analyzed to identify flipped bits. The flipped bit information can be used to identify failed rows and failed columns in the memory array based on statistical analysis.
[0007] If a row or column is identified as unusable, the memory array can be repaired by replacing the faulty row or column with one of the spare rows or columns. Information identifying the faulty rows or columns is stored so that those rows and columns are not used to store data. When the number of faulty rows or columns is too large (e.g., exceeds a threshold number or statistical chip failure probability), the integrated circuit including the memory array is determined to be unsuitable because it has too many unrepairable faults and is either discarded or potentially reused in its entirety (e.g., an integrated circuit designed to have a 6GB memory array can be reused as a 4GB memory array). Summary of the invention
[0008] Processing systems, such as embedded systems implementing ANNs, may use large amounts of memory. Implementing memory on-chip rather than off-chip can save significant power, facilitating the use of ANNs and other memory-intensive applications in embedded applications such as mobile devices.
[0009] However, increasing the amount of on-chip memory may result in significant yield losses. For example, an increased number of wafers and chips may be rejected during the manufacturing process due to unrepairable memory defects. Increased redundant memory may be employed to reduce yield losses, thereby further increasing the chip area dedicated to memory. In addition, memory is statistically more likely to fail when operating at a lower operating voltage.
[0010] In one embodiment, a device includes: one or more memory units that store information indicating a reliability type of a region of a memory array in operation; and memory management circuitry that is coupled to the one or more memory units, wherein the memory management circuitry in operation responds to a request to allocate memory in the memory array to a process by: determining a request type associated with the request to allocate memory; and allocating memory in the memory array to the process based on the request type associated with the request to allocate memory and the stored information indicating the reliability type of the region of the memory array. In one embodiment, the one or more memory units include a fuse bank. In one embodiment, each fuse is associated with a corresponding region of the memory array. In one embodiment, the one or more units store information indicating the reliability type of the region of the memory array as a memory map in operation.
[0011] In one embodiment, determining the type of request includes: determining the type of process associated with the request. In one embodiment, the memory array is a shared memory array, and the memory management circuit device is in operation: responding to a request received from a host system process by allocating a region indicated by the stored reliability information as having a first reliability type from one or more regions of the memory array. In one embodiment, the memory management circuit device is in operation: responding to a request received from an application process by allocating a region indicated by the stored reliability information as having a first reliability type or a second reliability type from one or more regions of the memory array, the second reliability type indicating that the region is less reliable than the region having the first reliability type. In one embodiment, the memory management circuit device is in operation: responding to a request received from an artificial neural network (ANN) control process by allocating a region indicated by the stored reliability information as having a first reliability type from one or more regions of the memory array; and responding to a request from the ANN process to allocate memory to a memory buffer to store kernel data, intermediate portions, and / or feature data by allocating a region indicated by the stored reliability information as having a first reliability type or a second reliability type from one or more regions of the memory array, the second reliability type indicating that the region is less reliable than the region having the first reliability type.
[0012] In one embodiment, the stored information indicating the reliability type of a region of the memory array indicates one of a plurality of reliability levels associated with the region of the memory array. In one embodiment, the memory array is organized into rows and columns of memory cells and the region is a row of the memory array.
[0013] In one embodiment, the device includes a built-in self-test circuit device that periodically, in operation, tests a memory array; and based on the results of the testing, updates stored information indicating the reliability of a region of the memory array. In one embodiment, one or more memory cells include a cutout in a shared memory array. In one embodiment, one or more memory cells include cells of non-volatile memory. In one embodiment, the memory array includes an array of non-volatile memory cells. In one embodiment, the array of non-volatile memory cells includes one or more of the following: SRAM memory cells; ReRAM memory cells; and FRAM memory cells. In one embodiment, the array of non-volatile memory cells includes one or more multi-level ReRAM memory cells.
[0014] In one embodiment, a system includes: a memory array; and a memory management circuit device coupled to the memory array, wherein the memory management circuit device in operation responds to a request for allocating memory in the memory array to a process in a plurality of processes by: determining a request type associated with the request for allocating memory; and allocating memory in the memory array to the process based on the request type associated with the request for allocating memory and stored information indicating a reliability type of a region of the memory array. In one embodiment, the memory management circuit device includes a fuse bank that in operation stores information indicating a reliability type of a region of the memory array. In one embodiment, each fuse is associated with a respective region of the memory array. In one embodiment, determining the request type includes: determining a type of process associated with the request. In one embodiment, the system includes one or more processing cores that execute a plurality of processes; and the memory management circuit device in operation responds to a request received from a host system process in the plurality of processes by allocating a region indicated by the stored reliability information as having a first reliability type from one or more regions of the memory array. In one embodiment, the memory management circuit device, in operation: responds to a request received from an artificial neural network (ANN) control process by allocating a region from one or more regions of a memory array that the stored reliability information indicates has a first reliability type; and responds to a request from the ANN process to allocate memory to a memory buffer to store kernel data, intermediate portions, and / or feature data by allocating a region from one or more regions of the memory array that the stored reliability information indicates has a first reliability type or a second reliability type, the second reliability type indicating that the region is less reliable than the region having the first reliability type. In one embodiment, the stored information indicating the reliability type of the region of the memory array indicates one of a plurality of reliability levels associated with the region of the memory array.
[0015] In one embodiment, a method includes: storing information indicating a reliability type of a region of a memory array; and responding to a request for allocating memory in the memory array to a process in a plurality of processes by: determining a request type associated with the request for allocating memory in the memory array; and allocating memory in the memory array to the process based on the request type associated with the request for allocating memory in the memory array and the stored information indicating the reliability type of the region of the memory array. In one embodiment, storing information indicating a reliability type of a region of a shared memory array includes: blowing fuses in a fuse bank associated with the memory array. In one embodiment, determining the request type includes: determining the type of process associated with the request. In one embodiment, the method includes: responding to a request received from a host system process in a plurality of processes by allocating a region indicated by the stored reliability information as having a first reliability type from one or more regions of the memory array. In one embodiment, the method includes: responding to a request received from an artificial neural network (ANN) control process by allocating a region having a first reliability type indicated by stored reliability information from one or more regions of a memory array; and responding to a request from the ANN process to allocate memory to a memory buffer to store kernel data, intermediate portions, and / or feature data by allocating a region having a first reliability type or a second reliability type indicated by stored reliability information from one or more regions of the memory array, the second reliability type indicating that the region is less reliable than the region having the first reliability type.
[0016] In one embodiment, the method includes: testing a memory array; and generating stored information indicating a reliability type of a region of the memory array based on a result of the testing. In one embodiment, the testing is performed at a wafer level. In one embodiment, the method includes: retesting the memory array; and updating the stored information indicating a reliability type of a region of the memory array based on a result of the retesting.
[0017] In one embodiment, a non-transitory computer readable medium has content that causes a memory management circuit device to respond to a request for allocating memory in a memory array to a process in a plurality of processes by: determining a request type associated with the request for allocating memory in the memory array; and allocating memory in the memory array to the process based on the request type associated with the request for allocating memory in the memory array and stored information indicating a reliability type of a region of the memory array. In one embodiment, the content includes instructions executed by the memory management circuit device. In one embodiment, the plurality of processes include a host system process and an artificial neural network process. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 is a functional block diagram of one embodiment of an electronic device or system having a processing core and a memory according to one embodiment.
[0019] Figure 2 is a functional block diagram of one embodiment of an electronic device or system that implements an artificial neural network.
[0020] Figure 3 One embodiment of a memory is illustrated.
[0021] Figure 4 One embodiment of a memory array is illustrated.
[0022] Figure 5 One embodiment of a method of generating a region reliability type memory map is illustrated.
[0023] Figure 6 One embodiment of a method of allocating memory in a memory array to a process based on region reliability type information is illustrated. DETAILED DESCRIPTION
[0024] In the following description, certain details are set forth in order to provide a thorough understanding of various embodiments of devices, systems, methods, and articles. However, it will be appreciated by those skilled in the art that other embodiments may be practiced without these details. In other examples, in order to avoid unnecessarily obscuring the description of the embodiments, well-known structures (such as transistors, multipliers, adders, dividers, comparators, transistors, integrated circuits, logic gates, finite state machines, memories, interfaces, bus systems, etc.) and methods associated with, for example, circuits are not shown or described in detail in some of the drawings.
[0025] Unless the context requires otherwise, throughout the following specification and claims, the word "comprise" and variations thereof (such as "comprising" and "comprises") are to be interpreted in an open and inclusive sense, that is, "including but not limited to." References to "at least one" are to be interpreted as meaning either or both disjunctive and inclusive, unless the context dictates otherwise.
[0026] Throughout the specification, references to "one embodiment" or "an embodiment" mean that a particular feature, structure, or characteristic described in conjunction with the embodiment is included in at least one embodiment. Therefore, the phrases "in one embodiment" or "in an embodiment" appearing in various places throughout the specification do not necessarily refer to the same embodiment or all embodiments. Furthermore, in one or more embodiments, particular features, structures, or characteristics may be combined in any suitable manner to obtain additional embodiments.
[0027] Headings are provided for convenience only and do not interpret the scope or meaning of the disclosure.
[0028] The sizes and relative positions of elements in the drawings are not necessarily drawn to scale. For example, the shapes and angles of various elements are not drawn to scale, and some of these elements are enlarged and positioned to improve drawing readability. Further, the particular shapes of the drawn elements are not necessarily intended to convey any information about the actual shape of the particular element and are selected only for ease of identification in the drawings.
[0029] Figure 1 1 is a functional block diagram of one embodiment of an electronic device or system 100 of the type to which the described embodiments 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 applications by the system 100, etc.
[0030] The system 100 includes one or more memories (such as one or more volatile memories 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 performed by the system 100. 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, each including a memory management circuit device or MMU 110. One or more of the memories 104, 106, 108 include a memory array (e.g., see Figure 3302), which in operation may be shared by one or more processes executed by the system 100. The memory management circuit device 110 in operation employs one or more memory management routines to share the shared memory array (e.g., see Figure 3 of the memory array 302) (see, for example, Figure 3 Area 310, Figure 4 The area 410 of FIG. 1 is allocated to various processes executed by the system 100, for example, Figures 2 to 6 discussed in more detail.
[0031] The system 100 may include one or more sensors 120 (e.g., accelerometers, pressure sensors, temperature sensors, etc.), one or more interfaces 130 (e.g., wireless communication interfaces, wired communication interfaces, etc.), one or more BIST circuits 140, and other circuits 150 (which may include antennas, power supplies, etc.), and a main bus system 160. The main bus system 160 may include one or more data, address, power, and / or control buses that are coupled to various components of the system 100. The system 100 may also include additional bus systems, such as a bus system 162 that communicatively couples the cache memory 104 and the processing core 102, a bus system 164 that communicatively couples the cache memory 104 and the main memory 106, a bus system 166 that communicatively couples the main memory 106 and the processing core 102, and a bus system 168 that communicatively couples the main memory 106 and the auxiliary memory 108.
[0032] The one or more main memories 106 are typically working memories of the system 100 (e.g., one or more memories on which the processing core 102 works), and may typically be volatile memories of limited size (e.g., DRAM) that store code and data related to processes executed by the system 100. For convenience, references herein to data stored in a memory may also refer to code stored in a memory. In one embodiment, non-volatile memories such as SRAM, ReRAM (e.g., PCM, MRAM), FRAM, etc. may be used as or located in the one or more main memories. The auxiliary memory 108 may typically be 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. Compared to the auxiliary memory 108, the cache memory 104 may be a relatively fast memory and may typically have a limited size, which may be larger than the size of the main memory 106.
[0033] Cache memory 104 temporarily stores code and data for later use by system 100. Instead of retrieving 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, such as 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.
[0034] Figure 2 2 is a functional block diagram of another embodiment of an electronic device or system 200 of the type to which the described embodiments may be applied. The system 200 may be used, for example, to implement an ANN to classify sensor data. It should be noted that Figure 1 The embodiments can be used to implement Figure 2 Embodiments of the present invention may include a system on a chip.
[0035] The system 200 includes a global memory 202 that can be used, for example, as main memory for processes or clusters of ANNs 203 and for processes or clusters of host systems 204 (see Figure 1 The global memory 202 includes a memory management circuit device 206 and one or more shared memory arrays 208. The memory management circuit device 206 uses one or more memory management routines in operation to allocate regions of the shared memory array 208 to various processes executed by the system 200 based on the request type and the region reliability type information, for example, as shown in FIG. Figures 3 to 6 discussed in more detail.
[0036] As illustrated, the ANN 203 includes one or more data handlers 210, one or more memory bridges 220, one or more sensors 230 and corresponding sensor interfaces 232, one or more convolutional accelerator engines 240, and one or more fully connected engines 250, which may be implemented and operated in an otherwise conventional manner to produce a classification output 260.
[0037] Efficient low-power operation can be facilitated by using a hierarchical memory system and efficient reuse of local data. Accelerating CDNN convolutional layers may account for more than 90% of the total operations. Efficient balancing of compute and memory resources for both bandwidth and area can facilitate better throughput without reaching the associated upper limit. A design-time configurable accelerator framework (CAF) (see Figure 2 ), which transmits data streams via configurable data handler sources / sinks that serve as I / O interfaces (e.g., cameras), memory hierarchies, and various types of accelerators (including convolutional accelerators (CAs)).
[0038] The data handler 210 in operation handles data flows between IO (e.g., sensor interface 232), memory hierarchy (e.g., global memory 202, memory bridge 220), convolution accelerator 240, and fully connected engine 250. In one embodiment, a full-featured backpressure mechanism handles data flow control and stream multicasting, thereby facilitating reuse of data flows at multiple block instances. Link lists can control fully autonomous processing of entire convolutional layers in the ANN. Multiple accelerators can be grouped or chained to process varying sizes of feature map data and multiple kernels in parallel.
[0039] In one embodiment, the convolution accelerator engine 240 may include an array of clustered multiply-accumulate (MAC) units or circuits that implement convolution layer processing in the ANN in operation. The convolution accelerator engine may include a row buffer that acquires multiple feature map data words in parallel with a single memory access. A register-based kernel buffer may be used that provides multiple read ports, while multiple multi-bit fixed-point MAC units or circuits perform multiple MAC operations per clock cycle. An adder tree may be used to sum the MAC results for each kernel column. Overlapping column-based computation of MAC operations promotes optimal reuse of feature map data for multiple MACs and reduces power consumption associated with redundant memory accesses.
[0040] In some embodiments, system 100 or system 200 may include more components than those illustrated, may include fewer components than those illustrated, may separate the illustrated components into separate components, may combine the illustrated components, etc., as well as various combinations thereof. For example, in addition to or in place of internal auxiliary memory, Figure 1The auxiliary memory 108 of the system 100 may include an external memory coupled to the system 100 through an interface. In some embodiments, the main memory 106 and the auxiliary memory 108 may be combined into a single memory. In some embodiments, the cache memory 104 may be omitted. In another example, in addition to or in lieu of a separate MMU 110, one or more main memories 106 may share a common memory management circuit device.
[0041] Conventionally, system memory hierarchies are tested based on statistical models and accumulated memory density to ensure reliable operation at certain minimum voltages. If the predicted error rate of the memory array of an integrated circuit chip exceeds a threshold error rate, the chip is discarded. When the memory operates at a lower minimum voltage, the statistical error rate of the memory tends to be higher.
[0042] The inventors have realized that different processes or clusters sharing a memory array can tolerate different data error rates, and this fault tolerance can be used to promote reducing overall system memory requirements, increasing chip output, and reducing minimum operating voltages. For example, in an ANN system, for practical purposes, a host process or cluster may need to employ memory with an error rate lower than that required by certain ANN processes or clusters. Therefore, if the predicted failure rate of a region of a memory array is taken into account during the allocation of memory of the memory array to different processes, a higher overall error rate of the chip can be accepted. A higher overall predicted failure rate promotes reducing the number of unqualified chips, reducing the amount of redundant memory employed, and operating the chip using a lower minimum operating voltage.
[0043] In the context of an embedded ANN system, a bulk of the ANN system's on-chip memory may be required to store relatively fault-tolerant kernel data, intermediate portions, and feature data, while a smaller portion may be required to store less fault-tolerant configuration / layer sequence data. Similarly, the fault tolerance of the host system processes may be smaller. Therefore, allocating memory such as shared memory based on the type of memory request (e.g., the purpose for which the memory is being allocated) and the error or reliability characteristics of the area of memory can facilitate significantly improving the yield of the chip manufacturing process. In addition, because rows and columns that may have conventionally been designated as unavailable and replaced by redundant memory can instead be designated as allocated to certain types of processes, the amount of memory required for redundancy can be reduced, thereby reducing the need for redundant memory. The minimum operating voltage can also be reduced, thereby facilitating reduced power usage in, for example, mobile devices.
[0044] Figure 3An example structure of a memory 300 is shown in FIG. 1 , which in operation can allocate memory regions based on an allocation request type and information indicating a predicted or statistical error rate of a corresponding region of a memory array. The memory 300 can be used, for example, to implement one or more of the following: Figure 1 cache memory 104, main memory 106 and auxiliary memory 108, Figure 2 The global memory 202, etc.
[0045] Memory 300 includes one or more memory arrays 302. As illustrated, memory array 302 is organized into a plurality of rows 304 and columns 306 of memory cells 308. Memory array 302 is also organized into a plurality of regions 310. Memory array 302 can be organized into regions 310 physically, logically, or various combinations thereof. Regions 310 can be of uniform size (e.g., having the same number of rows 304 and columns 306) or of varying sizes. As illustrated, Figure 3 The regions 310 of memory array 302 have the same number of rows 304 , but a different number of columns 306 . Memory array 302 also includes a plurality of redundant columns 312 , which may be used to replace failed columns 306 in memory array 302 .
[0046] Figure 4 The diagram shows Figure 3 The memory array 302 is similar to one embodiment of the memory array 402 . Figure 4 The regions 410 have the same number of columns 406 of memory cells 408 and a different number of rows 404. In one embodiment, each region 410 includes a single row of the memory array 402. Figure 4 The memory array 402 also has a plurality of redundant rows 412 that can be used to replace a failed row 404 of the memory array 402. Figure 3 The memory array 302 or in addition thereto, the memory array 402 is for example used for Figure 3 An embodiment of a memory 300 .
[0047] Various types of memory may be used as the memory array 302 or the memory array 402. For example, dynamic random access memory (DRAM), static random access memory (SRAM), resistive random access memory (ReRAM) (e.g., phase change memory (PCM), magnetic random access memory (MRAM), etc.), FRAM, etc., and various combinations thereof may be employed. Multi-level memory cells (e.g., multi-level ReRAM cells) may be employed.
[0048] Figure 3The memory 300 of the embodiment also includes a memory management circuit device 320, which includes a memory control parameter storage device 322. The memory control parameter storage device includes one or more memory cells 308, which as shown include a fuse bank 324. The memory control parameter storage device 322 stores memory control parameters associated with the region 310 of the memory array 302 in operation. Alternatively or additionally, a cutout in the memory array 302 can be used to store the memory control parameters, or a separate memory can be used. The memory control parameters may include, for example, a tag associated with the region of the memory.
[0049] The stored memory control parameters include a region reliability type parameter, such as a parameter indicating the type of process to which a region 310, 410 of the memory array 302, 402 may be allocated. The value of the region reliability type parameter may be determined, for example, based on an expected failure rate of the corresponding region 310 of the memory array 302, a failure rate associated with operation at different voltage levels, a failure rate associated with operation in different modes (e.g., a multi-level mode or a binary mode), etc. For example, a predicted failure rate based on a test of the memory array may be employed to determine the value of the region reliability type parameter. The stored memory control parameters may include other parameters, such as an indication of whether a region or a portion thereof is currently allocated to a particular process or is available for allocation, historical allocation information, etc.
[0050] The stored reliability type parameters may be used by the memory management circuit device 320 to allocate available memory regions 310, 410 of the memory array 302, 402 to different processes or processors. For example, memory regions 310, 410 associated with reliability type parameter values indicating a failure rate below a threshold failure rate may be determined by the memory management circuit device 320 as available for allocation to all processes and processors. Conversely, memory regions 310, 410 associated with reliability type parameter values indicating a failure rate above a threshold failure rate may be determined by the memory management circuit device 320 as available for allocation to only certain processes or processors. For example, allocation of memory regions 310, 410 associated with parameters indicating a failure rate above a threshold failure rate may be limited to certain processes, such as ANN kernel processes, intermediate parts and processes, and feature data processes, while possibly preventing allocation of regions 310 to less fault-tolerant processes such as ANN configuration / layer sequence data storage and host system processes. The reliability type parameters may be stored as a memory map.
[0051] In some embodiments, the reliability type parameter values may be binary values associated with regions 310, 410 of the memory array 302, 402, where the values indicate whether the region is available for allocation without restriction or whether allocation of the region should be restricted to certain processes.
[0052] In some embodiments, the reliability type parameter value may be a value indicating one of a plurality of reliability levels associated with the region 310 of the memory 300. For example, a first value may indicate that the region 310 may be assigned to any process, a second value may indicate that the assignment of the region 310 to a host process should be constrained, a third value may indicate that the assignment of the region 310 to a host process and ANN configuration / layer sequence data storage should be constrained, and a fourth value may indicate that the assignment of the region 310 to any process should be constrained.
[0053] In one embodiment, the value of the regional reliability type parameter can be stored in the fuse library 324. Tables 1 and 2 below indicate example correspondences between fuse states and reliability type values relative to four regions of an example memory array. In general, for example, if each row of the memory array is considered as a region, the memory array can substantially have more than four regions.
[0054] Table 1
[0055] Memory area associated with fuses
[0056] Area of the memory array Fuse Status Reliability Type 1 (e.g., rows 0 to 4) Not blown Unconstrained 2 (e.g., lines 5 to 9) Circuit Breaker constraint 3 (e.g., lines 10 to 14) Circuit Breaker constraint 4 (e.g., lines 15 to 19) Not blown Unconstrained
[0057] In Table 1, each region of the memory array is associated with a fuse. It can be seen that the allocation of regions 1 and 4 is unconstrained (e.g., regions 1 and 4 can be allocated in response to any allocation request type), while the allocation of regions 2 and 3 is constrained (e.g., in response to an ANN kernel data storage process request). Instead, conventionally, regions 2 and 3 or portions thereof (e.g., rows) may have been deemed unusable and the chip rejected because the failure rate of the chip was too high. In some embodiments, the allocation of regions of the memory array associated with unblown fuses may be constrained to process types that require low data error rates (e.g., host processes), and the allocation of regions of the memory array associated with blown fuses may be constrained to process types that are more tolerant of data errors (e.g., ANN kernel data storage processes).
[0058] Table 2
[0059] Memory area associated with two fuses
[0060]
[0061]
[0062] In Table 2, each region of the memory array is associated with two fuses. It can be seen that regions 1 and 4 have level 0 constraints and can be allocated in response to any allocation request type. Region 2 has a level 1 constraint to prevent allocation in response to a request type associated with a host process. Region 3 has a level 2 constraint to prevent allocation in response to a request type associated with a host process or associated with an ANN configuration / layer sequence data storage process. In one embodiment, fuse 1 with an unblown state and fuse 2 with a blown state will not be used. In some embodiments, the allocation of regions of the memory array associated with certain fuse states can be constrained to request types associated with processes that require low data error rates (e.g., host processes), and the allocation of regions of the memory array associated with other fuse states can be constrained to request types associated with processes that are more tolerant of data errors (e.g., ANN kernel data storage processes).
[0063] Figure 5 An embodiment of a method 500 for generating regional reliability type and failure information associated with a memory array, for example, during a manufacturing process of an integrated circuit or a startup process of an integrated circuit, is illustrated. Figures 1 to 4 right Figure 5 Method 500 is described.
[0064] The method 500 starts at 502. The method 500 may start, for example, as part of a test routine used during a chip manufacturing process, as part of a chip startup process, etc. From 502, the method 500 proceeds to 504.
[0065] At 504, method 500 tests a memory array, such as Figure 3 The memory array 302 or Figure 4 This can be done, for example, using a test probe (not shown), a BIST circuit arrangement (see Figure 1 The method 500 may be performed by performing a BIST circuit device 140 of the embodiment of the present invention, performing a test routine, and various combinations thereof. The data pattern may be loaded into the memory array and read from the memory array to generate the test result. The test may include: testing at various minimum operating voltage levels in various operating modes (e.g., binary mode or multi-level mode, etc.). The method 500 proceeds from 504 to 506.
[0066] At 506, method 500 analyzes the results of the test at 504. For example, this may be done using a BIST circuit arrangement (see Figure 1The method may be performed by performing a statistical analysis of the comparison of data read from the memory array with expected values, etc. For example, a statistical failure rate of a row, column, or region of the memory array may be determined based on a statistical analysis of the results of the test at 504. The method proceeds from 506 to 508.
[0067] At 508, method 500 identifies regions of the memory array. The regions may be, for example, default regions, for example, each row may be identified as a separate region, every five rows may be identified as a separate region, each column may be identified as a separate region, etc. The regions are identified based on the test results. For example, every ten rows with a threshold failure rate below a first threshold may be grouped together in order and identified as a region; every ten rows with a threshold failure rate above a first threshold and below a second threshold failure rate may be grouped together in order and identified as a region; every row with a threshold failure rate above a second threshold may be identified as a separate region; etc. From 508, method 500 proceeds to 510.
[0068] At 510, method 500 determines regional reliability type information associated with the identified region. For example, method 500 may classify each region as having an unconstrained reliability type or a constrained reliability type in a binary manner based on a statistical failure rate associated with the region. For example, see the discussion of binary regional reliability type values in Table 1 above. In another example, method 500 may classify each region into one of a plurality of reliability levels based on a statistical failure rate associated with a corresponding region, a corresponding region in various operating modes, and the like. For example, see the discussion of regional reliability levels in reference Table 2. The statistical predicted failure rate of a region may be compared to one or more thresholds to determine the reliability type of the region. The method proceeds from 510 to 512.
[0069] At 512, method 500 stores information indicating a reliability type of a region. For example, a memory control parameter value indicating reliability type information associated with a region of a memory array may be stored in Figure 3 The memory control parameter storage device 322 of the memory management circuit device 320 of the memory management circuit device 320 (for example, stored in the fuse bank 324; or stored as a tag associated with the region of the memory array, etc.). Information indicating the reliability type of the region can be stored as a memory map. The stored control parameter value can be used, for example, together with the allocation request type information to allocate the region of memory to the system process, such as Figure 2 The host system 204 process and the ANN 203 process of the system 200 are shown in FIG. Figure 6 Method 500 proceeds from 512 to 514 .
[0070] At 514, method 500 identifies failed cells in the memory array. In practice, this can be accomplished, for example, by identifying failed rows (or columns) based on a comparison of a statistical failure rate of the row (column) with a threshold failure rate. Compared to conventional systems, the threshold failure rate can be higher (resulting in fewer failed rows) because the failure rate that would normally result in replacing a row with a redundant row can be used to associate a reliability type with the row. From 514, method 500 proceeds to 516.
[0071] At 516 , method 500 repairs the memory array using redundant memory. For example, failed row 404 of memory array 402 may be identified as unusable, and redundant row 412 may be identified as available for allocation to replace failed row 404. From 516 , method 500 proceeds to 518 .
[0072] At 518, method 500 stores repair data associated with the memory array. Figure 4 The information of the failed rows and redundant rows of the memory array 402 may be stored as a memory map, such as stored in Figure 3 The method 500 proceeds from 518 to 520.
[0073] At 520, the method 500 determines whether the method 500 is complete or should continue. For example, when the memory array has been repaired at 516, the method 500 may determine that the method 500 is not complete in order to determine reliability information and failure information associated with redundant cells (e.g., redundant rows) used to replace failed cells in the memory array. When it is determined at 520 that the method 500 is complete, the method 500 proceeds from 520 to 522, whether the method 500 can be terminated, other processes (such as error processes) can be performed, etc. When it is not determined at 520 that the method 500 is complete, the method 500 proceeds from 520 to 504.
[0074] An embodiment of a method of generating reliability type information associated with a memory array may include Figure 5 Additional actions not shown in the Figure 5 All actions shown in the Figure 5 The actions shown may be modified in various aspects. For example, when a default region is used, method 500 may omit action 508; method 500 may combine actions 510 and 512; actions 510 and 514 may be performed in parallel or iteratively in various orders; actions 512 and 518 may be combined, etc.; and various combinations thereof.
[0075] Figure 6An embodiment of a method 600 for allocating memory of a shared memory to a process in a plurality of processes of the shared memory is illustrated. Figures 1 to 5 right Figure 6 To simplify the discussion, reference is made to methods such as Figure 2 The memory array 208, Figure 3 The memory array 302, Figure 4 A single memory array pair such as the memory array 402 Figure 6 In some embodiments, the method 600 may be used to allocate memory in multiple memory arrays of a shared memory, multiple shared memories, etc.
[0076] The method 600 starts at 602. The method 600 can be performed, for example, in a processing system such as Figure 1 System 100, Figure 2 System 200, Figure 2 host system 204), on a memory management circuit device (such as Figure 1 The memory management circuit device 110, Figure 2 206 Figure 3 The method 600 may be used to allocate memory for host processes, application processes, data buffers for host and application processes, etc., and to allocate memory when a process is initialized and to dynamically allocate memory during runtime. The method 600 proceeds from 602 to 604.
[0077] At 604, the method 600 determines whether a request has been received to allocate memory of the shared memory array to the process. For example, a host system process or an application process (such as an ANN process) can request to allocate memory in the shared memory array. When it is determined that a request to allocate memory of the shared memory array has not been received, the method 600 returns to 604 to wait for a request to allocate memory of the shared memory array. In response to receiving a request to allocate memory of the shared memory array, the method 600 proceeds from 604 to 606.
[0078] At 606, method 600 associates one or more request types with the received memory allocation request. This may be done, for example, by parsing the received request to determine the request type, by determining the source of the request, etc. For example, the request may include a process identifier, a process type, other information indicating that a request type is associated with the received request, a request type field, etc. In another example, a request received from a first processor of the plurality of processors may be associated with a first request type, and a request received from another processor of the plurality of processors may be associated with a second request type.
[0079] In one embodiment, a request received from a host process may be associated with a first request type. If the ANN process is a control ANN configuration / layer sequence data storage process, a request received from the ANN process may be associated with a second request type, and if the ANN process is requesting a buffer to store kernel data, intermediate portions, and / or feature data, a request received from the ANN process may be associated with a third request type. A default memory allocation request type may be employed. Method 600 proceeds from 606 to 608.
[0080] At 608, method 600 associates one or more regional reliability types with the received memory allocation request based on the determined request type associated with the received memory allocation request. For example, a memory allocation request associated with a first request type may be associated with a first regional reliability type, and a memory allocation request associated with a second request type may be associated with a first regional reliability type and a second regional reliability type. A lookup table may be used to associate the received allocation request with one or more regional reliability types. Method 600 proceeds from 608 to 610.
[0081] At 610, method 600 allocates memory in a memory array in response to a memory allocation request based on a regional reliability type associated with the memory allocation request and stored information indicating the regional reliability type of a region of the memory array. For example, method 600 may allocate all or part of one or more regions having a first regional reliability type in response to a memory request associated with a first regional reliability type, and may allocate all or part of one or more regions having a first regional reliability type or a second regional reliability type in response to a memory request associated with a second regional reliability type. The stored information indicating the regional reliability type of a region of the memory array may be used to select a region of the memory array to allocate in response to a memory allocation request.
[0082] For example, refer to Figures 2 to 4 1 (with the states of the fuses stored in fuse bank 324, for example), the request from host system 204 may be associated with a request type indicating that the allocation request is related to a process that is less tolerant of data errors at 606. At 608, the request is associated with an unconstrained reliability type. At 610, based on the states of fuse 324, method 600 may allocate all or part of region 1 and region 4 in response to the allocation request from host system 204 (e.g., referring to Figure 4, one or more rows of region 410); regions 2 and 3 will not be allocated in response to a request from the host system. At 606, a request for a buffer to store kernel data, intermediate portions, and / or feature data received from the ANN process 203 may instead be associated with a request type indicating that the allocation request is related to a process that is more tolerant of data errors (e.g., a process that is less sensitive to flipped bits). At 608, the request will be associated with a constrained reliability type. At 610, based on the state of fuse 324, method 600 may allocate all or part of one or more of regions 1, region 2, region 3, and region 4 in response to an allocation request from the ANN process.
[0083] In another example, reference Figures 2 to 4 and Table 2 (with the states of fuses stored in fuse bank 324, for example), a request from host system 204 may be associated at 606 with a request type indicating that the allocation request is associated with a process that is less tolerant of data errors. At 608, the request may be associated with a reliability type constraint level of 0. At 610, based on the state of fuse 324, method 600 may allocate rows from one or more of regions 1 and 4 in response to the allocation request from host system 204; rows from regions 2 and 3 will not be allocated in response to the request from the host system. At 606, a request received from ANN process 203 to store ANN configuration / layer sequence data may be associated with a request type indicating that the allocation request is associated with a process that is moderately tolerant of data errors. At 608, the request is associated with a reliability type constraint level of 1. At 610, based on the state of fuse 324, method 600 may allocate rows from one or more of regions 1, 2, and 4, but not region 3, in response to the allocation request from the ANN process to store ANN configuration / layer sequence data. At 606, a request for a buffer to store kernel data, intermediate portions, and / or feature data received from the ANN process 203 may be associated with a request type indicating that the allocation request is associated with a process that is more tolerant of data errors. At 608, the request is associated with a reliability type constraint level 2. At 610, in response to an allocation request from the ANN process for a buffer to store kernel data, intermediate portions, and / or feature data, based on the state of the fuse 324, the method 600 may allocate all or part of one or more of region 1, region 2, region 3, and region 4.
[0084] Of course, method 600 may be based on other factors besides the region reliability type value associated with the memory allocation request (such as, for example, the region reliability type value stored in the memory allocation request). Figure 3The memory control parameter storage device 322 of the memory control parameter storage device 322, the allocation selection routine designed to promote the uniform wear of memory, the cache management control algorithm, the limit on the amount of memory allocated to certain types of tasks, the total amount of unallocated memory available in the memory array, the operation mode of the memory area (e.g., multi-level, binary), etc. and various combinations thereof) allocates the area of the memory array in response to the allocation request. Other memory management routines (e.g., error handling routines, routines for releasing the allocated memory when the process no longer needs it, etc.) can be adopted.
[0085] From 610, method 600 proceeds to 612, where method 600 determines whether the allocation of memory in the memory array is complete or should continue. When it is determined at 612 that method 600 is complete, method 600 proceeds from 612 to 614, whether method 600 can terminate, other processes (such as error handling) can be performed, etc. When it is determined at 612 that method 600 has not yet completed, method 600 proceeds from 612 to 604.
[0086] An embodiment of a method of allocating memory of a shared memory may include Figure 6 Additional actions not shown in the Figure 6 All actions shown in the Figure 6 The actions shown in the method 600 may be modified in various aspects. For example, the method 600 may combine actions 606 and 608. For example, a lookup table may be used to associate a received allocation request with one or more zone reliability types. In another example, an operation mode of an allocation zone may be determined, for example at 610, based on an allocation request type associated with the request.
[0087] 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 above-mentioned methods or functions. The medium may be a physical storage medium (such as, for example, a read-only memory (ROM) chip), or a disk (such as, for example, a digital versatile disk (DVD-ROM), a compact disk (CD-ROM), a hard disk, a memory, a network, or a portable media product to be read by an appropriate drive or via an appropriate connection (which includes being encoded in one or more bar codes or other related codes stored on one or more such computer readable media and readable by an appropriate reader device)).
[0088] Furthermore, in some embodiments, some or all of the methods and / or functions may be implemented or provided in other ways (such as at least partially in 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 (e.g., by executing appropriate 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.
[0089] The various embodiments described above can be combined to provide other embodiments. Aspects of the embodiments can be modified if necessary to employ the concepts of the various embodiments and publications to provide other embodiments.
[0090] These and other changes can be made to the embodiments according to the above specific embodiments. 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 equivalent schemes to which the claims are assigned. Therefore, the claims are not limited by the content of this disclosure.
Claims
1. A device comprising: one or more memory cells operable to store information indicating a reliability type of a region of a memory array, wherein the one or more memory cells include a cutout in the memory array; as well as memory management circuitry coupled to the one or more memory cells, wherein the memory management circuitry is operable to respond to a request to allocate a memory region in the memory array to a process by: determining a request type associated with the request to allocate a memory region; as well as A memory region in the memory array is allocated to the process based on the request type associated with the request to allocate a memory region and the stored information indicating a reliability type of a region of the memory array. 2 . The device of claim 1 , wherein the one or more memory cells comprise a fuse bank.
3. The apparatus of claim 2, wherein each fuse is associated with a corresponding region of the memory array. 4 . The apparatus of claim 1 , wherein the one or more units are operable to store the information indicating a reliability type of a region of the memory array as a memory map.
5. The apparatus of claim 1 , wherein determining the request type comprises: A type of process associated with the request is determined.
6. The apparatus of claim 5, wherein the memory array is a shared memory array, and the memory management circuitry, in operation: A request received from a host system process is responded to by allocating, from one or more regions of the memory array, a region that the stored reliability information indicates has a first reliability type.
7. The apparatus of claim 6, wherein the memory management circuitry, in operation: A request received from an application process is responded to by allocating, from one or more regions of the memory array, a region for which the stored reliability information indicates that the region has the first reliability type or a second reliability type indicating that the region is less reliable than a region having the first reliability type.
8. The apparatus of claim 6, wherein the memory management circuitry, in operation: responding to a request received from an artificial neural network control process by allocating, from one or more regions of the memory array, regions that the stored reliability information indicates have the first reliability type; and A request from an artificial neural network process to allocate a memory region to a memory buffer for storing kernel data, intermediate portions, and / or feature data is responded to by allocating from one or more regions of the memory array a region whose stored reliability information indicates that the region has the first reliability type or a second reliability type, the second reliability type indicating that the region is less reliable than a region having the first reliability type.
9. The apparatus of claim 1, wherein the stored information indicating a reliability type of a region of the memory array indicates one reliability level of a plurality of reliability levels associated with the region of the memory array.
10. The apparatus of claim 1, wherein the memory array is organized into rows and columns of memory cells and the regions are rows of the memory array.
11. The apparatus of claim 1 , comprising built-in self-test circuitry that, in operation, periodically: testing the memory array; and Based on results of the testing, the stored information indicative of the reliability of a region of the memory array is updated.
12. The device of claim 1, wherein the one or more memory cells comprise cells of non-volatile memory.
13. The apparatus of claim 1, wherein the memory array comprises an array of non-volatile memory cells.
14. The apparatus of claim 13, wherein the array of non-volatile memory cells comprises one or more of: SRAM memory cells; ReRAM memory cells; and FRAM memory cell.
15. The apparatus of claim 13, wherein the array of non-volatile memory cells comprises one or more multi-level ReRAM memory cells.
16. A system comprising: Memory array; as well as and memory management circuitry coupled to the memory array, wherein the memory management circuitry is operative to respond to a request to allocate a memory region in the memory array to a process of a plurality of processes by: determining a request type associated with the request to allocate a memory region; as well as allocating a memory region in the memory array to the process based on the request type associated with the request for allocating a memory region and the stored information indicating a reliability type of a region of the memory array, wherein The stored information indicating a reliability type of a region of the memory array is stored in a cutout of the memory array.
17. The system of claim 16, wherein the memory management circuitry comprises a fuse bank operable to store the information indicative of a reliability type of a region of the memory array.
18. The system of claim 17, wherein each fuse is associated with a corresponding region of the memory array.
19. The system of claim 16, wherein determining the request type comprises: A type of process associated with the request is determined.
20. The system of claim 19, comprising one or more processing cores that execute the plurality of processes, wherein the memory management circuitry, in operation: A request received from a host system process of the plurality of processes is responded to by allocating, from one or more regions of the memory array, a region that the stored reliability information indicates has a first reliability type.
21. The system of claim 20, wherein the memory management circuitry, in operation: responding to a request received from an artificial neural network control process by allocating, from one or more regions of the memory array, regions that the stored reliability information indicates have the first reliability type, and A request from an artificial neural network process to allocate a memory region to a memory buffer for storing kernel data, intermediate portions, and / or feature data is responded to by allocating from one or more regions of the memory array a region whose stored reliability information indicates that the region has the first reliability type or a second reliability type, the second reliability type indicating that the region is less reliable than a region having the first reliability type.
22. The system of claim 16, wherein the stored information indicating a reliability type of a region of the memory array indicates one reliability level of a plurality of reliability levels associated with the region of the memory array.
23. A method comprising: storing information indicative of a reliability type of a region of a memory array in a cutout of the memory array; as well as Responding to a request to allocate a memory region in the memory array to a process in a plurality of processes by: determining a request type associated with the request to allocate a memory region in the memory array; as well as A memory region in the memory array is allocated to the process based on the request type associated with the request to allocate a memory region in the memory array and the stored information indicating a reliability type of a region of the memory array.
24. The method of claim 23, wherein the shared memory array of the memory array, storing information indicating a reliability type of a region of the shared memory array comprises: Fuses in a fuse bank associated with the memory array are blown.
25. The method of claim 23, wherein determining the request type comprises: A type of process associated with the request is determined.
26. The method according to claim 25, comprising: A request received from a host system process of the plurality of processes is responded to by allocating, from one or more regions of the memory array, a region that the stored reliability information indicates has a first reliability type.
27. The method according to claim 26, comprising: responding to a request received from an artificial neural network control process by allocating, from one or more regions of the memory array, regions that the stored reliability information indicates have the first reliability type; as well as A request from an artificial neural network process to allocate a memory region to a memory buffer for storing kernel data, intermediate portions, and / or feature data is responded to by allocating from one or more regions of the memory array a region whose stored reliability information indicates that the region has the first reliability type or a second reliability type, the second reliability type indicating that the region is less reliable than a region having the first reliability type.
28. The method of claim 23, comprising: testing the memory array; as well as Based on results of the testing, stored information indicative of a reliability type of a region of the memory array is generated.
29. The method of claim 28, wherein the testing is performed at wafer level.
30. The method of claim 28, comprising: retesting the memory array; as well as Based on the results of the retesting, the stored information indicating the reliability type of the region of the memory array is updated.
31. A non-transitory computer readable medium having content that causes memory management circuitry to respond to a request to allocate a memory region in a memory array to a process in a plurality of processes by: determining a request type associated with the request to allocate a memory region in the memory array; and A memory region in the memory array is allocated to the process based on the request type associated with the request for allocating a memory region in the memory array and stored information indicating a reliability type of a region of the memory array, wherein the stored information indicating a reliability type of a region of the memory array is stored in a cutout of the memory array.
32. The non-transitory computer-readable medium of claim 31, wherein the contents include instructions executed by the memory management circuitry.
33. The non-transitory computer readable medium of claim 31, wherein the plurality of processes comprises a host system process and an artificial neural network process.
