JPH06188694A - Flip-flop circuit - Google Patents

Flip-flop circuit

Info

Publication number
JPH06188694A
JPH06188694A JP43A JP34231892A JPH06188694A JP H06188694 A JPH06188694 A JP H06188694A JP 43 A JP43 A JP 43A JP 34231892 A JP34231892 A JP 34231892A JP H06188694 A JPH06188694 A JP H06188694A
Authority
JP
Japan
Prior art keywords
circuit
signal
output
input
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP43A
Other languages
Japanese (ja)
Inventor
Takashi Suyama
崇 巣山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
JFE Steel Corp
Original Assignee
Kawasaki Steel Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kawasaki Steel Corp filed Critical Kawasaki Steel Corp
Priority to JP43A priority Critical patent/JPH06188694A/en
Publication of JPH06188694A publication Critical patent/JPH06188694A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain a general-purpose flip-flop circuit(FF) by devising the circuit so as to be operated by either rising and falling edge of a clock signal. CONSTITUTION:When an enable signal E is made to 1, an in phase signal P and an inverting signal inverse of P are made to an opposite value to that of the time when the enable signal E is made to 0, and a synchronizing signal generating circuit corresponds a rising change of a clock signal CK from 0 to 1 to a falling change of an in phase signal P from 1 to 0. That is, a DFF fetches data inputted to a terminal D at the trailing edge of the clock signal CK and outputs inverted input data to a terminal QN. The synchronizing signal generating circuit converts the clock signal CK by the control of the enable signal E into a negative lock signal CN and the general-purpose performance is improved by inputting data at the rising edge and outputting the data at the falling edge.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はクロック信号の変化点で
入力情報を取り込むフリップフロップ回路(FF)に関
するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a flip-flop circuit (FF) which takes in input information at a change point of a clock signal.

【0002】[0002]

【従来の技術】従来、この種のFFとして、例えば、ク
ロック信号の立上がりエッジを捕らえて情報を入力する
図3に示すDFF、並びにクロック信号の立下がりエッ
ジを捕らえて情報を入力する図4に示すDFFがある。
2. Description of the Related Art Conventionally, as this type of FF, for example, a DFF shown in FIG. 3 for capturing a rising edge of a clock signal and inputting information, and a DFF shown in FIG. 4 for capturing a falling edge of a clock signal and inputting information. There is a DFF shown.

【0003】これら各図における分図(a)はDFFの
論理を示す回路である。クロックドインバータ1、21
は、同相信号Pが0の時にD端子からデータを入力し、
同相信号Pが1の時には高インピーダンス状態になって
データを取り込まない。NOT回路2,3およびトラン
スファゲート4、並びにNOT回路22,23およびト
ランスファゲート24は、同相信号Pが1の時に順序回
路を構成してクロックドインバータ1,21からの入力
データを保持する。同期信号Pが0の時にはトランスフ
ァゲート4、24がオフ状態になるため、該入力データ
を反転して出力する。トランスファゲート5、25は同
相信号Pが1の時にNOT回路2、22からデータを取
り込み、NOT回路6、26へ出力する。NOT回路
6,7およびトランスファゲート8、並びにNOT回路
26,27およびトランスファゲート28は、同相信号
Pが0の時に順序回路を構成して入力データを保持す
る。また、同相信号Pが1の時にはNOT回路6、26
からのデータをNOT回路9、29を介してQ端子に出
力し、また、NOT回路7、27からのデータをNOT
回路10、30を介してQN端子に出力する。
The diagram (a) in each of these figures is a circuit showing the logic of the DFF. Clocked inverter 1, 21
Inputs data from the D terminal when the in-phase signal P is 0,
When the in-phase signal P is 1, a high impedance state is set and data is not captured. The NOT circuits 2 and 3 and the transfer gate 4, and the NOT circuits 22 and 23 and the transfer gate 24 form a sequential circuit when the in-phase signal P is 1, and hold the input data from the clocked inverters 1 and 21. When the synchronizing signal P is 0, the transfer gates 4 and 24 are turned off, so that the input data is inverted and output. The transfer gates 5 and 25 take in data from the NOT circuits 2 and 22 when the in-phase signal P is 1, and output the data to the NOT circuits 6 and 26. The NOT circuits 6 and 7 and the transfer gate 8 and the NOT circuits 26 and 27 and the transfer gate 28 form a sequential circuit when the in-phase signal P is 0 and hold the input data. Further, when the in-phase signal P is 1, the NOT circuits 6 and 26 are
The data from the NOT circuits 9 and 29 are output to the Q terminal, and the data from the NOT circuits 7 and 27 are NOT-outputted.
Output to the QN terminal via the circuits 10 and 30.

【0004】図3および図4の各分図(b)は上記各論
理回路に与えられる同期信号の生成回路を示している。
同期信号には、クロック信号と同じ状態変化をする同相
信号P、クロック信号と逆の状態変化をする逆相信号バ
ーPがある。図3に示す立上がりエッジで動作するDF
Fには、クロック信号CKがNOT回路11で反転され
た信号が逆相信号バーPとして出力され、さらにNOT
回路12で反転された信号が同相信号Pとして出力され
る。また、図4に示す立下がりエッジで動作するDFF
には、クロック信号CKを反転したネガティブクロック
信号CNがNOT回路31で反転された信号が同相信号
Pとして出力され、さらにNOT回路32で反転された
信号が逆相信号バーPとして出力される。従って、図3
に示すDFFにおいてはクロック信号CKが0から1に
立ち上がるタイミングに、図4に示すDFFにおいては
ネガティブクロック信号CNが1から0に立ち下がるタ
イミングに、D端子に入力されるデータがQ端子に出力
され、その反転したデータがQN端子に出力される。
Each of FIGS. 3 (b) and 3 (b) shows a circuit for generating a synchronization signal applied to each of the logic circuits.
The synchronization signal includes an in-phase signal P that changes the same state as the clock signal and a negative-phase signal bar P that changes the state opposite to the clock signal. DF operating on the rising edge shown in FIG.
A signal obtained by inverting the clock signal CK by the NOT circuit 11 is output to F as the anti-phase signal bar P, and NOT
The signal inverted by the circuit 12 is output as the in-phase signal P. In addition, the DFF operating at the falling edge shown in FIG.
, The negative clock signal CN obtained by inverting the clock signal CK is output as the in-phase signal P by the NOT circuit 31, and the signal inverted by the NOT circuit 32 is output as the anti-phase signal bar P. . Therefore, FIG.
The data input to the D terminal is output to the Q terminal at the timing when the clock signal CK rises from 0 to 1 in the DFF shown in FIG. 4 and the timing when the negative clock signal CN falls from 1 to 0 in the DFF shown in FIG. Then, the inverted data is output to the QN terminal.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記従
来のフリップフロップ回路においては、入力データを取
り込むタイミングは、クロック信号の立上がりまたは立
下がりのいずれか一方の変化点に限定されていた。この
ため、回路に汎用性が無く、いろいろな不都合を生じる
ことがあった。
However, in the above-mentioned conventional flip-flop circuit, the timing at which the input data is taken in is limited to either the rising or falling transition point of the clock signal. For this reason, the circuit is not versatile and may cause various inconveniences.

【0006】例えば、異なるエッジで動作する2種類の
DFFがアレイ状に配列されたゲートアレイにおいて
は、各DFFをスキャンパス法においてテストするのに
手間がかかり、容易にテストできなかった。すなわち、
クロック信号の立上がりエッジで動作するDFFおよび
立下がりエッジで動作するDFFの2種類のDFFがゲ
ートアレイに混在している場合、まず、立上がりエッジ
で動作する各DFFをシフトレジスタ態様に接続し、こ
のシフトレジスタにスキャン入力を与える。そして、各
DFFにクロック信号の立上がり変化を与えることによ
り、所定クロック後にスキャン出力を得てスキャン入力
と比較する。その後、立下がりエッジで動作する各DF
Fをシフトレジスタ態様に接続し、このシフトレジスタ
にスキャン入力を与える。そして、各DFFにクロック
信号の立下がり変化を与えることにより、所定クロック
後にスキャン出力を得てスキャン入力と比較する。従っ
て、クロック信号の立上がりエッジ、立下がりエッジで
動作する2種類のDFFが混在すると、各FFの種類ご
とにシフトレジスタを構成し、各FFの種類ごとにスキ
ャン入力とスキャン出力とを比較する必要がる。このた
め、スキャンパス法によってDFFをテストするのには
手間がかかり、また、時間がかかった。
For example, in a gate array in which two types of DFFs operating at different edges are arranged in an array, it takes a lot of time to test each DFF by the scan path method, and it is difficult to test. That is,
When two types of DFFs, a DFF that operates on the rising edge of a clock signal and a DFF that operates on the falling edge, are mixed in the gate array, first, each DFF that operates on the rising edge is connected in a shift register mode. Apply scan input to the shift register. Then, by giving rise transition of the clock signal to each DFF, a scan output is obtained after a predetermined clock and compared with the scan input. After that, each DF that operates on the falling edge
F is connected in a shift register fashion and provides a scan input to this shift register. Then, by giving a falling change of the clock signal to each DFF, a scan output is obtained after a predetermined clock and compared with the scan input. Therefore, when two types of DFFs that operate at the rising edge and the falling edge of the clock signal are mixed, it is necessary to configure a shift register for each FF type and compare the scan input and the scan output for each FF type. Get up. Therefore, it takes a lot of time and time to test the DFF by the scan path method.

【0007】[0007]

【課題を解決するための手段】本発明はこのような課題
を解消するためになされたもので、同期信号の一状態時
に入力データを反転して出力し同期信号の他状態時にデ
ータ入力しない同期反転回路と、同期信号の一状態時に
同期反転回路からのデータを反転して出力し同期信号の
他状態時に入力されていたデータを保持する入力データ
保持回路と、同期信号の一状態時に入力データ保持回路
の出力を受け付けず同期信号の他状態時に入力データ保
持回路の保持データを取り込む切換回路と、同期信号の
一状態時に入力されていたデータを保持し同期信号の他
状態時に切換回路の出力を反転して出力する出力データ
保持回路と、制御信号の一状態時に同期信号をクロック
信号と同じ状態に変化させ制御信号の他状態時に同期信
号をクロック信号と反対の状態に変化させる同期信号生
成回路とを備えたものである。
SUMMARY OF THE INVENTION The present invention has been made to solve such a problem, and inverts input data in one state of the sync signal and outputs the inverted data, and does not input data in the other state of the sync signal. An inverting circuit, an input data holding circuit that inverts and outputs data from the sync inverting circuit when the sync signal is in one state, and holds data that was input during the other state of the sync signal, and input data when the sync signal is in one state A switching circuit that does not accept the output of the holding circuit when the synchronization signal is in the other state, and takes in the held data of the input data holding circuit, and a data that was input when the synchronization signal is in one state, and outputs the switching circuit when the synchronization signal is in the other state An output data holding circuit that inverts and outputs the sync signal, and when the control signal is in one state, changes the sync signal to the same state as the clock signal It is obtained by a synchronizing signal generating circuit for changing to the opposite state.

【0008】[0008]

【作用】同期信号生成回路によって同期信号がクロック
信号と同じ状態に変化させられると、入力データはクロ
ック信号の立上がりまたは立下がりの一方のタイミング
で取り込まれる。また、同期信号生成回路によって同期
信号がクロック信号と反対の状態に変化させられると、
入力データはクロック信号の他方のタイミングで取り込
まれる。
When the synchronizing signal generating circuit changes the synchronizing signal to the same state as the clock signal, the input data is taken in at either the rising or falling timing of the clock signal. Also, when the sync signal is changed to a state opposite to the clock signal by the sync signal generation circuit,
Input data is taken in at the other timing of the clock signal.

【0009】[0009]

【実施例】図1は本発明の一実施例によるDFFを示す
回路図である。
1 is a circuit diagram showing a DFF according to an embodiment of the present invention.

【0010】同図(a)はDFFの論理回路を示してお
り、同図(b)はこの論理回路に与えられる同期信号の
生成回路を示している。また、同図(c)はこの同期信
号生成回路の内部構成を示している。
FIG. 1A shows the logic circuit of the DFF, and FIG. 1B shows the generation circuit of the synchronization signal given to this logic circuit. Further, FIG. 7C shows the internal structure of this synchronization signal generation circuit.

【0011】同図(b)に示す同期信号生成回路は、E
XOR回路51およびNOT回路52から構成されてい
る。EXOR回路51にはクロック信号CKおよびイネ
ーブル信号Eが入力される。EXOR回路51は入力さ
れた各信号の排他的論理和をとる。つまり、各入力信号
が同じ信号である場合には0を出力する。また、各入力
信号が異なる信号である場合には1を出力する。EXO
R回路51から出力される信号は同相信号Pとして出力
され、EXOR回路51の出力信号がNOT回路52で
反転された信号は逆相信号バーPとして出力される。
The synchronizing signal generating circuit shown in FIG.
It is composed of an XOR circuit 51 and a NOT circuit 52. The clock signal CK and the enable signal E are input to the EXOR circuit 51. The EXOR circuit 51 takes the exclusive OR of the input signals. That is, 0 is output when each input signal is the same signal. If each input signal is a different signal, 1 is output. EXO
The signal output from the R circuit 51 is output as the in-phase signal P, and the signal obtained by inverting the output signal of the EXOR circuit 51 in the NOT circuit 52 is output as the anti-phase signal bar P.

【0012】同図(c)はこのEXOR回路51の内部
を示しており、EXOR回路51はPチャネルMOSF
ET53a〜eおよびNチャネルMOSFET54a〜
eによって構成されている。
FIG. 1C shows the inside of the EXOR circuit 51, which is a P-channel MOSF.
ET53a-e and N-channel MOSFET 54a-
It is composed of e.

【0013】上記構成のタイミング信号生成回路から
は、入力されるクロック信号CKおよびイネーブル信号
Eに応じ、次の表1に示す同相信号Pが出力される。
The timing signal generating circuit having the above configuration outputs the in-phase signal P shown in the following Table 1 according to the input clock signal CK and enable signal E.

【0014】[0014]

【表1】 [Table 1]

【0015】そして、これら同相信号P,逆相信号バー
Pは同図(a)に対応する記号P,バーPが付された各
信号線に与えられる。
The in-phase signal P and the anti-phase signal bar P are given to the respective signal lines marked with the symbol P and bar P corresponding to FIG.

【0016】同図(a)の論理回路は以下のように構成
されている。
The logic circuit shown in FIG. 1A is constructed as follows.

【0017】クロックドインバータ41にはデータ入力
端子Dからの信号が与えられる。このクロックドインバ
ータ41は、同相信号Pが0の時に入力信号を反転して
出力し、同相信号Pが1の時には高インピーダンス状態
になって入力信号を受け付けずに阻止する。このクロッ
クドインバータ41の出力はNOT回路42に与えら
れ、NOT回路42の出力はNOT回路43に与えられ
る。さらにこのNOT回路43の出力はトランスファゲ
ート44に与えられ、このトランスファゲート44の出
力はNOT回路42の入力に与えられる。トランスファ
ゲート44は逆相信号バーPが0の時、つまり、同相信
号Pが1の時にオン状態になり、NOT回路43の出力
はそのままNOT回路42の入力に伝えられる。また、
トランスファゲート44は逆相信号バーPが1の時、つ
まり、同相信号Pが0の時にオフ状態になり、NOT回
路43の出力は断たれる。すなわち、同相信号Pが1の
時にはNOT回路42、43およびトランスファゲート
44によって閉回路が成立して順序回路が構成され、入
力データが保持される。一方、同相信号Pが0の時には
この閉回路がオープンになり、順序回路の接続は解かれ
る。この接続が解かれると、クロックドインバータ41
からの出力は、NOT回路42を介してこの出力に入力
が接続されたトランスファゲート45に伝えられる。
A signal from the data input terminal D is applied to the clocked inverter 41. The clocked inverter 41 inverts and outputs the input signal when the in-phase signal P is 0, and when the in-phase signal P is 1, enters a high impedance state and blocks the input signal without accepting it. The output of the clocked inverter 41 is given to the NOT circuit 42, and the output of the NOT circuit 42 is given to the NOT circuit 43. Further, the output of the NOT circuit 43 is given to the transfer gate 44, and the output of the transfer gate 44 is given to the input of the NOT circuit 42. The transfer gate 44 is turned on when the negative-phase signal bar P is 0, that is, when the in-phase signal P is 1, and the output of the NOT circuit 43 is directly transmitted to the input of the NOT circuit 42. Also,
The transfer gate 44 is turned off when the in-phase signal P is 1, that is, when the in-phase signal P is 0, and the output of the NOT circuit 43 is cut off. That is, when the in-phase signal P is 1, the NOT circuits 42 and 43 and the transfer gate 44 form a closed circuit to form a sequential circuit and hold the input data. On the other hand, when the in-phase signal P is 0, this closed circuit is opened and the connection of the sequential circuit is released. When this connection is released, the clocked inverter 41
The output from is transmitted via the NOT circuit 42 to the transfer gate 45 whose input is connected to this output.

【0018】トランスファゲート45は逆相信号バーP
が0の時、つまり、同相信号Pが1の時にオン状態にな
り、また、逆相信号バーPが1の時、つまり、同相信号
Pが0の時にオフ状態になる。従って、トランスファゲ
ート45は同相信号Pが1の時にNOT回路42の出力
をNOT回路46へ伝え、同相信号Pが0の時にNOT
回路42の出力を断つ。
The transfer gate 45 has a reverse phase signal bar P.
Is 0, that is, when the in-phase signal P is 1, it is turned on, and when the anti-phase signal bar P is 1, that is, when the in-phase signal P is 0, it is turned off. Therefore, the transfer gate 45 transmits the output of the NOT circuit 42 to the NOT circuit 46 when the in-phase signal P is 1, and the NOT when the in-phase signal P is 0.
The output of the circuit 42 is cut off.

【0019】NOT回路46は入力データを反転してN
OT回路47へ出力し、NOT回路47は入力データを
反転してトランスファゲート48へ出力する。このトラ
ンスファゲート48の出力はNOT回路46の入力に接
続されている。トランスファゲート48は同相信号Pが
0の時にオン状態になり、NOT回路47の出力をNO
T回路46へ伝える。また、トランスファゲート48は
同相信号Pが1の時にオフ状態になり、NOT回路47
からNOT回路46への出力を断つ。すなわち、NOT
回路46,47およびトランスファゲート48は同相信
号Pが0の時に閉回路を形成して順序回路を構成し、同
相信号Pが1の時にその順序回路の接続を解く。
The NOT circuit 46 inverts the input data to N
The data is output to the OT circuit 47, and the NOT circuit 47 inverts the input data and outputs it to the transfer gate 48. The output of the transfer gate 48 is connected to the input of the NOT circuit 46. The transfer gate 48 is turned on when the in-phase signal P is 0, and the output of the NOT circuit 47 is NO.
Notify the T circuit 46. Further, the transfer gate 48 is turned off when the in-phase signal P is 1, and the NOT circuit 47
From the output to the NOT circuit 46. That is, NOT
The circuits 46 and 47 and the transfer gate 48 form a closed circuit by forming a closed circuit when the in-phase signal P is 0, and release the connection of the sequential circuit when the in-phase signal P is 1.

【0020】また、NOT回路46の出力はNOT回路
49の入力にも接続されており、NOT回路49の出力
はQ端子に接続されている。また、NOT回路47の出
力はNOT回路50の入力にも接続されており、NOT
回路50の出力はQN端子に接続されている。
The output of the NOT circuit 46 is also connected to the input of the NOT circuit 49, and the output of the NOT circuit 49 is connected to the Q terminal. The output of the NOT circuit 47 is also connected to the input of the NOT circuit 50.
The output of the circuit 50 is connected to the QN terminal.

【0021】このような構成において、同期信号生成回
路は、イネーブル信号Eが0の時には、同相信号Pを第
1表に示すようにクロック信号CKに従って生成する。
このため、イネーブル信号Eが0の時にはDFFはクロ
ック信号CKの立上がりエッジでD端子に入力されるデ
ータを取り込み、Q端子に入力データと同じデータを出
力し、QN端子に入力データを反転したデータを出力す
る。
In such a configuration, the synchronizing signal generating circuit generates the in-phase signal P according to the clock signal CK as shown in Table 1 when the enable signal E is 0.
Therefore, when the enable signal E is 0, the DFF captures the data input to the D terminal at the rising edge of the clock signal CK, outputs the same data as the input data to the Q terminal, and inverts the input data to the QN terminal. Is output.

【0022】つまり、同相信号Pが0の時には、クロッ
クドインバータ41はD端子に入力されるデータを取り
込み、反転して出力する。また、この時トランスファゲ
ート44はオフ状態であり、順序回路の接続は解かれて
いるため、NOT回路42はクロックドインバータ41
の出力をトランスファゲート45へ伝える。しかし、ト
ランスファゲート45はオフ状態であるため、NOT回
路42からのデータは後段の回路には伝えられない。一
方、トランスファゲート48はオン状態であり、NOT
回路46,47およびトランスファゲート48は順序回
路を構成しており、既に入力した過去のデータを保持し
ている。従って、この保持データがNOT回路49,5
0からQ端子,QN端子へ出力される。
That is, when the in-phase signal P is 0, the clocked inverter 41 takes in the data input to the D terminal, inverts it, and outputs it. Further, at this time, the transfer gate 44 is in the off state, and the connection of the sequential circuit is released. Therefore, the NOT circuit 42 operates in the clocked inverter 41.
Is transmitted to the transfer gate 45. However, since the transfer gate 45 is in the off state, the data from the NOT circuit 42 is not transmitted to the subsequent circuit. On the other hand, the transfer gate 48 is in the ON state and NOT
The circuits 46 and 47 and the transfer gate 48 form a sequential circuit and hold the past data that has already been input. Therefore, this held data is stored in the NOT circuits 49, 5
It is output from 0 to the Q terminal and the QN terminal.

【0023】同相信号Pが0から1に変化する立上がり
タイミングにおいては、クロックドインバータ41はオ
フ状態になり、D端子からのデータ入力を中止する。ま
た、トランスファゲート44はオフ状態からオン状態に
なり、NOT回路42,43およびトランスファゲート
44は順序回路を構成し、入力されていたデータを保持
する。ここで、入力されていたデータは、同相信号Pが
0の時にD端子に入力されていたデータである。また、
同相信号Pと等しく変化するクロック信号CKが立ち上
がるとトランスファゲート45はオフ状態からオン状態
になり、NOT回路42に保持されているデータをNO
T回路46へ伝える。この時、トランスファゲート48
はオフ状態になっているため、このNOT回路46はN
OT回路42から入力したデータを反転して出力する。
NOT回路49はNOT回路46から出力された入力デ
ータの反転データをさらに反転する。従って、Q端子か
らはD端子に入力されたデータと同じデータが、同相信
号Pが0から1に変化するタイミングに出力される。ま
た、NOT回路47は、NOT回路46から出力された
入力データの反転データをさらに反転して入力データと
同じ信号にする。NOT回路50はこのNOT回路47
の出力をさらに反転する。従って、QN端子からはD端
子に入力されたデータが反転したデータが、同相信号P
が0から1に変化するタイミングに出力される。
At the rising timing when the in-phase signal P changes from 0 to 1, the clocked inverter 41 is turned off and the data input from the D terminal is stopped. Further, the transfer gate 44 changes from the off state to the on state, and the NOT circuits 42 and 43 and the transfer gate 44 form a sequential circuit and hold the input data. Here, the input data is the data input to the D terminal when the in-phase signal P is 0. Also,
When the clock signal CK that changes equally to the in-phase signal P rises, the transfer gate 45 changes from the off state to the on state, and the data held in the NOT circuit 42 becomes NO.
Notify the T circuit 46. At this time, the transfer gate 48
Is in the off state, this NOT circuit 46
The data input from the OT circuit 42 is inverted and output.
The NOT circuit 49 further inverts the inverted data of the input data output from the NOT circuit 46. Therefore, the same data as the data input to the D terminal is output from the Q terminal at the timing when the in-phase signal P changes from 0 to 1. Further, the NOT circuit 47 further inverts the inverted data of the input data output from the NOT circuit 46 to make it the same signal as the input data. The NOT circuit 50 is the NOT circuit 47.
Further invert the output of. Therefore, the inverted data of the data input to the D terminal from the QN terminal is the in-phase signal P.
Is output at the timing when changes from 0 to 1.

【0024】一方、同期信号生成回路は、イネーブル信
号Eが1の時には、第1表に示すように、同相信号Pを
クロック信号CKの反転状態にする。このため、イネー
ブル信号Eが1の時にはDFFはクロック信号CKの立
下がりエッジでD端子に入力されるデータを取り込み、
Q端子に入力データと同じデータを出力し、QN端子に
入力データを反転したデータを出力する。
On the other hand, when the enable signal E is 1, the synchronizing signal generating circuit causes the in-phase signal P to be in the inverted state of the clock signal CK as shown in Table 1. Therefore, when the enable signal E is 1, the DFF fetches the data input to the D terminal at the falling edge of the clock signal CK,
The same data as the input data is output to the Q terminal, and the inverted data of the input data is output to the QN terminal.

【0025】つまり、イネーブル信号Eが1の時には、
同相信号Pおよび逆相信号バーPはイネーブル信号Eが
0の時における値と反対の値になる。このため、イネー
ブル信号Eが0の時においてはクロック信号CKの0か
ら1への変化はそのまま同相信号Pの0から1への変化
となったが、イネーブル信号Eが1の時においては同期
信号生成回路によってクロック信号CKの0から1への
立上がり変化は同相信号Pの1から0への立下がり変化
に対応させられる。また、クロック信号CKの1から0
への立下がり変化は同相信号Pの0から1への立上がり
変化に対応させられる。つまり、イネーブル信号Eが1
の時には、クロック信号CKは同期信号生成回路によっ
て従来のネガティブクロック信号CNに相当した信号に
変換させられる。図1(a)に示すDFFの論理回路は
変わらないため、DFFはクロック信号CKの1から0
の立下がり時に上述した動作と同じ動作をする。すなわ
ち、DFFはクロック信号CKの立下がりエッジでD端
子に入力されるデータを取り込み、Q端子に入力データ
をそのまま出力し、QN端子に入力データの反転データ
を出力する。
That is, when the enable signal E is 1,
The in-phase signal P and the anti-phase signal bar P have values opposite to the values when the enable signal E is 0. Therefore, when the enable signal E is 0, the change of the clock signal CK from 0 to 1 is the same as the change of the in-phase signal P from 0 to 1, but when the enable signal E is 1, it is synchronous. The signal generation circuit causes the rising change of the clock signal CK from 0 to 1 to correspond to the falling change of the in-phase signal P from 1 to 0. In addition, 1 to 0 of the clock signal CK
The change in the rising edge of the in-phase signal corresponds to the change in the rising edge of the in-phase signal P from 0 to 1. That is, the enable signal E is 1
At this time, the clock signal CK is converted into a signal corresponding to the conventional negative clock signal CN by the synchronization signal generation circuit. Since the logic circuit of the DFF shown in FIG. 1A does not change, the DFF has 1 to 0 of the clock signal CK.
At the falling edge of, the same operation as described above is performed. That is, the DFF takes in the data input to the D terminal at the falling edge of the clock signal CK, outputs the input data to the Q terminal as it is, and outputs the inverted data of the input data to the QN terminal.

【0026】このように本実施例によれば、同期信号生
成回路は、イネーブル信号Eの制御により、クロック信
号CKをネガティブクロック信号CNに変換する。従っ
て、同じ一つのDFFは、立上がりエッジでデータを入
力するようにも、また、立下がりエッジでデータを入力
するようにもなる。このため、本実施例によれば汎用性
のあるDFFが提供される。
As described above, according to this embodiment, the synchronization signal generation circuit controls the enable signal E to convert the clock signal CK into the negative clock signal CN. Therefore, the same one DFF inputs data at the rising edge and also inputs data at the falling edge. Therefore, according to this embodiment, a versatile DFF is provided.

【0027】例えば、本実施例によるDFFをゲートア
レイで実現することにより、ゲートアレイに対する評価
はスキャンパス法を用いて容易に行えるようになる。す
なわち、ゲートアレイに立上がりエッジで動作するDF
Fと立下がりエッジで動作するDFFとが混在していて
も、全てのDFFを同一のクロック信号CKの変化エッ
ジで動作させることが可能になる。
For example, by implementing the DFF according to the present embodiment with a gate array, evaluation on the gate array can be easily performed using the scan path method. That is, the DF operating on the rising edge of the gate array
Even if F and DFFs operating at the falling edge are mixed, it becomes possible to operate all the DFFs at the same changing edge of the clock signal CK.

【0028】スキャンパス法によるテスト時には、図2
に示す本実施例による情報保持回路61はシフトレジス
タ態様に接続される。この1つの情報保持回路61は図
1(a)および(b)に示される回路構成が基本とさ
れ、1プリミティブになっている。ここで、スキャンパ
ス法で各DFFをテストする際に、立上がりエッジで動
作するDFFの同期信号生成回路へ入力するイネーブル
信号Eを0とし、立下がりエッジで動作するDFFの同
期信号生成回路へ入力するイネーブル信号Eを1とす
る。この設定により、各DFFは全てクロック信号CK
が0から1へ立上がるタイミングにD端子からデータを
入力するようになる。このため、本来異なるエッジで動
作する各DFFは同じクロックエッジでデータを取り込
み、Scan In から入力されたデータはクロック信号CK
の立上がりエッジごとに順次隣接する次のDFFに伝達
される。従って、単一の種類のDFFが存在する場合と
同じように入力されたデータはScan Outへ出力される。
よって、従来のように立上がりエッジで動作するDFF
と立下がりエッジで動作するDFFとに分けてテストを
行う必要がなくなり、スキャンパス法を用いて短時間で
かつ簡易に各DFFをテストできるようになる。
At the time of testing by the scan path method, FIG.
The information holding circuit 61 according to the present embodiment shown in is connected in a shift register mode. This one information holding circuit 61 is based on the circuit configuration shown in FIGS. 1A and 1B and is one primitive. Here, when each DFF is tested by the scan path method, the enable signal E input to the sync signal generation circuit of the DFF operating at the rising edge is set to 0 and input to the sync signal generation circuit of the DFF operating at the falling edge. The enable signal E is set to 1. With this setting, each DFF is all clock signal CK.
The data is input from the D terminal at the timing of rising from 0 to 1. Therefore, each DFF that originally operates at a different edge captures data at the same clock edge, and the data input from Scan In is clock signal CK.
Is sequentially transmitted to the next DFF adjacent to each of the rising edges of the DFF. Therefore, the input data is output to Scan Out in the same manner as when there is a single type of DFF.
Therefore, the DFF that operates at the rising edge as in the past
Therefore, it becomes unnecessary to separately test the DFFs operating at the falling edge and the DFFs, and each DFF can be easily tested in a short time by using the scan path method.

【0029】[0029]

【発明の効果】以上説明したように本発明によれば、同
期信号生成回路によって同期信号がクロック信号と同じ
状態に変化させられると、入力データはクロック信号の
立上がりまたは立下がりの一方のタイミングで取り込ま
れる。また、同期信号生成回路によって同期信号がクロ
ック信号と反対の状態に変化させられると、入力データ
はクロック信号の他方のタイミングで取り込まれる。
As described above, according to the present invention, when the sync signal is changed to the same state as the clock signal by the sync signal generating circuit, the input data has the rising or falling timing of the clock signal. It is captured. Further, when the sync signal is changed to a state opposite to the clock signal by the sync signal generation circuit, the input data is taken in at the other timing of the clock signal.

【0030】このため、本発明によれば、クロック信号
の立上がりおよび立下がりのいずれのエッジでも動作す
るFF回路が実現され、汎用性のあるFF回路が提供さ
れる。従って、本発明によるFF回路を例えばゲートア
レイに適用すると、スキャンパス法を用いたテストが容
易に行えるようになる。
Therefore, according to the present invention, an FF circuit which operates at both rising and falling edges of a clock signal is realized, and a versatile FF circuit is provided. Therefore, when the FF circuit according to the present invention is applied to, for example, a gate array, a test using the scan path method can be easily performed.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例によるDFFの構成を示す回
路図である。
FIG. 1 is a circuit diagram showing a configuration of a DFF according to an embodiment of the present invention.

【図2】一実施例によるDFFを用いてゲートアレイを
構成し、スキャンパス法を用いてテストを行う場合の回
路構成を示すブロック図である。
FIG. 2 is a block diagram showing a circuit configuration when a gate array is configured by using a DFF according to an embodiment and a test is performed by using a scan path method.

【図3】従来の第1のDFFの構成を示す回路図であ
る。
FIG. 3 is a circuit diagram showing a configuration of a conventional first DFF.

【図4】従来の第2のDFFの構成を示す回路図であ
る。
FIG. 4 is a circuit diagram showing a configuration of a second conventional DFF.

【符号の説明】[Explanation of symbols]

41…クロックドインバータ、42,43,46,4
7,49,50,52…NOT回路、44,45,48
…トランスファゲート、51…EXOR回路、53a〜
e…PチャネルMOSFET、54a〜e…Nチャネル
MOSFET。
41 ... Clocked inverter, 42, 43, 46, 4
7, 49, 50, 52 ... NOT circuit, 44, 45, 48
... Transfer gate, 51 ... EXOR circuit, 53a-
e ... P-channel MOSFETs 54a to e ... N-channel MOSFETs.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 同期信号の一状態時に入力データを反転
して出力し同期信号の他状態時にデータ入力しない同期
反転回路と、同期信号の一状態時に前記同期反転回路か
らのデータを反転して出力し同期信号の他状態時に入力
されていたデータを保持する入力データ保持回路と、同
期信号の一状態時に前記入力データ保持回路の出力を受
け付けず同期信号の他状態時に前記入力データ保持回路
の保持データを取り込む切換回路と、同期信号の一状態
時に入力されていたデータを保持し同期信号の他状態時
に前記切換回路の出力を反転して出力する出力データ保
持回路と、制御信号の一状態時に同期信号をクロック信
号と同じ状態に変化させ制御信号の他状態時に同期信号
をクロック信号と反対の状態に変化させる同期信号生成
回路とを備えたことを特徴とするフリップフロップ回
路。
1. A sync inversion circuit that inverts and outputs input data when one state of a sync signal and does not input data when the sync signal is in another state, and an inversion of data from the sync inversion circuit when one state of a sync signal. An input data holding circuit that holds the data that was output and was input during the other state of the synchronization signal; and an input data holding circuit that does not accept the output of the input data holding circuit when the synchronization signal is in one state A switching circuit that takes in the held data, an output data holding circuit that holds the data that was input when the synchronization signal is in one state and inverts the output of the switching circuit when the synchronization signal is in another state, and one state of the control signal And a synchronization signal generation circuit for changing the synchronization signal to the same state as the clock signal and changing the synchronization signal to the opposite state of the clock signal when the control signal is in another state. A flip-flop circuit characterized by:
【請求項2】 前記同期反転回路はクロックドインバー
タからなり、 前記入力データ保持回路は、前記クロックドインバータ
の出力に入力が接続された第1の反転回路と、この第1
の反転回路の出力に入力が接続された第2の反転回路
と、この第2の反転回路の出力に入力が接続され出力が
前記第1の反転回路の入力に接続され同期信号の一状態
時にオフ状態になり同期信号の他状態時にオン状態にな
る第1のトランスファゲートとからなり、 前記切換回路は、前記第1の反転回路の出力に入力が接
続され、同期信号の一状態時にオフ状態になり同期信号
の他状態時にオン状態になる第2のトランスファゲート
からなり、 前記出力データ保持回路は、前記第2のトランスファゲ
ートの出力に入力が接続された第3の反転回路と、この
第3の反転回路の出力に入力が接続された第4の反転回
路と、この第4の反転回路の出力に入力が接続され出力
が前記第3の反転回路の入力に接続され同期信号の一状
態時にオン状態になり同期信号の他状態時にオフ状態に
なる第3のトランスファゲートとからなり、 前記同期信号生成回路は、制御信号およびクロック信号
の排他的論理和をとる排他的論理和回路と、この排他的
論理和回路の出力を反転する第5の反転回路とからな
り、前記排他的論理和回路の出力を同期信号の一状態に
対応させ、前記第5の反転回路の出力を同期信号の他状
態に対応させることを特徴とする請求項1記載のフリッ
プフロップ回路。
2. The synchronous inverting circuit comprises a clocked inverter, and the input data holding circuit includes a first inverting circuit having an input connected to the output of the clocked inverter, and the first inverting circuit.
And a second inverting circuit whose input is connected to the output of the inverting circuit, and an input which is connected to the output of the second inverting circuit and whose output is connected to the input of the first inverting circuit A first transfer gate that is turned off and is turned on when the synchronization signal is in another state, and the switching circuit has an input connected to an output of the first inverting circuit and is turned off when the synchronization signal is in one state. And a second transfer gate that is turned on when the synchronization signal is in another state, and the output data holding circuit includes a third inverting circuit having an input connected to the output of the second transfer gate, and the third inverting circuit. A fourth inverting circuit whose input is connected to the output of the third inverting circuit, and an input which is connected to the output of the fourth inverting circuit and whose output is connected to the input of the third inverting circuit Sometimes turned on The synchronization signal generating circuit comprises a third transfer gate which is turned off when the synchronization signal is in another state, and the synchronization signal generation circuit includes an exclusive OR circuit for exclusive ORing the control signal and the clock signal, and the exclusive OR circuit. A fifth inverting circuit for inverting the output of the circuit, wherein the output of the exclusive OR circuit corresponds to one state of the synchronizing signal and the output of the fifth inverting circuit corresponds to the other state of the synchronizing signal. The flip-flop circuit according to claim 1, wherein:
JP43A 1992-12-22 1992-12-22 Flip-flop circuit Pending JPH06188694A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP43A JPH06188694A (en) 1992-12-22 1992-12-22 Flip-flop circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP43A JPH06188694A (en) 1992-12-22 1992-12-22 Flip-flop circuit

Publications (1)

Publication Number Publication Date
JPH06188694A true JPH06188694A (en) 1994-07-08

Family

ID=18352802

Family Applications (1)

Application Number Title Priority Date Filing Date
JP43A Pending JPH06188694A (en) 1992-12-22 1992-12-22 Flip-flop circuit

Country Status (1)

Country Link
JP (1) JPH06188694A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5854565A (en) * 1995-10-06 1998-12-29 Qualcomm Incorporated Low power latch requiring reduced circuit area

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5854565A (en) * 1995-10-06 1998-12-29 Qualcomm Incorporated Low power latch requiring reduced circuit area

Similar Documents

Publication Publication Date Title
JP2725258B2 (en) Integrated circuit device
JP2522140B2 (en) Logic circuit
JP4579370B2 (en) Scan flip-flop circuit and scan test method using the same
US5459736A (en) Scan path circuit for testing multi-phase clocks from sequential circuits
JPH0220173B2 (en)
US6661270B2 (en) Data latch circuit and driving method thereof
JP3057814B2 (en) Semiconductor integrated circuit
JPH01259274A (en) Test system for integrated circuit
JP2946658B2 (en) Flip-flop circuit
US4780666A (en) Semiconductor integrated circuit device having rest function
JPH06160476A (en) Circuit for controlling test of scan path
US20070260951A1 (en) Uncompromised standard input set-up time with improved enable input set-up time characteristics in a storage circuit
US5848075A (en) Test device employing scan path having circuitry at switches between a scan in signal transmitted and previously held at a predetermined clock timing
JPH06188694A (en) Flip-flop circuit
JPH06188695A (en) Information latch circuit
US11106237B2 (en) Shift registers
US5126587A (en) Synchronization circuit configuration
US6150861A (en) Flip-flop
JPS6089120A (en) Flip-flop circuit
JPH10339769A (en) Delay testing method and flip flop used for it
JPH0295283A (en) Semiconductor integrated circuit device
JPH0334617A (en) Flip-flop circuit
JP3357821B2 (en) Scan path flip-flop circuit and scan path test system
JPS62260418A (en) Flip-flop circuit
JPH07198787A (en) Scan flip flop circuit