A system and method for frame detection and generation. Each incoming clock-data stream is divided into two independent data streams: a clock path (103) which preserves the timing of the individual cock domains and a data path (104) which multiplexes an arbitrary number of data streams onto a parallel path. A framer array structure (114) implements a context swap and synchronizes the data streams.