Cross Reference to a Related Application
This application is related to U.S. application Ser. No. 875,894, titled Look Ahead Terminal Counter, filed concurrently herewith by the same inventor.
Background of the Invention
The present invention relates to counters and, more particularly, to a multi-mode network operative to utilize counter circuitry to perform a variety of functions.
Generally, a counter is a device capable of changing from one to another distinguishable state. Counters are operative to change states, and thereby produce one or more output signals, upon receipt of some predetermined number of input pulses. A plurality of counter states are frequently cascaded together to perform digital counting. A component such as a register is used to generate and store counter output signals representative of the number of input pulses, or the number of occurrences of a particular event of interest. Outputs from the registers can be connected to associated combinational logic that is constructed to generate a state decode output signal when the register outputs are at predetermined states, e.g., when all the register outputs are at a one state, commonly known as terminal count. It is to be understood, however, that different combinational logic can be used to generate a state decode output signal when the register outputs are at any predetermined state.
Thus, as used hereinafter, the signal terminal count (TC) shall be used generally to represent a state decode output signal generated in response to register outputs at any predetermned state.
Counters are frequently used in computer networks, in combination with a variety of different types of combinational logic to perform numerical functions that allow the computer to solve problems relating to combinations, permutations and/or selection of discrete data from a large pool of input data.
For example, various types of combinational logic may be interconnected with counter networks to analyze the various ways in which discrete objects may be combined and permuted. One might wish to select r objects from n distinct objects for repetitive selection of the same object. In less technical terms, the combinational logic and an associated counter network can operate to sort a large volume of input data into definable groups having some common characteristics. One such application would be to segregate components of radar return signals indicative of the presence of a moving target, or to segregate incident x-ray signals having signal components representative of the existence of cancerous growths in a patient. Such applications typically require a generation of complex signals representative of numerical functions, combination of input data with those functions and an analysis of the recurrence of predetermined signal patterns within the combination. Circuitry to perform those functions includes complex combinational logic and an extended number of counters operatively associated with that combinational logic.
Frequently counter networks and combinational logic are not segregatable with respect to testing procedures such that it is impossible to differentiate between a failure in the combinational logic and a failure in the counter network. Moreover, a plurality of counter stages may be "buried" within a larger circuit such that it is almost impossible to identify where any failure may be located. Additionally, where the counter must be sequenced through its entire operational cycle to generate an output signal, the time necessary to perform such a test may be unacceptably long and the information obtained from the test procedure may be limited to simple determination of whether the overal network performs as desired, without any differentiation regarding the source of any failure. Furthermore, as explained below, such a test will not necessarily identify failures that may appear at states other than the final state of the counter network. Consequently, the information obtained from such contemporary testing procedures is too little, and the time necessary to obtain that information is too long.
In order to facilitate the testing of counters utilized in digital processing systems it is customarily necessary to apply a large number of clock pulses to the counter circuit and determine whether counter signals are being correctly generated in response to the appropriate number of clock pulses. In some cases it may be sufficient to confirm that the terminal count output of the counter network occurs after the correct number of clock pulses, i.e. that the counter network generates a terminal count output signal at the counter network cycle rate. However, as is well understood by those familiar with counter networks, a check of only the terminal count output signal does not insure that each individual counter register is operating correctly. This failure of individual counter register may result in the loss of information from combinational logic associated with an inoperative counter register, and the loss of intermediate output signals from the counter network. Such failures may, for example, occur where the output of one or more counter registers is stuck at a high level, and may not be detectable by a simple examination of the terminal count output of the counter network. Accordingly, it is frequently necessary to examine the output of each individual counter register after each clock pulse during one cycle. This procedure may be not only time consuming, but may also require an inordinate amount of dedicated storage and comparison circuitry. Where a plurality of counter stages are cascaded it is even more time consuming to compare the state of each counter register with the expected state after each clock pulse and counter enable pulses associated with a cycle of the counter, i.e. network cycle time.
Aside from failures associated with stuck counter registers, failures may result where the counter network, though operative to properly effect state changes in response to input signals, fails to enable generation of a terminal count signal soon enough after the appropriate clock pulse. Such failures are commonly referred to as race conditions. Other failures occur where, due to transient conditions within the counter network, a terminal count signal is generated at an inappropriate time. A brief explanation of how such false terminal count signals may be generated is believed to be useful for a more complete understanding of the present invention.
As previously indicated a counter network typically operates to generate a terminal count signal each time the counter network sequences through a predetermined number of clock pulses. After each counter register is sequenced to a desired output state, logic forming a portion of the counter network recognizes the existence of the desired state condition at each counter register and enables generation of a terminal count signal upon occurrence of the next clock pulse. Difficulties arise where, due to factors such as inherent propagation delays in the circuit components, the output state of the counter registers may briefly be in a state that enables the generation of a terminal count signal, though the counter has not yet received the desired number of input pulses. Consequently, if the next clock pulse occurs prior to the time the counter registers have completed transitioning to states corresponding to the current count, a false terminal count signal may be generated from the counter.
Thus, in addition to providing an improved technique for testing the operation of the counter and associated combinational logic the present invention is also directed to circuitry for reducing counter propagational delays and eliminating false output signals, associated with terminal count, as described more fully below.
Accordingly, the present invention is directed to a counter wherein each counter register may be separately tested without the need to sequence all counter registers and counter enable circuitry through the number of clock pulses corresponding to the network cycle time. The present invention further provides a counter network wherein an error may be resolved to a specific register or to combinational logic associated with a specific register. The present invention also provides a counter network wherein propagation delays and false output signals associated with terminal count can be reduced or eliminated. The counter network of the present invention is also intended to permit operation of the counter in a plurality of modes including a counting mode, a testing mode, a hold mode, a clear mode and a data loading mode, thereby rendering the counter network more versatile, more testable and more reliable.
Summary of the Invention
A multi-mode counter network and a method of testing the operation of the multi-mode counter network are disclosed. The multi-mode counter network comprises a counter circuit formed of a plurality of counter registers and a multiplexer circuit formed of a plurality of multiplexers wherein each of the multiplexers are connected to an associated one of the registers and are operative to selectively vary the input signal communicated to the associated register such that the registers operate in one of a plurality of operational modes. By controlling the selection of the input signal communicated to the register the network may be alternately configured to perform traditional counting functions or may be configured to provide a serial signal path for communicating a test pattern through the registers and multiplexers to test the operation of the multiplexers, registers and associated combinational logic. The test pattern may be communicated through the circuit, bypassing count enabling circuitry and parallel loading functions, and thus independent of the traditional counter controls and counter network cycle time, i.e. the time necessary for the counter to transition through a complete cycle. Alternatively, a test pattern can be serially shifted to a desired portion of the counter; then the circuit may be allowed to operate on a desired segment of input data; and the result of that operation captured within the counter network and then serially shifted out. Thus, the operation of combinational logic or other circuitry may be selectively tested via the combined operation of the counter testing and loading modes.
In the presently preferred embodiment the multiplexers are also operative to communicate inputs to the associated registers to hold the output of the registers at their current level, to parallel load data into the registers or to set the output of the registers at a predetermined level.
Look ahead terminal count enable circuitry is also provided to reduce delay time between the occurrence of a desired number of input signals and the resulting generation of a terminal count output signal. The terminal count enable circuitry is also operative to isolate spurious conditions within the network from the counter output.
Brief Description of the Drawings
FIG. 1 is the circuit diagram illustrating the presently preferred embodiment.
Detailed Description of the Presently Preferred Embodiment
The detailed description set forth below in connection with the appended tables and drawing is intended merely as a description of the presently preferred embodiment of the invention, and is not intended to represent the only form in which the present invention may be constructed or utilized. The description sets forth the functions and sequence of events that are affected by the invention in connection with the illustrated embodiment. It is to be understood, however, that the same, or equivalent functions and sequences may be accomplished by different embodiments that are also intended to be encompassed within the spirit and scope of the invention.
Referring to FIG. 1, an exemplary circuit is illustrated for providing the structure and functions of the present invention. An identification of the signals illustrated at FIG. 1 is provided in Table I, below.
As shown in FIG. 1 counter network 11 comprises a plurality of registers (REG) 13, 15, 17, 19 and 21. Each of the registers 13, 15, 17, 19 and 21 is preferably formed as a D flip-flop, and may be implemented as Model F100151 flip-flops manufactured by Fairchild Camera and Instrument Corporation.
The input to each of the registers are provided by an associated multiplexer (MUX) 23, 25, 27, 29, and 31, respectively, which may be implemented as Model F100171 multiplexers manufactured by Fairchild Instrument and Camera Corporation. As is well understood by those skilled in the art, the signal level output present at the Z output of each of the multiplexers is clocked into the associated register by the signal CLOCK, applied to the C input to the register. Consequently, the signal level present at the Z output of each of the multiplexers appears at the Q output of the associated register following the next CLOCK pulse. The time delay between the appearance of a signal level at the multiplexer Z output and the appearance of a corresponding signal at the Q output of the associated register is determined by two principal factors, i.e., the delay between the appearance of the multiplexer output and the occurrence of the next succeeding clock pulse, and the internal propagation delay of the register.
Each of the multiplexers 23, 25, 27, 29 and 31 is provided with a plurality of input ports I0, I1, I2, and I3. The multiplexers are controllable to communicate the signal on the selected one of the four input ports to the Z output of the multiplexer, in response to the control signals S0 and S1. Control signals S0 and S1 are generated by logic circuitry 32 in response to the externally generated signals SELECT, HOLD and PEN, as set forth below at Tables II, III and IV. Logic circuitry 32 is operative to translate the SELECT, HOLD, and PEN signals into appropriate S0 and S1 signals for selecting the proper input in response to the external signals.
Logic circuits 33, 35, 37, and 39 comprise counter enabling circuitry operative to sequentially provide an input to the port, I0, of multiplexers 23, 25, 27, and 29, respectively, when network 11 is operated in a counting mode. Counter enabling circuitry 33, 35, 37, and 39 cooperate with the multiplexers and registers to sequentially generate output signals from registers 13, 15, 17, and 19, respectively, upon the occurrence of a predetermined number of clock pulses. Upon proper sequencing of registers 13, 15, 17, and 19 then, register 21 is enabled, ultimately resulting in the generation of a terminal clock signal TC at the Q output of register 21.
Terminal count output enabling circuitry 41 is preferrably formed as an or/nor gate connected to the complementary outputs (ZN) of multiplexers 23, 25, 27, and 29. Connection to the ZN outputs causes terminal count output enabling circuitry 41 to communicate an enable signal to the I0 input of multiplexer 31 when all of the ZN terminals are in a zero state, i.e. upon the occurrence of the clock pulse preceding the clock pulse generating the terminal count signal. Consequently, the Z output of multiplexer 31 and, therefore, the D input to register 21, are enabled in response to the clock pulse immediately preceeding the clock pulse that generates the terminal count signal. Upon the occurrence of the next CLOCK pulse the register 21 is caused to generate a terminal count (TC) signal. By use of terminal count output enabling circuitry 41 a look ahead terminal count scheme is effected such that the generation of the terminal count signal TC is delayed beyond the occurrence of the corresponding clock pulse signal by only the time corresponding to the propagation delay inherent in the operation of register 21. It is to be understood that by varying the circuitry used to form terminal count output enabling circuitry 41, or the connections thereto, a similar look ahead terminal count scheme may be effected to correspond with the generation of a terminal count signal in response to any predetermined number of clock pulses.
Moreover, the inclusion of register 21 prevents the generation of false terminal count signals where terminal count output enabling circuitry 41 generates a terminal count enable signal at the I0 port of multiplexer 31 in response to transient conditions of multiplexers 23, 25, 27 and 29. For example, as network 11 transitions from a count of 1101 to 1110 there may be a brief moment where the count will appear as 1111, resulting in a 0000 input to terminal count output enabling circuitry 41 and the consequent generation of a terminal count enable signal to be communicated to the I0 port of multiplexer 31. Where network 11 is in the counting mode this condition results in communication of a terminal count enable signal to the input to register 21. However, register 21 operates to isolate such transient conditions from the output of network 11 and will only generate an output when the register is enabled at the time a CLOCK signal is received. By that time, the transient conditions should be dissipated and the multiplexers should all be transitioned to their correct state. As will be recognized by those skilled in the art, the CLOCK rate should be selected with those transient conditions in mind and should allow sufficient time for the circuit components to complete transitioning between CLOCK pulses.
The present invention permits the counter network 11 to be tested without sequencing the registers and associated combinational logic through the entire network cycle. By controlling the state of S0 and S1, the test pattern input from the SI terminal can be input to multiplexer 23, and serially communicated through the remaining multiplexers and registers independent of the rate at which the terminal count signal is generated.
In the presently preferred embodiment a test pattern may be communicated from the serial input port (SI) to the test input port (I2) of multiplexer 31. When S0 and S1 are at appropriate levels each of the multiplexers 23, 25, 27, 29 and 31 will operate to output the signal present on the I2 input port of each associated multiplexer. That signal is then communicated to the D input port of the associated register. The signal is then communicated to the Q output port of that register and is, in turn, communicated to the I2 input port of another multiplexer. Thus, the output of register 21 is communicated to the I2 port of register 23. That signal is then communicated to the output of register 13 and then to the I2 input port register 25. The same signal is communicated to register 15 and then to the I2 input port of multiplexer 27. The output of register 17 is similarly communicated to the I2 input port of multiplexer 29. The output of multiplexer 29 is communicated to register 19 from which a serial output of the test pattern is discharged from terminal Q(1). Thus, the test pattern input to network 11 at terminal SI is serially communicated through each of the multiplexers and registers and is ultimately output from terminal Q(1). As noted above the rate at which the input test pattern is communicated through the multiplexers and registers is independent of the operation of the counter enabling circuitry 33, 35, 37, and 39. Accordingly, all multiplexers and registers may be tested in a convenient and expeditious manner, independent of any interconnected combinational logic or the rate at which the terminal count (TC) signal is generated, i.e. the network cycle time.
As shown at FIG. 1 test pattern outputs may also be obtained at terminals Q(2), Q(3), Q(4), and TC. Thus, the operation of each multiplexer and register pair may be independently checked. It should be noted, however, that failures may be resolved to a specific register using the serial output by shifting in predetermined data patterns, operating a count mode, shifting data through the network, and comparing the output of expected levels.
In addition to communicating the output of each register to the I2 input port of an unassociated multiplexer, the output of each register is also communicated to the I1 input port of the associated multiplexer. Upon the generation of appropriate S0 and S1 control signals (see Tables II, III and IV) each multiplexer is operative to communicate the signal appearing on the I1 input port to the associated register. Thus, the output of that register is maintained at its current level until the S0 or S1 signals change, or until the register is reset.
Counter network 11 may also operate to parallel load a plurality of data bits. In the presently preferred embodiment a plurality of data bits may be communicated to counter network 11 on the P terminal and communicated to multiplexers 23, 25, 27, and 29 at the I3 input ports of those multiplexers. Upon the appearance of appropriate PEN, SELECT and HOLD signal levels, the information appearing at the I3 input ports is communicated to the associated registers and ultimately output from the registers at the Q(1), Q(2), Q(3) and Q(4) terminals to external circuitry. Counter enabling circuitry 33, 35, 37, and 39, terminal count output enabling circuitry 41 register 21 and multiplexer 31 need not be used when the network 11 is disposed in the parallel load mode. When terminal count is parallel loaded into registers 13, 15, 17 and 19, a terminal count output signal is generated by register 21 in response to the same clock pulse used to parallel load the registers.
As mentioned above, network 11 may be used to facilitate checking the operation of external combinational logic connected to network 11. Where the output of some external combinational logic is communicated to the I3 input ports of the multiplexers for parallel loading, network 11 may be operated to input a limited amount of data from the external combinational logic, and then operated in a test mode to serially output the data trapped in the registers. Thus, the output of the external combinational logic can be held and serially output for comparison against expected levels. The operation of the external combinational logic may therefore be tested vis-a-vis the counter testing circuitry of network 11.
If desired, a plurality of counter networks 11 may be cascaded e.g., to facilitate higher order counts. In such a cascaded network the complementary terminal count signal (TCN) from the first stage serves as the complementary terminal count prior signal (TCPN) to the second stage. Similarly, the complementary look ahead output signal (LA OUT N) from the first stage serves as the complementary look ahead input signal (LA IN N) to the succeeding stage.
Similarly, the serial output signal from the Q(1) terminal of the first stage may be used as the serial input signal (SI) to the following stage. Thus, any number of stages may be cascaded without the need for external logic.
As previously discussed, various modifications, additions and substitutions may be effected to implement the structure and function of the component portions without departing from the spirit and scope of the invention. For example, other counter enabling circuitry and various alternate multiplexing schemes may be utilized to implement various counting schemes or interface various combinational logic circuitry within the scope of the invention. Additionally, it is clearly anticipated that the present invention may have application in various areas beyond those specifically addressed.