Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for reading data and memory controller

A memory controller and data reading technology, applied in the computer field, can solve problems such as lowering system processing efficiency, inability to optimize timing, and different routing schemes, so as to avoid reading operations, avoid the influence of data operation instructions, and shorten the time consumed Effect

Active Publication Date: 2014-03-12
HUAWEI TECH CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the process of realizing the above-mentioned technical solution, the inventor found that the prior art has at least the following problems: multiple data manipulation instructions corresponding to the CACHE row capacity require that the memory addresses for reading data are usually continuous, and when reading data from the memory No need to switch BANK or address line frequently
However, in practical applications, when arriving at the cache queue of the memory controller, other data operation instructions may be inserted into the plurality of data operation instructions corresponding to the capacity of the CACHE row, especially when multi-central processing units and multi-memory cascade In a high-performance computer system composed of extensions (such as figure 1 As shown), different CPUs take different times to access different memories, and the routing schemes are different, which makes it more obvious that other data manipulation instructions are inserted into multiple consecutive data manipulation instructions corresponding to the same CACHE line, which makes the corresponding Among the multiple data operation instructions of the CACHE row, the data operation instructions that arrive later cannot enter the cache queue, and cannot be timed optimized, thus increasing the time it takes for the central processor to obtain a complete cache row of data, reducing the system processing efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for reading data and memory controller
  • Method for reading data and memory controller
  • Method for reading data and memory controller

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] The embodiment of the present invention provides a method for reading data, such as figure 2 As shown, the method includes the following steps:

[0027] 101. After receiving the first read request issued by the central processing unit, read the first data corresponding to the first read request from the memory, and continue to read the address adjacent to the first data address. Adjacent data.

[0028] The central processing unit's data operations on the memory include read operations and write operations. When the central processing unit wants to read the memory, it sends a first read request to the memory controller. The memory controller analyzes and decodes the address of the received first read request, so as to obtain the bank address and row and column addresses of the first data corresponding to the first read request in the memory. After that, the memory controller addresses the bank where the first data is located, activates the row where the first data is locat...

Embodiment 2

[0036] The embodiment of the present invention provides a method for reading data, such as image 3 As shown, including the following steps:

[0037] 301. Receive a first read request sent by a central processing unit.

[0038] The memory controller receives the first read request from the central processing unit. The first read request requires first data to be read.

[0039] 302. Detect whether the first data has been cached.

[0040] The memory controller analyzes and decodes the address of the received first read request, and obtains the bank address and row and column addresses of the first data corresponding to the first read request in the memory. The data corresponding to the address has been cached in the memory controller, and the first data is directly returned to the central processing unit; otherwise, it goes to step 303.

[0041] 303. Read the first data from the memory, and continue to read adjacent data adjacent to the first data address.

[0042] After the memory contr...

Embodiment 3

[0053] The embodiment of the present invention provides a memory controller, such as Figure 4 As shown, the memory controller includes: a data reading unit 41, an adjacent data buffer unit 42, and an adjacent data sending unit 43.

[0054] Wherein, the data reading unit 41 is configured to read the first data corresponding to the first read request from the memory after receiving the first read request issued by the central processing unit, and continue to read the first data corresponding to the first read request. Adjacent data adjacent to the first data address.

[0055] The sum of the data amount of the first data and the adjacent data is the capacity of the cache line of the central processing unit.

[0056] The adjacent data buffer unit 42 is used to buffer the adjacent data.

[0057] The adjacent data sending unit 43 is configured to send the buffered adjacent data to the central processing unit according to the received subsequent read request for reading the adjacent data.

...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Provided are a data reading method and DDR controller. The method comprises: reading a first data corresponding to a first reading request from the DDR and continuing to read the adjacent data with an address neighboring to the address of the first data after receiving the first reading request sent by a central processing unit, the sum of the data volume of the first data and the adjacent data is the cache line capacity of the central processing unit; caching the adjacent data; reading a subsequent reading request of the adjacent data according to the received request, and sending the cached adjacent data to the central processing unit. The technical solution, relating to the field of computer, is mainly applied to computer systems, and capable of reducing the time required for a central processing unit to obtain the data of a complete cache line and improving the data processing efficiency of a computer system.

Description

Technical field [0001] The present invention relates to the field of computers, in particular to a method for reading data and a memory controller. Background technique [0002] In a computer system, a central processing unit (Central Processing Unit, CPU) sends data operation instructions to a memory controller (DDR Controller) to read data from the memory or write data to the memory. The memory controller puts the received data operation instructions into its own buffer queue and reorders it. The sorting principle is: the data operation instructions that make the accessed memory address close (in the same storage bank or the same address row) are arranged in sequence, so that data reading can be performed sequentially, avoiding the time caused by frequent switching of BANK (storage area) and address rows delay. The data in the memory is read out and loaded into the data response message, which is sent by the memory controller to the CACHE (high speed buffer memory) of the cen...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F13/16
CPCG06F13/16
Inventor 程永波贺成洪兰可嘉
Owner HUAWEI TECH CO LTD