1. Field of Invention
The invention relates to a method and device for burst reading/writing memory data and, in particular, to a method and device for burst reading/writing memory data without the control of the central processing unit (CPU).
2. Related Art
With the rapid development of computer technology, the CPU has evolved from the 8086 16-bit processor to the current 64-bit processor. Its processing speed has a tremendous progress. The existence of double-CPU systems also enhances the processing speed and efficiency a lot.
Although the processing speed of the CPU is noticeably enhanced, the speed of the dynamic random access memory (DRAM) commonly used in computers is far behind the CPU speed. Moreover, the DRAM has to be refreshed before using it. This further lowers the processing speed. To prevent the memory from the bottleneck of CPU data processing, the current CPU's are all equipped with cache memory to temporarily hold required data. The data access speed is enhanced by using the write through or write back technology.
However, the faster the processing speed is, the more likely errors will occur during data access. When a RAM access error occurs, the running program will freeze or even requires the user to restart the system. This will cause a serious loss if the user is editing some important data without saving. It is particularly a serious problem for a large server. Therefore, an error checking and correcting (ECC) function is being developed to avoid such situations.
In a system with the ECC function, the memory has to be refreshed once when the system is started. Suppose in a 64-bit system [64 bits=8 bytes=1 QW(quad word)]. The burst length is 8, and the cache length is 8 QW. The CPU refreshes 4 bytes at a time. With the cache off condition, the CPU has to perform one reading and one writing to refresh each 4 bytes if there are 8 QW (64 bytes) of data. This is because memory with the ECC function has to execute the read-modify-write (RMW) process. The 8 QW data are first read to the north bridge chipset, and then the data written by the CPU are modified. Finally, the 8 QW data are written back to the DRAM. Totally, it involves 16 times of reading and 16 times of writing. Using the write through technology, the 8 QW data are read to the cache before performing 16 times of reading and 16 times of writing. Therefore, it totally needs 17 times of reading and 16 times of writing. With the cache on condition and using the write back technology, the 8 QW data are first read to the cache. The CPU prepares the data to be written and then writes back to the memory. Therefore, it requires one time of reading and one time of writing.
If one applies the above-mentioned methods to a system with more than 1 GB of memory, then the system will waste a lot of time during power on. Therefore, how to burst reading/writing memory data to reduce the system power on time is an important subject in the field.
In view of the foregoing, the invention is to provide a method and a device for burst reading/writing memory data.
To achieve the above, a device for burst reading/writing memory data of the invention includes a memory module and a north bridge chipset and is used for a power on self test (POST) of the computer. The memory module has a plurality of memory cells. The north bridge chipset includes a programmable register module and a memory module controller. The programmable register module stores at least one set of default information. The memory module controller is directed to the memory cells to perform the burst read or the burst write in accordance with the default information that is stored in the programmable register module.
Moreover, the invention also discloses a method for burst reading/writing memory data, which is implemented in a computer system with a north bridge chipset and a memory module. The north bridge chipset comprises at least a memory module controller for storing at least one set of default information and a programmable register module for containing a plurality of memory cells. The method for burst reading/writing memory data includes the following steps. First, a basic input/output system (BIOS) module transmits an initial signal to a north bridge chipset. Second, the north bridge chipset transmits a start signal to a memory module controller. Finally, the memory module controller performs burst read or burst write on memory cells according to at least one set of default information stored in a programmable register module.
As mentioned above, the method and device for burst reading/writing memory data add a programmable register module to the north bridge chipset and transmit the signals to the north bridge chipset by the BIOS module, so that the memory module controller in the north bridge chipset performs reading or writing on the memory module according to the default information stored in the programmable register module, without the control of the CPU.
The invention will become more fully understood from the detailed description given herein below illustration only, and thus is not limitative of the present invention, and wherein:
The present invention will be apparent from the following detailed description, which proceeds with reference to the accompanying drawings, wherein the same references relate to the same elements.
As shown in
The BIOS module 11 generates an initial signal S1 to the north bridge chipset 13.
The memory module 12 has a plurality of memory cells 121. In this embodiment, the memory module 12 is a DRAM module.
The north bridge chipset 13 includes a memory module controller 131 and a programmable register module 132. In this embodiment, the programmable register module 132 stores at least one set of default information I1. The memory module controller 131 performs the burst read or the burst write on the memory cells 121 via a memory bus 14 in accordance with the default information I1 that is stored in the programmable register module.
As shown in
As illustrated in
First, a procedure P1 is that a BIOS module 11 transmits an initial signal S1 to a north bridge chipset. In this embodiment, the initial signal S1 is generated in the step of a POST of the computer.
Afterwards, a procedure P2 is that the north bridge chipset 13 generates a start signal S2 immediately after receiving the initial signal S1 and sends it to the memory module controller 131.
Finally, a procedure P3 is that the memory module controller 131 performs burst read or burst write on the memory cells 121 according to the default information I1 stored in the programmable register module 132. In this embodiment, when the memory module controller 131 performs the burst read or burst write, it is not controlled by the CPU. That is, the CPU does not need to wait until the memory module controller 131 finishes reading or writing before performing other procedures.
To make the invention more comprehensive, an example is described hereinafter for illustrating the method and device for burst reading/writing memory data of the invention.
Take the ECC executed during the POST step of the computer as an example. The memory module with the ECC function has to refresh its contents before it can be used. Suppose there is a 1 GB memory module and its contents are to be refreshed.
In this case, the BIOS module 11 generates an initial signal S1 and sends it to the north bridge chipset 13. The north bridge chipset 13 generates a start signal S2 and transmits it to the memory module controller 131. The memory module controller 131 extracts the default information I1 from the programmable register module 132. The default information I1 can be stored in advance or set by the user when the initial signal S1 is generated. In this embodiment, the initial address in the address register R1 is set as 0 and the ending address is 1 G. In the data register R2, the programmable data D1 is first set as 0 (i.e., the addresses from 0 to 1 G in the memory module are refreshed as 0). Finally, the memory module controller 131 executes the burst write on the memory module 12 via a memory bus 14 according to the default information I1, writing 0 to the memory module at one time without the involvement of the CPU.
The above-mentioned method can also be used in testing the memory bus signal integration. For example, the data quick signal input (DQSI) or data quick signal output (DQSO) are executed during the POST step of the computer.
In summary, the disclosed method and device for burst reading/writing memory data add a programmable register module to the north bridge chipset, so that the memory module controller in the north bridge chipset performs reading or writing on the memory module according to the default information stored in the programmable register module, without the control of the CPU. One-time reading or writing can be directly performed in the requested memory address range. This saves a lot of time in reading and writing at the same time as in the prior art.
Although the invention has been described with reference to specific embodiments, this description is not meant to be construed in a limiting sense. Various modifications of the disclosed embodiments, as well as alternative embodiments, will be apparent to persons skilled in the art. It is, therefore, contemplated that the appended claims will cover all modifications that fall within the true scope of the invention.
Number | Date | Country | Kind |
---|---|---|---|
94107938 A | Mar 2005 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
5522050 | Amini et al. | May 1996 | A |
5732241 | Chan | Mar 1998 | A |
7075822 | Elmhurst et al. | Jul 2006 | B2 |
20050089106 | Cho et al. | Apr 2005 | A1 |
Number | Date | Country | |
---|---|---|---|
20060212615 A1 | Sep 2006 | US |