The present disclosure relates generally to memory devices, and more particularly, to apparatuses and methods for a memory protocol with programmable buffer and cache size.
Memory devices are typically provided as internal, semiconductor, integrated circuits in computers or other electronic devices. There are many different types of memory including volatile and non-volatile memory. Volatile memory can require power to maintain its data and includes random-access memory (RAM), dynamic random access memory (DRAM), and synchronous dynamic random access memory (SDRAM), among others. Non-volatile memory can provide persistent data by retaining stored data when not powered and can include NAND flash memory, NOR flash memory, read only memory (ROM), Electrically Erasable Programmable ROM (EEPROM), Erasable Programmable ROM (EPROM), and resistance variable memory such as phase change random access memory (PCRAM), resistive random access memory (RRAM), and magnetoresistive random access memory (MRAM), among others.
Memory is also utilized as volatile and non-volatile data storage for a wide range of electronic applications. Non-volatile memory may be used in, for example, personal computers, portable memory sticks, digital cameras, cellular telephones, portable music players such as MP3 players, movie players, and other electronic devices. Memory cells can be arranged into arrays, with the arrays being used in memory devices.
Memory can be part of a memory module (e.g., a dual in-line memory module (DIMM)) used in computing devices. Memory modules can include volatile, such as DRAM, for example, and/or non-volatile memory, such as Flash memory or RRAM, for example. The DIMMs can be using a main memory in computing systems.
The present disclosure includes apparatuses and methods related to a memory protocol with programmable buffer and cache size. An example apparatus can program a register to define a size of a buffer in memory, store data in the buffer in a first portion of the memory defined by the register, and store data in a cache in a second portion of the memory.
In a number of embodiments, a portion of memory can be implemented as buffer/cache for a non-volatile dual in-line memory module (NVDIMM) device. The memory that is implemented as buffer/cache can be on the controller and/or can be in a memory device coupled to the controller. The memory devices of the NVDIMM device can include a volatile memory array (e.g., DRAM) and/or a non-volatile memory array (e.g., NAND Flash). The memory on the controller implemented as the buffer/cache can be SRAM, for example The memory implemented as the buffer/cache in a memory device can be a DRAM memory array, for example. A portion of SRAM can be a buffer/cache for a DRAM memory array and/or a non-volatile memory array, and a portion of DRAM can be a buffer/cache or a non-volatile memory array.
The buffer/cache can include a portion that is used as a buffer for the NVDIMM device and a portion that is used as cache for the NVDIMM device. The size of the portion of the memory that is used a buffer can be defined by a register. The size of the portion of the memory that is used as cache can also be defined by the register and/or be remaining portion of the memory that is not used as the buffer. The register can be programmed by the host. The register can also be programmed by the NVDIMM controller. A register can also be programmed to define the memory density that is being used for the buffer/cache. The register that defines the memory density can be used to determine the total size of the buffer/cache.
The portion of the buffer/cache that is used as buffer can be configured to store signals, address signals (e.g., read and/or write commands), and/or data (e.g., write data). The buffer can temporarily store signals and/or data while commands are executed. The portion of the buffer/cache that is used a cache can be configured to store data that is also stored in a memory device. The data stored in cache and in the memory device is addressed by the controller and can located in cache and/or the memory device during execution of a command.
In a number of embodiments, the size of the portion of the memory implemented as a buffer and the size of the portion of memory implemented as cache can be based on how the NVDIMM device is being used. For example, if the NVDIMM device is executing more commands that use a buffer, then the size of the buffer can be larger than the cache. If there are changes to how NVDIMM device is being used, then the relative size of the buffer and cache can be modified by programming a register to reflect that change. For example, if the host is performing more block/write operations that use a buffer than memory load/store (e.g., read) operations that use cache, then the buffer can be configured to be larger in size than the cache. Once the host device has written data to the memory arrays of the NVDIMM device, it may receive more read commands to access the data, which will use the cache. The size of the cache can then be increased by reprogramming the register so that the cache can be configured to be larger in size than the buffer.
In the following detailed description of the present disclosure, reference is made to the accompanying drawings that form a part hereof, and in which is shown by way of illustration how a number of embodiments of the disclosure may be practiced. These embodiments are described in sufficient detail to enable those of ordinary skill in the art to practice the embodiments of this disclosure, and it is to be understood that other embodiments may be utilized and that process, electrical, and/or structural changes may be made without departing from the scope of the present disclosure. As used herein, the designator “N” indicates that a number of the particular feature so designated can be included with a number of embodiments of the present disclosure.
As used herein, “a number of” something can refer to one or more of such things. For example, a number of memory devices can refer to one or more of memory devices. Additionally, designators such as “N”, as used herein, particularly with respect to reference numerals in the drawings, indicates that a number of the particular feature so designated can be included with a number of embodiments of the present disclosure.
The figures herein follow a numbering convention in which the first digit or digits correspond to the drawing figure number and the remaining digits identify an element or component in the drawing. Similar elements or components between different figures may be identified by the use of similar digits. As will be appreciated, elements shown in the various embodiments herein can be added, exchanged, and/or eliminated so as to provide a number of additional embodiments of the present disclosure. In addition, the proportion and the relative scale of the elements provided in the figures are intended to illustrate various embodiments of the present disclosure and are not to be used in a limiting sense.
As illustrated in
Host 102 includes a host controller 108 to communicate with memory systems 104-1 . . . 104-N. The host controller 108 can send commands to the DIMMs 110-1, . . . , 110-X, 110-Y via channels 112-1 . . . 112-N. The host controller 108 can communicate with the DIMMs 110-1, . . . , 110-X, 110-Y and/or the controller 114 on each of the DIMMs 110-1, . . . , 110-X, 110-Y to read, write, and erase data, among other operations. A physical host interface can provide an interface for passing control, address, data, and other signals between the memory systems 104-1 . . . 104-N and host 102 having compatible receptors for the physical host interface. The signals can be communicated between 102 and DIMMs 110-1, . . . , 110-X, 110-Y on a number of buses, such as a data bus and/or an address bus, for example, via channels 112-1 . . . 112-N.
The host controller 108 and/or controller 114 on a DIMM can include control circuitry, e.g., hardware, firmware, and/or software. In one or more embodiments, the host controller 108 and/or controller 114 can be an application specific integrated circuit (ASIC) coupled to a printed circuit board including a physical interface. Also, each DIMM 110-1, . . . , 110-X, 110-Y can include buffer/cache 116 of volatile and/or non-volatile memory and registers 118. Buffer/cache 116 can be used to buffer and/or cache data that is used during execution of read commands and/or write commands. The buffer/cache 116 can be split into a first portion that can be a buffer and a second portion that can be a cache. The amount of space (e.g., size) that is dedicated to the buffer and/or the amount of space dedicated to the cache can be controlled by the host controller 108 via registers 118. The host can control the amount of space in the buffer/cache 116 dedicated to the buffer and/or the cache based on the density of the memory in the DIMM, the number of desired entries in the buffer, and/or the type of commands that are being sent to a particular DIMM. In a number of embodiments, the DIMM can have a fixed buffer size and/or a fixed cache size. Registers 118 can be programmed with media density information and/or buffer size information that is used to determine the size of the buffer and the size of the cache.
The portion of the buffer/cache 116 that is used as buffer can be configured to store signals, address signals (e.g., read and/or write commands), and/or data (e.g., write data). The buffer can temporarily store signals and/or data while commands are executed. The portion of the buffer/cache 116 that is used a cache can be configured to store data that is also stored in a memory device. The data stored in cache and in the memory device is addressed by the controller and can located in cache and/or the memory device during execution of a command.
The DIMMs 110-1, . . . , 110-X, 110-Y can provide main memory for the memory system or could be used as additional memory or storage throughout the memory system. Each DIMM 110-1, . . . , 110-X, 110-Y can include one or more arrays of memory cells, e.g., non-volatile memory cells. The arrays can be flash arrays with a NAND architecture, for example. Embodiments are not limited to a particular type of memory device. For instance, the memory device can include RAM, ROM, DRAM, SDRAM, PCRAM, RRAM, and flash memory, among others.
The embodiment of
Memory devices 113-1, . . . , 113-Z can include control circuitry 117 (e.g., hardware, firmware, and/or software) which can be used to execute commands on the memory devices 113-1, . . . , 113-Z. The control circuitry 117 can receive commands from controller 114. The control circuitry 117 can be configured to execute commands to read and/or write data in the memory devices 113-1, . . . , 113-Z.
The buffer/cache 116 can include a portion that is used as a buffer for the NVDIMM device 110 and a portion that is used as cache for the NVDIMM device 110. The size of the portion of the memory that is used a buffer can be defined by register 118. The size of the portion of the memory that is used as cache can also be defined by the registers 118 and/or be the remaining portion of the memory that is not used as the buffer. Registers 118 can also be programmed to define the memory density that is being used for the buffer/cache 116. Registers 118 that define the memory density can be used to determine the total size of the buffer/cache 116.
The buffer/cache 116 can include a portion that is used as a buffer for the NVDIMM device 110 and a portion that is used as cache for the NVDIMM device 110. The size of the portion of the memory that is used a buffer can be defined by register 118. The size of the portion of the memory that is used as cache can also be defined by the registers 118 and/or be the remaining portion of the memory that is not used as the buffer. Registers 118 can also be programmed to define the memory density that is being used for the buffer/cache 116. Registers 118 that define the memory density can be used to determine the total size of the buffer/cache 116.
The buffer/cache 116 can include a portion that is used as a buffer for the NVDIMM device 110 and a portion that is used as cache for the NVDIMM device 110. The size of the portion of the memory that is used a buffer can be defined by register 118. The size of the portion of the memory that is used as cache can also be defined by the registers 118 and/or be the remaining portion of the memory that is not used as the buffer. Registers 118 can also be programmed to define the memory density that is being used for the buffer/cache 116. Registers 118 that define the memory density can be used to determine the total size of the buffer/cache 116.
In a number of embodiments, the size of the portion of the memory implemented as a buffer 219 and the size of the portion of memory implemented as cache 217 can be based on the relative quantities commands being issued by the host that use a buffer 219 and/or a cache 217. The relative quantities of commands issued by the host that use a buffer 219 and/or a cache 217 can be dependent on the application being run by the host. For example, if the NVDIMM device is executing more commands that use a buffer 219, then registers can be programmed so the size of the buffer 219 can be larger than the cache 217. If the NVDIMM device is performing operations that use cache 217 more than buffer 219, then registers can be programmed so the size of the cache is larger than the size of the buffer. The register can be programmed to change the size of the buffer in response to the buffer being at a threshold capacity, such as full, for example, and the cache being at least partially empty. The register can be programmed to change the size of the buffer in response to the cache being at a threshold capacity, such as full, for example, and the buffer being at least partially empty. The size of the cache 217 and/or buffer 219 can be changed as the host changes the applications that are running.
The size of the buffer 219 defined by registers can be based on the block size of the non-volatile memory arrays of the NVDIMM device. If the host and/or controller want to be able to store a particular number of entries (e.g., a threshold number of entries) that are the size of the block size of the non-volatile memory arrays 113, then the size of the buffer 219 is based on the particular number of desired entries multiplied by the block size of the non-volatile memory arrays of the NVDIMM device.
In a number of embodiments, a register can be programmed by the host (e.g., host 102 in
In
In a number of embodiments, a register can be programmed by the host (e.g., host 102 in
Although specific embodiments have been illustrated and described herein, those of ordinary skill in the art will appreciate that an arrangement calculated to achieve the same results can be substituted for the specific embodiments shown. This disclosure is intended to cover adaptations or variations of various embodiments of the present disclosure. It is to be understood that the above description has been made in an illustrative fashion, and not a restrictive one. Combination of the above embodiments, and other embodiments not specifically described herein will be apparent to those of skill in the art upon reviewing the above description. The scope of the various embodiments of the present disclosure includes other applications in which the above structures and methods are used. Therefore, the scope of various embodiments of the present disclosure should be determined with reference to the appended claims, along with the full range of equivalents to which such claims are entitled.
In the foregoing Detailed Description, various features are grouped together in a single embodiment for the purpose of streamlining the disclosure. This method of disclosure is not to be interpreted as reflecting an intention that the disclosed embodiments of the present disclosure have to use more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive subject matter lies in less than all features of a single disclosed embodiment. Thus, the following claims are hereby incorporated into the Detailed Description, with each claim standing on its own as a separate embodiment.
This application is a Continuation of U.S. application Ser. No. 15/484,793, filed on Apr. 11, 2017, the contents of which are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 15484793 | Apr 2017 | US |
Child | 17893129 | US |