Storage device and continuous reading and writing method thereof
By providing multiple page start addresses in the storage device and performing continuous reading or writing operations in sequence, the inefficient storage problem in the prior art is solved, and data transmission efficiency and access throughput are improved.
Patent Information
- Application Number
- CN202010625379.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-02
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2040-07-02
AI Technical Summary
The existing low-pin number storage technology cannot continuously update read and write addresses during high-speed throughput access, resulting in low data transmission efficiency and access throughput.
In the storage device, the controller provides multiple page start addresses to virtual static random processing memory, ensuring that operations are performed according to the received address order during continuous read or write operations, avoiding entering standby mode, and increasing data usage of the DQ bus rate and access efficiency.
Improves continuous access efficiency and data transmission efficiency, and enhances the throughput and performance of the storage system.
Smart Images

Figure CN113889157B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a storage device, and in particular to a storage device and a continuous reading and writing method thereof. Background Art
[0002] Recently, there is a demand for low pin count memory with high access throughput for narrowband IOT (NB-IOT), wearable devices, and mobile displays. However, existing low pin count memories (such as HyperRAM) do not support high-speed throughput access. On the other hand, Synchronous Dynamic Random-Access Memory (SDRAM) supports high-speed throughput function in page mode and bank-interleave mode.
[0003] In the prior art, a microcontroller unit (MCU) issues a read transaction and a write transaction to a pseudo static random access memory. For a read transaction, after a latency period defined in a register space, the read data is output on a DQ bus. For a write transaction, after a latency period, the write data is transferred to the pseudo static random access memory.
[0004] However, if the standby mode is not entered, the prior art cannot update the read address and the write address. This is because once reading or writing begins, the DQ bus will be occupied by the data signal, so other addresses and commands cannot be input to the virtual static random access memory. This will result in lower data transmission efficiency and access throughput. Summary of the invention
[0005] The present invention is directed to a storage device and a continuous reading and writing method thereof, which are used to provide a plurality of page start addresses without entering a standby mode when starting continuous reading or continuous writing, so as to improve the continuous access efficiency.
[0006] According to an embodiment of the present invention, a storage device includes a virtual static random access memory and a controller. The controller is coupled to the virtual static random access memory. When the storage device starts a continuous read operation or a continuous write operation, the controller provides a plurality of page start addresses to the virtual static random access memory, and the virtual static random access memory performs a continuous read operation or a continuous write operation according to the order in which the plurality of page start addresses are received.
[0007] According to an embodiment of the present invention, a continuous read and write method is applicable to a storage device, the storage device comprising a virtual static random access memory and a controller. The continuous read and write method comprises: when starting a continuous read operation or a continuous write operation, providing a plurality of page start addresses, and performing a continuous read operation or a continuous write operation according to the order in which the plurality of page start addresses are received.
[0008] Based on the above, in the embodiment of the present invention, the storage device and the continuous read-write method thereof provide multiple page start addresses to the virtual static random access memory when starting continuous reading or continuous writing, so that the virtual static random access memory can be in a continuous read command cycle or a continuous write command cycle without entering a standby mode as in the prior art. Therefore, the data occupancy rate of the DQ bus can be increased, and the continuous access efficiency can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 is a schematic diagram of a storage device according to an embodiment of the present invention;
[0010] Figure 2 is a circuit block diagram of a virtual static random access memory according to an embodiment of the present invention;
[0011] Figure 3 is a flow chart of command bit determination according to an embodiment of the present invention;
[0012] Figure 4 is a circuit block diagram of an address latch decoding circuit according to an embodiment of the present invention;
[0013] Figure 5 is a timing diagram of a page access sequence according to an embodiment of the present invention;
[0014] Figure 6 4 is a flow chart of a continuous reading and writing method according to an embodiment of the present invention.
[0015] Description of Reference Numerals
[0016] 10: Storage device
[0017] 110: Virtual static random access memory
[0018] 120: Controller
[0019] 210: Input and output circuits
[0020] 220: Command decoder
[0021] 230: Address latch decoding circuit
[0022] 240: Storage Array
[0023] 410_0, 410_1, 410_N: Input indicator
[0024] 420_0, 420_1, 420_N: Latch
[0025] 430_0, 430_1, 430_N: Output indicator
[0026] ECMD: External Commands
[0027] EADD: External Address
[0028] ERW: External read / write signal
[0029] BRW: continuous read and write signal
[0030] BADD: Continuous addresses
[0031] AS: Address space bit
[0032] P: Page access bit
[0033] LIN_0, LIN_1, LIN_N: Latch input control signals
[0034] LOUT_0, LOUT_1, LOUT_N: Latch output control signals
[0035] ADDL0, ADDL 1, ADDL N: Latched address
[0036] / CS: Chip select signal
[0037] CA: Command Address
[0038] A0, A1, AN: page start address
[0039] S310, S320, S330, S340, S350, S610, S620: Steps DETAILED DESCRIPTION
[0040] Reference will now be made in detail to exemplary embodiments of the present invention, examples of which are illustrated in the accompanying drawings. Whenever possible, the same reference numerals are used in the drawings and the description to refer to the same or like parts.
[0041] Reference Figure 1The storage device 10 may include a virtual static random access memory 110 and a controller 120, wherein the controller 120 is coupled to the virtual static random access memory 11. The storage device 10 may be, for example, a flash memory or other memory.
[0042] In one embodiment, the virtual SRAM 110 is composed of a dynamic random access memory (DRAM) as a core and a static random access memory (SRAM) as an interface.
[0043] According to design requirements, the controller 120 may be, for example, a central processing unit (CPU) or other similar components or a combination of the above components.
[0044] In one embodiment, when the storage device 10 starts a burst read operation or a burst write operation, the controller 120 may provide a plurality of page starting addresses to the virtual static random access memory 110. The virtual static random access memory 110 receives the plurality of page starting addresses, and the virtual static random access memory 110 performs a burst read operation or a burst write operation according to the order in which the plurality of page starting addresses are received. Specifically, the page starting address is used to read or write the starting address of the page continuous addresses of the storage array in the virtual static random access memory 110. The continuous read operation is used to continuously read the continuous address range in the memory according to the page starting address, and the continuous write operation is used to continuously write the write data to the continuous address range in the memory according to the page starting address.
[0045] For example, when the storage device 10 starts a continuous read operation or a continuous write operation, the controller 120 can provide the page start address A0-AN to the virtual static random access memory 110. The virtual static random access memory 110 receives the page start address A0-AN in sequence, and the virtual static random access memory 110 performs a continuous read operation or a continuous write operation according to the order of receiving the page start address A0-AN. That is, the page start address A0 is first continuously read or continuously written, and then the page start address A1 is continuously read or continuously written, and so on, until the page start address AN is continuously read or continuously written. The number N is determined by the design requirements.
[0046] Reference Figure 2The virtual static random access memory 110 includes an input / output circuit 210, a command decoder 220, an address latch decoding circuit 230, and a storage array 240. In one embodiment, the virtual static random access memory 110 may further include other circuits, such as a data path circuit.
[0047] The input-output circuit 210 may be an existing input-output circuit (IO circuit) or other interface circuits. In one embodiment, the input-output circuit 210 is coupled to the controller 120, and the input-output circuit 210 is used to receive an external command ECMD and an external address EADD from the controller 120, and provide the external command ECMD to the command decoder 220, and provide the external address EADD to the address latch decoding circuit 230. The external address EADD includes the page start address A0-AN.
[0048] The command decoder 220 is coupled to the input / output circuit 210, and is used to receive the external command ECMD and decode the external command ECMD to provide the external read / write signal ERW and the continuous read / write signal BRW to the address latch decoding circuit 230. In one embodiment, the command decoder 220 may be an existing command decoder or other decoding circuits.
[0049] The address latch decoding circuit 230 is coupled to the input / output circuit 210 and the command decoder 220. The address latch decoding circuit 230 is used to receive the external address EADD from the input / output circuit 210 and the external read / write signal ERW and the continuous read / write signal BRW from the command decoder 220, and sequentially latch the page start addresses A0-AN in the external address EADD according to the external read / write signal ERW and the continuous read / write signal BRW to provide the continuous address BADD to the memory array 240, and sequentially perform a continuous read operation or a continuous write operation on the memory array 240 according to the page start addresses A0-AN in the continuous address BADD. The number N is determined by design requirements.
[0050] The memory array 240 is coupled to the command decoder 220 and the address latch decoding circuit 230. The memory array 240 receives the continuous address BADD to sequentially perform continuous read operations or continuous write operations according to the page start addresses A0-AN in the continuous address BADD. In one embodiment, the memory array 240 may include a conventional sense amplifier, an X decoder, a Y decoder, and a memory cell array, but is not limited thereto.
[0051] Reference Figure 1 , Figure 2 and Figure 3The controller 120 is further configured to provide an external command ECMD to the virtual static random access memory 110. The external command ECMD includes a command address CA, and the command address CA includes an address space bit AS and a page access bit P. In one embodiment, the command address CA may also include a read or write bit, a burst type bit, etc., but the present invention is not limited thereto.
[0052] Reference Figure 3 In step S310, the storage device 10 starts a continuous read operation or a continuous write operation. Next, in step S320, the storage device 10 determines whether the continuous read operation or the continuous write operation is a register access or a storage array access according to the value of the address space bit AS in the command address CA. When the value of the address space bit AS is 1, the process proceeds to step S330. When the value of the address space bit AS is 0, the process proceeds to step S340. In step S330, the virtual static random access memory 110 performs a register access, which is to access a register (not shown) in the storage device 10. In step S340, the virtual static random access memory 110 further determines whether the storage array access is a page access according to the page access bit P in the command address CA. When the value of the page access bit P is 1, the virtual static random access memory 110 receives the next page start address A1 after receiving the page access address A0, and performs step S340 again. This operation is repeated to obtain the required page address, and when the last received page address AN is received, the value of the page access bit P is set to 0. When the value of the page access bit P is 0, the process proceeds to step S350. Next, in step S350, the virtual static random access memory 110 performs memory array access, i.e., accesses the memory array 240 in the virtual static random access memory 110.
[0053] In other words, when the storage device 10 starts a continuous read operation or a continuous write operation, the storage device 10 determines whether to perform a continuous read operation or a continuous write operation in the storage array in the virtual SRAM 110 according to the value of the address space bit AS and the value of the page access bit P.
[0054] When the value of the address space bit AS in the command address CA determines whether the continuous read operation or the continuous write operation is the memory array access (i.e. Figure 5 AS in the command address CA = 0), and according to the value of the page access bit P in the command address CA, the memory array access is determined to be a page access (i.e. Figure 5When P in the command address CA is 1), the virtual SRAM 110 performs a continuous read operation or a continuous write operation in sequence according to the page start addresses A0-AN.
[0055] When the continuous read operation or the continuous write operation is judged as register access according to the value of the address space bit AS in the command address CA, that is, the address space bit AS=1, the virtual static random access memory 110 performs register access. When the continuous read operation or the continuous write operation is judged as storage array access according to the value of the address space bit AS in the command address CA, that is, the address space bit AS=0, the virtual static random access memory 110 judges whether the storage array access is page access according to the page access bit P in the command address CA. When the storage array access is judged as page access according to the value of the page access bit P in the command address CA, that is, the page access bit P=1, the virtual static random access memory 110 receives the page start address A0~AN in sequence. When the page start address AN is received, the page access bit P=0, and the virtual static random access memory 110 performs storage array access.
[0056] Reference Figure 4 , the address latch decoding circuit 230 includes input indicators 410_0 ~ 410_N, latches 420_0 ~ 420_N and output indicators 430_0 ~ 430_N.
[0057] The input indicators 410_0 to 410_N are coupled in series. Specifically, the input indicator 410_1 is coupled to the input indicator 410_0 , and so on until it is coupled to the input indicator 410_N. The input indicator 410_0 receives the external read / write signal ERW from the command decoder 220 .
[0058] The latches 420_0-420_N are coupled to the input indicators 430_0-430_N, respectively. Specifically, the latch 420_0 is coupled to the input indicator 410_0, the latch 420_1 is coupled to the input indicator 410_1, and so on, the latch 420_N is coupled to the input indicator 410_N. The latches 420_0-420_N receive the external address EADD from the input-output circuit 210, wherein the external address EADD includes the page start address A0-AN.
[0059] The output indicators 430_0 to 430_N are coupled in series. Specifically, the output indicator 430_1 is coupled to the output indicator 430_0, and so on until it is coupled to the output indicator 430_N. The output indicators 430_0 to 430_N are respectively coupled to the latches 420_0 to 420_N, wherein the output indicator 430_0 is coupled to the latch 420_0, the output indicator 430_1 is coupled to the latch 420_1, and so on, the output indicator 430_N is coupled to the latch 420_N. The output indicators 430_0 to 430_N receive the continuous read / write signal BRW from the command decoder 220.
[0060] In one embodiment, the input indicators 410_0-410_N generate latch input control signals LIN_0-LIN_N according to the external read / write signal ERW, and the latch input control signals LIN_0-LIN_N are used to sequentially latch the page start addresses A0-AN in the external address EADD to the latches 420_0-420_N. The output indicators 430_0-430_N generate latch output control signals LOUT_0-LOUT_N according to the continuous read / write signal BRW, and the latch output control signals LOUT_0-LOUT_N are used to enable the latches 420_0-420_N to sequentially output the latched page start addresses A0-AN in the external address EADD as latched addresses ADDL0, latched addresses ADDL1, ..., latched addresses ADDLN, and output them as continuous addresses BADD to sequentially output the page start addresses A0-AN to the memory array 240.
[0061] In one embodiment, the latches 420_0-420_N are used to latch the external address EADD to output the continuous address BADD according to the latch input control signals LIN_0-LIN_N and the latch output control signals LOUT_0-LOUT_N, wherein the continuous address BDD is used to sequentially and continuously provide the page start addresses A0-AN in the external address EADD to the memory array 240 for performing continuous read operations or continuous write operations.
[0062] For details, refer to Figure 4 and Figure 5, the chip select signal / CS is used to select the chip to be read or written. In this embodiment, when the chip select signal / CS transitions to a low logic level, the storage device 10 starts to perform a continuous read operation or a continuous write operation on the chip selected by the chip select signal / CS. When the continuous read operation or the continuous write operation starts, it is determined whether to perform a continuous read operation or a continuous write operation in the storage array 240 in the virtual static random access memory 110 based on the value of the address space bit AS in the command address CA and the value of the page access bit P. When the address space bit AS is 0 and the page access bit P is 1, the virtual static random access memory 110 receives the page start address A0~AN in the external address EADD. The input indicator 410_0~410_N generates the latch input control signal LIN_0~LIN_N according to the external read / write signal ERW, and the latch input control signal LIN_0~LIN_N is used to sequentially latch the page start address A0~AN in the external address EADD to the latch 420_0~420_N. The output indicators 430_0-430_N generate latch output control signals LOUT_0-LOUT_N according to the continuous read / write signal BRW. The latch output control signals LOUT_0-LOUT_N are used to enable the latches 420_0-420_N to output the page start addresses A0-AN in the latched external address EADD as latched addresses ADDL0, latched addresses ADDL1... latched addresses ADDLN, and output the latched addresses ADDL0, latched addresses ADDL1... latched addresses ADDLN as continuous addresses BADD to sequentially output the page start addresses A0-AN to the memory array 240. The continuous address BADD sequentially and continuously provides the page start addresses A0-AN in the external address EADD to the memory array 240. It must be noted that Figure 5 The multiple shaded areas in the figure are in an undetermined state (Don't Care).
[0063] Reference Figure 6 In step S610, when the storage device starts a continuous read operation or a continuous write operation, the controller provides a plurality of page start addresses to the virtual static random access memory. Then, in step S620, the virtual static random access memory performs a continuous read operation or a continuous write operation according to the order of receiving the plurality of page start addresses.
[0064] To summarize, in an embodiment of the present invention, the storage device and its continuous read and write method provide multiple page start addresses to the virtual static random access memory when starting continuous reading or continuous writing, so that the virtual static random access memory can access multiple page start addresses in a continuous read command cycle or a continuous write command cycle to improve continuous access efficiency, thereby improving data transmission efficiency and access throughput, and improving system performance.
[0065] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A storage device, characterized in that: include: Virtual static random access memory; as well as A controller coupled to the virtual static random access memory, When the storage device starts a continuous read operation or a continuous write operation, the controller provides a plurality of page start addresses to the virtual static random access memory, and the virtual static random access memory performs the continuous read operation or the continuous write operation according to the order in which the plurality of page start addresses are received. The controller is further configured to provide an external command to the virtual static random access memory, wherein the external command includes a command address, When the storage device starts the continuous read operation or the continuous write operation, it determines whether to perform the continuous read operation or the continuous write operation in the storage array of the virtual static random access memory according to the value of the address space bit and the value of the page access bit in the command address.
2. The storage device according to claim 1, characterized in that When the continuous read operation or the continuous write operation is judged as the storage array access according to the value of the address space bit in the command address, and the storage array access is judged as the page access according to the value of the page access bit in the command address, the virtual static random access memory performs the continuous read operation or the continuous write operation according to the order of receiving the multiple page start addresses.
3. The storage device according to claim 1, characterized in that: in When it is determined that the continuous read operation or the continuous write operation is a register access according to the value of the address space bit in the command address, the virtual static random access memory performs the register access; When the continuous read operation or the continuous write operation is determined as the storage array access according to the value of the address space bit in the command address, the virtual static random access memory determines whether the storage array access is a page access according to the page access bit in the command address; When the storage array access is determined as the page access according to the value of the page access bit in the command address, the virtual static random access memory performs the page access in sequence according to the plurality of page start addresses; as well as After the plurality of page start addresses are all used to perform the page access, the virtual static random access memory performs the storage array access.
4. The storage device according to claim 1, characterized in that: The virtual static random access memory comprises: An input-output circuit, coupled to the controller, configured to receive an external command and an external address from the controller; A command decoder, coupled to the input-output circuit, configured to receive an external command from the input-output circuit, and decode the external command to provide an external read-write signal and a continuous read-write signal; an address latch decoding circuit, coupled to the input-output circuit and the command decoder, configured to receive the external address from the input-output circuit and the external read-write signal and the continuous read-write signal from the command decoder, and sequentially latch the plurality of page start addresses in the external address according to the external read-write signal and the continuous read-write signal to output continuous addresses to a memory array, and sequentially perform continuous read operations or continuous write operations on the memory array according to the continuous addresses; and The storage array is coupled to the command decoder and the address latch decoding circuit, and is configured to receive the continuous addresses to perform the continuous read operation or the continuous write operation in sequence according to the continuous addresses.
5. The storage device according to claim 4, characterized in that: The address latch decoding circuit comprises: a plurality of input indicators coupled in series and configured to receive the external read / write signals from the command decoder; a plurality of latches, respectively coupled to the plurality of input indicators, configured to receive an external address from the input-output circuit, wherein the external address includes the plurality of page start addresses; and A plurality of output indicators coupled in series, respectively coupled to the plurality of latches, and configured to receive the continuous read / write signals from the command decoder, The multiple input indicators are configured to generate multiple latch input control signals for sequentially latching multiple page start addresses in the external address to the multiple latches according to the external read / write signals, and the multiple output indicators are configured to generate multiple latch output control signals for causing the latches to sequentially output the multiple page start addresses in the latched external address as the continuous addresses according to the continuous read / write signals.
6. The storage device according to claim 5, characterized in that: The plurality of latches are used to latch the external addresses to output continuous addresses according to the plurality of latch input control signals and the plurality of latch output control signals, wherein the continuous addresses are configured to sequentially and continuously provide a plurality of page start addresses in the external addresses to the memory array.
7. A continuous read and write method, applicable to a storage device, wherein the storage device comprises a virtual static random access memory and a controller, characterized in that: The continuous reading and writing method comprises: When starting a continuous read operation or a continuous write operation, a plurality of page start addresses are provided, and the continuous read operation or the continuous write operation is performed according to the order in which the plurality of page start addresses are received, The controller is further configured to provide an external command to the virtual static random access memory, wherein the external command includes a command address, When the continuous read operation or the continuous write operation is started, it is determined whether to perform the continuous read operation or the continuous write operation in the storage array of the virtual static random access memory according to the value of the address space bit and the value of the page access bit in the command address.
8. The continuous reading and writing method according to claim 7, characterized in that: When the continuous read operation or the continuous write operation is determined as the storage array access according to the value of the address space bit in the command address, and the storage array access is determined as the page access according to the value of the page access bit in the command address, the continuous read operation or the continuous write operation is performed according to the order of receiving the multiple page start addresses.
9. The continuous reading and writing method according to claim 7, characterized in that: in When it is determined according to the value of the address space bit in the command address that the continuous read operation or the continuous write operation is a register access, performing the register access; When judging that the continuous read operation or the continuous write operation is the storage array access according to the value of the address space bit in the command address, judging whether the storage array access is a page access according to the value of the page access bit in the command address; When the storage array access is determined as the page access according to the value of the page access bit in the command address, receiving the plurality of page start addresses; as well as After receiving the plurality of page start addresses, the storage array is accessed.
10. The continuous reading and writing method according to claim 7, characterized in that: The virtual static random access memory includes an input and output circuit, a command decoder, an address latch decoding circuit and a storage array, wherein: receiving an external command and an external address from the controller through the input-output circuit; receiving an external command from the input-output circuit through the command decoder to decode the external command to provide an external read-write signal and a continuous read-write signal; The address latch decoding circuit receives the external address from the input-output circuit and the external read / write signal and the continuous read / write signal from the command decoder, and sequentially latches the plurality of page start addresses in the external address according to the external read / write signal and the continuous read / write signal to output continuous addresses to a memory array, and sequentially performs a continuous read operation or a continuous write operation on the memory array according to the continuous addresses; and The continuous addresses are received by the storage array to sequentially perform the continuous reading operation or the continuous writing operation according to the continuous addresses.
11. The continuous reading and writing method according to claim 10, characterized in that: The address latch decoding circuit includes a plurality of input indicators coupled in series, a plurality of latches, and a plurality of output indicators coupled in series. receiving the external read / write signals from the command decoder via the plurality of input indicators; receiving an external address from the input-output circuit through the plurality of latches; receiving the continuous read and write signal from the command decoder via the plurality of output indicators; generating a latch control signal for sequentially latching a plurality of addresses in the external address to the latch according to the external read / write signal through the plurality of input indicators; as well as The output control signals for causing the latch to sequentially output a plurality of latched external addresses as the consecutive addresses are generated by the plurality of output indicators according to the consecutive read / write signals.
12. The continuous reading and writing method according to claim 11, characterized in that: The external addresses are latched by the plurality of latches according to the latch control signal and the output control signal to output continuous addresses, wherein the continuous addresses are configured to sequentially and continuously provide a plurality of addresses in the external addresses.
