Patent ID: 7434127

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, 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, each storage device in the plurality of storage devices receives, as input, a qualified program enable signal from the logic unit and a data input from a latch, in the series of latch units, coupled to the storage device, the storage device is programmed with the data received via the data input from the latch, in the series of latch units, coupled to the storage device, in response to the qualified program enable signal being asserted from the logic unit to the storage device, and the logic unit asserts the qualified program enable signal in response to the logic unit recognizing a predetermined pattern of data values from the one or more alignment latches.