[1]赵小东,施慧彬.堆栈处理器汇编器的设计与实现[J].计算机技术与发展,2021,31(增刊):67-72.[doi:10. 3969 / j. issn. 1673-629X. 2021. S. 013]
 ZHAO Xiao-dong,SHI Hui-bin.Design and Implementation of Assembler for Stack Processor[J].,2021,31(增刊):67-72.[doi:10. 3969 / j. issn. 1673-629X. 2021. S. 013]
点击复制

堆栈处理器汇编器的设计与实现()

《计算机技术与发展》[ISSN:1006-6977/CN:61-1281/TN]

卷:
31
期数:
2021年增刊
页码:
67-72
栏目:
系统工程
出版日期:
2021-12-31

文章信息/Info

Title:
Design and Implementation of Assembler for Stack Processor
文章编号:
1673-629X(2021)S-0067-06
作者:
赵小东1 施慧彬2
1. 94860 部队,江苏 南京 210000;
2 南京航空航天大学 计算机科学与技术学院,江苏 南京 210006
Author(s):
ZHAO Xiao-dong1 SHI Hui-bin2
1. 94860 PLA Troops,Nanjing 210000,China;
2.Computer Science and Technology,Nanjing University of Aeronautics and Astronautics,Nanjing 210006,China
关键词:
堆栈处理器汇编器仿真FPGAModelSim
Keywords:
stack processorassemblersimulationFPGAModelSim
分类号:
TP314
DOI:
10. 3969 / j. issn. 1673-629X. 2021. S. 013
摘要:
堆栈处理器由于其快速的中断处理能力、极强的过程调用能力、代码尺寸小等优点,一直应用于工业控制和航空航天领域中。 自堆栈处理器诞生以来,ALGOL、FORTH 这两种语言一直作为堆栈处理器的栈操作语言,并且成为区分第一代和第二代堆栈处理器的一条重要标准。 尽管这两种语言在堆栈处理器领域应用广泛,但缺乏通用性。 C 语言是传统的高级程序设计语言,其底层操作能力和通用性不言而喻。 文中针对一款基于 FPGA 设计的 16 位堆栈处理器,设计并实现了一个汇编器。 该处理器包含两个堆栈:执行数学表达式的数据堆栈和支持子程序调用的返回堆栈,其指令集含 35 条堆栈指令。 汇编器可以将汇编代码转换成能够直接在 ModelSim 下仿真的内存文件。 论文详细给出了汇编器的设计方法。 最后简单做了一个测试验证汇编器的正确性。
Abstract:
Stack processor,because of its fast interrupt handling,low procedure call overheads and small instruction format,is used in the field of indusry control and aerospace. ALGOL and FORTH have been the stack operating language of the stack processor,respectively respecting the first - generation stack computer language and the second - generaion stack computer language, to distinguish these two generation stack computer language. Both of these languages are widely used in the stack processor, while lacking is generality. Clanguage is a traditional high level programming language,with good underlying operating capacity and generality. We introduce an assembler for 16-bit stack processor. The stack processor has two stacks:a data stack for evaluating mathematical expression and a return stack for calling subroutine. The instruction set includes 35 stack instructions. Assembly code can be assembled to memory file which can be used by Model Sim directly. We describe the design method to construct an assembler. Finally, we do a simple test to verify the correctness of the assembler.

相似文献/References:

[1]赵小东,施慧彬.堆栈处理器代码生成器的设计与实现[J].计算机技术与发展,2013,(04):163.
 ZHAO Xiao-dong,SHI Hui-bin.Design and Implementation of Code Generator for Stack Processor[J].,2013,(增刊):163.

更新日期/Last Update: 2021-09-10