TW202414224A - Memory device and management method thereof - Google Patents

Memory device and management method thereof Download PDF

Info

Publication number
TW202414224A
TW202414224A TW111136980A TW111136980A TW202414224A TW 202414224 A TW202414224 A TW 202414224A TW 111136980 A TW111136980 A TW 111136980A TW 111136980 A TW111136980 A TW 111136980A TW 202414224 A TW202414224 A TW 202414224A
Authority
TW
Taiwan
Prior art keywords
memory
interrupt signal
memory chip
controller
memory device
Prior art date
Application number
TW111136980A
Other languages
Chinese (zh)
Other versions
TWI817747B (en
Inventor
林家興
郭乃萍
阮士洲
劉建興
鄭順利
Original Assignee
旺宏電子股份有限公司
Filing date
Publication date
Application filed by 旺宏電子股份有限公司 filed Critical 旺宏電子股份有限公司
Priority to TW111136980A priority Critical patent/TWI817747B/en
Priority claimed from TW111136980A external-priority patent/TWI817747B/en
Application granted granted Critical
Publication of TWI817747B publication Critical patent/TWI817747B/en
Publication of TW202414224A publication Critical patent/TW202414224A/en

Links

Images

Abstract

A memory device and a management method thereof are provided. The memory device includes a controller and at least one memory channel. The memory channel includes at least one memory chip. The at least one memory chip is commonly coupled to the controller through an interrupt signal wire. The at least one memory chip generates at least one local interrupt signal and performs a logic operation on the at least one local interrupt signal to generate a common interrupt signal. The interrupt signal wire is configured to transmit the common interrupt signal to the controller.

Description

記憶體裝置及其管理方法Memory device and management method thereof

本發明是有關於一種記憶體裝置及其管理方法,且特別是有關於一種可減低控制器負載的記憶體裝置及其管理方法。The present invention relates to a memory device and a management method thereof, and in particular to a memory device and a management method thereof capable of reducing controller load.

在現今的技術領中,固態硬碟已被廣泛的應用在多種不同的應用領域中。為了提升固態硬碟的表現度以及記憶容量,現今技術領域中,常在一個記憶通道中設置多個記憶體晶片。如論如何,要識別記憶通道中的每個記憶體晶片的閒置或忙碌狀態,不是一件簡單的事情。In today's technology, solid-state drives have been widely used in a variety of applications. In order to improve the performance and memory capacity of solid-state drives, multiple memory chips are often set in one memory channel. However, it is not easy to identify the idle or busy status of each memory chip in the memory channel.

在習知技術中,控制器可透過經常性的發送狀態讀取命令來對每個記憶體晶片進行其閒置或忙碌狀態的讀取動作。然而,針對每個記憶體晶片頻繁的進行閒置或忙碌狀態的讀取動作,常造成控制器的過載,並降低控制器的表現度,影響記體裝置整體的工作效能。In the prior art, the controller can read the idle or busy status of each memory chip by frequently sending status read commands. However, frequently reading the idle or busy status of each memory chip often causes controller overload and reduces the performance of the controller, affecting the overall working performance of the memory device.

本發明提供多種種記憶體裝置及其管理方法,可有效減輕控制器的過載狀態。The present invention provides a variety of memory devices and management methods thereof, which can effectively alleviate the overload state of the controller.

本發明的記憶體裝置包括控制器以及至少一記憶體通道。記憶體通道包括至少一記憶體晶片。記憶體晶片共同透過中斷信號線以耦接至控制器,其中記憶體晶片產生至少一區域中斷信號,並使區域中斷信號執行邏輯運算以產生共同中斷信號。中斷信號線用以傳輸共同中斷信號至控制器。The memory device of the present invention includes a controller and at least one memory channel. The memory channel includes at least one memory chip. The memory chips are coupled to the controller through an interrupt signal line, wherein the memory chip generates at least one local interrupt signal and performs a logic operation on the local interrupt signal to generate a common interrupt signal. The interrupt signal line is used to transmit the common interrupt signal to the controller.

本發明的另一記憶體裝置包括控制器以及至少一記憶體通道。控制器具有至少一命令佇列,其中至少一命令佇列記錄多個操作命令以及分別對應操作命令的多個操作完成時間。至少一記憶體通道耦接至至少一命令佇列,至少一記憶體通道包括至少一記憶體晶片。其中,控制器,基於被執行各操作命令,根據對應的各操作完成時間以在時間點傳送狀態讀取命令至對應的選中記憶體晶片。Another memory device of the present invention includes a controller and at least one memory channel. The controller has at least one command queue, wherein the at least one command queue records a plurality of operation commands and a plurality of operation completion times respectively corresponding to the operation commands. The at least one memory channel is coupled to the at least one command queue, and the at least one memory channel includes at least one memory chip. The controller, based on each executed operation command, transmits a status read command to the corresponding selected memory chip at a time point according to the corresponding operation completion time.

本發明的記憶體裝置的管理方法包括:使至少一記憶體晶片共同透過中斷信號線以耦接至控制器;使記憶體晶片產生至少一區域中斷信號;使區域中斷信號執行邏輯運算以產生共同中斷信號;以及,透過中斷信號線以傳送共同中斷信號至控制器。The management method of the memory device of the present invention includes: coupling at least one memory chip to a controller through an interrupt signal line; generating at least one local interrupt signal by the memory chip; performing a logic operation on the local interrupt signal to generate a common interrupt signal; and transmitting the common interrupt signal to the controller through the interrupt signal line.

本發明的另一記憶體裝置的管理方法包括:設置至少一命令佇列以對應至少一記憶體通道,其中至少一記憶體通道包括至少一記憶體晶片;使至少一命令佇列記錄多個操作命令以及多個操作完成時間;以及,設置計時器,使計時器根據各操作完成時間進行計時,並藉以產生傳送狀態讀取命令至對應的選中記憶體晶片的時間點。Another memory device management method of the present invention includes: setting at least one command queue to correspond to at least one memory channel, wherein the at least one memory channel includes at least one memory chip; allowing the at least one command queue to record multiple operation commands and multiple operation completion times; and setting a timer, allowing the timer to count according to each operation completion time, and thereby generate a time point for sending a status read command to the corresponding selected memory chip.

基於上述,本發明的各個記憶體晶片透過共同中斷信號來傳送其閒置或忙碌的狀態。在當共同中斷信號顯示有至少一記憶體晶片為閒置時,控制器再針對各個記憶體晶片的閒置或忙碌狀態進行詢問。如此一來,可有效降低控制器需針對多個記憶體晶片的閒置或忙碌的狀態一再進行詢問而產生的過載現象,提供記憶體裝置的工作效率。Based on the above, each memory chip of the present invention transmits its idle or busy status through a common interrupt signal. When the common interrupt signal shows that at least one memory chip is idle, the controller inquires about the idle or busy status of each memory chip. In this way, the controller can effectively reduce the overload phenomenon caused by repeatedly inquiring about the idle or busy status of multiple memory chips, thereby improving the working efficiency of the memory device.

請參照圖1A,圖1A繪示本發明一實施例的記憶體裝置的示意圖。記憶體裝置100包括控制器110以及由多個記憶體晶片121~12N所形成的一記憶體通道MC。記憶體晶片121~12N共同耦接至中斷信號線IRW,並透過中斷信號線IRW耦接至控制器110。記憶體晶片121~12N並共用資料匯流排DBUS以與控制器110進行通信。控制器110另透過多條晶片選擇信號線以分別傳送晶片選擇信號CS1~CSN至記憶體晶片121~12N。Please refer to FIG. 1A, which shows a schematic diagram of a memory device of an embodiment of the present invention. The memory device 100 includes a controller 110 and a memory channel MC formed by a plurality of memory chips 121-12N. The memory chips 121-12N are commonly coupled to an interrupt signal line IRW, and are coupled to the controller 110 through the interrupt signal line IRW. The memory chips 121-12N also share a data bus DBUS to communicate with the controller 110. The controller 110 also transmits chip select signals CS1-CSN to the memory chips 121-12N respectively through a plurality of chip select signal lines.

在本實施例中,記憶體晶片121~12N的內部可分別產生多個區域中斷信號。記憶體晶片121~12N可分別使區域中斷信號被傳送至中斷信號線IRW上,並透過針對上述的區域中斷信號執行一邏輯運算來產生共同中斷信號IR。其中,記憶體晶片121~12N可透過線與(wired AND)的方式來耦接至中斷信號線IRW,因此,記憶體晶片121~12N可透過針對區域中斷信號執行及運算來產生共同中斷信號IR,並將共同中斷信號IR傳送至控制器110。In this embodiment, the memory chips 121-12N can generate a plurality of regional interrupt signals respectively. The memory chips 121-12N can respectively transmit the regional interrupt signals to the interrupt signal line IRW, and generate a common interrupt signal IR by performing a logic operation on the regional interrupt signals. The memory chips 121-12N can be coupled to the interrupt signal line IRW by wired AND, so the memory chips 121-12N can generate a common interrupt signal IR by performing and operating on the regional interrupt signals, and transmit the common interrupt signal IR to the controller 110.

在本實施例中,共同中斷信號IR可用來顯示記憶體晶片121~12N的忙碌以及閒置狀態。在細節上,各記憶體晶片121~12N所產生的各區域中斷信號用以表示對應的各記憶體晶片121~12N的操作命令的完成狀態。其中,以記憶體晶片121為範例,當記憶體晶片121接收到操作命令時(例如資料存取命令),記憶體晶片121可進行忙碌狀態以執行資料存取動作。此時,記憶體晶片121可使所產生的區域中斷信號為邏輯1。並且,在當記憶體晶片121為已完成操作命令的閒置狀態時,記憶體晶片121可拉低所產生的區域中斷信號為邏輯0。而基於共同中斷信號IR是所有的區域中斷信號的及邏輯運算的結果,共同中斷信號IR可對應被拉低為邏輯0。相對的,若記憶體晶片121為未完成操作命令的忙碌狀態時,記憶體晶片121可維持所產生的區域中斷信號為邏輯1。In this embodiment, the common interrupt signal IR can be used to display the busy and idle states of the memory chips 121-12N. In detail, each regional interrupt signal generated by each memory chip 121-12N is used to indicate the completion status of the operation command of the corresponding memory chip 121-12N. Among them, taking the memory chip 121 as an example, when the memory chip 121 receives an operation command (such as a data access command), the memory chip 121 can enter a busy state to perform a data access operation. At this time, the memory chip 121 can make the generated regional interrupt signal logical 1. Furthermore, when the memory chip 121 is in an idle state where the operation command has been completed, the memory chip 121 can pull down the generated regional interrupt signal to logic 0. Since the common interrupt signal IR is the result of the logical operation of all the regional interrupt signals, the common interrupt signal IR can be correspondingly pulled down to logic 0. In contrast, if the memory chip 121 is in a busy state where the operation command has not been completed, the memory chip 121 can maintain the generated regional interrupt signal to logic 1.

也就是說,在本實施例中,當共同中斷信號IR被拉低為邏輯0的事件發生時,控制器110可以得知記憶體晶片121~12N中的至少其中之一已完成所要執行的操作命令,並處於閒置狀態。That is, in this embodiment, when the common interrupt signal IR is pulled down to logic 0, the controller 110 can know that at least one of the memory chips 121-12N has completed the operation command to be executed and is in an idle state.

在另一方面,當控制器110偵測出共同中斷信號IR被拉低為邏輯0時,控制器110可針對記憶體晶片121~12N進行狀態查詢動作。其中,透過使晶片選擇信號CS1~CSN的其中之一被致能,控制器110可選擇記憶體晶片121~12N的其中之一以作為選中記憶體晶片(例如為記憶體晶片121),並透過資料匯流排DBUS傳送狀態讀取命令至記憶體晶片121,來讀取記憶體晶片121的閒置或忙碌狀態。On the other hand, when the controller 110 detects that the common interrupt signal IR is pulled down to logic 0, the controller 110 can perform a status query operation on the memory chips 121-12N. By enabling one of the chip selection signals CS1-CSN, the controller 110 can select one of the memory chips 121-12N as the selected memory chip (for example, the memory chip 121), and transmit a status read command to the memory chip 121 via the data bus DBUS to read the idle or busy state of the memory chip 121.

在當記憶體晶片121接收到狀態讀取命令時,若記憶體晶片121為已完成操作命令的閒置狀態時,則可透過資料匯流排DBUS傳送閒置資訊至控制器110;相反的,若記憶體晶片121為未完成操作命令的忙碌狀態時,則可透過資料匯流排DBUS傳送忙碌資訊至控制器110。另外,若記憶體晶片121為已完成操作命令的閒置狀態時,可根據所接收到狀態讀取命令,來清除其所產生的區域中斷信號,並使其所產生的區域中斷信號為邏輯1。When the memory chip 121 receives the status read command, if the memory chip 121 is in an idle state having completed the operation command, the idle information can be transmitted to the controller 110 via the data bus DBUS; on the contrary, if the memory chip 121 is in a busy state having not completed the operation command, the busy information can be transmitted to the controller 110 via the data bus DBUS. In addition, if the memory chip 121 is in an idle state having completed the operation command, the local interrupt signal generated by it can be cleared according to the received status read command, and the local interrupt signal generated by it can be set to logic 1.

在本實施例中,控制器110可依序設定各個記憶體晶片121~12N為選中記憶體晶片,並依序地針對記憶體晶片121~12N發送狀態讀取命令,並藉以詢問所有的記憶體晶片121~12N的閒置或忙碌狀態。In this embodiment, the controller 110 may sequentially set each memory chip 121-12N as a selected memory chip, and sequentially send status read commands to the memory chips 121-12N, thereby inquiring the idle or busy status of all the memory chips 121-12N.

此外,關於狀態讀取命令的發送時間點,控制器110可預估選中記憶體晶片完成操作命令所需的時間,基於操作命令發送至選中記憶體晶片的時間,來發送狀態讀取命令至選中記憶體晶片。如此一來,控制器110可以降低詢問記憶體晶片121~12N的閒置或忙碌狀態的次數,節省功率消耗。In addition, regarding the time point of sending the status read command, the controller 110 can estimate the time required for the selected memory chip to complete the operation command, and send the status read command to the selected memory chip based on the time when the operation command is sent to the selected memory chip. In this way, the controller 110 can reduce the number of inquiries to the idle or busy status of the memory chips 121~12N, saving power consumption.

在當所有的記憶體晶片121~12N所產生的區域中斷信號都被清除為邏輯1時,共同中斷信號IR可恢復為邏輯1。When the local interrupt signals generated by all memory chips 121-12N are cleared to logic 1, the common interrupt signal IR can be restored to logic 1.

在本實施例中,記憶體通道MC的數量可以為一個或多個,沒有固定的限制。記憶體通道MC中所包括的記憶體晶片121~12N則可以為單位元(SLC)或多位元(MLC)的反及式快閃(NAND Flash)記憶體晶片、反或式快閃記憶體、隨機存取記憶體等本領域所熟知的任意形式的記憶體晶片。In this embodiment, the number of memory channels MC can be one or more, without fixed restrictions. The memory chips 121-12N included in the memory channel MC can be single-bit (SLC) or multi-bit (MLC) NAND Flash memory chips, NAND Flash memory, random access memory, and any other memory chips known in the art.

請參照圖1B,圖1B繪示本發明另一實施例的記憶體裝置的示意圖。與圖1A的記憶體裝置100不相同的,圖1B中的記憶體裝置100中的記憶體通道MC可由單一個記憶體晶片121來形成。記憶體通道MC透過中斷信號線IRW、資料匯流排DBUS以及晶片選擇信號線以耦接至控制器110。記憶體晶片121接收晶片選擇信號CS1。記憶體晶片121耦接中斷信號線IRW,傳輸區域中斷信號至中斷信號線IRW並透過使區域中斷信號與邏輯1執行邏輯運算來產生共同中斷信號IR。Please refer to FIG. 1B , which shows a schematic diagram of a memory device of another embodiment of the present invention. Unlike the memory device 100 of FIG. 1A , the memory channel MC in the memory device 100 of FIG. 1B can be formed by a single memory chip 121. The memory channel MC is coupled to the controller 110 through the interrupt signal line IRW, the data bus DBUS, and the chip selection signal line. The memory chip 121 receives the chip selection signal CS1. The memory chip 121 is coupled to the interrupt signal line IRW, transmits the regional interrupt signal to the interrupt signal line IRW, and generates a common interrupt signal IR by performing a logic operation on the regional interrupt signal and logic 1.

以下請參照圖2A至圖2C,圖2A至圖2C繪示本發明實施例的記憶體裝置的動作波形圖。請同步參照圖1,在圖2A中,控制器110,透過資料流排DBUS,以提供為讀取命令的操作命令RDCMD至選中記憶體晶片。選中記憶體晶片在接收到操作命令RDCMD後,使其內部的就緒信號RDY被拉低為邏輯0,並在一個時間延遲tR後,在完成操作命令RDCMD後,使內部的就緒信號RDY被拉高為邏輯1。基於操作命令RDCMD已被完成,選中記憶體晶片可拉低其所產生的區域中斷信號,並進一步使共同中斷信號IR被拉低為邏輯0。Please refer to FIG. 2A to FIG. 2C below, which illustrate the operation waveforms of the memory device of the embodiment of the present invention. Please refer to FIG. 1 simultaneously. In FIG. 2A, the controller 110 provides an operation command RDCMD, which is a read command, to the selected memory chip via the data bus DBUS. After receiving the operation command RDCMD, the selected memory chip pulls down its internal ready signal RDY to logic 0, and after a time delay tR, after completing the operation command RDCMD, pulls up the internal ready signal RDY to logic 1. Based on the completion of the operation command RDCMD, the selected memory chip can pull down the regional interrupt signal generated by it, and further pull down the common interrupt signal IR to logic 0.

在圖2B中,在共同中斷信號IR為邏輯0的條件下,在時間循環CT為操作命令傳輸循環CMDIN時,控制器110透過資料匯流排DBUS傳送狀態讀取命令RSTA至選中記憶體晶片。若此時選中記憶體晶片為已完成操作命令的閒置狀態,選中記憶體晶片可在時間循環CT為資料輸出循環DOUT時,透過資料匯流排DBUS傳送為閒置狀態的閒置資訊STA至控制器110。並且,選中記憶體晶片可對應狀態讀取命令RSTA以清除所產生的區域中斷信號為邏輯1,並進一步使共同中斷信號轉態為邏輯1。In FIG2B , under the condition that the common interrupt signal IR is logic 0, when the time cycle CT is the operation command transmission cycle CMDIN, the controller 110 transmits the status read command RSTA to the selected memory chip through the data bus DBUS. If the selected memory chip is in an idle state having completed the operation command at this time, the selected memory chip can transmit idle information STA in an idle state to the controller 110 through the data bus DBUS when the time cycle CT is the data output cycle DOUT. In addition, the selected memory chip can respond to the status read command RSTA to clear the generated regional interrupt signal to logic 1, and further make the common interrupt signal transition to logic 1.

在圖2C中,在共同中斷信號IR為邏輯1的條件下,在時間循環CT為操作命令傳輸循環CMDIN時,控制器110透過資料匯流排DBUS傳送狀態讀取命令RSTA至選中記憶體晶片。若此時選中記憶體晶片為未完成操作命令的忙碌狀態,選中記憶體晶片可在時間循環CT為資料輸出循環DOUT時,透過資料匯流排DBUS傳送為忙碌狀態的忙碌資訊STB至控制器110。此時,共同中斷信號可維持為邏輯1。In FIG2C , under the condition that the common interrupt signal IR is logic 1, when the time cycle CT is the operation command transmission cycle CMDIN, the controller 110 transmits the status read command RSTA to the selected memory chip through the data bus DBUS. If the selected memory chip is in a busy state of not completing the operation command at this time, the selected memory chip can transmit busy information STB in a busy state to the controller 110 through the data bus DBUS when the time cycle CT is the data output cycle DOUT. At this time, the common interrupt signal can be maintained as logic 1.

以下請參照圖3,圖3繪示本發明實施例的記憶體裝置的記憶體晶片的閒置或忙碌狀態的記錄動作的流程圖。請搭配參照圖1,在步驟S310中,控制器110判斷是否有新的操作命令要被執行,若控制器110判斷出無新的操作命令要被執行,可結束此流程。若控制器110判斷出有新的操作命令要被執行,可執行步驟S320。在步驟S320中,控制器110針對對應操作命令的邏輯位址進行轉換,以獲得執行操作命令的記憶體晶片的實體位址。接著,在步驟S330中,控制器110可判斷對應操作命令的記憶體晶片是否為閒置狀態,若記憶體晶片非為閒置狀態,可結束此流程。相對的,若記憶體晶片為閒置狀態,可執行步驟S340。Please refer to FIG. 3 below, which is a flow chart showing the recording action of the idle or busy state of the memory chip of the memory device of the embodiment of the present invention. Please refer to FIG. 1 in combination. In step S310, the controller 110 determines whether there is a new operation command to be executed. If the controller 110 determines that there is no new operation command to be executed, this process can be terminated. If the controller 110 determines that there is a new operation command to be executed, step S320 can be executed. In step S320, the controller 110 converts the logical address corresponding to the operation command to obtain the physical address of the memory chip that executes the operation command. Next, in step S330, the controller 110 may determine whether the memory chip corresponding to the operation command is in an idle state. If the memory chip is not in an idle state, this process may be terminated. Conversely, if the memory chip is in an idle state, step S340 may be executed.

在步驟S340中,控制器110發送操作命令至對應的記憶體晶片。並且在步驟S350中,控制器110可記錄此記憶體晶片為忙碌狀態,並可結束此流程。In step S340, the controller 110 sends an operation command to the corresponding memory chip. And in step S350, the controller 110 may record that the memory chip is busy and terminate the process.

以下則請參照圖4,圖4繪示本發明實施例的記憶體裝置的中斷事件的觸發動作的流程圖。同樣請搭配參照圖1,在步驟S410中,控制器110可判斷中斷信號IR是否在下降緣,若判斷結果為是,可執行步驟S430以觸發中斷事件。其中,當中斷信號IR第一次出現下降緣(由邏輯1轉態至邏輯0),控制器110可直接執行步驟S430以觸發中斷事件。Please refer to FIG. 4 below, which is a flowchart of the triggering action of the interrupt event of the memory device of the embodiment of the present invention. Please also refer to FIG. 1. In step S410, the controller 110 can determine whether the interrupt signal IR is at a falling edge. If the determination result is yes, step S430 can be executed to trigger the interrupt event. Among them, when the interrupt signal IR has a falling edge for the first time (transitioning from logic 1 to logic 0), the controller 110 can directly execute step S430 to trigger the interrupt event.

在中斷事件被觸發後,控制器110可發出狀態讀取命令至記憶體晶片121~12N。After the interrupt event is triggered, the controller 110 may issue a status read command to the memory chips 121-12N.

另外,若步驟S410中的判斷結果為否,控制器110並可在記憶體晶片121~12N接收狀態讀取命令一預定時間後,判斷中斷信號IR是否保持在邏輯0。若中斷信號IR仍保持在邏輯0,控制器110可直接執行步驟S430以觸發中斷事件。若中斷信號IR並非保持在邏輯0,則可結束此流程。In addition, if the determination result in step S410 is no, the controller 110 can determine whether the interrupt signal IR remains at logic 0 after the memory chips 121~12N receive the status read command for a predetermined time. If the interrupt signal IR still remains at logic 0, the controller 110 can directly execute step S430 to trigger an interrupt event. If the interrupt signal IR does not remain at logic 0, this process can be terminated.

請繼續參照圖5,圖5繪示本發明圖4實施例的中斷事件的動作流程圖。在當步驟S430被執行以觸發中斷事件後,可進入圖5的步驟流程。其中,控制器110在步驟S510中判斷中斷事件是否被觸發,若是則進入步驟S520,若否則結束此流程。接著,控制器110可選擇記憶體晶片121~12N的其中之一以作為選中記憶體晶片,並判斷選中記憶體晶片是否在忙碌中(步驟S520)。若判斷結果為是,控制器110可傳送狀態讀取命令至選中記憶體晶片(步驟S530),並在步驟S540中,進行記憶體晶片的閒置或忙碌狀態的更新動作。其中,透過傳送狀態讀取命令至選中記憶體晶片,可清除選中記憶體晶片所傳送的區域中斷信號,控制器110並可將選中記憶體晶片已為閒置的狀態,記錄至一查找資訊中。Please continue to refer to FIG. 5, which is a flowchart of the interrupt event of the embodiment of FIG. 4 of the present invention. After step S430 is executed to trigger the interrupt event, the step flow of FIG. 5 can be entered. Among them, the controller 110 determines whether the interrupt event is triggered in step S510, and if so, enters step S520, otherwise, terminates this process. Then, the controller 110 can select one of the memory chips 121~12N as the selected memory chip, and determine whether the selected memory chip is busy (step S520). If the result of the determination is yes, the controller 110 may send a status read command to the selected memory chip (step S530), and in step S540, update the idle or busy status of the memory chip. By sending the status read command to the selected memory chip, the regional interrupt signal sent by the selected memory chip may be cleared, and the controller 110 may record the idle status of the selected memory chip in a search information.

若在步驟S520中,控制器110判斷的結果為否,則可執行步驟S560。If the result of the controller 110's determination in step S520 is no, step S560 may be executed.

在本實施例中,查找資訊可以利用控制器110中的暫存器來記錄,或應用內建或外掛的記憶體來記錄,沒有一定的限制。In this embodiment, the search information can be recorded using a register in the controller 110, or using a built-in or external memory, without any limitation.

在步驟S550中,控制器110可根據最新的狀態資訊來執行記憶體晶片121~12N的操作策略。In step S550, the controller 110 may execute the operation strategy of the memory chips 121-12N according to the latest status information.

在步驟S560中,控制器110可判斷選中記憶體晶片是否為最後一個記憶體晶片,若是則可執行步驟S570。若判斷結果為否,控制器110可選中下一個記憶體晶片,並重新執行步驟S520。In step S560, the controller 110 may determine whether the selected memory chip is the last memory chip, and if so, may execute step S570. If the determination result is no, the controller 110 may select the next memory chip and re-execute step S520.

在步驟S570中,可設定一預設時間,並設定透過計時器以在預設時間後的時間點檢查共同中斷信號是否仍為邏輯0。In step S570, a preset time may be set, and a timer may be set to check whether the common interrupt signal is still logic 0 at a time point after the preset time.

以下請參照圖6,圖6繪示本發明另一實施例的記憶體裝置的方塊圖。記憶體裝置600可以為一固態硬碟,並耦接至主機端601。記憶體裝置600包括控制器610以及記憶體通道MC1以及MC2。記憶體通道MC1具有記憶體晶片6211~621N,記憶體晶片6211~621N透過一共同中斷信號線以產生一共同中斷信號IR1。控制器610透過資料匯流排DBUS1以與記憶體晶片6211~621N進行資料傳輸動作,控制器610並透過晶片選擇信號CS11~CS1N以選擇記憶體晶片6211~621N的其中之一來進行操作。記憶體通道MC2具有記憶體晶片6221~622M,記憶體晶片6221~622M透過另一共同中斷信號線以產生共同中斷信號IR2。控制器610透過資料匯流排DBUS2以與記憶體晶片6221~622M進行資料傳輸動作,控制器610並透過晶片選擇信號CS21~CS2M以選擇記憶體晶片6221~622M的其中之一來進行操作。其中記憶體通道MC1中的記憶體晶片6211~621N的數量,與記憶體通道MC2中的記憶體晶片6221~622M的數量可以相同或不相同。Please refer to Figure 6 below, which shows a block diagram of a memory device of another embodiment of the present invention. The memory device 600 can be a solid state hard disk and is coupled to the host end 601. The memory device 600 includes a controller 610 and memory channels MC1 and MC2. The memory channel MC1 has memory chips 6211~621N, and the memory chips 6211~621N generate a common interrupt signal IR1 through a common interrupt signal line. The controller 610 performs data transmission operations with the memory chips 6211~621N through the data bus DBUS1, and the controller 610 selects one of the memory chips 6211~621N for operation through the chip selection signal CS11~CS1N. The memory channel MC2 has memory chips 6221-622M, and the memory chips 6221-622M generate a common interrupt signal IR2 through another common interrupt signal line. The controller 610 performs data transmission with the memory chips 6221-622M through the data bus DBUS2, and the controller 610 selects one of the memory chips 6221-622M for operation through the chip selection signals CS21-CS2M. The number of memory chips 6211-621N in the memory channel MC1 and the number of memory chips 6221-622M in the memory channel MC2 may be the same or different.

在本實施例中,控制器610包括多個處理器611、介面電路612、613、計時器614、快閃轉換層(Flash Translation Layer, FTL)615以及靜態記憶體616。處理器611耦接至介面電路612,並透過介面電路612耦接至主機端601。處理器611並耦接至介面電路613,並透過介面電路613耦接至記憶體通道MC1以及MC2。處理器611用以根據主機端601的需求,發送多個操作命令至記憶體通道MC1以及MC2,並對記憶體通道MC1以及MC2中的記憶體晶片6211~622M執行資料存取動作。In this embodiment, the controller 610 includes a plurality of processors 611, interface circuits 612 and 613, a timer 614, a flash translation layer (FTL) 615, and a static memory 616. The processor 611 is coupled to the interface circuit 612, and is coupled to the host end 601 through the interface circuit 612. The processor 611 is also coupled to the interface circuit 613, and is coupled to the memory channels MC1 and MC2 through the interface circuit 613. The processor 611 is used to send a plurality of operation commands to the memory channels MC1 and MC2 according to the requirements of the host end 601, and perform data access operations on the memory chips 6211~622M in the memory channels MC1 and MC2.

控制器610可用以執行如前述多個實施例的動作流程,並藉以記錄記憶體通道MC1以及MC2中的記憶體晶片6211~622M的閒置或忙碌狀態。The controller 610 may be used to execute the operation flow of the aforementioned embodiments, and thereby record the idle or busy status of the memory chips 6211 - 622M in the memory channels MC1 and MC2.

此外,計時器614耦接至處理器611。計時器614可根據一預設時間進行計時,並在預設時間後的時間點,檢查共中斷信號是否仍為邏輯0。In addition, the timer 614 is coupled to the processor 611. The timer 614 can count according to a preset time, and at a time point after the preset time, check whether the common interrupt signal is still logic 0.

附帶一提的,控制器610中的處理器611可另耦接外掛的動態記憶體630,並應用動態記憶體630來進行暫存資料的存取動作。Incidentally, the processor 611 in the controller 610 may be further coupled to an external dynamic memory 630, and use the dynamic memory 630 to access the temporary data.

關於記憶體裝置的動作方式,可參照圖7繪示的記憶體裝置的記憶體晶片的管理方法的波形圖。其中,請同步參照圖6,並以記憶體通道MC1中的記憶體晶片6211、6212為範例。其中記憶體晶片6211、6212分別產生區域中斷信號LIR1、LIR2。共同中斷信號IR1則為區域中斷信號LIR1、LIR2的及邏輯運算的結果。Regarding the operation mode of the memory device, please refer to the waveform diagram of the memory chip management method of the memory device shown in FIG7. Please refer to FIG6 simultaneously and take the memory chips 6211 and 6212 in the memory channel MC1 as an example. The memory chips 6211 and 6212 generate the regional interrupt signals LIR1 and LIR2 respectively. The common interrupt signal IR1 is the result of the logical operation of the regional interrupt signals LIR1 and LIR2.

在圖7中,在時間點0以及1,控制器610透過資料匯流排DBUS1依序發送操作命令CMD0至記憶體晶片6211以及CMD1至記憶體晶片6212。在時間點3,記憶體晶片6211已完成操作命令CMD0並使所產生的區域中斷信號LIR1被拉低為邏輯0。在此時,共同中斷信號IR1對應被拉低為邏輯0並產生下降緣。In FIG. 7 , at time points 0 and 1, the controller 610 sequentially sends the operation command CMD0 to the memory chip 6211 and CMD1 to the memory chip 6212 via the data bus DBUS1. At time point 3, the memory chip 6211 has completed the operation command CMD0 and causes the generated local interrupt signal LIR1 to be pulled down to logic 0. At this time, the common interrupt signal IR1 is correspondingly pulled down to logic 0 and generates a falling edge.

接著,在時間點4,記憶體晶片6212已完成操作命令CMD1並使所產生的區域中斷信號LIR2被拉低為邏輯0。在此同時,控制器610透過資料匯流排DBUS1來針對記憶體晶片6211發送狀態讀取命令RSTA0。Next, at time point 4, the memory chip 6212 has completed the operation command CMD1 and causes the generated local interrupt signal LIR2 to be pulled low to logic 0. At the same time, the controller 610 sends a status read command RSTA0 to the memory chip 6211 via the data bus DBUS1.

由於在時間點4時,記憶體晶片6211已完成操作命令CMD0並為閒置狀態,記憶體晶片6211對應狀態讀取命令RSTA0來在時間點5清除所產生的區域中斷信號LIR1為邏輯1。在另一方面,在時間點5,基於記憶體晶片6211為閒置狀態,控制器610可再透過資料匯流排DBUS1以發送操作命令CMD0至記憶體晶片6211。Since at time point 4, the memory chip 6211 has completed the operation command CMD0 and is in an idle state, the memory chip 6211 corresponds to the status read command RSTA0 to clear the generated local interrupt signal LIR1 to logic 1 at time point 5. On the other hand, at time point 5, based on the memory chip 6211 being in an idle state, the controller 610 can send the operation command CMD0 to the memory chip 6211 via the data bus DBUS1.

在時間點6,控制器610透過資料匯流排DBUS1以發送狀態讀取命令RSTA1至記憶體晶片6212。在時間點7,記憶體晶片6212對應狀態讀取命令RSTA1以清除所產生的區域中斷信號LIR2為邏輯1。共同中斷信號IR1也在時間點7轉態為邏輯1。值得一提的,控制器610可基於時間點6所發送的狀態讀取命令RSTA1,以在一個預設時間TD(例如等於2)後的時間點9以檢查共同中斷信號IR1是否為邏輯1。At time point 6, the controller 610 sends a status read command RSTA1 to the memory chip 6212 via the data bus DBUS1. At time point 7, the memory chip 6212 responds to the status read command RSTA1 to clear the generated regional interrupt signal LIR2 to logic 1. The common interrupt signal IR1 also transitions to logic 1 at time point 7. It is worth mentioning that the controller 610 can check whether the common interrupt signal IR1 is logic 1 at time point 9 after a preset time TD (e.g., equal to 2) based on the status read command RSTA1 sent at time point 6.

在時間點7,控制器610發送操作命令CMD1至記憶體晶片6212。經過時間點8~10後,在時間點11,基於記憶體晶片6211已完成操作命令CMD1,區域中斷信號LIR2以及共同中斷信號IR1在時間點11同步變更為邏輯0。At time point 7, the controller 610 sends the operation command CMD1 to the memory chip 6212. After time points 8 to 10, at time point 11, based on the memory chip 6211 having completed the operation command CMD1, the local interrupt signal LIR2 and the common interrupt signal IR1 are synchronously changed to logic 0 at time point 11.

接著,在時間點12以及13,控制器610依序發送狀態讀取命令RSTA0、RSTA1至記憶體晶片6211、6212。而在時間點14,基於記憶體晶片6211已完成在時間點5所接收的操作命令CMD0,因此記憶體晶片6211拉低所產生的區域中斷信號LIR1。Next, at time points 12 and 13, the controller 610 sequentially sends status read commands RSTA0 and RSTA1 to the memory chips 6211 and 6212. At time point 14, since the memory chip 6211 has completed the operation command CMD0 received at time point 5, the memory chip 6211 pulls down the generated local interrupt signal LIR1.

在此,控制器610可基於時間點13所發送的狀態讀取命令RSTA1,以在一個預設時間TD後的時間點16以檢查共同中斷信號IR1是否為邏輯1。由於此時共同中斷信號IR1並非為邏輯1,控制器610可在時間點16後的時間點17,發送狀態讀取命令RSTA0至記憶體晶片6211,並在時間點18清除記憶體晶片6211所產生的區域中斷信號LIR1為邏輯1,並對應使共同中斷信號IR1為邏輯1。Here, the controller 610 can check whether the common interrupt signal IR1 is logic 1 at a time point 16 after a preset time TD based on the status read command RSTA1 sent at the time point 13. Since the common interrupt signal IR1 is not logic 1 at this time, the controller 610 can send the status read command RSTA0 to the memory chip 6211 at a time point 17 after the time point 16, and clear the local interrupt signal LIR1 generated by the memory chip 6211 to logic 1 at the time point 18, and correspondingly make the common interrupt signal IR1 to logic 1.

以下請參照圖8,圖8繪示本發明另一實施例的記憶體裝置的方塊圖。記憶體裝置800可以為一固態硬碟,並耦接至主機端801。記憶體裝置800包括控制器810以及記憶體通道MC1以及MC2。記憶體通道MC1具有記憶體晶片8211~821N。記憶體通道MC2具有記憶體晶片8221~822M。其中記憶體通道MC1中的記憶體晶片8211~821N的數量,與記憶體通道MC2中的記憶體晶片8221~822M的數量可以相同或不相同。Please refer to FIG. 8 below, which shows a block diagram of a memory device of another embodiment of the present invention. The memory device 800 may be a solid state hard disk and is coupled to a host terminal 801. The memory device 800 includes a controller 810 and memory channels MC1 and MC2. The memory channel MC1 has memory chips 8211~821N. The memory channel MC2 has memory chips 8221~822M. The number of memory chips 8211~821N in the memory channel MC1 may be the same as or different from the number of memory chips 8221~822M in the memory channel MC2.

在本實施例中,控制器810包括多個處理器811、介面電路812、813、計時器814、快閃轉換層(Flash Translation Layer, FTL)815、靜態記憶體816以及命令佇列817、818。與圖6實施例不相同的,本實施例的記憶體裝置800中設置命令佇列817、818。命令佇列817、818可透過先進先出(First In First Out, FIFO)電路來實施。命令佇列817、818耦接在處理器811以及介面電路812間,並分別對應記憶體通道MC1以及MC2。In this embodiment, the controller 810 includes a plurality of processors 811, interface circuits 812, 813, a timer 814, a flash translation layer (FTL) 815, a static memory 816, and command queues 817, 818. Different from the embodiment of FIG. 6, the memory device 800 of this embodiment is provided with command queues 817, 818. The command queues 817, 818 can be implemented by a first in first out (FIFO) circuit. The command queues 817, 818 are coupled between the processor 811 and the interface circuit 812, and correspond to the memory channels MC1 and MC2, respectively.

在本實施例中,處理器811將每一個操作命令以及操作命令的操作完成時間寫入至命令佇列817或818。每一個操作命令可以為讀出、寫入或是抹除操作命令。命令佇列817或818可透過介面電路812將操作命令以及操作完成時間發送至記憶體晶片8211~821N或記憶體晶片8221~822N。此外,介面電路812並將操作命令的操作完成時間寫入至計時器814。計時器814在完成操作完成時間的計時動作後通知介面電路812,並使介面電路812發送狀態讀取命令以讀取記憶體晶片8211~821N或記憶體晶片8221~822N的操作狀態。並在當操作命令已被完成後,處理器811可觸發中斷事件。In this embodiment, the processor 811 writes each operation command and the operation completion time of the operation command into the command queue 817 or 818. Each operation command can be a read, write or erase operation command. The command queue 817 or 818 can send the operation command and the operation completion time to the memory chip 8211~821N or the memory chip 8221~822N through the interface circuit 812. In addition, the interface circuit 812 writes the operation completion time of the operation command into the timer 814. After completing the timing action of the operation completion time, the timer 814 notifies the interface circuit 812 and causes the interface circuit 812 to send a status read command to read the operation status of the memory chip 8211~821N or the memory chip 8221~822N. And after the operation command has been completed, the processor 811 can trigger an interrupt event.

以下請參照圖9,圖9繪示本發明圖8實施例的記憶體裝置的動作流程圖。其中,在步驟S910中,控制器可判斷命令佇列中是否有任務存在(有無儲存操作命令),若命令佇列中沒有任務存在,可結束此流程。若命令佇列中有任務存在,控制器可執行步驟S920以判斷命令佇列中的操作命令所對應的記憶體晶片是否為閒置,若對應的記憶體晶片為閒置,可執行步驟S930;若對應的記憶體晶片為忙碌,可執行步驟S950。Please refer to FIG. 9 below, which shows the action flow chart of the memory device of the embodiment of FIG. 8 of the present invention. In step S910, the controller can determine whether there is a task in the command queue (whether there is a storage operation command). If there is no task in the command queue, this process can be terminated. If there is a task in the command queue, the controller can execute step S920 to determine whether the memory chip corresponding to the operation command in the command queue is idle. If the corresponding memory chip is idle, step S930 can be executed; if the corresponding memory chip is busy, step S950 can be executed.

在步驟S930中,控制器可將命令佇列中對應操作命令的操作完成時間讀出,並將其設定至計時器中。在步驟S940中,控制器可傳送操作命令至對應的記憶體晶片。In step S930, the controller can read out the operation completion time of the corresponding operation command in the command queue and set it in the timer. In step S940, the controller can transmit the operation command to the corresponding memory chip.

在步驟S950中,控制器判斷計時器是否完成計數動作,並在計時器完成計數動作後,判斷資料匯流排是否為空閒。在當資料匯流排為空閒時,傳送狀態讀取命令至對應的記憶體晶片。In step S950, the controller determines whether the timer has completed the counting action, and after the timer has completed the counting action, determines whether the data bus is idle. When the data bus is idle, a status read command is transmitted to the corresponding memory chip.

在步驟S980中,控制器透過狀態讀取命令以檢查對應的記憶體晶片是否完成操作命令的狀態結果。在當操作命令未被完成時,重新執行步驟S970,並在當操作命令已被完成後,執行步驟S990。控制器可在步驟S990中觸發中斷事件。In step S980, the controller checks the status result of the corresponding memory chip through the status read command to see whether it has completed the operation command. When the operation command has not been completed, step S970 is re-executed, and when the operation command has been completed, step S990 is executed. The controller can trigger an interrupt event in step S990.

在中斷事件被觸發後,控制器可判斷命令佇列所接收的操作命令是否皆操作完成,並可根據記憶體晶片的狀態資訊來執行相關的存取策略。After the interrupt event is triggered, the controller can determine whether all the operation commands received by the command queue have been completed, and can execute relevant access strategies according to the status information of the memory chip.

請參照圖10,圖10繪示本發明實施例的記憶體裝置的管理方法的流程圖。其中,在步驟S1010中,使至少一記憶體晶片共同透過中斷信號線以耦接至控制器。在步驟S1020中則使記憶體晶片產生至少一區域中斷信號。在步驟S1030中,記憶體晶片可透過線與(wired AND)的方式使區域中斷信號執行邏輯運算以產生共同中斷信號。在步驟S1040中,則透過中斷信號線以傳送共同中斷信號至控制器。Please refer to FIG. 10, which is a flow chart of a memory device management method according to an embodiment of the present invention. In step S1010, at least one memory chip is coupled to a controller through an interrupt signal line. In step S1020, the memory chip generates at least one regional interrupt signal. In step S1030, the memory chip can perform a logic operation on the regional interrupt signal to generate a common interrupt signal through a wired AND method. In step S1040, the common interrupt signal is transmitted to the controller through the interrupt signal line.

關於上述步驟的實施細節,在前述的實施例中已有詳細的說明,在此恕不多贅述。The implementation details of the above steps have been described in detail in the aforementioned embodiments, and will not be elaborated here.

請參照圖11,圖11繪示本發明實施例的記憶體裝置的管理方法的流程圖。其中,在步驟S1110中,設置至少一命令佇列以對應至少一記憶體通道,其中記憶體通道包括一個或多個記憶體晶片。在步驟S1120中則使至少一命令佇列記錄多個操作命令以及多個操作完成時間。在步驟S1130中則設置計時器,使計時器根據各操作完成時間進行計時,並藉以產生傳送狀態讀取命令至對應的選中記憶體晶片的時間點。Please refer to FIG. 11, which is a flow chart of a memory device management method according to an embodiment of the present invention. In step S1110, at least one command queue is set to correspond to at least one memory channel, wherein the memory channel includes one or more memory chips. In step S1120, at least one command queue is made to record multiple operation commands and multiple operation completion times. In step S1130, a timer is set, and the timer is made to count according to the completion time of each operation, and thereby generate a time point for transmitting a status read command to the corresponding selected memory chip.

關於上述步驟的實施細節,在前述的實施例中已有詳細的說明,在此恕不多贅述。The implementation details of the above steps have been described in detail in the aforementioned embodiments, and will not be elaborated here.

綜上所述,在本發明實施例中,各記憶體晶片可透過拉低所產生的區域中斷信號以拉低中斷信號。控制器可對應中斷信號的拉低現象來執行詢問各記憶體晶片的閒置或忙碌狀態。如此一來,記憶體裝置可在合適的時間點詢問各記憶體晶片的閒置或忙碌狀態,可有效節省功率消耗,提升記憶體裝置的工作效能。In summary, in the embodiment of the present invention, each memory chip can pull down the interrupt signal by pulling down the generated regional interrupt signal. The controller can query the idle or busy state of each memory chip in response to the pulling down of the interrupt signal. In this way, the memory device can query the idle or busy state of each memory chip at an appropriate time point, which can effectively save power consumption and improve the working performance of the memory device.

0~18:時間點 100、600、800:記憶體裝置 110、610、810:控制器 121~12N、6211~621N、6221~622M、8211~821N、8221~822M:記憶體晶片 611、811:處理器 612、613、812、812:介面電路 614、814:計時器 615、815:快閃轉換層 616、816:靜態記憶體 817、818:命令佇列 CMDIN:操作命令傳輸循環 CS1~CSN:晶片選擇信號 CT:時間循環 DBUS、DBUS1、DBUS2:資料匯流排 DOUT:資料輸出循環 IR:共同中斷信號 IRW:中斷信號線 LIR1、LIR2:區域中斷信號 MC、MC1、MC2:記憶體通道 RDCMD、CMD0、CMD1:操作命令 RDY:就緒信號 RSTA、RSTA0、RSTA1:狀態讀取命令 S310~S350、S410~S430、S510~S560、S910~S990、S1010~S1040、S1110~S1130:步驟 TD:預設時間 0~18: Time point 100, 600, 800: Memory device 110, 610, 810: Controller 121~12N, 6211~621N, 6221~622M, 8211~821N, 8221~822M: Memory chip 611, 811: Processor 612, 613, 812, 812: Interface circuit 614, 814: Timer 615, 815: Flash conversion layer 616, 816: Static memory 817, 818: Command queue CMDIN: Operation command transmission cycle CS1~CSN: Chip selection signal CT: Time cycle DBUS, DBUS1, DBUS2: data bus DOUT: data output loop IR: common interrupt signal IRW: interrupt signal line LIR1, LIR2: regional interrupt signal MC, MC1, MC2: memory channel RDCMD, CMD0, CMD1: operation command RDY: ready signal RSTA, RSTA0, RSTA1: status read command S310~S350, S410~S430, S510~S560, S910~S990, S1010~S1040, S1110~S1130: step TD: default time

圖1A繪示本發明一實施例的記憶體裝置的示意圖。 圖1B繪示本發明另一實施例的記憶體裝置的示意圖。 圖2A至圖2C繪示本發明實施例的記憶體裝置的動作波形圖。 圖3繪示本發明實施例的記憶體裝置的記憶體晶片的閒置或忙碌狀態的記錄動作的流程圖。 圖4繪示本發明實施例的記憶體裝置的中斷事件的觸發動作的流程圖。 圖5繪示本發明圖4實施例的中斷事件的動作流程圖。 圖6繪示本發明另一實施例的記憶體裝置的方塊圖。 圖7繪示記憶體裝置的記憶體晶片的管理方法的波形圖。 圖8繪示本發明另一實施例的記憶體裝置的方塊圖。 圖9繪示本發明圖8實施例的記憶體裝置的動作流程圖。 圖10以及圖11分別繪示本發明不同實施例的記憶體裝置的管理方法的流程圖。 FIG. 1A is a schematic diagram of a memory device of one embodiment of the present invention. FIG. 1B is a schematic diagram of a memory device of another embodiment of the present invention. FIG. 2A to FIG. 2C are waveform diagrams of the operation of the memory device of the embodiment of the present invention. FIG. 3 is a flow chart of the recording operation of the idle or busy state of the memory chip of the memory device of the embodiment of the present invention. FIG. 4 is a flow chart of the triggering operation of the interrupt event of the memory device of the embodiment of the present invention. FIG. 5 is a flow chart of the operation of the interrupt event of the embodiment of FIG. 4 of the present invention. FIG. 6 is a block diagram of the memory device of another embodiment of the present invention. FIG. 7 is a waveform diagram of the management method of the memory chip of the memory device. FIG8 is a block diagram of a memory device of another embodiment of the present invention. FIG9 is a flow chart of the operation of the memory device of the embodiment of FIG8 of the present invention. FIG10 and FIG11 are flow charts of the management method of the memory device of different embodiments of the present invention, respectively.

100:記憶體裝置 100: Memory device

110:控制器 110: Controller

121~12N:記憶體晶片 121~12N: memory chip

MC:記憶體通道 MC: Memory Channel

IRW:中斷信號線 IRW: Interrupt signal line

DBUS:資料匯流排 DBUS: Data Bus

CS1~CSN:晶片選擇信號 CS1~CSN: chip selection signal

IR:共同中斷信號 IR: common interrupt signal

Claims (20)

一種記憶體裝置,包括: 一控制器;以及 至少一記憶體通道,包括: 至少一記憶體晶片,共同透過一中斷信號線以耦接至該控制器,其中該至少一記憶體晶片分別產生至少一區域中斷信號,並使該至少一區域中斷信號執行一邏輯運算以產生一共同中斷信號,該中斷信號線用以傳輸該共同中斷信號至該控制器。 A memory device comprises: a controller; and at least one memory channel, comprising: at least one memory chip, which is commonly coupled to the controller through an interrupt signal line, wherein the at least one memory chip generates at least one regional interrupt signal respectively, and the at least one regional interrupt signal performs a logic operation to generate a common interrupt signal, and the interrupt signal line is used to transmit the common interrupt signal to the controller. 如請求項1所述的記憶體裝置,其中各該至少一區域中斷信號用以表示對應的各該至少一記憶體晶片的操作命令的完成狀態。A memory device as described in claim 1, wherein each of the at least one local interrupt signals is used to indicate a completion status of an operation command of the corresponding at least one memory chip. 如請求項2所述的記憶體裝置,其中該邏輯運算為邏輯及運算,當各該至少一記憶體晶片已完成操作命令而為一閒置狀態時,對應的各該至少一區域中斷信號為邏輯0,當各該至少一記憶體晶片未完成操作命令而為一忙碌狀態時,對應的各該至少一區域中斷信號為邏輯1。A memory device as described in claim 2, wherein the logical operation is a logical and operation, when each of the at least one memory chips has completed an operation command and is in an idle state, the corresponding each of the at least one regional interrupt signals is a logical 0, and when each of the at least one memory chips has not completed an operation command and is in a busy state, the corresponding each of the at least one regional interrupt signals is a logical 1. 如請求項3所述的記憶體裝置,其中當該至少一記憶體晶片均為該忙碌狀態時,該共同中斷信號為邏輯1。A memory device as described in claim 3, wherein when the at least one memory chip is in the busy state, the common interrupt signal is logic 1. 如請求項3所述的記憶體裝置,其中當該至少一記憶體晶片中的至少其中之一為該閒置狀態時,該共同中斷信號為邏輯0。A memory device as described in claim 3, wherein when at least one of the at least one memory chip is in the idle state, the common interrupt signal is logic 0. 如請求項1所述的記憶體裝置,其中該控制器更透過一資料匯流排以耦接至該至少一記憶體晶片,並透過至少一晶片選擇信號線以分別發送多個晶片選擇信號至該至少一記憶體晶片。A memory device as described in claim 1, wherein the controller is further coupled to the at least one memory chip via a data bus, and sends a plurality of chip selection signals to the at least one memory chip via at least one chip selection signal line. 如請求項6所述的記憶體裝置,其中當該共同中斷信號變更為一設定邏輯值時,該控制器透過該資料匯流排傳送一狀態讀取命令至一選中記憶體晶片。A memory device as described in claim 6, wherein when the common interrupt signal changes to a set logic value, the controller sends a status read command to a selected memory chip via the data bus. 如請求項7所述的記憶體裝置,其中當該選中記憶體晶片為一閒置狀態時,該選中記憶體晶片對應該狀態讀取命令以回復一閒置資訊並清除對應的各該區域中斷信號。A memory device as described in claim 7, wherein when the selected memory chip is in an idle state, the selected memory chip responds to the state read command to restore idle information and clear the corresponding interrupt signals of each region. 如請求項7所述的記憶體裝置,其中當該選中記憶體晶片為一忙碌狀態時,該選中記憶體晶片對應該狀態讀取命令以回復一忙碌資訊並維持對應的各該區域中斷信號不變。A memory device as described in claim 7, wherein when the selected memory chip is in a busy state, the selected memory chip responds to the state read command to return a busy message and maintains the corresponding interrupt signals of each region unchanged. 如請求項1所述的記憶體裝置,其中該控制器更記錄各該至少一記憶體晶片的閒置或忙碌狀態。A memory device as described in claim 1, wherein the controller further records the idle or busy status of each of the at least one memory chips. 一種記憶體裝置,包括: 一控制器,具有至少一命令佇列,其中該至少一命令佇列記錄多個操作命令以及分別對應該些操作命令的多個操作完成時間;以及 至少一記憶體晶片,形成至少一記憶體通道,對應至該至少一命令佇列, 其中,該控制器,基於被執行各該操作命令,根據對應的各該操作完成時間以在一時間點傳送一狀態讀取命令至對應的一選中記憶體晶片。 A memory device comprises: a controller having at least one command queue, wherein the at least one command queue records a plurality of operation commands and a plurality of operation completion times respectively corresponding to the operation commands; and at least one memory chip, forming at least one memory channel corresponding to the at least one command queue, wherein the controller, based on each of the operation commands being executed, transmits a status read command to a corresponding selected memory chip at a time point according to the corresponding completion time of each of the operation commands. 如請求項11所述的記憶體裝置,其中該控制器更包括: 一計時器,根據各該操作完成時間進行計時,並藉以產生傳送該狀態讀取命令至對應的該選中記憶體晶片的該時間點。 The memory device as described in claim 11, wherein the controller further comprises: A timer, which counts according to the completion time of each operation and generates the time point for transmitting the status read command to the corresponding selected memory chip. 一種記憶體裝置的管理方法,包括: 使至少一記憶體晶片共同透過一中斷信號線以耦接至一控制器; 使該至少一記憶體晶片產生至少一區域中斷信號; 使該至少一區域中斷信號執行一邏輯運算以產生一共同中斷信號;以及 透過該中斷信號線以傳送該共同中斷信號至該控制器。 A method for managing a memory device, comprising: enabling at least one memory chip to be commonly coupled to a controller via an interrupt signal line; enabling the at least one memory chip to generate at least one regional interrupt signal; enabling the at least one regional interrupt signal to perform a logic operation to generate a common interrupt signal; and transmitting the common interrupt signal to the controller via the interrupt signal line. 如請求項13所述的記憶體裝置的管理方法,其中各該至少一區域中斷信號分別用以表示對應的各該至少一記憶體晶片的操作命令的完成狀態。A memory device management method as described in claim 13, wherein each of the at least one regional interrupt signals is used to indicate the completion status of the corresponding operation command of each of the at least one memory chips. 如請求項13所述的記憶體裝置的管理方法,其中該邏輯運算為邏輯及運算, 當各該至少一記憶體晶片已完成操作命令而為一閒置狀態時,使對應的各該至少一區域中斷信號為邏輯0;以及 當各該至少一記憶體晶片未完成操作命令而為一忙碌狀態時,使對應的各該至少一區域中斷信號為邏輯1 A memory device management method as described in claim 13, wherein the logic operation is a logic and operation, when each of the at least one memory chips has completed the operation command and is in an idle state, the corresponding at least one regional interrupt signal is made to be logic 0; and when each of the at least one memory chips has not completed the operation command and is in a busy state, the corresponding at least one regional interrupt signal is made to be logic 1 如請求項15所述的記憶體裝置的管理方法,其中當該至少一記憶體晶片均為該忙碌狀態時,該共同中斷信號為邏輯1,當該至少一記憶體晶片中的至少其中之一為該閒置狀態時,該共同中斷信號為邏輯0。A memory device management method as described in claim 15, wherein when the at least one memory chip is in the busy state, the common interrupt signal is logical 1, and when at least one of the at least one memory chip is in the idle state, the common interrupt signal is logical 0. 如請求項13所述的記憶體裝置的管理方法,更包括: 當該共同中斷信號變更為一設定邏輯值時,透過一資料匯流排以搭配對應的一晶片選擇信號以根據一操作完成時間來傳送一狀態讀取命令至一選中記憶體晶片。 The memory device management method as described in claim 13 further includes: When the common interrupt signal changes to a set logic value, a status read command is transmitted to a selected memory chip through a data bus in combination with a corresponding chip selection signal according to an operation completion time. 如請求項17所述的記憶體裝置的管理方法,更包括: 當該選中記憶體晶片為一閒置狀態時,使該選中記憶體晶片對應該狀態讀取命令以回復一閒置資訊並清除對應的各該至少一區域中斷信號。 The memory device management method as described in claim 17 further includes: When the selected memory chip is in an idle state, the selected memory chip responds to the state read command to restore an idle information and clear the corresponding at least one region interrupt signal. 如請求項17所述的記憶體裝置的管理方法,當該選中記憶體晶片為一忙碌狀態時,使該選中記憶體晶片對應該狀態讀取命令以回復一忙碌資訊並維持對應的各該至少一區域中斷信號不變。As described in claim 17, the memory device management method, when the selected memory chip is in a busy state, enables the selected memory chip to respond to the state read command to reply with a busy message and maintain the corresponding at least one regional interrupt signal unchanged. 一種記憶體裝置的管理方法,包括: 設置至少一命令佇列以對應至少一記憶體通道,其中該至少一記憶體通道包括至少一記憶體晶片; 使該至少一命令佇列記錄多個操作命令以及多個操作完成時間;以及 設置一計時器,使該計時器根據各該操作完成時間進行計時,並藉以產生傳送一狀態讀取命令至對應的一選中記憶體晶片的時間點。 A method for managing a memory device, comprising: Setting at least one command queue to correspond to at least one memory channel, wherein the at least one memory channel includes at least one memory chip; Making the at least one command queue record a plurality of operation commands and a plurality of operation completion times; and Setting a timer, making the timer count according to each of the operation completion times, and thereby generating a time point for transmitting a status read command to a corresponding selected memory chip.
TW111136980A 2022-09-29 2022-09-29 Memory device and management method thereof TWI817747B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW111136980A TWI817747B (en) 2022-09-29 2022-09-29 Memory device and management method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111136980A TWI817747B (en) 2022-09-29 2022-09-29 Memory device and management method thereof

Publications (2)

Publication Number Publication Date
TWI817747B TWI817747B (en) 2023-10-01
TW202414224A true TW202414224A (en) 2024-04-01

Family

ID=89857887

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111136980A TWI817747B (en) 2022-09-29 2022-09-29 Memory device and management method thereof

Country Status (1)

Country Link
TW (1) TWI817747B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5555420A (en) * 1990-12-21 1996-09-10 Intel Corporation Multiprocessor programmable interrupt controller system with separate interrupt bus and bus retry management
JP2809187B2 (en) * 1996-04-15 1998-10-08 日本電気株式会社 Interrupt line sharing circuit and interrupt line sharing method
GB2540341B (en) * 2015-06-16 2019-06-26 Nordic Semiconductor Asa Event generating unit
TWI687868B (en) * 2018-02-12 2020-03-11 緯創資通股份有限公司 Computer system and handling method thereof for interrupt event

Similar Documents

Publication Publication Date Title
CN101740102B (en) Multi-channel flash memory chip array structure and write-in and read-out methods thereof
KR20130002046A (en) Power management method for storage device including multi-core
US9128633B2 (en) Semiconductor memory device and method of operating the semiconductor memory device
CN110888520B (en) Operation frequency adjusting method and device
US10908839B2 (en) Storage device throttling amount of communicated data depending on suspension frequency of operation
US11010094B2 (en) Task management method and host for electronic storage device
CN109814811B (en) Method for reducing influence of NVMe SSD response delay on write speed of high-speed data storage equipment
CN101256470A (en) Storage device control apparatus, storage device, and data storage control method
WO2010102568A1 (en) Method, apparatus and storage apparatus for controlling state of storage apparatus
US8230138B2 (en) Memory control device, data processor, and data read method
JP3389920B2 (en) Disk array device and interrupt execution method for disk array device
TWI817747B (en) Memory device and management method thereof
TW202414224A (en) Memory device and management method thereof
JP2020144410A (en) Memory controller
US20240111453A1 (en) Memory device and management method thereof
TWI811614B (en) Semiconductor device and chip control method
WO2022178772A1 (en) Memory refresh method, memory, controller, and storage system
WO2018133879A1 (en) Server and data processing method thereof
US9965183B2 (en) Method for processing data in storage device and storage device
CN109935252B (en) Memory device and operation method thereof
US11289148B2 (en) Memory control apparatus and control method therefor
CN113934671B (en) Interface control chip and network equipment
KR101815601B1 (en) Stacked Type Memory System and Interleaving Control Method Therefor
TWI667657B (en) Memory device and method for operating the same
JP2003203490A (en) Semiconductor memory device, control device, and control method for semiconductor memory device