CN104750424B - A kind of control method of storage system and its nonvolatile memory - Google Patents

A kind of control method of storage system and its nonvolatile memory Download PDF

Info

Publication number
CN104750424B
CN104750424B CN201310746199.8A CN201310746199A CN104750424B CN 104750424 B CN104750424 B CN 104750424B CN 201310746199 A CN201310746199 A CN 201310746199A CN 104750424 B CN104750424 B CN 104750424B
Authority
CN
China
Prior art keywords
nonvolatile memory
control unit
data
subelement
memory
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.)
Active
Application number
CN201310746199.8A
Other languages
Chinese (zh)
Other versions
CN104750424A (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 kind of storage system and its control methods of nonvolatile memory, in the system, during the write operation of nonvolatile memory, the write order that memory control module is issued according to main control module, it will need to be written in the data write-in cache module of nonvolatile memory, after completing to the write operation of nonvolatile memory and when main control module does not issue write order to nonvolatile memory, the operating right of cache module is released to main control module by memory control module.By the above-mentioned means, reducing the waste of memory resource, and the capacity of Installed System Memory can be increased while the present invention can be improved system performance.

Description

A kind of control method of storage system and its nonvolatile memory
Technical field
The present invention relates to memory technology fields, more particularly to the control of a kind of storage system and its nonvolatile memory Method processed.
Background technique
With the fast development of integrated circuit, the use of portable electronic product is also more and more extensive, and then also pushes The development of system on chip.System on chip refers to integrates a complete system on a single chip, generally includes central processing unit (CPU), read only memory ROM, random access storage device RAM, nonvolatile memory (such as Flash/EEPROM) and other function It can module.Wherein, RAM is the most used in system and interacts most units with CPU, and nonvolatile memory belongs to slowly Fast memory, especially write operation time-consuming are very long.
In the prior art, increase by one piece of write buffer in systems usually to improve system performance.When will be to non-volatile It when memory carries out write operation, first writes data into write buffer, so that system can execute other operations, and non-volatile deposits Memory controller by the data write-in nonvolatile memory in write buffer, is write nonvolatile memory with realizing simultaneously Operation.In this way, which system can be rapidly temporary by the data that nonvolatile memory is written by the buffer function of write buffer When be stored in write buffer, to execute other operations, compared to directly to nonvolatile memory be written data, can subtract The write time of few system, improve the performance of system.
However, being a non-recurrent event to the write operation of nonvolatile memory, so that corresponding write buffer is big It is to result in waste of resources in most time in an idle state.
Summary of the invention
The invention mainly solves the technical problem of providing a kind of storage system and its controlling parties of nonvolatile memory Method while can be improved system performance, reduces the waste of memory resource, and can increase the capacity of Installed System Memory.
In order to solve the above technical problems, one technical scheme adopted by the invention is that: a kind of storage system is provided, comprising: Main control module, memory control module, nonvolatile memory and cache module, memory control module and main control module connect It connects, nonvolatile memory and cache module are connect with memory control module;Memory control module is used in master control mould When block issues the write order to nonvolatile memory, the data for needing to be written nonvolatile memory are stored according to write order In cache module, not to nonvolatile memory after completing to the write operation of nonvolatile memory and in main control module When issuing write order, the operating right of cache module is released to main control module.
Wherein, memory control module includes caching control unit and nonvolatile memory control unit;It is non-volatile Memory control unit is used to receive the write order to nonvolatile memory of main control module sending, and according to write order to slow It deposits control unit and sends write operation information;Caching control unit according to write operation information for will need that non-volatile memories are written The data of device are stored in cache module;Nonvolatile memory control unit, which is also used to send to read to caching control unit, to be delayed The read command of the data for needing to be written nonvolatile memory in storing module;Caching control unit according to read command for reading The data for needing to be written nonvolatile memory being stored in cache module, and read data are sent to non-volatile Memory control unit;Nonvolatile memory control unit is used for after writing data into nonvolatile memory, to caching Control unit and main control module are sent completely the notification signal for writing data into nonvolatile memory, by the behaviour of cache module Main control module is released to as permission.
Wherein, nonvolatile memory control unit includes: that nonvolatile memory writes control subelement, for receiving master Module is controlled to the write order of nonvolatile memory, and issues write operation control signal;Cache management subelement is write for basis Operating control signal sends write operation information to caching control unit;Nonvolatile memory write control subelement be also used to Cache management subelement sends the read command for reading the data for needing to be written nonvolatile memory in cache module, to pass through Cache management subelement sends read command to caching control unit.
Wherein, caching control unit includes: central processing unit command process subelement;Non-volatile memory controller life Processing subelement is enabled, for receiving write operation information and read command;Subelement is selected, for writing behaviour in nonvolatile memory During work, the received write operation information of non-volatile memory controller command process subelement institute and read command is selected to be sent out It send;Caching writes control subelement, non-volatile for will need to be written according to the write operation information sent from selection subelement The data of memory are stored in cache module;Caching reads control subelement, for according to the reading sent from selection subelement The data for needing to be written nonvolatile memory being stored in cache module are read in order, and read data are sent to Nonvolatile memory writes control subelement;Wherein, cache management subelement is also used to write control in nonvolatile memory After unit writes data into nonvolatile memory, to selection subelement and main control module be sent completely write data into it is non-volatile The notification signal of property memory, is released to main control module for the operating right of cache module.
Wherein, further includes: RAM control module and RAM, RAM control module are connect with main control module, and RAM and RAM control mould Block connection;RAM control module is for the data when receiving read command of the main control module to RAM in reading RAM, and is connecing It will need to be written when receiving write order of the main control module to RAM in the write-in of the data in RAM RAM.
Wherein, cache module is register group.
In order to solve the above technical problems, another technical solution used in the present invention is: providing a kind of the non-of storage system The control method of volatile memory, comprising: Memory Controller receives system to the write order of nonvolatile memory;Storage The data for needing to be written nonvolatile memory are stored in cache module by device controller according to write order;Memory Controller After completing to the write operation of nonvolatile memory and when system does not issue write order to nonvolatile memory, will delay The operating right of storing module is released to system.
Wherein, it includes: Memory Controller that Memory Controller, which was received to the step of write order of nonvolatile memory, Nonvolatile memory control unit receive system to the write order of nonvolatile memory;Nonvolatile memory control is single Member sends write operation information to the caching control unit of Memory Controller according to write order;Memory Controller is according to write order It include: that caching control unit is believed according to write operation by the step that the data for needing to be written nonvolatile memory are stored in caching The data for needing to be written nonvolatile memory are stored in cache module by breath;Memory Controller is completed to non-volatile After the write operation of memory and when system does not issue write order to nonvolatile memory, the operating right of caching is discharged It include: that nonvolatile memory control unit sends the needs read in cache module to caching control unit to the step of system The read command of the data of nonvolatile memory is written;Caching control unit is stored in cache module according to read command reading It needs to be written the data of nonvolatile memory, and read data is sent to nonvolatile memory control unit;It is non- Volatile memory control unit writes data into nonvolatile memory, to complete to write behaviour to nonvolatile memory Make;Nonvolatile memory control unit is sent completely to caching control unit and system and writes data into nonvolatile memory Notification signal, the operating right of cache module is released to system.
Wherein, the nonvolatile memory control unit of Memory Controller receives the write order to nonvolatile memory The step of include: nonvolatile memory control unit nonvolatile memory write control subelement receive system to non-volatile Property memory write order, and issue write operation control signal;Nonvolatile memory control unit is according to write order to storage The caching control unit of device controller sends the caching pipe that the step of write operation information includes: nonvolatile memory control unit It manages subelement and receives write operation control signal, and signal is controlled according to write operation and sends write operation information to caching control unit; Nonvolatile memory control unit, which sends to read in cache module to caching control unit, needs that non-volatile memories are written The step of read command of the data of device includes: that nonvolatile memory writes control subelement to the transmission reading of cache management subelement The read command of the data for needing to be written nonvolatile memory in cache module;Cache management subelement receives read command, and Read command is sent to caching control unit.
Wherein, the data for needing to be written nonvolatile memory are stored in slow by caching control unit according to write operation information Step in storing module includes: that the non-volatile memory controller command process subelement of caching control unit receives write operation Information;The selection subelement selection non-volatile memory controller command process subelement institute of caching control unit is received to be write Operation information is sent;The caching of caching control unit writes control subelement according to the write operation sent from selection subelement The data for needing to be written nonvolatile memory are stored in cache module by information;Caching control unit is read according to read command The data for needing to be written nonvolatile memory being stored in cache module, and read data are sent to non-volatile The step of memory control unit includes: that non-volatile memory controller command process subelement receives read command;Selection The received read command of Unit selection non-volatile memory controller command process subelement institute is sent;Caching control unit Caching read control subelement and write according to the needs that are stored in cache module of read command reading sent from selection subelement Enter the data of nonvolatile memory, and read data are sent to nonvolatile memory and write control subelement;It is non-easy The step that the property lost memory control unit writes data into nonvolatile memory includes: that nonvolatile memory writes control Unit writes data into nonvolatile memory;Nonvolatile memory control unit is sent to caching control unit and system The step of completion writes data into the notification signal of nonvolatile memory includes: cache management subelement in non-volatile memories Device write control subelement write data into nonvolatile memory after, to selection subelement and system be sent completely and write data into The operating right of cache module is released to system by the notification signal of nonvolatile memory.
The beneficial effects of the present invention are: be in contrast to the prior art, in storage system of the invention, memory control Module is used to need to be written according to the write order non-volatile when main control module issues the write order to nonvolatile memory Property memory data be stored in cache module, complete to the write operation of nonvolatile memory after and in main control module When not issuing write order to nonvolatile memory, the operating right of cache module is released to main control module, passes through above-mentioned side The operating right of cache module is released to main control module during the non-write operation of nonvolatile memory by formula, so that Main control module can use the cache module as the memory of system, thus while improving system performance, so that caching mould Block is fully used, and can reduce the waste of memory resource, and can increase the capacity of Installed System Memory.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of one embodiment of storage system of the present invention;
Fig. 2 is the signal and data flow signal in the storage system of Fig. 1, during the write operation of nonvolatile memory Figure;
Fig. 3 is the concrete structure schematic diagram of storage system shown in FIG. 1;
Fig. 4 is storage system shown in Fig. 3, and the signal and data flow during the write operation of nonvolatile memory show It is intended to;
Fig. 5 is the flow chart of one embodiment of control method of the nonvolatile memory of storage system of the present invention;
Fig. 6 is memory control in one embodiment of control method of the nonvolatile memory of storage system of the present invention Device receives system to the flow chart of the write order of nonvolatile memory;
Fig. 7 is buffer control list in one embodiment of control method of the nonvolatile memory of storage system of the present invention The data for needing to be written nonvolatile memory are stored in the stream in cache module to member by write operation information based on the received Cheng Tu;
Fig. 8 is memory control in one embodiment of control method of the nonvolatile memory of storage system of the present invention Device is incited somebody to action after completing to the write operation of nonvolatile memory and when system does not issue write order to nonvolatile memory The operating right of cache module is released to the flow chart of system;
Fig. 9 is buffer control list in one embodiment of control method of the nonvolatile memory of storage system of the present invention Member reads the data for needing to be written nonvolatile memory that are stored in cache module according to read command, and by read number According to the flow chart for being sent to nonvolatile memory control unit.
Specific embodiment
Below in conjunction with drawings and embodiments, the present invention is described in detail.
Refering to fig. 1, in an embodiment of storage system of the present invention, storage system includes main control module 1, memory control Module 2, nonvolatile memory 3 and cache module 4.Memory control module 2 is connect with main control module 1, non-volatile memories Device 3 and cache module 4 are connect with memory control module 2.Wherein, which is the central processing unit of system (CPU), cache module 4 is an increased write buffer in systems.Storage system further includes RAM control module 5 and RAM6, RAM control module 5 is connect with main control module 1, and RAM6 is connect with RAM control module 5.RAM6 is the memory of system, and RAM controls mould Block 5 is used to control the access operation to RAM6.Specifically, RAM control module 5 is for receiving main control module 1 to RAM6's When read command, the data in RAM6 are read;It will need to be written in RAM6 when receiving write order of the main control module 1 to RAM6 Data are written in RAM.
Memory control module 2 is then for controlling the access operation to nonvolatile memory 3.In nonvolatile memory During 3 write operation, memory control module 2 receives the write order to nonvolatile memory 3 that main control module 1 issues, and The data for needing to be written nonvolatile memory 3 are temporarily stored in cache module according to the write order.It will need to be written non- After the data of volatile memory are stored in cache module, or it is also possible to need to be written the data of nonvolatile memory During being stored in cache module, memory control module 2 read in cache module 4 it is stored need to be written it is non-volatile Property memory 3 data, and by read data be written nonvolatile memory 3 in, thus realize to non-volatile memories The write operation of device 3.Register group or random access storage device can be used to realize for the cache module 4.Pass through the work of cache module 4 With, it can be operated by the data quick storage of nonvolatile memory 3 in cache module 4 so that others can be performed in system, So as to improve the performance of system.
Non-volatile memories are being written in the data of nonvolatile memory in cache module 4 by memory control module 2 After device 3 namely main control module 1 not to nonvolatile memory 3 carry out write operation when, to main control module 1 transmission completed by The notification signal of the data write-in nonvolatile memory 3 of nonvolatile memory 3 in cache module 4, to notify master control mould Block 1 can use cache module 4 as the memory of system or other storages, to realize the operating right of cache module 4 It is released to main control module 1, thus it enables that cache module 4 is fully used, reduces the waste of memory resource, and increase system The capacity of system memory.
Certainly, in other embodiments, it is also possible to the data of cache module 4 nonvolatile memory 3 is being written During, i.e., the operating right for the cache module for being used to store the data of the nonvolatile memory write is released to Main control module 1 is also possible to the operation of cache module 4 after completing all processes of write operation of nonvolatile memory 3 Permission is released to main control module 1, after can also be the write operation for completing nonvolatile memory 3, will delay after a set time The operating right of storing module 4 is released to main control module 1, herein without specifically limiting.
With continued reference to Fig. 1, and Fig. 2 is combined, the memory control module 2 of present embodiment includes 21 He of caching control unit Nonvolatile memory control unit 22.Wherein, when needing that data are written to nonvolatile memory 3, main control module 1 is issued Write order, nonvolatile memory control unit 22 receive the write order to nonvolatile memory 3 that main control module 1 issues, And the write order is converted to and writes timing, to write data into nonvolatile memory 3 according to timing is write in subsequent process.Together When, nonvolatile memory control unit 22 sends write operation information to caching control unit 21 according to the write order.This writes behaviour Make information and the address information in cache module is written for example including write signal and by the data of nonvolatile memory 3.Caching control The data for needing to be written nonvolatile memory 3 are stored in caching mould by unit 21 processed write operation information based on the received In block 4.After the data for needing to be written nonvolatile memory 3 are stored in cache module 4 by caching control unit 21, or It is also possible to during the data are stored in cache module 4 by caching control unit 21, nonvolatile memory control is single Member 22 sends the reading life for reading the data for having been stored in the nonvolatile memory in cache module 4 to caching control unit 21 It enables.Caching control unit 21, which reads to be stored in cache module 4 according to the read command, needs to be written nonvolatile memory 3 Data, and read data are sent to nonvolatile memory control unit 22, so that nonvolatile memory control is single Received data are written in nonvolatile memory 3 member 22, to realize the write operation to nonvolatile memory.
In addition, the data of the nonvolatile memory in cache module 4 are written nonvolatile memory control unit 22 After nonvolatile memory 3, while having completed to main control module 1 and the transmission of caching control unit 21 will be in cache module 4 The notification signal of the data write-in nonvolatile memory 3 of nonvolatile memory 3, to notify main control module 1 that can will cache Module 4 is used as the memory of system or other storages, and notice caching control unit 21 does not need to be received again from non-easy The operating right of cache module 4 is released to main control module 1 to realize by the order of the property lost memory control unit 22.Master control Module 1 can be after being written nonvolatile memory 3 for the data of cache module 4, and the memory by cache module 4 as system makes With reducing the waste of memory resource, and Installed System Memory can be increased thus, it is possible to make cache module 4 be fully used Capacity.In addition, that is, main control module 1 does not issue nonvolatile memory in the non-write operation period of nonvolatile memory When order, the operating right of cache module 4 is also released to main control module 1, so that main control module 1 is in nonvolatile memory 3 Cache module 4 can be used as the memory of system or other storages during non-write operation, so as to obtain cache module 4 To making full use of.
Further, refering to Fig. 3, and Fig. 4 is combined, in the present embodiment, nonvolatile memory control unit 22 is wrapped It includes nonvolatile memory and writes control subelement 221 and cache management subelement 222.Caching control unit 21 includes non-volatile Memory Controller command process subelement 211, central processing unit command process subelement 212, caching write control subelement 213, caching reads control subelement 214 and selection subelement 215.
Caching control unit 21 can also receive and other than receiving the order from nonvolatile memory control unit 22 From the order of main control module 1, central processing unit command process subelement 212 is then for receiving the order of main control module 1.Selection During whether unit 215 is write operation according to nonvolatile memory 3, selection comes from 22 He of nonvolatile memory control unit The order of a wherein side in main control module 1 is sent to caching and writes control subelement 213, i.e., at central processing unit order The order of a wherein side for reason subelement 212 and non-volatile memory controller command process subelement 211 selects, together When will caching read control subelement 214 read data selection return.
When main control module 1 initiates the write order to nonvolatile memory 3, nonvolatile memory writes control subelement 221 receive the write order to nonvolatile memory that main control module 1 issues, and the write order is converted to and writes timing, simultaneously Write operation, which is issued, to cache management subelement 222 controls signal.Cache management subelement 222 writes control according to nonvolatile memory The write operation that subunit 221 is sent controls signal and sends write operation information, the write operation packet to caching control unit 21 It includes write signal and the data for needing to be written nonvolatile memory is stored in the address information in cache module 4.Buffer control In unit 21, non-volatile memory controller command process subelement 211 is used to receive the transmission of cache management subelement 222 Write operation information.Subelement 215 is selected to select the write operation from non-volatile memory controller command process subelement 211 The write operation information is sent to caching and writes control subelement 213 by information.Caching is write control subelement 213 and is believed according to write operation Breath, the data for needing to be written nonvolatile memory 3 are stored in corresponding cache module 4.Control subelement is write in caching After 213 write data into cache module 4, nonvolatile memory is write control subelement 221 and is sent to cache management subelement 222 The read command of the data for needing to be written nonvolatile memory 3 in cache module 4 is read, to pass through cache management subelement 222 send read command to non-volatile memory controller command process unit 211.Select the selection of subelement 215 from non-easy The read command is sent to caching and reads control subelement 214 by the read command of the property lost Memory Controller command process unit 211. Caching reads control subelement 214 and reads the data for needing to be written nonvolatile memory 3 from cache module 4 according to read command, The selection selection caching of subelement 215 reads the control read data of subelement 214 and is sent to non-volatile memory controller life Processing subelement 211 is enabled, it is non-volatile will need to be written by non-volatile memory controller command process subelement 211 The data of memory 3 are sent to cache management subelement 222.Received data are sent to by cache management subelement 222 Nonvolatile memory write control subelement 221, thus nonvolatile memory write control subelement 221 write data into it is non-easily In the property lost memory, to realize the write operation to nonvolatile memory.
Nonvolatile memory writes control subelement 221 and the data of the nonvolatile memory 3 in cache module 4 is written After nonvolatile memory 3, while having completed to main control module 1 and the selection transmission of subelement 215 will be non-in cache module 4 The notification signal of the data write-in nonvolatile memory of volatile memory, to notify main control module 1 can be by cache module 4 It is used as the memory of system or other storages, and notice selection subelement 215 does not need reselection and deposits from non-volatile The operating right of cache module 4 is released to main control module 1 to realize by the order of reservoir control unit 22.Main control module 1 can With after nonvolatile memory is written in the data of cache module 4, the memory by cache module 4 as system is used, and During the non-write operation of nonvolatile memory 3, main control module 1 still can make cache module 4 as the memory of system With thus it enables that cache module 4 is fully used, and the capacity of Installed System Memory can be increased.
Refering to Fig. 5, in one embodiment of control method of the nonvolatile memory of storage system of the present invention, storage system Including the Memory Controller for controlling nonvolatile memory.Nonvolatile memory is connect with Memory Controller, is deposited Memory controller and the central processing unit of system connect, to receive the order of central processing unit.The control method includes as follows Step:
Step S501: Memory Controller receives system to the write order of nonvolatile memory.
Memory Controller is used to control the access to nonvolatile memory.When the central processing unit of system is needed to non- Volatile memory carry out write operation when, by Memory Controller receive system write order, with according to the write order to it is non-easily The property lost memory carries out write operation.
Step S502: the data for needing to be written nonvolatile memory are stored in slow by Memory Controller according to write order In storing module.
Since nonvolatile memory is slow storage, increase by a cache module in systems as non-volatile The write buffer of memory is to improve system performance.It, can be fast by the data of nonvolatile memory by the effect of cache module Speed is stored in cache module, so as to the executable other operations of system.
Step S503: Memory Controller is after completing to the write operation of nonvolatile memory and in system not to non- When volatile memory issues write order, the operating right of cache module is released to system.
Memory Controller is non-volatile by the data write-in for the nonvolatile memory being temporarily stored in cache module In memory, to complete that the operating right of cache module is released to system later to the write operation of nonvolatile memory, from And system can be used using the cache module as the memory of system or other storages, thus, it is possible to cache module is obtained sufficiently Utilization, reduce the waste of memory resource, and the capacity of Installed System Memory can be increased.
Wherein, the Memory Controller of present embodiment includes nonvolatile memory control unit and buffer control list Member.
Refering to Fig. 6, Memory Controller receives system and specifically includes to the step of write order of nonvolatile memory:
Step S601: the nonvolatile memory control unit of Memory Controller receives system to nonvolatile memory Write order.
Nonvolatile memory control unit is used to control the access to nonvolatile memory, and system is deposited to non-volatile The write order of reservoir is received by nonvolatile memory control unit.Further, nonvolatile memory control unit Control subelement and cache management subelement are write including nonvolatile memory.Nonvolatile memory is write control subelement and is received System sends write operation to cache management subelement and controls signal to the write order of nonvolatile memory.
Step S602: nonvolatile memory control unit is according to write order to the caching control unit of Memory Controller Send write operation information.
Specifically, the cache management subelement of nonvolatile memory control unit receives the write operation control signal Afterwards, which is sent to caching control unit according to the write operation signal.
To which write operation information will need to be written the number of nonvolatile memory based on the received for, caching control unit According to being stored in cache module.Caching control unit is used to control the access to cache module.To nonvolatile memory into When row write operates, the data for needing to be written nonvolatile memory are written in cache module first by caching control unit, To improve system performance.
Further, caching control unit includes non-volatile memory controller command process subelement, central processing Device command process subelement, caching write control subelement, caching reads control subelement and selection subelement.Therefore, refering to figure 7, caching control unit based on the received write operation information the data for needing to be written nonvolatile memory are stored in it is slow Specific steps in storing module, include the following steps:
Step S701: the non-volatile memory controller command process subelement of caching control unit receives write operation letter Breath.
Step S702: selection subelement selection non-volatile memory controller command process of caching control unit is single First received write operation information of institute is sent.
Step S703: the caching of caching control unit writes control subelement according to the write operation sent from selection subelement The data for needing to be written nonvolatile memory are stored in cache module by information.
Through the above steps, caching control unit, which is realized, will need to be written the data write-in caching mould of nonvolatile memory In block.
Wherein, refering to Fig. 8, in present embodiment, Memory Controller completes the write operation to nonvolatile memory Afterwards and when system does not issue write order to nonvolatile memory, the operating right of cache module is released to the step of system Suddenly, it specifically includes:
Step S801: nonvolatile memory control unit sends the needs read in cache module to caching control unit The read command of the data of nonvolatile memory is written.
Specifically, control subelement being write when caching, cache module is written into the data for needing to be written nonvolatile memory Afterwards, the nonvolatile memory of nonvolatile memory control unit writes control subelement and sends reading to cache management subelement The read command of the data for needing to be written nonvolatile memory in cache module, cache management subelement receive the read command, And the read command is sent to the non-volatile memory controller command process subelement of caching control unit.
Step S802: caching control unit according to read command read be stored in cache module need to be written it is non-volatile The data of memory, and read data are sent to nonvolatile memory control unit.
Specifically, refering to Fig. 9, including following sub-step:
Sub-step S8021: the non-volatile memory controller command process subelement of caching control unit, which receives, to be read The read command of the data for needing to be written nonvolatile memory in cache module.
Sub-step S8022: selection subelement selection non-volatile memory controller command process subelement institute is received Read command is sent.
Sub-step S8023: the caching of caching control unit reads control subelement according to the reading sent from selection subelement The data for needing to be written nonvolatile memory being stored in cache module are read in order, and read data are sent to Nonvolatile memory writes control subelement.
Specifically, after caching reads the data of the nonvolatile memory in control subelement reading cache module, selection Unit selection caching reads the control read data of subelement, and it is single to return to non-volatile memory controller command process Member.Received data are sent to cache management subelement by non-volatile memory controller command process subelement, from And cache management subelement sends the data to nonvolatile memory and writes control subelement.
By above-mentioned sub-step, caching control unit is completed to read the read operation of the data in cache module.
Step S803: nonvolatile memory control unit writes data into nonvolatile memory, to complete to non- The write operation of volatile memory.
In particular, nonvolatile memory is write control subelement and is write data into nonvolatile memory.
Step S804: nonvolatile memory control unit is sent completely to caching control unit and system and writes data into The operating right of cache module is released to system by the notification signal of nonvolatile memory.
In particular, cache management subelement nonvolatile memory write control subelement write data into it is non-volatile After memory, it is sent completely to the central processing unit of selection subelement and system and writes data into leading in nonvolatile memory Know signal, signal of the reselection from nonvolatile memory control unit, and notice are not needed with notice selection subelement The central processing unit of system can be used cache module as the memory of system or other storages, thus by the behaviour of cache module The central processing unit of system is released to as permission.Central processing unit can be in the non-write operation phase of nonvolatile memory as a result, Between, it is used cache module as memory or other storages, makes full use of memory resource, and Installed System Memory can be increased Capacity.
Mode the above is only the implementation of the present invention is not intended to limit the scope of the invention, all to utilize this Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, it is relevant to be applied directly or indirectly in other Technical field is included within the scope of the present invention.

Claims (7)

1. a kind of storage system, which is characterized in that the system belongs to system on chip, comprising: main control module, memory control mould Block, nonvolatile memory and cache module, the memory control module are connected to the main control module, described non-volatile Memory and the cache module are connect with the memory control module;Wherein, the cache module uses register group Or random access storage device is realized;
The memory control module is used for when the main control module issues the write order to the nonvolatile memory, root The data for needing to be written the nonvolatile memory are stored in the cache module according to the write order, are completed to institute It states after the write operation of nonvolatile memory and write order is not issued to the nonvolatile memory in the main control module When, the operating right of the cache module is released to the main control module;To notify the main control module described can will delay Storing module is used as the memory of system;
Wherein, the memory control module includes caching control unit and nonvolatile memory control unit;
The nonvolatile memory control unit is used to receive that the main control module to issue to the nonvolatile memory Write order, and according to the write order to the caching control unit send write operation information;
The caching control unit is used to need to be written according to the write operation information data of the nonvolatile memory It is stored in the cache module;
The nonvolatile memory control unit is also used to send to the caching control unit and read in the cache module The data for needing to be written nonvolatile memory read command;
The caching control unit is used to read be stored in the cache module described according to the read command and needs to be written The data of nonvolatile memory, and the read data are sent to the nonvolatile memory control unit;
The nonvolatile memory control unit is used for after the nonvolatile memory is written in the data, to described Caching control unit and the main control module are sent completely the notification signal that the data are written to the nonvolatile memory, The operating right of the cache module is released to the main control module.
2. system according to claim 1, which is characterized in that
The nonvolatile memory control unit includes:
Nonvolatile memory writes control subelement, for receiving the main control module to described in the nonvolatile memory Write order, and issue write operation control signal;
Cache management subelement writes behaviour to described in caching control unit transmission for controlling signal according to the write operation Make information;
The nonvolatile memory writes control subelement and is also used to send the reading caching to the cache management subelement The read command of the data for needing to be written nonvolatile memory in module, to pass through the cache management subelement The read command is sent to the caching control unit.
3. system according to claim 2, which is characterized in that
The caching control unit includes:
Central processing unit command process subelement;
Non-volatile memory controller command process subelement, for receiving the write operation information and the read command;
Subelement is selected, for during the write operation of the nonvolatile memory, selecting the nonvolatile memory control The device command process subelement received write operation information of institute processed and the read command are sent;
Caching writes control subelement, for will need to be written according to the write operation information sent from the selection subelement The data of the nonvolatile memory are stored in the cache module;
Caching reads control subelement, described for being stored according to the read command reading sent from the selection subelement The data for needing to be written nonvolatile memory in cache module, and the read data are sent to described non- Volatile memory writes control subelement;
Wherein, the cache management subelement is also used to write control subelement in the nonvolatile memory and writes the data After entering the nonvolatile memory, it is sent completely to the selection subelement and the main control module and institute is written into the data The operating right of the cache module is released to the main control module by the notification signal for stating nonvolatile memory.
4. system according to claim 1, which is characterized in that further include:
RAM control module and RAM, the RAM control module are connected to the main control module, and the RAM and the RAM control mould Block connection;
The RAM control module when receiving read command of the main control module to the RAM for reading in the RAM Data, and will need to be written the data in the RAM when receiving write order of the main control module to the RAM and be written In the RAM.
5. a kind of control method of the nonvolatile memory of storage system, which is characterized in that the system belongs to system on chip, It specifically includes:
Memory Controller receives system to the write order of nonvolatile memory;
The data for needing to be written the nonvolatile memory are stored in slow by the Memory Controller according to the write order In storing module;Wherein, the cache module is realized using register group or random access storage device;
The Memory Controller is after completing to the write operation of the nonvolatile memory and in system not to described non- When volatile memory issues write order, the operating right of the cache module is released to the system;
To notify main control module that can use the cache module as the memory of system;
Wherein, the Memory Controller receives the step of write order of the system to nonvolatile memory and includes:
The nonvolatile memory control unit of the Memory Controller receives system to the write order of nonvolatile memory;
The nonvolatile memory control unit is according to the write order to the caching control unit of the Memory Controller Send write operation information;
The data for needing to be written the nonvolatile memory are stored in slow by the Memory Controller according to the write order Step in depositing includes:
The caching control unit stores the data for needing to be written the nonvolatile memory according to the write operation information In the cache module;
The Memory Controller is after completing to the write operation of the nonvolatile memory and in system not to described non- When volatile memory issues write order, the step of operating right of the caching is released to the system, includes:
Described in the nonvolatile memory control unit sends to the caching control unit and reads in the cache module Need to be written the read command of the data of nonvolatile memory;
The caching control unit read according to the read command be stored in the cache module described need to be written it is non-easily The data of the property lost memory, and the read data are sent to the nonvolatile memory control unit;
The data are written in the nonvolatile memory nonvolatile memory control unit, to complete to described The write operation of nonvolatile memory;
The nonvolatile memory control unit is sent completely to the caching control unit and the system by the data The operating right of the cache module is released to the system by the notification signal that the nonvolatile memory is written.
6. control method according to claim 5, which is characterized in that
The nonvolatile memory control unit of the Memory Controller receives the step to the write order of nonvolatile memory Suddenly include:
The nonvolatile memory of the nonvolatile memory control unit writes control subelement and receives system to described non-easy The write order of the property lost memory, and issue write operation control signal;
The nonvolatile memory control unit is according to the write order to the caching control unit of the Memory Controller Send write operation information the step of include:
The cache management subelement of the nonvolatile memory control unit receives the write operation and controls signal, and according to institute It states write operation and controls signal to the caching control unit transmission write operation information;
Described in the nonvolatile memory control unit sends to the caching control unit and reads in the cache module The step of needing to be written the read command of the data of nonvolatile memory include:
The nonvolatile memory is write control subelement and is sent in the reading cache module to the cache management subelement The data for needing to be written nonvolatile memory the read command;
The cache management subelement receives the read command, and the read command is sent to the caching control unit.
7. control method according to claim 6, which is characterized in that
The caching control unit stores the data for needing to be written the nonvolatile memory according to the write operation information Step in the cache module includes:
The non-volatile memory controller command process subelement of the caching control unit receives the write operation information;
The selection subelement of the caching control unit selects non-volatile memory controller command process subelement institute The received write operation information is sent;
The caching of the caching control unit writes control subelement according to the write operation sent from the selection subelement The data for needing to be written the nonvolatile memory are stored in the cache module by information;
The caching control unit read according to the read command be stored in the cache module described need to be written it is non-easily The data of the property lost memory, and the step of read data are sent to nonvolatile memory control unit packet It includes:
The non-volatile memory controller command process subelement receives the read command;
The selection subelement select the received read command of the non-volatile memory controller command process subelement institute into Row is sent;
The caching of the caching control unit reads control subelement according to the read command sent from the selection subelement Read the data for needing to be written nonvolatile memory that are stored in the cache module, and by the read number Control subelement is write according to the nonvolatile memory is sent to;
The step that the data are written in the nonvolatile memory includes: by the nonvolatile memory control unit
The nonvolatile memory writes control subelement and the data is written in the nonvolatile memory;
The nonvolatile memory control unit is sent completely to the caching control unit and the system by the data The step of notification signal of the nonvolatile memory is written include:
The cache management subelement the nonvolatile memory write control subelement by the data write-in it is described it is non-easily After the property lost memory, it is sent completely to the selection subelement and the system and the non-volatile memories is written into the data The operating right of the cache module is released to the system by the notification signal of device.
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 CN104750424A (en) 2015-07-01
CN104750424B true 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)

Families Citing this family (1)

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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN103049394A (en) * 2012-11-30 2013-04-17 记忆科技(深圳)有限公司 Method and system for data caching of solid state disk

Family Cites Families (6)

* 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
US8074034B2 (en) * 2007-07-25 2011-12-06 Agiga Tech Inc. Hybrid nonvolatile ram
CN100489814C (en) * 2007-08-01 2009-05-20 杭州华三通信技术有限公司 Shared buffer store system and implementing method
CN102160038A (en) * 2008-09-15 2011-08-17 惠普开发有限公司 Method and an apparatus to manage non-volatile disl cache
JP5526697B2 (en) * 2009-10-14 2014-06-18 ソニー株式会社 Storage device and memory system
US20120159040A1 (en) * 2010-12-15 2012-06-21 Dhaval Parikh Auxiliary Interface for Non-Volatile Memory System

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN103049394A (en) * 2012-11-30 2013-04-17 记忆科技(深圳)有限公司 Method and system for data caching of solid state disk

Also Published As

Publication number Publication date
CN104750424A (en) 2015-07-01

Similar Documents

Publication Publication Date Title
CN100590609C (en) Method for managing dynamic internal memory base on discontinuous page
CN104407997B (en) With instruction dynamic dispatching function and NOT-AND flash single channel isochronous controller
CN109085997A (en) Memory-efficient for nonvolatile memory continues key assignments storage
US8996794B2 (en) Flash memory controller
US11669272B2 (en) Predictive data transfer based on availability of media units in memory sub-systems
CN101324869B (en) Multiplexor based on AXI bus
CN107391392A (en) A kind of garbage reclamation optimization method based on flash memory device Concurrent Feature
KR20120098505A (en) Efficient buffering for a system having non-volatile memory
CN103246625B (en) A kind of method of data and address sharing pin self-adaptative adjustment memory access granularity
WO2012091702A1 (en) Accelerating cache state transfer on a directory-based multicore architecture
CN101706760B (en) Matrix transposition automatic control circuit system and matrix transposition method
US9286208B2 (en) Controller controlling an interleave operation, solid-state drive including the controller, and control method controlling an interleave operation
CN104750425B (en) A kind of control method of storage system and its nonvolatile memory
CN104750424B (en) A kind of control method of storage system and its nonvolatile memory
CN107329695B (en) Distributed storage memory management method, system and computer storage medium
CN104461967B (en) It is a kind of to support synchronous and asynchronous transfer mode parallel data grabbing card
CN101237546A (en) High-speed audio and video magnitude storage method and device for vehicular environment
CN204496485U (en) A kind of I/O assisted access device based on high-speed data acquisition storage system
US20150205534A1 (en) Controller, solid-state drive and control method
CN102385555A (en) Caching system and method of data caching
CN102073604B (en) Method, device and system for controlling read and write of synchronous dynamic memory
CN112052189A (en) Memory device, electronic device and reading method related to memory device and electronic device
CN101464838B (en) Data management method and solid state storage system
CN102929677A (en) Loading system and method of multiple digital signal processors (DSPs)
US11775216B2 (en) Media access operation command management using media buffers

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