text: an exemplary embodiment of the present invention will now be described with reference to fig1 . fig1 is a schematic representation of the testing circuit 8 of the present invention used to test synchronous and asynchronous devices , for example , a device under test ( dut ) 10 , according to the present invention . the testing circuit 8 includes a test signal generator 20 connected to a clock recovery instrument 40 by a clock synchronous with a reference clock 21 . the testing circuit 8 also includes a signal analyzer 110 having a clock input port 111 coupled to the clock recovery instrument 40 via signal line 112 and a signal input port 113 coupled to the clock recovery instrument 40 via instrument line 100 . the test signal generator 20 includes one or more output ports 121 coupled to the one or more input ports 200 of the dut 10 via communication line 120 , and a clock input port 131 coupled to the reference clock 21 . in one embodiment the clock recovery instrument 40 is built into or enclosed within the test signal generator 20 . in an alternative embodiment , the circuit 8 includes an alternative signal generator 30 . as will be understood more fully hereinafter , the signal generator 30 comprises an arbitrary waveform generator and / or a protocol generator and is similarly connected to input ports 200 of the dut 10 . the dut 10 includes one or more input ports 200 , one or more output ports 300 , a fifo buffer 202 and a decoding module 204 , for example , an integrated circuit , a software module being executed by a processor or other control mechanism ( not shown ) or other suitable device or combinations thereof configured to decode any data 203 provided by the fifo buffer 202 . typically , the dut 10 includes a reference clock 208 and an encoding module 206 , for example , an integrated circuit , a software module being executed by a processor or other control mechanism ( not shown ) or other suitable device or combinations thereof configured to encode data 205 provided , for example , by the encoding module 204 or the clock signals from the reference clock 208 . the dut 10 may be set in a loop back mode by either mechanical or electronic means . in order to electronically set the dut 10 to the loop back mode , a corresponding signal 120 is transmitted to one or more of the input ports 200 of the dut 10 by either the test signal generator 20 or the arbitrary waveform protocol generator 30 . the signal 120 may be in the form of a data stream , pattern or simple digital word . in the exemplary embodiment shown , the loop back circuit or mode 12 is initiated by the dut 10 receiving a corresponding control signal 120 from test signal generator 20 . in another exemplary embodiment , the test waveform protocol generator 30 provides the control signal 120 that sets dut 10 in the loop back mode . the test signal generator 30 comprises one of the following an out - of - band ( oob ) signal generator or arbitrary waveform generator or a protocol generator . in the exemplary embodiment shown in fig1 , the clock recovery instrument 40 comprises a phase locked loop ( pll ) circuit . the clock recovery instrument 40 recovers the clock timing signal 100 from at least one of the output ports 300 of the dut 10 . the recovered clock signal 100 is subsequently used to clock the data or signals sent to one or more of the dut input ports 120 via reference clock 21 . while the recovered clock signal 100 is commonly used to recover and analyze signals and / or data , the method in accordance with this invention uses the recovered clock signal , provided to the data signal analyzer 100 on line 112 , for sending signals and data 120 synchronized with the dut 10 . the circuit and method in accordance with the invention herein also aligns the signal as well as data . the test generator 20 or in the case of the alternative embodiment , the arbitrary waveform protocol generator 30 , transmits a control signal to the dut 10 on line 120 . it will , of course , be appreciated that the control signal 120 may be in the form of data or a signal pattern . typically the dut 10 merely recognizes the beginning and the end of special byte or bytes or word ( s ) or symbol ( s ), for example , the align symbol used in serial ata . the circuit and method in accordance with the invention herein uses this functionality of the dut 10 by either first transmitting a sequence of the special alignment byte or bytes or word ( s ) or symbol ( s ); or by embedding the special alignment byte or bytes or word ( s ) or symbol ( s ) within the sequence transmitted by the test signal generator 20 on line 120 . the dut 10 thusly aligns its internal signal processing with the test signal generator 20 creating alignment between the circuit 8 and dut 10 . in the exemplary embodiment , the alignment is done prior to decoding , encoding and other processing . subsequent to alignment , a second test signal is generated of a second desired test data or signal sequence and provided to the dut 10 on line 120 . in one implementation , the alignment signal and subsequent test signal ( test data or signal sequences ) are the same . more commonly there will be two different test signals . in other words , there will be an alignment signal where the dut 10 recognizes the first and last bit ( s ) or byte ( s ) and subsequently a second test signal comprising a data or signal sequences . in some implementations the signals will be stored , generated or analyzed as a single stream where the one longer sequence contains both functions . in more common implementation of the alignment method above , the test signal generator 20 first sends the align words used in serial ata . the generator 20 uses an arbitrary clock frequency near the nominal clock frequency of the dut 10 , while clock recovery instrument 40 recovers the clock 100 from the dut 10 . the test signal generator 20 then continues to send the test pattern including alignment data or signals using the recovered clock 100 via reference clock 21 . the change to use the recovered clock is implemented in one of two ways . firstly , the first arbitrary but near nominal clock frequency source is switched to the clock from the clock recovery instrument 40 after the clock recovery instrument 40 has completed the acquisition and recovery of the clock timing signal 100 from at least one of the output ports 300 of the dut 10 . or secondly , by starting the clock frequency instrument 40 at the near nominal clock frequency and continue to use said clock while waiting for the clock recovery instrument 40 to recover the clock timing signal 100 from at least one of the output ports 300 of the dut 10 . it will be appreciated that during the alignment process , either of these implementations may be used . it will also be appreciated that the user may switch between implementations as desired . the combination of clock recovery combined with the transmission of alignment data or signals , such as the align words in serial ata , provides for fast synchronization of a device under test in loop back mode . not only does the combination allow simultaneous settling of the clock frequency and data or signal alignment , but the combination also removes the difference between clock frequencies of test signal generator 20 and dut 10 . this eliminates the need to deal with insertion or deletion of bit ( s ) of signal or data , for example insertion or deletion of extra align words in serial ata , otherwise used by the dut 10 to fill or shorten the mis - match in clock frequency . further , the signal or data returned at the one or more output ports 300 of the dut 10 will be aligned with the internal processing , encoding / decoding of the dut 10 and therefore will the expected value . once loop back synchronization has been achieved , any combination of data or signal sequence ( s ) may follow , for example one of the following : high frequency , medium frequency , low frequency or lone - bit test pattern ( s ). successful synchronization and alignment are achieved when there is an expected amount of bit ( s ) of data or signal appearing at the output ports 300 of the dut 10 . for example , there will be no less and no extra align words in a serial ata application . this is sometimes easier to see when switching to another test pattern or signal , such as high frequency , medium frequency , low frequency or lone - bit test pattern ( s ), which do not include align words or by using a pattern , such as cjtpat in fibre channel , which includes portions with and without align words . using the circuit 8 and the method in accordance with this invention , loop back test mode synchronization is achieved in situations where the dut 10 is unable to be set into a transmitter ( output ) test mode . in those cases the clock recovery instrument 40 and a data / signal analyzer 110 are used for the test , for measurement , verification or validation of a transmitter , the output ports 300 of dut 10 . these tests are conventionally complicated by the need of a priori knowledge of the functionality of the dut 10 . for example , sometimes knowledge about specialized connections or control software is needed . other times there is a need to repeat the setting the dut 10 into various test modes for each desirable test pattern , data or signal . this invention eliminates the above complications merely setting the dut 10 in a loop - back test mode once and then allows the test signal generator 20 to send the appropriate patterns that generate the desirable test data or signal on the output ports 300 of the dut 10 . noticeably then transmitter output on port ( s ) 300 of the dut 10 will be synchronous with the test signal generator 20 and the internal processes of the dut will be aligned with the data or signal providing a expected output on ports 300 that can be easily verified and compared with various standards or metrics . it may be faster or more convenient to have the test signal generator 20 provide the test patterns and signals that are subsequently looped back from one of the device under test &# 39 ; s receivers to one of the device under test &# 39 ; s transmitters . a test signal generator 20 may for example be programmed to step through a sequence of test patterns or otherwise provide the test patterns faster than the dut 10 . while the foregoing detailed description has described several embodiments of the circuit 8 and various methods of test synchronous and asynchronous electronic devices with clock signals in accordance with this invention , it is to be understood that the above description is illustrative only and not limiting of the disclosed invention . particularly , there can be a variety of test input signal generators used initiating a variety of different signals or signal types . it will be appreciated there are but exemplary embodiments discussed above and that there are numerous embodiments that are not mentioned but within the scope and spirit of this invention . thus , the invention is to be limited only by the claims as set forth below .