CN100578468C - Method for accessing memorizer information - Google Patents

Method for accessing memorizer information Download PDF

Info

Publication number
CN100578468C
CN100578468C CN200710001885A CN200710001885A CN100578468C CN 100578468 C CN100578468 C CN 100578468C CN 200710001885 A CN200710001885 A CN 200710001885A CN 200710001885 A CN200710001885 A CN 200710001885A CN 100578468 C CN100578468 C CN 100578468C
Authority
CN
China
Prior art keywords
access
shift value
total
memory storage
eeprom
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.)
Expired - Fee Related
Application number
CN200710001885A
Other languages
Chinese (zh)
Other versions
CN101241470A (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.)
Wistron Corp
Original Assignee
Wistron Corp
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 Wistron Corp filed Critical Wistron Corp
Priority to CN200710001885A priority Critical patent/CN100578468C/en
Publication of CN101241470A publication Critical patent/CN101241470A/en
Application granted granted Critical
Publication of CN100578468C publication Critical patent/CN100578468C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention provides a method of storage memory information, used for practical accessing storage address information from multiple storage devices, the method records one total access shift value in these storage devices, and reading the access shift value before accessing the storage devices, the pratical accessing the storage devices and one access shift value are calculated according to the capacity of the total access shift value and these storage device, and the total access shift value is calculated and restored before finishing the accesss of the storage devices according to the finally stored storage device and its access shift value. The method can save storage space of the storage devices and reduces steps of the storage devices to accelerate the access speed of the storage device.

Description

The method of accessing memorizer information
Technical field
The invention relates to a kind of access method of storage, be meant a kind of method of simplifying accessing memorizer information especially.
Background technology
Electricallyerasable ROM (EEROM) (Electrically Erasable Programmable Read-OnlyMemory, EEPROM) often be used in the computer system, in order to the record computer system information, Basic Input or Output System (BIOS) (Basic Input Output System for example, BIOS) debugging information, perhaps write down the user mode of computer utility appliance etc., therefore, computer system tends to use a plurality of EEPROM to write down these information.
In order to make things convenient for the data of access EEPROM, all can use many parameters to represent the information of EEPROM, for example middle integrated circuit (Inter-Integrated Circuit, IIC) address, EEPROM capacity and REEPROM shift value etc. in the past.But, these parameters be placeholder record random access memory (RandomAccess Memory, RAM) in, behind shut down of computer, these parameters will disappear, so that during the next time start, just must detect these EEPROM more again to obtain these variable values.So,, just must note these variable values in order after start next time, can directly to obtain these variable values.
As shown in Figures 1 and 2, it is the practice that writes down above-mentioned variable value at present, with four EEPROM is example, each EEPROM capacity is 2000h, each EEPROM has the IIC address of oneself, shift value and access cis-position, these information are stored in first by among the EEPROM of access, and the IIC address need take 1 hyte (00h), shift value will take 2 hytes (01h and 02h), the sequence number of EEPROM (access cis-position) will take 1 hyte (03h), so, when computer system is wanted the address of these EEPROM of access, read among first EEPROM earlier that (data of 00h~03h) can learn that reality will be by the address of the EEPROM of access to carry out access about hyte by the IIC controller.
Yet, though the information that above-mentioned way can complete documentation EEPROM, but wasted the storage space of EEPROM, and the IIC controller need be carried out write activity four times, could all be recorded in EEPROM information among the EEPROM, and to carry out four times and read action, just can obtain four addresses (full detail of the EEPROM among the 00h~03h), especially when computer system is used more a plurality of EEPROM, then need to use more eeprom address to write down the information of EEPROM, except the space of more wasting EEPROM, and the activity duration of electricity wasting brain system.
Summary of the invention
Therefore, purpose of the present invention mainly provides a kind of method that can simplify the accessing memorizer information of memorizer information access step.
The invention provides a kind of method of accessing memorizer information, in order to want the address information of access by obtaining reality in a plurality of memory storages, this method comprises: A. writes down a total access shift value of these memory storages; B. before these memory storages are carried out access, read this total access shift value; C. according to the capacity of this total access shift value and these memory storages, try to achieve actual memory storage and one access bit value of moving of wanting access, step C comprises: C1. judge total access shift value whether greater than first by the capacity of the memory storage of access, if, make total access shift value equal total access shift value and deduct first by the capacity of the memory storage of access, and enter step C2, otherwise, judge this first by the memory storage of access be actual will be by the memory storage of access, and with total access shift value as this first by the access shift value of the memory storage of access, thereby end step C; C2. judge total access shift value whether greater than the next one by the capacity of the memory storage of access, if, make total access shift value equal total access shift value and deduct this next one by the capacity of the memory storage of access, and enter step C3, otherwise, judge this next one by the memory storage of access be actual will be by the memory storage of access, and with total access shift value as this next one by the access shift value of the memory storage of access, thereby end step C; C3. repeating step C2; D. before memory storage is finished access, according at last by the memory storage of access and access shift value thereof, calculate total access shift value and return and deposit, total access shift value of step D is at last by the capacity addition General Logistics Department of all memory storages before the memory storage of access, adds at last by the access shift value of the memory storage of access.
Preferably, in steps A, total access shift value is recorded in first by in the memory storage of access.
Preferably, memory storage is EEPROM, and the memory access control apparatus of access EEPROM is a microprocessor, includes an IIC controller in order to these EEPROM of access in this microprocessor.
Preferably, this total access displacement value record is in this IIC controller.
Preferably, this total access displacement value record first by the EEPROM of access in.
Preferably, these memory storages are hard disks, and the harddisk access control device is the hard disk controller of these hard disks of access.
Preferably, this total access displacement value record is in this hard disk controller.
Preferably, this total access displacement value record first by the hard disk of access in.
Preferably, after these memory storages are a kind of shut down of computer, still have power supply to continue the RAM storer of supply, the RAM memory access control apparatus is the north bridge chips in order to these RAM storeies of access.
Preferably, total access displacement value record is in this north bridge chips.
Preferably, total access displacement value record first by the RAM storer of access in.
The present invention is owing to only need total access shift value of these memory storages of record, and the computing by program in the memory access control apparatus, capacity according to total access shift value and memory storage, can find actual memory storage address of wanting access, not only can save the storage space of memory storage, and can reduce the step of accessing storage devices, accelerate the access speed of memory storage.
Description of drawings
Fig. 1 is the capacity synoptic diagram of EEPROM;
Fig. 2 is the address information synoptic diagram of record EEPROM in EEPROM;
Fig. 3 is first preferred embodiment of the method for accessing storage devices of the present invention, wherein show present embodiment first by the EEPROM of access in the record total access shift value synoptic diagram;
Fig. 4 is that the method for present embodiment is applied in one in order to the synoptic diagram in the microprocessor of a plurality of EEPROM of access, wherein shows the hardware configuration of four EEPROM of microprocessor access;
Fig. 5 is the process flow diagram of the address information of present embodiment access EEPROM;
Fig. 6 be present embodiment before access EEPROM, trying to achieve reality will be by the process flow diagram of the access shift value of the EEPROM of access;
Fig. 7 be present embodiment EEPROM by access procedure in, judge whether EEPROM has to be filled with and the situation of cover data and write down the process flow diagram of degree of covering;
Fig. 8 was a present embodiment before finishing access EEPROM, tried to achieve the process flow diagram of total access shift value;
Fig. 9 is second preferred embodiment of the method for accessing storage devices of the present invention, and it shows that this method is applied in a synoptic diagram in order to the hard disk controller of a plurality of hard disks of access, wherein shows the hardware configuration of two hard disks of hard disk controller access; And
Figure 10 is the 3rd preferred embodiment of the method for accessing storage devices of the present invention, and it shows that this method is applied in a synoptic diagram in order to the north bridge chips of a plurality of RAM of access, wherein shows the hardware configuration of two RAM of north bridge chips access.
Embodiment
About aforementioned and other technology contents, characteristics and effect of the present invention, in the detailed description of following cooperation three preferred embodiments with reference to the accompanying drawings, can clearly present.
Consult Fig. 3~shown in Figure 5, it is first preferred embodiment of the method for accessing memorizer information of the present invention, this method is to realize with a computer program that is positioned in the accessible recording medium of computer, and as shown in Figure 4, this computer program (or recording medium itself) is to be preset in the microprocessor 41 (the IIC controller that wherein comprises access EEPROM), make this microprocessor 41 (call EEPROM1 in the following text to a plurality of (present embodiment is an example with four) EEPROM memory storage, EEPROM2, EEPROM3, EEPROM4) carry out the access of address information, to allow computer can obtain the address of the actual EEPROM that wants access to carry out data access.
As shown in Figure 3, the EEPROM1 of present embodiment~4 have identical capacity 2000h, and therefore, four whole capacity of EEPROM are 8000h.So, step 51 as Fig. 5, as long as present embodiment is total access shift value (EEPROM offset) of these four EEPROM of record, in the present embodiment, because total access shift value need take two hytes, so total access shift value is recorded in first by the 0th and the 1st address 00h of the EEPROM of access (EEPROM1), among the 01h, certainly, use several position to write down total access shift value of EEPROM, mainly be to see the memory capacity of using what EEPROM and EEPROM and decide, EEPROM multicapacity more is big more, and for example 80000000h then need use more spaces, and for example (00h~03h) writes down total access shift value 4 addresses.
Moreover total access shift value also can be recorded in the microprocessor 41 except being recorded in EEPROM1 in fact, with the space of further saving EEPROM.
In addition, whether once be filled with data and the record that is capped is arranged in order to learn EEPROM, present embodiment also can cover (re-cover) value at the three-address 02h of EEPROM1 record one.
Therefore, as Fig. 5 step 52, when microprocessor 41 is received the instruction of access EEPROM memory storage, microprocessor 41 carry out step 53, reading and recording then, carry out step 54 in the total access shift value of address 00h, the 01h of first EEPROM (EEPROM1) and the coverage values of address 02h, according to the capacity of this total access shift value, coverage values and these memory storages, try to achieve actual this memory storage and one access bit value of moving of wanting access.
Detailed step about step 54, referring to shown in Figure 6, at first, step 601, does microprocessor 41 judge that coverage values is zero? if, represent that these EEPROM are not filled with and data were not capped, so enter step 602, judge total access shift value greater than first by the memory capacity of the EEPROM of access (EEPROM1) (2000h)? if, then as step 603, make that total access shift value=total the access shift value-first is by the memory capacity of the EEPROM of access, then, enter step 604, judge total access shift value greater than the next one by the memory capacity of the EEPROM of access (EEPROM2)? if, execution in step 605, make total access shift value=total access shift value-next one by the memory capacity of the EEPROM of access, then, repeating step 604 again, up to total access shift value less than the next one by the EEPROM of access, represent that promptly this EEPROM is exactly will be by the memory storage of access, then as step 606, judge this next one by the memory storage of access be actual will be by the memory storage of access, and with this total access shift value as this next one by the access shift value of the memory storage of access.
Return step 602, when total access shift value less than first during by the EEPROM of access, represent that first EEPROM is exactly that reality will be by the memory storage of access, so, execution in step 607, judge first by the memory storage of access be actual will be by the memory storage of access, and with this total access shift value as first by the access shift value of the memory storage of access.
Otherwise, get back to step 601, when coverage values non-vanishing, also promptly greater than zero the time, represent that these EEPROM once were filled with and data are capped, so, be recorded in total access shift value of first EEPROM and coverage values is unlikely is capped in order to allow, when these EEPROM had been filled with and still will be repeated access, present embodiment can make access action begin cover data by second EEPROM of these EEPROM.So, in the case, as step 608, microprocessor 41 can judge total access shift value whether greater than second by the capacity of the EEPROM of access (EEPROM2), if, make total access shift value=total access shift value-second by the capacity of the EEPROM of access then as step 609, then, carry out aforesaid 604~606 steps.Otherwise, enter step 607, with this total access shift value as second by the access shift value of the memory storage of access.
So, get back to the step 54 of Fig. 5, when microprocessor 41 find reality will be by the EEPROM of access and access shift value (being the access address) thereof after, can carry out step 55, according to computer instruction, the address that is pointed to by the access shift value of this EEPROM begins, and these EEPROM memory storages are carried out data access.
And in the data access process, may be by present EEPROM access to next EEPROM, therefore, can be changed by the EEPROM of access and access shift value always, and this access information (be that EEPROM by access with and the access bit value of moving) can be temporarily stored in the microprocessor 41, and in order to learn whether these EEPROM are filled with (cverflow), so that note, as shown in Figure 7, EEPROM by the process of access in, microprocessor 41 carry out step 701, at any time judge whether access to a last EEPROM (EEPROM4) and its access shift value more than or equal to the memory capacity of last EEPROM? if, then as step 702, send message (for example flashing light or by the application program show message) and notify the user, whether continue access and cover data with the inquiry user.
So, in step 702, not being capped and giving an order when stopping access if the user does not think the former deposit data of EEPROM, microprocessor 41 stops execution in step 703 EEPROM is carried out access action.
And when the user gives an order the continuation access, microprocessor 41 can carry out step 704, again the access shift value is made as zero, and carry out data access since second EEPROM and move, write down (keeping in) coverage values=1 simultaneously, and, continued in the process of access at EEPROM as step 705, repeating step 701~704 is to supervise at any time whether EEPROM has been filled with and the corresponding coverage values of upgrading.
Therefore, as step 56, when the access action of 41 couples of EEPROM of microprocessor has finished, microprocessor 41 can carry out step 57, according at last by the EEPROM of access and access shift value thereof, calculate total access shift value, its account form as shown in Figure 8, at first, do you judge that as step 81 coverage values is greater than zero? if, then execution in step 82, make total access shift value=total memory storage that (capacity * coverage values of EEPROM1~EEPROM4)+at last is by the capacity of all memory storages before the memory storage of access+at last by the access shift value of the memory storage of access.Otherwise execution in step 83 makes total access shift value=at last by the capacity of all memory storages before the memory storage of access+at last by the access shift value of the memory storage of access.Then, carry out the step 58 of Fig. 5, the total access shift value and the coverage values that calculate are gone back to the 00h~02h address (or go back to and deposit to microprocessor 41) of depositing to first EEPROM, finish the action of access EEPROM and just finish.
Certainly, if do not consider the situation whether EEPROM is filled with, also even originally promptly defaultly be filled with promptly can not be again by access the time as EEPROM, just do not need to write down again in addition above-mentioned coverage values, in this case, when asking for actual EEPROM that wants access and access shift value thereof, above-mentioned step 601,608 and 609 can be omitted, and EEPROM by access procedure in, can save the judgement process step of Fig. 7, and when calculating total access shift value when finishing access EEPROM, the step 81 of Fig. 8,82 can be saved.
As shown in the above description, present embodiment only need write down total access shift value of these EEPROM, can be by the computing of program in the microprocessor 41, find the actual eeprom address of wanting access, so, not only can save the storage space of EEPROM, and can reduce the step of access EEPROM, accelerate the access speed of EEPROM.
In addition, though the capacity of the EEPROM of present embodiment is identical, but even the capacity difference of EEPROM, said method is suitable for too, repeats no more in this.
Again referring to Fig. 9, it is second preferred embodiment of the method for accessing memorizer information of the present invention, different with first embodiment is, first embodiment is applied on the microprocessor 41 of a plurality of EEPROM of access, present embodiment then is to be applied on the hard disk controller of a plurality of hard disks of access (with HDD 0, HDD 1 expression), allows hard disk controller can simplify access step to the hard disk address information.And because hard disk is with section (sector, each sector512 Bytes) as access unit, therefore, total access shift value of hard disk can be recorded in first Sector of first hard disk (HDD 0), certainly, always the access shift value also can be recorded in the hard disk controller.The flow process and first embodiment as for the address information of the access hard disk of present embodiment are the same, therefore no longer describe in detail.
In addition referring to Figure 10, it is the 3rd preferred embodiment of the method for accessing memorizer information of the present invention, different with first embodiment is, present embodiment is on the north bridge (chip) that is applied in computer, allows north bridge can simplify the step of access RAM storer (is example with 1 two RAM of RAM 0, RAM) address information.And after this so-called RAM storer is meant a kind of shut down of computer, still have power supply to continue the RAM storer of supply, therefore, wherein Ji Lu data can't disappear behind shut down of computer.And as first embodiment, total access shift value of RAM can be recorded in first by the RAM of access (RAM 0) several position (address) before, for example the capacity of total RAM is 512M Bytes=512 * 106=512000000=1E848000h, then needs to take preceding 6 Bytes.In addition, total access address of RAM also can be recorded in the north bridge, to save the storage space of RAM.And the flow process of the address information of the access RAM of present embodiment is identical with first embodiment, so no longer repeat.
But above-described only is preferred embodiment of the present invention, when not limiting scope of the invention process with this, be that all simple equivalent of being done according to the present patent application claim scope and invention description content change and modify, all still belong in the scope that patent of the present invention contains.

Claims (11)

1. the method for an accessing memorizer information, in order to by obtaining the actual address information of wanting access in a plurality of memory storages, this method comprises:
A. write down a total access shift value of these memory storages;
B. before these memory storages are carried out access, read this total access shift value;
C. according to the capacity of this total access shift value and these memory storages, try to achieve actual memory storage and one access bit value of moving of wanting access, step C comprises:
C1. judge this total access shift value whether greater than first by the capacity of the memory storage of access, if, make total access shift value equal total access shift value and deduct first by the capacity of the memory storage of access, and enter step C2, otherwise, judge this first by the memory storage of access be actual will be by the memory storage of access, and with this total access shift value as this first by the access shift value of the memory storage of access, thereby end step C;
C2. judge this total access shift value whether greater than the next one by the capacity of the memory storage of access, if, make total access shift value equal total access shift value and deduct this next one by the capacity of the memory storage of access, and enter step C3, otherwise, judge this next one by the memory storage of access be actual will be by the memory storage of access, and with total access shift value as this next one by the access shift value of the memory storage of access, thereby end step C;
C3. repeating step C2;
D. before these memory storages are finished access, according at last by the memory storage of access and access shift value thereof, calculate this total access shift value and return and deposit, total access shift value of step D is at last by the capacity addition General Logistics Department of all memory storages before the memory storage of access, adds at last by the access shift value of the memory storage of access.
2. the method for accessing memorizer information according to claim 1 is characterized in that in steps A, and this total access shift value is recorded in first by in the memory storage of access.
3. the method for accessing memorizer information according to claim 1, it is characterized in that memory storage is EEPROM, the memory access control apparatus of access EEPROM is a microprocessor, includes an IIC controller in order to these EEPROM of access in this microprocessor.
4. the method for accessing memorizer information according to claim 3 is characterized in that this total access displacement value record is in this IIC controller.
5. the method for accessing memorizer information according to claim 3, it is characterized in that this total access displacement value record first by the EEPROM of access in.
6. the method for accessing memorizer information according to claim 1 is characterized in that these memory storages are hard disks, and the harddisk access control device is the hard disk controller of these hard disks of access.
7. the method for accessing memorizer information according to claim 6 is characterized in that this total access displacement value record is in this hard disk controller.
8. the method for accessing memorizer information according to claim 6, it is characterized in that this total access displacement value record first by the hard disk of access in.
9. the method for accessing memorizer information according to claim 1, after it is characterized in that these memory storages are a kind of shut down of computer, still have power supply to continue the RAM storer of supply, the RAM memory access control apparatus is the north bridge chips in order to these RAM storeies of access.
10. the method for accessing memorizer information according to claim 9 is characterized in that this total access displacement value record is in this north bridge chips.
11. the method for accessing memorizer information according to claim 9, it is characterized in that this total access displacement value record first by the RAM storer of access in.
CN200710001885A 2007-02-05 2007-02-05 Method for accessing memorizer information Expired - Fee Related CN100578468C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710001885A CN100578468C (en) 2007-02-05 2007-02-05 Method for accessing memorizer information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710001885A CN100578468C (en) 2007-02-05 2007-02-05 Method for accessing memorizer information

Publications (2)

Publication Number Publication Date
CN101241470A CN101241470A (en) 2008-08-13
CN100578468C true CN100578468C (en) 2010-01-06

Family

ID=39933012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710001885A Expired - Fee Related CN100578468C (en) 2007-02-05 2007-02-05 Method for accessing memorizer information

Country Status (1)

Country Link
CN (1) CN100578468C (en)

Also Published As

Publication number Publication date
CN101241470A (en) 2008-08-13

Similar Documents

Publication Publication Date Title
JP6169658B2 (en) Directed automatic refresh synchronization
JP2534757B2 (en) Refresh circuit
US9633711B2 (en) Method of managing data of storage devices responsive to temperature
US8358557B2 (en) Memory device and method
CN104516471B (en) Method and device for managing power supply of storage system
TW200528986A (en) Unified memory organization for power savings
CN106802870B (en) high-efficiency Nor-Flash controller of embedded system chip and control method
CN103514084B (en) The method of testing of reflection computer equipment hard-disk read-write energy efficiency
CN110688256B (en) Metadata power-on recovery method and device, electronic equipment and storage medium
CN109669888A (en) A kind of configurable and efficient embedded Nor-Flash controller and control method
CN100458697C (en) User program guiding method and system
CN106024052A (en) Memory controller and control method thereof
US6035384A (en) Solid state disk drive address generator with multiplier circuit
CN109144419A (en) A kind of solid state hard disk memory read-write method and system
US7836263B2 (en) Nonvolatile memory controlling method and nonvolatile memory controlling apparatus
US9558799B2 (en) Timing violation handling in a synchronous interface memory
CN106325759A (en) DDR (Double Data Rate) method and device capable of dynamically configuring port bandwidths
CN100578468C (en) Method for accessing memorizer information
CN117012266A (en) Performance test method and device based on EMMC (EMMC management computer) and storage medium thereof
US7778103B2 (en) Semiconductor memory device for independently selecting mode of memory bank and method of controlling thereof
CN107133066A (en) A kind of storage multiplexed control system in MCU chip
CN105975406B (en) A kind of data access method and device
KR20140138119A (en) Nonvolatile memory bank groups
CN108228106A (en) A kind of self-adaptation control method of cost driving copy
CN108027765B (en) Memory access method and computer system

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100106

Termination date: 20190205