Signal generator

Abstract: A signal generator comprising: means to generate a clock signal; a Johnson counter (20) including a plurality of flip-flops (FF1, FF2) having CLOCK inputs to which the clock signal is inputted; a logic gate (21) to which the clock signal and Q outputs of the flip-flops are inputted, the logic gate (21) being constructed such that the clock signal is passed therethrough each time 2n clock pulses of the clock signal occur and that the logic gate (21) outputs its output as a first signal, n representing the number of the flip-flops of the Johnson counter (20); and delay means (22) for delaying the clock signal by a time corresponding to an input-output delayed time of the logic gate (21) and for outputting the delayed clock signal as a second signal.

Description: FIELD OF THE INVENTION The present invention relates in general to a signal generator, and in particular to such a generator which is used in a data multiplexer or data demultiplexer. DESCRIPTION OF THE PRIOR ART By way of example, a conventional 4-bit data demultiplexer 1 is shown in Fig. 11. The demultiplexer 1 is provided with a serial/parallel conversion circuit 2 comprising four flip-flops FF100 through FF103 connected in series, and a data latch 3 comprising four flip-flops FF200 through FF203. The Q outputs of the flip-flops FF100 through FF103 of the serial/parallel conversion circuit 2 are connected to the D inputs of the flip-flops FF200 through FF203 of the latch 3, respectively. The demultiplexer 1 is further provided with a signal generator 6 comprising a delay circuit 4 and a Johnson counter 5. The delay circuit 4 has a plurality of gates G1 through G3 connected in series and produces a delayed clock signal DCLK which is delayed by a predetermined delay time (td′) proportional to the number of gate stages. The Johnson counter 5 has a plurality of flip-flops (in this example, two FF1 and FF2), and the Q output of the last stage of the flip-flops is connected to the D input of the first stage. The Johnson counter 5 produces a data load pulse signal DLP at a suitable timing after data have been stored in all the flip-flops FF100 through FF103 of the serial/parallel conversion circuit 2. That is, the serial/parallel conversion circuit 2 loads serial data therein according to the delayed clock signal DCLK produced by the delay circuit 4, and after the data have been stored in all the flip-flops of the circuit 2, the data latch 3 holds the data of the serial/parallel conversion circuit 2 and outputs output data OUT1 through OUT4 according to the data load pulse signal DLP. The above described conventional data multiplexer 1 is constructed such that the Q output of the first stage (FF1) of the Johnson counter 5 goes high at the rising edge of the clock signal CLK after the Q output of the last stage (FF2) has gone high. This low-to-high transition of the Q output of the flip-flop FF1 is used as the data load pulse DLP. Therefore, during the time from the rising edge of the clock signal CLK to the rising edge of the Q output, that is, the time until the data load pulse DLP is obtained, there is a delay of time (hereinafter referred to as td′) corresponding to the input-output delayed time (about 200 psec.) of the flip-flop FF1. Consequently, it is necessary that the delayed clock signal DCLK is delayed by td′. This delay td′ of the delayed clock signal DCLK is always necessary in order to match the load timing of the serial data to the serial/parallel conversion circuit 2 with the latch timing to data latch 3. If the clock signal CLK is used instead of the delayed clock signal DCLK, the latch timing to the data latch 3 will be delayed by td′ with respect to the load timing of the serial data to the serial/parallel conversion circuit 2. As a result, the serial/parallel conversion circuit 2 is undesirably updated during the delay td′. However, delaying the delayed clock signal by td′ causes the serial data loading to be delayed by td′. This presents a problem that the output data from the multiplexer are delayed by td′. The flip-flops of the Johnson counter 5 are of the master-slave type as shown in Fig. 12. The flip flop of this kind contains a master flip-flop part (SEC M ), a slave flip-flop part (SEC S ), and a clock input part (SEC C ). After the D input has been loaded in the master flip-flop part (SEC M ), the data in the SEC M are outputted to the slave flip-flop part (SEC S ) in accordance with the clock signal from the clock input part (SEC C ). The input-output delayed time of the master-slave flip-flop is determined mainly by the propagation speed of the clock signal, that is, the propagation speed from the SEC C part to the SEC M part, SEC S part, and is approximately a delay of three gate stages (td′= about 200 psec.). Fig. 13 shows a conventional multiplexer 10 provided with a data latch 11, a parallel/serial conversion circuit 12, and a data latch 13. The multiplexer 10 is further provided with a signal generator 16 comprising a delay circuit 14 and Johnson counter 15. The delay circuit 14 has a plurality of gates G1 through G3 connected in series and produces a delayed clock signal DCLK which is delayed by a predetermined delay time (td′) proportional to the number of gate stages. The Johnson counter 15 produces a data load pulse signal DLP which is inputted to the data latch 11. As in the case of the demultiplexer of Fig. 11, the conventional multiplexer 10 has the same problem that the multiplexer output is delayed, since the signal DLP is produced through the flip-flop FF6 of the Johnson counter 15. The input-output delayed time of the flip-flop (FF6) of the Johnson counter 15 is approximately 200 psec. It is therefore a main object of the present invention to provide an improved signal generator which can generate a first signal (DLP) and a second signal (DCLK) whose delayed amount are small. It is another object of the present invention to provide an improved data multiplexer and demultiplexer which can be operated at high speeds with the aid of the signals DLP and DCLK. SUMMARY OF THE INVENTION In accordance with one important aspect of the present invention, there is provided a signal generator comprising: means to generate a clock signal; a Johnson counter including a plurality of flip-flops having CLOCK inputs to which the clock signal is inputted; a logic gate to which the clock signal and Q outputs of the flip-flops are inputted, the logic gate being constructed such that the clock signal is passed therethrough each time 2n clock pulses of the clock signal occur and that the logic gate outputs its output as a first signal, n representing the number of the flip-flops of the Johnson counter; and delay means for delaying the clock signal by a time corresponding to an input-output delayed time of the logic gate and for outputting the delayed clock signal as a second signal. In accordance with another important aspect of the present invention, there is provided a data demultiplexer comprising: means to output serial data; means to generate a clock signal; a Johnson counter including a plurality of flip-flops having CLOCK inputs to which the clock signal is inputted; a logic gate to which the clock signal and Q outputs of the flip-flops are inputted, the logic gate being constructed such that the clock signal is passed therethrough each time 2n clock pulses of the clock signal occur and that the logic gate outputs its output as a first signal, n representing the number of the flip-flops of the Johnson counter; delay means for delaying the clock signal by a time corresponding to an input-output delayed time of the logic gate and for outputting the delayed clock signal as a second signal; conversion means for converting serial data to parallel data in accordance with the second signal of the delay means; and latch means for holding and outputting the parallel data in accordance with the first signal of the logic gate. In accordance with yet another important aspect of the present invention, there is provided a data multiplexer comprising: means to output parallel data; means to generate a clock signal; a Johnson counter including a plurality of flip-flops having CLOCK inputs to which the clock signal is inputted; a logic gate to which the clock signal and Q outputs of the flip-flops are inputted, the logic gate being constructed such that the clock signal is passed therethrough each time 2n clock pulses of the clock signal occur and that the logic gate outputs its output as a first signal, n representing the number of the flip-flops of the Johnson counter; delay means for delaying the clock signal by a time corresponding to an input-output delayed time of the logic gate and for outputting the delayed clock signal as a second signal; conversion means for converting parallel data to serial data in accordance with the first signal of the logic means; and latch means for holding and outputting the serial data in accordance with the second signal of the delay gate. BRIEF DESCRIPTION OF THE DRAWINGS The above and other objects and advantages will become apparent from the following detailed description when read in conjunction with the accompanying drawings wherein: FIG. 1 is a schematic view showing the structure of a demultiplexer in which a signal generator according to the present invention is used; FIG. 2 is a timing diagram showing how the demultiplexer is operated; FIG. 3A is a schematic view showing the structure of a multiplexer in which a signal generator according to the present invention is used; FIG. 3B is a timing diagram showing how the multiplexer of FIG. 3A is operated; FIG. 4 is a schematic view showing the structure of a first embodiment of the signal generator in accordance with the present invention; FIG. 5 is a timing diagram showing how the signal generator of FIG. 4 is operated; FIG. 6 is a schematic view showing the structure of a second embodiment of the signal generator in accordance with the present invention; FIG. 7 is a timing diagram showing how the signal generator of FIG. 6 is operated; FIG. 8 is a schematic view showing the structure of a third embodiment of the signal generator in accordance with the present invention; FIG. 9 schematically illustrates the structure of the logic gate of FIG. 8; FIG. 10 is a timing diagram showing how the signal generator of FIG. 8 is operated; FIG. 11 is a schematic view showing a conventional demultiplexer; FIG. 12 schematically illustrates the structure of the flip-flop of the Johnson counter of FIG. 11; and FIG. 13 is a schematic view showing a conventional multiplexer. DESCRIPTION OF THE PREFERRED EMBODIMENTS Referring to Fig. 1, there is shown a 4-bit data demultiplexer in which a signal generator according to the present invention is used. The parts identical to corresponding parts of the conventional demultiplexer of Fig. 12 will be designated by the same reference numerals and characters. The demultiplexer is provided with a serial/parallel conversion circuit 2 comprising four flip-flops FF100 through FF103 connected in series, and a data latch 3 comprising four flip-flops FF200 through FF203. The Q outputs of the flip-flops FF100 through FF103 of the serial/parallel conversion circuit 2 are connected to the D inputs of the flip-flops FF200 through FF203 of the latch 3, respectively. Reference numeral 20 denotes a Johnson counter, which is provided with two flip-flops FF1 and FF2. The Johnson counter 20 is further provided with an OR gate 21 to which the Q outputs of the flip-flops FF1 and FF2 and a clock signal CLK are inputted. The flip-flops FF1 and FF2 of the Johnson counter 20 are identical in structure with the flip-flops of FF100 through FF103 of the serial/parallel conversion circuit 2. Reference numeral 22 denotes a delay circuit comprising a single gate. The delay circuit 22 produces a delayed clock signal DCLK that is delayed from the clock signal CLK by a delay time corresponding to the input-output delayed time (td) of the OR gate 21. The input-output delayed time of the OR gate 21 is approximately 100 picoseconds which is half the input-output delayed time (about 200 picoseconds) of the flip-flop FF1 of the Johnson counter. The operation of the data demultiplexer of Fig. 1 is shown in the timing diagram of Fig. 2. At the first rising edge of the delayed clock signal DCLK, data D01 will be present on the a point of Fig. 1. At the second rising edge of the clock signal DCLK, data D02 will be present on the a point, and the data D01 will be present on the b point. At the third rising edge of the clock signal DCLK, data D03 will be present on the a point, the data D02 will be present on the b point, and the data D01 will be present on the c point. At the fourth rising edge of the clock signal DCLK, data D04 will be present on the a point, the data D03 will be present on the b point, the data D02 will be present on the c point, and the data D01 will be present on the d point. As shown in Fig. 2, when the clock signal CLK rises at the fifth clock signal, and the Q outputs of the flip-flops FF1 and FF2 of the Johnson counter 20 are both low, the data load pulse signal DLP outputted from the OR gate 21 makes a low-to-high transition at the time delayed from the rising edge of the fifth clock pulse of the clock signal CLK by td. As a result, the data D04, D03, D02 and D01 on the D inputs of the flip-flops FF200, FF201, FF202, and FF203 are transferred to the Q outputs of the flip-flops FF200, FF201, FF202, and FF203. Therefore, since in the embodiment of Fig. 1 the OR gate 21 is provided to produce the data load pulse signal DLP, the delayed time (about 100 psec.) of the signal DLP can be reduced by the amount of two gate stages, as compared with the delayed time (about 200 psec.) of the signal DLP produced by the flip-flop FF1 of the conventional Johnson counter 5 of Fig. 11. In addition, this reduction in the delayed time of the signal DPL can reduce the delayed time of the signal DCLK. Consequently, the multiplexer using the signals DCLK and DPL can be operated at high speeds. Fig. 3A schematically illustrates a multiplexer in which a signal generator according to the present invention is used. The parts identical to corresponding parts of the conventional multiplexer of Fig. 13 will be designated by the same reference numerals and characters. The multiplexer is provided with a data latch 11, a parallel/serial conversion circuit 12, a data latch 13, a Johnson counter 30, and a delay circuit 32 for producing a delayed clock signal DCLK. The Johnson counter 30 comprises two flip-flops FF6 and FF7 and an OR gate 31. To the OR gate 31 are inputted a clock signal CLK and the Q outputs of the flip-flops FF6 and FF7. This embodiment of Fig. 3 differs from the conventional multiplexer of Fig. 13 in that the OR gate 31 is provided to produce a data load pulse signal DLP. The delayed time (about 100 psec.) of the signal DLP can be reduced by the amount of two gate stages, as compared with the delayed time (about 200 psec.) of the signal DLP produced by the flip-flop FF6 of the conventional Johnson counter 15 of Fig. 13. Therefore, the multiplexer according to the present invention can be operated at high speeds, as in the case of Fig. 1. As shown in Fig. 3B, at the first rising edge of the data load pulse signal DLP, parallel data D01, D02, D03 and D04 will be present on the c, d, e and f points of Fig. 3A, respectively. At the rising and falling edges of the clock signals (g and h points of Fig. 3A) inputted to the data select inputs S1 and S2 of the parallel/serial conversion circuit 12, the parallel data D01, D02, D03 and D04 on the c, d, e and f points is converted to serial data D01, D02, D03 and D04 that are present on the i point. The delay of the circuit 12 shown in Fig. 3B is caused by the structural elements constituting the circuit 12. The clock signal DCLK on the j point makes low-to-high transitions at the intermediate points between data edges, as shown in the i and j points of Fig. 3B, so that the noises resulting from the switching of the circuit 12 can be eliminated. The clock signal DCLK is inputted to the C input of thc flip-flop FF5 of the data latch 13, which outputs the serial data D01, D02, D03 and D04 on the i point at the rising edges of the clock signal DCLK. That is, the flip-flop FF5 is provided to eliminate the noises described above. Fig. 4 shows a first embodiment of the signal generator according to the present invention. The signal generator comprises a Johnson counter 40 and an OR gate 41. The Johnson counter 40 has four flip-flops FF1 through FF4. The Q output of one flip-flop is simply connected to the D input of the next, and the Q output of the rightmost stage of the Johnson counter 40 is connected to the D input of the leftmost stage. An input clock signal CLK is connected in parallel to all the flip-flop C inputs. A reset signal RST is also connected in parallel to all the flip-flop R inputs. The clock signal CLK and the Q outputs of the flip-flops are inputted to a logic gate 41, the output (OR) of which is used a data load pulse signal DLP (first signal). Fig. 5 shows the timing diagram of the Fig. 4 embodiment showing how the data load pulse signal DLP (first signal) is obtained. On the eighth clock pulse C8 of the clock signal CLK, the Q output of the flip-flop FF4 of the last stage goes from high level to low level, and all the outputs Q1 through Q4 go low. Therefore, the output OR of the logic gate 41 rises at the time delayed from the rising edge of the ninth clock pulse C9 by td (delayed time of one gate stage). This OR change is used as the edge of the data load pulse signal DLP. Thus, in the embodiment of Fig. 4, the data load pulse signal can be obtained at the time delayed from the rising edge of the ninth clock pulse C9 by td. Since td is earlier than td′ in the prior art of Fig. 13 by the amount of two gate stages, the delayed amount of the data load pulse signal DLP can be reduced. Figs. 6 and 7 illustrate a second embodiment of the signal generator in accordance with the present invention. In this embodiment, the Q output of the FF1 is connected to the D input of the FF2, the Q output of FF2 is connected to the D input of the FF3, the Q output of the FF3 is connected to the D input of the FF4, and the Q output of the FF4 is connected to the D input of FF1. That is to say, the inverted output (Q) of the flip-flop in an odd number is connected to the D input of the next. As shown in the timing diagram of Fig. 7, the output of the OR gate makes a low-to-high transition at the time delayed from the rising edge of the ninth clock C9 by td, after all the Q outputs of the flip-flops FF1 through FF4 have been low. This low-to high transition is used as a data load pulse edge. Therefore, the same effect as the embodiment of Fig. 5 will be obtained. Fig. 8 illustrates a third embodiment of the signal generator in accordance with the present invention. In Fig. 8, reference numeral 50 denotes a Johnson counter comprising n flip-flops FF1 through FFn. The Q output of one flip-flop is simply connected to the D input of the next, and the Q output of the rightmost stage of the Johnson counter 50 is connected to the D input of the leftmost stage. An input clock signal CLK is connected in parallel to all the flip-flop C inputs. A reset signal RST is also connected in parallel to all the flip-flop R inputs. The clock signal CLK and the Q outputs of the flip-flops are inputted to a logic gate 51, the output (OR, NOR) of which is used a data load pulse signal DLP (first signal). Fig. 9 schematically illustrates the circuit structure of the logic gate 51 of Fig. 8. The logic gate 51 comprises a differential part 51a, and an output part 51b having an OR side output transistor T OR and a NOR side output transistor T NOR . The differential part 51a has input transistors T1 through Tn+1 corresponding in number to inputs D1 through Dn+1, a reference transistor T R , and a constant-current transistor Tc. The clock signal CLK is inputted to the input D1 of the input transistor T1, and the outputs Q1 through Qn of the Johnson counter 50 of Fig. 8 are inputted to the inputs D2 through Dn+1. The OR gate 51 has an input-output delayed time of td (generally, td = one gate stage). Fig. 10 shows the timing diagram of the Fig. 8 embodiment showing how the outputs Q1 through Qn vary with the clock signal CLK. At the 2nth clock pulse C2n of the clock signal CLK, the Qn output of the flip-flop FFn of the last stage goes from high level to low level, and all the outputs Q1 through Qn go low. Therefore, the output OR or NOR of the logic gate 51 rises or falls at the time delayed from the rising edge of the (2n + 1)th clock pulse C2n+1 by td (delayed time of one gate stage). This OR or NOR change is used as the edge of the data load pulse signal DLP. Thus, in the embodiment of Fig. 8, the data load pulse signal can be obtained at the time delayed from the rising edge of the (2n + 1) clock pulse C2n+1 by td. Since td is earlier than td′ in the prior art of Fig. 13 by the amount of two gate stages, the delayed amount of the data load pulse signal DLP can be reduced.

Claims: A signal generator comprising: means to generate a clock signal (CLK); a Johnson counter (20) including a plurality of flip-flops (FF1, FF2 having CLOCK inputs to which said clock signal is inputted, characterized by a logic gate (21) to which said clock signal and the Q outputs of said flip-flops are inputted, the logic gate (21) being constructed such that said clock signal is passed therethrough each time 2n clock pulses of said clock signal occur and that the logic gate (21) outputs a first signal (DLP), n representing the number of said flip-flops of said Johnson counter; and delay means (22) for delaying said clock signal by a time corresponding to an input-output delayed time of said logic gate and for outputting the delayed clock signal (DCLK) as a second signal. A signal generator as set forth in claim 1, wherein said logic gate (21) comprises an OR gate. A signal generator as set forth in claim 1 or 2, wherein said first signal (DLP) is outputted when said clock signal is high and all the Q outputs of said flip-flops are low. A data demultiplexer comprising: means to output serial data; means to generate a clock signal; a Johnson counter (20) including a plurality of flip-flops (FF1, FF2) having CLOCK inputs to which said clock signal is inputted, characterized by a logic gate (21) to which said clock signal and the Q outputs of said flip-flops are inputted, the logic gate being constructed such that said clock signal is passed therethrough each time 2n clock pulses of said clock signal occur and that the logic gate outputs a first signal (DLP), n representing the number of said flip-flops of said Johnson counter: delay means (22) for delaying said clock signal by a time corresponding to an input-output delayed time of said logic gate and for outputting the delayed clock signal (DCLK) as a second signal; conversion means (2) for converting said serial data to parallel data in accordance with said second signal (DCLK) of said delay means; and latch means (3) for holding and outputting said parallel data in accordance with said first signal (DLP) of said logic gate. A data demultiplexer as set forth in claim 4, wherein said logic gate (21) comprises an OR gate. A data demultiplexer as set forth in claim 4 or 5, wherein said first signal (DLP) is outputted when said clock signal is high and all the Q outputs of said flip-flops are low. A data demultiplexer as set forth in anyone of claims 4 to 6, wherein said conversion means (2) comprises a plurality of flip-flops (FF100, FF101, ...) connected in series for sequentially receiving said serial data, and said latch means (3) comprises a plurality of flip-flops (FF200, FF201, ...) corresponding in number to said flip-flops of said conversion means (2), the Q outputs of said flip-flops of said conversion means (2) being connected to D inputs of said flip-flops of said latch means (3), respectively. A data demultiplexer as set forth in claim 7, wherein said plurality of flip-flops of said conversion means (2) are identical in structure with said plurality of flip-flops of said Johnson counter (20). A data multiplexer comprising: means to output parallel data; means to generate a clock signal (CLK); a Johnson counter (30) including a plurality of flip-flops (FF6, FF7) having CLOCK inputs to which said clock signal is inputted, characterized by a logic gate (31) to which said clock signal and the Q outputs of said flip-flops are inputted, the logic gate (31) being constructed such that said clock signal is passed therethrough each time 2n clock pulses of said clock signal occur and that the logic gate outputs a first signal (DLP), n representing the number of said flip-flops of said Johnson counter (30); delay means (32) for delaying said clock signal by a time corresponding to an input-output delayed time of said logic gate and for outputting the delayed clock signal (DCLK) as a second signal; conversion means (11, 12) for converting said parallel data to serial data in accordance with said first signal (DLP) of said logic means (31); and latch means (13) for holding and outputting said serial data in accordance with said second signal (DCLK) of said delay gate (22). A data multiplexer as set forth in claim 9, wherein said logic gate (31) comprises an OR gate. A data multiplexer as set forth in claim 9 or 10, wherein said first signal (DLP) is outputted when said clock signal is high and all the Q outputs of said flip-flops are low. A data multiplexer as set forth in anyone of claims 9 to 11, wherein said conversion means comprises a multiplexer (12) having a Q output, and said latch means (13) comprises a flip-flop (FF5) whose D input is connected to said Q output of said multiplexer (12).

Inventors: EMORI SHINJI, TAMAMURA MASAYA, EMORI, SHINJI, TAMAMURA, MASAYA
Applicants: FUJITSU LTD, FUJITSU LIMITED
Application year: 1990
Main classification: H03M9
IPC codes: H03M9, H04J3