In this paper, we have presented an e cient original architecture of all-optical 2×4 photonic crystal decoder based on non-linear ring resonators. The fundamental structure is a square lattice of 2D GaAs rods, operating around the wavelength 1.55 µm. The proposed decoder is composed of a combiner with three input ports, where the port E is used for excitation and A 1 , A 2 are the control ports, and an optical switch with four output ports, and it is a nonlinear DMEX. For the creation of a switch at the wavelength of 1.55 µm, we used nonlinear chalcogenide glass rods with a nonlinear Kerr coe cient equal to 9×10 -17 m 2 /w. The switching intensity and structure size are 1 Kw /µm 2 , 27.12 µm × 17.96 µm, respectively. The contrast ratio is about 8.7. The maximum crosstalk and insertion losses are calculated to be about -22.1 and -4.5 dB. The maximum and minimum power levels for logic states 0 and 1 are 0.5P 0 and 0.37P 0 where P 0 is the input power. The nite element method was used to perform the necessary calculations.