Patent ID: 7721168

Claim:
An apparatus, on an integrated circuit device, for writing data to a plurality of storage devices, comprising: a plurality of storage devices; a series of latch units arranged as a scan chain and coupled to the plurality of storage devices; one or more alignment latches arranged in the series of latch units; and a logic unit coupled to the one or more alignment latches, wherein: a sequence of data is scanned into the series of latch units and the one or more alignment latches in the series of latch units, the logic unit determines whether the sequence of data is correctly scanned into the series of latch units based on data values stored in the one or more alignment latches, and the data scanned into the series of latch units is written to the plurality of storage devices if the logic unit determines that the sequence of data is correctly scanned into the series of latch units, wherein each storage device in the plurality of storage devices receives, as input, a qualified program enable signal from the logic unit, and wherein the qualified program enable signal is asserted from the logic unit to the storage device if the logic unit determines that the sequence of data is correctly scanned into the series of latch units based on data values stored in the one or more alignment latches.