摘要
为解决TEC-XP16教学机缺少浮点数除法指令的问题,设计了一种32 bit浮点除法指令以及实现32 bit浮点数除法运算的算法。为解决人工方式设计微程序和修改微程序控制器源程序效率低且容易出错等问题,提出了一种能够由汇编语言程序自动生成微程序以及能够由微程序自动修改控制器ABEL语言源程序的方法。实验结果表明,所设计的32 bit浮点数除法指令的算法是正确的,平均只需要2.16 s就能根据汇编语言程序表自动生成微程序表,平均只需1.3 s就能根据微程序表等自动修改并生成控制器ABEL语言源程序,极大提高了浮点除法指令的设计实现效率。该方法也可推广到其他复杂指令的设计。
To solve the problem that TECXP 16 teaching machine does not have floating point division instruction,a 32 bit floating point division instruction and an algorithm for 32 bit floatingpoint division were designed.To solve the problem that manually designing microprogram and modifying the source program of microprogram controller had very low efficiency and was quite error prone,a fast method which can automatically produce microprogram according to assembly language source program and modify the ABEL language source program of the microprogram controller according to microprogram was put forward.The experimental results show that the design of 32 bit floatingpoint division instruction is correct.The program written in Python language can automatically produce microprogram in 2.16 second and modify the source program of the controller in 1.3 seconds on average,it greatly improves the efficiency for designing floatingpoint division instruction.The method can also be extended to the design of other complex instructions.
作者
宗德才
王康康
ZONG Decai;WANG Kangkang(College of Computer Science and Engineering,Changshu Institute of Technology,Changshu 215500,China;School of Mathematics and Physics,Jiangsu University of Science and Technology,Zhenjiang 212003,China)
出处
《实验室研究与探索》
CAS
北大核心
2020年第12期115-121,共7页
Research and Exploration In Laboratory
基金
国家自然科学基金面上项目(61773012)。