CN103076996B - PCRAM control method and system - Google Patents

PCRAM control method and system Download PDF

Info

Publication number
CN103076996B
CN103076996B CN201310005844.0A CN201310005844A CN103076996B CN 103076996 B CN103076996 B CN 103076996B CN 201310005844 A CN201310005844 A CN 201310005844A CN 103076996 B CN103076996 B CN 103076996B
Authority
CN
China
Prior art keywords
pcram
address
application interface
reference address
module
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
CN201310005844.0A
Other languages
Chinese (zh)
Other versions
CN103076996A (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.)
SHENZHEN SILICONGO SEMICONDUCTOR CO Ltd
Original Assignee
SHENZHEN SILICONGO SEMICONDUCTOR CO Ltd
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 SHENZHEN SILICONGO SEMICONDUCTOR CO Ltd filed Critical SHENZHEN SILICONGO SEMICONDUCTOR CO Ltd
Priority to CN201310005844.0A priority Critical patent/CN103076996B/en
Publication of CN103076996A publication Critical patent/CN103076996A/en
Application granted granted Critical
Publication of CN103076996B publication Critical patent/CN103076996B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The open a kind of PCRAM control method of the present invention and system, its method includes: receive the access operation requests that application interface sends;Resolve and access operation requests acquisition application interface reference address;Map from RAM module according to application interface reference address and obtain PCRAM reference address;According to PCRAM reference address, PCRAM is carried out address function.The present invention, by this address remapped scheme, can get around the corrupted data district caused due to abrasion or process deviation in PCRAM, and data are left in faultless memory area stable in PCRAM, it is ensured that the correctness of data;Utilizing the high speed reading performance of RAM module, address can be allowed to control management more real-time simultaneously;Additionally, address block size corresponding to application interface reference address can be adjusted according to the size of PCRAM Free Region and distribution situation, thus reach to utilize the maximization in region.

Description

PCRAM control method and system
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of PCRAM control method and system.
Background technology
PCRAM(phase-change random access memory) it is a kind of non-volatile internal memory, emerging non-volatile phase-change stored memory PCRAM has merged the zero access of DRAM internal memory and flash memory and has retained the characteristic of data after closing power supply, but the problems such as itself existence abrasion mistake is too low with yield, cannot directly use, or use PCRAM control system as shown in Figure 1 to realize the access to PCRAM, this PCRAM control system includes: application interface processing module, data coding/decoding module and PCRAM interface control module, the access to PCRAM is realized by each module in application interface and PCRAM control system, also due to abrasion or process deviation cause there is corrupted data district in PCRAM, thus the correctness that data store cannot be ensured.
Summary of the invention
Present invention is primarily targeted at a kind of PCRAM control method of offer and system, it is intended to realize effective management of PCRAM, it is ensured that the correctness of data storage.
In order to achieve the above object, the present invention proposes a kind of PCRAM control method, comprises the following steps:
Receive the access operation requests that application interface sends;
Resolve described access operation requests and obtain application interface reference address;
Map from RAM module according to described application interface reference address and obtain PCRAM reference address;
According to described PCRAM reference address, PCRAM is carried out address function.
Preferably, also include before the step of the access operation requests that described reception application interface sends:
Address mapping table between configuration application interface reference address and PCRAM reference address, and store to described RAM module.
Preferably, the method also includes:
Update the address mapping table in described RAM module.
Preferably, the step of the address mapping table in described renewal RAM module includes:
Upon power-up of the system, start and PCRAM is carried out read operation, obtain configuration information data from PCRAM;
To described configuration information decoding data and error correction;
Data after error correction are stored in described RAM module, update described address mapping table.
Preferably, the method also includes:
Free Region size according to described PCRAM and the size of the distribution situation described application interface reference address corresponding address block of adjustment.
The present invention also proposes a kind of PCRAM control system, including: application interface processing module, address administration control module, PCRAM interface control module and RAM module, wherein:
Described application interface processing module, for receiving the access operation requests that application interface sends;Resolve described access operation requests and obtain application interface reference address;
Described address administration control module, obtains PCRAM reference address for mapping from RAM module according to described application interface reference address;
Described PCRAM interface control module, for carrying out address function according to described PCRAM reference address to PCRAM.
Preferably, this system also includes:
Loading Control module, for configuring the address mapping table between application interface reference address and PCRAM reference address, and stores to described RAM module.
Preferably, this system also includes: data coding/decoding module;
Described Loading Control module is additionally operable to control described PCRAM interface control module, and coordinates described data coding/decoding module and RAM module, updates the address mapping table in described RAM module.
Preferably, described Loading Control module is additionally operable to upon power-up of the system, starts described PCRAM interface control module;
Described PCRAM interface control module is additionally operable to send and PCRAM is carried out read operation, obtains configuration information data from PCRAM, sends to described data coding/decoding module;
Described data coding/decoding module is used for described configuration information decoding data and error correction, and the data after error correction is stored in described RAM module, updates described address mapping table.
Preferably, described Loading Control module is additionally operable to the Free Region size according to described PCRAM and the size of the distribution situation described application interface reference address corresponding address block of adjustment.
A kind of PCRAM control method of present invention proposition and system, after obtaining application interface reference address, by the address mapping table in inquiry RAM module, the PCRAM reference address that corresponding address block reality is corresponding can be obtained, then configuration PCRAM read/write address, by this address remapped scheme, can get around the corrupted data district caused in PCRAM due to abrasion or process deviation, and data are left in faultless memory area stable in PCRAM, thus ensure the correctness of data;Utilizing the high speed reading performance of RAM module, address can be allowed to control management more real-time simultaneously;Additionally, for the Free Region utilizing PCRAM efficiently, address block (sector) size that application interface reference address is corresponding can be adjusted according to the size of PCRAM Free Region and distribution situation, thus reach to utilize the maximization in region.
Accompanying drawing explanation
Fig. 1 is the internal structure block diagram of existing PCRAM control system;
Fig. 2 is the internal structure block diagram of PCRAM control system preferred embodiment of the present invention;
Fig. 3 is that in PCRAM control system preferred embodiment of the present invention, address maps the handling process schematic diagram controlled;
Fig. 4 is the schematic diagram of address mapping table in PCRAM control system preferred embodiment of the present invention;
Fig. 5 is the handling process schematic diagram updating address mapping table in PCRAM control system preferred embodiment of the present invention;
Fig. 6 is the schematic flow sheet of the inventive method PCRAM control method preferred embodiment.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further referring to the drawings.
Detailed description of the invention
Below with reference to drawings and Examples, the technical scheme realizing goal of the invention is elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
As shown in Figure 2, present pre-ferred embodiments proposes a kind of PCRAM control system, including: application interface processing module 101, address administration control module 102, PCRAM interface control module 103, RAM module 104, Loading Control module 105 and data coding/decoding module 106, wherein:
Loading Control module 105 is for configuring the address mapping table between application interface reference address and PCRAM reference address, and stores to described RAM module 104;And control described PCRAM interface control module 103, and coordinate described data coding/decoding module 106 and RAM module 104, update the address mapping table in described RAM module 104;
Described application interface processing module 101 is connected with applications interface, for receiving the access operation requests that application interface sends;Resolve described access operation requests and obtain application interface reference address;
Described address administration control module 102 obtains PCRAM reference address for mapping from RAM module 104 according to described application interface reference address;
Described PCRAM interface control module 103, for carrying out address function according to described PCRAM reference address to PCRAM.
Conventionally, as abrasion or process deviation cause there is corrupted data district in PCRAM, thus the correctness that data store cannot be ensured.The present embodiment passes through PCRAM control system, after obtaining application interface reference address, by the address mapping table in inquiry RAM module 104, the PCRAM reference address that corresponding address block reality is corresponding can be obtained, then configuration PCRAM read/write address, by this address remapped scheme, can get around the corrupted data district caused in PCRAM due to abrasion or process deviation, and data are left in faultless memory area stable in PCRAM, thus ensure the correctness of data.
Specifically, mapping control program for address, in its flow chart of data processing such as Fig. 3, the direction of arrow and order are carried out.
First, application interface sends access operation requests, and application interface processing module 101, by resolving this access operation requests, gets application interface reference address, and this application interface reference address is sent to address administration control module 102;Application interface accessing address is processed by address administration control module 102, and maps the PCRAM reference address obtaining reality from RAM module 104;The actual PCRAM reference address obtained is sent to PCRAM interface control module 103 by address administration control module 102, and PCRAM interface control module 103 carries out address function according to actual PCRAM reference address to PCRAM.
Wherein, between the application interface reference address and the PCRAM reference address that store in RAM module 104, the address mapping table of mapping relations is as shown in Figure 4.
Therefore, after getting application interface reference address, by the RAM that tables look-up, the base address (baseaddr) that the actual corresponding PCRAM of corresponding address block (sector) accesses, configuration PCRAM read/write address then can be obtained.By this address remapped scheme, the corrupted data district caused due to abrasion or process deviation in PCRAM can be got around, and data are left in faultless memory area stable in PCRAM, thus ensure the correctness of data.
In order to utilize the Free Region of PCRAM efficiently, sector size can be adjusted according to the size of PCRAM Free Region and distribution situation, thus reaches to utilize the maximization in region.
Owing to applying RAM module 104, its can write attribute can allow system pass through Loading Control module 105 carry out load appropriate address mapping table, it is achieved that motility;The high speed reading performance of RAM module 104, can allow address control management and have more real-time.
Further, the present embodiment to ensure to place the data in faultless memory area stable in PCRAM, can be further ensured that the correctness of data with the address mapping table in real-time update RAM module 104.
Specifically, as it is shown in figure 5, in its flow chart of data processing such as figure the direction of arrow and order carry out.
First, upon power-up of the system, Loading Control module 105 starts PCRAM interface control module 103, PCRAM interface control module 103 sends and PCRAM is carried out read operation, PCRAM interface control module 103 reads configuration information data from PCRAM, and the configuration information data read are sent to data coding/decoding module 106 and are decoded and error correction;Data after error correction are stored into RAM module 104 afterwards.The each functional mode of configuration system and the renewal of address mapping table is controlled by Loading Control module 105.
Thus, by such scheme, utilize RAM module 104 to store address mapping table and to carry out address mapping management, make data storage more rapid;Utilizing RAM and Loading Control function to coordinate, it is ensured that the motility that address maps, make scheme possess flexible nature, data storage is more accurate;And the variable characteristic of sector, PCRAM available memory area can be made full use of, there is highly effective.
Refer to the schematic flow sheet that Fig. 6, Fig. 6 are PCRAM control method preferred embodiments of the present invention.
As shown in Figure 6, a kind of PCRAM control method that the present embodiment proposes, to implement based on above-mentioned PCRAM control system, the method includes:
Step S201, receives the access operation requests that application interface sends;
Step S202, resolves described access operation requests and obtains application interface reference address;
Step S203, maps from RAM module according to described application interface reference address and obtains PCRAM reference address;
Step S204, carries out address function according to described PCRAM reference address to PCRAM.
Conventionally, as abrasion or process deviation cause there is corrupted data district in PCRAM, thus the correctness that data store cannot be ensured.The present embodiment passes through PCRAM control system, after obtaining application interface reference address, by the address mapping table in inquiry RAM module, the PCRAM reference address that corresponding address block reality is corresponding can be obtained, then configuration PCRAM read/write address, by this address remapped scheme, can get around the corrupted data district caused in PCRAM due to abrasion or process deviation, and data are left in faultless memory area stable in PCRAM, thus ensure the correctness of data.
Specifically, the first address mapping table between Loading Control module configuration application interface reference address and PCRAM reference address, and store to RAM module.
When needs access PCRAM, application interface sends access operation requests, and application interface processing module, by resolving this access operation requests, gets application interface reference address, and this application interface reference address is sent to address administration control module;Application interface accessing address is processed by address administration control module, and maps the PCRAM reference address obtaining reality from RAM module;The actual PCRAM reference address obtained is sent to PCRAM interface control module by address administration control module, and PCRAM interface control module carries out address function according to actual PCRAM reference address to PCRAM.
Wherein, between the application interface reference address and the PCRAM reference address that store in RAM module, the address mapping table of mapping relations is as shown in Figure 4.
Therefore, after getting application interface reference address, by the RAM that tables look-up, the base address (baseaddr) that the actual corresponding PCRAM of corresponding address block (sector) accesses, configuration PCRAM read/write address then can be obtained.By this address remapped scheme, the corrupted data district caused due to abrasion or process deviation in PCRAM can be got around, and data are left in faultless memory area stable in PCRAM, thus ensure the correctness of data.
In order to utilize the Free Region of PCRAM efficiently, sector size can be adjusted according to the size of PCRAM Free Region and distribution situation, thus reaches to utilize the maximization in region.
Owing to applying RAM module, it can allow system carry out loading appropriate address mapping table by Loading Control module by write attribute, it is achieved that motility;The high speed reading performance of RAM module, can allow address control management and have more real-time.
Further, the present embodiment to ensure to place the data in faultless memory area stable in PCRAM, can be further ensured that the correctness of data with the address mapping table in real-time update RAM module.
Specifically, as it is shown in figure 5, in its flow chart of data processing such as figure the direction of arrow and order carry out.
First, upon power-up of the system, Loading Control module starts PCRAM interface control module, PCRAM interface control module sends and PCRAM is carried out read operation, PCRAM interface control module reads configuration information data from PCRAM, and the configuration information data read are sent to data coding/decoding module and are decoded and error correction;Data after error correction are stored into RAM module afterwards.The each functional mode of configuration system and the renewal of address mapping table is controlled by Loading Control module.
Thus, by such scheme, utilize RAM module to store address mapping table and to carry out address mapping management, make data storage more rapid;Utilizing RAM and Loading Control function to coordinate, it is ensured that the motility that address maps, make scheme possess flexible nature, data storage is more accurate;And the variable characteristic of sector, PCRAM available memory area can be made full use of, there is highly effective.
Compared to existing technology, the present embodiment application RAM carries out address mapping, it is achieved address administration rapidly and efficiently, it is ensured that the correctness of data;Utilize RAM can write attribute simultaneously, by Loading Control, data storage can be made more flexible, thus compensate for PCRAM due to the technology wrong and low yield issues of the immature abrasion brought own, PCRAM Free Region can be made full use of, make PCRAM possess market availability.
The foregoing is only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every equivalent structure utilizing description of the invention and accompanying drawing content to be made or flow process conversion; or directly or indirectly it is used in other relevant technical fields, the most in like manner it is included in the scope of patent protection of the present invention.

Claims (6)

1. a PCRAM control method, it is characterised in that comprise the following steps:
Receive the access operation requests that application interface sends;
Resolve described access operation requests and obtain application interface reference address;
Map from RAM module according to described application interface reference address and obtain PCRAM reference address;
According to described PCRAM reference address, PCRAM is carried out address function;
Wherein, in described RAM module, storage has the address mapping table between application interface reference address and PCRAM reference address, and the step updating the address mapping table in described RAM module includes:
Upon power-up of the system, start and PCRAM is carried out read operation, obtain configuration information data from PCRAM;To described configuration information decoding data and error correction;Data after error correction are stored in described RAM module, update described address mapping table.
Method the most according to claim 1, it is characterised in that also include before the step of the access operation requests that described reception application interface sends:
Address mapping table between configuration application interface reference address and PCRAM reference address, and store to described RAM module.
Method the most according to claim 2, it is characterised in that the address mapping table between described configuration application interface reference address and PCRAM reference address, and also include before storing to described RAM module:
Free Region size according to described PCRAM and the size of the distribution situation described application interface reference address corresponding address block of adjustment.
4. a PCRAM control system, it is characterised in that including: application interface processing module, address administration control module, PCRAM interface control module and RAM module, wherein:
Described application interface processing module, for receiving the access operation requests that application interface sends;Resolve described access operation requests and obtain application interface reference address;
Described address administration control module, obtains PCRAM reference address for mapping from RAM module according to described application interface reference address;
Described PCRAM interface control module, for carrying out address function according to described PCRAM reference address to PCRAM;
Wherein, described PCRAM control system also includes Loading Control module and data coding/decoding module;In described RAM module, storage has the address mapping table between application interface reference address and PCRAM reference address;
Described Loading Control module is used for coordinating described data coding/decoding module and RAM module, updates the address mapping table in described RAM module and upon power-up of the system, starts described PCRAM interface control module;
Described PCRAM interface control module is additionally operable to send and PCRAM is carried out read operation, obtains configuration information data from PCRAM, sends to described data coding/decoding module;
Described data coding/decoding module is used for described configuration information decoding data and error correction, and the data after error correction is stored in described RAM module, updates described address mapping table.
System the most according to claim 4, it is characterised in that
Described Loading Control module is additionally operable to configure the address mapping table between application interface reference address and PCRAM reference address, and stores to described RAM module.
6. according to the system described in claim 4 or 5, it is characterised in that described Loading Control module is additionally operable to the Free Region size according to described PCRAM and the size of the distribution situation described application interface reference address corresponding address block of adjustment.
CN201310005844.0A 2013-01-08 2013-01-08 PCRAM control method and system Active CN103076996B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310005844.0A CN103076996B (en) 2013-01-08 2013-01-08 PCRAM control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310005844.0A CN103076996B (en) 2013-01-08 2013-01-08 PCRAM control method and system

Publications (2)

Publication Number Publication Date
CN103076996A CN103076996A (en) 2013-05-01
CN103076996B true CN103076996B (en) 2016-08-03

Family

ID=48153536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310005844.0A Active CN103076996B (en) 2013-01-08 2013-01-08 PCRAM control method and system

Country Status (1)

Country Link
CN (1) CN103076996B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109359731B (en) * 2018-09-27 2022-01-28 中科物栖(北京)科技有限责任公司 Neural network processing method and device based on chip design defects

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887350A (en) * 2009-05-14 2010-11-17 E·孔法洛涅里 Pcm memories for storage bus interfaces
CN101937374A (en) * 2009-06-30 2011-01-05 恒忆有限责任公司 The nonvolatile memory of memory remapping information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2507710B1 (en) * 2009-11-30 2018-10-31 Hewlett-Packard Enterprise Development LP Remapping for memory wear leveling

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101887350A (en) * 2009-05-14 2010-11-17 E·孔法洛涅里 Pcm memories for storage bus interfaces
CN101937374A (en) * 2009-06-30 2011-01-05 恒忆有限责任公司 The nonvolatile memory of memory remapping information

Also Published As

Publication number Publication date
CN103076996A (en) 2013-05-01

Similar Documents

Publication Publication Date Title
US10606693B2 (en) Memory controller implemented error correction code memory
US10366776B2 (en) Memory system for effectively organizing super memory block and operating method thereof
TWI629591B (en) Method for accessing flash memory module and associated flash memory controller and electronic device
KR102387968B1 (en) Data storage device and operating method of the same
US9141537B2 (en) Magnetic random access memory journal
US9274973B2 (en) Memory address translation
US20190213137A1 (en) Method for managing flash memory module and associated flash memory controller and electronic device
US10459635B2 (en) Window based mapping
US10606521B2 (en) Memory system and operating method thereof
CN105830059A (en) Fine pitch connector socket
KR20180026876A (en) Memory system and operation method for the same
US20170344423A1 (en) Data storage device and data access-method
US20190146908A1 (en) Method for accessing flash memory module and associated flash memory controller and electronic device
KR20210047361A (en) Memory refresh based on temperature information
US10235300B2 (en) Memory system including memory device and operation method thereof
US9378149B1 (en) Method and system for tracking modification times of data in a storage system
US10083120B2 (en) Memory system, and address mapping method and access method thereof
US20210397370A1 (en) Data processing method for improving access performance of memory device and data storage device utilizing the same
WO2017118289A1 (en) Data reading method, data processing method, and related storage device
US20190146926A1 (en) Storage device and operating method of storage device
US20130339575A1 (en) Data storage device and data trimming method
US20200117594A1 (en) Implementing low cost and large capacity dram-based memory modules
US10754768B2 (en) Memory system using descriptor lookup tables to access setting information for a non-volatile memory, and an operating method thereof
CN103076996B (en) PCRAM control method and system
US8935460B2 (en) Memory apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant