Novel designs of programmable all-optical synchronous code-division
multiple-access (CDMA) encoders and decoders are reported. They are based on cascades of optical delay lines and electro-optic switches. The operations of both optical encoders and decoders are illustrated with the well-known prime-sequence codes. Based on the proposed designs, these optical CDMA components can be constructed by integrated optics (i.e., the optical delay lines and switches are all fabricated on the same substrate). With the possibility of mass production and eliminating the fiber-waveguide interface power loss, better cost efficiency and lower power loss would be expected, as compared to the conventional designs.