WO2020155074A1 - Processing apparatus, method, and related device - Google Patents

Processing apparatus, method, and related device Download PDF

Info

Publication number
WO2020155074A1
WO2020155074A1 PCT/CN2019/074309 CN2019074309W WO2020155074A1 WO 2020155074 A1 WO2020155074 A1 WO 2020155074A1 CN 2019074309 W CN2019074309 W CN 2019074309W WO 2020155074 A1 WO2020155074 A1 WO 2020155074A1
Authority
WO
WIPO (PCT)
Prior art keywords
dram
rank
command
memory interface
ddr
Prior art date
Application number
PCT/CN2019/074309
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 华为技术有限公司
Priority to PCT/CN2019/074309 priority Critical patent/WO2020155074A1/en
Priority to CN201980090641.1A priority patent/CN113383317B/en
Publication of WO2020155074A1 publication Critical patent/WO2020155074A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • This application relates to the technical field of memory processing, and in particular to a processing device, method and related equipment.
  • Memory is an important part of data processing equipment (such as computers, mobile terminals, etc.).
  • the function of Memory is to temporarily store the calculation data in the Central Processing Unit (CPU) and exchange it with external storage such as hard disks. data. Since the programs in the CPU are all executed in the memory, the performance of the memory has a great influence on the performance of the data processing device.
  • CPU Central Processing Unit
  • a synchronous DRAM (Dynamic Random Access Memory, DRAM) medium is usually used as a memory to store codes and data required for the operation of a data processing system such as a CPU.
  • DRAM has a larger capacity and a higher read and write speed, which can better meet the memory requirements of the data processing system.
  • DRAM uses capacitor storage, in order to ensure that data is not lost, it is necessary to ensure continuous power supply and refresh during operation, which in turn generates a large amount of power consumption.
  • Data show that the use of DRAM memory power consumption accounts for about 40% of the overall power consumption of the computer system. It can be seen that optimizing the power consumption of the memory system is of great significance to improving the power consumption of the entire data processing system.
  • the main method to reduce the power consumption of DRAM is to control the DRAM to enter a low power consumption state when the DRAM read and write commands are not monitored for a period of time.
  • the CPU cannot perform the control on the DRAM. Read and write operations; when the CPU needs to read and write data, it needs to wake up the DRAM through a series of operations to exit the aforementioned low power consumption mode to enter the normal working state.
  • this method can significantly reduce the power consumption of the system, the time difference in wake-up after the DRAM enters the low-power mode causes the delay of the CPU to read and write data, which ultimately affects the read and write efficiency of the entire data processing device.
  • the embodiment of the present invention provides a processing device, a method and related equipment, which can ensure low power consumption and low time delay in the memory processing process.
  • an embodiment of the present invention provides a processing device, which may include, a processing module and N dynamic random access memory DRAM memory interfaces, and a bus is used between the processing module and the N DRAM memory interfaces. And the processing module is also directly connected to the N DRAM memory interfaces through physical connections, where N is an integer greater than or equal to 1; the processing module is used to determine whether the first command is dynamic Random access memory DRAM read and write commands, the first command is a command sent by the processing module through the bus; if the first command is a DRAM read and write command, it is sent to the first DRAM memory interface through the first physical connection A first indicator signal, the first DRAM memory interface is a memory interface corresponding to the first command among the N DRAM memory interfaces, and the first indicator signal is used to instruct the first DRAM module RANK to enter a working state
  • the first physical connection is a physical connection between the processing module and the first DRAM memory interface; the first DRAM RANK is the DRAM RANK connected to the first DRAM
  • the processing module when the processing module needs to read or write data from a certain DRAM RANK, it can pass
  • the physical direct connection line with the corresponding DRAM memory interface directly sends an indication signal to the DRAM memory interface to instruct the corresponding DRAM RANK to enter the working state (for example, wake up in advance and exit the low power consumption mode).
  • the processing module in the prior art that needs to pass the command path of the bus, it starts to instruct the DRAM to enter the working state when the first command is sent and arrives at the DRAM memory interface, and after the instruction, a series of operations (such as control Logic, physical layer interface protocol, etc.) can control the DRAM to actually enter the working state, and the duration of the entire wake-up process causes the read and write delay of the first command.
  • a series of operations such as control Logic, physical layer interface protocol, etc.
  • the instruction signal can be directly sent to the DRAM memory interface through the added physical direct connection line, thereby instructing the DRAM memory interface to start a series of wake-up operations in advance. Therefore, the waiting time delay after the first command reaches the DRAM memory interface can be greatly reduced or even eliminated, thereby greatly ensuring the low power consumption and low time delay of the processing device.
  • the first DRAM memory interface is further configured to: receive the first command issued by the processing module through the bus, and after determining that the first DRAM RANK enters the working state In the case of, the first command is issued to the first DRAM RANK.
  • the corresponding DRAM memory interface in the processing device not only receives the first instruction signal sent by the processing module through the direct physical connection, but also receives the first command sent by the processing module through the bus (for example, for the first DRAM RANK read and write command), and after confirming that the first DRAM RANK has entered the working state, the command is issued to the first DRAM RANK for corresponding read and write operations.
  • the processing module is further configured to: if the first command is a DRAM read/write command, determine the first DRAM memory corresponding to the first command according to the address of the first command interface.
  • the processing module in the processing device judges which DRAM memory interface the first instruction is specifically sent to by the address in the first command, thereby determining which physical direct connection line is used to send the first instruction signal, and then controls the corresponding The DRAM memory interface wakes up the corresponding DRAM RANK and enters the working state.
  • the first indication signal is a high-level signal; the first DRAM memory interface is specifically configured to: when the high-level signal is received, control the first DRAM RANK enters the working state.
  • a high-level output can be realized through the first physical connection, thereby instructing the first DRAM memory interface to control the corresponding DRAM Rank to enter the working state by pulling the high level.
  • the processing module in the processing device sends a high-level signal through a first physical connection.
  • a high-level output can be realized through the first physical connection, thereby sending a high-level signal to the first DRAM.
  • the memory interface instructs and controls the corresponding DRAM RANK to enter the working state, and the first DRAM memory interface can continue to control the first DRAM RANK to remain in the working state while monitoring that the high level is maintained. Therefore, the first DRAM RANK can quickly enter the working state when there is data read and write, and the low power consumption and low latency of the processing device are ensured.
  • the first DRAM RANK is a first double-rate synchronous dynamic random access memory DDR RANK;
  • the first DRAM memory interface includes a DDR controller and a DDR physical interface PHY;
  • a DRAM memory interface is specifically used to: when the DDR controller receives the high-level signal, control the DDR PHY to exit the low power consumption state, and control the first DDR RANK through the DDR PHY Exit the power-off state or self-refresh state.
  • the process of controlling the DDR RANK to enter the working state includes first controlling the DDR PHY to exit the DFI low power state, and then exiting the DFI
  • the DDR PHY in the low power consumption state controls the first DDR RANK to exit the power-off state or self-refresh state.
  • the processing module is further configured to: when it is not detected that the first command is sent through the bus or when the first DRAM RANK has executed and completed the first command , Sending a second indication signal to the first DRAM memory interface through the first physical connection, the second indication signal is used to instruct the first DRAM RANK to enter a low power consumption state; the first DRAM memory The interface is also used to control the first DRAM RANK to enter a low power consumption state when the second indication signal is received.
  • the processing module when there is no first command to be sent, or when the first command needs to be sent but the corresponding DRAM RANK has been executed, the processing module can connect to the corresponding DRAM memory interface through a physical connection. Send the second indication signal to instruct the corresponding DRAM memory interface to control the corresponding DRAM RANK to enter a low power consumption state after the preset time period, so as to save power consumption.
  • the reason why the DRAM memory interface can control the DRAM to enter the low-power state after a preset period of time is that if there is no DRAM command to be executed currently, it does not mean that no new commands will be received in a short time (multiple Command is issued, there may be a short time difference), in order to reduce the frequent wake-up operations caused by entering the low-power state prematurely, you can confirm that no more commands need to be executed after a preset period of time and in the process. Determining to enter a low power consumption state is more conducive to ensuring the low power consumption and low latency of the system.
  • the second indication signal is a low-level signal; the first DRAM memory interface is specifically configured to: when the low-level signal is received, control the first DRAM RANK enters a low power consumption state.
  • the low-level output can be realized through the first physical connection, thereby instructing the first DDR memory interface to control the corresponding DRAM Rank to enter the working state by pulling the low level.
  • the processing module in the processing device sends a low-level signal through a first physical connection.
  • a low-level output can be realized through the first physical connection, so as to send a low-level signal to the first DDR.
  • the memory interface instructs and controls the corresponding DRAM RANK to enter the low power consumption state after a preset time period, and the first DDR memory interface can continue to control the first DRAM RANK to maintain the low power consumption state while monitoring the low level maintenance. Therefore, the first DRAM RANK can quickly enter the working state when there is data to read and write, and when there is no data to read and write, it will enter the low power consumption mode after a certain wait, while ensuring the low power consumption and low time of the processing device. Ductility.
  • the first DRAM RANK is a first double-rate synchronous dynamic random access memory DDR RANK;
  • the first DRAM memory interface includes a DDR controller and a DDR physical interface PHY;
  • a DRAM memory interface is specifically used to control the first DDR RANK to enter the power-off state or the self-refresh state through the DDR PHY when the DDR controller receives the low-level signal, and control all The DDR PHY enters a low power consumption state.
  • the process of controlling the DDR RANK to enter a low power consumption state includes first controlling the first DDR RANK to exit power off through the DDR PHY State or self-refresh state, and then control DDRPHY to enter a low power state, such as DFI low power state.
  • it may also include, after the preset time period, first control the first DDR RANK to exit the power-off state or self-refresh state through the DDR PHY, and then control the DDR PHY to enter and remain in the DFI during the second time period In a low power consumption state, the second time period is a time period during which the first physical connection maintains a low level.
  • the first DRAM memory interface is connected to M first DRAM RANKs, where M is an integer greater than or equal to 2; the processing module and the first DRAM memory interface pass through The M first physical connections are directly connected, wherein one first physical connection corresponds to one first DRAM RANK.
  • the device and the first DRAM RANK are on different packaging substrates.
  • the processing device and the DRAM can be distributed on different chips, that is, the processing device can flexibly expand the DRAM memory to meet different application scenarios; it can also avoid the processing device and the DRAM from being too large on the same chip.
  • the packaging is difficult to achieve; at the same time, because the DRAM production process is relatively behind the SOC, therefore, the use of external expansion can save costs.
  • an embodiment of the present invention provides a processing method, which is characterized in that it includes: a processing module determines whether the first command is a dynamic random access memory DRAM read/write command; if the first command is a DRAM read/write command, The processing module sends a first indication signal to the first DRAM memory interface through the first physical connection; the processing module is connected to the N DRAM memory interfaces through a bus, and the processing module is also connected through the physical connection.
  • the first DRAM memory interface is the memory interface corresponding to the first command among the N DRAM memory interfaces, and the first An indication signal is used to instruct the first DRAM module RANK to enter the working state;
  • the first physical connection is a physical connection between the processing module and the first DRAM memory interface;
  • the first DRAM RANK is the DRAM RANK connected to the first DRAM memory interface; when the first DRAM memory interface receives the first indication signal, it controls the first DRAM RANK to enter the working state.
  • the method further includes: the method further includes: receiving, through the first DRAM memory interface, the first command issued by the processing module through the bus, and When it is determined that the first DRAM RANK enters the working state, the first command is issued to the first DRAM RANK.
  • the method further includes: if the first command is a DRAM read/write command, judging the first DRAM memory interface corresponding to the first command according to the address of the first command.
  • the first indication signal is a high-level signal; when the first DRAM memory interface receives the first indication signal, the first DRAM RANK is controlled to enter work Status, including:
  • the first DRAM memory interface controls the first DRAM RANK to enter the working state according to the high-level signal.
  • the first DRAM RANK is a first double-rate synchronous dynamic random access memory DDR RANK;
  • the first DRAM memory interface includes a DDR controller and a DDR physical interface PHY;
  • the first The DRAM memory interface controls the first DRAM RANK to enter the working state according to the high-level signal, which includes: when the DDR controller receives the high-level signal, controls the DDR PHY to exit DFI low Power consumption state, and control the first DDR RANK to exit the power-off state or the self-refresh state through the DDR PHY.
  • the method further includes: when it is not detected that the first command is sent through the bus or when the first DRAM RANK has executed and completed the first command,
  • the processing module sends a second indication signal to the first DRAM memory interface through the first physical connection, where the second indication signal is used to instruct the first DRAM RANK to enter a low power consumption state;
  • a DRAM memory interface controls the first DRAM RANK to enter a low power consumption state.
  • the second indication signal is a low level signal; when the first DRAM memory interface receives the second indication signal, it controls the first DRAM RANK to enter low
  • the power consumption state includes: when the first DRAM memory interface receives the low-level signal, controlling the first DRAM RANK to enter a low power consumption state.
  • the first DRAM RANK is a first double-rate synchronous dynamic random access memory DDR RANK;
  • the first DRAM memory interface includes a DDR controller and a DDR physical interface PHY;
  • controlling the first DRAM RANK to enter a low-power consumption state includes: when the DDR controller receives the low-level signal, The DDR PHY controls the first DDR RANK to enter a power-off state or a self-refresh state, and controls the DDR PHY to enter a low power consumption state.
  • the first DRAM memory interface is connected to M first DRAM RANKs, where M is an integer greater than or equal to 2; the processing module and the first DRAM memory interface pass through The M first physical connections are directly connected, wherein one first physical connection corresponds to one first DRAM RANK.
  • the processing module and the N DRAM memory interfaces are on the same packaging substrate, and are on a different packaging substrate from the first DRAM RANK.
  • this application provides a semiconductor chip, which may include:
  • a central processing unit coupled to the processing device, and a memory external to the processing device are provided.
  • this application provides a semiconductor chip, which may include:
  • the present application provides a system-on-chip SoC chip.
  • the SoC chip includes the above-mentioned first aspect and the processing device provided in combination with any one of the above-mentioned first aspects, coupled to the center of the processing device.
  • the chip system can be composed of chips, or include chips and other discrete devices.
  • the present application provides a processing device system.
  • the chip system includes: a processing device including the first aspect described above and the processing device provided in combination with any one of the foregoing first aspects, and including a processing device coupled to the processing device The central processing unit and the external memory chip of the processing device.
  • the chip system can be composed of chips, or include chips and other discrete devices.
  • the present application provides a terminal device, which includes the processing device provided in the foregoing first aspect and any one of the implementation manners of the foregoing first aspect, and an external memory of the processing device, wherein: The processing device and the external memory of the processing device are provided in different semiconductor chips.
  • the present application provides a terminal device, which includes the processing device provided in the first aspect and any one of the implementation manners of the first aspect, the external memory of the processing device, and the coupling In the central processing unit of the processing device.
  • the external memory is used to store necessary program instructions and data
  • the central processing unit is used to run a general operating system necessary for the terminal device, and is used to couple with the processing device to complete related processing functions in the processing device.
  • the terminal device may also include a communication interface for the terminal device to communicate with other devices or a communication network.
  • the present application provides a computer storage medium that stores a computer program, and when the computer program is executed by a processor, it can implement any one of the above second aspect and in combination with the above second aspect The process performed by the processing module and the first DRAM memory interface in the processing method provided by the implementation manner.
  • an embodiment of the present invention provides a computer program, the computer program includes instructions, when the computer program is executed by a computer, the computer can execute the second aspect and any combination of the second aspect described above.
  • Fig. 1 is a hardware structure diagram of a SoC+DRAM provided by an embodiment of the present invention.
  • Fig. 2 is a schematic structural diagram of a processing device provided by an embodiment of the present invention.
  • Fig. 3 is a schematic structural diagram of another processing device provided by an embodiment of the present invention.
  • Fig. 4 is a schematic structural diagram of another processing device provided by an embodiment of the present invention.
  • Fig. 5 is a schematic structural diagram of an early wake-up module provided by an embodiment of the present invention.
  • Fig. 6 is a schematic flowchart of a processing method provided by an embodiment of the present invention.
  • component used in this specification are used to denote computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution.
  • the component may be, but is not limited to, a process, a processor, an object, an executable file, an execution thread, a program, and/or a computer running on a processor.
  • the application running on the computing device and the computing device can be components.
  • One or more components may reside in processes and/or threads of execution, and components may be located on one computer and/or distributed among two or more computers.
  • these components can be executed from various computer readable media having various data structures stored thereon.
  • a component can be based on a signal having one or more data packets (for example, data from two components interacting with another component between a local system, a distributed system, and/or a network, such as the Internet that interacts with other systems through signals) Communicate through local and/or remote processes.
  • data packets for example, data from two components interacting with another component between a local system, a distributed system, and/or a network, such as the Internet that interacts with other systems through signals
  • SoC System-on-Chip
  • SoC is called system-on-chip, also called system-on-chip, which means that it is a product, an integrated circuit with a dedicated target, which contains a complete system and has embedded software The entire contents of.
  • SoC is a kind of technology to realize the whole process from determining the system function to dividing the software/hardware and completing the design.
  • RAM Random Access Memory
  • Random Access Memory RAM can be further divided into two categories: Static Random Access Memory (SRAM) and Dynamic Random Access Memory (DRAM).
  • SRAM Static Random Access Memory
  • DRAM Dynamic Random Access Memory
  • SRAM Static Random Access Memory
  • DRAM Dynamic Random Access Memory
  • DDR SDRAM Double Data Rate Synchronous Dynamic Random Access Memory
  • DDR memory is developed on the basis of SDRAM memory, and still uses the SDRAM production system. As far as memory manufacturers are concerned, they only need to make slight improvements to the equipment for manufacturing ordinary SDRAM to realize the production of DDR memory, which can effectively reduce costs.
  • DDR technology implements two read/write operations in one clock cycle, that is, one read/write operation is performed on the rising and falling edges of the clock.
  • Time delay (Latency), its unit is generally ns.
  • the time delay in this application may include one-way delay (One-way Latency) and round trip delay (Round Trip Latency).
  • the Latency for the DRAM write command in this application refers to the time interval between the processing module sending the first command (DRAM write command) and the DRAM writing data according to the DRAM write command, which can be understood as a one-way delay;
  • the latency of the DRAM read command refers to the time interval between the processing module sending the first command (DRAM read command) and the DRAM feeding back the read data to the processing module according to the DRAM read command and the processing module receiving the data, which can be understood as the round trip delay.
  • Module RANK the "R” in the “module configuration” means “RANK”, which can be controlled by the chip select signal to select a die for access.
  • “2R” refers to 2 RANKs (Number of ranks of memory installed).
  • the DRAM connected to a DRAM interface in this application may be a memory structure including two RANKs, of course, it may also be a structure including one RANK or even multiple RANKs, which is not specifically limited in this application.
  • DRAM DDR
  • DDR DDR
  • FIG. 1 is a hardware structure diagram of a SoC+DRAM provided by an embodiment of the present invention.
  • the system-on-chip SoC of a mobile terminal (smartphone, palmtop computer, etc.) consists of data processing subsystems such as the application processor 120, the media system 122, and the communication system 124 through the bus 200, the memory controller Memory Controller 300, and the DDR physical interface PHY 302 A system connected to off-chip DRAM 304.
  • Off-chip DRAM 304 serves as the access center for SoC programs and data
  • memory controllers Memory Controller 300 and DDR PHY 302 serve as access to off-chip DRAM 304.
  • Their energy efficiency is critical to the energy efficiency of mobile terminals.
  • DFI protocol DDRPHY interface standard protocol
  • DFI Low Power interface DFI Low Power interface
  • DRAM Low Power Double Data Rate DRAM, which has two low power consumption modes: Power Down and Self refresh.
  • Memory Controller 300 When the command to read and write DRAM reaches Memory Controller 300, Memory Controller 300 will control DDR PHY 302 to exit DFI Low Power and DRAM 304 to exit Power Down&Self Refresh;
  • DDR PHY 302 and DRAM 304 are usually not allowed to advance and retreat DFI Low Power and DRAM Power Down&Self Refresh frequently, so as not to affect performance; but DDR PHY 302 and DRAM 304 do not frequently advance and retreat DFI Low Power and DRAM Power Down&Self Refresh.
  • the time spent in the low-power state is relatively small, leading to an increase in power consumption; thus, both situations affect the energy efficiency ratio.
  • the technical problems to be solved in this application include how to reduce the latency caused by the time of exiting DFI Low Power and DRAM Power Down & Self Refresh, that is, how to ensure both low power consumption and low latency of the memory system.
  • FIG. 2 is a schematic structural diagram of a processing device provided by an embodiment of the present invention.
  • the processing device 40 may include one or more processing modules 401 (2 are taken as an example in FIG. 2) and N dynamic modules.
  • Random access memory DRAM memory interface 402 (four as an example in FIG. 2), where any processing module 401 and N DRAM memory interfaces 402 are connected by a bus, and any processing module 401 is also physically connected
  • the lines are respectively directly connected to the N DRAM memory interfaces 402, where N is an integer greater than or equal to 1.
  • At least one DRAM RANK 403 is connected to each DRAM memory interface, and one or more processing modules 401 and N DRAM memory interfaces can be located on an integrated circuit substrate, that is, the processing device in the embodiment of the present invention 40.
  • the off-chip DRAM RANK 403 uses the DRAM memory interface 402 as the access center for the programs and data of the processing module 401. among them,
  • the processing module 401 (which can be any one of 401 in FIG. 2) is used to determine whether the first command is a dynamic random access memory DRAM read and write command, and the first command is a command sent by the processing module through the bus; if The first command is a DRAM read and write command, and a first instruction signal is sent to a first DRAM memory interface through a first physical connection, and the first DRAM memory interface is one of the N DRAM memory interfaces and the first instruction signal.
  • the first indication signal is used to instruct the first DRAM module RANK to enter the working state; wherein, the first physical connection is the connection between the processing module and the first DRAM memory interface Physical connection. It should be noted that any DRAM memory interface 402 in FIG.
  • any DRAM RANK in FIG. 2 may be the first DRAM RANK.
  • the first command The memory interface to be sent is the first DRAM memory interface
  • the DRAM RANK connected to the first DRAM memory interface is the first DRAM RANK.
  • Any processing module 401 in the embodiment of the present invention may be a processor, a coprocessor, a modem, a multimedia system, and other devices or devices with DRAM read and write capabilities, which is not specifically limited in this application.
  • the timing for the processing module 401 to determine whether the first command is a dynamic random access memory DRAM read/write command may include sending the first command through the bus, and may also include the preset before sending the command through the bus. The time may also include a specified period of time after the first command is sent through the bus.
  • the timing of the trigger to determine whether the first command is a DRAM read/write command can be flexibly changed according to actual application scenarios, which is not specifically limited in this application. It can be understood that triggering the judgment at the same time or before the preset time when the first command is sent through the bus is more conducive to reducing the time delay of the first command.
  • judging whether the first command is a DRAM read and write command may include the following three cases: 1. Only judge whether the first command is a DRAM read command, that is, when the first command is sent through the bus, it is judged Whether the first command is a DRAM read command, if so, continue to perform subsequent judgments and instructions; 2. Only judge whether the first command is a DRAM write command, that is, when the first command is sent through the bus, judge whether the first command is It is a DRAM write command. If it is, continue to perform subsequent judgments and instructions; 3.
  • judge whether the first command is a DRAM read or write command that is, when the first command is sent through the bus
  • judge whether the first command is DRAM Read command or DRAM write command, if it is DRAM read command or DRAM write command, continue to perform subsequent judgment and instruction operations.
  • DRAM Read command or DRAM write command if it is DRAM read command or DRAM write command.
  • the first DRAM memory interface 402 is configured to control the first DRAM RANK to enter a working state when the first indication signal is received.
  • controlling the first DRAM RANK to enter the working state can be instructing the first DRAM RANK to exit the low power consumption state, or it can be confirming that the first DRAM RANK is currently working, that is, no matter what state the first DRAM RANK was in before, as long as it can It is sufficient to ensure that it can be controlled to enter the working state when the first indication signal is received.
  • DRAM RANK DRAM RANK
  • the working state and low power consumption state of DRAM are two different states.
  • the DRAM RANK can be read and written by the processing module in this application, that is, data can be read or written from the DRAM RANK;
  • the DRAM RANK is in a low power consumption state,
  • the DRAM RANK cannot be read and written by the processing module in this application, that is, data cannot be read or written from the DRAM RANK; and when the DRAM RANK is in a low-power state, the power consumption is lower than its In working condition.
  • DRAM RANK when DRAM RANK is DDR RANK, the low power consumption state of DDR RANK is Power Down or Self Refresh: and its working state refers to exiting the aforementioned Power Down or Self Refresh state, that is, it is not in Power Down or Self Refresh.
  • the working state of DDR PHY means that it can control the DRAM (DRAM RANK) it is connected to, read and write, and its low power consumption state means that it cannot be connected to the DRAM (DRAM RANK).
  • DRAM RANK performs control such as reading and writing.
  • the DDR PHY low-power mode is specifically the DFI low-power mode, and the working state refers to exiting the aforementioned DFI low-power mode. among them,
  • Self Refresh When there is no read/write access to DRAM, it is a low power consumption state of DRAM that can always let DRAM control refresh by itself (the refresh cycle is changed by DRAM according to changes in ambient temperature), and does not need to be periodically exited by SOC control. The SOC only needs to maintain the DRAM port signal to make the DRAM in a self-refresh state.
  • the processing module when the processing module needs to read or write data from a certain DRAM RANK, it can pass
  • the physical direct connection line with the corresponding DRAM memory interface directly sends an indication signal to the DRAM memory interface to instruct the corresponding DRAM RANK to enter the working state (for example, wake up in advance and exit the low power consumption mode).
  • the processing module in the prior art that needs to pass the command path of the bus, it starts to instruct the DRAM to enter the working state when the first command is sent and arrives at the DRAM memory interface, and after the instruction, a series of operations (such as control Logic, physical layer interface protocol, etc.) can control the DRAM to actually enter the working state, and the duration of the entire wake-up process causes the read and write delay of the first command.
  • a series of operations such as control Logic, physical layer interface protocol, etc.
  • the instruction signal can be directly sent to the DRAM memory interface through the added physical direct connection line, thereby instructing the DRAM memory interface to start a series of wake-up operations in advance. Therefore, the waiting time delay after the first command reaches the DRAM memory interface can be greatly reduced or even eliminated, thereby greatly ensuring the low power consumption and low time delay of the processing device.
  • the first DRAM memory interface 402 is further configured to: receive the first command issued by the processing module 401 via the bus, and when it is determined that the first DRAM RANK 403 enters the working state, set the first command A command is issued to the first DRAM RANK 403. That is, after the first DRAM memory interface 402 receives the first command sent by the processing module 401 through the bus, at this time, because the first DRAM RANK has already performed the wake-up operation in advance (there are two situations, the first is that the wake-up is completed, the first The second type is awakened in advance but not completed yet).
  • the first command can be normally sent to the first DRAM RANK for read and write operations.
  • the corresponding DRAM memory interface in the processing device not only receives the first indication signal sent by the processing module through the direct physical connection, but also receives the first command sent by the processing module through the bus (for example, for The read and write command of the first DRAM RANK), and after confirming that the first DRAM RANK has entered the working state, the command is issued to the first DRAM RANK for corresponding read and write operations.
  • the processing module 401 is further configured to, if the first command is a DRAM read and write command, determine the address of the first command according to the address of the first command.
  • the processing module 401 in the processing device 40 determines which DRAM memory interface the first command is sent to by using relevant valid information (such as address information) in the first command, thereby determining which physical direct connection is passed
  • the line sends the first indication signal, and then controls the corresponding DRAM memory interface to wake up the corresponding DRAM RANK and enter the working state.
  • the first indication signal is a high-level signal; the first DRAM memory interface is specifically configured to: when the high-level signal is received, control the first DRAM RANK enters the working state.
  • the processing module 401 may implement a high-level output through the first physical connection, and maintain the high-level output for a first period of time; the first DRAM memory interface 402 is specifically used to The high-level output controls the first DRAM RANK 403 to enter and maintain the working state in the first time period.
  • the specific indication manner of the first indication signal in this application can be multiple, for example, the preset indication signal, the preset indication information, etc., can all instruct the first DRAM memory interface to perform an early wake-up operation.
  • the instruction method in the embodiment of the present invention is that the processing module 401 in the processing device 40 sends a high-level signal through the first physical connection, for example, to achieve a high-level output, thereby pulling a high level to the first
  • the DRAM memory interface 402 instructs to control the corresponding DRAM RANK 403 to enter the working state, and the first DRAM memory interface will continue to control the first DRAM RANK 403 to remain in the working state while monitoring that the high level is maintained. Therefore, the first DRAM RANK can quickly enter the working state when there is data reading and writing, and at the same time, the low power consumption and low latency of the processing device can be ensured.
  • the first DRAM RANK 403 is the first double-rate synchronous dynamic random access memory DDR RANK; as shown in FIG. 3, FIG. 3 is a structure of another processing device provided by an embodiment of the invention
  • the first DRAM memory interface 402 includes a DDR controller and a DDR physical interface PHY; the first DDR memory interface 402 is specifically used to control the DDR when the DDR controller receives the high-level signal.
  • the PHY exits the DFI low power consumption state, and controls the first DDR RANK403 to exit the power-off state or the self-refresh state through the DDRPHY.
  • the DRAM memory interface includes DDR controller and DDR PHY
  • the specific process of controlling DDR RANK to enter the working state includes first controlling DDR PHY to exit the low-power state, such as the DDR physical layer interface (The DDR PHY Interface, DFI) low power consumption state, and then control the first DDR RANK to exit the power-off state or self-refresh state by exiting the DDR PHY in the DFI low power state.
  • DFI DDR PHY Interface
  • the processing module 401 is further configured to use the first physical connection when sending the first command is not detected or when the first command is not a DRAM read/write command.
  • the line sends a second indication signal to the first DRAM memory interface 402, where the second indication signal is used to instruct the first DRAM RANK 403 to enter a low power consumption state; the first DRAM memory interface 402 is used for receiving the second In the case of an indication signal, the first DRAM RANK 403 is controlled to enter a low power consumption state.
  • the first DRAM memory interface 402 when it receives the second indication signal, it may control the first DRAM RANK 403 to enter the low power consumption state after a preset time period, for example, the preset time period is 100ns, 200ns Etc., this application does not specifically limit this. That is, when there is no first command to send, or there is a first command to send but the corresponding DRAM RANK has been executed, the processing module can send a second instruction to the corresponding DRAM memory interface through a physical connection The signal indicates that the corresponding DRAM memory interface controls the corresponding DRAM RANK to enter a low power consumption state immediately or after a preset period of time, so as to save power consumption.
  • the reason why the DRAM is controlled to enter the low-power state after the preset time period is that if there is no DRAM command to be executed currently, it does not mean that no new command will be received in a short time (multiple commands are issued, there may be a short
  • the first DRAM memory interface receives the second indication signal, other conditions are also judged to confirm that there will be no more DRAM commands to be executed in a short period of time, and then further control the DRAM to enter the low state. Power consumption mode.
  • the second indication signal is a low-level signal
  • the first DRAM memory interface is specifically configured to: when the low-level signal is received, control the first DRAM RANK enters a low power consumption state.
  • the processing module 401 may implement low-level output through the first physical connection, and maintain the low-level output during the second time period; the first DRAM memory interface 402 is specifically used to Low-level output, after the preset period of time, the first DRAM RANK 403 is controlled to enter and maintain a low power consumption state in the second period of time.
  • the processing module in the processing device sends a low-level signal through the first physical connection, for example, realizes low-level output, thereby instructing the first DRAM memory interface to control the corresponding DRAM by pulling the low level.
  • the RANK enters the low power consumption state, and the first DRAM memory interface continues to control the first DRAM RANK to maintain the low power consumption state while monitoring that the low level is maintained.
  • the first DRAM RANK can quickly enter the working state when there is data read and write, and when there is no data read or write, it can enter the low power consumption mode immediately or after a certain wait, while ensuring the low power consumption of the processing device And low latency.
  • the first DRAM RANK 403 is the first double-rate synchronous dynamic random access memory DDR RANK; referring to FIG. 3, the first DRAM memory interface 402 includes a DDR controller and a DDR physical interface PHY; The first DRAM memory interface 402 is specifically configured to control the first DDR RANK to enter the power-off state or the self-refresh state through the DDR PHY when the DDR controller receives the low-level signal, and Control the DDR PHY to enter a low power consumption state.
  • the first DRAM memory interface 402 is specifically configured to control the first DRAM through the DDR PHY after the preset period of time when the DDR controller receives the low-level output.
  • a DDR RANK enters a power-off state or a self-refresh state, and controls the DDR PHY to enter and maintain the DFI low power consumption state during the second time period. That is, when DRAM RANK is DDR RANK, and the DRAM memory interface includes DDR controller and DDR PHY, the process of controlling DDR RANK to enter the low power consumption state includes, immediately or after the preset time period, first through DDR PHY control The first DDR RANK exits the power-off state or the self-refresh state, and then controls the DDR PHY to enter and maintain the DFI low power consumption state in the second time period.
  • the second time period is when the first physical connection maintains a low level period.
  • the first DRAM memory interface 402 is connected to M first DRAM RANKs, where M is an integer greater than or equal to 2; the processing module 401 and the first DRAM memory interface 402 pass through M RANKs.
  • the first physical connection is directly connected, where one first physical connection corresponds to a first DRAM RANK.
  • the DRAM RANK is the unit of controlling the DRAM to enter the working state or enter the low power consumption state. Therefore, multiple physical connections need to be connected between the processing module and the first DRAM memory interface, so that one physical connection can control one DRAM RANK correspondingly, and improve the accuracy of control.
  • the chip and the first DRAM RANK are on different packaging substrates.
  • the processing device and the DRAM can be distributed on different chips, that is, the processing device can flexibly expand the DRAM memory to meet different application scenarios; It can also avoid the problem that the processing device and the DRAM are too large on the same chip and the packaging is difficult to achieve; at the same time, because the DRAM production process is relatively behind the SOC, the use of external expansion can save costs.
  • the processing module 401 of the processing device 40 in this application can be any processing device or processing device (such as a processor, a coprocessor, a modem, a multimedia system, etc.) that has the ability to read and write to DRAM. Therefore, the processing module 401 in the present application not only implements the corresponding functions of the embodiments in FIGS. 2 to 3, but also needs to implement the functions of a processor, a coprocessor, a modem, a multimedia system, etc. Therefore, in order not to affect the function of the processing module as the aforementioned device or device, the embodiment of the present invention provides a method of adding an early wake-up module 110 (Fast Wake Up module) to the processing module 401 to implement the early wake-up function of the processing module 401.
  • an early wake-up module 110 Frast Wake Up module
  • FIG. 4 is a schematic structural diagram of another processing device provided by an embodiment of the present invention.
  • the processing modules 401 are Master100, Master102, and Master104 as an example
  • the DRAM memory interface 402 is Memory Controller 300A+ DDR PHY 302A, Memory Controller 300B+DDR PHY 302B, Memory Controller 300C+DDR PHY 302C and Memory Controller 300D+DDR PHY 302D as examples, take DRAM 304A, DRAM 304B, DRAM 304C, DRAM 304D corresponding to the DRAM memory interface as examples.
  • the processing device implements the early wake-up function in this application is described based on actual application scenarios. According to the functions performed by different functional modules in the processing device 40 in time sequence, the following steps may be included:
  • Each Fast Wake Up module 110 will generate an indication signal for each rank of each channel to request exit DFI Low Power and DRAM Power Down & Self Refresh, as shown in Figure 4: ch0_rank0_exit and ch0_rank1_exit are the rank0 and rank0 of requesting channel0, respectively The indication signal for rank1 to exit low power consumption is hardwired from the Fast Wake Up module 110 to the Memory Controller (300A) of channel 0; ch1_rank0_exit and ch1_rank1_exit are the indication signals for requesting rank0 and rank1 of channel1 to exit low power consumption, respectively.
  • ch2_rank0_exit and ch2_rank1_exit are indication signals for requesting rank0 and rank1 of channel2 to exit the low-power consumption, and hardwired directly from the Fast Wake Up module 110 Connected to the Memory Controller (300C) of channel2;
  • ch3_rank0_exit and ch3_rank1_exit are indication signals for requesting rank0 and rank1 of channel3 to exit low power consumption, and are hard-wired from the Fast Wake Up module 110 to the Memory Controller (300D) of channel3;
  • the Fast Wake Up module 110 When the Fast Wake Up module 110 does not detect a read command to access a certain rank of a certain channel, it will exit the channel's request for that rank. DFI Low Power and DRAM Power Down&Self Refresh indicator signals are maintained low, and wait for detection At that time, the indicator signal of the rank of the channel will be pulled high, and the Memory Controller (300A, 300B, 300C, 300D) will control the corresponding channel to exit DFI Low Power and the corresponding channel+rank to exit DRAM Power Down&Self Refresh according to the raised indicator signal;
  • the Fast Wake Up module 110 (integrated in these Maters subsystems) is added at the exit of the Latency-sensitive Masters (100, 102, 104) to identify read commands to access DRAM in advance and use direct connection Control the read command in advance before it reaches the Memory Controller 300 (the advance amount is the command path delay of Masters (100, 102, 104) to the Memory Controller 300 minus the direct connection delay) to wake up the DFI Low Power of the corresponding channel and the corresponding channel+rank DRAM Power Down&Self Refresh, so that after the DRAM read command reaches the Memory Controller 300, the time required to exit the low power feature is shortened, thereby reducing the impact of the low power feature on latency, and then waiting to enter DFI low power, DRAM Power Down time and waiting to enter the DRAM Self Refresh time configuration can be reduced, advance and retreat DFI low power and DRAM Power Down&Self Refresh can be more frequent, and ultimately achieve the purpose of improving energy efficiency;
  • the exit low-power consumption indication signal is divided into channels and ranks, so that other channel+ranks are not awakened when they are not accessed, thereby achieving the purpose of saving power consumption; and whether Fast Wake Up is enabled
  • the function register can be configured to realize the effect of selecting whether to enable or not according to the actual business scenario, so as to achieve the best energy efficiency ratio of the corresponding scenario; further, the maintenance time register is configurable after the exit low power consumption indicator signal is pulled high to realize the Cancellation is too early and when the command reaches Memory Controller 300, Memory Controller 300 has re-entered DFI Low Power and DRAM Power Down&Self Refresh, so as to avoid the maintenance time being too long and cause DFI Low Power and DRAM Power Down&Self Refresh to be delayed next time. Effect, so as to achieve the purpose of performance improvement and power consumption reduction.
  • FIG. 5 is a schematic structural diagram of an early wake-up module provided by an embodiment of the present invention.
  • the early wake-up module 110 may be located in a processing module 401.
  • the processing module 401 may be a processor, a coprocessor, a modem, a multimedia system, and other devices or devices with DRAM read and write capabilities.
  • the early wake-up module includes a detector 500, an address index code register 502, a comparator 504, a timer 506, and a register 508 for controlling and maintaining level signals. among them,
  • the detector 500 judges whether it is a read command to access DRAM according to the address and attributes of the first command (command_info from Masters (100, 102, 104) to the Fast Wake Up module); if the read command channel is not Merged, the command_info connected to the Fast Wake Up module 110 can only be a read command related signal, so you only need to judge whether it is a command to access DRAM according to the command address and attribute signal; if the read and write command channels are merged (some Master designs In order to reduce the connection with the downstream module, the read and write command channels will be combined. At this time, the read and write time-sharing command lines are multiplexed.
  • the read and write type indicates the signal to distinguish the read command or the write command).
  • the command_info (that is, part or all of the information in the first command) connected to the command_info of the Fast Wake Up module 110 determines whether it is a read command, and then determines whether it is a read command to access DRAM according to the command address and attribute signal.
  • the address index code register 502 according to the channel arrangement order and channel interleaving granularity information in the address mapping information address_map_info (configured by the register), obtains the bit field indicating which channel belongs to which bit field of the address, and the code of each channel;
  • the address index code register 502 according to the rank mapping and rank interleaving information in the address mapping information address_map_info (configured by the register), obtains the bit field indicating which rank belongs to which bit field of the address, and the code of each rank;
  • the comparator 504 determines that it is a read command to access the DRAM, it first compares the bits of the read command address of the access DRAM indicating which channel it belongs to and compares it with the codes of each channel to find out which channel the read DRAM command is accessing ;
  • the comparator 504 compares the bit indicating which rank belongs to the read command address of the access DRAM with the code of each rank to find out which rank the read DRAM command is accessing;
  • the register 508 that controls and maintains the level signal pulls the exit low power consumption indication signal of the channel+rank accessed by the read DRAM command to high, and triggers the corresponding channel+rank timer 506 to be determined by wakeup_keep_info (configured by the register) The number of cycles starts to count down. Before counting to 0, the exit low power consumption indication signal of the corresponding channel+rank remains high. After counting to 0, the exit low power consumption indication signal of the corresponding channel+rank is pulled down;
  • FIG. 6 is a schematic flowchart of a processing method provided by an embodiment of the present invention.
  • the processing method is applicable to any of the processing apparatuses in FIGS. 2 to 5 and the equipment including the processing apparatus.
  • the method may include the following steps S601-S604.
  • the processing module determines whether the first command is a dynamic random access memory DRAM read and write command
  • the processing module is connected to the N DRAM memory interfaces through a bus, and the processing module is also directly connected to the N DRAM memory interfaces through physical connections, where N is an integer greater than or equal to 1;
  • a DRAM memory interface is the memory interface corresponding to the first command among the N DRAM memory interfaces, and the first indication signal is used to instruct the first DRAM module RANK to enter the working state;
  • the first physical The connection is a physical connection between the processing module and the first DRAM memory interface;
  • the first DRAM RANK is the DRAM RANK connected to the first DRAM memory interface;
  • the first DRAM memory interface controls the first DRAM RANK to enter a working state.
  • S604 Receive the first command issued by the processing module through the bus through the first DRAM memory interface, and when it is determined that the first DRAM RANK enters the working state, set the first command The command is issued to the first DRAM RANK.
  • the method further includes: if the first command is a DRAM read/write command, judging the first DRAM memory interface corresponding to the first command according to the address of the first command.
  • the first indication signal is a high-level signal; when the first DRAM memory interface receives the first indication signal, the first DRAM RANK is controlled to enter work
  • the state includes: the first DRAM memory interface controls the first DRAM RANK to enter the working state according to the high-level signal.
  • the first DRAM RANK is a first double-rate synchronous dynamic random access memory DDR RANK;
  • the first DRAM memory interface includes a DDR controller and a DDR physical interface PHY;
  • a DRAM memory interface controls the first DRAM RANK to enter the working state according to the high level signal, including: the DDR controller controls the DDR PHY to exit DFI when the high level signal is received Low power consumption state, and controlling the first DDR RANK to exit the power-off state or the self-refresh state through the DDR PHY.
  • the method further includes: when it is not detected that the first command is sent through the bus or when the first DRAM RANK has executed and completed the first command,
  • the processing module sends a second indication signal to the first DRAM memory interface through the first physical connection, where the second indication signal is used to instruct the first DRAM RANK to enter a low power consumption state;
  • a DRAM memory interface controls the first DRAM RANK to enter a low power consumption state.
  • the second indication signal is a low level signal; when the first DRAM memory interface receives the second indication signal, it controls the first DRAM RANK to enter low
  • the power consumption state includes: when the first DRAM memory interface receives the low-level signal, controlling the first DRAM RANK to enter a low power consumption state.
  • the first DRAM RANK is a first double-rate synchronous dynamic random access memory DDR RANK;
  • the first DRAM memory interface includes a DDR controller and a DDR physical interface PHY;
  • controlling the first DRAM RANK to enter a low-power consumption state includes: when the DDR controller receives the low-level signal, The DDR PHY controls the first DDR RANK to enter a power-off state or a self-refresh state, and controls the DDR PHY to enter a low power consumption state.
  • the first DRAM memory interface is connected to M first DRAM RANKs, where M is an integer greater than or equal to 2; the processing module and the first DRAM memory interface pass through The M first physical connections are directly connected, wherein one first physical connection corresponds to one first DRAM RANK.
  • the processing module and the N DRAM memory interfaces are on the same packaging substrate, and are on a different packaging substrate from the first DRAM RANK.
  • An embodiment of the present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program includes part or all of the steps of any one of the above method embodiments when executed.
  • the embodiment of the present invention also provides a computer program, the computer program includes instructions, when the computer program is executed by a computer, the computer can execute part or all of the steps of any processing method.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the above-mentioned units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or integrated. To another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
  • the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc., specifically a processor in a computer device) execute all or part of the steps of the above methods in the various embodiments of the present application.
  • the aforementioned storage media may include: U disk, mobile hard disk, magnetic disk, optical disk, read-only memory (Read-Only Memory, abbreviation: ROM) or Random Access Memory (Random Access Memory, abbreviation: RAM), etc.
  • U disk mobile hard disk
  • magnetic disk magnetic disk
  • optical disk read-only memory
  • Read-Only Memory abbreviation: ROM
  • Random Access Memory Random Access Memory

Abstract

Disclosed in the embodiments of the present invention are a processing apparatus, a method, and a related device. The processing apparatus comprises processing modules and N dynamic random access memory (DRAM) memory interfaces, the processing module being connected to the N DRAM memory interfaces by means of a bus, and the processing modules being also directly connected to the N DRAM memory interfaces by means of physical wires, respectively, wherein the processing module is used to determine whether a first command is a DRAM read/write command, and if the first command is a DRAM read/write command, send, by means of a first physical wire, a first indication signal to a first DRAM memory interface, the first DRAM memory interface being used to control the first DRAM rank to enter a working state upon receiving the first indication signal. The present application ensures low power consumption and low time delay of a processing apparatus.

Description

一种处理装置、方法及相关设备Processing device, method and related equipment 技术领域Technical field
本申请涉及内存处理技术领域,尤其涉及一种处理装置、方法及相关设备。This application relates to the technical field of memory processing, and in particular to a processing device, method and related equipment.
背景技术Background technique
内存(Memory)是数据处理设备(如计算机、移动终端等)的重要组成部分,Memory的作用是暂时存放中央处理器(Central Processing Unit,CPU)中的运算数据,以及与硬盘等外部存储器交换的数据。由于CPU中程序的运行都是在内存中进行的,因此内存的性能对数据处理设备的性能影响非常大。Memory (Memory) is an important part of data processing equipment (such as computers, mobile terminals, etc.). The function of Memory is to temporarily store the calculation data in the Central Processing Unit (CPU) and exchange it with external storage such as hard disks. data. Since the programs in the CPU are all executed in the memory, the performance of the memory has a great influence on the performance of the data processing device.
在现有的数据处理设备中,通常采用同步动态随机存储器(Dynamic Random Access Memory,DRAM)介质作为内存来存放CPU等数据处理系统运行所需的代码和数据。DRAM具有较大的容量和较高的读写速度,能够较好的满足数据处理系统对内存的要求。但是,由于DRAM使用电容存储,为了保证数据不丢失,在运行时需要保证持续的供电和刷新,进而产生大量的功耗。有数据表明,使用DRAM内存功耗约占计算机系统整体功耗的40%。由此可见,优化内存系统的功耗,对提高整个数据处理系统功耗有着重要的意义。In existing data processing equipment, a synchronous DRAM (Dynamic Random Access Memory, DRAM) medium is usually used as a memory to store codes and data required for the operation of a data processing system such as a CPU. DRAM has a larger capacity and a higher read and write speed, which can better meet the memory requirements of the data processing system. However, because DRAM uses capacitor storage, in order to ensure that data is not lost, it is necessary to ensure continuous power supply and refresh during operation, which in turn generates a large amount of power consumption. Data show that the use of DRAM memory power consumption accounts for about 40% of the overall power consumption of the computer system. It can be seen that optimizing the power consumption of the memory system is of great significance to improving the power consumption of the entire data processing system.
现有技术中,降低DRAM功耗的主要手段是,在一段时间内没有监测到DRAM读写命令时则控制DRAM进入低功耗状态,而在DRAM处于低功耗状态下,CPU无法对DRAM进行读写操作;当CPU需要进行读写数据时,则需要经过一系列操作唤醒DRAM退出上述低功耗模式,以进入正常工作状态。这种方式虽然可以明显的降低系统的功耗,但由于DRAM进入低功耗模式后的唤醒时差,导致CPU读写数据的时延,最终影响整个数据处理设备的读写效率。In the prior art, the main method to reduce the power consumption of DRAM is to control the DRAM to enter a low power consumption state when the DRAM read and write commands are not monitored for a period of time. However, when the DRAM is in a low power consumption state, the CPU cannot perform the control on the DRAM. Read and write operations; when the CPU needs to read and write data, it needs to wake up the DRAM through a series of operations to exit the aforementioned low power consumption mode to enter the normal working state. Although this method can significantly reduce the power consumption of the system, the time difference in wake-up after the DRAM enters the low-power mode causes the delay of the CPU to read and write data, which ultimately affects the read and write efficiency of the entire data processing device.
发明内容Summary of the invention
本发明实施例提供了一种处理装置、方法及相关设备,能够保证内存处理过程中的低功耗性和低时延性。The embodiment of the present invention provides a processing device, a method and related equipment, which can ensure low power consumption and low time delay in the memory processing process.
第一方面,本发明实施例提供了一种处理装置,可包括,包括,处理模块和N个动态随机存取存储器DRAM内存接口,所述处理模块与所述N个DRAM内存接口之间通过总线相连,且所述处理模块还通过物理连线分别与所述N个DRAM内存接口直连,其中,N为大于或者等于1的整数;所述处理模块,用于:判断第一命令是否为动态随机存储器DRAM读写命令,所述第一命令为所述处理模块通过所述总线发送的命令;若所述第一命令为DRAM读写命令,通过第一物理连线向第一DRAM内存接口发送第一指示信号,所述第一DRAM内存接口为所述N个DRAM内存接口中与所述第一命令对应的内存接口,所述第一指示信号用于指示第一DRAM模组RANK进入工作状态;其中,所述第一物理连线为所述处理模块与所述第一DRAM内存接口之间的物理连线;所述第一DRAM RANK为所述第一DRAM内存接口所连接的DRAM RANK;所述第一DRAM内存接口,用于在接收到所述第一指示信号的情况下,控制所述第一DRAM RANK进入工作状态。In the first aspect, an embodiment of the present invention provides a processing device, which may include, a processing module and N dynamic random access memory DRAM memory interfaces, and a bus is used between the processing module and the N DRAM memory interfaces. And the processing module is also directly connected to the N DRAM memory interfaces through physical connections, where N is an integer greater than or equal to 1; the processing module is used to determine whether the first command is dynamic Random access memory DRAM read and write commands, the first command is a command sent by the processing module through the bus; if the first command is a DRAM read and write command, it is sent to the first DRAM memory interface through the first physical connection A first indicator signal, the first DRAM memory interface is a memory interface corresponding to the first command among the N DRAM memory interfaces, and the first indicator signal is used to instruct the first DRAM module RANK to enter a working state Wherein, the first physical connection is a physical connection between the processing module and the first DRAM memory interface; the first DRAM RANK is the DRAM RANK connected to the first DRAM memory interface; The first DRAM memory interface is configured to control the first DRAM RANK to enter a working state when the first indication signal is received.
本发明实施例,通过在处理装置中,增加处理模块与多个DRAM内存接口之间的物理 直连线路,在当处理模块需要从某个DRAM RANK中读取或写入数据时,则可以通过与对应的DRAM内存接口之间物理直连线路,直接向该DRAM内存接口发送指示信号,以提前指示对应的DRAM RANK进入工作状态(例如提前唤醒并退出低功耗模式)。不同于现有技术中的处理模块需要通过总线的命令通路,在将第一命令发送并到达DRAM内存接口时,才开始指示DRAM进入工作状态,且指示之后,则需要经过一系列操作(如控制逻辑、物理层接口协议等)才能控制DRAM真正进入工作状态,而整个唤醒过程的时长则造成了第一命令的读写时延。而本发明实施例中,可以在第一命令通过总线发出去的同时,通过增加的物理直连线路将指示信号直接送达DRAM内存接口,从而提前指示DRAM内存接口开始执行唤醒的一系列操作,因而可以大大减少甚至消除第一命令在到达DRAM内存接口之后的等待时延,从而极大的保证了处理装置的低功耗性和低时延性。In the embodiment of the present invention, by adding a physical direct connection line between the processing module and multiple DRAM memory interfaces in the processing device, when the processing module needs to read or write data from a certain DRAM RANK, it can pass The physical direct connection line with the corresponding DRAM memory interface directly sends an indication signal to the DRAM memory interface to instruct the corresponding DRAM RANK to enter the working state (for example, wake up in advance and exit the low power consumption mode). Different from the processing module in the prior art that needs to pass the command path of the bus, it starts to instruct the DRAM to enter the working state when the first command is sent and arrives at the DRAM memory interface, and after the instruction, a series of operations (such as control Logic, physical layer interface protocol, etc.) can control the DRAM to actually enter the working state, and the duration of the entire wake-up process causes the read and write delay of the first command. In the embodiment of the present invention, while the first command is sent through the bus, the instruction signal can be directly sent to the DRAM memory interface through the added physical direct connection line, thereby instructing the DRAM memory interface to start a series of wake-up operations in advance. Therefore, the waiting time delay after the first command reaches the DRAM memory interface can be greatly reduced or even eliminated, thereby greatly ensuring the low power consumption and low time delay of the processing device.
在一种可能的实现方式中,所述第一DRAM内存接口,还用于:接收所述处理模块通过所述总线下发的所述第一命令,在确定所述第一DRAM RANK进入工作状态的情况下,将所述第一命令下发给所述第一DRAM RANK。In a possible implementation manner, the first DRAM memory interface is further configured to: receive the first command issued by the processing module through the bus, and after determining that the first DRAM RANK enters the working state In the case of, the first command is issued to the first DRAM RANK.
本发明实施例,处理装置中相应的DRAM内存接口除了接收到处理模块通过直连物理连线发送的第一指示信号以外,还会接收到处理模块通过总线发送的第一命令(如针对第一DRAM RANK的读写命令),并会在确认第一DRAM RANK已经进入工作状态的情况下,将该命令下发给第一DRAM RANK进行相应的读写操作。In the embodiment of the present invention, the corresponding DRAM memory interface in the processing device not only receives the first instruction signal sent by the processing module through the direct physical connection, but also receives the first command sent by the processing module through the bus (for example, for the first DRAM RANK read and write command), and after confirming that the first DRAM RANK has entered the working state, the command is issued to the first DRAM RANK for corresponding read and write operations.
在一种可能的实现方式中,所述处理模块,还用于:若所述第一命令为DRAM读写命令,根据所述第一命令的地址确定所述第一命令对应的第一DRAM内存接口。In a possible implementation manner, the processing module is further configured to: if the first command is a DRAM read/write command, determine the first DRAM memory corresponding to the first command according to the address of the first command interface.
本发明实施例,处理装置中的处理模块通过第一命令中的地址判断该第一指令具体是发送给哪个DRAM内存接口的,从而判定通过哪个物理直连线路发送第一指示信号,进而控制对应的DRAM内存接口唤醒对应的DRAM RANK进入工作状态。In the embodiment of the present invention, the processing module in the processing device judges which DRAM memory interface the first instruction is specifically sent to by the address in the first command, thereby determining which physical direct connection line is used to send the first instruction signal, and then controls the corresponding The DRAM memory interface wakes up the corresponding DRAM RANK and enters the working state.
在一种可能的实现方式中,所述第一指示信号为高电平信号;所述第一DRAM内存接口具体用于:在接收到所述高电平信号的情况下,控制所述第一DRAM RANK进入工作状态。可选的,可通过第一物理连线实现高电平输出,从而通过拉高电平的方式向第一DRAM内存接口指示控制对应的DRAM RANK进入工作状态。In a possible implementation manner, the first indication signal is a high-level signal; the first DRAM memory interface is specifically configured to: when the high-level signal is received, control the first DRAM RANK enters the working state. Optionally, a high-level output can be realized through the first physical connection, thereby instructing the first DRAM memory interface to control the corresponding DRAM Rank to enter the working state by pulling the high level.
本发明实施例,处理装置中的处理模块通过第一物理连线发送高电平信号,例如,可通过第一物理连线实现高电平输出,从而通过拉高电平的方式向第一DRAM内存接口指示控制对应的DRAM RANK进入工作状态,并且第一DRAM内存接口可以在监测到高电平维持的同时,继续控制第一DRAM RANK保持在工作状态。从而可以实现第一DRAM RANK在有数据读写时快速进入工作状态,保证了处理装置的低功耗性和低时延性。In the embodiment of the present invention, the processing module in the processing device sends a high-level signal through a first physical connection. For example, a high-level output can be realized through the first physical connection, thereby sending a high-level signal to the first DRAM. The memory interface instructs and controls the corresponding DRAM RANK to enter the working state, and the first DRAM memory interface can continue to control the first DRAM RANK to remain in the working state while monitoring that the high level is maintained. Therefore, the first DRAM RANK can quickly enter the working state when there is data read and write, and the low power consumption and low latency of the processing device are ensured.
在一种可能的实现方式中,所述第一DRAM RANK为第一双倍速率同步动态随机存取存储器DDR RANK;所述第一DRAM内存接口包括DDR控制器和DDR物理接口PHY;所述第一DRAM内存接口具体用于:在所述DDR控制器接收到所述高电平信号的情况下,控制所述DDR PHY退出低功耗状态,并通过所述DDR PHY控制所述第一DDR RANK退出断电状态或自刷新状态。In a possible implementation manner, the first DRAM RANK is a first double-rate synchronous dynamic random access memory DDR RANK; the first DRAM memory interface includes a DDR controller and a DDR physical interface PHY; A DRAM memory interface is specifically used to: when the DDR controller receives the high-level signal, control the DDR PHY to exit the low power consumption state, and control the first DDR RANK through the DDR PHY Exit the power-off state or self-refresh state.
本发明实施例,当DRAM RANK为DDR RANK时,DRAM内存接口包括了DDR控制器和DDR PHY,则控制DDR RANK进入工作状态的过程包括先控制DDR PHY退出DFI 低功耗状态,再通过退出DFI低功耗状态下的DDR PHY控制第一DDR RANK退出断电状态或自刷新状态。In the embodiment of the present invention, when the DRAM RANK is DDR RANK, and the DRAM memory interface includes a DDR controller and DDR PHY, the process of controlling the DDR RANK to enter the working state includes first controlling the DDR PHY to exit the DFI low power state, and then exiting the DFI The DDR PHY in the low power consumption state controls the first DDR RANK to exit the power-off state or self-refresh state.
在一种可能的实现方式中,所述处理模块,还用于:在未检测到通过所述总线发送所述第一命令时或者当所述第一DRAM RANK已经执行完成所述第一命令时,通过所述第一物理连线向所述第一DRAM内存接口发送第二指示信号,所述第二指示信号用于指示所述第一DRAM RANK进入低功耗状态;所述第一DRAM内存接口,还用于在接收到所述第二指示信号的情况下,控制所述第一DRAM RANK进入低功耗状态。In a possible implementation manner, the processing module is further configured to: when it is not detected that the first command is sent through the bus or when the first DRAM RANK has executed and completed the first command , Sending a second indication signal to the first DRAM memory interface through the first physical connection, the second indication signal is used to instruct the first DRAM RANK to enter a low power consumption state; the first DRAM memory The interface is also used to control the first DRAM RANK to enter a low power consumption state when the second indication signal is received.
本发明实施例,当在没有第一命令需要发送,或者是有第一命令需要发送但是对应的DRAM RANK已经执行完成的情况下,则可以由处理模块通过物理连线,向对应的DRAM内存接口发送第二指示信号,指示对应的DRAM内存接口在预设时间段之后控制对应的DRAM RANK进入低功耗状态,以便于节省功耗。可选的,DRAM内存接口可以在预设时间段之后才控制DRAM进入低功耗状态的原因在于,若当前无DRAM命令需要执行,并不代表短时间内不会接收到新的命令(多个命令发出,可能存在短暂的时间差),为了减少因过早进入低功耗状态而导致的频繁唤醒操作,则可以通过在预设时间段之后,且在该过程中确认再无命令需要执行,才确定进入低功耗状态,更有利于保证系统的低功耗性和低时延性。In the embodiment of the present invention, when there is no first command to be sent, or when the first command needs to be sent but the corresponding DRAM RANK has been executed, the processing module can connect to the corresponding DRAM memory interface through a physical connection. Send the second indication signal to instruct the corresponding DRAM memory interface to control the corresponding DRAM RANK to enter a low power consumption state after the preset time period, so as to save power consumption. Optionally, the reason why the DRAM memory interface can control the DRAM to enter the low-power state after a preset period of time is that if there is no DRAM command to be executed currently, it does not mean that no new commands will be received in a short time (multiple Command is issued, there may be a short time difference), in order to reduce the frequent wake-up operations caused by entering the low-power state prematurely, you can confirm that no more commands need to be executed after a preset period of time and in the process. Determining to enter a low power consumption state is more conducive to ensuring the low power consumption and low latency of the system.
在一种可能的实现方式中,所述第二指示信号为低电平信号;所述第一DRAM内存接口具体用于:在接收到所述低电平信号的情况下,控制所述第一DRAM RANK进入低功耗状态。可选的,可通过第一物理连线实现低电平输出,从而通过拉低电平的方式向第一DDR内存接口指示控制对应的DRAM RANK进入工作状态。In a possible implementation manner, the second indication signal is a low-level signal; the first DRAM memory interface is specifically configured to: when the low-level signal is received, control the first DRAM RANK enters a low power consumption state. Optionally, the low-level output can be realized through the first physical connection, thereby instructing the first DDR memory interface to control the corresponding DRAM Rank to enter the working state by pulling the low level.
本发明实施例,处理装置中的处理模块通过第一物理连线发送低电平信号,例如,可通过第一物理连线实现低电平输出,从而通过拉低电平的方式向第一DDR内存接口指示控制对应的DRAM RANK在预设时间段之后进入低功耗状态,并且第一DDR内存接口可以在监测到低电平维持的同时,继续控制第一DRAM RANK保持在低功耗状态。从而可以实现第一DRAM RANK在有数据读写时快速进入工作状态,在无数据读写时,则经过一定的等待再进入低功耗模式,同时保证了处理装置的低功耗性和低时延性。In the embodiment of the present invention, the processing module in the processing device sends a low-level signal through a first physical connection. For example, a low-level output can be realized through the first physical connection, so as to send a low-level signal to the first DDR. The memory interface instructs and controls the corresponding DRAM RANK to enter the low power consumption state after a preset time period, and the first DDR memory interface can continue to control the first DRAM RANK to maintain the low power consumption state while monitoring the low level maintenance. Therefore, the first DRAM RANK can quickly enter the working state when there is data to read and write, and when there is no data to read and write, it will enter the low power consumption mode after a certain wait, while ensuring the low power consumption and low time of the processing device. Ductility.
在一种可能的实现方式中,所述第一DRAM RANK为第一双倍速率同步动态随机存取存储器DDR RANK;所述第一DRAM内存接口包括DDR控制器和DDR物理接口PHY;所述第一DRAM内存接口具体用于,在所述DDR控制器接收到所述低电平信号的情况下,通过所述DDR PHY控制所述第一DDR RANK进入断电状态或自刷新状态,并控制所述DDR PHY进入低功耗状态。In a possible implementation manner, the first DRAM RANK is a first double-rate synchronous dynamic random access memory DDR RANK; the first DRAM memory interface includes a DDR controller and a DDR physical interface PHY; A DRAM memory interface is specifically used to control the first DDR RANK to enter the power-off state or the self-refresh state through the DDR PHY when the DDR controller receives the low-level signal, and control all The DDR PHY enters a low power consumption state.
本发明实施例,当DRAM RANK为DDR RANK时,DRAM内存接口包括了DDR控制器和DDR PHY,则控制DDR RANK进入低功耗状态的过程包括,先通过DDR PHY控制第一DDR RANK退出断电状态或自刷新状态,再控制DDR PHY进入低功耗状态,如DFI低功耗状态。可选的,还可以包括,在所述预设时间段之后,先通过DDR PHY控制第一DDR RANK退出断电状态或自刷新状态,再控制DDR PHY在第二时间段内进入并保持在DFI低功耗状态,其中第二时间段为第一物理连线维持低电平的时间段。In the embodiment of the present invention, when the DRAM RANK is DDR RANK, and the DRAM memory interface includes a DDR controller and DDR PHY, the process of controlling the DDR RANK to enter a low power consumption state includes first controlling the first DDR RANK to exit power off through the DDR PHY State or self-refresh state, and then control DDRPHY to enter a low power state, such as DFI low power state. Optionally, it may also include, after the preset time period, first control the first DDR RANK to exit the power-off state or self-refresh state through the DDR PHY, and then control the DDR PHY to enter and remain in the DFI during the second time period In a low power consumption state, the second time period is a time period during which the first physical connection maintains a low level.
在一种可能的实现方式中,所述第一DRAM内存接口连接M个所述第一DRAM  RANK,M为大于或者等于2的整数;所述处理模块与所述第一DRAM内存接口之间通过M个所述第一物理连线直连,其中,一个所述第一物理连线对应一个所述第一DRAM RANK。In a possible implementation manner, the first DRAM memory interface is connected to M first DRAM RANKs, where M is an integer greater than or equal to 2; the processing module and the first DRAM memory interface pass through The M first physical connections are directly connected, wherein one first physical connection corresponds to one first DRAM RANK.
本发明实施例,当DRAM中包括多个DRAM RANK时,即第一DRAM内存接口连接并控制多个DRAM RANK时,由于控制DRAM进入工作状态或者进入低功耗状态是以DRAM RANK为单位的,因此,处理模块与第一DRAM内存接口之间需要连接多个物理连线,以使得一个物理连线可以对应控制一个DRAM RANK,提升控制的精准度。In the embodiment of the present invention, when multiple DRAM RANKs are included in the DRAM, that is, when the first DRAM memory interface is connected to and controls multiple DRAM RANKs, since controlling the DRAM to enter the working state or enter the low power consumption state is based on the DRAM RANK, Therefore, multiple physical connections need to be connected between the processing module and the first DRAM memory interface, so that one physical connection can correspondingly control one DRAM RANK, which improves the accuracy of control.
在一种可能的实现方式中,所述装置与所述第一DRAM RANK在不同的封装衬底上。In a possible implementation manner, the device and the first DRAM RANK are on different packaging substrates.
本发明实施例,处理装置与DRAM之间可以分布于不同的芯片上,即处理装置可以灵活外扩DRAM存储器,以满足不同的应用场景;也可以避免处理装置与DRAM在同一芯片上面积太大,封装难以实现的问题;同时,由于DRAM生产工艺相对落后于SOC,因此,采用外扩的实现方式可以节省成本。In the embodiment of the present invention, the processing device and the DRAM can be distributed on different chips, that is, the processing device can flexibly expand the DRAM memory to meet different application scenarios; it can also avoid the processing device and the DRAM from being too large on the same chip. , The packaging is difficult to achieve; at the same time, because the DRAM production process is relatively behind the SOC, therefore, the use of external expansion can save costs.
第二方面,本发明实施例提供了一种处理方法,其特征在于,包括:由处理模块判断第一命令是否为动态随机存储器DRAM读写命令;若所述第一命令为DRAM读写命令,由所述处理模块通过第一物理连线向第一DRAM内存接口发送第一指示信号;所述处理模块与N个DRAM内存接口之间通过总线相连,且所述处理模块还通过物理连线分别与所述N个DRAM内存接口直连,N为大于或者等于1的整数;所述第一DRAM内存接口为所述N个DRAM内存接口中与所述第一命令对应的内存接口,所述第一指示信号用于指示第一DRAM模组RANK进入工作状态;其中,所述第一物理连线为所述处理模块与所述第一DRAM内存接口之间的物理连线;所述第一DRAM RANK为所述第一DRAM内存接口所连接的DRAM RANK;所述第一DRAM内存接口在接收到所述第一指示信号的情况下,控制所述第一DRAM RANK进入工作状态。In a second aspect, an embodiment of the present invention provides a processing method, which is characterized in that it includes: a processing module determines whether the first command is a dynamic random access memory DRAM read/write command; if the first command is a DRAM read/write command, The processing module sends a first indication signal to the first DRAM memory interface through the first physical connection; the processing module is connected to the N DRAM memory interfaces through a bus, and the processing module is also connected through the physical connection. It is directly connected to the N DRAM memory interfaces, where N is an integer greater than or equal to 1; the first DRAM memory interface is the memory interface corresponding to the first command among the N DRAM memory interfaces, and the first An indication signal is used to instruct the first DRAM module RANK to enter the working state; wherein, the first physical connection is a physical connection between the processing module and the first DRAM memory interface; the first DRAM RANK is the DRAM RANK connected to the first DRAM memory interface; when the first DRAM memory interface receives the first indication signal, it controls the first DRAM RANK to enter the working state.
在一种可能的实现方式中,所述方法还包括:所述方法还包括:通过所述第一DRAM内存接口,接收所述处理模块通过所述总线下发的所述第一命令,并在确定所述第一DRAM RANK进入工作状态的情况下,将所述第一命令下发给所述第一DRAM RANK。In a possible implementation manner, the method further includes: the method further includes: receiving, through the first DRAM memory interface, the first command issued by the processing module through the bus, and When it is determined that the first DRAM RANK enters the working state, the first command is issued to the first DRAM RANK.
在一种可能的实现方式中,所述方法还包括:若所述第一命令为DRAM读写命令,根据所述第一命令的地址判断所述第一命令对应的第一DRAM内存接口。In a possible implementation manner, the method further includes: if the first command is a DRAM read/write command, judging the first DRAM memory interface corresponding to the first command according to the address of the first command.
在一种可能的实现方式中,所述第一指示信号为高电平信号;所述第一DRAM内存接口在接收到所述第一指示信号的情况下,控制所述第一DRAM RANK进入工作状态,包括:In a possible implementation manner, the first indication signal is a high-level signal; when the first DRAM memory interface receives the first indication signal, the first DRAM RANK is controlled to enter work Status, including:
所述第一DRAM内存接口根据所述高电平信号,控制所述第一DRAM RANK进入工作状态。The first DRAM memory interface controls the first DRAM RANK to enter the working state according to the high-level signal.
在一种可能的实现方式中所述第一DRAM RANK为第一双倍速率同步动态随机存取存储器DDR RANK;所述第一DRAM内存接口包括DDR控制器和DDR物理接口PHY;所述第一DRAM内存接口根据所述高电平信号,控制所述第一DRAM RANK进入工作状态,包括:所述DDR控制器在接收到所述高电平信号的情况下,控制所述DDR PHY退出DFI低功耗状态,并通过所述DDR PHY控制所述第一DDR RANK退出断电状态或自刷新状态。In a possible implementation manner, the first DRAM RANK is a first double-rate synchronous dynamic random access memory DDR RANK; the first DRAM memory interface includes a DDR controller and a DDR physical interface PHY; the first The DRAM memory interface controls the first DRAM RANK to enter the working state according to the high-level signal, which includes: when the DDR controller receives the high-level signal, controls the DDR PHY to exit DFI low Power consumption state, and control the first DDR RANK to exit the power-off state or the self-refresh state through the DDR PHY.
在一种可能的实现方式中,所述方法,还包括:在未检测到通过所述总线发送所述第一命令时或者当所述第一DRAM RANK已经执行完成所述第一命令时,由所述处理模块通过所述第一物理连线向所述第一DRAM内存接口发送第二指示信号,所述第二指示信号用于指示所述第一DRAM RANK进入低功耗状态;所述第一DRAM内存接口在接收到所述第二指示信号的情况下,控制所述第一DRAM RANK进入低功耗状态。In a possible implementation manner, the method further includes: when it is not detected that the first command is sent through the bus or when the first DRAM RANK has executed and completed the first command, The processing module sends a second indication signal to the first DRAM memory interface through the first physical connection, where the second indication signal is used to instruct the first DRAM RANK to enter a low power consumption state; When receiving the second indication signal, a DRAM memory interface controls the first DRAM RANK to enter a low power consumption state.
在一种可能的实现方式中,所述第二指示信号为低电平信号;所述第一DRAM内存接口在接收到所述第二指示信号的情况下,控制所述第一DRAM RANK进入低功耗状态,包括:所述第一DRAM内存接口在接收到所述低电平信号的情况下,控制所述第一DRAM RANK进入低功耗状态。In a possible implementation manner, the second indication signal is a low level signal; when the first DRAM memory interface receives the second indication signal, it controls the first DRAM RANK to enter low The power consumption state includes: when the first DRAM memory interface receives the low-level signal, controlling the first DRAM RANK to enter a low power consumption state.
在一种可能的实现方式中,所述第一DRAM RANK为第一双倍速率同步动态随机存取存储器DDR RANK;所述第一DRAM内存接口包括DDR控制器和DDR物理接口PHY;所述第一DRAM内存接口在接收到所述低电平信号的情况下,控制所述第一DRAM RANK进入低功耗状态,包括:所述DDR控制器在接收到所述低电平信号的情况下,通过所述DDR PHY控制所述第一DDR RANK进入断电状态或自刷新状态,并控制所述DDR PHY进入低功耗状态。In a possible implementation manner, the first DRAM RANK is a first double-rate synchronous dynamic random access memory DDR RANK; the first DRAM memory interface includes a DDR controller and a DDR physical interface PHY; When a DRAM memory interface receives the low-level signal, controlling the first DRAM RANK to enter a low-power consumption state includes: when the DDR controller receives the low-level signal, The DDR PHY controls the first DDR RANK to enter a power-off state or a self-refresh state, and controls the DDR PHY to enter a low power consumption state.
在一种可能的实现方式中,所述第一DRAM内存接口连接M个所述第一DRAM RANK,M为大于或者等于2的整数;所述处理模块与所述第一DRAM内存接口之间通过M个所述第一物理连线直连,其中,一个所述第一物理连线对应一个所述第一DRAM RANK。In a possible implementation manner, the first DRAM memory interface is connected to M first DRAM RANKs, where M is an integer greater than or equal to 2; the processing module and the first DRAM memory interface pass through The M first physical connections are directly connected, wherein one first physical connection corresponds to one first DRAM RANK.
在一种可能的实现方式中,所述处理模块与所述N个DRAM内存接口在同一个封装衬底上,且与所述第一DRAM RANK在不同的封装衬底上。In a possible implementation manner, the processing module and the N DRAM memory interfaces are on the same packaging substrate, and are on a different packaging substrate from the first DRAM RANK.
第三方面,本申请提供一种半导体芯片,可包括:In the third aspect, this application provides a semiconductor chip, which may include:
上述第一方面、以及结合上述第一方面中的任意一种实现方式所提供的处理装置、耦合于所述处理装置的中央处理单元以及所述处理装置外部的存储器。The foregoing first aspect and the processing device provided in combination with any one of the foregoing first aspect implementation manners, a central processing unit coupled to the processing device, and a memory external to the processing device are provided.
第四方面,本申请提供一种半导体芯片,可包括:In a fourth aspect, this application provides a semiconductor chip, which may include:
上述第一方面以及结合上述第一方面中的任意一种实现方式所提供的处理装置。The foregoing first aspect and a processing device provided in combination with any one of the foregoing first aspects.
第五面,本申请提供一种片上系统SoC芯片,该SoC芯片包括上述第一方面、以及结合上述第一方面中的任意一种实现方式所提供的处理装置、耦合于所述处理装置的中央处理单元和所述处理装置的外部存储器。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。On the fifth aspect, the present application provides a system-on-chip SoC chip. The SoC chip includes the above-mentioned first aspect and the processing device provided in combination with any one of the above-mentioned first aspects, coupled to the center of the processing device. The processing unit and the external memory of the processing device. The chip system can be composed of chips, or include chips and other discrete devices.
第六方面,本申请提供一种处理装置系统,该芯片系统包括:包含上述第一方面以及结合上述第一方面中的任意一种实现方式所提供的处理装置,以及包含耦合于所述处理装置的中央处理单元和所述处理装置的外部存储器的芯片。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。In a sixth aspect, the present application provides a processing device system. The chip system includes: a processing device including the first aspect described above and the processing device provided in combination with any one of the foregoing first aspects, and including a processing device coupled to the processing device The central processing unit and the external memory chip of the processing device. The chip system can be composed of chips, or include chips and other discrete devices.
第七方面,本申请提供一种终端设备,该终端设备包括上述第一方面以及结合上述第一方面中的任意一种实现方式所提供的处理装置,以及所述处理装置的外部存储器,其中,所述处理装置与所述处理装置的外部存储器被设置在不同的半导体芯片内。In a seventh aspect, the present application provides a terminal device, which includes the processing device provided in the foregoing first aspect and any one of the implementation manners of the foregoing first aspect, and an external memory of the processing device, wherein: The processing device and the external memory of the processing device are provided in different semiconductor chips.
第八方面,本申请提供一种终端设备,该终端设备中包括上述第一方面以及结合上述第一方面中的任意一种实现方式所提供的处理装置、所述处理装置的外部存储器,以及耦合于所述处理装置的中央处理单元。所述外部存储器用于存储必要的程序指令和数据,所述中央处理单元用于运行该终端设备必要的通用操作系统,且用于与所述处理装置耦合完成处理装置中的相关处理功能。该终端设备还可以包括通信接口,用于该终端设备与其他设备或通信网络通信。In an eighth aspect, the present application provides a terminal device, which includes the processing device provided in the first aspect and any one of the implementation manners of the first aspect, the external memory of the processing device, and the coupling In the central processing unit of the processing device. The external memory is used to store necessary program instructions and data, and the central processing unit is used to run a general operating system necessary for the terminal device, and is used to couple with the processing device to complete related processing functions in the processing device. The terminal device may also include a communication interface for the terminal device to communicate with other devices or a communication network.
第九方面,本申请提供一种计算机存储介质,所述计算机存储介质存储有计算机程序,当该计算机程序被处理器执行时,可以实现上述第二方面以及结合上述第二方面中的任意一种实现方式所提供的处理方法中的处理模块和第一DRAM内存接口所执行的流程。In a ninth aspect, the present application provides a computer storage medium that stores a computer program, and when the computer program is executed by a processor, it can implement any one of the above second aspect and in combination with the above second aspect The process performed by the processing module and the first DRAM memory interface in the processing method provided by the implementation manner.
第十方面,本发明实施例提供了一种计算机程序,该计算机程序包括指令,当该计算机程序被计算机执行时,使得计算机可以执行上述第二方面以及结合上述第二方面中的任意一种实现方式所提供的处理方法中的处理模块和第一DRAM内存接口所执行的流程。In a tenth aspect, an embodiment of the present invention provides a computer program, the computer program includes instructions, when the computer program is executed by a computer, the computer can execute the second aspect and any combination of the second aspect described above. The process performed by the processing module and the first DRAM memory interface in the processing method provided by the method.
附图说明Description of the drawings
图1是本发明实施例提供的一种SoC+DRAM的硬件结构图。Fig. 1 is a hardware structure diagram of a SoC+DRAM provided by an embodiment of the present invention.
图2是本发明实施例提供的一种处理装置的结构示意图。Fig. 2 is a schematic structural diagram of a processing device provided by an embodiment of the present invention.
图3是本发明实施例提供的另一种处理装置的结构示意图。Fig. 3 is a schematic structural diagram of another processing device provided by an embodiment of the present invention.
图4是本发明实施例提供的又一种处理装置的结构示意图。Fig. 4 is a schematic structural diagram of another processing device provided by an embodiment of the present invention.
图5是本发明实施例提供的一种提前唤醒模块的结构示意图。Fig. 5 is a schematic structural diagram of an early wake-up module provided by an embodiment of the present invention.
图6是本发明实施例提供的一种处理方法的流程示意图。Fig. 6 is a schematic flowchart of a processing method provided by an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例进行描述。The embodiments of the present invention will be described below in conjunction with the drawings in the embodiments of the present invention.
本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" in the specification and claims of this application and the drawings are used to distinguish different objects, not to describe a specific order . In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes unlisted steps or units, or optionally also includes Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference to "embodiments" herein means that a specific feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art clearly and implicitly understand that the embodiments described herein can be combined with other embodiments.
在本说明书中使用的术语“部件”、“模块”、“系统”等用于表示计算机相关的实体、硬件、固件、硬件和软件的组合、软件、或执行中的软件。例如,部件可以是但不限于,在处理器上运行的进程、处理器、对象、可执行文件、执行线程、程序和/或计算机。通过图示,在计算设备上运行的应用和计算设备都可以是部件。一个或多个部件可驻留在进程和/或执行线程中,部件可位于一个计算机上和/或分布在2个或更多个计算机之间。此外,这些部件可从在上面存储有各种数据结构的各种计算机可读介质执行。部件可例如根据具有一个 或多个数据分组(例如来自与本地系统、分布式系统和/或网络间的另一部件交互的二个部件的数据,例如通过信号与其它系统交互的互联网)的信号通过本地和/或远程进程来通信。The terms "component", "module", "system", etc. used in this specification are used to denote computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, the component may be, but is not limited to, a process, a processor, an object, an executable file, an execution thread, a program, and/or a computer running on a processor. Through the illustration, both the application running on the computing device and the computing device can be components. One or more components may reside in processes and/or threads of execution, and components may be located on one computer and/or distributed among two or more computers. In addition, these components can be executed from various computer readable media having various data structures stored thereon. A component can be based on a signal having one or more data packets (for example, data from two components interacting with another component between a local system, a distributed system, and/or a network, such as the Internet that interacts with other systems through signals) Communicate through local and/or remote processes.
首先,对本申请中的部分用语进行解释说明,以便于本领域技术人员理解。First, some terms in this application are explained to facilitate the understanding of those skilled in the art.
(1)系统级芯片(System on Chip,SoC),SoC称为系统级芯片,也有称片上系统,意指它是一个产品,是一个有专用目标的集成电路,其中包含完整系统并有嵌入软件的全部内容。同时它又是一种技术,用以实现从确定系统功能开始,到软/硬件划分,并完成设计的整个过程。(1) System-on-Chip (SoC), SoC is called system-on-chip, also called system-on-chip, which means that it is a product, an integrated circuit with a dedicated target, which contains a complete system and has embedded software The entire contents of. At the same time, it is a kind of technology to realize the whole process from determining the system function to dividing the software/hardware and completing the design.
(2)随机存取存储器(Random Access Memory,RAM),用来存储和保存数据。它在任何时候都可以读写,RAM通常是作为操作系统或其他正在运行程序的临时存储介质(可称作系统内存)。当电源关闭时RAM不能保留数据,如果需要保存数据,就必须把它们写入到一个长期的存储器中(例如硬盘)。(2) Random Access Memory (RAM), used to store and save data. It can be read and written at any time. RAM is usually used as a temporary storage medium for operating systems or other running programs (which can be called system memory). RAM cannot retain data when the power is turned off. If you need to save data, you must write them into a long-term storage (such as a hard disk).
(3)随机存取存储器RAM可以进一步分为:静态随机存储(Static Random Access Memory,SRAM),和动态随机存储(Dynamic Random Access Memory,DRAM)两大类。这两者基本原理上有相同的地方,都是将电荷存储到记忆体内部,其中,SRAM的结构比较复杂,单位面积的容量少,存取速度很快;DRAM则结构简单,单位面积存储的容量比较多,存取时间相对SRAM慢,同时DRAM因为构造比较简单,存储的电荷会随着时间逐渐消失,因此需要定时再充电(Refresh),以保持电容存储的资料。(3) Random Access Memory RAM can be further divided into two categories: Static Random Access Memory (SRAM) and Dynamic Random Access Memory (DRAM). The basic principles of the two have the same place. Both store the charge inside the memory. Among them, the structure of SRAM is more complicated, the capacity per unit area is small, and the access speed is very fast; DRAM has a simple structure and stores per unit area. The capacity is relatively large, and the access time is slower than that of SRAM. At the same time, because the structure of DRAM is relatively simple, the stored charge will gradually disappear over time, so it needs to be recharged regularly (Refresh) to maintain the data stored in the capacitor.
(4)双倍速率同步动态随机存取存储器(Double Data Rate Synchronous Dynamic Random Access Memory,DDR SDRAM),简称DDR,DDR内存是在SDRAM内存基础上发展而来的,仍然沿用SDRAM生产体系,因此对于内存厂商而言,只需对制造普通SDRAM的设备稍加改进,即可实现DDR内存的生产,可有效的降低成本。与传统的单数据速率相比,DDR技术实现了一个时钟周期内进行两次读/写操作,即在时钟的上升沿和下降沿分别执行一次读/写操作。(4) Double Data Rate Synchronous Dynamic Random Access Memory (Dynamic Random Access Memory, DDR SDRAM), abbreviated as DDR, DDR memory is developed on the basis of SDRAM memory, and still uses the SDRAM production system. As far as memory manufacturers are concerned, they only need to make slight improvements to the equipment for manufacturing ordinary SDRAM to realize the production of DDR memory, which can effectively reduce costs. Compared with the traditional single data rate, DDR technology implements two read/write operations in one clock cycle, that is, one read/write operation is performed on the rising and falling edges of the clock.
(5)时间延迟(Latency),它的单位一般是ns。本申请中的时间延迟可以包括单向延迟(One-way Latency)和往返延迟(Round Trip Latency)。其中,本申请中针对DRAM写命令的Latency是指处理模块发出第一命令(DRAM写命令)之后,与DRAM根据DRAM写命令写入数据的时间间隔,可以理解为单向延迟;本申请中针对DRAM读命令的Latency是指处理模块发出第一命令(DRAM读命令)之后,与DRAM根据DRAM读命令向处理模块反馈读数据且处理模块接收到该数据的时间间隔,可以理解为往返延迟。(5) Time delay (Latency), its unit is generally ns. The time delay in this application may include one-way delay (One-way Latency) and round trip delay (Round Trip Latency). Among them, the Latency for the DRAM write command in this application refers to the time interval between the processing module sending the first command (DRAM write command) and the DRAM writing data according to the DRAM write command, which can be understood as a one-way delay; The latency of the DRAM read command refers to the time interval between the processing module sending the first command (DRAM read command) and the DRAM feeding back the read data to the processing module according to the DRAM read command and the processing module receiving the data, which can be understood as the round trip delay.
(8)模组RANK,“模组构成”中的“R”是“RANK”的意思,是能被片选信号控制是否选中用于访问的一个晶粒。“2R”是指2个RANK(Number of ranks of memory installed)。通常有“1R”和“2R”两种;为了保证有一定的内存容量和部分访问场景的带宽利用率,目前LPDDRx系列的内存,通常是采用一个模组两个RANK的架构,而多个模组并联即并行工作,是为了满足SOC带宽需求。对应的,在本申请中一个DRAM接口所连接的DRAM可以为包括两个RANK的内存结构,当然,也可以是包括一个RANK甚至是多个RANK的结构,本申请对此不作具体限定。(8) Module RANK, the "R" in the "module configuration" means "RANK", which can be controlled by the chip select signal to select a die for access. "2R" refers to 2 RANKs (Number of ranks of memory installed). There are usually two types of "1R" and "2R"; in order to ensure a certain memory capacity and bandwidth utilization in some access scenarios, the current LPDDRx series of memory usually uses a module with two RANK architectures, and multiple modules Parallel groups work in parallel to meet SOC bandwidth requirements. Correspondingly, the DRAM connected to a DRAM interface in this application may be a memory structure including two RANKs, of course, it may also be a structure including one RANK or even multiple RANKs, which is not specifically limited in this application.
为了便于理解本发明实施例,以下以DRAM为DDR为例,示例性列举本发明实施例具体要解决的技术问题以及对应的实际应用场景。In order to facilitate the understanding of the embodiments of the present invention, the following takes DRAM as DDR as an example to exemplarily enumerate the specific technical problems to be solved by the embodiments of the present invention and corresponding actual application scenarios.
如图1所示,图1为本发明实施例提供的一种SoC+DRAM的硬件结构图。例如,移动终端(智能手机、掌上电脑等)的片上系统SoC是由应用处理器120、媒体系统122、通信系统124等数据处理子系统经过总线200、内存控制器Memory Controller 300、DDR物理接口PHY 302与片外DRAM 304相连的系统。片外DRAM 304作为SoC的程序和数据的存取中心,内存控制器Memory Controller 300、DDR PHY 302作为访问片外DRAM 304的通路,它们的能效情况对移动终端能效影响至关重要。As shown in FIG. 1, FIG. 1 is a hardware structure diagram of a SoC+DRAM provided by an embodiment of the present invention. For example, the system-on-chip SoC of a mobile terminal (smartphone, palmtop computer, etc.) consists of data processing subsystems such as the application processor 120, the media system 122, and the communication system 124 through the bus 200, the memory controller Memory Controller 300, and the DDR physical interface PHY 302 A system connected to off-chip DRAM 304. Off-chip DRAM 304 serves as the access center for SoC programs and data, and memory controllers Memory Controller 300 and DDR PHY 302 serve as access to off-chip DRAM 304. Their energy efficiency is critical to the energy efficiency of mobile terminals.
当前移动终端SoC+DRAM设计和使用方案中,为了节省DDR PHY 302功耗,DDR PHY接口标准协议(DFI协议)有定义低功耗接口(DFI Low Power接口);为了节省DRAM 302功耗,DRAM使用的是Low Power Double Data Rate DRAM,其有断电(Power Down)和自刷新(Self refresh)两种低功耗模式。目前针对这些低功耗特性的使用方法及对应的问题如下:In the current mobile terminal SoC+DRAM design and use plan, in order to save DDRPHY 302 power consumption, the DDRPHY interface standard protocol (DFI protocol) has a defined low power interface (DFI Low Power interface); in order to save DRAM 302 power consumption, DRAM It uses Low Power Double Data Rate DRAM, which has two low power consumption modes: Power Down and Self refresh. The current methods of using these low-power features and the corresponding problems are as follows:
(1)在Memory Controller 300中监控是否有读写DRAM的命令,若计时了一段时间(计时时间值寄存器可配)没有读写DRAM的命令,则Memory Controller 300控制DDR PHY 302进入DFI Low Power、DRAM 304进入断电模式Power Down,计时了更长一段时间(计时时间值寄存器可配)没有读写DRAM的命令,则Memory Controller进一步控制DRAM 304进入Self Refresh;(1) Monitor whether there is a command to read and write DRAM in the Memory Controller 300. If there is no command to read or write DRAM for a period of time (timing time value register is configurable), the Memory Controller 300 controls DDR PHY 302 to enter DFI Low Power, DRAM 304 enters the power-off mode Power Down, and it has timed for a longer period of time (the timer time value register can be configured) without a command to read and write DRAM, then the Memory Controller further controls the DRAM 304 to enter Self Refresh;
(2)当读写DRAM的命令到达Memory Controller 300,Memory Controller 300会控制DDR PHY 302退出DFI Low Power和DRAM 304退出Power Down&Self Refresh;(2) When the command to read and write DRAM reaches Memory Controller 300, Memory Controller 300 will control DDR PHY 302 to exit DFI Low Power and DRAM 304 to exit Power Down&Self Refresh;
(3)但要,想退出DFI Low Power,需经过Memory Controller300中状态机一系列控制退出DFI Low Power步骤的跳转,另外也需Memory Controller300与DDR PHY 302进行握手交互控制退出DFI Low Power,这两者都会造成退出DFI Low Power的延时;(3) However, if you want to exit DFI Low Power, you need to go through a series of control exits from the DFI Low Power step in the Memory Controller300 state machine. In addition, the Memory Controller300 and DDRPHY 302 need to exchange handshake control to exit DFI Low Power. Both will cause a delay in exiting DFI Low Power;
(4)且退出DRAM Power Down&Self Refresh分别需花费DRAM协议规定的tXP(DRAM退出Power Down到可接受有效命令的延时)和tXSR(DRAM退出Self Refresh到可接受有效命令的延时)时间;(4) And to exit DRAM Power Down & Self Refresh, it takes tXP (the delay from DRAM exits Power Down to accept valid commands) and tXSR (the delay from DRAM exits Self Refresh to accept valid commands) specified in the DRAM protocol respectively;
(5)由于在退出上述低功耗状态的过程中是不能读写DRAM 304的,那么在DDRPHY302和DRAM304处于上述低功耗态下,系统侧Masters(比如应用处理器、媒体、通信等子系统)来读DRAM操作会有较大Latency损失;(5) Since DRAM 304 cannot be read and written during the process of exiting the above-mentioned low-power state, then when DDRPHY302 and DRAM304 are in the above-mentioned low-power state, the system-side Masters (such as application processor, media, communication and other subsystems) ) The read DRAM operation will have a large latency loss;
(6)因此,通常不会让DDR PHY 302和DRAM 304频繁进退DFI Low Power和DRAM Power Down&Self Refresh,以免影响性能;但DDR PHY 302和DRAM 304不频繁进退DFI Low Power和DRAM Power Down&Self Refresh,会使处于低功耗状态的时间占比较小,导致功耗增加;从而两种情况都影响能效比。(6) Therefore, DDR PHY 302 and DRAM 304 are usually not allowed to advance and retreat DFI Low Power and DRAM Power Down&Self Refresh frequently, so as not to affect performance; but DDR PHY 302 and DRAM 304 do not frequently advance and retreat DFI Low Power and DRAM Power Down&Self Refresh. The time spent in the low-power state is relatively small, leading to an increase in power consumption; thus, both situations affect the energy efficiency ratio.
通过实际业务测试,为了权衡性能和功耗,在满足性能要求的前提下,折中配置等待进入DRAM Power Down时间和等待进入DRAM Self Refresh时间,以控制进退DFI Low Power和DRAM Power Down&Self Refresh的频繁程度,以达到现有技术方案下可达到的最好能效比。Through actual business tests, in order to balance performance and power consumption, on the premise of meeting performance requirements, a compromise is configured between waiting to enter DRAM Power Down time and waiting to enter DRAM Self Refresh time to control advance and retreat DFI Low Power and DRAM Power Down&Self Refresh frequency To achieve the best energy efficiency ratio achievable under the existing technical solutions.
然而,因为退出DFI Low Power和DRAM Power Down&Self Refresh所需时间长,所 以为了权衡性能和功耗时能满足性能要求,等待进入DRAM Power Down时间和等待进入DRAM Self Refresh时间不能配置得较小,原因在于,如果配置的较小,则容易进入这些低功耗状态,导致单位时间内退出这些低功耗的次数也会增加,而单位时间内退出这些低功耗总耗费时间=一次退出所需时间*退出次数,但在退出这些低功耗状态的过程中是不能读写DRAM的,那么单位时间内可读写DRAM的时间占比变小,这可能会引起Latency不能达到要求,使得系统性能要求不能满足,此时,则需要提升DDR频率来弥补Latency,这可能会导致更加浪费功耗。但是如果将等待进入DRAM Power Down时间和等待进入DRAM Self Refresh时间配置得过大,又会导致低功耗状态的比例有较小,使得系统的功耗较高。However, because it takes a long time to exit DFI Low Power and DRAM Power Down & Self Refresh, in order to meet performance requirements when weighing performance and power consumption, the waiting time for entering DRAM Power Down and waiting for entering DRAM Self Refresh cannot be configured to be small. It is that if the configuration is small, it is easy to enter these low-power states, resulting in an increase in the number of exits from these low-power consumption per unit time, and the total time to exit these low-power consumption per unit time = the time required for one exit *The number of exits, but the DRAM cannot be read and written during the process of exiting these low-power states, so the time percentage of the DRAM that can be read and written per unit time becomes smaller, which may cause the Latency not to meet the requirements and make the system performance requirements If it cannot be satisfied, at this time, the DDR frequency needs to be increased to compensate for Latency, which may result in more waste of power consumption. However, if the waiting time to enter DRAM Power Down and the waiting time to enter DRAM Self Refresh are configured too large, the proportion of low power consumption states will be smaller, and the power consumption of the system will be higher.
综上,本申请需解决的技术问题包括,如何减小因为退出DFI Low Power和DRAM Power Down&Self Refresh的时长而导致的Latency,即如何同时保证内存系统的低功耗性和低时延性。In summary, the technical problems to be solved in this application include how to reduce the latency caused by the time of exiting DFI Low Power and DRAM Power Down & Self Refresh, that is, how to ensure both low power consumption and low latency of the memory system.
基于上述,下面对本发明实施例提供的处理装置以及相关设备进行描述。请参见图1,图2是本发明实施例提供的一种处理装置的结构示意图,该处理装置40中可包括一个或多个处理模块401(图2中以2个为例)和N个动态随机存取存储器DRAM内存接口402(图2中以4个为例),其中,任意一个处理模块401与N个DRAM内存接口402之间通过总线相连,并且,任意一个处理模块401还通过物理连线分别与所述N个DRAM内存接口402直连,其中,N为大于或者等于1的整数。可选的,每个DRAM内存接口外接至少一个DRAM RANK 403,且一个或多个处理模块401和N个DRAM内存接口可以位于一个集成电路衬底上,也即是本发明实施例中的处理装置40,而片外的DRAM RANK 403则通过DRAM内存接口402作为处理模块401的程序和数据的存取中心。其中,Based on the foregoing, the processing apparatus and related equipment provided in the embodiments of the present invention are described below. Please refer to FIG. 1. FIG. 2 is a schematic structural diagram of a processing device provided by an embodiment of the present invention. The processing device 40 may include one or more processing modules 401 (2 are taken as an example in FIG. 2) and N dynamic modules. Random access memory DRAM memory interface 402 (four as an example in FIG. 2), where any processing module 401 and N DRAM memory interfaces 402 are connected by a bus, and any processing module 401 is also physically connected The lines are respectively directly connected to the N DRAM memory interfaces 402, where N is an integer greater than or equal to 1. Optionally, at least one DRAM RANK 403 is connected to each DRAM memory interface, and one or more processing modules 401 and N DRAM memory interfaces can be located on an integrated circuit substrate, that is, the processing device in the embodiment of the present invention 40. The off-chip DRAM RANK 403 uses the DRAM memory interface 402 as the access center for the programs and data of the processing module 401. among them,
处理模块401(可以为图2中的任意一个401),用于判断第一命令是否为动态随机存储器DRAM读写命令,所述第一命令为所述处理模块通过所述总线发送的命令;若所述第一命令为DRAM读写命令,通过第一物理连线向第一DRAM内存接口发送第一指示信号,所述第一DRAM内存接口为所述N个DRAM内存接口中与所述第一命令对应的内存接口,所述第一指示信号用于指示第一DRAM模组RANK进入工作状态;其中,所述第一物理连线为所述处理模块与所述第一DRAM内存接口之间的物理连线。需要说明的是,图2中的任意一个DRAM内存接口402都可以是第一DRAM内存接口,图2中的任意一个DRAM RANK都可以是第一DRAM RANK,在本发明实施例中,第一命令所要发送的内存接口即为第一DRAM内存接口,第一DRAM内存接口所连接的DRAM RANK即为第一DRAM RANK。本发明实施例中的任意一个处理模块401可以是处理器、协处理器、调制解调器、多媒体系统等各种具有DRAM读写能力的器件或设备,本申请对此不作具体限定。The processing module 401 (which can be any one of 401 in FIG. 2) is used to determine whether the first command is a dynamic random access memory DRAM read and write command, and the first command is a command sent by the processing module through the bus; if The first command is a DRAM read and write command, and a first instruction signal is sent to a first DRAM memory interface through a first physical connection, and the first DRAM memory interface is one of the N DRAM memory interfaces and the first instruction signal. Command the corresponding memory interface, the first indication signal is used to instruct the first DRAM module RANK to enter the working state; wherein, the first physical connection is the connection between the processing module and the first DRAM memory interface Physical connection. It should be noted that any DRAM memory interface 402 in FIG. 2 may be the first DRAM memory interface, and any DRAM RANK in FIG. 2 may be the first DRAM RANK. In this embodiment of the present invention, the first command The memory interface to be sent is the first DRAM memory interface, and the DRAM RANK connected to the first DRAM memory interface is the first DRAM RANK. Any processing module 401 in the embodiment of the present invention may be a processor, a coprocessor, a modem, a multimedia system, and other devices or devices with DRAM read and write capabilities, which is not specifically limited in this application.
具体地,本发明实施例中,处理模块401判断第一命令是否为动态随机存储器DRAM读写命令的时机,可以包括通过总线发送第一命令的同时,也可以包括通过总线发送命令之前的预设时间,还可以包括通过总线发送第一命令之后的指定时间段,该触发判断第一命令是否为DRAM读写命令的时机可以根据实际应用场景灵活变化,本申请对此不作具体限定。可以理解的是,在通过总线发送第一命令的同时或者之前的预设时间触发判断,更 有利于减少第一命令的时间延迟(Latency)。Specifically, in the embodiment of the present invention, the timing for the processing module 401 to determine whether the first command is a dynamic random access memory DRAM read/write command may include sending the first command through the bus, and may also include the preset before sending the command through the bus. The time may also include a specified period of time after the first command is sent through the bus. The timing of the trigger to determine whether the first command is a DRAM read/write command can be flexibly changed according to actual application scenarios, which is not specifically limited in this application. It can be understood that triggering the judgment at the same time or before the preset time when the first command is sent through the bus is more conducive to reducing the time delay of the first command.
在本发明实施例中,判断第一命令是否为DRAM读写命令可以包括以下三种情况:1、只判断第一命令是否为DRAM读命令,即当通过总线发送第一命令时,则判断该第一命令是否为DRAM读命令,若是,则继续执行后续的判断及指示操作;2、只判断第一命令是否为DRAM写命令,即当通过总线发送第一命令时,则判断第一命令是否为DRAM写命令,若是,则继续执行后续的判断及指示操作;3、同时判断第一命令是否为DRAM读或写命令,即当通过总线发送第一命令时,则判断第一命令是否为DRAM读命令或者DRAM写命令,若是DRAM读命令或者是DRAM写命令,则继续执行后续的判断及指示操作。需要说明的是,由于针对DRAM的读操作通常需要DRAM的及时读反馈,否则会造成读时延,而针对DRAM的写操作在某些场景中,则不需要DRAM的及时写反馈,因此,本申请中对上述三种情况具体取哪一种不作具体限定,可以根据不同的应用场景采用不同的判断条件。In the embodiment of the present invention, judging whether the first command is a DRAM read and write command may include the following three cases: 1. Only judge whether the first command is a DRAM read command, that is, when the first command is sent through the bus, it is judged Whether the first command is a DRAM read command, if so, continue to perform subsequent judgments and instructions; 2. Only judge whether the first command is a DRAM write command, that is, when the first command is sent through the bus, judge whether the first command is It is a DRAM write command. If it is, continue to perform subsequent judgments and instructions; 3. At the same time, judge whether the first command is a DRAM read or write command, that is, when the first command is sent through the bus, judge whether the first command is DRAM Read command or DRAM write command, if it is DRAM read command or DRAM write command, continue to perform subsequent judgment and instruction operations. It should be noted that, because the read operation of DRAM usually requires timely read feedback of DRAM, otherwise it will cause read delay. In some scenarios, the write operation of DRAM does not require timely write feedback of DRAM. Therefore, this The application does not specifically limit which of the above three situations to take, and different judgment conditions can be adopted according to different application scenarios.
第一DRAM内存接口402,用于在接收到所述第一指示信号的情况下,控制第一DRAM RANK进入工作状态。其中,控制第一DRAM RANK进入工作状态可以为指示第一DRAM RANK退出低功耗状态,也可以为确认第一DRAM RANK当前为工作状态,即无论第一DRAM RANK之前是处于什么状态,只要能确保在接收到第一指示信号的情况下,可控制其进入工作状态即可。The first DRAM memory interface 402 is configured to control the first DRAM RANK to enter a working state when the first indication signal is received. Among them, controlling the first DRAM RANK to enter the working state can be instructing the first DRAM RANK to exit the low power consumption state, or it can be confirming that the first DRAM RANK is currently working, that is, no matter what state the first DRAM RANK was in before, as long as it can It is sufficient to ensure that it can be controlled to enter the working state when the first indication signal is received.
在本申请中,关于DRAM(DRAM RANK)的工作状态和低功耗状态,是两种不同的状态。在DRAM RANK处于工作状态时,该DRAM RANK可以被本申请中的处理模块进行读写访问,即可以从该DRAM RANK中读出数据或者是写入数据;在DRAM RANK处于低功耗状态时,该DRAM RANK不能被本申请中的处理模块进行读写访问,即不能从该DRAM RANK中读出数据也不能写入数据;并且,当DRAM RANK处于低功耗状态下,功耗要低于其处于工作状态下。例如,当DRAM RANK为DDR RANK时,则DDR RANK的低功耗状态则为Power Down或者Self Refresh:而其工作状态则是指退出上述Power Down或者Self Refresh状态,即不处于Power Down和Self Refresh中的任意一种;对应的,DDR PHY的工作状态是指其可以对其连接的DRAM(DRAM RANK)进行读写等控制,而其处于低功耗状态则是指无法对其连接的DRAM(DRAM RANK)进行读写等控制,例如,DDR PHY低功耗模式具体为DFI低功耗模式,而工作状态则是指退出上述DFI低功耗模式。其中,In this application, the working state and low power consumption state of DRAM (DRAM RANK) are two different states. When the DRAM RANK is in the working state, the DRAM RANK can be read and written by the processing module in this application, that is, data can be read or written from the DRAM RANK; when the DRAM RANK is in a low power consumption state, The DRAM RANK cannot be read and written by the processing module in this application, that is, data cannot be read or written from the DRAM RANK; and when the DRAM RANK is in a low-power state, the power consumption is lower than its In working condition. For example, when DRAM RANK is DDR RANK, the low power consumption state of DDR RANK is Power Down or Self Refresh: and its working state refers to exiting the aforementioned Power Down or Self Refresh state, that is, it is not in Power Down or Self Refresh. Correspondingly, the working state of DDR PHY means that it can control the DRAM (DRAM RANK) it is connected to, read and write, and its low power consumption state means that it cannot be connected to the DRAM (DRAM RANK). DRAM RANK) performs control such as reading and writing. For example, the DDR PHY low-power mode is specifically the DFI low-power mode, and the working state refers to exiting the aforementioned DFI low-power mode. among them,
Power Down:是在对DRAM没有读写访问时,可一段时间内关闭DRAM时钟的DRAM低功耗状态,但需被SOC控制周期性退出并刷新(刷新周期由SOC根据环境温度变化而改变),以维持DRAM中数据;Power Down: When there is no read and write access to DRAM, it is a low power consumption state of DRAM that can turn off the DRAM clock for a period of time, but needs to be periodically exited and refreshed by the SOC control (the refresh cycle is changed by the SOC according to the environmental temperature change) To maintain data in DRAM;
Self Refresh:是在对DRAM没有读写访问时,可一直让DRAM自己控制刷新的DRAM低功耗状态(刷新周期由DRAM根据环境温度变化而改变),不需被SOC控制周期性退出,此时SOC只需维持DRAM端口信号让DRAM处于自刷新状态即可.Self Refresh: When there is no read/write access to DRAM, it is a low power consumption state of DRAM that can always let DRAM control refresh by itself (the refresh cycle is changed by DRAM according to changes in ambient temperature), and does not need to be periodically exited by SOC control. The SOC only needs to maintain the DRAM port signal to make the DRAM in a self-refresh state.
本发明实施例,通过在处理装置中,增加处理模块与多个DRAM内存接口之间的物理直连线路,在当处理模块需要从某个DRAM RANK中读取或写入数据时,则可以通过与对应的DRAM内存接口之间物理直连线路,直接向该DRAM内存接口发送指示信号,以提 前指示对应的DRAM RANK进入工作状态(例如提前唤醒并退出低功耗模式)。不同于现有技术中的处理模块需要通过总线的命令通路,在将第一命令发送并到达DRAM内存接口时,才开始指示DRAM进入工作状态,且指示之后,则需要经过一系列操作(如控制逻辑、物理层接口协议等)才能控制DRAM真正进入工作状态,而整个唤醒过程的时长则造成了第一命令的读写时延。而本发明实施例中,可以在第一命令通过总线发出去的同时,通过增加的物理直连线路将指示信号直接送达DRAM内存接口,从而提前指示DRAM内存接口开始执行唤醒的一系列操作,因而可以大大减少甚至消除第一命令在到达DRAM内存接口之后的等待时延,从而极大的保证了处理装置的低功耗性和低时延性。In the embodiment of the present invention, by adding a physical direct connection line between the processing module and multiple DRAM memory interfaces in the processing device, when the processing module needs to read or write data from a certain DRAM RANK, it can pass The physical direct connection line with the corresponding DRAM memory interface directly sends an indication signal to the DRAM memory interface to instruct the corresponding DRAM RANK to enter the working state (for example, wake up in advance and exit the low power consumption mode). Different from the processing module in the prior art that needs to pass the command path of the bus, it starts to instruct the DRAM to enter the working state when the first command is sent and arrives at the DRAM memory interface, and after the instruction, a series of operations (such as control Logic, physical layer interface protocol, etc.) can control the DRAM to actually enter the working state, and the duration of the entire wake-up process causes the read and write delay of the first command. In the embodiment of the present invention, while the first command is sent through the bus, the instruction signal can be directly sent to the DRAM memory interface through the added physical direct connection line, thereby instructing the DRAM memory interface to start a series of wake-up operations in advance. Therefore, the waiting time delay after the first command reaches the DRAM memory interface can be greatly reduced or even eliminated, thereby greatly ensuring the low power consumption and low time delay of the processing device.
可选的,第一DRAM内存接口402,还用于:接收处理模块401通过所述总线下发的所述第一命令,在确定第一DRAM RANK 403进入工作状态的情况下,将所述第一命令下发给第一DRAM RANK 403。即第一DRAM内存接口402通过总线接收到处理模块401发送的第一命令之后,此时,由于第一DRAM RANK已经提前进行了唤醒操作(存在两种情况,第一种为已经唤醒完成,第二种是已经提前唤醒但还未完成唤醒),因此,在确定第一DRAM RANK 403进入工作状态的情况,才可以将第一命令正常发送给第一DRAM RANK进行读写操作。本发明实施例中,处理装置中相应的DRAM内存接口除了接收到处理模块通过直连物理连线发送的第一指示信号以外,还会接收到处理模块通过总线发送的第一命令(例如,针对第一DRAM RANK的读写命令),并会在确认第一DRAM RANK已经进入工作状态的情况下,将该命令下发给第一DRAM RANK进行相应的读写操作。Optionally, the first DRAM memory interface 402 is further configured to: receive the first command issued by the processing module 401 via the bus, and when it is determined that the first DRAM RANK 403 enters the working state, set the first command A command is issued to the first DRAM RANK 403. That is, after the first DRAM memory interface 402 receives the first command sent by the processing module 401 through the bus, at this time, because the first DRAM RANK has already performed the wake-up operation in advance (there are two situations, the first is that the wake-up is completed, the first The second type is awakened in advance but not completed yet). Therefore, only when it is determined that the first DRAM RANK 403 enters the working state, the first command can be normally sent to the first DRAM RANK for read and write operations. In the embodiment of the present invention, the corresponding DRAM memory interface in the processing device not only receives the first indication signal sent by the processing module through the direct physical connection, but also receives the first command sent by the processing module through the bus (for example, for The read and write command of the first DRAM RANK), and after confirming that the first DRAM RANK has entered the working state, the command is issued to the first DRAM RANK for corresponding read and write operations.
在一种可能的实现方式中,若所述第一命令为DRAM读写命令,处理模块401还用于,若所述第一命令为DRAM读写命令,根据所述第一命令的地址确定所述第一命令对应的第一DRAM内存接口。本发明实施例中,处理装置中40的处理模块401通过第一命令中的相关有效信息(例如地址信息)判断该第一指令具体是发送给哪个DRAM内存接口的,从而判定通过哪个物理直连线路发送第一指示信号,进而控制对应的DRAM内存接口唤醒对应的DRAM RANK进入工作状态。In a possible implementation, if the first command is a DRAM read and write command, the processing module 401 is further configured to, if the first command is a DRAM read and write command, determine the address of the first command according to the address of the first command. The first DRAM memory interface corresponding to the first command. In the embodiment of the present invention, the processing module 401 in the processing device 40 determines which DRAM memory interface the first command is sent to by using relevant valid information (such as address information) in the first command, thereby determining which physical direct connection is passed The line sends the first indication signal, and then controls the corresponding DRAM memory interface to wake up the corresponding DRAM RANK and enter the working state.
在一种可能的实现方式中,所述第一指示信号为高电平信号;所述第一DRAM内存接口具体用于:在接收到所述高电平信号的情况下,控制所述第一DRAM RANK进入工作状态。可选的,处理模块401可以通过所述第一物理连线实现高电平输出,并在第一时间段内维持所述高电平输出;第一DRAM内存接口402,具体用于根据所述高电平输出,控制第一DRAM RANK 403在所述第一时间段内进入并保持在工作状态。可以理解的是,本申请中的第一指示信号的具体指示方式可以有多种,例如,预设指示信号、预设指示信息等,均可以指示第一DRAM内存接口进行提前唤醒操作。而本发明实施例中的指示方式为,处理装置40中的处理模块401通过第一物理连线发送高电平信号,例如,实现高电平输出,从而通过拉高电平的方式向第一DRAM内存接口402指示控制对应的DRAM RANK 403进入工作状态,并且第一DRAM内存接口在监测到高电平维持的同时,将继续控制第一DRAM RANK 403保持在工作状态。从而可以实现第一DRAM RANK在有数据读写时快速进入工作状态,同时保证了处理装置的低功耗性和低时延性。In a possible implementation manner, the first indication signal is a high-level signal; the first DRAM memory interface is specifically configured to: when the high-level signal is received, control the first DRAM RANK enters the working state. Optionally, the processing module 401 may implement a high-level output through the first physical connection, and maintain the high-level output for a first period of time; the first DRAM memory interface 402 is specifically used to The high-level output controls the first DRAM RANK 403 to enter and maintain the working state in the first time period. It is understandable that the specific indication manner of the first indication signal in this application can be multiple, for example, the preset indication signal, the preset indication information, etc., can all instruct the first DRAM memory interface to perform an early wake-up operation. However, the instruction method in the embodiment of the present invention is that the processing module 401 in the processing device 40 sends a high-level signal through the first physical connection, for example, to achieve a high-level output, thereby pulling a high level to the first The DRAM memory interface 402 instructs to control the corresponding DRAM RANK 403 to enter the working state, and the first DRAM memory interface will continue to control the first DRAM RANK 403 to remain in the working state while monitoring that the high level is maintained. Therefore, the first DRAM RANK can quickly enter the working state when there is data reading and writing, and at the same time, the low power consumption and low latency of the processing device can be ensured.
在一种可能的实现方式中,第一DRAM RANK 403为第一双倍速率同步动态随机存取存储器DDR RANK;如图3所示,图3为发明实施例提供的另一种处理装置的结构示意图, 第一DRAM内存接口402包括DDR控制器和DDR物理接口PHY;第一DDR内存接口402,具体用于在所述DDR控制器接收到所述高电平信号的情况下,控制所述DDR PHY退出DFI低功耗状态,并通过所述DDR PHY控制第一DDR RANK403退出断电状态或自刷新状态。即当DRAM RANK为DDR RANK时,DRAM内存接口包括了DDR控制器和DDR PHY,则控制DDR RANK进入工作状态的具体过程包括先控制DDR PHY退出低功耗状态,例如DDR物理层的接口(The DDR PHY Interface,DFI)低功耗状态,再通过退出DFI低功耗状态下的DDR PHY控制第一DDR RANK退出断电状态或自刷新状态。In a possible implementation, the first DRAM RANK 403 is the first double-rate synchronous dynamic random access memory DDR RANK; as shown in FIG. 3, FIG. 3 is a structure of another processing device provided by an embodiment of the invention In a schematic diagram, the first DRAM memory interface 402 includes a DDR controller and a DDR physical interface PHY; the first DDR memory interface 402 is specifically used to control the DDR when the DDR controller receives the high-level signal. The PHY exits the DFI low power consumption state, and controls the first DDR RANK403 to exit the power-off state or the self-refresh state through the DDRPHY. That is, when DRAM RANK is DDR RANK, the DRAM memory interface includes DDR controller and DDR PHY, then the specific process of controlling DDR RANK to enter the working state includes first controlling DDR PHY to exit the low-power state, such as the DDR physical layer interface (The DDR PHY Interface, DFI) low power consumption state, and then control the first DDR RANK to exit the power-off state or self-refresh state by exiting the DDR PHY in the DFI low power state.
在一种可能的实现方式中,处理模块401,还用于在未检测到发送所述第一命令时或者当所述第一命令不为DRAM读写命令时,则通过所述第一物理连线向第一DRAM内存接口402发送第二指示信号,所述第二指示信号用于指示第一DRAM RANK 403进入低功耗状态;第一DRAM内存接口402,用于在接收到所述第二指示信号的情况下,控制所述第一DRAM RANK 403进入低功耗状态。可选的,第一DRAM内存接口402在接收到第二指示信号的情况下,可以在预设时间段之后再控制第一DRAM RANK 403进入低功耗状态,例如预设时间段为100ns、200ns等,本申请对此不作具体限定。即当在没有第一命令需要发送,或者是有第一命令需要发送但是对应的DRAM RANK已经执行完成的情况下,则可以由处理模块通过物理连线,向对应的DRAM内存接口发送第二指示信号,指示对应的DRAM内存接口立即或者在预设时间段之后控制对应的DRAM RANK进入低功耗状态,以便于节省功耗。其中,在预设时间段之后才控制DRAM进入低功耗状态的原因在于,若当前无DRAM命令需要执行,并不代表短时间内不会接收到新的命令(多个命令发出,可能存在短暂的时间差),为了减少因过早进入低功耗状态而导致的频繁唤醒操作,则可以通过在预设时间段之后,且在该过程中确认再无命令需要执行,才确定进入低功耗状态,更有利于保证系统的低功耗性和低时延性。可选的,也可以在第一DRAM内存接口接收到第二指示信号之后,还经过其他的条件判断,确认了短时间内不会再有DRAM命令需要执行的情况下,再进一步控制DRAM进入低功耗模式。In a possible implementation manner, the processing module 401 is further configured to use the first physical connection when sending the first command is not detected or when the first command is not a DRAM read/write command. The line sends a second indication signal to the first DRAM memory interface 402, where the second indication signal is used to instruct the first DRAM RANK 403 to enter a low power consumption state; the first DRAM memory interface 402 is used for receiving the second In the case of an indication signal, the first DRAM RANK 403 is controlled to enter a low power consumption state. Optionally, when the first DRAM memory interface 402 receives the second indication signal, it may control the first DRAM RANK 403 to enter the low power consumption state after a preset time period, for example, the preset time period is 100ns, 200ns Etc., this application does not specifically limit this. That is, when there is no first command to send, or there is a first command to send but the corresponding DRAM RANK has been executed, the processing module can send a second instruction to the corresponding DRAM memory interface through a physical connection The signal indicates that the corresponding DRAM memory interface controls the corresponding DRAM RANK to enter a low power consumption state immediately or after a preset period of time, so as to save power consumption. Among them, the reason why the DRAM is controlled to enter the low-power state after the preset time period is that if there is no DRAM command to be executed currently, it does not mean that no new command will be received in a short time (multiple commands are issued, there may be a short In order to reduce the frequent wake-up operations caused by entering the low-power state too early, you can enter the low-power state by confirming that there are no more commands to be executed after a preset period of time. , Which is more conducive to ensuring the low power consumption and low latency of the system. Optionally, after the first DRAM memory interface receives the second indication signal, other conditions are also judged to confirm that there will be no more DRAM commands to be executed in a short period of time, and then further control the DRAM to enter the low state. Power consumption mode.
在一种可能的实现方式中,所述第二指示信号为低电平信号;所述第一DRAM内存接口具体用于:在接收到所述低电平信号的情况下,控制所述第一DRAM RANK进入低功耗状态。可选的,处理模块401可通过所述第一物理连线实现低电平输出,并在第二时间段内维持所述低电平输出;第一DRAM内存接口402,具体用于根据所述低电平输出,在所述预设时间段之后控制第一DRAM RANK 403在所述第二时间段内进入并保持在低功耗状态。本发明实施例,处理装置中的处理模块通过第一物理连线发送的低电平信号,例如实现低电平输出,从而通过拉低电平的方式向第一DRAM内存接口指示控制对应的DRAM RANK进入低功耗状态,并且第一DRAM内存接口在监测到低电平维持的同时,继续控制第一DRAM RANK保持在低功耗状态。从而可以实现第一DRAM RANK在有数据读写时快速进入工作状态,在无数据读写时,则可立即或者经过一定的等待再进入低功耗模式,同时保证了处理装置的低功耗性和低时延性。In a possible implementation manner, the second indication signal is a low-level signal; the first DRAM memory interface is specifically configured to: when the low-level signal is received, control the first DRAM RANK enters a low power consumption state. Optionally, the processing module 401 may implement low-level output through the first physical connection, and maintain the low-level output during the second time period; the first DRAM memory interface 402 is specifically used to Low-level output, after the preset period of time, the first DRAM RANK 403 is controlled to enter and maintain a low power consumption state in the second period of time. In the embodiment of the present invention, the processing module in the processing device sends a low-level signal through the first physical connection, for example, realizes low-level output, thereby instructing the first DRAM memory interface to control the corresponding DRAM by pulling the low level. The RANK enters the low power consumption state, and the first DRAM memory interface continues to control the first DRAM RANK to maintain the low power consumption state while monitoring that the low level is maintained. Thus, the first DRAM RANK can quickly enter the working state when there is data read and write, and when there is no data read or write, it can enter the low power consumption mode immediately or after a certain wait, while ensuring the low power consumption of the processing device And low latency.
在一种可能的实现方式中,第一DRAM RANK 403为第一双倍速率同步动态随机存取存储器DDR RANK;可参见图3,第一DRAM内存接口402包括DDR控制器和DDR物理接口PHY;第一DRAM内存接口402,具体用于在所述DDR控制器接收到所述低电平 信号的情况下,通过所述DDR PHY控制所述第一DDR RANK进入断电状态或自刷新状态,并控制所述DDR PHY进入低功耗状态。可选的,第一DRAM内存接口402,具体用于在所述DDR控制器接收到所述低电平输出的情况下,在所述预设时间段之后,通过所述DDR PHY控制所述第一DDR RANK进入断电状态或自刷新状态,并控制所述DDR PHY在所述第二时间段内进入并保持在DFI低功耗状态。即当DRAM RANK为DDR RANK时,DRAM内存接口包括了DDR控制器和DDR PHY,则控制DDR RANK进入低功耗状态的过程包括,立即或者在所述预设时间段之后,先通过DDR PHY控制第一DDR RANK退出断电状态或自刷新状态,再控制DDR PHY在第二时间段内进入并保持在DFI低功耗状态,其中,第二时间段为第一物理连线维持低电平的时间段。In a possible implementation, the first DRAM RANK 403 is the first double-rate synchronous dynamic random access memory DDR RANK; referring to FIG. 3, the first DRAM memory interface 402 includes a DDR controller and a DDR physical interface PHY; The first DRAM memory interface 402 is specifically configured to control the first DDR RANK to enter the power-off state or the self-refresh state through the DDR PHY when the DDR controller receives the low-level signal, and Control the DDR PHY to enter a low power consumption state. Optionally, the first DRAM memory interface 402 is specifically configured to control the first DRAM through the DDR PHY after the preset period of time when the DDR controller receives the low-level output. A DDR RANK enters a power-off state or a self-refresh state, and controls the DDR PHY to enter and maintain the DFI low power consumption state during the second time period. That is, when DRAM RANK is DDR RANK, and the DRAM memory interface includes DDR controller and DDR PHY, the process of controlling DDR RANK to enter the low power consumption state includes, immediately or after the preset time period, first through DDR PHY control The first DDR RANK exits the power-off state or the self-refresh state, and then controls the DDR PHY to enter and maintain the DFI low power consumption state in the second time period. The second time period is when the first physical connection maintains a low level period.
在一种可能的实现方式中,第一DRAM内存接口402连接M个所述第一DRAM RANK,M为大于或者等于2的整数;处理模块401与第一DRAM内存接口402之间通过M个所述第一物理连线直连,其中,一个第一物理连线对应一个第一DRAM RANK。本发明实施例中,当DRAM中包括多个DRAM RANK时,即第一DRAM内存接口连接并控制多个DRAM RANK时,由于控制DRAM进入工作状态或者进入低功耗状态是以DRAM RANK为单位的,因此,处理模块与第一DRAM内存接口之间需要连接多个物理连线,以使得一个物理连线可以对应控制一个DRAM RANK,提升控制的精准度。In a possible implementation manner, the first DRAM memory interface 402 is connected to M first DRAM RANKs, where M is an integer greater than or equal to 2; the processing module 401 and the first DRAM memory interface 402 pass through M RANKs. The first physical connection is directly connected, where one first physical connection corresponds to a first DRAM RANK. In the embodiment of the present invention, when multiple DRAM RANKs are included in the DRAM, that is, when the first DRAM memory interface is connected to and controls multiple DRAM RANKs, the DRAM RANK is the unit of controlling the DRAM to enter the working state or enter the low power consumption state. Therefore, multiple physical connections need to be connected between the processing module and the first DRAM memory interface, so that one physical connection can control one DRAM RANK correspondingly, and improve the accuracy of control.
在一种可能的实现方式中,所述芯片与所述第一DRAM RANK在不同的封装衬底上。表明本申请所保护的芯片与内存之间是分开的本发明实施例,处理装置与DRAM之间可以分布于不同的芯片上,即处理装置可以灵活外扩DRAM存储器,以满足不同的应用场景;也可以避免处理装置与DRAM在同一芯片上面积太大,封装难以实现的问题;同时,由于DRAM生产工艺相对落后于SOC,因此,采用外扩的实现方式可以节省成本,。In a possible implementation manner, the chip and the first DRAM RANK are on different packaging substrates. In the embodiment of the present invention that shows that the chip protected by this application is separated from the memory, the processing device and the DRAM can be distributed on different chips, that is, the processing device can flexibly expand the DRAM memory to meet different application scenarios; It can also avoid the problem that the processing device and the DRAM are too large on the same chip and the packaging is difficult to achieve; at the same time, because the DRAM production process is relatively behind the SOC, the use of external expansion can save costs.
由于本申请中的处理装置40的处理模块401,可以为任意对DRAM有读写能力的处理器件或处理设备(如处理器、协处理器、调制解调器、多媒体系统等)。因此,本申请中的处理模块401除了实现上述图2-图3中实施例的相应功能,其本身还需要实现处理器、协处理器、调制解调器、多媒体系统等的功能。因此,为了不影响处理模块作为上述器件或设备的功能,本发明实施例提供一种在处理模块401中增加提前唤醒模块110(Fast Wake Up模块)的方式来实现处理模块401的提前唤醒功能。Because the processing module 401 of the processing device 40 in this application can be any processing device or processing device (such as a processor, a coprocessor, a modem, a multimedia system, etc.) that has the ability to read and write to DRAM. Therefore, the processing module 401 in the present application not only implements the corresponding functions of the embodiments in FIGS. 2 to 3, but also needs to implement the functions of a processor, a coprocessor, a modem, a multimedia system, etc. Therefore, in order not to affect the function of the processing module as the aforementioned device or device, the embodiment of the present invention provides a method of adding an early wake-up module 110 (Fast Wake Up module) to the processing module 401 to implement the early wake-up function of the processing module 401.
请参见图4,图4为本发明实施例提供的又一种处理装置的结构示意图,图4中,以处理模块401为Master100、Master102和Master104为例,以DRAM内存接口402为Memory Controller 300A+DDR PHY 302A、Memory Controller 300B+DDR PHY 302B、Memory Controller 300C+DDR PHY 302C和Memory Controller 300D+DDR PHY 302D为例,以DRAM内存接口对应的DRAM 304A、DRAM 304B、DRAM 304C、DRAM 304D为例,以及以判断条件为是否为DRAM读命令为例,基于实际应用场景描述处理装置是如何实现本申请中提前唤醒功能的。根据处理装置40中的不同功能模块在时序上所执行的功能,可以包括以下步骤:Please refer to FIG. 4, which is a schematic structural diagram of another processing device provided by an embodiment of the present invention. In FIG. 4, the processing modules 401 are Master100, Master102, and Master104 as an example, and the DRAM memory interface 402 is Memory Controller 300A+ DDR PHY 302A, Memory Controller 300B+DDR PHY 302B, Memory Controller 300C+DDR PHY 302C and Memory Controller 300D+DDR PHY 302D as examples, take DRAM 304A, DRAM 304B, DRAM 304C, DRAM 304D corresponding to the DRAM memory interface as examples. And taking the judgment condition of whether it is a DRAM read command as an example, how the processing device implements the early wake-up function in this application is described based on actual application scenarios. According to the functions performed by different functional modules in the processing device 40 in time sequence, the following steps may be included:
1、针对Latency敏感的Masters(100、102、104)出口处增加Fast Wake Up110模块(集成在这些Maters子系统内),由其根据命令地址及属性判断是否为访问DRAM的读命令, 若是则进一步根据命令地址判断是读DRAM哪个channel哪个rank;1. Add a Fast Wake Up110 module (integrated in these Maters subsystems) at the exit of Latency-sensitive Masters (100, 102, 104), and determine whether it is a read command to access DRAM based on the command address and attributes, and if so, go further According to the command address, determine which channel and rank to read DRAM;
2、每个Fast Wake Up模块110会产生每个channel的每个rank的请求退出DFI Low Power和DRAM Power Down&Self Refresh的指示信号,如图4中所示:ch0_rank0_exit和ch0_rank1_exit分别是请求channel0的rank0和rank1退出低功耗的指示信号,由硬连线从Fast Wake Up模块110直连到channel0的Memory Controller(300A);ch1_rank0_exit和ch1_rank1_exit分别是请求channel1的rank0和rank1退出低功耗的指示信号,由硬连线从Fast Wake Up模块110直连到channel1的Memory Controller(300B);ch2_rank0_exit和ch2_rank1_exit分别是请求channel2的rank0和rank1退出低功耗的指示信号,由硬连线从Fast Wake Up模块110直连到channel2的Memory Controller(300C);ch3_rank0_exit和ch3_rank1_exit分别是请求channel3的rank0和rank1退出低功耗的指示信号,由硬连线从Fast Wake Up模块110直连到channel3的Memory Controller(300D);2. Each Fast Wake Up module 110 will generate an indication signal for each rank of each channel to request exit DFI Low Power and DRAM Power Down & Self Refresh, as shown in Figure 4: ch0_rank0_exit and ch0_rank1_exit are the rank0 and rank0 of requesting channel0, respectively The indication signal for rank1 to exit low power consumption is hardwired from the Fast Wake Up module 110 to the Memory Controller (300A) of channel 0; ch1_rank0_exit and ch1_rank1_exit are the indication signals for requesting rank0 and rank1 of channel1 to exit low power consumption, respectively. Hard-wired from the Fast Wake Up module 110 to the Memory Controller (300B) of channel1; ch2_rank0_exit and ch2_rank1_exit are indication signals for requesting rank0 and rank1 of channel2 to exit the low-power consumption, and hardwired directly from the Fast Wake Up module 110 Connected to the Memory Controller (300C) of channel2; ch3_rank0_exit and ch3_rank1_exit are indication signals for requesting rank0 and rank1 of channel3 to exit low power consumption, and are hard-wired from the Fast Wake Up module 110 to the Memory Controller (300D) of channel3;
3、Fast Wake Up模块110在没有检测到访问某个channel某个rank的读命令时,会将该channel该rank的请求退出DFI Low Power和DRAM Power Down&Self Refresh的指示信号维持为低,等有检测到时会将该channel该rank的该指示信号拉高,Memory Controller(300A、300B、300C、300D)根据拉高的指示信号控制相应channel退出DFI Low Power和相应channel+rank退出DRAM Power Down&Self Refresh;3. When the Fast Wake Up module 110 does not detect a read command to access a certain rank of a certain channel, it will exit the channel's request for that rank. DFI Low Power and DRAM Power Down&Self Refresh indicator signals are maintained low, and wait for detection At that time, the indicator signal of the rank of the channel will be pulled high, and the Memory Controller (300A, 300B, 300C, 300D) will control the corresponding channel to exit DFI Low Power and the corresponding channel+rank to exit DRAM Power Down&Self Refresh according to the raised indicator signal;
本发明实施例,通过在对Latency敏感的Masters(100、102、104)出口处增加Fast Wake Up模块110(集成在这些Maters子系统内),提前识别访问DRAM的读命令,用直接连线方式控制在读命令到达Memory Controller 300之前提前(提前量为Masters(100、102、104)到Memory Controller 300的命令通路延时减去直接连线延时)唤醒相应channel的DFI Low Power和相应channel+rank的DRAM Power Down&Self Refresh,使DRAM的读命令到达Memory Controller 300后需等待的退出该low power特性的时间变短,从而减小该low power特性对Latency的影响,进而等待进入DFI low power、DRAM Power Down时间和等待进入DRAM Self Refresh时间配置可变小,进退DFI low power和DRAM Power Down&Self Refresh可以更加频繁,最终达到提高能效比的目的;In the embodiment of the present invention, the Fast Wake Up module 110 (integrated in these Maters subsystems) is added at the exit of the Latency-sensitive Masters (100, 102, 104) to identify read commands to access DRAM in advance and use direct connection Control the read command in advance before it reaches the Memory Controller 300 (the advance amount is the command path delay of Masters (100, 102, 104) to the Memory Controller 300 minus the direct connection delay) to wake up the DFI Low Power of the corresponding channel and the corresponding channel+rank DRAM Power Down&Self Refresh, so that after the DRAM read command reaches the Memory Controller 300, the time required to exit the low power feature is shortened, thereby reducing the impact of the low power feature on latency, and then waiting to enter DFI low power, DRAM Power Down time and waiting to enter the DRAM Self Refresh time configuration can be reduced, advance and retreat DFI low power and DRAM Power Down&Self Refresh can be more frequent, and ultimately achieve the purpose of improving energy efficiency;
本发明实施例中,退出低功耗指示信号分channel和分rank,实现其它channel+rank在没被访问时不被唤醒的效果,从而达到节省功耗的目的;并且,是否使能Fast Wake Up功能寄存器可配,实现可根据实际业务场景选择是否使能的效果,从而达到相应场景能效比最好的目的;进一步地,退出低功耗指示信号拉高后维持时间寄存器可配,实现“以免撤销过早而当命令到达Memory Controller 300时Memory Controller 300已重新进入了DFI Low Power和DRAM Power Down&Self Refresh,也以免维持时间过长而导致下次进入DFI Low Power和DRAM Power Down&Self Refresh被delay”的效果,从而达到性能提升且功耗浪费减少的目的。In the embodiment of the present invention, the exit low-power consumption indication signal is divided into channels and ranks, so that other channel+ranks are not awakened when they are not accessed, thereby achieving the purpose of saving power consumption; and whether Fast Wake Up is enabled The function register can be configured to realize the effect of selecting whether to enable or not according to the actual business scenario, so as to achieve the best energy efficiency ratio of the corresponding scenario; further, the maintenance time register is configurable after the exit low power consumption indicator signal is pulled high to realize the Cancellation is too early and when the command reaches Memory Controller 300, Memory Controller 300 has re-entered DFI Low Power and DRAM Power Down&Self Refresh, so as to avoid the maintenance time being too long and cause DFI Low Power and DRAM Power Down&Self Refresh to be delayed next time. Effect, so as to achieve the purpose of performance improvement and power consumption reduction.
作为对图4中部分内容的细化,图5是本发明实施例提供的一种提前唤醒模块的结构示意图,该提前唤醒模块110可以位于一个处理模块401内。该处理模块401可以是处理器、协处理器、调制解调器、多媒体系统等各种类型的具有DRAM读写能力的器件或设备。该提前唤醒模块包括探测器500、地址索引码寄存器502、比较器504、计时器506和控制 并维持电平信号的寄存器508。其中,As a refinement of part of the content in FIG. 4, FIG. 5 is a schematic structural diagram of an early wake-up module provided by an embodiment of the present invention. The early wake-up module 110 may be located in a processing module 401. The processing module 401 may be a processor, a coprocessor, a modem, a multimedia system, and other devices or devices with DRAM read and write capabilities. The early wake-up module includes a detector 500, an address index code register 502, a comparator 504, a timer 506, and a register 508 for controlling and maintaining level signals. among them,
1、探测器500根据第一命令的地址及属性(来自Masters(100、102、104)传给Fast Wake Up模块的命令相关信息command_info)判断是否为访问DRAM的读命令;若读写命令通道没有合并,被连到Fast Wake Up模块110的command_info可只为读命令相关信号,从而只需根据命令地址及属性信号判断是否为访问DRAM的命令即可;若读写命令通道合并(有些Master设计上为减少与下游模块之间的连线,会将读写命令通道合并,此时读和写分时复用命令线,由读写类型指示信号区分是读命令还是写命令),需先根据被连到Fast Wake Up模块110的command_info(即第一命令中的部分或全部信息)中读写类型指示信号判断是否为读命令,再根据命令地址及属性信号判断是否为访问DRAM的读命令。1. The detector 500 judges whether it is a read command to access DRAM according to the address and attributes of the first command (command_info from Masters (100, 102, 104) to the Fast Wake Up module); if the read command channel is not Merged, the command_info connected to the Fast Wake Up module 110 can only be a read command related signal, so you only need to judge whether it is a command to access DRAM according to the command address and attribute signal; if the read and write command channels are merged (some Master designs In order to reduce the connection with the downstream module, the read and write command channels will be combined. At this time, the read and write time-sharing command lines are multiplexed. The read and write type indicates the signal to distinguish the read command or the write command). The command_info (that is, part or all of the information in the first command) connected to the command_info of the Fast Wake Up module 110 determines whether it is a read command, and then determines whether it is a read command to access DRAM according to the command address and attribute signal.
2、地址索引码寄存器502根据地址映射信息address_map_info(由寄存器配置)中的channel排列顺序和channel交织粒度信息,得出指示属于哪个channel的比特位在地址的哪个位域,和各个channel的编码;2. The address index code register 502, according to the channel arrangement order and channel interleaving granularity information in the address mapping information address_map_info (configured by the register), obtains the bit field indicating which channel belongs to which bit field of the address, and the code of each channel;
3、地址索引码寄存器502根据地址映射信息address_map_info(由寄存器配置)中的rank映射和rank交织信息,得出指示属于哪个rank的比特位在地址的哪个位域,和各个rank的编码;3. The address index code register 502, according to the rank mapping and rank interleaving information in the address mapping information address_map_info (configured by the register), obtains the bit field indicating which rank belongs to which bit field of the address, and the code of each rank;
4、比较器504在确定是访问DRAM的读命令之后,先将访问DRAM的读命令地址中指示属于哪个channel的比特位,与各个channel的编码进行对比,找出该读DRAM命令是访问哪个channel;4. After the comparator 504 determines that it is a read command to access the DRAM, it first compares the bits of the read command address of the access DRAM indicating which channel it belongs to and compares it with the codes of each channel to find out which channel the read DRAM command is accessing ;
5、比较器504再将访问DRAM的读命令地址中指示属于哪个rank的比特位,与各个rank的编码进行对比,找出该读DRAM命令是访问哪个rank;5. The comparator 504 then compares the bit indicating which rank belongs to the read command address of the access DRAM with the code of each rank to find out which rank the read DRAM command is accessing;
6、控制并维持电平信号的寄存器508将读DRAM命令访问的那个channel+rank的退出低功耗指示信号拉高,并触发相应channel+rank的计时器506从由wakeup_keep_info(由寄存器配置)决定的cycle数开始往下计时,计到0之前,相应channel+rank的退出低功耗指示信号维持为高,计到0之后,相应channel+rank的退出低功耗指示信号拉低;6. The register 508 that controls and maintains the level signal pulls the exit low power consumption indication signal of the channel+rank accessed by the read DRAM command to high, and triggers the corresponding channel+rank timer 506 to be determined by wakeup_keep_info (configured by the register) The number of cycles starts to count down. Before counting to 0, the exit low power consumption indication signal of the corresponding channel+rank remains high. After counting to 0, the exit low power consumption indication signal of the corresponding channel+rank is pulled down;
7、控制并维持电平信号的寄存器508在fast_wakeup_en(由寄存器配置)为0时,各个channel+rank的退出低功耗指示信号固定为低;为1时,由上述判断和控制流程决定;7. When fast_wakeup_en (configured by the register) of the register 508 that controls and maintains the level signal is 0, the exit low power consumption indication signal of each channel+rank is fixed to low; when it is 1, it is determined by the above judgment and control process;
可以理解的是,本发明实施例具体所应用的系统架构包括但不仅限于基于图2-图4中处理装置的架构,只要可以应用本申请中的处理装置进行提前唤醒的相关处理的架构均属于本申请所保护和涵盖的范围。It is understandable that the specific system architecture applied by the embodiment of the present invention includes but is not limited to the architecture based on the processing device in Figures 2 to 4, as long as the processing device in this application can be applied to perform early wake-up related processing architectures. The scope of protection and coverage of this application.
请参见图6,图6是本发明实施例提供的一种处理方法的流程示意图,该处理方法,适用于上述图2-图5中的任意一种处理装置以及包含所述处理装置的设备。该方法可以包括以下步骤S601-步骤S604。Please refer to FIG. 6. FIG. 6 is a schematic flowchart of a processing method provided by an embodiment of the present invention. The processing method is applicable to any of the processing apparatuses in FIGS. 2 to 5 and the equipment including the processing apparatus. The method may include the following steps S601-S604.
S601:由处理模块判断第一命令是否为动态随机存储器DRAM读写命令;S601: The processing module determines whether the first command is a dynamic random access memory DRAM read and write command;
S602:若所述第一命令为DRAM读写命令,由所述处理模块通过第一物理连线向第一DRAM内存接口发送第一指示信号;S602: If the first command is a DRAM read and write command, the processing module sends a first instruction signal to the first DRAM memory interface through the first physical connection;
所述处理模块与N个DRAM内存接口之间通过总线相连,且所述处理模块还通过物理连线分别与所述N个DRAM内存接口直连,N为大于或者等于1的整数;所述第一DRAM 内存接口为所述N个DRAM内存接口中与所述第一命令对应的内存接口,所述第一指示信号用于指示第一DRAM模组RANK进入工作状态;其中,所述第一物理连线为所述处理模块与所述第一DRAM内存接口之间的物理连线;所述第一DRAM RANK为所述第一DRAM内存接口所连接的DRAM RANK;The processing module is connected to the N DRAM memory interfaces through a bus, and the processing module is also directly connected to the N DRAM memory interfaces through physical connections, where N is an integer greater than or equal to 1; A DRAM memory interface is the memory interface corresponding to the first command among the N DRAM memory interfaces, and the first indication signal is used to instruct the first DRAM module RANK to enter the working state; wherein, the first physical The connection is a physical connection between the processing module and the first DRAM memory interface; the first DRAM RANK is the DRAM RANK connected to the first DRAM memory interface;
S603:所述第一DRAM内存接口在接收到所述第一指示信号的情况下,控制所述第一DRAM RANK进入工作状态。S603: When receiving the first indication signal, the first DRAM memory interface controls the first DRAM RANK to enter a working state.
S604:通过所述第一DRAM内存接口,接收所述处理模块通过所述总线下发的所述第一命令,并在确定所述第一DRAM RANK进入工作状态的情况下,将所述第一命令下发给所述第一DRAM RANK。S604: Receive the first command issued by the processing module through the bus through the first DRAM memory interface, and when it is determined that the first DRAM RANK enters the working state, set the first command The command is issued to the first DRAM RANK.
在一种可能的实现方式中,所述方法还包括:若所述第一命令为DRAM读写命令,根据所述第一命令的地址判断所述第一命令对应的第一DRAM内存接口。In a possible implementation manner, the method further includes: if the first command is a DRAM read/write command, judging the first DRAM memory interface corresponding to the first command according to the address of the first command.
在一种可能的实现方式中,所述第一指示信号为高电平信号;所述第一DRAM内存接口在接收到所述第一指示信号的情况下,控制所述第一DRAM RANK进入工作状态,包括:所述第一DRAM内存接口根据所述高电平信号,控制所述第一DRAM RANK进入工作状态。In a possible implementation manner, the first indication signal is a high-level signal; when the first DRAM memory interface receives the first indication signal, the first DRAM RANK is controlled to enter work The state includes: the first DRAM memory interface controls the first DRAM RANK to enter the working state according to the high-level signal.
在一种可能的实现方式中,所述第一DRAM RANK为第一双倍速率同步动态随机存取存储器DDR RANK;所述第一DRAM内存接口包括DDR控制器和DDR物理接口PHY;所述第一DRAM内存接口根据所述高电平信号,控制所述第一DRAM RANK进入工作状态,包括:所述DDR控制器在接收到所述高电平信号的情况下,控制所述DDR PHY退出DFI低功耗状态,并通过所述DDR PHY控制所述第一DDR RANK退出断电状态或自刷新状态。In a possible implementation manner, the first DRAM RANK is a first double-rate synchronous dynamic random access memory DDR RANK; the first DRAM memory interface includes a DDR controller and a DDR physical interface PHY; A DRAM memory interface controls the first DRAM RANK to enter the working state according to the high level signal, including: the DDR controller controls the DDR PHY to exit DFI when the high level signal is received Low power consumption state, and controlling the first DDR RANK to exit the power-off state or the self-refresh state through the DDR PHY.
在一种可能的实现方式中,所述方法,还包括:在未检测到通过所述总线发送所述第一命令时或者当所述第一DRAM RANK已经执行完成所述第一命令时,由所述处理模块通过所述第一物理连线向所述第一DRAM内存接口发送第二指示信号,所述第二指示信号用于指示所述第一DRAM RANK进入低功耗状态;所述第一DRAM内存接口在接收到所述第二指示信号的情况下,控制所述第一DRAM RANK进入低功耗状态。In a possible implementation manner, the method further includes: when it is not detected that the first command is sent through the bus or when the first DRAM RANK has executed and completed the first command, The processing module sends a second indication signal to the first DRAM memory interface through the first physical connection, where the second indication signal is used to instruct the first DRAM RANK to enter a low power consumption state; When receiving the second indication signal, a DRAM memory interface controls the first DRAM RANK to enter a low power consumption state.
在一种可能的实现方式中,所述第二指示信号为低电平信号;所述第一DRAM内存接口在接收到所述第二指示信号的情况下,控制所述第一DRAM RANK进入低功耗状态,包括:所述第一DRAM内存接口在接收到所述低电平信号的情况下,控制所述第一DRAM RANK进入低功耗状态。In a possible implementation manner, the second indication signal is a low level signal; when the first DRAM memory interface receives the second indication signal, it controls the first DRAM RANK to enter low The power consumption state includes: when the first DRAM memory interface receives the low-level signal, controlling the first DRAM RANK to enter a low power consumption state.
在一种可能的实现方式中,所述第一DRAM RANK为第一双倍速率同步动态随机存取存储器DDR RANK;所述第一DRAM内存接口包括DDR控制器和DDR物理接口PHY;所述第一DRAM内存接口在接收到所述低电平信号的情况下,控制所述第一DRAM RANK进入低功耗状态,包括:所述DDR控制器在接收到所述低电平信号的情况下,通过所述DDR PHY控制所述第一DDR RANK进入断电状态或自刷新状态,并控制所述DDR PHY进入低功耗状态。In a possible implementation manner, the first DRAM RANK is a first double-rate synchronous dynamic random access memory DDR RANK; the first DRAM memory interface includes a DDR controller and a DDR physical interface PHY; When a DRAM memory interface receives the low-level signal, controlling the first DRAM RANK to enter a low-power consumption state includes: when the DDR controller receives the low-level signal, The DDR PHY controls the first DDR RANK to enter a power-off state or a self-refresh state, and controls the DDR PHY to enter a low power consumption state.
在一种可能的实现方式中,所述第一DRAM内存接口连接M个所述第一DRAM RANK,M为大于或者等于2的整数;所述处理模块与所述第一DRAM内存接口之间通过 M个所述第一物理连线直连,其中,一个所述第一物理连线对应一个所述第一DRAM RANK。In a possible implementation manner, the first DRAM memory interface is connected to M first DRAM RANKs, where M is an integer greater than or equal to 2; the processing module and the first DRAM memory interface pass through The M first physical connections are directly connected, wherein one first physical connection corresponds to one first DRAM RANK.
在一种可能的实现方式中,所述处理模块与所述N个DRAM内存接口在同一个封装衬底上,且与所述第一DRAM RANK在不同的封装衬底上。In a possible implementation manner, the processing module and the N DRAM memory interfaces are on the same packaging substrate, and are on a different packaging substrate from the first DRAM RANK.
需要说明的是,本发明实施例中所描述的处理方法中的具体流程,可参见上述图1-图4中所述的发明实施例中的相关描述,此处不再赘述。It should be noted that, for the specific process in the processing method described in the embodiment of the present invention, please refer to the related description in the embodiment of the present invention described in FIG. 1 to FIG. 4, which will not be repeated here.
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任意一种的部分或全部步骤。An embodiment of the present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program includes part or all of the steps of any one of the above method embodiments when executed.
本发明实施例还提供一种计算机程序,该计算机程序包括指令,当该计算机程序被计算机执行时,使得计算机可以执行任意一种处理方法的部分或全部步骤。The embodiment of the present invention also provides a computer program, the computer program includes instructions, when the computer program is executed by a computer, the computer can execute part or all of the steps of any processing method.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可能可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that this application is not limited by the described sequence of actions. Because according to this application, some steps may be performed in other order or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the above-mentioned units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or integrated. To another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以为个人计算机、服务器或者网络设备等,具体可以是计算机设备中的处理器)执行本申请各个实施例上述方法的全部或部分步骤。其中,而前述的存储介质可包括:U盘、移动硬盘、磁碟、光盘、只读存储器(Read-Only Memory,缩写:ROM)或者随机存取存储器(Random Access Memory,缩写:RAM)等各种可以存储程序代码的介质。If the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which can be a personal computer, a server, or a network device, etc., specifically a processor in a computer device) execute all or part of the steps of the above methods in the various embodiments of the present application. Among them, the aforementioned storage media may include: U disk, mobile hard disk, magnetic disk, optical disk, read-only memory (Read-Only Memory, abbreviation: ROM) or Random Access Memory (Random Access Memory, abbreviation: RAM), etc. A medium that can store program codes.

Claims (22)

  1. 一种处理装置,其特征在于,包括,处理模块和N个动态随机存取存储器DRAM内存接口,所述处理模块与所述N个DRAM内存接口之间通过总线相连,且所述处理模块还通过物理连线分别与所述N个DRAM内存接口直连,其中,N为大于或者等于1的整数;A processing device, characterized in that it includes a processing module and N dynamic random access memory DRAM memory interfaces, the processing module and the N DRAM memory interfaces are connected by a bus, and the processing module is also connected through The physical wires are respectively directly connected to the N DRAM memory interfaces, where N is an integer greater than or equal to 1;
    所述处理模块,用于:The processing module is used to:
    判断第一命令是否为动态随机存储器DRAM读写命令,所述第一命令为所述处理模块通过所述总线发送的命令;Judging whether the first command is a dynamic random access memory DRAM read/write command, the first command being a command sent by the processing module through the bus;
    若所述第一命令为DRAM读写命令,通过第一物理连线向第一DRAM内存接口发送第一指示信号,所述第一DRAM内存接口为所述N个DRAM内存接口中与所述第一命令对应的内存接口,所述第一指示信号用于指示第一DRAM模组RANK进入工作状态;其中,所述第一物理连线为所述处理模块与所述第一DRAM内存接口之间的物理连线;所述第一DRAM RANK为所述第一DRAM内存接口所连接的DRAM RANK;If the first command is a DRAM read and write command, a first instruction signal is sent to the first DRAM memory interface through the first physical connection, and the first DRAM memory interface is the first instruction signal of the N DRAM memory interfaces. A memory interface corresponding to a command, the first indication signal is used to instruct the first DRAM module RANK to enter the working state; wherein, the first physical connection is between the processing module and the first DRAM memory interface The physical connection; the first DRAM RANK is the DRAM RANK connected to the first DRAM memory interface;
    所述第一DRAM内存接口,用于在接收到所述第一指示信号的情况下,控制所述第一DRAM RANK进入工作状态。The first DRAM memory interface is configured to control the first DRAM RANK to enter a working state when the first indication signal is received.
  2. 如权利要求1所述的装置,其特征在于,所述第一DRAM内存接口,还用于:The device of claim 1, wherein the first DRAM memory interface is further used for:
    接收所述处理模块通过所述总线下发的所述第一命令,在确定所述第一DRAM RANK进入工作状态的情况下,将所述第一命令下发给所述第一DRAM RANK。Receiving the first command issued by the processing module via the bus, and in the case where it is determined that the first DRAM RANK enters a working state, issuing the first command to the first DRAM RANK.
  3. 如权利要求1或2所述的装置,其特征在于,所述处理模块,还用于:The device according to claim 1 or 2, wherein the processing module is further configured to:
    若所述第一命令为DRAM读写命令,根据所述第一命令的地址确定所述第一命令对应的第一DRAM内存接口。If the first command is a DRAM read/write command, the first DRAM memory interface corresponding to the first command is determined according to the address of the first command.
  4. 如权利要求1-3任意一项所述的装置,其特征在于,所述第一指示信号为高电平信号;所述第一DRAM内存接口具体用于:在接收到所述高电平信号的情况下,控制所述第一DRAM RANK进入工作状态。The device according to any one of claims 1-3, wherein the first indication signal is a high-level signal; the first DRAM memory interface is specifically configured to: upon receiving the high-level signal In the case of controlling the first DRAM RANK to enter the working state.
  5. 如权利要求4所述的装置,其特征在于,所述第一DRAM RANK为第一双倍速率同步动态随机存取存储器DDR RANK;所述第一DRAM内存接口包括DDR控制器和DDR物理接口PHY;The device according to claim 4, wherein the first DRAM RANK is a first double rate synchronous dynamic random access memory DDR RANK; the first DRAM memory interface includes a DDR controller and a DDR physical interface PHY ;
    所述第一DRAM内存接口具体用于:在所述DDR控制器接收到所述高电平信号的情况下,控制所述DDR PHY退出低功耗状态,并通过所述DDR PHY控制所述第一DDR RANK退出断电状态或自刷新状态。The first DRAM memory interface is specifically configured to: when the DDR controller receives the high-level signal, control the DDR PHY to exit the low power consumption state, and control the second DDR PHY through the DDR PHY A DDR RANK exits the power-off state or self-refresh state.
  6. 如权利要求1-5任意一项所述的装置,其特征在于,所述处理模块,还用于:5. The device according to any one of claims 1-5, wherein the processing module is further configured to:
    在未检测到通过所述总线发送所述第一命令时或者当所述第一DRAM RANK已经执 行完成所述第一命令时,通过所述第一物理连线向所述第一DRAM内存接口发送第二指示信号,所述第二指示信号用于指示所述第一DRAM RANK进入低功耗状态;When it is not detected that the first command is sent through the bus or when the first DRAM RANK has executed and completed the first command, send to the first DRAM memory interface through the first physical connection A second indicator signal, where the second indicator signal is used to instruct the first DRAM RANK to enter a low power consumption state;
    所述第一DRAM内存接口,还用于在接收到所述第二指示信号的情况下,控制所述第一DRAM RANK进入低功耗状态。The first DRAM memory interface is further configured to control the first DRAM RANK to enter a low power consumption state when the second indication signal is received.
  7. 如权利要求6所述的装置,其特征在于,所述第二指示信号为低电平信号;7. The device of claim 6, wherein the second indication signal is a low-level signal;
    所述第一DRAM内存接口具体用于:在接收到所述低电平信号的情况下,控制所述第一DRAM RANK进入低功耗状态。The first DRAM memory interface is specifically configured to control the first DRAM RANK to enter a low power consumption state when the low-level signal is received.
  8. 如权利要求7任意一项所述的装置,其特征在于,所述第一DRAM RANK为第一双倍速率同步动态随机存取存储器DDR RANK;所述第一DRAM内存接口包括DDR控制器和DDR物理接口PHY;8. The device according to claim 7, wherein the first DRAM RANK is a first double-rate synchronous dynamic random access memory DDR RANK; the first DRAM memory interface includes a DDR controller and a DDR Physical interface PHY;
    所述第一DRAM内存接口具体用于,在所述DDR控制器接收到所述低电平信号的情况下,通过所述DDR PHY控制所述第一DDR RANK进入断电状态或自刷新状态,并控制所述DDR PHY进入低功耗状态。The first DRAM memory interface is specifically configured to control the first DDR RANK to enter a power-off state or a self-refresh state through the DDR PHY when the DDR controller receives the low-level signal, And control the DDR PHY to enter a low power consumption state.
  9. 如权利要求1-8任意一项所述的装置,其特征在于,所述第一DRAM内存接口连接M个所述第一DRAM RANK,M为大于或者等于2的整数;所述处理模块与所述第一DRAM内存接口之间通过M个所述第一物理连线直连,其中,一个所述第一物理连线对应一个所述第一DRAM RANK。The device according to any one of claims 1-8, wherein the first DRAM memory interface is connected to M first DRAM RANKs, and M is an integer greater than or equal to 2; the processing module and the The first DRAM memory interfaces are directly connected through M first physical connections, where one first physical connection corresponds to one first DRAM RANK.
  10. 如权利要求1-9任意一项所述的装置,其特征在于,所述装置与所述第一DRAM RANK在不同的封装衬底上。The device according to any one of claims 1-9, wherein the device and the first DRAM RANK are on different packaging substrates.
  11. 一种处理方法,其特征在于,包括:A processing method, characterized by comprising:
    由处理模块判断第一命令是否为动态随机存储器DRAM读写命令;The processing module determines whether the first command is a dynamic random access memory DRAM read and write command;
    若所述第一命令为DRAM读写命令,由所述处理模块通过第一物理连线向第一DRAM内存接口发送第一指示信号;所述处理模块与N个DRAM内存接口之间通过总线相连,且所述处理模块还通过物理连线分别与所述N个DRAM内存接口直连,N为大于或者等于1的整数;所述第一DRAM内存接口为所述N个DRAM内存接口中与所述第一命令对应的内存接口,所述第一指示信号用于指示第一DRAM模组RANK进入工作状态;其中,所述第一物理连线为所述处理模块与所述第一DRAM内存接口之间的物理连线;所述第一DRAM RANK为所述第一DRAM内存接口所连接的DRAM RANK;If the first command is a DRAM read and write command, the processing module sends a first instruction signal to the first DRAM memory interface through the first physical connection; the processing module is connected to the N DRAM memory interfaces through a bus , And the processing module is also directly connected to the N DRAM memory interfaces through physical connections, where N is an integer greater than or equal to 1; the first DRAM memory interface is connected to all the N DRAM memory interfaces. The memory interface corresponding to the first command, the first indication signal is used to instruct the first DRAM module RANK to enter the working state; wherein, the first physical connection is the processing module and the first DRAM memory interface The physical connection between the first DRAM RANK is the DRAM RANK connected to the first DRAM memory interface;
    所述第一DRAM内存接口在接收到所述第一指示信号的情况下,控制所述第一DRAM RANK进入工作状态。When receiving the first indication signal, the first DRAM memory interface controls the first DRAM RANK to enter a working state.
  12. 如权利要求11所述的处理方法,其特征在于,所述方法还包括:The processing method according to claim 11, wherein the method further comprises:
    通过所述第一DRAM内存接口,接收所述处理模块通过所述总线下发的所述第一命 令,并在确定所述第一DRAM RANK进入工作状态的情况下,将所述第一命令下发给所述第一DRAM RANK。Through the first DRAM memory interface, the first command issued by the processing module through the bus is received, and when it is determined that the first DRAM RANK enters the working state, the first command is issued Issued to the first DRAM RANK.
  13. 如权利要求11或12所述的处理方法,其特征在于,所述方法还包括:The processing method according to claim 11 or 12, wherein the method further comprises:
    若所述第一命令为DRAM读写命令,根据所述第一命令的地址判断所述第一命令对应的第一DRAM内存接口。If the first command is a DRAM read/write command, the first DRAM memory interface corresponding to the first command is determined according to the address of the first command.
  14. 如权利要求11-13任意一项所述的处理方法,其特征在于,所述第一指示信号为高电平信号;所述第一DRAM内存接口在接收到所述第一指示信号的情况下,控制所述第一DRAM RANK进入工作状态,包括:The processing method according to any one of claims 11-13, wherein the first indication signal is a high-level signal; when the first DRAM memory interface receives the first indication signal , Controlling the first DRAM RANK to enter the working state, including:
    所述第一DRAM内存接口根据所述高电平信号,控制所述第一DRAM RANK进入工作状态。The first DRAM memory interface controls the first DRAM RANK to enter the working state according to the high-level signal.
  15. 如权利要求14所述的处理方法,其特征在于,所述第一DRAM RANK为第一双倍速率同步动态随机存取存储器DDR RANK;所述第一DRAM内存接口包括DDR控制器和DDR物理接口PHY;The processing method according to claim 14, wherein the first DRAM RANK is a first double-rate synchronous dynamic random access memory DDR RANK; the first DRAM memory interface includes a DDR controller and a DDR physical interface PHY;
    所述第一DRAM内存接口根据所述高电平信号,控制所述第一DRAM RANK进入工作状态,包括:The first DRAM memory interface controlling the first DRAM RANK to enter the working state according to the high-level signal includes:
    所述DDR控制器在接收到所述高电平信号的情况下,控制所述DDR PHY退出DFI低功耗状态,并通过所述DDR PHY控制所述第一DDR RANK退出断电状态或自刷新状态。Upon receiving the high-level signal, the DDR controller controls the DDR PHY to exit the DFI low power consumption state, and controls the first DDR RANK to exit the power-off state or self-refresh through the DDR PHY status.
  16. 如权利要求11-15任意一项所述的处理方法,其特征在于,所述方法,还包括:15. The processing method according to any one of claims 11-15, wherein the method further comprises:
    在未检测到通过所述总线发送所述第一命令时或者当所述第一DRAM RANK已经执行完成所述第一命令时,由所述处理模块通过所述第一物理连线向所述第一DRAM内存接口发送第二指示信号,所述第二指示信号用于指示所述第一DRAM RANK进入低功耗状态;When it is not detected that the first command is sent via the bus or when the first DRAM RANK has executed and completed the first command, the processing module sends the first command to the first command through the first physical connection. A DRAM memory interface sends a second indication signal, where the second indication signal is used to instruct the first DRAM RANK to enter a low power consumption state;
    所述第一DRAM内存接口在接收到所述第二指示信号的情况下,控制所述第一DRAM RANK进入低功耗状态。The first DRAM memory interface, upon receiving the second indication signal, controls the first DRAM RANK to enter a low power consumption state.
  17. 如权利要求16所述的处理方法,其特征在于,所述第二指示信号为低电平信号;The processing method according to claim 16, wherein the second indication signal is a low-level signal;
    所述第一DRAM内存接口在接收到所述第二指示信号的情况下,控制所述第一DRAM RANK进入低功耗状态,包括:When the first DRAM memory interface receives the second indication signal, controlling the first DRAM RANK to enter a low power consumption state includes:
    所述第一DRAM内存接口在接收到所述低电平信号的情况下,控制所述第一DRAM RANK进入低功耗状态。When the first DRAM memory interface receives the low-level signal, it controls the first DRAM RANK to enter a low power consumption state.
  18. 如权利要求17任意一项所述的处理方法,其特征在于,所述第一DRAM RANK为第一双倍速率同步动态随机存取存储器DDR RANK;所述第一DRAM内存接口包括DDR控制器和DDR物理接口PHY;The processing method according to claim 17, wherein the first DRAM RANK is a first double rate synchronous dynamic random access memory DDR RANK; the first DRAM memory interface includes a DDR controller and DDR physical interface PHY;
    所述第一DRAM内存接口在接收到所述低电平信号的情况下,控制所述第一DRAM RANK进入低功耗状态,包括:When the first DRAM memory interface receives the low-level signal, controlling the first DRAM RANK to enter a low power consumption state includes:
    所述DDR控制器在接收到所述低电平信号的情况下,通过所述DDR PHY控制所述第一DDR RANK进入断电状态或自刷新状态,并控制所述DDR PHY进入低功耗状态。When the DDR controller receives the low-level signal, the DDR PHY controls the first DDR RANK to enter a power-off state or a self-refresh state, and controls the DDR PHY to enter a low power consumption state .
  19. 如权利要求11-18任意一项所述的处理方法,其特征在于,所述第一DRAM内存接口连接M个所述第一DRAM RANK,M为大于或者等于2的整数;所述处理模块与所述第一DRAM内存接口之间通过M个所述第一物理连线直连,其中,一个所述第一物理连线对应一个所述第一DRAM RANK。The processing method according to any one of claims 11-18, wherein the first DRAM memory interface is connected to M first DRAM RANKs, and M is an integer greater than or equal to 2; the processing module is connected to The first DRAM memory interfaces are directly connected through M first physical connections, where one first physical connection corresponds to one first DRAM RANK.
  20. 如权利要求11-19任意一项所述的处理方法,其特征在于,所述处理模块与所述N个DRAM内存接口在同一个封装衬底上,且与所述第一DRAM RANK在不同的封装衬底上。The processing method according to any one of claims 11-19, wherein the processing module and the N DRAM memory interfaces are on the same packaging substrate, and are different from the first DRAM RANK. On the package substrate.
  21. 一种半导体芯片,其特征在于,包括:A semiconductor chip, characterized in that it comprises:
    如权利要求1至10中任一所述的处理装置、耦合于所述处理装置的中央处理单元以及所述处理装置外部的存储器。The processing device according to any one of claims 1 to 10, a central processing unit coupled to the processing device, and a memory external to the processing device.
  22. 一种终端设备,其特征在于,包括:A terminal device, characterized by comprising:
    如权利要求1至10任一所述的处理装置,以及所述处理装置外部的存储器,其中,所述处理装置与所述处理装置外部的存储器被设置在不同的半导体芯片内。The processing device according to any one of claims 1 to 10, and a memory external to the processing device, wherein the processing device and the memory external to the processing device are provided in different semiconductor chips.
PCT/CN2019/074309 2019-01-31 2019-01-31 Processing apparatus, method, and related device WO2020155074A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/074309 WO2020155074A1 (en) 2019-01-31 2019-01-31 Processing apparatus, method, and related device
CN201980090641.1A CN113383317B (en) 2019-01-31 2019-01-31 Processing device, method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/074309 WO2020155074A1 (en) 2019-01-31 2019-01-31 Processing apparatus, method, and related device

Publications (1)

Publication Number Publication Date
WO2020155074A1 true WO2020155074A1 (en) 2020-08-06

Family

ID=71840218

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/074309 WO2020155074A1 (en) 2019-01-31 2019-01-31 Processing apparatus, method, and related device

Country Status (2)

Country Link
CN (1) CN113383317B (en)
WO (1) WO2020155074A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113961490A (en) * 2021-11-04 2022-01-21 上海安路信息科技股份有限公司 System and method for monitoring DDR signal based on FPGA, FPGA and medium
WO2023231437A1 (en) * 2022-05-31 2023-12-07 哲库科技(上海)有限公司 Memory, system-on-a-chip, terminal device and power supply control method
WO2024066521A1 (en) * 2022-09-26 2024-04-04 华为技术有限公司 Memory refresh method and apparatus

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116360859B (en) * 2023-03-31 2024-01-26 摩尔线程智能科技(北京)有限责任公司 Power domain access method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090089545A1 (en) * 2007-09-28 2009-04-02 Samsung Electronics Co., Ltd. Multi processor system having multiport semiconductor memory with processor wake-up function
US20090172439A1 (en) * 2007-12-28 2009-07-02 Intel Corporation System and method for fast platform hibernate and resume
CN102725709A (en) * 2010-01-28 2012-10-10 苹果公司 Memory power reduction in a sleep state
CN104508644A (en) * 2012-10-30 2015-04-08 惠普发展公司,有限责任合伙企业 Smart memory buffers
US20160350002A1 (en) * 2015-05-29 2016-12-01 Intel Corporation Memory device specific self refresh entry and exit

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6217234B1 (en) * 1994-07-29 2001-04-17 Discovision Associates Apparatus and method for processing data with an arithmetic unit
JP3939858B2 (en) * 1998-06-05 2007-07-04 富士通株式会社 Synchronous DRAM access method, interface circuit, and semiconductor integrated circuit device
CN100580804C (en) * 2008-01-21 2010-01-13 戴葵 Dynamic RAM device with data-handling capacity
US8688901B2 (en) * 2009-12-08 2014-04-01 Intel Corporation Reconfigurable load-reduced memory buffer
CN102243526B (en) * 2010-05-14 2014-03-26 炬力集成电路设计有限公司 Double date rate internal memory controller and control method thereof
KR20180049386A (en) * 2016-11-01 2018-05-11 에스케이하이닉스 주식회사 Memory device and memory system supporting rank-level parallelism

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090089545A1 (en) * 2007-09-28 2009-04-02 Samsung Electronics Co., Ltd. Multi processor system having multiport semiconductor memory with processor wake-up function
US20090172439A1 (en) * 2007-12-28 2009-07-02 Intel Corporation System and method for fast platform hibernate and resume
CN102725709A (en) * 2010-01-28 2012-10-10 苹果公司 Memory power reduction in a sleep state
CN104508644A (en) * 2012-10-30 2015-04-08 惠普发展公司,有限责任合伙企业 Smart memory buffers
US20160350002A1 (en) * 2015-05-29 2016-12-01 Intel Corporation Memory device specific self refresh entry and exit

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113961490A (en) * 2021-11-04 2022-01-21 上海安路信息科技股份有限公司 System and method for monitoring DDR signal based on FPGA, FPGA and medium
CN113961490B (en) * 2021-11-04 2023-09-26 上海安路信息科技股份有限公司 System, method, FPGA and medium for monitoring DDR signal based on FPGA
WO2023231437A1 (en) * 2022-05-31 2023-12-07 哲库科技(上海)有限公司 Memory, system-on-a-chip, terminal device and power supply control method
WO2024066521A1 (en) * 2022-09-26 2024-04-04 华为技术有限公司 Memory refresh method and apparatus

Also Published As

Publication number Publication date
CN113383317B (en) 2023-07-18
CN113383317A (en) 2021-09-10

Similar Documents

Publication Publication Date Title
WO2020155074A1 (en) Processing apparatus, method, and related device
CN109155143B (en) Fine granularity refresh
US7966506B2 (en) Saving power in a computer system
CN100498652C (en) Method and an apparatus for power management in a computer system
US9015396B2 (en) Reducing latency in a peripheral component interconnect express link
TWI468926B (en) Processor power management and method
US9411754B2 (en) Dynamic frequency memory control
MX2012011619A (en) Hardware automatic performance state transitions in system on processor sleep and wake events.
EP3422191A1 (en) Semiconductor device and data processing system
JP2009515263A (en) Self-refresh mechanism at C0
US9953694B2 (en) Memory controller-controlled refresh abort
US10777252B2 (en) System and method for performing per-bank memory refresh
US20140013140A1 (en) Information processing apparatus and computer program product
EP3931830B1 (en) Enhanced data clock operations in memory
US9704544B2 (en) Method, apparatus and system to manage implicit pre-charge command signaling
JP2016505914A (en) Intelligent dual data rate (DDR) memory controller
JP2023527981A (en) DRAM refresh management
CN103632708B (en) The self refresh control apparatus of synchronous DRAM and method
WO2019141050A1 (en) Refreshing method, apparatus and system, and memory controller
WO2022198601A1 (en) Data writing method, system-on-chip chip, and computer readable storage medium
WO2011012032A1 (en) System and method for adjusting dram operating frequency
US20050198542A1 (en) Method and apparatus for a variable memory enable deassertion wait time
CN102243526B (en) Double date rate internal memory controller and control method thereof
KR20050035699A (en) Energy reduction method for memory system, and the device thereof
WO2022178772A1 (en) Memory refresh method, memory, controller, and storage system

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19912512

Country of ref document: EP

Kind code of ref document: A1