We discuss several kinds of code schemes and analyze their spectral efficiency, code utilizing efficiency, and the maximal spectral efficiency. Error correction coding is used to increase the spectral efficiency, and it can avoid the spectral decrease with the increase of the length. The extended primer code (EPC) has the highest spectral efficiency in the unipolar code system. The bipolar code system has larger spectral efficiency than unipolar code system, but has lower code utilizing efficiency and the maximal spectral efficiency. From the numerical results, we can see that the spectral efficiency increases by 0.025 (b/s)/Hz when the bit error rate (BER) increases from 10^-9 to 10^-7.
A novel scheme of all-optical AND gate based on a Fabry-Perot semiconductor optical amplifier(FP-SOA) is proposed and its feasibility is verified by simulation. Using this scheme, all-optical AND gate can be realized with the extinction ratio of 10 dB. The influence of pulse interval and pulse width on the extinction ratio is also investigated.