Refresh control method for memory system to perform refresh action on all memory banks of the memory system within refresh window
10878879 ยท 2020-12-29
Assignee
Inventors
Cpc classification
B60W50/14
PERFORMING OPERATIONS; TRANSPORTING
G11C11/40611
PHYSICS
H03M13/09
ELECTRICITY
H03M13/03
ELECTRICITY
G11C7/22
PHYSICS
G10L19/167
PHYSICS
International classification
G11C11/406
PHYSICS
G11C7/22
PHYSICS
Abstract
A refresh control method for a memory controller of a memory system is provided. The memory controller is connected with a memory. The memory includes plural memory banks. The refresh control method includes the following steps. Firstly, a refresh state of the memory device is read, and thus a refresh window is realized. Then, a refresh command is issued to the memory device according to the refresh state. The refresh command contains a memory bank number field and a memory bank count field. The memory bank count field indicates a first count. The first count of memory banks are selected from the plural memory banks of the memory device according to the memory bank number field and the first count. Moreover, a refresh operation is performed on the first count of memory banks.
Claims
1. A refresh control method for a memory controller of a memory system, the memory controller being connected with a memory device, the memory device comprising plural memory banks, the refresh control method comprising steps of: reading a refresh state of the memory device to realize a refresh window; issuing a refresh command to the memory device according to the refresh state, wherein the refresh command contains a memory bank number field and a memory bank count field, and the memory bank count field indicates a first count, wherein the first count of memory banks are selected from the plural memory banks of the memory device according to the memory bank number field and the first count, and a refresh operation is performed on the first count of memory banks; and issuing a another refresh command to the memory device, wherein the memory bank count field of the another refresh command indicates a second count, the second count is different from the first count, and the memory controller adjusts issuing times of the refresh command and the another refresh command based on a refresh time interval, wherein the first count is larger than 1 and smaller than a total count of the plural memory banks, and the second count is larger than 1 and smaller than the total count of the plural memory banks.
2. The refresh control method as claimed in claim 1, further comprising a step of issuing a mode register read command from the memory controller to the memory device, so that the refresh state stored in a mode register of the memory device is acquired by the memory controller.
3. The refresh control method as claimed in claim 1, wherein the memory controller transmits plural control signals to the memory device, and the plural control signals include a clock signal, a chip select signal and plural command/address signals.
4. The refresh control method as claimed in claim 3, wherein a first portion of the plural command/address signals is related to the memory bank number field and a second portion of the plural command/address signals is related to the memory bank count field.
5. A refresh control method for a memory device of a memory system, the memory device being connected with a memory controller, the memory device comprising plural memory banks, the refresh control method comprising steps of: receiving a refresh command from the memory controller; selecting a first count of memory banks from the plural memory banks according to a memory bank number field and a memory bank count field of the refresh command, wherein the memory bank count field indicates the first count; and performing a refresh action on the selected first count of memory banks; wherein the memory controller transmits plural control signals to the memory device, and the plural control signals include plural command/address signals; wherein a first portion of the plural command/address signals is related to the memory bank number field and a second portion of the plural command/address signals is related to the memory bank count field, wherein the first count is larger than 1 and smaller than a total count of the plural memory banks.
6. The refresh control method as claimed in claim 5, wherein the plural control signals further include a clock signal and a chip select signal.
7. A refresh control method for a memory controller of a memory system, the memory controller being connected with a memory device, the memory device comprising a mode register and plural memory banks, the refresh control method comprising steps of: reading a refresh state of the memory device to realize a refresh window; issuing a mode register write command to modify a content of a memory bank count field in the mode register, wherein the memory bank count field indicates a first count; and issuing a refresh command to the memory device according to the refresh state, wherein the refresh command contains a memory bank number field, wherein the first count of memory banks are selected from the plural memory banks of the memory device according to the memory bank number field and the first count, and a refresh operation is performed on the first count of memory banks; wherein the memory controller transmits plural control signals to the memory device, and the plural control signals include plural command/address signals; wherein a first portion of the plural command/address signals is related to the memory bank number field, wherein the first count is larger than 1 and smaller than a total count of the plural memory banks.
8. The refresh control method as claimed in claim 7, further comprising a step of issuing a mode register read command from the memory controller to the memory device, so that the refresh state stored in the mode register of the memory device is acquired by the memory controller.
9. The refresh control method as claimed in claim 7, wherein the plural control signals further include a clock signal and chip select signal.
10. A refresh control method for a memory device of a memory system, the memory device being connected with a memory controller, the memory device comprising a mode register and plural memory banks, the refresh control method comprising steps of: receiving a refresh command from the memory controller; selecting a first count of memory banks from the plural memory banks according to a memory bank number field of the refresh command and a memory bank count field in the in the mode register, wherein the memory bank count field indicates the first count; and performing a refresh action on the selected first count of memory banks; wherein the memory controller transmits plural control signals to the memory device, and the plural control signals include plural command/address signals; wherein a first portion of the plural command/address signals is related to the memory bank number field, wherein the first count is larger than 1 and smaller than a total count of the plural memory banks.
11. The refresh control method as claimed in claim 10, wherein the plural control signals further include a clock signal and chip select signal.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The above objects and advantages of the invention will become more readily apparent to those ordinarily skilled in the art after reviewing the following detailed description and accompanying drawings, in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS
(17) The invention provides refresh control method for a memory system. The memory system comprises a dynamic random access memory (DRAM) and a memory controller. In the memory system, a refresh command is specially designed. According to the content of the refresh command, a refreshing circuit performs a refresh action on plural memory banks of the DRAM. Consequently, the memory controller can perform the refresh action on all memory banks within the refresh window t.sub.REFi.
(18)
(19) The DRAM 310 is a low power third generation DDR DRAM (also abbreviated as LPDDR3 DRAM), a low power fourth generation DDR DRAM (also abbreviated as LPDDR4 DRAM) or a low power fifth generation DDR DRAM (also abbreviated as LPDDR5 DRAM).
(20) As shown in
(21) In accordance with the invention, the memory controller 320 issues a refresh command to the DRAM 310. According to the parameters of the refresh command, the refreshing circuit 311 performs a refresh action on the plural memory banks of the DRAM 310. Consequently, the memory controller 320 can perform the refresh action on all memory banks of the DRAM 310 within the refresh window t.sub.REFi.
(22)
(23) When the clock signal CLK is in the rising edge, the content of a first portion of the refresh command indicates that the chip select signal CS is in the high level state H, the command/address signals CA6 and CA2CA0 are in the low level state L, and the command/address signals CA5CA3 are in the high level state H.
(24) When the clock signal CLK is in the falling edge, the contents of the chip select signal CS and the command/address signals CA6CA0 indicate a second portion of the refresh command.
(25) The chip select signal CS is in a valid level state X. The command/address signals CA3CA0 are related to a memory bank serial number field or a memory bank number field (CA3CA0) to indicate the serial numbers of the memory banks to be refreshed. The command/address signals CA5CA4 are related to a memory bank count field MB to indicate the count of memory banks to be refreshed. The command/address signal CA6 is an all-bank refresh field AB to indicate whether the all-bank refresh action is needed.
(26) The valid level state X is the low level state L or the high level state H. Hereinafter, various refresh commands for the DRAM 310 with 16 memory banks, for example the zeroth memory bank (Bank.sub.0) to the fifteenth memory bank (Bank.sub.15), will be described. Since the first portion of the refresh command is identical, only the second portion of the refresh command will be described.
(27)
(28) In case that the command/address signal CA6 in the second portion of the refresh command is in the low level state L, the refresh command from the memory controller 320 is not related to the all-bank refresh action. According to the memory bank serial number field and the memory bank count field (i.e., the command/address signals CA5CA0), the refreshing circuit 311 determines which memory banks with the designated serial number need to be refreshed.
(29) In case that the memory bank count field (i.e., the command/address signals CA5CA4) is L,L, it means that only one memory bank needs to be refreshed. The serial number of the memory bank to be refreshed is determined according to the content of the memory bank serial number field (i.e., the command/address signals CA3CA0).
(30) In case that the memory bank count field (i.e., the command/address signals CA5CA4) is L,H, it means that two memory banks need to be refreshed. The serial numbers of the two memory banks to be refreshed are determined according to the content of the memory bank serial number field (i.e., the command/address signals CA2CA0).
(31) In case that the memory bank count field (i.e., the command/address signals CA5CA4) is H,L, it means that four memory banks need to be refreshed. The serial numbers of the four memory banks to be refreshed are determined according to the content of the memory bank serial number field (i.e., the command/address signals CA1CA0).
(32) In case that the memory bank count field (i.e., the command/address signals CA5CA4) is H,H, it means that eight memory banks need to be refreshed. The serial numbers of the eight memory banks to be refreshed are determined according to the content of the memory bank serial number field (i.e., the command/address signals CA0).
(33)
(34)
(35)
(36)
(37)
(38) Please refer to
(39) Please refer to
(40) From the above descriptions, the invention provides a refresh command for use in the memory system 300. The memory controller 320 is capable of dynamically changing the number of memory banks of the DRAM 310 that need to be refreshed. Consequently, the memory controller 320 can control the refreshing circuit 311 to perform the refresh action on all memory banks of the DRAM 310 within the refresh window t.sub.REFi.
(41)
(42) At the time point tc, the memory controller 320 issues a first portion of another refresh command. At the time point td, the memory controller 320 issues a second portion of another refresh command and the count L, H is set in the memory bank count field (MB). After the time point td, the refresh circuit 311 of the DDR DRAM 310 refreshes two memory banks according to the content of the memory bank serial number field in the second portion of another refresh command.
(43) The DES command is a deselect command of the DDR DRAM 310. Furthermore, a parameter t.sub.mbR2mbR (time interval of multi-bank refresh to multi-bank refresh) is used to define a refresh time interval between two refresh commands. The refresh time interval of t.sub.mbR2mbR is defined in DDRAM specification. As shown in
(44) Since the memory bank serial number field and the memory bank count field of the refresh command are related to the at least one memory bank, the refreshing circuit 311 of the DRAM 310 can perform the refresh action on the at least one memory bank. Consequently, the memory controller 320 issues the refresh command to control the refreshing circuit 311 to perform the refresh action on all memory banks of the DRAM 310 within the refresh window t.sub.REFi.
(45) Moreover, the refresh state of the DRAM 310 is stored in the mode register 312 of the DRAM 310. In an embodiment, the memory controller 320 issues a mode register read command to the DRAM 310. According to the mode register read command, the refresh state stored in the mode register 312 is acquired by the memory controller 320. Consequently, the memory controller 320 realizes the refresh window t.sub.REFi.
(46) In the above embodiments, the number of memory banks of the DRAM 310 to be refreshed is determined according to the parameters of the refresh command. It is noted that numerous modifications and alterations may be made while retaining the teachings of the invention. For example, in another embodiment, the memory bank count field is defined in the mode register 312. The memory banks of the DRAM 310 to be refreshed are determined according to the memory bank serial number field of the refresh command and the memory bank count field of the mode register 312.
(47)
(48) In this embodiment, the memory bank count field is defined in the mode register 312. According to a mode register write command from the memory controller 320, the content of the memory bank count field in the mode register 312 is written or modified. In an embodiment, the memory bank count field in the mode register 312 has two bits. In case that the memory bank count field is L,L, it means that only one memory bank needs to be refreshed. In case that the memory bank count field is L,H, it means that two memory banks need to be refreshed. In case that the memory bank count field is H,L, it means that four memory banks need to be refreshed. In case that the memory bank count field is H,H, it means that eight memory banks need to be refreshed.
(49)
(50) Please refer to
(51) Please refer to
(52) From the above descriptions, the invention provides a refresh command for use in the memory system 300. The memory controller 320 is capable of modifying the content of the memory bank count field in order to dynamically change the number of memory banks of the DRAM 310 that need to be refreshed.
(53) In the above embodiment, the memory bank count in the memory bank count field is smaller than the total memory bank count. If the memory bank count in the memory bank count field is larger than 1, the refresh action is performed on plural memory banks of the DRAM 310. Consequently, the memory controller 320 can effectively use the refresh command to control the refreshing circuit 311 to perform the refresh action on all memory banks of the DRAM 310 within the refresh window t.sub.REFi.
(54) The contents of the first portions and the second portions of the refresh commands as shown in
(55) While the 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 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 which are to be accorded with the broadest interpretation so as to encompass all such modifications and similar structures.