The present technology relates to memory devices having embedded logic responsive to command sequences, and particularly to interruptible command sequences.
The controller 4 is connected to the memory 6 by a bus 5. For the purposes of this description, the term “bus” refers to a communication system that transfers data between bus nodes, including in the memory system example a controller 4 (e.g., memory controller, microcontroller, or other bus node controlling operation of the memory devices) and memory 6. The bus includes the bus lines (physical layer connections like wires, optical fiber, wireless links, etc.), and a bus interface including input/output circuits on the devices and logic on the devices that together implement a communication protocol compliant with the bus specifications.
In the configuration of
In some high-speed memory systems, such as might be used for so-called execution-in-place XIP system applications, it is desirable to be able to read data very frequently and very quickly to support mission functions of the host system. In some memory types, such as flash memory, a write can include program operations and erase operations which can take a significant amount of time. So if the host desires to read data during execution of a program or erase operation, it is often required to wait for completion of those operations. Some memory systems implement erase and program suspend operations, allowing the controller to issue a suspend command after a program or erase operation has begun executing. In response to a suspend command, the memory device performs an operation to back out of the program or erase operation, and when that is completed, enables the system to accept a read command sequence. However, the latency involved in a critical read can be a serious limitation on system performance.
Also, particularly in serial protocols, the write command sequence can be quite long. For example, a page write command sequence can require hundreds of bytes of data transfer on the bus, including a command code, address codes and a full page of data. Also, the command sequence itself is not interruptible. This creates a condition illustrated in
Thus, it can be seen that substantial latency is introduced when a read operation is requested during a write command sequence and during the embedded program flow executed by the memory device in response to the write command sequence. This latency can interfere with mission-critical read operations in high-speed memory systems.
There are some memory devices that can execute a so-called read-while-write RWW operation. These systems can allow a read command to be issued while an embedded write operation is underway. In this case, the controller may not need to issue a suspend command as discussed with reference to
An alternative approach to addressing the problem with read latency includes introducing a DRAM 9 or other high-speed memory as illustrated
Therefore, it is desirable to provide a system which can reduce the read latency in high-speed memory systems.
A memory device is described that includes command logic allowing for interruption of a first command sequence, such as a page write sequence, before the command sequence has been completed, and then to proceed directly to receive and decode a second command sequence which can have a higher priority for completion at a controller level or host level, without the latency associated with completing the first command sequence. Also, the command logic is configured to be responsive to a third command sequence, after the second command sequence is completed, and in some types of commands after the embedded operation associated with the second command sequence have been completed, which completes the interrupted first command sequence and enables execution of an embedded operation such as the page write, identified by the first command sequence. Such higher priority command sequences can be specified for a particular system, and can include a sequence or sequences specified for higher priority at the host or controller levels such as read sequences, Write Register sequences, Write Status sequences, Set protect configuration sequences, Read ID sequences, Read status sequences, and Erase special Registers sequences and the like. To avoid complication of the description, the examples described below are based on a read sequence.
A memory device is described comprising a memory, such as a nonvolatile memory like NOR flash. The memory device has a bus interface, such as a synchronous serial port. In one embodiment that includes a synchronous serial port, the bus interface is compliant with an SPI protocol. The memory device includes control circuitry to access the memory and execute memory read and write operations. For flash memory, for example, such control circuitry can include logic and bias circuits which automatically execute program and erase operations based on instructions received from command logic. The memory device also includes command logic which supports interruptible command sequences. Thus, the command logic in this example is configured to decode command sequences received on the bus interface. The command sequences can comprise operation codes, and one or both of addresses and data received or transmitted on the bus interface. The command logic is also configured to enable the control circuitry to execute operations identified by the command sequences. As set out herein, while receiving a first command sequence, the command logic is responsive to a first control signal (e.g., a first transition of a chip select signal) to interrupt the first command sequence. Because the first command sequence is interrupted, embedded operations associated with the operation identified in the first command sequence are not completely defined before the interruption and in some cases will not have been started. The command logic is responsive to a second control signal (e.g. a second transition of the chip select signal) after the first control signal to receive and decode a second command sequence and to enable the control circuitry to execute an operation identified in the second command sequence. The first and second control signals can be for example, the leading and trailing edges respectively of a single pulse on a chip select line. The command logic is responsive to a third control signal after the bus interface becomes available at a point after completion of the second command sequence, to receive and decode a third command sequence. The third command sequence can include an operation code, and one or both of addresses and data, to resume the interrupted first command sequence, and to enable the control circuitry to execute the operation identified by the first command sequence.
In embodiments described herein, the command logic in the memory device includes a buffer to hold at least portions of the first command sequence during the decoding and execution of the second command sequence. Also, the command logic can decode the third command sequence using the portions of the first command sequence stored in the buffer.
A configuration is described herein in which the operation code of the first command sequence identifies a write operation for which data is received on the bus interface on a particular bus line, and the operation code of the second command sequence identifies a read operation for which the operation code is received in the bus interface on the same particular bus line.
A configuration is described herein in which the operation code of the first command sequence identifies a write operation, and the third command sequence includes the operation code and the address of the first command sequence. In order to enable the embedded operation associated with the write operation, an event confirming completion of the write sequence other than or in addition to the first control signal can be required. In examples described herein, a write confirm event can include a count of the amount of data received in the command sequence, or an indication of the command sequence reaching an address boundary.
A configuration is described herein in which the operation code of the first command sequence identifies a write operation, and the third command sequence includes a write continue operation code, distinct from the write operation code, without an address.
A configuration is described herein in which the operation code of the first command sequence identifies a write operation, and the first command sequence identifies a write count. Logic in the command logic determines whether all the data in the command sequence indicated by the write count is received upon receipt of the first control signal. If it has not been received, then the command logic can enter a mode waiting for the second control signal. If all the data indicated by the write count has been received, then the embedded write operation can be enabled upon receipt of the first control signal or other control signal at the end of the third command sequence.
A configuration is described herein in which the operation code of the first command sequence identifies a write operation, the command logic is configured to receive and decode a write confirm operation code after a control signal following the third command sequence, and to enable the embedded operation identified by the first command sequence in response to the write confirm operation code.
In embodiments described herein, a write command sequence can be interrupted a plurality of times.
In another aspect of the technology described herein, a method of operating a memory is provided including interruptible command sequences.
In another aspect of the technology described herein, a command protocol and a memory controller implementing the command protocol are described, which supports interruptible command sequences.
Other aspects of the technology presented here are set forth in the drawings, the detailed description and the claims which follow.
A detailed description of embodiments of the present technology is provided with reference to
For the purposes of the present application, a command sequence comprises a byte or a sequence of bytes and optional control signals. A command sequence including a sequence of bytes can include a first byte or set of bytes, which comprises an operation code. A second byte, or a set of bytes, can comprise an address for the operation identified by the operation code. In a write command sequence, bytes following the address can comprise data to be written upon execution of the write operation. In a read command sequence, the command sequence can terminate with the address bytes. Some types of command sequences may include only an operation code that can be one or more bytes. Some types of write command sequences may not require addresses.
A byte is a basic storage unit used in many integrated circuit logic and memory circuits, and consists of eight bits. A basic storage unit can have other sizes, including for example one bit, two bits, four bits, 16 bits and so on. Thus, the description of a command sequence set out above, and in other examples described herein utilizing the term byte, applies generally to circuits using different sizes of storage units, as would be described by replacing the term byte or set of bytes, with storage unit or set of storage units. Also, in some embodiments different sizes of storage units can be used in a single command sequence, such as one or more four-bit storage units combined with eight-bit storage units.
A first command sequence is initiated by the transition of the CSB line from high-to-low and by the beginning of the clock cycles on the CK line. The first byte of the first command sequence (eight bits received during the initial clock pulse) comprises an operation code WR for an interruptible write sequence. In some examples, the operation code WR may identify a page write operation. In the illustrated example, the next three bytes comprise a starting address for the write operation. After the address, data for the write operation is provided. After the third data byte D3 at time 30, the controller interrupts the first command sequence. In this example, the command sequence is interrupted by a first control signal 31 which is toggling the CSB line from low-to-high without a corresponding indication of the end of the write sequence. Upon interruption of the first command sequence, the controller again toggles the CSB line from high-to-low and provides a second command sequence. The first byte of the second command sequence in this example is an operation code for a read RD. The three bytes following the first byte comprise a starting address for the read. After receipt of the starting address, command logic on the memory enables the embedded read operation, and in the clock cycles following the address, output data is provided from the memory to the controller. Upon completion of the read operation, the controller toggles the CSB line from low-to-high at time 32. At a later time, the controller causes the CSB line to transition from high-to-low to initiate a third command sequence. The third command sequence comprises a resumption of the interrupted write command sequence. In this example, the first byte of the third command sequence is the operation code WR (the same operation code as used in the first command sequence) for an interruptible write sequence. The next three bytes comprise the address, and the following bytes comprise the data to be written. After the last data byte is provided, the controller toggles the CSB line from low-to-high at time 33. The embedded write operation is not initiated at this stage in this example. Rather, the controller toggles the CSB line from high-to-low, and then provides a single byte command sequence including a write confirm operation code W.CONF 34. Upon receipt of a write confirm operation code 34, the command logic enables control circuitry on the memory to execute the write operation using embedded logic. In this, and in other command sequences described herein, the controller may insert “dummy” cycles in some embodiments.
An interruptible write command sequence of this nature can be interrupted an unlimited number of times, and resumed by repeating the interruptible write sequence until it is successful.
In the example of
The controller decides to interrupt the first command sequence at time 40. To interrupt the sequence, the CSB line is toggled from low-to-high at time 41, without a corresponding indication of the end of the first command sequence. Then, the CSB line is toggled from high-to-low to indicate the beginning of a second command sequence. The first byte of the second command sequence in this example is an operation code for a read RD. The three bytes following the first byte comprise a starting address for the read. After receipt of the starting address, command logic on the memory enables the embedded read operation, and in the clock cycles following the address, output data is provided from the memory to the controller. Upon completion of the read operation, the controller toggles the CSB line from low-to-high at time 42. At a later time, the controller causes the CSB line to transition from high-to-low to initiate a third command sequence. The third command sequence comprises a resumption of the interrupted write command sequence. This example, the first byte of the third command sequence is the operation code WR (the same operation code as used in the first command sequence) for an interruptible write sequence. The following bytes comprise data to be written, with the address information provided by other sources as discussed above. After the last data byte is provided, the controller toggles the CSB line from low-to-high at time 43. The embedded write operation is not initiated at this stage in this example. Rather, the controller toggles the CSB line from high-to-low and then provides a single byte command sequence including a write confirm operation code 44. Upon receipt of a write confirm operation code, the command logic enables control circuitry on the memory to execute the page write operation using embedded logic.
If the command logic decodes a write command, then it proceeds to load the address bytes from the command sequence, or read the address bytes from another source (207). After receiving the address bytes, the command logic monitors the CSB line to detect a transition from low-to-high (208). If a transition is not detected, then the command logic loads a data byte from the command sequence (209). After step 209, logic returns the block 208 to determine whether the CSB line transitions from low-to-high. This loop continues until all the data bytes are received, or until a CSB line transition is detected. If the transition is detected at block 208, then the logic returns to the standby mode 200, and monitors the CSB line for a transition from high-to-low.
If the command is a read command 204, then the command logic loads or reads the address bytes associated with the read (210), and enables the embedded circuitry to access the array and output the data of the read (211). Upon completion of the read operation, the memory can issue a ready signal, or the controller can detect the end and return to the standby mode 200.
If the command is a write confirm command (205), then the command logic can verify that it has properly loaded a command sequence for a write, and enables the control circuitry on the memory to access the array and execute the embedded write operation (212). After enabling the embedded write operation, the controller can return to the standby mode 200. Control circuitry can be “enabled” for the purposes of this description by simply setting a control signal, or control signals used by the embedded circuitry, to indicate a request to complete the operation, or by other more complex signaling.
In the example of
At a later time, the controller causes the CSB line to transition from high-to-low to initiate a third command sequence. The third command sequence comprises a resumption of the interrupted write command sequence. In this example, the first byte 54 of the third command sequence is the write continue operation code W.CON. for resumption of the interruptible write sequence. Also in this example, the command logic on the memory device stores the bytes received in the first command sequence for use upon resumption of the command sequence. Thus, the bytes in the third command sequence that follow the operation code comprise the data to be written. In this example, the first command sequence was interrupted after the third data byte D3, and the first byte following the operation code in the third command sequence is the fourth data byte D4 for the interruptible write sequence.
After the last data byte is provided, the controller toggles the CSB line from low-to-high at time 53. The embedded write operation is not initiated at this stage in this example. Rather, the controller toggles the CSB line from high-to-low, and then provides a single byte 55 command sequence including a write confirm operation code W.CONF. Upon receipt of a write confirm operation code W.CONF., the command logic enables control circuitry on the memory to execute the page write operation using embedded logic.
If the command logic decodes a write command, then it proceeds to load the address bytes from the command sequence (310). After receiving the address bytes, the command logic monitors the CSB line to detect a transition from low-to-high (311). If a transition is not detected, then the command logic loads a data byte from the command sequence (312). After step 312, logic returns the block 311 to determine whether the CSB line transitions from low-to-high. This loop continues until all the data bytes are received, or until a transition is detected. If the transition is detected at block 311, then the logic returns to the standby mode 300 while storing portions of the command sequence received before the interruption. In the standby mode 300, the command logic monitors the CSB line for a transition from high-to-low. If the command is a read command 304, then the command logic loads or reads the address bytes associated with the read (314), and enables the embedded circuitry to access the array and output the data of the read (315). Upon completion of the read operation, the memory can issue a ready signal, or the controller can detect the end and return to the standby mode 300.
If the command is a write continue command (305), then the command logic monitors the CSB line to detect a transition from low-to-high (317), and if no transition is detected loads a data byte from the command sequence (318). After loading a data byte at block 318, the command logic returns to block 317 to continue monitoring the CSB line. If a transition is detected from low-to-high at block 317, then the command logic returns to the standby mode 300, while storing portions of the command sequence received before the interruption in a buffer.
If the command is a write confirm command (306), then the command logic verifies that it has properly loaded a command sequence for a write, and enables the control circuitry on the memory to access the array and execute the embedded write operation (320). After enabling the embedded write operation, the controller can return to the standby mode 300.
In the example of
The third command sequence comprises a resumption of the interrupted write command sequence. In this example, the first byte 65 of the third command sequence is the write continue operation code W.CON. for resumption of the interruptible write sequence. Also in this example, the command logic on the memory device stores the bytes received in the first command sequence for use upon resumption of the command sequence. Thus, the bytes in the third command sequence that follow the operation code comprise the data to be written. In this example, the first command sequence was interrupted after the second data byte D2, and the first byte following the operation code in the third command sequence is the third data byte D3 for the interruptible write sequence.
After the last data byte is provided (or if the sequence is to be interrupted again), the controller toggles the CSB line from low-to-high at time 64. At this time, the command logic determines whether the number of bytes received in the combination of the first and third command sequences matches the write count operation code. If the command logic finds that the entire sequence has been received, then the command logic enables control circuitry on the memory to execute the page write operation using embedded logic. Else, command logic returns to a standby mode while storing parts of the command sequence already received for use on possible resumption of the write command sequence.
If the command logic decodes a write command, then it proceeds to load the address bytes from the command sequence, or read the address bytes from another source (407). Then the command logic loads or reads a write count (408). After receiving the address bytes and the write count, the command logic monitors the CSB line to detect a transition from low-to-high (409). If a transition is not detected, then the command logic loads a data byte from the command sequence (410). After step 410, the command logic determines whether the last data byte is received, (411) by comparing the number of received bytes with the write count. If the last data byte has not been received, then the command logic returns the block 409 to determine whether the CSB line transitions from low-to-high. This loop continues until all the data bytes are received, or until a transition is detected.
If the transition is detected at block 409, then the logic returns to the standby mode 400 while storing portions of the command sequence received before the interruption. In the standby mode 400, the command logic monitors the CSB line for a transition from high-to-low. If at block 411, it is determined that the last data byte has been received, then the command logic verifies that the complete command sequence is ready, enables the control circuitry to access the array and execute the embedded write operation (412). In some embodiments, after block 411, the command logic determines whether the CSB line has transitioned from low-to-high (not shown), and upon this transition verifies that the complete command sequence is ready, and enables the control circuitry to access the array and execute the embedded write operation (412).
If the command is a read command 404, then the command logic loads or reads the address bytes associated with the read (415), and enables the embedded circuitry to access the array and output the data of the read (416). Upon completion of the read operation, the memory can issue a ready signal, or the controller can detect the end and return to the standby mode 400.
If the command is a write continue command (405), then the command logic monitors the CSB line to detect a transition from low-to-high (418), and if no transition is detected loads a data byte from the command sequence (419). After step 419, the command logic determines whether the last data byte is received (420), by comparing the number of received bytes with the write count. If the last data byte has not been received, then the command logic returns to block 418 to determine whether the CSB line transitions from low-to-high. This loop continues until all the data bytes are received, or until a transition is detected.
If the transition is detected at block 418, then the logic returns to the standby mode 400 while storing portions of the command sequence received before the interruption. In the standby mode 400, the command logic monitors the CSB line for a transition from high-to-low.
If at block 420, it is determined that the last data byte has been received, then the command logic verifies that the complete command sequence is ready, and enables the control circuitry to access the array and execute the embedded write operation (412). In some embodiments, after block 420, if it is determined that the last data byte has been received, the command logic determines whether the CSB line transitions from low-to-high (not shown), and upon this transition verifies that the complete command sequence is ready, and enables the control circuitry to access the array and execute the embedded write operation (412).
In the example of
The third command sequence comprises a resumption of the interrupted write command sequence. In this example, the first byte 75 of the third command sequence is the write continue operation code W.CON. for resumption of the interruptible write sequence. Also in this example, the command logic on the memory device stores the bytes received in the first command sequence for use upon resumption of the command sequence. Thus, the bytes in the third command sequence that follow the operation code comprise the data to be written. In this example, the first command sequence was interrupted after the second data byte D2, and the first byte following the operation code in the third command sequence is the third data byte D3 for the interruptible write sequence.
After the last data byte Dn is provided, the controller toggles the CSB line from low-to-high at time 74. At this time, the command logic can determine and store a flag that indicates whether the number of bytes received in the combination of the first and third command sequences matches the write count operation code. However, the embedded write operation is not enabled at this stage. In this example, the command logic requires a following write confirm command 76. Upon receipt of a write confirm command following completion of a write command sequence or a write continue command sequence, with a correct number of data bytes, then the command logic enables control circuitry on the memory to execute the page write operation using embedded logic. Else, command logic returns to a standby mode.
If the command logic decodes a write command 503, then it proceeds to load the address bytes from the command sequence, or read the address bytes from another source (510). Then the command logic loads or reads a write count (511). After receiving the address bytes and the write count, the command logic monitors the CSB line to detect a transition from low-to-high (512). If a transition is not detected, then the command logic loads a data byte from the command sequence (513). After step 513, the command logic determines whether the last data byte is received (514), by comparing the number of received bytes with the write count. If the last data byte has not been received, then the command logic returns to block 512 to determine whether the CSB line transitions from low-to-high. This loop continues until all the data bytes are received, or until a transition is detected.
If the transition is detected at block 512, then the logic returns to standby mode 500 while storing portions of the command sequence received before the interruption. In standby mode 500, the command logic monitors the CSB line for a transition from high-to-low.
If at block 514, it is determined that the last data byte has been received, and CSB goes high 514A, then the command logic returns to standby mode 500 while storing a flag or other indication that all the data of the write command sequence has been received. Enabling of the embedded write occurs after receipt of a write confirm command as described below.
If the command is a read command 504, then the command logic loads or reads the address bytes associated with the read (516), and enables the embedded circuitry to access the array and output the data of the read (517). Upon completion of the read operation, the memory can issue a ready signal, or the controller can detect the end and return to the standby mode 500.
If the command is a write continue command (505), then the command logic monitors the CSB line to detect a transition from low-to-high (520), and if no transition is detected loads a data byte from the command sequence (521). After loading a data byte at block 521, the command logic determines whether the last data byte is received (522), by comparing the number of received bytes with the write count. If the last data byte has not been received, then the command logic returns to block 520 to determine whether the CSB line transitions from low-to-high. This loop continues until all the data bytes are received, or until a transition is detected.
If a transition is detected from low-to-high at block 520, then the command logic returns to standby mode 500, while storing portions of the command sequence received before the interruption in a buffer.
If at block 522, it is determined that the last data byte has been received, then after CSB goes high 522A, the command logic returns to standby mode 500 while storing a flag or other indication that all the data of the write command sequence has been received.
If the command is a write confirm command (506), then the command logic verifies that it has properly loaded a command sequence for a write, and enables the control circuitry on the memory to access the array and execute the embedded write operation (524). After enabling the embedded write operation, the controller can return to standby mode 500.
In the example of
The third command sequence comprises a resumption of the interrupted write command sequence. In this example, the first byte 85 of the third command sequence is the write continue operation code W.CON. for resumption of the interruptible write sequence. Also in this example, the command logic on the memory device stores the bytes received in the first command sequence for use upon resumption of the command sequence. Thus, the bytes in the third command sequence that follow the operation code comprise the data to be written. In this example, the first command sequence was interrupted after the second data byte D2, and the first byte following the operation code in the third command sequence is the third data byte D3 for the interruptible write sequence.
After the last data byte is provided, as can be determined using the write count, the sequence includes a write confirm code 86 which confirms the end of the write command sequence. Thereafter, the controller toggles the CSB line from low-to-high at time 84. At this time, the command logic determines whether the last byte in the write command sequence is the write confirm code. If the command logic finds that the entire sequence has been received with a write confirm code, then the command logic enables control circuitry on the memory to execute the page write operation using embedded logic. Else, command logic returns to a standby mode.
If the command logic decodes a write command, then it proceeds to load the address bytes from the command sequence, or read the address bytes from another source (607). Then the command logic loads or reads a write count (608). After receiving the address bytes and the write count, the command logic monitors the CSB line to detect a transition from low-to-high (609). If a transition is not detected, then the command logic loads a data byte from the command sequence (610). After step 610, the command logic determines whether the last data byte is received (611) by comparing the number of received bytes with the write count. If the last data byte has not been received, then the command logic returns to block 609 to determine whether the CSB line transitions from low-to-high. This loop continues until all the data bytes are received, or until a transition is detected.
If the transition is detected at block 609, then the logic returns to standby mode 600 while storing portions of the command sequence received before the interruption. In standby mode 600, the command logic monitors the CSB line for a transition from high-to-low.
If at block 611, it is determined that the last data byte has been received, then the command logic determines whether the next byte is a write confirm code (621). If a write confirm code is received at block 621, then the command logic monitors for a transition in the CSB line at block 622. If a transition from low-to-high occurs at block 622, then the command logic verifies that the complete command sequence is ready, and enables the control circuitry to access the array and execute the embedded write operation (623). In some embodiments, after block 621, the command logic proceeds without monitoring for a transition in the CSB line, verifies that the complete command sequence is ready, and enables the control circuitry to access the array and execute the embedded write operation (623). If a write confirm command is not detected at block 621, then the command logic determines that an error condition has occurred (624), and can import the write operation, or perform other recovery operations.
If the command is a read command 604, then the command logic loads or reads the address bytes associated with the read (615), and enables the embedded circuitry to access the array and output the data of the read (616). Upon completion of the read operation, the memory can issue a ready signal, or the controller can detect the end and return to standby mode 600.
If the command is a write continue command (605), then the command logic monitors the CSB line to detect a transition from low-to-high (618), and if no transition is detected loads a data byte from the command sequence (619). After step 619, the command logic determines whether the last data byte is received (620), by comparing the number of received bytes with the write count. If the last data byte has not been received, then the command logic returns to block 618 to determine whether the CSB line transitions from low-to-high. This loop continues until all the data bytes are received, or until a transition is detected.
If the transition is detected at block 618, then the logic returns to standby mode 600 while storing portions of the command sequence received before the interruption. In standby mode 600, the command logic monitors the CSB line for a transition from high-to-low.
If at block 620, it is determined that the last data byte has been received, then the command logic determines whether the next byte is a write confirm code (621), and proceeds as discussed above.
In the example of
The third command sequence can therefore comprise a resumption of the interrupted write command sequence. In this example, the first byte 95 of the third command sequence is the operation code for an interruptible write WR, which can be the same operation code as used in the first command sequence. The three bytes that follow the operation code comprise the beginning address for the write operation. These address bytes may be the same as the interrupted write command sequence, or can be a different address if the interrupted write is not to be resumed. The bytes that follow the address comprise the data to be written. After a last data byte is provided, the command logic can determine whether the last data byte matches an address boundary, such as a page boundary in the memory being written. This can be detected by comparing the beginning address provided in the command sequence, with the preset address boundaries to be utilized. This can also be detected by determining a write count carried in the command sequences as in
After the last data byte is provided, the controller toggles the CSB line from low-to-high at time 94. At this time, the command logic determines whether the address boundary has been reached. If the command logic finds that the entire sequence has been received, then the command logic enables control circuitry on the memory to execute the write operation using embedded logic. Else, the command logic may return to a standby mode.
If the command logic decodes the write command, then it proceeds to load or read address bytes for the starting address of the write (708). After receiving the address bytes, the command logic monitors the CSB line to detect transition from low-to-high (709). If a transition is not detected, then the command logic loads a data byte from the command sequence (710). Command logic then determines whether the data byte corresponds with the boundary address set for write operations (711). Command logic can perform this operation by comparing the start address received in the command sequence with an offset determined by the number of bytes of data received, with preset address boundaries.
If a boundary address is not detected, then the command logic returns to block 709 to monitor for transition in the CSB line. If at block 709, a transition is detected, then the command logic returns to standby mode 700.
If at block 711, is determined that a boundary address has been reached, then the command logic can enable control circuitry on the memory to access the array and execute the embedded write operation (720). In some embodiments, the command logic waits for a transition in the CSB line before enabling the embedded write operation.
If at block 702, the command decoded is a read command 704, then the command logic loads or reads the address bytes for the read from the command sequence (715). Then the command logic enables control circuitry on the memory to access the array and perform the embedded read operation (716).
Command logic then determines whether the data byte corresponds with the boundary address set for write operations (719). Command logic can perform this operation by comparing the start address received in the command sequence with an offset determined by the number of bytes of data received, with preset address boundaries.
If a boundary address is not detected, then the command logic returns to block 717 to monitor for transition in the CSB line. If at block 717, a transition is detected, then the command logic returns to standby mode 700.
If at block 719, is determined that a boundary address has been reached, then the command logic can enable control circuitry on the memory to access the array and execute the embedded write operation (720). In some embodiments, the command logic waits for a transition in the CSB line before enabling the embedded write operation.
If a transition is detected from low-to-high at block 717, then the command logic returns to the standby mode 700, while in some embodiments storing portions of the command sequence received before the interruption in a buffer.
I/O block 802 shows a synchronous serial interface compliant with a serial peripheral interface SPI standard, and having standard pins. CS# is chip select, which can correspond to the CSB line discussed above. When CS# is brought low the device is selected. The RESET# signal allows the device to be reset, terminating the currently running process and resetting the state machine. GND and VDD are ground and power supply, respectively. In standard SPI, SI and SO are serial data input and output, respectively. In Dual SPI operation, SI and SO become bidirectional I/O pins: SIO0 and SIO1. In Quad SPI operation, SIO2 and SIO3 are available for higher-speed transfer. This is an example only; many pin configurations are possible. Serial clock SLCK 804 is also provided. A clock generator 805 on the integrated circuit generates clock signals for the command logic 820 and other elements of the integrated circuit. In this embodiment the clock generator 805 receives the SCLK from the SLCK 804 pin. The bus interface represented by I/O block 802 can support double data rate DDR or single data rate SDR protocols.
Other types of serial interfaces can be used in various embodiments. Memory technologies other than NOR flash memory may be used.
A control signal used to indicate the beginning and ending of a command sequence described herein may be signals on one or more of the bus lines in the block 802 in some examples. For example, in some embodiments, CS# or RESET# may be toggled, such as being pulled low-to-high in a first transition or high-to-low in a second transition. Alternatively, or in addition, a termination event may be generated internally by the chip control logic.
Address generator 806 includes circuits to provide address sequences for access to the memory array.
Data register 814 can act as an input buffer to store portions of command sequences in some embodiments. Data and parameters may be stored in SRAM buffer 824 in support of interruptible write operations, and other operations. In some examples, the data register 814 may be part of the SRAM buffer 824.
Integrated circuit 800 also includes command logic 820, which may generate internal control signals, and control circuitry such as a state machine 822 with supporting bias circuits. High-voltage generator 826 generates any higher voltages required, for example for read, program, and erase operations. The command logic 820 executes procedures such as those described with reference to
Memory array 828 includes X-decoder 830 and Y-decoder 832, and data signals are output via sense amplifier 834. Output buffer 836 may hold output data for output from the device.
In the example shown in
This configuration can be used to support buses compliant with the serial peripheral interface SPI standard bus architecture, where the port CS corresponds with the SPI active low chip select CSB, the port CK corresponds with the SPI serial clock SCLK; the port 0 corresponds with the SPI master-out/slave-in MOSI port, the port 1 corresponds with the SPI first master-in/slave-out MISO1 port; the port 2 corresponds with the SPI second master-in/slave-out MISO2 port; and the port 8 corresponds with the SPI third master-in/slave-out MISO3 port. The technology described herein can be used with other standard and non-standard bus architectures, including for example I2C.
Those skilled in the art will appreciate that this diagram is provided for example of one embodiment only; a device supporting interruptible write command sequences as described herein may vary widely from this diagram, comprising different elements, connected in different ways.
The embodiment shown in
The logic flow begins when a controller starts a write function (900). The controller issues a write command sequence such as described above (901). The controller determines whether to interrupt the write command sequence for a read (902). If the controller determines to interrupt the command sequence, then it can issue a control signal, such as toggling the CSB line, and issue a read command sequence (903). The controller determines whether the read flow is completed (904). If it is not completed, then the controller waits. If it is completed, then the controller issues a write continue command to resume the interrupted write command sequence (905). The controller determines whether the command sequence is finished (906), and if so issues a write confirm command (907).
If at block 906, the controller determines that the command sequence is not finished, then it returns to block 902 to determine whether to interrupt the sequence for a read.
If at block 902, the controller does not interrupt the sequence for a read, then the flow jumps to block 906 to determine whether the command sequence is finished. When the command sequence is finished in this example, the controller issues a write confirm command (907). In other embodiments, the write confirm command may not be used, while other techniques are employed to allow the memory device to recognize the end of the write sequence, such as a write count, or logic on the memory device to detect an address boundary or other event that signals the end of the write sequence.
This logic flow demonstrates that a controller can interrupt an interruptible write command sequence any number of times specified higher priority operations, such as read operations.
According to this logic flow, and variations of the flow implemented to accommodate other interruptible write command sequence protocols, a memory controller or a logical process equivalent to a memory controller executed by any type of processor can issue a write command sequence that can include a large number of data bytes, such as can occur in a page write sequence. If a mission-critical read is requested, the controller can interrupt the long write sequence, and complete the read sequence and receive the read data without suffering latency associated with completing the interrupted write sequence. Upon completion of the read, the interrupted write command sequence can be resumed. Also, the logic flow demonstrates that a long write command sequence can be interrupted a plurality of times to support mission-critical read operations.
A serial type Flash Memory is described herein having a command protocol and supporting logic and memory that includes a page write command and write confirm command. The data of the page is issued sequentially after the page write Command.
A serial type Flash Memory is described herein having a command protocol and supporting logic and memory that includes a page write command, write continue command and write confirm command. The data is issued sequentially after one or a combination of these commands.
A serial type Flash Memory is described herein having a command protocol and supporting logic and memory that includes a page write command, write continue command and a write count parameter. The data is issued sequentially after one or a combination of these commands
In protocols implementing various embodiments described herein the width (number of bus lines) of “CLK(Clock)”, “CSB(Chip Select)”, DATA” may be one or more (1-bit to n-bit). (Examples: CLK, CLK#, DATA0-DATAn, CSB1, CSB2)
In protocols implementing various embodiments described herein, the number of “Address” cycles may be one or more depending on the particular addressing scheme deployed. (Examples: 0 to n cycles), and the number of address bits can vary as well depending on the addressing schemes utilized.
In protocols implementing various embodiments described herein, the number of “command” cycles (Examples: “Write”, “READ”, “Write continue”, “Write Confirm” and “Write Count”) may be one or more, depending on the code lengths and numbers of bus lines.
In protocols implementing various embodiments described herein, the data unit referred to by the “Write Count” may be arbitrary (Examples: 1-bit/byte/word/page to n-bit/byte/word/page.)
In protocols implementing various embodiments described herein, the “Command”, “Address”, “DATA” lines can be operated using double data rate DDR and single data rate SDR receivers and transmitters (Data may be are valid on both the rising edge and the falling edge, or data may be valid on the rising edge or the falling edge.).
In protocols implementing various embodiments described herein, the Write sequence may or may not include a “Dummy Cycle”
The “Write Command, Write Address, Write Data, Write Count, Write Continue, Write Confirm, Write Abort” may be used on any practical combination, with appropriate decoding logic and resources on the device.
A number of flowcharts illustrating logic executed by a memory controller or by memory device are described herein. The logic can be implemented using processors programmed using computer programs stored in memory accessible to the computer systems and executable by the processors, by dedicated logic hardware, including field programmable integrated circuits, state machines implemented in circuitry and by combinations of dedicated logic hardware and computer programs. With all flowcharts herein, it will be appreciated that many of the steps can be combined, performed in parallel, or performed in a different sequence without affecting the functions achieved. In some cases, as the reader will appreciate, a rearrangement of steps will achieve the same results only if certain other changes are made as well. In other cases, as the reader will appreciate, a rearrangement of steps will achieve the same results only if certain conditions are satisfied. Furthermore, it will be appreciated that the flow charts herein show only steps that are pertinent to an understanding of the invention, and it will be understood that numerous additional steps for accomplishing other functions can be performed before, after and between those shown.
While the present invention is disclosed by reference to the preferred embodiments and examples detailed above, it is to be understood that these examples are intended in an illustrative rather than in a limiting sense. It is contemplated that modifications and combinations will readily occur to those skilled in the art, which modifications and combinations will be within the spirit of the invention and the scope of the following claims. What is claimed is:
This application claims the benefit of U.S. Provisional Patent Application No. 62/346,577 filed 7 Jun. 2016. The application is incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
62346577 | Jun 2016 | US |