白丝美女被狂躁免费视频网站,500av导航大全精品,yw.193.cnc爆乳尤物未满,97se亚洲综合色区,аⅴ天堂中文在线网官网

Cache and method for managing cache

專利號
US11176039B2
公開日期
2021-11-16
申請人
REALTEK SEMICONDUCTOR CORPORATION(TW Hsinchu)
發(fā)明人
Jui-Yuan Lin; Yen-Ju Lu
IPC分類
G06F12/00; G06F12/0811
技術領域
cache,circuit,l1,l2,storage,data,in,buffer,control,step
地域: Hsinchu

摘要

A cache and a method for managing a cache are provided. The cache includes a storage circuit, a buffer circuit and a control circuit. The buffer circuit stores data in a first-in first-out (FIFO) manner. The control circuit is coupled to the storage circuit and the buffer circuit and is configured to find a storage space in the storage circuit and write the data to the storage space.

說明書

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

When the L2 cache 430 is in the idle state (step S520 being positive, YES branch), the control circuit 432 determines whether the buffer circuit 434 is empty (step S550). If the buffer circuit 434 does not store any data (i.e., step S550 being positive, YES branch), the flow returns to step S520. If the buffer circuit 434 is not empty (i.e., step S550 being negative, NO branch), the control circuit 432 searches the storage circuit 436 for a storage space (step S560), then reads the target data from the buffer circuit 434, and writes the target data to the storage circuit 436. (Step S570). In other words, step S560 and step S570 aim to move the target data from the buffer circuit 434 to the storage circuit 436. After being moved, the target data exists only in the storage circuit 436, and the buffer circuit 434 does not contain the target data. In other words, the buffer circuit 434 and the storage circuit 436 do not store a same line data at the same time. After step S570 is completed, the control circuit 432 finishes the process of writing the target data to the L2 cache 430 (step S580), and the flow returns to step S520.

In step S560, the storage space may be an unoccupied space or a space occupied by data to be evicted. By using algorithms such as the least recently used (LRU) algorithm and referring to the tags in storage circuit 436, the control circuit 432 can locate the data to be evicted.

權利要求

1
微信群二維碼
意見反饋