检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
作 者:赵紫微 涂航[1] 刘芹 李莉[1] 余涛[1] Zhao Ziwei;Tu Hang;Liu Qin;Li Li;Yu Tao(School of Cyber Science and Engineering,Wuhan University,Wuhan 430072)
出 处:《计算机研究与发展》2023年第7期1678-1691,共14页Journal of Computer Research and Development
基 金:国家重点研发计划项目(2018YFC1315404,2018YFC1604004)。
摘 要:在嵌入式领域,计算机系统模拟器是研究与原型开发的重要工具.对于采用解释执行的模拟器,其CPU模型的译码过程会影响性能,如何提升译码过程的性能是提高仿真效率的关键问题之一.此外,对于无标准测试集的指令集来说(例如自定义指令),手动编写指令功能测试的开发效率较低,并且其与实现译码过程所需的指令信息基本相同.为解决上述问题,提出一个代码生成方案,输入一份指令集描述,输出针对gem5优化后的指令集实现代码和功能测试代码.首先,扩展gem5的指令集描述语言,将其分为编码描述、功能描述和测试描述.其次,针对gem5优化译码决策树构建算法,并为gem5生成译码模块代码、指令集实现代码和指令功能测试用例.最后,以Cortex-M3指令集为例与原方案相比,总生成时间减少约64%,编译后的可执行文件代码大小减少约407 KB,性能提升约13%,并且能够提高开发效率.Computer system simulators are important tools for research and prototype development of embedded systems.For interpretation-based simulators,the decoding process of CPU models has an important effect on their performance.Therefore,improving the performance of the decoding process is one of the key problems of simulation efficiency.Besides,for instruction sets without a standard test suite(such as custom instructions),writing functional tests manually leads to low development efficiency.The instruction information required by functional tests is practically the same as the implementation of the decoding process.To solve the above problems,we propose a code generation method,which takes an instruction set description as input and outputs its implementation codes optimized for gem5 and its functional tests.Firstly,we extend the instruction set description language of gem5 and divide it into code description,function description,and test description.Secondly,we optimize the construction algorithm of decoding decision trees for gem5 and generate decoding codes,instruction codes,and functional test cases.Lastly,we take the Cortex-M3 instruction set as an example and compare our method with the original method of gem5.The total generation time is reduced by about 64%,the compiled executable code size is reduced by about 407 KB,the performance is improved by about 13%,and our method can improve the development efficiency.
分 类 号:TP319[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.222