Flash memory device, method of flash memory device, and flash memory controller
By introducing a boundary checking mechanism in the flash memory device, a specific communication interface is used to automatically determine whether the page unit in the block is blank, which solves the problems of high power consumption and excessive load after the power is cut off by traditional flash memory controllers. Fast recovery and efficient operation are achieved.
Patent Information
- Application Number
- CN202410484718.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-30
- Filing Date
- 2024-04-22
- Publication Date
- 2024-12-03
AI Technical Summary
When a traditional flash memory controller restarts after a power outage, it is necessary to determine the location of the last data page by reading multiple times, resulting in high power consumption and excessive load.
A flash memory device is designed, coupled to the controller through a specific communication interface, including an input/output control circuit, a command register, an address register, a memory cell array, an address decoder and a state register, using The boundary check command signal automatically determines whether the page unit in the block is a blank page, reducing the load on the controller.
It realizes the rapid recovery of the last data page position after power outage, reduces the power consumption and load of the flash memory controller and improves system efficiency.
Smart Images

Figure CN119065589A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a storage device, and more particularly to a storage device, a flash memory device, a flash memory controller and corresponding methods. Background Art
[0002] Generally speaking, when the power supply of a conventional flash memory controller is turned off and then turned on again, in a continuous write mode, the conventional flash memory controller must know which page is the last data page accessed or written by the conventional flash memory controller in a block. The conventional flash memory controller inevitably needs to send multiple read commands to a conventional flash memory device to request the conventional flash memory device to report multiple page data of multiple page units in the block, and the conventional flash memory controller also needs to determine whether the read page data is blank to determine whether the page units are blank pages. Since these calculations are quite complicated, the conventional flash memory controller inevitably consumes a lot of power, and the load of the conventional flash memory controller becomes too heavy. Summary of the invention
[0003] Therefore, one of the objectives of the present invention is to provide a storage device, a flash memory controller and corresponding methods to solve the above-mentioned problems.
[0004] According to an embodiment of the present invention, a flash memory device is disclosed. The flash memory device is used in a storage device and is coupled to a flash memory controller of the storage device through a specific communication interface. The flash memory device includes an input / output control circuit, a command register, an address register, a memory cell array, at least one address decoder, a state register and a control circuit. The input / output control circuit is coupled to the flash memory controller through the specific communication interface. The command register is coupled to the input / output control circuit and is used to buffer command information sent from the flash memory controller and transmitted through the input / output control circuit. The address register is coupled to the input / output control circuit and is used to buffer address information sent from the flash memory controller and transmitted through the input / output control circuit. The memory cell array has at least a first plane and a second plane different from the first plane. At least one address decoder is coupled to the memory cell array. The state register is coupled to the input / output control circuit. The control circuit is coupled to the at least one address decoder, the memory cell array, the address register, the command register and the status register, and is used to control the at least one address decoder to read out a temporary page position stored in a storage space of the memory cell array, control the input / output control circuit to transmit the temporary page position to the flash memory controller through the specific communication interface, and control the at least one address decoder to read out a plurality of page data of a plurality of page units of a specific block in the memory cell array in response to a specific boundary check command signal or a specific boundary check setting-characteristic signal sent by the flash memory controller and through the specific communication interface to determine whether the plurality of page units are blank pages. The temporary page position is used by the flash memory controller as a starting page address and is carried in the specific boundary check command signal or the specific boundary check setting-characteristic signal sent by the flash memory controller.
[0005] According to an embodiment of the present invention, a method for a flash memory device is also disclosed. The flash memory device is used in a storage device and is coupled to a flash memory controller of the storage device through a specific communication interface. The method includes: providing an input / output control circuit, coupled to the flash memory controller through the specific communication interface; providing a command register, coupled to the input / output control circuit, to buffer command information sent from the flash memory controller and transmitted through the input / output control circuit; providing an address register, coupled to the input / output control circuit, to buffer address information sent from the flash memory controller and transmitted through the input / output control circuit; providing a memory cell array, having at least a first plane and a second plane different from the first plane; providing at least one address decoder, coupled to the memory cell array; providing a status register, coupled to the input / output control circuit; controlling the at least one address decoder; and controlling the at least one address decoder. The invention relates to a flash memory controller comprising: a first address decoder and a second address decoder, wherein the first address decoder reads a temporary page position stored in a storage space of the memory cell array; the first address decoder controls the input / output control circuit to transmit the temporary page position to the flash memory controller through the specific communication interface; and the first address decoder controls the at least one address decoder to read a plurality of page data of a plurality of page units of a specific block in the memory cell array in response to a specific boundary check command signal or a specific boundary check setting-characteristic signal sent by the flash memory controller and through the specific communication interface to determine whether the plurality of page units are blank pages; wherein the temporary page position is used by the flash memory controller as a starting page address and is carried in the specific boundary check command signal or the specific boundary check setting-characteristic signal sent by the flash memory controller.
[0006] According to an embodiment of the present invention, a flash memory controller is further 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 an input / output circuit and a processor. The input / output circuit is coupled to the flash memory device through the specific communication interface and is used to send multiple commands and data between the flash memory device and the processor. The processor is coupled to the input / output circuit and is used to: control the input / output circuit so that the flash memory device reads out and transmits a temporary page position in a storage space of a memory cell array of the flash memory device to the flash memory controller; and control the input / output circuit to send a specific boundary check command signal or a specific boundary check setting-characteristic signal to the flash memory device through the specific communication interface, so that the flash memory device reads out multiple page data of multiple page units of a specific block in the memory cell array and the flash memory device determines whether the multiple page units are blank pages. The temporary page location is used by the processor as a starting page address and is carried in the specific boundary check command signal or the specific boundary check setting-characteristic signal sent by the flash memory controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Figure 1 FIG. 4 is a schematic diagram of an example of a storage device according to an embodiment of the present invention.
[0008] Figure 2 FIG. 4 is a schematic diagram showing an example of the flash memory controller sending a single page check command signal to the flash memory device according to an embodiment of the present invention.
[0009] Figure 3 FIG. 4 is a schematic diagram showing an example of the flash memory controller sending a specific boundary check command signal to the flash memory device according to an embodiment of the present invention.
[0010] Figure 4 FIG. 4 is a schematic diagram showing an example of the flash memory device sequentially reading a plurality of continuous logical page units of the specific block according to an embodiment of the present invention.
[0011] Figure 5 FIG. 1 is a schematic diagram showing an example of the flash memory device jumping to read a plurality of non-consecutive logical page units of the specific block according to an embodiment of the present invention.
[0012] Figure 6 FIG. 4 is a schematic diagram showing an example of the flash memory controller sending a plurality of specific boundary check command signals to the flash memory device in sequence according to an embodiment of the present invention.
[0013] Figure 7FIG. 1 is a schematic diagram showing an example in which the flash memory controller sends different specific boundary check command signals to the flash memory device in the SLC mode and the TLC mode according to an embodiment of the present invention.
[0014] Figure 8 FIG. 4 is a schematic diagram showing an example of a format of the boundary position reporting command signal according to an embodiment of the present invention.
[0015] Fig. 9 FIG. 4 is a schematic diagram showing an example of a format of a boundary position reporting command signal according to another embodiment of the present invention.
[0016] Fig.10 FIG. 4 is a schematic diagram showing an example of a format of a boundary position reporting command signal according to another embodiment of the present invention.
[0017] Fig.11 FIG. 4 is a schematic diagram showing an example of a format of a specific boundary report acquisition-characteristic signal according to an embodiment of the present invention.
[0018] Fig.12 FIG. 4 is a schematic diagram showing an example of a format of a specific boundary report acquisition-characteristic signal according to another embodiment of the present invention.
[0019] Fig.13 is a schematic diagram illustrating an example format of a specific boundary check setting-signature signal sent from the flash memory controller to the flash memory device through the specific communication interface according to an embodiment of the present invention.
[0020] Fig.14 is a schematic diagram of another example of the storage device according to another embodiment of the present invention.
[0021] Fig.15 FIG. 4 is a schematic diagram showing an example of the flash memory controller sending a specific boundary check command signal to the flash memory device according to another embodiment of the present invention.
[0022] Fig.16 FIG. 4 is a schematic diagram showing an example of the flash memory controller (or processor) sending a plurality of specific boundary check command signals to the flash memory device in sequence according to another embodiment of the present invention.
[0023] Fig.17 2 is a schematic diagram showing an example in which the flash memory controller sends a plurality of different specific boundary check command signals to the flash memory device in the SLC mode and the TLC mode according to another embodiment of the present invention.
[0024] Fig.18 FIG. 4 is a schematic diagram showing an example format of a specific boundary check setting-signal signal sent from the flash memory controller to the flash memory device through the specific communication interface according to another embodiment of the present invention.
[0025] Fig.19 FIG. 4 is a schematic diagram showing an example of a format of a specific boundary check setting-signal signal sent from the flash memory controller to the flash memory device through the specific communication interface according to another embodiment of the present invention.
[0026]
Explanation of symbols
[0027] 100: Storage device
[0028] 105: Flash memory controller
[0029] 110: Flash memory device
[0030] 1051: Processor
[0031] 1052: Input / output circuit
[0032] 1101: Input / output control circuit
[0033] 1102: Logic control circuit
[0034] 1103: Control circuit
[0035] 1105: Address register
[0036] 1106: Command register
[0037] 1107: memory cell array
[0038] 1108: Column address decoder
[0039] 1109: row address decoder
[0040] 1111:Decoder
[0041] 1113: Status register DETAILED DESCRIPTION
[0042] The present invention aims to provide a technical solution that can use a flash memory controller to control a flash memory device to search and determine which (or which) page units in a specific block are blank pages that have not been accessed. For the flash memory device, there is no need to transmit the data of multiple page units of the specific block to the flash memory controller so that the flash memory controller can determine which of the data of the multiple page units are blank data. The flash memory device can report and transmit a boundary position between the multiple data pages that have been accessed and the multiple blank pages that have not been accessed in the specific block to the flash memory controller. In other words, the flash memory controller can directly receive a report result of the boundary position and does not need to check and confirm whether the multiple page units are blank pages. In this way, the load of the flash memory controller can be greatly reduced.
[0043] 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. The flash memory device 110 is, for example, a NAND-type flash memory device and includes a plurality of chips (or bare chips). The flash memory controller 105 at least includes a processor 1051 and an input / output (I / O) 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 command signals (or sequences) to the flash memory device 110 through a specific communication interface to control and access the flash memory device 110. The plurality of access command signals (or sequences) are, for example, access command signals for reading, writing / programming, cache writing (cache program) or erasing.
[0044] The flash memory device 110 includes an input / output control circuit 1101, a logic control circuit 1102, a control circuit 1103 (having a decoder 1111), an address register 1105, a command register 1106, a memory cell array 1107, a row address decoder 1108, a column address decoder 1109, and a status register 1113. The decoder 1111 is, for example (but not limited to), a decoder circuit of a low-density parity-check code (LDPC).
[0045] 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 includes, for example, at least one signal port or pin, such as data pins DQ0-DQ7 or other data pins (not shown). Figure 1 ) and a plurality of logic control pins, wherein the logic control pins are, for example, a command latch enable (CLE) pin, an address latch enable (ALE) pin, a read enable (RE) pin, and other logic control pins such as a ready / busy (R / B) pin. The plurality of data pins DQ0-DQ7 are coupled to the input / output control circuit 1101, and the plurality of logic control pins are coupled to the logic control circuit 1102. The memory cell array 1107 has two or more planes (not shown in FIG. Figure 1 ).
[0046] In practice, when the flash memory controller 105 sends a command signal of command data, the flash memory controller 105 (or the processor 1051) controls the signal of the ALE pin to be at a low level and controls the signal of the CLE pin to be at a high level, so that the flash memory device 110 can know that the data received through the DQ0-DQ7 pins are command data and then 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, the flash memory controller 105 controls the signal of the ALE pin to be at a high level and controls the signal of the CLE pin to be at a low level, so that the flash memory device 110 can know that the data received through the DQ0-DQ7 pins are address data and then can store the received address data in the address register 1105 through the input / output control circuit 1101. Other and pin RE and / or other pins (not shown on Figure 1 There are multiple operations associated with it, so as to simplify the contents of the specification.
[0047] In addition, the control circuit 1103 can control at least one address decoder (for example, the column address decoder 1108 and the row address decoder 1109) to control the memory cell array 1107 to perform an access operation according to one or more received addresses buffered by the address register 1105 and one or more received commands buffered by the command register 1106, such as a read operation, a write programming operation, a cache write programming operation, or an erase operation.
[0048] When a sudden power off recovery (SPOR) event occurs, the power provided to the storage device 100 is suddenly turned off without any warning, and then turned on again. Before the power is suddenly turned off, the flash memory controller 105 (or the processor 1051) needs to know and find the location (e.g., address / index) of the last accessed data unit (e.g., the last data page). For example, if the flash memory controller 105 (or the processor 1051) controls the flash memory device 110 to perform a data write operation (e.g., a sequential page write operation) for a specific block of the flash memory device 110, the flash memory device 110 may sequentially write and store a series of data to a plurality of page units in the specific block, and the plurality of page units may refer to a plurality of page units that logically have consecutive logical page addresses in the specific block. When the SPOR event occurs, the last accessed data page in the specific block or its next logical page unit (that is, the first unaccessed blank page in the specific block) can be used to indicate or represent a boundary position (or a boundary page position) between multiple data pages and multiple unaccessed blank pages in the specific block.
[0049] The flash memory controller 105 (or its processor 1051) can send a specific boundary check command signal and / or a specific boundary check set-feature signal to the flash memory device 110 through the specific communication interface, and then the flash memory device 110 (or the control circuit 1103 controls at least one address decoder and the decoder 1111) can search and find a boundary page position in the specific block by reading multiple page units of the specific block once or multiple times.
[0050] In addition, the flash memory controller 105 (or its processor 1051) may send a specific boundary report command signal and / or a specific boundary report get-feature signal to the flash memory device 110 through the specific communication interface, and then the flash memory device 110 (or the control circuit 1103 controlling the status register 1113 and the input / output control circuit 1101) may report and transmit the found boundary page position to the flash memory controller 105 after searching, finding and determining the boundary page position in the specific block.
[0051] In practice, the flash memory controller 105 (or the flash memory device 110) includes two modes. In a first mode, the flash memory controller 105 (or the processor 1051) can send a single-page check command signal to the flash memory device 110 to control and enable the flash memory device 110 to report and transmit the corresponding page data content of a single page unit indicated by the single-page check command signal to the flash memory controller 105, and the flash memory controller 105 (or the processor 1051) can check the corresponding page data content to determine whether the single page unit is a blank page.
[0052] In a second mode, as described in the above paragraph, the flash memory controller 105 (or the processor 1051 thereof) may send the specific boundary check command signal and / or the specific boundary check setting-characteristic signal to the flash memory device 110 through the specific communication interface, and the flash memory device 110 may search and find the boundary page position in the specific block by reading multiple page units of the specific block once or multiple times. That is, in the second mode, the flash memory controller 105 (or the processor 1051) may control the flash memory device 110 to automatically check whether multiple logical page units are blank pages, and once the last page unit written by the flash memory device 110 is found, the flash memory device 110 may transmit a result report to the flash memory controller.
[0053] Figure 2 FIG. 1 is a schematic diagram showing an example of the flash memory controller 105 sending a single page check command signal to the flash memory device 110 according to an embodiment of the present invention. Figure 2The single-page check command signal may sequentially carry and include a prefix command, a row address (C1 and C2), a column address (R1, R2, R3 and R4) and a single-page check confirm command, wherein the prefix command is, for example, 00h (i.e., 0x00, where the suffix 'h' indicates that the value is a hexadecimal value), and the single-page check confirm command is, for example, 33h. The row address and the column address are, for example, formed by 6 bytes (but not limited to), and may be used to indicate a block address, a page address and a plane address (or a die address). The row address and the column address are stored in the address register 1105 through the input / output control circuit 1101, and the prefix command 00h and the single-page check confirm command, for example, 33h, are stored in the command register 1106.
[0054] After receiving and storing the single page check confirmation command 33h in the command register 1106, the flash memory device 110 (or the control circuit 1103) controls the row address decoder 1109 based on the row address and controls the column address decoder 1108 based on the column address to access or read out a single page of data of a page of cells in a block on a plane in the memory cell array 1107. The read single page of data is output to the input / output control circuit 1101.
[0055] exist Figure 2 , tRead1 refers to the total time period from reading a single page of data from the memory cell array 1107 to the input / output control circuit 1101. After the read single page of data is output to the input / output control circuit 1101, the input / output control circuit 1101 then outputs and transmits the single page of data to the flash memory controller 105 through the specific communication interface, and D0, D1, ..., Dn refer to the output of the single page of data. In this way, after receiving the data content of the single page of data, the flash memory controller 105 (or the processor 1051) can check the read single page of data to determine whether the read single page of data is blank, so as to determine whether the page unit is a blank page. That is to say, in the first mode, the operation of checking and determining whether a page unit is a blank page is performed by the flash memory controller 105 itself, and the flash memory device 110 is only used to output and transmit the content of the page of data and does not check and determine whether the page unit is a blank page. It should be noted that the number of bytes of the column address and / or the row address may be different in other embodiments.
[0056] Figure 3FIG. 1 is a schematic diagram showing an example of the flash memory controller 105 sending a specific boundary check command signal to the flash memory device 110 according to an embodiment of the present invention. Figure 3 In the embodiment, the specific boundary check command signal may carry or include a boundary check prefix command, a specific address information, and a boundary check confirmation command in sequence, wherein the boundary check prefix command is, for example, 0x00 (i.e., 00h, where the suffix 'h' indicates that the value is a hexadecimal value), and the boundary check confirmation command is, for example, 0x34 (i.e., 34h), which is different from the single page check confirmation command 33h. The specific address information at least indicates a specific block address (or a block index) or indicates a combination of the specific block address and a page address (or a page index), wherein the page address may be reserved for use or may be optional. In this way, the data length (or the number of data bytes) of the specific address information may be less than the number of row and column addresses in the first mode.
[0057] exist Figure 3 Similarly, the specific address information is stored in the address register 1105 through the input / output control circuit 1101, and the boundary check prefix command 0x00 and the boundary check confirmation command 0x34 are stored in the command register 1106. After receiving and storing the boundary check confirmation command 0x34 in the command register 1106, the flash memory device 110 (or the control circuit 1103) controls the row address decoder 1109 and the column address decoder 1108 based on the specific address information to access or read out one or more page data of one or more page units in a specific block in the memory cell array 1107 by page units one by one. Each time a page of data of a corresponding page unit is read out, the control circuit 1103 uses its decoder 1111 to perform a decoding operation (such as LDPC decoding) on the read page data to determine whether the corresponding page unit is a blank page. The decoding operation will not be stopped until the control circuit 1103 finds and determines the boundary page position between multiple data pages and multiple blank pages in the specific block.
[0058] After finding the boundary page position, the control circuit 1103 transmits and stores the information of the found boundary page position and the information that the flash memory device 110 is currently ready to the status register 1113. Figure 3In the above, tRead2 refers to the total time period required for the operation of reading multiple pages of data from the memory cell array 1107 and determining whether the multiple pages of data are blank to find the boundary page position. After the boundary page position is output to the status register 1113, the flash memory device 110 is ready for the flash memory controller 105, so that the flash memory controller 105 (or the processor 1051) can send a polling signal to the flash memory device 110 so that the boundary page position is transferred from the status register 1113 to the input / output control circuit 1101 and then transmitted from the input / output control circuit 1101 to the flash memory controller 105 through the specific communication interface. By doing so, after receiving the boundary check confirmation command 0x34, the flash memory device 110 can automatically read at least one page of data of at least one page unit of the specific block corresponding to the specific block address and determine whether the at least one page unit is a blank page.
[0059] For example (but not limited to), the flash memory device 110 may read a plurality of consecutive logical page units of the specific block one page unit at a time in sequence. Figure 4 FIG. 1 is a schematic diagram showing an example of the flash memory device 110 sequentially reading a plurality of continuous logical page units of the specific block according to an embodiment of the present invention. Figure 4 When receiving a specific boundary check command signal sent from the flash memory controller 105, the flash memory device 110 (or the control circuit 1103) first finds and determines the specific block address based on the specific boundary check command signal. Figure 4 The specific block BLK1 shown in FIG. Since the multiple logical page units of the specific block BLK1 are written or accessed in sequence,
[0060] The flash memory device 110 (or the control circuit 1103) checks the nearby logical page cells one by one in sequence starting from the bottom page cell of the specific block BLK1 (that is, the last page cell with a page index with a larger value) to its top page cell (that is, the first page cell with a page index with a smaller value (e.g., 0)) to find and determine the boundary page position within the specific block BLK1.
[0061] For example, the specific block may include one hundred page units, and the corresponding page index values are from 0 to 99, that is, the top page index is 0 and the bottom page index is 99. The flash memory device 110 (or the control circuit 1103) is used to read the last page unit with the page index value 99 to determine whether the read page unit is a blank page. If the read page unit with the page index value 99 is a blank page, the flash memory device 110 (or the control circuit 1103) will then read an adjacent upper page unit with the page index value 98 to determine whether the read page unit is a blank page. The flash memory device 110 (or the control circuit 1103) will perform similar operations as described above until the flash memory device 110 (or the control circuit 1103) reads a page unit that is not a blank page, and then stops the operation, wherein the page unit that is not a blank page will be determined to be the last page unit written by the flash memory device 110 before the power is suddenly turned off.
[0062] By doing so, the flash memory device 110 (or the control circuit 1103) can finally find and determine the first page unit (i.e. Figure 4 The page index value of the top page unit of multiple blank pages in the , and the corresponding previous page unit (that is, Figure 4 The page index value of the first page unit in the plurality of blank pages or the page index value of the corresponding previous page unit (i.e., the bottom page unit in the plurality of data pages) may be used as the value of the boundary page position.
[0063] In one embodiment, for example (but not limited to), the flash memory device 110 may also ignore certain logical page units of the specific block to find the boundary page position. Figure 5 FIG. 1 is a schematic diagram showing an example of the flash memory device 110 jumping to read multiple non-contiguous logical page units of the specific block according to an embodiment of the present invention. Figure 5 When receiving a specific boundary check command signal sent from the flash memory controller 105, the flash memory device 110 (or the control circuit 1103) first finds and determines the specific block address carried by the specific boundary check command signal. Figure 5Next, the flash memory device 110 (or the control circuit 1103) is used to find and determine the boundary page position in the specific block BLK1 by setting and using a top position, a middle position and a bottom position for the specific block BLK1, and then used to adjust and calculate these positions based on a successive approximation method until the boundary page position is determined.
[0064] For example (but not limited to), initially, for the first round of calculation, if the specific block BLK1 has a plurality of logical page units corresponding to the page index value range from 0 to 99, the top position, the middle position, and the bottom position of the specific block BLK1 can be set to 0, 49, and 99, respectively. Then, the flash memory device 110 (or the control circuit 1103) checks whether the page unit with a logical page unit having a page index value of 49 is a page unit with blank content. If the page unit is a blank page unit, the flash memory device 110 (or the control circuit 1103) can know that the boundary page position should be located in the page index range from 0 to 49, and then reset the top position, the middle position, and the bottom position of the specific block BLK1 to 0, 24, and 49 in the second round of calculation. Then, the flash memory device 110 (or the control circuit 1103) checks whether the page unit with a logical page unit having a page index value of 24 is a blank page unit. If the page unit is blank, the flash memory device 110 (or the control circuit 1103) can know that the boundary page position should be located in the page index range from 0 to 24, and is used to reset the top position, middle position and bottom position of the specific block BLK1 to 0, 12 and 24 during the third round of calculation.
[0065] Similarly, the flash memory device 110 (or the control circuit 1103) checks whether a logical page unit with a page index value of 12 is a blank page unit. If the page unit is blank, the flash memory device 110 can know that the boundary page position should be located in the page index range from 12 to 24, and is used to reset the top position, the middle position and the bottom position of the specific block BLK1 to 12, 18 and 24 in the next round of calculation. The flash memory device 110 (or the control circuit 1103) will perform the above operations until the boundary page position is determined. By doing so, the flash memory device 110 (or the control circuit 1103) can finally find and determine the first blank page unit at the beginning of multiple blank pages (that is, Figure 5 The page index value of the top page unit in the blank pages in the table) and the corresponding previous page unit (that is, Figure 5A page index value of a blank page unit at the beginning of the plurality of blank pages or a page index value of the corresponding previous page unit (i.e., the bottom page unit in the plurality of data pages) may be used as the value of the boundary page position.
[0066] It should be noted that in Figure 4 and Figure 5 In the embodiment of the present invention, the operation of finding and determining the boundary page position in the specific block BLK1 is performed by the flash memory device 110 (or the control circuit 1103) instead of the flash memory controller 105. In this way, the computing power of the flash memory controller 105 is not consumed and occupied.
[0067] In addition, in one embodiment, the address information may include only the block address information of the specific block. In other embodiments, the address information may include the block address information and a page address information, and when the boundary check command signal carrying the page address information is received, the flash memory device 110 (or the control circuit 1103) may ignore or discard the page address information included in the address information. In this way, the address information may be implemented with different data lengths, such as 5 bytes, 6 bytes or more bytes (but not limited to).
[0068] Figure 61 is an exemplary schematic diagram of the flash memory controller 105 sending a plurality of specific boundary check command signals to the flash memory device 110 in sequence according to an embodiment of the present invention. In this embodiment, a first boundary check command signal includes a boundary check prefix command, a first address information, and a middle command in sequence, the boundary check prefix command is, for example, 0x00, the first address information corresponds to a first plane, for example, the mth plane, and the middle command is, for example, 0x32 (but not limited to), and the first address information at least indicates a specific block address / index on the mth plane or indicates a combination of the specific block address / index and a page address / index on the mth plane. A second boundary check command signal includes a boundary check prefix command, a second address information, and an intermediate command in sequence, wherein the boundary check prefix command is, for example, 0x00, the second address information corresponds to a second plane, for example, the nth plane, and the intermediate command is, for example, 0x32, and the second address information at least indicates a specific block address / index on the nth plane or indicates a combination of the specific block address / index and a page address / index on the nth plane. A third boundary check command signal includes a boundary check prefix command, a third address information, and an intermediate command in sequence, wherein the boundary check prefix command is, for example, 0x00, the third address information corresponds to a third plane, for example, the oth plane, and the intermediate command is, for example, 0x32, and wherein the third address information at least indicates a specific block address / index on the oth plane or indicates a combination of the specific block address / index and a page address / index on the oth plane. A fourth boundary check command signal includes, in sequence, a boundary check prefix command, a fourth address information, and a boundary check confirmation command, wherein the boundary check prefix command is, for example, 0x00, the fourth address information corresponds to a fourth plane, for example, the p-th plane, and the boundary check confirmation command is, for example, 0x34. In addition, the fourth address information at least indicates a specific block address / index on the p-th plane or indicates a combination of the specific block address / index and a page address / index on the p-th plane.
[0069] Similarly, after receiving the plurality of boundary check command signals, the flash memory device 110 is used to read out the page data of one or more page units of the four blocks located on the four different planes respectively based on the specified block addresses, and check whether the page units are blank pages. The checking operation is similar to the aforementioned checking operation and will not be described in detail. In addition, the plurality of different blocks may also form a super block; this is not a limitation of the present invention.
[0070] In other embodiments, the format of the specific boundary check command signal can also be applied to different embodiments of different programming / writing modes, such as single-level-cell (SLC) mode and triple-level-cell (TLC) mode. Figure 7 1 is an exemplary schematic diagram of the flash memory controller 105 sending different specific boundary check command signals to the flash memory device 110 in the SLC mode and the TLC mode respectively according to an embodiment of the present invention. In this embodiment, for the SLC mode, a first specific check command signal includes an SLC mode indication command, a boundary check prefix command, a specific address information and a boundary check confirmation command in sequence, the SLC mode indication command is, for example, 0xA2 (but not limited to), the boundary check prefix command is, for example, 0x00, and the boundary check confirmation command is, for example, 0x34. The SLC mode indication command 0xA2 is used to indicate that this specific boundary check command signal is used for the SLC mode and that in the SLC mode, the flash memory device is used to check whether one or more page units of an SLC block are blank pages when receiving the specific boundary check command signal. In addition, the specific address information at least indicates a specific SLC block address / index of the SLC block or indicates a combination of the specific SLC block address / index and a page address / index. This is not a limitation of the present invention.
[0071] In the present embodiment, for the TLC mode, a second boundary check command signal includes a boundary check prefix command 0x00, specific address information, and a boundary check confirmation command 0x34 in sequence, but does not include an SLC mode indication command 0xA2. Based on the fact that the second boundary check command signal does not include the SLC mode indication command 0xA2, the flash memory device 110 can be used to check whether one or more page units (i.e., one or more upper / center / lower sub-page units) of a TLC block are blank pages when receiving the second boundary check command signal. In addition, the specific address information at least indicates a specific block address / index of the TLC block or indicates a combination of the specific block address / index and a page address / index. This is not a limitation of the present invention.
[0072] exist Figure 3 , Figure 6 and Figure 7In the embodiment of the present invention, after receiving a boundary check command signal sent from the flash memory controller 105, the flash memory device 110 needs to use a time period tRead2 (the time period will vary in different situations) to finally find the last page unit accessed / written by the flash memory device 105 before the power is suddenly turned off. Therefore, the flash memory controller 105 (or the processor 1051) is used to perform a polling operation to poll the status of the flash memory device 110 by checking the status register 1113 in the flash memory device 110 to determine whether the status register 1113 records the information that the flash memory device 110 is currently or has been ready. In addition, in other embodiments, the flash memory controller 105 (or the processor 1051) can be used to check the status of the pin R / B (or signal port R / B) of the specific communication interface to determine whether the flash memory device 110 is currently or has been ready. For example, when the pin R / B is at a low logic level, it indicates that the flash memory device 110 is busy. When the pin R / B is at a high logic level, it indicates that the flash memory device 110 is ready (eg, an idle state). This is not a limitation of the present invention.
[0073] After the flash memory controller 105 (or the processor 1051) determines that the flash memory device 110 is currently in a ready state, the flash memory controller 105 (or the processor 1051) can send a boundary report command signal to the flash memory device 110 through the specific communication interface to request or control the flash memory device 110 to output the found boundary page location. Figure 8 FIG. 1 is a schematic diagram showing an example of a format of the boundary position reporting command signal according to an embodiment of the present invention. Figure 8In the embodiment, the boundary position report command signal sent by the flash memory controller 105 may include a boundary report prefix command, a specific address information, and a boundary report confirmation command in sequence, wherein the boundary report prefix command is, for example, 0x06, and the boundary report confirmation command is, for example, 0xE3. After receiving the boundary report confirmation command 0xE3 of the boundary position report command signal, the flash memory device 110 (or the input / output control circuit 1101) reports or transmits a toggle data to the flash memory controller 105 through the specific communication interface, wherein the transmitted toggle data includes, for example, a plurality of bytes, wherein a first byte Byte0 and a second byte Byte1 may be used to indicate the boundary page position, that is, to indicate the page position / index value of the first blank page unit at the beginning of the specific block or to indicate the page position / index value of the last data page unit in the specific block, and the other bytes Byte2 and Byte3 may be reserved or optional. In other embodiments, other bytes of the switching data may be used to indicate other different information.
[0074] In addition, in one embodiment, the third byte Byte2 of the switching data can be used to indicate the one's complement value of the value indicated by the first byte Byte0, and the fourth byte Byte3 of the switching data can be used to indicate the one's complement value of the value indicated by the second byte Byte1, such as Fig. 9 In other embodiments, the switching data may include eight bytes, wherein the four bytes Byte0 to Byte3 in the first group may be used to indicate the value of the boundary page position and the complement value of the value of the boundary page position, and the four bytes Byte4 to Byte7 in the second group may be used to transmit the same data content as the four bytes Byte0 to Byte3 in the first group again, such as Fig.10 In one embodiment, the four bytes in the second group can also be used to indicate the values of other results. These related embodiment variations also fall within the scope of the present invention.
[0075] In addition, in other embodiments, the flash memory controller 105 (or the processor 1051) may send a specific boundary report get-feature signal to the flash memory device 110 to request or control the flash memory device 110 to transmit the information of the boundary page position in the specific block to the flash memory controller 105. Fig.11 FIG. 1 is a schematic diagram showing an example format of a specific boundary report acquisition-characteristic signal according to an embodiment of the present invention. Fig.11 In the embodiment, the boundary report acquisition-characteristic signal sent by the flash memory controller 105 is transmitted after the flash memory device 110 is ready, and includes a acquisition-characteristic command and a boundary report characteristic address in sequence, the acquisition-characteristic command is, for example, EEh (but not limited to), and the boundary report characteristic address can be implemented by using a one-cycle address, for example, a byte length (but not limited to), for example, 24h (that is, 0x24) and corresponds to a plane, for example, a specific plane. In addition, the value of the boundary report characteristic address can also be set to different values, such as 25h, 26h or 27h to indicate different planes respectively. For example, the flash memory device 110 may have four planes, and the plane numbers of the four planes are from 0 to 3. The values of the characteristic addresses for the four different planes can be 24h, 25h, 26h and 27h respectively. By doing so, when a boundary report obtain-feature signal is received and the boundary report obtain-feature signal carries an obtain-feature command EEh and a feature address 24h sent from the flash memory controller 105, the flash memory device 110 (or the control circuit 1103) can control the status register 1113 to immediately or later output and transmit the information of the boundary page position of a block located on a plane with plane number 0 to the input / output control circuit 1101, that is, the content of the four bytes Byte0 to Byte3 described in the previous paragraph, and the input / output control circuit 1101 can thus immediately or later transmit and output the parameter data (e.g., the content of the four bytes Byte0 to Byte3) to the flash memory controller 105 through the specific communication interface. For example, the data output by the flash memory device 110 may include four parameter data, each of which is implemented by one byte. A first parameter data Byte0 and a second parameter data Byte1 may be used to indicate the position of the first blank page unit of a specific block on the first plane with plane number 0, and the other parameter data Byte2 and Byte3 may be reserved or optional. Similarly, when the received characteristic address indicates 25h, 26h or 27h, the flash memory device 110 may transmit the information of the boundary page position of the block on the plane with plane number 1, 2 or 3 respectively. These operations are the same, so they are not repeated to simplify the description.
[0076] Fig.12 FIG. 1 is a schematic diagram showing an example of a format of a specific boundary report acquisition-characteristic signal according to another embodiment of the present invention. Fig.12In the embodiment, the boundary report acquisition-characteristic signal sent by the flash memory controller 105 is transmitted after the flash memory device 110 is ready, and includes a acquisition-characteristic command such as EEh (but not limited to) and a boundary report characteristic address in sequence. The boundary report characteristic address can be implemented by using a one-cycle address such as a byte length (but not limited to), such as 24h (that is, 0x24) and corresponds to multiple planes such as two different planes. In addition, the value of the boundary report characteristic address can also be set to a different value, such as 25h, to indicate another two different planes. For example, the flash memory device 110 can have four planes, whose plane numbers are from 0 to 3, and the values of the characteristic addresses of the four planes can be, for example, 24h, 25h, 26h and 27h respectively. By doing so, when a boundary report acquisition-characteristic signal is received and the boundary report acquisition-characteristic signal carries an acquisition-characteristic command EEh and a characteristic address 24h sent by the flash memory controller 105, the flash memory device 110 (or the control circuit 1103) can control the state register 1113 to output and transmit the information of the boundary page address of the two blocks on the two planes with plane numbers 0 and 1 to the input / output control circuit 1101, and the input / output control circuit 1101 can transmit and output the boundary page address of the two blocks on the two planes to the flash memory controller 105 through the specific communication interface. Similarly, when the received characteristic address indicates 25h, the flash memory device 110 can transmit the information of the boundary page address of the two blocks on the two planes with plane numbers 2 and 3 to the flash memory controller 105 respectively. The above operations are also the same, so they are not repeated again to simplify the description.
[0077] Additionally, in other embodiments, the flash memory controller 105 (or the processor 1051 ) may be configured to send a specific boundary check setting-characteristic signal to the flash memory device 110 to control the flash memory device 110 to automatically check and find the boundary page position in a specific block. Fig.13 FIG. 1 is a schematic diagram showing an example format of a specific boundary check setting-signal signal sent from the flash memory controller 105 to the flash memory device 110 through the specific communication interface according to an embodiment of the present invention. Fig.13In the embodiment, the specific boundary check set-characteristic signal may include a set-characteristic command (e.g., EFh), a specific characteristic address FA, and one or more parameter data (e.g., four parameter data P1, P2, P3, and P4) in sequence. The value of the specific characteristic address FA may be set to be related to the set-characteristic signal and indicate that the set-characteristic signal is used to control the flash memory device 110 to automatically check and find the boundary page position in a specific block, for example, its value may be 24h (but not limited to). The four parameter data P1, P2, P3, and P4 may be implemented by four bytes, for example. The first and second parameter data P1, P2 may be used to indicate and define information of a specific block address and / or information of a specific logical unit number (LUN) or a die address, for example. The third parameter data P3 may be used to indicate whether to enable more planes for the same characteristic address, and the fourth parameter data P4 may be reserved. For example (but not limited to), if the third parameter data P3 indicates a first logic bit '1', the same feature address carried in the boundary check set-feature signal is used to correspond to more or all planes, and if the third parameter data P3 indicates a second logic bit '0', the same feature address carried in the boundary check set-feature signal is only used for a single plane. By doing so, after receiving the specific boundary check set-feature signal, the flash memory device 110 can read and check one or more page units of one or more blocks located on multiple different planes based on the information of the specific block address to determine one or more boundary page positions, and the flash memory controller 105 (or the processor 1051) can check the status of the flash memory device 110 to determine whether the flash memory device 110 is ready and can control the flash memory device 110 to send the information of the one or more boundary page positions to the flash memory controller 105 by sending one of the boundary report command signal or the boundary report acquisition-feature signal. The above-mentioned modifications also fall into the scope of the present invention.
[0078] In addition, in other embodiments, the provided flash memory controller can be used to reduce or minimize the boundary search range for finding the boundary page position of a block by retrieving or obtaining a record point stored in the flash memory device 110, then using the record point to obtain a reduced or smaller boundary search range, and finally controlling the flash memory device 110 to search and find the boundary page position based on the reduced or smaller boundary search range. This can significantly reduce the total search time for blank pages.
[0079] Fig.14 FIG. 1 is a schematic diagram of another example of the storage device 100 according to another embodiment of the present invention. Fig.14 As shown in , a storage space SS in the memory cell array 1107 is provided for storing a temporary recording point of the flash memory controller 105 and can be implemented by using one or more page units of a block, wherein the block can be different from the block BLK1 (but not limited to). For example, when the flash memory controller 105 performs a sequential data write operation to write a series of page data to the flash memory device 110, the flash memory controller 105 (or the processor 1051) can control the flash memory device 110 to periodically store and update information of a temporary page position to the storage space SS. For example, the flash memory device 110 can update the information of the temporary page position every time when each N consecutive page units in a specific block have completed writing and become N data pages, and the value of N is variable, for example (but not limited to), the value of N can be 5, 10 or 20, and it can also be changed according to different operating conditions. In addition, the value of N may be controlled and determined by the flash memory controller 105 (or the processor 1051), and the updated temporary page position may be stored in a manner such as Fig.14 As such, once a SPOR event occurs, the flash memory controller 105 (or the processor 1051) may send a signal to the flash memory device 110 to cause the flash memory device 110 to read the updated temporary page position information from the storage space SS to the input / output control circuit 1101, so that the input / output control circuit 1101 may transmit the updated temporary page position information to the flash memory controller 105. Then, the flash memory controller 105 (or the processor 1051) may send a specific boundary check command signal or a specific boundary check setting-characteristic signal to the flash memory device 110 to control the flash memory device 110 to use the temporary page position as a starting page position to check and determine a boundary page position of a specific block. By doing so, the search range used to determine a boundary page position of the specific block can be greatly reduced or minimized.
[0080] Fig.15 FIG. 1 is a schematic diagram showing an example of the flash memory controller 105 sending a specific boundary check command signal to the flash memory device 110 according to another embodiment of the present invention. Fig.15In the embodiment, before sending the specific boundary check command signal, the flash memory controller 105 (or the processor 1051) is used to control the flash memory device 110 to read the information of the updated temporary page position from the storage space SS to the input / output control circuit 1101 and transmit the updated temporary page position (that is, a record point) back to the flash memory controller 105, so that the flash memory controller 105 (or the processor 1051) can use the temporary page position as a starting page address / index of a search range of a specific block. Then, after obtaining the record point, the flash memory controller 105 (or the processor 1051) sends the specific boundary check command signal, wherein the specific boundary check command signal may include, in sequence, a boundary check prefix command such as 0x00 (i.e., 00h, where the suffix h indicates that the value is a hexadecimal value), a specific address information, and a boundary check confirmation command such as 0x34 (i.e., 34h, different from the single page check confirmation command 33h). In addition, the specific address information is used to indicate a specific block address / index and the starting page address / index. Similarly, after receiving and storing the boundary check confirmation command 0x34 to the command register 1106, the flash memory device 110 (or the control circuit 1103) controls the row address decoder 1109 and the column address decoder 1108 to access or read out one or more page data of one or more page units in a specific block within the memory cell array 1107 one page unit at a time based on the specific address information with the starting page address / index.
[0081] For example (but not limited to), please refer again Figure 4, the flash memory controller 105 (or the processor 1051) can be used to update the recording point (i.e., the temporary page position) each time when the writing of 10 page units is completed. For example, if the temporary page position is at a page index P9, the page index of the last page unit written by the flash memory controller 105 can be P18 (with P9 as the starting point). In this case, the flash memory controller 105 (or the processor 1051) can control the flash memory device 110 to set a reduced or smaller search range, which can be defined by the starting page index (i.e., P9) and a range width greater than 10 page units. That is, the flash memory controller 105 (or the processor 1051) can control the flash memory device 110 to search only the page range from P9 to P19 of the specific block based on the starting page index (i.e., P9), so that the flash memory device 110 can read and check two pages of data in this example, that is, only read and check the two page data of the two page units corresponding to the page indexes P19 and P18, and then if the flash memory device 110 is used to read and check the page data one by one from the bottom of the reduced or smaller search range in sequence, the flash memory device 110 can determine the boundary page position as being at page index P18. Compared to Figure 4 For example, in which the bottom page unit of the entire block BLK1 is used to sequentially read out and check the page data, the operation of finding the boundary page position using the starting page address / index can minimize the time period tRead2 used to read out and check the required page data. In this way, the performance of the storage device 100 can be improved. Figure 5 The operation of the example is also similar to the above operation, for example, the starting page address / index can be used as Figure 5 In order to simplify the description, these operations are not described in detail.
[0082] Fig.161 is an exemplary schematic diagram of the flash memory controller 105 (or the processor 1051) sending a plurality of specific boundary check command signals to the flash memory device 110 in sequence according to another embodiment of the present invention. In this embodiment, before sending the plurality of specific boundary check command signals, the flash memory controller 105 (or the processor 1051) is used to control the flash memory device 110 to read the updated information of the one or more temporary page positions from the storage space SS to the input / output control circuit 1101 and transmit the updated information of the one or more temporary page positions (i.e., one or more recording points) to the flash memory controller 105, so that the flash memory controller 105 (or the processor 1051) can use the one or more temporary page positions as one or more starting page addresses of one or more search ranges of one or more specific blocks. Then, after obtaining the one or more recording points, the flash memory controller 105 (or the processor 1051) will send the plurality of specific boundary check command signals. In this example, a first boundary check command signal includes a boundary check prefix command such as 0x00, a first address information (having a first block address and a first start page address) corresponding to a first plane (such as the mth plane), and an intermediate command such as 0x32 (but not limited to). A second boundary check command signal includes a boundary check prefix command such as 0x00, a second address information (having a second block address and a second start page address) corresponding to a second plane (such as the nth plane), and an intermediate command such as 0x32 (but not limited to). A third boundary check command signal includes a boundary check prefix command such as 0x00, a third address information (having a third block address and a third start page address) corresponding to a third plane (such as the oth plane), and an intermediate command such as 0x32 (but not limited to). A fourth boundary check command signal includes, in sequence, a boundary check prefix command such as 0x00, a fourth address information (having a fourth block address and a fourth start page address) corresponding to a fourth plane (e.g., the pth plane), and a boundary check confirmation command such as 0x34. It should be noted that the contents of the above-mentioned multiple block addresses may be all the same, partially different, or all different, and the contents of the above-mentioned multiple start page addresses may be all the same, partially different, or all different. In addition, similarly, after receiving the multiple boundary check command signals, the flash memory device 110 is used to read out the page data of one or more page units of each of the four blocks located on the four different planes based on the indicated multiple block addresses, and to check whether the multiple page units are blank pages. The checking operation is similar, so it is not repeated. In addition, the multiple different blocks can also form a super block. These embodiment variations are not limitations of the present invention.
[0083] Fig.171 is an exemplary schematic diagram of the flash memory controller 105 sending a plurality of different specific boundary check command signals to the flash memory device 110 in the SLC mode and the TLC mode respectively according to another embodiment of the present invention. In this embodiment, for the SLC mode or the TLC mode, before sending a boundary check command signal, the flash memory controller 105 (or the processor 1051) can be used to control the flash memory device 110 to read the updated temporary page position information from the storage space SS to the input / output control circuit 1101 and transmit the updated temporary page position information (i.e., a recording point) to the flash memory controller 105, so that the flash memory controller 105 (or the processor 1051) can use the temporary page position as a starting page address of a search range of a specific block. Then, after obtaining the recording point, the flash memory controller 105 (or the processor 1051) can send the boundary check command signal. For the SLC mode, before sending a first specific boundary check command signal, the flash memory controller 105 (or the processor 1051) can be used to control the flash memory device 110 to read the updated temporary page position information from the storage space SS to the input / output control circuit 1101 and transmit the updated temporary page position information (i.e., a record point) to the flash memory controller 105, so that the flash memory controller 105 (or the processor 1051) can use the temporary page position as a start page address / index of a search range of a specific block. Then, after obtaining the record point, the flash memory controller 105 (or the processor 1051) is used to send the first specific boundary check command signal, which includes an SLC mode indication command such as 0xA2 (but not limited to), a boundary check prefix command such as 0x00, a specific address information (which has an SLC block address and the start page address) and a boundary check confirmation command such as 0x34 in sequence. Similarly, for the TLC mode, before sending a second specific boundary check command signal, the flash memory controller 105 (or the processor 1051) is used to control the flash memory device 110 to read the information of the updated temporary page position from the storage space SS to the input / output control circuit 1101 and transmit the information of the updated temporary page position (that is, a record point) to the flash memory controller 105, so that the flash memory controller 105 (or the processor 1051) can use the temporary page position as a starting page address / index of a search range for a specific block.Then, after obtaining the record point, the flash memory controller 105 (or the processor 1051) is used to send the second specific boundary check command signal, which may include a boundary check prefix command such as 0x00, a specific address information (which has a TLC block address and the start page address) and a boundary check confirmation command such as 0x34 in sequence, but does not include an SLC mode indication command 0xA2. Fig.17 The other operations of the embodiment in are similar to Figure 7 The operation of the embodiments in the present invention is not described in detail to simplify the description.
[0084] Fig.18 FIG. 1 is a schematic diagram showing an example format of a specific boundary check setting-characteristic signal sent from the flash memory controller 105 to the flash memory device 110 through the specific communication interface according to another embodiment of the present invention. Fig.18In the embodiment of the present invention, before sending a boundary check set-signature signal, the flash memory controller 105 (or the processor 1051) is used to control the flash memory device 110 to read the updated temporary page position information from the storage space SS to the input / output control circuit 1101 and transmit the updated temporary page position (i.e., a record point) to the flash memory controller 105, so that the flash memory controller 105 (or the processor 1051) can use the temporary page position as a starting page address / index of a search range of a specific block. Then, after obtaining the record point, the flash memory controller 105 (or the processor 1051) is used to send the boundary check set-signature signal, which may include a set-signature command such as EFh, a specific signature address FA, and one or more parameter data such as four parameter data P1, P2, P3, and P4 in sequence. The value of the specific feature address FA can be set to be associated with the set-feature signal and used to indicate that the set-feature signal is used to control the flash memory device 110 to automatically check and find the boundary page position in a specific block. For example, the value of the specific feature address FA can be 24h (but not limited to). The four parameter data P1, P2, P3 and P4 can be implemented by four bytes, for example. The first and second parameter data P1, P2 can be used to indicate and define information of a specific block address and / or information of a specific logical unit number (logical unit number, LUN) or a bare chip address. The third parameter data P3 and the fourth parameter data P4 can be used to indicate and define information of the start page address. By doing so, after receiving the specific boundary check set-feature signal, the flash memory device 110 can use the reduced and smaller page search range to read and check one or more page units of the specific block based on the information of the specific block address to determine the information of one or more boundary page positions. The above operations are similar to the above operations, so they will not be repeated here.
[0085] Fig.19 FIG. 1 is a schematic diagram showing an example format of a specific boundary check setting-characteristic signal sent from the flash memory controller 105 to the flash memory device 110 through the specific communication interface according to another embodiment of the present invention. Fig.19In the embodiment, the first and second parameter data P1, P2 can be used to indicate and define information of a specific block address and / or information of a specific logical unit number or a bare chip address. The third parameter data P3 is used to indicate and define information of the starting page address. The fourth parameter data P4 can be used to indicate whether to enable more planes for operations on the same feature address. For example (but not limited to), if the fourth parameter data P4 indicates a first logic bit '1', the same feature address carried in the boundary check setting-feature signal is used for more or all planes, and if the fourth parameter data P4 indicates a second logic bit '0', the same feature address carried in the boundary check setting-feature signal is only used for a single plane.
[0086] In addition, Fig.15 , Fig.16 , Fig.17 , Fig.18 and Fig.19 In the embodiment, after the flash memory device 110 becomes ready, the flash memory controller 105 (or the processor 1051) can still execute the same Figure 8 , Fig. 9 , Fig.10 , Fig.11 or Fig.12 The corresponding operations similar to those described in the embodiment of FIG. 1 are performed to control the flash memory device 110 to output the information of the boundary page position to the flash memory controller 105. These operations are similar and thus will not be described in detail.
[0087] In addition, it should be noted that in other embodiments, any of the above commands can be implemented by using one or more other different commands, such as being set to be different from a standard command or a vendor specific command, and can also 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, where the ending 'h' indicates that the value is a hexadecimal value. The following table shows different examples that can be used to implement one or more commands:
[0088] Type (Type) Command code (Opcode)
[0089] A collection of standard commands: 00h, 05h-06h, 10h-11h, 15h, 30h-32h, 35h, 3Fh, 60h, 70h, 78h, 80h-81h, 85h, 90h, D0h-D1h, D4h-D5h, D9h, E0h-E2h, ECh-EFh, F1h-F2h, F9h, FAh, FCh, FFh
[0090] Manufacturer-specific commands 01h to 04h, 07h to 0Ah, 0Ch to 0Fh, 13h, 16h to 17h, 19h to 1Ah, 1Dh to 2Fh, 33h to 34h, 36h to 3Eh, 40h to 5Fh, 61h, 65h to 6Fh, 71h to 75h, 77h, 79h to 7Fh, 84h, 87h to 8Dh, 8Fh, 91h to CFh, D2h to D3h, D6h to D8h, DAh to DFh, E3h to EBh, F0h, F3h to F8h, FBh, FDh to FEh
[0091] Reserved commands: 0Bh, 12h, 14h, 18h, 1Bh~1Ch, 62h~64h, 76h, 82h~83h, 86h, 8Eh
[0092] In addition, it should be noted that in other embodiments, any of the above-mentioned feature addresses can be implemented by using other different values, such as using a reserved feature address value or a manufacturer-specific feature address value that is not used by a manufacturer. The corresponding information and related description content of the feature information FA are described in the following table:
[0093]
[0094]
[0095] In one embodiment, the feature information FA may also be a feature address such as a value 0x24 (i.e., 24h, where the suffix 'h' indicates that the value is a hexadecimal value). In other embodiments, the above-mentioned reserved addresses such as 00h, 03h~0Fh, 11h~1Fh, 24h~2Fh or other reserved addresses may be used to implement the feature information FA. These implementation variations are not limitations of the present invention.
[0096] 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 device, the flash memory device being used in a storage device and coupled to a flash memory controller of the storage device through a specific communication interface, and the flash memory device comprising: an input / output control circuit coupled to the flash memory controller through the specific communication interface; a command register coupled to the input / output control circuit for buffering command information sent from the flash memory controller and transmitted through the input / output control circuit; an address register coupled to the input / output control circuit for buffering address information sent from the flash memory controller and transmitted through the input / output control circuit; A memory cell array having at least a first plane and a second plane different from the first plane; at least one address decoder coupled to the memory cell array; a status register coupled to the input / output control circuit; as well as A control circuit is coupled to the at least one address decoder, the memory cell array, the address register, the command register and the status register, and is used to control the at least one address decoder to read out a temporary page position stored in a storage space of the memory cell array, control the input / output control circuit to transmit the temporary page position to the flash memory controller through the specific communication interface, and control the at least one address decoder to read out a plurality of page data of a plurality of page units of a specific block in the memory cell array in response to a specific boundary check command signal or a specific boundary check setting-characteristic signal sent by the flash memory controller and through the specific communication interface to determine whether the plurality of page units are blank pages; wherein the temporary page position is used by the flash memory controller as a starting page address and is carried in the specific boundary check command signal or the specific boundary check setting-characteristic signal sent by the flash memory controller.
2. The flash memory device according to claim 1, wherein: The control circuit is used for determining a boundary page position between a plurality of data pages and a plurality of blank pages of the specific block based on a smaller search range defined by the start page address.
3. The flash memory device according to claim 1, wherein: The specific boundary check command signal includes a boundary check prefix command, a specific address information and a boundary check confirmation command in sequence, and the specific address information is used to indicate a specific block address of the specific block and the start page address.
4. The flash memory device according to claim 1, wherein: The control circuit is used to control the at least one address decoder to read out multiple page data of multiple page units of multiple specific blocks on multiple planes in the memory cell array in response to multiple boundary check command signals sent in sequence by the flash memory controller and through the specific communication interface to determine whether the multiple page units are blank pages; the multiple boundary check command signals include a first boundary check command signal and a second boundary check command signal; the first boundary check command signal carries a first block address and a first starting page address of a first plane, and the second boundary check command signal carries a second block address and a second starting page address of a second plane; the first block address is the same as or different from the second block address; and the first starting page address is the same as or different from the second starting page address.
5. The flash memory device according to claim 1, wherein: The specific boundary check set-characteristic signal includes a set-characteristic command, a specific characteristic address, a first parameter data, a second parameter data, a third parameter data and a fourth parameter data in sequence; the specific characteristic address is related to the operation of controlling the flash memory device to find and determine whether the multiple page units are blank pages; the first parameter data and the second parameter data are used to indicate a specific block address of the specific block; the third parameter data and the fourth parameter data are used to indicate the starting page address.
6. The flash memory device according to claim 1, wherein: The flash memory device is used for reporting and transmitting a boundary page position between a plurality of data pages and a plurality of blank pages of the specific block to the flash memory controller through the specific communication interface in response to a boundary position reporting command signal or a boundary position acquisition-characteristic signal.
7. The flash memory device according to claim 6, wherein: The boundary position report command signal includes a boundary report prefix command, a specific address information indicating a specific block address of the specific block, and a boundary report confirmation command in sequence; the data of the boundary page position is transmitted and follows the boundary report confirmation command.
8. The flash memory device according to claim 7, wherein: The boundary position report command signal includes a boundary report prefix command, a specific address information indicating a specific block address of the specific block, and a boundary report confirmation command in sequence; the data of the boundary page position is transmitted from the flash memory device to the flash memory controller after the boundary report confirmation command is received.
9. The flash memory device according to claim 8, wherein: The complement data of the boundary page position is transmitted from the flash memory device to the flash memory controller after the data at the boundary page position is transmitted.
10. The flash memory device according to claim 6, wherein: The boundary position acquisition-characteristic signal includes a acquisition-characteristic command and a boundary report characteristic address in sequence, and the boundary report characteristic address is used to indicate a specific plane, and the flash memory device is used to report and transmit the boundary page position in the specific block on the specific plane to the flash memory controller after the boundary position acquisition-characteristic signal is received.
11. The flash memory device according to claim 6, wherein: The boundary position acquisition-characteristic signal includes a acquisition-characteristic command and a boundary report characteristic address in sequence, and the boundary report characteristic address is used to indicate multiple planes, and the flash memory device is used to report and transmit multiple boundary page positions in multiple specific blocks on the multiple planes to the flash memory controller after the boundary position acquisition-characteristic signal is received.
12. A method of a flash memory device, the flash memory device being used in a storage device and coupled to a flash memory controller of the storage device through a specific communication interface, and the method comprising: Providing an input / output control circuit coupled to the flash memory controller through the specific communication interface; Providing a command register coupled to the input / output control circuit to buffer command information sent from the flash memory controller and transmitted through the input / output control circuit; Providing an address register coupled to the input / output control circuit to buffer address information sent from the flash memory controller and transmitted through the input / output control circuit; A memory cell array is provided, which has at least a first plane and a second plane different from the first plane; Providing at least one address decoder coupled to the memory cell array; Providing a status register coupled to the input / output control circuit; Controlling the at least one address decoder to read out a temporary page position stored in a storage space of the memory cell array; Controlling the input / output control circuit to transmit the temporary page position to the flash memory controller through the specific communication interface; as well as In response to a specific boundary check command signal or a specific boundary check setting-characteristic signal sent by the flash memory controller and passed through the specific communication interface, the at least one address decoder is controlled to read out a plurality of page data of a plurality of page units of a specific block in the memory cell array to determine whether the plurality of page units are blank pages; The temporary page position is used by the flash memory controller as a starting page address and is carried in the specific boundary check command signal or the specific boundary check setting-characteristic signal sent by the flash memory controller.
13. The method according to claim 12, characterized in that Also included: A boundary page position between a plurality of data pages and a plurality of blank pages of the specific block is determined based on a smaller search range defined by the start page address.
14. The method according to claim 12, characterized in that The specific boundary check command signal includes a boundary check prefix command, a specific address information and a boundary check confirmation command in sequence, and the specific address information is used to indicate a specific block address of the specific block and the start page address.
15. The method according to claim 12, characterized in that Also included: In response to a plurality of boundary check command signals sequentially sent by the flash memory controller through the specific communication interface, the at least one address decoder is controlled to read a plurality of page data of a plurality of page units of a plurality of specific blocks on a plurality of planes in the memory cell array to determine whether the plurality of page units are blank pages; The multiple boundary check command signals include a first boundary check command signal and a second boundary check command signal; the first boundary check command signal carries a first block address and a first starting page address of a first plane, and the second boundary check command signal carries a second block address and a second starting page address of a second plane; the first block address is the same as or different from the second block address; and the first starting page address is the same as or different from the second starting page address.
16. The method according to claim 12, characterized in that The specific boundary check set-characteristic signal includes a set-characteristic command, a specific characteristic address, a first parameter data, a second parameter data, a third parameter data and a fourth parameter data in sequence; the specific characteristic address is related to the operation of controlling the flash memory device to find and determine whether the multiple page units are blank pages; the first parameter data and the second parameter data are used to indicate a specific block address of the specific block; the third parameter data and the fourth parameter data are used to indicate the starting page address.
17. The method according to claim 12, characterized in that Also included: In response to a boundary position reporting command signal or a boundary position acquisition-characteristic signal, a boundary page position between a plurality of data pages and a plurality of blank pages of the specific block is reported and transmitted to the flash memory controller through the specific communication interface.
18. The method according to claim 17, characterized in that The boundary position report command signal includes a boundary report prefix command, a specific address information indicating a specific block address of the specific block, and a boundary report confirmation command in sequence; the data of the boundary page position is transmitted and follows the boundary report confirmation command.
19. The method according to claim 18, characterized in that The boundary position report command signal includes a boundary report prefix command, a specific address information indicating a specific block address of the specific block, and a boundary report confirmation command in sequence; the data of the boundary page position is transmitted from the flash memory device to the flash memory controller after the boundary report confirmation command is received.
20. The method of claim 19, wherein: The complement data of the boundary page position is transmitted from the flash memory device to the flash memory controller after the data at the boundary page position is transmitted.
21. The method of claim 17, wherein: The boundary position acquisition-characteristic signal includes a acquisition-characteristic command and a boundary report characteristic address in sequence, and the boundary report characteristic address is used to indicate a specific plane, and the flash memory device is used to report and transmit the boundary page position in the specific block on the specific plane to the flash memory controller after the boundary position acquisition-characteristic signal is received.
22. The method of claim 17, wherein: The boundary position acquisition-characteristic signal includes a acquisition-characteristic command and a boundary report characteristic address in sequence, and the boundary report characteristic address is used to indicate multiple planes, and the flash memory device is used to report and transmit multiple boundary page positions in multiple specific blocks on the multiple planes to the flash memory controller after the boundary position acquisition-characteristic signal is received.
23. A flash memory controller, the flash memory controller being used in a storage device and coupled to a flash memory device of the storage device through a specific communication interface, and the flash memory controller comprising: an input / output circuit coupled to the flash memory device through the specific communication interface for sending a plurality of commands and data between the flash memory device and a processor; as well as The processor is coupled to the input / output circuit and is used to: Controlling the input / output circuit to enable the flash memory device to read out and transmit a temporary page position in a storage space of a memory cell array of the flash memory device to the flash memory controller; as well as Controlling the input / output circuit to send a specific boundary check command signal or a specific boundary check setting-characteristic signal to the flash memory device through the specific communication interface, so that the flash memory device reads a plurality of page data of a plurality of page units of a specific block in the memory cell array and determines whether the plurality of page units are blank pages; The temporary page position is used by the processor as a starting page address and is carried in the specific boundary check command signal or the specific boundary check setting-characteristic signal sent by the flash memory controller.
24. The flash memory controller according to claim 23, wherein: The flash memory controller controls the flash memory device to determine a boundary page position between a plurality of data pages and a plurality of blank pages of the specific block based on a smaller search range defined by the start page address.
25. The flash memory controller according to claim 23, wherein: The specific boundary check command signal includes a boundary check prefix command, a specific address information and a boundary check confirmation command in sequence, and the specific address information is used to indicate a specific block address of the specific block and the start page address.
26. The flash memory controller according to claim 23, wherein: The flash memory control is used to control the flash memory device to control the at least one address decoder to read out multiple page data of multiple page units of multiple specific blocks on multiple planes in the memory cell array in response to multiple boundary check command signals sent in sequence by the flash memory controller and through the specific communication interface to determine whether the multiple page units are blank pages; the multiple boundary check command signals include a first boundary check command signal and a second boundary check command signal; the first boundary check command signal carries a first block address and a first starting page address of a first plane, and the second boundary check command signal carries a second block address and a second starting page address of a second plane; the first block address is the same as or different from the second block address; and the first starting page address is the same as or different from the second starting page address.
27. The flash memory controller according to claim 23, wherein: The specific boundary check set-characteristic signal includes a set-characteristic command, a specific characteristic address, a first parameter data, a second parameter data, a third parameter data and a fourth parameter data in sequence; the specific characteristic address is related to the operation of controlling the flash memory device to find and determine whether the multiple page units are blank pages; the first parameter data and the second parameter data are used to indicate a specific block address of the specific block; the third parameter data and the fourth parameter data are used to indicate the starting page address.
28. The flash memory controller according to claim 23, wherein: The processor controls the input / output circuit to send a boundary position reporting command signal or a boundary position acquisition-characteristic signal, so that the flash memory device reports and transmits a boundary page position between multiple data pages and multiple blank pages of the specific block to the flash memory controller through the specific communication interface.
29. The flash memory controller according to claim 28, wherein: The boundary position report command signal includes a boundary report prefix command, a specific address information indicating a specific block address of the specific block, and a boundary report confirmation command in sequence; the data of the boundary page position is transmitted and follows the boundary report confirmation command.
30. The flash memory controller according to claim 29, wherein: The boundary position report command signal includes a boundary report prefix command, a specific address information indicating a specific block address of the specific block, and a boundary report confirmation command in sequence; the data of the boundary page position is transmitted from the flash memory device to the flash memory controller after the boundary report confirmation command is received.
31. The flash memory controller according to claim 30, wherein: The complement data of the boundary page position is transmitted from the flash memory device to the flash memory controller after the data at the boundary page position is transmitted.
32. The flash memory controller of claim 28, wherein: The boundary position acquisition-characteristic signal includes a acquisition-characteristic command and a boundary report characteristic address in sequence, and the boundary report characteristic address is used to indicate a specific plane, and the flash memory device is used to report and transmit the boundary page position in the specific block on the specific plane to the flash memory controller after the boundary position acquisition-characteristic signal is received.
33. The flash memory controller of claim 28, wherein: The boundary position acquisition-characteristic signal includes a acquisition-characteristic command and a boundary report characteristic address in sequence, and the boundary report characteristic address is used to indicate multiple planes, and the flash memory device is used to report and transmit multiple boundary page positions in multiple specific blocks on the multiple planes to the flash memory controller after the boundary position acquisition-characteristic signal is received.
