Storage medium, storage element, storage medium configuration method, and data transmission method

The closed-loop connection of media dies in the storage medium through signal lines autonomously manages data transmission order, addressing inefficiencies in existing polling-based systems, thereby reducing resource consumption and delays.

JP7778931B2Active Publication Date: 2025-12-02HUAWEI TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2024534382
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2022-02-15
Filing Date
2022-12-06
Publication Date
2025-12-02
Estimated Expiration
2042-12-06

AI Technical Summary

Technical Problem

The existing storage medium technology consumes significant processing resources and causes delays in data transmission due to polling checks on media dies, leading to inefficient data transmission processes.

Method used

A storage medium with at least two media dies connected in a closed loop via signal lines, where the signal line levels determine the order of data transmission, allowing media dies to autonomously occupy the bus without polling, thus saving processing resources and reducing delays.

Benefits of technology

This approach reduces processing resource consumption and data transmission delays while enabling flexible priority adjustments among media dies post-packaging, enhancing data transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007778931000001
    Figure 0007778931000001
  • Figure 0007778931000002
    Figure 0007778931000002
  • Figure 0007778931000003
    Figure 0007778931000003
Patent Text Reader

Abstract

The present application discloses a storage medium, a storage element, a storage medium configuration method, and a data transmission method, which relate to the data processing technical field. The storage medium includes at least two media dies, and the at least two media dies are sequentially connected by a signal line to form a closed loop, and the at least two media dies are for data transmission through a bus. The level of the signal line is controlled by the two media dies connected by the signal line and is used by the at least two media dies to determine the order of performing data transmission through the bus. The storage medium provided in the present application can determine the order of performing data transmission through the bus based on the level of the signal line. Therefore, after preparation is completed, the media die can autonomously occupy the bus to complete data transmission, and data transmission efficiency is improved. In addition, since the at least two media dies are sequentially connected to form a closed loop, the priority of the media die can be adjusted after packaging of the media die is completed.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This application claims priority to Chinese Patent Application No. 202111491741.0, entitled "Data Transmission Method and Storage Device," filed on December 8, 2021, and Chinese Patent Application No. 202210138758.6, entitled "Storage Medium, Storage Element, Storage Medium Configuration Method, and Data Transmission Method," filed with the State Intellectual Property Office of China on February 15, 2022, both of which Chinese patent applications are incorporated herein by reference in their entirety.

[0002] The present application relates to the field of data processing technology, and in particular to a storage medium, a storage element, a storage medium configuration method, and a data transmission method. [Background technology]

[0003] The storage medium includes a media die, which is for transmitting data. The media die must first be prepared before data can be transmitted.

[0004] The prior art provides a storage medium, which includes a separate media die. Based on such a storage medium, a controller first sends a command to the media die, and the media die prepares according to the received command. Next, the controller performs a polling check on the media die. After the controller confirms through the polling check that the media die has completed preparation, the controller transmits data to the media die that has completed preparation.

[0005] However, such a process in which the controller performs a polling check on the media die not only consumes processing resources but also increases the delay in the data transmission process, so that data transmission using the storage media provided in the prior art consumes a large amount of processing resources and increases the delay in the data transmission process. Summary of the Invention

[0006] In order to solve the problem that the storage medium provided in the prior art transmits data, consuming a large amount of processing resources and causing a long delay in the data transmission process, the present application provides a storage medium, a storage element, a storage medium configuration method, and a data transmission method. The technical solutions provided in the present application are as follows: [Means for solving the problem]

[0007] According to a first aspect, a storage medium is provided, the storage medium including at least two media dies, the at least two media dies being sequentially connected by a signal line to form a closed loop, the at least two media dies being for data transmission through a bus, the level of the signal line being controlled by the two media dies connected by the signal line and being used by the at least two media dies to determine the order of performing data transmission through the bus.

[0008] In the present application, the media die can determine the order of data transmission through the bus based on the level of the signal line. Therefore, after the media die is ready, it can autonomously occupy the bus to complete data transmission without consuming processing resources to poll whether the media die is ready. This saves processing resources, reduces data transmission delays, and improves data transmission efficiency. In addition, because at least two media dies are connected sequentially to form a closed loop, in the present application, the priority of the media dies does not need to be determined during packaging of the media dies, but can be adjusted after packaging.

[0009] In some possible implementations, the level of any signal line is constant, or the level of each signal line is constant. When the level of any signal line is constant, one of the two media dies connected to the signal line has the highest priority. For at least two media dies, the priority of the remaining media dies is determined based on the media die with the highest priority, and each media die has a different priority. Alternatively, when the level of each signal line is constant, each media die has the same priority. In the present application, the priority of the media dies can be adjusted by controlling the level of the signal line.

[0010] In some possible implementations, one of the at least two media dies includes a selector and a register, and the selector is configured to select a first end or a second end of the selector, where the first end is for configuring a level of a signal line associated with the register to a constant level, and the second end instructs the two media dies connected by the signal line to control the level of the signal line based on a data transmission situation. Based on the media die, the level of the signal line is further controlled through the selector and the register, and the control method is flexible.

[0011] In some possible implementations, one of the two media dies connected by signal lines includes the selector and register, which provides a way to arrange the selector and register, and is simple in structure and easy to use.

[0012] In some possible implementations, two media dies connected by signal lines each contain a selector and a register, which provides another way to arrange the selectors and registers, providing extra selectors and registers for the signal lines and achieving high reliability.

[0013] In some possible implementations, the signal lines include a request signal line and a feedback signal line.

[0014] In some possible implementations, when the level of the signal line is at a certain level, the level of the request signal line is a first level, which means that permission is not requested, and the level of the feedback signal line is a second level, which means that permission is granted, which means that permission is allowed to perform data transmission over the bus. Since the first level means that permission is not requested and the second level means that permission is granted, the media die can be granted without requesting permission, and the media die has the highest priority.

[0015] In some possible implementations, when two media dies connected by the signal line control the level of the signal line based on a data transmission status, the level of the request signal line is a first level or a third level, where the first level means that permission is not requested and the third level means that permission is requested, and the level of the feedback signal line is a second level or a fourth level, where the second level means that permission is granted and the fourth level means that permission is not granted, and permission means that data transmission over the bus is permitted. The media dies autonomously control the level of the controller based on the data transmission status to negotiate between separate media dies about the order in which data transmission over the bus is performed.

[0016] In some possible implementations, the storage medium further includes a state machine, and the state machine is configured to record a status of the media die, the status of the media die including an idle state, a ready state, a data transmission state, and a data transmission state of another media die, where the data transmission state of another media die means that another media die following the media die is performing data transmission. The state machine records the status of each media die to help monitor whether the media die can operate normally in the data transmission process and to avoid the abnormality of the media die affecting the data transmission process.

[0017] In some possible implementations, the media die includes a first data pin and a second data pin, the bus includes a first data bus and a second data bus, the first data pin is configured to be connected to the first data bus, the second data pin is configured to be connected to the second data bus, the first data bus is used by the at least two media dies to transmit data, and the second data bus is for transmitting data to the at least two media dies. In this implementation, separate data buses are used for the read process and the write process to achieve read / write isolation and avoid conflicts between the read process and the write process.

[0018] According to a second aspect, there is provided a storage device including a controller and a storage medium according to the first aspect or any one of the possible implementations of the first aspect, wherein the controller is connected to at least two media dies included in the storage medium via a bus.

[0019] The controller is configured to send a data transmission command to a first media die of the at least two media dies, the first media die being any media die of the at least two media dies.

[0020] The first media die is configured to receive a data transmission command sent by the controller.

[0021] The first media die is further configured to transmit data and a data identifier corresponding to the data to the controller through the bus based on a data transmission command and a level of a signal line in the storage medium, the level of the signal line being controlled by the two media dies connected by the signal line and used by the at least two media dies to determine an order of performing data transmission through the bus.

[0022] In some possible implementations, the level of a first signal line among the signal lines is constant, and the level of a second signal line other than the first signal line among the signal lines is controlled by two media dies connected by the second signal line based on a data transmission status. The first signal line is between the first media die and a media die next to the first media die, and the data transmission command commands the first media die to transmit data. The first media die is configured to complete preparations according to the data transmission command. The first media die is configured to transmit data and a data identifier to the controller through the bus when it is detected that the first signal line is constant and it is determined by using the level of a third signal line that the first media die has not authorized the media die previous to the first media die, the third signal line being a second signal line between the first media die and the previous media die, and authorization means that data transmission through the bus is permitted. In this implementation, the first media die has the highest priority and can therefore occupy the bus for data transmission as long as the previous media die is deemed not authorized.

[0023] In some possible implementations, the first media die is further configured to control the level of the third signal line in response to determining that the previous media die is requesting permission by using the level of the third signal line after the transmission is completed, to allow the previous media die when it is determined that the first media die is not performing transmission. When the previous media die requests permission, the first media die can allow the previous media die if the first media die does not need to occupy the bus for data transmission.

[0024] In some possible implementations, the level of a first signal line among the signal lines is controlled by a first media die and a media die next to the first media die based on a data transmission status, and the level of a second signal line other than the first signal line among the signal lines is constant. The first signal line is between the first media die and the next media die, and the data transmission command commands the first media die to transmit data. The first media die is configured to complete preparations according to the data transmission command. The first media die is configured to control the level of the first signal line to request permission from the next media die by using the level of a third signal line when it is determined that the first media die has not authorized the media die previous to the first media die. The third signal line is a second signal line located between the first media die and the previous media die, and permission means that the first media die is allowed to perform data transmission through the bus. The first media die is configured to transmit data and a data identifier corresponding to the data to the controller through the bus when it is determined that the next media die has granted permission by using the level of the first signal line. In this implementation, the first media die does not have the highest priority. Therefore, in addition to determining that the previous media die is not authorized, the first media die must also be authorized by the next media die with a higher priority before it can occupy the bus for data transmission.

[0025] In some possible implementations, the media die is further configured to control the level of the first signal line to request the next media die to revoke permission after the transmission is completed. The first media die is further configured to determine that the next media die has revoked permission by using the level of the first signal line. Because the first media die has previously requested permission, the first media die must further request that permission be revoked to release the bus and allow another media die to occupy the bus for data transmission.

[0026] In some possible implementations, the first media die is configured to control the level of the first signal line to request the next media die to revoke permission when it is determined that the previous media die has not requested permission by using the level of the third signal line before the first media die completes transmission. If the previous media die has not requested permission from the first media die in the transmission process performed by the first media die, the first media die directly requests to revoke permission after completing transmission.

[0027] In some possible implementations, the first media die is further configured to control the level of the third signal line to authorize the previous media die after completing the transmission if it is determined that the previous media die has requested permission by using the level of the third signal line before the first media die completes the transmission. If the previous media die requests permission from the first media die in the transmission process performed by the first media die, after completing the transmission, the first media die does not temporarily request the next media die to revoke permission and authorizes the previous media die.

[0028] In some possible implementations, the first media die is further configured to control the level of the first signal line to request permission from the next media die when it is determined that the previous media die has requested permission and the first media die is not transmitting, by using the level of the third signal line, after it is determined that the next media die has revoked permission by using the level of the first signal line. The first media die is further configured to control the level of the third signal line to authorize the previous media die when it is determined that the next media die has granted permission by using the level of the first signal line. If the first media die determines that the previous media die is requesting permission after requesting the next media die to revoke permission, the first media die must further request permission from the next media die again in order to authorize the previous media die.

[0029] In some possible implementations, the bus includes a first data bus and a second data bus. The first media die is configured to send data and a data identifier to the controller through the first data bus, and the second data bus is used by the controller to send data that needs to be written to the at least two media dies. This implementation is for read / write separation.

[0030] In some possible implementations, the levels of each signal line are constant, and the data transmission command commands the first media die to prepare. The first media die is configured to complete preparation in accordance with the data transmission command when it is detected that the first signal line is at a constant level and that the third signal line is also at a constant level, the first signal line being between the first media die and the media die next to the first media die, and the third signal line being between the first media die and the media die preceding the first media die. The first media die is configured to transmit data and a data identifier corresponding to the data to the controller via the bus under the control of the controller. In this implementation, each media die has the same priority, and the media die must complete the data transmission process under the control of the controller. This implementation may be compatible with prior art communication protocols.

[0031] In some possible implementations, the bus includes a first data bus and a second data bus. The first media die is configured to transmit data and a data identifier corresponding to the data to the controller through the target data bus. The target data bus is the first data bus or the second data bus. The target data bus is further used by the controller to transmit data that needs to be written to the at least two media dies. This implementation is a combined read / write scheme and may be compatible with prior art communication protocols.

[0032] In some possible implementations, one of the at least two media dies includes a selector and a register, the selector having a first end selected in response to a level of a signal line being at a constant level, the first end configured to configure a level of a signal line associated with the register to the constant level, the selector having a second end selected in response to the level of the signal line being controlled by two media dies connected by the signal line based on a data transmission status, the second end indicating that the level of the signal line is controlled by two media dies connected by the signal line based on the data transmission status.

[0033] In some possible implementations, the signal lines include a request signal line and a feedback signal line, and according to the levels of the signal lines being at certain levels, the level of the request signal line is at a first level, which means that permission is not requested, and the level of the feedback signal line is at a second level, which means that permission is granted, which means that data transmission is allowed through the bus.

[0034] In some possible implementations, the signal lines include a request signal line and a feedback signal line, and the level of the signal line is controlled by two media dies connected by the signal line based on a data transmission status, where the level of the request signal line is a first level or a third level, where the first level means that permission is not requested and the third level means that permission is requested, and the level of the feedback signal line is a second level or a fourth level, where the second level means that permission is granted and the fourth level means that permission is not granted, and permission means that data transmission is allowed through the bus.

[0035] In some possible implementations, the storage medium includes a state machine configured to record a status of a first media die. The status of the first media die is an idle state before the first media die becomes ready and after the first media die completes transmission of the data and the data identifier. The status of the first media die is a ready state after the first media die becomes ready. The status of the first media die is a data transmission state when the first media die transmits the data and the data identifier to the controller. After the first media die authorizes the media die preceding the first media die, the status of the first media die is a data transmission state of another media die, and the data transmission state of another media die means that another media die following the first media die is performing data transmission.

[0036] According to a third aspect, there is provided a storage medium configuration method. The method is applied to configuring the storage medium according to the first aspect or any one of the possible implementations of the first aspect, and includes the steps of: obtaining signal line information of the storage medium, the signal line information indicating signal lines in the storage medium; and configuring levels of the signal lines indicated by the signal line information, the levels of the signal lines being controlled by two media dies connected by the signal lines and used by at least two media dies included in the storage medium to determine an order of performing data transmission over a bus. In the present application, after the media dies are packaged to obtain the storage medium, the priority of the media dies can be adjusted by configuring the levels of the signal lines.

[0037] In some possible implementations, the level of any one signal line is constant, and the levels of the remaining signal lines are controlled based on the data transmission status by the two media dies connected by the remaining signal lines, or the levels of each signal line are constant.

[0038] In some possible implementations, one of the at least two media dies includes a selector and a register, the selector configured to select a first end or a second end of the selector, the first end being for configuring a level of a signal line associated with the register to a constant level, and the second end indicating that the level of the signal line is controlled by the two media dies connected by the signal line based on a data transmission status. Configuring the level of the signal line indicated by the signal line information includes configuring the selector to enable the selector to select the first end or the second end.

[0039] For technical effects achieved by some of the possible implementations of the second and third aspects, please refer to the technical effects achieved by the corresponding implementations of the first aspect, and details will not be described again here.

[0040] According to a fourth aspect, there is provided a data transmission method, which is applied to a storage element according to the second aspect or any one of the possible implementations of the second aspect, and which comprises:

[0041] The method includes a step in which the controller sends a data transmission command to a first media die of the at least two media dies, the first media die being any media die of the at least two media dies.

[0042] The first media die receives the data transmission command sent by the controller.

[0043] The first media die transmits data and a data identifier corresponding to the data to the controller through the bus based on a data transmission command and the level of a signal line in the storage medium, and the level of the signal line is controlled by two media dies connected by the signal line and is used by the at least two media dies to determine the order in which to perform data transmission through the bus.

[0044] In one possible implementation, the level of a first signal line among the signal lines is a constant level, and the level of a second signal line among the signal lines other than the first signal line is controlled based on a data transmission status by two media dies connected by the second signal line, the first signal line is between the first media die and a media die next to the first media die, and the data transmission command instructs the first media die to transmit data.

[0045] The first media die transmits data and a data identifier corresponding to the data to the controller through the bus based on the data transmission command and the level of the signal line in the storage medium, including the first media die completing preparations according to the data transmission command. If the first media die detects that the first signal line is at a certain level and determines by using the level of the third signal line that the first media die has not authorized the media die preceding the first media die, the first media die transmits the data and the data identifier to the controller through the bus, the third signal line being the second signal line between the first media die and the preceding media die, and authorization means that data transmission through the bus is permitted.

[0046] In one possible implementation, after the step of transmitting the data and the data identifier to the controller via the bus, the method further includes a step of controlling the level of the third signal line in response to determining that the previous media die is requesting permission by using the level of the third signal line, to allow the previous media die if the first media die determines that the first media die is not performing transmission.

[0047] In one possible implementation, the level of a first signal line among the signal lines is controlled by the first media die and a media die next to the first media die based on a data transmission situation, the level of a second signal line among the signal lines other than the first signal line is at a constant level, the first signal line is between the first media die and the next media die, and the data transmission command instructs the first media die to transmit data.

[0048] The first media die transmitting data and a data identifier corresponding to the data to the controller through the bus based on the data transmission command and the level of the signal line in the storage medium includes the first media die completing preparations in accordance with the data transmission command. The first media die controls the level of the first signal line to request permission from the next media die when the first media die determines that the previous media die of the first media die has not given permission by using the level of the third signal line, the third signal line being a second signal line between the first media die and the previous media die, where permission means that the first media die is allowed to perform data transmission through the bus. The first media die transmits the data and a data identifier corresponding to the data to the controller through the bus when the first media die determines that the next media die has given permission by using the level of the first signal line.

[0049] In one possible implementation, after the step of transmitting the data and the data identifier corresponding to the data to the controller through the bus, the method further includes a step of the first media die controlling a level of a first signal line to request the next media die to revoke permission, and the first media die determines that the next media die has revoked permission by using the level of the first signal line.

[0050] In one possible implementation, controlling the level of the first signal line by the first media die to request the next media die to revoke permission includes controlling the level of the first signal line by the first media die to request the next media die to revoke permission when the first media die determines, by using the level of the third signal line, that the previous media die has not requested permission before completing transmission.

[0051] In one possible implementation, the method further includes a step in which, if the first media die determines, by using the level of the third signal line, that the previous media die is requesting permission before completing the transmission, the first media die controls the level of the third signal line to permit the previous media die after completing the transmission.

[0052] In one possible implementation, after the first media die determines, by using the level of the first signal line, that the next media die has revoked permission, the method further includes the step of controlling the level of the first signal line to request permission from the next media die when the first media die determines, by using the level of the third signal line, that the previous media die has requested permission and the first media die is not transmitting. The first media die is further configured to control the level of the third signal line to grant permission to the previous media die when it is determined, by using the level of the first signal line, that the next media die has granted permission.

[0053] In one possible implementation, the bus includes a first data bus and a second data bus, and the step of transmitting the data and a data identifier corresponding to the data to the controller through the bus includes a step of a first media die transmitting the data and the data identifier to the controller through the first data bus, and the second data bus being used by the controller to transmit the data that needs to be written to at least two media dies.

[0054] In one possible implementation, the levels of each signal line are constant, and the data transmission command commands the first media die to make preparations. The first media die transmitting data and a data identifier corresponding to the data to the controller through the bus based on the data transmission command and the levels of the signal lines in the storage medium includes the first media die completing preparations in accordance with the data transmission command when detecting that the first signal line is at a constant level and that the third signal line is also at a constant level, the first signal line being between the first media die and a media die next to the first media die, and the third signal line being between the first media die and a media die previous to the first media die. The first media die transmits the data and a data identifier corresponding to the data to the controller through the bus under the control of the controller.

[0055] In one possible implementation, the bus includes a first data bus and a second data bus, and the step of transmitting the data and a data identifier corresponding to the data to the controller through the bus includes a step of a first media die transmitting the data and a data identifier corresponding to the data to the controller through a target data bus, wherein the target data bus is the first data bus or the second data bus and is further used by the controller to transmit the data that needs to be written to at least two media dies.

[0056] In one possible implementation, one of the at least two media dies includes a selector and a register, the selector has selected a first end of the selector in response to the level of the signal line being at a constant level, the first end being for configuring the level of the signal line associated with the register to be at a constant level, the selector has selected a second end of the selector in response to the level of the signal line being controlled by the two media dies connected by the signal line based on a data transmission status, and the second end indicates that the level of the signal line is controlled by the two media dies connected by the signal line based on a data transmission status.

[0057] In one possible implementation, the signal lines include a request signal line and a feedback signal line, and according to the level of the signal lines being at a certain level, the level of the request signal line is at a first level, which means that permission is not requested, and the level of the feedback signal line is at a second level, which means that permission is granted, which means that data transmission is allowed to be performed over the bus.

[0058] In one possible implementation, the signal lines include a request signal line and a feedback signal line, and the level of the signal line is controlled by two media dies connected by the signal line based on a data transmission status, where the level of the request signal line is a first level or a third level, where the first level means that permission is not requested and the third level means that permission is requested, and the level of the feedback signal line is a second level or a fourth level, where the second level means that permission is granted and the fourth level means that permission is not granted, and permission means that data transmission is allowed through the bus.

[0059] In one possible implementation, the storage medium includes a state machine configured to record a status of a first media die. The status of the first media die is an idle state before the first media die becomes ready and after the first media die completes transmission of data and a data identifier. The status of the first media die is a ready state after the first media die becomes ready. The status of the first media die is a data transmission state when the first media die transmits data and a data identifier to the controller. After the first media die authorizes the media die preceding the first media die, the status of the first media die is a data transmission state of another media die, and the data transmission state of another media die means that another media die following the first media die is performing data transmission.

[0060] For technical effects achieved by possible implementations of the fourth aspect, please refer to the technical effects achieved by corresponding implementations of the second aspect, and details will not be described again here. [Brief explanation of the drawings]

[0061] [Figure 1] 1 is a schematic diagram of a structure of a storage medium according to an embodiment of the present application; [Figure 2] 1 is a schematic diagram of a structure of a storage medium according to an embodiment of the present application; [Figure 3] 1 is a schematic diagram of a structure of a storage medium according to an embodiment of the present application; [Figure 4] 1 is a schematic diagram of a structure of a storage medium according to an embodiment of the present application; [Figure 5] 1 is a schematic diagram of a structure of a storage medium according to an embodiment of the present application; [Figure 6] 1 is a schematic diagram of a structure of a storage medium according to an embodiment of the present application; [Figure 7] 1 is a schematic diagram of a structure of a storage medium according to an embodiment of the present application; [Figure 8] 1 is a schematic diagram of a structure of a memory element according to an embodiment of the present application; [Figure 9] 1 is a schematic diagram of a structure of a memory element according to an embodiment of the present application; [Figure 10] 1 is a flowchart of a storage medium configuration method according to an embodiment of the present application. [Figure 11] 1 is a flowchart of a data transmission method according to an embodiment of the present application; DETAILED DESCRIPTION OF THE INVENTION

[0062] The terms used in the implementation of this application are only used to describe specific embodiments of this application and are not intended to limit this application.

[0063] One embodiment of the present application provides a storage medium. See FIG. 1. The storage medium includes at least two media dies. The at least two media dies are sequentially connected by a signal line to form a closed loop, and the at least two media dies are for data transmission through a bus. The level of the signal line is controlled by the two media dies connected by the signal line and is used by the at least two media dies to determine the order of performing data transmission through the bus.

[0064] The bus is shared by at least two media dies. To avoid conflicts arising from each media die simultaneously occupying the bus for data transmission, each media die determines the order of data transmission through the bus by using the level of the signal line. In the storage medium provided in this embodiment of the present application, after the media die is instructed using an instruction to prepare, there is no need to consume processing resources to check in a polling manner whether the media die is ready. After the media die is ready, it can autonomously determine the order of data transmission through the bus by using the level of the signal line to occupy the bus and complete the data transmission. This saves processing resources, reduces data transmission delays, and improves data transmission efficiency.

[0065] The levels of the signal lines are for permission requests, permission, permission revocation requests, and permission revocation between two media dies connected by the signal lines, and permission means that data transmission is permitted through the bus. For a ready media die, if at least two media dies have higher priority, the ready media die controls the level of the signal line to request permission from each media die with a higher priority when the order of data transmission through the bus is determined using the level of the signal line. If there is no need to occupy the bus, the media die with a higher priority controls the level of the signal line to grant permission to the ready media die. After being granted permission, the ready media die occupies the bus for data transmission. After data transmission is completed, the ready media die further controls the level of the signal line to request permission from each media die with a higher priority. To release the bus, the media die with a higher priority controls the level of the signal line to revoke permission from the ready media die. Alternatively, if there is no media die with a higher priority than at least two media dies, the ready media die does not need to request permission and directly occupies the bus to complete data transmission, and after data transmission is completed, it can release the bus without requesting permission to revoke.

[0066] It should be noted that in the prior art, when a storage medium includes at least two media dies, the at least two media dies are only sequentially connected by signal lines, and no closed loop is formed. In addition, in the prior art, the priority of the media dies depends on the connection order of the media dies. After the media dies are packaged to obtain the storage medium, the connection order of the media dies does not change. Therefore, the priority of the media dies does not change. Therefore, in the prior art, the priority of the media dies needs to be determined during packaging of the media dies and does not change after packaging is completed.

[0067] However, in this embodiment of the present application, at least two media dies are sequentially connected by signal lines, further forming a closed loop. After the media dies are packaged to obtain a storage medium, the connection order of the media dies remains unchanged, but due to the closed loop structure, if the priority of any media die changes, the priorities of the remaining media dies can also be adaptively changed to adjust the priority of the media die. Therefore, in this embodiment of the present application, the priority of the media die does not need to be determined during the packaging of the media die, and can be adjusted even after packaging is completed.

[0068] In an exemplary embodiment, the signal line levels include the following two cases: A1 and A2.

[0069] Case A1: The level of one of the signal lines is constant, and the levels of the remaining signal lines are controlled based on the data transmission status by the two media dies connected by the remaining signal lines.

[0070] It can be seen from the above description that the levels of the signal lines are for permission requests, permission, permission revocation requests, and permission revocation between two media dies connected by the signal lines. Therefore, if the level of any signal line is configured to a certain level, and the certain level allows one media die connected to that signal line to be granted permission without requesting permission, that media die can be determined to have the highest priority. Since the levels of the remaining signal lines are controlled by the two media dies connected by the remaining signal lines based on the data transmission status, the priorities of the remaining media dies can be determined based on the media die with the highest priority. For example, the priorities of the other media dies following the media die with the highest priority sequentially decrease.

[0071] See Figure 2. For example, the signal lines include a request signal line and a feedback signal line, where the request signal line is for requesting permission or for requesting permission to be revoked, and the feedback signal line is for permission or for revoking permission.

[0072] In an exemplary embodiment, when the level of the signal line is at a certain level, the level of the request signal line is at a first level, which means that permission is not requested, so the media die does not need to request permission through the request signal line, and the level of the feedback signal line is at a second level, which means that permission is given, so the media die is directly enabled without requesting permission.

[0073] In an exemplary embodiment, when two media dies connected by the signal line control the level of the signal line based on a data transmission status, the level of the request signal line is a first level or a third level, where the first level means that permission is not requested and the third level means that permission is requested. The media dies can control the level of the request signal line based on an actual data transmission status. When permission needs to be requested, the level of the request signal line is controlled to be the third level. When permission needs to be revoked, the level of the request signal line is controlled to be the first level.

[0074] The level of the feedback signal line is either the second level or the fourth level, where the second level means that permission is granted and the fourth level means that permission is not granted. The media die can control the level of the request signal line based on the actual data transmission situation. If permission needs to be granted, the level of the request signal line is controlled to be the second level. If permission needs to be revoked, the level of the request signal line is controlled to be the fourth level.

[0075] For example, the first level is equal to the fourth level, the third level is equal to the second level, and the first level is lower than the third level. In this case, the first and fourth levels are also called low levels and can be represented by 0. The second and third levels are also called high levels and can be represented by 1. In this case, a high level (third level) on the request signal line means that permission is requested, and a high level (second level) on the feedback signal line means that permission is granted, so both the request signal line and the feedback signal line are active-high signal lines.

[0076] See Figures 3 and 4. The priority of the media dies will be described using an example in which a storage medium includes media dies 0 to 3. The level of RDY 3 is a fixed level, i.e., 0, and the level of ACK 0 is a fixed level, i.e., 1. Therefore, media die 3 can be granted permission without requesting permission from media die 0 and has the highest priority. In addition, media die 0 and media die 1 control the levels of RDY 0 and ACK 1 based on the data transmission status. Since RDY 0 is directed from media die 0 to media die 1 and ACK 1 is directed from media die 1 to media die 0, between media die 0 and media die 1, media die 0 requests permission from media die 1 or requests media die 1 to revoke permission, and media die 1 grants media die 0 or revokes permission for media die 0. Therefore, the priority of media die 0 is lower than the priority of media die 1. Similarly, media die 1 and media die 2 control the levels of RDY 1 and ACK 2 based on the data transmission status, and the priority of media die 1 is lower than the priority of media die 2. Media die 2 and media die 3 control the levels of RDY 2 and ACK 3 based on the data transmission status, and the priority of media die 2 is lower than the priority of media die 3. Therefore, the priorities of media die 3, media die 2, media die 1, and media die 0 are in descending order.

[0077] Case A2: The level of each signal line is constant.

[0078] In case A2, since the level of each signal line is at a constant level, each media die is the media die with the highest priority, and at least two media dies have the same priority.

[0079] For example, the signal lines include a request signal line and a feedback signal line. If the signal lines have a constant level, please refer to the description of Case A1 above for the levels of the request signal line and the feedback signal line. Details will not be described again here.

[0080] Please refer to FIG. 5. Continuing, the priority of the media dies will be described using an example in which a storage medium includes media dies 0 to 3. The level of RDY 3 is a fixed level, i.e., 0, and the level of ACK 0 is a fixed level, i.e., 1. Therefore, media die 3 can be granted permission without requesting permission from media die 0 and has the highest priority. In addition, the levels of RDY 0, RDY 1, and RDY 2 are also fixed levels, i.e., 0, and the levels of ACK 1, ACK 2, and ACK 3 are also fixed levels, i.e., 1. Therefore, media die 0, media die 1, and media die 2 also have the highest priority. Therefore, media die 3, media die 2, media die 1, and media die 0 have the same priority.

[0081] In an exemplary embodiment, one of the at least two media dies includes a selector and a register, the selector configured to select a first end or a second end of the selector, the first end for configuring a level of a signal line associated with the register to a constant level, and the second end for instructing the two media dies connected by the signal line to control the level of the signal line based on a data transmission status. Thus, the selector is controlled to select the first end or the second end to set the level of the signal line to a constant level or to cause the two media dies connected by the signal line to control the level of the signal line based on a data transmission status. Since the priority of a media die is related to the level of the signal line, the priority of the media die can be flexibly adjusted in this manner.

[0082] When the signal line includes a request signal line and a feedback signal line, the two media dies connected by the signal line not only include selectors and registers corresponding to the request signal line, but also include selectors and registers corresponding to the feedback signal line to control the request signal line and the feedback signal line.

[0083] For example, the level of any signal line is configured by setting the value of a register. When the register is set to a different value, the level of the signal line changes. For example, for the request signal line, when the register is set to 1, the level of the request signal line becomes the third level. When the register is set to 0, the level of the request signal line becomes the first level. As another example, for the feedback signal line, when the register is set to 1, the level of the request signal line becomes the second level. When the register is set to 0, the level of the request signal line becomes the fourth level.

[0084] Of course, the method of adjusting the level of the signal line using the selector and the register is merely an example in the above description and is not intended to limit the embodiments of the present application. For example, in the embodiments of the present application, instead, the media die can not only control the level of the signal line to be at a constant level, but also control the level of the signal line based on the data transmission status.

[0085] In an exemplary embodiment, for two media dies connected by any signal line, the registers and selectors are arranged in two ways:

[0086] In the first arrangement, one of the two media dies connected by a signal line includes a selector and a register. See Figure 6. For example, if one of the signal lines includes a request signal line and a feedback signal line, one of the two media dies not only includes a selector and a register corresponding to the request signal line, but also includes a selector and a register corresponding to the feedback signal line.

[0087] As shown in FIG. 6, the selectors are shown as trapezoids containing 0s and 1s, with a first end shown as 0 and a second end shown as 1. A register is connected to the first end 0 of the selector. Media die 0 includes a selector and a register associated with RDY 0 and ACK 1, and media die 1 includes a selector and a register associated with RDY 1 and ACK 0. RDY 0 and ACK 1 are used as an example for purposes of explanation, and RDY 1 and ACK 0 will not be described here.

[0088] In media die 0, when the selector associated with RDY 0 selects first end 0, the level of RDY 0 is configured by a register, or when the selector associated with RDY 0 selects second end 1, the level of RDY 0 (rdy_out in media die 0) is controlled by media die 0 based on a data transmission status, and the level of RDY 0 (rdy_in in media die 1) that can be detected by media die 1 is the level of RDY 0. Additionally, in media die 0, when the selector associated with ACK 1 selects first end 0, the level of ACK 1 is configured by a register, or when the selector associated with ACK 1 selects second end 1, the level of ACK 1 (ack_out in media die 1) is controlled by media die 1 based on a data transmission status, and the level of ACK 1 (ack_in in media die 0) that can be detected by media die 0 is the level of ACK 1.

[0089] In the second arrangement, two media dies connected by a signal line each include a selector and a register. See Figure 7. For example, if the signal line includes a request signal line and a feedback signal line, each of the two media dies not only includes a selector and a register corresponding to the request signal line, but also includes a selector and a register corresponding to the feedback signal line.

[0090] As shown in FIG. 7, the selector is shown as a trapezoid containing 0s and 1s, with a first end shown as 0 and a second end shown as 1. A register is connected to the first end 0 of the selector. Both media die 0 and media die 1 include selectors and registers associated with RDY 0 and ACK 1, as well as selectors and registers associated with RDY 1 and ACK 0. RDY 0 and ACK 1 are used as an example for purposes of explanation, and RDY 1 and ACK 0 will not be described here.

[0091] In media die 0 and media die 1, if the selectors associated with RDY 0 both select first end 0, the level of RDY 0 is configured by a register, or if the selectors associated with RDY 0 both select second end 1, the level of RDY 0 (rdy_out in media die 0) is controlled by media die 0 based on the data transmission status, and the level of RDY 0 (rdy_in in media die 1) that can be detected by media die 1 is the level of RDY 0. Additionally, in media die 0 and media die 1, if the selectors associated with ACK 1 both select first end 0, the level of ACK 1 (ack_out in media die 1) is configured by a register, or if the selectors associated with ACK 1 both select second end 1, the level of ACK 1 (ack_in in media die 0) is controlled by media die 1 based on the data transmission status, and the level of ACK 1 that can be detected by media die 0 is the level of ACK 1.

[0092] 7 is merely an example and does not limit the manner in which the selectors and registers are arranged. For example, in addition to the case shown in FIG. 7, there may be a case in which one of the two media dies includes a selector and a register corresponding to a request signal line, and the other media die includes a selector and a register corresponding to a feedback signal line. As another example, there may be a case in which one of the two media dies includes a selector and a register corresponding to a request signal line or a selector and a register corresponding to a feedback signal line, and the other media die includes not only a selector and a register corresponding to a request signal line, but also a selector and a register corresponding to the feedback signal line.

[0093] Of the two placement methods mentioned above, placement method 2 will be used here as an example to explain the selectors and registers.

[0094] See Figures 3 and 4. Media die 3 and media die 0 include selectors and registers associated with RDY 3 and ACK 0, respectively. The selectors associated with RDY 3 and ACK 0 select the first end (the first end is shown as 0), so that the registers configure the level of RDY 3 to a constant level, i.e., 0, and the level of ACK 0 to a constant level, i.e., 1. Media die 0 and media die 1 include selectors and registers associated with RDY 0 and ACK 1, respectively; media die 1 and media die 2 include selectors and registers associated with RDY 1 and ACK 2, respectively; and media die 2 and media die 3 include selectors and registers associated with RDY 2 and ACK 3, respectively. The selectors associated with RDY 0, ACK 1, RDY 1, ACK 2, RDY 2, and ACK 3 all select the second end (the second end is shown as 1). Thus, the priority of media die 3, media die 2, media die 1, and media die 0 is in descending order.

[0095] See Figure 5. All selectors included in media die 3, media die 2, media die 1, and media die 0 select the first end, so that media die 3, media die 2, media die 1, and media die 0 have the same priority.

[0096] Additionally, in the two arrangement methods described above, one media die may include multiple selectors. In some implementations, the first ends of the multiple selectors correspond to the same register. Multiple bits are arranged on the register and correspond one-to-one with the first ends of the multiple selectors. A bit can configure the level of a signal line associated with the selector corresponding to that bit. In some other implementations, the first ends of the multiple selectors correspond one-to-one with multiple registers. In this case, only one bit needs to be arranged on each register. Details will not be described here.

[0097] Since the media die is for data transmission through the bus, the media die needs to be connected to the bus. For example, the media die includes pins and is connected to the bus through the pins. In an exemplary embodiment, the media die includes a first data pin and a second data pin, and the bus includes a first data bus and a second data bus. The first data pin is configured to be connected to the first data bus, and the second data pin is configured to be connected to the second data bus. The first data bus is used by at least two media dies to transmit data, and the second data bus is for transmitting data to the at least two media dies.

[0098] The process of transmitting data by at least two media dies is a read process, and the first data bus is also called a read bus. The process of transmitting data to at least two media dies is a write process, and the second data bus is also called a write bus. Since separate data buses are used for the read process and the write process, read / write separation is realized. The reasons for adopting read / write separation in the embodiments of the present application are as follows.

[0099] In the read process, when the media die is ready and determines the order of transmitting data through the bus by using the level of the signal line, the media die can autonomously occupy the bus for data transmission. Therefore, the read process is a process controlled by the media die. In the write process, the media die needs to receive data transmitted to the media die and then write the data, so the write process is a process controlled by the data transmitting side (e.g., the controller). The read process and the write process are controlled by different entities (the media die or the data transmitting side). Therefore, to avoid conflicts between the read process and the write process, it is necessary to use different data buses for the read process and the write process.

[0100] It should be understood that both the first data bus and the second data bus have bidirectional data transmission capabilities. In the above-described embodiment, to achieve read / write separation, the first data bus is simply used by the media die to transmit data, and the second data bus is simply used to transmit data to the media die. For example, the first data bus or the second data bus is used as the target data bus. Based on actual requirements, the target data bus can instead be used not only by the media die to transmit data, but also to transmit data to the media die. This case achieves read / write combination rather than read / write separation.

[0101] For example, the media die may further include pins configured to be connected to the signal lines in addition to the pins described above. See Figures 6 and 7. When the signal lines include a request signal line and a feedback signal line, the pins included in the media die and configured to be connected to the signal lines are an output pin (o / p) configured to be connected to the request signal line and an input pin (i / p) configured to be connected to the feedback signal line.

[0102] In an exemplary embodiment, the storage medium further includes a state machine. The state machine is configured to record the status of the media die. The status of the media die includes an idle state (I), a ready state (R), a data transmission state (T), and a data transmission state of another media die (B). The data transmission state of another media die means that another media die following the media die is performing data transmission. For the states of the media die, please refer to the description corresponding to the data transmission method below shown in FIG. 11.

[0103] An embodiment of the present application further provides a storage element. As shown in FIG. 8, the storage element includes a controller and a storage medium. The controller is connected to at least two media dies included in the storage medium through a bus. The storage medium is the storage medium shown in any one of FIGS. 1 to 7. The bus is for transmitting data between the controller and the media dies. The data transmission process includes the above-mentioned read process and write process. In the read process, the media die transmits data to the controller. In the write process, the controller transmits data to the media die.

[0104] For example, as shown in FIG. 9, the bus includes a first data bus and a second data bus to achieve read / write separation. Please continue to refer to FIG. 9. The first data bus includes DQ_R and DQS_R. DQ_R is used by the media die to send data to the controller, and DQS_R is used by the media die to send a clock signal to the controller, and the controller and the media die align the clock signals in the read process. The second data bus includes DQ_W and DQS_W. DQ_W is used by the controller to send data to the media die, and DQS_W is used by the controller to send a clock signal to the media die, and the controller and the media die align the clock signals in the write process. The clock signals indicate a clock cycle, and the clock cycle is the smallest time unit for data transmission between the controller and the media die.

[0105] Please continue to refer to FIG. 9. In addition to the first data bus and the second data bus, a chip enable (CE) bus and a chip address (CA) bus are further included between the controller and the media die. The CE bus is used by the controller to send an enable signal to the media die, so that the media die has data transmission capability. The CA bus is used by the controller to send a data transmission command to the media die, and the data transmission command includes address information and an operation type. The address information indicates a physical address on the media die of the data to be transmitted. The operation type indicates an operation to be performed by the media die. For example, the operation to be performed by the media die includes, but is not limited to, reading and writing.

[0106] The storage element shown in Fig. 8 or Fig. 9 provided in this embodiment of the present application may be configured to perform data transmission. For the data transmission method, please refer to the following description corresponding to Fig. 11, and details will not be described here.

[0107] An embodiment of the present application further provides a storage medium configuration method. The method is applied to configure the storage medium shown in any one of Figures 1 to 7. It should be noted that the method may be applied to a controller of the storage element shown in Figure 8 or Figure 9. Alternatively, the method may be applied to another electronic device that may be connected to the storage medium shown in any one of Figures 1 to 7. As shown in Figure 10, the storage medium configuration method includes the following steps 1001 and 1002.

[0108] Step 1001: Obtain signal line information of a storage medium, the signal line information indicating a signal line within the storage medium.

[0109] The signal line information of the storage medium may be generated during the process of packaging the media die to obtain the storage medium, and the manner of obtaining the signal line information is not limited to the embodiments of the present application.

[0110] Step 1002: Configuring a level of a signal line indicated by the signal line information, the level of the signal line being controlled by two media dies connected by the signal line and used by at least two media dies included in the storage medium to determine an order of performing data transmission through the bus.

[0111] The priority of the media die can be adjusted by configuring the levels of the signal lines. For example, corresponding to Case A1, FIGS. 3, and 4 in the above description, the level of one signal line is fixed, and the levels of the remaining signal lines are controlled based on the data transmission status by the two media dies connected by the remaining signal lines. As another example, corresponding to Case A2 and FIG. 5 in the above description, the levels of each signal line are fixed.

[0112] In an exemplary embodiment, one of the at least two media dies includes a selector and a register. For the selector and the register, please refer to the above description. Details will not be described again here. Accordingly, configuring the level of the signal line indicated by the signal line information includes configuring the selector to enable the selector to select the first end or the second end.

[0113] For a signal line, the signal line has a corresponding target media die. The target media die includes a selector and a register associated with the signal line. Therefore, in an embodiment of the present application, when the level of the signal line needs to be configured, the target media die corresponding to the signal line is first determined. Then, the selector included in the target die is configured to enable the selector to select the first end or the second end to configure the level of the signal line.

[0114] An embodiment of the present application further provides a data transmission method, which is applied to the storage element shown in Figure 8 or Figure 9. As shown in Figure 11, the method includes the following steps 1101 to 1103:

[0115] Step 1101: A controller sends a data transmission command to a first media die of at least two media dies, where the first media die is any one of the at least two media dies.

[0116] The controller first sends an enable signal to the first media die through the CE bus shown in Figure 9, and the enable signal enables the first media die. Then, the controller sends a data transmission command to the first media die through the CA bus shown in Figure 9.

[0117] Step 1102: The first media die receives the data transmission command sent by the controller.

[0118] The controller sends a data transmission command to the first media die, and the first media die receives the data transmission command accordingly.

[0119] Step 1103: The first media die transmits data and a data identifier corresponding to the data to the controller through the bus based on the data transmission command and the level of the signal line in the storage medium, the level of the signal line being controlled by the two media dies connected by the signal line and used by the at least two media dies to determine the order of performing data transmission through the bus.

[0120] The first media die transmits data and a data identifier to the controller via the bus, and the data identifier is used by the controller to determine which media die of the at least two media dies transmits the data. For example, the data identifier is an identifier of the first media die, and the identifier of the first media die indicates the first media die. In this case, after receiving the data and the identifier of the first media die, the controller can determine, based on the identifier of the first media die, that the data is to be transmitted by the first media die of the at least two media dies.

[0121] In an exemplary embodiment, the first media die transmitting data and a data identifier corresponding to the data to the controller through the bus based on a data transmission command and the level of a signal line in the storage medium includes the following three cases B1 to B3:

[0122] Case B1: The level of a first signal line among the signal lines is at a constant level, and the level of a second signal line other than the first signal line among the signal lines is controlled based on a data transmission status by two media dies connected by the second signal line, the first signal line is between the first media die and the media die next to the first media die, and the data transmission command instructs the first media die to transmit data.

[0123] In case B1, the first media die is the media die with the highest priority, and the priorities of the media dies following the first media die are in descending order. See Figure 3. For example, the first media die is media die 3. The priorities of media die 3, media die 2, media die 1, and media die 0 are in descending order.

[0124] The data transmission command instructs the first media die to transmit data and a data identifier to the controller. In this case, the first media die transmits the data and a data identifier corresponding to the data to the controller through the bus based on the data transmission command and the level of a signal line in the storage medium, which includes the first media die completing preparations in accordance with the data transmission command. The data and the data identifier are transmitted to the controller through the bus when it is detected that the first signal line is at a certain level and it is determined by using the level of a third signal line that the first media die has not authorized the media die preceding the first media die, the third signal line being a second signal line between the first media die and the preceding media die, where authorization means that data transmission through the bus is permitted.

[0125] The first media die that has completed preparation has the capability of transmitting data. When the first media die detects that the first signal line is at a certain level, the first media die determines that it does not need to request permission from the next media die, since the permission has already been granted by the next media die. When the first media die determines that the previous media die has not been granted permission by using the level of the third signal line, this means that none of the subsequent media die are transmitting data. Therefore, the first media die can determine that the bus is idle and can therefore transmit data through the bus, specifically, transmit data and a data identifier to the controller through the bus.

[0126] Continuing to refer to Figure 3, the first media die is media die 3. The first signal lines are RDY 3 and ACK 0, and the third signal lines are RDY 2 and ACK 3. When media die 3 detects that the level of RDY 3 is 0, the level of ACK 0 is 1, and the level of ACK 3 is 0, it determines that the bus is idle and transmits data and a data identifier to the controller over the bus.

[0127] For example, after a first media die transmits data and a data identifier corresponding to the data to the controller via the bus, the method further includes controlling the level of the third signal line in response to determining that the previous media die is requesting permission by using the level of the third signal line to permit the previous media die when the first media die determines that the first media die is not transmitting. Since the first media die has the highest priority in Case B1, if the first media die is not transmitting when the previous media die requests permission from the first media die, the previous media die may be permitted. The fact that the first media die is not transmitting means that the first media die is not transmitting data and a data identifier to the controller via the bus.

[0128] In some implementations, after starting transmission but before completing transmission, the first media die determines that the previous media die has requested permission. In this case, after completing transmission, the first media die determines that the first media die is not transmitting and therefore authorizes the previous media die after completing transmission. In some other implementations, after starting transmission and completing transmission, the first media die determines that the previous media die has requested permission. In this case, the first media die can directly authorize the previous media die.

[0129] Continuing to refer to FIG. 3, media die 2 controls the level of RDY 2 to 1 to request permission from media die 3. When media die 3 detects that the level of RDY 2 is 1, it determines that media die 2 is requesting permission. In response to the media die 3 not transmitting data and a data identifier to the controller via the bus, media die 3 controls the level of ACK 3 to 1 to grant permission to media die 2.

[0130] For example, after the first media die controls the level of the third signal line to authorize the previous media die, the method further includes a step in which, in response to determining, by using the level of the third signal line, that the previous media die is requesting that authorization be revoked, the first media die controls the level of the third signal line to revoke authorization of the previous media die.

[0131] 3, after the media die 3 authorizes the media die 2, the media die 2 can further control the level of RDY 2 to 0 to request the media die 3 to revoke the authorization. When the media die 3 detects that the level of RDY 2 is 0, it determines that the media die 2 is requesting to revoke the authorization. Then, the media die 3 controls the level of ACK 3 to 0 to request the media die 2 to revoke the authorization.

[0132] Case B2: The level of a first signal line among the signal lines is controlled by the first media die and the media die next to the first media die based on a data transmission situation, the level of a second signal line among the signal lines other than the first signal line is at a constant level, and the first signal line is between the first media die and the next media die.

[0133] In case B2, the first media die does not have the highest priority. The priorities of the media dies following the first media die are in descending order, and the priorities of the media dies following the first media die are in ascending order. See Figure 4. For example, the first media die is media die 1. The priorities of media die 3, media die 2, media die 1, and media die 0 are in descending order.

[0134] The data transmission command instructs the first media die to transmit data and a data identifier to the controller. The first media die transmits the data and a data identifier corresponding to the data to the controller through the bus based on the data transmission command and the level of a signal line in the storage medium, which includes the first media die completing preparations in accordance with the data transmission command. The first media die controls the level of the first signal line to request permission from the next media die when the first media die determines that the previous media die of the first media die has not granted permission by using the level of the third signal line, the third signal line being a second signal line between the first media die and the previous media die, where permission means that the first media die is allowed to transmit data through the bus. The first media die transmits the data and a data identifier corresponding to the data to the controller through the bus when the first media die determines that the next media die has granted permission by using the level of the first signal line.

[0135] The first media die that has completed preparation has the ability to transmit data. If the first media die determines by using the level of the third signal line that the first media die has not authorized the previous media die, it means that none of the subsequent media dies are transmitting data. However, since the first media die does not have the highest priority, the first media die must further request authorization from a media die with a higher priority. If authorized by the media die with a higher priority, the first media die can determine that the bus is idle and can therefore transmit data through the bus, specifically, can transmit data to the controller through the bus.

[0136] Refer to FIG. 4. The first media die is media die 1. The first signal lines are RDY 1 and ACK 2, and the third signal lines are RDY 0 and ACK 1. When media die 1 detects that the level of ACK 1 is 0, it controls the level of RDY 1 to 1 to request permission from media die 2. If media die 2 does not need to occupy the bus, it controls the level of RDY 2 to 1 to request permission from media die 3, which has the highest priority. If media die 3 does not need to occupy the bus, it controls the level of ACK 3 to 1 to grant permission to media die 2. After detecting that the level of ACK 3 is 1, media die 2 determines that media die 2 is authorized by media die 3, and controls the level of ACK 2 to 1 to grant permission to media die 1. After detecting that the level of ACK 2 is 1, the media die 1 determines that it is authorized by the media die 2, and sees that the level of ACK 1 is 0, and determines that the bus is idle. The media die 1 can send data and a data identifier to the controller through the bus.

[0137] In an exemplary embodiment, after the first media die transmits the data and the data identifier to the controller via the bus, the method further includes the step of the first media die controlling the level of the first signal line to request the next media die to revoke permission. The first media die determines that the next media die has revoked permission by using the level of the first signal line. After starting and completing transmission, the first media die does not need to continue occupying the bus. Therefore, the first media die requests the next media die to revoke permission and determines that the next media die has revoked permission.

[0138] See FIG. 4. For example, media die 1 controls the level of RDY 1 to 0 to request media die 2 to revoke permission. Media die 2 controls the level of RDY 2 to 0 to request media die 3, which has the highest priority, to revoke permission. Media die 3 controls the level of ACK 3 to 0 to revoke permission from media die 2. After detecting that the level of ACK 3 is 0, media die 2 determines that media die 3 has revoked permission, and controls the level of ACK 2 to 0 to revoke permission from media die 1. After detecting that the level of ACK 2 is 0, media die 1 determines that media die 2 has revoked permission, and the bus is released.

[0139] In an exemplary embodiment, controlling the level of the first signal line by the first media die to request the next media die to revoke permission includes controlling the level of the first signal line by the first media die to request the next media die to revoke permission when the first media die determines, by using the level of the third signal line, that the previous media die has not requested permission before completing transmission. See FIG. 4. For example, if the level of RDY 0 always remains 0 before and after media die 1 completes transmission, media die 1 determines, after completing transmission, that media die 0 has not requested permission. Then, media die 1 can control the level of RDY 1 to 0 to request that permission be revoked.

[0140] In an exemplary embodiment, the method further includes a step in which, when the first media die determines by using the level of the third signal line that the previous media die has requested permission before completing transmission, the first media die controls the level of the third signal line to grant permission to the previous media die after completing transmission. If the previous media die requests permission from the first media die in the transmission process performed by the first media die, the first media die temporarily does not request the next media die to revoke permission after completing transmission and grants the previous media die. See FIG. 4. For example, after media die 1 starts transmission and before media die 1 completes transmission, media die 0 controls the level of RDY 0 to 1. In this case, after media die 1 completes transmission, it is detected that the level of RDY 0 is 1, so media die 1 temporarily does not control the level of RDY 1 to 0 and controls the level of ACK 1 to 1 to grant media die 0.

[0141] In an exemplary embodiment, after the first media die determines, by using the level of the first signal line, that the next media die has revoked permission, the method further includes the step of controlling the level of the first signal line to request permission from the next media die when the first media die determines, by using the level of the third signal line, that the previous media die has requested permission and the first media die is not transmitting. The first media die is further configured to control the level of the third signal line to authorize the previous media die when it is determined, by using the level of the first signal line, that the next media die has granted permission. If the first media die determines, after requesting the next media die to revoke permission, that the previous media die has requested permission, the first media die must further request permission from the next media die again in order to authorize the previous media die.

[0142] See Figure 4. For example, after media die 1 requests to revoke permission, the levels of RDY 1 and ACK 2 are both 0. In this case, media die 0 controls the level of RDY 0 to 1 to request permission from media die 1. In this case, media die 1 needs to set the level of RDY 1 to 1 again to request permission from media die 2. After detecting that the level of ACK 2 is 1, it is determined that media die 2 has granted permission. Then, media die 1 further controls the level of ACK 1 to 1 to grant permission to media die 0.

[0143] For example, after the first media die controls the level of the third signal line to authorize the previous media die, the method further includes a step in which, if the first media die determines based on the level of the third signal line that the previous media die is requesting revocation of authorization, the first media die controls the level of the first signal line to request the next media die to revoke authorization. After it is determined that the next media die has revoked authorization using the level of the first signal line, the level of the third signal line is controlled to revoke authorization of the previous media die. See FIG. 4. For example, media die 0 controls the level of RDY 0 to 0 to request media die 1 to revoke authorization. Media die 1 controls the level of RDY 1 to 0 to request media die 2 to revoke authorization, and after detecting that the level of ACK 2 is 0, determines that media die 2 has revoked authorization. Then, media die 1 further controls the level of ACK 1 to 0 to revoke authorization of media die 0.

[0144] In an exemplary embodiment, the bus includes a first data bus and a second data bus. In the above-described cases B1 and B2, transmitting data and a data identifier corresponding to the data from the first media die to the controller through the bus includes transmitting the data and the data identifier from the first media die to the controller through the first data bus, and the second data bus is used by the controller to transmit data that needs to be written to at least two media dies to achieve read / write isolation.

[0145] It can be seen from the above description corresponding to Figure 9 that a clock cycle is the smallest unit of time for data transmission. In some implementations, the first media die transmits the data identifier to the controller in the first clock cycle and transmits the data to the controller in at least one clock cycle after the first clock cycle. In some other implementations, the first media die alternately transmits the data identifier and the data in separate clock cycles.

[0146] Case B3: The level of each signal line is constant.

[0147] In case B3, each media die has the same priority. See Figure 5. For example, the first media die may be any one of media die 3, media die 2, media die 1, and media die 0.

[0148] The data transmission command instructs the first media die to make preparations. The first media die transmits data and a data identifier corresponding to the data to the controller through the bus based on the data transmission command and the level of a signal line in the storage medium, including the first media die completing the preparations in accordance with the data transmission command when detecting that the first signal line is at a constant level and that the third signal line is also at a constant level, the first signal line being between the first media die and a media die next to the first media die, and the third signal line being between the first media die and a media die previous to the first media die. The first media die transmits the data and a data identifier corresponding to the data to the controller through the bus under the control of the controller.

[0149] When the first media die detects that the first signal line is at a constant level, it determines that it does not need to request permission from the next media die, as it has already been granted permission by the next media die. When the third signal line detects that the third signal line is at a constant level, it determines that the previous media die has not requested permission, as it has already granted the previous media die. Therefore, the first media die determines that each media die has equal priority and that no permission or revocation between each media die is necessary. In this case, the first media die can prepare directly. For example, after completing preparation according to a data transmission command, the first media die can continue to wait for another command sent by the controller. The other command instructs the first media die to transmit data and a data identifier to the controller.

[0150] See Figure 5. For example, the first media die is media die 2. In this case, the first signal line is RDY 2 and ACK 3, and the third signal line is RDY 1 and ACK 2. After receiving the data transmission command, media die 2 detects that the level of RDY 2 is 0, the level of ACK 3 is 1, the level of RDY 1 is 0, and the level of ACK 2 is 1. In this case, media die 2 prepares according to the data transmission command. Then, after receiving another command sent by the controller, media die 2 can transmit data and a data identifier to the controller according to the other command.

[0151] In case B3, after receiving another command, the first media die transmits data and a data identifier corresponding to the data to the controller through the bus. In case B3, the first media die does not autonomously determine the data to be transmitted through the bus after completing preparation. Therefore, the first media die does not autonomously occupy the bus to complete the data transmission, but must complete the data transmission under the control of the controller. In the communication protocol provided in the prior art, the media die also must complete the data transmission under the control of the controller. Therefore, case B3 may be compatible with the communication protocol of the prior art. The communication protocol of the prior art includes, but is not limited to, the common flash interface (CFI) protocol, etc.

[0152] In an exemplary embodiment, the bus includes a first data bus and a second data bus. The first media die transmitting data and a data identifier corresponding to the data to the controller through the bus includes the first media die transmitting data and a data identifier corresponding to the data to the controller through a target data bus, where the target data bus is the first data bus or the second data bus and is further used by the controller to transmit data to be written to at least two media dies to realize the read / write combination. For the manner of transmitting data and a data identifier to the controller through the target data bus, please refer to the manner of transmitting data and a data identifier to the controller through the first data bus in the above description. Details will not be described again here.

[0153] Additionally, in an exemplary embodiment, the storage medium includes a state machine. The state machine is configured to record the status of the first media die, i.e., idle state, ready state, data transmission state, and data transmission state of another media die. In the data transmission method shown in FIG. 11, the state machine records the status of the first media die in the following manner:

[0154] The state machine records the status of the first media die as an idle state before the first media die is ready and after the first media die has completed transmitting the data and data identifier. After the first media die is ready, the status of the first media die is a ready state. When the first media die transmits the data and data identifier to the controller, the status of the first media die is a data transmitting state. After the first media die authorizes the media die before the first media die, the status of the first media die is a data transmitting state for another media die to indicate that the first media die is performing a data transmission.

[0155] In short, in this embodiment of the present application, the media die can determine the order of data transmission through the bus based on the level of the signal line. Therefore, processing resources are not consumed to check whether the media die is ready in a polling manner, and the media die can autonomously occupy the bus to complete data transmission after it is ready. This saves processing resources, reduces data transmission delays, and improves data transmission efficiency.

[0156] In addition, since at least two media dies are connected sequentially to form a closed loop, in this embodiment of the present application, the priority of the media dies does not need to be determined during packaging of the media dies, but can be adjusted after packaging.

[0157] In optional embodiments, the storage medium may include a read-only storage medium and a random-access storage medium. The storage medium may further include a non-volatile random-access storage medium. For example, the storage medium may further store information about a device type. The storage medium may be a volatile storage medium or a non-volatile storage medium, or may include both a volatile storage medium and a non-volatile storage medium. The non-volatile storage medium may be storage scale memory (SCM), read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile storage medium may be random access memory (RAM) and used as an external cache. By way of example and not limitation, many forms of RAM may be used, such as static random access memory (static RAM, SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchlink dynamic random access memory (synchlink DRAM, SLDRAM), and direct rambus random access memory (direct rambus RAM, DR RAM).

[0158] All or part of the above-described embodiments may be implemented using software, hardware, firmware, or any combination thereof. When an embodiment is implemented using software, all or part of the above-described embodiment may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded into a computer and executed, all or part of the procedures or functions are generated according to the present application. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, radio wave, or microwave) method. The computer-readable storage medium may be any available medium accessible by a computer, or may be a data storage device, such as a server or data center, that integrates one or more available media. The usable media may be magnetic media (eg, floppy disk, hard disk, or magnetic tape), optical media (eg, DVD), semiconductor media (eg, Solid State Disk), and the like.

[0159] In this application, terms such as "first" and "second" are used to distinguish between the same or similar items that have essentially the same role and function. thIt should be understood that there is no dependency between "(nth)" and "(nth)" and that there are no limitations on the quantity or order of execution. In the following description, various elements are described using terms such as "first" and "second," but it should also be understood that these elements should not be limited by these terms. These terms are used merely to distinguish one element from another.

[0160] It should be further understood that in the embodiments of the present application, the sequence numbers of the processes do not mean the execution order, and the execution order of the processes should be determined according to the functions and internal logic of the processes, and should not be construed as any limitation on the implementation process of the embodiments of the present application.

[0161] As used herein, the term "at least one" means one or more. As used herein, the term "a plurality of" means two or more. For example, "a plurality of second devices" means "two or more second devices." The terms "system" and "network" may generally be used interchangeably herein.

[0162] It is to be understood that the terminology used in the description of the various examples herein is intended to describe particular examples only and is not intended to constitute limitations. For example, the singular forms "a" ("a" and "an") and "the" as used in the descriptions of the various examples and the appended claims are intended to include the plural forms as well, unless the context clearly dictates otherwise.

[0163] It should be further understood that the term "if" may be interpreted to mean "when" ("when" or "upon"), "in response to determining," or "in response to detecting." Similarly, the phrases "if it is determined that" or "if (a stated condition or event) is detected" may be interpreted to mean "when it is determined that," "in response to determining," "when (a stated condition or event) is detected," or "in response to detecting (a stated condition or event)," depending on the context.

[0164] The above description is only an embodiment of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made without departing from the principle of the present application shall fall within the protection scope of the present application. [Explanation of symbols]

[0165] 0 Media die, first end 1 Media die, second end 2 Media Dies 3 Media Die

Claims

1. A storage medium, the storage medium comprising at least two media dies, the at least two media dies being sequentially connected by a signal line to form a closed loop, the at least two media dies being for data transmission through a bus; the level of the signal line is controlled by two media dies connected by the signal line and is used by the at least two media dies to determine an order in which to perform data transmission over the bus; one of the at least two media dies comprises a selector and a register, the selector is configured to select a first end or a second end of the selector, the first end is for configuring a level of a signal line associated with the register to a constant level, and the second end indicates that the level of the signal line is controlled by two media dies connected by the signal line based on a data transmission status; storage medium.

2. 2. The storage medium according to claim 1, wherein the level of any one of the signal lines is at a constant level, or the level of each of the signal lines is at a constant level.

3. The storage medium of claim 1 , wherein one of the two media dies connected by the signal line includes the selector and the register.

4. The storage medium according to claim 3 , wherein the two media dies connected by the signal line each include the selector and the register.

5. 5. The storage medium of claim 1, wherein the signal lines comprise a request signal line and a feedback signal line.

6. 6. The storage medium of claim 5, wherein when the level of the signal line is at a constant level, the level of the request signal line is a first level, which means that permission is not requested, and the level of the feedback signal line is a second level, which means that permission is given, which means that data transmission is allowed through the bus.

7. 6. The storage medium of claim 5, wherein when the level of the signal line is controlled by the two media dies connected by the signal line based on a data transmission status, the level of the request signal line is a first level or a third level, the first level meaning that permission is not requested, the third level meaning that permission is requested, and the level of the feedback signal line is a second level or a fourth level, the second level meaning that permission is granted, the fourth level meaning that permission is not granted, and the permission meaning that data transmission is allowed through the bus.

8. 5. The storage medium of claim 1, further comprising a state machine configured to record a status of the media die, the status of the media die including an idle state, a ready state, a data transmission state, and a data transmission state of another media die, the data transmission state of the other media die meaning that the other media die followed by the media die is performing data transmission.

9. the media die comprises first and second data pins, the bus comprises a first data bus and a second data bus, the first data pins are configured to be connected to the first data bus, and the second data pins are configured to be connected to the second data bus; the first data bus is used by the at least two media dies to transmit data, and the second data bus is for transmitting data to the at least two media dies; 5. A storage medium according to any one of claims 1 to 4.

10. A memory device comprising a controller and a memory medium, the controller being connected to at least two memory dies included in the memory medium via a bus; The at least two media dies are sequentially connected by a signal line to form a closed loop, and the at least two media dies are for data transmission through a bus, and the level of the signal line is controlled by the two media dies connected by the signal line and is used by the at least two media dies to determine the order of performing data transmission through the bus; the media die of the at least two media dies comprises a selector and a register; the selector has selected a first end of the selector in response to the level of the signal line being at a constant level, the first end being for configuring the level of the signal line associated with the register to the constant level; the selector has selected a second end of the selector in response to the level of the signal line being controlled by the two media dies connected by the signal line based on a data transmission status, and the second end indicates that the level of the signal line is controlled by the two media dies connected by the signal line based on the data transmission status; the controller is configured to send a data transmission command to a first media die of the at least two media dies, the first media die being any one of the at least two media dies; the first media die is configured to receive the data transmission command sent by the controller; the first media die is further configured to transmit data and a data identifier corresponding to the data to the controller through the bus based on the data transmission command and the level of the signal line in the storage medium, the level of the signal line being controlled by the two media dies connected by the signal line and being used by the at least two media dies to determine an order of performing data transmission through the bus. Memory element.

11. a level of a first signal line among the signal lines is a constant level, and a level of a second signal line other than the first signal line among the signal lines is controlled by two media dies connected by the second signal line based on a data transmission status, the first signal line is between the first media die and a media die next to the first media die, and the data transmission command instructs the first media die to transmit the data; the first media die is configured to prepare in accordance with the data transmission instruction; the first media die is configured to transmit the data and the data identifier to the controller through the bus when it is detected that the first signal line is at the certain level and it is determined by using a level of a third signal line that the first media die has not authorized the media die preceding the first media die, the third signal line being a second signal line between the first media die and the preceding media die, and the authorization meaning that data transmission through the bus is permitted; The memory element of claim 10.

12. 12. The storage element of claim 11, wherein the first media die is further configured to, after the transmission is completed, control the level of the third signal line in response to determining that the previous media die is requesting permission by using the level of the third signal line, to allow the previous media die when it is determined that the first media die is not performing transmission.

13. a level of a first signal line among the signal lines is controlled by the first media die and a media die next to the first media die based on a data transmission situation, a level of a second signal line other than the first signal line among the signal lines is at a constant level, the first signal line is between the first media die and the next media die, and the data transmission command instructs the first media die to transmit data; the first media die is configured to prepare in accordance with the data transmission instruction; the first media die is configured to control the level of the first signal line to request permission from the next media die when it is determined that the first media die has not authorized the previous media die of the first media die by using a level of a third signal line, the third signal line being a second signal line between the first media die and the previous media die, and the authorization means that data transmission is permitted through the bus; the first media die is configured to transmit the data and the data identifier corresponding to the data to the controller through the bus when it is determined that the next media die has granted the permission by using the level of the first signal line; The memory element of claim 10.

14. the first media die is further configured to control a level of the first signal line to request the next media die to revoke the permission after the transmission is completed; the first media die is further configured to determine that the next media die has revoked the permission by using the level of the first signal line.

14. The memory element of claim 13.

15. 15. The storage element of claim 14, wherein the first media die is configured to control the level of the first signal line to request the next media die to revoke the permission when it is determined that the previous media die has not requested permission by using the level of the third signal line before the first media die completes the transmission.

16. 16. The storage element of claim 15, wherein the first media die is further configured to control the level of the third signal line to authorize the previous media die after the transmission is completed, if it is determined that the previous media die is requesting authorization by using the level of the third signal line before the first media die completes the transmission.

17. the first media die is further configured to, after determining, by using the level of the first signal line, that the next media die has revoked the permission, control, by using the level of the third signal line, the level of the first signal line to request permission from the next media die when it is determined that the previous media die has requested permission and the first media die is not performing transmission; the first media die is further configured to control the level of the third signal line to enable the previous media die when it is determined that the next media die has granted the permission by using the level of the first signal line.

17. A memory element according to any one of claims 14 to 16.

18. the bus comprises a first data bus and a second data bus; the first media die is configured to transmit the data and the data identifier to the controller through the first data bus, and the second data bus is used by the controller to transmit data that needs to be written to the at least two media dies; 17. A memory element according to any one of claims 11 to 16.

19. The level of each signal line is at a constant level, and the data transmission command instructs the first media die to prepare; the first media die is configured to complete the preparation in accordance with the data transmission command when it is detected that the first signal line is at the constant level and the third signal line is also at the constant level, the first signal line being between the first media die and a media die next to the first media die, and the third signal line being between the first media die and a media die previous to the first media die; the first media die is configured to transmit the data and the data identifier corresponding to the data to the controller over the bus under control of the controller; The memory element of claim 10.

20. the bus comprises a first data bus and a second data bus; the first media die is configured to transmit the data and the data identifier corresponding to the data to the controller through a target data bus, the target data bus being the first data bus or the second data bus, and being used by the controller to transmit data that needs to be written to the at least two media dies; 20. The memory element of claim 19.

21. 17. The memory element of claim 10, wherein the signal lines comprise a request signal line and a feedback signal line, and wherein, in response to the levels of the signal lines being at a certain level, the level of the request signal line is at a first level, which means that permission is not requested, and the level of the feedback signal line is at a second level, which means that permission is granted, which means that data transmission through the bus is permitted.

22. 17. The memory element of claim 10, wherein the signal lines include a request signal line and a feedback signal line, and the level of the signal lines is controlled by the two media dies connected by the signal lines based on a data transmission status, so that the level of the request signal line is a first level or a third level, where the first level means that permission is not requested and the third level means that permission is requested, and the level of the feedback signal line is a second level or a fourth level, where the second level means that permission is granted and the fourth level means that permission is not granted, and the permission means that data transmission through the bus is permitted.

23. the storage medium comprises a state machine, the state machine configured to record a status of the first media die; the status of the first media die is idle before the first media die is ready and after the first media die has completed transmitting the data and the data identifier; the status of the first media die is a ready state after the first media die completes the preparation; the state of the first media die is a data transmission state when the first media die transmits the data and the data identifier to the controller; After the first media die authorizes the previous media die of the first media die, the status of the first media die is a data transmission state of another media die, and the data transmission state of the other media die means that the other media die followed by the first media die is performing data transmission.

17. A memory element according to any one of claims 10 to 16.

Citation Information

Patent Citations

  • Data transfer system

    JP1993324547A

  • Memory system

    JP2002259322A

  • Information processing system, information processing apparatus, and method of controlling information processing system

    JP2019020808A

  • Memory system

    US20140181439A1