The present invention relates to a memory structure and a memory-refreshing method therefor, and more particularly to a system memory structure of a computer system and a method for refreshing the system memory.
Current motherboard of a computer system basically consists of a central processing unit (CPU), a chipset and certain peripheral circuit. The CPU is core of the entire computer system, which dominates operation and cooperation among elements in the computer system, and performs logic operations as well. The chipset may include various combinations, and typically consists of a north bridge chip and a south bridge chip, wherein the north bridge chip communicates with high-speed buses while the south bridge chip communicates with low-speed ones in the motherboard.
Please refer to
Conventional display cards, graphics cards or graphics ports used in a computer system are designed following PCI protocol, and subsequently those complying with AGP protocol are developed so as to improve the displaying performance of the computer system. In general, AGP interface has better high-speed transmission efficiency than PCI interface. For example, it is preferred for 3D image processing, 3D graphing and texture mapping or some other application software.
When data access is performed via AGP interface, the system memory of the computer system as well as a built-in memory space specific to the AGP interface can serve as a frame buffer for the AGP interface. For example, as shown in
In addition to external graphics cards, internal graphics ports with graphics or image processing functions can also be built in a specific zone of the chipset or the north bridge chip, depending on hardware requirements of the computer system. Please refer to
The present invention relates to a memory structure of a computer system, coupled to a north bridge chip of the computer system and comprising a plurality of the storage zones, wherein the storage zones are independently refreshed by the north bridge chip and independently suspended from being refreshed by the north bridge chip according to corresponding clock enable signals, and any of the storage zones, if suspended from being refreshed by the north bridge chip, is self-refreshed to maintain data stored therein.
In an embodiment, the clock enable signals are generated by the north bridge chip and transmitted to the storage zones via a memory bus.
In an embodiment, the storage zones are included in a system memory of the computer system, and the clock enable signals are asserted to refresh the storage zones respectively when a central processing unit (CPU) of the computer system is in a normal operation mode. At least one of the clock enable signals are suspended as corresponding storage zones are suspended from being refreshed by the north bridge chip when the CPU is in a power-saving mode.
In an embodiment, the memory structure further comprises a frame buffer disposed in a specific one of the storage zones for storing frame data to be displayed. The specific storage zone is kept refreshed and the other storage zones are suspended from being refreshed by the north bridge chip when the CPU is in a power-saving mode.
Preferably, each of the storage zones is in a smallest storage unit capable of maintaining integrity of data access by the north bridge chip.
The present invention also relates to a memory-refreshing method applied to a computer system. The computer system includes a central processing unit (CPU), a north bridge chip in communication with the CPU and a system memory in communication with the north bridge chip. The system memory includes at least a first storage zone and a second storage zone. The first storage zone stores a specific data that remains refreshed when the CPU is in a first power-saving mode. The method comprising steps of: refreshing the first storage zone and the second storage zone respectively according to a first clock enable signal and a second clock enable signal generated by the north bridge chip when the CPU is in a normal operation mode; and remaining refreshing the first storage zone according to the first clock enable signal while suspending the second storage zone from being refreshed according to the second clock enable signal when the CPU is in the first power-saving mode.
Preferably, the method further comprises a step of maintaining data of the second storage zone when the second storage zone is suspended from being refreshed according to the second clock enable signal. The data-maintaining can be self-refreshing.
In an embodiment, the refreshing of the second storage zone is suspended by suspending the second clock signal from the north bridge chip.
In an embodiment, the first storage zone includes a frame buffer, and the specific data is a frame data to be shown on a display device of the computer system.
In an embodiment, the CPU enters the power-saving mode after the computer system idles for more than a first preset standby time. Furthermore, the CPU enters a second power-saving mode after the computer system idles for more than a second preset standby time longer than the first preset standby time. The method further comprises a step of suspending the first storage zone from refreshing according to the first clock enable signal when the CPU is in the second power-saving mode.
The above contents of the present invention will become more readily apparent to those ordinarily skilled in the art after reviewing the following detailed description and accompanying drawings, in which:
The present invention will now be described more specifically with reference to the following embodiments. It should be noted that the following descriptions of the preferred embodiments of this invention are presented herein for the purpose of illustration and description only; it is not intended to be exhaustive or to be limited to the precise form disclosed.
Please refer to
When the CPU 50 is in a normal operation mode, the north bridge chip 60 asserts the clock enable signals CKE 1, CKE 2, CKE 3 and CKE 4 to have the storage zones 701, 702, 703 and 704 constantly refreshed, respectively. For example, a frame data for displaying is recorded in the frame buffer 7010 of the storage zone 701. If the CPU 50 enters a power-saving mode, the north bridge chip 60 suspends assertion of the clock enable signals CKE2, CKE3 and CKE4 except CKE1 associated with the frame data in the frame buffer 7010. That is, the clock enable signals CKE 2, CKE 3 and CKE 4 are suspended while the storage zones 702, 703 and 704 are self-refreshed. Self-refreshing function is provided with an independent charging circuit disposed in DRAM in usual, which is capable of self-charging for a period of time. For a computer system requiring high power-saving efficiency, e.g. notebook computer or portable computer, it is a commonly seen technique.
When the frame data stored in frame buffer 7010 is to be shown on the display device 80 coupled to internal graphics port 601, the frame data needs to be performed with graphic computation and processing first by the internal graphics port 601, and then is transmitted to the display device 80 for displaying. Accordingly, the internal graphics port 601 utilizes the frame buffer 7010 in the storage zone 701 of DRAM 70 for data storage. The frame data then can be accessed for processing and computation from the frame buffer 7010. The frame buffer 7010 may occupy partial or the entire storage zone 701. In other words, to be compatible with the clock enabling signals, the storage zone 701 should be in the basic memory unit for data access, i.e. a rank. Since the frame data or image shown on display device 80 will be subject to change in a normal operation mode, the frame data stored in the frame buffer 7010 need to be constantly refreshed according to the clock enable signal CKE 1. The refreshing operation of a memory is implemented with the charging of a capacitor.
The above-mentioned power-saving mode, for example, can be managed according to ACPI (advanced configuration and power interface) protocol, which is developed and stipulated by several computer manufacturers and allows operating systems such as Windows® to manage power states of ACPI-compliant peripheral devices according to a specified algorithm. For example, if the computer system idles more than a preset standby time, the multi-level power management will involve in to adjust power consumption of various hardware devices, including CPU, hard disc, display device, memory, etc. According to ACPI protocol, the multi-level power management defines various pause phases of the CPU, including C2, C3, C4 and C5 states.
Further in the above embodiment of the present invention, if the CPU 50 enters C3 or higher power-saving state, in which no other device except the display device 80 accessing the DRAM 70 in the computer system, the north bridge chip 60 keeps assert only the clock enable signal CKE 1 to the storage zone 701 where the frame data is presented, but suspends assertion of other clock enable signals CKE 2, CKE 3 and CKE 4 so that the north bridge chip 60 does not have to refresh storage zones 702, 703 and 704. Instead, the storage zones 702, 703 and 704 are self-refreshed to maintain the data existed therein. In view of the self-refreshing technique, the DRAM 70 can have its own clock signal, so that there would be no data input/output cycle appearing on the bus to save the power consumption of generating external clock cycles. In addition to the storage zones 702, 703 and 704, the data refreshing of the CPU controller 602, the SB controller 604 and/or various I/O peripheral devices coupled to the SB controller 604 will also be temporarily powered down. Thus power consumption of un-function devices can be saved.
Therefore, it can be observed that in the present memory structure, the storage zones are independently refreshed by the north bridge chip and independently suspended from being refreshed by the north bridge chip according to corresponding clock enable signals. Preferably, any of the storage zones, if suspended from being refreshed by the north bridge chip, is self-refreshed to maintain data stored therein. The memory refreshing method of the present invention is summarized in the flowchart of
Although the internal graphics port 601, the memory controller 603 and the storage zone 701 stay fully powered on in the above embodiment for displaying the frame data on display device 80, they might also be powered down once the idle state lasting for even longer such that the frame data shown on the display device 80 may not need to be refreshed temporarily. Under this circumstance, the storage zone 701 is not refreshed by the north bridge chip 60 and the clock enable signal CKE 1, but keeps self-refreshed to maintain data already existent. The self-refreshing mechanism allows the system to successfully and correctly recover from the power-saving mode.
The feature of the present invention has been described with an exemplified application of an internal graphics port. Nevertheless, the present invention can also be applied to an external graphics card, either PCI or AGP graphics cards. Since in addition to the system memory, a local memory is also available for data storage in the presence of an external graphics card, it is necessary to locate the frame buffer where data refresh is required before entering the power-saving mode.
While the present invention has been described in terms of what is presently considered to be the most practical and preferred embodiments, it is to be understood that the present invention needs not be limited to the disclosed embodiment. On the contrary, it is intended to cover various modifications and similar arrangements included within the spirit and scope of the appended claims that are to be accorded with the broadest interpretation so as to encompass all such modifications and similar structures.
Number | Date | Country | Kind |
---|---|---|---|
094113010 | Apr 2005 | TW | national |