Background of the Invention
In a digital computer system, several identical digital signal generators are usually used for generating synchronous and identical signals; the conventional method is to use a clock source as a common input for all such signal generators (as shown in FIG. 1), and each of them is to be counted for generating a synchronous signal. However, each signal generator has its particular characteristics, i.e., when each signal generator starts to count, the time required to count might have more or less of a difference of about 1-3 clock signals; further, as soon as the frequency of the clock source is higher, such difference will also be greater. Moreover, when the voltage level of the clock is unstable, a non-synchronization might take place. Therefore, an automatic correction means has to be provided, otherwise, the stability of the whole system would be reduced considerably.
Summary of the Invention
This invention relates to a simple digital method for controlling digital signals to achieve synchronization. Such method is deemed a novel method in controlling the synchronous signals of a plurality of identical digital signal generators. The prime feature of the present invention is that all the synchronous signals generated through all signal generators will be compared with each other through a gate array logic circuit. In case of a non-synchronization taking place, the input clock from a faster signal generator will be disabled so as to achieve a synchronization again automatically.
Moreover, the prime object of the present invention is to provide a control method for the synchronous signals from a plurality of identical signal generators by comparing two synchronous signals which were generated by the signal generators. As soon as a non-synchronization is detected with a gate array logic circuit, the input clock of the faster signal generator will be disabled for a time so as to allow the system to return to a normal synchronous condition automatically.
Brief Description of the Drawings
FIG. 1 is a diagram, illustrating a conventional multi-signal generator.
FIG. 2 is a diagram, illustrating a digital method for controlling digital signals to achieve synchronization according to the present invention.
FIG. 3 is a gate array logic circuit according to the present invention.
FIG. 4 is a control flow chart for a control circuit in a gate array logic circuit according to the present invention.
FIG. 5 is a time-sequence diagram, showing a non-synchronous condition in an embodiment according to the present invention.
Detailed Description
Referring to FIG. 2, the present invention is illustrated with an embodiment of a digital method for controlling digital signals to achieve synchronization (using three digital signal generators as an example); the output signals of the three identical signal generators (SG1, SG2, and SG3) 11, 12 and 13 are used as the input signals of a gate array logic circuit 20; another clock source 30 is used as the time base of sampling for the gate array logic circuit 20 to detect non-synchronization. In the event of a non-synchronization taking place, the gate array logic circuit 20 will have the gate output of the faster signal generators set at "1" (when the system synchronization is normal, no action to disable is taken, and all gates are set at "0"), which will pass through an OR-gate 10 and applied to the input clock signal of a signal as a temporary shut down generator.
In a gate array logic circuit (as shown in FIG. 3), a clock source 30 is used as a positive-edged-triggering sequential circuit. The output of every signal generator is used as an input to match each other. For example, the output signal S1 110 of the signal generator SG1 11 (as shown in FIG. 2) is used as an input 211 of the comparison terminal of the control circuit gate 1 210, while the output signal S2 of another signal generator SG2 12 (as shown in FIG. 2) is used as the reference terminal input 212, the control circuit gate 1, shown as numeral 210. When the comparison terminal input 211 is "1", and the reference terminal input 212 is "0", a non-synchronization has taken place. When this occurs, Signal Generator SG 1, shown as numeral 11, is faster, and the gate 1, shown as numeral 210, will set the output gate of gate 1, shown as numeral 21, at "1" so as to disable the SG1 11 until the reference terminal input 212 turns to "1", and then the the output gate 21 of gate 1 will be set at "0" again.
FIG. 4 is a flow chart, showing the control procedures in a control circuit of the gate array logic circuit:
(A). Waiting procedure: If the comparison terminal is "1" and the reference terminal is "0" the control will enter the gate procedure; otherwise, the waiting procedure will remain unchanged.
(B). Gate procedure: The corresponding gate of the comparison terminal is set in "1" state; if the reference terminal is "1", the reset procedure will start; otherwise, the gate procedure will continue without change.
(C). Reset procedure: The corresponding gate of the comparison terminal is set in "0" state; if the reference terminal is "0", the waiting procedure will appear again; otherwise, the reset procedure will continue without change.
For further description on the operation theory of the gate array logic circuit according to the present invention, refer to FIG. 5, which is a time-sequence diagram of an embodiment according to the present invention when a non-synchronization takes place. At the moment of t1 the gate array logic circuit has sampled and detected a non-synchronization (S1=1, and S2=0), and the gate 1 output 21 is set at "1". In that case, the clock signal of the input SG1 11 will be disabled, and the count will discontinue; then, S2 is changed to "1" at the moment of t2, and the gate 1 output 21 is reset at "0" by the gate array logic circuit to count again; and at the moment of t5, S1 and S2 are back to "0" then, the waiting procedure starts again to perform sampling detection. The reason why the gate logic circuit can restore a synchronization is that the gate 1 output 21 can disable the SG1 11 to count in case of a non-synchronization taking place during the period of S1 leading S2 (t2-t1) so as to have two (S1 and S2) signals restored to a synchronous state.