| In the development and use of ternary optical computers,polarization of optical liquid crystal,noise of optical components,temperature and magnetic field will change the polarization direction of light,and produce non-linear effect,which will distort the light signal and cause error code.In addition,there is a communication subsystem between the host and slave computer of the ternary optical computer.When the communication channel fails,the decoding and encoding of the host and slave computer will cause signal distortion and data error during data transmission.This will seriously restrict the update and theoretical breakthrough of ternary optical computers.To solve this problem,this paper improves the existing Hamming code theory of ternary optical computer,which can greatly improve the fault tolerance of the system.Based on the ternary Hamming code theory,a Hamming code error correction module is designed using optical electronic devices.It is designed based on ternary logic gate,which can realize error detection and correction of Hamming code and reduce the error rate of operation output.The main contents of this paper are as follows:Firstly,a ternary optical computer parity code is proposed based on the computer parity code,and its features and principles are discussed.Then,based on this,the previous work is improved and the ternary Hamming code theory is improved.In order to realize the error detection and correction application of Hamming code,ternary logic gates(MIN gate,MAX gate,NOT gate)are designed.Hamming code error correction module is designed based on ternary logic gate.Finally,this paper designs a set of experiments to verify the correctness of the Hamming Code theory.The experimental results show that the Hamming code error correction module can improve the error tolerance of the ternary optical computer calculation results.This will greatly reduce the communication cost,reduce the waste of resources,so that the error rate of output results of ternary optical computer will be greatly reduced,and the error correction effect of ternary optical computer Hamming code is obvious.(1)Based on the existing logic operation rules of ternary optical computer,ternary logic gates(MIN gate,MAX gate,NOT gate)are designed.This part of the work lays a foundation for the subsequent design of error correction module for Hamming code.(2)The theory of parity check code based on ternary optical computer is presented.The Hamming code of ternary optical computer is improved based on parity check code.The Hamming code error correction module is designed to reduce the accidental error code of ternary optical computer and reduce the error rate of output results. |