WO2023142546A1 - Method and device for adjusting interface parameter of storage medium - Google Patents

Method and device for adjusting interface parameter of storage medium Download PDF

Info

Publication number
WO2023142546A1
WO2023142546A1 PCT/CN2022/126617 CN2022126617W WO2023142546A1 WO 2023142546 A1 WO2023142546 A1 WO 2023142546A1 CN 2022126617 W CN2022126617 W CN 2022126617W WO 2023142546 A1 WO2023142546 A1 WO 2023142546A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
storage medium
control circuit
size
odt
Prior art date
Application number
PCT/CN2022/126617
Other languages
French (fr)
Chinese (zh)
Inventor
李由
徐奎
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023142546A1 publication Critical patent/WO2023142546A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • G06F1/3278Power saving in modem or I/O interface
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/08Clock generators with changeable or programmable clock frequency
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/24Handling requests for interconnection or transfer for access to input/output bus using interrupt
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present application relates to the communication field, and more specifically, relates to a method and a device for adjusting interface parameters of a storage medium.
  • the performance requirements of the system for storage media are increasing year by year.
  • the input/output (input/output, IO) interface rate of the storage medium itself and the corresponding controller The IO interface rate is also getting higher and higher.
  • SI signal integrity
  • the performance requirements of the system are different in different time periods; for example, during the day and night, due to the different activity of users, the performance requirements of the system will be very different.
  • the IO interface rate of the storage medium and the IO interface rate of the controller corresponding to the storage medium are low; in scenarios with high performance requirements, the IO interface rate of the storage medium and the IO interface rate of the controller corresponding to the storage medium The rate is higher.
  • the current storage medium will be stopped.
  • Service transmission of the IO interface The memory firmware (firmware, FW) waits for the service transmission of the IO interface to stop before adjusting the interface parameters of the IO interface. However, if the service transmission is stopped for a period of time, it will cause the delay fluctuation of the service access of the system. In the scene where the interface parameters need to be continuously adjusted, it cannot adapt to the actual application.
  • the present application provides a method for adjusting interface parameters of a storage medium and a controller of the storage medium, which can avoid service transmission delays.
  • a method for adjusting interface parameters of a storage medium including: a control circuit determines, according to a target interface rate, an interface parameter of the storage medium that matches the target interface rate, and the control circuit is the storage medium A control circuit corresponding to the medium; when the connection bus between the interface of the control circuit and the interface of the storage medium is in an idle state, the control circuit sends the interface parameters to the interface of the storage medium.
  • the control circuit corresponding to the storage medium can determine the interface parameters of the storage medium matching the target interface rate according to the target interface rate.
  • the interface parameter is sent to the interface of the storage medium.
  • this application adjusts the interface parameters when the connection bus between the interface of the control circuit and the interface of the storage medium is in an idle state, without stopping the ongoing business transmission, so as to avoid the delay of business transmission.
  • the interface parameters include the size of a drive resistor of the interface of the storage medium, the size of an on-chip termination resistor ODT, and a working clock signal.
  • the control circuit determines, according to the target interface rate, the interface parameters of the storage medium that match the target interface rate, including: the control circuit determines, according to the target interface rate, the The size of the drive resistance, the size of the ODT, and the operating frequency of the interface of the storage medium that the target interface rate matches; the control circuit sends a clock adjustment request to the clock generation circuit, and the clock adjustment request includes The working frequency and the clock adjustment request are used to request the clock generating circuit to generate the working clock signal of the working frequency; the control circuit receives the working clock signal generated by the clock generating circuit.
  • the control circuit when the rate of the target interface increases, the control circuit reduces the size of the driving resistor, connects the ODT, or reduces the size of the ODT; when the target interface When the rate decreases, the control circuit increases the size of the driving resistor, does not connect the ODT, or increases the size of the ODT.
  • the higher the rate of the target interface, the higher the requirement for signal integrity, and reducing the size of the driving resistance and the size of the ODT of the interface can enhance the integrity of the signal transmitted by the interface.
  • Increasing the size of the driving resistance and ODT of the interface can reduce the power consumption of the interface, thereby reducing the power consumption of the storage system.
  • the method further includes: the control circuit determining the target interface rate according to the current system performance requirement, and the current system performance requirement includes at least one of the following: accessing the storage The bandwidth of the medium and the access latency to access said storage medium.
  • the method further includes: a system performance sensing circuit sensing the current system performance requirement; the system performance sensing circuit sending the current system performance requirement to the control circuit.
  • the memory includes multiple storage particles, and the storage medium is one or more of the multiple storage particles.
  • each storage particle corresponds to an interface
  • the interface of each storage particle is connected to the interface of the control circuit through a connection bus.
  • a certain (or some ) When the connection bus between the interfaces of the storage granules is in an idle state, adjusting the interface parameters of the corresponding storage granules will not affect the service transmission on the interfaces of other storage granules in the memory.
  • a controller for a storage medium including: a control circuit, configured to determine an interface parameter of the storage medium that matches the target interface rate according to a target interface rate, and the control circuit is the storage medium A control circuit corresponding to the medium; the control circuit is also used to send the interface parameters to the interface of the storage medium when the connection bus between the interface of the control circuit and the interface of the storage medium is in an idle state .
  • the interface parameters include the size of a drive resistor of the interface of the storage medium, the size of an on-chip termination resistor ODT, and a working clock signal.
  • the controller further includes a clock generation circuit; the control circuit is specifically configured to: determine, according to the target interface rate, the clock speed of the interface of the storage medium that matches the target interface rate The size of the drive resistor, the size of the ODT, and the operating frequency; sending a clock adjustment request to the clock generation circuit, the clock adjustment request includes the operating frequency, and the clock adjustment request is used to request the clock
  • the generating circuit generates the working clock signal of the working frequency; and receives the working clock signal generated by the clock generating circuit.
  • control circuit is specifically configured to: reduce the size of the driving resistor, connect the ODT, or reduce the size of the ODT when the target interface rate increases; When the rate of the target interface decreases, the size of the driving resistor is increased, the ODT is not connected, or the size of the ODT is increased.
  • control circuit is further configured to determine the target interface rate according to the current system performance requirement, where the current system performance requirement includes at least one of the following: Bandwidth and access latency to access the storage medium.
  • the controller further includes a system performance sensing circuit; the system performance sensing circuit is configured to sense the current system performance requirement; the system performance sensing circuit is also configured to provide The control circuit sends the current system performance requirement.
  • the memory includes multiple storage particles, and the storage medium is one or more of the multiple storage particles.
  • a communication device including a processor and a transceiver, the transceiver is used to receive computer codes or instructions, and transmit them to the processor, and the processor runs the computer codes or instructions to implement The method in any possible implementation manner of the first aspect above.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a communication device, the communication device implements the method in any possible implementation manner in any of the above aspects .
  • a computer program product including instructions is provided, and when the instructions are executed by a computer, the communication device implements the method in any possible implementation manner in any one of the above aspects.
  • FIG. 1 is a schematic block diagram of an FW statically adjusting interface parameters of an IO interface of a storage medium.
  • FIG. 2 is a schematic flowchart of a method for adjusting interface parameters of a storage medium according to an embodiment of the present application.
  • Fig. 3 is an example of a method for adjusting an interface parameter of a storage medium according to an embodiment of the present application.
  • Fig. 4 is another example of the method for adjusting an interface parameter of a storage medium according to an embodiment of the present application.
  • Fig. 5 is a schematic diagram of a controller of a storage medium provided by an embodiment of the present application.
  • FIG. 6 is an example of a controller of a storage medium provided in an embodiment of the present application.
  • Fig. 7 is a schematic block diagram of a communication device according to an embodiment of the present application.
  • flash storage devices For example: solid state disk (solid state disk, SSD), secure digital card (secure digital card, SD Card), embedded multimedia card (embedded multi media card, eMMC), universal flash storage (universal flash storage, UFS) and custom state and other flash memory devices.
  • solid state disk solid state disk, SSD
  • secure digital card secure digital card
  • SD Card secure digital card
  • embedded multimedia card embedded multi media card
  • UFS universal flash storage
  • custom state and other flash memory devices Take the embedded multimedia card as an example, which includes digital camera memory card, MP3 player memory card, and compact U disk.
  • the performance requirements of the system for storage media are increasing year by year.
  • the IO interface rate of the storage medium itself and the IO interface rate of the corresponding controller are also getting higher and higher.
  • SI signal integrity
  • the performance requirements of the system are different in different time periods. For example, during the day and night, due to the different user activity, the performance requirements of the system will be very different. In scenarios with low performance requirements or low performance requirements, the IO interface rate of the storage medium and the IO interface rate of the controller corresponding to the storage medium are low; in scenarios with high performance requirements or high performance requirements, the IO interface rate of the storage medium The rate and the IO interface rate of the controller corresponding to the storage medium are relatively high.
  • the IO interface of the storage medium and the IO interface of the controller corresponding to the storage medium can be matched according to the IO interface of the current storage medium and the interface rate that the IO interface of the controller corresponding to the storage medium needs to support.
  • the service transmission of the current IO interface will be stopped; and the IO of the storage medium will be adjusted according to the interface rate that the IO interface needs to support.
  • the interface and the size of the driving resistance of the IO interface of the controller corresponding to the storage medium, the size of the ODT, the working clock signal, Vref, and interface parameters such as process, voltage, temperature (process, voltage, temperature, PVT).
  • the FW waits for the service transmission of the IO interface to stop before adjusting the interface parameters of the IO interface.
  • the transmission of business data stops for a period of time, it will cause delay fluctuations in the system's access to the business; in the scenario where the interface parameters need to be continuously adjusted, it cannot adapt to the actual application.
  • FIG. 1 shows a schematic block diagram of the FW statically adjusting the interface parameters of the IO interface of the memory, wherein, taking the flash memory as an example, the FW statically adjusts the interface parameters of the IO interface of the flash memory using a full software method. .
  • the embodiment of the present application proposes a method for adjusting interface parameters of a storage medium, which can avoid service transmission delay.
  • FIG. 2 a schematic flowchart of a method 200 for adjusting an interface parameter of a storage medium according to an embodiment of the present application is shown.
  • the control circuit determines the interface parameters of the storage medium matching the target interface rate according to the target interface rate.
  • the control circuit is the control circuit corresponding to the storage medium, that is to say, the control circuit is a circuit in the controller corresponding to the storage medium .
  • the target interface rate is determined by the control circuit according to the system performance requirements of the current storage system; the system performance requirements include at least one of the following: bandwidth for accessing the storage medium, access delay for accessing the storage medium, etc. Bandwidth, the access delay of the central processing unit to access the storage medium, etc., such as the bandwidth of the SSD disk/UFS card/eMMC card and the IO per second (IO per second, IOPS) requirement, etc.
  • the system performance sensing circuit senses the current system performance requirement, and sends the current system performance requirement to the control circuit.
  • the control circuit receives the current system performance requirement sent by the system performance sensing circuit, and determines the target interface rate to be supported by the interface of the storage medium and the interface of the controller corresponding to the storage medium according to the current system performance requirement.
  • the interface of the storage medium and the interface of the controller corresponding to the storage medium need to support the same target interface rate, and the interface parameters of the interface of the storage medium and the interface of the controller corresponding to the storage medium The interface parameters may also be the same.
  • the interface parameters of the storage medium include the size of the drive resistance of the interface of the storage medium, the size of the on-chip termination resistor, and the working clock signal.
  • the interface parameters of the storage medium may also include interface parameters such as Vref and PVT of the interface of the storage medium.
  • the interface parameters of the interface of the storage medium may also be different from the interface parameters of the interface of the controller corresponding to the storage medium.
  • the size of the drive resistance and the size of the ODT of the interface of the storage medium may be different from the size of the drive resistance of the interface of the controller corresponding to the storage medium and the size of the ODT, but the working clock signal of the interface of the storage medium is different from the size of the ODT of the interface of the storage medium.
  • the working clock signal of the interface of the controller corresponding to the storage medium is the same.
  • the size of the drive resistance and the ODT of the interface of the storage medium are the same as the size of the drive resistance and ODT of the interface of the controller corresponding to the storage medium.
  • the size is one-to-one correspondence.
  • the control circuit may determine, according to the target interface rate, the size of the drive resistance, the size of the ODT, and the operating frequency of the interface of the storage medium that match the target interface rate.
  • the control circuit sends a clock adjustment request to the clock generation circuit, and the clock adjustment request includes the operating frequency determined by the control circuit; the clock generation circuit generates an operating clock signal of the operating frequency, and sends the operating clock signal to the control circuit; the control circuit
  • the working clock signal generated by the clock generating circuit is received.
  • the clock generation circuit is also a circuit in the controller corresponding to the storage medium.
  • the control circuit when the target interface rate increases, the control circuit reduces the size of the drive resistance of the interface of the storage medium, connects the ODT or reduces the size of the ODT of the interface of the storage medium, and increases the working frequency of the working clock signal; Wherein, connecting the ODT can be understood as connecting an ODT with a smaller resistance value or a designated ODT.
  • the control circuit increases the size of the drive resistance of the interface of the storage medium, disconnects the ODT or increases the size of the ODT of the interface of the storage medium, and reduces the size of the operating frequency of the operating clock signal; wherein, Disconnecting the ODT can be understood as connecting an ODT with a large resistance value. Since the connected ODT has a large resistance value, the ODT is equivalent to a suspended or disconnected state.
  • the higher the rate of the target interface the higher the requirements for signal integrity. Reducing the size of the drive resistance and ODT of the interface can enhance the integrity of the signal transmitted by the interface. At the same time, the power consumption of the interface is also reduced. increase accordingly. The lower the rate of the target interface, the lower the requirements for signal integrity. Increasing the size of the driving resistance and ODT of the interface can reduce the power consumption of the interface, thereby reducing the power consumption of the storage system.
  • connection bus between the interface of the control circuit and the interface of the storage medium When the connection bus between the interface of the control circuit and the interface of the storage medium is in an idle state, the control circuit sends an interface parameter to the interface of the storage medium. When the connection bus between the interface of the control circuit and the interface of the storage medium is not in an idle state, there is no need to stop the service transmission, and wait for the completion of the service transmission. It should be understood that since all read and write commands and service transmissions are initiated by the controller, the control circuit in the controller can accurately predict the behavior on the connection bus between the interface of the control circuit and the interface of the storage medium . Specifically, the control circuit can dynamically acquire the use right of the connection bus and the control right of the storage medium according to the type of the currently transmitted service and the transmission stage of the service currently transmitted on the connection bus.
  • the connecting bus between the interface of the control circuit and the interface of the storage medium is in an idle state, it can be understood that the control circuit does not access the storage medium, or the control circuit does not access the bus operation of the storage medium.
  • the connection bus between the interface of the control circuit and the interface of the storage medium is not in an idle state, there may be data transmission, command transmission, address transmission or timing control state related to the transmission process on the connection bus, that is to say, the There is traffic transmission on the connection bus.
  • control circuit determines the interface parameters of the interface of the control circuit matching the target interface rate according to the target interface rate, and the control circuit can also quickly adjust the interface parameters of the interface of the control circuit, wherein the interface of the control circuit
  • the interface parameters of the storage medium may be the same as the interface parameters of the storage medium.
  • the control circuit when the connection bus between the interface of the control circuit and the interface of the storage medium is in an idle state, the control circuit sends to the interface of the storage medium the size of the drive resistance of the interface of the storage medium, the size of the on-chip termination resistor and Working clock signal.
  • the control circuit may also send parameters such as Vref and PVT of the interface of the storage medium to the interface of the storage medium.
  • the memory includes multiple storage particles
  • the storage medium in the embodiment of the present application may be one or more storage particles in the memory, that is to say, the storage medium is a part of the multiple storage particles.
  • the control circuit is connected to one or more groups of flash dies at the same time, each group of flash dies includes 8 flash dies, and each flash die corresponds to an interface.
  • the storage particle can be one or more flash dies in the flash, and when the connection bus between the interface of the control circuit and the interface of one or more flash dies is in an idle state, an interface is sent to the interface of the one or more flash dies parameter.
  • connection bus between the interface of the control circuit and the interface of a certain (or some) storage particles in the memory is in an idle state, adjusting the interface parameters of the corresponding storage particles will not affect other storage particles in the memory Service transmission on the interface.
  • the control circuit corresponding to the storage medium can determine the interface parameters of the storage medium matching the target interface rate according to the target interface rate, when the interface between the control circuit and the storage medium interface When the connection bus is in an idle state, the interface parameters are sent to the interface of the storage medium.
  • this application adjusts the interface parameters when the connection bus between the interface of the control circuit and the interface of the storage medium is in an idle state, without stopping the ongoing business transmission, so as to avoid the delay of business transmission.
  • FIG. 3 an example of a method for adjusting an interface parameter of a storage medium according to an embodiment of the present application is shown.
  • the operating frequency applicable to the interface is switched from high frequency to low frequency.
  • a system performance sensing circuit senses a change in a current system performance requirement, and the system performance sensing circuit sends the current system performance requirement to a control circuit in a controller.
  • the control circuit may include a power consumption control circuit and an IO control circuit.
  • the interface of the IO control circuit is the interface of the control circuit.
  • the system performance sensing circuit may be a circuit in the controller, or a circuit connected to the controller outside the controller.
  • the system performance sensing circuit may send the current system performance requirement to the power consumption control circuit in the controller.
  • the power consumption control circuit receives the current system performance requirement sent by the system performance sensing circuit, and starts system power consumption control.
  • the power consumption control circuit determines the target interface rate matching the current system performance requirement according to the current system performance requirement; the power consumption control circuit determines the storage medium rate matching the target interface rate according to the target interface rate Parameters such as the size of the driving resistance of the interface, the size of the ODT, and the operating frequency.
  • the operating frequency of the interface is switched from high frequency to low frequency, that is, the target interface rate is switched from high rate to low rate. Because the target interface rate decreases, the power consumption control circuit increases the size of the drive resistance of the interface of the storage medium, does not connect the ODT or increases the size of the ODT of the interface of the storage medium, and reduces the operating frequency of the operating clock signal, which can The power consumption of the interface is reduced, so that the power consumption of the storage system can be reduced.
  • the power consumption control circuit sends an IO power consumption control request to the IO control circuit, and the IO power consumption control request includes parameters such as the size of the driving resistance of the interface of the storage medium that matches the rate of the target interface, the size of the ODT, and the operating frequency.
  • the IO control circuit receives the IO power consumption control request sent by the power consumption control circuit.
  • the IO control circuit sends a clock adjustment request to the clock generation circuit in the controller.
  • the clock adjustment request includes the operating frequency of the interface of the storage medium that matches the rate of the target interface.
  • the clock adjustment request is used to request the clock generation circuit to generate the work frequency. frequency of the operating clock signal.
  • the IO control circuit receives the working clock signal of the working frequency generated by the clock generating circuit.
  • the IO control circuit predicts a behavior on the connection bus between the interface of the IO control circuit/control circuit/controller and the interface of the storage medium.
  • the IO control circuit/control circuit/controller sends the storage data matched with the rate of the target interface to the interface of the storage medium Interface parameters such as the size of the driving resistance of the interface of the medium, the size of the ODT, and the working clock signal.
  • the interface parameters of the storage medium may also include interface parameters such as Vref and PVT of the interface of the storage medium.
  • connection bus between the interface of the IO control circuit/controller/control circuit and the interface of the storage medium is not in an idle state, there is no need to stop the current service transmission and wait for the completion of service data transmission.
  • the IO control circuit/control circuit/controller when the connection bus between the interface of the IO control circuit/control circuit/controller and the interface of the storage medium is in an idle state, the IO control circuit/control circuit/controller sends a first indication to the interface of the storage medium
  • the information/first instruction, the first instruction information/first instruction includes interface parameters such as the size of the driving resistance of the interface of the storage medium that matches the rate of the target interface, the size of the ODT, and the working clock signal.
  • the IO control circuit adjusts the interface parameters of the interface of the IO control circuit/control circuit/controller, where the interface parameters of the interface of the IO control circuit/control circuit/controller may be the same as the interface parameters of the interface of the storage medium.
  • the IO control circuit and the power consumption control circuit may be integrated circuits, which are collectively referred to as control circuits.
  • the IO control circuit and the power consumption control circuit may also be independent and different hardware circuits.
  • 305 and 304 may be in no particular order, 305 may be before 304, and 305 and 304 may be performed simultaneously. This application does not specifically limit it.
  • FIG. 4 another example of the method for adjusting an interface parameter of a storage medium according to the embodiment of the present application is shown.
  • the operating frequency applicable to the interface is switched from low frequency to high frequency.
  • a system performance sensing circuit senses a change in a current system performance requirement, and the system performance sensing circuit sends the current system performance requirement to a control circuit in a controller.
  • the control circuit may include a power consumption control circuit and an IO control circuit.
  • the interface of the IO control circuit is the interface of the control circuit.
  • the system performance sensing circuit may be a circuit in the controller, or a circuit connected to the controller outside the controller.
  • the system performance sensing circuit may send the current system performance requirement to the power consumption control circuit in the controller.
  • the power consumption control circuit receives the current system performance requirement sent by the system performance sensing circuit, and starts system power consumption control.
  • the power consumption control circuit determines the target interface rate matching the current system performance requirement according to the current system performance requirement; the power consumption control circuit determines the storage medium rate matching the target interface rate according to the target interface rate Parameters such as the size of the driving resistance of the interface, the size of the ODT, and the operating frequency.
  • the operating frequency of the interface is switched from low frequency to high frequency, that is, the target interface rate is switched from low rate to high rate. Because the rate of the target interface increases, the power consumption control circuit reduces the size of the drive resistance of the interface of the storage medium, connects the ODT or reduces the size of the ODT of the interface of the storage medium, and increases the working frequency of the working clock signal. The higher the rate of the target interface, the higher the requirements for signal integrity. Reducing the size of the drive resistance and ODT of the interface can enhance the integrity of the signal transmitted by the interface.
  • the power consumption control circuit sends an IO power consumption control request to the IO control circuit, and the IO power consumption control request includes parameters such as the size of the driving resistance of the interface of the storage medium that matches the rate of the target interface, the size of the ODT, and the operating frequency.
  • the IO control circuit receives the IO power consumption control request sent by the power consumption control circuit.
  • the IO control circuit sends a clock adjustment request to the clock generation circuit in the controller.
  • the clock adjustment request includes the operating frequency of the interface of the storage medium that matches the rate of the target interface.
  • the clock adjustment request is used to request the clock generation circuit to generate the work frequency. frequency of the operating clock signal.
  • the IO control circuit receives the working clock signal of the working frequency generated by the clock generating circuit.
  • the IO control circuit predicts a behavior on the connection bus between the interface of the IO control circuit/control circuit/controller and the interface of the storage medium.
  • the IO control circuit/control circuit/controller sends the storage data matched with the rate of the target interface to the interface of the storage medium Interface parameters such as the size of the driving resistance of the interface of the medium, the size of the ODT, and the working clock signal.
  • the interface parameters of the storage medium may also include interface parameters such as Vref and PVT of the interface of the storage medium.
  • connection bus between the interface of the IO control circuit/controller/control circuit and the interface of the storage medium is not in an idle state, there is no need to stop the current service transmission and wait for the completion of service data transmission.
  • the IO control circuit/control circuit/controller when the connection bus between the interface of the IO control circuit/control circuit/controller and the interface of the storage medium is in an idle state, the IO control circuit/control circuit/controller sends a first indication to the interface of the storage medium
  • the information/first instruction, the first instruction information/first instruction includes interface parameters such as the size of the driving resistance of the interface of the storage medium that matches the rate of the target interface, the size of the ODT, and the working clock signal.
  • the IO control circuit adjusts the interface parameters of the interface of the IO control circuit/control circuit/controller, where the interface parameters of the interface of the IO control circuit/control circuit/controller may be the same as the interface parameters of the interface of the storage medium.
  • the IO control circuit and the power consumption control circuit may be integrated circuits, which are collectively referred to as control circuits.
  • the IO control circuit and the power consumption control circuit may also be independent and different hardware circuits.
  • 405 and 404 can be in no particular order, 405 can be before 404, and 405 and 404 can also be performed simultaneously. This application does not specifically limit it.
  • FIG. 5 a schematic diagram of a controller 500 of a storage medium provided in an embodiment of the present application is shown, and the controller 500 includes:
  • the control circuit 510 is configured to determine the interface parameters of the storage medium matching the target interface rate according to the target interface rate, the control circuit is a control circuit corresponding to the storage medium;
  • the control circuit 510 is further configured to send the interface parameters to the interface of the storage medium when the connection bus between the interface of the control circuit and the interface of the storage medium is in an idle state.
  • the interface parameters include the size of the driving resistance of the interface of the storage medium, the size of the on-chip termination resistor ODT, and the working clock signal.
  • the controller further includes a clock generation circuit 520;
  • the control circuit 510 is specifically used for:
  • the target interface rate determine the size of the drive resistance, the size of the ODT, and the operating frequency of the interface of the storage medium that match the target interface rate
  • the working clock signal generated by the clock generating circuit 520 is received.
  • control circuit 510 is specifically used for:
  • the size of the driving resistor is increased, the ODT is not connected, or the size of the ODT is increased.
  • control circuit 510 is further configured to determine the target interface rate according to the current system performance requirement, and the current system performance requirement includes at least one of the following: the bandwidth for accessing the storage medium and the bandwidth for accessing the The access delay of the storage medium mentioned above.
  • the controller further includes a system performance sensing circuit 530;
  • the system performance sensing circuit 530 is configured to sense the current system performance requirements
  • the system performance sensing circuit 530 is further configured to send the current system performance requirement to the control circuit;
  • the control circuit 510 is further configured to receive the current system performance requirement from the system performance sensing circuit 530 .
  • the system performance sensing circuit 530 may also be a circuit other than the controller connected to the controller.
  • the memory includes multiple storage particles, and the storage medium is one or more storage particles.
  • FIG. 6 an example of a controller 600 for a storage medium provided in the embodiment of the present application is shown.
  • the controller includes: an IO control circuit 611 , a power consumption control circuit 612 , a clock generation circuit 620 , a system performance sensing circuit 630 and an adjustment recording circuit 640 .
  • the IO control circuit 611 and the power consumption control circuit 612 may be collectively referred to as a control circuit.
  • the IO control circuit 611 and the power consumption control circuit 612 may be the control circuit 510 in FIG. 5 .
  • the system performance sensing circuit 630 is configured to sense changes in current system performance requirements, where the current system performance requirements include at least one of the following: bandwidth for accessing the storage medium and access delay for accessing the storage medium;
  • the system performance sensing circuit 630 is also configured to send the current system performance requirement to the power consumption control circuit 612 in the controller. It should be understood that the system performance sensing circuit 630 may also be a circuit other than the controller connected to the controller.
  • the power consumption control circuit 612 is used for:
  • the target interface rate parameters such as the size of the driving resistance of the interface of the storage medium matching the target interface rate, the size of the ODT, and the operating frequency are determined.
  • the memory includes multiple storage particles, and the storage medium may be one or more of the multiple storage particles.
  • the power consumption control circuit 612 is also used to send an IO power consumption control request to the IO control circuit 611, the IO power consumption control request includes the size of the drive resistance of the interface of the storage medium matching the target interface rate, the size of the ODT and the working parameters such as frequency.
  • IO control circuit 611 for:
  • the clock adjustment request includes the operating frequency of the interface of the storage medium matched with the target interface rate, and the clock adjustment request is used to request the clock generation circuit 620 to generate a working clock signal of the operating frequency .
  • the clock generating circuit 620 is configured to generate a working clock signal of the working frequency, and send the working clock signal of the working frequency to the IO control circuit 611 .
  • the IO control circuit 611 is also used to predict the behavior on the connection bus between the interface of the IO control circuit and the interface of the storage medium.
  • the IO control circuit sends to the interface of the storage medium the size of the driving resistance and the ODT of the interface of the storage medium matched with the target interface rate and working clock signal and other interface parameters.
  • the interface parameters of the storage medium may also include interface parameters such as Vref and PVT of the interface of the storage medium.
  • the IO control circuit 611 is further configured to adjust an interface parameter of an interface of the IO control circuit.
  • the interface parameter of the interface of the IO control circuit may be the same as the interface parameter of the interface of the storage medium.
  • the adjustment recording circuit 640 is configured to record which storage media in the memory have interface parameters whose interface parameters have been adjusted and/or which storage media in the memory whose interface parameters have not been adjusted yet.
  • the adjustment record circuit 640 may also be integrated in the IO control circuit 611 .
  • FIG. 7 shows a schematic block diagram of the communication device 700 according to the embodiment of the present application.
  • the device 700 includes: a processor 710 and a transceiver 720, the transceiver 720 is used to receive computer codes or instructions and transmit them to the processor 710, and the processor 710 runs the computer codes or instructions, as described herein The method in any possible implementation manner in the application embodiment.
  • the above-mentioned processor 710 may be an integrated circuit chip, which has a signal processing capability. In the implementation process, each step of the above-mentioned method embodiments may be completed by an integrated logic circuit of hardware in a processor or instructions in the form of software.
  • the above-mentioned processor can be a general-purpose processor, a digital signal processor (digital signal processor, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), an off-the-shelf programmable gate array (field programmable gate array, FPGA) or other available Program logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • Program logic devices discrete gate or transistor logic devices, discrete hardware components.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register.
  • the storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware.
  • the embodiment of the present application also provides a computer-readable storage medium, on which a computer program for implementing the method in the above method embodiment is stored.
  • a computer program for implementing the method in the above method embodiment is stored.
  • the computer program runs on the computer or the processor, the computer or the processor can implement the methods in the above method embodiments.
  • the embodiment of the present application also provides a computer program product, the computer program product includes computer program code, and when the computer program code is run on the computer, the method in the above method embodiment is executed.
  • the embodiment of the present application also provides a chip, including a processor, the processor is connected to a memory, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the The chip executes the method in the above method embodiment.
  • the term "and/or” in this application is only an association relationship describing associated objects, indicating that there may be three relationships, for example, A and/or B may indicate: A exists alone, and A and B exist simultaneously , there are three cases of B alone.
  • the character "/" in this article generally means that the contextual objects are an "or” relationship; the term “at least one” in this application can mean “one” and "two or more", for example, A , B and C, can mean: A alone exists, B exists alone, C exists alone, A and B exist simultaneously, A and C exist simultaneously, C and B exist simultaneously, A, B and C exist simultaneously, these seven kinds Condition.
  • the disclosed systems, devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disc and other media that can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Power Sources (AREA)

Abstract

The present application provides a method for adjusting an interface parameter of a storage medium and a controller for the storage medium, capable of avoiding the delay of service transmission. The method comprises: a control circuit determines, according to a target interface rate, an interface parameter of a storage medium matching the target interface rate, the control circuit being a control circuit corresponding to the storage medium; and when a connection bus between an interface of the control circuit and an interface of the storage medium is in an idle state, the control circuit sends to the interface of the storage medium the interface parameter of the storage medium matching the target interface rate.

Description

调整存储介质的接口参数的方法和装置Method and device for adjusting interface parameters of storage medium
本申请要求于2022年01月27日提交中国专利局、申请号为202210102365.X、发明名称为“调整存储介质的接口参数的方法和装置”的专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the patent application submitted to the China Patent Office on January 27, 2022, with the application number 202210102365.X, and the title of the invention is "Method and device for adjusting interface parameters of storage media", the entire content of which is incorporated by reference in this application.
技术领域technical field
本申请涉及通信领域,并且更具体地,涉及一种调整存储介质的接口参数的方法和装置。The present application relates to the communication field, and more specifically, relates to a method and a device for adjusting interface parameters of a storage medium.
背景技术Background technique
随着云/计算/服务器业务的发展,系统对于存储介质的性能要求逐年增加,为了匹配系统的性能要求,存储介质本身的输入/输出(input/output,IO)接口速率以及对应的控制器的IO接口速率也越来越高。为了匹配高速的IO接口速率,同时满足数据通信相应的信号完整性(signal integrity,SI)要求,将IO接口的驱动能力持续提高、IO接口的驱动电阻的大小持续变小,对应的IO接口的功耗也持续上升。With the development of cloud/computing/server business, the performance requirements of the system for storage media are increasing year by year. In order to match the performance requirements of the system, the input/output (input/output, IO) interface rate of the storage medium itself and the corresponding controller The IO interface rate is also getting higher and higher. In order to match the high-speed IO interface rate and meet the corresponding signal integrity (SI) requirements of data communication, the driving capability of the IO interface is continuously improved, the size of the driving resistance of the IO interface is continuously reduced, and the corresponding IO interface Power consumption also continues to rise.
在实际的业务应用中,在不同时间段系统的性能要求不同;比如,白天和晚上,由于用户的活跃度不同,系统的性能要求会有很大的差异。在低性能要求场景,存储介质的IO接口速率以及该存储介质对应的控制器的IO接口速率较低;在高性能要求场景,存储介质的IO接口速率以及该存储介质对应的控制器的IO接口速率较高。In actual business applications, the performance requirements of the system are different in different time periods; for example, during the day and night, due to the different activity of users, the performance requirements of the system will be very different. In scenarios with low performance requirements, the IO interface rate of the storage medium and the IO interface rate of the controller corresponding to the storage medium are low; in scenarios with high performance requirements, the IO interface rate of the storage medium and the IO interface rate of the controller corresponding to the storage medium The rate is higher.
由于对存储介质的接口参数进行调整会改变IO接口传输的信号的完整性,因此,在根据存储介质的IO接口速率对该存储介质的IO接口的接口参数进行调整时,会停止当前存储介质的IO接口的业务传输。存储器固件(firmware,FW)等待IO接口的业务传输停止,才可以调整IO接口的接口参数。但是,一段时间内业务传输停止,会造成系统的业务访问的延迟波动,在接口参数需要持续调整的场景,无法适应实际的应用。Since adjusting the interface parameters of the storage medium will change the integrity of the signal transmitted by the IO interface, when adjusting the interface parameters of the IO interface of the storage medium according to the IO interface rate of the storage medium, the current storage medium will be stopped. Service transmission of the IO interface. The memory firmware (firmware, FW) waits for the service transmission of the IO interface to stop before adjusting the interface parameters of the IO interface. However, if the service transmission is stopped for a period of time, it will cause the delay fluctuation of the service access of the system. In the scene where the interface parameters need to be continuously adjusted, it cannot adapt to the actual application.
发明内容Contents of the invention
本申请提供了一种调整存储介质的接口参数的方法和存储介质的控制器,能够避免业务传输的延迟。The present application provides a method for adjusting interface parameters of a storage medium and a controller of the storage medium, which can avoid service transmission delays.
第一方面,提供一种调整存储介质的接口参数的方法,包括:控制电路根据目标接口速率,确定与所述目标接口速率匹配的所述存储介质的接口参数,所述控制电路是所述存储介质对应的控制电路;当所述控制电路的接口与所述存储介质的接口之间的连接总线处于空闲状态时,所述控制电路向所述存储介质的接口发送所述接口参数。In a first aspect, a method for adjusting interface parameters of a storage medium is provided, including: a control circuit determines, according to a target interface rate, an interface parameter of the storage medium that matches the target interface rate, and the control circuit is the storage medium A control circuit corresponding to the medium; when the connection bus between the interface of the control circuit and the interface of the storage medium is in an idle state, the control circuit sends the interface parameters to the interface of the storage medium.
基于上述方案,存储介质对应的控制电路可以根据目标接口速率确定与该目标接口速率匹配的存储介质的接口参数,当该控制电路的接口与存储介质的接口之间的连接总线处于空闲态时,向存储介质的接口发送接口参数。相对于现有技术中在停止业务传输的时间调整存储器的接口的接口参数,本申请是在控制电路的接口与存储介质的接口之间的连接 总线处于空闲态时调整接口参数,无需停止正在进行的业务传输,从而可以避免业务传输的延迟。Based on the above solution, the control circuit corresponding to the storage medium can determine the interface parameters of the storage medium matching the target interface rate according to the target interface rate. When the connection bus between the interface of the control circuit and the interface of the storage medium is in an idle state, The interface parameter is sent to the interface of the storage medium. Compared with adjusting the interface parameters of the interface of the memory at the time of stopping the service transmission in the prior art, this application adjusts the interface parameters when the connection bus between the interface of the control circuit and the interface of the storage medium is in an idle state, without stopping the ongoing business transmission, so as to avoid the delay of business transmission.
在一种可能的实现方式中,所述接口参数包括所述存储介质的接口的驱动电阻的大小、片上终端电阻ODT的大小和工作时钟信号。In a possible implementation manner, the interface parameters include the size of a drive resistor of the interface of the storage medium, the size of an on-chip termination resistor ODT, and a working clock signal.
在一种可能的实现方式中,所述控制电路根据目标接口速率,确定与所述目标接口速率匹配的所述存储介质的接口参数,包括:所述控制电路根据所述目标接口速率,确定与所述目标接口速率匹配的所述存储介质的接口的所述驱动电阻的大小、所述ODT的大小和工作频率;所述控制电路向时钟产生电路发送时钟调整请求,所述时钟调整请求中包括所述工作频率,所述时钟调整请求用于请求所述时钟产生电路产生所述工作频率的所述工作时钟信号;所述控制电路接收所述时钟产生电路产生的所述工作时钟信号。In a possible implementation manner, the control circuit determines, according to the target interface rate, the interface parameters of the storage medium that match the target interface rate, including: the control circuit determines, according to the target interface rate, the The size of the drive resistance, the size of the ODT, and the operating frequency of the interface of the storage medium that the target interface rate matches; the control circuit sends a clock adjustment request to the clock generation circuit, and the clock adjustment request includes The working frequency and the clock adjustment request are used to request the clock generating circuit to generate the working clock signal of the working frequency; the control circuit receives the working clock signal generated by the clock generating circuit.
在一种可能的实现方式中,当所述目标接口速率增大时,所述控制电路减小所述驱动电阻的大小、连接所述ODT或减小所述ODT的大小;当所述目标接口速率减小时,所述控制电路增大所述驱动电阻的大小、不连接所述ODT或增大所述ODT的大小。In a possible implementation, when the rate of the target interface increases, the control circuit reduces the size of the driving resistor, connects the ODT, or reduces the size of the ODT; when the target interface When the rate decreases, the control circuit increases the size of the driving resistor, does not connect the ODT, or increases the size of the ODT.
应理解,目标接口速率越大,对信号完整性的要求越高,减小接口的驱动电阻的大小和ODT的大小,可以增强接口传输的信号的完整性。目标接口速率越小,对信号完整性的要求越低,增大接口的驱动电阻的大小和ODT的大小,可以降低接口的功耗,从而能够降低存储系统的功耗。It should be understood that the higher the rate of the target interface, the higher the requirement for signal integrity, and reducing the size of the driving resistance and the size of the ODT of the interface can enhance the integrity of the signal transmitted by the interface. The lower the rate of the target interface, the lower the requirements for signal integrity. Increasing the size of the driving resistance and ODT of the interface can reduce the power consumption of the interface, thereby reducing the power consumption of the storage system.
在一种可能的实现方式中,所述方法还包括:所述控制电路根据当前的系统性能要求,确定所述目标接口速率,所述当前的系统性能要求包括以下至少一项:访问所述存储介质的带宽和访问所述存储介质的访问延迟。In a possible implementation manner, the method further includes: the control circuit determining the target interface rate according to the current system performance requirement, and the current system performance requirement includes at least one of the following: accessing the storage The bandwidth of the medium and the access latency to access said storage medium.
在一种可能的实现方式中,所述方法还包括:系统性能感知电路感知所述当前的系统性能要求;所述系统性能感知电路向所述控制电路发送所述当前的系统性能要求。In a possible implementation manner, the method further includes: a system performance sensing circuit sensing the current system performance requirement; the system performance sensing circuit sending the current system performance requirement to the control circuit.
在一种可能的实现方式中,存储器中包括多个存储颗粒,所述存储介质是所述多个存储颗粒中的一个或多个。In a possible implementation manner, the memory includes multiple storage particles, and the storage medium is one or more of the multiple storage particles.
应理解,每个存储颗粒都对应一个接口,每个存储颗粒的接口通过连接总线与控制电路的接口连接。现有技术中,需要在停止存储器上的所有存储颗粒对应的接口的业务传输期间调整存储器中的所有存储颗粒的接口参数,本申请实施例在控制电路的接口与存储器中某个(或某些)存储颗粒的接口之间的连接总线处于空闲态时,调整对应的存储颗粒的接口参数,不会影响存储器中其他存储颗粒的接口上的业务传输。It should be understood that each storage particle corresponds to an interface, and the interface of each storage particle is connected to the interface of the control circuit through a connection bus. In the prior art, it is necessary to adjust the interface parameters of all storage particles in the memory during the period of stopping the service transmission of the interfaces corresponding to all storage particles on the memory. In the embodiment of the present application, a certain (or some ) When the connection bus between the interfaces of the storage granules is in an idle state, adjusting the interface parameters of the corresponding storage granules will not affect the service transmission on the interfaces of other storage granules in the memory.
第二方面,提供一种存储介质的控制器,包括:控制电路,用于根据目标接口速率,确定与所述目标接口速率匹配的所述存储介质的接口参数,所述控制电路是所述存储介质对应的控制电路;所述控制电路还用于,当所述控制电路的接口与所述存储介质的接口之间的连接总线处于空闲状态时,向所述存储介质的接口发送所述接口参数。In a second aspect, a controller for a storage medium is provided, including: a control circuit, configured to determine an interface parameter of the storage medium that matches the target interface rate according to a target interface rate, and the control circuit is the storage medium A control circuit corresponding to the medium; the control circuit is also used to send the interface parameters to the interface of the storage medium when the connection bus between the interface of the control circuit and the interface of the storage medium is in an idle state .
在一种可能的实现方式中,所述接口参数包括所述存储介质的接口的驱动电阻的大小、片上终端电阻ODT的大小和工作时钟信号。In a possible implementation manner, the interface parameters include the size of a drive resistor of the interface of the storage medium, the size of an on-chip termination resistor ODT, and a working clock signal.
在一种可能的实现方式中,所述控制器还包括时钟产生电路;所述控制电路具体用于:根据所述目标接口速率,确定与所述目标接口速率匹配的所述存储介质的接口的所述驱动电阻的大小、所述ODT的大小和工作频率;向所述时钟产生电路发送时钟调整请求,所述时钟调整请求中包括所述工作频率,所述时钟调整请求用于请求所述时钟产生电路产生 所述工作频率的所述工作时钟信号;接收所述时钟产生电路产生的所述工作时钟信号。In a possible implementation manner, the controller further includes a clock generation circuit; the control circuit is specifically configured to: determine, according to the target interface rate, the clock speed of the interface of the storage medium that matches the target interface rate The size of the drive resistor, the size of the ODT, and the operating frequency; sending a clock adjustment request to the clock generation circuit, the clock adjustment request includes the operating frequency, and the clock adjustment request is used to request the clock The generating circuit generates the working clock signal of the working frequency; and receives the working clock signal generated by the clock generating circuit.
在一种可能的实现方式中,所述控制电路具体用于:当所述目标接口速率增大时,减小所述驱动电阻的大小、连接所述ODT或减小所述ODT的大小;当所述目标接口速率减小时,增大所述驱动电阻的大小、不连接所述ODT或增大所述ODT的大小。In a possible implementation manner, the control circuit is specifically configured to: reduce the size of the driving resistor, connect the ODT, or reduce the size of the ODT when the target interface rate increases; When the rate of the target interface decreases, the size of the driving resistor is increased, the ODT is not connected, or the size of the ODT is increased.
在一种可能的实现方式中,所述控制电路还用于,根据当前的系统性能要求,确定所述目标接口速率,所述当前的系统性能要求包括以下至少一项:访问所述存储介质的带宽和访问所述存储介质的访问延迟。In a possible implementation manner, the control circuit is further configured to determine the target interface rate according to the current system performance requirement, where the current system performance requirement includes at least one of the following: Bandwidth and access latency to access the storage medium.
在一种可能的实现方式中,所述控制器还包括系统性能感知电路;所述系统性能感知电路,用于感知所述当前的系统性能要求;所述系统性能感知电路还用于,向所述控制电路发送所述当前的系统性能要求。In a possible implementation manner, the controller further includes a system performance sensing circuit; the system performance sensing circuit is configured to sense the current system performance requirement; the system performance sensing circuit is also configured to provide The control circuit sends the current system performance requirement.
在一种可能的实现方式中,存储器中包括多个存储颗粒,所述存储介质是所述多个存储颗粒中的一个或多个。In a possible implementation manner, the memory includes multiple storage particles, and the storage medium is one or more of the multiple storage particles.
第三方面,提供一种通信设备,包括处理器和收发器,所述收发器用于接收计算机代码或指令,并传输至所述处理器,所述处理器运行所述计算机代码或指令,以实现上述第一方面中任一种可能实现方式中的方法。In a third aspect, a communication device is provided, including a processor and a transceiver, the transceiver is used to receive computer codes or instructions, and transmit them to the processor, and the processor runs the computer codes or instructions to implement The method in any possible implementation manner of the first aspect above.
第四方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被通信装置执行时,使得所述通信装置实现上述任一方面中任一种可能实现方式中的方法。In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a communication device, the communication device implements the method in any possible implementation manner in any of the above aspects .
第五方面,提供一种包含指令的计算机程序产品,所述指令被计算机执行时使得通信装置实现上述任一方面中任一种可能实现方式中的方法。In a fifth aspect, a computer program product including instructions is provided, and when the instructions are executed by a computer, the communication device implements the method in any possible implementation manner in any one of the above aspects.
附图说明Description of drawings
图1是FW静态调整存储介质的IO接口的接口参数的示意性框图。FIG. 1 is a schematic block diagram of an FW statically adjusting interface parameters of an IO interface of a storage medium.
图2是本申请实施例的调整存储介质的接口参数的方法的示意性流程图。FIG. 2 is a schematic flowchart of a method for adjusting interface parameters of a storage medium according to an embodiment of the present application.
图3是本申请实施例的调整存储介质的接口参数的方法的一种示例。Fig. 3 is an example of a method for adjusting an interface parameter of a storage medium according to an embodiment of the present application.
图4是本申请实施例的调整存储介质的接口参数的方法的另一种示例。Fig. 4 is another example of the method for adjusting an interface parameter of a storage medium according to an embodiment of the present application.
图5是本申请实施例提供的一种存储介质的控制器的示意图。Fig. 5 is a schematic diagram of a controller of a storage medium provided by an embodiment of the present application.
图6是本申请实施例提供的一种存储介质的控制器的一种示例。FIG. 6 is an example of a controller of a storage medium provided in an embodiment of the present application.
图7是本申请实施例的一种通信设备的示意性框图。Fig. 7 is a schematic block diagram of a communication device according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请中的技术方案进行描述。The technical solution in this application will be described below with reference to the accompanying drawings.
本申请实施例可以应用于各种快闪(flash)存储设备。例如:固态硬盘(solid state disk,SSD)、安全数位卡(secure digital card,SD Card)、嵌入式多媒体卡(embedded multi media card,eMMC)、通用闪存(universal flash storage,UFS)以及自定义型态等各类闪存设备。以嵌入式多媒体卡为例,其包括数码相机记忆卡、MP3随身听记忆卡以及体积小巧的U盘等。The embodiments of the present application may be applied to various flash (flash) storage devices. For example: solid state disk (solid state disk, SSD), secure digital card (secure digital card, SD Card), embedded multimedia card (embedded multi media card, eMMC), universal flash storage (universal flash storage, UFS) and custom state and other flash memory devices. Take the embedded multimedia card as an example, which includes digital camera memory card, MP3 player memory card, and compact U disk.
随着云/计算/服务器业务的发展,系统对于存储介质的性能要求逐年增加,为了匹配系统的性能要求,存储介质本身的IO接口速率以及对应的控制器的IO接口速率也越来越 高。为了匹配高速的IO接口速率,同时满足数据通信相应的信号完整性(signal integrity,SI)要求,将IO接口的驱动能力持续提高、IO接口的驱动电阻的大小持续变小,对应的IO接口的功耗也持续上升。With the development of cloud/computing/server business, the performance requirements of the system for storage media are increasing year by year. In order to match the performance requirements of the system, the IO interface rate of the storage medium itself and the IO interface rate of the corresponding controller are also getting higher and higher. In order to match the high-speed IO interface rate and meet the corresponding signal integrity (SI) requirements of data communication, the driving capability of the IO interface is continuously improved, the size of the driving resistance of the IO interface is continuously reduced, and the corresponding IO interface Power consumption also continues to rise.
在实际的业务应用中,在不同时间段系统的性能要求不同。比如,白天和晚上,由于用户的活跃度不同,系统的性能要求会有很大的差异。在低性能要求场景或者较低性能要求场景,存储介质的IO接口速率以及该存储介质对应的控制器的IO接口速率较低;在高性能要求场景或者较高性能要求场景,存储介质的IO接口速率以及该存储介质对应的控制器的IO接口速率较高。In actual business applications, the performance requirements of the system are different in different time periods. For example, during the day and night, due to the different user activity, the performance requirements of the system will be very different. In scenarios with low performance requirements or low performance requirements, the IO interface rate of the storage medium and the IO interface rate of the controller corresponding to the storage medium are low; in scenarios with high performance requirements or high performance requirements, the IO interface rate of the storage medium The rate and the IO interface rate of the controller corresponding to the storage medium are relatively high.
目前,在系统上电阶段,可以根据当前存储介质的IO接口以及该存储介质对应的控制器的IO接口需要支持的接口速率,匹配存储介质的IO接口以及该存储介质对应的控制器的IO接口的工作频率、驱动电阻的大小、片上终端电阻(on-die termination,ODT)的大小以及参考电压(voltage reference,Vref)的大小等参数。At present, in the power-on stage of the system, the IO interface of the storage medium and the IO interface of the controller corresponding to the storage medium can be matched according to the IO interface of the current storage medium and the interface rate that the IO interface of the controller corresponding to the storage medium needs to support. The operating frequency, the size of the drive resistor, the size of the on-die termination (ODT) and the size of the reference voltage (voltage reference, Vref) and other parameters.
在高性能要求场景切换至低性能要求场景过程中或低性能要求场景切换至高性能要求场景过程中,会停止当前IO接口的业务传输;并根据IO接口需要支持的接口速率,调整存储介质的IO接口以及该存储介质对应的控制器的IO接口的驱动电阻的大小、ODT的大小、工作时钟信号、Vref以及工艺、电压、温度(process、voltage、temperature,PVT)等接口参数。In the process of switching from a high-performance requirement scenario to a low-performance requirement scenario or from a low-performance requirement scenario to a high-performance requirement scenario, the service transmission of the current IO interface will be stopped; and the IO of the storage medium will be adjusted according to the interface rate that the IO interface needs to support. The interface and the size of the driving resistance of the IO interface of the controller corresponding to the storage medium, the size of the ODT, the working clock signal, Vref, and interface parameters such as process, voltage, temperature (process, voltage, temperature, PVT).
由于对IO接口的接口参数进行调整会改变IO接口传输的信号的完整性,因此,在对IO接口的接口参数进行调整时,会停止IO接口的当前业务传输。FW等待IO接口的业务传输停止,才可以调整IO接口的接口参数。但是,一段时间内业务数据传输停止,会造成系统对业务访问的延迟波动;在接口参数需要持续调整的场景,无法适应实际的应用。如图1所示,出示了FW静态调整存储器的IO接口的接口参数的示意性框图,其中,以flash存储器为例,FW静态调整flash存储器的IO接口的接口参数是采用全软件的方法实现的。Since adjusting the interface parameters of the IO interface will change the integrity of the signal transmitted by the IO interface, when adjusting the interface parameters of the IO interface, the current service transmission of the IO interface will be stopped. The FW waits for the service transmission of the IO interface to stop before adjusting the interface parameters of the IO interface. However, if the transmission of business data stops for a period of time, it will cause delay fluctuations in the system's access to the business; in the scenario where the interface parameters need to be continuously adjusted, it cannot adapt to the actual application. As shown in Figure 1, it shows a schematic block diagram of the FW statically adjusting the interface parameters of the IO interface of the memory, wherein, taking the flash memory as an example, the FW statically adjusts the interface parameters of the IO interface of the flash memory using a full software method. .
为此,本申请实施例提出了一种调整存储介质的接口参数的方法,能够避免业务传输的延迟。For this reason, the embodiment of the present application proposes a method for adjusting interface parameters of a storage medium, which can avoid service transmission delay.
如图2所示,出示了本申请实施例的调整存储介质的接口参数的方法200的示意性流程图。As shown in FIG. 2 , a schematic flowchart of a method 200 for adjusting an interface parameter of a storage medium according to an embodiment of the present application is shown.
210,控制电路根据目标接口速率,确定与该目标接口速率匹配的存储介质的接口参数,控制电路是存储介质对应的控制电路,也就是说,控制电路是该存储介质对应的控制器中的电路。目标接口速率是控制电路根据当前的存储系统的系统性能要求确定的;系统性能要求包括以下至少一项:访问存储介质的带宽、访问存储介质的访问延迟等,可以是中央处理器访问存储介质的带宽、该中央处理器访问存储介质的访问延迟等,例如SSD盘/UFS卡/eMMC卡的带宽和每秒处理的IO(IO per second,IOPS)要求等。210. The control circuit determines the interface parameters of the storage medium matching the target interface rate according to the target interface rate. The control circuit is the control circuit corresponding to the storage medium, that is to say, the control circuit is a circuit in the controller corresponding to the storage medium . The target interface rate is determined by the control circuit according to the system performance requirements of the current storage system; the system performance requirements include at least one of the following: bandwidth for accessing the storage medium, access delay for accessing the storage medium, etc. Bandwidth, the access delay of the central processing unit to access the storage medium, etc., such as the bandwidth of the SSD disk/UFS card/eMMC card and the IO per second (IO per second, IOPS) requirement, etc.
可选的,系统性能感知电路感知当前的系统性能要求,并向控制电路发送当前的系统性能要求。对应地,控制电路接收系统性能感知电路发送的当前的系统性能要求,并根据当前的系统性能要求确定存储介质的接口和该存储介质对应的控制器的接口需要支持的目标接口速率。针对不同的系统性能要求,存储介质的接口和该存储介质对应的控制器的接口需要支持的目标接口速率是相同的,并且,存储介质的接口的接口参数和该存储介质 对应的控制器的接口的接口参数也可能是相同的。Optionally, the system performance sensing circuit senses the current system performance requirement, and sends the current system performance requirement to the control circuit. Correspondingly, the control circuit receives the current system performance requirement sent by the system performance sensing circuit, and determines the target interface rate to be supported by the interface of the storage medium and the interface of the controller corresponding to the storage medium according to the current system performance requirement. For different system performance requirements, the interface of the storage medium and the interface of the controller corresponding to the storage medium need to support the same target interface rate, and the interface parameters of the interface of the storage medium and the interface of the controller corresponding to the storage medium The interface parameters may also be the same.
示例性地,存储介质的接口参数包括该存储介质的接口的驱动电阻的大小、片上终端电阻的大小和工作时钟信号。可选的,存储介质的接口参数还可以包括该存储介质的接口的Vref和PVT等接口参数。应理解,存储介质的接口的接口参数和该存储介质对应的控制器的接口的接口参数也可能是不相同的。例如,存储介质的接口的驱动电阻的大小和ODT的大小与该存储介质对应的控制器的接口的驱动电阻的大小和ODT的大小可能是不同的、但存储介质的接口的工作时钟信号与该存储介质对应的控制器的接口的工作时钟信号是相同的,该情况下存储介质的接口的驱动电阻的大小和ODT的大小与该存储介质对应的控制器的接口的驱动电阻的大小和ODT的大小是一一对应的。Exemplarily, the interface parameters of the storage medium include the size of the drive resistance of the interface of the storage medium, the size of the on-chip termination resistor, and the working clock signal. Optionally, the interface parameters of the storage medium may also include interface parameters such as Vref and PVT of the interface of the storage medium. It should be understood that the interface parameters of the interface of the storage medium may also be different from the interface parameters of the interface of the controller corresponding to the storage medium. For example, the size of the drive resistance and the size of the ODT of the interface of the storage medium may be different from the size of the drive resistance of the interface of the controller corresponding to the storage medium and the size of the ODT, but the working clock signal of the interface of the storage medium is different from the size of the ODT of the interface of the storage medium. The working clock signal of the interface of the controller corresponding to the storage medium is the same. In this case, the size of the drive resistance and the ODT of the interface of the storage medium are the same as the size of the drive resistance and ODT of the interface of the controller corresponding to the storage medium. The size is one-to-one correspondence.
示例性地,控制电路可以根据目标接口速率,确定与该目标接口速率匹配的该存储介质的接口的驱动电阻的大小、ODT的大小和工作频率。该控制电路向时钟产生电路发送时钟调整请求,该时钟调整请求中包括控制电路确定的工作频率;时钟产生电路产生该工作频率的工作时钟信号,并将该工作时钟信号发送给控制电路;控制电路接收时钟产生电路产生的该工作时钟信号。其中,时钟产生电路也是该存储介质对应的控制器中的电路。Exemplarily, the control circuit may determine, according to the target interface rate, the size of the drive resistance, the size of the ODT, and the operating frequency of the interface of the storage medium that match the target interface rate. The control circuit sends a clock adjustment request to the clock generation circuit, and the clock adjustment request includes the operating frequency determined by the control circuit; the clock generation circuit generates an operating clock signal of the operating frequency, and sends the operating clock signal to the control circuit; the control circuit The working clock signal generated by the clock generating circuit is received. Wherein, the clock generation circuit is also a circuit in the controller corresponding to the storage medium.
示例性地,当目标接口速率增大时,该控制电路减小存储介质的接口的驱动电阻的大小、连接ODT或减小存储介质的接口的ODT的大小、增大工作时钟信号的工作频率;其中,连接ODT可以理解为,连接一个阻值较小的ODT或指定的一个ODT。当目标接口速率减小时,该控制电路增大存储介质的接口的驱动电阻的大小、断开ODT或增大存储介质的接口的ODT的大小、减小工作时钟信号的工作频率的大小;其中,断开ODT可以理解为,连接一个阻值较大的ODT,由于连接的ODT的阻值较大,该ODT相当于是悬空或断开的状态。Exemplarily, when the target interface rate increases, the control circuit reduces the size of the drive resistance of the interface of the storage medium, connects the ODT or reduces the size of the ODT of the interface of the storage medium, and increases the working frequency of the working clock signal; Wherein, connecting the ODT can be understood as connecting an ODT with a smaller resistance value or a designated ODT. When the target interface rate decreases, the control circuit increases the size of the drive resistance of the interface of the storage medium, disconnects the ODT or increases the size of the ODT of the interface of the storage medium, and reduces the size of the operating frequency of the operating clock signal; wherein, Disconnecting the ODT can be understood as connecting an ODT with a large resistance value. Since the connected ODT has a large resistance value, the ODT is equivalent to a suspended or disconnected state.
应理解,目标接口速率越大,对信号完整性的要求越高,减小接口的驱动电阻的大小和ODT的大小,可以增强接口传输的信号的完整性,与此同时,接口的功耗也随之增加。目标接口速率越小,对信号完整性的要求越低,增大接口的驱动电阻的大小和ODT的大小,可以降低接口的功耗,从而能够降低存储系统的功耗。It should be understood that the higher the rate of the target interface, the higher the requirements for signal integrity. Reducing the size of the drive resistance and ODT of the interface can enhance the integrity of the signal transmitted by the interface. At the same time, the power consumption of the interface is also reduced. increase accordingly. The lower the rate of the target interface, the lower the requirements for signal integrity. Increasing the size of the driving resistance and ODT of the interface can reduce the power consumption of the interface, thereby reducing the power consumption of the storage system.
220,当控制电路的接口与存储介质的接口之间的连接总线处于空闲状态时,该控制电路向存储介质的接口发送接口参数。当控制电路的接口与存储介质的接口之间的连接总线不处于空闲状态时,则不用停止业务传输,等待业务传输完成。应理解,由于所有的读写命令和业务传输都是由控制器发起的,因此,控制器中的控制电路可以精确地预测该控制电路的接口与存储介质的接口之间的连接总线上的行为。具体地,控制电路可以根据当前传输的业务的类型以及当前连接总线上传输的业务的传输阶段,动态地获取连接总线的使用权和存储介质的控制权。220. When the connection bus between the interface of the control circuit and the interface of the storage medium is in an idle state, the control circuit sends an interface parameter to the interface of the storage medium. When the connection bus between the interface of the control circuit and the interface of the storage medium is not in an idle state, there is no need to stop the service transmission, and wait for the completion of the service transmission. It should be understood that since all read and write commands and service transmissions are initiated by the controller, the control circuit in the controller can accurately predict the behavior on the connection bus between the interface of the control circuit and the interface of the storage medium . Specifically, the control circuit can dynamically acquire the use right of the connection bus and the control right of the storage medium according to the type of the currently transmitted service and the transmission stage of the service currently transmitted on the connection bus.
其中,控制电路的接口与存储介质的接口之间的连接总线处于空闲状态,可以理解为控制电路不对存储介质进行访问,或,控制电路没有访问存储介质的总线操作。控制电路的接口与存储介质的接口之间的连接总线不处于空闲态时,该连接总线上可能有数据传输、命令传输、地址传输或处于传输过程中相关的时序控制状态,也就是说,该连接总线上有业务传输。Wherein, the connecting bus between the interface of the control circuit and the interface of the storage medium is in an idle state, it can be understood that the control circuit does not access the storage medium, or the control circuit does not access the bus operation of the storage medium. When the connection bus between the interface of the control circuit and the interface of the storage medium is not in an idle state, there may be data transmission, command transmission, address transmission or timing control state related to the transmission process on the connection bus, that is to say, the There is traffic transmission on the connection bus.
对应地,控制电路根据目标接口速率,确定与该目标接口速率匹配的该控制电路的接口的接口参数,控制电路也可以快速地调整该控制电路的接口的接口参数,其中,该控制 电路的接口的接口参数与存储介质的接口的接口参数可能是相同的。Correspondingly, the control circuit determines the interface parameters of the interface of the control circuit matching the target interface rate according to the target interface rate, and the control circuit can also quickly adjust the interface parameters of the interface of the control circuit, wherein the interface of the control circuit The interface parameters of the storage medium may be the same as the interface parameters of the storage medium.
示例性地,当控制电路的接口与存储介质的接口之间的连接总线处于空闲状态时,该控制电路向存储介质的接口发送该存储介质的接口的驱动电阻的大小、片上终端电阻的大小和工作时钟信号。可选的,该控制电路还可以向存储介质的接口发送该存储介质的接口的Vref和PVT等参数。Exemplarily, when the connection bus between the interface of the control circuit and the interface of the storage medium is in an idle state, the control circuit sends to the interface of the storage medium the size of the drive resistance of the interface of the storage medium, the size of the on-chip termination resistor and Working clock signal. Optionally, the control circuit may also send parameters such as Vref and PVT of the interface of the storage medium to the interface of the storage medium.
示例性地,存储器中包括多个存储颗粒,本申请实施例中的存储介质可以是存储器中的一个或多个存储颗粒,也就是说存储介质是多个存储颗粒中的部分存储颗粒。以存储器为flash为例,控制电路同时连接一组或多组flash裸芯片(die),每组flash die包括8个flash die,每个flash die对应一个接口。存储颗粒可以是flash中的一个或多个flash die,当控制电路的接口与一个或多个flash die的接口之间的连接总线处于空闲状态时,向该一个或多个flash die的接口发送接口参数。也就是说,在控制电路的接口与存储器中某个(或某些)存储颗粒的接口之间的连接总线处于空闲态时,调整对应的存储颗粒的接口参数,不会影响存储器中其他存储颗粒的接口上的业务传输。Exemplarily, the memory includes multiple storage particles, and the storage medium in the embodiment of the present application may be one or more storage particles in the memory, that is to say, the storage medium is a part of the multiple storage particles. Taking the memory as flash as an example, the control circuit is connected to one or more groups of flash dies at the same time, each group of flash dies includes 8 flash dies, and each flash die corresponds to an interface. The storage particle can be one or more flash dies in the flash, and when the connection bus between the interface of the control circuit and the interface of one or more flash dies is in an idle state, an interface is sent to the interface of the one or more flash dies parameter. That is to say, when the connection bus between the interface of the control circuit and the interface of a certain (or some) storage particles in the memory is in an idle state, adjusting the interface parameters of the corresponding storage particles will not affect other storage particles in the memory Service transmission on the interface.
在本申请实施例提供的技术方案中,存储介质对应的控制电路可以根据目标接口速率确定与该目标接口速率匹配的存储介质的接口参数,当该控制电路的接口与存储介质的接口之间的连接总线处于空闲态时,向存储介质的接口发送接口参数。相对于现有技术中在停止业务传输的时间调整存储器的接口的接口参数,本申请是在控制电路的接口与存储介质的接口之间的连接总线处于空闲态时调整接口参数,无需停止正在进行的业务传输,从而可以避免业务传输的延迟。In the technical solution provided by the embodiment of this application, the control circuit corresponding to the storage medium can determine the interface parameters of the storage medium matching the target interface rate according to the target interface rate, when the interface between the control circuit and the storage medium interface When the connection bus is in an idle state, the interface parameters are sent to the interface of the storage medium. Compared with adjusting the interface parameters of the interface of the memory at the time of stopping the service transmission in the prior art, this application adjusts the interface parameters when the connection bus between the interface of the control circuit and the interface of the storage medium is in an idle state, without stopping the ongoing business transmission, so as to avoid the delay of business transmission.
如图3所示,出示了本申请实施例的调整存储介质的接口参数的方法的一种示例。适用于接口的工作频率从高频切换至低频。As shown in FIG. 3 , an example of a method for adjusting an interface parameter of a storage medium according to an embodiment of the present application is shown. The operating frequency applicable to the interface is switched from high frequency to low frequency.
301,系统性能感知电路感知当前的系统性能要求的变化,该系统性能感知电路向控制器中的控制电路发送当前的系统性能要求。可选的,控制电路可以包括功耗控制电路和IO控制电路。IO控制电路的接口就是控制电路的接口。系统性能感知电路可以是控制器中的电路,也可以是与控制器连接的控制器之外的电路。301. A system performance sensing circuit senses a change in a current system performance requirement, and the system performance sensing circuit sends the current system performance requirement to a control circuit in a controller. Optionally, the control circuit may include a power consumption control circuit and an IO control circuit. The interface of the IO control circuit is the interface of the control circuit. The system performance sensing circuit may be a circuit in the controller, or a circuit connected to the controller outside the controller.
示例性地,该系统性能感知电路可以向控制器中的功耗控制电路发送当前的系统性能要求。Exemplarily, the system performance sensing circuit may send the current system performance requirement to the power consumption control circuit in the controller.
302,功耗控制电路接收系统性能感知电路发送的当前的系统性能要求,并启动系统功耗控制。302. The power consumption control circuit receives the current system performance requirement sent by the system performance sensing circuit, and starts system power consumption control.
具体地,该功耗控制电路根据当前的系统性能要求,确定与当前的系统性能要求匹配的目标接口速率;该功耗控制电路根据该目标接口速率,确定与该目标接口速率匹配的存储介质的接口的驱动电阻的大小、ODT的大小和工作频率等参数。Specifically, the power consumption control circuit determines the target interface rate matching the current system performance requirement according to the current system performance requirement; the power consumption control circuit determines the storage medium rate matching the target interface rate according to the target interface rate Parameters such as the size of the driving resistance of the interface, the size of the ODT, and the operating frequency.
接口的工作频率从高频切换至低频,也就是说,目标接口速率从高速率切换至低速率。因为目标接口速率减小,则该功耗控制电路增大存储介质的接口的驱动电阻的大小、不连接ODT或增大存储介质的接口的ODT的大小、减小工作时钟信号的工作频率,可以降低接口的功耗,从而能够降低存储系统的功耗。The operating frequency of the interface is switched from high frequency to low frequency, that is, the target interface rate is switched from high rate to low rate. Because the target interface rate decreases, the power consumption control circuit increases the size of the drive resistance of the interface of the storage medium, does not connect the ODT or increases the size of the ODT of the interface of the storage medium, and reduces the operating frequency of the operating clock signal, which can The power consumption of the interface is reduced, so that the power consumption of the storage system can be reduced.
该功耗控制电路向IO控制电路发送IO功耗控制请求,该IO功耗控制请求中包括与目标接口速率匹配的存储介质的接口的驱动电阻的大小、ODT的大小和工作频率等参数。The power consumption control circuit sends an IO power consumption control request to the IO control circuit, and the IO power consumption control request includes parameters such as the size of the driving resistance of the interface of the storage medium that matches the rate of the target interface, the size of the ODT, and the operating frequency.
303,IO控制电路接收功耗控制电路发送的IO功耗控制请求。303. The IO control circuit receives the IO power consumption control request sent by the power consumption control circuit.
IO控制电路向控制器中的时钟产生电路发送时钟调整请求,该时钟调整请求中包括与目标接口速率匹配的存储介质的接口的工作频率,该时钟调整请求用于请求该时钟产生电路产生该工作频率的工作时钟信号。The IO control circuit sends a clock adjustment request to the clock generation circuit in the controller. The clock adjustment request includes the operating frequency of the interface of the storage medium that matches the rate of the target interface. The clock adjustment request is used to request the clock generation circuit to generate the work frequency. frequency of the operating clock signal.
IO控制电路接收时钟产生电路产生的该工作频率的工作时钟信号。The IO control circuit receives the working clock signal of the working frequency generated by the clock generating circuit.
304,IO控制电路预测该IO控制电路/控制电路/控制器的接口与存储介质的接口之间的连接总线上的行为。当IO控制电路/控制电路/控制器的接口与存储介质的接口之间的连接总线处于空闲态时,该IO控制电路/控制电路/控制器向存储介质的接口发送与目标接口速率匹配的存储介质的接口的驱动电阻的大小、ODT的大小和工作时钟信号等接口参数。可选的,存储介质的接口参数还可以包括该存储介质的接口的Vref和PVT等接口参数。304. The IO control circuit predicts a behavior on the connection bus between the interface of the IO control circuit/control circuit/controller and the interface of the storage medium. When the connection bus between the interface of the IO control circuit/control circuit/controller and the interface of the storage medium is in an idle state, the IO control circuit/control circuit/controller sends the storage data matched with the rate of the target interface to the interface of the storage medium Interface parameters such as the size of the driving resistance of the interface of the medium, the size of the ODT, and the working clock signal. Optionally, the interface parameters of the storage medium may also include interface parameters such as Vref and PVT of the interface of the storage medium.
当IO控制电路/控制器/控制电路的接口与存储介质的接口之间的连接总线不处于空闲态时,则不用停止当前的业务传输,等待业务数据传输完成。When the connection bus between the interface of the IO control circuit/controller/control circuit and the interface of the storage medium is not in an idle state, there is no need to stop the current service transmission and wait for the completion of service data transmission.
示例性地,当IO控制电路/控制电路/控制器的接口与存储介质的接口之间的连接总线处于空闲态时,该IO控制电路/控制电路/控制器向存储介质的接口发送第一指示信息/第一指令,该第一指示信息/第一指令中包括与目标接口速率匹配的存储介质的接口的驱动电阻的大小、ODT的大小和工作时钟信号等接口参数。Exemplarily, when the connection bus between the interface of the IO control circuit/control circuit/controller and the interface of the storage medium is in an idle state, the IO control circuit/control circuit/controller sends a first indication to the interface of the storage medium The information/first instruction, the first instruction information/first instruction includes interface parameters such as the size of the driving resistance of the interface of the storage medium that matches the rate of the target interface, the size of the ODT, and the working clock signal.
305,IO控制电路调整该IO控制电路/控制电路/控制器的接口的接口参数,该IO控制电路/控制电路/控制器的接口的接口参数与存储介质的接口的接口参数可能是相同的。305. The IO control circuit adjusts the interface parameters of the interface of the IO control circuit/control circuit/controller, where the interface parameters of the interface of the IO control circuit/control circuit/controller may be the same as the interface parameters of the interface of the storage medium.
应理解,IO控制电路与功耗控制电路可以是集成在一起的电路,统称为控制电路。IO控制电路与功耗控制电路也可以是独立的不同的硬件电路。It should be understood that the IO control circuit and the power consumption control circuit may be integrated circuits, which are collectively referred to as control circuits. The IO control circuit and the power consumption control circuit may also be independent and different hardware circuits.
305与304可以是不分先后顺序的,305可以在304之前,305也可以与304同时进行。本申请对此不做具体限定。305 and 304 may be in no particular order, 305 may be before 304, and 305 and 304 may be performed simultaneously. This application does not specifically limit it.
如图4所示,出示了本申请实施例的调整存储介质的接口参数的方法的另一种示例。适用于接口的工作频率从低频切换至高频。As shown in FIG. 4 , another example of the method for adjusting an interface parameter of a storage medium according to the embodiment of the present application is shown. The operating frequency applicable to the interface is switched from low frequency to high frequency.
401,系统性能感知电路感知当前的系统性能要求的变化,该系统性能感知电路向控制器中的控制电路发送当前的系统性能要求。可选的,控制电路可以包括功耗控制电路和IO控制电路。IO控制电路的接口就是控制电路的接口。系统性能感知电路可以是控制器中的电路,也可以是与控制器连接的控制器之外的电路。401. A system performance sensing circuit senses a change in a current system performance requirement, and the system performance sensing circuit sends the current system performance requirement to a control circuit in a controller. Optionally, the control circuit may include a power consumption control circuit and an IO control circuit. The interface of the IO control circuit is the interface of the control circuit. The system performance sensing circuit may be a circuit in the controller, or a circuit connected to the controller outside the controller.
示例性地,该系统性能感知电路可以向控制器中的功耗控制电路发送当前的系统性能要求。Exemplarily, the system performance sensing circuit may send the current system performance requirement to the power consumption control circuit in the controller.
402,功耗控制电路接收系统性能感知电路发送的当前的系统性能要求,并启动系统功耗控制。402. The power consumption control circuit receives the current system performance requirement sent by the system performance sensing circuit, and starts system power consumption control.
具体地,该功耗控制电路根据当前的系统性能要求,确定与当前的系统性能要求匹配的目标接口速率;该功耗控制电路根据该目标接口速率,确定与该目标接口速率匹配的存储介质的接口的驱动电阻的大小、ODT的大小和工作频率等参数。Specifically, the power consumption control circuit determines the target interface rate matching the current system performance requirement according to the current system performance requirement; the power consumption control circuit determines the storage medium rate matching the target interface rate according to the target interface rate Parameters such as the size of the driving resistance of the interface, the size of the ODT, and the operating frequency.
接口的工作频率从低频切换至高频,也就是说,目标接口速率从低速率切换至高速率。因为目标接口速率增大,则该功耗控制电路减小存储介质的接口的驱动电阻的大小、连接ODT或减小存储介质的接口的ODT的大小、增大工作时钟信号的工作频率。目标接口速率越大,对信号完整性的要求越高,减小接口的驱动电阻的大小和ODT的大小,可以增强接口传输的信号的完整性。The operating frequency of the interface is switched from low frequency to high frequency, that is, the target interface rate is switched from low rate to high rate. Because the rate of the target interface increases, the power consumption control circuit reduces the size of the drive resistance of the interface of the storage medium, connects the ODT or reduces the size of the ODT of the interface of the storage medium, and increases the working frequency of the working clock signal. The higher the rate of the target interface, the higher the requirements for signal integrity. Reducing the size of the drive resistance and ODT of the interface can enhance the integrity of the signal transmitted by the interface.
该功耗控制电路向IO控制电路发送IO功耗控制请求,该IO功耗控制请求中包括与目标接口速率匹配的存储介质的接口的驱动电阻的大小、ODT的大小和工作频率等参数。The power consumption control circuit sends an IO power consumption control request to the IO control circuit, and the IO power consumption control request includes parameters such as the size of the driving resistance of the interface of the storage medium that matches the rate of the target interface, the size of the ODT, and the operating frequency.
403,IO控制电路接收功耗控制电路发送的IO功耗控制请求。403. The IO control circuit receives the IO power consumption control request sent by the power consumption control circuit.
IO控制电路向控制器中的时钟产生电路发送时钟调整请求,该时钟调整请求中包括与目标接口速率匹配的存储介质的接口的工作频率,该时钟调整请求用于请求该时钟产生电路产生该工作频率的工作时钟信号。The IO control circuit sends a clock adjustment request to the clock generation circuit in the controller. The clock adjustment request includes the operating frequency of the interface of the storage medium that matches the rate of the target interface. The clock adjustment request is used to request the clock generation circuit to generate the work frequency. frequency of the operating clock signal.
IO控制电路接收时钟产生电路产生的该工作频率的工作时钟信号。The IO control circuit receives the working clock signal of the working frequency generated by the clock generating circuit.
404,IO控制电路预测该IO控制电路/控制电路/控制器的接口与存储介质的接口之间的连接总线上的行为。当IO控制电路/控制电路/控制器的接口与存储介质的接口之间的连接总线处于空闲态时,该IO控制电路/控制电路/控制器向存储介质的接口发送与目标接口速率匹配的存储介质的接口的驱动电阻的大小、ODT的大小和工作时钟信号等接口参数。可选的,存储介质的接口参数还可以包括该存储介质的接口的Vref和PVT等接口参数。404. The IO control circuit predicts a behavior on the connection bus between the interface of the IO control circuit/control circuit/controller and the interface of the storage medium. When the connection bus between the interface of the IO control circuit/control circuit/controller and the interface of the storage medium is in an idle state, the IO control circuit/control circuit/controller sends the storage data matched with the rate of the target interface to the interface of the storage medium Interface parameters such as the size of the driving resistance of the interface of the medium, the size of the ODT, and the working clock signal. Optionally, the interface parameters of the storage medium may also include interface parameters such as Vref and PVT of the interface of the storage medium.
当IO控制电路/控制器/控制电路的接口与存储介质的接口之间的连接总线不处于空闲态时,则不用停止当前的业务传输,等待业务数据传输完成。When the connection bus between the interface of the IO control circuit/controller/control circuit and the interface of the storage medium is not in an idle state, there is no need to stop the current service transmission and wait for the completion of service data transmission.
示例性地,当IO控制电路/控制电路/控制器的接口与存储介质的接口之间的连接总线处于空闲态时,该IO控制电路/控制电路/控制器向存储介质的接口发送第一指示信息/第一指令,该第一指示信息/第一指令中包括与目标接口速率匹配的存储介质的接口的驱动电阻的大小、ODT的大小和工作时钟信号等接口参数。Exemplarily, when the connection bus between the interface of the IO control circuit/control circuit/controller and the interface of the storage medium is in an idle state, the IO control circuit/control circuit/controller sends a first indication to the interface of the storage medium The information/first instruction, the first instruction information/first instruction includes interface parameters such as the size of the driving resistance of the interface of the storage medium that matches the rate of the target interface, the size of the ODT, and the working clock signal.
405,IO控制电路调整该IO控制电路/控制电路/控制器的接口的接口参数,该IO控制电路/控制电路/控制器的接口的接口参数与存储介质的接口的接口参数可能是相同的。405. The IO control circuit adjusts the interface parameters of the interface of the IO control circuit/control circuit/controller, where the interface parameters of the interface of the IO control circuit/control circuit/controller may be the same as the interface parameters of the interface of the storage medium.
应理解,IO控制电路与功耗控制电路可以是集成在一起的电路,统称为控制电路。IO控制电路与功耗控制电路也可以是独立的不同的硬件电路。It should be understood that the IO control circuit and the power consumption control circuit may be integrated circuits, which are collectively referred to as control circuits. The IO control circuit and the power consumption control circuit may also be independent and different hardware circuits.
405与404可以是不分先后顺序的,405可以在404之前,405也可以与404同时进行。本申请对此不做具体限定。405 and 404 can be in no particular order, 405 can be before 404, and 405 and 404 can also be performed simultaneously. This application does not specifically limit it.
如图5所示,出示了本申请实施例提供的一种存储介质的控制器500的示意图,该控制器500包括:As shown in FIG. 5 , a schematic diagram of a controller 500 of a storage medium provided in an embodiment of the present application is shown, and the controller 500 includes:
控制电路510,用于根据目标接口速率,确定与所述目标接口速率匹配的所述存储介质的接口参数,所述控制电路是所述存储介质对应的控制电路;The control circuit 510 is configured to determine the interface parameters of the storage medium matching the target interface rate according to the target interface rate, the control circuit is a control circuit corresponding to the storage medium;
所述控制电路510还用于,当所述控制电路的接口与所述存储介质的接口之间的连接总线处于空闲状态时,向所述存储介质的接口发送所述接口参数。The control circuit 510 is further configured to send the interface parameters to the interface of the storage medium when the connection bus between the interface of the control circuit and the interface of the storage medium is in an idle state.
可选的,所述接口参数包括所述存储介质的接口的驱动电阻的大小、片上终端电阻ODT的大小和工作时钟信号。Optionally, the interface parameters include the size of the driving resistance of the interface of the storage medium, the size of the on-chip termination resistor ODT, and the working clock signal.
可选的,所述控制器还包括时钟产生电路520;Optionally, the controller further includes a clock generation circuit 520;
所述控制电路510具体用于:The control circuit 510 is specifically used for:
根据所述目标接口速率,确定与所述目标接口速率匹配的所述存储介质的接口的所述驱动电阻的大小、所述ODT的大小和工作频率;According to the target interface rate, determine the size of the drive resistance, the size of the ODT, and the operating frequency of the interface of the storage medium that match the target interface rate;
向所述时钟产生电路520发送时钟调整请求,所述时钟调整请求中包括所述工作频率,所述时钟调整请求用于请求所述时钟产生电路520产生所述工作频率的所述工作时钟信号;Sending a clock adjustment request to the clock generation circuit 520, where the clock adjustment request includes the operating frequency, and the clock adjustment request is used to request the clock generation circuit 520 to generate the operating clock signal of the operating frequency;
接收所述时钟产生电路520产生的所述工作时钟信号。The working clock signal generated by the clock generating circuit 520 is received.
可选的,所述控制电路510具体用于:Optionally, the control circuit 510 is specifically used for:
当所述目标接口速率增大时,减小所述驱动电阻的大小、连接所述ODT或减小所述ODT的大小;When the target interface rate increases, reduce the size of the driving resistor, connect the ODT or reduce the size of the ODT;
当所述目标接口速率减小时,增大所述驱动电阻的大小、不连接所述ODT或增大所述ODT的大小。When the rate of the target interface decreases, the size of the driving resistor is increased, the ODT is not connected, or the size of the ODT is increased.
可选的,所述控制电路510还用于,根据当前的系统性能要求,确定所述目标接口速率,所述当前的系统性能要求包括以下至少一项:访问所述存储介质的带宽和访问所述存储介质的访问延迟。Optionally, the control circuit 510 is further configured to determine the target interface rate according to the current system performance requirement, and the current system performance requirement includes at least one of the following: the bandwidth for accessing the storage medium and the bandwidth for accessing the The access delay of the storage medium mentioned above.
可选的,所述控制器还包括系统性能感知电路530;Optionally, the controller further includes a system performance sensing circuit 530;
所述系统性能感知电路530,用于感知所述当前的系统性能要求;The system performance sensing circuit 530 is configured to sense the current system performance requirements;
所述系统性能感知电路530还用于,向所述控制电路发送所述当前的系统性能要求;The system performance sensing circuit 530 is further configured to send the current system performance requirement to the control circuit;
所述控制电路510还用于,接收来自所述系统性能感知电路530的所述当前的系统性能要求。应理解,系统性能感知电路530也可以是与控制器连接的控制器之外的电路。可选的,存储器中包括多个存储颗粒,所述存储介质是一个或多个所述存储颗粒。The control circuit 510 is further configured to receive the current system performance requirement from the system performance sensing circuit 530 . It should be understood that the system performance sensing circuit 530 may also be a circuit other than the controller connected to the controller. Optionally, the memory includes multiple storage particles, and the storage medium is one or more storage particles.
如图6所示,出示了本申请实施例提供的一种存储介质的控制器600的一种示例。As shown in FIG. 6 , an example of a controller 600 for a storage medium provided in the embodiment of the present application is shown.
该控制器包括:IO控制电路611、功耗控制电路612、时钟产生电路620、系统性能感知电路630以及调整记录电路640。IO控制电路611和功耗控制电路612可以统称为控制电路。IO控制电路611和功耗控制电路612可以图5中的控制电路510。The controller includes: an IO control circuit 611 , a power consumption control circuit 612 , a clock generation circuit 620 , a system performance sensing circuit 630 and an adjustment recording circuit 640 . The IO control circuit 611 and the power consumption control circuit 612 may be collectively referred to as a control circuit. The IO control circuit 611 and the power consumption control circuit 612 may be the control circuit 510 in FIG. 5 .
系统性能感知电路630,用于感知当前的系统性能要求的变化,所述当前的系统性能要求包括以下至少一项:访问所述存储介质的带宽和访问所述存储介质的访问延迟;The system performance sensing circuit 630 is configured to sense changes in current system performance requirements, where the current system performance requirements include at least one of the following: bandwidth for accessing the storage medium and access delay for accessing the storage medium;
系统性能感知电路630还用于,向控制器中的功耗控制电路612发送当前的系统性能要求。应理解,系统性能感知电路630也可以是与控制器连接的控制器之外的电路。The system performance sensing circuit 630 is also configured to send the current system performance requirement to the power consumption control circuit 612 in the controller. It should be understood that the system performance sensing circuit 630 may also be a circuit other than the controller connected to the controller.
功耗控制电路612,用于:The power consumption control circuit 612 is used for:
接收系统性能感知电路630发送的当前的系统性能要求;receiving the current system performance requirements sent by the system performance sensing circuit 630;
根据当前的系统性能要求,确定与当前的系统性能要求匹配的目标接口速率;According to the current system performance requirements, determine the target interface rate that matches the current system performance requirements;
根据该目标接口速率,确定与该目标接口速率匹配的存储介质的接口的驱动电阻的大小、ODT的大小和工作频率等参数。可选的,存储器中包括多个存储颗粒,该存储介质可以是多个存储颗粒中的一个或多个。According to the target interface rate, parameters such as the size of the driving resistance of the interface of the storage medium matching the target interface rate, the size of the ODT, and the operating frequency are determined. Optionally, the memory includes multiple storage particles, and the storage medium may be one or more of the multiple storage particles.
功耗控制电路612还用于,向IO控制电路611发送IO功耗控制请求,该IO功耗控制请求中包括与目标接口速率匹配的存储介质的接口的驱动电阻的大小、ODT的大小和工作频率等参数。The power consumption control circuit 612 is also used to send an IO power consumption control request to the IO control circuit 611, the IO power consumption control request includes the size of the drive resistance of the interface of the storage medium matching the target interface rate, the size of the ODT and the working parameters such as frequency.
IO控制电路611,用于: IO control circuit 611, for:
接收功耗控制电路612发送的IO功耗控制请求;receiving the IO power consumption control request sent by the power consumption control circuit 612;
向时钟产生电路620发送时钟调整请求,该时钟调整请求中包括与目标接口速率匹配的存储介质的接口的工作频率,该时钟调整请求用于请求该时钟产生电路620产生该工作频率的工作时钟信号。Send a clock adjustment request to the clock generation circuit 620, the clock adjustment request includes the operating frequency of the interface of the storage medium matched with the target interface rate, and the clock adjustment request is used to request the clock generation circuit 620 to generate a working clock signal of the operating frequency .
时钟产生电路620,用于产生该工作频率的工作时钟信号,并向IO控制电路611发送该工作频率的工作时钟信号。The clock generating circuit 620 is configured to generate a working clock signal of the working frequency, and send the working clock signal of the working frequency to the IO control circuit 611 .
IO控制电路611还用于,预测该IO控制电路的接口与存储介质的接口之间的连接总线上的行为。当IO控制电路的接口与存储介质的接口之间的连接总线处于空闲态时,该IO控制电路向存储介质的接口发送与目标接口速率匹配的存储介质的接口的驱动电阻的大小、ODT的大小和工作时钟信号等接口参数。可选的,存储介质的接口参数还可以包括该存储介质的接口的Vref和PVT等接口参数。The IO control circuit 611 is also used to predict the behavior on the connection bus between the interface of the IO control circuit and the interface of the storage medium. When the connection bus between the interface of the IO control circuit and the interface of the storage medium is in an idle state, the IO control circuit sends to the interface of the storage medium the size of the driving resistance and the ODT of the interface of the storage medium matched with the target interface rate and working clock signal and other interface parameters. Optionally, the interface parameters of the storage medium may also include interface parameters such as Vref and PVT of the interface of the storage medium.
IO控制电路611还用于,调整该IO控制电路的接口的接口参数,该IO控制电路的接口的接口参数与存储介质的接口的接口参数可能是相同的。The IO control circuit 611 is further configured to adjust an interface parameter of an interface of the IO control circuit. The interface parameter of the interface of the IO control circuit may be the same as the interface parameter of the interface of the storage medium.
调整记录电路640,用于记录存储器中哪些存储介质的接口的接口参数已调整和/或存储器中哪些存储介质的接口的接口参数还未调整。可选的,该调整记录电路640也可以是集成在IO控制电路611中的。The adjustment recording circuit 640 is configured to record which storage media in the memory have interface parameters whose interface parameters have been adjusted and/or which storage media in the memory whose interface parameters have not been adjusted yet. Optionally, the adjustment record circuit 640 may also be integrated in the IO control circuit 611 .
本申请实施例提供了一种通信设备700,如图7所示,出示了本申请实施例的一种通信设备700的示意性框图。An embodiment of the present application provides a communication device 700 , as shown in FIG. 7 , which shows a schematic block diagram of the communication device 700 according to the embodiment of the present application.
该设备700包括:处理器710和收发器720,所述收发器720用于接收计算机代码或指令,并传输至所述处理器710,所述处理器710运行所述计算机代码或指令,如本申请实施例中任意可能的实现方式中的方法。The device 700 includes: a processor 710 and a transceiver 720, the transceiver 720 is used to receive computer codes or instructions and transmit them to the processor 710, and the processor 710 runs the computer codes or instructions, as described herein The method in any possible implementation manner in the application embodiment.
上述的处理器710可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。The above-mentioned processor 710 may be an integrated circuit chip, which has a signal processing capability. In the implementation process, each step of the above-mentioned method embodiments may be completed by an integrated logic circuit of hardware in a processor or instructions in the form of software. The above-mentioned processor can be a general-purpose processor, a digital signal processor (digital signal processor, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), an off-the-shelf programmable gate array (field programmable gate array, FPGA) or other available Program logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware.
本申请实施例还提供了一种计算机可读存储介质,其上存储有用于实现上述方法实施例中的方法的计算机程序。当该计算机程序在计算机或处理器上运行时,使得该计算机或处理器可以实现上述方法实施例中的方法。The embodiment of the present application also provides a computer-readable storage medium, on which a computer program for implementing the method in the above method embodiment is stored. When the computer program runs on the computer or the processor, the computer or the processor can implement the methods in the above method embodiments.
本申请实施例还提供了一种计算机程序产品,所述计算机程序产品包括计算机程序代码,当所述计算机程序代码在计算机上运行时,使得上述方法实施例中的方法被执行。The embodiment of the present application also provides a computer program product, the computer program product includes computer program code, and when the computer program code is run on the computer, the method in the above method embodiment is executed.
本申请实施例还提供了一种芯片,包括处理器,所述处理器与存储器相连,所述存储器用于存储计算机程序,所述处理器用于执行所述存储器中存储的计算机程序,以使得所述芯片执行上述方法实施例中的方法。The embodiment of the present application also provides a chip, including a processor, the processor is connected to a memory, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the The chip executes the method in the above method embodiment.
另外,本申请中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系;本申请中术语“至少一个”,可以表示“一个”和“两个或两个以上”,例如,A、B和C中,可以表示:单独存在A,单独存在B,单独存在C、同时存在A和B,同时存在A和C,同时存在C 和B,同时存在A和B和C,这七种情况。In addition, the term "and/or" in this application is only an association relationship describing associated objects, indicating that there may be three relationships, for example, A and/or B may indicate: A exists alone, and A and B exist simultaneously , there are three cases of B alone. In addition, the character "/" in this article generally means that the contextual objects are an "or" relationship; the term "at least one" in this application can mean "one" and "two or more", for example, A , B and C, can mean: A alone exists, B exists alone, C exists alone, A and B exist simultaneously, A and C exist simultaneously, C and B exist simultaneously, A, B and C exist simultaneously, these seven kinds Condition.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may implement the described functionality using different methods for each particular application, but such implementation should not be considered as exceeding the scope of the present application.
本领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, and will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disc and other media that can store program codes. .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. Should be covered within the protection scope of this application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

Claims (17)

  1. 一种调整存储介质的接口参数的方法,其特征在于,包括:A method for adjusting an interface parameter of a storage medium, comprising:
    控制电路根据目标接口速率,确定与所述目标接口速率匹配的所述存储介质的接口参数,所述控制电路是所述存储介质对应的控制电路;The control circuit determines the interface parameters of the storage medium matching the target interface rate according to the target interface rate, and the control circuit is a control circuit corresponding to the storage medium;
    当所述控制电路的接口与所述存储介质的接口之间的连接总线处于空闲状态时,所述控制电路向所述存储介质的接口发送所述接口参数。When the connection bus between the interface of the control circuit and the interface of the storage medium is in an idle state, the control circuit sends the interface parameter to the interface of the storage medium.
  2. 根据权利要求1所述的方法,其特征在于,The method according to claim 1, characterized in that,
    所述接口参数包括所述存储介质的接口的驱动电阻的大小、片上终端电阻ODT的大小和工作时钟信号。The interface parameters include the size of the driving resistance of the interface of the storage medium, the size of the on-chip termination resistor ODT and the working clock signal.
  3. 根据权利要求2所述的方法,其特征在于,所述控制电路根据目标接口速率,确定与所述目标接口速率匹配的所述存储介质的接口参数,包括:The method according to claim 2, wherein the control circuit determines the interface parameters of the storage medium matching the target interface rate according to the target interface rate, including:
    所述控制电路根据所述目标接口速率,确定与所述目标接口速率匹配的所述存储介质的接口的所述驱动电阻的大小、所述ODT的大小和工作频率;The control circuit determines the size of the driving resistance, the size of the ODT and the operating frequency of the interface of the storage medium that match the target interface rate according to the target interface rate;
    所述控制电路向时钟产生电路发送时钟调整请求,所述时钟调整请求中包括所述工作频率,所述时钟调整请求用于请求所述时钟产生电路产生所述工作频率的所述工作时钟信号;The control circuit sends a clock adjustment request to the clock generation circuit, the clock adjustment request includes the operating frequency, and the clock adjustment request is used to request the clock generation circuit to generate the operating clock signal of the operating frequency;
    所述控制电路接收所述时钟产生电路产生的所述工作时钟信号。The control circuit receives the working clock signal generated by the clock generating circuit.
  4. 根据权利要求2或3所述的方法,其特征在于,The method according to claim 2 or 3, characterized in that,
    当所述目标接口速率增大时,所述控制电路减小所述驱动电阻的大小、连接所述ODT或减小所述ODT的大小;When the target interface rate increases, the control circuit reduces the size of the driving resistor, connects the ODT or reduces the size of the ODT;
    当所述目标接口速率减小时,所述控制电路增大所述驱动电阻的大小、断开所述ODT或增大所述ODT的大小。When the target interface rate decreases, the control circuit increases the size of the driving resistor, turns off the ODT, or increases the size of the ODT.
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 4, wherein the method further comprises:
    所述控制电路根据当前的系统性能要求,确定所述目标接口速率,所述当前的系统性能要求包括以下至少一项:The control circuit determines the target interface rate according to the current system performance requirements, and the current system performance requirements include at least one of the following:
    访问所述存储介质的带宽或访问所述存储介质的访问延迟。The bandwidth for accessing the storage medium or the access delay for accessing the storage medium.
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 5, wherein the method further comprises:
    系统性能感知电路感知所述当前的系统性能要求;The system performance sensing circuit senses the current system performance requirement;
    所述系统性能感知电路向所述控制电路发送所述当前的系统性能要求。The system performance sensing circuit sends the current system performance requirement to the control circuit.
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,A method according to any one of claims 1 to 6, characterized in that,
    存储器中包括多个存储颗粒,所述存储介质是所述多个存储颗粒中的一个或多个。The memory includes multiple storage particles, and the storage medium is one or more of the multiple storage particles.
  8. 一种存储介质的控制器,其特征在于,包括:A storage medium controller, characterized in that it comprises:
    控制电路,用于根据目标接口速率,确定与所述目标接口速率匹配的所述存储介质的接口参数,所述控制电路是所述存储介质对应的控制电路;A control circuit, configured to determine an interface parameter of the storage medium matching the target interface rate according to a target interface rate, the control circuit being a control circuit corresponding to the storage medium;
    所述控制电路还用于,当所述控制电路的接口与所述存储介质的接口之间的连接总线处于空闲状态时,向所述存储介质的接口发送所述接口参数。The control circuit is further configured to, when the connection bus between the interface of the control circuit and the interface of the storage medium is in an idle state, send the interface parameter to the interface of the storage medium.
  9. 根据权利要求8所述的控制器,其特征在于,The controller according to claim 8, characterized in that,
    所述接口参数包括所述存储介质的接口的驱动电阻的大小、片上终端电阻ODT的大小和工作时钟信号。The interface parameters include the size of the driving resistance of the interface of the storage medium, the size of the on-chip termination resistor ODT and the working clock signal.
  10. 根据权利要求9所述的控制器,其特征在于,所述控制器还包括时钟产生电路;The controller according to claim 9, wherein the controller further comprises a clock generation circuit;
    所述控制电路具体用于:The control circuit is specifically used for:
    根据所述目标接口速率,确定与所述目标接口速率匹配的所述存储介质的接口的所述驱动电阻的大小、所述ODT的大小和工作频率;According to the target interface rate, determine the size of the drive resistance, the size of the ODT, and the operating frequency of the interface of the storage medium that match the target interface rate;
    向所述时钟产生电路发送时钟调整请求,所述时钟调整请求中包括所述工作频率,所述时钟调整请求用于请求所述时钟产生电路产生所述工作频率的所述工作时钟信号;sending a clock adjustment request to the clock generation circuit, where the clock adjustment request includes the operating frequency, and the clock adjustment request is used to request the clock generation circuit to generate the operating clock signal of the operating frequency;
    接收所述时钟产生电路产生的所述工作时钟信号。The working clock signal generated by the clock generating circuit is received.
  11. 根据权利要求9或10所述的控制器,其特征在于,所述控制电路具体用于:The controller according to claim 9 or 10, wherein the control circuit is specifically used for:
    当所述目标接口速率增大时,减小所述驱动电阻的大小、连接所述ODT或减小所述ODT的大小;When the target interface rate increases, reduce the size of the driving resistor, connect the ODT or reduce the size of the ODT;
    当所述目标接口速率减小时,增大所述驱动电阻的大小、不连接所述ODT或增大所述ODT的大小。When the rate of the target interface decreases, the size of the driving resistor is increased, the ODT is not connected, or the size of the ODT is increased.
  12. 根据权利要求8至11中任一项所述的控制器,其特征在于,A controller according to any one of claims 8 to 11, characterized in that,
    所述控制电路还用于,根据当前的系统性能要求,确定所述目标接口速率,所述当前的系统性能要求包括以下至少一项:The control circuit is further configured to determine the target interface rate according to a current system performance requirement, where the current system performance requirement includes at least one of the following:
    访问所述存储介质的带宽和访问所述存储介质的访问延迟。Bandwidth for accessing the storage medium and access latency for accessing the storage medium.
  13. 根据权利要求8至12中任一项所述的控制器,其特征在于,所述控制器还包括系统性能感知电路;The controller according to any one of claims 8 to 12, wherein the controller further comprises a system performance sensing circuit;
    所述系统性能感知电路,用于感知所述当前的系统性能要求;The system performance sensing circuit is configured to sense the current system performance requirements;
    所述系统性能感知电路还用于,向所述控制电路发送所述当前的系统性能要求。The system performance sensing circuit is further configured to send the current system performance requirement to the control circuit.
  14. 根据权利要求8至13中任一项所述的控制器,其特征在于,A controller according to any one of claims 8 to 13, characterized in that,
    存储器中包括多个存储颗粒,所述存储介质是所述多个存储颗粒中的一个或多个。The memory includes multiple storage particles, and the storage medium is one or more of the multiple storage particles.
  15. 一种通信设备,其特征在于,包括:处理器和收发器,所述收发器用于接收计算机代码或指令,并传输至所述处理器,所述处理器运行所述计算机代码或指令,实现如权利要求1至7中任一项所述的方法。A communication device, characterized in that it includes: a processor and a transceiver, the transceiver is used to receive computer codes or instructions and transmit them to the processor, and the processor runs the computer codes or instructions to implement the following: The method according to any one of claims 1 to 7.
  16. 一种计算机可读存储介质,其特征在于,包括:A computer-readable storage medium, comprising:
    所述计算机可读存储介质中存储有计算机程序;A computer program is stored in the computer-readable storage medium;
    所述计算机程序在计算机或处理器上运行时,使得所述计算机或所述处理器执行权利要求1至7中任一项所述的方法。When the computer program is run on a computer or a processor, the computer or the processor is executed to perform the method according to any one of claims 1 to 7.
  17. 一种计算机程序产品,其特征在于,包括计算机程序,当所述计算机程序被执行时,使得如权利要求1至7任一项所述的方法被实现。A computer program product, characterized by comprising a computer program, when the computer program is executed, the method according to any one of claims 1 to 7 is realized.
PCT/CN2022/126617 2022-01-27 2022-10-21 Method and device for adjusting interface parameter of storage medium WO2023142546A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210102365.X 2022-01-27
CN202210102365.XA CN116560486A (en) 2022-01-27 2022-01-27 Method and apparatus for adjusting interface parameters of storage medium

Publications (1)

Publication Number Publication Date
WO2023142546A1 true WO2023142546A1 (en) 2023-08-03

Family

ID=87470397

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/126617 WO2023142546A1 (en) 2022-01-27 2022-10-21 Method and device for adjusting interface parameter of storage medium

Country Status (2)

Country Link
CN (1) CN116560486A (en)
WO (1) WO2023142546A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130138830A1 (en) * 2011-11-28 2013-05-30 Huawei Technologies Co., Ltd. Method and network device for controlling transmission rate of communication interface
CN103139088A (en) * 2011-11-28 2013-06-05 华为技术有限公司 Method for controlling transmission rate of communication interface and network equipment
CN106683694A (en) * 2016-12-19 2017-05-17 西安微电子技术研究所 Rate-adaptive storer interface circuit
CN108170370A (en) * 2016-12-07 2018-06-15 慧荣科技股份有限公司 Data storage device and data transmission rate control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130138830A1 (en) * 2011-11-28 2013-05-30 Huawei Technologies Co., Ltd. Method and network device for controlling transmission rate of communication interface
CN103139088A (en) * 2011-11-28 2013-06-05 华为技术有限公司 Method for controlling transmission rate of communication interface and network equipment
CN108170370A (en) * 2016-12-07 2018-06-15 慧荣科技股份有限公司 Data storage device and data transmission rate control method
CN106683694A (en) * 2016-12-19 2017-05-17 西安微电子技术研究所 Rate-adaptive storer interface circuit

Also Published As

Publication number Publication date
CN116560486A (en) 2023-08-08

Similar Documents

Publication Publication Date Title
US11789880B2 (en) Load reduced nonvolatile memory interface
US11681452B2 (en) Memory access technology and computer system
US9792173B2 (en) Interface control circuit, memory system, and method of controlling an interface control circuit
US8200862B2 (en) Low-power USB flash card reader using bulk-pipe streaming with UAS command re-ordering and channel separation
US6807590B1 (en) Disconnecting a device on a cache line boundary in response to a write command
US10762003B2 (en) State change in systems having devices coupled in a chained configuration
KR20080020486A (en) Control of information units in fibre channel communications
KR20150139925A (en) I/o driver transmit swing control
US11467767B2 (en) Storage device throttling amount of communicated data depending on suspension frequency of operation
TW201626242A (en) Common die implementation for low power memory devices
CN105260331A (en) Dual-bus memory controller
US20220137848A1 (en) Storage device and operating method of storage device
US11144410B2 (en) System and method to dynamically increase memory channel robustness at high transfer rates
TW201512843A (en) Memory component capable to communicate at multiple data widths
KR101317760B1 (en) Dynamic random access memory for a semiconductor storage device-based system
WO2023142546A1 (en) Method and device for adjusting interface parameter of storage medium
US11841756B2 (en) Method for information configuration in power mode change for an interconnection protocol, controller and storage device
US11698753B2 (en) Fairshare between multiple SSD submission queues
US20070022226A1 (en) Direct memory access system for iSCSI
US9965183B2 (en) Method for processing data in storage device and storage device
TWI839237B (en) A method for performing dynamic traffic shaping and a device thereof
US20230068365A1 (en) Storage package, storage device and method for operating the storage device
TWI837445B (en) Storage device and performance control method of the same
TW202129465A (en) Storage device and performance control method of the same
CN117369711A (en) Method for controlling a component and related product

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22923345

Country of ref document: EP

Kind code of ref document: A1