TWI746331B - Control method for flash memory, flash memory die and flash memory - Google Patents
Control method for flash memory, flash memory die and flash memory Download PDFInfo
- Publication number
- TWI746331B TWI746331B TW109146755A TW109146755A TWI746331B TW I746331 B TWI746331 B TW I746331B TW 109146755 A TW109146755 A TW 109146755A TW 109146755 A TW109146755 A TW 109146755A TW I746331 B TWI746331 B TW I746331B
- Authority
- TW
- Taiwan
- Prior art keywords
- flash memory
- output
- state
- port
- memory die
- Prior art date
Links
Images
Landscapes
- Read Only Memory (AREA)
Abstract
Description
本發明是有關於一種快閃記憶體,且特別是有關於一種快閃記憶體的控制方法及其快閃記憶體晶粒。 The present invention relates to a flash memory, and more particularly to a control method of the flash memory and the flash memory die.
目前NAND快閃記憶體控制器面臨要控制的NAND快閃記憶體晶粒數目的大為增加,這造成控制器接墊(pad)數目的增加,而且晶粒大小也會隨著增加。並且,所有邏輯單元的備妥/忙碌(ready/busy,R/B)訊號也會連接到共享的R/B訊號線。因此,如果在共享R/B訊號線忙碌下要知道哪一個邏輯單元是忙碌的,需要發出“讀取狀態(read status)命令”去詢問指定的邏輯單元是備妥或忙碌狀態。 At present, NAND flash memory controllers are facing a large increase in the number of NAND flash memory dies to be controlled, which results in an increase in the number of controller pads and the size of the dies. In addition, the ready/busy (R/B) signals of all logic units are also connected to the shared R/B signal line. Therefore, if you want to know which logical unit is busy when the shared R/B signal line is busy, you need to issue a "read status command" to inquire whether the specified logical unit is ready or busy.
一般而言,NAND快閃記憶體的R/B狀態的實施是使用汲極開路(open drain)設計。圖1繪示NAND快閃記憶體之汲極開路的電路示意圖。如圖1所示,一通道中有多個NAND快閃記憶 體晶粒0、1、2、...並且其R/B狀態輸出分別連接到共同的汲極開路輸出。圖2A與圖2B繪出目前多通道NAND快閃記憶體有兩種設計方式。 Generally speaking, the implementation of the R/B state of the NAND flash memory uses an open drain design. FIG. 1 shows a schematic diagram of an open drain circuit of a NAND flash memory. As shown in Figure 1, there are multiple NAND flash memories in one channel Bulk dies 0, 1, 2,... and their R/B state outputs are respectively connected to a common open-drain output. Figures 2A and 2B show that there are currently two design methods for multi-channel NAND flash memory.
如圖2A所示,在此架構中,每一通道中的各NAND快閃記憶體晶粒(NAND flash die)的R/B訊號線是各自獨立,亦即各快閃記憶體晶粒10_0~10_m-1均各自設置一條R/B訊號線來與多通道快閃記憶體控制器20連接,故在每一通道,多通道快閃記憶體控制器20也要設置與R/B訊號線相對應的接墊數。
As shown in Figure 2A, in this architecture, the R/B signal lines of each NAND flash die in each channel are independent, that is, each flash die 10_0~ 10_m-1 are each set up with a R/B signal line to connect to the multi-channel
圖2B是繪示另外一種架構的多通道NAND快閃記憶體,如圖2B所示,在此設計中各通道中的每一快閃記憶體晶粒10_0~10_m-1是共用一條R/B訊號線,亦即短路在一起。但是,在此架構下,多通道快閃記憶體控制器20將無法知道哪一個NAND快閃記憶體晶粒10_0~10_m-1是處於忙碌狀態,必須另外花額外的時間去確認各快閃記憶體晶粒10_0~10_m-1的備妥/忙碌狀態。換句話說,在此架構下,雖然可以省下接墊的數目,但是需外增加時間來確認各快閃記憶體晶粒10_0~10_m-1的備妥/忙碌狀態。
Figure 2B shows another architecture of multi-channel NAND flash memory. As shown in Figure 2B, in this design, each flash memory die 10_0~10_m-1 in each channel shares one R/B The signal lines are short-circuited together. However, under this architecture, the multi-channel
因此,本技術領域有需要一種技術手段,其可以一方面減少接墊數量,一方面不需要額外的時間去確認各快閃記憶體是否處於忙碌狀態。 Therefore, there is a need in the technical field for a technical method that can reduce the number of pads on the one hand, and on the other hand, it does not require extra time to confirm whether each flash memory is in a busy state.
根據一實施例,本發明提供一種快閃記憶體的控制方 法,其中快閃記憶體具有連接多個快閃記憶體晶粒的外部資料匯流排。控制方法包括:在設定階段,於命令輸入之操作模式下,由主控器送出設定命令,將所述外部資料匯流排的各埠分別映射到各所述快閃記憶體晶粒的狀態指標;以及於要求階段,於命令輸入之操作模式下,由所述主控器向各所述多個快閃記憶體晶粒送出要求命令,並且於資料輸出之操作模式下,將各所述快閃記憶體晶粒的所述狀態指標的狀態經由相對應的所述外部資料匯流排的各埠,傳送到所述主控器。 According to an embodiment, the present invention provides a flash memory controller Method, wherein the flash memory has an external data bus connected to a plurality of flash memory dies. The control method includes: in the setting stage, in the operation mode of command input, the main controller sends a setting command to map each port of the external data bus to the state indicator of each flash memory die; And in the request phase, in the operation mode of command input, the main controller sends a request command to each of the plurality of flash memory dies, and in the operation mode of data output, each flash The state of the state indicator of the memory die is transmitted to the main controller through each port of the corresponding external data bus.
在上述多通道快閃記憶體的控制方法,設定階段中,由主控器送出設定命令更包括:於命令輸入之操作模式下,所述主控器送出準備命令,以通知各所述多個快閃記憶體晶粒準備進行將所述外部資料匯流排的各埠分別指派給各所述多個快閃記憶體晶粒的所述狀態指標;以及於位址輸入之操作模式下,所述主控器送出位址訊號,藉此將所述外部資料匯流排的各埠分別映射到各所述多個快閃記憶體晶粒的狀態指標。 In the above-mentioned multi-channel flash memory control method, in the setting stage, sending a setting command from the main controller further includes: in the command input operation mode, the main controller sends a preparation command to notify each of the multiple The flash memory die is ready to assign each port of the external data bus to the status indicator of each of the plurality of flash memory die; and in the operation mode of address input, the The host controller sends out an address signal, thereby mapping each port of the external data bus to the state indicator of each of the plurality of flash memory dies.
在上述快閃記憶體的控制方法中,各所述快閃記憶體晶粒具有與所述外部資料匯流排各埠分別耦接的多個輸出埠;在所述設定階段,所述多個快閃記憶體晶粒其中之一的第一快閃記憶體晶粒的其中一個的第一輸出埠被選擇用以傳送所述狀態指標。其中,所述多個快閃記憶體晶粒中所述第一快閃記憶體晶粒以外的各快閃記憶體晶粒的與所述第一輸出埠相對應的輸出埠為輸出 高阻抗狀態;所述第一快閃記憶體的所述第一輸出埠以外的輸出埠輸出高阻抗狀態。 In the above flash memory control method, each of the flash memory die has a plurality of output ports respectively coupled to each port of the external data bus; in the setting stage, the plurality of flash memory The first output port of one of the first flash memory dies of one of the flash memory dies is selected to transmit the status indicator. Wherein, the output port corresponding to the first output port of each flash memory die other than the first flash memory die among the plurality of flash memory die is an output High-impedance state; output ports other than the first output port of the first flash memory output a high-impedance state.
在上述快閃記憶體的控制方法中,狀態指標可為主控器用備妥/忙碌狀態。在上述快閃記憶體的控制方法中,設定命令與要求命令可以是由廠商特定命令所定義。在上述快閃記憶體的控制方法中,主控器可為多通道快閃記憶體控制器。 根據另一實施例,本發明提供一種快閃記憶體晶粒,至少包括:具有多個埠,所述多個埠耦接到一外部資料匯流排;控制邏輯單元,提供所述快閃記憶體晶粒的狀態指標;映射狀態暫存器,用以儲存資料,所述資料用以選擇與所述快閃記憶體晶粒的所述狀態指標相對應的所述多個埠之一;以及輸入/輸出控制單元。所述輸入/輸出控制單元更包括第一多工器與解多工器。第一多工器,具有多個輸入以及輸出,所述多個輸入分別接收來自多組內部匯流排的資料,所述輸出耦接至所述多個埠,其中所述第一多工器依據所述控制邏輯單元提供的選擇訊號,選擇所述多個輸入之一且輸出至所述外部資料匯流排,所述多組內部匯流排至少包括內部資料匯流排、狀態指標匯流排與映射狀態匯流排。解多工器具有輸入、多個輸出與選擇線,其中所述輸入接收所述狀態指標,所述選擇線接收來自所述映射狀態暫存器所儲存的所述資料,所述解多工器的輸出經由所述映射狀態匯流連接到所述第一多工器的輸入,其中所述解多工器基於所述選擇線接收的所述資料來選 擇所述解多工器的多個輸出之一來傳送所述狀態指標,所述解多工器的未被選擇的輸出以高阻抗輸出。 In the above flash memory control method, the status indicator can be a ready/busy status for the master controller. In the above flash memory control method, the setting command and the request command can be defined by manufacturer-specific commands. In the above flash memory control method, the main controller may be a multi-channel flash memory controller. According to another embodiment, the present invention provides a flash memory die, which at least includes: a plurality of ports, the plurality of ports are coupled to an external data bus; a control logic unit that provides the flash memory A state indicator of the die; a mapping state register for storing data for selecting one of the multiple ports corresponding to the state indicator of the flash memory die; and input / Output control unit. The input/output control unit further includes a first multiplexer and a demultiplexer. The first multiplexer has multiple inputs and outputs, the multiple inputs respectively receive data from multiple sets of internal buses, the output is coupled to the multiple ports, and the first multiplexer is based on The selection signal provided by the control logic unit selects one of the multiple inputs and outputs it to the external data bus. The multiple sets of internal buses include at least an internal data bus, a state indicator bus, and a mapping state bus Row. The demultiplexer has an input, a plurality of outputs, and a selection line, wherein the input receives the state indicator, the selection line receives the data stored in the mapping state register, and the demultiplexer The output of is connected to the input of the first multiplexer via the mapping state bus, wherein the demultiplexer selects based on the data received by the select line Selecting one of the multiple outputs of the demultiplexer to transmit the state indicator, and the unselected output of the demultiplexer is output with a high impedance.
在上述快閃記憶體晶粒中,當所述快閃記憶體晶粒接收由主控器所送出的設定命令,所述快閃記憶體晶粒的所述狀態指標映射到所述多個埠之一。 In the above flash memory die, when the flash memory die receives a setting command sent by the main controller, the status indicator of the flash memory die is mapped to the multiple ports one.
在上述快閃記憶體晶粒中,當所述快閃記憶體晶粒從所述主控器接收要求命令,所述輸入/輸出控制單元之所述解多工器依據所述映射狀態暫存器所儲存的所述資料,選擇與所述快閃記憶體晶粒的狀態指標相對應的所述埠,將所述狀態指標的狀態經由選擇的所述埠傳送到所述主控器。 In the above flash memory die, when the flash memory die receives a request command from the main controller, the demultiplexer of the input/output control unit temporarily stores according to the mapping state Select the port corresponding to the state indicator of the flash memory die, and transmit the state of the state indicator to the host through the selected port.
在上述快閃記憶體晶粒中,在接收所述要求命令時,所述多個埠中未被選擇者處於高阻抗狀態。 In the above-mentioned flash memory die, when the request command is received, the unselected port among the plurality of ports is in a high impedance state.
在上述快閃記憶體晶粒中,設定命令與要求命令可以是由廠商特定命令所定義。在上述快閃記憶體晶粒中,主控器可為多通道快閃記憶體控制器。在上述快閃記憶體晶粒中,狀態指標為主控器用備妥/忙碌狀態。 In the above-mentioned flash memory die, the setting command and the request command can be defined by manufacturer-specific commands. In the above flash memory die, the main controller can be a multi-channel flash memory controller. In the above-mentioned flash memory die, the status indicator is the ready/busy status for the master controller.
在上述快閃記憶體晶粒中,輸入/輸出控制單元更包括第二多工器,所述第二多工器的輸出耦接至所述解多工器的輸入,用以從多個狀態暫存器擇一輸出給所述解多工器。 In the above flash memory die, the input/output control unit further includes a second multiplexer, the output of the second multiplexer is coupled to the input of the demultiplexer for switching from a plurality of states The register selects one and outputs it to the demultiplexer.
在上述快閃記憶體晶粒中,所述輸入/輸出控制單元更包括:與所述解多工器耦接的多工器單元,其中所述多工器單元包括多個多工器。所述多個多工器的每一個接收多個狀態暫存器所 儲存的狀態,並從所述多個狀態暫存器擇一輸出給所述解多工器。所述多個多工器的輸出提供給所述解多工器,並經由所述映射狀態匯流排輸入所述第一多工器。 In the above flash memory die, the input/output control unit further includes: a multiplexer unit coupled to the demultiplexer, wherein the multiplexer unit includes a plurality of multiplexers. Each of the multiple multiplexers receives multiple status registers. The stored state is selected from the plurality of state registers and output to the demultiplexer. The outputs of the multiple multiplexers are provided to the demultiplexer and input to the first multiplexer via the mapping state bus.
根據另一實施例,本發明提供一種快閃記憶體的控制方法,其中快閃記憶體具有連接多個快閃記憶體晶粒的外部資料匯流排。所述控制方法包括:由主控器送出設定命令,將外部資料匯流排的各埠與各所述快閃記憶體晶粒的狀態指標分別相對應;以及由所述主控器向各所述快閃記憶體晶粒送出要求命令;當各所述多個快閃記憶體晶粒接收到所述要求命令,將各所述多個快閃記憶體晶粒的所述狀態指標的狀態經由相對應的所述外部資料匯流排的各埠,傳送到所述主控器。 According to another embodiment, the present invention provides a method for controlling a flash memory, wherein the flash memory has an external data bus connected to a plurality of flash memory dies. The control method includes: sending a setting command from a main controller to correspond each port of the external data bus with the state indicator of each flash memory die; and sending the main controller to each of the The flash memory die sends a request command; when each of the plurality of flash memory dies receives the request command, the state of the state indicator of each of the plurality of flash memory dies is correlated The corresponding ports of the external data bus are sent to the main controller.
在上述快閃記憶體的控制方法中,由主控器送出設定命令更包括:送出準備命令,以通知各所述多個快閃記憶體晶粒準備進行將所述外部資料匯流排的各埠分別指派給各所述多個快閃記憶體晶粒;以及送出位址訊號,藉此將各所述多個快閃記憶體晶粒的所述外部資料匯流排的各埠與各所述多個快閃記憶體晶粒的狀態指標分別相對應。 In the above flash memory control method, sending a setting command from the main controller further includes: sending a preparation command to notify each of the plurality of flash memory dies to prepare for each port of the external data bus Respectively assigned to each of the plurality of flash memory dies; and sending an address signal, thereby connecting each port of the external data bus of each of the plurality of flash memory dies to each of the plurality of flash memory dies. The state indicators of each flash memory die correspond to each other.
在上述快閃記憶體的控制方法中,各所述快閃記憶體晶粒具有與所述外部資料匯流排各埠分別耦接的多個輸出埠;所述多個快閃記憶體晶粒其中之一的第一快閃記憶體晶粒的其中一個的第一輸出埠被選擇用以傳送所述狀態指標。其中,所述多個快閃記憶體晶粒中所述第一快閃記憶體晶粒以外的各快閃記憶體晶 粒的與所述第一輸出埠相對應的輸出埠為輸出高阻抗狀態;所述第一快閃記憶體的所述第一輸出埠以外的輸出埠輸出高阻抗狀態。 In the above flash memory control method, each of the flash memory dies has a plurality of output ports respectively coupled to the ports of the external data bus; among the plurality of flash memory dies The first output port of one of the first flash memory dies is selected to transmit the status indicator. Wherein, each of the flash memory dies other than the first flash memory die in the plurality of flash memory dies The output port corresponding to the first output port of the chip is in the output high impedance state; the output ports other than the first output port of the first flash memory output the high impedance state.
在上述快閃記憶體的控制方法中,狀態指標可為主控器用備妥/忙碌狀態。在上述快閃記憶體的控制方法中,設定命令與要求命令可以是由廠商特定命令所定義。在上述快閃記憶體的控制方法中,主控器可為快閃記憶體控制器。 In the above flash memory control method, the status indicator can be a ready/busy status for the master controller. In the above flash memory control method, the setting command and the request command can be defined by manufacturer-specific commands. In the above flash memory control method, the main controller may be a flash memory controller.
根據另一實施例,本發明提供一種快閃記憶體,其包括:至少一外部資料匯流排,具有多埠;多個快閃記憶體晶粒,分別耦接於所述至少一外部匯流排;以及主控制器,與所述至少一外部匯流排耦接,用以控制所述多個快閃記憶體晶粒。其中,在設定階段,所述主控器送出設定命令,將所述外部資料匯流排的各埠與各所述快閃記憶體晶粒的狀態指標分別相對應;在要求階段,由所述主控器向各所述快閃記憶體晶粒送出要求命令,且在各所述多個快閃記憶體晶粒接收到所述要求命令,將各所述多個快閃記憶體晶粒的所述狀態指標的狀態經由相對應的所述外部資料匯流排的各埠,傳送到所述主控器。 According to another embodiment, the present invention provides a flash memory, which includes: at least one external data bus having multiple ports; a plurality of flash memory dies, respectively coupled to the at least one external bus; And a main controller, coupled with the at least one external bus, for controlling the plurality of flash memory dies. Wherein, in the setting phase, the main controller sends a setting command to correspond each port of the external data bus with the state indicator of each flash memory die; in the request phase, the main controller The controller sends a request command to each of the flash memory dies, and receives the request command in each of the plurality of flash memory dies, and sends all the flash memory dies to each of the plurality of flash memory dies. The status of the status indicator is transmitted to the main controller through each port of the corresponding external data bus.
在上述快閃記憶體中,由主控器送出設定命令更包括:送出準備命令,以通知各所述多個快閃記憶體晶粒準備進行將所述外部資料匯流排的各埠分別指派給各所述多個快閃記憶體晶粒;以及送出位址訊號,藉此將各所述多個快閃記憶體晶粒的所述外部資料匯流排的各埠與各所述多個快閃記憶體晶粒的狀態指 標分別相對應。 In the above flash memory, sending a setting command from the main controller further includes: sending a preparation command to notify each of the plurality of flash memory dies to prepare to assign each port of the external data bus to Each of the plurality of flash memory dies; and sending an address signal, whereby each port of the external data bus of each of the plurality of flash memory dies and each of the plurality of flashes The state of the memory die refers to Corresponding to the standards.
在上述快閃記憶體的控制方法中,在上述快閃記憶體的控制方法中,各所述快閃記憶體晶粒具有與所述外部資料匯流排各埠分別耦接的多個輸出埠;所述多個快閃記憶體晶粒其中之一的第一快閃記憶體晶粒的其中一個的第一輸出埠被選擇用以傳送所述狀態指標。其中,所述多個快閃記憶體晶粒中所述第一快閃記憶體晶粒以外的各快閃記憶體晶粒的與所述第一輸出埠相對應的輸出埠為輸出高阻抗狀態;所述第一快閃記憶體的所述第一輸出埠以外的輸出埠輸出高阻抗狀態。 In the above flash memory control method, in the above flash memory control method, each of the flash memory dies has a plurality of output ports respectively coupled to each port of the external data bus; The first output port of one of the first flash memory dies of one of the plurality of flash memory dies is selected to transmit the status indicator. Wherein, the output port corresponding to the first output port of each flash memory die other than the first flash memory die in the plurality of flash memory die is in an output high impedance state ; Output ports other than the first output port of the first flash memory output a high impedance state.
在上述快閃記憶體中,狀態指標可為主控器用備妥/忙碌狀態。在上述快閃記憶體的控制方法中,設定命令與要求命令可以是由廠商特定命令所定義。 In the above-mentioned flash memory, the status indicator can be used as a ready/busy status for the master controller. In the above flash memory control method, the setting command and the request command can be defined by manufacturer-specific commands.
綜上所述,在本實施例的架構下,利用廠商特定命令且利用資料匯流排來兼做快閃記憶體晶粒的R/B訊號線,故可以省下原本各快閃記憶體晶粒的R/B訊號線與接墊,故快閃記憶體控制器也就相對應地不需要此R/B接墊,控制器的接墊數可以有效底減少。 In summary, under the architecture of this embodiment, the manufacturer-specific commands are used and the data bus is used to double as the R/B signal line of the flash memory die, so the original flash memory die can be saved. R/B signal lines and pads, so the flash memory controller does not need this R/B pad correspondingly, and the number of pads of the controller can be effectively reduced.
10_0~10_m-1:NAND快閃記憶體晶粒 10_0~10_m-1: NAND flash memory die
20:快閃記憶體控制器 20: Flash memory controller
100_0~100_m-1:NAND快閃記憶體晶粒 100_0~100_m-1: NAND flash memory die
102:邏輯控制單元 102: Logic Control Unit
104:輸入輸出單元 104: Input and output unit
106、106a:映射狀態暫存器 106, 106a: mapping status register
106b:狀態選擇暫存器 106b: State selection register
108:R/B訊號狀態(內部) 108: R/B signal status (internal)
110:高壓電路 110: high voltage circuit
112:命令暫存器 112: Command register
114:位址暫存器 114: Address register
116:狀態暫存器 116: Status register
118:資料緩衝器 118: data buffer
120:記憶體陣列 120: memory array
122:Y-解碼器 122: Y-decoder
124:X-解碼器 124: X-decoder
126:頁緩衝器 126: page buffer
130、132’:解多工器 130, 132’: Demultiplexer
130a、130’a:解碼器 130a, 130’a: decoder
130b_0~130b_7、130’b_0~130’b_7:三態閘 130b_0~130b_7, 130’b_0~130’b_7: Three-state gate
131、132:多工器 131, 132: Multiplexer
132’:多工器單元 132’: Multiplexer unit
132a、132’a:解碼器 132a, 132’a: decoder
132’b_0~132’b_7:多工器 132’b_0~132’b_7: Multiplexer
200:快閃記憶體控制器 200: Flash memory controller
圖1是習知的一種NAND快閃記憶體晶粒的架構之汲極開路輸出的示意圖。 FIG. 1 is a schematic diagram of an open-drain output of a conventional NAND flash memory die structure.
圖2A與圖2B繪出習知NAND快閃記憶體的架構示意圖。 2A and FIG. 2B are schematic diagrams depicting the structure of a conventional NAND flash memory.
圖3A繪示本發明實施例之快閃記憶體架構示意圖。 FIG. 3A shows a schematic diagram of a flash memory structure according to an embodiment of the present invention.
圖3B繪示本發明實施例之NAND快閃記憶體晶粒的架構示意圖。 FIG. 3B shows a schematic diagram of the structure of a NAND flash memory die according to an embodiment of the present invention.
圖3C與3D進一步繪示圖3B所示之快閃記憶體晶粒中的I/O控制單元的電路結構示意圖。 3C and 3D further show schematic diagrams of the circuit structure of the I/O control unit in the flash memory die shown in FIG. 3B.
圖3E繪示圖3D中解多工器的電路結構示意圖。 FIG. 3E is a schematic diagram of the circuit structure of the demultiplexer in FIG. 3D.
圖4A繪示本發明實施例之另一NAND快閃記憶體晶粒的架構示意圖。 FIG. 4A is a schematic diagram showing the structure of another NAND flash memory die according to an embodiment of the present invention.
圖4B繪示圖4A中之I/O控制器單元的電路結構示意圖。 FIG. 4B is a schematic diagram of the circuit structure of the I/O controller unit in FIG. 4A.
圖5繪示另一實施例之快閃記憶體晶粒中的I/O控制單元的電路結構示意圖。 FIG. 5 is a schematic diagram of the circuit structure of the I/O control unit in the flash memory die of another embodiment.
圖6A繪示本發明實施例之NAND快閃記憶體控制方法中各快閃記憶體晶粒的操作流程時序示意圖。 FIG. 6A is a timing diagram of the operation flow of each flash memory die in the NAND flash memory control method according to an embodiment of the present invention.
圖6B繪示本發明另一實施例之NAND快閃記憶體的控制方法中各快閃記憶體晶粒的設定階段的另一實施例的操作流程時序示意圖。 FIG. 6B is a timing diagram of another embodiment of the operation flow of the setting stage of each flash memory die in the NAND flash memory control method of another embodiment of the present invention.
圖7A繪示本發明實施例之主控器對通道上多個NAND快閃記憶體晶粒的操作流程示意圖。 FIG. 7A is a schematic diagram showing the operation flow of the main controller for multiple NAND flash memory dies on a channel according to an embodiment of the present invention.
圖7B繪示圖7A之設定階段的另一實施例的操作流程示意圖。 FIG. 7B is a schematic diagram of the operation flow of another embodiment in the setting stage of FIG. 7A.
圖8繪示本發明實施例之快閃記憶體控制器的操作時序示 意圖。 FIG. 8 shows the operation sequence of the flash memory controller according to the embodiment of the present invention intention.
圖3A繪示本發明實施例之快閃記憶體架構示意圖。圖3B繪示本發明實施例之NAND快閃記憶體晶粒的架構示意圖,亦即圖3A中每一通道中各NAND快閃記憶體晶粒的架構示意圖。雖然圖3A是繪示出一個多通道快閃記憶體的架構,但是本實施例說明將以其中一通道為說明對象。本實施例的方法與架構均適用於單通道或多通道的情況。 FIG. 3A shows a schematic diagram of a flash memory structure according to an embodiment of the present invention. FIG. 3B shows a schematic diagram of the structure of a NAND flash memory die according to an embodiment of the present invention, that is, a schematic diagram of the structure of each NAND flash memory die in each channel in FIG. 3A. Although FIG. 3A illustrates the architecture of a multi-channel flash memory, the description of this embodiment will take one of the channels as the object of description. The method and architecture of this embodiment are applicable to single-channel or multi-channel situations.
如圖3A所示,NAND快閃記憶體控制器200或主控器(host)200可以連接有n條通道(0~n-1)的快閃記憶體串,每一通道的快閃記憶體串均可以包含多個快閃記憶體晶粒。例如,在每個NAND快閃記憶體通道0~n-1均具有m個NAND快閃記憶體晶粒100_0~100_m-1。此外,每個通道的m個NAND快閃記憶體晶粒100_0~100_m-1均至少具有晶片致能訊號(chip enable)CE_0~CE_m-1,分別連接到NAND快閃記憶體控制器200。此外,各NAND快閃記憶體晶粒100_0~100_m-1的輸入輸入控制單元可以通過資料匯流排(外部資料匯流排)DQ與NAND快閃記憶體控制器200進行資料的收發。
As shown in Figure 3A, the NAND
再者,如圖3A所示,在此架構中,每一個NAND快閃記憶體晶粒100_0~100_m-1並沒有使用如先前技術中的R/B接墊來進行與每一個NAND快閃記憶體晶粒100_0~100_m-1相應的備 妥與忙碌狀態(狀態指標訊號)之傳送。根據本發明實施例,本實施例將使用資料匯流排DQ的各埠(以8個埠為例端,如DQ[7:0])來進行每一個NAND快閃記憶體晶粒100_0~100_m-1之R/B訊號的傳送。換句話說,本實施例將內部R/B #埠映射到指定的DQ埠的方式來進行NAND快閃記憶體晶粒100_0~100_m-1的R/B狀態檢測。 Furthermore, as shown in Figure 3A, in this architecture, each NAND flash memory die 100_0~100_m-1 does not use R/B pads as in the prior art to communicate with each NAND flash memory. Corresponding equipment for body crystal grains 100_0~100_m-1 Transmission of proper and busy status (status indicator signal). According to the embodiment of the present invention, this embodiment will use each port of the data bus DQ (take 8 ports as an example, such as DQ[7:0]) for each NAND flash memory die 100_0~100_m- Transmission of 1 R/B signal. In other words, this embodiment maps the internal R/B # port to the designated DQ port to detect the R/B status of the NAND flash memory die 100_0~100_m-1.
此處的狀態指標可以是各通道快閃記憶體的內部各種狀態、參數等,例如主控器用備妥/忙碌狀態(R/B# for host)、快閃陣列用備妥/忙碌狀態(R/B# for flash array)等。在本實施例中,將以主控器用備妥/忙碌狀態(R/B# for host)做為狀態指標的說明例子。通過此方式,本實施例將不在使用外部的R/B接墊與訊號線,故可以減少控制器之接墊的數量。關於詳細操作方式,後面會再詳述。主控器用備妥/忙碌狀態是指快閃記憶體晶粒中的資料緩衝器(如圖3B之資料緩衝器118)是否有清空的狀態,以表示是否可以接收主控器給的下一筆資料,但該資料尚未寫入記憶體陣列。快閃陣列用備妥/忙碌狀態則是表示資料是否真的寫入記憶體陣列。
The status indicators here can be the various internal states and parameters of the flash memory of each channel, such as the ready/busy state for the master (R/B# for host), the ready/busy state for the flash array (R/ B# for flash array) and so on. In this embodiment, the ready/busy status (R/B# for host) of the master is used as an example of the status indicator. In this way, this embodiment will not use external R/B pads and signal lines, so the number of pads of the controller can be reduced. The detailed operation method will be detailed later. The ready/busy state for the master controller refers to whether the data buffer in the flash memory die (
圖3B繪示本發明實施例之NAND快閃記憶體晶粒的架構示意圖。如圖3B所示,NAND快閃記憶體晶粒100_0(NAND快閃記憶體晶粒100_1~100_m-1的結構均相同)基本上與一般NAND快閃記憶體晶粒的架構相同,差異點在於增設將R/B訊號線與DQ埠彼此映射的電路方塊。 FIG. 3B shows a schematic diagram of the structure of a NAND flash memory die according to an embodiment of the present invention. As shown in Figure 3B, NAND flash memory die 100_0 (the structure of NAND flash memory die 100_1~100_m-1 is the same) is basically the same as the structure of general NAND flash memory die. The difference lies in Add a circuit block that maps the R/B signal line and the DQ port to each other.
如圖3B所示,本實施例之NAND快閃記憶體晶粒100_0同樣地具有控制邏輯單元102、輸入輸出控制單元104、記憶體陣列120、X-解碼器124、Y-解碼器122、頁緩衝器126、高壓電路110、命令暫存器112、位址暫存器114、狀態暫存器116、資料緩衝器118、資料匯流排DQ等等的基本電路方塊。NAND快閃記憶體晶粒100_0的基本電路方塊的功能與運作方式基本上與既有架構相同或類似,其實際架構也不影響本實施例之實施,故在此省略其詳細說明。
As shown in FIG. 3B, the NAND flash memory die 100_0 of this embodiment also has a
根據本實施例,NAND快閃記憶體晶粒100_0至少具有映射狀態暫存器106,在此實施例以R/B映射至DQ埠106作為說明例。映射狀態暫存器106用以儲存將資料匯流排DQ的各埠DQ0~DQ7與快閃記憶體晶粒100_0~100_m-1的內部R/B線分別一對一相對應的關係。亦即,在NAND快閃記憶體晶粒100_0中的映射狀態暫存器106會儲存用來指示該NAND快閃記憶體晶粒100_0要以哪一個DQ埠來輸出主控器用R/B狀態的資料。例如,如果NAND快閃記憶體晶粒100_0要以DQ0作為輸出,則映射狀態暫存器106內儲存的資料會記錄著例如數值“0”,其他各NAND快閃記憶體晶粒100_1~100_m-1則以此類推。亦即,每個NAND快閃記憶體晶粒僅會在自己的映射狀態暫存器106中儲存自己要使用的DQ埠。在主控器(快閃記憶體控制器200)則可以儲存一對應表,此對應表可以記錄通道中的每一埠(DQ[7:0])是用來輸出哪一個NAND快閃記憶體晶粒的狀態指標。
According to this embodiment, the NAND flash memory die 100_0 has at least a
藉此,當NAND快閃記憶體控制器200送出要求訊號(後將詳述的要求階段)給各快閃記憶體晶粒100_0~100_m-1以取得R/B訊號之狀態時,各快閃記憶體晶粒100_0~100_m-1之輸入輸出控制單元104便可以在相應的DQ埠送出R/B訊號。如此,NAND快閃記憶體控制器200從資料匯流排DQ中各埠DQ0~DQ7一次取得各快閃記憶體晶粒100_0~100_m-1的R/B訊號狀態。
Thereby, when the NAND
通過上述架構,邏輯控制單元102便不需要利用內部R/B訊號,通過輸入輸出控制單元104的R/B接墊來傳送R/B狀態,故而也不需要外部的R/B訊號線與接墊。因此,NAND快閃記憶體控制器200也不需要設置相應的R/B接墊,故接墊數目可以減少。如同圖3B左下角的虛線所示,本實施例便可以完全省略掉此部分的硬體架構。
Through the above structure, the
圖3C與3D進一步繪示圖3B所示之NAND快閃記憶體晶粒中的I/O控制單元104的電路結構示意圖。圖3C與圖3D所示之NAND快閃記憶體晶粒只繪出與本實施例有關連的電路方塊,其餘部分則省略。如圖3C所示,I/O控制單元104可以更包括多工器131(第一多工器),其可以具有作為輸入的多組內部匯流排。每一組匯流排例如是由8條訊號線構成。通過這些內部匯流排,多工器131可以根據邏輯控制單元102之選擇訊號線,選擇多組輸入的其中之一,即選擇內部資料匯流排(一般資料傳送)、狀態匯流排(快閃記憶體的狀態指標)或是映射狀態匯流排(如RB至DQ埠)之一來輸出至埠(DQ[7:0])輸出。DQ匯流排可以輸出多種輸
出訊號,例如資料、快閃記憶體的狀態或本實施例之RB狀態(即RB至DQ埠)。在本實施例中,狀態指標是使用主控器用R/B狀態。此外,映射狀態暫存器106是儲存了用來指示哪個埠要作為輸出R/B(狀態)使用的資料。如圖3D所示,解多工130器具有輸入、多個輸出與選擇線。解多工器130的輸出與多工器131的其中一輸入可以映射狀態匯流排([7:0])連接。解多工器130的輸入接收到主控器用R/B狀態的訊號。解多工器130的選擇線接收來自映射狀態暫存器106所儲存的資料,據此將快閃記憶體晶粒的主控器用R/B狀態從相對應的埠(映射狀態匯流排([7:0])的其中一條)輸出。據此,圖3C的多工器131便可以從對應的埠來輸出主控器用R/B狀態。
3C and 3D further show schematic diagrams of the circuit structure of the I/
此外,圖3E繪示3D中之解多工器130的電路結構示意圖。如圖3E所示,解多工器130可以更包括解碼器130a和多個選通閘(pass gate)。在此例子中,以三態閘作為選通閘的一個例子。三態閘130b_0~130b_7(在此例中為8個,分別對應到DQ[7:0])。每個三態閘130b_0~130b_7的輸出均連接到各自對應的DQ埠DQ[7:0]。解碼器130a可接收並解碼來自R/B至DQ埠暫存器106的資料,據此使輸入解多工器130的主控器用R/B狀態便可以通過與該資料對應的三態閘130b_0~130b_7之一,而從對應的DQ埠輸出。例如,如果NAND快閃記憶體晶粒100_1要以DQ1作為主控器用R/B狀態的輸出埠,則映射狀態暫存器106便會記錄著“1”。舉例來說,當映射狀態暫存器106所存的數值為1,
表示解多工器130會經由解碼器130a轉成0000_0010,而三態閘130b_0~130b_7會根據收到的訊號0000_0010,而將DQ1導通,其餘的埠都會成為高阻抗狀態。也就是說,DQ1會輸出R/B(狀態)。此時,解碼器130a便會據此使三態閘130b_1致能,其餘的三態閘130b_0,130b_2~130b_7則禁能而成為高阻抗狀態。據此埠DQ1會被選擇用來輸出主控器用R/B狀態。
In addition, FIG. 3E shows a schematic diagram of the circuit structure of the
此外,在此實施例中,每一個NAND快閃記憶體晶粒只選擇一個DQ埠作為狀態指標(在本例為主控器用R/B狀態)的輸出。此時,沒有被選中的DQ埠會處於高阻抗狀態。 In addition, in this embodiment, each NAND flash memory die selects only one DQ port as the output of the status indicator (in this example, the master controller uses the R/B status). At this time, the DQ port that is not selected will be in a high impedance state.
如上所述,通過本實施例的方式可以將內部R/B訊號線的狀態利用相對應的DQ埠,通過資料匯流排DQ,再傳送到NAND快閃記憶體控制器200。例如,快閃記憶體晶粒100_0的R/B訊號線映射到DQ埠DQ0,快閃記憶體晶粒100_1的R/B訊號映射到DQ埠DQ1等。
As described above, the state of the internal R/B signal line can be transmitted to the NAND
因此,通過此方式,對於每一個通道的多個快閃記憶體晶粒100_0~100_m-1,NAND快閃記憶體控制器200便可以在資料匯流排DQ上一次從各埠DQ0~DQ7取得各快閃記憶體晶粒100_0~100_m-1的R/B狀態。因此,NAND快閃記憶體控制器200不需要外部R/B訊號線和接墊,進而可以有效地減少控制器之接墊的數量。
Therefore, in this way, for multiple flash memory dies 100_0~100_m-1 in each channel, the NAND
圖4A繪示另一此實施的NAND快閃記憶體晶粒的架構示意圖,圖4B繪示圖4A中之I/O控制器單元的電路結構示意圖。
如圖4A所示,除了映射狀態暫存器106a,I/O控制器單元104還包括狀態選擇暫存器106b。映射狀態暫存器106a內儲存的資料可以提示NAND快閃記憶體晶粒100_0(...100_m-1)的多個DQ埠中的哪一個要作為狀態指標的輸出,而狀態選擇暫存器106b內儲存的資料可以提示NAND快閃記憶體晶粒100_0(...100_m-1)的多個狀態指標中的哪一個要被輸出。
FIG. 4A is a schematic diagram showing the structure of another NAND flash memory die of this implementation, and FIG. 4B is a schematic diagram showing the circuit structure of the I/O controller unit in FIG. 4A.
As shown in FIG. 4A, in addition to the
在圖3B至3E的說明中,均以單一狀態指標為例,亦即以主控器用R/B狀態來做為說明例。但是,如前所述,本發明的應用並不僅限於主控器用R/B狀態,也可以是NAND快閃記憶體晶粒100_0(...100_m-1)的其他狀態指標或參數。換句話說,在此實施例中,可以從各快閃記憶體晶粒100_0(...100_m-1)的多個狀態指標中選擇其中一個狀態指標來從對應的DQ埠輸出。 In the descriptions of FIGS. 3B to 3E, a single state indicator is taken as an example, that is, the R/B state of the main controller is used as an example. However, as mentioned above, the application of the present invention is not limited to the R/B state of the main controller, but can also be other state indicators or parameters of the NAND flash memory die 100_0 (...100_m-1). In other words, in this embodiment, one of the multiple status indicators of each flash memory die 100_0 (...100_m-1) can be selected to output from the corresponding DQ port.
如圖4B所示,在此實施例的架構中,除了解多器130外,更包括多工器132(第二多工器)。此外,控制邏輯單元102還可以包括多個狀態暫存器,並可擇一輸出給解多工器132。多工器132可以接收多個狀態暫存器所儲存的狀態,例如主控器用R/B狀態、快閃陣列用R/B狀態以及其他狀態等。此外,多工器132更耦接到狀態選擇暫存器106b。多工器132可以基於來自狀態選擇暫存器106b的資料,而從主控器用R/B狀態、快閃陣列用R/B狀態以及其他狀態等多個狀態暫存器中選擇其中一個輸出。故,解多器130可依據映射狀態暫存器106a所儲存的資料,將狀態選擇暫存器106b所選擇的狀態從相對應的埠輸出。
As shown in FIG. 4B, in the architecture of this embodiment, in addition to the
如圖4B所示,多工器132耦接至解多工器130。多工器132所選擇的狀態指標再輸入到解多工器130。解多工器130的動作方式與圖3D、3E所述的方式相同。亦即,解多工器130可接收並解碼來自映射狀態暫存器106a的資料,據此使多工器132所選擇的狀態指標可以通過由儲存在映射狀態暫存器106a之該資料所指定的對應DQ埠(由圖3C之多工器131選擇)輸出。故,多工器132可以從多個狀態指標中選擇其中一個狀態指標來利用資料匯流排DQ進行狀態的傳送。
As shown in FIG. 4B, the
亦即,如圖4B所示,多工器132根據狀態選擇暫存器106b之訊號作為選擇線,從如主控器用R/B狀態、快閃陣列用R/B狀態等地多個狀態選擇其中之一做為輸出。例如,多工器132根據狀態選擇器106b選擇出輸出的狀態為快閃陣列用R/B狀態。此時,解多工器130會接收多工器132所輸出的訊號(即,快閃陣列用R/B狀態),並根據映射狀態暫存器106a之資料進行解碼取得本次選擇輸出的埠為第6根。在此例中,在解多工器130之8根埠輸出結果中,埠0~5與埠7皆為高阻抗,而埠6成為用來輸出快閃陣列用R/B狀態。
That is, as shown in FIG. 4B, the
接著,根據控制邏輯單元102的選擇線,多工器131(參考圖3C)則會將解多工器130之八根埠的輸出(埠6為輸出快閃陣列用R/B狀態,其餘為高阻抗)作為多工器131選擇輸出的其中一組選擇。假設當主控器端下達本實施例之的要求命令時,解多工器130之八根埠輸出的該組埠會被選擇作為DQ[7:0]而輸出。
Then, according to the selection line of the
根據此變化例,資料匯流排DQ的DQ埠不在局限於僅能映射到單一狀態指標,而是可動態地由主控器,即NAND快閃記憶體控制器200選擇所需要的狀態指標來從資料匯流排DQ進行狀態訊號傳送,因此NAND快閃記憶體晶粒的控制可以更具有自由度的方式來加以運作。除第多工器132和狀態選擇暫存器106b外,解多工器130部分的運作方式均與圖3D~圖3E相同,故在此不再冗述。
According to this variation, the DQ port of the data bus DQ is not limited to only being mapped to a single state indicator, but can be dynamically selected by the master, that is, the NAND
圖5繪示另一實施例之快閃記憶體晶粒中的I/O控制單元的電路結構示意圖。圖5與圖4B所繪示實施例之不同點在於解多工器和多工器之電路結構。如圖5所示,解多工器130’例如包括解碼器130’a以及多個三態閘130’b_0~130’b_7(以8個為例),解碼器130’a更耦接到各三態閘130’b_0~130’b_7。多工器單元132’更包括解碼器132’a以及多個多工器132’b_0~132’b_7(以8個為例),解碼器132’a更耦接到各多工器132’b_0~132’b_7。多工器單元132’之每一個多工器132’b_0~132’b_7分別耦接到解多工器130’的三態閘130’b_0~130’b_7。此外,每一個多工器132’b_0~132’b_7均接收多個狀態暫存器所儲存的狀態,例如主控器用R/B狀態、快閃陣列用R/B狀態以及其他狀態等。 FIG. 5 is a schematic diagram of the circuit structure of the I/O control unit in the flash memory die of another embodiment. The difference between the embodiment shown in FIG. 5 and FIG. 4B lies in the circuit structure of the demultiplexer and the multiplexer. As shown in FIG. 5, the demultiplexer 130' includes, for example, a decoder 130'a and a plurality of tri-state gates 130'b_0~130'b_7 (take 8 as an example), and the decoder 130'a is further coupled to each Three-state gate 130'b_0~130'b_7. The multiplexer unit 132' further includes a decoder 132'a and a plurality of multiplexers 132'b_0~132'b_7 (take 8 as an example), and the decoder 132'a is further coupled to each multiplexer 132'b_0 ~132'b_7. Each multiplexer 132'b_0~132'b_7 of the multiplexer unit 132' is respectively coupled to the tri-state gate 130'b_0~130'b_7 of the demultiplexer 130'. In addition, each multiplexer 132'b_0~132'b_7 receives the states stored in a plurality of state registers, such as the R/B state for the main controller, the R/B state for the flash array, and other states.
多工器單元132’之解碼器132’a從狀態選擇暫存器106b接收資料並且加以解碼,藉此可以使每一個多工器132’b_0~132’b_7選擇其中一個狀態暫存器。例如,多工器132’b_0可以從主控器用R/B狀態、快閃陣列用R/B狀態以及其他狀態等
多個狀態暫存器擇一並輸出到對應的三態閘130’b_0,多工器132’b_1可以從主控器用R/B狀態、快閃陣列用R/B狀態以及其他狀態等多個狀態指標擇一並輸出到對應的三態閘130’b_1,其餘類推。此外,解多工器130’之解碼器130’a可以接收並解碼來自映射狀態暫存器106a的資料,藉此使對應的三態閘130’b_0~130’b_7致能,而各狀態指標可以從對應的DQ埠[7:0]輸出。
The decoder 132'a of the multiplexer unit 132' receives data from the
舉例來說,解多工器130’會選擇哪些埠會作為輸出狀態,其餘的埠為高阻抗。例如,解碼器130’a解碼結果為0000_1100,則表示埠2與埠3是作為狀態輸出,其餘埠則呈高阻抗狀態。此外,狀態選擇暫存器106b會儲存每個埠要輸出的狀態。多工器(第二多工器)132’會決定八個埠的每個埠是要選擇哪個狀態作為輸出。例如,如果解碼器132’a解碼出來結果為1111_1211,假設1代表主控器用R/B狀態,2代表快閃陣列用R/B狀態,則多工器132’的八個埠中的埠2會輸出快閃用陣列用R/B狀態,而其餘埠作為輸出主控器用R/B狀態(即,埠0、1、3-7)。另外,多工器131(參考圖3C)最終取得的解多工器130的八根輸出埠為:埠2為快閃陣列用R/B狀態,埠3為主控器用R/B狀態,其餘6個埠則皆為高阻抗。
For example, the demultiplexer 130' will select which ports will be the output state, and the remaining ports will be high impedance. For example, the decoding result of the decoder 130'a is 0000_1100, which means that the
在此實施例中,相較於圖3E所示實施例之一個快閃記憶體晶粒僅指定一個DQ埠來輸出狀態指標,一個快閃記憶體晶粒更可以指定多個DQ埠,每個DQ埠都可以代表一個狀態指標。因此,對於一個快閃記憶體晶粒,便可以透過資料匯流排DQ,同時 輸出多個狀態指標。在此實施例中快閃記憶體晶粒會有多個狀態指標要輸出,此時哪一個DQ埠要做為輸出哪個狀態指標的輸出,其對應關係會以一資料格式儲存在狀態選擇暫存器106b中。 In this embodiment, compared to the embodiment shown in FIG. 3E for a flash memory die that only assigns one DQ port to output the status indicator, a flash memory die can also assign multiple DQ ports, each DQ port can represent a status indicator. Therefore, for a flash memory die, the data bus DQ can be used, and at the same time Output multiple status indicators. In this embodiment, the flash memory die will have multiple status indicators to output. At this time, which DQ port should be used to output which status indicator output, the corresponding relationship will be stored in a data format in the status selection temporary storage器106b中.
接下來說明上述電路架構的實際操作方式,並參考圖6A至圖6C詳細說明本發明實施例如何將資料匯流排DQ的各埠映射到R/B訊號線。在此,圖6A至圖6C是說明一個快閃記憶體晶粒從主控器接收到命令後的動作時序說明圖。 Next, the actual operation method of the above-mentioned circuit structure will be described, and with reference to FIGS. 6A to 6C, it will be described in detail how the ports of the data bus DQ are mapped to the R/B signal lines in the embodiment of the present invention. Here, FIGS. 6A to 6C are explanatory diagrams illustrating the action sequence of a flash memory die after receiving a command from the main controller.
圖6A繪示本發明實施例之NAND快閃記憶體的控制方法中各快閃記憶體晶粒的操作流程時序示意圖,其為快閃記憶體晶粒層級的動作時序說明圖。如圖6A所示,本實施例的控制方法是利用將資料匯流排DQ的操作模式(operation mode)中分成兩階段,即設定階段(setup stage)與要求階段(request stage)。本實施例主要是利用資料匯流排DQ在空閒狀態下的時段。在此例中,以資料匯流排DQ具有8個埠為說明例DQ0~DQ7,但實際情況可以視NAND快閃記憶體晶粒做適當地調整。此外,主控器層級的操作將會在圖7A說明。 FIG. 6A is a schematic diagram of the operation sequence sequence of each flash memory die in the NAND flash memory control method according to an embodiment of the present invention, which is an explanatory diagram of the operation sequence of the flash memory die level. As shown in FIG. 6A, the control method of this embodiment uses the operation mode of the data bus DQ to be divided into two stages, namely the setup stage and the request stage. This embodiment mainly uses the time period when the data bus DQ is in the idle state. In this example, the data bus DQ has 8 ports as an example DQ0~DQ7, but the actual situation can be adjusted appropriately depending on the NAND flash memory die. In addition, the operation of the main controller level will be illustrated in FIG. 7A.
如圖6A,在設定階段,於命令輸入(CMD input)之操作模式(基於資料匯流排DQ之資料傳送規格)下,此時的周期型式是設定R/B命令。亦即,在各NAND快閃記憶體晶粒100_0(...100_m-1)接收到由NAND快閃記憶體控制器200,即主控器(host)200,送出的設定命令(setup command)後,將資料匯流排DQ的各埠DQ0~DQ7與所述快閃記憶體的一通道中的各快閃記憶體晶粒
100_0~100_m-1的R/B狀態(狀態指標)相對應。
As shown in Figure 6A, in the setting phase, in the CMD input operation mode (based on the data transmission specification of the data bus DQ), the cycle pattern at this time is to set the R/B command. That is, each NAND flash memory die 100_0 (...100_m-1) receives the setup command sent by the NAND
在此,設定命令可以使用廠商特定命令(vendor-specific command),來與各通道之各NAND快閃記憶體晶粒100_0~100_m-1的資料匯流排DQ的各埠DQ0~DQ7相對應。例如,一般NAND快閃記憶體晶粒100_0~100_m-1可以有8個不同的廠商特定命令,每一個廠商特定命令便可以對應到一特定的DQ埠。例如命令20h可以指派給埠DQ0,命令21h可以指派給埠DQ1等,其餘以此類推。藉此,便可以用不同的廠商特定命令來與各埠進行相對應的指派。亦即,如圖6A所示,在設定R/B命令的周期型式下,內部晶片致能訊號CE#對晶片致能,並在資料匯流排DQ的DQ[7:0]送出命令20h。
Here, the setting command can use a vendor-specific command to correspond to each port DQ0~DQ7 of the data bus DQ of each NAND flash memory die 100_0~100_m-1 of each channel. For example, a general NAND flash memory die 100_0~100_m-1 can have 8 different vendor-specific commands, and each vendor-specific command can correspond to a specific DQ port. For example,
如此,通過設定階段,便可以廠商特定命令來將各埠DQ0~DQ7與各NAND快閃記憶體晶粒的內部R/B訊號線進行一對一的映射,而用來指示此對應關係的資料(值)則儲存在上述圖3B至圖3E所示的R/B至DQ埠暫存器106中。
In this way, through the setting stage, the manufacturer-specific commands can be used to map each port DQ0~DQ7 with the internal R/B signal lines of each NAND flash memory die, and the data used to indicate the corresponding relationship (Value) is stored in the R/B to DQ
在主控器之層級,在設定階段,其操作流程示意圖如圖7A之步驟S100所示,於命令輸入之操作模式下,由主控器(如快閃記憶體控制器)送出設定命令,將各所述多個快閃記憶體晶粒100_0~100_m-1的資料匯流排的各埠DQ0~DQ7分別映射到各所述快閃記憶體晶粒100_0~100_m-1的狀態指標(R/B狀態)。 At the main controller level, in the setting phase, the operation flow diagram is shown in step S100 in Figure 7A. In the command input operation mode, the main controller (such as a flash memory controller) sends out the setting command to Each port DQ0~DQ7 of the data bus of each of the plurality of flash memory dies 100_0~100_m-1 is respectively mapped to the state indicator (R/B) of each of the flash memory dies 100_0~100_m-1 state).
再次參考圖6A,接著在要求階段(request stage),各NAND快閃記憶體晶粒100_0(...100_m-1)接收到由所述NAND快閃記憶
體控制器200送出要求命令(request command),亦即另外的廠商特定命令傳送給各NAND快閃記憶體晶粒100_0~100_m-1。
6A again, then in the request stage (request stage), each NAND flash memory die 100_0 (...100_m-1) received by the NAND flash memory
The
在此要求階段,如圖6A所示,在操作模式為命令輸入時,此時周期型式為要求R/B命令,亦即NAND快閃記憶體控制器200會對各NAND快閃記憶體晶粒100_0~100_m-1送出要求命令來取得各NAND快閃記憶體晶粒100_0~100_m-1的R/B訊號線的狀態。接著,在資料輸出(data output)的操作模式下,各NAND快閃記憶體晶粒100_0~100_m-1會使用相對應的埠DQ0~DQ7,經由資料匯流排DQ將各NAND快閃記憶體晶粒100_0~100_m-1的主控器R/B狀態傳送NAND快閃記憶體控制器200。
In this request stage, as shown in FIG. 6A, when the operation mode is command input, the cycle type is request R/B command, that is, the NAND
對於主控器層級,在要求階段,其操作流程示意圖如圖7A之步驟S200所示,於命令輸入之操作模式下,由主控器向各所述快閃記憶體晶粒100_0~100_m-1送出要求命令。接著,在步驟S300,於資料輸出之操作模式下,每一通道中的各快閃記憶體晶粒100_0~100_m-1將狀態指標(主控器用R/B狀態)的狀態經由相對應的所述資料匯流排的各埠DQ0~DQ7,傳送到所述主控器。 For the main controller level, at the request stage, the schematic diagram of the operation flow is shown in step S200 of FIG. Send a request order. Next, in step S300, in the data output operation mode, each flash memory die 100_0~100_m-1 in each channel passes the state of the state indicator (the R/B state for the main controller) through the corresponding all Each port DQ0~DQ7 of the data bus is sent to the main controller.
通過此方式,NAND快閃記憶體控制器200之通道上的多個快閃記憶體晶粒100_1~100_m-1,便可以透過資料匯流排DQ各埠DQ0~DQ7一次取得各多個快閃記憶體晶粒100_1~100_m-1的主控器用R/B狀態,而不需要外部R/B訊號線和接墊,進而可以減少控制器之接墊的數量。
In this way, the multiple flash memory dies 100_1~100_m-1 on the channel of the NAND
圖6B繪示本發明另一實施例之NAND快閃記憶體的控 制方法中各快閃記憶體晶粒的設定階段的另一實施例的操作流程時序示意圖。圖7B則繪示主控器層級的設定階段的操作流程示意圖。 FIG. 6B shows the control of NAND flash memory according to another embodiment of the present invention The operation sequence diagram of another embodiment of the setting stage of each flash memory die in the manufacturing method. FIG. 7B shows a schematic diagram of the operation flow of the setting stage of the main controller level.
如圖6B所示,在此實施例中,於設定階段中,可以更包括兩個周期。此實施例僅有設定階段與前述圖6A的設定階段有所不同,而要求階段基本上是相同的。故,在此謹說明設定階段的操作。 As shown in FIG. 6B, in this embodiment, the setting phase may further include two cycles. In this embodiment, only the setting phase is different from the setting phase of FIG. 6A, and the requirement phase is basically the same. Therefore, I would like to explain the operation of the setup phase here.
如圖6B所示,在設定階段,在操作模式下分成兩個周期,第一周期是命令輸入(CMD input)周期,第二周期是位址輸入(ADDR input)周期。兩者構成設定R/B命令的周期型式。 As shown in FIG. 6B, in the setting phase, the operation mode is divided into two cycles, the first cycle is a command input (CMD input) cycle, and the second cycle is an address input (ADDR input) cycle. Both constitute the cycle pattern of the R/B command.
當NAND快閃記憶體晶粒的致能訊號CE#致能晶片後,於命令輸入之操作模式下,NAND快閃記憶體晶粒接收由NAND快閃記憶體控制器(主控器)200送出的準備命令(prepare command)。此準備命令也可以由廠商特定命令來加以定義,例如圖6B所示之命令FEh。此準備命令主要是通知或暗示(hint)各NAND快閃記憶體晶粒100_0~100_m-1準備要指派一相應的DQ埠來傳送R/B狀態。 When the enable signal CE# of the NAND flash memory chip enables the chip, in the operation mode of command input, the NAND flash memory chip is received and sent by the NAND flash memory controller (main controller) 200 The prepare command (prepare command). The preparation command can also be defined by a vendor-specific command, such as the command FEh shown in FIG. 6B. This preparation command mainly informs or hints that each NAND flash memory die 100_0~100_m-1 is ready to assign a corresponding DQ port to transmit R/B status.
接著,在位址輸入周期之第二周期,亦即圖6B所示的位址輸入之操作模式下,NAND快閃記憶體控制器200將會送出特定的位址值,此值將會對應一特定的DQ埠,並且與一NAND快閃記憶體晶粒的R/B訊號線相對應。例如,在此階段,可以使用值00h對應DQ0、值01h對應DQ1等,其餘與此類推。
Then, in the second cycle of the address input cycle, that is, in the address input operation mode shown in FIG. 6B, the NAND
因此,在此實施例中,在設定階段的在第一周期,NAND快閃記憶體控制器200可以先送出例如命令FEh來通知各NAND快閃記憶體晶粒100_0~100m-1,其各自的R/B訊號線準備與資料匯流排DQ之各埠DQ0~DQ7建立對應關係,亦即準備指派各埠DQ0~DQ7分別映射到各NAND快閃記憶體晶粒100_0~100m-1之R/B訊號線。接著,在位址輸入的第二周期,透過指派位址,可以實際將各NAND快閃記憶體晶粒100_0~100m-1之R/B訊號狀態與各埠DQ0~DQ7加以關聯。如此,通過此兩周期的設定階段,也可以廠商特定命令與位址來將各埠DQ0~DQ7與各NAND快閃記憶體晶粒的內部R/B訊號進行一對一的映射,並儲存在上述圖3B~圖3E所示的映射狀態暫存器106中。
Therefore, in this embodiment, in the first cycle of the setting phase, the NAND
此設定階段在主控器層級的操作流程示意圖如圖7B所示。在設定階段,由主控器送出設定命令可以更包括:在步驟S102,於命令輸入之操作模式下,在資料匯流排DQ送出準備命令(如上述的命令FEh),以通知各快閃記憶體晶粒100_0~100_m-1準備進行將資料匯流排DQ的各埠DQ0~DQ7分別指派給各多個快閃記憶體晶粒100_0~100_m-1的R/B訊號線(狀態指標)。接著,在步驟S104,於位址輸入之操作模式下,主控器在資料匯流排DQ送出位址訊號ADDR(如上述的00h、01h等),藉此將資料匯流排DQ的各埠DQ0~DQ7與各快閃記憶體晶粒100_0~100_m-1的R/B狀態訊號線(狀態指標)分別相對應。 The schematic diagram of the operation flow of this setting stage at the main controller level is shown in Fig. 7B. In the setting stage, sending a setting command from the main controller may further include: in step S102, in the command input operation mode, sending a preparation command (such as the above command FEh) on the data bus DQ to notify each flash memory The die 100_0~100_m-1 is ready to assign each port DQ0~DQ7 of the data bus DQ to the R/B signal line (status indicator) of each flash memory die 100_0~100_m-1. Then, in step S104, in the operation mode of address input, the main controller sends an address signal ADDR (such as 00h, 01h, etc.) on the data bus DQ, thereby connecting the ports DQ0~ of the data bus DQ DQ7 corresponds to the R/B status signal line (status index) of each flash memory die 100_0~100_m-1 respectively.
圖8繪示本發明實施例之快閃記憶體控制器的操作時序
示意圖。首先,在快閃記憶體一開始運作時,尚未在資料匯流排DQ上進行資料的輸入輸出,亦即快閃記憶體處於空閒(idle)狀態下,可以透過如上述圖6A或圖6B之設定階段的操作,進行快閃記憶體晶粒0~快閃記憶體晶粒3的設定R/B命令操作。接著,將資料匯流排DQ之埠DQ0~DQ3分別指派以作為快閃記憶體晶粒0~快閃記憶體晶粒3之R/B訊號線。換句話說,在設定快閃記憶體晶粒階段,晶粒0設定為DQ0輸出主控器用R/B狀態,其餘DQ埠為高阻抗狀態。晶粒1設定為DQ1輸出主控器用R/B狀態,其餘DQ高阻抗狀態。其餘晶粒的設定以此類推。
FIG. 8 shows the operation sequence of the flash memory controller according to the embodiment of the present invention
Schematic. First, when the flash memory starts to operate, data input and output have not been performed on the data bus DQ, that is, when the flash memory is in an idle state, you can set it as shown in Figure 6A or Figure 6B. The operation of the stage is to perform the R/B command operation of setting flash memory die 0~flash memory die 3. Then, the ports DQ0~DQ3 of the data bus DQ are respectively assigned as the R/B signal lines of flash memory die 0~ flash memory die 3. In other words, in the stage of setting the flash memory die, die 0 is set to the R/B state for the DQ0 output master, and the remaining DQ ports are in the high impedance state.
此外,當控制器(主控器)在設定階段對快閃記憶體晶粒0~3的其中之一進行設定時,例如選定DQ0作為輸出主控器用R/B狀態,則其他快閃記憶體晶粒1~3與該DQ0相對應的DQ0,亦即快閃記憶體晶粒1~3各自的DQ0會輸出高阻抗狀態。同理,對其他快閃記憶體晶粒1~3也進行相同的設定。
In addition, when the controller (master controller) sets one of the flash memory dies 0~3 in the setting stage, for example, if DQ0 is selected as the R/B state for the output master, the other flash memory The DQ0 of the
藉此,後續各快閃記憶體晶粒0~快閃記憶體晶粒3之R/B訊號線的狀態可以分別從資料匯流排DQ之DQ0~DQ3傳送到快閃記憶體控制器200。此時各快閃記記體晶粒0~3之內部R/B訊號線的狀態是呈現備妥狀態。
Thereby, the status of the R/B signal lines of each subsequent flash memory die 0~flash memory die 3 can be respectively transmitted from DQ0~DQ3 of the data bus DQ to the
接著,快閃記憶體晶粒進入操作模式,亦即可以對各快閃記憶體晶粒進行寫入等等的各種操作。此時各快閃記記體晶粒0~3之內部R/B訊號的狀態便依序進入忙碌狀態。 Then, the flash memory die enters the operation mode, that is, various operations such as writing to each flash memory die can be performed. At this time, the state of the internal R/B signal of each flash memory die 0~3 enters the busy state in sequence.
接著在一段時間後,快閃記憶體控制器便對各快閃記憶 體晶粒0~3送出要求RB命令。當各快閃記憶體晶粒0~3接收到此要求RB命令,便接著在各自相應的埠DQ0~DQ3送出R/B訊號的狀態給快閃記憶體控制器。如此,快閃記憶體控制器便可以在圖6之RB至DQ這個期間取得各快閃記憶體晶粒0~3的R/B狀態。 Then after a period of time, the flash memory controller Body die 0~3 send request RB command. When each flash memory die 0~3 receives this request RB command, it then sends the status of R/B signal to the flash memory controller through their corresponding ports DQ0~DQ3. In this way, the flash memory controller can obtain the R/B state of each flash memory die 0~3 during the period from RB to DQ in FIG. 6.
在要求階段,主控器會同時對所有快閃記憶體晶粒0-3發出要求命令,而每個快閃記憶體晶粒0-3會根據設定階段的配置,將其各自在解多工器130的8個輸出映射到DQ[7:0],最終集合在一DQ資料匯流排上。藉此,可如圖8所示,在DQ匯流排輸出X1h,X3h,...之結果。因主控器在設定時,會將每個快閃記憶體晶粒0-3分配好在對應的埠上,不讓同時有多個埠進行輸出,以避免訊號間干擾。換句話說,兩個快閃記憶體晶粒不會同時對相同的埠進行輸出。例如,以圖3A所示之通道0為例,在狀態輸出時,快閃記憶體晶粒0會在其DQ[7:0]輸出zzzz_zzz1,快閃記憶體晶粒1會在其DQ[7:0]輸出zzzz_zz0z,快閃記憶體晶粒2會在其DQ[7:0]輸出zzzz_z0zz,快閃記憶體晶粒3會在其DQ[7:0]輸出zzzz_0zzz(其中z表示高阻抗狀態)。最後,總DQ匯流排會輸出zzzz_0001來指示各快閃記憶體晶粒0-3之狀態。
In the request phase, the main controller will issue a request command to all flash memory dies 0-3 at the same time, and each flash memory die 0-3 will be demultiplexed according to the configuration of the setting stage. The 8 outputs of the
因此,在本實施例的架構下,利用廠商特定命令且利用資料匯流排來代替快閃記憶體晶粒的R/B訊號線,故可以省下原本各快閃記憶體晶粒的R/B訊號線與接墊,故快閃記憶體控制器也就相對應地不需要此R/B接墊,故控制器的接墊數可以有效底減少,並且不會增加快閃記憶體晶粒的尺寸與電路複雜度。此外, 本實施例之操作模式是應用既有資料輸入輸出的操作模式來進行,亦即利用資料匯流排的空閒期間來進行R/B訊號與DQ埠之設定,故不需要採用額外的操作,也可以容易地達成R/B訊號與DQ埠之指派設定且同時間將映射狀態值輸出至資料匯流排DQ(外部資料匯流排)上,更可減少依次輪詢各該快閃記憶體晶粒狀態的次數。。 Therefore, under the structure of this embodiment, the R/B signal line of the flash memory die is replaced by the manufacturer-specific command and the data bus is used, so the original R/B signal line of each flash memory die can be saved. The signal line and the pad, so the flash memory controller does not need this R/B pad correspondingly, so the number of pads of the controller can be effectively reduced without increasing the flash memory die Size and circuit complexity. also, The operation mode of this embodiment is performed by using the existing data input and output operation mode, that is, the idle period of the data bus is used to set the R/B signal and DQ port, so no additional operation is required, and it can also be used. Easily achieve the assignment of R/B signal and DQ port and output the mapping status value to the data bus DQ (external data bus) at the same time, which can reduce the need to poll each flash memory die state in turn frequency. .
100_0~100_m-1:NAND快閃記憶體晶粒 100_0~100_m-1: NAND flash memory die
102:邏輯控制單元 102: Logic Control Unit
104:輸入輸出單元 104: Input and output unit
106a:映射狀態暫存器 106a: Mapping status register
106b:狀態選擇暫存器 106b: State selection register
108:R/B訊號狀態(內部) 108: R/B signal status (internal)
110:高壓電路 110: high voltage circuit
112:命令暫存器 112: Command register
114:位址暫存器 114: Address register
116:狀態暫存器 116: Status register
118:資料緩衝器 118: data buffer
120:記憶體陣列 120: memory array
122:Y-解碼器 122: Y-decoder
124:X-解碼器 124: X-decoder
126:頁緩衝器 126: page buffer
Claims (26)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW109146755A TWI746331B (en) | 2020-12-30 | 2020-12-30 | Control method for flash memory, flash memory die and flash memory |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW109146755A TWI746331B (en) | 2020-12-30 | 2020-12-30 | Control method for flash memory, flash memory die and flash memory |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI746331B true TWI746331B (en) | 2021-11-11 |
TW202226250A TW202226250A (en) | 2022-07-01 |
Family
ID=79907599
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW109146755A TWI746331B (en) | 2020-12-30 | 2020-12-30 | Control method for flash memory, flash memory die and flash memory |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI746331B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090083476A1 (en) * | 2007-09-21 | 2009-03-26 | Phison Electronics Corp. | Solid state disk storage system with parallel accesssing architecture and solid state disck controller |
US20100180182A1 (en) * | 2009-01-09 | 2010-07-15 | Seagate Technology Llc | Data memory device and controller with interface error detection and handling logic |
US9053014B2 (en) * | 2009-12-21 | 2015-06-09 | Intel Corporation | Repurposing NAND ready/busy pin as completion interrupt |
US20200004450A1 (en) * | 2018-06-29 | 2020-01-02 | Seagate Technology Llc | Configurable Mapping System in a Non-Volatile Memory |
US10877907B2 (en) * | 2009-09-07 | 2020-12-29 | Bitmicro Llc | Multilevel memory bus system |
-
2020
- 2020-12-30 TW TW109146755A patent/TWI746331B/en active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090083476A1 (en) * | 2007-09-21 | 2009-03-26 | Phison Electronics Corp. | Solid state disk storage system with parallel accesssing architecture and solid state disck controller |
US20100180182A1 (en) * | 2009-01-09 | 2010-07-15 | Seagate Technology Llc | Data memory device and controller with interface error detection and handling logic |
US10877907B2 (en) * | 2009-09-07 | 2020-12-29 | Bitmicro Llc | Multilevel memory bus system |
US9053014B2 (en) * | 2009-12-21 | 2015-06-09 | Intel Corporation | Repurposing NAND ready/busy pin as completion interrupt |
US20200004450A1 (en) * | 2018-06-29 | 2020-01-02 | Seagate Technology Llc | Configurable Mapping System in a Non-Volatile Memory |
Also Published As
Publication number | Publication date |
---|---|
TW202226250A (en) | 2022-07-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100633828B1 (en) | Memory system with burst length shorter than prefetch length | |
US20100115172A1 (en) | Bridge device having a virtual page buffer | |
US7380045B2 (en) | Protocol conversion and arbitration circuit, system having the same, and method for converting and arbitrating signals | |
KR101051506B1 (en) | Method and memory controller for scalable multichannel memory access | |
US12086474B2 (en) | Control method for requesting status of flash memory, flash memory system | |
EP1488321B1 (en) | Obtaining data mask mapping information | |
KR100875978B1 (en) | Memory card and memory system including it | |
WO2010051621A1 (en) | Bridge device having a virtual page buffer | |
JP2012521612A (en) | Configurable bandwidth memory device and method | |
TWI260496B (en) | Mapping data masks in hardware by controller programming | |
US20160358671A1 (en) | Memory chip and stack type semiconductor apparatus including the same | |
WO2007078632A2 (en) | Multiported memory with ports mapped to bank sets | |
CN106598886B (en) | I/O bus shared memory system | |
TWI746331B (en) | Control method for flash memory, flash memory die and flash memory | |
JP4527643B2 (en) | MEMORY DEVICE AND MEMORY DEVICE OPERATION METHOD | |
CN102467953B (en) | Semiconductor storage and comprise the semiconductor system of semiconductor storage | |
JP5643896B2 (en) | High speed interface for daisy chained devices | |
JPH0146946B2 (en) | ||
CN104077080B (en) | Memory access method, memory access control method, SPI flash memory device and controller thereof | |
CN100487673C (en) | Secondary memory device and method for using secondary memory | |
JP2006520969A (en) | Memory management in data processing systems | |
TW202316279A (en) | Semiconductor device and chip control method | |
JP2006011926A (en) | Serial data transfer system, serial data transfer device, serial data transfer method and image forming apparatus | |
TWI824847B (en) | Method and apparatus for controlling shared memory, shareable memory and electrical device using the same | |
CN119690905A (en) | SOC chip and method integrating M1553B interactive interface |