In this paper, a 2-to-4 all-optical decoder based on photonic crystal ring resonators is introduced. The photonic crystal structure has a 2D square chalcogenide rod lattice whose maximum response time is 2 ps. Three ring resonators including nonlinear rods with 9×10-17 m2/W for a Kerr coefficient carry out a switching operation at 1550 nm wavelength. The switching speed of the device is 500 GHz, which is more than that in previously presented works. Also, the small size of the structure is sufficient for optical integrated circuits.