A method of forming a scan chain for testing an integrated circuit
includes examining an interconnection of register elements in an
integrated circuit design. A register element segment is identified which
includes a source register element having an output and a destination
register element having an input directly coupled to the output of the
source register element. The segment is selectively coupled to another
scan register element to form a portion of scan chain.