• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2016, Vol. 38 ›› Issue (02): 195-201.

• 论文 •    下一篇

分区内存体系结构片选指令优化方法

陈勇1,袁梦霆2,李清安2   

  1. (1.中国电子科技集团公司第十四研究所,江苏 南京 210039;2.武汉大学计算机学院,湖北 武汉 430072)
  • 收稿日期:2015-03-25 修回日期:2015-08-19 出版日期:2016-02-25 发布日期:2016-02-25
  • 基金资助:

    湖北省自然科学基金青年基金(2015CFB338)

A bank selection instruction optimization
method in partitioned memory architecture 

CHEN Yong1,YUAN Mengting2,LI Qingan2   

  1. (1.The 14th Research Institute,CETC,Nanjing 210039;
    (2.School of Computer,Wuhan University,Wuhan 430072,China)
  • Received:2015-03-25 Revised:2015-08-19 Online:2016-02-25 Published:2016-02-25

摘要:

在分区内存体系结构中,如何尽可能少地插入片选指令是研究的热点。根据该问题的特点,构建了片选优化的图划分模型,并在该模型的基础上,提出了一种二阶段启发式搜索算法求解该问题。该算法首先根据节点自身的大小与图中分区大小快速获得一个初始可行解,然后在该可行解基础上利用节点之间边的权值和分区之间的权值作为启发式参数,搜索更优的解。通过对MiBench用例集和实际嵌入式系统的测试,验证了该模型及相应启发式算法的有效性,相对于VPAB算法,平均优化率达到37.99%,略优于成熟的商用编译器PICC,大幅度减少了片选指令的数量。

关键词: 分区内存, 图模型, 启发式搜索, 嵌入式系统

Abstract:

It is a research hotspot to minimize the number of bankselection instructions in the partitioned memory architecture. Analyzing the features of this problem, we construct a graph partition model for bank selection and propose a twostage heuristic search algorithm. This algorithm uses the size of nodes and partition capacity to get an initial solution quickly, and then uses the edge weights between nodes and the weighs between partitions as the heuristic parameters to search for the better solution. Experiments on MiBench benchmark and a real embedded system validate the effectiveness of the proposed model and algorithm.  Compared to the VPAB algorithm, the proposal can achieve an average optimization rate of 37.99%, which is slightly better than the mature commercial compiler PICC, and can reduce the number of bank selection instructions largely.

Key words: partitioned memory;graph model;heuristic search;embedded system