Apparatus and method for clock signal synchronization in JTAG testing in systems having modules processing clock signals at different rates
In a test and debug system in which a plurality of modules under test have different operational rates, the system clock and the return clock signals from the modules lose synchronism. An error signal is produced when the clock signal makes a transition to a logic state that is the same logic state of the return clock signal of all of the modules. Apparatus is provided for generating logic signals when all of the return clock signals are in the same logic state. Two logic states are possible for all the return clock signals. A current state is latched until all the return clock signals are in the other state, at which time the second logic signal state is latched. The apparatus can be reset by an external signal.
1. Field of the Invention
This invention relates to the application of a system clock to a plurality of modules that process the clock signals at different rates. In particular, the modules process test and debug signals, such as JTAG signals, at different clock rates.
2. Background of the Invention
In certain processing units, different modules can process input signals a different clock rates. For example, modules of the ARM Corporation processing units process test and debug signals at different rates. In the JTAG test and debug format, not only is a clock (CLK) signal required, but a return clock (RCKL) signal must be present.
Referring to
As will be clear, either through failure of the system clock or as a result of variations in the time to process the data signals entered into each module, a timing error can occur and compromise the retrieved data.
It is therefore a feature of the apparatus and associated method to determine when a timing error has occurred in a group of modules that can process portions of a data stream at different rates. It would be yet another feature of the apparatus and associated method to determine when all the return clock signals from the a plurality of modules have a first logic state. It is yet another feature of the present invention to determine when all the module return clock signals have a second logic state. It is yet another feature of the present invention to determine when the return clock signals are inconsistent with the system clock signals. It is a more particular feature of the apparatus and associated method to provide an ERROR signal in the event of potential data corruption in a JTAG test and debug procedure. It is yet a further particular feature of the apparatus and associated to reset the apparatus after the generation of an error signal in response to an externally applied initiation signal.
SUMMARY OF THE INVENTIONThe aforementioned and other features are accomplished, according to the present invention, by a first circuit that provides a signal when all of the RCK signals from the modules are in a first state and a second circuit that provides a second signal when the RCLK signals are in a second state. The output signals from the first and second circuits are latched until the opposite state signal is generated. The latched signal is compared to the system clock signal, the system clock being the system clock signal for all of the modules. When the comparison is positive, activity of the modules is continued. When the comparison is negative, an ERROR signal is generated and the results of the previous activity of the modules are discarded. In one implementation, when the ERROR signal is generated, an external signal can initialize the apparatus.
Referring to
Referring to
Referring to
Referring to
Referring to
The operation of the present invention can be understood as follows. A first circuit has all the return clock signals applied thereto. When all the return signals have the same state, a first logic signal is latched. This first logic signal remains latched until all of the return clock signals reach the opposite state. At this point, a second logic signal is latched. The latched signal is compared to the logic level of the transitioning clock signal. When the clock signal transitions to the same logic level as the latched signal, an ERROR signal is generated. The ERROR signal remains latched until an initialize (POR) signal is applied to the circuit.
Using the circuit shown in
While the invention has been described with respect to the embodiments set forth above, the invention is not necessarily limited to these embodiments. Accordingly, other embodiments, variations and improvements not described herein are not necessarily excluded from the scope of the invention, the scope of the invention being defined by the following claims.
Claims
1. In a test and debug system having a plurality of modules operating at different rates, the modules receiving a common CLK signal and each module generating an RCLK signal, the method for providing an ERROR signal comprising:
- combining the RCKL signals in a composite RCLK signal;
- comparing the composite RCLK signal with the CLK signal; and
- generating an ERROR signal when a transition of one signal results in the same state as the other signal.
2. The method as recited in claim 1 further comprising:
- generating a composite; RCLK signal when the RCLK signals from the modules all have the same state; and
- latching the most recent composite RCLK signal.
3. The method as recited in claim 1 wherein the test and debug system uses the JTAG format.
4. The method as recited in claim 1 further comprising initializing the apparatus generating the ERROR signal with a combination of the ERROR signal and an external signal.
5. An apparatus for detecting an error in the clocking of a test and debug procedure, the apparatus comprising;
- a plurality of modules processing data signals applied thereto at different rates, the modules having a clock signal applied thereto, each module generating a return clock signal;
- an first adder circuit having the return clock signals applied thereto, the first adder circuit generating a first signal when all of the return clock signals have first logic state;
- a second adder circuit having the return clock signals applied thereto, the second adder circuit generating a second signal when the return clock signal have second logic state;
- a latching circuit for latching the most recently generated to the first and the second output signal, and
- a comparison circuit responsive to the clock signal, the first signal and the second signal, the comparison circuit generating an ERROR signal when the clock signal transition to the same logic state of the first or second signal.
6. The apparatus as recited in claim 5 wherein the test and debug procedure is a JTAG procedure.
7. The apparatus as recited in claim 5 further comprising a reset circuit responsive to the ERROR signal and an external signal, the reset circuit removing the ERROR signal.
8. In a test and debug system wherein a plurality of modules under test operates at different rates, an apparatus for generating a ERROR signal when a clock error is identified, the apparatus comprising:
- a first summing circuit responsive to the return clock signals from the modules, the first summing circuit generating a first logic signal when all of the return clock signals have a first preselected value;
- a second summing circuit responsive to the return clock signals from the modules, the second summing circuit generating a second logic signal when all of the return clock signals have a second preselected value;
- a latching circuit having the first and the second preselected value applied thereto, the latching circuit latching one logic signal until the other logic signal is generated; and
- a comparison circuit, the comparison circuit comparing the output signal of the latch circuit to a system clock signal, the comparison circuit generating an ERROR signal when the output signal has predetermined relationship with the system clock signal.
9. The apparatus as recited in claim 8 wherein the test and debug system is a JTAG test and debug system.
10. The apparatus as recited claim 8 wherein the modules being tested include module in processing machines by ARM Corporation.
11. The apparatus as recited in claim 10 wherein the predetermined relationship is an identity in the logic state of the system clock and the logic state of the of RCLK.
12. The apparatus as recited in claim 8 further comprising a reset circuit, the reset circuit responsive to the ERROR signal and an external signal for removing the ERROR signal.
Type: Application
Filed: Dec 21, 2007
Publication Date: Jun 25, 2009
Inventor: Gary L. Swoboda (Sugar Land, TX)
Application Number: 12/004,876
International Classification: H03K 5/1534 (20060101); H03L 7/00 (20060101);