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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


