SYNCHRONIZING CIRCUIT

Abstract: A pulse signal transfer control circuit (TC) is located between an input pulse detecting circuit (11, 12, 13, 14) for detecting the arrival of an externally applied input pulse and outputting an pulse signal with a predetermined pulse width, and an R-S flip-flop (15). The transfer control circuit (TC) prohibits the pulse signal from being transferred to the R-S flip-flop (15) during a period in which the R-S flip-flop (15) is set, a period of generation of a first internal clock signal, and a period of generation of a second internal clock signal, and allows the pulse signal to be transferred to the first R-S flip-flop (15) during period in which the first and second clock signals are not generated and the period in which the first R-S flip-flop (15) is reset.

Description: This invention relates to a synchronizing circuit for synchronizing an input pulse, which is asynchronously input from outside, with an internal clock signal. A synchronizing circuit is generally used as an input circuit in a device (such as pulse transmission circuits, digital control circuits, and computers) in which signal processing progresses under the control of a clock pulse signal. A typical example of this type of known synchronizing circuit is a device which employs R-S flip-flop. In this circuit, the R-S flip-flop (FF) is set by arrival of input pulses from exterior, and the logical "1" signal output from the set FF is supplied to a first input terminal of an AND gate. The second input of the AND gate is coupled to receive the clock pulse signal. When the "1" signal is supplied to the AND gate, the AND gate permits the clock pulse signal to be generated as an output signal of the synchronizing circuit. At this time, the R-S FF is reset by the output signal, and is returned to its original state. In the synchronizing circuit thus arranged, the R-S FF is set by the randomly arrival input pulse, and is reset by the clock pulse generated at a predetermined timing. Jitter, for example, frequently gives rise to a problematic situation wherein the input pulse overlaps with or appears close in time to the clock pulse. In this situation, the FF operation becomes instable. This may cause the synchronizing circuit to operate erroneously. For example, when the input pulse arrives during a period in which the clock pulse in raised, the set signal is pulled into -and cancelled by- the reset signal. In the case where the set signal, i.e., the input pulse signal falls after the reset signal, i.e., the clock pulse signal falls, the R-S FF is set at the time the reset signal becomes "0", thus ensuring that the synchronizing circuit operates properly. When the pulse width of the input pulse is wide, the R-S FF is more stable. To prevent the cancellation of the set signal, the conventional synchronizing circuit is provided with an input pulse detecting circuit for changing the pulse width of the input pulse signal into a relatively long pulse width. The output signal from this detector, in place of the external input pulse, is input to the R-S FF. When a pulse hoving an excessively wide pulse width is generated from the detector, the R-S FF is undesirably set a plural number of time due to the pulse, thereby providing unnecessary pulses. This occurs in the following case. The reset signal is generated during a period that set signal is input to the R-S FF, and the set signal inputting progresses after the reset signal has fallen. In other words, after the R-S FF is reset by the reset signal, it is set again by the set signal. It is for this reason that the pulse width of the pulse signal from the detector must be set to the maximum value of those values preventing the generation of a plurality of output pulses by a single set signal. The detector generally contains a delay circuit. The pulse width of the pulse from the detector can be adjusted by appropriately selecting the delay time of the delay circuit. The usual delay circuit is composed of a CR time constant circuit consisting of resistive and capacitive elements, for example, or cascade connected inverters consisting of transistors, for example. Those elements inevitably suffer from variations of their constants arising from the manufacturing stage or due to ambient temperature variation. Therefore, it is very difficult to obtain an exact delay time by the delay circuit. Therefore, in designing the delay circuit, the variation of the delay time must be considered. This makes it difficult to cause the detector to output the pulses with an desired and exact pulse width. This variation problem may be solved by using a compensating circuit for compensating for the delay time variation. This approach, however, requires a large pattern area of the semiconductor chip. This is problematic when it is assembled into the LSI chip. Prior art document ELECTRONIC ENGINEERING, vol. 51, No. 627, September 1979, pages 33 - 35; S. TOMEK, "The synchroniser with minimum delay", discloses a synchronising circuit for synchronising an asynchronous input pulse signal externally applied, with system clock pulses. This circuit comprises two gates forming a first bistable circuit, first latch means for latching the output signal from the first bistable circuit in synchronism with a first internal clock pulse, and second latch means for latching the output signal of said first bistable circuit, in synchronism with a second internal clock pulse, which is different in phase from said first internal clock signal (CP1). Further gates and an inverter form a reset signal generator which responds to the output signal from one of said first and second latch means which executed the latching operation, and supplies a reset signal to the first bistable circuit during a period of generation of the clock signal corresponding to the latch means which did not execute the latching operation. Output means output the output signal from the reset signal generator. It is an object of this invention to provide a synchronizing circuit which can output the input pulse thereto, while exactly synchronized with the clock pulse even if the input pulse overlaps with or appears close in time to the clock pulse due to jitter, for example. To solve this object the present invention provides a synchronizing circuit as stated in claim 1. The synchronizing circuit thus arranged can effectively prevent the signal to set the first bistable circuit from overlapping with the signal to reset that bistable circuit. Further, the pulse width of the signal to set the first bistable circuit is determined by a phase difference between the first and second internal clock signals. This feature eliminates the adverse effect on the pulse width by the temperature variation, ensuring the stable operation. This invention can be more fully understood from the following detailed description when taken in conjunction with the accompanying drawints, in which: Fig. 1 shows a circuit diagram of a synchronizing circuit according to a preferred embodiment of this invention; and Fig. 2 shows a timing chart useful in explaining the operation of the synchronizing circuit of Fig. 1. A preferred embodiment of a synchronizing circuit according to this invention will be described referring to Figs. 1 and 2. Input pulse signal Sin which comes from external in as asynchronous manner, is input to a first input terminal of NOR gate 14 via inverters 11 and 12 and delay circuit 13. The other input terminal of this gate 14 is coupled for reception with the output signal from inverter 11. The combination of inverters 11 and 12, delay circuit 13 and NOR gate 14 detects the leading edge of the input pulse signal. NOR gate 14 produces a signal S1 with a pulse width, which corresponds to the delay time by delay circuit 13. The output signal S1 of NOR gate 14 is supplied as a set signal to NOR gate 152 in flip-flop 15, which is composed of NOR gate 151 and NOR gate 152, via a transfer control circuit TC. Transfer control circuit TC is composed of OR gate 30, D type flip-flop 31, OR gate 32, R-S flip-flop 33 and D type flip-flop (FF) 34, and NOR gate 35. In the transfer circuit TC, the output signal S13 of OR gate 30, which is supplied with internal clocks 1 and 2 with different phases, is supplied to the clock input terminals CK of D-FFs 31 and 34, and further to one of the input terminals of OR gate 32. The data input terminal D of D-FF 31 is supplied with the output signal S2 from NOR gate 151. The output terminal Q of D-FF 31 supplies the signal S14 to the second input terminals of OR gate 32. The output signal from OR gate 32 is supplied to the first input terminal of NOR gate 35. The clock signal 1 has preferably a 1/4 period of generation of "1" level, and a 3/4 period of generation of "0" level (nongeneration period of signal). Similarly, the clock signal 2 has preferably a 1/4 period of generation of "1" level, and a 3/4 period of generation of"0" level (nongeneration period of signal), and has the same frequency as that of the signal 1. Those clock signal 1 and 2 have a phase difference of 1/2 period. See Fig. 2. The signal S1 from NOR gate 14 is applied as a set signal to the first input terminal of NOR gate 331 in R-S FF 33 made up of NOR gates 331 and 332. NOR gate 332 outputs signal S16. This signal S16 is supplied to the data input terminal D of D-FF 34. The inverted output terminal Q provides signal S17 to the second input terminal of NOR gate 35. The signal S18 output from NOR gate 35 is supplied as a reset signal to the NOR gate 332 of R-S FF 33, and as a set signal to NOR gate 152 of R-S FF 15. When the output signal of NOR gate 151 is set to "1" level by that set signal, its output signal S2 is supplied to the data input terminal D of each of D-FFs 16 and 17. The clock signal 1 is supplied to the clock input terminal CK of D-FF 16, and the clock signal 2 is supplied to the clock input terminal CK of D-FF 17. Accordingly, when the leading edge of output signal S2 is within the trailing edges of clock signal 1 to that of clock signal 2, D-type FF 17 is set, and its inverted output terminal Q provides the signal S4 in "0" level. At this time, the output signal S3 from the inverted output terminal Q of D-FF 16 remains "1" in level. The output signal S3 is input to the second input terminal of NOR gate 18 whose first input terminal is coupled for reception with the inverted clock signal 2 . The output signal S5 from NOR gate 18 is supplied to the input terminal of NOR gate 151, as a reset signal for R-S FF 15. The same is also applied as a result signal to R-S FF 19 made up of NOR gates 191 and 192. The output signal S4 is applied to the second input terminal of NOR gate 20 which is coupled at the first input terminal with the inverted clock signal 1 . The output signal S6 from NOR gate 20 is supplied to the input terminal of NOR gate 151, as a reset signal for R-S FF 15, and applied as a reset signal to the R-S FF 21 made up of NOR gate 211 and 212. With the above connection of the circuit, when the signal S2 rises during a period from the trailing edge of clock signal 1 to that of clock 2, the output signal S6 of NOR gate 20, which goes high ("1") at the timings of clock signal 1, resets the R-S FF 15. The output signal S7 from NOR gate 191 of R-S FF 19 is transferred to inverter 22 where it is inverted, and supplied to the first input terminal of NOR gate 24. The output signal S8 from NOR gate 211 of R-S FF 21 is supplied to the data input terminal D of D-FF 23, whose clock input terminal CK is coupled with clock signal 1. The output signal S10 from the inverted output terminal Q of this D-FF 23 is supplied to the second input terminal of NOR gate 24. The output signal S11 from NOR gate 24 is supplied to the data input terminal D-FF 25, which is connected at the clock input terminal with clock signal 2. The output signal S12 form the output terminal S12 of D-FF 25 is supplied to the second input terminal of NOR gate 26, which is coupled at the first input terminal with the inverted clock signal 1, with it is output as output pulse Sout, which is synchronized with clock signal 1. The operation of the synchronizing circuit will be described referring to the timing chart of Fig. 2. When R-S FF 15 is in a set state, that is, the signal S2 is in "0" level, the signal S14 at the output terminal Q of D-FF 31 is always in "0" level, so that the signal S15 applied to the first input terminal of NOR gate 35, from OR gate 32 is the same as the signal S13 of OR gate 30. That is to say, the signal S15 is the logical sum of clock signals 1 and 2. Under this condition, if input pulse signal Sin is input to the synchronizing circuit, inverters 11 and 12, delay circuit 13, and NOR gate 14 cooperate to detect the leading edge of the input pulse signal Sin. And the NOR gate 14 outputs a signal S1 with a pulse width corresponding to the delay time of delay circuit 13. This signal S1 sets the R-S FF 33. As a result, the signal S16 which has been "1" in level, is transferred to the data input terminal D of D-FF 34. The output signal S17 from D-FF 34 is latched at "0" level at the leading edge of clock 1 or 2 (leading edge of clock 2 in Fig. 2). When the clock signals 1 and 2 are both "0" in level, the output signal of NOR gate 35, i.e., the signal S18, goes high ("1"), to set R-S FF 15. At the same time, R-S FF 33 is reset, and ready for the reception of the detect data of the next input pulse signal Sin. The timing of supplying the reset signal to R-S FF 15 is the leading edge of clock 1 or 2, as already mentioned. This implies that the detect data of input pulse Sin is transferred to R-S FF 15 at the trailing edge of the reset signal. When R-S FF 15 is set, that is, the output signal S2 of NOR gate 151 is in "1" state, the signal S14 from the output terminal Q of D-FF 31 is latched at the "1" level at the leading edge of clock 1 or 2. The output signal S15 sent to the first input terminal of NOR gate 35 from OR gate 32 goes "1" in level and the output signal S18 from NOR gate 35 goes "0". This operation indicates that when R-S FF 15 is set, the transfer of the detect data of the input pulse Sin is prohibited until R-S FF 15 is reset. In this way, the transfer control circuit TC decides if the data of detecting the leading edge of input pulse Sin is transferred to R-S FF 15 according to a logical state of the R-S FF 15. Therefore, it is possible to prevent the overlapping of the set and reset signals to R-S FF 15, and hence the erroneous operation of the synchronizing circuit. It is noted that the pulse width of the set signal to R-S 15 is determined by the phase difference between clocks 1 and 2, not the delay time of the delay circuit. Therefore, the pulse width of the set signal is free from the adverse influence by temperature. Additionally, the delay circuit shown in Fig. 1 is merely triggered by the R-S FF 33, so that the necessary delay time can be obtained by inverters, for example, not capacitors requiring a large chip area. The chip area for forming this delay circuit 13 can be saved. Further, if the delay time of delay circuit 13 varies due to variation of ambient temperature, this time delay variation does not bring about any problem.

Claims: A synchronizing circuit for synchronizing an asynchronous input pulse signal externally applied, with an internal clock signal, comprising: a first bistable circuit (15); first latch means (16) for latching the output signal from said first bistable circuit (15) in synchronism with a first internal clock signal; second latch means (17) for latching the output signal of said first bistable circuit (15), in synchronism with a second internal clock signal, which is different in phase from said first internal clock signal; reset signal generating means (18, 20) which responds to the output signal from one of said first and second latch means which executed the latching operation, and supplies a reset signal to said first bistable circuit (15) during a period of generation of the clock signal corresponding to the latch means which did not execute the latching operation; and output means (19, 21 to 26) for outputting the output signal from said reset signal generating means (18, 20), in synchronism with one of said first and second clock signals; characterized by further comprising input pulse detecting means (11, 12, 13, 14) for detecting the arrival of an externally applied input pulse signal and generating a pulse signal of a predetermined width; and pulse signal transfer control means (TC), which receives the pulse signal output from said detecting means (11 to 14), prohibits said pulse signal from being transferred to said first bistable circuit (15) during a period in which said first bistable circuit (15) is set, a period of generation of said first clock signal, and a period of generation of said second clock signal, and allows the pulse signal to be transferred to said first bistable circuit (15) during a period in which said first and second clock signals are not generated and said period that said first bistable circuit (15) is reset. A synchronizing circuit according to claim 1, characterized in that said pulse signal transfer control means (TC) includes a second bistable circuit (33) which is set by the pulse signal output from said detecting means (11 to 14), third latch means (34) for latching the output signal of said second bistable circuit (33), in synchronism with said first or second clock signal, a fourth latch means (31) for latching the output signal of said first bistable circuit (15), in synchronism with said first or second clock signal, and gate means (32, 35), wherein said gate means prohibits the output signal of said third latch means (34) from being transferred as a set signal to said first bistable circuit (15) during a period in which said fourth latch means (31) latches the output signal representing the set state of said first bistable circuit (15), a period of generation of said first clock signal, and a period of generation of said second clock signal, and allows the output signal from said third latch means (34) to be transferred as a set signal to said first bistable circuit (15) during a period in which said first and second clock signals are not generated and said period in which said fourth latch means (31) latches the output signal representing a reset state of said first bistable circuit (15). A synchronizing circuit according to claim 2, characterized in that said second bistable circuit is an R-S flip-flop. A synchronizing circuit according to claim 2, characterized in that said third latch means (34) is a D type flip-flop having a data input terminal which is coupled to receive the output signal from said second bistable circuit (33), and a clock input terminal which is coupled to receive the logical sum of said first and second clock signals. A synchronizing circuit according to claim 2, characterized in that said fourth latch means (31) is a D type flip-flop having a data input terminal which is coupled to receive the output signal from said first bistable circuit (15), and a clock input terminal which is coupled to receive the logical sum of said first and second clock signals. A synchronizing circuit according to claim 1, characterized in that said input pulse detecting means (11 to 14) includes a delay circuit (13) containing at least two inverters.

Inventors: HIRASAWA, MASATAKA PATENT DIVISION, OKUBO, YASUO PATENT DIVISION
Applicants: KABUSHIKI KAISHA TOSHIBA
Application year: 1987
Main classification: H03K5
IPC codes: H03K5, H04L7