CN104750424A - Storage system and control method for nonvolatile memory of storage system - Google Patents

Storage system and control method for nonvolatile memory of storage system Download PDF

Info

Publication number
CN104750424A
CN104750424A CN201310746199.8A CN201310746199A CN104750424A CN 104750424 A CN104750424 A CN 104750424A CN 201310746199 A CN201310746199 A CN 201310746199A CN 104750424 A CN104750424 A CN 104750424A
Authority
CN
China
Prior art keywords
nonvolatile memory
write
control module
subelement
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310746199.8A
Other languages
Chinese (zh)
Other versions
CN104750424B (en
Inventor
刘娟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nationz Technologies Inc
Original Assignee
Nationz Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nationz Technologies Inc filed Critical Nationz Technologies Inc
Priority to CN201310746199.8A priority Critical patent/CN104750424B/en
Priority to US14/311,221 priority patent/US9043538B1/en
Priority to PCT/CN2014/094998 priority patent/WO2015101211A1/en
Publication of CN104750424A publication Critical patent/CN104750424A/en
Application granted granted Critical
Publication of CN104750424B publication Critical patent/CN104750424B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The invention discloses a storage system and a control method for a nonvolatile memory of the storage system. In the system, during a writing operation period of the nonvolatile memory, a memory control module is used for storing data needing to be written into the nonvolatile memory into a caching module according to a writing command sent by a main control module; after the writing operation of the nonvolatile memory is finished and the writing command is not sent to the nonvolatile memory by the main control module, the memory control module is used for releasing an operation authority of the caching module to the main control module. With the adoption of the manner, the system performance can be improved, the wastes of memory resources are reduced and the capacity of a system internal memory can be increased.

Description

The control method of a kind of storage system and nonvolatile memory thereof
Technical field
The present invention relates to memory technology field, particularly relate to the control method of a kind of storage system and nonvolatile memory thereof.
Background technology
Along with the fast development of integrated circuit, the use of portable type electronic product is also more and more extensive, and then has also promoted the development of SOC (system on a chip).SOC (system on a chip) refers to an integrated complete system on a single chip, generally includes central processing unit (CPU), read only memory ROM, random access storage device RAM, nonvolatile memory (as Flash/EEPROM) and other functional modules.Wherein, RAM is the most used in system and maximum alternately with CPU unit, and nonvolatile memory belongs to slow storage, and especially write operation is consuming time very long.
In prior art, normally increase by one piece in systems in which and write buffer memory to improve system performance.When write operation will be carried out to nonvolatile memory, first data are write in buffer memory, thus system just can perform other operations, and the data write in buffer memory write in nonvolatile memory by non-volatile memory controller simultaneously, to realize the write operation to nonvolatile memory.Thus, by writing the buffer action of buffer memory, the data of write nonvolatile memory can temporarily be stored in by system rapidly to be write in buffer memory, to perform other operation, data are write compared to directly to nonvolatile memory, the write time of system can be reduced, improve the performance of system.
But, be a non-recurrent event to the write operation of nonvolatile memory, make to write accordingly that to be buffered in most of time be all be in an idle condition, cause the wasting of resources.
Summary of the invention
The technical matters that the present invention mainly solves is to provide the control method of a kind of storage system and nonvolatile memory thereof, while can improving system performance, reduces the waste of memory resource, and can increase the capacity of Installed System Memory.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: provide a kind of storage system, comprise: main control module, memory control module, nonvolatile memory and cache module, memory control module is connected with main control module, and nonvolatile memory is all connected with memory control module with cache module; Memory control module is used for when main control module sends the write order to nonvolatile memory, be stored in cache module according to write order by needing the data writing nonvolatile memory, after completing the write operation to nonvolatile memory and when main control module does not send write order to nonvolatile memory, the operating right of cache module is discharged to main control module.
Wherein, memory control module comprises caching control unit and nonvolatile memory control module; The write order to nonvolatile memory that nonvolatile memory control module sends for receiving main control module, and send write operation information according to write order to caching control unit; Caching control unit is used for being stored in cache module according to write operation information by needing the data writing nonvolatile memory; Nonvolatile memory control module is also for sending the read command needing the data writing nonvolatile memory of reading in cache module to caching control unit; Caching control unit is used for reading according to read command being stored in the data that needing in cache module writes nonvolatile memory, and read data are sent to nonvolatile memory control module; Nonvolatile memory control module is used for after data are write nonvolatile memory, notification signal data being write nonvolatile memory is sent completely, to discharge the operating right of cache module to main control module to caching control unit and main control module.
Wherein, nonvolatile memory control module comprises: control subelement write by nonvolatile memory, for receiving the write order of main control module to nonvolatile memory, and sends write operation control signal; Cache management subelement, for according to write operation control signal, sends write operation information to caching control unit; Nonvolatile memory is write and is controlled subelement also for sending the read command needing the data writing nonvolatile memory of reading in cache module to cache management subelement, to send read command by cache management subelement to caching control unit.
Wherein, caching control unit comprises: central processing unit command process subelement; Non-volatile memory controller command process subelement, for receiving write operation information and read command; Chooser unit, for during the write operation of nonvolatile memory, the write operation information selecting non-volatile memory controller command process subelement to receive and read command send; Buffer memory writes control subelement, for being stored in cache module according to the write operation information sent from chooser unit by needing the data writing nonvolatile memory; Cache read controls subelement, is stored in the data that needing in cache module writes nonvolatile memory, and sends to nonvolatile memory to write control subelement read data for reading according to the read command sent from chooser unit; Wherein, cache management subelement also controls after data write nonvolatile memory by subelement for writing at nonvolatile memory, notification signal data being write nonvolatile memory is sent completely, to discharge the operating right of cache module to main control module to chooser unit and main control module.
Wherein, also comprise: RAM control module and RAM, RAM control module are connected with main control module, RAM and RAM control module connects; RAM control module is used for the data read when receiving the read command of main control module to RAM in RAM, and will need to write in the data write RAM in RAM when receiving the write order of main control module to RAM.
Wherein, cache module is Parasites Fauna.
For solving the problems of the technologies described above, another technical solution used in the present invention is: the control method providing a kind of nonvolatile memory of storage system, comprising: Memory Controller receiving system is to the write order of nonvolatile memory; Memory Controller is stored in cache module according to write order by needing the data writing nonvolatile memory; The operating right of cache module, after completing the write operation to nonvolatile memory and when system does not send write order to nonvolatile memory, discharges to system by Memory Controller.
Wherein, Memory Controller receives and comprises the step of the write order of nonvolatile memory: the nonvolatile memory control module receiving system of Memory Controller is to the write order of nonvolatile memory; Nonvolatile memory control module is according to the caching control unit transmission write operation information of write order to Memory Controller; The step needing the data writing nonvolatile memory to be stored in buffer memory comprises according to write order by Memory Controller: caching control unit is stored in cache module according to write operation information by needing the data writing nonvolatile memory; The operating right of buffer memory, after completing the write operation to nonvolatile memory and when system does not send write order to nonvolatile memory, discharges and comprises to the step of system by Memory Controller: nonvolatile memory control module sends the read command needing the data writing nonvolatile memory of reading in cache module to caching control unit; Caching control unit reads according to read command and is stored in the data that needing in cache module writes nonvolatile memory, and read data are sent to nonvolatile memory control module; Data write in nonvolatile memory by nonvolatile memory control module, to complete the write operation to nonvolatile memory; Nonvolatile memory control module is sent completely notification signal data being write nonvolatile memory to caching control unit and system, to discharge the operating right of cache module to system.
Wherein, the nonvolatile memory control module of Memory Controller receives and comprises the step of the write order of nonvolatile memory: the nonvolatile memory of nonvolatile memory control module is write and controlled subelement receiving system to the write order of nonvolatile memory, and sends write operation control signal; Nonvolatile memory control module comprises according to the step of write order to the caching control unit transmission write operation information of Memory Controller: the cache management subelement of nonvolatile memory control module receives write operation control signal, and sends write operation information according to write operation control signal to caching control unit; Nonvolatile memory control module sends to caching control unit the step of the read command of the data writing nonvolatile memory that needs read in cache module and comprises: nonvolatile memory is write control subelement and sent the read command needing the data writing nonvolatile memory of reading in cache module to cache management subelement; Cache management subelement receives read command, and read command is sent to caching control unit.
Wherein, the step needing the data writing nonvolatile memory to be stored in cache module comprises according to write operation information by caching control unit: the non-volatile memory controller command process subelement of caching control unit receives write operation information; The write operation information that the chooser Unit selection non-volatile memory controller command process subelement of caching control unit receives sends; The buffer memory of caching control unit is write control subelement and is stored in cache module according to the write operation information sent from chooser unit by needing the data writing nonvolatile memory; Caching control unit reads according to read command and is stored in the data that needing in cache module writes nonvolatile memory, and sends to the step of nonvolatile memory control module to comprise read data: non-volatile memory controller command process subelement receives read command; The read command that chooser Unit selection non-volatile memory controller command process subelement receives sends; The cache read of caching control unit controls subelement and reads the data needing write nonvolatile memory be stored in cache module according to the read command sent from chooser unit, and sends to nonvolatile memory to write control subelement read data; By data, the step write in nonvolatile memory comprises nonvolatile memory control module: nonvolatile memory is write control subelement and write in nonvolatile memory by data; Nonvolatile memory control module is sent completely notification signal data being write nonvolatile memory step to caching control unit and system comprises: cache management subelement is write at nonvolatile memory and controlled after data write nonvolatile memory by subelement, notification signal data being write nonvolatile memory is sent completely, to discharge the operating right of cache module to system to chooser unit and system.
The invention has the beneficial effects as follows: the situation being different from prior art, in storage system of the present invention, memory control module is used for when main control module sends the write order to nonvolatile memory, be stored in cache module according to this write order by needing the data writing nonvolatile memory, after completing the write operation to nonvolatile memory and when main control module does not send write order to nonvolatile memory, the operating right of cache module is discharged to main control module, by the way, during the non-write operation of nonvolatile memory, the operating right of cache module is discharged to main control module, thus the internal memory making main control module this cache module can be used as system uses, thus while raising system performance, cache module is fully used, the waste of memory resource can be reduced, and the capacity of Installed System Memory can be increased.
Accompanying drawing explanation
Fig. 1 is the structural representation of storage system one embodiment of the present invention;
Fig. 2 is in the storage system of Fig. 1, the signal in the write operation process of nonvolatile memory and data flow schematic diagram;
Fig. 3 is the concrete structure schematic diagram of the storage system shown in Fig. 1;
Fig. 4 is the storage system shown in Fig. 3, the signal in the write operation process of nonvolatile memory and data flow schematic diagram;
Fig. 5 is the process flow diagram of control method one embodiment of the nonvolatile memory of storage system of the present invention;
Fig. 6 is that in control method one embodiment of the nonvolatile memory of storage system of the present invention, Memory Controller receiving system is to the process flow diagram of the write order of nonvolatile memory;
Fig. 7 is in control method one embodiment of the nonvolatile memory of storage system of the present invention, and caching control unit is stored in process flow diagram in cache module according to received write operation information by needing to write the data of nonvolatile memory;
Fig. 8 is in control method one embodiment of the nonvolatile memory of storage system of the present invention, the operating right of cache module, after completing the write operation to nonvolatile memory and when system does not send write order to nonvolatile memory, discharges to the process flow diagram of system by Memory Controller;
Fig. 9 is in control method one embodiment of the nonvolatile memory of storage system of the present invention, caching control unit reads according to read command and is stored in the data that needing in cache module writes nonvolatile memory, and read data is sent to the process flow diagram of nonvolatile memory control module.
Embodiment
Below in conjunction with drawings and embodiments, the present invention is described in detail.
Consult Fig. 1, in an embodiment of storage system of the present invention, storage system comprises main control module 1, memory control module 2, nonvolatile memory 3 and cache module 4.Memory control module 2 is connected with main control module 1, and nonvolatile memory 3 is all connected with memory control module 1 with cache module 4.Wherein, this main control module 1 is the central processing unit (CPU) of system, and cache module 4 writes buffer memory for increased in systems in which one.Storage system also comprises RAM control module 5 and RAM6, RAM control module 5 is connected with main control module 1, and RAM6 and RAM control module 5 connects.RAM6 is the internal memory of system, and RAM control module 5 is for controlling the accessing operation to RAM6.Be specially, RAM control module 5, for when receiving the read command of main control module 1 couple of RAM6, reads the data in RAM6; Write needing in the data write RAM in RAM6 when receiving the write order of main control module 1 couple of RAM6.
Memory control module 2 is for controlling the accessing operation to nonvolatile memory 3.During the write operation of nonvolatile memory 3, memory control module 2 receives the write order to nonvolatile memory 3 that main control module 1 sends, and is temporarily stored in needing the data writing nonvolatile memory 3 in cache module according to this write order.After being stored in cache module by needing the data writing nonvolatile memory, or also can be to need the data of write nonvolatile memory to be stored in the process of cache module, memory control module 2 reads the data needing to write nonvolatile memory 3 stored in cache module 4, and by read data write nonvolatile memory 3, thus realize the write operation to nonvolatile memory 3.This cache module 4 can use Parasites Fauna or random access storage device to realize.By the effect of cache module 4, by the data quick storage of nonvolatile memory 3 in cache module 4, so that system can perform other operation, thus the performance of system can be improved.
Memory control module 2 is after writing nonvolatile memory 3 by the data of the nonvolatile memory in cache module 4, also when namely main control module 1 does not carry out write operation to nonvolatile memory 3, the notification signal completed the data of the nonvolatile memory 3 in cache module 4 write nonvolatile memory 3 is sent to main control module 1, to notify that cache module 4 can be used as internal memory or other storage uses of system by main control module 1, thus realize the operating right of cache module 4 to discharge to main control module 1, cache module 4 can be made thus to be fully used, reduce the waste of memory resource, and increase the capacity of Installed System Memory.
Certainly, in other embodiments, also can be the data of cache module 4 are being write in the process of nonvolatile memory 3, the operating right being about to the cache module of the data for storing the nonvolatile memory write discharges to main control module 1, also can be after all processes of the write operation completing nonvolatile memory 3, the operating right of cache module 4 is discharged to main control module 1, can also be after the write operation of nonvolatile memory 3, after a set time the operating right of cache module 4 is discharged to main control module 1, specifically do not limit herein.
Continue to consult Fig. 1, and composition graphs 2, the memory control module 2 of present embodiment comprises caching control unit 21 and nonvolatile memory control module 22.Wherein, when needs write data to nonvolatile memory 3, main control module 1 sends write order, nonvolatile memory control module 22 receives the write order to nonvolatile memory 3 that main control module 1 sends, and this write order is converted to writes sequential, data are write nonvolatile memory 3 at subsequent process according to writing sequential.Meanwhile, nonvolatile memory control module 22 sends write operation information according to this write order to caching control unit 21.This write operation information such as comprises write signal and the data of nonvolatile memory 3 is write the address information in cache module.Caching control unit 21, according to received write operation information, is stored in needing the data writing nonvolatile memory 3 in cache module 4.Be stored in needing the data writing nonvolatile memory 3 after in cache module 4 at caching control unit 21, or also can be stored in the process of cache module 4 at caching control unit 21 by these data, nonvolatile memory control module 22 sends the read command of the data reading the nonvolatile memory be stored in cache module 4 to caching control unit 21.Caching control unit 21 reads according to this read command and is stored in the data that needing in cache module 4 writes nonvolatile memory 3, and read data are sent to nonvolatile memory control module 22, thus nonvolatile memory control module 22 is by received data write nonvolatile memory 3, to realize the write operation to nonvolatile memory.
In addition, nonvolatile memory control module 22 is by after the data of the nonvolatile memory in cache module 4 write nonvolatile memory 3, send the notification signal completed the data of the nonvolatile memory 3 in cache module 4 write nonvolatile memory 3 to main control module 1 and caching control unit 21 simultaneously, to notify that cache module 4 can be used as internal memory or other storage uses of system by main control module 1, and notice caching control unit 21 does not need to receive the order from nonvolatile memory control module 22 again, thus realize the operating right of cache module 4 to discharge to main control module 1.Main control module 1 can after writing nonvolatile memory 3 by the data of cache module 4, the internal memory of cache module 4 as system is used, cache module 4 can be made thus to be fully used, to reduce the waste of memory resource, and the capacity of Installed System Memory can be increased.In addition, in the non-write operation period of nonvolatile memory, namely when main control module 1 is not given an order to nonvolatile memory, the operating right of cache module 4 also discharges to main control module 1, thus cache module 4 can be stored use as the internal memory of system or other by main control module 1 during the non-write operation of nonvolatile memory 3, thus cache module 4 can be made to be fully used.
Further, consult Fig. 3, and composition graphs 4, in the present embodiment, nonvolatile memory control module 22 comprises nonvolatile memory and writes control subelement 221 and cache management subelement 222.Caching control unit 21 comprises non-volatile memory controller command process subelement 211, central processing unit command process subelement 212, buffer memory write control subelement 213, cache read controls subelement 214 and chooser unit 215.
Caching control unit 21 is except receiving the order from nonvolatile memory control module 22, and also can receive the order from main control module 1,212, central processing unit command process subelement is for receiving the order of main control module 1.During whether chooser unit 215 is write operation according to nonvolatile memory 3, select the order from the wherein side in nonvolatile memory control module 22 and main control module 1 to send to buffer memory to write and control subelement 213, namely the order of the wherein side from central processing unit command process subelement 212 and non-volatile memory controller command process subelement 211 is selected, cache read is controlled the data selection that subelement 214 reads simultaneously and return.
When main control module 1 initiates the write order to nonvolatile memory 3, nonvolatile memory is write and is controlled subelement 221 and receive the write order to nonvolatile memory that main control module 1 sends, and this write order is converted to writes sequential, send write operation control signal to cache management subelement 222 simultaneously.Cache management subelement 222 is write according to nonvolatile memory and is controlled the write operation control signal that subelement 221 sends and send write operation information to caching control unit 21, and this write operation information comprises write signal and is stored in address information in cache module 4 by needing to write the data of nonvolatile memory.In caching control unit 21, the write operation information that non-volatile memory controller command process subelement 211 sends for receiving cache management subelement 222.Chooser unit 215 selects the write operation information from non-volatile memory controller command process subelement 211, this write operation information is sent to buffer memory to write and controls subelement 213.Buffer memory is write and is controlled subelement 213 according to write operation information, is stored in needing the data writing nonvolatile memory 3 in corresponding cache module 4.Writing at buffer memory controls after data write cache module 4 by subelement 213, nonvolatile memory is write and is controlled subelement 221 to the read command needing the data writing nonvolatile memory 3 in cache management subelement 222 transmission reading cache module 4, to send read command by cache management subelement 222 to non-volatile memory controller command process unit 211.Chooser unit 215 selects the read command from non-volatile memory controller command process unit 211, this read command is sent to cache read to control subelement 214.Cache read controls subelement 214 from cache module 4, reads the data needing to write nonvolatile memory 3 according to read command, the data that chooser unit 215 selects cache read control subelement 214 to read send to non-volatile memory controller command process subelement 211, to send to cache management subelement 222 by non-volatile memory controller command process subelement 211 by needing the data writing nonvolatile memory 3.Received data send to nonvolatile memory to write and control subelement 221 by cache management subelement 222, thus nonvolatile memory write control subelement 221 data are write in nonvolatile memory, to realize the write operation to nonvolatile memory.
Nonvolatile memory is write and is controlled subelement 221 by after the data of the nonvolatile memory 3 in cache module 4 write nonvolatile memory 3, send the notification signal completed the data of the nonvolatile memory in cache module 4 write nonvolatile memory to main control module 1 and chooser unit 215 simultaneously, to notify that cache module 4 can be used as internal memory or other storage uses of system by main control module 1, and notice chooser unit 215 does not need to select the order from nonvolatile memory control module 22 again, thus realize the operating right of cache module 4 to discharge to main control module 1.Main control module 1 can after the data write nonvolatile memory when cache module 4, the internal memory of cache module 4 as system is used, and during the non-write operation of nonvolatile memory 3, the internal memory of cache module 4 as system still can use by main control module 1, cache module 4 can be made thus to be fully used, and the capacity of Installed System Memory can be increased.
Consult Fig. 5, in control method one embodiment of the nonvolatile memory of storage system of the present invention, storage system comprises the Memory Controller for controlling nonvolatile memory.Nonvolatile memory is connected with Memory Controller, and Memory Controller is connected with the central processing unit of system, to receive the order of central processing unit.Described control method comprises the steps:
Step S501: Memory Controller receiving system is to the write order of nonvolatile memory.
Memory Controller is for controlling the access to nonvolatile memory.When the central processing unit of system needs to carry out write operation to nonvolatile memory, by the write order of Memory Controller receiving system, to carry out write operation according to this write order to nonvolatile memory.
Step S502: Memory Controller is stored in needing the data writing nonvolatile memory in cache module according to write order.
Because nonvolatile memory is slow storage, therefore increase by a cache module in systems in which and write buffer memory to improve system performance as nonvolatile memory.By the effect of cache module, can by the data quick storage of nonvolatile memory in cache module, so that system can perform other operation.
Step S503: the operating right of cache module, after completing the write operation to nonvolatile memory and when system does not send write order to nonvolatile memory, discharges to system by Memory Controller.
The data of the nonvolatile memory be temporarily stored in cache module write in nonvolatile memory by Memory Controller, to complete the write operation to nonvolatile memory, afterwards the operating right of cache module is discharged to system, thus this cache module can be stored use as the internal memory of system or other by system, cache module can be made thus to be fully utilized, reduce the waste of memory resource, and the capacity of Installed System Memory can be increased.
Wherein, the Memory Controller of present embodiment comprises nonvolatile memory control module and caching control unit.
Consult Fig. 6, the step of Memory Controller receiving system to the write order of nonvolatile memory specifically comprises:
Step S601: the nonvolatile memory control module receiving system of Memory Controller is to the write order of nonvolatile memory.
Nonvolatile memory control module is for controlling the access to nonvolatile memory, and system is received by nonvolatile memory control module the write order of nonvolatile memory.Further, nonvolatile memory control module comprises nonvolatile memory and writes and control subelement and cache management subelement.Nonvolatile memory is write and is controlled subelement receiving system to the write order of nonvolatile memory, and sends write operation control signal to cache management subelement.
Step S602: nonvolatile memory control module is according to the caching control unit transmission write operation information of write order to Memory Controller.
Particularly, after the cache management subelement of nonvolatile memory control module receives described write operation control signal, this write operation information is sent according to this write operation signal to caching control unit.
Thus caching control unit is stored in needing the data writing nonvolatile memory in cache module according to received write operation information.Caching control unit is for controlling the access to cache module.When carrying out write operation to nonvolatile memory, by caching control unit first by needing to write in the data write cache module of nonvolatile memory, to improve system performance.
Further, caching control unit comprise non-volatile memory controller command process subelement, central processing unit command process subelement, buffer memory write control subelement, cache read controls subelement and chooser unit.Therefore, consult Fig. 7, caching control unit is stored in concrete steps in cache module according to received write operation information by needing to write the data of nonvolatile memory, comprises the steps:
Step S701: the non-volatile memory controller command process subelement of caching control unit receives write operation information.
Step S702: the write operation information that the chooser Unit selection non-volatile memory controller command process subelement of caching control unit receives sends.
Step S703: the buffer memory of caching control unit is write control subelement and is stored in needing the data writing nonvolatile memory in cache module according to the write operation information sent from chooser unit.
By above-mentioned steps, caching control unit realizes writing needing in the data write cache module of nonvolatile memory.
Wherein, consult Fig. 8, in present embodiment, the operating right of cache module, after completing the write operation to nonvolatile memory and when system does not send write order to nonvolatile memory, discharges to the step of system, specifically comprises by Memory Controller:
Step S801: nonvolatile memory control module sends the read command needing the data writing nonvolatile memory of reading in cache module to caching control unit.
Particularly, when buffer memory write control subelement by need write nonvolatile memory data write cache module after, the nonvolatile memory of nonvolatile memory control module is write and is controlled subelement to the read command needing the data writing nonvolatile memory in cache management subelement transmission reading cache module, cache management subelement receives this read command, and this read command is sent to the non-volatile memory controller command process subelement of caching control unit.
Step S802: caching control unit reads according to read command and is stored in the data that needing in cache module writes nonvolatile memory, and read data are sent to nonvolatile memory control module.
Particularly, consult Fig. 9, comprise following sub-step:
Sub-step S8021: the non-volatile memory controller command process subelement of caching control unit receives the read command needing the data writing nonvolatile memory of reading in cache module.
Sub-step S8022: the read command that chooser Unit selection non-volatile memory controller command process subelement receives sends.
Sub-step S8023: the cache read of caching control unit controls subelement and reads the data needing write nonvolatile memory be stored in cache module according to the read command sent from chooser unit, and sends to nonvolatile memory to write control subelement read data.
Particularly, after cache read controls the data of the nonvolatile memory in subelement reading cache module, chooser Unit selection cache read controls the data that subelement reads, and returns to non-volatile memory controller command process subelement.Received data are sent to cache management subelement by non-volatile memory controller command process subelement, thus cache management subelement sends the data to nonvolatile memory writes control subelement.
By above-mentioned sub-step, caching control unit completes the read operation of the data read in cache module.
Step S803: data write in nonvolatile memory by nonvolatile memory control module, to complete the write operation to nonvolatile memory.
Be in particular, nonvolatile memory is write control subelement and data is write in nonvolatile memory.
Step S804: nonvolatile memory control module is sent completely notification signal data being write nonvolatile memory to caching control unit and system, to discharge the operating right of cache module to system.
Be in particular, cache management subelement is write at nonvolatile memory and is controlled after data write nonvolatile memory by subelement, central processing unit to chooser unit and system is sent completely notification signal data write in nonvolatile memory, to notify that chooser unit does not need to select the signal from nonvolatile memory control module again, and cache module can be stored use as the internal memory of system or other by the central processing unit of notice system, thus the operating right of cache module is discharged to the central processing unit of system.Thus, cache module during the non-write operation of nonvolatile memory, can store as internal memory or other and uses, make full use of memory resource, and can increase the capacity of Installed System Memory by central processing unit.
The foregoing is only embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a storage system, it is characterized in that, comprise: main control module, memory control module, nonvolatile memory and cache module, described memory control module is connected with described main control module, and described nonvolatile memory is all connected with described memory control module with described cache module;
Described memory control module is used for when described main control module sends the write order to described nonvolatile memory, be stored in described cache module according to described write order by needing the data writing described nonvolatile memory, after completing the write operation to described nonvolatile memory and when described main control module does not send write order to described nonvolatile memory, the operating right of described cache module is discharged to described main control module.
2. system according to claim 1, is characterized in that,
Described memory control module comprises caching control unit and nonvolatile memory control module;
The write order to described nonvolatile memory that described nonvolatile memory control module sends for receiving described main control module, and send write operation information according to described write order to described caching control unit;
Described caching control unit is used for being stored in described cache module according to described write operation information by needing the data writing described nonvolatile memory;
Described nonvolatile memory control module is also for sending the described read command needing the data writing nonvolatile memory of reading in described cache module to described caching control unit;
Described caching control unit is used for reading according to described read command the described data needing to write nonvolatile memory be stored in described cache module, and read described data are sent to described nonvolatile memory control module;
Described nonvolatile memory control module is used for after described data are write described nonvolatile memory, the notification signal described data being write described nonvolatile memory is sent completely, to discharge the operating right of described cache module to described main control module to described caching control unit and described main control module.
3. system according to claim 2, is characterized in that,
Described nonvolatile memory control module comprises:
Control subelement write by nonvolatile memory, for receiving the described write order of described main control module to described nonvolatile memory, and sends write operation control signal;
Cache management subelement, for according to described write operation control signal, sends described write operation information to described caching control unit;
Described nonvolatile memory is write and is controlled subelement also for sending the described described read command needing the data writing nonvolatile memory of reading in described cache module to described cache management subelement, to send described read command by described cache management subelement to described caching control unit.
4. system according to claim 3, is characterized in that,
Described caching control unit comprises:
Central processing unit command process subelement;
Non-volatile memory controller command process subelement, for receiving described write operation information and described read command;
Chooser unit, for during the write operation of described nonvolatile memory, the described write operation information selecting described non-volatile memory controller command process subelement to receive and described read command send;
Buffer memory writes control subelement, for being stored in described cache module according to the described write operation information sent from described chooser unit by needing the data writing described nonvolatile memory;
Cache read controls subelement, for reading the described data needing to write nonvolatile memory be stored in described cache module according to the described read command sent from described chooser unit, and described nonvolatile memory is sent to write control subelement read described data;
Wherein, described cache management subelement also controls after described data write described nonvolatile memory by subelement for writing at described nonvolatile memory, the notification signal described data being write described nonvolatile memory is sent completely, to discharge the operating right of described cache module to described main control module to described chooser unit and described main control module.
5. system according to claim 1, is characterized in that, also comprises:
RAM control module and RAM, described RAM control module is connected with described main control module, and described RAM is connected with described RAM control module;
Described RAM control module is used for the data read when receiving the read command of described main control module to described RAM in described RAM, and will the data write in described RAM be needed to write in described RAM when receiving the write order of described main control module to described RAM.
6. system according to claim 1, is characterized in that,
Described cache module is Parasites Fauna.
7. a control method for the nonvolatile memory of storage system, is characterized in that, comprising:
Memory Controller receiving system is to the write order of nonvolatile memory;
Described Memory Controller is stored in cache module according to described write order by needing the data writing described nonvolatile memory;
The operating right of described cache module, after completing the write operation to described nonvolatile memory and when system does not send write order to described nonvolatile memory, discharges to described system by described Memory Controller.
8. control method according to claim 7, is characterized in that,
The step of described Memory Controller receiving system to the write order of nonvolatile memory comprises:
The nonvolatile memory control module receiving system of described Memory Controller is to the write order of nonvolatile memory;
Described nonvolatile memory control module is according to the caching control unit transmission write operation information of described write order to described Memory Controller;
The step needing the data writing described nonvolatile memory to be stored in buffer memory comprises according to described write order by described Memory Controller:
Described caching control unit is stored in described cache module according to described write operation information by needing the data writing described nonvolatile memory;
The operating right of described buffer memory, after completing the write operation to described nonvolatile memory and when system does not send write order to described nonvolatile memory, discharges and comprises to the step of described system by described Memory Controller:
Described nonvolatile memory control module sends the described read command needing the data writing nonvolatile memory of reading in described cache module to described caching control unit;
Described caching control unit reads the described data needing to write nonvolatile memory be stored in described cache module according to described read command, and read described data are sent to described nonvolatile memory control module;
Described data write in described nonvolatile memory by described nonvolatile memory control module, to complete the write operation to described nonvolatile memory;
Described nonvolatile memory control module is sent completely to described caching control unit and described system the notification signal described data being write described nonvolatile memory, to discharge the operating right of described cache module to described system.
9. control method according to claim 8, is characterized in that,
The nonvolatile memory control module of described Memory Controller receives and comprises the step of the write order of nonvolatile memory:
The nonvolatile memory of described nonvolatile memory control module is write and is controlled subelement receiving system to the described write order of described nonvolatile memory, and sends write operation control signal;
Described nonvolatile memory control module comprises according to the step of described write order to the caching control unit transmission write operation information of described Memory Controller:
The cache management subelement of described nonvolatile memory control module receives described write operation control signal, and sends described write operation information according to described write operation control signal to described caching control unit;
Described nonvolatile memory control module sends to described caching control unit the described step of the read command of the data writing nonvolatile memory that needs read in described cache module and comprises:
Described nonvolatile memory is write and is controlled subelement to the described described read command needing the data writing nonvolatile memory in the described cache module of described cache management subelement transmission reading;
Described cache management subelement receives described read command, and described read command is sent to described caching control unit.
10. control method according to claim 9, is characterized in that,
The step needing the data writing described nonvolatile memory to be stored in described cache module comprises according to described write operation information by described caching control unit:
The non-volatile memory controller command process subelement of described caching control unit receives described write operation information;
The described write operation information that non-volatile memory controller command process subelement described in the chooser Unit selection of described caching control unit receives sends;
The buffer memory of described caching control unit is write control subelement and is stored in described cache module according to the described write operation information sent from described chooser unit by needing the data writing described nonvolatile memory;
Described caching control unit reads the described data needing to write nonvolatile memory be stored in described cache module according to described read command, and sends to the step of described nonvolatile memory control module to comprise read described data:
Described non-volatile memory controller command process subelement receives described read command;
The read command that described in described chooser Unit selection, non-volatile memory controller command process subelement receives sends;
The cache read of described caching control unit controls subelement and reads the described data needing to write nonvolatile memory be stored in described cache module according to the described read command sent from described chooser unit, and sends to described nonvolatile memory to write control subelement read described data;
The step that described data write in described nonvolatile memory comprises by described nonvolatile memory control module:
Described nonvolatile memory is write control subelement and is write in described nonvolatile memory by described data;
Described nonvolatile memory control module is sent completely to described caching control unit and described system the step described data being write the notification signal of described nonvolatile memory and comprises:
Described cache management subelement is write at described nonvolatile memory and is controlled after described data write described nonvolatile memory by subelement, the notification signal described data being write described nonvolatile memory is sent completely, to discharge the operating right of described cache module to described system to described chooser unit and described system.
CN201310746199.8A 2013-12-30 2013-12-30 A kind of control method of storage system and its nonvolatile memory Active CN104750424B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201310746199.8A CN104750424B (en) 2013-12-30 2013-12-30 A kind of control method of storage system and its nonvolatile memory
US14/311,221 US9043538B1 (en) 2013-12-30 2014-06-20 Memory system and method for controlling nonvolatile memory
PCT/CN2014/094998 WO2015101211A1 (en) 2013-12-30 2014-12-25 Memory system and control method for nonvolatile memory of system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310746199.8A CN104750424B (en) 2013-12-30 2013-12-30 A kind of control method of storage system and its nonvolatile memory

Publications (2)

Publication Number Publication Date
CN104750424A true CN104750424A (en) 2015-07-01
CN104750424B CN104750424B (en) 2018-12-18

Family

ID=53590191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310746199.8A Active CN104750424B (en) 2013-12-30 2013-12-30 A kind of control method of storage system and its nonvolatile memory

Country Status (1)

Country Link
CN (1) CN104750424B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109696878A (en) * 2019-01-03 2019-04-30 中电智能科技有限公司 Controller based on multiple buffer

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2603974Y (en) * 2002-12-27 2004-02-18 孙斌 Magnetic disc cache apparatus
CN101004798A (en) * 2006-12-30 2007-07-25 凤凰微电子(中国)有限公司 Smart card of supporting high performance computing, large capacity storage, high-speed transmission, and new type application
CN101089829A (en) * 2007-08-01 2007-12-19 杭州华三通信技术有限公司 Shared buffer store system and implementing method
WO2010030291A1 (en) * 2008-09-15 2010-03-18 Hewlett-Packard Development Company, L.P. Method and apparatus to manage non-volatile disk cache
CN101960430A (en) * 2007-07-25 2011-01-26 技佳科技有限公司 Hybrid nonvolatile memory
CN102043730A (en) * 2009-10-14 2011-05-04 索尼公司 Storage unit and memory system
US20120159040A1 (en) * 2010-12-15 2012-06-21 Dhaval Parikh Auxiliary Interface for Non-Volatile Memory System
CN103049394A (en) * 2012-11-30 2013-04-17 记忆科技(深圳)有限公司 Method and system for data caching of solid state disk

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2603974Y (en) * 2002-12-27 2004-02-18 孙斌 Magnetic disc cache apparatus
CN101004798A (en) * 2006-12-30 2007-07-25 凤凰微电子(中国)有限公司 Smart card of supporting high performance computing, large capacity storage, high-speed transmission, and new type application
CN101960430A (en) * 2007-07-25 2011-01-26 技佳科技有限公司 Hybrid nonvolatile memory
CN101089829A (en) * 2007-08-01 2007-12-19 杭州华三通信技术有限公司 Shared buffer store system and implementing method
WO2010030291A1 (en) * 2008-09-15 2010-03-18 Hewlett-Packard Development Company, L.P. Method and apparatus to manage non-volatile disk cache
CN102043730A (en) * 2009-10-14 2011-05-04 索尼公司 Storage unit and memory system
US20120159040A1 (en) * 2010-12-15 2012-06-21 Dhaval Parikh Auxiliary Interface for Non-Volatile Memory System
CN103049394A (en) * 2012-11-30 2013-04-17 记忆科技(深圳)有限公司 Method and system for data caching of solid state disk

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109696878A (en) * 2019-01-03 2019-04-30 中电智能科技有限公司 Controller based on multiple buffer
CN109696878B (en) * 2019-01-03 2020-10-02 中电智能科技有限公司 Controller based on multiple buffer zones

Also Published As

Publication number Publication date
CN104750424B (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN110058794B (en) Data storage device for dynamically executing garbage recovery and operation method
US11237765B2 (en) Data writing method and storage device
CN108572933B (en) Data buffer pointer fetching for direct memory access
EP2351040B1 (en) Page buffer program command and methods to reprogram pages without re-inputting data to a memory device
US8392649B2 (en) Memory storage device, controller, and method for responding to host write commands triggering data movement
US11669272B2 (en) Predictive data transfer based on availability of media units in memory sub-systems
KR20110058028A (en) Multi-chip memory system and data transfer method thereof
WO2020227294A1 (en) Timed data transfer between a host system and a memory sub-system
TW201621912A (en) System and method for configuring and controlling non-volatile cache
US8285920B2 (en) Memory device with dynamic controllable physical logical mapping table loading
KR102526608B1 (en) Electronic device and operating method thereof
CN110109851B (en) Electronic system with host and memory controller and method of operating the same
US11537315B2 (en) Apparatus and method for erasing data programmed in a non-volatile memory block in a memory system
US20040193864A1 (en) System and method for actively booting a computer system
KR20160024546A (en) Data storage device and operating method thereof
CN113760185A (en) Memory block recovery method and device
US20240036768A1 (en) Partial Execution of a Write Command from a Host System
CN104750425A (en) Storage system and control method for nonvolatile memory of storage system
US20220300172A1 (en) Memory system, information processing system, and host device
US20140047162A1 (en) Memory system capable of preventing data destruction
US11055020B2 (en) Data storage device sharing operations with another data storage device and method of operating the same
TW201908958A (en) Method for performing programming management in a memory device, and associated memory device and controller thereof
CN104750424A (en) Storage system and control method for nonvolatile memory of storage system
US20160018994A1 (en) Memory system and method
JP2011070470A (en) Semiconductor memory device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant