An all-fibre technique for the coherent spectral encoding and decoding of o
ptical pulses is proposed. The spectral coding of optical waveforms is achi
eved using pairs of oppositely chirped and suitably coded fibre gratings. T
he application potential to lightwave code-division-multiple-access (CDMA)
communications is demonstrated.