Patent attributes
One embodiment provides an optical encoder. The optical encoder includes an optical comb source to generate a multi-wavelength optical signal; a number of optical filters sequentially coupled to the optical comb source, with a respective optical filter being tunable to pass or block a particular wavelength of the multi-wavelength optical signal based on a corresponding bit value of a multi-bit search word; and a common output for the optical filters to output the filtered multi-wavelength optical signal, which encodes the multi-bit search word and can be used as an optical search signal for searching an optical content-addressable memory (CAM).