首页> 外国专利> Cache line replacement using cache status to bias way selection

Cache line replacement using cache status to bias way selection

机译:使用高速缓存状态替换高速缓存行以偏向方式选择

摘要

A method for determining which way of an N-way set associative cache should be filled with replacement data upon generation of a cache miss when all of the ways contain valid data. A first choice for way selection and at least one additional choice for way selection are generated. If the status of the way corresponding to the first choice differs from a bias status, a way corresponding to one of the additional choices is designated as the way to be filled with replacement data. Otherwise, the way corresponding to the first choice is designated as the way to be filled with replacement data. Status information for a given way may include any data which is maintained on a cache line by cache line basis, but is preferably data which is maintained for purposes other than way selection. For example, status information might include indications as to whether a cache line is shared or private, clean or dirty. The algorithm for generating the first choice for way selection is preferably a random or round robin approach, but may be any other algorithm. Any algorithm may also be used for generating the additional choices for way selection. However, the additional choices are preferably generated as functions of the first (e.g., the first choice plus different constants). The bias status which is used to select between the first and at least one additional choices can be programmed to yield different results in different systems.
机译:当所有方式都包含有效数据时,一种用于确定在生成高速缓存未命中时应用替换数据填充N路集关联高速缓存中哪种方式的方法。产生用于道路选择的第一选择和用于道路选择的至少一个其他选择。如果与第一选择相对应的方式的状态不同于偏置状态,则将与其他选择之一相对应的方式指定为要用替换数据填充的方式。否则,将与第一选择相对应的方式指定为要填充替换数据的方式。给定方式的状态信息可以包括在每个缓存行的基础上在缓存行中维护的任何数据,但是优选地是出于除路选择之外的目的而维护的数据。例如,状态信息可能包括有关高速缓存行是共享的还是专用的,干净的或脏的指示。用于产生路线选择的第一选择的算法优选地是随机或循环法,但是可以是任何其他算法。任何算法也可以用于生成用于路线选择的附加选择。但是,优选地,附加选择是作为第一函数的函数生成的(例如,第一选择加上不同的常数)。可以对用于在第一和至少一个其他选择之间进行选择的偏置状态进行编程,以在不同的系统中产生不同的结果。

著录项

  • 公开/公告号US2002120817A1

    专利类型

  • 公开/公告日2002-08-29

    原文格式PDF

  • 申请/专利权人 LESARTRE GREGG B.;

    申请/专利号US20020126571

  • 发明设计人 GREGG B. LESARTRE;

    申请日2002-04-19

  • 分类号G06F12/08;

  • 国家 US

  • 入库时间 2022-08-22 00:50:33

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号