The interference method is used to achieve all-optical logic gate operations. This has been realized with a single design of photonic crystal ring resonator at different wavelengths rather than designing separate for all the logic gates. Such a single design can be used to perform all optical operations as AND, OR, and XOR logic gates at different wavelengths. Further operating wavelength, contrast ratio (CR), response time (RT), and bit rate have been analyzed for all three logic gates. The highest CR is obtained as about 22.06 dB with fast RT about 0.14 ps and high bit rate of 7.14 Tb / s for proposed XOR logic gate in comparison to all the other logic gates with single-design structure, which may lead us to construct on-chip logic circuits.