1. Field of the Invention
This invention relates to the field of data processing systems. More particularly, this invention relates to circuits and methods within such data processing systems that serve to store signal values.
2. Description of the Prior Art
It is known to provide integrated circuits with flip-flop circuits therein that store signal values during an operational mode and also during a diagnostic mode. In the operational mode the signal values are stored within the flip-flop as they propagate through the integrated circuit undergoing various data processing operations. For diagnostic purposes, it is known to capture such signal values from the flip-flops and then serially clock these out from the integrated circuit using a serial scan chain. As the number of signal values which need to be latched and potentially scanned out of the integrated circuit is large, and steadily increasing as integrated circuits increase in complexity, it is desirable that the flip-flop circuitry should be efficient in terms of the number of gates used as it is replicated many thousands of times throughout the integrated circuit.
A known form of flip-flop which serves to latch data during an operational mode and also during a diagnostic mode is one in which phase 1 and phase 2 latches are disposed downstream of a multiplexer which selects between operational data and serial scan chain diagnostic data. When data capture is required, the signal value already within the latch will serve as the captured value for that latch. This captured value will then be scanned out through other similar flip-flops for which the multiplexer selects as its input the output of a previous flip-flop circuit so as to form a serial scan chain.
A problem with this design is that the multiplexer which is required in front of the flip-flop imposes a disadvantageous signal path delay. As the total path delay between nodes (flip-flops storing signal values) is decreased with the move towards higher clock frequencies, then the signal path delay imposed by the multiplexing circuit becomes an increasing proportion of the total signal path delay. The role of the multiplexing circuit is to provide appropriate switching for infrequent use in the diagnostic mode of operation and yet it imposes a significant signal path delay during an operational mode on what can be a critical signal path within the integrated circuit.
Viewed from one aspect the present invention provides a circuit for storing a signal value, said circuit comprising:
The present technique recognises the disadvantage associated with the multiplexer used in the prior art designs and seeks to remove this by providing at least partially separate latching circuits for the operational and diagnostic data paths. The present technique combines this removal of the multiplexer with the use of the shared latch which is shared between both the operational and diagnostic data paths so as to reduce the overall gate count of the flip-flop circuitry compared to providing completely separate latches and also to provide an arrangement whereby the signal value to be captured from the operational mode is already present within the shared latch when the flip-flop switches into the diagnostic mode.
It will be appreciated that the second phase and the first phase of both the operational clock and the diagnostic clock do not imply any particular clock signal level. Furthermore, it will be appreciated that in its general sense the invention is equally applicable to embodiments in which the shared latch either precedes or follows the dedicated latch in either or both of the operational data paths and the diagnostic data path.
A particularly preferred way of implementing the shared latch is in the form of a first tristate driver which is selectively enabled by the operational clock signal and a second tristate driver which is selectively enabled by the diagnostic clock signal. This provides a functionally symmetric arrangement whereby the two tristate drivers can swap their roles with one being switched on and the other selectively switched on by its appropriate clock signal depending upon the current operational mode of the flip-flop.
The switching between the different modes of operation may be advantageously achieved in embodiments in which the operational clock signal is held static when the diagnostic clock signal is active and the diagnostic clock signal is held static when the operational clock signal is active.
It will be appreciated that the diagnostic data path could take a variety of different forms and is not limited to serial scan chains. However, the invention is particularly useful in the context of integrated circuits when the diagnostic data path is part of a serial scan chain for serially scanning diagnostic data through the integrated circuit.
In order to reduce power consumption preferred embodiments provide a diagnostic data output gate coupled to the diagnostic data path which serves to gate off this output when the system is not in the diagnostic mode thereby avoiding the unnecessary consumption of energy by needlessly changing a voltage level associated with any circuit capacitance downstream of the diagnostic data output gate.
Viewed from another aspect the present invention provides a method of storing a signal value, said method comprising the steps of:
The above, and other objects, features and advantages of this invention will be apparent from the following detailed description of illustrative embodiments which is to be read in connection with the accompanying drawings.
The circuit 2 also includes a diagnostic data path between a diagnostic data input and a diagnostic data output and including a diagnostic path latch 12 and the shared latch 6. A diagnostic data output gate 14 which is selectively enabled by a scan enable signal SE serves to gate off the output of the diagnostic data path when the circuit 2 is not in the diagnostic mode. Tristate drivers 16, 18 serve to control the flow of signal values through the diagnostic data path (functionally equivalent alternative may also be used such as an inverter followed by a transmission gate).
An operational clock signal CLK serves to control the transmission gates 8, 10, the operational path latch 4 and one of the tristate drivers 20 within the shared latch 6. A diagnostic clock signal SCLK serves to control the tristate drivers 16, 18, the diagnostic path latch 12 and the other one of the tristate drivers 22 within the shared latch 6. As illustrated in the bottom portion of
During the operational mode the diagnostic clock signal is constrained such that the value SCLK is held low throughout the operational mode. This ensures that the tristate driver 22 remains switched on during the operational mode. The tristate driver 20 of the shared latch 6 is selectively switched on and off by the operational clock signal CLK. In Phase 2 as illustrated in
In this Phase 2 of the diagnostic mode, the two tristate drivers 20, 22 within the shared latch 6 are enabled such that feedback occurs around the shared latch 6 and the signal value stored therein is output through the diagnostic data output gate 14 to the diagnostic data output. At the same time the tristate driver 16 is open allowing diagnostic data input signals to pass into the diagnostic path latch 12. The tristate driver 26 within the diagnostic path latch 12 is disabled during this second phase of the diagnostic mode since it is not required and to avoid contention.
It will be appreciated that the diagnostic data input and the diagnostic data output may respectively be coupled to preceding and succeeding similar circuits for storing a signal value so as to collectively form a serial scan chain (not illustrated) path through which diagnostic data may be serially scanned into and out of an integrated circuit.
It will be appreciated that the circuit 2 illustrated in FIGS. 1 to 5 does not include a separate multiplexer at its input. The respective data paths are effectively selected through control of the clock signals with a defined relationship between the diagnostic clock signal and the operational clock signal with these being held at predetermined values whilst the other is active. The shared latch 6 is part of both the diagnostic data path and the operational data path thereby advantageously reducing gate count. Furthermore, a signal value held within the shared latch is automatically passed between the operational data path and the diagnostic data path when the circuitry 2 switches between the operational mode and the diagnostic mode.
Although illustrative embodiments of the invention have been described in detail herein with reference to the accompanying drawings, it is to be understood that the invention is not limited to those precise embodiments, and that various changes and modifications can be effected therein by one skilled in the art without departing from the scope and spirit of the invention as defined by the appended claims.