WO2022037565A1 - Access method and system for memory, memory access management module, energy efficiency ratio controller and computer-readable storage medium - Google Patents

Access method and system for memory, memory access management module, energy efficiency ratio controller and computer-readable storage medium Download PDF

Info

Publication number
WO2022037565A1
WO2022037565A1 PCT/CN2021/112969 CN2021112969W WO2022037565A1 WO 2022037565 A1 WO2022037565 A1 WO 2022037565A1 CN 2021112969 W CN2021112969 W CN 2021112969W WO 2022037565 A1 WO2022037565 A1 WO 2022037565A1
Authority
WO
WIPO (PCT)
Prior art keywords
memory
access
bandwidth
access request
target
Prior art date
Application number
PCT/CN2021/112969
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 WO2022037565A1 publication Critical patent/WO2022037565A1/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/3275Power saving in memory, e.g. RAM, cache
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/20Cooling means
    • 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
    • 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/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • 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/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • 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

Abstract

An access method and system for a memory, a memory access management module, an energy efficiency ratio controller, and a computer-readable storage medium, which relate to the field of storage technology. The method comprises: acquiring a memory access bandwidth reduction instruction from the energy efficiency ratio controller, wherein the memory access bandwidth reduction instruction is generated when the energy efficiency ratio controller detects that a temperature control parameter of the memory is higher than a corresponding parameter threshold; reducing the current access bandwidth for accessing the memory to obtain a new access bandwidth; and sending an access request to the memory according to the new access bandwidth.

Description

存储器的访问方法及系统、存储器访问管理模块、能效比控制器和计算机可读存储介质Memory access method and system, memory access management module, energy efficiency ratio controller, and computer-readable storage medium
本申请要求在2020年8月21日提交中国专利局、申请号为202010850808.4的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application No. 202010850808.4 filed with the China Patent Office on August 21, 2020, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请实施例涉及存储技术领域。The embodiments of the present application relate to the technical field of storage.
背景技术Background technique
高带宽存储器(High Bandwidth Memory,HBM)是近几年兴起的一种存储器,主要应用于数据中心、人工智能等对带宽有较高需求的领域。HBM一般通过与主逻辑功能芯片共享衬底并封装在一起来降低单板设计的复杂度和成本,通过大量的输入/输出接口(Input/Output,I/O)位宽实现较高的数据读写传输带宽,并通过在竖直方向上堆叠多个存储介质来减小其与印制电路板的贴合面积。High Bandwidth Memory (HBM) is a kind of memory that has emerged in recent years, and is mainly used in data centers, artificial intelligence and other fields that require high bandwidth. HBM generally reduces the complexity and cost of single-board design by sharing the substrate with the main logic function chip and packaging it together, and achieves higher data reading through a large number of input/output interface (Input/Output, I/O) bit widths Write transfer bandwidth, and reduce the contact area with the printed circuit board by stacking multiple storage media in the vertical direction.
发明内容SUMMARY OF THE INVENTION
本申请实施例的第一个方面提供了一种存储器的访问方法,包括:获取来自能效比控制器的存储器访问带宽降低指令,存储器访问带宽降低指令在能效比控制器监测到存储器的温控参数高于相应参数阈值时生成;降低访问存储器的当前访问带宽,得到新访问带宽;以及,根据新访问带宽向存储器发送访问请求。A first aspect of the embodiments of the present application provides a memory access method, including: acquiring a memory access bandwidth reduction instruction from an energy efficiency ratio controller, where the memory access bandwidth reduction instruction monitors a temperature control parameter of the memory by the energy efficiency ratio controller Generated when the threshold is higher than the corresponding parameter; reduce the current access bandwidth of accessing the memory to obtain a new access bandwidth; and send an access request to the memory according to the new access bandwidth.
本申请实施例的第二个方面提供了一种存储器的访问方法,包括:获取存储器的温控参数;响应于温控参数高于相应参数阈值,生成存储器访问带宽降低指令;以及,将存储器访问带宽降低指令发送给存储器访问管理模块,以通过存储器访问带宽降低指令控制存储器访问管理模块降低存储器的访问带宽。A second aspect of the embodiments of the present application provides a method for accessing a memory, including: acquiring a temperature control parameter of the memory; in response to the temperature control parameter being higher than a corresponding parameter threshold, generating a memory access bandwidth reduction instruction; The bandwidth reduction instruction is sent to the memory access management module, so as to control the memory access management module to reduce the memory access bandwidth through the memory access bandwidth reduction instruction.
本申请实施例的第三个方面提供了一种存储器访问管理模块: 包括存储装置、处理装置、存储在存储装置上并可在处理装置上运行的程序以及用于实现处理装置和存储装置之间的连接通信的数据总线,程序被处理装置执行时实现本申请实施例的第一个方面提供的存储器的访问方法。A third aspect of the embodiments of the present application provides a memory access management module: including a storage device, a processing device, a program stored on the storage device and executable on the processing device, and a module for implementing communication between the processing device and the storage device The data bus is connected to the communication, and when the program is executed by the processing device, the memory access method provided by the first aspect of the embodiments of the present application is implemented.
本申请实施例的第四个方面提供了一种能效比控制器:包括存储装置、处理装置、存储在存储装置上并可在处理装置上运行的程序以及用于实现处理装置和存储装置之间的连接通信的数据总线,程序被处理装置执行时实现本申请实施例的第二个方面提供的存储器的访问方法。A fourth aspect of the embodiments of the present application provides an energy efficiency ratio controller, which includes a storage device, a processing device, a program stored on the storage device and executable on the processing device, and an energy efficiency ratio controller for implementing a communication between the processing device and the storage device. The communication data bus is connected, and when the program is executed by the processing device, the memory access method provided by the second aspect of the embodiments of the present application is implemented.
本申请实施例的第五个方面提供了一种存储器的访问系统,包括本申请实施例提供的存储器访问管理模块以及能效比控制器,还包括带宽监测器、温度监测器和功耗监测器;温度监测器,分别与存储器和能效比控制器相连,被设置为按照第一监测周期监测存储器的温度,并将监测到的温度发送给能效比控制器;功耗监测器,分别与存储器和能效比控制器相连,被设置为按照第二监测周期监测存储器的功耗,并将监测到的功耗发送给能效比控制器;带宽监测器,分别与存储器访问管理模块、存储器所连接的存储器控制器以及能效比控制器相连,被设置为按照第三监测周期监测存储器的带宽,并将监测到的带宽发送给能效比控制器;能效比控制器,与控制器访问管理模块相连,被设置为获取存储器的温控参数;响应于温控参数高于相应参数阈值,生成存储器访问带宽降低指令,并将存储器访问带宽降低指令发送给存储器访问管理模块,以通过存储器访问带宽降低指令控制存储器访问管理模块降低存储器的访问带宽;以及,存储器访问管理模块,分别与主机和存储器控制器相连,被设置为获取来自能效比控制器的存储器访问带宽降低指令,存储器访问带宽降低指令在能效比控制器监测到存储器的温控参数高于相应参数阈值时生成;降低访问存储器的当前访问带宽,得到新访问带宽;根据新访问带宽向存储器发送访问请求。A fifth aspect of the embodiments of the present application provides a memory access system, including the memory access management module and the energy efficiency ratio controller provided by the embodiments of the present application, and further including a bandwidth monitor, a temperature monitor, and a power consumption monitor; The temperature monitor is connected to the memory and the energy efficiency ratio controller respectively, and is set to monitor the temperature of the memory according to the first monitoring period, and sends the monitored temperature to the energy efficiency ratio controller; the power consumption monitor is respectively connected to the memory and the energy efficiency ratio controller. It is connected to the energy efficiency ratio controller, and is set to monitor the power consumption of the memory according to the second monitoring period, and sends the monitored power consumption to the energy efficiency ratio controller; the bandwidth monitor is respectively connected to the memory access management module and the memory control module connected to the memory. The device is connected to the energy efficiency ratio controller, and is set to monitor the bandwidth of the memory according to the third monitoring period, and sends the monitored bandwidth to the energy efficiency ratio controller; the energy efficiency ratio controller, connected to the controller access management module, is set to Obtain the temperature control parameter of the memory; in response to the temperature control parameter being higher than the corresponding parameter threshold, generate a memory access bandwidth reduction instruction, and send the memory access bandwidth reduction instruction to the memory access management module, so as to control the memory access management through the memory access bandwidth reduction instruction The module reduces the access bandwidth of the memory; and, the memory access management module is connected to the host and the memory controller, respectively, and is configured to obtain the memory access bandwidth reduction instruction from the energy efficiency ratio controller, and the memory access bandwidth reduction instruction is monitored by the energy efficiency ratio controller. Generated when the temperature control parameter to the memory is higher than the corresponding parameter threshold; reduce the current access bandwidth for accessing the memory to obtain a new access bandwidth; send an access request to the memory according to the new access bandwidth.
本申请实施例的第六个方面还提供了一种计算机可读存储介质,其上存储有一个或者多个程序,一个或者多个程序可被一个或者多个 处理器执行,以实现本申请实施例提供的任一个存储器的访问方法。A sixth aspect of the embodiments of the present application further provides a computer-readable storage medium on which one or more programs are stored, and the one or more programs can be executed by one or more processors to implement the present application. Examples of any of the memory access methods provided.
附图说明Description of drawings
图1为本申请实施例提供的存储器的访问方法的流程图。FIG. 1 is a flowchart of a method for accessing a memory provided by an embodiment of the present application.
图2a为本申请实施例提供的存储器的访问方法的流程图。FIG. 2a is a flowchart of a method for accessing a memory provided by an embodiment of the present application.
图2b为本申请实施例提供的扩展后的地址的示意图。FIG. 2b is a schematic diagram of an expanded address provided by an embodiment of the present application.
图2c为本申请实施例提供的地址排布方式的示意图。FIG. 2c is a schematic diagram of an address arrangement manner provided by an embodiment of the present application.
图2d为本申请实施例提供的历史访问记录的示意图。FIG. 2d is a schematic diagram of a historical access record provided by an embodiment of the present application.
图3为本申请实施例提供的存储器的访问方法的流程图。FIG. 3 is a flowchart of a method for accessing a memory provided by an embodiment of the present application.
图4为本申请实施例提供的存储器的访问装置的结构框图。FIG. 4 is a structural block diagram of an apparatus for accessing a memory provided by an embodiment of the present application.
图5为本申请实施例提供的存储器的访问装置的结构框图。FIG. 5 is a structural block diagram of an apparatus for accessing a memory provided by an embodiment of the present application.
图6为本申请实施例提供的存储器访问管理模块的结构示意图。FIG. 6 is a schematic structural diagram of a memory access management module provided by an embodiment of the present application.
图7为本申请实施例提供的能效比控制器的结构示意图。FIG. 7 is a schematic structural diagram of an energy efficiency ratio controller provided by an embodiment of the present application.
图8为本申请实施例提供的存储器的访问系统的结构示意图。FIG. 8 is a schematic structural diagram of a memory access system provided by an embodiment of the present application.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
HBM是近几年兴起的一种存储器,主要应用于数据中心、人工智能等对带宽有较高需求的领域。但是,与主逻辑功能芯片的合封处理、大量的IO位宽和存储介质的堆叠会使得HBM自身温度增加,导致HBM的读写可靠性的降低。HBM is a type of memory that has emerged in recent years, and is mainly used in data centers, artificial intelligence and other fields that require high bandwidth. However, the co-packaging process with the main logic function chip, a large number of IO bit widths and the stacking of storage media will increase the temperature of the HBM itself, resulting in a decrease in the read and write reliability of the HBM.
有鉴于此,本申请实施例提供一种存储器的访问方法。该方法可以由存储器的访问装置执行,该装置可以由软件和/或硬件实现,该装置可配置于控制芯片中,典型地,可配置于存储器访问管理控制模块中。该方法可以适用于对存储器访问进行管理的场景中。如图1所示,本申请实施例提供的存储器的访问方法包括如下步骤S101-步骤S103。In view of this, an embodiment of the present application provides a method for accessing a memory. The method may be performed by a memory access device, the device may be implemented by software and/or hardware, and the device may be configured in a control chip, typically, a memory access management control module. This method can be applied in scenarios where memory access is managed. As shown in FIG. 1 , the method for accessing a memory provided by an embodiment of the present application includes the following steps S101 to S103.
在步骤S101中,获取来自能效比控制器的存储器访问带宽降低指令,存储器访问带宽降低指令在能效比控制器监测到存储器的温控 参数高于相应参数阈值时生成。In step S101, a memory access bandwidth reduction instruction from the energy efficiency ratio controller is obtained, and the memory access bandwidth reduction instruction is generated when the energy efficiency ratio controller detects that the temperature control parameter of the memory is higher than a corresponding parameter threshold.
在本步骤中,存储器访问带宽降低指令可以理解为用于降低存储器访问管理控制模块所管理的存储器当前的访问带宽的控制指令,其可以由能效比控制器在该存储器的温控参数高于预先设置的参数阈值时生成并发送给存储器访问管理模块。存储器的温控参数可以理解为用于监控存储器的温度的参数,其包括存储器的温度、功耗和带宽中的至少一项。优选地,温控参数可以包括存储器的温度、功耗和带宽,以进一步提高在对存储器的温度进行监控时的准确性,以下以此种情况为例进行说明。In this step, the memory access bandwidth reduction instruction can be understood as a control instruction for reducing the current access bandwidth of the memory managed by the memory access management control module, which can be controlled by the energy efficiency ratio controller when the temperature control parameter of the memory is higher than the preset value. Generated and sent to the memory access management module when the parameter threshold is set. The temperature control parameter of the memory may be understood as a parameter for monitoring the temperature of the memory, which includes at least one of the temperature, power consumption, and bandwidth of the memory. Preferably, the temperature control parameters may include the temperature, power consumption, and bandwidth of the memory, so as to further improve the accuracy of monitoring the temperature of the memory. This situation is used as an example for description below.
能效比控制器在存储器的温度、功耗和带宽三个参数项中存在至少一项大于相应的参数阈值时,生成存储器访问带宽控制器,并将该访问带宽控制器发送给存储器访问管理模块。相应地,存储器访问管理模块接收能效比控制器发送的该存储器访问带宽降低指令。The energy efficiency ratio controller generates a memory access bandwidth controller when at least one of the three parameter items of memory temperature, power consumption and bandwidth is greater than the corresponding parameter threshold, and sends the access bandwidth controller to the memory access management module. Correspondingly, the memory access management module receives the memory access bandwidth reduction instruction sent by the energy efficiency ratio controller.
在步骤S102中,降低访问存储器的当前访问带宽,得到新访问带宽。In step S102, the current access bandwidth for accessing the memory is reduced to obtain a new access bandwidth.
存储器的当前访问带宽可以理解为当前时刻存储器访问管理模块向存储器发送访问请求的带宽,即存储器访问管理模块在单位时间内向与存储器相连的存储器控制器转发主机发送读写命令和写数据的数量。新访问带宽可以理解为当前访问带宽降低后得到的访问带宽。存储器的当前访问带宽的降低方式可以根据需要选取,如可以将存储器的当前访问带宽降低设定带宽步长、将存储器的当前访问带宽降低设定比例或者将存储器的当前访问带宽降低为设定带宽值,等等,本申请实施例不对此进行限制。The current access bandwidth of the memory can be understood as the bandwidth of the memory access management module sending access requests to the memory at the current moment, that is, the memory access management module forwards the number of read and write commands and write data sent by the host to the memory controller connected to the memory in a unit time. The new access bandwidth can be understood as the access bandwidth obtained after the current access bandwidth is reduced. The way to reduce the current access bandwidth of the memory can be selected as required, such as reducing the current access bandwidth of the memory by a set bandwidth step, reducing the current access bandwidth of the memory by a set percentage, or reducing the current access bandwidth of the memory to the set bandwidth. value, etc., which are not limited in this embodiment of the present application.
在一个示例性的实施方式中,存储器访问管理模块可以在每次接收到能效比控制器发送的存储器访问带宽降低指令时,将存储器的当前访问带宽降低预设带宽步长,进而将存储器在当前时刻的带宽降低预设带宽步长,以避免存储器的带宽降低过大造成存储器出现访问速率过慢的情况。优选地,降低存储器的当前访问带宽,可包括:将存储器的当前访问带宽降低预设带宽步长。预设带宽步长可以根据需要设置,如预设带宽补偿可以设置为1MB、2MB或其它带宽值。In an exemplary implementation, the memory access management module may reduce the current access bandwidth of the memory by a preset bandwidth step size each time it receives a memory access bandwidth reduction instruction sent by the energy efficiency ratio controller, and further reduce the memory access bandwidth in the current memory The bandwidth at the moment is reduced by the preset bandwidth step size, so as to avoid the situation that the memory access rate is too slow due to the excessive reduction of the memory bandwidth. Preferably, reducing the current access bandwidth of the memory may include: reducing the current access bandwidth of the memory by a preset bandwidth step size. The preset bandwidth step size can be set as required, for example, the preset bandwidth compensation can be set to 1MB, 2MB or other bandwidth values.
示例性地,存储器访问管理模块在接收到能效比控制器发送的存储器访问带宽降低指令时,获取存储器的当前访问带宽,并计算该当前访问带宽与预设带宽步长的差值,得到新访问带宽。Exemplarily, when receiving the memory access bandwidth reduction instruction sent by the energy efficiency ratio controller, the memory access management module obtains the current access bandwidth of the memory, and calculates the difference between the current access bandwidth and the preset bandwidth step size to obtain a new access bandwidth. bandwidth.
在上述实施方式中,当未再次接收到能效比控制器发送的存储器访问带宽降低指令时,新访问带宽可以为固定值,也可以为非固定值。例如,在计算得到当前访问带宽与预设带宽步长的差值后,可以不考虑单位时间内存储器向主机发送读数据的数量,即不考虑存储器控制器向存储器访问管理模块转发存储器的读数据所占用的响应带宽,直接将该差值作为新访问带宽并根据该新访问带宽向存储器发送访问请求,直至再次接收到能效比控制器发送的存储器访问带宽降低指令;也可以考虑单位时间内存储器向主机发送读数据的数量,即考虑存储器控制器向存储器访问管理模块转发存储器的读数据所占用的响应带宽,在接收到能效比控制器发送的存储器访问带宽降低指令时,直接将存储器的当前访问带宽降低预设带宽步长,得到新访问带宽,以将存储器在当前时刻的带宽(包括访问带宽和响应带宽)降低预设带宽步长,得到新带宽,并在后续根据新访问带宽向存储器发送访问请求的过程中,实时根据存储器的响应带宽的变化对应调整新访问带宽的值,以确保存储器的带宽(即访问带宽与响应带宽之和)一直为该新带宽,直至再次接收到能效比控制器发送的存储器访问带宽降低指令为止。In the above embodiment, when the memory access bandwidth reduction instruction sent by the energy efficiency ratio controller is not received again, the new access bandwidth may be a fixed value or a non-fixed value. For example, after calculating the difference between the current access bandwidth and the preset bandwidth step size, the number of read data sent by the memory to the host per unit time may not be considered, that is, the memory controller forwards the memory read data to the memory access management module regardless of the read data. The occupied response bandwidth is directly used as the new access bandwidth, and an access request is sent to the memory according to the new access bandwidth, until the memory access bandwidth reduction instruction sent by the energy efficiency ratio controller is received again; the memory per unit time can also be considered. The number of read data sent to the host, that is, considering the response bandwidth occupied by the memory controller to forward the read data of the memory to the memory access management module, when receiving the memory access bandwidth reduction instruction sent by the energy efficiency ratio controller, it directly changes the current memory of the memory. The access bandwidth is reduced by the preset bandwidth step size, and a new access bandwidth is obtained, so as to reduce the bandwidth (including the access bandwidth and the response bandwidth) of the memory at the current moment by the preset bandwidth step size to obtain a new bandwidth, and then send the memory to the memory according to the new access bandwidth. In the process of sending an access request, the value of the new access bandwidth is adjusted in real time according to the change of the response bandwidth of the memory to ensure that the bandwidth of the memory (that is, the sum of the access bandwidth and the response bandwidth) is always the new bandwidth until the energy efficiency ratio is received again. until the controller sends a memory access bandwidth reduction command.
在步骤S103中,根据新访问带宽向存储器发送访问请求。In step S103, an access request is sent to the memory according to the new access bandwidth.
示例性地,存储器访问管理模块分别与主机、能效比控制器和存储器控制器相连。存储器控制器与存储器相连。主机源源不断地向存储器访问管理模块发送读写命令和写数据,并接收来自存储器访问管理模块的读数据。相应地,存储器访问管理模块按照该新访问带宽向存储器控制器发送所接收到的读写命令和写数据,即按照该新访问带宽对应的单位时间内发送读写命令和写数据的数量向存储器控制器发送所接收到的读写命令和写数据。从而,存储器控制器将存储器访问管理模块发送的读写命令和写数据转换为存储器可以识别的写命令和写数据和/或读命令,并将其发送给存储器。进而,存储器根 据接收到的可以识别的写命令,将相应的写数据写入存储器内部相应的存储单元,以及,根据接收到的可以识别的读命令从存储器内部相应的存储单元获取对应的读数据,并将其发送给存储器控制器,从而依次经由存储器控制器和存储器访问管理模块将该读数据发送给主机。该访问请求可以包括主机发送的读写命令和写数据。Exemplarily, the memory access management module is connected to the host, the energy efficiency ratio controller and the memory controller, respectively. The memory controller is connected to the memory. The host continuously sends read and write commands and write data to the memory access management module, and receives read data from the memory access management module. Correspondingly, the memory access management module sends the received read and write commands and write data to the memory controller according to the new access bandwidth, that is, the number of read and write commands and write data sent to the memory according to the unit time corresponding to the new access bandwidth. The controller sends the received read and write commands and write data. Thus, the memory controller converts the read and write commands and write data sent by the memory access management module into write commands and write data and/or read commands that the memory can recognize, and sends them to the memory. Further, the memory writes the corresponding write data into the corresponding storage unit in the memory according to the received identifiable write command, and obtains the corresponding read data from the corresponding storage unit in the memory according to the received identifiable read command , and send it to the memory controller, thereby sending the read data to the host via the memory controller and the memory access management module in turn. The access request may include read and write commands and write data sent by the host.
可以理解的是,该新访问带宽可以为存储器在未再次接收到能效比控制器发送的存储器访问带宽降低指令时的最高访问带宽,即当主机向存储器访问管理模块发送访问请求的速率大于或等于该新访问带宽对应的速率时,存储器访问管理模块可以以该新访问带宽向存储器控制器发送访问请求;当主机向存储器访问管理模块发送访问请求的速率小于该新访问带宽对应的速率时,存储器访问管理模块可以以主机发送访问请求的速率所对应的带宽向存储器控制器发送访问请求,即存储器访问管理模块可以以一个小于该新访问带宽的访问带宽向存储器发送访问请求。It can be understood that the new access bandwidth can be the highest access bandwidth when the memory does not receive the memory access bandwidth reduction instruction sent by the energy efficiency ratio controller again, that is, when the host sends an access request to the memory access management module at a rate greater than or equal to When the rate corresponding to the new access bandwidth, the memory access management module may send an access request to the memory controller with the new access bandwidth; when the rate at which the host sends an access request to the memory access management module is less than the rate corresponding to the new access bandwidth, the memory access The access management module can send the access request to the memory controller with a bandwidth corresponding to the rate at which the host sends the access request, that is, the memory access management module can send the access request to the memory with an access bandwidth smaller than the new access bandwidth.
在一个优选实施方式中,访问请求为已授权访问请求,在根据新访问带宽向存储器发送访问请求之前,该方法还可包括:按照预设授权规则对接收到的原始访问请求进行授权,得到已授权访问请求。In a preferred embodiment, the access request is an authorized access request. Before sending the access request to the storage according to the new access bandwidth, the method may further include: authorizing the received original access request according to a preset authorization rule, and obtaining the authorized access request. Authorize access requests.
由于存储器的激活-预充电机制使得存储器在同一个bank内访问存储器时,每次更换所访问的行均需要进行一次激活-预充电操作,因此,在上述实施方式中,存储器访问管理模块还可以按照预设授权规则对接收到的原始访问请求进行授权,例如可以优先对访问相应bank已进行过激活-预充电的行地址进行授权、优先对存储器访问管理模块中存在且达到预设数量的访问同一行地址的原始访问请求进行授权和/或优先对不存在访问记录的原始访问请求进行授权等,以通过授权的方式改变各原始访问请求发送到存储器的顺序,使得访问同一行地址的原始访问记录按照尽量短的时间间隔发送给存储器进行访问,减少在存储器的访问过程中需要进行激活-预充电的次数,从而降低存储器频繁进行激活-预充电所产生的功耗和发热,在避免存储器温度过高的前提下,进一步提高存储器的能效比。相应地,在每一个单位时间内,存储器访问管理模块可以根据各已授权访问请求 的授权顺序,选取与新访问带宽对应数量的访问请求发送给存储器控制器,以通过该存储器控制器将该访问请求发送给存储器。Because the activation-precharge mechanism of the memory makes the memory access the memory in the same bank, an activation-precharge operation needs to be performed every time the accessed row is changed. Therefore, in the above-mentioned embodiment, the memory access management module can also Authorize the received original access request according to the preset authorization rules. For example, you can give priority to the row address that has been activated-precharged to access the corresponding bank, and give priority to the access that exists in the memory access management module and reaches a preset number. Authorize the original access requests of the same row address and/or give priority to the original access requests without access records, etc., so as to change the order in which the original access requests are sent to the memory by means of authorization, so that the original access requests accessing the same row address The records are sent to the memory for access at the shortest time interval as possible, reducing the number of activation-precharging needs to be performed during the memory access process, thereby reducing the power consumption and heat generated by frequent activation-precharging of the memory, and avoiding the memory temperature. Under the premise of being too high, the energy efficiency ratio of the memory is further improved. Correspondingly, in each unit time, the memory access management module can select the number of access requests corresponding to the new access bandwidth and send them to the memory controller according to the authorization sequence of each authorized access request, so that the access request can be accessed by the memory controller. The request is sent to the memory.
根据本申请实施例提供的存储器的访问方法,获取能效比控制器在监测到存储器的温控参数高于相应参数阈值时生成的存储器访问带宽降低指令,降低访问存储器的当前访问带宽,得到新访问带宽,并按照该新访问带宽向存储器发送访问请求,从而能够避免温度器出现温度过高的情况,并可以使得存储器以较小的功耗运行所需的带宽,提高存储器的能效比。According to the memory access method provided by the embodiment of the present application, the memory access bandwidth reduction instruction generated by the energy efficiency ratio controller when the temperature control parameter of the memory is monitored is higher than the corresponding parameter threshold is obtained, the current access bandwidth for accessing the memory is reduced, and a new access bandwidth is obtained. bandwidth, and send an access request to the memory according to the new access bandwidth, so that the temperature of the thermometer can be prevented from being too high, and the memory can run with the required bandwidth with less power consumption, and the energy efficiency ratio of the memory can be improved.
图2a为本申请实施例提供的存储器的访问方法的另一种流程图,其对图1所示的存储器的访问方法进行优化。如图2所示,该存储器的访问方法可包括步骤S201-步骤S211。FIG. 2a is another flowchart of a memory access method provided by an embodiment of the present application, which optimizes the memory access method shown in FIG. 1 . As shown in FIG. 2 , the method for accessing the memory may include steps S201 to S211.
在步骤S201中,当接收到主机发送的原始访问请求时,将原始访问请求中携带的原始访问地址映射为目标访问地址,执行步骤S202或步骤S203,目标访问地址包括目标行地址、目标列地址、目标通道号、目标伪通道号和目标bank地址。In step S201, when the original access request sent by the host is received, the original access address carried in the original access request is mapped to the target access address, and step S202 or step S203 is performed, and the target access address includes the target row address and target column address. , target channel number, target pseudo-channel number and target bank address.
在本步骤中,原始访问请求可以理解为主机发送的访问请求,该原始访问请求为未授权的访问请求。原始访问请求的目标bank地址可以理解为传输该原始访问请求的物理bank的bank地址。存储器可以设置有多个通道,每个通道中可以设置有多个(如2个)伪通道,每个伪通道中可以设置有多个bank。在同一时间,一个bank可用于传输一个访问请求。从而,通过原始访问请求的目标通道号、目标伪通道号和目标bank地址可以唯一定位到传输该原始访问请求的bank。In this step, the original access request can be understood as an access request sent by the host, and the original access request is an unauthorized access request. The target bank address of the original access request can be understood as the bank address of the physical bank that transmits the original access request. The memory can be set with multiple channels, each channel can be set with multiple (eg 2) pseudo-channels, and each pseudo-channel can be set with multiple banks. At the same time, a bank can be used to transmit an access request. Therefore, through the target channel number, target pseudo channel number and target bank address of the original access request, the bank that transmits the original access request can be uniquely located.
参考图2b,相关技术中仅采用行地址、列地址和bank地址对进行寻址。在本申请实施例中,存储器访问管理模块进一步引入通道号和伪通道号用于寻址,将存储器的各伪通道独立的存储空间连接起来,整合为一个完整的、连续的存储空间。如当存储器为HBM时,可以将HBM的16个伪通道独立的存储空间链接起来,整合为一个完整的连续的存储空间。从而,能够扩展存储器地址的范围,降低一个伪通道内的同一bank地址频繁地被切换访问存储器中的不同数据行的几率,从而降低激活-预充电发生的几率。参考图2c,存储器访问管理模块 可以将存储器的存储空间按照行地址进行分组,每组组内通过通道号、伪通道号、bank地址和列地址进行寻址,不同组间通过行地址进行区分。Referring to FIG. 2b, only row address, column address and bank address pair are used for addressing in the related art. In this embodiment of the present application, the memory access management module further introduces a channel number and a pseudo-channel number for addressing, and connects the independent storage spaces of the pseudo-channels of the memory to form a complete and continuous storage space. For example, when the memory is HBM, the independent storage spaces of 16 pseudo-channels of HBM can be linked together to form a complete continuous storage space. Therefore, the range of memory addresses can be expanded, and the probability that the same bank address in a dummy channel is frequently switched to access different data rows in the memory can be reduced, thereby reducing the probability of activation-precharge occurring. Referring to Figure 2c, the memory access management module can group the storage space of the memory according to row addresses. Each group is addressed by channel number, pseudo channel number, bank address and column address, and different groups are distinguished by row address.
将原始访问请求中携带的历史访问地址映射为目标访问地址的映射方式可以根据需要选取,只需确保存储器的各bank都能够被用于传输访问请求即可,本申请实施例不对此进行限制。The mapping method for mapping the historical access address carried in the original access request to the target access address can be selected as needed, as long as each bank of the memory can be used to transmit the access request, which is not limited in this embodiment of the present application.
在一个优选的实施方式中,假设存储器具有2 j个通道、2 k个伪通道、2 m-2 l个bank且存储器的存储空间中存在2 l-k列,原始访问地址共有n比特,j、k、l、m和n均为正数,且j≥1,k≥j+1,l≥k+1,m≥l+1,n≥m。可以将所接收到的原始访问请求中携带的原始访问地址中的第1~j比特映射为目标通道号,将该原始访问地址的第j+1~k比特映射为存储器的目标伪通道号,将该原始访问地址中的第k+1~l比特映射为目标列地址;将该原始访问地址中的第l+1~m比特映射为目标bank地址,并将该原始访问地址中的第m+1~n比特映射为目标行地址,以将连续的原始访问地址映射到不同伪通道上,稀释连续对同一个伪通道内的存储空间的访问,从而进一步减少存储器每一个伪通道内的同一个bank频繁换行访问的概率,以进一步减轻激活-预充电机制的影响,提高存储器的能效比,并降低存储器所产生的热量。 In a preferred embodiment, it is assumed that the memory has 2j channels, 2k pseudo-channels, 2m -21 banks, and there are 2lk columns in the storage space of the memory , the original access address has n bits in total, j, k , l, m and n are all positive numbers, and j≥1, k≥j+1, l≥k+1, m≥l+1, n≥m. The 1st to jth bits in the original access address carried in the received original access request can be mapped to the target channel number, and the j+1st to kth bits of the original access address are mapped to the target pseudo channel number of the memory, Map the k+1 to lth bits in the original access address to the target column address; map the l+1 to mth bits in the original access address to the target bank address, and map the mth bit in the original access address to the target bank address The +1~n bits are mapped to the target row address, so as to map the consecutive original access addresses to different pseudo-channels, diluting the continuous access to the storage space in the same pseudo-channel, thereby further reducing the synchronization in each pseudo-channel of the memory. The probability of frequent line feed access of a bank to further mitigate the effects of the activation-precharge mechanism, improve the energy efficiency ratio of the memory, and reduce the heat generated by the memory.
以存储器为HBM为例,在进行地址映射时,存储器访问管理模块可以将所接收到的原始访问请求中携带的原始访问地址中的第1-3比特映射为目标通道号,将该原始访问地址中的第4比特映射为目标伪通道号,将该原始访问地址中的第5-9比特映射为目标列地址,将该原始访问地址中的第10-13比特映射为目标bank地址,并将该原始方位地址中剩余未被映射的地址映射为目标行地址。Taking the memory as HBM as an example, when performing address mapping, the memory access management module can map the 1st to 3rd bits in the original access address carried in the received original access request to the target channel number, and the original access address can be mapped to the target channel number. The 4th bit in is mapped to the target pseudo-channel number, the 5th-9th bits in the original access address are mapped to the target column address, the 10th-13th bits in the original access address are mapped to the target bank address, and the The remaining unmapped addresses in the original orientation address are mapped as target row addresses.
需要说明的是,上述优选实施方式并不对目标通道号、目标伪通道号和目标列地址的映射顺序(即目标通道号、目标伪通道和目标列地址在原始访问地址中所对应的比特在原原始访问地址中的顺序)进行限制,只需保证目标bank地址在原始访问地址中所对应的比特位于该原始访问地址的最后即可。It should be noted that the above preferred embodiment does not map the order of the target channel number, target pseudo channel number and target column address (that is, the bits corresponding to the target channel number, target pseudo channel and target column address in the original access address are in the original original address. The order in the access address) is restricted, and it is only necessary to ensure that the bit corresponding to the target bank address in the original access address is located at the end of the original access address.
在步骤S202中,如果存储器的历史访问记录中存在第一历史访 问请求,则对原始访问请求进行授权,得到已授权访问请求,执行步骤S208,第一历史访问请求的历史行地址与目标行地址相同,历史访问记录被设置为记录各bank最后一次传输的历史访问请求。In step S202, if there is a first historical access request in the historical access record of the memory, the original access request is authorized to obtain an authorized access request, and step S208 is executed, the historical row address of the first historical access request and the target row address Similarly, the historical access record is set to record the historical access request of the last transfer of each bank.
在本步骤中,历史行地址可以理解为历史访问请求所请求访问的行地址。历史访问记录中以通道号、伪通道号和bank地址为一个索引,行地址为索引所对应的值,对应记录有各通道号、伪通道号和bank地址以及相应通道号、伪通道号和bank地址所定位到的bank最后一次传输的历史访问请求的行地址,如图2d所示,历史访问记录中记录的历史访问请求的最大数量可以与存储器所设置的bank的数量相等。In this step, the historical row address can be understood as the row address requested by the historical access request. In the historical access record, the channel number, pseudo-channel number and bank address are used as an index, and the row address is the value corresponding to the index. Correspondingly, each channel number, pseudo-channel number and bank address, as well as the corresponding channel number, pseudo-channel number and bank are recorded. The row address of the historical access request of the last transfer of the bank to which the address is located, as shown in Figure 2d, the maximum number of historical access requests recorded in the historical access record can be equal to the number of banks set in the memory.
由于历史访问记录记录的为存储器各bank在当前时刻之前最后一次传输的历史访问请求,因此,如果存储器的历史访问记录中存在历史行地址与主机发送的原始访问记录的目标行地址相同的第一历史访问请求时,则说明当前时刻存储器中存在访问该目标行地址对应的目标行且已经对该目标行进行了激活-预充电的bank,此时再次访问目标行地址,可能无需对目标行进行激活-预充电处理。因此,当历史访问记录中存在历史行地址与主机发送的原始访问请求的目标行地址相同的第一历史访问请求时,可以优先对该历史访问请求进行授权,以避免需要对目标行地址再次进行激活-预充电的情况,降低存储器访问过程中的功耗和温度。Since the historical access record records the historical access request of the last transmission of each bank in the memory before the current moment, if the historical access record of the memory has the same historical row address as the target row address of the original access record sent by the host, the first When a historical access request is made, it means that there is a bank that accesses the target row corresponding to the target row address at the current moment in the memory, and the target row has been activated-precharged. At this time, the target row address is accessed again, and it may not be necessary to perform the operation on the target row. Active-precharge processing. Therefore, when there is a first historical access request whose historical row address is the same as the target row address of the original access request sent by the host in the historical access record, the historical access request can be authorized preferentially, so as to avoid the need to perform the target row address again. Active-precharge condition reduces power consumption and temperature during memory accesses.
示例性地,存储器访问管理模块在将所接收到的原始访问请求中携带的原始访问地址映射为目标访问地址后,查询历史访问记录中是否存在与该目标访问地址中的目标行地址相同的历史行地址,若是,则不等待预设时间长度,直接将该原始访问请求授权为已授权访问请求。Exemplarily, after mapping the original access address carried in the received original access request to the target access address, the memory access management module inquires whether there is a history in the historical access record that is the same as the target row address in the target access address. If yes, the original access request is directly authorized as an authorized access request without waiting for the preset time length.
在步骤S203中,如果存储器的历史访问记录中不存在第一历史访问请求,则判断历史访问记录中是否存在第二历史访问请求,若否,则执行步骤S204;若是,则执行步骤S205,第二历史访问请求的历史通道号与目标通道号相同、第二历史访问请求的历史伪通道号与目标伪通道号相同且第二历史访问请求的历史bank地址与目标bank 地址相同的。In step S203, if there is no first historical access request in the historical access record of the memory, it is judged whether there is a second historical access request in the historical access record, if not, step S204 is performed; The historical channel number of the second historical access request is the same as the target channel number, the historical pseudo channel number of the second historical access request is the same as the target pseudo channel number, and the historical bank address of the second historical access request is the same as the target bank address.
当历史访问记录中不存在历史访问地址与所接收到的原始访问请求的目标访问地址相同的第一历史访问请求时,可以进一步判断历史访问记录中是否存在历史通道号、历史伪通道号和历史bank地址分别与该原始访问请求的目标通道号、目标伪通道号和目标bank地址相同的第二历史访问请求,即判断历史访问记录中是否存在采用该原始访问请求所对应bank传输的历史访问请求。当历史访问记录中存在第二历史访问请求时,由于该第二历史访问请求的历史行地址与该原始访问请求的目标行地址不相同,此时采用该bank传输该原始访问请求时该bank需要对该目标行地址进行激活-预充电处理,因此,此时可以暂不对该原始访问请求进行授权,执行步骤S204;当历史访问记录不存在第二历史访问请求时,说明历史访问记录中不存在该原始访问请求所对应bank(即传输该原始访问请求的bank)的历史访问请求,该bank为首次访问的bank,此时,无论是直接对该原始访问请求进行授权还是等待预设时间长度后再对该原始访问请求进行授权,该bank在传输该原始访问请求时都需要对该原始访问请求所访问的目标行(即目标行地址所对应的数据行)进行激活-预充电,因此,此时可以不进行等待,直接将该原始访问请求授权为已授权访问请求,以确保不会出现阻塞的情况。When there is no first historical access request whose historical access address is the same as the target access address of the received original access request in the historical access record, it can be further judged whether there is a historical channel number, historical pseudo channel number and historical access record in the historical access record A second historical access request whose bank address is the same as the target channel number, target pseudo-channel number and target bank address of the original access request respectively, that is, it is judged whether there is a historical access request transmitted by the bank corresponding to the original access request in the historical access record. . When there is a second historical access request in the historical access record, since the historical row address of the second historical access request is different from the target row address of the original access request, the bank needs to use the bank to transmit the original access request. The target row address is activated-precharged. Therefore, the original access request can be temporarily not authorized at this time, and step S204 is executed; when the second historical access request does not exist in the historical access record, it means that the historical access record does not exist in the historical access record. The historical access request of the bank corresponding to the original access request (that is, the bank that transmitted the original access request), the bank is the bank accessed for the first time, at this time, whether to directly authorize the original access request or wait for a preset time length Then authorize the original access request. When transmitting the original access request, the bank needs to activate-precharge the target row accessed by the original access request (that is, the data row corresponding to the address of the target row). Therefore, this You can directly authorize the original access request as an authorized access request without waiting, to ensure that there will be no blocking.
示例性地,当存储器的历史访问记录不存在历史行地址与该原始访问请求的目标行地址相同的第一历史访问请求时,存储器访问管理模块判断历史访问记录中是否存在历史通道号与该原始访问请求的目标通道号相同的第三历史访问请求,若历史访问记录中不存在第三历史访问请求,则确定历史访问记录中不存在第二历史访问请求,并执行步骤S204;若历史访问记录中存在第三历史访问请求,则继续判断该第三历史访问请求中是否存在历史伪通道号与该原始访问请求的目标伪通道号相同的第四历史访问请求,若历史访问记录中不存在第四历史访问请求,则确定历史访问记录中不存在第二历史访问请求,并执行步骤S204;若历史访问记录中存在第四历史访问请求,则进一步判断该第四历史访问请求中是否存在历史bank地址与该原 始访问记请求的目标bank地址相同的第二历史访问请求,若是,则执行步骤S205;若否,则执行步骤S204。Exemplarily, when the historical access record of the memory does not have the first historical access request with the same historical row address as the target row address of the original access request, the memory access management module determines whether there is a historical access record in the historical access record with the same historical channel number as the original access request. For the third historical access request with the same target channel number of the access request, if the third historical access request does not exist in the historical access record, it is determined that there is no second historical access request in the historical access record, and step S204 is executed; if the historical access record does not exist in the third historical access request There is a third historical access request in the third historical access request, then continue to judge whether there is a fourth historical access request with the same historical pseudo-channel number and the target pseudo-channel number of the original access request in the third historical access request. Four historical access requests, it is determined that there is no second historical access request in the historical access record, and step S204 is executed; if there is a fourth historical access request in the historical access record, it is further judged whether there is a historical bank in the fourth historical access request For the second historical access request whose address is the same as the target bank address of the original access record request, if yes, go to step S205; if not, go to step S204.
在步骤S204中,对原始访问请求进行授权,得到已授权访问请求,执行步骤S208。In step S204, the original access request is authorized to obtain an authorized access request, and step S208 is performed.
对未授权访问请求(包括该原始访问请求)进行授权的方法可以根据需要选取,例如,可以通过添加授权标识的方式将未授权访问请求授权为已授权访问请求;也可以通过将未授权访问请求添加至已授权访问请求队列的末尾的方式将未授权访问请求授权为已授权访问请求。相应地,存储器访问管理模块在向存储器控制器发送已授权访问请求时,可以按照由已授权访问请求队列中各已授权访问请求添加到已授权访问请求队列中的顺序,从已授权访问请求队列中获取已授权访问请求进行发送,并在发送完成后,将已经发送给存储器控制器的已授权发送请求移出已授权访问请求队列。The method of authorizing the unauthorized access request (including the original access request) can be selected as needed. For example, the unauthorized access request can be authorized as an authorized access request by adding an authorization identifier; Adding to the end of the authorized access request queue authorizes unauthorized access requests as authorized access requests. Correspondingly, when the memory access management module sends the authorized access request to the memory controller, it can select from the authorized access request queue according to the order in which each authorized access request in the authorized access request queue is added to the authorized access request queue. The authorized access request is obtained from the server and sent, and after the sending is completed, the authorized send request that has been sent to the memory controller is removed from the authorized access request queue.
在步骤S205中,判断本地是否存在数量大于或等于预设数量阈值的目标未授权访问请求,若是,执行步骤S206;若否,则执行步骤S207,目标未授权访问请求的行地址与目标行地址相同。In step S205, it is judged whether there are target unauthorized access requests with a quantity greater than or equal to the preset number threshold, if so, go to step S206; if not, go to step S207, the row address of the target unauthorized access request and the target row address same.
在步骤S206中,按照设定顺序依次对各目标未授权访问请求进行授权,得到已授权访问请求,执行步骤S208。In step S206, each target unauthorized access request is authorized in sequence according to the set order, and an authorized access request is obtained, and step S208 is executed.
当存储器访问管理模块中存在预设数量的、目标行地址与该原始访问请求的目标行地址相同的未授权访问请求,若是,则可以将该原始访问请求和存储器访问管理模块中目标访问地址与该原始访问请求的目标访问地址相同的未授权访问请求均确定为目标访问请求,并直接依次对各目标访问请求进行授权,以提高同一bank进行一次激活-预充电后能够发送多个目标行地址相同的已授权访问请求的概率,从而进一步降低在对存储器进行访问的过程中需要进行的激活-预充电的次数。预设数量阈值可以根据需要设置,如预设数量阈值可以设置为大于或等于12的整数;授权顺序可以根据需要设置,如可以随机或按照各目标访问请求的接收时间由早到晚的顺序对各目标访问请求进行授权,本申请实施例不对此进行限制。When there is a preset number of unauthorized access requests in the memory access management module, the target row address is the same as the target row address of the original access request, if so, the original access request and the target access address in the memory access management module can be the same as the Unauthorized access requests with the same target access address of the original access request are determined as target access requests, and each target access request is directly authorized in turn, so as to improve the ability to activate the same bank once. After precharging, multiple target bank addresses can be sent. The same probability of authorized access requests, thereby further reducing the number of activation-precharges that need to be performed during access to the memory. The preset number threshold can be set as required, for example, the preset number threshold can be set to an integer greater than or equal to 12; the authorization order can be set as required, such as random or in the order of the receiving time of each target access request from early to late. Each target access request is authorized, which is not limited in this embodiment of the present application.
在步骤S207中,经过预设时间长度后,对原始访问请求进行授 权,得到已授权访问请求。In step S207, after a preset time period, the original access request is authorized to obtain an authorized access request.
示例性地,存储器访问管理模块在向存储器发送已授权访问请求的同时,可以实时的判断存储访问管理模块已经接收到的未授权访问请求(包括该原始访问请求)中最早接收到的未授权访问请求距离其接收时间是否已经经过了预设时间长度,即判断该最早接收到的未授权访问请求是否已经在存储访问管理模块中停留了预设时间长度,若是,则将该最早接收到的未授权访问请求授权为已授权访问请求;若否,则不对该最早接收到的未授权访问请求进行授权,直至其在存储器访问管理模块中停留了预设时间长度或该最早接收到的未授权访问请求被确定为目标未授权访问请求为止。Exemplarily, when the memory access management module sends an authorized access request to the memory, it can judge in real time the earliest received unauthorized access among the unauthorized access requests (including the original access request) that the storage access management module has received. Whether the request has passed the preset time length from its receiving time, that is, it is judged whether the earliest received unauthorized access request has stayed in the storage access management module for a preset time length; The authorized access request is authorized as an authorized access request; if not, the earliest received unauthorized access request will not be authorized until it stays in the memory access management module for a preset length of time or the earliest received unauthorized access request until the request is identified as a target unauthorized access request.
在步骤S208中,基于已授权访问的访问地址更新历史访问记录,执行步骤S201或步骤S209。In step S208, the historical access record is updated based on the authorized access address, and step S201 or step S209 is performed.
示例性地,当存储器访问管理模块将任一未授权访问请求授权为已授权访问请求后或者当存储器访问管理模块将任一已授权访问请求发送给存储器控制器后,如果历史访问记录中不存在历史通道号、历史伪通道号和历史bank地址分别与该已授权访问请求的目标通道号、目标伪通道号和目标bank地址相同的历史访问请求,则可以在历史访问记录中新建一个记录条目,在该记录条目中以该已授权访问记录的目标通道号、目标伪通道号和目标bank地址为索引,以该已授权访问记录的目标行地址为索引的值,对应记录该目标通道号、该目标伪通道号、该目标bank地址和该目标行地址。Exemplarily, after the memory access management module authorizes any unauthorized access request as an authorized access request or after the memory access management module sends any authorized access request to the memory controller, if the historical access record does not exist If the historical channel number, historical pseudo channel number and historical bank address are the same as the target channel number, target pseudo channel number and target bank address of the authorized access request, you can create a new record entry in the historical access record. In the record entry, the target channel number, target pseudo-channel number and target bank address of the authorized access record are used as the index, and the target row address of the authorized access record is used as the index value, and the target channel number, the target channel number and the target bank address are correspondingly recorded. The target pseudo-channel number, the target bank address, and the target row address.
在步骤S209中,获取来自能效比控制器的存储器访问带宽降低指令,存储器访问带宽降低指令在能效比控制器监测到存储器的温控参数高于相应参数阈值时生成。In step S209, a memory access bandwidth reduction instruction from the energy efficiency ratio controller is obtained, and the memory access bandwidth reduction instruction is generated when the energy efficiency ratio controller detects that the temperature control parameter of the memory is higher than a corresponding parameter threshold.
在步骤S210中,降低访问存储器的当前访问带宽,得到新访问带宽。In step S210, the current access bandwidth for accessing the memory is reduced to obtain a new access bandwidth.
在步骤S211中,根据新访问带宽向存储器发送访问请求,访问请求为已授权访问请求。In step S211, an access request is sent to the memory according to the new access bandwidth, where the access request is an authorized access request.
根据本申请实施例提供的存储器的访问方法,通过扩展存储器的地址访问,并通过优先对在历史访问记录中存在历史行地址与其目 标行地址相同的历史访问请求的原始访问请求授权访问,以及优先对在存储器访问管理模块本地存在数量大于或等于预设数量阈值的目标行地址与其目标行地址相同的目标未授权访问请求和原始访问请求优先授权访问,能够进一步降低在访问过程中需要对同一bank反复进行激活-预充电的概率,从而降低数据访问过程的功耗和存储器所产生的热量,进而进一步降低存储器的温度并提高存储器的能效比。According to the memory access method provided by the embodiment of the present application, the access is performed by extending the address of the memory, and by preferentially authorizing the access to the original access request of the historical access request with the same historical row address and its target row address in the historical access record, and preferentially The target unauthorized access request and the original access request with the same target row address and the target row address whose number is greater than or equal to the preset number threshold locally in the memory access management module are preferentially authorized to access, which can further reduce the need for the same bank during the access process. The probability of repeated activation-precharging reduces the power consumption of the data access process and the heat generated by the memory, thereby further reducing the temperature of the memory and improving the energy efficiency ratio of the memory.
图3为本申请实施例提供的存储器的访问方法的另一种流程图。该方法可以由存储器的访问装置执行,该装置可以由软件和/或硬件实现,该装置可配置于控制器中,典型地,可配置于能效比控制器中。该方法可以适用于对存储器访问进行管理的场景中。如图3所示,该存储器的访问方法包括如下步骤S301和步骤S303。FIG. 3 is another flowchart of a method for accessing a memory provided by an embodiment of the present application. The method may be performed by a memory access device, which may be implemented in software and/or hardware, and which may be configured in a controller, typically an energy efficiency ratio controller. This method can be applied in scenarios where memory access is managed. As shown in FIG. 3, the access method of the memory includes the following steps S301 and S303.
在步骤S301中,获取存储器的温控参数。In step S301, the temperature control parameters of the memory are acquired.
在本步骤中,存储器为能效比控制器对其温度进行管理的控制器,其可以为任意一个需要对其温度进行管理的控制器。考虑到HBM更易出现温度过高的情况,该存储器优选可以为高带宽存储器(即HBM),以进一步提高能效比控制器对存储器的功耗进行管理时的管理效果。存储器的温控参数可以理解为与存储器的温度相关的参数,如会引起存储器的温度发生变化的参数和/或能表征存储器的温度变化的参数,等等。举例而言,存储器的温控参数可以包括存储器的温度、功耗和带宽中的至少一项。In this step, the memory is a controller whose temperature is managed by the energy efficiency ratio controller, which can be any controller whose temperature needs to be managed. Considering that the HBM is more prone to overheating, the memory may preferably be a high-bandwidth memory (ie, HBM), so as to further improve the energy efficiency ratio when the controller manages the power consumption of the memory. The temperature control parameter of the memory can be understood as a parameter related to the temperature of the memory, such as a parameter that causes the temperature of the memory to change and/or a parameter that can characterize the temperature change of the memory, and the like. For example, the temperature control parameter of the memory may include at least one of temperature, power consumption, and bandwidth of the memory.
由于存储器内部的温度传感器检测到的传感器内部的温度数据能够最直观准确地表征存储器的温度变化,因此,能效比控制器可以直接与存储器相连,获取存储器内部的温度传感器检测到的存储器内部的温度数据,作为存储器的温控参数,并基于该温控参数对存储器的温度进行控制。Since the temperature data inside the sensor detected by the temperature sensor inside the memory can most intuitively and accurately represent the temperature change of the memory, the energy efficiency ratio controller can be directly connected to the memory to obtain the temperature inside the memory detected by the temperature sensor inside the memory. The data is used as the temperature control parameter of the memory, and the temperature of the memory is controlled based on the temperature control parameter.
然而,由于获取存储器内部的温度传感器监测到的存储器的温度存在延时,而1s的延时可能会造成10度以上的误差,单纯依赖存储器内设置的温度传感器所检测到的温度数据对存储器的温度进行管理,会无可避免的出现因温度数据传递延时而导致的对存储器温度的控制滞后的情况。此外,考虑到传感器的功耗和散热会影响到传感 器的温度,而传感器的功耗会受到且不仅受到存储器的带宽的影响。因此,在一个优选的实施方式中,能效比控制器可以通过位于存储器外部的温度监测器监测存储器的温度,以减少获取存储器温度时的延时,提高存储器温度控制的及时性;并可以进一步通过带宽监测器监测存储器的带宽和/或通过功耗监测器监测存储器的功耗,以提高存储器温度控制结果的准确性。存储器的温控参数优选可以包括存储器的温度、功耗和带宽三个参数项中的至少一项。However, there is a delay in obtaining the temperature of the memory monitored by the temperature sensor inside the memory, and a delay of 1s may cause an error of more than 10 degrees. For temperature management, it is inevitable that the control of the memory temperature will lag due to the temperature data transmission delay. In addition, consider that the power consumption and heat dissipation of the sensor will affect the temperature of the sensor, and the power consumption of the sensor will be affected by and not only by the bandwidth of the memory. Therefore, in a preferred embodiment, the energy efficiency ratio controller can monitor the temperature of the memory through a temperature monitor located outside the memory, so as to reduce the delay in acquiring the memory temperature and improve the timeliness of the temperature control of the memory; The bandwidth monitor monitors the bandwidth of the memory and/or monitors the power consumption of the memory through the power consumption monitor, so as to improve the accuracy of the memory temperature control result. The temperature control parameters of the memory may preferably include at least one of three parameter items of temperature, power consumption and bandwidth of the memory.
在上述优选实施方式中,以温控参数包括温度、功耗和带宽举例而言,温度监测器与存储器的IEEE1500接口连接,功耗监测器与存储器的电能输入端连接或与存储器的电源连接,带宽监测器接入存储器访问管理模块和存储器之间的路径,能效比控制器分别与温度监测器、功耗监测器、带宽监测器和存储器访问管理模块相连。从而,温度监测器按照用户预先设置的第一监测周期周期性地监测存储器的温度,并将其发送给能效比控制器;功耗监测器按照用户预先设置的第二监测周期周期性的监测存储器的功耗,并将其发送给能效比控制器;带宽监测器按照第三监测周期周期性的监测存储器访问管理模块与存储器控制器之间路径上的写命令和读写数据的数量,从而得出在该监测周期内的命令速率和数据速率,进而得到存储器的带宽,并将其发送给能效比控制器。相应地,能效比控制器可以接收温度监测器发送的存储器的温度、功耗监测器发送的存储器的功耗以及带宽监测器发送的存储器的带宽,以得到存储器的温控参数。In the above preferred embodiment, taking the temperature control parameters including temperature, power consumption and bandwidth as an example, the temperature monitor is connected to the IEEE1500 interface of the memory, the power consumption monitor is connected to the power input end of the memory or is connected to the power supply of the memory, The bandwidth monitor is connected to the path between the memory access management module and the memory, and the energy efficiency ratio controller is respectively connected to the temperature monitor, the power consumption monitor, the bandwidth monitor and the memory access management module. Therefore, the temperature monitor periodically monitors the temperature of the memory according to the first monitoring period preset by the user, and sends it to the energy efficiency ratio controller; the power consumption monitor periodically monitors the memory according to the second monitoring period preset by the user. and send it to the energy efficiency ratio controller; the bandwidth monitor periodically monitors the number of write commands and read and write data on the path between the memory access management module and the memory controller according to the third monitoring cycle, so as to obtain The command rate and data rate in this monitoring period are obtained, and then the bandwidth of the memory is obtained and sent to the energy efficiency ratio controller. Correspondingly, the energy efficiency ratio controller may receive the temperature of the memory sent by the temperature monitor, the power consumption of the memory sent by the power consumption monitor, and the bandwidth of the memory sent by the bandwidth monitor to obtain temperature control parameters of the memory.
在步骤S302中,如果温控参数高于相应参数阈值,则生成存储器访问带宽降低指令,并将存储器访问带宽降低指令发送给存储器访问管理模块,以通过存储器访问带宽降低指令控制存储器访问管理模块降低存储器的访问带宽。In step S302, if the temperature control parameter is higher than the corresponding parameter threshold, a memory access bandwidth reduction instruction is generated, and the memory access bandwidth reduction instruction is sent to the memory access management module, so as to control the memory access management module to reduce the memory access bandwidth reduction instruction through the memory access bandwidth reduction instruction memory access bandwidth.
在本步骤中,当温控参数高于相应参数阈值时,意味着当前存储器的温度可能过高,需要降低存储器的温度。因此,当存储器的温控参数高于相应的参数阈值时,可以生成存储器访问带宽降低指令,并将该存储器访问带宽降低指令发送给存储器访问管理模块,从而通过存储器访问管理模块根据该存储器访问带宽降低指令降低存储器 的访问带宽,达到降低存储器的带宽的目的,以降低存储器的功耗,进而降低存储器的温度,并且,可以使得存储器以较小的功耗运行所需的带宽,提高存储器的能效比。In this step, when the temperature control parameter is higher than the corresponding parameter threshold, it means that the temperature of the current memory may be too high, and the temperature of the memory needs to be lowered. Therefore, when the temperature control parameter of the memory is higher than the corresponding parameter threshold, a memory access bandwidth reduction instruction can be generated, and the memory access bandwidth reduction instruction can be sent to the memory access management module, so that the memory access management module can reduce the memory access bandwidth according to the memory access bandwidth. Reduce the access bandwidth of the memory by reducing the instruction to achieve the purpose of reducing the bandwidth of the memory, so as to reduce the power consumption of the memory, thereby reducing the temperature of the memory, and can make the memory operate with a smaller power consumption. The bandwidth required to improve the energy efficiency of the memory Compare.
温控参数是否高于相应参数阈值的判定方式可以根据需要设置。例如,当存储器的温控参数中仅包括一个参数项时,当该参数项高于该参数项对应的参数阈值时,即可判定存储器的温控参数高于相应参数阈值。当存储器的温控参数包括多个参数项时,如当存储器的温控参数中包括存储器的温度、功耗和带宽中的至少两个参数项时,存储器可以在所包含的各参数项中存在至少一个高于相应参数项的参数阈值时,即判定存储器的温控参数高于相应参数阈值;也可以在所包含的各参数项均高于相应参数项的参数阈值时,再判定存储器的温控参数高于相应参数阈值,本申请实施例不对此进行判定。The way of judging whether the temperature control parameter is higher than the corresponding parameter threshold can be set as required. For example, when only one parameter item is included in the temperature control parameters of the memory, when the parameter item is higher than the parameter threshold corresponding to the parameter item, it can be determined that the temperature control parameter of the memory is higher than the corresponding parameter threshold. When the temperature control parameters of the memory include multiple parameter items, for example, when the temperature control parameters of the memory include at least two parameter items of temperature, power consumption and bandwidth of the memory, the memory may exist in each of the included parameter items When at least one parameter is higher than the parameter threshold of the corresponding parameter item, it is determined that the temperature control parameter of the memory is higher than the corresponding parameter threshold. If the control parameter is higher than the corresponding parameter threshold, this embodiment of the present application does not determine this.
为了进一步提高存储器温度控制的及时性,优选地,可以在存储器的温控参数中存在高于相应参数阈值的参数项时,即判定存储器的温控参数高于相应参数阈值。温控参数可以包括温度、功耗和带宽三个参数项。如果温控参数高于相应参数阈值,则生成存储器访问带宽降低指令,包括:如果温控参数中存在高于相应阈值的异常参数项,则生成存储器访问带宽降低指令。即,当存储器的温控参数包括存储器的温度、功耗和带宽时,若存储器的温度高于预先设置的温度阈值、存储器的功耗高于预先设置的功耗阈值和存储器的带宽高于预先设置的带宽阈值中的至少一项成立时,即可生成存储器访问带宽降低指令,并将其发送给存储器访问管理模块。温度阈值、功耗阈值和带宽阈值可以由用户根据需要灵活设置。In order to further improve the timeliness of temperature control of the memory, preferably, when there is a parameter item higher than the corresponding parameter threshold in the temperature control parameter of the memory, it is determined that the temperature control parameter of the memory is higher than the corresponding parameter threshold. The temperature control parameters can include three parameters: temperature, power consumption and bandwidth. If the temperature control parameter is higher than the corresponding parameter threshold, generating a memory access bandwidth reduction instruction, including: if an abnormal parameter item higher than the corresponding threshold exists in the temperature control parameter, generating a memory access bandwidth reduction instruction. That is, when the temperature control parameters of the memory include the temperature, power consumption and bandwidth of the memory, if the temperature of the memory is higher than the preset temperature threshold, the power consumption of the memory is higher than the preset power consumption threshold, and the bandwidth of the memory is higher than the preset temperature threshold When at least one of the set bandwidth thresholds is established, a memory access bandwidth reduction instruction can be generated and sent to the memory access management module. The temperature threshold, power consumption threshold and bandwidth threshold can be flexibly set by users according to their needs.
能效比控制器可以在接收到一个高于相应参数阈值的参数项时,即控制存储器访问管理模块降低一次存储器的带宽;也可以对于所获取到的存储器的带宽以及存储器在该带宽下的温度和功耗,无论该三个参数项中超过相应参数阈值的异常参数项的数量为一个还是多个,均仅降低一次存储器的带宽,以避免出现存储器降低幅度过大的情况。优选地,在生成存储器访问带宽降低指令之前,还包括:确定异常参数项为在对应的目标带宽下首个获取到的异常参数项,以下以此种情 况为例进行说明。When receiving a parameter item higher than the corresponding parameter threshold, the energy efficiency ratio controller can control the memory access management module to reduce the bandwidth of the memory once; it can also control the obtained memory bandwidth and the temperature and temperature of the memory under the bandwidth. In terms of power consumption, regardless of whether the number of abnormal parameter items exceeding the corresponding parameter threshold is one or more among the three parameter items, the bandwidth of the memory is reduced only once to avoid the situation of excessive memory reduction. Preferably, before generating the memory access bandwidth reduction instruction, the method further includes: determining that the abnormal parameter item is the first acquired abnormal parameter item under the corresponding target bandwidth. The following takes this situation as an example for description.
在一个优选的实施方式中,确定异常参数项为在对应的目标带宽下首个获取到的异常参数项,包括:将获取到的检测时间与异常参数项的检测时间最接近的带宽确定为与异常参数项对应的目标带宽;如果目标带宽不存在对应的存储器访问带宽降低指令,则确定异常参数项为在目标带宽下首个获取到的异常参数项。在将存储器访问带宽降低指令发送给存储器访问管理模块之后,该方法还可包括:对应记录目标带宽和存储器访问带宽降低指令。In a preferred embodiment, determining that the abnormal parameter item is the first acquired abnormal parameter item under the corresponding target bandwidth includes: determining the bandwidth with the acquired detection time closest to the detection time of the abnormal parameter item as the same as the detection time of the abnormal parameter item. The target bandwidth corresponding to the abnormal parameter item; if the target bandwidth does not have a corresponding memory access bandwidth reduction instruction, the abnormal parameter item is determined to be the first acquired abnormal parameter item under the target bandwidth. After sending the memory access bandwidth reduction instruction to the memory access management module, the method may further include: correspondingly recording the target bandwidth and the memory access bandwidth reduction instruction.
在上述实施方式中,能效比控制器接收温度监测器发送的存储器的温度、功耗监测器发送的存储器的功耗和带宽监测器发送的存储器的带宽,并在接收到温度、功耗和带宽中的任意一个参数项时,判断该参数项是否为高于该参数项对应的参数阈值异常参数项,若否,则继续接收存储器的上述参数项;若是,则继续接收存储器的上述参数项,并在能效比控制器已经接收到的带宽中,将检测时间与该异常参数项的检测时间最接近的带宽确定为该异常参数项对应的目标带宽,判断该目标带宽是否存在对应的存储器访问带宽降低指令,若是,意味着能效比控制器已经在目标带宽下发送过存储器访问带宽降低指令,带宽降低后存储器的该参数项可能已经发生变化,因此,此时可以不再生成并发送存储器访问带宽降低指令;若否,意味着能效比控制器尚未针对该带宽发送过存储器访问带宽降低指令,此时可以生成存储器访问带宽降低指令,并将其发送给存储器访问管理模块,以指示存储器访问管理模块降低存储器的访问带宽。In the above embodiment, the energy efficiency ratio controller receives the temperature of the memory sent by the temperature monitor, the power consumption of the memory sent by the power consumption monitor, and the bandwidth of the memory sent by the bandwidth monitor, and after receiving the temperature, power consumption and bandwidth When any one of the parameter items is used, judge whether the parameter item is an abnormal parameter item higher than the parameter threshold corresponding to the parameter item, if not, continue to receive the above-mentioned parameter item of the memory; if so, continue to receive the above-mentioned parameter item of the memory, And in the bandwidth that the energy efficiency ratio controller has received, determine the bandwidth whose detection time is closest to the detection time of the abnormal parameter item as the target bandwidth corresponding to the abnormal parameter item, and determine whether the target bandwidth has a corresponding memory access bandwidth. Reduce the command, if yes, it means that the energy efficiency ratio controller has already sent the memory access bandwidth reduction command under the target bandwidth. After the bandwidth is reduced, the parameter item of the memory may have changed. Therefore, the memory access bandwidth can no longer be generated and sent at this time. Reduce the command; if not, it means that the energy efficiency ratio controller has not sent the memory access bandwidth reduction command for the bandwidth, and at this time, the memory access bandwidth reduction command can be generated and sent to the memory access management module to instruct the memory access management module. Reduce memory access bandwidth.
根据本申请实施例提供的存储器的访问方法,获取存储器的温控参数,并在该温控参数高于相应参数阈值时,生成并将存储器访问管理模块发送存储器访问带宽降低指令,以指示存储器管理模块降低存储器的访问带宽,从而能够在存储器温度较高时,降低存储器的温度,避免存储器出现温度过高的情况,从而延长存储器的使用寿命;并且,由于通过降低存储器的访问带宽的方式降低存储器的温度,还能够使得存储器以较小的功耗运行所需的带宽,提高存储器的能效比。According to the memory access method provided by the embodiment of the present application, a temperature control parameter of the memory is acquired, and when the temperature control parameter is higher than the corresponding parameter threshold, a memory access bandwidth reduction instruction is generated and sent to the memory access management module to instruct the memory management The module reduces the access bandwidth of the memory, so that when the memory temperature is high, the temperature of the memory can be reduced to avoid the overheating of the memory, thereby prolonging the service life of the memory; and because the memory is reduced by reducing the access bandwidth of the memory. The temperature can also enable the memory to run the required bandwidth with less power consumption, and improve the energy efficiency ratio of the memory.
图4为本申请实施例提供的存储器的访问装置的一种结构框图。 如图4所示,该装置包括指令获取单元401、带宽降低单元402和请求发送单元403。FIG. 4 is a structural block diagram of an apparatus for accessing a memory provided by an embodiment of the present application. As shown in FIG. 4 , the apparatus includes an instruction obtaining unit 401 , a bandwidth reducing unit 402 and a request sending unit 403 .
指令获取单元401,被设置为获取来自能效比控制器的存储器访问带宽降低指令,存储器访问带宽降低指令在能效比控制器监测到存储器的温控参数高于相应参数阈值时生成。The instruction acquisition unit 401 is configured to acquire a memory access bandwidth reduction instruction from the energy efficiency ratio controller, and the memory access bandwidth reduction instruction is generated when the energy efficiency ratio controller detects that the temperature control parameter of the memory is higher than a corresponding parameter threshold.
带宽降低单元402,被设置为降低访问存储器的当前访问带宽,得到新访问带宽。The bandwidth reducing unit 402 is configured to reduce the current access bandwidth for accessing the memory to obtain a new access bandwidth.
请求发送单元403,被设置为根据新访问带宽向存储器发送访问请求。The request sending unit 403 is configured to send an access request to the memory according to the new access bandwidth.
根据本申请实施例提供的存储器的访问装置,通过指令获取单元401获取能效比控制器在监测到存储器的温控参数高于相应参数阈值时生成的存储器访问带宽降低指令,通过带宽降低单元402降低访问存储器的当前访问带宽,得到新访问带宽,并通过请求发送单元403按照该新访问带宽向存储器发送访问请求,从而能够避免温度器出现温度过高的情况,并可以使得存储器以较小的功耗运行所需的带宽,提高存储器的能效比。According to the memory access device provided by the embodiment of the present application, the instruction acquisition unit 401 acquires the memory access bandwidth reduction instruction generated by the energy efficiency ratio controller when the temperature control parameter of the memory is monitored to be higher than the corresponding parameter threshold, and the bandwidth reduction unit 402 reduces the memory access bandwidth instruction. The current access bandwidth of the memory is accessed to obtain a new access bandwidth, and an access request is sent to the memory according to the new access bandwidth through the request sending unit 403, so that the temperature of the thermometer can be prevented from being too high, and the memory can be made with less power. It consumes the bandwidth required for operation and improves the energy efficiency ratio of the memory.
在一个示例性的实施方式中,降低存储器的当前访问带宽,可包括:将存储器的当前访问带宽降低预设带宽步长。In an exemplary embodiment, reducing the current access bandwidth of the memory may include: reducing the current access bandwidth of the memory by a preset bandwidth step size.
在一个示例性的实施方式中,访问请求为已授权访问请求,存储器的访问装置还可包括:授权单元,被设置为在根据新访问带宽向存储器发送访问请求之前,按照预设授权规则对接收到的原始访问请求进行授权,得到已授权访问请求。In an exemplary embodiment, the access request is an authorized access request, and the device for accessing the memory may further include: an authorization unit, configured to, before sending the access request to the memory according to the new access bandwidth, perform an authorization request on the receiving device according to a preset authorization rule. The original access request received is authorized, and the authorized access request is obtained.
在一个示例性的实施方式中,授权单元可被设置为:当接收到主机发送的原始访问请求时,将原始访问请求中携带的原始访问地址映射为目标访问地址,目标访问地址包括目标行地址、目标列地址、目标通道号、目标伪通道号和目标bank地址;以及,如果存储器的历史访问记录中存在第一历史访问请求,则直接对原始访问请求进行授权,得到已授权访问请求,第一历史访问请求的历史行地址与目标行地址相同,历史访问记录被设置为记录各bank最后一次传输的历史访问请求。In an exemplary embodiment, the authorization unit may be configured to: when receiving the original access request sent by the host, map the original access address carried in the original access request to the target access address, where the target access address includes the target row address , target column address, target channel number, target pseudo-channel number and target bank address; and, if there is a first historical access request in the historical access record of the memory, directly authorize the original access request to obtain an authorized access request, the first The historical row address of a historical access request is the same as the target row address, and the historical access record is set to record the historical access request of the last transmission of each bank.
在一个示例性的实施方式中,授权单元被还可设置为:如果存储器的历史访问记录中不存在第一历史访问请求,则判断历史访问记录中是否存在第二历史访问请求,第二历史访问请求的历史通道号与目标通道号相同、第二历史访问请求的历史伪通道号与目标伪通道号相同且第二历史访问请求的历史bank地址与目标bank地址相同的;以及,如果历史访问记录中不存在第二历史访问请求,则对原始访问请求进行授权,得到已授权访问请求。In an exemplary embodiment, the authorization unit may be further configured to: if the first historical access request does not exist in the historical access record of the memory, determine whether there is a second historical access request in the historical access record, and the second historical access request exists in the historical access record. The requested historical channel number is the same as the target channel number, the historical pseudo channel number of the second historical access request is the same as the target pseudo channel number, and the historical bank address of the second historical access request is the same as the target bank address; and, if the historical access record If there is no second historical access request, the original access request is authorized to obtain the authorized access request.
在一个示例性的实施方式中,授权单元被还可设置为:如果历史访问记录中存在第二历史访问请求,则判断本地是否存在数量大于或等于预设数量阈值的目标未授权访问请求,若是,则按照设定顺序依次对各目标未授权访问请求进行授权,得到已授权访问请求;若否,则经过预设时间长度后,对原始访问请求进行授权,得到已授权访问请求,目标未授权访问请求的行地址与目标行地址相同。In an exemplary embodiment, the authorization unit may be further configured to: if there is a second historical access request in the historical access record, determine whether there is a local target unauthorized access request with a quantity greater than or equal to a preset quantity threshold, and if so , then authorize each target unauthorized access request in turn according to the set order, and obtain the authorized access request; if not, after the preset time length, authorize the original access request, obtain the authorized access request, and the target is not authorized The row address of the access request is the same as the target row address.
在一个示例性的实施方式中,存储器的访问装置还可包括:记录更新单元,被设置为在得到已授权访问请求之后,基于已授权访问的访问地址更新历史访问记录。In an exemplary embodiment, the access device of the memory may further include: a record updating unit configured to update the historical access record based on the access address of the authorized access after obtaining the authorized access request.
上述装置用于执行本申请实施例提供的存储器的访问方法,具有相应的功能模块和对应的技术效果。The foregoing apparatus is used to execute the memory access method provided by the embodiment of the present application, and has corresponding functional modules and corresponding technical effects.
图5为本申请实施例提供的存储器的访问装置的一种结构框图。如图5所示,该装置包括参数获取单元501和指令发送单元502。FIG. 5 is a structural block diagram of an apparatus for accessing a memory provided by an embodiment of the present application. As shown in FIG. 5 , the apparatus includes a parameter obtaining unit 501 and an instruction sending unit 502 .
参数获取单元501,被设置为获取存储器的温控参数。The parameter obtaining unit 501 is configured to obtain temperature control parameters of the memory.
指令发送单元502,被设置为在温控参数高于相应参数阈值时,生成存储器访问带宽降低指令,并将存储器访问带宽降低指令发送给存储器访问管理模块,以通过存储器访问带宽降低指令控制存储器访问管理模块降低存储器的访问带宽。The instruction sending unit 502 is configured to generate a memory access bandwidth reduction instruction when the temperature control parameter is higher than the corresponding parameter threshold, and send the memory access bandwidth reduction instruction to the memory access management module, so as to control the memory access through the memory access bandwidth reduction instruction The management module reduces the memory access bandwidth.
根据本申请实施例提供的存储器的访问装置,通过参数获取单元501获取存储器的温控参数,并通过指令发送单元502在该温控参数高于相应参数阈值时,生成并向存储器访问管理模块发送存储器访问带宽降低指令,以指示存储器管理模块降低存储器的访问带宽,从而能够在存储器温度较高时,降低存储器的温度,避免存储器出现温 度过高的情况,从而延长存储器的使用寿命;并且,由于通过降低存储器的访问带宽的方式降低存储器的温度,还能够使得存储器以较小的功耗运行所需的带宽,提高存储器的能效比。According to the memory access device provided by the embodiment of the present application, the temperature control parameter of the memory is obtained through the parameter obtaining unit 501, and the instruction sending unit 502 generates and sends the temperature control parameter to the memory access management module when the temperature control parameter is higher than the corresponding parameter threshold. The memory access bandwidth reduction instruction is used to instruct the memory management module to reduce the access bandwidth of the memory, so that when the memory temperature is high, the temperature of the memory can be reduced to prevent the memory from overheating, thereby extending the service life of the memory; By reducing the access bandwidth of the memory, the temperature of the memory can be reduced, and the bandwidth required for the memory to operate with less power consumption can be improved, thereby improving the energy efficiency ratio of the memory.
在一个示例性的实施方式中,温控参数包括温度、功耗和带宽三个参数项,指令发送单元502可被设置为:如果温控参数中存在高于相应阈值的异常参数项,则生成存储器访问带宽降低指令,并将存储器访问带宽降低指令发送给存储器访问管理模块。In an exemplary embodiment, the temperature control parameter includes three parameter items, namely temperature, power consumption and bandwidth, and the instruction sending unit 502 may be configured to: if there is an abnormal parameter item in the temperature control parameter that is higher than the corresponding threshold, generate The memory access bandwidth reduction instruction is sent to the memory access management module.
在一个示例性的实施方式中,指令发送单元502还可被设置为:在生成存储器访问带宽降低指令之前,确定异常参数项为在对应的目标带宽下首个获取到的异常参数项。In an exemplary embodiment, the instruction sending unit 502 may be further configured to: before generating the memory access bandwidth reduction instruction, determine that the exception parameter item is the first acquired exception parameter item under the corresponding target bandwidth.
在一个示例性的实施方式中,确定异常参数项为在对应的目标带宽下首个获取到的异常参数项,包括:将获取到的检测时间与异常参数项的检测时间最接近的带宽确定为与异常参数项对应的目标带宽;以及,如果目标带宽不存在对应的存储器访问带宽降低指令,则确定异常参数项为在目标带宽下首个获取到的异常参数项。In an exemplary embodiment, determining that the abnormal parameter item is the first acquired abnormal parameter item under the corresponding target bandwidth includes: determining the bandwidth with the acquired detection time closest to the detection time of the abnormal parameter item as The target bandwidth corresponding to the abnormal parameter item; and, if the target bandwidth does not have a corresponding memory access bandwidth reduction instruction, the abnormal parameter item is determined to be the abnormal parameter item obtained first under the target bandwidth.
在将存储器访问带宽降低指令发送给存储器访问管理模块之后,该装置还可被设置为:对应记录目标带宽和存储器访问带宽降低指令。After sending the memory access bandwidth reduction instruction to the memory access management module, the apparatus may also be configured to: record the target bandwidth and the memory access bandwidth reduction instruction correspondingly.
上述装置用于执行本申请实施例提供的存储器的访问方法,具有相应的功能模块和对应的技术效果。The foregoing apparatus is used to execute the memory access method provided by the embodiment of the present application, and has corresponding functional modules and corresponding technical effects.
本申请实施例还提供了一种存储器访问管理模块。图6为本申请实施例提供的存储器访问管理模块的一种结构示意图,如图6所示,该存储器访问管理模块包括处理装置61和存储装置62;存储器访问管理模块中处理装置61的数量可以是一个或多个,图6中以一个处理装置61为例;存储器访问管理模块中的处理装置61和存储装置62可以通过总线或其它方式连接,图6中以通过总线连接为例。The embodiment of the present application also provides a memory access management module. FIG. 6 is a schematic structural diagram of a memory access management module provided by an embodiment of the present application. As shown in FIG. 6 , the memory access management module includes a processing device 61 and a storage device 62; the number of processing devices 61 in the memory access management module can be There are one or more, and a processing device 61 is used as an example in FIG. 6 ; the processing device 61 and the storage device 62 in the memory access management module can be connected through a bus or other methods, and the connection through a bus is used as an example in FIG. 6 .
存储装置62作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本申请实施例中的存储器的访问方法对应的程序指令/模块。处理装置61通过运行存储至存储装置62中的软件程序、指令以及模块,从而执行存储器访问管理模块的各种功能应用以及数据处理,即实现上述的存储器的访问方法。As a computer-readable storage medium, the storage device 62 may be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the memory access method in the embodiments of the present application. The processing device 61 executes various functional applications and data processing of the memory access management module by running the software programs, instructions and modules stored in the storage device 62 , ie, implements the above-mentioned memory access method.
存储装置62可主要包括存储程序区和存储数据区。存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端的使用所创建的数据等。此外,存储装置62可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其它非易失性固态存储器件。在一些示例中,存储装置62可进一步包括相对于处理装置61远程设置的存储器,这些远程存储器可以通过网络连接至存储器访问管理模块。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The storage device 62 may mainly include a program storage area and a data storage area. The stored program area may store an operating system, an application program required for at least one function; the stored data area may store data created according to the use of the terminal, and the like. Additionally, storage device 62 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, storage device 62 may further include memory located remotely relative to processing device 61, and these remote memories may be connected to the memory access management module through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
本申请实施例还提供了一种能效比控制器。图7为本申请实施例提供的能效比控制器的一种结构示意图,如图7所示,该能效比控制器包括处理装置71和存储装置72;能效比控制器中处理装置71的数量可以是一个或多个,图7中以一个处理装置71为例;能效比控制器中的处理装置71和存储装置72可以通过总线或其它方式连接,图7中以通过总线连接为例。The embodiments of the present application also provide an energy efficiency ratio controller. FIG. 7 is a schematic structural diagram of an energy efficiency ratio controller provided by an embodiment of the present application. As shown in FIG. 7 , the energy efficiency ratio controller includes a processing device 71 and a storage device 72; the number of processing devices 71 in the energy efficiency ratio controller can be There are one or more, and a processing device 71 is taken as an example in FIG. 7 ; the processing device 71 and the storage device 72 in the energy efficiency ratio controller can be connected by a bus or other means, and the connection by a bus is taken as an example in FIG. 7 .
存储装置72作为一种计算机可读存储介质,可用于存储软件程序、计算机可执行程序以及模块,如本申请实施例中的存储器的访问方法对应的程序指令/模块。处理装置71通过运行存储至存储装置72中的软件程序、指令以及模块,从而执行能效比控制器的各种功能应用以及数据处理,即实现上述的存储器的访问方法。As a computer-readable storage medium, the storage device 72 can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the memory access method in the embodiments of the present application. The processing device 71 executes various functional applications and data processing of the energy efficiency ratio controller by running the software programs, instructions, and modules stored in the storage device 72 , ie, implements the above-mentioned memory access method.
存储装置72可主要包括存储程序区和存储数据区。存储程序区可存储操作系统、至少一个功能所需的应用程序;存储数据区可存储根据终端的使用所创建的数据等。此外,存储装置72可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其它非易失性固态存储器件。在一些示例中,存储装置72可进一步包括相对于处理装置71远程设置的存储器,这些远程存储器可以通过网络连接至能效比控制器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The storage device 72 may mainly include a storage program area and a storage data area. The stored program area may store an operating system, an application program required for at least one function; the stored data area may store data created according to the use of the terminal, and the like. Additionally, storage device 72 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the storage device 72 may further include memories located remotely from the processing device 71, and these remote memories may be connected to the energy efficiency ratio controller through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
本申请实施例还提供了一种存储器的访问系统。图8为本申请实施例提供的存储器的访问系统的一种结构示意图。如图8所示,该 系统包括本申请实施例提供的存储器访问管理模块1以及能效比控制器2,还包括温度监测器3、功耗监测器4和带宽监测器5。The embodiment of the present application also provides a memory access system. FIG. 8 is a schematic structural diagram of a memory access system provided by an embodiment of the present application. As shown in FIG. 8 , the system includes the memory access management module 1 and the energy efficiency ratio controller 2 provided by the embodiment of the present application, and also includes a temperature monitor 3 , a power consumption monitor 4 and a bandwidth monitor 5 .
温度监测器3,分别与存储器6和能效比控制器2相连,被设置为按照第一监测周期监测存储器的温度,并将监测到的温度发送给能效比控制器2。The temperature monitor 3 , which is respectively connected to the memory 6 and the energy efficiency ratio controller 2 , is configured to monitor the temperature of the memory according to the first monitoring period, and send the monitored temperature to the energy efficiency ratio controller 2 .
功耗监测器4,分别与存储器6和能效比控制器2相连,被设置为按照第二监测周期监测存储器的功耗,并将监测到的功耗发送给能效比控制器2。The power consumption monitor 4 is respectively connected to the memory 6 and the energy efficiency ratio controller 2 , and is configured to monitor the power consumption of the memory according to the second monitoring period, and send the monitored power consumption to the energy efficiency ratio controller 2 .
带宽监测器5,分别与存储器访问管理模块1、存储器6所连接的存储器控制器7以及能效比控制器2相连,被设置为按照第三监测周期监测存储器的带宽,并将监测到的带宽发送给能效比控制器2。The bandwidth monitor 5 is respectively connected with the memory access management module 1, the memory controller 7 connected to the memory 6, and the energy efficiency ratio controller 2, and is set to monitor the bandwidth of the memory according to the third monitoring period, and send the monitored bandwidth to To the energy efficiency ratio controller 2.
能效比控制器2,与存储器器访问管理模块1相连,被设置为获取存储器的温控参数,温控参数包括温度、功耗和带宽;如果温控参数高于相应参数阈值,则生成存储器访问带宽降低指令,并将存储器访问带宽降低指令发送给存储器访问管理模块1,以通过存储器访问带宽降低指令控制存储器访问管理模块1降低存储器6的访问带宽。The energy efficiency ratio controller 2, connected to the memory access management module 1, is set to obtain temperature control parameters of the memory, the temperature control parameters including temperature, power consumption and bandwidth; if the temperature control parameters are higher than the corresponding parameter thresholds, a memory access is generated A bandwidth reduction instruction is sent, and the memory access bandwidth reduction instruction is sent to the memory access management module 1, so as to control the memory access management module 1 to reduce the access bandwidth of the memory 6 through the memory access bandwidth reduction instruction.
存储器访问管理模块1,分别与主机8和存储器控制器7相连,被设置为获取来自能效比控制器2的存储器访问带宽降低指令,存储器访问带宽降低指令在能效比控制器2监测到存储器6的温控参数高于相应参数阈值时生成;降低访问存储器6的当前访问带宽,得到新访问带宽;根据新访问带宽向存储器6发送访问请求。The memory access management module 1 is connected to the host 8 and the memory controller 7 respectively, and is configured to obtain the memory access bandwidth reduction instruction from the energy efficiency ratio controller 2, and the memory access bandwidth reduction instruction is monitored by the energy efficiency ratio controller 2. Generated when the temperature control parameter is higher than the corresponding parameter threshold; reduce the current access bandwidth for accessing the memory 6 to obtain a new access bandwidth; send an access request to the memory 6 according to the new access bandwidth.
本申请实施例提供的存储器访问系统用于执行本申请实施例提供的存储器的访问方法,具有相应的功能模块和对应的技术效果。The memory access system provided by the embodiment of the present application is used to execute the memory access method provided by the embodiment of the present application, and has corresponding functional modules and corresponding technical effects.
本申请实施例还提供一种包含计算机可执行指令的计算机可读存储介质,计算机可执行指令在由处理器执行时用于执行本申请实施例提供的存储器的访问方法。The embodiments of the present application further provide a computer-readable storage medium containing computer-executable instructions, and the computer-executable instructions, when executed by a processor, are used to execute the memory access method provided by the embodiments of the present application.
通过以上关于实施方式的描述,所属领域的技术人员可以了解到,本申请可借助软件及通用硬件来实现,也可以通过硬件实现。基于这样的理解,本申请的技术方案可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软 盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括多个指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请任意实施例所述的方法。From the above description of the embodiments, those skilled in the art can understand that the present application can be implemented by means of software and general hardware, and can also be implemented by hardware. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a floppy disk of a computer, a read-only memory (Read-Only Memory, ROM), Random Access Memory (Random Access Memory, RAM), flash memory (FLASH), hard disk or optical disk, etc., including multiple instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to execute any methods described in the examples.
以上所述,仅为本申请的示例性实施例而已,并非用于限定本申请的保护范围。The above descriptions are merely exemplary embodiments of the present application, and are not intended to limit the protection scope of the present application.
本申请附图中的任何逻辑流程的框图可以表示程序步骤,或者可以表示相互连接的逻辑电路、模块和功能,或者可以表示程序步骤与逻辑电路、模块和功能的组合。计算机程序可以存储在存储器上。存储器可以具有任何适合于本地技术环境的类型并且可以使用任何适合的数据存储技术实现,例如但不限于只读存储器(ROM)、随机访问存储器(RAM)、光存储器装置和系统(数码多功能光碟DVD或CD光盘)等。计算机可读介质可以包括非瞬时性存储介质。数据处理器可以是任何适合于本地技术环境的类型,例如但不限于通用计算机、专用计算机、微处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑器件(Programmable Logic Device,PLD)、现场可编程逻辑门阵列(Field Programmable Gate Array,FGPA)以及基于多核处理器架构的处理器。The block diagrams of any logic flow in the figures of the present application may represent program steps, or may represent interconnected logic circuits, modules and functions, or may represent a combination of program steps and logic circuits, modules and functions. Computer programs can be stored on memory. The memory may be of any type suitable for the local technical environment and may be implemented using any suitable data storage technology, such as but not limited to read only memory (ROM), random access memory (RAM), optical memory devices and systems (Digital Versatile Discs). DVD or CD disc) etc. Computer-readable media may include non-transitory storage media. The data processor may be of any type suitable for the local technical environment, such as, but not limited to, a general purpose computer, a special purpose computer, a microprocessor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC) ), Programmable Logic Device (PLD), Field Programmable Gate Array (Field Programmable Gate Array, FGPA) and processors based on multi-core processor architecture.
通过示范性和非限制性的示例,上文已提供了对本申请的示范实施例的详细描述。但结合附图和权利要求来考虑,对以上实施例的多种修改和调整对本领域技术人员来说是显而易见的,但不偏离本申请的范围。因此,本申请的恰当范围将根据权利要求确定。The foregoing has provided a detailed description of exemplary embodiments of the present application, by way of illustrative and non-limiting example. However, when considered in conjunction with the accompanying drawings and claims, various modifications and adjustments to the above embodiments will be apparent to those skilled in the art without departing from the scope of the present application. Accordingly, the proper scope of this application will be determined with reference to the claims.

Claims (14)

  1. 一种存储器的访问方法,包括:A memory access method, comprising:
    获取来自能效比控制器的存储器访问带宽降低指令,所述存储器访问带宽降低指令在所述能效比控制器监测到存储器的温控参数高于相应参数阈值时生成;obtaining a memory access bandwidth reduction instruction from an energy efficiency ratio controller, where the memory access bandwidth reduction instruction is generated when the energy efficiency ratio controller detects that a temperature control parameter of the memory is higher than a corresponding parameter threshold;
    降低访问所述存储器的当前访问带宽,得到新访问带宽;以及reducing the current access bandwidth to the memory to obtain a new access bandwidth; and
    根据所述新访问带宽向所述存储器发送访问请求。An access request is sent to the memory according to the new access bandwidth.
  2. 根据权利要求1所述的方法,其中,降低所述存储器的所述当前访问带宽,包括:The method of claim 1, wherein reducing the current access bandwidth of the memory comprises:
    将所述存储器的所述当前访问带宽降低预设带宽步长。Decreasing the current access bandwidth of the memory by a preset bandwidth step.
  3. 根据权利要求1所述的方法,其中,所述访问请求为已授权访问请求;以及The method of claim 1, wherein the access request is an authorized access request; and
    在根据所述新访问带宽向所述存储器发送所述访问请求之前,所述方法还包括:Before sending the access request to the memory according to the new access bandwidth, the method further includes:
    按照预设授权规则对接收到的原始访问请求进行授权,得到所述已授权访问请求。Authorize the received original access request according to the preset authorization rule, and obtain the authorized access request.
  4. 根据权利要求3所述的方法,其中,按照所述预设授权规则对接收到的所述原始访问请求进行授权,得到所述已授权访问请求,包括:The method according to claim 3, wherein authorizing the received original access request according to the preset authorization rule to obtain the authorized access request, comprising:
    响应于接收到主机发送的所述原始访问请求,将所述原始访问请求中携带的原始访问地址映射为目标访问地址,所述目标访问地址包括目标行地址、目标列地址、目标通道号、目标伪通道号和目标bank地址;以及In response to receiving the original access request sent by the host, the original access address carried in the original access request is mapped to a target access address, where the target access address includes a target row address, a target column address, a target channel number, a target access address Pseudo channel number and target bank address; and
    响应于所述存储器的历史访问记录中存在第一历史访问请求,对所述原始访问请求进行授权,得到所述已授权访问请求,所述第一历史访问请求的历史行地址与所述目标行地址相同,所述历史访问记录被设置为记录各bank最后一次传输的历史访问请求。In response to the existence of the first historical access request in the historical access record of the memory, the original access request is authorized, and the authorized access request is obtained, the historical row address of the first historical access request and the target row are obtained. The addresses are the same, and the historical access record is set to record the historical access request of the last transmission of each bank.
  5. 根据权利要求4所述的方法,还包括:The method of claim 4, further comprising:
    响应于所述存储器的历史访问记录中不存在所述第一历史访问请求,判断所述历史访问记录中是否存在第二历史访问请求,所述第二历史访问请求的历史通道号与所述目标通道号相同、所述第二历史访问请求的历史伪通道号与所述目标伪通道号相同且所述第二历史访问请求的历史bank地址与所述目标bank地址相同的;In response to the absence of the first historical access request in the historical access record of the memory, determine whether there is a second historical access request in the historical access record, the historical channel number of the second historical access request and the target The channel numbers are the same, the historical pseudo channel number of the second historical access request is the same as the target pseudo channel number, and the historical bank address of the second historical access request is the same as the target bank address;
    响应于所述历史访问记录中不存在第二历史访问请求,对所述原始访问请求进行授权,得到所述已授权访问请求;以及In response to the absence of a second historical access request in the historical access record, authorizing the original access request to obtain the authorized access request; and
    响应于所述历史访问记录中存在所述第二历史访问请求,判断本地是否存在数量大于或等于预设数量阈值的目标未授权访问请求,若是,则按照设定顺序依次对各所述目标未授权访问请求进行授权,得到所述已授权访问请求;若否,则经过预设时间长度后,对所述原始访问请求进行授权,得到所述已授权访问请求,所述目标未授权访问请求的行地址与所述目标行地址相同。In response to the existence of the second historical access request in the historical access record, it is determined whether there are target unauthorized access requests with a quantity greater than or equal to a preset number threshold, and if so, then the target unauthorized access requests are sequentially performed according to the set order. The authorized access request is authorized, and the authorized access request is obtained; if not, after a preset time period, the original access request is authorized to obtain the authorized access request, and the target unauthorized access request is The row address is the same as the target row address.
  6. 根据权利要求4-5任项一所述的方法,在得到所述已授权访问请求之后,还包括:The method according to any one of claims 4-5, after obtaining the authorized access request, further comprising:
    基于所述已授权访问的访问地址更新所述历史访问记录。The historical access record is updated based on the access address of the authorized access.
  7. 一种存储器的访问方法,包括:A memory access method, comprising:
    获取存储器的温控参数;Get the temperature control parameters of the memory;
    响应于所述温控参数高于相应参数阈值,生成存储器访问带宽降低指令;以及generating a memory access bandwidth reduction instruction in response to the temperature control parameter being above a corresponding parameter threshold; and
    将所述存储器访问带宽降低指令发送给存储器访问管理模块,以通过所述存储器访问带宽降低指令控制所述存储器访问管理模块降低所述存储器的访问带宽。The memory access bandwidth reduction instruction is sent to a memory access management module, so as to control the memory access management module to reduce the memory access bandwidth through the memory access bandwidth reduction instruction.
  8. 根据权利要求7所述的方法,其中,所述温控参数包括温度、功耗和带宽三个参数项,所述;以及The method according to claim 7, wherein the temperature control parameters include three parameter items of temperature, power consumption and bandwidth, said; and
    响应于所述温控参数高于所述相应参数阈值,生成所述存储器访问带宽降低指令,包括:In response to the temperature control parameter being higher than the corresponding parameter threshold, generating the memory access bandwidth reduction instruction includes:
    响应于所述温控参数中存在高于相应阈值的异常参数项,生成所述存储器访问带宽降低指令。The memory access bandwidth reduction instruction is generated in response to the presence of an abnormal parameter item in the temperature control parameter that is higher than a corresponding threshold.
  9. 根据权利要求8所述的方法,在生成所述存储器访问带宽降低指令之前,还包括:The method of claim 8, before generating the memory access bandwidth reduction instruction, further comprising:
    确定所述异常参数项为在对应的目标带宽下首个获取到的异常参数项。It is determined that the abnormal parameter item is the first acquired abnormal parameter item under the corresponding target bandwidth.
  10. 根据权利要求9所述的方法,其中,The method of claim 9, wherein,
    确定所述异常参数项为在对应的所述目标带宽下首个获取到的异常参数项,包括:将获取到的检测时间与所述异常参数项的检测时间最接近的带宽确定为与所述异常参数项对应的所述目标带宽;以及,响应于所述目标带宽不存在对应的存储器访问带宽降低指令,确定所述异常参数项为在所述目标带宽下首个获取到的异常参数项;以及Determining that the abnormal parameter item is the first acquired abnormal parameter item under the corresponding target bandwidth includes: determining the bandwidth with the acquired detection time closest to the detection time of the abnormal parameter item as the target bandwidth corresponding to the abnormal parameter item; and, in response to the target bandwidth not having a corresponding memory access bandwidth reduction instruction, determine that the abnormal parameter item is the abnormal parameter item first obtained under the target bandwidth; as well as
    在将所述存储器访问带宽降低指令发送给所述存储器访问管理模块之后,所述方法还包括:对应记录所述目标带宽和所述存储器访问带宽降低指令。After sending the memory access bandwidth reduction instruction to the memory access management module, the method further includes: correspondingly recording the target bandwidth and the memory access bandwidth reduction instruction.
  11. 一种存储器访问管理模块,包括:存储装置、处理装置、存储在所述存储装置上并可在所述处理装置上运行的程序以及用于实现所述处理装置和所述存储装置之间的连接通信的数据总线,所述程序被所述处理装置执行时实现根据权利要求1-6任一项所述的存储器的访问方法。A memory access management module, comprising: a storage device, a processing device, a program stored on the storage device and executable on the processing device, and a program for realizing the connection between the processing device and the storage device A communication data bus, when the program is executed by the processing device, implements the memory access method according to any one of claims 1-6.
  12. 一种能效比控制器,包括:存储装置、处理装置、存储在所述存储装置上并可在所述处理装置上运行的程序以及用于实现所述处理装置和所述存储装置之间的连接通信的数据总线,所述程序被所述处理装置执行时实现根据权利要求7-10任一项所述的存储器的 访问方法。An energy efficiency ratio controller, comprising: a storage device, a processing device, a program stored on the storage device and executable on the processing device, and a connection for realizing the processing device and the storage device A communication data bus, when the program is executed by the processing device, implements the memory access method according to any one of claims 7-10.
  13. 一种存储器的访问系统,包括根据权利要求11所述的存储器访问管理模块以及根据权利要求12所述的能效比控制器,还包括温度监测器、功耗监测器和带宽监测器;A memory access system, comprising the memory access management module according to claim 11 and the energy efficiency ratio controller according to claim 12, further comprising a temperature monitor, a power consumption monitor and a bandwidth monitor;
    所述温度监测器,分别与存储器和所述能效比控制器相连,被设置为按照第一监测周期监测存储器的温度,并将监测到的温度发送给所述能效比控制器;the temperature monitor, which is respectively connected to the memory and the energy efficiency ratio controller, is configured to monitor the temperature of the memory according to a first monitoring period, and sends the monitored temperature to the energy efficiency ratio controller;
    所述功耗监测器,分别与所述存储器和所述能效比控制器相连,被设置为按照第二监测周期监测存储器的功耗,并将监测到的功耗发送给所述能效比控制器;The power consumption monitor, which is respectively connected to the memory and the energy efficiency ratio controller, is configured to monitor the power consumption of the memory according to a second monitoring period, and send the monitored power consumption to the energy efficiency ratio controller ;
    所述带宽监测器,分别与所述存储器访问管理模块、所述存储器所连接的存储器控制器以及所述能效比控制器相连,被设置为按照第三监测周期监测所述存储器的带宽,并将监测到的所述带宽发送给所述能效比控制器;The bandwidth monitor is respectively connected to the memory access management module, the memory controller connected to the memory, and the energy efficiency ratio controller, and is configured to monitor the bandwidth of the memory according to a third monitoring period, and monitor the bandwidth of the memory according to the third monitoring period. sending the monitored bandwidth to the energy efficiency ratio controller;
    所述能效比控制器,与所述存储器器访问管理模块相连,被设置为获取存储器的温控参数,所述温控参数包括温度、功耗和带宽;响应于所述温控参数高于相应参数阈值,生成存储器访问带宽降低指令,并将所述存储器访问带宽降低指令发送给存储器访问管理模块,以通过所述存储器访问带宽降低指令控制所述存储器访问管理模块降低所述存储器的访问带宽;以及The energy efficiency ratio controller, connected to the memory access management module, is configured to obtain temperature control parameters of the memory, the temperature control parameters including temperature, power consumption and bandwidth; in response to the temperature control parameters being higher than corresponding parameter threshold, generate a memory access bandwidth reduction instruction, and send the memory access bandwidth reduction instruction to a memory access management module, so as to control the memory access management module to reduce the memory access bandwidth through the memory access bandwidth reduction instruction; as well as
    所述存储器访问管理模块,分别与主机和所述存储器控制器相连,被设置为获取来自能效比控制器的存储器访问带宽降低指令,所述存储器访问带宽降低指令在所述能效比控制器监测到存储器的温控参数高于相应参数阈值时生成;降低访问所述存储器的当前访问带宽,得到新访问带宽;根据所述新访问带宽向所述存储器发送访问请求。The memory access management module, respectively connected to the host and the memory controller, is configured to obtain a memory access bandwidth reduction instruction from the energy efficiency ratio controller, and the memory access bandwidth reduction instruction is monitored by the energy efficiency ratio controller. It is generated when the temperature control parameter of the memory is higher than the corresponding parameter threshold; the current access bandwidth for accessing the memory is reduced to obtain a new access bandwidth; an access request is sent to the memory according to the new access bandwidth.
  14. 一种计算机可读存储介质,其上存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现根据权 利要求1-10中任一项所述的方法。A computer-readable storage medium having one or more programs stored thereon, the one or more programs being executable by one or more processors to implement the method according to any one of claims 1-10 method.
PCT/CN2021/112969 2020-08-21 2021-08-17 Access method and system for memory, memory access management module, energy efficiency ratio controller and computer-readable storage medium WO2022037565A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010850808.4 2020-08-21
CN202010850808.4A CN114167972A (en) 2020-08-21 2020-08-21 Memory access method, module, controller, system and medium

Publications (1)

Publication Number Publication Date
WO2022037565A1 true WO2022037565A1 (en) 2022-02-24

Family

ID=80323418

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/112969 WO2022037565A1 (en) 2020-08-21 2021-08-17 Access method and system for memory, memory access management module, energy efficiency ratio controller and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN114167972A (en)
WO (1) WO2022037565A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116303125A (en) * 2023-05-16 2023-06-23 太初(无锡)电子科技有限公司 Request scheduling method, cache, device, computer equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117666936A (en) * 2022-08-31 2024-03-08 华为技术有限公司 Migration bandwidth adjustment method, device and system of storage medium and chip

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052292A (en) * 2017-12-25 2018-05-18 成都信息工程大学 A kind of high-temperature protection method of solid state disk
US20180210849A1 (en) * 2017-01-26 2018-07-26 Canon Kabushiki Kaisha Memory access system, method for controlling the same, computer-readable storage medium, and image forming apparatus
CN207690062U (en) * 2017-12-25 2018-08-03 成都信息工程大学 A kind of high reliability solid state disk
CN110764715A (en) * 2019-11-09 2020-02-07 苏州浪潮智能科技有限公司 Bandwidth control method, device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180210849A1 (en) * 2017-01-26 2018-07-26 Canon Kabushiki Kaisha Memory access system, method for controlling the same, computer-readable storage medium, and image forming apparatus
CN108052292A (en) * 2017-12-25 2018-05-18 成都信息工程大学 A kind of high-temperature protection method of solid state disk
CN207690062U (en) * 2017-12-25 2018-08-03 成都信息工程大学 A kind of high reliability solid state disk
CN110764715A (en) * 2019-11-09 2020-02-07 苏州浪潮智能科技有限公司 Bandwidth control method, device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116303125A (en) * 2023-05-16 2023-06-23 太初(无锡)电子科技有限公司 Request scheduling method, cache, device, computer equipment and storage medium
CN116303125B (en) * 2023-05-16 2023-09-29 太初(无锡)电子科技有限公司 Request scheduling method, cache, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN114167972A (en) 2022-03-11

Similar Documents

Publication Publication Date Title
US20240078188A1 (en) Direct host access to storage device memory space
US11487661B2 (en) Converged memory device and operation method thereof
WO2022037565A1 (en) Access method and system for memory, memory access management module, energy efficiency ratio controller and computer-readable storage medium
CN110175140A (en) Fusion memory part and its operating method
CN100581172C (en) Method for accessing object magnetic dish and system for extensing disk content
KR102025341B1 (en) Memory controller, Memory system including the memory controller and Method of operating the memory controller
KR101196547B1 (en) A method for deterministic sas discovery and configuration
US8099624B1 (en) Recovery mechanism for I/O module using out-of-band control path
US20140089608A1 (en) Power savings via dynamic page type selection
US20120173840A1 (en) Sas expander connection routing techniques
KR20060132716A (en) Arbitration system having a packet memory and method for memory responses in a hub-based memory system
KR20060119908A (en) Memory module and method having on-board data search capabilites and processor-based system using such memory modules
US20090106510A1 (en) Controlling Replication of Data Among Storage Devices
US11487473B2 (en) Memory system
US20220138059A1 (en) Storage system and operating method thereof
EP1512065A1 (en) System and method for inquiry caching
JP2017537404A (en) Memory access method, switch, and multiprocessor system
US11288012B2 (en) Memory system
US20230094144A1 (en) Memory system
US20230325277A1 (en) Memory controller performing selective and parallel error correction, system including the same and operating method of memory device
KR102334739B1 (en) Memory module, system, and error correction method thereof
CN108228104B (en) Data transmission method and solid state hard disk controller
WO1998028679A1 (en) Data transfer with mirroring
CN115328402A (en) Data caching method and device
JP5585171B2 (en) Storage control device, storage system, and storage control method

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: 21857658

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 10.07.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21857658

Country of ref document: EP

Kind code of ref document: A1