SYSTEM AND METHOD FOR IMPROVING FLASH CHANNEL USAGE
A system with prioritized queues and an arbiter optimizes flash memory operations by ensuring high-priority commands are processed quickly and sequences are executed atomically, addressing inefficiencies in existing systems.
Patent Information
- Application Number
- DE112022005359
- Authority / Receiving Office
- DE · DE
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-11-07
- Filing Date
- 2022-11-08
- Publication Date
- 2024-09-12
AI Technical Summary
Existing flash memory systems face inefficiencies in handling different types of requests, with control operations being fast but write operations taking significantly longer, leading to performance bottlenecks and inconsistent data handling.
Implementing a system with multiple queues of varying priorities and an arbiter that manages flash command dispatch based on priority and lock states, ensuring high-priority commands are processed promptly while maintaining data integrity through atomic execution of sequences.
Enhances flash memory performance by prioritizing high-priority commands and ensuring data consistency, reducing delays and improving overall system responsiveness.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
RELATED PATENT APPLICATION
[0001] This application claims priority to commonly owned U.S. Provisional Patent Application No. 63 / 276,742, which is hereby incorporated by reference. FIELD OF THE INVENTION
[0002] This application relates to systems and methods for sending requests to flash memory. BACKGROUND
[0003] Flash memory devices provide long-term, high-throughput, and low-latency storage of computer data. Some types of requests are faster than others. For example, some control operations complete almost instantly. A control request, for example, might increase or decrease the operating voltage of a flash target by updating a control register and complete within nanoseconds. A read request might require setting up control lines and reading NAND cells into a local buffer. A flash read operation might complete on the order of a few microseconds. A write request might require setting up control lines and programming operations in the NAND cells. The completion of a flash write operation might be on the order of milliseconds. SUMMARY
[0004] In some examples, a device is provided that includes a plurality of queues, each queue having an input for receiving a flash command, an output for sending a flash command, and an empty signal output for signaling when the queue is empty, each queue being assigned a unique, ordered priority. The device includes a selector having a plurality of flash command inputs, a flash command output to a flash destination, and a select input, each flash command input coupled to a corresponding queue output. And the device includes an arbiter having inputs that receive each queue empty signal and receive a lock bit from the flash command output of the selector, and having a select output coupled to the select input of the selector.In the device, the flash command includes a lock bit and a plurality of control bits issued to control inputs at a flash target. In certain examples, the arbiter maintains the value of the select output while the lock bit of the flash command output is asserted. In certain examples, the arbiter maintains the value of the select output while the lock bit of the flash command output is asserted. In certain examples, the arbiter includes logic to identify a set of non-empty queues and set the select output to the highest priority of the non-empty queues.In certain examples, the plurality of queues includes a low priority queue, a high priority queue, and a highest priority queue, and the arbiter sets the value of the selection output to the highest priority queue unless it is empty, otherwise the arbiter sets the value of the selection output to the high priority queue unless it is empty, otherwise the arbiter sets the value of the selection output to the low priority queue.In certain examples, the arbiter receives a begin-to-transmit signal and an end-to-transmit signal, and the arbiter maintains a current value at the select output if the lock bit is asserted, otherwise the arbiter sets the value of the select output to the highest priority queue unless the queue is empty, otherwise the arbiter maintains a current value at the select output between the assertion of the begin-to-transmit signal and the assertion of the end-to-transmit signal, otherwise the arbiter sets the value of the select output to the high priority queue unless the queue is empty, otherwise the arbiter sets the value of the select output to the low priority queue.In certain examples, the arbiter receives a begin transfer signal, an end transfer signal, and a write transfer signal, and the arbiter maintains a current value at the select output if the lock bit is asserted; otherwise, the arbiter sets the value of the select output to the highest priority queue unless the write transfer signal is asserted; otherwise, the arbiter maintains the current value at the select output between the assertion of the begin transfer signal and the assertion of the end transfer signal if the write transfer signal is asserted; otherwise, the arbiter sets the value of the select output to the high priority queue unless the high priority queue is empty; otherwise, the arbiter sets the value of the select output to the low priority queue. In certain examples, the plurality of queues are stored in a single memory.
[0005] In some examples, a method is performed in a system having a plurality of queues, each queue being assigned a unique, ordered priority. The method includes storing a new flash command having a lock bit and associated with a first priority in one of the plurality of queues corresponding to the first priority, selecting a current queue from which to send a flash command, and sending an oldest flash command from the current queue to a flash storage destination. In certain examples, the lock bit is asserted, thereby maintaining the selection of the current queue. In certain examples, selecting the current queue comprises selecting the non-empty queue having the highest priority.In certain examples, selection of the current queue is performed by an arbiter to select the highest priority queue unless it is empty, otherwise the high priority queue unless it is empty, otherwise the low priority queue. In certain examples, selection of the current queue is performed by an arbiter to maintain a current selection if the lock bit is asserted, otherwise the highest priority queue is selected unless it is empty, otherwise the current selection is maintained between the assertion of a begin transmission signal and the assertion of an end transmission signal, otherwise the high priority queue is selected unless it is empty, otherwise the low priority queue is selected.In certain examples, the selection of the current queue is performed by an arbiter to maintain a current selection if the lock bit is asserted; otherwise, to select the highest priority queue unless it is empty; otherwise, to maintain the current selection between an assertion of the begin transfer signal and the assertion of the end transfer signal; if the write transfer signal is asserted, otherwise, to select the highest priority queue unless it is empty; otherwise, to select the lowest priority queue. In certain examples, the plurality of queues are managed as a data structure in a single memory.
[0006] In some examples, a non-transitory computer-readable memory is provided that includes RTL structures and logic that, when simulated, form a machine with a plurality of queues, each queue having an input for receiving a flash command, an output for sending a flash command, and an empty signal output for signaling when the queue is empty, each queue being assigned a unique, ordered priority. The machine includes a selector having a plurality of flash command inputs, a flash command output to a flash destination, and a select input, each flash command input coupled to a corresponding queue output.The machine includes an arbiter that has inputs that receive any queue-empty signal and a lock bit from the selector's flash command output, and that has a select output coupled to the select input of the selector. In certain examples, the received lock bit is asserted, and the arbiter maintains the value of the select output. In certain examples, the arbiter includes logic to identify a set of non-empty queues and set the select output to the non-empty queue with the highest priority.In certain examples, the plurality of queues includes a low priority queue, a high priority queue, and a highest priority queue, and the arbiter sets the value of the selection output to the highest priority queue if it is not empty, otherwise the arbiter sets the value of the selection output to the high priority queue if it is not empty, otherwise the arbiter sets the value of the selection output to the low priority queue.In certain examples, the arbiter receives a begin-to-transmit signal and an end-to-transmit signal, and the arbiter maintains a current select output if the lock bit is asserted, otherwise the arbiter sets the value of the select output to the highest priority queue unless the queue is empty, otherwise the arbiter maintains the current select output between the assertion of the begin-to-transmit signal and the assertion of the end-to-transmit signal, otherwise the arbiter sets the value of the select output to the high priority queue unless the queue is empty, otherwise the arbiter sets the value of the select output to the low priority queue.In certain examples, the arbiter receives a begin transfer signal, an end transfer signal, and a write transfer signal, and the arbiter maintains a current value at the select output if the lock bit is asserted, otherwise the arbiter sets the value of the select output to the highest priority queue unless the write transfer signal is asserted, otherwise the arbiter maintains the current select output between the assertion of the begin transfer signal and the assertion of the end transfer signal if the write transfer signal is asserted, otherwise the arbiter sets the value of the select output to the high priority queue unless the high priority queue is empty, otherwise the arbiter sets the value of the select output to the low priority queue. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is an illustration of a system for distributing requests to a flash memory, according to examples of the present disclosure. Fig. 2 is a flowchart of a method for forwarding requests to a flash memory according to certain examples of the present disclosure. Fig. 3 is an illustration of a system for simulating a register transfer language description of a circuit, according to certain examples of the present disclosure. DETAILED DESCRIPTION
[0007] Fig. 1 is an illustration of a system for delivering requests to a flash memory, according to examples of the present disclosure. Requests may be queued based on priority and dispatched according to an arbitration scheme. The arbitration scheme may allow for various types of overrides to accommodate bursts, particularly high-priority requests, and transactions spanning multiple requests. The arbitration scheme may enable the execution of extremely high-priority control commands to instruct a first flash target to begin adjusting voltages for a read operation. While these control commands can be issued quickly, they may require a significant delay before a read command is issued.The arbitration scheme may follow these control commands with a burst of low-priority write commands to another flash target that was previously trained for writing. The arbitration scheme may dispatch the entire sequence of write commands atomically to maintain data consistency. Pipelining the operations of the arbitration scheme may improve flash memory performance. System 100 couples to flash controller CPU 102 and flash memory target 104. System 100 may be incorporated into a flash memory controller integrated circuit. System 100 includes queues 106a-106c coupled to and receiving flash memory commands from CPU 102. Each queue may be a first-in, first-out queue that stores zero or more flash instruction sets. Queues 106a-106c are assigned priority levels.As illustrated, queue 106a is assigned a low priority level, queue 106b is assigned a high priority level, and queue 106c is assigned a highest priority level. In some examples, write requests are assigned to low priority queue 106a, read requests are assigned to high priority queue 106b, and control requests are assigned to highest priority queue 106c. Queues 106a-106c have read ports coupled to the inputs of parallel multiplexer 108. Multiplexer 108 has an output coupled to flash target 104 or a set of addressable flash targets 104. Arbiter 110 is coupled to empty outputs of queues 106a-106c so that it can determine when each queue is empty. The arbiter 110 is also coupled to some output lines of the multiplexer 108.In some examples, arbiter 110 receives signals 122 that convey the value of arbitration flags from a transmitted flash command set. Signals 133 may include flags indicating begin transfer, end transfer, write transfer, read transfer, and lock. Each flag may be set by CPU 102 and stored within or in association with each flash command set in queues 106a-106c. Arbiter 110 controls the queue select input on multiplexer 108 to select the queue from which the next request will be forwarded to flash destination 104 via vias 120.
[0008] In one mode of operation, arbiter 110 is configured to arbitrate between queues 106a-106c based on strict priority. At each arbitration decision, arbiter 110 selects the highest priority queue containing requests. For example, if all three queues contain requests, arbiter 110 selects from highest priority queue 106c until it is empty, then draws from high priority queue 106b until it is empty, and then draws from low priority queue 106a. If arbiter 110 is drawing from low priority queue 106a and a new request arrives at highest priority queue 106c, arbiter 110 draws from highest priority queue 106c at the next arbitration decision.
[0009] In some examples, CPU 102 may set the lock bit for a set of requests in a particular queue to force the arbiter to refer to that queue until the lock signal is cleared. In some examples, arbiter 110 may exit its lock mode when the queue is empty.
[0010] In some examples, a series of requests may be logically linked. For example, a burst read operation may read 32KB of data sequentially from a flash target. The flash target may be internally organized as 16KB pages with a 4KB transfer size in a single chunk. In this example, CPU 102 may issue a series of ten requests to complete the entire operation. CPU 102 may issue a read command for the first page, followed by four consecutive read transfer commands. The first of the four read transfer commands may include an xfer_begin flag and an rd_xfer flag, and the last of the four may include an xfer_end flag and an rd_xfer flag. CPU 102 may then issue a second page read command and four read transfer commands to complete the overall transfer.
[0011] In another example, CPU 102 may issue a series of five requests to complete a 16 KB write transaction to flash target 104, e.g., four write transfer requests followed by a write request. Because write requests have low priority, a read request that arrives before all five requests in the write sequence can interrupt may be immediately scheduled by arbiter 110, interrupting the larger write transaction. In some examples, arbiter 110 may mark all five requests as incomplete and return them to the queue. In some examples, arbiter 110 may signal CPU 102 that the write transaction has been interrupted. CPU 102 may re-request the preempted write transaction or abort it.
[0012] In some examples, CPU 102 may mark a sequence of instructions to indicate that they are part of a burst transfer. CPU 102 may mark the first instruction in a sequence as Rd_xfer, signaling the start of a burst read. CPU 102 may mark the second instruction Xfer_begin, signaling the start of a series of burst transfers, and the last instruction in the sequence Xfer_end, signaling the end of a read sequence. In some examples, arbiter 110 may continue scheduling from high-priority queue 106b until arbiter 110 detects the Xfer_end signal.
[0013] Fig. 2 is a flowchart of a method for servicing requests to flash memory according to certain examples of the present disclosure. Method 200 schedules flash memory commands. In block 201, commands are received from CPU 102 and enqueued into priority queues 106a-106c. Write requests are enqueued in low priority queue 106a. Read requests are enqueued in high priority queue 106b. Other requests are enqueued in very high priority queue 106c. In some examples, additional queues may be used to further distinguish between different command types. Block 201 may signal CPU 102 when any queue 106 is full to prevent queue overflow.
[0014] In block 202, if the ultra queue 106c is empty, the arbiter 110 proceeds to block 208. Otherwise, in block 204, the arbiter 110 sends a command from the highest priority queue 106c, sends that command to the flash destination 104, and controls one or more of the Xfer_begin, Xfer_end, Wr_xfer, Rd_xfer, and Lock signals with values set by fields in the sent command. In block 206, if the Lock bit is asserted, the arbiter 110 returns to block 202 to send another ultra-high priority command, and otherwise proceeds to block 208.
[0015] If the high-priority queue 106b is empty in block 208, the arbiter 110 proceeds to block 214. Otherwise, in block 210, the arbiter 110 sends a command from the high-priority queue 106b, sends that command to the flash target 104, and controls one or more of the Xfer_begin, Xfer_end, Wr_xfer, Rd_xfer, and lock signals with values specified by fields in the sent command. In block 212, if the lock signal is asserted, the arbiter 110 returns to block 208 to send another high-priority command; otherwise, it returns to block 202.
[0016] At block 214, if the low-priority queue 106a is empty, the arbiter 110 proceeds to block 202. Otherwise, at block 216, the arbiter 110 sends a command from the low-priority queue 106a, sends that command to the flash target 104, and controls one or more of the Xfer_begin, Xfer_end, Wr_xfer, Rd_xfer, and Lock signals with values specified by fields in the sent command. At block 218, the arbiter 110 returns to block 214 to send another low-priority command if the Lock signal is asserted; otherwise, it returns to block 202.
[0017] Fig.3 is an illustration of a system for simulating a register transfer language description of a circuit, according to certain examples of the present disclosure. System 300 includes a CPU 302 and memory 304. Memory 304 includes EDA (Electronic Design Automation) software 306 and an RTL (Register Transfer Level) description 308. CPU 302 may be a conventional personal computer or workstation processor, and memory 304 may be conventional memory. EDA may be conventional software for simulating, analyzing, and verifying a circuit design. EDA may include design functions and prepare mask files for fabricating a circuit with a particular design. RTL 308 may be described in one or more hardware description language files and may define the structure and operation of system 100.
[0018] Although exemplary embodiments are provided above, other variations and embodiments may be generated from this disclosure without departing from the spirit and scope of these embodiments. QUOTES CONTAINED IN THE DESCRIPTION
[0000] This list of documents submitted by the applicant was generated automatically and is included solely for the convenience of the reader. This list is not part of the German patent or utility model application. The DPMA assumes no liability for any errors or omissions. Cited patent literature
[0000] US 63276742
[0001]
Claims
[1] Device comprising: a plurality of queues, each queue having an input to receive a flash command, an output to send a flash command, and an empty signal output to signal when the queue is empty, each queue being assigned a unique, ordered priority; a selector having a plurality of flash command inputs, a flash command output to a flash destination, and a select input, each flash command input coupled to a corresponding queue output; and an arbiter having inputs to receive each queue empty signal and to receive a lock bit from the flash command output of the selector, and having a select output coupled to the select input of the selector; wherein the flash command comprises a lock bit and a plurality of control bits to be issued to control inputs at a flash destination. [2] The apparatus of claim 1, wherein while the lock bit of the flash command output is asserted, the arbiter is to maintain the value of the select output. [3] The apparatus of any one of claims 1 to 2, wherein the arbiter includes logic to identify a set of non-empty queues and set the select output to the highest priority of the non-empty queues. [4] The apparatus of any one of claims 1 to 3, wherein the plurality of queues comprises a low priority queue, a high priority queue, and a highest priority queue, and wherein: the arbiter should set the value of the selection output to the highest priority queue if it is not empty, otherwise the arbiter should set the value of the selection output to the high priority queue if it is not empty, otherwise the arbiter should set the value of the select output to the low priority queue. [5] Apparatus according to any one of claims 1 to 4, wherein the arbiter receives a transmission start signal and a transmission end signal and wherein: the arbiter should maintain a current value at the select output if the lock bit is enabled, otherwise the arbiter should set the value of the selection output to the highest priority queue if it is not empty, otherwise the arbiter should maintain the current value at the selection output between the assertion of the transmission start signal and the assertion of the transmission end signal, otherwise the arbiter should set the value of the selection output to the high priority queue if it is not empty, otherwise the arbiter should set the value of the select output to the low priority queue. [6] The apparatus of any one of claims 1 to 5, wherein the arbiter receives a transfer start signal, a transfer end signal, and a write transfer signal, and wherein: the arbiter should maintain a current value at the selection output if the lock bit is enabled, otherwise the arbiter should set the value of the selection output to the highest priority queue if it is not empty, otherwise the arbiter should maintain the current value at the select output between the activation of the transfer start signal and the activation of the transfer end signal if the write transfer signal is activated, otherwise the arbiter should set the value of the selection output to the high priority queue if it is not empty, otherwise the arbiter should set the value of the select output to the low priority queue. [7] Apparatus according to any one of claims 1 to 6, wherein the plurality of queues are to be stored in a single memory. [8] A method performed in a system having a plurality of queues, each queue being assigned a unique, ordered priority, the method comprising: Storing a new flash command having a lock bit and associated with a first priority in one of the plurality of queues corresponding to the first priority, Selecting a current queue from which to send a flash command, and Send an oldest flash command from the current queue to a flash storage destination. [9] The method of claim 8, wherein the current queue selection is maintained while the lock bit is asserted. [10] The method of any one of claims 8 to 9, wherein selecting the current queue comprises selecting the non-empty queue having the highest priority. [11] A method according to any one of claims 8 to 10, wherein the selection of the current queue is performed by an arbiter to: select the queue with the highest priority if it is not empty, otherwise select the high priority queue if it is not empty, otherwise select the low priority queue. [12] A method according to any one of claims 8 to 11, wherein the selection of the current queue is performed by an arbiter to: to retain a current selection if the lock bit is enabled, otherwise select the highest priority queue if it is not empty, otherwise to maintain the current selection between the activation of a transmission start signal and the activation of a transmission end signal, otherwise select the high priority queue if it is not empty, otherwise select the low priority queue. [13] A method according to any one of claims 8 to 12, wherein the selection of the current queue is performed by an arbiter to: to retain a current selection if the lock bit is enabled, otherwise select the highest priority queue if it is not empty, otherwise to maintain the current selection between the activation of the transfer start signal and the activation of the transfer end signal if the write transfer signal is activated, otherwise select the high priority queue if it is not empty, otherwise select the low priority queue. [14] A method according to any one of claims 8 to 13, wherein the plurality of queues are maintained as a data structure in a single memory. [15] Non-transitory, computer-readable memory having RTL structures and logic that, when simulated, forms a machine having: a plurality of queues, each queue having an input to receive a flash command, an output to send a flash command, and an empty signal output to signal when the queue is empty, each queue being assigned a unique, ordered priority; a selector having a plurality of flash command inputs, a flash command output to a flash destination, and a select input, each flash command input coupled to a corresponding queue output; and an arbiter having inputs to receive each queue empty signal and to receive a lock bit from the flash command output of the selector, and having a select output coupled to the select input of the selector. [16] The medium of claim 15, wherein the arbiter is to maintain the value of the select output while the received lock bit is asserted. [17] The medium of any of claims 15 to 16, wherein the arbiter comprises logic to identify a set of non-empty queues and set the selection output to the highest priority non-empty queue. [18] The medium of any one of claims 15 to 17, wherein the plurality of queues comprises a low priority queue, a high priority queue, and a highest priority queue, and wherein: the arbiter should set the value of the selection output to the highest priority queue if it is not empty, otherwise the arbiter should set the value of the selection output to the high priority queue if it is not empty, otherwise the arbiter should set the value of the select output to the low priority queue. [19] The medium of any one of claims 15 to 18, wherein the arbiter receives a transmission start signal and a transmission end signal, and wherein: the arbiter should maintain a current selection output if the lock bit is enabled, otherwise the arbiter should set the value of the selection output to the highest priority queue if it is not empty, otherwise the arbiter should maintain the current selection output between the activation of the transmission start signal and the activation of the transmission end signal, otherwise the arbiter should set the value of the selection output to the high priority queue if it is not empty, otherwise the arbiter should set the value of the select output to the low priority queue. [20] The medium of any one of claims 15 to 19, wherein the arbiter receives a transfer start signal, a transfer end signal, and a write transfer signal, and wherein: the arbiter should maintain a current value at the selection output if the lock bit is enabled, otherwise the arbiter should set the value of the selection output to the highest priority queue if it is not empty, otherwise the arbiter should maintain the current selection output between the activation of the transfer start signal and the activation of the transfer end signal if the write transfer signal is activated, otherwise the arbiter should set the value of the selection output to the high priority queue if it is not empty, otherwise the arbiter should set the value of the select output to the low priority queue.
Citation Information
Patent Citations
System and Method for Maximizing Flash Channel Utilization
US63276742P0
