A method and system for improving 3D NAND FLASH parallelism within a channel
By inserting read/erase commands and data during the busy time period of the write command of 3D NAND FLASH, the read delay problem caused by the write command occupying the channel is solved, and the read and write parallelism is improved and the write delay is flexibly adjusted.
Patent Information
- Application Number
- CN202111616821.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-28
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2041-12-28
AI Technical Summary
3D NAND FLASH occupies the channel when writing commands, causing other NAND FLASH to be unable to carry out read data transmission, increasing read latency, and the existing technology is not flexible enough when reading and writing are mixed, resulting in a waste of bandwidth.
Insert other NAND FLASH read/erase commands and read/erase data during the busy time period of the upper page, lower page, and middle page of a write command, and adjust the write delay through a timer to improve read and write parallelism.
It reduces the read delay of the channel, improves the read and write parallelism, ensures the balance of write performance, allows real-time adjustment of the write delay according to user needs, and improves the parallelism of NAND FLASH in the same channel.
Smart Images

Figure CN114333948B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data storage, and in particular to a method and system for improving the parallelism of 3D NAND FLASH in a channel. Background Art
[0002] SSDs that use 3D NAND FLASH as storage media usually require fast response to the read commands of the host computer, that is, low read latency. One channel of the SSD will be connected to multiple 3D NAND FLASH, which work independently and are selected by the chip select signal CE. The write characteristics of 3D NAND FLASH require three pages of data to be written continuously each time. Therefore, when mixed reading and writing, if a 3D NAND FLASH in the same channel is executing a write command, it will occupy the channel and other NAND FLASH cannot perform read data transmission, so the read latency increases. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a method and system for improving the parallelism of 3D NAND FLASH in a channel. According to the read and write characteristics of 3D NAND FLASH, commands of other FLASH are inserted into write commands and write data to reduce the read delay of the channel and improve the read, write and erase parallelism.
[0004] In order to solve the technical problem, the technical solution adopted by the present invention is: a method for improving the parallelism of 3D NAND FLASH in a channel, characterized in that: the method not only inserts the read / erase command and read / erase data of other NAND FLASH in the write busy time of the upper page of a write command, but also inserts the read / erase command and read / erase data of other NAND FLASH in the busy time period of the lower page and middle page of the write command.
[0005] Furthermore, other NAND FLASH read / erase commands are inserted into the busy time period of the lower page and the middle page of a write command, and NAND FLASH read / erase data is inserted into the write busy time of the upper page of a write command.
[0006] Furthermore, the execution flow of inserting other NAND FLASH read / erase commands or read / erase data into a write command is as follows:
[0007] S01), waiting for a new command or a read / erase command to have feedback or the timer to expire;
[0008] S02), determine whether the timer has expired, if yes, execute step S03); if not, execute step S04);
[0009] S03), send a page write command and data downward, if it is a lower page or middle page write, then start the timer at the same time, pull up the write execution flag, if it is an upper page write, then pull down the write execution flag;
[0010] S04), determine whether condition 1 is met, condition 1 is condition 2 or condition 3, condition 2 is that the current write is being executed and read data insertion is allowed and the read / erase command has feedback, condition 3 is that there is no write being executed but there is read / erase feedback, if condition 1 is met, execute step S05), if condition 1 is not met, execute step S06);
[0011] S05), send read / erase data downward, and then go to step S01);
[0012] S06), determine whether there is a new command, if yes, execute step S07), if not, execute step S08);
[0013] S07), if it is a new read / erase command, send the read / erase command downward and suspend the data read task at the same time, and then go to step S01);
[0014] S08), determine whether there is another FLASH currently executing writing, if yes, go to step S01); if not, go to step S09);
[0015] S09), determine whether the write command does not allow other commands to be inserted, if so, send three consecutive pages of write commands and data downward, if not, go to step S03).
[0016] Furthermore, the write delay sacrifice is adjusted by changing the timer period.
[0017] The present invention also provides a system for improving the parallelism of 3D NAND FLASH in a channel. The system not only inserts the read / erase command and read / erase data of other NAND FLASH in the write busy time of the upper page of a write command, but also inserts the read / erase command and read / erase data of other NAND FLASH in the busy time period of the lower page and middle page of the write command.
[0018] The system includes an arbitration module, a timer, a write control module, a queue for storing pending read data commands, and a command generation module;
[0019] The arbitration module is connected to the timer and the input new command and read command feedback, and determines what task needs to be performed currently according to the input new command, read command feedback and timer;
[0020] The command generation module is connected to the arbitration module and the write control module, and outputs the final command to the downstream according to the output result of the arbitration module and the signal of the write control module;
[0021] The timer is connected between the write control module and the arbitration module. The write control module controls the start and stop of the timer. The timer is one of the factors for the arbitration module to determine which task to perform.
[0022] The write control is connected to the command generation module, and the write control module controls the splitting or combining of write commands;
[0023] The queue for placing the pending read data commands is connected to the command generation module and is used for storing the pending read data commands.
[0024] Furthermore, the system inserts other NAND FLASH read / erase commands during the busy time periods of the lower page and middle page of a write command, and inserts NAND FLASH read / erase data during the write busy time of the upper page of a write command.
[0025] Furthermore, the trigger conditions of this system include three types: 1. The arrival of a new command; 2. Read command feedback; 3. Timer expiration, the trigger priority is the timer priority is the highest, followed by read command feedback, and finally the new command; this system has four output situations: 1. Output three consecutive write commands; 2. Output a single write command; 3. Output the newly inserted command. If the command is a read command, the read data task needs to be suspended; 4. Output the read data task.
[0026] Furthermore, the arbitration module determines what task needs to be performed currently and the process of performing the corresponding task according to the input new command, the read command feedback and the timer is as follows:
[0027] S01), waiting for a new command or a read / erase command to have feedback or the timer to expire;
[0028] S02), determine whether the timer has expired, if yes, execute step S03); if not, execute step S04);
[0029] S03), send a page write command and data downward, if it is a lower page or middle page write, then start the timer at the same time, pull up the write execution flag, if it is an upper page write, then pull down the write execution flag;
[0030] S04), determine whether condition 1 is met, condition 1 is condition 2 or condition 3, condition 2 is that the current write is being executed and read data insertion is allowed and the read / erase command has feedback, condition 3 is that there is no write being executed but there is read / erase feedback, if condition 1 is met, execute step S05), if condition 1 is not met, execute step S06);
[0031] S05), send read / erase data downward, and then go to step S01);
[0032] S06), determine whether there is a new command, if yes, execute step S07), if not, execute step S08);
[0033] S07), if it is a new read / erase command, send the read / erase command downward and suspend the data read task at the same time, and then go to step S01);
[0034] S08), determine whether there is another FLASH currently executing writing, if yes, go to step S01); if not, go to step S09);
[0035] S09), determine whether the write command does not allow other commands to be inserted, if so, send three consecutive pages of write commands and data downward, if not, go to step S03).
[0036] Furthermore, the write delay sacrifice is adjusted by changing the timer period.
[0037] Beneficial effects of the present invention: Based on the read and write characteristics of 3D NAND FLASH, the present invention inserts commands of other FLASH in a write command and write data, reduces the read delay of the channel, and improves the parallelism of read, write and erase. In order to ensure the balance between write performance and read performance, a set of judgment processes based on new commands, read command feedback and timer triggering are designed. According to this process, during the busy time period of the lower page and middle page of a write command, the read / erase commands and read / erase data of other NAND FLASH are inserted without sacrificing too much write performance. According to user needs, the write delay can be adjusted in real time to obtain low read delay and improve the parallelism of NAND FLASH in the same channel. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A schematic diagram of the principle of improving parallelism of the present invention;
[0039] Figure 2 is an execution flow chart of the present invention;
[0040] Figure 3 The figure is a functional block diagram of the system of the present invention. DETAILED DESCRIPTION
[0041] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
[0042] Example 1
[0043] This embodiment discloses another method for improving the parallelism of 3D NAND FLASH in a channel. To make this method clearer, the principle of reading and writing data of 3D NAND FLASH is first described.
[0044] The writing of 3D NAND FLASH includes the following stages: writing commands, writing data, and NAND FLASH busy response (busy). The commands and data are divided into lower page, middle page, and upper page. There will be a busy time of NAND FLASH at the end of each data segment. During the busy time, the NAND FLASH cannot respond to read or erase commands, while other NAND FLASH on the same channel can respond to read commands. The busy time of the lower page and the middle page is very short compared to the busy time of the upper page. Usually, in order to simplify the design, the general practice is not to perform other FLASH operations during the busy time period of the lower page and the middle page. In this embodiment, the read command of other NAND FLASH is inserted in the busy time period of the lower page and the middle page, rather than only in the write busy of the upper page.
[0045] The NAND FLASH controller splits a NAND FLASH write command into three command segments. When executing the first write lower page, it waits for the data transmission to be completed and checks whether there is a read or erase command on other chip select signals CE. If so, it sends down commands of other chip select signals CE. This is to sacrifice write performance in exchange for the read and erase performance of other NAND FLASH in the same channel.
[0046] like Figure 1 As shown in the figure, 1b is a schematic diagram of the original FLASH operation, and 1a is a schematic diagram of the present method. In 1a, ① of the write process is the time period between the lower page write and the middle page write, and ② is the time period between the middle page write and the upper page write. ① and ② are relatively short, and 1b does not perform operations in these two time periods. 1a intersperses commands of other FLASHs in the same channel between ① and ② of the write process, which will increase the FLASH parallelism in the channel at the expense of the write delay of the line.
[0047] ③ is the time period after the upper page is written. This time is relatively long. The read command takes a shorter time, while the read data takes a longer time. As a further optimization, the read data of FLASH 2 can be inserted in ③ instead of ②. At this time, the write delay sacrifice is minimal.
[0048] like Figure 2 As shown, the execution process of this method is:
[0049] S01), waiting for a new command or a read / erase command to have feedback or the timer to expire;
[0050] S02), determine whether the timer has expired, if yes, execute step S03); if not, execute step S04);
[0051] S03), send a page write command and data downward, if it is a lower page or middle page write, then start the timer at the same time, pull up the write execution flag, if it is an upper page write, then pull down the write execution flag;
[0052] S04), determine whether condition 1 is met, condition 1 is condition 2 or condition 3, condition 2 is that the current write is being executed and read data insertion is allowed and the read / erase command has feedback, condition 3 is that there is no write being executed but there is read / erase feedback, if condition 1 is met, execute step S05), if condition 1 is not met, execute step S06);
[0053] S05), send read / erase data downward, and then go to step S01);
[0054] S06), determine whether there is a new command, if yes, execute step S07), if not, execute step S08);
[0055] S07), if it is a new read / erase command, send the read / erase command downward and suspend the data read task at the same time, and then go to step S01);
[0056] S08), determine whether there is another FLASH currently executing writing, if yes, go to step S01); if not, go to step S09);
[0057] S09), determine whether the write command does not allow other commands to be inserted, if so, send three consecutive pages of write commands and data downward, if not, go to step S03).
[0058] Based on the above steps and the attached Figure 2It can be seen that there are three triggering conditions for this method: 1. The arrival of a new command; 2. Read command feedback. After receiving the read command feedback, the read data task can be sent to the downstream; 3. The timer expires. The timer is used to limit the window period length or number of other commands inserted in the write command. Later, the write delay sacrifice can be adjusted in real time according to user needs to meet system performance requirements.
[0059] The trigger priority is the timer priority, followed by the pending data read task, and finally the new command. This design can prevent the ongoing command from being locked.
[0060] Example 2
[0061] The present embodiment discloses a system for improving the parallelism of 3D NAND FLASH in a channel. The system not only inserts read / erase commands and read / erase data of other NAND FLASH in the write busy time of the upper page of a write command, but also inserts read / erase commands and read / erase data of other NAND FLASH in the busy time periods of the lower page and middle page of the write command.
[0062] In order to minimize the write latency penalty, the system inserts other NAND FLASH read / erase commands during the busy time of the lower page and middle page of a write command, and inserts NAND FLASH read / erase data during the write busy time of the upper page of a write command.
[0063] The trigger conditions of this system include three types: 1. New command arrival; 2. Read command feedback; 3. Timer expiration. The trigger priority is the highest priority of the timer, followed by the read command feedback, and finally the new command. This design can prevent the ongoing command from being locked.
[0064] This system has four output situations: 1. Output three consecutive write commands; 2. Output a single write command; 3. Output a newly inserted command. If the command is a read command, the read data task needs to be suspended; 4. Output the read data task.
[0065] like Figure 3 As shown, the system includes an arbitration module arbiter, a timer timer, a write control module wr_ctrl, a queue rd_hang_que for storing read data command hangs, and a command generation module gen_cmd_slice.
[0066] The arbitration module connects the timer and the input new command and read command feedback, and determines what task needs to be performed based on the input new command, read command feedback and timer; the judgment process and priority are based on Figure 2 Decide.
[0067] The command generation module is connected to the arbitration module and the write control module, and outputs the final command to the downstream according to the output result of the arbitration module and the signal of the write control module.
[0068] The timer is connected between the write control module and the arbitration module. The write control module controls the start and stop of the timer. The timer is one of the factors for the arbitration module to determine which task to perform.
[0069] The write control is connected to the command generation module, and the write control module controls the splitting or combination of write commands.
[0070] The queue for placing the pending read data commands is connected to the command generation module and is used for storing the pending read data commands.
[0071] The user can configure a timer to control the number of inserted commands or the insertable time, thereby controlling the read and write delays to meet user needs.
[0072] The traditional solution is not flexible enough in controlling read-write mixing and will cause bandwidth waste. The present invention can adjust the write delay in real time according to user needs, exchange for low read delay, and improve the NAND FLASH parallelism in the same channel.
[0073] The above description is only the basic principle and preferred embodiments of the present invention. Improvements and substitutions made by those skilled in the art based on the present invention belong to the protection scope of the present invention.
Claims
1. A method for improving the parallelism of 3D NAND FLASH in a channel, characterized by: This method not only inserts the read / erase command and read / erase data of other NAND FLASH in the write busy time of the upper page of a write command, but also inserts the read / erase command and read / erase data of other NAND FLASH in the busy time period of the lower page and middle page of the write command; the execution flow of inserting the read / erase command or read / erase data of other NAND FLASH in a write command is: S01), waiting for a new command or a read / erase command to have feedback or the timer to expire; S02), determine whether the timer has expired, if yes, execute step S03); if not, execute step S04); S03), send a page write command and data downward, if it is a lower page or middle page write, then start the timer at the same time, pull up the write execution flag, if it is an upper page write, then pull down the write execution flag; S04), determine whether condition 1 is met, condition 1 is condition 2 or condition 3, condition 2 is that the current write is being executed and read data insertion is allowed and the read / erase command has feedback, condition 3 is that there is no write being executed but there is read / erase feedback, if condition 1 is met, execute step S05), if condition 1 is not met, execute step S06); S05), send read / erase data downward, and then go to step S01); S06), determine whether there is a new command, if yes, execute step S07), if not, execute step S08); S07), if it is a new read / erase command, send the read / erase command downward and suspend the data read task at the same time, and then go to step S01); S08), determine whether there is another FLASH currently executing writing, if yes, go to step S01); if not, go to step S09); S09), determine whether the write command does not allow other commands to be inserted, if so, send three consecutive pages of write commands and data downward, if not, go to step S03).
2. The method for improving the parallelism of 3D NAND FLASH in a channel according to claim 1, characterized in that: During the busy time of the lower page and middle page of a write command, insert other NAND FLASH read / erase commands, and insert NAND FLASH read / erase data during the write busy time of the upper page of a write command.
3. The method for improving the parallelism of 3D NAND FLASH in a channel according to claim 1, characterized in that: The write latency penalty can be adjusted by changing the timer period.
4. A system for improving the parallelism of 3D NAND FLASH in a channel, characterized by: This system not only inserts other NAND FLASH read / erase commands and read / erase data during the write busy time of the upper page of a write command, but also inserts other NAND FLASH read / erase commands and read / erase data during the busy time of the lower page and middle page of the write command. The system includes an arbitration module, a timer, a write control module, a queue for storing pending read data commands, and a command generation module; The arbitration module is connected to the timer and the input new command and read command feedback, and determines what task needs to be performed currently according to the input new command, read command feedback and timer; The command generation module is connected to the arbitration module and the write control module, and outputs the final command to the downstream according to the output result of the arbitration module and the signal of the write control module; The timer is connected between the write control module and the arbitration module. The write control module controls the start and stop of the timer. The timer is one of the factors for the arbitration module to determine which task to perform. The write control is connected to the command generation module, and the write control module controls the splitting or combining of write commands; The queue for storing the pending read data commands is connected to the command generation module and is used for storing the pending read data commands.
5. The system for improving the parallelism of 3D NAND FLASH in a channel according to claim 4, characterized in that: This system inserts other NAND FLASH read / erase commands during the busy time of the lower page and middle page of a write command, and inserts NAND FLASH read / erase data during the write busy time of the upper page of a write command.
6. The system for improving the parallelism of 3D NAND FLASH in a channel according to claim 4, characterized in that: The trigger conditions of this system include three types:
1. The arrival of a new command; 2. Read command feedback.
3. When the timer expires, the trigger priority is the timer priority, followed by the read command feedback, and finally the new command. This system has four output situations:
1. Output three consecutive write commands; 2. Output a single write command; 3. Output the newly inserted command. If the command is a read command, the read data task needs to be suspended; 4. Output the read data task.
7. The system for improving the parallelism of 3D NAND FLASH in a channel according to claim 4, characterized in that: The arbitration module determines what task needs to be performed and the process of performing the corresponding task based on the input new command, read command feedback and timer: S01), waiting for a new command or a read / erase command to have feedback or the timer to expire; S02), determine whether the timer has expired, if yes, execute step S03); if not, execute step S04); S03), send a page write command and data downward, if it is a lower page or middle page write, then start the timer at the same time, pull up the write execution flag, if it is an upper page write, then pull down the write execution flag; S04), determine whether condition 1 is met, condition 1 is condition 2 or condition 3, condition 2 is that the current write is being executed and read data insertion is allowed and the read / erase command has feedback, condition 3 is that there is no write being executed but there is read / erase feedback, if condition 1 is met, execute step S05), if condition 1 is not met, execute step S06); S05), send read / erase data downward, and then go to step S01); S06), determine whether there is a new command, if yes, execute step S07), if not, execute step S08); S07), if it is a new read / erase command, send the read / erase command downward and suspend the data read task at the same time, and then go to step S01); S08), determine whether there is another FLASH currently executing writing, if yes, go to step S01); if not, go to step S09); S09), determine whether the write command does not allow other commands to be inserted, if so, send three consecutive pages of write commands and data downward, if not, go to step S03).
8. The system for improving the parallelism of 3D NAND FLASH in a channel according to claim 4, characterized in that: The write latency penalty can be adjusted by changing the timer period.
