Computer and Modernization ›› 2021, Vol. 0 ›› Issue (08): 77-84.

Previous Articles     Next Articles

A General Fast Design Method for Floating Point Arithmetic Instruction Based on TEC-XP16 Teaching Machine

  

  1. (1. College of Computer Science and Engineering, Changshu Institute of Technology, Changshu 215500, China; 
     2. School of Mathematics and Physics, Jiangsu University of Science and Technology, Zhenjiang 212003, China)
  • Online:2021-08-19 Published:2021-08-19

Abstract: To solve the problem that TEC-XP 16 teaching machine does not have floating point arithmetic instruction, a general design and implementation method for 32-bit floating point arithmetic instruction is emphatically studied on TEC-XP16 microprogram controller. To solve the problem that manually designing microprogram and modifying the source program of microprogram controller is  inefficient and  error prone, a fast method which can automatically produce microprogram according to assembly program is put forward. And some database tables are designed and a program is written in Python language which can automatically modify the source program of the controller and generate a new source program file of ABEL language according to the contents of the database tables. The experimental results show that the design of 32-bit floating point arithmetic instruction is correct. The program written in Python language can automatically produce microprogram in less than five seconds and modify the source program of the controller in less than two seconds on average, which greatly improves the efficiency for designing floating point arithmetic instruction. The method can also be extended to the design of other complex instructions.

Key words: TEC-XP16 teaching machine, microprogram controller, 32-bit floating point arithmetic instruction, Python language