Flash memory controller and method of flash memory controller

By introducing an arbitrator to store transmission history information in the flash memory controller, the problem of inconsistent transmission order of command signals in traditional flash memory devices is solved, the transmission accuracy and interface reliability are improved, and error occurrence is reduced.

CN119025449APending Publication Date: 2024-11-26SILICON MOTION INC
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410639335.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-05-26
Filing Date
2024-05-22
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The order of command signals transmission between a traditional flash memory controller and a flash memory device may be different, resulting in timing errors and poor communication interface quality, and frequent errors.

Method used

Design a flash memory controller that includes a bus, a specific buffer, a processor and a control logic circuit to store the transmission history information of the communication interface through an arbitrator, including the data content, address information and operation types of the command signal to record and Verify the transmission behavior.

Benefits of technology

By recording and verifying transmission history information, the transmission accuracy of command signals and the reliability of communication interfaces are improved, errors occur, and system stability is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119025449A_ABST
    Figure CN119025449A_ABST
Patent Text Reader

Abstract

The invention relates to a flash memory controller and a method of the flash memory controller. The method comprises the following steps: sending and generating a command signal to a control logic circuit through a bus by using a processor; caching the command signal in a specific queue of a specific channel controller of the input / output circuit; and using an arbiter to control a specific buffer to store the first transmission history information of the specific communication interface.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a flash memory storage mechanism / architecture, and more particularly to a flash memory device (or controller) and a corresponding method. Background Art

[0002] Generally speaking, the firmware program (or component) of a conventional flash memory controller may issue multiple command signals, and the transmission and transmission sequence are processed by the hardware components of the conventional flash memory controller. Therefore, since the multiple command signals are respectively issued and processed by different components, the sequence of the issued multiple command signals may be different from the transmission sequence of the multiple command signals actually sent on the communication interface between the conventional flash memory controller and the conventional flash memory device. Since the requirements for the currently developed clock timing need to be faster, errors may frequently occur during the actual transmission of the command signal due to timing errors or deterioration of the transmission signal quality of the communication interface. Summary of the invention

[0003] Therefore, one of the objectives of the present invention is to provide a flash memory device (or controller) and a corresponding method to store and record actual transmission history information between the flash memory device and the flash memory controller for debugging and / or other purposes to solve the above-mentioned problems.

[0004] According to an embodiment of the present invention, a flash memory controller is disclosed. The flash memory controller is used in a storage device and is coupled to a flash memory device of the storage device through a specific communication interface. The flash memory controller includes a bus, a specific buffer, a processor and a control logic circuit. The specific buffer is coupled to the bus. The processor is coupled to the bus and the specific buffer. The control logic circuit is coupled to the bus, the specific buffer, the processor and coupled to the flash memory device through the specific communication interface, and the control logic circuit includes a comparison circuit and an input / output circuit. The input / output circuit has multiple channel controllers and corresponds to multiple different channels of the flash memory device respectively. A channel controller includes an arbitrator and multiple queues, and the multiple queues correspond to multiple different chips of a channel. The processor sends and generates a command signal to the control logic circuit through the bus, and the command signal is buffered in a specific queue of a specific channel controller of the input / output circuit. The arbitrator is used to control the specific buffer to store a first transmission history information of the specific communication interface. The first transmission history information of the specific communication interface includes at least one of the following: a data content and a data type of command information of the command signal when the command signal is selected by the arbitrator to output the command signal to the flash memory device, a data content and a data type of address information of the command signal when the command signal is selected by the arbitrator to output the command signal to the flash memory device, and a data type of a data input / output operation performed by the flash memory device.

[0005] According to an embodiment of the present invention, a method of the above-mentioned flash memory controller is further disclosed. The method includes: using the processor to send and generate a command signal to the control logic circuit through the bus; buffering the command signal in a specific queue of a specific channel controller of the input / output circuit; and using the arbitrator to control the specific buffer to store a first transmission history information of the specific communication interface. The first transmission history information of the specific communication interface includes at least one of the following: a data content and a data type of the command information of the command signal when the command signal is selected by the arbitrator to output the command signal to the flash memory device, a data content and a data type of the address information of the command signal when the command signal is selected by the arbitrator to output the command signal to the flash memory device, and a data type of a data input / output operation performed by the flash memory device. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] Figure 1 is a schematic diagram of an example of a storage device according to an embodiment of the present invention.

[0007] Figure 2 FIG. 4 is a schematic diagram showing an example of a flash memory controller sending a specific read record command signal to a flash memory device through the specific communication interface according to an embodiment of the present invention.

[0008] Figure 3 FIG. 4 is a schematic diagram showing an example of a flash memory controller sending a plurality of different command sequences (or signals) according to an embodiment of the present invention.

[0009] Figure 4 According to an embodiment of the present invention Figure 3 An example schematic diagram of data information stored in a specific buffer of a flash memory device.

[0010] Figure 5 is based on Figure 4 The illustrated embodiment is a schematic diagram showing an example of buffered data information actually reported from a flash memory device to a flash memory controller.

[0011] Figure 6 is based on Figure 5 The illustrated embodiment is a schematic diagram showing an example of an inverted data version of the reported buffered data information sent from the flash memory device to the flash memory controller.

[0012] Figure 7 is a diagram illustrating different examples of reported data sent from a flash memory device to a flash memory controller according to different embodiments.

[0013] Figure 8 FIG. 2 is another example schematic diagram of a memory device including a flash memory controller and a flash memory device (such as a NAND-type flash memory device including multiple chips or bare crystals) according to another embodiment of the present invention.

[0014] Fig. 9 It is a schematic diagram of an example of a flash memory controller triggering or controlling the flash memory device to write or program buffer data of a specific buffer into the memory cell array according to an embodiment of the present invention.

[0015] Fig.10 It is a schematic diagram of an example in which a flash memory controller triggers or controls the flash memory device to write or program the buffer data of the specific buffer into a plurality of storage cells located in a plurality of different planes of the memory cell array according to an embodiment of the present invention.

[0016] Fig.11 FIG. 4 is a schematic diagram comparing the threshold voltage distribution of the disclosed SLC programming method with the threshold voltage distribution of the conventional SLC programming operation.

[0017] Fig.12FIG. 4 is a schematic diagram of another example of a storage device according to another embodiment of the present invention.

[0018] Fig.13 4 is a schematic diagram of different examples of a flash memory controller sending a specific backup record command signal and sending a read backup record command signal to a flash memory device through the specific communication interface according to different embodiments of the present invention.

[0019] Fig.14 2 is an example schematic diagram of a flash memory controller according to different embodiments of the present invention triggering or controlling a flash memory device to write (or program) the buffer data of the specific buffer and write (or program) the buffer data of the backup buffer to the memory cell array by using different prefix commands such as prefix commands 01h and 02h.

[0020] Fig.15 FIG. 1 is a schematic diagram of an example storage device including a flash memory controller and a flash memory device (such as a NAND-type flash memory device including multiple chips or bare crystals) according to an embodiment of the present invention.

[0021] Fig.16 yes Fig.15 An example schematic diagram of a channel controller including an input / output circuit in an embodiment of the present invention is shown.

[0022]

Explanation of symbols

[0023] 100,5300: Storage device

[0024] 105,5310: Flash memory controller

[0025] 110,5320: Flash memory device

[0026] 1051,5312:Processor

[0027] 1052,5326: Input / output circuit

[0028] 1101: Input / output control circuit

[0029] 1102,5314:Logic control circuit

[0030] 1103: Control circuit

[0031] 1104: Voltage generator

[0032] 1105: Address register

[0033] 1106: Command register

[0034] 1107: memory cell array

[0035] 1108: Column address decoder

[0036] 1109: row address decoder

[0037] 1110,5316:Buffer

[0038] 1111,5316':Backup buffer

[0039] 1112: Data register

[0040] 1113 Status Register

[0041] 5318: Transmission interface circuit

[0042] 5322: Channel Controller

[0043] 5324:Comparison circuit

[0044] 5328:Arbitrator

[0045] 5330: Queue

[0046] 5331:Encoder

[0047] 5332:Decoder

[0048] 5333:Randomizer

[0049] 5334:De-randomizer

[0050] 5350: Host device DETAILED DESCRIPTION

[0051] The present invention aims to provide a technical solution, storage device and method capable of storing and recording actual transmission history information (excluding access data of one or more storage units of the flash memory device) of a specific communication interface between a flash memory controller and a flash memory device externally connected to the flash memory controller through the specific communication interface. In other words, the provided method can store and record the actual behavior of the flash memory controller, and the behavior information can be recorded and stored by the flash memory device or the flash memory controller itself. For example, the provided method can be used to record the actual value and actual sequence of command (or address) data transmitted from the flash memory controller to the flash memory device.

[0052] Figure 1 1 is a schematic diagram of an example of a storage device 100 according to an embodiment of the present invention. The storage device 100 includes a flash memory controller 105 and a flash memory device 110 such as a NAND type flash memory device including multiple chips or a bare chip.

[0053] The flash memory controller 105 includes at least a processor 1051 and an input / output circuit 1052. The processor 1051 is coupled to the input / output circuit 1052 and is used to control the input / output circuit 1052 to send a plurality of access (e.g., read, write or program, cache program or erase) command signals (or sequences) to the flash memory device 110 through a specific communication interface to control and access the flash memory device 110.

[0054] The flash memory device 110 includes an input / output control circuit 1101, a logic control circuit 1102, a control circuit 1103, a voltage generator 1104 (e.g., a high voltage generator; but not limited to), an address register 1105, a command register 1106, a memory cell array 1107, a row address decoder 1108, a column address decoder 1109, a specific buffer 1110 disposed in the control circuit 1103 and controlled by the control circuit 1103, a data register 1112 disposed between the row address decoder 1109 and the memory cell array 1107, and a status register 1113.

[0055] The flash memory controller 105 is coupled to the flash memory device 110 through the specific communication interface, and controls or accesses the flash memory device 110 by sending one or more commands to the flash memory device 110. The specific communication interface, for example, includes at least a plurality of signal ports or pins and a plurality of logic control pins, and the signal ports or pins are, for example, data pins DQ0-DQ7 or other data pins ( Figure 1 The logic control pins are, for example, CLE (command latch enable) pin, ALE (address latch enable) pin, RE (read enable) pin and other logic control pins. The data pins DQ0-DQ7 are coupled to the input / output control circuit 1101, and the logic control pins are coupled to the logic control circuit 1102. The memory cell array 1107 has two or more planes ( Figure 1 not shown).

[0056] In practice, when the flash memory controller 105 sends command data of a command signal, the flash memory controller 105 controls the signal of the ALE pin to be a low level and controls the signal of the CLE pin to be a high level, so that the flash memory device 110 can know that the data received through the pins DQ0-DQ7 is a command data, and then the flash memory device 110 can store the received command data in the command register 1106 through the input / output control circuit 1101. Similarly, when the flash memory controller 105 sends address data of the command signal, the flash memory controller 105 controls the signal of the ALE pin to be a high level and controls the signal of the CLE pin to be a low level, so that the flash memory device 110 can know that the data received through the pins DQ0-DQ7 is address data and then the received address data can be stored in the address register 1105 through the input / output control circuit 1101. Figure 1 In addition, when the flash memory controller 105 sends the command signal (e.g., a write command signal) for storage data (e.g., data of a storage sector, storage page, storage block, or storage plane), the flash memory controller 105 can control the signal of the ALE pin to be low and the signal of the CLE pin to be low, so that the flash memory device 110 can know that the data received by the pins DQ0-DQ7 are storage data and are stored by the input / output control circuit 1101 and transferred to the data register 1112, so that the transferred storage data can then be moved from the data register 1112 to one or more storage sectors (or storage pages, storage blocks, or storage planes). Similarly, if the command signal is a read command signal, the corresponding storage data (e.g., data of a storage sector, storage page, storage block, or storage plane) will be transmitted from the corresponding one or more storage sectors (or storage pages, storage blocks, or storage planes) to the data register 1112 and then transmitted to the input / output control circuit 1101, so that the transmitted storage data can be transmitted to the flash memory controller 105.

[0057] In addition, the control circuit 1103 can control the voltage generator 1104 to output a plurality of different voltage levels to the column address decoder 1108 and the row address decoder 1109, so that the column address decoder 1108 and the row address decoder 1109 can control the memory cell array 1107 to perform a program operation, a cache program operation, or an erase operation according to the plurality of voltage levels, one or more addresses received buffered by the address register 1105, and one or more commands received buffered by the command register 1106. In addition, in the present embodiment, the control circuit 1103 can control the voltage generator 1104 to output a plurality of different voltage levels in response to a backup operation triggered by a backup command signal received from the flash memory controller 105.

[0058] The control circuit 1103 is used to control the buffer 1110 to store and buffer the behavior history information of the flash memory controller 105, such as the command (or address) data of one or more command signals and / or the corresponding operations actually performed by the flash memory device 110. For example, each time when the flash memory device 110 currently and actually receives information from the flash memory controller 105, the buffer 1110 will store the actual transmission history information (excluding the data of multiple storage units). In this example, the address data buffered in the address register 1105 can be moved and stored in the buffer 1110, and similarly, the command data buffered in the command register 1106 can also be moved and stored in the buffer 1110. Once the flash memory controller 105 requests the data content stored in the buffer 1110, a copy of the entire data content stored in the buffer 1110 can be transmitted to the input / output control circuit 1101 and then transmitted to the flash memory controller 105 through the communication interface.

[0059] In practice, the buffer 1110 includes, for example (but not limited to), a storage space of 4KB in size (the suffix "KB" indicates a unit of one thousand data bytes), and the control circuit 1103 controls the buffer 1110 to record the actual content value of each behavior information and the type of each behavior information by using a specific storage format. The specific storage format is, for example, a data word group with two data bytes, that is, a data size of 2B (the suffix "B" indicates a unit of one data byte size). The initial configuration of the two data bytes is 00h, wherein the suffix "h" indicates that the value is a hexadecimal value. The data word group has a first byte and a second byte, wherein the first byte is used to record the actual content value, and the second byte is used to record the type of data. For example, the second byte of the data word group can be used to store or indicate the type of behavior information currently occurring, wherein it can be (or include) a command type CLE, an address type ALE, a data input type (from a host device to the flash memory device 110), or a data output type (from the flash memory device 110 to the host device). For example (but not limited to), if the type of the data is a command type CLE, the second byte will be configured as 01h. If the type is an address type ALE, the second byte will be configured as 02h. If the type is a data input type, the second byte will be configured as 03h. If the type is a data output type, the second byte will be configured as 04h. In addition, if the type indicates a command type CLE, the first byte of the data word group can be used to store or indicate the actual content value of a currently received command signal. If the type indicates an address type ALE, the first byte of the data word group can store or indicate the actual content value of a currently received address. If the type of information currently received indicates data input, the first bit of the data word group may store or indicate an initial value, such as 00h. If the type of information currently received indicates data output, the first bit of the data word group may store or indicate an initial value, such as 00h. The following table shows an example of the format of a data word group in buffer 1110:

[0060] The second byte (Byte1) The first tuple (Byte0) 01h CLE command content value 02h ALE address content value 03h 00h (initial value) 04h 00h (initial value)

[0061] As above, the initial value of the first byte Byte0 can be configured as 00h. If the second byte indicates a data input type such as 03h or a data output type such as 04h, the value of the first byte Byte0 will be 00h. If the second byte Byte1 indicates a command type such as 01h, the value of the first byte Byte0 can be set as the command value. If the second byte Byte1 indicates an address type such as 02h, the value of the first byte Byte0 can be set as the address value.

[0062] To request the data stored in the buffer 1110 , the flash memory controller 105 may issue and send a specific read record command signal. Figure 2 FIG. 1 is a schematic diagram showing an example of a flash memory controller 105 sending a specific read record command signal to a flash memory device 110 through the specific communication interface according to an embodiment of the present invention. Figure 2 In the embodiment, the specific read record command signal includes, for example, a read parameter command such as ECh (but not limited to) and a read record address such as F0h (but not limited to) in sequence. When the flash memory device 110 receives the read parameter command ECh and the read record address F0h, the flash memory device 110 can know that the specific read record command signal is currently received and the specific read record command signal is used to trigger or enable the flash memory device 110 to return and transmit the data information stored in the specific buffer 1110 to the flash memory controller 105 through the specific communication interface, that is, to transmit the data content of one or more data words in the buffer 1110.

[0063] Time tR represents a time period during which the control circuit 1103 transmits the data information of the specific buffer 1110 to the input / output control circuit 1101. Thus, after tR, the flash memory device 110 may transmit the data information of the specific buffer 1110 from the input / output control circuit 1101 to the flash memory controller 105 via a communication interface such as pins DQ0-DQ7. In this embodiment, the flash memory device 110 may transmit one or more copies of the data information of the specific buffer 1110 to the flash memory controller 105 and / or it may transmit one or more copies of an inverted version of the data information to the flash memory controller 105. For example (but not limited to), the flash memory device 110 may transmit at least one of a copy of the data information of the specific buffer 1110 and a copy of a corresponding inverted version of the data information. For example, the size of the specific buffer 1110 is equal to 4KB, and the flash memory device 110 sequentially transmits a 4KB original data content, a 4KB reverse data content, a 4KB original data content, and a 4KB reverse data content of the specific buffer 1110 to the flash memory controller 105; these operations will be explained later.

[0064] Figure 3 FIG. 1 is a schematic diagram showing an example of a flash memory controller 105 sending a plurality of different command sequences (or signals) according to an embodiment of the present invention. Figure 3In the example, the flash memory controller 105 sends four command sequences or signals in sequence. A first command signal includes a data output command such as a read command 00h (but not limited to), an address information, and a corresponding confirmation command such as a read confirmation command 30h (but not limited to), wherein the address information includes a column address and a row address to be accessed, for example, which sequentially include values ​​of 00h, 00h, 0Ah, 01h, and 00h. A second command signal includes a read status command such as 70h, and in this example, the read status operation of the flash memory device 110 involves outputting the status of the flash memory device 110 to the flash memory controller 105, and is therefore performed immediately after receiving the second command signal. A third command signal includes another read command such as a change read command 06h, an address information and another corresponding confirmation command such as a change read confirmation command E0h (but not limited to), wherein the address information includes a column address and a row address to be accessed, such as 00h, 20h, 0Ah, 01h, 00h. In this embodiment, the data output operation of the flash memory device 110 involves the third command signal sent by the flash memory controller 105, and is therefore executed immediately after receiving the third command signal. A fourth command signal includes a read parameter command such as ECh (but not limited to) and a read record address such as F0h (but not limited to), and a data output operation of the flash memory device 110 involves outputting the record information of the flash memory device 110 to the flash memory controller 105, and is therefore executed immediately after receiving the fourth command signal.

[0065] Accordingly, in response to receiving each of the above command signals and executing its operation, the control circuit 1103 of the flash memory device 110 is used to record each of the received command signals and the executed operations in the specific buffer 1110, thereby storing the transmission behavior occurring in the specific communication interface.

[0066] Figure 4 According to an embodiment of the present invention Figure 3 FIG. 1 is a schematic diagram showing an example of storing data information in a specific buffer 1110 of a flash memory device 110 . Figure 3 The information of the four command signals in the buffer 1110 is stored sequentially and one by one in the buffer 1110. For example, after receiving the first command signal, the control circuit 1103 records the first command signal in the specific buffer 1110, so that the specific buffer 1110 can store seven data words (i.e. Figure 4A first data word group (00h, 01h) of the seven data word groups includes a first byte 00h for storing the value of the received read command 00h and a second byte 01h for storing and indicating that the received value (or information) is associated with the command type. A second data word group (00h, 02h) after the first data word group (00h, 01h) includes a first byte 00h and a second byte 02h, the first byte 00h is used to store the value of the first address byte of the received address information, and the second byte 02h is used to store and indicate that the received value or information is associated with the address type. A third data word group (00h, 02h) after the second data word group (00h, 02h) includes a first byte 00h and a second byte 02h, the first byte 00h is used to store the value of the received second address byte, and the second byte 02h is used to store and indicate that the received value (or information) is associated with the address type. A fourth data word group (0Ah, 02h) after the third data word group (00h, 02h) includes a first byte 0Ah and a second byte 02h, the first byte 0Ah is used to store the value of a third address byte of the received address information, and the second byte 02h is used to indicate that the received value (or information) is associated with the address type. A fifth data word group (01h, 02h) after the fourth data word group (0Ah, 02h) includes a first byte 01h and a second byte 02h, the first byte 01h is used to store the value of the fourth address byte of the received address information, and the second byte 02h is used to store and indicate that the received value (or information) is associated with the address type. A sixth data word group (00h, 02h) after the fifth data word group (01h, 02h) includes a first byte 00h and a second byte 02h, the first byte 00h is used to store the value of the fifth address byte of the received address information, and the second byte 02h is used to store and indicate that the received value (or information) is associated with the address type. A seventh data word group (30h, 01h) following the sixth data word group (00h, 02h) includes a first byte group 30h and a second byte group 01h. The first byte group 30h is used to store the value of the received read confirmation command, and the second byte group 01h is used to store and indicate that the received value (or information) is associated with the command type.

[0067] Similarly, after the control circuit 1103 receives the second command signal and performs the corresponding read state operation, the control circuit 1103 records in the specific buffer 1110, and the recording follows the recording of the first command signal, so that the specific buffer 1110 can store two data word groups (i.e. Figure 4 The first data word group (70h, 01h) includes a first byte 70h and a second byte 01h, the first byte 70h is used to store the value of the received read status command 70h, and the second byte 01h is used to store and indicate that the received value (or information) is associated with the command type. The second data word group (00h, 04h) includes a first byte 00h (i.e., indicating the initial value) and a second byte 04h, and the second byte 04h is used to store and indicate that the performed operation (i.e., the read status operation of the flash memory device after the received read status command 70h) is associated with the data output type (transmission from the flash memory device 110 to the flash memory controller 105).

[0068] Similarly, when the control circuit 1103 receives the third command signal and performs the corresponding data output operation, the control circuit 1103 will record in the specific buffer 1110, and the record will be located after the data word group (00h, 04h) of the read state operation performed, so that the specific buffer 1110 can store 8 data word groups (i.e. Figure 4The first data word group (06h, 01h) includes a first byte 06h and a second byte 01h, the first byte 06h is used to store the value of the received command 06h, and the second byte 01h is used to store and indicate that the received value (or information) is associated with the command type. A second data word group (00h, 02h) after the first data word group (06h, 01h) includes a first byte 00h and a second byte 02h, the first byte 00h is used to store the value of the first address byte of the received address information, and the second byte 02h is used to store and indicate that the received value (or information) is associated with the address type. A third data word group (20h, 02h) after the second data word group (00h, 02h) includes a first byte 20h and a second byte 02h, the first byte 20h is used to store the value of the second address byte of the received address information, and the second byte 02h is used to store and indicate that the received value (or information) is associated with the address type. A fourth data word group (0Ah, 02h) after the third data word group (20h, 02h) includes a first byte 0Ah and a second byte 02h, the first byte 0Ah is used to store the value of the third address byte of the received address information, and the second byte 02h is used to store and indicate that the received value (or information) is associated with the address type. A fifth data word group (01h, 02h) following the fourth data word group (0Ah, 02h) includes a first byte 01h and a second byte 02h, wherein the first byte 01h is used to store the value of the fourth address byte of the received address information, and the second byte 02h is used to store and indicate that the received value (or information) is associated with the address type. A sixth data word group (00h, 02h) following the fifth data word group (01h, 02h) includes a first byte 00h and a second byte 02h, wherein the first byte 00h is used to store the value of the fifth address byte of the received address information, and the second byte 02h is used to store and indicate that the received value (or information) is associated with the address type. A seventh data word group (E0h, 01h) after the sixth data word group (00h, 02h) includes a first byte E0h and a second byte 01h, the first byte E0h is used to store the value of the received confirmation command E0h, and the second byte 01h is used to store and indicate that the received value (or information) is associated with the command type. An eighth data word group (00h, 04h) after the seventh data word group (E0h, 01h) includes a first byte 00h (i.e., used to indicate the initial value) and a second byte 04h, and the second byte 04h is used to indicate that the operation performed (i.e., the modification read operation of the flash memory device after the command E0h) is associated with the data output type.

[0069] Similarly, after receiving the fourth command signal, the control circuit 1103 will record in the specific buffer 1110, and the record will follow the data word group (00h, 04h) of the executed data output operation, so that the specific buffer 1110 can store three data word groups (i.e. Figure 4 A plurality of data word groups in the fourth column of the record information in the data word group (ECh, 01h), wherein a first data word group (ECh, 01h) includes a first byte ECh and a second byte 01h, the first byte ECh is used to store the value of the received command ECh, and the second byte 01h is used to store and indicate that the received value (or information) is associated with the command type. A second data word group (F0h, 02h) includes a first byte F0h and a second byte 02h, the first byte F0h is used to store the value of the specific address F0h, and the second byte 02h is used to store and indicate that the received value (or information) is associated with the address type. A third data word group (00h, 04h) includes a first byte 00h (i.e., the initial value) and a second byte 04h, and the second byte 04h is used to store and indicate that the operation to be performed (i.e., the report record operation of the flash memory device after the received command ECh) is associated with the data output type.

[0070] It should be noted that in this embodiment (but not limited thereto), the current pointer position (or index) of the specific buffer 1110 is initially equal to 0, and the current pointer position (or index) is used to indicate an index position corresponding to the last recorded data word group stored by the control circuit 1103, and the current pointer position (or index) will be updated and increased by 1 as the control circuit 1103 stores a data word group, and if the current pointer position reaches the bottom of the specific buffer 1110 and the next data word group is recorded to the specific buffer 1110, the current pointer position will be reset to 0 and located at the initial index position at the beginning of the specific buffer 1110. In other words, the value of the current pointer position (or index) will be updated in a cyclic manner. Therefore, the recorded information will be stored at the top (or starting position) of the 4KB data of the specific buffer 1110 in the specific buffer 1110, and the information of the other remaining data word groups after the recorded information can be configured as the initial data word group (00h, 00h). In another example, the current pointer position (or index) of the specific buffer 1110 may be different from and, for example, may be close to the bottom of the 4KB data of the specific buffer 1110, so a first portion of the record information may be stored at the bottom (or end) of the 4KB data of the specific buffer 1110 and a second portion of the record information (following the first portion) may be stored at the top (or beginning) of the 4KB data of the specific buffer 1110. That is, at the beginning, the specific buffer 1110 may store 4KB data formed by a sequence of 00h (initial value), and the specific buffer 1110 is used to store the above-mentioned multiple data words from the top position of the specific buffer 1110 to replace the corresponding words or bytes of 00h, while the values ​​of the other remaining bytes remain 00h.

[0071] In addition, it should be noted that Figure 4 The recorded information shown is only used to illustrate the related operations. In practice, the recorded information is a data word group sequence that is not arranged into four columns, and is not a limitation of the present invention.

[0072] when Figure 4When all the data of the record information in the specific buffer 1110 have been stored in the specific buffer 1110, in response to receiving a command ECh with an address of F0h, the control circuit 1103 controls the specific buffer 1110 to output and transmit a copy of all the buffered information (i.e., all the stored data in the buffer 1110) to the input / output control circuit 1101, and then the copy of all the buffered information can be transmitted from the input / output control circuit 1101 to the flash memory controller 105 through the communication interface. In this embodiment, for example (but not limited to), the control circuit 1103 controls the specific buffer 1110 to sequentially output a series of data words that are all buffered in the buffer 1110 from the next pointer position of the buffer 1110 (i.e., the next position of the current pointer position) to its bottom position and then from its top position to the current pointer position. That is, the control circuit 1103 controls the specific buffer 1110 to output other remaining information with initial values ​​first and then output the record information.

[0073] Figure 5 is based on Figure 4 The embodiment shown is a schematic diagram of an example of buffered data information actually reported from the flash memory device 110 to the flash memory controller 105. Figure 5 As shown, the buffer data information 4KB actually reported includes the other information with the initial value (00h, 00h) reported and the record information reported. The buffer data information 4KB actually reported is similarly formed by a sequence of a series of data word groups, wherein the first part of the buffer data information equivalently includes a plurality of initial values ​​(00h, 00h) and the second part includes Figure 5 In other embodiments, the control circuit 1103 may also control the specific buffer 1110 to directly output the data information stored in the buffer 1110 from top to bottom. Such implementation variations also fall within the scope of the present invention.

[0074] In addition, in one embodiment, in order to avoid errors in data transmission through the communication interface, the control circuit 1103 can generate a 4KB data word group based on the data stored in the buffer 1110 by inverting the content of each data word group included in the 4KB data information. Figure 5 A reversed data version of a copy of the 4KB data information is shown. Figure 6 is based on Figure 5 The illustrated embodiment is a schematic diagram of an example of an inverted data version of the buffered data information reported from the flash memory device 110 to the flash memory controller 105. Figure 6 The additional 4KB of buffer data reported is Figure 5The inverted data version of the 4KB buffer data includes the inverted value (FFh, FFh) of the initial value (00h, 0h) and Figure 5 In addition, the additional 4KB inverted data reported is also similarly formed by a series of data word groups, wherein the sequence equivalently has a first part and a second part, the first part includes the value (FFh, Fh), and the second part includes Figure 5 In other embodiments, the control circuit 1103 may also control the specific buffer 1110 to directly generate and output an inverted data version of the data information stored in the buffer 1110 from its top to its bottom; such implementation variations also fall within the scope of the present invention.

[0075] Figure 7 1 is a schematic diagram of different examples of reported data sent from the flash memory device 110 to the flash memory controller 105 according to different embodiments. In example (a), in response to receiving a specific read record command signal, the specific read record command signal, for example, sequentially includes a read parameter command such as ECh (but not limited to) and a read record address such as F0h (but not limited to), after waiting for a time tR to transmit the data information of the specific buffer 1110 to the input / output control circuit 1101, the flash memory device 110 only transmits a reported 4KB buffer data Buff (for example Figure 5 In another example (b), in response to receiving a specific read record command signal, the specific read record command signal includes, for example, a read parameter command such as ECh (but not limited to) and a read record address such as F0h (but not limited to), after waiting for a time tR to transmit the data information of the specific buffer 1110 to the input / output control circuit 1101, the flash memory device 110 transmits two copies of the reported 4KB buffer data Buff (for example Figure 5 In another example (c), in response to receiving a specific read record command signal, the specific read record command signal includes, for example, a read parameter command such as ECh (but not limited to) and a read record address such as F0h (but not limited to), after waiting for a time tR to transmit the data information of the specific buffer 1110 to the input / output control circuit 1101, the flash memory device 110 transmits a reported 4KB buffer data Buff (for example Figure 5The buffer data reported in the flash memory controller 105 is then sent to the flash memory controller 105, and then an inverted 4KB data corresponding to the 4KB buffer data Buff is additionally transmitted. In another example (d), in response to receiving a specific read record command signal, the specific read record command signal, for example, includes a read parameter command such as ECh (but not limited to) and a read record address such as F0h (but not limited to), after waiting for a period of time tR to transmit the data information of the specific buffer 1110 to the input / output control circuit 1101, the flash memory device 110 may also send a set of reported 4KB buffer data Buff and the corresponding inverted 4KB data Then send the same set of data again (including the reported 4KB buffer data Buff and the corresponding reverse 4KB data

[0076] By sending another 4KB of reverse data Or send multiple 4KB buffer data Buff and reverse 4KB data After receiving the data, the flash memory controller 105 (or the processor 1051) can compare and check whether the 4KB buffer data is correct. For example (but not limited to), the processor 1051 can reverse the 4KB data. The plurality of data word groups are inverted to obtain a third 4KB data, and then the obtained third 4KB data is compared with the received 4KB buffer data Buff to determine whether the received 4KB buffer data Buff is erroneous during the transmission process of the specific communication interface.

[0077] In one embodiment, the data information stored in the specific buffer 1110 can be additionally backed up and stored in one or more storage units in the memory cell array 1107, such as a storage magnetic sector, a storage page, a storage block or a storage plane, so that the backed-up data information will not disappear after the flash memory device 110 is powered off. Figure 8 FIG. 1 is another example schematic diagram of a memory device 100 including a flash memory controller 105 and a flash memory device 110 (such as a NAND-type flash memory device including multiple chips or bare crystals) according to another embodiment of the present invention. Figure 8As shown, the specific buffer 110 is further coupled to the data register 1112, and the control circuit 1103 can output and transmit all buffered data (e.g., 4KB) in the specific buffer 1110 to the data register 1112 and control the voltage generator 1104 to output multiple voltage levels to control the row address decoder 1109 and the column address decoder 1108 to write all buffered data 4KB in the data register 1112 into one or more corresponding storage cells in the memory cell array 1107. In other embodiments, the control circuit 1103 can output and transmit part of the buffered data (e.g., less than 4KB) in the specific buffer 1110 to the data register 1112 and control the voltage generator 1104 to output multiple voltage levels to control the row address decoder 1109 and the column address decoder 1108 to write part of the buffered data from the data register 1112 into one or more corresponding storage cells in the memory cell array 1107. Such embodiment variations also conform to the spirit of the present invention.

[0078] Fig. 9 FIG. 1 is a schematic diagram showing an example of a flash memory controller 105 triggering or controlling the flash memory device 110 to write or program the buffer data of a specific buffer 1110 into the memory cell array 1107 according to an embodiment of the present invention. Fig. 9 In, the flash memory controller 105 can, for example, send a specific write record command signal to the flash memory device 110 through the specific communication interface, wherein the specific write record command signal can sequentially include a write command such as 80h, address information such as 5 address bytes respectively indicated by Addr, and a write record confirmation command (for example, 13h) different from a normal write confirmation command. After receiving such a specific write record command signal, the control circuit 1103 of the flash memory device 110 can write, program or back up the buffered data of the buffer 1110 to one or more storage units of the memory cell array 1107. In addition, the control circuit 1103 can also write, program or back up a corresponding inverted data version of the buffered data of the buffer 1110 to one or more storage units of the memory cell array 1107. In addition, the control circuit 1103 can also write, program or back up the data information of the current pointer position of the buffered data of the buffer 1110 to one or more storage units of the memory cell array 1107. In Fig. 9 In the example at the bottom, the flash memory Equipment The step 110, for example (but not limited to), programs and writes a data combination formed by the reported 4KB buffer data Buff and the corresponding inverted 4KB data Buff into the memory cell twice. Array1107, a data combination formed by a current pointer position Ptr (e.g., 2B size) and a corresponding inverted data version Ptr (e.g., 2B size) is then programmed twice and written into the memory cell array 1107. The number of transfers between the flash memory controller 105 and the flash memory device 110 is not a limitation of the present invention.

[0079] In other embodiments, the operation of writing and programming the buffer data into the memory cell array 1107 may adopt a multi-plane program method. Fig.10 1 is a schematic diagram of an example of a flash memory controller 105 triggering or controlling the flash memory device 110 to write or program the buffer data of the specific buffer 1110 into multiple storage cells located in multiple different planes of the memory cell array 1107 according to an embodiment of the present invention. Fig.10 In the embodiment, the flash memory controller 105 may, for example, send a specific multi-plane write record command signal to the flash memory device 110 through the specific communication interface, wherein the specific multi-plane write record command signal may sequentially include a write command such as 80h, an address information (such as 5 address bytes represented by Addr respectively), and a multi-plane write record confirmation command such as 16h which is different from both the normal write confirmation command and the single-plane write record confirmation command 13h. After receiving such a specific multi-plane write record command signal, the control circuit 1103 of the flash memory device 110 may write, program or back up the buffered data of the buffer 1110 to a plurality of storage cells in a plurality of different planes of the memory cell array 1107. Similarly, the control circuit 1103 may also write, program or back up a corresponding inverted data version of the buffered data of the buffer 1110 to a plurality of storage cells in a plurality of different planes of the memory cell array 1107. Similarly, the control circuit 1103 can also write, program or back up the data information (and / or the corresponding inverted data version) of the current pointer position of the buffer data of the buffer 1110 to multiple storage cells located in multiple different planes of the memory cell array 1107.

[0080] Since the buffered data may not be encoded or protected, in one embodiment, in order to more accurately write or program the buffered data into one or more storage cells in the memory cell array 1107, the control circuit 1103 can control the voltage generator 1104 to output multiple different voltage levels to control the column address decoder 1108 and the row address decoder 1109, thereby reducing or minimizing the probability of data errors. Fig.11Schematic diagram comparing the threshold voltage distribution of the disclosed SLC (single-level storage) programming method with the threshold voltage distribution of the conventional SLC programming operation. Fig.11 , an erase state and a programming state (i.e., SLC programming state) in a conventional SLC programming operation can be ideally separated by a first threshold voltage Vth1 (i.e., a lower voltage level). However, in practice, since the buffer data may not be encoded or protected, once the voltage distribution of the programming state changes, becomes wider, and crosses the lower voltage level Vth1, the data error probability increases abnormally. In order to greatly improve reliability, in the disclosed SLC programming method, the control circuit 1103 controls the voltage generator 1104 to output a plurality of different voltage levels to control the column address decoder 1108 and the row address decoder 1109 to make the voltage distribution of the SLC programming state narrower (for example, the shapes of the voltage distributions of the SLC programming state and the erased state can be similar or the same) and at the same time enable a higher voltage level (i.e., the second threshold voltage Vth2) to clearly separate the voltage distribution of the SLC programming state and the voltage distribution of the erased state. Therefore, even though the buffer data may not be encoded and the voltage distribution of the SLC program state may become wider, the wider voltage distribution of the SLC program state is less likely to exceed the threshold voltage Vth1. This can significantly reduce the error probability.

[0081] In other embodiments, the buffered data of a specific buffer 1110 may be copied to another different backup buffer to protect the specific buffer 1110 . Fig.12 FIG. 1 is another example schematic diagram of a storage device 100 according to another embodiment of the present invention. Figure 8Compared to the embodiment of the present invention, the control circuit 1103 further includes a specific counter and a backup buffer 1111. In another embodiment, the backup buffer 1111 may be disposed in the flash memory device 110 and externally coupled to the control circuit 1103 and the memory cell array 1107. The control circuit 1103 may copy and transmit the buffer data from the specific buffer 1110 to the backup buffer 1111 in response to a request (e.g., a specific backup record command signal) sent from the flash memory controller 105. The count value of the specific counter is initially equal to 0, and the count value is increased by 1 each time the flash memory device 110 receives a specific backup record command signal sent from the flash memory controller 105. When the flash memory device 110 receives a specific backup record command signal, the control circuit 1103 is used to copy and transmit the entire buffer data (e.g., including the record information and other remaining initial values) of the specific buffer 1110 to the backup buffer 1111, use the current pointer position of the specific buffer 1110 as a current pointer position of the backup buffer 1111, record the backup record command signal to one or more data word groups of the backup buffer 1111 from the starting position indicated by the current pointer position, and then record the count value of the specific counter and the next data word group following the multiple recorded data word groups corresponding to the backup record command signal in the backup buffer 1111. In other words, the control circuit 1103 is used to store and record the latest backup record command signal received and the corresponding latest version information in the backup buffer 1111. Thus, even if the backup buffer 1111 stores a plurality of backup record command signals, the control circuit 1103 can still correctly and appropriately find the record information of the latest backup record command signal from the data in the backup buffer 1111 to correctly generate and obtain a series of data word groups.

[0082] Fig.13 1 is a schematic diagram of different examples of the flash memory controller 105 sending a specific backup record command signal and sending a read backup record command signal to the flash memory device 110 through the specific communication interface according to different embodiments of the present invention. Fig.13 In the top example, the flash memory controller 105 sends a backup record command signal (e.g., a write backup data command signal) to the flash memory device 110 through the specific communication interface, and the backup record command signal sequentially includes a buffer backup command such as D8h (but not limited to) and a backup confirmation command. When the flash memory device 110 receives such a backup record command signal, the control circuit 1103 can copy and transfer the buffer data from the specific buffer 1110 to the backup buffer 1111; the related operations are described in detail in the above paragraphs. In addition, in Fig.13In the bottom example, the flash memory controller 105 can send a specific read backup record command signal to the flash memory device 110 through the specific communication interface. The specific read backup record command signal includes, for example, a read parameter command such as ECh (but not limited to) and a read backup record address such as F1h (but not limited to) different from the read record address F0h in sequence. When receiving the read parameter command ECh and the read backup record address F1h, the flash memory device 110 (or the control circuit 1103) can know that the specific read backup record command signal is currently received and knows that the signal is used to trigger or enable the flash memory device 110 to return the data information stored in the backup buffer 1111 and transmit it to the flash memory controller 105 through the specific communication interface, that is, to transmit the data content of one or more data words in the backup buffer 1111. Similarly, time tR represents a time period in which the control circuit 1103 transmits the data information (i.e., the backup record information) of the backup buffer 1111 to the input / output control circuit 1101. Therefore, after time tR, the flash memory device 110 can transmit the data information of the backup buffer 1111 from the input / output control circuit 1101 to the flash memory controller 105 through the communication interface, such as pins DQ0-DQ7. In this embodiment, the flash memory device 110 can transmit one or more copies of the data information of the backup buffer 1111 to the flash memory controller 105 and / or it can transmit one or more copies of an inverted version of the data information of the backup buffer 1111 to the flash memory controller 105. For example (but not limited to), the flash memory device 110 can transmit at least one set of the following data: a copy of the data information of the backup buffer 1111 and a corresponding inverted version of the data. For example, the size of the backup buffer 1111 is equal to 4KB (but not limited to), and the flash memory device 110 will sequentially transmit the original data content 4KB, the inverted data content 4KB, the original data content 4KB, and the inverted data content 4KB of the backup buffer 1111 to the flash memory controller 105; these operations will be explained later.

[0083] In addition, the operation of writing (or programming) the buffer data of a buffer to one or more storage cells of the memory cell array 1107 can also be applied to the backup buffer 1111, that is, Figures 9 to 11 The multiple operations mentioned in the embodiments can also be similarly applied to the operations of the backup buffer 1111. Fig.141 is an example schematic diagram of a flash memory controller 105 triggering or controlling a flash memory device 110 to write (or program) the buffer data of the specific buffer 1110 and the buffer data of the backup buffer 1111 to the memory cell array 1107 by using different prefix commands such as prefix commands 01h and 02h according to different embodiments of the present invention. Fig.14 In the top example, the flash memory controller 105 may, for example, send a first write record command signal to the flash memory device 110 through the specific communication interface, wherein the first write record command signal may sequentially include a first prefix command such as 01h, a write command such as 80h, address information such as 5 address bytes respectively represented by Addr, and a write record confirmation command different from a normal write confirmation command such as 13h. After receiving such a first write record command signal, the control circuit 1103 of the flash memory device 110 may write, program or back up the buffered data of the specific buffer 1110 to one or more storage cells of the memory cell array 1107 based on the specific buffer 1110 indicated by the prefix command 01h. Fig.14 In the bottom example of FIG. 1 , the flash memory controller 105 may, for example, send a second write record command signal (i.e., a write backup record command signal) to the flash memory device 110 through the specific communication interface, wherein the second write record command signal may sequentially include a second prefix command such as 02h, a write command such as 80h, address information such as 5 address bytes respectively represented by Addr, and a write record confirmation command such as 13h different from a normal write confirmation command. After receiving such a second write record command signal, the control circuit 1103 of the flash memory device 110 may write, program, or backup the buffer data of the backup buffer 1111 to one or more storage cells of the memory cell array 1107 based on the backup buffer 1111 indicated by the prefix command 02h.

[0084] Similarly, in other embodiments, the operation of writing and programming the buffered data of the backup buffer 1111 into the memory cell array 1107 may also adopt a multi-plane programming method. For the sake of brevity, the corresponding operation will not be described in detail.

[0085] In addition, it should be noted that in other embodiments, at least one of the above commands can be implemented by using other different commands, which can be configured to be different from a standard command (or a vendor specific command) and can be implemented by using one or more reserved commands, such as 0Bh, 12h, 14h, 18h, 1Bh~1Ch, 62h~64h, AAh, 76h, 82h~83h, 86h and 8Eh, etc., where the value represented by "h" is a hexadecimal value. The following table shows different examples of reserved commands that can be used to implement the above commands:

[0086]

[0087] In addition, in other embodiments, the above-mentioned operation of the flash memory device 110 to store and record the actual transmission history information of the specific communication interface (excluding the access data of the storage unit of the flash memory device 110) can also be implemented in a flash memory controller. In other words, the flash memory controller can also be used to store and record the actual behavior of the flash memory controller itself, and it can be used to record the actual value and actual sequence of the command data or address data sent from the flash memory controller itself.

[0088] Matching reference Fig.15 and Fig.16 . Fig.15 is a schematic diagram of an example storage device 5300 including a flash memory controller 5310 and a flash memory device 5320 (such as a NAND-type flash memory device including multiple chips or bare crystals) according to an embodiment of the present invention. Fig.16 yes Fig.15 Schematic diagram of an example of a channel controller including an input / output circuit in an embodiment of the present invention. Fig.15In the embodiment, the storage device 5300 is, for example, a memory device and is externally coupled to the host device 5350, and can be used to provide a storage space to the host device 5350 and obtain one or more driving voltages from the host device 5350 as a power source for the storage device 5300. Examples of the host device 5350 may include (but are not limited to): a multi-function mobile phone, a wearable device, a tablet computer, and a personal computer such as a desktop computer and a notebook computer. Examples of the storage device 5300 may include (but are not limited to): a solid state drive (SSD) and various types of embedded storage devices, such as storage devices that comply with the Peripheral Component Interconnect Express (PCIe) specification. According to this embodiment, the storage device 5300 may include a flash memory controller 5310 and may also include a flash memory device 5320, wherein the flash memory controller 5310 is used to control the operation of the storage device 5300 and to access the flash memory device (or module) 5320, and the flash memory device 5320 is used to store information. The flash memory device 5320 may include at least one flash memory chip. The operation and function of the flash memory controller 5310 are similar to Figure 1 The operation and function of the flash memory controller 105 are similar to the operation and function of the flash memory device 5320. Figure 1 The operation and functions of the flash memory device 110 are described below.

[0089] In practice, Fig.15 As shown, the flash memory controller 5310 may include a processor 5312 such as a microprocessor (which includes operations and functions similar to those of Figure 1 The processor 1051 of the present invention includes a control logic circuit 5314, a buffer 5316 such as a static random access memory (SRAM), a backup buffer 5316' such as the SRAM, and a transmission interface circuit 5318, wherein the above elements can be coupled to each other via a bus. The buffer 5316 can provide an internal storage space to the flash memory controller 5310. The control logic circuit 5314 is used to control the flash memory device 5320, and it may include an encoder 5331, a decoder 5332, a randomizer 5333, a derandomizer 5334, a comparison circuit 5324, and an input / output control circuit 5326. The operations and functions included in the input / output control circuit 5326 are similar to those of the present invention. Figure 1 The operation and function of the input / output circuit 1052.

[0090] The transmission interface circuit 5318 may comply with communication specifications such as Serial Advanced Technology Attachment (SATA), PCI, PCIe, UFS, etc., and communicate according to such communication specifications, for example, it communicates with the host device 5350 to access the storage device 5300. The host device 5350 may include a corresponding transmission interface circuit that complies with the above communication specifications for communicating with the storage device 5300.

[0091] The host device 5350 may transmit a plurality of host commands and corresponding plurality of logical addresses to the flash memory controller 5310 to access the storage device 5300. The flash memory controller 5310 receives the host commands and logical addresses, and translates the host commands into memory operation commands (which may be simply referred to as operation commands), and further controls the flash memory device 5320 by sending at least one command signal, which may be a write (or program), read, erase, trim or other one or more command signals to perform read, write (or program), erase, trim or other operations on one or more storage units having one or more physical addresses in the flash memory device 5320, and the one or more physical addresses correspond to the one or more logical addresses.

[0092] The encoder 5331 is used to generate error correction code (ECC) data in response to an input data, which may be sent from the host device 5350 and stored in one or more storage units of the flash memory device 5320. The transmission of the input data and the generated ECC data will follow a write command signal sent from the flash memory controller 5310 to the flash memory device 5320 through the specific communication interface to avoid data errors. Accordingly, the decoder 5332 is used to calculate the number of errors in the data read from the flash memory device 5320 and correct the errors in the read data by using the ECC data.

[0093] The randomizer 5333 is used to provide data protection by adjusting the input data (or input data with error correction code data) using a seed value to generate encoded data, which may be sent from the host device 5350 and stored in one or more storage units of the flash memory device 5320. The derandomizer 5334 is used to perform the inverse operation of the randomizer 5333 to generate decoded data.

[0094] The command signal and / or the encoded (or decoded) data are transmitted between the control logic circuit 5314 and the flash memory device 5320 by using the input / output circuit 5326 and the specific communication interface. Fig.15 As shown, the input / output circuit 5326 includes a plurality of channel controllers 5322, which are respectively coupled to and correspond to different channels of the memory cell array 1107 included in the flash memory device 5320, and each channel controller 5322 operates independently and individually. Fig.16 As shown, a channel controller 5322 includes an arbiter 5328 and a plurality of queues 5330 respectively coupled to the arbiter 5328. A plurality of different queues 5330 of the same channel are respectively coupled to and correspond to different chips / bare die of the same channel in the flash memory device 5320.

[0095] When the processor 5312 issues and transmits a plurality of different command signals to the input / output circuit 5326 through the bus, the plurality of different command signals corresponding to the same channel can be buffered in different queues 5330 of the same channel, and then the arbiter 5328 can appropriately select, output, and transmit the selected plurality of command signals to the flash memory device 5320 through a specific communication interface according to a plurality of different conditions (or states) of a plurality of different chips (or bare chips) of the same channel. In other words, the arbiter 5328 can appropriately determine an order of the plurality of command signals buffered in the queue 5330 and transmitted to the flash memory device 5320.

[0096] In an embodiment, when a command signal is selected, output and transmitted from the queue 5330 to the flash memory device 5320 through the specific communication interface, based on the same operation and function, the command (or address) information of the command signal can be stored and recorded in the buffer 5316 by adopting a specific format, such as the above-mentioned data word group, wherein a first byte of the data word group is used to store the actual value of the recorded information, and its second byte is used to store and indicate the type of data. In addition, a behavior operation (such as a data output operation) performed by the flash memory device 5320 can also be stored and recorded in the buffer 5316 based on the format of the data word group.

[0097] For example (but not limited to), the input / output circuit 5326 can be configured to have Figure 1 , Figure 8 and / or Fig.12The input / output circuit 5326 can store the behavior history information of the flash memory controller 5310, such as storing the command (or address) data of one or more command signals and / or the corresponding operation actually performed by the flash memory device 5320 in the buffer 5316. For example, whenever the flash memory controller 5310 currently and actually outputs information to the flash memory device 5320, the buffer 5316 will store the information (i.e., the actual transmission history information that does not include the data of multiple storage units).

[0098] In practice, the buffer 5316 includes, for example (but not limited to), 4KB of storage space (the suffix "KB" indicates a unit size of one thousand data bytes), and the input / output circuit 5326 controls the buffer 5316 to use a specific storage format to store the actual content value of each behavior information and record the type of each behavior information. The specific storage format is, for example, a data word group mentioned in the previous paragraph, and for the sake of brevity, it will not be repeated here. For example, in Figure 3 In the example of a command signal, the buffer 5316 can similarly store and record the following: Figure 4 The 4KB data shown; other operations are similar and will not be described in detail here.

[0099] In other embodiments, the buffered data of the specific buffer 5316 may be copied to another different backup buffer to protect the specific buffer 5316. The input / output circuit 5326 (or the processor 5312) may copy and transmit the buffered data from the specific buffer 5316 to the backup buffer 5316' in response to the request of the flash memory controller 5310. In practice, the input / output circuit 5326 may have an operation of a specific counter to output a count value, wherein the count value is initially equal to 0 and the count value is incremented by 1 each time the flash memory controller 5310 copies the data content from the buffer 5316 to the backup buffer 5316'. For example, the input / output circuit 5326 is used to copy and transfer the entire buffer data (e.g., including the record information and other remaining initial values) of the specific buffer 5316 to the backup buffer 5316′, use the current pointer position of the specific buffer 5316 as a current pointer position of the backup buffer 5316′, and then record the count value of the specific counter into the next data word group after the most recently recorded data word group in the backup buffer 5316′. Therefore, the input / output circuit 5326 can correctly and appropriately find the actual value of the most recently recorded information in the backup buffer 5316′, so as to correctly generate and obtain the content of a series of data word groups from the data in the backup buffer 5316′.

[0100] In addition, in one embodiment, the comparison circuit 5324 can be used to retrieve and obtain the buffer data from the specific buffer 5316 (or from the backup buffer 5316') to receive and obtain the buffer data of the buffer 1110 (or the backup buffer 1111) transmitted from the flash memory device 5320 through the specific communication interface, and then the retrieved buffer data originally stored in the flash memory controller 5310 can be compared with the received buffer data originally stored in the flash memory device 5320 to determine whether a data error occurs. This can greatly improve the reliability of data protection of buffering and recording the actual transmission history information of the specific communication interface between the flash memory device 5320 and the flash memory controller 5310. In addition, the recorded data can be further encoded and protected by a coding engine (such as encoder 5331) or comparison circuit 5324 before being stored in the buffer 5316 to provide better data protection, and the encoded recorded information can be decoded by the decoder 5332 or comparison circuit 5324 accordingly. By doing so, the comparison circuit 5324 can, for example, decode the encoded buffered data stored in the buffer 5316 to generate decoded buffered data and then compare the decoded buffered data with the received buffered data originally stored in the flash memory device 5320 to determine whether a data error occurs.

[0101] In addition, the processor 5312 can also equivalently send and generate a command signal to the control logic circuit 5314 through the bus, and the command signal will be buffered in a specific queue of a specific channel controller of the input / output circuit 5322. The arbiter 5328 can control the specific buffer 5316 to store a first transmission history information of the specific communication interface, and the first transmission history information of the specific communication interface includes at least one of the following: a data content and a data type of the command information of the command signal when the command signal is selected by the arbiter 5328 to output the command signal to the flash memory device 5320, a data content and a data type of the address information of the command signal when the arbiter 5328 selects the command signal to output the command signal to the flash memory device 5320, and a data type of a data input / output operation performed by the flash memory device 5320. The flash memory controller 5310 is used to control the flash memory device 5320 to store and record a second transmission history information of the specific communication interface in a specific buffer (eg, Figure 1 1110) in order to transmit the second transmission history information from the specific buffer to a data register (eg, Figure 1 1112 in ), and then the data from the data register (eg Figure 1The second transmission history information of 1112) is written into the memory cell array (eg, Figure 1 The comparison circuit 5324 is used to compare the second transmission history information sent from the flash memory device 5320 (or 110) with the first transmission history information stored in the specific buffer 5316 of the flash memory controller 5310 to determine whether an error occurs. It should be noted that the flash memory controller 5310 (or 105) can have the same or similar operations, functions and circuit elements, and the flash memory device 5320 (or 110) can also have the same or similar operations, functions and circuit elements; for the sake of brevity, this will not be described in detail.

[0102] In addition, it should be noted that Figure 3 The examples of multiple command signals shown are only for illustration purposes and are not intended to be limiting of the present invention. In other embodiments, address (or command) data of any type of command signal may be recorded and stored in the Figure 1 in a specific buffer 1110.

[0103] The above description is only a preferred embodiment of the present invention. All equivalent changes and modifications made according to the scope of the patent application of the present invention should fall within the scope of the present invention.

Claims

1. A flash memory controller, used in a storage device and coupled to a flash memory device of the storage device through a specific communication interface, the flash memory controller comprising: One bus; a specific buffer coupled to the bus; a processor coupled to the bus and the specific buffer; as well as a control logic circuit coupled to the bus, the specific buffer, the processor, and coupled to the flash memory device through the specific communication interface, the control logic circuit comprising: A comparison circuit; as well as an input / output circuit having a plurality of channel controllers corresponding to a plurality of different channels of the flash memory device, wherein a channel controller includes an arbitrator and a plurality of queues corresponding to a plurality of different chips of a channel; The processor sends and generates a command signal to the control logic circuit through the bus, and the command signal is buffered in a specific queue of a specific channel controller of the input / output circuit; the arbitrator is used to control the specific buffer to store a first transmission history information of the specific communication interface; and the first transmission history information of the specific communication interface includes at least one of the following: a data content and a data type of the command information of the command signal when the command signal is selected by the arbitrator to output the command signal to the flash memory device, a data content and a data type of the address information of the command signal when the command signal is selected by the arbitrator to output the command signal to the flash memory device, and a data type of a data input / output operation performed by the flash memory device.

2. The flash memory controller according to claim 1, wherein: The specific buffer is used to store a data content and a data type of the first transmission history information using a format of a data word group, and a first byte in the data word group is used to store and indicate the data content, and a second byte in the data word group is used to store and indicate the data type, wherein the data type is a command type, an address type, a data input type or a data output type.

3. The flash memory controller according to claim 1, wherein: The data input / output operation performed by the flash memory device includes at least one of a read status operation, a data read operation, and a data write operation requested by the flash memory controller.

4. The flash memory controller according to claim 1, wherein: The flash memory controller is used to control the flash memory device to store and record second transmission history information of the specific communication interface in a specific buffer of the flash memory device, to transmit the second transmission history information from the specific buffer to a data register of the flash memory device, and then to write the second transmission history information from the data register to at least one storage unit of a memory cell array of the flash memory device.

5. The flash memory controller according to claim 4, wherein: The flash memory controller is used to send a write record command signal to the flash memory device, the write record command signal sequentially including a write command, a specific address information and a write record confirmation command, so as to enable the flash memory device to write the second transmission history information and a current pointer position of the specific buffer of the flash memory device into the data register of the flash memory device, so as to write the second transmission history information and the current pointer position from the data register to at least one storage unit of the memory cell array of the flash memory device; the current pointer position of the specific buffer of the flash memory device is an index position of a latest recorded data word group stored in the specific buffer of the flash memory device.

6. The flash memory controller according to claim 5, characterized in that: The flash memory controller is used to control the flash memory device to generate and transmit an inverted data version of the second transmission history information and the current pointer position of the specific buffer to the data register of the flash memory, so as to write the inverted data version from the data register to the at least one storage unit of the memory cell array of the flash memory device.

7. The flash memory controller according to claim 4, wherein: The flash memory controller is used to send a specific multi-plane write record command signal to the flash memory device, and the specific multi-plane write record command signal sequentially includes a write command, a specific address information and a multi-plane write record confirmation command. The multi-plane write record confirmation command is different from a normal write confirmation command and a write record confirmation command, so that the flash memory device writes the second transmission history information from the data register of the flash memory device to multiple storage units arranged in multiple different planes of the memory cell array of the flash memory device.

8. The flash memory controller according to claim 4, wherein: The flash memory controller is used to send a read record command signal to the flash memory device, and the read record command signal sequentially includes a read parameter command and a read record address, so that the flash memory device sends the second transmission history information to the flash memory controller through the specific communication interface at least once.

9. The flash memory controller according to claim 8, wherein: The comparison circuit is used to compare the second transmission history information sent from the flash memory device with the first transmission history information stored in the specific buffer of the flash memory controller to determine whether an error occurs.

10. The flash memory controller according to claim 4, wherein: The flash memory controller is used to control the flash memory device to generate an inverted data version of the second transmission history information, and send at least one set of the second transmission history information and the second transmission history information with the inverted data version to the flash memory controller through the specific communication interface at least once; a hexadecimal value of a data byte in the inverted data version of the second transmission history information is obtained by inverting a hexadecimal value of a corresponding data byte of the second transmission history information.

11. The flash memory controller according to claim 4, wherein: The flash memory controller is used to send a backup record command signal to the flash memory device through the specific communication interface, and the backup record command signal sequentially includes a buffer backup command and a backup confirmation command, so as to enable the flash memory device to store the second transmission history information buffered in the specific buffer of the flash memory device into a backup buffer of the flash memory device, and store information of an index position of a latest data word group stored in the specific buffer of the flash memory device into the backup buffer of the flash memory device.

12. The flash memory controller according to claim 11, wherein: The flash memory controller is used to send a read backup record command signal to the flash memory device through the specific communication interface. The read backup record command signal sequentially includes a read parameter command and a read backup record address, so as to enable the flash memory device to output the backup information in the backup buffer of the flash memory device to an input / output control circuit of the flash memory device, so that the input / output control circuit of the flash memory device transmits the backup information to the flash memory controller through the specific communication interface.

13. The flash memory controller according to claim 11, wherein: The flash memory controller is used to send a first write record command signal to the flash memory device through the specific communication interface, the first write record command signal sequentially including a first prefix command, a write command, address information and a write record confirmation command, the write record confirmation command is different from a normal write confirmation command, so that the flash memory device writes the backup information into at least one storage unit of the memory cell array of the flash memory device; Furthermore, the flash memory controller is used to send a second write record command signal to the flash memory device through the specific communication interface, and the second write record command signal sequentially includes a second prefix command, the write command, the address information, and the write record confirmation command different from the normal write confirmation command, so that the flash memory device writes the backup information to at least one different storage unit of the memory cell array of the flash memory device.

14. A method of a flash memory controller, the flash memory controller is used in a storage device and is coupled to a flash memory device of the storage device through a specific communication interface, the flash memory controller includes a bus, a specific buffer, a processor and a control logic circuit, the control logic circuit includes a comparison circuit and an input / output circuit, the input / output circuit has a plurality of channel controllers corresponding to a plurality of different channels of the flash memory device, a channel controller includes an arbitrator and a plurality of queues, the queues correspond to a plurality of different chips of a channel, and the method comprises: Using the processor to send and generate a command signal to the control logic circuit through the bus; buffering the command signal in a specific queue of a specific channel controller of the input / output circuit; and Using the arbiter to control the specific buffer to store a first transmission history information of the specific communication interface; The first transmission history information of the specific communication interface includes at least one of the following: a data content and a data type of command information of the command signal when the command signal is selected by the arbitrator to output the command signal to the flash memory device, a data content and a data type of address information of the command signal when the command signal is selected by the arbitrator to output the command signal to the flash memory device, and a data type of a data input / output operation performed by the flash memory device.

15. The method according to claim 14, characterized in that Also included: Using the specific buffer to store a data content and a data type of the first transmission history information in a format of a data word group; A first byte in the data word group is used to store and indicate the data content, and a second byte in the data word group is used to store and indicate the data type, wherein the data type is a command type, an address type, a data input type or a data output type.

16. The method according to claim 14, characterized in that The data input / output operation performed by the flash memory device includes at least one of a read status operation, a data read operation, and a data write operation requested by the flash memory controller.

17. The method according to claim 14, characterized in that Also included: The flash memory device is controlled to store and record second transmission history information of the specific communication interface in a specific buffer of the flash memory device, so as to transmit the second transmission history information from the specific buffer to a data register of the flash memory device, and then write the second transmission history information from the data register to at least one storage unit of a memory cell array of the flash memory device.

18. The method according to claim 17, characterized in that Also included: Sending a write record command signal to the flash memory device, the write record command signal sequentially including a write command, a specific address information, and a write record confirmation command, so as to instruct the flash memory device to write the second transmission history information and a current pointer position of the specific buffer of the flash memory device into the data register of the flash memory device, so as to write the second transmission history information and the current pointer position from the data register into at least one storage unit of the memory cell array of the flash memory device; The current pointer position of the specific buffer of the flash memory device is an index position of a latest recorded data word group stored in the specific buffer of the flash memory device.

19. The method according to claim 18, characterized in that Also included: The flash memory device is controlled to generate and transmit an inverted data version of the second transmission history information and the current pointer position of the specific buffer to the data register of the flash memory, so as to write the inverted data version from the data register to the at least one storage unit of the memory cell array of the flash memory device.

20. The method according to claim 17, characterized in that Also included: A specific multi-plane write record command signal is sent to the flash memory device, the specific multi-plane write record command signal sequentially including a write command, a specific address information and a multi-plane write record confirmation command, the multi-plane write record confirmation command is different from a normal write confirmation command and a write record confirmation command, so that the flash memory device writes the second transmission history information from the data register of the flash memory device to a plurality of storage cells arranged in a plurality of different planes of the memory cell array of the flash memory device.

21. The method according to claim 17, characterized in that Also included: A read record command signal is sent to the flash memory device, the read record command signal sequentially including a read parameter command and a read record address, so that the flash memory device sends the second transmission history information to the flash memory controller through the specific communication interface at least once.

22. The method according to claim 21, characterized in that Also included: The comparison circuit is used to compare the second transmission history information sent from the flash memory device with the first transmission history information stored in the specific buffer of the flash memory controller to determine whether an error occurs.

23. The method according to claim 17, characterized in that Also included: Controlling the flash memory device to generate an inverted data version of the second transmission history information, and sending at least one set of the second transmission history information and a combination of the second transmission history information having the inverted data version to the flash memory controller through the specific communication interface at least once; A hexadecimal value of a data byte in the inverted data version of the second transmission history information is obtained by inverting a hexadecimal value of a corresponding data byte of the second transmission history information.

24. The method according to claim 17, characterized in that Also included: A backup record command signal is sent to the flash memory device through the specific communication interface, and the backup record command signal sequentially includes a buffer backup command and a backup confirmation command, so as to cause the flash memory device to store the second transmission history information buffered in the specific buffer of the flash memory device into a backup buffer of the flash memory device, and store information of an index position of a latest data word group stored in the specific buffer of the flash memory device into the backup buffer of the flash memory device.

25. The method according to claim 24, characterized in that Also included: A read backup record command signal is sent to the flash memory device through the specific communication interface, and the read backup record command signal sequentially includes a read parameter command and a read backup record address, so as to enable the flash memory device to output the backup information in the backup buffer of the flash memory device to an input / output control circuit of the flash memory device, so that the input / output control circuit of the flash memory device transmits the backup information to the flash memory controller through the specific communication interface.

26. The method according to claim 24, characterized in that Also included: Sending a first write record command signal to the flash memory device through the specific communication interface, the first write record command signal sequentially including a first prefix command, a write command, address information, and a write record confirmation command, the write record confirmation command being different from a normal write confirmation command, so that the flash memory device writes the backup information into at least one storage cell of the memory cell array of the flash memory device; as well as A second write record command signal is sent to the flash memory device through the specific communication interface, and the second write record command signal sequentially includes a second prefix command, the write command, the address information, and the write record confirmation command different from the normal write confirmation command, so that the flash memory device writes the backup information to at least one different storage unit of the memory cell array of the flash memory device.

Citation Information

Cited By

  • Solid-state storage device and method of dynamic quality-of-service management thereof

    TWI933392B