Flash memory control method, flash memory crystal and flash memory

By mapping status indicators on the external data bus of the flash memory die and using multiplexer to select ports to transmit the status, the problems of increasing pads and wasting status in the NAND flash memory controller are solved, and efficient busy state detection is achieved.

CN114691554BActive Publication Date: 2024-11-26MACRONIX INTERNATIONAL CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110012228.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-12-30
Filing Date
2021-01-06
Publication Date
2024-11-26
Estimated Expiration
2041-01-06

AI Technical Summary

Technical Problem

When facing a large number of flash memory dies, the NAND flash controller needs to increase the number of pads and cannot quickly determine which logic unit is busy, resulting in extra time and resource waste.

Method used

By mapping status indicators on the external data bus of the flash memory die, using multiplexers and multiplexers to select the corresponding ports to transmit ready/busy state, reducing the dependence on R/B signal lines and pads, achieving a fast state Test.

Benefits of technology

The number of pads on the controller is effectively reduced, and the busy state of each flash memory grain is determined without increasing time consumption, which improves control efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114691554B_ABST
    Figure CN114691554B_ABST
Patent Text Reader

Abstract

The present invention discloses a flash memory control method, a flash memory crystal and a flash memory. The flash memory has an external data bus connecting a plurality of flash memory crystals. The flash memory control method comprises: in a setting stage, in a command input operation mode, a setting command is sent by a main controller to map each port of a data bus of each flash memory crystal to a state indicator of each flash memory crystal; and in a request stage, in a command input operation mode, a request command is sent by the main controller to each flash memory crystal, and in a data output operation mode, the state of the state indicator of each flash memory crystal is transmitted to the main controller via each port of the corresponding external data bus.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a flash memory, and in particular to a flash memory control method, a flash memory chip and a flash memory. Background Art

[0002] Currently, NAND flash controllers are facing a significant increase in the number of NAND flash grains to be controlled, which results in an increase in the number of controller pads and the grain size will also increase. In addition, the ready / busy (R / B) signals of all logic units will also be connected to the shared R / B signal line. Therefore, if you want to know which logic 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 logic unit is ready or busy.

[0003] Generally speaking, the R / B state of NAND flash memory is implemented using an open drain design. Figure 1 A schematic diagram of a NAND flash memory circuit with an open drain is shown. Figure 1 As shown, there are multiple NAND flash memory chips 0, 1, 2, ... in one channel and their R / B state outputs are respectively connected to a common open-drain output. Figure 2A and Figure 2B There are currently two ways to design multi-channel NAND flash memory.

[0004] like Figure 2A As shown, in this architecture, the R / B signal lines of each NAND flash die in each channel are independent of each other, that is, each flash memory die 10_0~10_m-1 is respectively provided with an R / B signal line to connect with the multi-channel flash memory controller 20, so in each channel, the multi-channel flash memory controller 20 also needs to provide the number of pads corresponding to the R / B signal lines.

[0005] Figure 2B is a multi-channel NAND flash memory that illustrates another architecture, such as Figure 2B As shown, in this design, each flash memory chip 10_0~10_m-1 in each channel shares one R / B signal line, that is, they are short-circuited together. However, under this architecture, the multi-channel flash memory controller 20 will not know which NAND flash memory chip 10_0~10_m-1 is in a busy state, and must spend extra time to confirm the ready / busy state of each flash memory chip 10_0~10_m-1. In other words, under this architecture, although the number of pads can be saved, it takes extra time to confirm the ready / busy state of each flash memory chip 10_0~10_m-1.

[0006] Therefore, there is a need in the art for a technical means that can reduce the number of pads while not requiring extra time to confirm whether each flash memory is in a busy state. Summary of the invention

[0007] According to one embodiment, the present invention provides a control method for a flash memory, wherein the flash memory has an external data bus connecting a plurality of flash memory grains. The control method comprises: in a setting phase, in a command input operation mode, a setting command is sent by a main controller to map each port of the external data bus to a status indicator of each flash memory grain; and in a request phase, in a command input operation mode, a request command is sent by the main controller to each of the plurality of flash memory grains, and in a data output operation mode, the status of the status indicator of each flash memory grain is transmitted to the main controller via each corresponding port of the external data bus.

[0008] In the control method of the multi-channel flash memory, in the setting stage, the setting command sent by the main controller also includes: in the command input operation mode, the main controller sends a preparation command to notify each of the multiple flash memory grains to prepare to assign each port of the external data bus to the status indicator of each of the multiple flash memory grains; and in the address input operation mode, the main controller sends an address signal to map each port of the external data bus to the status indicator of each of the multiple flash memory grains.

[0009] In the above flash memory control method, each of the flash memory grains has a plurality of output ports respectively coupled to the ports of the external data bus; in the setting stage, a first output port of one of the first flash memory grains among the plurality of flash memory grains is selected to transmit the state indicator. The output ports corresponding to the first output port of each of the flash memory grains other than the first flash memory grain among the plurality of flash memory grains are in an output high impedance state; and the output ports other than the first output port of the first flash memory output a high impedance state.

[0010] In the above flash memory control method, the status indicator may be a ready / busy status of the main controller. In the above flash memory control method, the setting command and the request command may be defined by a manufacturer-specific command. In the above flash memory control method, the main controller may be a multi-channel flash memory controller.

[0011] According to another embodiment, the present invention provides a flash memory chip, comprising at least: a plurality of ports, the plurality of ports being coupled to an external data bus; a control logic unit, providing a status indicator of the flash memory chip; a mapping status buffer, for storing data, the data being used to select one of the plurality of ports corresponding to the status indicator of the flash memory chip; and an input / output control unit. The input / output control unit also includes a first multiplexer and a demultiplexer. The first multiplexer has a plurality of inputs and outputs, the plurality of inputs respectively receiving data from a plurality of sets of internal buses, the outputs being coupled to the plurality of ports, wherein the first multiplexer selects one of the plurality of inputs and outputs to the external data bus according to a selection signal provided by the control logic unit, the plurality of sets of internal buses at least including an internal data bus, a status pointer bus and a mapping status bus. 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, the output of the demultiplexer is connected to the input of the first multiplexer via the mapping state bus, wherein the demultiplexer selects one of the plurality of outputs of the demultiplexer to transmit the state indicator based on the data received by the selection line, and the unselected outputs of the demultiplexer are output with high impedance.

[0012] In the above-mentioned flash memory chip, when the flash memory chip receives a setting command sent by a host controller, the state indicator of the flash memory chip is mapped to one of the plurality of ports.

[0013] In the above-mentioned flash memory chip, when the flash memory chip receives a request command from the main controller, the demultiplexer of the input / output control unit selects the port corresponding to the status indicator of the flash memory chip according to the data stored in the mapping status buffer, and transmits the status of the status indicator to the main controller via the selected port.

[0014] In the above-mentioned flash memory chip, when receiving the request command, unselected ports among the plurality of ports are in a high impedance state.

[0015] In the flash memory die, the setting command and the request command may be defined by a vendor specific command. In the flash memory die, the master controller may be a multi-channel flash memory controller. In the flash memory die, the status indicator is a ready / busy status of the master controller.

[0016] In the above-mentioned flash memory chip, the input / output control unit further includes a second multiplexer, the output of which is coupled to the input of the demultiplexer for selecting one of the plurality of status registers to output to the demultiplexer.

[0017] In the above-mentioned 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 plurality of multiplexers receives states stored in a plurality of state buffers, and selects one from the plurality of state buffers to output to the demultiplexer. The outputs of the plurality of multiplexers are provided to the demultiplexer and input to the first multiplexer via the mapping state bus.

[0018] According to another embodiment, the present invention provides a control method for a flash memory, wherein the flash memory has an external data bus connecting a plurality of flash memory grains. The control method comprises: a host controller sends a setting command to correspond each port of the external data bus to a status indicator of each of the flash memory grains; and the host controller sends a request command to each of the flash memory grains; when each of the plurality of flash memory grains receives the request command, the status of the status indicator of each of the plurality of flash memory grains is transmitted to the host controller via each corresponding port of the external data bus.

[0019] In the above-mentioned flash memory control method, the setting command sent by the main controller also includes: sending a preparation command to notify each of the multiple flash memory grains to prepare to assign each port of the external data bus to each of the multiple flash memory grains; and sending an address signal to respectively correspond each port of the external data bus of each of the multiple flash memory grains to the status indicator of each of the multiple flash memory grains.

[0020] In the above flash memory control method, each of the flash memory grains has a plurality of output ports respectively coupled to the ports of the external data bus; a first output port of one of the first flash memory grains among the plurality of flash memory grains is selected to transmit the state indicator. The output ports corresponding to the first output port of each of the flash memory grains other than the first flash memory grain among the plurality of flash memory grains are in an output high impedance state; and the output ports other than the first output port of the first flash memory output a high impedance state.

[0021] In the above flash memory control method, the status indicator may be a ready / busy status of the master controller. In the above flash memory control method, the setting command and the request command may be defined by a manufacturer-specific command. In the above flash memory control method, the master controller may be a flash memory controller.

[0022] 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 grains, respectively coupled to the at least one external bus; and a main controller, coupled to the at least one external bus, for controlling the plurality of flash memory grains. In the setting phase, the main controller sends a setting command to correspond each port of the external data bus to a status indicator of each of the flash memory grains; in the request phase, the main controller sends a request command to each of the flash memory grains, and when each of the plurality of flash memory grains receives the request command, the status of the status indicator of each of the plurality of flash memory grains is transmitted to the main controller via each corresponding port of the external data bus.

[0023] In the above-mentioned flash memory, the setting command sent by the main controller also includes: sending a preparation command to notify each of the multiple flash memory grains to prepare to assign each port of the external data bus to each of the multiple flash memory grains respectively; and sending an address signal, so that each port of the external data bus of each of the multiple flash memory grains corresponds to the status indicator of each of the multiple flash memory grains respectively.

[0024] In the above flash memory control method, each of the flash memory grains has a plurality of output ports respectively coupled to the ports of the external data bus; a first output port of a first flash memory grain of one of the plurality of flash memory grains is selected to transmit the state indicator. The output ports corresponding to the first output port of each flash memory grain other than the first flash memory grain among the plurality of flash memory grains are in an output high impedance state; the output ports other than the first output port of the first flash memory output a high impedance state.

[0025] In the above-mentioned flash memory, the status indicator can be a ready / busy status of the host controller. In the above-mentioned flash memory control method, the setting command and the request command can be defined by a manufacturer-specific command.

[0026] In summary, under the architecture of this embodiment, the manufacturer-specific commands are used and the data bus is used to serve as the R / B signal line of the flash memory chip, so the original R / B signal line and pad of each flash memory chip can be saved. Therefore, the flash memory controller does not need this R / B pad accordingly, and the number of pads of the controller can be effectively reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 The diagram is a schematic diagram of an open-drain output of a known NAND flash memory chip architecture.

[0028] Figure 2A and Figure 2B Draw a schematic diagram of the architecture of a known NAND flash memory.

[0029] Figure 3A A schematic diagram of a flash memory architecture according to an embodiment of the present invention is shown.

[0030] Figure 3B A schematic diagram of the structure of a NAND flash memory chip according to an embodiment of the present invention is shown.

[0031] Figure 3C and 3D Further drawing Figure 3B The circuit structure diagram of the I / O control unit in the flash memory chip is shown.

[0032] Figure 3E Draw Figure 3D Schematic diagram of the circuit structure of the demultiplexer.

[0033] Figure 4A A schematic diagram of the structure of another NAND flash memory chip according to an embodiment of the present invention is shown.

[0034] Figure 4B Draw Figure 4A Schematic diagram of the circuit structure of the I / O controller unit.

[0035] Figure 5 A schematic diagram of the circuit structure of an I / O control unit in a flash memory chip according to another embodiment is shown.

[0036] Fig. 6A A schematic diagram of the timing of the operation process of each flash memory chip in the NAND flash memory control method according to an embodiment of the present invention is shown.

[0037] Figure 6B A timing diagram of the operation flow of another embodiment of the setting phase of each flash memory chip in the control method of the NAND flash memory according to another embodiment of the present invention is shown.

[0038] Fig. 7A A schematic diagram of the operation flow of a host controller on a plurality of NAND flash memory chips on a channel according to an embodiment of the present invention is shown.

[0039] Figure 7B Draw Fig. 7A Schematic diagram of the operation flow of another embodiment of the setting stage.

[0040] Figure 8 A schematic diagram of the operation timing of a flash memory controller according to an embodiment of the present invention is shown.

[0041]

Explanation of symbols

[0042] 10_0~10_m-1: NAND flash memory die

[0043] 20: Flash Memory Controller

[0044] 100_0~100_m-1: NAND flash memory die

[0045] 102: Logic control unit

[0046] 104: Input and output unit

[0047] 106, 106a: Mapping status buffer

[0048] 106b: Status selection register

[0049] 108: R / B signal status (internal)

[0050] 110: High voltage circuit

[0051] 112: Command buffer

[0052] 114: Address register

[0053] 116: Status Buffer

[0054] 118: Data buffer

[0055] 120: Memory array

[0056] 122: Y-decoder

[0057] 124: X-Decoder

[0058] 126: Page Buffer

[0059] 130, 132′: Demultiplexer

[0060] 130a, 130′a: Decoder

[0061] 130b_0~130b_7、130′b_0~130′b_7:Tri-state gate

[0062] 131, 132: Multiplexer

[0063] 132′: Multiplexer unit

[0064] 132a, 132′a: Decoder

[0065] 132′b_0~132′b_7:Multiplexer

[0066] 200: Flash memory controller DETAILED DESCRIPTION

[0067] Figure 3A A schematic diagram of a flash memory architecture according to an embodiment of the present invention is shown. Figure 3B A schematic diagram of the structure of a NAND flash memory chip according to an embodiment of the present invention is shown. Figure 3ASchematic diagram of the architecture of each NAND flash memory chip in each channel. Figure 3A The structure of a multi-channel flash memory is shown, but the description of this embodiment will be based on one channel. The method and structure of this embodiment are applicable to the case of single channel or multi-channel.

[0068] like Figure 3A As shown, the NAND flash controller 200 or the host 200 may be connected to a flash string having n channels (0 to n-1), and the flash string of each channel may include multiple flash grains. For example, each NAND flash channel 0 to n-1 has m NAND flash grains 100_0 to 100_m-1. In addition, the m NAND flash grains 100_0 to 100_m-1 of each channel have at least chip enable signals CE_0 to CE_m-1, which are respectively connected to the NAND flash controller 200. In addition, the input control unit of each NAND flash grain 100_0 to 100_m-1 may transmit and receive data with the NAND flash controller 200 through the data bus (external data bus) DQ.

[0069] Furthermore, if Figure 3A As shown, in this architecture, each NAND flash memory chip 100_0~100_m-1 does not use the R / B pad as in the prior art to transmit the ready and busy status (status pointer signal) corresponding to each NAND flash memory chip 100_0~100_m-1. According to an embodiment of the present invention, this embodiment uses each port of the data bus DQ (taking 8 ports as an example, such as DQ[7:0]) to transmit the R / B signal of each NAND flash memory chip 100_0~100_m-1. In other words, this embodiment maps the internal R / B# port to the specified DQ port to perform R / B status detection of the NAND flash memory chip 100_0~100_m-1.

[0070] The status pointer here can be various internal states and parameters of each channel flash memory, such as the ready / busy state for the host controller (R / B#for host), the ready / busy state for the flash array (R / B#for flash array), etc. In this embodiment, the ready / busy state for the host controller (R / B#for host) is used as an example to illustrate the status indicator. In this way, this embodiment will no longer 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 described in detail later. The ready / busy state for the host controller refers to the data buffer in the flash memory grain (such as Figure 3BThe data buffer 118 of the memory array is cleared to indicate whether the next data from the master controller can be received, but the data has not yet been written into the memory array. The ready / busy status of the flash array indicates whether the data is actually written into the memory array.

[0071] Figure 3B FIG. 1 is a schematic diagram showing the structure of a NAND flash memory chip according to an embodiment of the present invention. Figure 3B As shown, the NAND flash memory chip 100_0 (the structures of the NAND flash memory chips 100_1 to 100_m-1 are the same) is basically the same as the architecture of a general NAND flash memory chip, and the difference lies in the addition of a circuit block for mapping the R / B signal line and the DQ port to each other.

[0072] like Figure 3B As shown, the NAND flash memory chip 100_0 of the present embodiment also has basic circuit blocks such as a control logic unit 102, an input / output control unit 104, a memory array 120, an X-decoder 124, a Y-decoder 122, a page buffer 126, a high voltage circuit 110, a command buffer 112, an address buffer 114, a status buffer 116, a data buffer 118, and a data bus DQ. The functions and operation modes of the basic circuit blocks of the NAND flash memory chip 100_0 are basically the same or similar to those of the existing architecture, and its actual architecture does not affect the implementation of the present embodiment, so its detailed description is omitted here.

[0073] According to the present embodiment, the NAND flash memory chip 100_0 has at least a mapping status register 106. In this embodiment, the mapping of R / B to the DQ port 106 is used as an example for illustration. The mapping status register 106 is used to store the one-to-one correspondence between the ports DQ0 to DQ7 of the data bus DQ and the internal R / B lines of the flash memory chips 100_0 to 100_m-1. That is, the mapping status register 106 in the NAND flash memory chip 100_0 will store data indicating which DQ port the NAND flash memory chip 100_0 will use to output the R / B state for the host controller. For example, if the NAND flash memory chip 100_0 is to use DQ0 as the output, the data stored in the mapping status register 106 will record, for example, a value of "0", and the other NAND flash memory chips 100_1 to 100_m-1 will be similar. That is, each NAND flash memory chip only stores the DQ port to be used in its own mapping status register 106. The host controller (flash memory controller 200) can store a corresponding table, which can record which NAND flash memory chip status indicator each port (DQ[7:0]) in the channel is used to output.

[0074] Thus, when the NAND flash controller 200 sends a request signal (the request stage will be described in detail later) to each flash memory chip 100_0 to 100_m-1 to obtain the state of the R / B signal, the input / output control unit 104 of each flash memory chip 100_0 to 100_m-1 can send the R / B signal at the corresponding DQ port. In this way, the NAND flash controller 200 obtains the R / B signal state of each flash memory chip 100_0 to 100_m-1 from each port DQ0 to DQ7 of the data bus DQ at one time.

[0075] With the above structure, the logic control unit 102 does not need to use the internal R / B signal, and transmits the R / B state through the R / B pad of the input / output control unit 104, so no external R / B signal line and pad are required. Therefore, the NAND flash memory controller 200 does not need to set up corresponding R / B pads, so the number of pads can be reduced. Figure 3B As shown by the dotted line in the lower left corner, this embodiment can completely omit this part of the hardware architecture.

[0076] Figure 3C and 3D Further drawing Figure 3B FIG. 1 is a schematic diagram of the circuit structure of the I / O control unit 104 in the NAND flash memory die. Figure 3C and Figure 3D The NAND flash memory die shown only depicts the circuit blocks related to this embodiment, and the rest are omitted. Figure 3C As shown, the I / O control unit 104 may also include a multiplexer 131 (first multiplexer), which may have multiple groups of internal buses as inputs. Each group of buses is composed of, for example, 8 signal lines. Through these internal buses, the multiplexer 131 can select one of the multiple groups of inputs according to the selection signal line of the logic control unit 102, that is, select one of the internal data bus (general data transmission), the status bus (status pointer of the flash memory) or the mapping status bus (such as RB to DQ port) to output to the port (DQ[7:0]) output. The DQ bus can output a variety of output signals, such as data, the status of the flash memory, or the RB status of this embodiment (that is, RB to DQ port). In this embodiment, the status indicator uses the R / B status used by the master controller. In addition, the mapping status buffer 106 stores data used to indicate which port is to be used as the output R / B (status). As shown Figure 3DAs shown, the demultiplexer 130 has an input, multiple outputs and a selection line. The output of the demultiplexer 130 and one of the inputs of the multiplexer 131 can be connected to the mapping state bus ([7:0]). The input of the demultiplexer 130 receives a signal of the master controller's R / B state. The selection line of the demultiplexer 130 receives data stored in the mapping state buffer 106, and accordingly outputs the master controller's R / B state of the flash memory chip from the corresponding port (one of the mapping state buses ([7:0])). Accordingly, Figure 3C The multiplexer 131 can then output the R / B status for the master controller from the corresponding port.

[0077] also, Figure 3E A schematic diagram of the circuit structure of the demultiplexer 130 in 3D is shown. Figure 3E As shown, the demultiplexer 130 may also include a decoder 130a and a plurality of pass gates. In this example, a tri-state gate is used as an example of a pass gate. The tri-state gates 130b_0 to 130b_7 (8 in this example, corresponding to DQ[7:0] respectively) are connected to the output of each tri-state gate 130b_0 to 130b_7. The output of each tri-state gate 130b_0 to 130b_7 is connected to the corresponding DQ port DQ[7:0]. The decoder 130a can receive and decode the data from the R / B to DQ port buffer 106, so that the R / B state of the master controller input to the demultiplexer 130 can be output from the corresponding DQ port through one of the tri-state gates 130b_0 to 130b_7 corresponding to the data. For example, if the NAND flash memory chip 100_1 is to use DQ1 as the output port of the R / B state for the master controller, the mapping state buffer 106 will record "1". For example, when the value stored in the mapping state register 106 is 1, it means that the demultiplexer 130 will be converted to 0000_0010 through the decoder 130a, and the three-state gates 130b_0~130b_7 will turn on DQ1 according to the received signal 0000_0010, and the other ports will become a high impedance state. In other words, DQ1 will output R / B (state). At this time, the decoder 130a will enable the three-state gate 130b_1 accordingly, and the other three-state gates 130b_0, 130b_2~130b_7 will be disabled and become a high impedance state. Therefore, port DQ1 will be selected to output the R / B state for the master controller.

[0078] In addition, in this embodiment, each NAND flash memory die selects only one DQ port as the output of the state indicator (in this example, the R / B state for the host controller). At this time, the unselected DQ ports are in a high impedance state.

[0079] As described above, the state of the internal R / B signal line can be transmitted to the NAND flash memory controller 200 through the data bus DQ using the corresponding DQ port through the method of this embodiment. For example, the R / B signal line of the flash memory chip 1000 is mapped to the DQ port DQ0, and the R / B signal of the flash memory chip 100_1 is mapped to the DQ port DQ1, and so on.

[0080] Therefore, in this way, for each channel of the plurality of flash memory chips 100_0 to 100_m-1, the NAND flash memory controller 200 can obtain the R / B status of each flash memory chip 100_0 to 100_m-1 from each port DQ0 to DQ7 at once on the data bus DQ. Therefore, the NAND flash memory controller 200 does not need external R / B signal lines and pads, thereby effectively reducing the number of pads of the controller.

[0081] Figure 4A A schematic diagram of the structure of a NAND flash memory chip according to another embodiment is shown. Figure 4B Draw Figure 4A The circuit structure diagram of the I / O controller unit in FIG. Figure 4A As shown, in addition to the mapping state buffer 106a, the I / O controller unit 104 also includes a state selection buffer 106b. The data stored in the mapping state buffer 106a can indicate which of the multiple DQ ports of the NAND flash memory die 100_0 (...100_m-1) is to be output as the state indicator, and the data stored in the state selection buffer 106b can indicate which of the multiple state indicators of the NAND flash memory die 100_0 (...100_m-1) is to be output.

[0082] exist Figures 3B to 3E In the description of the present invention, a single state indicator is used as an example, that is, the R / B state for the master controller is used as an example. However, as mentioned above, the application of the present invention is not limited to the R / B state for the master controller, and can also be other state indicators or parameters of the NAND flash memory chip 100_0 (...100_m-1). In other words, in this embodiment, one of the state indicators can be selected from the multiple state indicators of each flash memory chip 100_0 (...100_m-1) to be output from the corresponding DQ port.

[0083] like Figure 4BAs shown, in the architecture of this embodiment, in addition to the demultiplexer 130, a multiplexer 132 (second multiplexer) is also included. In addition, the control logic unit 102 may also include a plurality of state registers, and one of them may be selected to be output to the demultiplexer 132. The multiplexer 132 may receive states stored in a plurality of state registers, such as the R / B state for the master controller, the R / B state for the flash array, and other states. In addition, the multiplexer 132 is further coupled to the state selection register 106b. The multiplexer 132 may select one of the state registers such as the R / B state for the master controller, the R / B state for the flash array, and other states to output based on data from the state selection register 106b. Therefore, the demultiplexer 130 may output the state selected by the state selection register 106b from the corresponding port according to the data stored in the mapping state register 106a.

[0084] like Figure 4B As shown, the multiplexer 132 is coupled to the demultiplexer 130. The state indicator selected by the multiplexer 132 is then input to the demultiplexer 130. The operation mode of the demultiplexer 130 is similar to Figure 3D , 3E That is, the demultiplexer 130 can receive and decode the data from the mapping state register 106a, thereby allowing the state indicator selected by the multiplexer 132 to be transmitted through the corresponding DQ port (specified by Figure 3C Therefore, the multiplexer 132 can select one of the state indicators from the multiple state indicators to transmit the state using the data bus DQ.

[0085] That is, if Figure 4B As shown, the multiplexer 132 uses the signal of the state selection register 106b as a selection line to select one of the multiple states such as the R / B state for the master controller and the R / B state for the flash array as the output. For example, the multiplexer 132 selects the output state as the R / B state for the flash array according to the state selector 106b. At this time, the demultiplexer 130 receives the signal output by the multiplexer 132 (i.e., the R / B state for the flash array), and decodes the data of the mapping state register 106a to obtain the port selected for output this time as the 6th port. In this example, among the 8 port output results of the demultiplexer 130, ports 0 to 5 and port 7 are all high impedance, and port 6 is used to output the R / B state for the flash array.

[0086] Next, according to the selection line of the control logic unit 102, the multiplexer 131 (refer to Figure 3C) will use the outputs of the eight ports of the demultiplexer 130 (port 6 is in the R / B state for outputting the flash array, and the rest are high impedance) as one of the selected outputs of the multiplexer 131. Assuming that when the master end issues the request command of this embodiment, the group of ports of the eight ports of the demultiplexer 130 will be selected as DQ[7:0] and output.

[0087] According to this variation, the DQ port of the data bus DQ is no longer limited to being mapped to a single state pointer, but the host controller, i.e., the NAND flash memory controller 200, can dynamically select the required state pointer to transmit the state signal from the data bus DQ, so the control of the NAND flash memory chip can be operated in a more flexible manner. Except for the multiplexer 132 and the state selection buffer 106b, the operation of the demultiplexer 130 is the same as that of the embodiment. Figure 3D to Figure 3E The same, so no further elaboration is given here.

[0088] Figure 5 A schematic diagram of the circuit structure of an I / O control unit in a flash memory chip according to another embodiment is shown. Figure 5 and Figure 4B The difference between the illustrated embodiments lies in the circuit structures of the demultiplexer and the multiplexer. Figure 5 As shown, the demultiplexer 130' includes, for example, a decoder 130'a and a plurality of tri-state gates 130'b_0 to 130'b_7 (taking 8 as an example), and the decoder 130'a is further coupled to each tri-state gate 130'b_0 to 130'b_7. The multiplexer unit 132' also includes a decoder 132'a and a plurality of multiplexers 132'b_0 to 132'b_7 (taking 8 as an example), and the decoder 132'a is further coupled to each multiplexer 132'b_0 to 132'b_7. Each of the multiplexers 132'b_0 to 132'b_7 of the multiplexer unit 132' is respectively coupled to the tri-state gates 130'b_0 to 130'b_7 of the demultiplexer 130'. In addition, each of the multiplexers 132 ′ b_0 ˜ 132 ′ b_7 receives states stored in a plurality of state registers, such as the R / B state for the host controller, the R / B state for the flash array, and other states.

[0089] The decoder 132'a of the multiplexer unit 132' receives data from the state selection register 106b and decodes it, so that each multiplexer 132'b_0~132'b_7 can select one of the state registers. For example, the multiplexer 132'b_0 can select one from a plurality of state registers such as the master controller R / B state, the flash array R / B state, and other states and output it to the corresponding three-state gate 130'b_0, and the multiplexer 132'b_1 can select one from a plurality of state indicators such as the master controller R / B state, the flash array R / B state, and other states and output it to the corresponding three-state gate 130'b_1, and so on. In addition, the decoder 130'a of the demultiplexer 130' can receive and decode the data from the mapping state register 106a, so that the corresponding three-state gates 130'b_0~130'b_7 are enabled, and each state indicator can be output from the corresponding DQ port [7:0].

[0090] For example, the demultiplexer 130′ will select which ports will be used as output states, and the remaining ports will be high impedance. For example, if the decoding result of the decoder 130′a is 0000_1100, it means that port 2 and port 3 are used as state outputs, and the remaining ports are in a high impedance state. In addition, the state selection buffer 106b will store the state to be output by each port. The multiplexer (second multiplexer) 132′ will determine which state each of the eight ports will select as the output. For example, if the decoder 132′a decodes the result as 1111_1211, assuming that 1 represents the R / B state for the master controller and 2 represents the R / B state for the flash array, then port 2 of the eight ports of the multiplexer 132′ will output the R / B state for the flash array, and the remaining ports will output the R / B state for the master controller (i.e., ports 0, 1, 3-7). In addition, the multiplexer 131 (refer to Figure 3C ) The eight output ports of the demultiplexer 130 are: port 2 is in R / B state for the flash array, port 3 is in R / B state for the master controller, and the remaining six ports are all high impedance.

[0091] In this embodiment, compared to Figure 3E In the embodiment shown, a flash memory chip only specifies one DQ port to output the status indicator. A flash memory chip can also specify multiple DQ ports, and each DQ port can represent a status indicator. Therefore, for a flash memory chip, multiple status indicators can be output simultaneously through the data bus DQ. In this embodiment, the flash memory chip has multiple status indicators to output. At this time, which DQ port is to output which status indicator, and the corresponding relationship is stored in a data format in the status selection register 106b.

[0092] Next, we will explain the actual operation of the above circuit architecture and refer to FIG. 6A to FIG. 6BThe embodiment of the present invention describes in detail how to map each port of the data bus DQ to the R / B signal line. FIG. 6A to FIG. 6B This is a diagram illustrating the timing of the actions of a flash memory chip after receiving a command from a host controller.

[0093] Fig. 6A The following is a schematic diagram showing the operation sequence of each flash memory chip in the control method of the NAND flash memory according to an embodiment of the present invention, which is a diagram illustrating the operation sequence of the flash memory chip level. Fig. 6A As shown, the control method of this embodiment is to divide the operation mode of the data bus DQ into two stages, namely the setup stage and the request stage. This embodiment mainly utilizes the period when the data bus DQ is in an idle state. In this example, the data bus DQ has 8 ports DQ0 to DQ7, but the actual situation can be adjusted appropriately according to the NAND flash memory chip. In addition, the operation of the master controller level will be Fig. 7A illustrate.

[0094] like Fig. 6A In the setup phase, in the command input (CMD input) operation mode (based on the data transmission specification of the data bus DQ), the cycle type at this time is to set the R / B command. That is, after each NAND flash memory chip 100_0 (...100_m-1) receives the setup command (setup command) sent by the NAND flash memory controller 200, that is, the host 200, each port DQ0~DQ7 of the data bus DQ corresponds to the R / B state (state indicator) of each flash memory chip 100_0~100_m-1 in a channel of the flash memory.

[0095] 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 chip 100_0~100_m-1 of each channel. For example, a general NAND flash memory chip 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, command 20h can be assigned to port DQ0, command 21h can be assigned to port DQ1, and so on. Thus, different vendor-specific commands can be used to make corresponding assignments to each port. That is, if Fig. 6A As shown, in the cycle type of setting the R / B command, the internal chip enable signal CE# enables the chip and sends the command 20h on the DQ[7:0] of the data bus DQ.

[0096] Thus, through the setting stage, the vendor-specific command can be used to map each port DQ0-DQ7 to the internal R / B signal line of each NAND flash memory chip one-to-one, and the data (value) used to indicate this correspondence is stored in the above FIG. 3B to FIG. 3E The R / B to DQ port buffer 106 is shown.

[0097] At the master controller level, during the setup phase, the operation flow chart is as follows: Fig. 7A As shown in step S100, in the command input operation mode, the host controller (such as a flash memory controller) sends a setting command to map each port DQ0~DQ7 of the data bus of each of the multiple flash memory grains 100_0~100_m-1 to the status indicator (R / B status) of each of the flash memory grains 100_0~100_m-1.

[0098] Reference again Fig. 6A Then, in the request stage, each NAND flash memory chip 100_0 (...100_m-1) receives a request command sent by the NAND flash memory controller 200, that is, another vendor-specific command is transmitted to each NAND flash memory chip 100_0~100_m-1.

[0099] At this request stage, if Fig. 6A As shown, when the operation mode is command input, the cycle type is a request R / B command, that is, the NAND flash memory controller 200 sends a request command to each NAND flash memory chip 100_0~100_m-1 to obtain the state of the R / B signal line of each NAND flash memory chip 100_0~100_m-1. Then, in the data output operation mode, each NAND flash memory chip 100_0~100_m-1 uses the corresponding port DQ0~DQ7 to transmit the master controller R / B state of each NAND flash memory chip 100_0~100_m-1 to the NAND flash memory controller 200 via the data bus DQ.

[0100] For the master controller level, in the request phase, the operation flow diagram is as follows Fig. 7A As shown in step S200, in the command input operation mode, the host controller sends a request command to each of the flash memory chips 100_0 to 100_m-1. Then, in step S300, in the data output operation mode, each of the flash memory chips 100_0 to 100_m-1 in each channel transmits the state of the state indicator (R / B state for the host controller) to the host controller via the corresponding ports DQ0 to DQ7 of the data bus.

[0101] In this way, the multiple flash memory chips 100_1~100_m-1 on the channel of the NAND flash memory controller 200 can obtain the master controller R / B status of each of the multiple flash memory chips 100_1~100_m-1 at one time through the ports DQ0~DQ7 of the data bus DQ, without the need for external R / B signal lines and pads, thereby reducing the number of pads of the controller.

[0102] Figure 6B A timing diagram of the operation flow of another embodiment of the setting phase of each flash memory chip in the control method of the NAND flash memory according to another embodiment of the present invention is shown. Figure 7B A schematic diagram of the operation flow of the setting phase of the master controller level is shown.

[0103] like Figure 6B As shown, in this embodiment, the setting stage may also include two cycles. Figure 4A The setup phase is different, but the requirement phase is basically the same. Therefore, we will only explain the setup phase operation here.

[0104] like Figure 6B As shown, in the setting phase, the operation mode is divided into two cycles, the first cycle is the command input (CMDinput) cycle, and the second cycle is the address input (ADDR input) cycle. The two constitute the cycle type of the setting R / B command.

[0105] When the enable signal CE# of the NAND flash memory chip enables the chip, in the command input operation mode, the NAND flash memory chip receives a prepare command sent by the NAND flash memory controller (master controller) 200. The prepare command can also be defined by a manufacturer-specific command, such as Figure 6B The command FEh is shown. This preparation command mainly notifies or hints each NAND flash memory chip 100_0-100_m-1 to prepare to assign a corresponding DQ port to transmit the R / B state.

[0106] Next, in the second cycle of the address input cycle, that is, Figure 6B In the address input operation mode shown, the NAND flash memory controller 200 will send a specific address value, which will correspond to a specific DQ port and the R / B signal line of a NAND flash memory chip. For example, at this stage, the value 00h can be used to correspond to DQ0, the value 01h can be used to correspond to DQ1, and so on.

[0107] Therefore, in this embodiment, in the first cycle of the setting stage, the NAND flash memory controller 200 may first send, for example, a command FEh to notify each NAND flash memory chip 100_0~100m-1 that its respective R / B signal line is ready to establish a corresponding relationship with each port DQ0~DQ7 of the data bus DQ, that is, each port DQ0~DQ7 is ready to be assigned to be mapped to the R / B signal line of each NAND flash memory chip 100_0~100m-1 respectively. Then, in the second cycle of address input, by assigning an address, the R / B signal state of each NAND flash memory chip 100_0~100m-1 can be actually associated with each port DQ0~DQ7. In this way, through this two-cycle setting stage, each port DQ0~DQ7 can also be mapped one-to-one with the internal R / B signal of each NAND flash memory chip through manufacturer-specific commands and addresses, and stored in the above Figure 3B to Figure 3E The mapping status buffer 106 is shown.

[0108] The operation flow diagram at the master controller level in this setting phase is as follows: Figure 7B As shown. In the setting stage, the setting command sent by the master controller may also include: in step S102, in the command input operation mode, sending a preparation command (such as the above-mentioned command FEh) on the data bus DQ to notify each flash memory chip 100_0~100_m-1 to prepare to assign each port DQ0~DQ7 of the data bus DQ to each of the multiple flash memory chips 100_0~100_m-1. R / B signal line (status pointer). Then, in step S104, in the address input operation mode, the master controller sends an address signal ADDR (such as the above-mentioned 00h, 01h, etc.) on the data bus DQ, so that each port DQ0~DQ7 of the data bus DQ corresponds to the R / B state signal line (status pointer) of each flash memory chip 100_0~100_m-1.

[0109] Figure 8 The operation timing diagram of the flash memory controller of the embodiment of the present invention is shown. First, when the flash memory starts to operate, data input and output on the data bus DQ have not yet been performed, that is, the flash memory is in an idle state. Fig. 6A or Figure 6B The setting phase operation performs the setting R / B command operation of flash memory grain 0 to flash memory grain 3. Next, the ports DQ0 to DQ3 of the data bus DQ are respectively assigned as the R / B signal lines of flash memory grain 0 to flash memory grain 3. In other words, in the setting flash memory grain phase, grain 0 is set to the R / B state for DQ0 output master controller, and the other DQ ports are in the high impedance state. Grain 1 is set to the R / B state for DQ1 output master controller, and the other DQs are in the high impedance state. The settings of the remaining grains are similar.

[0110] In addition, when the controller (master controller) sets one of the flash memory chips 0 to 3 in the setting stage, for example, DQ0 is selected as the output master controller R / B state, then the DQ0 corresponding to the DQ0 of the other flash memory chips 1 to 3, that is, the DQ0 of each of the flash memory chips 1 to 3 will output a high impedance state. Similarly, the same settings are performed on the other flash memory chips 1 to 3.

[0111] Therefore, the states of the R / B signal lines of each flash memory cell 0 to flash memory cell 3 can be transmitted from DQ0 to DQ3 of the data bus DQ to the flash memory controller 200. At this time, the states of the internal R / B signal lines of each flash memory cell 0 to 3 are ready.

[0112] Then, the flash memory cell enters the operation mode, that is, various operations such as writing can be performed on each flash memory cell. At this time, the state of the internal R / B signal of each flash memory cell 0-3 enters the busy state in sequence.

[0113] Then after a period of time, the flash memory controller sends a request RB command to each flash memory chip 0-3. When each flash memory chip 0-3 receives the request RB command, it then sends the R / B signal status to the flash memory controller at its corresponding port DQ0-DQ3. In this way, the flash memory controller can Figure 8 The R / B state of each flash memory chip 0 to 3 is obtained during the period from RB to DQ.

[0114] In the request phase, the master controller will send a request command to all flash memory chips 0-3 at the same time, and each flash memory chip 0-3 will map its 8 outputs in the demultiplexer 130 to DQ[7:0] according to the configuration in the setting phase, and finally gather them on a DQ data bus. Figure 8 As shown in the figure, the DQ bus outputs X1h, X3h, .... The main controller will assign each flash memory chip 0-3 to the corresponding port when setting, so that multiple ports will not output at the same time to avoid signal interference. In other words, two flash memory chips will not output to the same port at the same time. For example, Figure 3A Taking channel 0 as an example, when outputting the status, flash die 0 will output zzzz_zzz1 on its DQ[7:0], flash die 1 will output zzzz_zz0z on its DQ[7:0], flash die 2 will output zzzz_z0zz on its DQ[7:0], and flash die 3 will output zzzz_0zzz on its DQ[7:0] (where z represents a high impedance state). Finally, the overall DQ bus will output zzzz_0001 to indicate the status of each flash die 0-3.

[0115] Therefore, under the framework of the present embodiment, the R / B signal line of the flash memory chip is replaced by the manufacturer-specific command and the data bus, so the R / B signal line and pad of each flash memory chip can be saved, so the flash memory controller does not need the R / B pad accordingly, so the number of pads of the controller can be effectively reduced, and the size and circuit complexity of the flash memory chip will not be increased. In addition, the operation mode of the present embodiment is to apply the existing data input and output operation mode, that is, to use the idle period of the data bus to set the R / B signal and the DQ port, so there is no need to use additional operations, and the assignment setting of the R / B signal and the DQ port can be easily achieved and the mapping status value can be output to the data bus DQ (external data bus) at the same time, which can reduce the number of times the status of each flash memory chip is asked in turn.

[0116] So far, the embodiments of the present disclosure have been described in detail with reference to the accompanying drawings.

[0117] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for controlling a flash memory, wherein: The flash memory has an external data bus connecting a plurality of flash memory grains, and the control method comprises: In the setting stage, in the command input operation mode, the main controller sends a setting command to map each port of the external data bus to a status indicator of each flash memory chip; and In the request phase, in a command input operation mode, the host controller sends a request command to each of the plurality of flash memory chips, and in a data output operation mode, transmits the status of the status indicator of each of the flash memory chips to the host controller via each corresponding port of the external data bus; Among them, in the setting stage, the setting command sent by the main controller also includes: in the command input operation mode, the main controller sends a preparation command to notify each of the multiple flash memory grains to prepare to assign each port of the external data bus to the status indicator of each of the multiple flash memory grains; and in the address input operation mode, the main controller sends an address signal to map each port of the external data bus to the status indicator of each of the multiple flash memory grains.

2. The flash memory control method according to claim 1, wherein: Each of the flash memory chips has a plurality of output ports respectively coupled to the ports of the external data bus. In the setting stage, a first output port of a first flash memory chip of one of the plurality of flash memory chips is selected to transmit the status indicator. wherein the output port corresponding to the first output port of each flash memory grain other than the first flash memory grain among the plurality of flash memory grains 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.

3. The flash memory control method according to claim 1, wherein: The status indicator is the ready / busy status of the master controller.

4. The flash memory control method according to claim 1, wherein: The setting command and the request command are defined by vendor specific commands.

5. The flash memory control method according to claim 1, wherein: The main controller is a flash memory controller.

6. A flash memory die, wherein: At least: a plurality of output ports, the plurality of output ports being coupled to an external data bus; A control logic unit, providing a status indicator of the flash memory grain; a mapping status register for storing data for selecting one of the plurality of output ports corresponding to the status indicator of the flash memory die; and Input / output control unit, The input / output control unit further comprises: A first multiplexer having a plurality of inputs and outputs, wherein the plurality of inputs respectively receive data from a plurality of internal buses, and the outputs are coupled to the plurality of output ports, wherein the first multiplexer selects one of the plurality of inputs and outputs it to the external data bus according to a selection signal provided by the control logic unit, and the plurality of internal buses at least include an internal data bus, a status pointer bus, and a mapping status bus; and A demultiplexer having 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, the output of the demultiplexer is connected to the input of the first multiplexer via the mapping state bus, wherein the demultiplexer selects one of the plurality of outputs of the demultiplexer to transmit the state indicator based on the data received by the selection line, and the unselected outputs of the demultiplexer are output with high impedance.

7. The flash memory die according to claim 6, wherein: When the flash memory chip receives a setting command sent by a host controller, the state indicator of the flash memory chip is mapped to one of the plurality of output ports.

8. The flash memory die according to claim 7, wherein: When the flash memory chip receives a request command from the main controller, the demultiplexer of the input / output control unit selects the output port corresponding to the status indicator of the flash memory chip according to the data stored in the mapping status buffer, and transmits the status of the status indicator to the main controller via the selected output port.

9. The flash memory die according to claim 8, wherein: When receiving the request command, unselected ones of the plurality of output ports are in a high impedance state.

10. The flash memory die according to claim 8, wherein: The setting command and the request command are defined by vendor specific commands.

11. The flash memory die according to claim 7, wherein: The main controller is a flash memory controller.

12. The flash memory die according to claim 6, wherein: The status indicator is the ready / busy status of the master controller.

13. The flash memory die according to claim 6, wherein the input / output control unit further comprises: The second multiplexer has an output coupled to the input of the demultiplexer and is used to select one of a plurality of status registers and output it to the demultiplexer.

14. The flash memory die according to claim 6, wherein: The input / output control unit further comprises: a multiplexer unit coupled to the demultiplexer, wherein the multiplexer unit comprises a plurality of multiplexers, Each of the multiplexers receives a plurality of status buffers and selects one from the plurality of status buffers to output to the demultiplexer. Outputs of the multiplexers are provided to the demultiplexer and input to the first multiplexer via the mapping status bus.

15. A method for controlling a flash memory, wherein: The flash memory has an external data bus connecting a plurality of flash memory grains, and the control method comprises: The main controller sends a setting command to respectively correspond each port of the external data bus to the status indicator of each flash memory chip; and The main controller sends a request command to each of the flash memory chips; When each of the plurality of flash memory chips receives the request command, the status of the status indicator of each of the plurality of flash memory chips is transmitted to the main controller via each port of the corresponding external data bus; Among them, the setting command sent by the main controller also includes: sending a preparation command to notify each of the multiple flash memory grains to prepare to assign each port of the external data bus to each of the multiple flash memory grains respectively; and sending an address signal to respectively correspond each port of the external data bus of each of the multiple flash memory grains to the status indicator of each of the multiple flash memory grains.

16. The flash memory control method according to claim 15, wherein: Each of the flash memory chips has a plurality of output ports respectively coupled to the ports of the external data bus, a first output port of one of the first flash memory chips of one of the plurality of flash memory chips is selected to transmit the status indicator, wherein the output port corresponding to the first output port of each flash memory grain other than the first flash memory grain among the plurality of flash memory grains 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.

17. The flash memory control method according to claim 15, wherein: The status indicator is the ready / busy status of the master controller.

18. The flash memory control method according to claim 15, wherein: The setting command and the request command are defined by vendor specific commands.

19. The flash memory control method according to claim 15, wherein: The main controller is a flash memory controller.

20. A flash memory, wherein: include: at least one external data bus having a plurality of ports; A plurality of flash memory chips are respectively coupled to the at least one external data bus; as well as A main controller coupled to the at least one external data bus for controlling the plurality of flash memory chips, In the setting stage, the main controller sends a setting command to respectively correspond each port of the external data bus to the status indicator of each flash memory chip. In the request phase, the main controller sends a request command to each of the flash memory chips, and after each of the flash memory chips receives the request command, the status of the status indicator of each of the flash memory chips is transmitted to the main controller via each port of the corresponding external data bus; Among them, the setting command sent by the main controller also includes: sending a preparation command to notify each of the multiple flash memory grains to prepare to assign each port of the external data bus to each of the multiple flash memory grains respectively; and sending an address signal to respectively correspond each port of the external data bus of each of the multiple flash memory grains to the status indicator of each of the multiple flash memory grains.

21. The flash memory according to claim 20, wherein: Each of the flash memory chips has a plurality of output ports respectively coupled to the ports of the external data bus, a first output port of one of the first flash memory chips of one of the plurality of flash memory chips is selected to transmit the status indicator, wherein the output port corresponding to the first output port of each flash memory grain other than the first flash memory grain among the plurality of flash memory grains 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.

22. The flash memory according to claim 20, wherein: The status indicator is the ready / busy status of the master controller.

23. The flash memory according to claim 20, wherein: The setting command and the request command are defined by vendor specific commands.