摘要
为解决TEC-XP16教学机缺少浮点乘法指令的问题,基于TEC-XP16教学机,提出微程序控制器中32位浮点乘法指令的一种快速的设计方法。为解决人工方式将每条汇编指令转换成一条或多条微指令速度慢且容易出错等问题,提出一种能够根据汇编程序自动生成微程序的方法。为解决手工修改控制器ABEL语言源程序速度慢及容易出错等问题,提出一种能够自动修改控制器的ABEL语言源程序的方法。实验结果表明,所设计的32位浮点乘法指令的功能是正确的,平均只需要1.9 s就能根据汇编程序表自动生成微程序表,平均只需0.7 s就能根据微程序表等自动修改并生成控制器ABEL语言源程序,极大提高了浮点乘法指令的设计速度。该方法也可推广到其他复杂指令的设计上。
To solve the problem that TEC-XP16 teaching machine does not have floating point multiplication instruction,a fast design method for 32-bit floating-point multiplication instruction is proposed based on TEC-XP16 microprogram controller.To solve the problem that manually converting every assembly instruction into one or more microinstructions has very low efficiency and is quite error prone,a fast method which can automatically produce microprogram according to assembly program is put forward.To solve the problem that manually modifying the ABEL source program of the controller has very low efficiency and is quite error prone,a method is proposed which can automatically modify the source program of the controller and generate a new source program file of ABEL language.The experimental results show that the design of 32-bit floating-point multiplication instruction is correct.The program written in assembly language can automatically produce microprogram in 1.9 seconds and modify the source program of the controller in 0.7 seconds on average,which greatly improves the efficiency for designing floating-point multiplication instruction.The method can also be extended to the design of other complex instructions.
作者
宗德才
王康康
Zong Decai;Wang Kangkang(School of Computer Science and Engineering,Changshu Institute of Technology,Changshu 215500,Jiangsu,China;School of Mathematics and Science,Jiangsu University of Science and Technology,Zhenjiang 212003,Jiangsu,China)
出处
《计算机应用与软件》
北大核心
2021年第7期207-213,294,共8页
Computer Applications and Software
基金
国家自然科学基金面上项目(61773012)。