Journal of Shanghai University(Natural Science Edition) ›› 2018, Vol. 24 ›› Issue (2): 181-191.doi: 10.12066/j.issn.1007-2861.1979

• Ternary Optical Computer • Previous Articles     Next Articles

Initial SZG file generation software for ternary optical computer

LI Shuang, JIN Yi(), LIU Yuejun, ZHOU Shiqiang   

  1. School of Computer Engineering and Science, Shanghai University, Shanghai 200444, China
  • Received:2017-07-10 Online:2018-04-30 Published:2018-05-07
  • Contact: JIN Yi E-mail:yijin@shu.edu.cn

Abstract:

SZG file is a programming platform for using a ternary optical computer (TOC) with a high-level programming language. SZG file's functions are similar to those of OpenACC in using GPU and MIC, but both are completely different in programming idea and implementation. More importantly, an SZG file is the only way for programmers to present requirements of grouping the processor's bit number and reconfiguring the processor's hardware functions. The method based on SZG file is easy to be understood, and convenient to be used. This paper proposes an initial SZG file generation theory, an algorithm and a generation software. The proposed software can implement some functions such as storing initial SZG file and appending operands to a SZG file. Moreover, the system can store the operands every a few minutes via setting a timer. Therefore, in applying the software, there is no need to understand the SZG file format and the TOC's work process. Users can generate a correct SZG file. Furthermore, in application, TOC can process large amounts of raw data in parallel using the SZG file. Finally, a white box technique is used to test the software. As an example, the software is used by creating an initial SZG file containing two simple calculators. The results confirm validity and correctness of the software.

Key words: ternary optical computer (TOC), SZG file generation software, algorithm design, new programming method

CLC Number: