应用科学学报 ›› 2009, Vol. 27 ›› Issue (6): 623-629.

• 计算机科学与应用 • 上一篇    下一篇

面向嵌入式应用的软件可控cache实现

刘波, 王学香, 时龙兴   

  1. 东南大学国家专用集成电路系统工程技术研究中心,南京210096  
  • 收稿日期:2008-11-24 修回日期:2009-10-19 出版日期:2009-11-25 发布日期:2009-11-30
  • 作者简介:刘波,博士生,研究方向:SOC设计、存储子系统设计及系统级性能优化技术,E-mail: liubo_cnasic@seu.edu.cn;时龙兴,教授,博导,研究方向:大规模集成电路系统工程,E-mail: lxshi@seu.edu.cn
  • 基金资助:

    国家自然科学基金(No. 60676011)资助项目

Implementation of Software-Controllable Cache for Embedded Systems

LIU Bo, WANG Xue-xiang, SHI Long-xing   

  1. National ASIC System Engineering Technology Research Center, Southeast University, Nanjing 210096, China
  • Received:2008-11-24 Revised:2009-10-19 Online:2009-11-25 Published:2009-11-30

摘要:

仅由硬件控制的传统替换策略严重限制了高速缓存(cache)性能的提高. 该文提出一种面向嵌入式应用的软
件可控cache的实现方法. 在传统结构上增加一个软件控制器,根据软件配置实现如下3 种操作:对于访问开销大且生
命期分布均匀的数据在cache中保留副本;对造成cache预取效率下降的数据由处理器直接与外存通信;对某一时刻被频
繁访问的数据在其有效生命期内优先停留在cache中. 实验结果表明,对于数据指令统一cache,系统整体性能的提升可
达11%,同时总线占用率减少28%左右.

关键词: 高速缓存, 替换策略, 嵌入式应用, 软件可控

Abstract:

Recent researches show that traditional hardware-only cache replacement strategies seriously hamper the
improvement of cache performance. This paper proposes a novel scheme of software-controllable cache for embedded
systems. In this scheme, a software-controller module is added to the traditional architecture to implement the
following three operations controlled by software: For data that incur heavy access cost and have a wide activity
space, a copy is retained in the cache. Data that cause a drop in the cache pre-fetching temporal locality are directly
exchanged between the processor and the external memory. Data with less access cost and a narrow activity space
preferentially remain in the cache during activities. Simulation results show that the proposed approach can improve
the system performance by 11% and reduce bus occupancy by 28%.

Key words: cache, replacement strategies, embedded systems, software-controllable

中图分类号: