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

Cache replacement method, cache controller and processor

A cache replacement and memory controller technology, applied in the communication field, can solve problems affecting memory access performance, poor line buffer hit rate, etc.

Active Publication Date: 2017-12-12
HUAWEI TECH CO LTD +1
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the existing mechanism, affected by the cache (cache) replacement strategy, the address of the request sent to the memory is relatively random. Therefore, the line buffer hit rate is poor, which affects the memory access performance

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
  • Cache replacement method, cache controller and processor
  • Cache replacement method, cache controller and processor
  • Cache replacement method, cache controller and processor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0085] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0086] figure 1 It is a schematic diagram of the existing memory reading and writing principle, such as figure 1 As shown, the memory access request address sequence includes three memory access requests, and the access sequence is: cache line (cache line) A0, cache line B0, and cache line A1, and cache line A0 and cache line A1 belong to the sam...

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

An embodiment of the present invention provides a cache replacement method, a cache controller, and a processor. The method includes: the cache controller determines the associated cache pool of the cache line to be replaced, and associates each associated cache line in the cache pool with the cache line to be replaced. The cache line belongs to the same memory line, and further determines the cache line to be written back from the associated cache pool according to the access information of the associated cache line, and writes the cache line to be replaced and the data in the cache line to be written back to the memory together. Since the cache line to be replaced and the cache line to be written back belong to the same memory line, the hit rate of the line cache can be improved, thereby improving the memory access performance. In addition, the cache controller further selects the associated cache line from the associated cache pool according to the access information of the associated cache line. The cache line to be written back is determined in the cache line, and only the cache line to be written back in the associated cache pool is written back to the memory. Therefore, the number of writes to the memory can be reduced and the service life of the memory can be improved.

Description

technical field [0001] Embodiments of the present invention relate to communication technologies, and in particular, to a cache replacement method, a cache controller, and a processor. Background technique [0002] With the development of big data applications, there are increasingly higher requirements for memory capacity and access speed, and the commonly used Dynamic Random-Access Memory (DRAM) can no longer meet the requirements. A new type of non-volatile memory (Non-Volatile Memory, referred to as NVM) is expected to replace DRAM as a memory system in a computer system due to its advantages of large capacity and low power consumption. However, the read and write latency of existing NVM is higher than that of DRAM, and the number of writes is limited. [0003] The internal read and write mechanism of NVM is similar to that of DRAM. NVM has a row buffer (Row buffer) to save the data in the most recently accessed memory row. The delay of NVM access depends on whether the...

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): G06F12/0804G06F12/126
Inventor 张立新魏巍熊劲蒋德钧
Owner HUAWEI TECH CO LTD