JP2007178160A - Scan flip-flop circuit - Google Patents

Scan flip-flop circuit Download PDF

Info

Publication number
JP2007178160A
JP2007178160A JP2005374231A JP2005374231A JP2007178160A JP 2007178160 A JP2007178160 A JP 2007178160A JP 2005374231 A JP2005374231 A JP 2005374231A JP 2005374231 A JP2005374231 A JP 2005374231A JP 2007178160 A JP2007178160 A JP 2007178160A
Authority
JP
Japan
Prior art keywords
scan
terminal
circuit
data
signal
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
JP2005374231A
Other languages
Japanese (ja)
Inventor
Satoshi Kaneko
智 金子
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.)
Renesas Technology Corp
Original Assignee
Renesas Technology 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 Renesas Technology Corp filed Critical Renesas Technology Corp
Priority to JP2005374231A priority Critical patent/JP2007178160A/en
Publication of JP2007178160A publication Critical patent/JP2007178160A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Tests Of Electronic Circuits (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a scan flip-flop circuit (scan FF circuit) that has a fixed value input function, relaxes the setup timing condition about data to be input, and relaxes the hold timing condition about a scan-in signal to be input. <P>SOLUTION: In the scan flip-flop circuit, a 2-to-1 selector 13 executes a first selection operation of selecting one of the ground level received by "0" input and "1" input and the scan-in signal SIN based on a scan enable signal SEN received by a control input. A 2-to-1 selector 12 executes a second selection operation of selecting one of data DATA received by "0" input and "1" input and the output from the 2-to-1 selector 13 based on a synchronous reset signal RB received by the control input and outputting it to a data input terminal D as attachment data to the flip-flop 11. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

この発明は、スキャンフリップフロップ(以下、「スキャンFF」と略する)を有するスキャンFF回路に関する。   The present invention relates to a scan FF circuit having a scan flip-flop (hereinafter abbreviated as “scan FF”).

図43は従来のスキャンFF回路の内部構成を示す回路図である。同図に示すように、従来のスキャンFF回路51はフリップフロップ61及び2to1セレクタ62から構成され、入力部にクロック端子P11、データ入力端子P12、スキャンイン端子P13及びスキャンイネーブル端子P14を有し、出力部にデータ出力端子P21、スキャンアウト端子P22及びデータ出力反転端子P23を有する。   FIG. 43 is a circuit diagram showing an internal configuration of a conventional scan FF circuit. As shown in the figure, the conventional scan FF circuit 51 includes a flip-flop 61 and a 2to1 selector 62, and has a clock terminal P11, a data input terminal P12, a scan-in terminal P13, and a scan enable terminal P14 in the input section. The output unit includes a data output terminal P21, a scan-out terminal P22, and a data output inversion terminal P23.

クロック端子P11はクロックCLOCKを受け、データ入力端子P12はデータDATAを受け、スキャンイン端子P13はスキャンイン信号SINを受け、スキャンイネーブル端子P14はスキャンイネーブル信号SENを受け、データ出力端子P21からデータ出力Q、スキャンアウト端子P22からスキャンアウト信号SOUT、データ出力反転端子P23から反転データ出力QBが出力される。   The clock terminal P11 receives the clock CLOCK, the data input terminal P12 receives the data DATA, the scan-in terminal P13 receives the scan-in signal SIN, the scan enable terminal P14 receives the scan enable signal SEN, and outputs data from the data output terminal P21. Q, a scan-out signal SOUT is output from the scan-out terminal P22, and an inverted data output QB is output from the data output inversion terminal P23.

2to1セレクタ62の“0”入力及び“1”入力はデータ入力端子P12及びスキャンイン端子P13に接続され、制御入力がスキャンイネーブル端子P14に接続され、フリップフロップ61のクロック端子Cはクロック端子P11に接続され、データ入力端子Dは2to1セレクタ62の出力に接続され、データ出力端子Qinはデータ出力端子P21及びスキャンアウト端子P22に共通に接続され、反転データ出力端子QBinはデータ出力反転端子P23に接続される。   The “0” input and “1” input of the 2to1 selector 62 are connected to the data input terminal P12 and the scan-in terminal P13, the control input is connected to the scan enable terminal P14, and the clock terminal C of the flip-flop 61 is connected to the clock terminal P11. The data input terminal D is connected to the output of the 2to1 selector 62, the data output terminal Qin is commonly connected to the data output terminal P21 and the scan-out terminal P22, and the inverted data output terminal QBin is connected to the data output inversion terminal P23. Is done.

このような構成において、フリップフロップ61はクロック端子P11より得られるクロックCLOCKに同期して動作し、通常動作時にスキャンイネーブル信号SENを“L”(“0”)にしてデータ入力端子P12より得られるデータDATAを付与データとしてフリップフロップ61のデータ入力端子Dに出力し、スキャンシフト時はスキャンイネーブル信号SENを“H”(“1”)にしてスキャンイン端子P13より得られるスキャンイン信号SINを付与データとしてフリップフロップ61のデータ入力端子Dに出力する。そして、格納データをデータ出力端子P21及びスキャンアウト端子P22よりデータ出力Q及びスキャンアウト信号SOUTとして出力し、格納データの反転データをデータ出力反転端子P23から反転データ出力QBとして出力する。このようなスキャンFF回路51と同様な回路が例えば特許文献1に開示されている。   In such a configuration, the flip-flop 61 operates in synchronization with the clock CLOCK obtained from the clock terminal P11, and is obtained from the data input terminal P12 by setting the scan enable signal SEN to “L” (“0”) during normal operation. The data DATA is output to the data input terminal D of the flip-flop 61 as the applied data, and the scan enable signal SEN is set to “H” (“1”) at the time of scan shift, and the scan-in signal SIN obtained from the scan-in terminal P13 is applied. The data is output to the data input terminal D of the flip-flop 61. Then, the stored data is output as the data output Q and the scan-out signal SOUT from the data output terminal P21 and the scan-out terminal P22, and the inverted data of the stored data is output from the data output inversion terminal P23 as the inverted data output QB. A circuit similar to such a scan FF circuit 51 is disclosed in Patent Document 1, for example.

特開2000−321331号公報JP 2000-321331 A

プロセステクノロジの微細化に伴うトランジスタ集積度の向上により、LSIの回路規模が増大してきている。そのような大規模回路を効率よくテストするためにスキャンFF回路を使用することが必須となってきている。   The LSI circuit scale is increasing due to the improvement in the degree of transistor integration accompanying the miniaturization of process technology. In order to efficiently test such a large-scale circuit, it has become essential to use a scan FF circuit.

しかし、図43で示したようなスキャンFF回路の構成は、フリップフロップ61とデータ入力端子P12との間に2to1セレクタ62が挿入される回路構成となっており、2to1セレクタ62一段分の遅延時間が生じることに起因して、固定値設定等の信号処理後のデータDATAについてのセットアップタイミング条件が厳しくなり、逆に前段のスキャンFF回路51のスキャンアウト端子P22と後段のスキャンFF回路51のスキャンイン端子P13とが直結されるのが一般的なため、スキャンイン信号SINついてのホールドタイミング条件が厳しくなくという問題点があった。   However, the configuration of the scan FF circuit as shown in FIG. 43 is a circuit configuration in which the 2to1 selector 62 is inserted between the flip-flop 61 and the data input terminal P12, and the delay time for one stage of the 2to1 selector 62. As a result, the setup timing condition for data DATA after signal processing such as fixed value setting becomes severe, and conversely, the scan out terminal P22 of the scan FF circuit 51 in the previous stage and the scan of the scan FF circuit 51 in the subsequent stage Since the in-terminal P13 is generally directly connected, there is a problem that the hold timing condition for the scan-in signal SIN is not strict.

この発明は上記問題点を解決するためになされたもので、固定値入力機能を有し、かつ、入力されるデータについてのセットアップタイミング条件の緩和、及び入力されるスキャンイン信号ついてのホールドタイミング条件の緩和を図ったスキャンFF回路を得ることを目的とする。   The present invention has been made to solve the above-described problems, has a fixed value input function, relaxes the setup timing condition for the input data, and holds the timing condition for the input scan-in signal. An object of the present invention is to obtain a scan FF circuit in which the above-described relaxation is achieved.

この発明に係る請求項1記載のスキャンFF回路は、クロック端子、データ入力端子、スキャンイン端子、データ出力端子、及びスキャンアウト端子を有するスキャンフリップフロップ回路(スキャンFF回路)であって、前記クロック端子を介して入力されるクロックに同期して、付与されたデータを格納データとして取り込み、該格納データを前記データ出力端子及び前記スキャンアウト端子の少なくとも一方より出力するフリップフロップと、所定の固定値及び前記スキャンイン端子より得られるスキャンイン信号のうち一方を選択して出力する第1の選択動作を実行する第1のセレクタと、前記データ入力端子より得られる入力データ及び前記第1のセレクタの出力のうち一方を選択して、前記フリップフロップへの付与データとして出力する第2の選択動作を実行する第2のセレクタとを備えている。   The scan FF circuit according to claim 1 is a scan flip-flop circuit (scan FF circuit) having a clock terminal, a data input terminal, a scan-in terminal, a data output terminal, and a scan-out terminal, A flip-flop that captures the given data as stored data in synchronization with a clock input via the terminal and outputs the stored data from at least one of the data output terminal and the scan-out terminal; and a predetermined fixed value And a first selector that executes a first selection operation for selecting and outputting one of the scan-in signals obtained from the scan-in terminal, and the input data obtained from the data input terminal and the first selector Select one of the outputs to give to the flip-flop And a second selector for executing the second selection operation to output.

この発明に係る請求項12記載のスキャンFF回路は、クロック端子、データ入力端子、スキャンイン端子、データ出力端子、及びスキャンアウト端子を有するスキャンフリップフロップ回路(スキャンFF回路)であって、前記クロック端子を介して入力されるクロックに同期して、付与されたデータを格納データとして取り込み、該格納データを前記データ出力端子を介して出力するフリップフロップと、前記データ入力端子より得られる入力データ及び前記スキャンイン端子より得られるスキャンイン信号のうち、一方を選択して、前記フリップフロップへの付与データとして出力する第1の選択動作を実行する第1のセレクタと、所定の固定値及び前記フリップフロップの前記格納データのうち一方を選択して前記スキャンアウト端子から出力する、第2の選択動作を実行する第2のセレクタとを備えている。   A scan FF circuit according to a twelfth aspect of the present invention is a scan flip-flop circuit (scan FF circuit) having a clock terminal, a data input terminal, a scan-in terminal, a data output terminal, and a scan-out terminal. A flip-flop that captures the given data as stored data in synchronization with a clock input via the terminal, and outputs the stored data via the data output terminal; and input data obtained from the data input terminal; A first selector that executes a first selection operation of selecting one of scan-in signals obtained from the scan-in terminal and outputting the selected data as data to be provided to the flip-flop, a predetermined fixed value, and the flip-flop Select one of the stored data of the scan and select the scan out end Output from, and a second selector for executing the second selection operation.

この発明に係る請求項26記載のスキャンFF回路は、クロック端子、第1及び第2のデータ入力端子、スキャンイン端子、スキャンイネーブル端子、データ出力端子、及びスキャンアウト端子を有するスキャンフリップフロップ回路(スキャンFF回路)であって、前記クロック端子を介して入力されるクロックに同期して、付与されたデータを格納データとして取り込み、該格納データを前記データ出力端子及び前記スキャンアウト端子の少なくとも一方より出力するフリップフロップと、前記スキャンイネーブル端子より得られるスキャンイネーブル信号及び前記第2のデータ入力端子より得られる第2の入力データに基づき、前記第1のデータ入力端子より得られる第1の入力データ、所定の固定値及び前記スキャンイン端子より得られるスキャンイン信号のうちの一つを選択して、前記フリップフロップへの付与データとして出力する選択動作を実行するセレクタとを備えている。   A scan FF circuit according to a twenty-sixth aspect of the present invention is a scan flip-flop circuit having a clock terminal, first and second data input terminals, a scan-in terminal, a scan enable terminal, a data output terminal, and a scan-out terminal ( A scan FF circuit) that captures the given data as storage data in synchronization with a clock input via the clock terminal, and stores the storage data from at least one of the data output terminal and the scan-out terminal. First input data obtained from the first data input terminal based on a flip-flop to be output, a scan enable signal obtained from the scan enable terminal, and second input data obtained from the second data input terminal Obtained from a predetermined fixed value and the scan-in terminal. Select one of the scan-in signal, and a selector for performing a selection operation to output as the application data to the flip-flop.

この発明における請求項1記載のスキャンFF回路は、第1のセレクタの第1の選択動作により所定の固定値を選択し、第2のセレクタの第2の選択動作により第1のセレクタの出力を選択することにより、フリップフロップのデータ入力に所定の固定値を入力する固定値入力機能を有する。   The scan FF circuit according to claim 1 of the present invention selects a predetermined fixed value by the first selection operation of the first selector, and outputs the output of the first selector by the second selection operation of the second selector. By selecting, it has a fixed value input function for inputting a predetermined fixed value to the data input of the flip-flop.

そして、第2のセレクタのみを介してデータ入力端子より得られる入力データをフリップフロップへ付与データとして出力するため、上記固定値入力機能を有し、かつ入力データに対するセットアップタイミイング条件の緩和を図ることができる。   Since the input data obtained from the data input terminal is output to the flip-flop as the added data only through the second selector, the fixed value input function is provided and the setup timing condition for the input data is eased. be able to.

さらに、2段の第1及び第2のセレクタを介してスキャンイン信号をフリップフロップのデータ入力として出力するため、スキャンイン信号に対するホールドタイミイング条件を緩和を図ることができる。   Further, since the scan-in signal is output as the data input of the flip-flop via the two-stage first and second selectors, the hold timing condition for the scan-in signal can be relaxed.

この発明における請求項10記載のスキャンFF回路は、第2のセレクタの第2の選択動作により所定の固定値の出力を選択することにより、次段のスキャンFF回路の第1のセレクタを介してフリップフロップへの付与データとして所定の固定値を入力する固定値入力機能を有する。   According to a tenth aspect of the present invention, the scan FF circuit selects the output of a predetermined fixed value by the second selection operation of the second selector, and passes through the first selector of the next-stage scan FF circuit. It has a fixed value input function for inputting a predetermined fixed value as data to be given to the flip-flop.

そして、第1のセレクタのみを介してデータ入力端子より得られる入力データをフリップフロップへの付与データとして出力するため、上記固定値入力機能を有し、かつ入力データに対するセットアップタイミイング条件の緩和を図ることができる。   Since the input data obtained from the data input terminal only through the first selector is output as the data to be given to the flip-flop, the above-mentioned fixed value input function is provided, and the setup timing conditions for the input data are relaxed. Can be planned.

さらに、請求項10記載のスキャンFF回路が複数段用いられ、前段のスキャンFF回路のスキャンアウト端子が後段のスキャンFF回路のスキャンイン端子に接続される場合、前段のスキャンFF回路の第2のセレクタ及び後段のスキャンFF回路の第1のセレクタを介して、前段のスキャンFF回路のフリップフロップのデータ出力が後段のスキャンFF回路のフリップフロップへの付与データとして取り込まれることになり、後段のスキャンFF回路のスキャンイン信号に対するホールドタイミイング条件の緩和を図ることができる。   Furthermore, when the scan FF circuit according to claim 10 is used in a plurality of stages and the scan-out terminal of the preceding scan FF circuit is connected to the scan-in terminal of the subsequent scan FF circuit, Through the selector and the first selector of the subsequent scan FF circuit, the data output of the flip-flop of the previous scan FF circuit is fetched as the data to be applied to the flip-flop of the subsequent scan FF circuit, and the subsequent scan The hold timing conditions for the scan-in signal of the FF circuit can be relaxed.

この発明における請求項20記載のスキャンFF回路は、セレクタの選択動作により所定の固定値を選択することにより、フリップフロップへの付与データとして所定の固定値を入力する固定値入力機能を有する。   According to a twentieth aspect of the present invention, the scan FF circuit has a fixed value input function of inputting a predetermined fixed value as data to be given to the flip-flop by selecting a predetermined fixed value by the selection operation of the selector.

そして、セレクタのみを介してデータ入力端子より得られる入力データをフリップフロップへの付与データとして出力するため、上記固定値入力機能を有し、かつ入力データに対するセットアップタイミイング条件の緩和を図ることができる。   Since the input data obtained from the data input terminal is output as the data to be given to the flip-flop only through the selector, the fixed value input function is provided and the setup timing condition for the input data can be relaxed. it can.

<実施の形態1>
(回路構成)
図1はこの発明の実施の形態1である同期リセット端子付きスキャンFF回路の回路構成を示す回路図である。同図に示すように、実施の形態1のスキャンFF回路1はフリップフロップ11及び2to1セレクタ12,13から構成され、入力部にクロック端子P11、データ入力端子P12、スキャンイン端子P13、スキャンイネーブル端子P14及び同期リセット端子P15(同期固定値設定端子)を有し、出力部にデータ出力端子P21、スキャンアウト端子P22及びデータ出力反転端子P23を有する。
<Embodiment 1>
(Circuit configuration)
1 is a circuit diagram showing a circuit configuration of a scan FF circuit with a synchronous reset terminal according to a first embodiment of the present invention. As shown in the figure, the scan FF circuit 1 of the first embodiment is composed of a flip-flop 11 and 2to1 selectors 12 and 13, and has a clock terminal P11, a data input terminal P12, a scan-in terminal P13, and a scan enable terminal as input parts. P14 and a synchronous reset terminal P15 (synchronous fixed value setting terminal), and a data output terminal P21, a scan-out terminal P22, and a data output inversion terminal P23 in the output section.

クロック端子P11はクロックCLOCKを受け、データ入力端子P12はデータDATA(入力データ)を受け、スキャンイン端子P13はスキャンイン信号SINを受け、スキャンイネーブル端子P14はスキャンイネーブル信号SENを受け、同期リセット端子P15に同期リセット信号RBを受ける。一方、データ出力端子P21からデータ出力Q、スキャンアウト端子P22からスキャンアウト信号SOUT、データ出力反転端子P23から反転データ出力QBがそれぞれ出力される。   The clock terminal P11 receives a clock CLOCK, the data input terminal P12 receives data DATA (input data), the scan-in terminal P13 receives a scan-in signal SIN, the scan enable terminal P14 receives a scan enable signal SEN, and a synchronous reset terminal P15 receives a synchronous reset signal RB. On the other hand, a data output Q is output from the data output terminal P21, a scan-out signal SOUT is output from the scan-out terminal P22, and an inverted data output QB is output from the data output inversion terminal P23.

2to1セレクタ13(第1のセレクタ)の“0”入力及び“1”入力は接地レベル(所定の固定値)及びスキャンイン端子P13に接続され、制御入力はスキャンイネーブル端子P14に接続される。そして、2to1セレクタ13はスキャンイネーブル端子P14より得られるスキャンイネーブル信号SENに基づき、接地レベル及びスキャンイン端子P13より得られるスキャンイン信号SINのうち一方を選択して出力する第1の選択動作を実行する。   The “0” input and “1” input of the 2to1 selector 13 (first selector) are connected to the ground level (predetermined fixed value) and the scan-in terminal P13, and the control input is connected to the scan enable terminal P14. Based on the scan enable signal SEN obtained from the scan enable terminal P14, the 2to1 selector 13 executes a first selection operation for selecting and outputting one of the ground level and the scan in signal SIN obtained from the scan in terminal P13. To do.

2to1セレクタ12(第2のセレクタ)の“1”入力及び“0”入力はデータ入力端子P12及び2to1セレクタ13の出力に接続され、制御入力は同期リセット端子P15に接続される。そして、2to1セレクタ12は、同期リセット端子P15より得られる同期リセット信号RBに基づき、データ入力端子P12より得られるデータDATA及び2to1セレクタ13の出力のうち一方を選択してフリップフロップ11への付与データとしてデータ入力端子Dに出力する第2の選択動作を実行する。   The “1” input and the “0” input of the 2to1 selector 12 (second selector) are connected to the data input terminal P12 and the output of the 2to1 selector 13, and the control input is connected to the synchronous reset terminal P15. Then, the 2to1 selector 12 selects one of the data DATA obtained from the data input terminal P12 and the output of the 2to1 selector 13 based on the synchronous reset signal RB obtained from the synchronous reset terminal P15, and the data to be given to the flip-flop 11 As a result, a second selection operation for outputting to the data input terminal D is executed.

このように、実施の形態1のスキャンFF回路1は、スキャンイネーブル信号SEN及び同期リセット信号RBに基づき、2to1セレクタ13及び12を制御することができる。   As described above, the scan FF circuit 1 according to the first embodiment can control the 2to1 selectors 13 and 12 based on the scan enable signal SEN and the synchronous reset signal RB.

フリップフロップ11のクロック端子Cはクロック端子P11に接続され、データ入力端子Dは2to1セレクタ12の出力に接続され、データ出力端子Qinはデータ出力端子P21及びスキャンアウト端子P22に共通に接続され、反転データ出力端子QBinはデータ出力反転端子P23に接続される。   The clock terminal C of the flip-flop 11 is connected to the clock terminal P11, the data input terminal D is connected to the output of the 2to1 selector 12, the data output terminal Qin is connected in common to the data output terminal P21 and the scan out terminal P22, and is inverted. The data output terminal QBin is connected to the data output inversion terminal P23.

図2はフリップフロップ11の内部構成を示す回路図である。同図に示すように、フリップフロップ11は、インバータG1〜G6、トランスファゲートTF1〜TF4から構成される。   FIG. 2 is a circuit diagram showing the internal configuration of the flip-flop 11. As shown in the figure, the flip-flop 11 includes inverters G1 to G6 and transfer gates TF1 to TF4.

インバータG1の入力はクロック端子Cに接続され、インバータG2の入力はインバータG1の出力に接続される。そして、インバータG2の出力がクロック信号CK1となり、インバータG1の出力が反転クロック信号CK1Bとなる。   The input of the inverter G1 is connected to the clock terminal C, and the input of the inverter G2 is connected to the output of the inverter G1. The output of the inverter G2 becomes the clock signal CK1, and the output of the inverter G1 becomes the inverted clock signal CK1B.

一方、インバータG3の入力はトランスファゲートTF1を介してデータ入力端子Dに接続され、その出力がトランスファゲートTF3を介してインバータG5の入力に接続されるとともに、インバータG4及びトランスファゲートTF2を介して自身の入力に帰還する。   On the other hand, the input of the inverter G3 is connected to the data input terminal D through the transfer gate TF1, and the output is connected to the input of the inverter G5 through the transfer gate TF3, and also through the inverter G4 and the transfer gate TF2. Return to the input.

インバータG6の入力はインバータG5の出力に接続され、インバータG6の出力が反転データ出力端子QBinに接続されるとともに、トランスファゲートTF4を介してインバータG5の入力に接続される。インバータG5の出力がデータ出力端子Qinとなる。   The input of the inverter G6 is connected to the output of the inverter G5, the output of the inverter G6 is connected to the inverted data output terminal QBin, and is connected to the input of the inverter G5 via the transfer gate TF4. The output of the inverter G5 becomes the data output terminal Qin.

トランスファゲートTF1及びTF4は共にNMOSゲートに反転クロック信号CK1Bを受け、PMOSゲートにクロック信号CK1を受ける。トランスファゲートTF2及びTF3は共にNMOSゲートにクロック信号CK1を受け、PMOSゲートに反転クロック信号CK1Bを受ける。   Both transfer gates TF1 and TF4 receive the inverted clock signal CK1B at the NMOS gate and the clock signal CK1 at the PMOS gate. Both transfer gates TF2 and TF3 receive the clock signal CK1 at the NMOS gate and the inverted clock signal CK1B at the PMOS gate.

このような構成のフリップフロップ11は、インバータG3及びG4のループ接続によりなる第1のラッチと、インバータG5及びG6のループ接続によりなる第2のラッチとを、トランスファゲートTF1〜TF4のオン/オフ動作によって、フリップフロップ動作を行う。具体的には、クロックCLOCKの“H”立ち上がりをトリガとして、データ入力端子Dに入力される付与データを格納データとして上記第1のラッチに取り込み、“L”立ち下がりをトリガとして上記第1のラッチの格納データが上記第2のラッチに取り込まれる。以降、同様にして、上記第1のラッチ及び第2のラッチを用いたフリップフロップ動作が行われる。   The flip-flop 11 configured as described above is configured to turn on / off the transfer gates TF1 to TF4 by connecting the first latch formed by the loop connection of the inverters G3 and G4 and the second latch formed by the loop connection of the inverters G5 and G6. A flip-flop operation is performed depending on the operation. More specifically, the application data input to the data input terminal D is taken into the first latch as storage data using the “H” rising edge of the clock CLOCK as a trigger, and the first latch using the “L” falling edge as a trigger. The data stored in the latch is taken into the second latch. Thereafter, similarly, the flip-flop operation using the first latch and the second latch is performed.

(動作)
図3は図1及び図2で示した実施の形態1のスキャンFF回路の動作を真理値表形式で示した説明図である。以下、図3を参照しつつ、実施の形態1のスキャンFF回路の動作を説明する。
(Operation)
FIG. 3 is an explanatory diagram showing the operation of the scan FF circuit of the first embodiment shown in FIGS. 1 and 2 in the form of a truth table. Hereinafter, the operation of the scan FF circuit according to the first embodiment will be described with reference to FIG.

フリップフロップ11はクロック端子P11より得られるクロックCLOCKに同期して動作し、通常動作時に同期リセット信号RBを“H”(“1”)にしてデータ入力端子P12より得られるデータDATAを2to1セレクタ12を介して、フリップフロップ11への付与データとしてデータ入力端子Dに出力する。   The flip-flop 11 operates in synchronization with the clock CLOCK obtained from the clock terminal P11. During normal operation, the synchronous reset signal RB is set to “H” (“1”), and the data DATA obtained from the data input terminal P12 is set to the 2to1 selector 12. The data is output to the data input terminal D as data to be given to the flip-flop 11.

一方、スキャンシフト時はスキャンイネーブル信号SENを“H”、同期リセット信号RBを“L”(“0”)にしてスキャンイン端子P13より得られるスキャンイン信号SINを2to1セレクタ13及び2to1セレクタ12を介して、フリップフロップ11への付与データとしてデータ入力端子Dに出力する。   On the other hand, at the time of scan shift, the scan enable signal SEN is set to “H”, the synchronous reset signal RB is set to “L” (“0”), and the scan-in signal SIN obtained from the scan-in terminal P13 is changed to the 2to1 selector 13 and the 2to1 selector 12. Then, the data is output to the data input terminal D as the data to be given to the flip-flop 11.

また、リセット時には、スキャンイネーブル信号SENを“L”、同期リセット信号RBを“L”にして、接地レベルの信号を2to1セレクタ13及び2to1セレクタ12を介して、フリップフロップ11への付与データとしてデータ入力端子Dに出力する。   At the time of reset, the scan enable signal SEN is set to “L”, the synchronous reset signal RB is set to “L”, and the ground level signal is supplied as data to be given to the flip-flop 11 via the 2to1 selector 13 and the 2to1 selector 12. Output to the input terminal D.

このように、実施の形態1のスキャンFF回路1は、リセット時に論理値“0”である接地レベルをフリップフロップ11への付与データとしてデータ入力端子Dに出力する固定値入力機能を有している。   As described above, the scan FF circuit 1 according to the first embodiment has a fixed value input function for outputting the ground level having the logical value “0” to the data input terminal D as the data applied to the flip-flop 11 at the time of reset. Yes.

そして、フリップフロップ11の格納データをデータ出力端子P21及びスキャンアウト端子P22よりデータ出力Q及びスキャンアウト信号SOUTとして出力し、格納データの反転データをデータ出力反転端子P23から反転データ出力QBとして出力する。   Then, the data stored in the flip-flop 11 is output from the data output terminal P21 and the scan-out terminal P22 as the data output Q and the scan-out signal SOUT, and the inverted data of the stored data is output from the data output inversion terminal P23 as the inverted data output QB. .

図3に示すように、例えば、通常動作時(同期リセット信号RBが“H”の時)にはデータDATAの“L”/“H”によってデータ出力Qの“L”/“H”が決定し、スキャンシフト時(スキャンイネーブル信号SENが“H”、同期リセット信号RBが“L”の時)にはスキャンイン信号SINの“L”/“H”によってデータ出力Qの“L”/“H”が決定し、リセット時(スキャンイネーブル信号SENが“L”、同期リセット信号RBが“L”の時)には、スキャンイン信号SIN及びデータDATAの値に関係なく、データ出力Qは“L”に決定される。   As shown in FIG. 3, for example, during normal operation (when the synchronous reset signal RB is “H”), “L” / “H” of the data output Q is determined by “L” / “H” of the data DATA. At the time of scan shift (when the scan enable signal SEN is “H” and the synchronous reset signal RB is “L”), the data output Q is “L” / “H” by the scan-in signal SIN “L” / “H”. At the time of resetting (when the scan enable signal SEN is “L” and the synchronous reset signal RB is “L”), the data output Q is “0” regardless of the values of the scan-in signal SIN and the data DATA. L ".

図4は同期リセット信号発生回路の内部構成を示す説明図である。同図で示す同期リセット信号発生回路を信号設定機能として実施の形態1のスキャンFF回路1は具備する。   FIG. 4 is an explanatory diagram showing the internal configuration of the synchronous reset signal generating circuit. The scan FF circuit 1 according to the first embodiment includes the synchronous reset signal generation circuit shown in FIG.

図4に示すように、同期リセット生成回路21より同期リセット信号RBの基となる原同期リセット信号S21が生成され、ANDゲートG7の一方入力となる。ANDゲートG7の他方入力にはスキャンイネーブル信号SENがインバータG27を介して入力される。なお、スキャンイネーブル信号SENに代えて同様にテスト時に“H”となるテストモード信号TESTMODEを用いても良い。なお、同期リセット生成回路21の内部構成に関しては本願発明との関係は希薄であるため説明を省略する。   As shown in FIG. 4, the synchronous reset generation circuit 21 generates an original synchronous reset signal S21 that is the basis of the synchronous reset signal RB, and becomes one input of the AND gate G7. The scan enable signal SEN is input to the other input of the AND gate G7 through the inverter G27. In place of the scan enable signal SEN, a test mode signal TESTMODE that becomes “H” during the test may be used. In addition, regarding the internal configuration of the synchronous reset generation circuit 21, since the relationship with the present invention is sparse, the description thereof is omitted.

このような構成の同期リセット信号発生回路は、スキャンイネーブル信号SENが“H”とき、同期リセット信号RBは強制的に“L”とされるため、図3で示した、スキャンイネーブル信号SENが“H”、同期リセット信号RBが“H”の組合せは実施の形態1のスキャンFF回路に対して入力されることはなく、スキャンイネーブル信号SENのみの制御下でスキャンイン信号SINをフリップフロップ11への付与データとしてデータ入力端子Dに出力することができる。   In the synchronous reset signal generating circuit having such a configuration, when the scan enable signal SEN is “H”, the synchronous reset signal RB is forcibly set to “L”. Therefore, the scan enable signal SEN shown in FIG. The combination of “H” and the synchronous reset signal RB “H” is not input to the scan FF circuit of the first embodiment, and the scan-in signal SIN is supplied to the flip-flop 11 only under the control of the scan enable signal SEN. Can be output to the data input terminal D.

(効果)
図5及び図6は実施の形態1の効果説明用の回路図である。図5は従来のスキャンFF回路51a,51bを用いて同期リセットを行う集積回路を想定している。なお、スキャンFF回路51a,51bの構成は図43で示したスキャンFF回路51の構成と同様であるため、説明を省略する。
(effect)
5 and 6 are circuit diagrams for explaining the effect of the first embodiment. FIG. 5 assumes an integrated circuit that performs synchronous reset using conventional scan FF circuits 51a and 51b. The configuration of the scan FF circuits 51a and 51b is the same as that of the scan FF circuit 51 shown in FIG.

図5に示すように、スキャンFF回路51aのデータ出力端子P21が組合せ回路31の入力の一つに接続され、スキャンアウト端子P22がスキャンFF回路51bのスキャンイン端子P13に接続される。そして、組合せ回路31の出力の一つである出力信号S31がANDゲートG8の一方入力となり、ANDゲートG8の他方入力が同期リセット信号RBとなり、ANDゲートG8の出力がスキャンFF回路51bのデータ入力端子P12に接続される。   As shown in FIG. 5, the data output terminal P21 of the scan FF circuit 51a is connected to one of the inputs of the combinational circuit 31, and the scan-out terminal P22 is connected to the scan-in terminal P13 of the scan FF circuit 51b. The output signal S31, which is one of the outputs of the combinational circuit 31, becomes one input of the AND gate G8, the other input of the AND gate G8 becomes the synchronous reset signal RB, and the output of the AND gate G8 becomes the data input of the scan FF circuit 51b. Connected to terminal P12.

このような構成の集積回路において、出力信号S31はANDゲートG8を経由してスキャンFF回路51bのデータ入力端子P12に付与される。すなわち、スキャンFF回路51bのフリップフロップ61のデータ入力端子Dへの出力信号S31に基づく信号入力は、ANDゲートG8及びスキャンFF回路51bの2to1セレクタ62からなる第1のデータ入力信号伝搬経路の通過を要することになる。   In the integrated circuit having such a configuration, the output signal S31 is applied to the data input terminal P12 of the scan FF circuit 51b via the AND gate G8. That is, the signal input based on the output signal S31 to the data input terminal D of the flip-flop 61 of the scan FF circuit 51b passes through the first data input signal propagation path composed of the AND gate G8 and the 2to1 selector 62 of the scan FF circuit 51b. Will be required.

図6は実施の形態1のスキャンFF回路1a,1bを用いて同期リセットを行う集積回路を想定している。なお、スキャンFF回路1a,1bの構成は図1で示したスキャンFF回路1の構成と同様であるため、説明を省略する。   FIG. 6 assumes an integrated circuit that performs synchronous reset using the scan FF circuits 1a and 1b of the first embodiment. The configuration of the scan FF circuits 1a and 1b is the same as that of the scan FF circuit 1 shown in FIG.

スキャンFF回路1aのデータ出力端子P21が組合せ回路31の入力の一つに接続され、スキャンアウト端子P22がスキャンFF回路1bのスキャンイン端子P13に接続される。そして、組合せ回路31の出力の一つである出力信号S31がスキャンFF回路1bのデータ入力端子P12に接続される。すなわち、出力信号S31はスキャンFF回路1bのデータDATAとして直接入力される。   The data output terminal P21 of the scan FF circuit 1a is connected to one of the inputs of the combinational circuit 31, and the scan-out terminal P22 is connected to the scan-in terminal P13 of the scan FF circuit 1b. An output signal S31, which is one of the outputs of the combinational circuit 31, is connected to the data input terminal P12 of the scan FF circuit 1b. That is, the output signal S31 is directly input as the data DATA of the scan FF circuit 1b.

このような構成の集積回路において、出力信号S31はデータDATAとして直接にスキャンFF回路1bのデータ入力端子P12に付与される。すなわち、スキャンFF回路1bのフリップフロップ11のデータ入力端子Dへの出力信号S31に基づく信号入力は、スキャンFF回路1bの2to1セレクタ62のみからなる第2のデータ入力信号伝搬経路の通過を要することになる。   In the integrated circuit having such a configuration, the output signal S31 is directly applied to the data input terminal P12 of the scan FF circuit 1b as data DATA. That is, the signal input based on the output signal S31 to the data input terminal D of the flip-flop 11 of the scan FF circuit 1b needs to pass through the second data input signal propagation path including only the 2to1 selector 62 of the scan FF circuit 1b. become.

このように、図5及び図6の比較(上記第1及び第2のデータ入力信号伝搬経路の比較)から明らかなように、リセット機能を付加された場合データDATA入力のセットアップタイミング条件に関し、ANDゲートG8を設ける必要がない分、実施の形態1のスキャンFF回路1a,1bによって構成される集積回路の方が緩和されるため、ANDゲートG8の信号伝搬遅延分の高速化を図ることができる効果を奏する。   Thus, as is clear from the comparison of FIG. 5 and FIG. 6 (comparison of the first and second data input signal propagation paths), the AND timing is related to the setup timing condition of the data DATA input when the reset function is added. Since there is no need to provide the gate G8, the integrated circuit constituted by the scan FF circuits 1a and 1b of the first embodiment is relaxed, so that the speed of the signal propagation delay of the AND gate G8 can be increased. There is an effect.

また、図5及び図6に示すように、スキャンFF回路51aのスキャンアウト端子P22とスキャンFF回路51bのスキャンイン端子P13は直結され、スキャンFF回路1aのスキャンアウト端子P22とスキャンFF回路1bのスキャンイン端子P13間は直結されており、信号伝搬遅延時間は小さいため、スキャンイン信号SINのホールドタイミング条件は厳しくなる。   Further, as shown in FIGS. 5 and 6, the scan-out terminal P22 of the scan FF circuit 51a and the scan-in terminal P13 of the scan FF circuit 51b are directly connected, and the scan-out terminal P22 of the scan FF circuit 1a and the scan FF circuit 1b are connected. Since the scan-in terminal P13 is directly connected and the signal propagation delay time is small, the hold timing condition for the scan-in signal SIN becomes severe.

このため、図5の集積回路の場合、スキャンFF回路51aのスキャンアウト端子P22,スキャンFF回路51bのスキャンイン端子P13との間にバッファを挿入する必要があった。   Therefore, in the integrated circuit of FIG. 5, it is necessary to insert a buffer between the scan-out terminal P22 of the scan FF circuit 51a and the scan-in terminal P13 of the scan FF circuit 51b.

しかしながら、図5の集積回路において、スキャンFF回路51bは1段の2to1セレクタ62を介してスキャンイン信号SINをフリップフロップ11のデータ入力端子D取り込んでいるのに対し、図6の集積回路では、スキャンFF回路1bは2段の2to1セレクタ13及び12を介してスキャンイン信号SINをフリップフロップ11のデータ入力端子Dに取り込んでいるため、2to1セレクタ1個分の信号伝搬時間が図5の集積回路以上に要することになる。   However, in the integrated circuit of FIG. 5, the scan FF circuit 51 b captures the scan-in signal SIN through the data input terminal D of the flip-flop 11 through the one-stage 2 to 1 selector 62, whereas in the integrated circuit of FIG. Since the scan FF circuit 1b takes the scan-in signal SIN into the data input terminal D of the flip-flop 11 via the two-stage 2to1 selectors 13 and 12, the signal propagation time for one 2to1 selector is shown in FIG. That's all it takes.

このように、図5及び図6の比較から明らかなように、スキャンイン信号SINのホールドタイミング条件に関し、図5の構成より1段多い、2段の2to1セレクタ13及び12を設ける分、実施の形態1のスキャンFF回路1a,1bによって構成される集積回路の方が緩和されるという効果を奏する。   As is apparent from the comparison between FIG. 5 and FIG. 6, regarding the hold timing condition of the scan-in signal SIN, the two-stage 2to1 selectors 13 and 12 that are one stage higher than the configuration of FIG. The integrated circuit constituted by the scan FF circuits 1a and 1b according to the first mode has an effect of being relaxed.

(他の態様)
図7は実施の形態1のスキャンFF回路の他の態様を示す回路図である。同図に示すように、図1で示したスキャンFF回路1に比べ、図7で示す他の態様のスキャンFF回路1Xは、2to1セレクタ13に代えてANDゲートG9を設けた点が異なる。以下、異なる点を中心に説明する。
(Other aspects)
FIG. 7 is a circuit diagram showing another aspect of the scan FF circuit of the first embodiment. As shown in the figure, the scan FF circuit 1X of another mode shown in FIG. 7 is different from the scan FF circuit 1 shown in FIG. 1 in that an AND gate G9 is provided in place of the 2to1 selector 13. Hereinafter, different points will be mainly described.

ANDゲートG9は一方入力がスキャンイネーブル端子P14に接続され、他方入力がスキャンイン端子P13に接続され、出力が2to1セレクタ12の“0”入力に接続される。   The AND gate G9 has one input connected to the scan enable terminal P14, the other input connected to the scan-in terminal P13, and the output connected to the “0” input of the 2to1 selector 12.

ANDゲートG9は、スキャンイネーブル信号SENが“H”のとき、スキャンイン信号SINを2to1セレクタ12の“0”入力に付与し、スキャンイネーブル信号SENが“L”のときはスキャンイン信号SINに関係なく固定値“L”を2to1セレクタ12の“0”入力に出力する。したがって、スキャンFF回路1Xは図3で示した真理値表と同様の振る舞い、すなわち、スキャンFF回路1と等価な動作を行うことができる。   The AND gate G9 applies the scan-in signal SIN to the “0” input of the 2to1 selector 12 when the scan enable signal SEN is “H”, and relates to the scan-in signal SIN when the scan enable signal SEN is “L”. Instead, the fixed value “L” is output to the “0” input of the 2to1 selector 12. Therefore, the scan FF circuit 1X can perform the same behavior as the truth table shown in FIG. 3, that is, can perform an operation equivalent to the scan FF circuit 1.

さらに、図6のスキャンFF回路1a,1bに代えて、スキャンFF回路1Xを用いた場合も、リセット機能を付加させた場合のデータDATA入力のセットアップタイミング条件の緩和及びスキャンイン信号SINのホールドタイミング条件の緩和効果も同様に発揮することができる。   Further, even when the scan FF circuit 1X is used instead of the scan FF circuits 1a and 1b in FIG. 6, the setup timing condition of the data DATA input is relaxed and the scan-in signal SIN is held when the reset function is added. The effect of relaxing the conditions can be exhibited as well.

さらに、スキャン回路1Xは、スキャンFF回路1の2to1セレクタ13をANDゲートG9により構成することにより、回路構成の簡略化を図ることができる効果を奏する。   Further, the scan circuit 1X has an effect that the circuit configuration can be simplified by configuring the 2to1 selector 13 of the scan FF circuit 1 with the AND gate G9.

<実施の形態2>
(回路構成)
図8はこの発明の実施の形態2である同期セット端子付きスキャンFF回路の回路構成を示す回路図である。同図に示すように、実施の形態2のスキャンFF回路2はフリップフロップ11及び2to1セレクタ14,15から構成され、入力部にクロック端子P11、データ入力端子P12、スキャンイン端子P13、スキャンイネーブル端子P14及び同期セット端子P16(同期固定値設定端子)を有し、出力部にデータ出力端子P21、スキャンアウト端子P22及びデータ出力反転端子P23を有する。
<Embodiment 2>
(Circuit configuration)
FIG. 8 is a circuit diagram showing a circuit configuration of a scan FF circuit with a synchronous set terminal according to the second embodiment of the present invention. As shown in the figure, the scan FF circuit 2 of the second embodiment is composed of a flip-flop 11 and 2 to 1 selectors 14 and 15, and has a clock terminal P11, a data input terminal P12, a scan-in terminal P13, and a scan enable terminal at the input section. P14 and a synchronous set terminal P16 (synchronous fixed value setting terminal), and a data output terminal P21, a scan-out terminal P22, and a data output inversion terminal P23 in the output section.

クロック端子P11はクロックCLOCKを受け、データ入力端子P12はデータDATAを受け、スキャンイン端子P13はスキャンイン信号SINを受け、スキャンイネーブル端子P14はスキャンイネーブル信号SENを受け、同期セット端子P16に同期セット信号SBを受ける。一方、データ出力端子P21からデータ出力Q、スキャンアウト端子P22からスキャンアウト信号SOUT、データ出力反転端子P23から反転データ出力QBがそれぞれ出力される。   The clock terminal P11 receives the clock CLOCK, the data input terminal P12 receives the data DATA, the scan-in terminal P13 receives the scan-in signal SIN, the scan enable terminal P14 receives the scan enable signal SEN, and is synchronously set to the synchronous set terminal P16. Receives signal SB. On the other hand, a data output Q is output from the data output terminal P21, a scan-out signal SOUT is output from the scan-out terminal P22, and an inverted data output QB is output from the data output inversion terminal P23.

2to1セレクタ15(第1のセレクタ)の“0”入力及び“1”入力は電源電位(所定の固定値)及びスキャンイン端子P13に接続され、制御入力はスキャンイネーブル端子P14に接続される。そして、2to1セレクタ15はスキャンイネーブル端子P14より得られるスキャンイネーブル信号SENに基づき、電源電位及びスキャンイン端子P13より得られるスキャンイン信号SINのうち一方を選択して出力する第1の選択動作を実行する。   The “0” input and “1” input of the 2to1 selector 15 (first selector) are connected to the power supply potential (predetermined fixed value) and the scan-in terminal P13, and the control input is connected to the scan enable terminal P14. Based on the scan enable signal SEN obtained from the scan enable terminal P14, the 2to1 selector 15 executes a first selection operation for selecting and outputting one of the power supply potential and the scan-in signal SIN obtained from the scan-in terminal P13. To do.

2to1セレクタ14(第2のセレクタ)の“1”入力及び“0”入力はデータ入力端子P12及び2to1セレクタ15の出力に接続され、制御入力は同期セット端子P16に接続される。そして、2to1セレクタ14は、同期セット端子P16より得られる同期セット信号SBに基づき、データ入力端子P12より得られるデータDATA及び2to1セレクタ15の出力のうち一方を選択して、フリップフロップ11への付与データとしてデータ入力端子Dに出力する第2の選択動作を実行する。   The “1” input and “0” input of the 2to1 selector 14 (second selector) are connected to the data input terminal P12 and the output of the 2to1 selector 15, and the control input is connected to the synchronous set terminal P16. Then, the 2to1 selector 14 selects one of the data DATA obtained from the data input terminal P12 and the output of the 2to1 selector 15 based on the synchronization set signal SB obtained from the synchronization set terminal P16, and gives it to the flip-flop 11. A second selection operation for outputting data to the data input terminal D is executed.

このように、実施の形態2のスキャンFF回路2は、スキャンイネーブル信号SEN及び同期セット信号SBに基づき、2to1セレクタ15及び14を制御することができる。   As described above, the scan FF circuit 2 according to the second embodiment can control the 2to1 selectors 15 and 14 based on the scan enable signal SEN and the synchronization set signal SB.

フリップフロップ11のクロック端子Cはクロック端子P11に接続され、データ入力端子Dは2to1セレクタ14の出力に接続され、データ出力端子Qinはデータ出力端子P21及びスキャンアウト端子P22に共通に接続され、反転データ出力端子QBinはデータ出力反転端子P23に接続される。なお、フリップフロップ11の内部構成は図2で示した構成と同様である。   The clock terminal C of the flip-flop 11 is connected to the clock terminal P11, the data input terminal D is connected to the output of the 2to1 selector 14, the data output terminal Qin is connected in common to the data output terminal P21 and the scan out terminal P22, and is inverted. The data output terminal QBin is connected to the data output inversion terminal P23. The internal configuration of the flip-flop 11 is the same as that shown in FIG.

(動作)
図9は図8で示した実施の形態2のスキャンFF回路の動作を真理値表形式で示した説明図である。以下、図9を参照しつつ、実施の形態2のスキャンFF回路の動作を説明する。
(Operation)
FIG. 9 is an explanatory diagram showing the operation of the scan FF circuit of the second embodiment shown in FIG. 8 in the form of a truth table. Hereinafter, the operation of the scan FF circuit according to the second embodiment will be described with reference to FIG.

フリップフロップ11はクロック端子P11より得られるクロックCLOCKに同期して動作し、通常動作時に同期セット信号SBを“H”にしてデータ入力端子P12より得られるデータDATAを2to1セレクタ14を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力する。   The flip-flop 11 operates in synchronization with the clock CLOCK obtained from the clock terminal P11. During normal operation, the flip-flop 11 sets the synchronous set signal SB to “H” and the data DATA obtained from the data input terminal P12 through the 2to1 selector 14. 11 is output to the data input terminal D as added data.

一方、スキャンシフト時はスキャンイネーブル信号SENを“H”、同期セット信号SBを“L”にしてスキャンイン端子P13より得られるスキャンイン信号SINを2to1セレクタ15及び14を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力する。   On the other hand, at the time of scan shift, the scan enable signal SEN is set to “H”, the synchronization set signal SB is set to “L”, and the scan-in signal SIN obtained from the scan-in terminal P13 is sent to the flip-flop 11 via the 2to1 selectors 15 and 14. The data is output to the data input terminal D as given data.

また、セット時には、スキャンイネーブル信号SENを“L”、同期セット信号SBを“L”にして、電源電位の信号を2to1セレクタ15及び14を介して、フリップフロップ11への付与データとしてデータ入力端子Dに出力する。   At the time of setting, the scan enable signal SEN is set to “L”, the synchronous set signal SB is set to “L”, and the signal of the power supply potential is supplied to the flip-flop 11 via the 2to1 selectors 15 and 14 as a data input terminal. Output to D.

このように、実施の形態2のスキャンFF回路2は、セット時に論理値“1”である電源電位をフリップフロップ11への付与データとしてデータ入力端子Dに出力する固定値入力機能を有している。   As described above, the scan FF circuit 2 according to the second embodiment has a fixed value input function for outputting the power supply potential having the logical value “1” to the data input terminal D as the application data to the flip-flop 11 when set. Yes.

そして、格納データをデータ出力端子P21及びスキャンアウト端子P22よりデータ出力Q及びスキャンアウト信号SOUTとして出力し、格納データの反転データをデータ出力反転端子P23から反転データ出力QBとして出力する。   Then, the stored data is output as the data output Q and the scan-out signal SOUT from the data output terminal P21 and the scan-out terminal P22, and the inverted data of the stored data is output from the data output inversion terminal P23 as the inverted data output QB.

図9に示すように、例えば、通常動作時(同期セット信号SBが“H”の時)にはデータDATAの“L”/“H”によってデータ出力Qの“L”/“H”が決定し、スキャンシフト時(スキャンイネーブル信号SENが“H”、同期セット信号SBが“L”の時)にはスキャンイン信号SINの“L”/“H”によってデータ出力Qの“L”/“H”が決定し、セット時(スキャンイネーブル信号SENが“L”、同期セット信号SBが“L”の時)には、スキャンイン信号SIN及びデータDATAの値に関係なく、データ出力Qは“H”に決定される。   As shown in FIG. 9, for example, during normal operation (when the synchronization set signal SB is “H”), “L” / “H” of the data output Q is determined by “L” / “H” of the data DATA. At the time of scan shift (when the scan enable signal SEN is “H” and the synchronization set signal SB is “L”), the data output Q is “L” / “H” by the scan-in signal SIN “L” / “H”. When “H” is determined and set (when the scan enable signal SEN is “L” and the synchronous set signal SB is “L”), the data output Q is “regardless of the values of the scan-in signal SIN and the data DATA”. H ".

図10は同期セット信号発生回路の内部構成を示す説明図である。同図で示す同期セット信号発生回路を信号設定機能として実施の形態2のスキャンFF回路2は具備する。   FIG. 10 is an explanatory diagram showing the internal configuration of the synchronous set signal generating circuit. The scan FF circuit 2 according to the second embodiment includes the synchronization set signal generation circuit shown in FIG.

図10に示すように、同期セット生成回路22より同期セット信号SBの基となる原同期セット信号S22が生成され、ANDゲートG11の一方入力となる。ANDゲートG11の他方入力にはスキャンイネーブル信号SENがインバータG10を介して入力される。なお、スキャンイネーブル信号SENに代えて同様にテスト時に“H”となるテストモード信号TESTMODEを用いても良い。なお、同期セット生成回路22の内部構成に関しては本願発明との関係は希薄であるため説明を省略する。   As shown in FIG. 10, the synchronization set generation circuit 22 generates the original synchronization set signal S22 that is the basis of the synchronization set signal SB and serves as one input of the AND gate G11. A scan enable signal SEN is input to the other input of the AND gate G11 through the inverter G10. In place of the scan enable signal SEN, a test mode signal TESTMODE that becomes “H” during the test may be used. In addition, regarding the internal configuration of the synchronization set generation circuit 22, the relationship with the present invention is sparse, and the description thereof is omitted.

このような構成の同期セット信号発生回路は、スキャンイネーブル信号SENが“H”とき、同期セット信号SBは強制的に“L”とされるため、図9で示した、スキャンイネーブル信号SENが“H”、同期セット信号SBが“H”の組合せは実施の形態2のスキャンFF回路に対して入力されることはなく、スキャンイネーブル信号SENのみの制御下でスキャンイン信号SINをフリップフロップ11への付与データとしてデータ入力端子Dに出力することができる。   In the synchronous set signal generation circuit having such a configuration, when the scan enable signal SEN is “H”, the synchronous set signal SB is forcibly set to “L”. Therefore, the scan enable signal SEN shown in FIG. The combination of “H” and the synchronization set signal SB “H” is not input to the scan FF circuit of the second embodiment, and the scan-in signal SIN is supplied to the flip-flop 11 only under the control of the scan enable signal SEN. Can be output to the data input terminal D.

(効果)
図11及び図12は実施の形態2の効果説明用の回路図である。図11は従来のスキャンFF回路51a,51bを用いて同期セットを行う集積回路を想定している。
(effect)
11 and 12 are circuit diagrams for explaining the effect of the second embodiment. FIG. 11 assumes an integrated circuit that performs synchronous set using conventional scan FF circuits 51a and 51b.

図11に示すように、スキャンFF回路51aのデータ出力端子P21が組合せ回路31の入力の一つに接続され、スキャンアウト端子P22がスキャンFF回路51bのスキャンイン端子P13に接続される。そして、組合せ回路31の出力の一つである出力信号S31がORゲートG24の一方入力となり、ORゲートG24の他方入力が同期セット信号SBがインバータG23を介して得られる信号となり、ORゲートG24の出力がスキャンFF回路51bのデータ入力端子P12に接続される。   As shown in FIG. 11, the data output terminal P21 of the scan FF circuit 51a is connected to one of the inputs of the combinational circuit 31, and the scan-out terminal P22 is connected to the scan-in terminal P13 of the scan FF circuit 51b. The output signal S31, which is one of the outputs of the combinational circuit 31, becomes one input of the OR gate G24, and the other input of the OR gate G24 becomes a signal obtained from the synchronous set signal SB via the inverter G23. The output is connected to the data input terminal P12 of the scan FF circuit 51b.

このような構成の集積回路において、出力信号S31はORゲートG24を経由してスキャンFF回路51bのデータ入力端子P12に付与される。すなわち、スキャンFF回路51bのフリップフロップ61のデータ入力端子Dへの出力信号S31に基づく信号入力は、ORゲートG24及びスキャンFF回路51bの2to1セレクタ62からなる第1のデータ入力信号伝搬経路の通過を要することになる。   In the integrated circuit having such a configuration, the output signal S31 is applied to the data input terminal P12 of the scan FF circuit 51b via the OR gate G24. That is, the signal input based on the output signal S31 to the data input terminal D of the flip-flop 61 of the scan FF circuit 51b passes through the first data input signal propagation path composed of the OR gate G24 and the 2to1 selector 62 of the scan FF circuit 51b. Will be required.

図12は実施の形態2のスキャンFF回路2a,2bを用いて同期セットを行う集積回路を想定している。なお、スキャンFF回路2a,2bの構成は図8で示したスキャンFF回路2の構成と同様であるため、説明を省略する。   FIG. 12 assumes an integrated circuit that performs synchronous set using the scan FF circuits 2a and 2b of the second embodiment. The configuration of the scan FF circuits 2a and 2b is the same as that of the scan FF circuit 2 shown in FIG.

スキャンFF回路2aのデータ出力端子P21が組合せ回路31の入力の一つに接続され、スキャンアウト端子P22がスキャンFF回路2bのスキャンイン端子P13に接続される。そして、組合せ回路31の出力の一つである出力信号S31がスキャンFF回路2bのデータ入力端子P12に接続される。すなわち、出力信号S31はスキャンFF回路1bのデータDATAとして直接入力される。   The data output terminal P21 of the scan FF circuit 2a is connected to one of the inputs of the combinational circuit 31, and the scan-out terminal P22 is connected to the scan-in terminal P13 of the scan FF circuit 2b. An output signal S31, which is one of the outputs of the combinational circuit 31, is connected to the data input terminal P12 of the scan FF circuit 2b. That is, the output signal S31 is directly input as the data DATA of the scan FF circuit 1b.

このような構成の集積回路において、出力信号S31はデータDATAとして直接にスキャンFF回路2bのデータ入力端子P12に付与される。すなわち、スキャンFF回路2bのフリップフロップ11のデータ入力端子Dへの出力信号S31に基づく信号入力は、スキャンFF回路2bの2to1セレクタ62のみからなる第2のデータ入力信号伝搬経路の通過を要することになる。   In the integrated circuit having such a configuration, the output signal S31 is directly applied to the data input terminal P12 of the scan FF circuit 2b as data DATA. That is, the signal input based on the output signal S31 to the data input terminal D of the flip-flop 11 of the scan FF circuit 2b needs to pass through the second data input signal propagation path including only the 2to1 selector 62 of the scan FF circuit 2b. become.

このように、図11及び図12の比較(第1及び第2のデータ入力信号伝搬経路の比較)から明らかなように、セット機能を付加された場合データDATA入力のセットアップタイミング条件に関し、ORゲートG24を設ける必要がない分、実施の形態2のスキャンFF回路2a,2bによって構成される集積回路の方が緩和されるため、ORゲートG24の信号伝搬遅延分の高速化を図ることができる効果を奏する。   Thus, as apparent from the comparison of FIG. 11 and FIG. 12 (comparison of the first and second data input signal propagation paths), the OR gate is related to the setup timing condition of the data DATA input when the set function is added. Since the integrated circuit constituted by the scan FF circuits 2a and 2b of the second embodiment is relieved because the G24 is not required, the speed of the signal propagation delay of the OR gate G24 can be increased. Play.

また、図11及び図12に示すように、スキャンFF回路51aのスキャンアウト端子P22とスキャンFF回路51bのスキャンイン端子P13は直結され、スキャンFF回路2aのスキャンアウト端子P22とスキャンFF回路2bのスキャンイン端子P13間は直結されており、信号伝搬遅延時間は小さいため、スキャンイン信号SINのホールドタイミング条件は厳しくなる。   Also, as shown in FIGS. 11 and 12, the scan-out terminal P22 of the scan FF circuit 51a and the scan-in terminal P13 of the scan FF circuit 51b are directly connected, and the scan-out terminal P22 of the scan FF circuit 2a and the scan FF circuit 2b Since the scan-in terminal P13 is directly connected and the signal propagation delay time is small, the hold timing condition for the scan-in signal SIN becomes severe.

このため、図11の集積回路の場合、スキャンFF回路51aのスキャンアウト端子P22,スキャンFF回路51bのスキャンイン端子P13との間にバッファを挿入する必要があった。   For this reason, in the integrated circuit of FIG. 11, it is necessary to insert a buffer between the scan-out terminal P22 of the scan FF circuit 51a and the scan-in terminal P13 of the scan FF circuit 51b.

しかしながら、図11の集積回路において、スキャンFF回路51bは1段の2to1セレクタ62を介してスキャンイン信号SINをフリップフロップ11のデータ入力端子D取り込んでいるのに対し、図12の集積回路では、スキャンFF回路2bは2段の2to1セレクタ15及び14を介してスキャンイン信号SINをフリップフロップ11のデータ入力端子Dに取り込んでいるため、2to1セレクタ1個分の信号伝搬時間が図11の集積回路以上に要することになる。   However, in the integrated circuit of FIG. 11, the scan FF circuit 51b captures the scan-in signal SIN through the data input terminal D of the flip-flop 11 via the one-stage 2to1 selector 62, whereas in the integrated circuit of FIG. Since the scan FF circuit 2b takes the scan-in signal SIN into the data input terminal D of the flip-flop 11 via the two-stage 2to1 selectors 15 and 14, the signal propagation time for one 2to1 selector is shown in FIG. That's all it takes.

このように、図11及び図12の比較から明らかなように、スキャンイン信号SINのホールドタイミング条件に関し、図11の構成より1段多い、2段の2to1セレクタ15及び14を設ける分、実施の形態2のスキャンFF回路2a,2bによって構成される集積回路の方が緩和されるという効果を奏する。   Thus, as is apparent from the comparison between FIGS. 11 and 12, the hold timing condition of the scan-in signal SIN is one stage higher than the structure of FIG. The integrated circuit constituted by the scan FF circuits 2a and 2b according to the mode 2 has an effect of being relaxed.

(他の態様)
図13は実施の形態2のスキャンFF回路の他の態様を示す回路図である。同図に示すように、図8で示したスキャンFF回路2に比べ、図13で示す他の態様のスキャンFF回路2Xは、2to1セレクタ15に代えてORゲートG12を設けた点が異なる。以下、異なる点を中心に説明する。
(Other aspects)
FIG. 13 is a circuit diagram showing another aspect of the scan FF circuit of the second embodiment. As shown in the figure, the scan FF circuit 2X of another mode shown in FIG. 13 is different from the scan FF circuit 2 shown in FIG. 8 in that an OR gate G12 is provided instead of the 2to1 selector 15. Hereinafter, different points will be mainly described.

ORゲートG12は反転一方入力がスキャンイネーブル端子P14に接続され、他方入力がスキャンイン端子P13に接続され、出力が2to1セレクタ14の“0”入力に接続される。   One input of the OR gate G12 is connected to the scan enable terminal P14, the other input is connected to the scan-in terminal P13, and the output is connected to the “0” input of the 2to1 selector 14.

ORゲートG12は、スキャンイネーブル信号SENが“H”のとき、スキャンイン信号SINを2to1セレクタ14の“0”入力に付与し、スキャンイネーブル信号SENが“L”のときはスキャンイン信号SINに関係なく固定値“H”を2to1セレクタ14の“0”入力に出力する。したがって、スキャンFF回路2Xは図9で示した真理値表と同様の振る舞い、すなわち、スキャンFF回路2と等価な動作を行うことができる。   The OR gate G12 applies the scan-in signal SIN to the “0” input of the 2to1 selector 14 when the scan enable signal SEN is “H”, and relates to the scan-in signal SIN when the scan enable signal SEN is “L”. Instead, the fixed value “H” is output to the “0” input of the 2to1 selector 14. Therefore, the scan FF circuit 2X behaves in the same manner as the truth table shown in FIG. 9, that is, can perform an operation equivalent to the scan FF circuit 2.

さらに、図12のスキャンFF回路2a,2bに代えて、スキャンFF回路2Xを用いた場合も、セット機能を付加させた場合のデータDATA入力のセットアップタイミングの緩和及びスキャンイン信号SINのホールドタイミング条件の緩和効果も同様に発揮することができる。   Further, even when the scan FF circuit 2X is used instead of the scan FF circuits 2a and 2b in FIG. 12, the setup timing of the data DATA input and the hold timing condition of the scan-in signal SIN when the set function is added The mitigating effect can also be exhibited.

加えて、スキャンFF回路2Xは、スキャンFF回路2の2to1セレクタ15をORゲートG12により構成することにより、回路構成の簡略化を図ることができる。   In addition, the scan FF circuit 2X can simplify the circuit configuration by configuring the 2to1 selector 15 of the scan FF circuit 2 with the OR gate G12.

<実施の形態3>
(回路構成)
図14はこの発明の実施の形態3である同期リセット端子付きスキャンFF回路の回路構成を示す回路図である。同図に示すように、実施の形態3のスキャンFF回路3はフリップフロップ11及び2to1セレクタ16,17から構成され、実施の形態1と同様、入力部にクロック端子P11、データ入力端子P12、スキャンイン端子P13、スキャンイネーブル端子P14及び同期リセット端子P15を有し、出力部にデータ出力端子P21、スキャンアウト端子P22及びデータ出力反転端子P23を有する。
<Embodiment 3>
(Circuit configuration)
FIG. 14 is a circuit diagram showing a circuit configuration of a scan FF circuit with a synchronous reset terminal according to the third embodiment of the present invention. As shown in the figure, the scan FF circuit 3 according to the third embodiment is composed of a flip-flop 11 and 2to1 selectors 16 and 17, and as in the first embodiment, a clock terminal P11, a data input terminal P12, and a scan are input to the input unit. It has an in terminal P13, a scan enable terminal P14, and a synchronous reset terminal P15, and a data output terminal P21, a scan out terminal P22, and a data output inversion terminal P23 in the output section.

2to1セレクタ17(第1のセレクタ)の“0”入力及び“1”入力は接地レベル及びスキャンイン端子P13に接続され、制御入力は同期リセット端子P15に接続される。そして、2to1セレクタ17は同期リセット端子P15より得られる同期リセット信号RBに基づき、接地レベル及びスキャンイン端子P13より得られるスキャンイン信号SINのうち一方を選択して出力する第1の選択動作を実行する。   The “0” input and “1” input of the 2to1 selector 17 (first selector) are connected to the ground level and scan-in terminal P13, and the control input is connected to the synchronous reset terminal P15. The 2to1 selector 17 executes a first selection operation for selecting and outputting one of the ground level and the scan-in signal SIN obtained from the scan-in terminal P13 based on the synchronous reset signal RB obtained from the synchronous reset terminal P15. To do.

2to1セレクタ16(第2のセレクタ)の“0”入力及び“1”入力はデータ入力端子P12及び2to1セレクタ17の出力に接続され、制御入力はスキャンイネーブル端子P14に接続される。そして、2to1セレクタ16は、スキャンイネーブル端子P14より得られるスキャンイネーブル信号SENに基づき、データ入力端子P12より得られるデータDATA及び2to1セレクタ17の出力のうち一方を選択してフリップフロップ11への付与データとしてデータ入力端子Dに出力する第2の選択動作を実行する。   The “0” input and “1” input of the 2to1 selector 16 (second selector) are connected to the data input terminal P12 and the output of the 2to1 selector 17, and the control input is connected to the scan enable terminal P14. Then, the 2to1 selector 16 selects one of the data DATA obtained from the data input terminal P12 and the output of the 2to1 selector 17 based on the scan enable signal SEN obtained from the scan enable terminal P14, and the data to be given to the flip-flop 11. As a result, a second selection operation for outputting to the data input terminal D is executed.

このように、実施の形態3のスキャンFF回路3は、同期リセット信号RB及びスキャンイネーブル信号SENに基づき、2to1セレクタ17及び16を制御することができる。   As described above, the scan FF circuit 3 according to the third embodiment can control the 2to1 selectors 17 and 16 based on the synchronous reset signal RB and the scan enable signal SEN.

フリップフロップ11のクロック端子Cはクロック端子P11に接続され、データ入力端子Dは2to1セレクタ16の出力に接続され、データ出力端子Qinはデータ出力端子P21及びスキャンアウト端子P22に共通に接続され、反転データ出力端子QBinはデータ出力反転端子P23に接続される。   The clock terminal C of the flip-flop 11 is connected to the clock terminal P11, the data input terminal D is connected to the output of the 2to1 selector 16, the data output terminal Qin is connected in common to the data output terminal P21 and the scan out terminal P22, and is inverted. The data output terminal QBin is connected to the data output inversion terminal P23.

(動作)
図15は図14で示した実施の形態3のスキャンFF回路の動作を真理値表形式で示した説明図である。また、図16はスキャンイネーブル信号SENと同期リセット信号RBとの関係を表形式で示す説明図である。
(Operation)
FIG. 15 is an explanatory diagram showing the operation of the scan FF circuit of the third embodiment shown in FIG. 14 in the form of a truth table. FIG. 16 is an explanatory diagram showing the relationship between the scan enable signal SEN and the synchronous reset signal RB in a table format.

以下、図15及び図16を参照しつつ、実施の形態3のスキャンFF回路の動作を説明する。   Hereinafter, the operation of the scan FF circuit according to the third embodiment will be described with reference to FIGS. 15 and 16.

フリップフロップ11はクロック端子P11より得られるクロックCLOCKに同期して動作し、通常モードのリセット期間中はスキャンイネーブル信号SENを“H”、同期リセット信号RBを“L”にして、接地レベルの信号を2to1セレクタ17及び2to1セレクタ16を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力する。   The flip-flop 11 operates in synchronization with the clock CLOCK obtained from the clock terminal P11. During the reset period of the normal mode, the scan enable signal SEN is set to “H”, the synchronous reset signal RB is set to “L”, and the ground level signal is set. Is output to the data input terminal D as data to be given to the flip-flop 11 via the 2to1 selector 17 and the 2to1 selector 16.

通常モードのリセット解除期間中(通常動作時)は、スキャンイネーブル信号SENを“L”にしてデータ入力端子P12より得られるデータDATAを2to1セレクタ16を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力する。   During the reset release period of the normal mode (during normal operation), the scan enable signal SEN is set to “L”, and the data DATA obtained from the data input terminal P12 is input as data to be given to the flip-flop 11 via the 2to1 selector 16. Output to terminal D.

一方、テストモードのスキャンシフト時はスキャンイネーブル信号SENを“H”、同期リセット信号RBを“H”にしてスキャンイン端子P13より得られるスキャンイン信号SINを2to1セレクタ17及び16を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力する。   On the other hand, at the time of scan shift in the test mode, the scan enable signal SEN is set to “H”, the synchronous reset signal RB is set to “H”, and the scan-in signal SIN obtained from the scan-in terminal P13 is flip-flops via the 2to1 selectors 17 and 16. 11 is output to the data input terminal D as added data.

なお、テストモードのスキャンテスト時は、通常動作時と同様、スキャンイネーブル信号SENを“L”にして、データ入力端子P12より得られるデータDATAを、2to1セレクタ16を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力する。   Note that, during the scan test in the test mode, as in the normal operation, the scan enable signal SEN is set to “L”, and the data DATA obtained from the data input terminal P12 is applied to the flip-flop 11 via the 2to1 selector 16. The data is output to the data input terminal D.

そして、格納データをデータ出力端子P21及びスキャンアウト端子P22よりデータ出力Q及びスキャンアウト信号SOUTとして出力し、格納データの反転データをデータ出力反転端子P23から反転データ出力QBとして出力する。   Then, the stored data is output as the data output Q and the scan-out signal SOUT from the data output terminal P21 and the scan-out terminal P22, and the inverted data of the stored data is output from the data output inversion terminal P23 as the inverted data output QB.

図15に示すように、例えば、通常動作時(スキャンイネーブル信号SENが“L”の時)にはデータDATAの“L”/“H”によってデータ出力Qの“L”/“H”が決定し、スキャンシフト時(スキャンイネーブル信号SENが“H”、同期リセット信号RBが“H”の時)にはスキャンイン信号SINの“L”/“H”によってデータ出力Qの“L”/“H”が決定し、リセット時(スキャンイネーブル信号SENが“H”、同期リセット信号RBが“L”の時)には、スキャンイン信号SIN及びデータDATAの値に関係なく、データ出力Qは“L”に決定される。   As shown in FIG. 15, for example, during normal operation (when the scan enable signal SEN is “L”), “L” / “H” of the data output Q is determined by “L” / “H” of the data DATA. At the time of scan shift (when the scan enable signal SEN is “H” and the synchronous reset signal RB is “H”), the data output Q is “L” / “H” according to the scan-in signal SIN “L” / “H”. When “H” is determined and reset (when the scan enable signal SEN is “H” and the synchronous reset signal RB is “L”), the data output Q is “0” regardless of the values of the scan-in signal SIN and the data DATA. L ".

図17は同期リセット信号及びスキャンイネーブル信号発生回路の内部構成を示す説明図である。同図で示す信号発生回路を信号設定機能として実施の形態3のスキャンFF回路3は具備する。   FIG. 17 is an explanatory diagram showing the internal configuration of the synchronous reset signal and scan enable signal generation circuit. The scan FF circuit 3 according to the third embodiment is provided with the signal generation circuit shown in FIG.

同図に示すように、リセット信号RESETを受けるリセット端子P31と、テスト信号TESTを受けるテスト端子P32と、スキャン信号SCANを受けるスキャン端子P33を有している。   As shown in the figure, it has a reset terminal P31 that receives a reset signal RESET, a test terminal P32 that receives a test signal TEST, and a scan terminal P33 that receives a scan signal SCAN.

テスト信号TESTは“0”のとき通常モードを指示し、“1”のときテストモードを指示する。リセット信号RESETは“0”のときリセット中を指示し、“1”のときリセット解除を指示し、スキャン信号SCANはスキャンシフト時は“0”を指示し、スキャンテスト時は“1”を指示する。   When the test signal TEST is “0”, the normal mode is instructed, and when it is “1”, the test mode is instructed. Reset signal RESET indicates “0” to indicate resetting, “1” indicates reset release, scan signal SCAN indicates “0” during scan shift, and “1” during scan test To do.

ORゲートG22は一方入力がリセット端子P31に接続され、他方入力がテスト端子P32に接続され、ANDゲートG19は反転一方入力がリセット端子P31に接続され、反転他方入力がテスト端子P32に接続され、ANDゲートG20は一方入力がテスト端子P32に接続され、反転他方入力がスキャン端子P33に接続され、ORゲートG21の一方入力がANDゲートG19の出力に接続され、他方入力がANDゲートG20の出力に接続される。   The OR gate G22 has one input connected to the reset terminal P31, the other input connected to the test terminal P32, the AND gate G19 has an inverted one input connected to the reset terminal P31, and an inverted other input connected to the test terminal P32. The AND gate G20 has one input connected to the test terminal P32, the other input connected to the scan terminal P33, one input of the OR gate G21 connected to the output of the AND gate G19, and the other input connected to the output of the AND gate G20. Connected.

そして、ORゲートG22の出力が同期リセット信号RBとなり、ORゲートG21の出力がスキャンイネーブル信号SENとなる。   The output of the OR gate G22 becomes the synchronous reset signal RB, and the output of the OR gate G21 becomes the scan enable signal SEN.

したがって、図17に示す回路は、図16で示す関係の信号を出力する。なお、スキャンテスト時とは、テスト時にデータ入力端子P12より得られるデータDATAをフリップフロップ11に取り込ませることを意味し、スキャンシフト時とは、スキャンイン信号SINをフリップフロップ11に取り込ませ、スキャンアウト信号SOUTを外部に出力することを意味する。   Therefore, the circuit shown in FIG. 17 outputs a signal having the relationship shown in FIG. The scan test means that the data DATA obtained from the data input terminal P12 at the time of the test is taken into the flip-flop 11. The scan shift means that the scan-in signal SIN is taken into the flip-flop 11 and the scan is performed. This means that the out signal SOUT is output to the outside.

実施の形態3のスキャンFF回路3は、スキャンシフト時はスキャンイネーブル信号SENが“H”、同期リセット信号RBが“H”に設定されるため、同期リセット信号RBに基づき2to1セレクタ17からスキャンイン信号SINが選択された場合は、必ず、スキャンイネーブル信号SENに基づき2to1セレクタ16からスキャンイン信号SINが選択されるため、同期リセット信号RB及びスキャンイネーブル信号SENの制御下でスキャンイン信号SINをフリップフロップ11への付与データとし入力することができる。   In the scan FF circuit 3 according to the third embodiment, the scan enable signal SEN is set to “H” and the synchronization reset signal RB is set to “H” at the time of scan shift, so that the scan-in from the 2to1 selector 17 is performed based on the synchronization reset signal RB. When the signal SIN is selected, the scan-in signal SIN is always selected from the 2to1 selector 16 based on the scan enable signal SEN, so that the scan-in signal SIN is flip-flops under the control of the synchronous reset signal RB and the scan enable signal SEN. Can be input as data to be assigned to the group 11.

(効果)
図6のスキャンFF回路1a,1bに代えて、実施の形態3のスキャンFF回路3を用いた場合も、実施の形態1と同様、リセット機能を付加させた場合のデータDATA入力のセットアップタイミング条件の緩和及びスキャンイン信号SINのホールドタイミング条件の緩和効果も同様に発揮することができる。
(effect)
When the scan FF circuit 3 according to the third embodiment is used in place of the scan FF circuits 1a and 1b in FIG. 6, as in the first embodiment, a setup timing condition for data DATA input when a reset function is added. And the effect of relaxing the hold timing condition of the scan-in signal SIN can also be exhibited.

(他の態様)
図18は実施の形態3のスキャンFF回路の他の態様を示す回路図である。同図に示すように、図14で示したスキャンFF回路3に比べ、図18で示す他の態様のスキャンFF回路3Xは、2to1セレクタ17に代えてANDゲートG31を設けた点が異なる。以下、異なる点を中心に説明する。
(Other aspects)
FIG. 18 is a circuit diagram showing another aspect of the scan FF circuit of the third embodiment. As shown in the figure, the scan FF circuit 3X of another mode shown in FIG. 18 is different from the scan FF circuit 3 shown in FIG. 14 in that an AND gate G31 is provided instead of the 2to1 selector 17. Hereinafter, different points will be mainly described.

ANDゲートG31は一方入力が同期リセット端子P15に接続され、他方入力がスキャンイン端子P13に接続され、出力が2to1セレクタ16の“1”入力に接続される。   The AND gate G31 has one input connected to the synchronous reset terminal P15, the other input connected to the scan-in terminal P13, and the output connected to the “1” input of the 2to1 selector 16.

ANDゲートG31は、同期リセット信号RBが“H”のとき、スキャンイン信号SINを2to1セレクタ16の“1”入力に付与し、同期リセット信号RBが“L”のときはスキャンイン信号SINに関係なく固定値“L”を2to1セレクタ16の“1”入力に付与する。したがって、スキャンFF回路3Xは図15で示した真理値表と同様の振る舞い、すなわち、スキャンFF回路3と等価な動作を行うことができる。   The AND gate G31 applies the scan-in signal SIN to the “1” input of the 2to1 selector 16 when the synchronous reset signal RB is “H”, and relates to the scan-in signal SIN when the synchronous reset signal RB is “L”. Instead, a fixed value “L” is given to the “1” input of the 2to1 selector 16. Therefore, the scan FF circuit 3X behaves in the same manner as the truth table shown in FIG. 15, that is, can perform an operation equivalent to the scan FF circuit 3.

さらに、図6のスキャンFF回路1a,1bに代えて、実施の形態3の他の態様のスキャンFF回路3Xを用いた場合も、実施の形態1と同様、リセット機能を付加させた場合のデータDATA入力のセットアップタイミング条件の緩和及びスキャンイン信号SINのホールドタイミング条件の緩和効果も同様に発揮することができる。   Further, when the scan FF circuit 3X according to another aspect of the third embodiment is used in place of the scan FF circuits 1a and 1b in FIG. 6, the data when the reset function is added as in the first embodiment. The relaxation effect of the setup timing condition of the DATA input and the hold timing condition of the scan-in signal SIN can be similarly exhibited.

加えて、スキャンFF回路3Xは、スキャンFF回路3の2to1セレクタ17をANDゲートG31により構成することにより、回路構成の簡略化を図ることができる。   In addition, the scan FF circuit 3X can simplify the circuit configuration by configuring the 2to1 selector 17 of the scan FF circuit 3 by the AND gate G31.

<実施の形態4>
(回路構成)
図19はこの発明の実施の形態4である同期セット端子付きスキャンFF回路の回路構成を示す回路図である。同図に示すように、実施の形態4のスキャンFF回路2はフリップフロップ11及び2to1セレクタ18,19から構成され、実施の形態2と同様、入力部にクロック端子P11、データ入力端子P12、スキャンイン端子P13、スキャンイネーブル端子P14及び同期セット端子P16を有し、出力部にデータ出力端子P21、スキャンアウト端子P22及びデータ出力反転端子P23を有する。
<Embodiment 4>
(Circuit configuration)
FIG. 19 is a circuit diagram showing a circuit configuration of a scan FF circuit with a synchronous set terminal according to the fourth embodiment of the present invention. As shown in the figure, the scan FF circuit 2 according to the fourth embodiment is composed of a flip-flop 11 and 2 to 1 selectors 18 and 19, and as in the second embodiment, a clock terminal P11, a data input terminal P12, and a scan are input to the input unit. It has an in terminal P13, a scan enable terminal P14, and a synchronous set terminal P16, and a data output terminal P21, a scan out terminal P22, and a data output inversion terminal P23 in the output section.

2to1セレクタ19(第1のセレクタ)の“0”入力及び“1”入力は電源電位及びスキャンイン端子P13に接続され、制御入力は同期セット端子P16に接続される。そして、2to1セレクタ19は同期セット端子P16より得られる同期セット信号SBに基づき、電源電位及びスキャンイン端子P13より得られるスキャンイン信号SINのうち一方を選択して出力する第1の選択動作を実行する。   The “0” input and “1” input of the 2to1 selector 19 (first selector) are connected to the power supply potential and the scan-in terminal P13, and the control input is connected to the synchronous set terminal P16. The 2to1 selector 19 executes a first selection operation for selecting and outputting one of the power supply potential and the scan-in signal SIN obtained from the scan-in terminal P13 based on the synchronization set signal SB obtained from the synchronization set terminal P16. To do.

2to1セレクタ18(第2のセレクタ)の“0”入力及び“1”入力はデータ入力端子P12及び2to1セレクタ19の出力に接続され、制御入力はスキャンイネーブル端子P14に接続される。そして、2to1セレクタ18は、スキャンイネーブル端子P14より得られるスキャンイネーブル信号SENに基づき、データ入力端子P12より得られるデータDATA及び2to1セレクタ19の出力のうち一方を選択してフリップフロップ11への付与データとしてデータ入力端子Dに出力する第2の選択動作を実行する。   The “0” input and “1” input of the 2to1 selector 18 (second selector) are connected to the data input terminal P12 and the output of the 2to1 selector 19, and the control input is connected to the scan enable terminal P14. Then, the 2to1 selector 18 selects one of the data DATA obtained from the data input terminal P12 and the output of the 2to1 selector 19 based on the scan enable signal SEN obtained from the scan enable terminal P14, and the data to be given to the flip-flop 11. As a result, a second selection operation for outputting to the data input terminal D is executed.

このように、実施の形態4のスキャンFF回路4は、同期セット信号SB及びスキャンイネーブル信号SENに基づき、2to1セレクタ19及び18を制御することができる。   As described above, the scan FF circuit 4 according to the fourth embodiment can control the 2to1 selectors 19 and 18 based on the synchronous set signal SB and the scan enable signal SEN.

フリップフロップ11のクロック端子Cはクロック端子P11に接続され、データ入力端子Dは2to1セレクタ18の出力に接続され、データ出力端子Qinはデータ出力端子P21及びスキャンアウト端子P22に共通に接続され、反転データ出力端子QBinはデータ出力反転端子P23に接続される。なお、フリップフロップ11の内部構成は図2で示した構成と同様である。   The clock terminal C of the flip-flop 11 is connected to the clock terminal P11, the data input terminal D is connected to the output of the 2to1 selector 18, the data output terminal Qin is connected in common to the data output terminal P21 and the scan out terminal P22, and is inverted. The data output terminal QBin is connected to the data output inversion terminal P23. The internal configuration of the flip-flop 11 is the same as that shown in FIG.

(動作)
図20は図19で示した実施の形態4のスキャンFF回路の動作を真理値表形式で示した説明図である。また、図21はスキャンイネーブル信号SENと同期セット信号SBとの関係を表形式で示す説明図である。
(Operation)
FIG. 20 is an explanatory diagram showing the operation of the scan FF circuit of the fourth embodiment shown in FIG. 19 in the form of a truth table. FIG. 21 is an explanatory diagram showing the relationship between the scan enable signal SEN and the synchronization set signal SB in a tabular form.

以下、図20を及び図21参照しつつ、実施の形態4のスキャンFF回路の動作を説明する。   Hereinafter, the operation of the scan FF circuit according to the fourth embodiment will be described with reference to FIGS.

フリップフロップ11はクロック端子P11より得られるクロックCLOCKに同期して動作し、通常モードのセット解除中(通常動作時)にスキャンイネーブル信号SENを“L”にしてデータ入力端子P12より得られるデータDATAを、2to1セレクタ18を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力する。   The flip-flop 11 operates in synchronization with the clock CLOCK obtained from the clock terminal P11, and sets the scan enable signal SEN to “L” during the normal mode set release (during normal operation) to obtain the data DATA obtained from the data input terminal P12. Is output to the data input terminal D through the 2to1 selector 18 as data to be given to the flip-flop 11.

一方、テストモードのスキャンシフト時はスキャンイネーブル信号SENを“H”、同期セット信号SBを“H”にしてスキャンイン端子P13より得られるスキャンイン信号SINを2to1セレクタ19及び18を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力する。   On the other hand, at the time of scan shift in the test mode, the scan enable signal SEN is set to “H”, the synchronization set signal SB is set to “H”, and the scan-in signal SIN obtained from the scan-in terminal P13 is flip-flops via the 2to1 selectors 19 and 18. 11 is output to the data input terminal D as added data.

また、通常モードのセット期間中であるセット時には、スキャンイネーブル信号SENを“H”、同期セット信号SBを“L”にして、電源電位の信号を2to1セレクタ19及び18を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力する。   At the time of setting during the normal mode setting period, the scan enable signal SEN is set to “H”, the synchronous set signal SB is set to “L”, and the signal of the power supply potential is sent to the flip-flop 11 via the 2to1 selectors 19 and 18. To the data input terminal D.

なお、テストモードのスキャンテスト時は、通常動作時と同様、スキャンイネーブル信号SENを“L”にして、データ入力端子P12より得られるデータDATAを2to1セレクタ16を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力する。   During the scan test in the test mode, as in the normal operation, the scan enable signal SEN is set to “L”, and the data DATA obtained from the data input terminal P12 is applied to the flip-flop 11 via the 2to1 selector 16. To the data input terminal D.

そして、格納データをデータ出力端子P21及びスキャンアウト端子P22よりデータ出力Q及びスキャンアウト信号SOUTとして出力し、格納データの反転データをデータ出力反転端子P23から反転データ出力QBとして出力する。   Then, the stored data is output as the data output Q and the scan-out signal SOUT from the data output terminal P21 and the scan-out terminal P22, and the inverted data of the stored data is output from the data output inversion terminal P23 as the inverted data output QB.

図20に示すように、例えば、通常動作時(スキャンイネーブル信号SENが“L”の時)にはデータDATAの“L”/“H”によってデータ出力Qの“L”/“H”が決定し、スキャンシフト時(スキャンイネーブル信号SENが“H”、同期セット信号SBが“H”の時)にはスキャンイン信号SINの“L”/“H”によってデータ出力Qの“L”/“H”が決定し、セット時(スキャンイネーブル信号SENが“H”、同期セット信号SBが“L”の時)には、スキャンイン信号SIN及びデータDATAの値に関係なく、データ出力Qは“H”に決定される。   As shown in FIG. 20, for example, during normal operation (when the scan enable signal SEN is “L”), “L” / “H” of the data output Q is determined by “L” / “H” of the data DATA. At the time of scan shift (when the scan enable signal SEN is “H” and the synchronization set signal SB is “H”), the data output Q is “L” / “H” by the scan-in signal SIN “L” / “H”. When “H” is determined and set (when the scan enable signal SEN is “H” and the synchronous set signal SB is “L”), the data output Q is “irrespective of the values of the scan-in signal SIN and the data DATA”. H ".

なお、実施の形態4のスキャンFF回路4も、実施の形態3のスキャンFF回路3と同様、図21で示す関係を満足する図17相当の信号発生回路を信号設定機能として実施の形態4のスキャンFF回路4は具備する。   Note that, similarly to the scan FF circuit 3 of the third embodiment, the scan FF circuit 4 of the fourth embodiment also uses the signal generation circuit corresponding to FIG. 17 that satisfies the relationship shown in FIG. The scan FF circuit 4 is provided.

(効果)
図12のスキャンFF回路2a,2bに代えて、実施の形態4のスキャンFF回路4を用いた場合も、実施の形態2と同様、セット機能を付加させた場合のデータDATA入力のセットアップタイミング条件の緩和及びスキャンイン信号SINのホールドタイミング条件の緩和効果も同様に発揮することができる。
(effect)
When the scan FF circuit 4 according to the fourth embodiment is used in place of the scan FF circuits 2a and 2b in FIG. 12, the setup timing condition for data DATA input when the set function is added as in the second embodiment. And the effect of relaxing the hold timing condition of the scan-in signal SIN can also be exhibited.

(他の態様)
図22は実施の形態4のスキャンFF回路の他の態様を示す回路図である。同図に示すように、図19で示したスキャンFF回路4に比べ、図22で示す他の態様のスキャンFF回路4Xは、2to1セレクタ19に代えてORゲートG32を設けた点が異なる。以下、異なる点を中心に説明する。
(Other aspects)
FIG. 22 is a circuit diagram showing another aspect of the scan FF circuit of the fourth embodiment. As shown in the figure, the scan FF circuit 4X of another mode shown in FIG. 22 is different from the scan FF circuit 4 shown in FIG. 19 in that an OR gate G32 is provided in place of the 2to1 selector 19. Hereinafter, different points will be mainly described.

ORゲートG32は反転一方入力が同期セット端子P16に接続され、他方入力がスキャンイン端子P13に接続され、出力が2to1セレクタ18の“1”入力に接続される。   One of the inverted inputs of the OR gate G32 is connected to the synchronous set terminal P16, the other input is connected to the scan-in terminal P13, and the output is connected to the “1” input of the 2to1 selector 18.

ORゲートG32は、同期セット信号SBが“H”のとき、スキャンイン信号SINを2to1セレクタ18の“1”入力に付与し、同期セット信号SBが“L”のときはスキャンイン信号SINに関係なく固定値“H”を2to1セレクタ18の“1”入力に付与する。したがって、スキャンFF回路4Xは図20で示した真理値表と同様の振る舞い、すなわち、スキャンFF回路4と等価な動作を行うことができる。   The OR gate G32 applies the scan-in signal SIN to the “1” input of the 2to1 selector 18 when the synchronization set signal SB is “H”, and relates to the scan-in signal SIN when the synchronization set signal SB is “L”. Instead, a fixed value “H” is given to the “1” input of the 2to1 selector 18. Therefore, the scan FF circuit 4X behaves in the same manner as the truth table shown in FIG. 20, that is, can perform an operation equivalent to the scan FF circuit 4.

さらに、図12のスキャンFF回路2a,2bに代えて、実施の形態4のスキャンFF回路4Xを用いた場合も、実施の形態2と同様、セット機能を付加させた場合のデータDATA入力のセットアップタイミング条件の緩和及びスキャンイン信号SINのホールドタイミング条件の緩和効果も同様に発揮することができる。   Further, when the scan FF circuit 4X of the fourth embodiment is used in place of the scan FF circuits 2a and 2b in FIG. 12, as in the second embodiment, the setup of the data DATA input when the set function is added The relaxation effect of the timing condition and the hold timing condition of the scan-in signal SIN can be similarly exhibited.

加えて、スキャンFF回路4Xは、スキャンFF回路4の2to1セレクタ19をORゲートG32により構成することにより、回路構成の簡略化を図ることができる。   In addition, the scan FF circuit 4X can simplify the circuit configuration by configuring the 2to1 selector 19 of the scan FF circuit 4 with an OR gate G32.

<実施の形態5>
(回路構成)
図23はこの発明の実施の形態5である同期リセット端子付きスキャンFF回路の回路構成を示す回路図である。同図に示すように、実施の形態5のスキャンFF回路5はフリップフロップ11及び2to1セレクタ23,24から構成され、実施の形態1と同様、入力部にクロック端子P11、データ入力端子P12、スキャンイン端子P13、スキャンイネーブル端子P14及び同期リセット端子P15を有し、出力部にデータ出力端子P21及びスキャンアウト端子P22を有する。
<Embodiment 5>
(Circuit configuration)
FIG. 23 is a circuit diagram showing a circuit configuration of a scan FF circuit with a synchronous reset terminal according to the fifth embodiment of the present invention. As shown in the figure, the scan FF circuit 5 of the fifth embodiment is composed of a flip-flop 11 and 2to1 selectors 23 and 24, and as in the first embodiment, a clock terminal P11, a data input terminal P12, and a scan are input to the input section. It has an in terminal P13, a scan enable terminal P14, and a synchronous reset terminal P15, and a data output terminal P21 and a scan out terminal P22 in the output section.

2to1セレクタ23(第1のセレクタ)の“1”入力及び“0”入力はデータ入力端子P12及びスキャンイン端子P13に接続され、制御入力は同期リセット端子P15が接続される。そして、2to1セレクタ23は、同期リセット端子P15より得られる同期リセット信号RBに基づき、データ入力端子P12より得られるデータDATA及びスキャンイン端子P13より得られるスキャンイン信号SINのうち一方を選択して、フリップフロップ11への付与データとしてデータ入力端子Dに出力する第1の選択動作を実行する。   The “1” input and “0” input of the 2to1 selector 23 (first selector) are connected to the data input terminal P12 and the scan-in terminal P13, and the control input is connected to the synchronous reset terminal P15. Then, the 2to1 selector 23 selects one of the data DATA obtained from the data input terminal P12 and the scan-in signal SIN obtained from the scan-in terminal P13 based on the synchronous reset signal RB obtained from the synchronous reset terminal P15. A first selection operation for outputting to the data input terminal D as data to be given to the flip-flop 11 is executed.

2to1セレクタ24(第2のセレクタ)の“0”入力及び“1”入力は接地レベル及びフリップフロップ11のデータ出力端子Qinに接続され、制御入力はスキャンイネーブル端子P14に接続され、2to1セレクタ24の出力がスキャンアウト端子P22に接続される。そして、2to1セレクタ24はスキャンイネーブル端子P14より得られるスキャンイネーブル信号SENに基づき、接地レベル及びデータ出力端子Qinより得られるフリップフロップ11のデータ出力Qのうち一方を選択してスキャンアウト端子P22からスキャンアウト信号SOUTとして出力する第2の選択動作を実行する。   The “0” input and “1” input of the 2to1 selector 24 (second selector) are connected to the ground level and the data output terminal Qin of the flip-flop 11, and the control input is connected to the scan enable terminal P14. The output is connected to the scan-out terminal P22. The 2to1 selector 24 selects one of the ground level and the data output Q of the flip-flop 11 obtained from the data output terminal Qin based on the scan enable signal SEN obtained from the scan enable terminal P14, and scans from the scanout terminal P22. A second selection operation for outputting as the out signal SOUT is executed.

このように、実施の形態5のスキャンFF回路5は、同期リセット信号RB及びスキャンイネーブル信号SENに基づき、2to1セレクタ23及び24を制御することができる。   As described above, the scan FF circuit 5 according to the fifth embodiment can control the 2to1 selectors 23 and 24 based on the synchronous reset signal RB and the scan enable signal SEN.

フリップフロップ11のクロック端子Cはクロック端子P11に接続され、データ入力端子Dは2to1セレクタ23の出力に接続され、データ出力端子Qinは2to1セレクタ24の“1”入力と共にデータ出力端子P21に接続される。   The clock terminal C of the flip-flop 11 is connected to the clock terminal P11, the data input terminal D is connected to the output of the 2to1 selector 23, and the data output terminal Qin is connected to the data output terminal P21 together with the “1” input of the 2to1 selector 24. The

(動作)
このような構成において、フリップフロップ11はクロック端子P11より得られるクロックCLOCKに同期して動作する。そして、リセット時は前段のスキャンFF回路5のスキャンイネーブル信号SENを“L”にして、接地レベルの信号を2to1セレクタ24を介してスキャンアウト端子P22からスキャンアウト信号SOUTとして出力する。一方、後段のスキャンFF回路5は同期リセット信号RBを“L”にして、スキャンイン信号SIN(前段のスキャンアウト信号SOUT)を選択する。
(Operation)
In such a configuration, the flip-flop 11 operates in synchronization with the clock CLOCK obtained from the clock terminal P11. At the time of reset, the scan enable signal SEN of the scan FF circuit 5 in the previous stage is set to “L”, and a ground level signal is output from the scan out terminal P22 as the scan out signal SOUT via the 2to1 selector 24. On the other hand, the subsequent scan FF circuit 5 sets the synchronous reset signal RB to “L” and selects the scan-in signal SIN (previous scan-out signal SOUT).

その結果、後段のスキャンFF回路4は、スキャンイン端子P13及び2to1セレクタ23を介して接地レベルをフリップフロップ11への付与データとして入力するリセット動作を行うことができる。   As a result, the post-stage scan FF circuit 4 can perform a reset operation in which the ground level is input to the flip-flop 11 via the scan-in terminal P13 and the 2to1 selector 23.

このように、実施の形態5のスキャンFF回路5は、リセット時に論理値“0”である接地レベルを、後段のスキャンFF回路5のスキャンイン端子P13に入力する固定値入力機能を有している。   As described above, the scan FF circuit 5 according to the fifth embodiment has a fixed value input function for inputting the ground level that is the logical value “0” to the scan-in terminal P13 of the subsequent-stage scan FF circuit 5 at the time of reset. Yes.

通常動作時は、同期リセット信号RBを“H”、スキャンイネーブル信号SENを“H”にしてデータ入力端子P12より得られるデータDATAを2to1セレクタ23を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力し、2to1セレクタ24を介してデータ出力端子Qinをスキャンアウト端子P22に接続する。   During normal operation, the synchronous reset signal RB is set to “H”, the scan enable signal SEN is set to “H”, and data DATA obtained from the data input terminal P12 is input as data to be given to the flip-flop 11 via the 2to1 selector 23. The data is output to the terminal D, and the data output terminal Qin is connected to the scan-out terminal P22 via the 2to1 selector 24.

一方、スキャンシフト時はスキャンイネーブル信号SENを“H”、同期リセット信号RBを“L”にしてスキャンイン端子P13より得られるスキャンイン信号SINを2to1セレクタ23を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力し、2to1セレクタ24を介してデータ出力端子Qinをスキャンアウト端子P22に接続する。   On the other hand, at the time of scan shift, the scan enable signal SEN is set to “H”, the synchronous reset signal RB is set to “L”, and the scan-in signal SIN obtained from the scan-in terminal P13 is applied to the flip-flop 11 via the 2to1 selector 23. To the data input terminal D, and the data output terminal Qin is connected to the scan-out terminal P22 via the 2to1 selector 24.

そして、格納データをデータ出力端子P21よりデータ出力Qとして出力するとともに、通常動作時及びスキャンシフト時にはスキャンアウト端子P22よりスキャンアウト信号SOUTとして出力する。   The stored data is output as the data output Q from the data output terminal P21, and is output as the scan-out signal SOUT from the scan-out terminal P22 during the normal operation and the scan shift.

(効果)
図6のスキャンFF回路1a,1bに代えて、実施の形態5のスキャンFF回路5を用いた場合は、実施の形態1と同様、2to1セレクタ23のみを介してデータDATAをフリップフロップ11への付与データとしてデータ入力端子Dに出力することができるため、リセット機能を付加させた場合のデータDATA入力のセットアップタイミング条件の緩和を図ることができる。
(effect)
When the scan FF circuit 5 according to the fifth embodiment is used instead of the scan FF circuits 1a and 1b in FIG. 6, the data DATA is transferred to the flip-flop 11 only through the 2to1 selector 23 as in the first embodiment. Since it can be output to the data input terminal D as the added data, it is possible to ease the setup timing condition of the data DATA input when the reset function is added.

さらに、図6のスキャンFF回路1a,1bに代えて、実施の形態5のスキャンFF回路5を用いた場合は、前段のスキャンFF回路5(スキャンFF回路1aの置き換え)のスキャンアウト端子P22が直接に後段のスキャンFF回路5(スキャンFF回路1bの置き換え)のスキャンイン端子P13に接続される場合、前段のスキャンFF回路5の2to1セレクタ24及び後段のスキャンFF回路5の2to1セレクタ23を介して、前段のスキャンFF回路5のフリップフロップ11のデータ出力Qが後段のスキャンFF回路5のフリップフロップ11への付与データとしてとして取り込まれることになり、後段のスキャンFF回路5のスキャンイン信号に対するホールドタイミイング条件の緩和を図ることができる。   Further, when the scan FF circuit 5 according to the fifth embodiment is used in place of the scan FF circuits 1a and 1b in FIG. 6, the scan-out terminal P22 of the preceding scan FF circuit 5 (replacement of the scan FF circuit 1a) is When directly connected to the scan-in terminal P13 of the subsequent scan FF circuit 5 (replacement of the scan FF circuit 1b), the 2 to 1 selector 24 of the previous scan FF circuit 5 and the 2 to 1 selector 23 of the subsequent scan FF circuit 5 are connected. Thus, the data output Q of the flip-flop 11 of the preceding scan FF circuit 5 is taken in as data to be given to the flip-flop 11 of the succeeding scan FF circuit 5, and the scan-in signal for the scan FF circuit 5 of the succeeding stage is captured. The hold timing conditions can be relaxed.

(他の態様)
図24は実施の形態5のスキャンFF回路の他の態様を示す回路図である。同図に示すように、図23で示したスキャンFF回路5に比べ、図24で示す他の態様のスキャンFF回路5Xは、2to1セレクタ24に代えてANDゲートG33を設けた点が異なる。以下、異なる点を中心に説明する。
(Other aspects)
FIG. 24 is a circuit diagram showing another aspect of the scan FF circuit of the fifth embodiment. As shown in FIG. 23, the scan FF circuit 5X shown in FIG. 24 differs from the scan FF circuit 5 shown in FIG. 23 in that an AND gate G33 is provided instead of the 2to1 selector 24. Hereinafter, different points will be mainly described.

ANDゲートG33は一方入力がフリップフロップ11のデータ出力端子Qinに接続され、他方入力がスキャンイネーブル端子P14に接続され、出力がスキャンアウト端子P22に接続される。   The AND gate G33 has one input connected to the data output terminal Qin of the flip-flop 11, the other input connected to the scan enable terminal P14, and the output connected to the scan out terminal P22.

ANDゲートG33は、スキャンイネーブル信号SENが“H”のとき、データ出力端子Qinより得られる信号をスキャンアウト端子P22よりスキャンアウト信号SOUTとして出力する。一方、スキャンイネーブル信号SENが“L”のときは、データ出力端子Qinより得られる信号に関係なく固定値“L”をスキャンアウト端子P22からスキャンアウト信号SOUTとして出力する。したがって、スキャンFF回路5XはスキャンFF回路5と等価な動作(リセット動作、通常動作及びスキャンシフト動作)を行うことができる。   When the scan enable signal SEN is “H”, the AND gate G33 outputs a signal obtained from the data output terminal Qin as the scan-out signal SOUT from the scan-out terminal P22. On the other hand, when the scan enable signal SEN is “L”, the fixed value “L” is output as the scan-out signal SOUT from the scan-out terminal P22 regardless of the signal obtained from the data output terminal Qin. Therefore, the scan FF circuit 5X can perform operations equivalent to the scan FF circuit 5 (reset operation, normal operation, and scan shift operation).

さらに、図6のスキャンFF回路1a,1bに代えて、実施の形態5の他の態様のスキャンFF回路5Xを用いた場合も、スキャンFF回路5を用いた場合と同様、リセット機能を付加させた場合のデータDATA入力のセットアップタイミング条件の緩和及びスキャンイン信号SINのホールドタイミング条件の緩和効果も同様に発揮することができる。   Further, when the scan FF circuit 5X according to another aspect of the fifth embodiment is used in place of the scan FF circuits 1a and 1b in FIG. 6, a reset function is added as in the case where the scan FF circuit 5 is used. In this case, the relaxation effect of the setup timing condition of the data DATA input and the hold timing condition of the scan-in signal SIN can be similarly exhibited.

加えて、スキャンFF回路5Xは、スキャンFF回路5の2to1セレクタ24をANDゲートG33により構成することにより、回路構成の簡略化を図ることができる。   In addition, the scan FF circuit 5X can simplify the circuit configuration by configuring the 2to1 selector 24 of the scan FF circuit 5 with an AND gate G33.

<実施の形態6>
(回路構成)
図25はこの発明の実施の形態6である同期セット端子付きスキャンFF回路の回路構成を示す回路図である。同図に示すように、実施の形態6のスキャンFF回路6はフリップフロップ11及び2to1セレクタ25,26から構成され、実施の形態2と同様、入力部にクロック端子P11、データ入力端子P12、スキャンイン端子P13、スキャンイネーブル端子P14及び同期セット端子P16を有し、出力部にデータ出力端子P21及びスキャンアウト端子P22を有する。
<Embodiment 6>
(Circuit configuration)
FIG. 25 is a circuit diagram showing a circuit configuration of a scan FF circuit with a synchronous set terminal according to the sixth embodiment of the present invention. As shown in the figure, the scan FF circuit 6 of the sixth embodiment is composed of a flip-flop 11 and 2to1 selectors 25 and 26, and as in the second embodiment, a clock terminal P11, a data input terminal P12, and a scan are input to the input section. It has an in terminal P13, a scan enable terminal P14, and a synchronous set terminal P16, and a data output terminal P21 and a scan out terminal P22 in the output section.

2to1セレクタ25(第1のセレクタ)の“1”入力及び“0”入力はデータ入力端子P12及びスキャンイン端子P13に接続され、制御入力は同期セット端子P16が接続される。そして、2to1セレクタ25は、同期セット端子P16より得られる同期セット信号SBに基づき、データ入力端子P12より得られるデータDATA及びスキャンイン端子P13より得られるスキャンイン信号SINのうち一方を選択して、フリップフロップ11への付与データとしてデータ入力端子Dに出力する第1の選択動作を実行する。   The “1” input and “0” input of the 2to1 selector 25 (first selector) are connected to the data input terminal P12 and the scan-in terminal P13, and the control input is connected to the synchronous set terminal P16. The 2to1 selector 25 selects one of the data DATA obtained from the data input terminal P12 and the scan-in signal SIN obtained from the scan-in terminal P13 based on the synchronization set signal SB obtained from the synchronization set terminal P16. A first selection operation for outputting to the data input terminal D as data to be given to the flip-flop 11 is executed.

2to1セレクタ26(第2のセレクタ)の“0”入力及び“1”入力は電源電位及びフリップフロップ11のデータ出力端子Qinに接続され、制御入力はスキャンイネーブル端子P14に接続され、2to1セレクタ26の出力がスキャンアウト端子P22に接続される。そして、2to1セレクタ26はスキャンイネーブル端子P14より得られるスキャンイネーブル信号SENに基づき、電源電位及びデータ出力端子Qinより得られるフリップフロップ11のデータ出力Qのうち一方を選択してスキャンアウト端子P22からスキャンアウト信号SOUTとして出力する第2の選択動作を実行する。   The “0” input and “1” input of the 2to1 selector 26 (second selector) are connected to the power supply potential and the data output terminal Qin of the flip-flop 11, and the control input is connected to the scan enable terminal P14. The output is connected to the scan-out terminal P22. The 2to1 selector 26 selects one of the power supply potential and the data output Q of the flip-flop 11 obtained from the data output terminal Qin based on the scan enable signal SEN obtained from the scan enable terminal P14, and scans from the scanout terminal P22. A second selection operation for outputting as the out signal SOUT is executed.

このように、実施の形態6のスキャンFF回路6は、同期セット信号SB及びスキャンイネーブル信号SENに基づき、2to1セレクタ25及び26を制御することができる。   As described above, the scan FF circuit 6 according to the sixth embodiment can control the 2to1 selectors 25 and 26 based on the synchronous set signal SB and the scan enable signal SEN.

フリップフロップ11のクロック端子Cはクロック端子P11に接続され、データ入力端子Dは2to1セレクタ25の出力に接続され、データ出力端子Qinは2to1セレクタ26の“1”入力と共にデータ出力端子P21に接続される。   The clock terminal C of the flip-flop 11 is connected to the clock terminal P11, the data input terminal D is connected to the output of the 2to1 selector 25, and the data output terminal Qin is connected to the data output terminal P21 together with the “1” input of the 2to1 selector 26. The

(動作)
このような構成において、フリップフロップ11はクロック端子P11より得られるクロックCLOCKに同期して動作する。そして、セット時は前段のスキャンFF回路6のスキャンイネーブル信号SENを“L”にして、電源電位の信号を2to1セレクタ26を介してスキャンアウト端子P22からスキャンアウト信号SOUTとして入力する。一方、後段のスキャンFF回路6の同期セット信号SBを“L”にしてデータ入力端子P12より得られるスキャンイン信号SIN(前段のスキャンアウト信号SOUT)を選択する。
(Operation)
In such a configuration, the flip-flop 11 operates in synchronization with the clock CLOCK obtained from the clock terminal P11. At the time of setting, the scan enable signal SEN of the scan FF circuit 6 in the previous stage is set to “L”, and the signal of the power supply potential is input as the scan out signal SOUT from the scan out terminal P22 via the 2to1 selector 26. On the other hand, the synchronization set signal SB of the subsequent scan FF circuit 6 is set to “L” to select the scan-in signal SIN (previous scan-out signal SOUT) obtained from the data input terminal P12.

その結果、後段のスキャンFF回路6のフリップフロップ11への付与データとしてして電源電位を入力するというセット動作を実行することができる。   As a result, it is possible to execute a set operation in which a power supply potential is input as data to be applied to the flip-flop 11 of the scan FF circuit 6 at the subsequent stage.

このように、実施の形態6のスキャンFF回路6は、セット時に論理値“1”である電源電位を、次段のスキャンFF回路のスキャンイン端子P13に入力する固定値入力機能を有している。   As described above, the scan FF circuit 6 of the sixth embodiment has a fixed value input function for inputting the power supply potential having the logical value “1” to the scan-in terminal P13 of the next-stage scan FF circuit at the time of setting. Yes.

通常動作時は、同期セット信号SBを“H”、スキャンイネーブル信号SENを“H”にしてデータ入力端子P12より得られるデータDATAを2to1セレクタ25を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力し、2to1セレクタ26を介してデータ出力端子Qinをスキャンアウト端子P22に接続する。   During normal operation, the synchronization set signal SB is set to “H”, the scan enable signal SEN is set to “H”, and data DATA obtained from the data input terminal P12 is input as data to be given to the flip-flop 11 via the 2to1 selector 25. The data is output to the terminal D, and the data output terminal Qin is connected to the scan-out terminal P22 via the 2to1 selector 26.

一方、スキャンシフト時はスキャンイネーブル信号SENを“H”、同期セット信号SBを“L”にしてスキャンイン端子P13より得られるスキャンイン信号SINを2to1セレクタ25を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力し、2to1セレクタ26を介してデータ出力端子Qinをスキャンアウト端子P22に接続する。   On the other hand, at the time of scan shift, the scan enable signal SEN is set to “H”, the synchronization set signal SB is set to “L”, and the scan-in signal SIN obtained from the scan-in terminal P13 is applied to the flip-flop 11 via the 2to1 selector 25. To the data input terminal D, and the data output terminal Qin is connected to the scan-out terminal P22 via the 2to1 selector 26.

そして、格納データをデータ出力端子P21よりデータ出力Qとして出力するとともに、通常動作時及びスキャンシフト時にはスキャンアウト端子P22よりスキャンアウト信号SOUTとして出力する。   The stored data is output as the data output Q from the data output terminal P21, and is output as the scan-out signal SOUT from the scan-out terminal P22 during the normal operation and the scan shift.

(効果)
図12のスキャンFF回路2a,2bに代えて、実施の形態6のスキャンFF回路6を用いた場合は、実施の形態2と同様、2to1セレクタ25のみを介してデータDATAをフリップフロップ11への付与データとしてデータ入力端子Dに出力することができるため、セット機能を付加させた場合のデータDATA入力のセットアップタイミング条件の緩和を図ることができる。
(effect)
When the scan FF circuit 6 according to the sixth embodiment is used instead of the scan FF circuits 2a and 2b in FIG. 12, the data DATA is transferred to the flip-flop 11 only through the 2to1 selector 25 as in the second embodiment. Since it can be output to the data input terminal D as added data, the setup timing condition of the data DATA input when the set function is added can be eased.

さらに、図12のスキャンFF回路2a,2bに代えて、実施の形態6のスキャンFF回路6を用いた場合は、前段のスキャンFF回路6(スキャンFF回路2aの置き換え)のスキャンアウト端子P22が直接に後段のスキャンFF回路6(スキャンFF回路2bの置き換え)のスキャンイン端子P13に接続される場合、前段のスキャンFF回路6の2to1セレクタ26及び後段のスキャンFF回路6の2to1セレクタ25を介して、前段のスキャンFF回路6のフリップフロップ11のデータ出力Qが後段のスキャンFF回路6のフリップフロップ11への付与データとして取り込まれることになり、後段のスキャンFF回路6のスキャンイン信号に対するホールドタイミイング条件の緩和を図ることができる。   Furthermore, when the scan FF circuit 6 according to the sixth embodiment is used instead of the scan FF circuits 2a and 2b in FIG. 12, the scan-out terminal P22 of the preceding scan FF circuit 6 (replacement of the scan FF circuit 2a) When directly connected to the scan-in terminal P13 of the subsequent scan FF circuit 6 (replacement of the scan FF circuit 2b), the 2 to 1 selector 26 of the previous scan FF circuit 6 and the 2 to 1 selector 25 of the subsequent scan FF circuit 6 are connected. Thus, the data output Q of the flip-flop 11 of the preceding-stage scan FF circuit 6 is fetched as data to be given to the flip-flop 11 of the subsequent-stage scan FF circuit 6, and the scan-in signal of the subsequent-stage scan FF circuit 6 is held. The timing conditions can be relaxed.

(他の態様)
図26は実施の形態6のスキャンFF回路の他の態様を示す回路図である。同図に示すように、図25で示したスキャンFF回路6に比べ、図26で示す他の態様のスキャンFF回路6Xは、2to1セレクタ26に代えてORゲートG34を設けた点が異なる。以下、異なる点を中心に説明する。
(Other aspects)
FIG. 26 is a circuit diagram showing another aspect of the scan FF circuit of the sixth embodiment. As shown in FIG. 25, the scan FF circuit 6X of another mode shown in FIG. 26 differs from the scan FF circuit 6 shown in FIG. 25 in that an OR gate G34 is provided instead of the 2to1 selector 26. Hereinafter, different points will be mainly described.

ORゲートG34は一方入力がフリップフロップ11のデータ出力端子Qinに接続され、反転他方入力がスキャンイネーブル端子P14に接続され、出力がスキャンアウト端子P22に接続される。   The OR gate G34 has one input connected to the data output terminal Qin of the flip-flop 11, the other inverted input connected to the scan enable terminal P14, and the output connected to the scan out terminal P22.

ORゲートG34は、スキャンイネーブル信号SENが“H”のとき、データ出力端子Qinより得られる信号をスキャンアウト端子P22よりスキャンアウト信号SOUTとして出力する。一方、スキャンイネーブル信号SENが“L”のときは、データ出力端子Qinより得られる信号に関係なく固定値“H”をスキャンアウト端子P22からスキャンアウト信号SOUTとして出力する。したがって、スキャンFF回路6XはスキャンFF回路6と等価な動作(セット動作、通常動作及びスキャンシフト動作)を行うことができる。   The OR gate G34 outputs a signal obtained from the data output terminal Qin as the scan-out signal SOUT from the scan-out terminal P22 when the scan enable signal SEN is “H”. On the other hand, when the scan enable signal SEN is “L”, the fixed value “H” is output as the scan-out signal SOUT from the scan-out terminal P22 regardless of the signal obtained from the data output terminal Qin. Accordingly, the scan FF circuit 6X can perform operations equivalent to the scan FF circuit 6 (set operation, normal operation, and scan shift operation).

さらに、図12のスキャンFF回路2a,2bに代えて、実施の形態6の他の態様のスキャンFF回路6Xを用いた場合も、スキャンFF回路6を用いた場合と同様、セット機能を付加させた場合のデータDATA入力のセットアップタイミング条件の緩和及びスキャンイン信号SINのホールドタイミング条件の緩和効果も同様に発揮することができる。   Further, in place of the scan FF circuits 2a and 2b in FIG. 12, when the scan FF circuit 6X according to another aspect of the sixth embodiment is used, a set function is added as in the case of using the scan FF circuit 6. In this case, the relaxation effect of the setup timing condition of the data DATA input and the hold timing condition of the scan-in signal SIN can be similarly exhibited.

加えて、スキャンFF回路6Xは、スキャンFF回路6の2to1セレクタ26をORゲートG34により構成することにより、回路構成の簡略化を図ることができる。   In addition, the scan FF circuit 6X can simplify the circuit configuration by configuring the 2 to 1 selector 26 of the scan FF circuit 6 with the OR gate G34.

<実施の形態7>
(回路構成)
図27はこの発明の実施の形態7である同期リセット端子付きスキャンFF回路の回路構成を示す回路図である。同図に示すように、実施の形態7のスキャンFF回路7はフリップフロップ11及び2to1セレクタ27,28から構成され、実施の形態5と同様、入力部にクロック端子P11、データ入力端子P12、スキャンイン端子P13、スキャンイネーブル端子P14及び同期リセット端子P15を有し、出力部にデータ出力端子P21及びスキャンアウト端子P22を有する。
<Embodiment 7>
(Circuit configuration)
FIG. 27 is a circuit diagram showing a circuit configuration of a scan FF circuit with a synchronous reset terminal according to the seventh embodiment of the present invention. As shown in the figure, the scan FF circuit 7 of the seventh embodiment is composed of a flip-flop 11 and 2to1 selectors 27 and 28, and as in the fifth embodiment, a clock terminal P11, a data input terminal P12, and a scan are input to the input unit. It has an in terminal P13, a scan enable terminal P14, and a synchronous reset terminal P15, and a data output terminal P21 and a scan out terminal P22 in the output section.

2to1セレクタ27(第1のセレクタ)の“0”入力及び“1”入力はデータ入力端子P12及びスキャンイン端子P13に接続され、制御入力はスキャンイネーブル端子P14が接続される。そして、2to1セレクタ27はスキャンイネーブル端子P14より得られるスキャンイネーブル信号SENに基づき、データ入力端子P12により得られるデータDATA及びスキャンイン端子P13より得られるスキャンイン信号SINのうち一方を選択してフリップフロップ11への付与データとしてデータ入力端子Dに出力する第1の選択動作を実行する。   The “0” input and “1” input of the 2to1 selector 27 (first selector) are connected to the data input terminal P12 and the scan-in terminal P13, and the scan enable terminal P14 is connected to the control input. The 2to1 selector 27 selects one of the data DATA obtained from the data input terminal P12 and the scan-in signal SIN obtained from the scan-in terminal P13 on the basis of the scan enable signal SEN obtained from the scan enable terminal P14 to select a flip-flop. 1st selection operation | movement output to the data input terminal D as provision data to 11 is performed.

2to1セレクタ28(第2のセレクタ)の“0”入力及び“1”入力は接地レベル及びフリップフロップ11のデータ出力端子Qinに接続され、制御入力は同期リセット端子P15に接続され、2to1セレクタ28の出力がスキャンアウト端子P22に接続される。そして、2to1セレクタ28は、同期リセット端子P15より得られる同期リセット信号RBに基づき、フリップフロップ11のデータ出力端子Qin12より得られるデータ出力Q及び接地レベルのうち一方を選択してスキャンアウト端子P22からスキャンアウト信号SOUTとして出力する第2の選択動作を実行する。   The “0” input and “1” input of the 2to1 selector 28 (second selector) are connected to the ground level and the data output terminal Qin of the flip-flop 11, and the control input is connected to the synchronous reset terminal P15. The output is connected to the scan-out terminal P22. Then, the 2to1 selector 28 selects one of the data output Q obtained from the data output terminal Qin12 of the flip-flop 11 and the ground level based on the synchronous reset signal RB obtained from the synchronous reset terminal P15, and selects from the scan-out terminal P22. A second selection operation that outputs the scan-out signal SOUT is executed.

このように、実施の形態7のスキャンFF回路7は、スキャンイネーブル信号SEN及び同期リセット信号RBに基づき、2to1セレクタ27及び28を制御することができる。   As described above, the scan FF circuit 7 according to the seventh embodiment can control the 2to1 selectors 27 and 28 based on the scan enable signal SEN and the synchronous reset signal RB.

フリップフロップ11のクロック端子Cはクロック端子P11に接続され、データ入力端子Dは2to1セレクタ27の出力に接続され、データ出力端子Qinは2to1セレクタ28の“1”入力とともにデータ出力端子P21に接続される。   The clock terminal C of the flip-flop 11 is connected to the clock terminal P11, the data input terminal D is connected to the output of the 2to1 selector 27, and the data output terminal Qin is connected to the data output terminal P21 together with the “1” input of the 2to1 selector 28. The

(動作)
このような構成において、フリップフロップ11はクロック端子P11より得られるクロックCLOCKに同期して動作する。そして、リセット時は前段のスキャンFF回路7は同期リセット信号RBを“L”にして、接地レベルの信号を2to1セレクタ28を介してスキャンアウト端子P22からスキャンアウト信号SOUTとして入力する。一方、後段のスキャンFF回路7はスキャンイネーブル信号SENを“H”にしてスキャンイン信号SIN(前段のスキャンFF回路7のスキャンアウト信号SOUT)を選択する。
(Operation)
In such a configuration, the flip-flop 11 operates in synchronization with the clock CLOCK obtained from the clock terminal P11. At the time of reset, the scan FF circuit 7 at the previous stage sets the synchronous reset signal RB to “L” and inputs a ground level signal from the scan-out terminal P22 as the scan-out signal SOUT via the 2to1 selector 28. On the other hand, the scan FF circuit 7 in the subsequent stage sets the scan enable signal SEN to “H” and selects the scan-in signal SIN (the scan-out signal SOUT of the scan FF circuit 7 in the previous stage).

その結果、後段のスキャンFF回路7のフリップフロップ11への付与データとして接地レベルを付与することができるリセット動作が行える。   As a result, it is possible to perform a reset operation that can provide a ground level as data to be applied to the flip-flop 11 of the scan FF circuit 7 in the subsequent stage.

通常動作時は、同期リセット信号RBを“H”、スキャンイネーブル信号SENを“L”にしてデータ入力端子P12より得られるデータDATAを2to1セレクタ27を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力し、2to1セレクタ28を介してデータ出力端子Qinをスキャンアウト端子P22に接続する。   During normal operation, the synchronous reset signal RB is set to “H”, the scan enable signal SEN is set to “L”, and the data DATA obtained from the data input terminal P12 is input as data to be given to the flip-flop 11 via the 2to1 selector 27. The data is output to the terminal D, and the data output terminal Qin is connected to the scan-out terminal P22 via the 2to1 selector 28.

一方、スキャンシフト時はスキャンイネーブル信号SENを“H”、同期リセット信号RBを“H”にしてスキャンイン端子P13より得られるスキャンイン信号SINを2to1セレクタ27を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力し、2to1セレクタ28を介してデータ出力端子Qinをスキャンアウト端子P22に接続する。   On the other hand, at the time of scan shift, the scan enable signal SEN is set to “H”, the synchronous reset signal RB is set to “H”, and the scan-in signal SIN obtained from the scan-in terminal P13 is applied to the flip-flop 11 via the 2to1 selector 27. Is output to the data input terminal D, and the data output terminal Qin is connected to the scan-out terminal P22 via the 2to1 selector 28.

そして、格納データをデータ出力端子P21よりデータ出力Qとして出力するとともに、通常動作時及びスキャンシフト時にはスキャンアウト端子P22よりスキャンアウト信号SOUTとして出力する。   The stored data is output as the data output Q from the data output terminal P21, and is output as the scan-out signal SOUT from the scan-out terminal P22 during the normal operation and the scan shift.

(効果)
図6のスキャンFF回路1a,1bに代えて、実施の形態7のスキャンFF回路7を用いた場合も、実施の形態5と同様、リセット機能を付加させた場合のデータDATA入力のセットアップタイミング条件の緩和及びスキャンイン信号SINのホールドタイミング条件の緩和効果も同様に発揮することができる。
(effect)
When the scan FF circuit 7 according to the seventh embodiment is used instead of the scan FF circuits 1a and 1b in FIG. 6, as in the fifth embodiment, the setup timing condition for the data DATA input when the reset function is added. And the effect of relaxing the hold timing condition of the scan-in signal SIN can also be exhibited.

(他の態様)
図28は実施の形態7のスキャンFF回路の他の態様を示す回路図である。同図に示すように、図27で示したスキャンFF回路7に比べ、図28で示す他の態様のスキャンFF回路7Xは、2to1セレクタ28に代えてANDゲートG35を設けた点が異なる。以下、異なる点を中心に説明する。
(Other aspects)
FIG. 28 is a circuit diagram showing another aspect of the scan FF circuit of the seventh embodiment. As shown in FIG. 27, the scan FF circuit 7X of another mode shown in FIG. 28 differs from the scan FF circuit 7 shown in FIG. 27 in that an AND gate G35 is provided in place of the 2to1 selector 28. Hereinafter, different points will be mainly described.

ANDゲートG35は一方入力がフリップフロップ11のデータ出力端子Qinに接続され、他方入力が同期リセット端子P15に接続され、出力がスキャンアウト端子P22に接続される。   The AND gate G35 has one input connected to the data output terminal Qin of the flip-flop 11, the other input connected to the synchronous reset terminal P15, and the output connected to the scan-out terminal P22.

ANDゲートG35は、同期リセット信号RBが“H”のとき、データ出力端子Qinより得られる信号をスキャンアウト端子P22よりスキャンアウト信号SOUTとして出力する。一方、同期リセット信号RBが“L”のときは、データ出力端子Qinより得られる信号に関係なく固定値“L”をスキャンアウト端子P22からスキャンアウト信号SOUTとして出力する。したがって、スキャンFF回路7XはスキャンFF回路7と等価な動作(リセット動作、通常動作及びスキャンシフト動作)を行うことができる。   The AND gate G35 outputs a signal obtained from the data output terminal Qin as the scan-out signal SOUT from the scan-out terminal P22 when the synchronous reset signal RB is “H”. On the other hand, when the synchronous reset signal RB is “L”, the fixed value “L” is output as the scan-out signal SOUT from the scan-out terminal P22 regardless of the signal obtained from the data output terminal Qin. Accordingly, the scan FF circuit 7X can perform operations equivalent to the scan FF circuit 7 (reset operation, normal operation, and scan shift operation).

さらに、図6のスキャンFF回路1a,1bに代えて、実施の形態7の他の態様のスキャンFF回路7Xを用いた場合も、スキャンFF回路7を用いた場合と同様、リセット機能を付加させた場合のデータDATA入力のセットアップタイミング条件の緩和及びスキャンイン信号SINのホールドタイミング条件の緩和効果も同様に発揮することができる。   Further, when the scan FF circuit 7X according to another aspect of the seventh embodiment is used in place of the scan FF circuits 1a and 1b in FIG. 6, a reset function is added as in the case where the scan FF circuit 7 is used. In this case, the relaxation effect of the setup timing condition of the data DATA input and the hold timing condition of the scan-in signal SIN can be similarly exhibited.

加えて、スキャンFF回路7Xは、スキャンFF回路7の2to1セレクタ28をANDゲートG35により構成することにより、回路構成の簡略化を図ることができる。   In addition, the scan FF circuit 7X can simplify the circuit configuration by configuring the 2to1 selector 28 of the scan FF circuit 7 with an AND gate G35.

<実施の形態8>
(回路構成)
図29はこの発明の実施の形態8である同期セット端子付きスキャンFF回路の回路構成を示す回路図である。同図に示すように、実施の形態8のスキャンFF回路8はフリップフロップ11及び2to1セレクタ29,30から構成され、実施の形態6と同様、入力部にクロック端子P11、データ入力端子P12、スキャンイン端子P13、スキャンイネーブル端子P14及び同期セット端子P16を有し、出力部にデータ出力端子P21及びスキャンアウト端子P22を有する。
<Eighth embodiment>
(Circuit configuration)
FIG. 29 is a circuit diagram showing a circuit configuration of a scan FF circuit with a synchronous set terminal according to an eighth embodiment of the present invention. As shown in the figure, the scan FF circuit 8 of the eighth embodiment is composed of a flip-flop 11 and 2to1 selectors 29 and 30, and as in the sixth embodiment, a clock terminal P11, a data input terminal P12, and a scan are input to the input unit. It has an in terminal P13, a scan enable terminal P14, and a synchronous set terminal P16, and a data output terminal P21 and a scan out terminal P22 in the output section.

2to1セレクタ29(第1のセレクタ)の“0”入力及び“1”入力はデータ入力端子P12及びスキャンイン端子P13に接続され、制御入力はスキャンイネーブル端子P14が接続される。そして、2to1セレクタ29はスキャンイネーブル端子P14より得られるスキャンイネーブル信号SENに基づき、データ入力端子P12により得られるデータDATA及びスキャンイン端子P13より得られるスキャンイン信号SINのうち一方を選択してフリップフロップ11への付与データとしてデータ入力端子Dに出力する第1の選択動作を実行する。   The “0” input and “1” input of the 2to1 selector 29 (first selector) are connected to the data input terminal P12 and the scan-in terminal P13, and the scan enable terminal P14 is connected to the control input. The 2to1 selector 29 selects one of the data DATA obtained from the data input terminal P12 and the scan-in signal SIN obtained from the scan-in terminal P13 on the basis of the scan enable signal SEN obtained from the scan enable terminal P14. 1st selection operation | movement output to the data input terminal D as provision data to 11 is performed.

2to1セレクタ30(第2のセレクタ)の“0”入力及び“1”入力は電源電位及びフリップフロップ11のデータ出力端子Qinに接続され、制御入力は同期セット端子P16に接続され、2to1セレクタ30の出力がスキャンアウト端子P22に接続される。そして、2to1セレクタ30は、同期セット端子P16より得られる同期セット信号SBに基づき、フリップフロップ11のデータ出力端子Qinより得られるデータ出力Q及び電源電位のうち一方を選択してスキャンアウト端子P22からスキャンアウト信号SOUTとして出力する第2の選択動作を実行する。   The “0” input and “1” input of the 2to1 selector 30 (second selector) are connected to the power supply potential and the data output terminal Qin of the flip-flop 11, and the control input is connected to the synchronous set terminal P16. The output is connected to the scan-out terminal P22. Then, the 2to1 selector 30 selects one of the data output Q and the power supply potential obtained from the data output terminal Qin of the flip-flop 11 based on the synchronization set signal SB obtained from the synchronization set terminal P16, from the scan-out terminal P22. A second selection operation that outputs the scan-out signal SOUT is executed.

このように、実施の形態8のスキャンFF回路8は、スキャンイネーブル信号SEN及び同期セット信号SBに基づき、2to1セレクタ29及び30を制御することができる。   As described above, the scan FF circuit 8 according to the eighth embodiment can control the 2to1 selectors 29 and 30 based on the scan enable signal SEN and the synchronization set signal SB.

フリップフロップ11のクロック端子Cはクロック端子P11に接続され、データ入力端子Dは2to1セレクタ29の出力に接続され、データ出力端子Qinは2to1セレクタ30の“1”入力とともにデータ出力端子P21に接続される。   The clock terminal C of the flip-flop 11 is connected to the clock terminal P11, the data input terminal D is connected to the output of the 2to1 selector 29, and the data output terminal Qin is connected to the data output terminal P21 together with the “1” input of the 2to1 selector 30. The

(動作)
このような構成において、フリップフロップ11はクロック端子P11より得られるクロックCLOCKに同期して動作する。そして、セット時は前段のスキャンFF回路8は同期セット信号SBを“L”にして、電源電位の信号を2to1セレクタ30を介してスキャンアウト端子P22からスキャンアウト信号SOUTとして入力する。一方、後段のスキャンFF回路8はスキャンイネーブル信号SENを“H”にして、スキャンイン信号SIN(前段のスキャンアウト信号SOUT)を選択する。
(Operation)
In such a configuration, the flip-flop 11 operates in synchronization with the clock CLOCK obtained from the clock terminal P11. At the time of setting, the scan FF circuit 8 at the previous stage sets the synchronous set signal SB to “L” and inputs a signal of the power supply potential from the scan-out terminal P22 via the 2to1 selector 30 as the scan-out signal SOUT. On the other hand, the subsequent scan FF circuit 8 sets the scan enable signal SEN to “H” and selects the scan-in signal SIN (previous scan-out signal SOUT).

その結果、後段のスキャンFF回路8のフリップフロップ11への付与データとして電源電位を付与するセット動作を行うことができる。   As a result, it is possible to perform a setting operation in which a power supply potential is applied as applied data to the flip-flop 11 of the scan FF circuit 8 in the subsequent stage.

通常動作時は、同期セット信号SBを“H”、スキャンイネーブル信号SENを“L”にしてデータ入力端子P12より得られるデータDATAを2to1セレクタ29を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力し、2to1セレクタ30を介してデータ出力端子Qinをスキャンアウト端子P22に接続する。   During normal operation, the synchronization set signal SB is set to “H”, the scan enable signal SEN is set to “L”, and data DATA obtained from the data input terminal P12 is input as data to be given to the flip-flop 11 through the 2to1 selector 29. The data is output to the terminal D, and the data output terminal Qin is connected to the scan-out terminal P22 via the 2to1 selector 30.

一方、スキャンシフト時はスキャンイネーブル信号SENを“H”、同期セット信号SBを“H”にしてスキャンイン端子P13より得られるスキャンイン信号SINを2to1セレクタ29を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力し、2to1セレクタ30を介してデータ出力端子Qinをスキャンアウト端子P22に接続する。   On the other hand, at the time of scan shift, the scan enable signal SEN is set to “H”, the synchronization set signal SB is set to “H”, and the scan-in signal SIN obtained from the scan-in terminal P13 is applied to the flip-flop 11 via the 2to1 selector 29. To the data input terminal D, and the data output terminal Qin is connected to the scan-out terminal P22 via the 2to1 selector 30.

そして、格納データをデータ出力端子P21よりデータ出力Qとして出力するとともに、通常動作時及びスキャンシフト時にはスキャンアウト端子P22よりスキャンアウト信号SOUTとして出力する。   The stored data is output as the data output Q from the data output terminal P21, and is output as the scan-out signal SOUT from the scan-out terminal P22 during the normal operation and the scan shift.

(効果)
図12のスキャンFF回路2a,2bに代えて、実施の形態8のスキャンFF回路8を用いた場合も、実施の形態6と同様、セット機能を付加させた場合のデータDATA入力のセットアップタイミング条件の緩和及びスキャンイン信号SINのホールドタイミング条件の緩和効果も同様に発揮することができる。
(effect)
When the scan FF circuit 8 of the eighth embodiment is used in place of the scan FF circuits 2a and 2b of FIG. 12, as in the sixth embodiment, the setup timing condition for data DATA input when the set function is added And the effect of relaxing the hold timing condition of the scan-in signal SIN can also be exhibited.

(他の態様)
図30は実施の形態8のスキャンFF回路の他の態様を示す回路図である。同図に示すように、図29で示したスキャンFF回路8に比べ、図30で示す他の態様のスキャンFF回路8Xは、2to1セレクタ30に代えてORゲートG36を設けた点が異なる。以下、異なる点を中心に説明する。
(Other aspects)
FIG. 30 is a circuit diagram showing another aspect of the scan FF circuit according to the eighth embodiment. As compared to the scan FF circuit 8 shown in FIG. 29, the scan FF circuit 8X of another mode shown in FIG. 30 is different in that an OR gate G36 is provided instead of the 2to1 selector 30 as shown in FIG. Hereinafter, different points will be mainly described.

ORゲートG36は一方入力がフリップフロップ11のデータ出力端子Qinに接続され、反転他方入力が同期セット端子P16に接続され、出力がスキャンアウト端子P22に接続される。   The OR gate G36 has one input connected to the data output terminal Qin of the flip-flop 11, the other inverted input connected to the synchronous set terminal P16, and the output connected to the scan-out terminal P22.

ORゲートG36は、同期セット信号SBが“H”のとき、データ出力端子Qinより得られる信号をスキャンアウト端子P22よりスキャンアウト信号SOUTとして出力する。一方、同期セット信号SBが“L”のときは、データ出力端子Qinより得られる信号に関係なく固定値“H”をスキャンアウト端子P22からスキャンアウト信号SOUTとして出力する。したがって、スキャンFF回路8XはスキャンFF回路8と等価な動作(セット動作、通常動作及びスキャンシフト動作)を行うことができる。   When the synchronization set signal SB is “H”, the OR gate G36 outputs a signal obtained from the data output terminal Qin as the scan-out signal SOUT from the scan-out terminal P22. On the other hand, when the synchronization set signal SB is “L”, the fixed value “H” is output as the scan-out signal SOUT from the scan-out terminal P22 regardless of the signal obtained from the data output terminal Qin. Therefore, the scan FF circuit 8X can perform operations equivalent to the scan FF circuit 8 (set operation, normal operation, and scan shift operation).

さらに、図12のスキャンFF回路2a,2bに代えて、実施の形態8の他の態様のスキャンFF回路8Xを用いた場合も、スキャンFF回路8を用いた場合と同様、セット機能を付加させた場合のデータDATA入力のセットアップタイミング条件の緩和及びスキャンイン信号SINのホールドタイミング条件の緩和効果も同様に発揮することができる。   Further, when the scan FF circuit 8X according to another aspect of the eighth embodiment is used in place of the scan FF circuits 2a and 2b in FIG. 12, the set function is added as in the case where the scan FF circuit 8 is used. In this case, the relaxation effect of the setup timing condition of the data DATA input and the hold timing condition of the scan-in signal SIN can be similarly exhibited.

加えて、スキャンFF回路8Xは、スキャンFF回路8の2to1セレクタ30をORゲートG36により構成することにより、回路構成の簡略化を図ることができる。   In addition, the scan FF circuit 8X can simplify the circuit configuration by configuring the 2 to 1 selector 30 of the scan FF circuit 8 with the OR gate G36.

<実施の形態9>
(回路構成)
図31はこの発明の実施の形態9である同期リセット端子付きスキャンFF回路の回路構成を示す回路図である。同図に示すように、実施の形態9のスキャンFF回路9はフリップフロップ11及び3to1セレクタ33(セレクタ)から構成され、入力部にクロック端子P11、データ入力端子P120,P121(第1及び第2のデータ入力端子)、スキャンイン端子P13及びスキャンイネーブル端子P14を有し、出力部にデータ出力端子P21、スキャンアウト端子P22及びデータ出力反転端子P23を有する。
<Embodiment 9>
(Circuit configuration)
FIG. 31 is a circuit diagram showing a circuit configuration of a scan FF circuit with a synchronous reset terminal according to the ninth embodiment of the present invention. As shown in the figure, the scan FF circuit 9 of the ninth embodiment is composed of a flip-flop 11 and a 3to1 selector 33 (selector), and has a clock terminal P11 and data input terminals P120 and P121 (first and second) at the input section. Data input terminal), a scan-in terminal P13 and a scan enable terminal P14, and a data output terminal P21, a scan-out terminal P22 and a data output inversion terminal P23 in the output section.

クロック端子P11はクロックCLOCKを受け、データ入力端子P120はデータDATA0(第1の入力データ)を受け、データ入力端子P121はデータDATA1(第2の入力データ)を受け、スキャンイン端子P13はスキャンイン信号SINを受け、スキャンイネーブル端子P14はスキャンイネーブル信号SENを受ける。一方、データ出力端子P21からデータ出力Q、スキャンアウト端子P22からスキャンアウト信号SOUT、データ出力反転端子P23から反転データ出力QBがそれぞれ出力される。   The clock terminal P11 receives the clock CLOCK, the data input terminal P120 receives data DATA0 (first input data), the data input terminal P121 receives data DATA1 (second input data), and the scan-in terminal P13 scan-in. In response to the signal SIN, the scan enable terminal P14 receives the scan enable signal SEN. On the other hand, a data output Q is output from the data output terminal P21, a scan-out signal SOUT is output from the scan-out terminal P22, and an inverted data output QB is output from the data output inversion terminal P23.

3to1セレクタ33“01の”入力、“00”入力及び“1X”入力はデータ入力端子P120、接地レベル及びスキャンイン端子P13に接続され、2つの制御入力はスキャンイネーブル端子P14及びデータ入力端子P121に接続される。   The 3to1 selector 33 “01” input, “00” input and “1X” input are connected to the data input terminal P120, the ground level and scan-in terminal P13, and the two control inputs are connected to the scan enable terminal P14 and the data input terminal P121. Connected.

フリップフロップ11のクロック端子Cはクロック端子P11に接続され、データ入力端子Dは3to1セレクタ33の出力に接続され、データ出力端子Qinはデータ出力端子P21及びスキャンアウト端子P22に共通に接続され、反転データ出力端子QBinはデータ出力反転端子P23に接続される。   The clock terminal C of the flip-flop 11 is connected to the clock terminal P11, the data input terminal D is connected to the output of the 3to1 selector 33, the data output terminal Qin is connected in common to the data output terminal P21 and the scan-out terminal P22, and is inverted. The data output terminal QBin is connected to the data output inversion terminal P23.

(動作)
図32は図31で示した実施の形態9のスキャンFF回路の動作を真理値表形式で示した説明図である。以下、図32を参照しつつ、実施の形態9のスキャンFF回路の動作を説明する。
(Operation)
FIG. 32 is an explanatory diagram showing the operation of the scan FF circuit of the ninth embodiment shown in FIG. 31 in the form of a truth table. Hereinafter, the operation of the scan FF circuit according to the ninth embodiment will be described with reference to FIG.

フリップフロップ11はクロック端子P11より得られるクロックCLOCKに同期して動作し、通常動作時にスキャンイネーブル信号SENを“L”、データDATA1を“H”(“01”の制御入力)にしてデータ入力端子P120より得られるデータDATA0を3to1セレクタ33を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力する。   The flip-flop 11 operates in synchronization with the clock CLOCK obtained from the clock terminal P11. During normal operation, the scan enable signal SEN is set to “L” and the data DATA1 is set to “H” (control input of “01”). The data DATA0 obtained from P120 is output to the data input terminal D as data to be given to the flip-flop 11 via the 3to1 selector 33.

一方、スキャンシフト時はスキャンイネーブル信号SENを“H”(“1X”の制御入力)にしてスキャンイン端子P13より得られるスキャンイン信号SINを3to1セレクタ33を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力する。   On the other hand, at the time of scan shift, the scan enable signal SEN is set to “H” (control input of “1X”), and the scan-in signal SIN obtained from the scan-in terminal P13 is provided as data to be given to the flip-flop 11 via the 3to1 selector 33. Output to data input terminal D.

また、リセット時には、スキャンイネーブル信号SENを“L”、データDATA1を“L”(“00”の制御入力)にして、接地レベルの信号を3to1セレクタ33を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力する。   Further, at the time of reset, the scan enable signal SEN is set to “L”, the data DATA1 is set to “L” (control input of “00”), and a ground level signal is provided as data to be given to the flip-flop 11 via the 3to1 selector 33. Output to data input terminal D.

そして、フリップフロップ11の格納データをデータ出力端子P21及びスキャンアウト端子P22よりデータ出力Q及びスキャンアウト信号SOUTとして出力し、格納データの反転データをデータ出力反転端子P23から反転データ出力QBとして出力する。   Then, the data stored in the flip-flop 11 is output from the data output terminal P21 and the scan-out terminal P22 as the data output Q and the scan-out signal SOUT, and the inverted data of the stored data is output from the data output inversion terminal P23 as the inverted data output QB. .

図32に示すように、例えば、通常動作時(スキャンイネーブル信号SENが“L”、データDATA1が“H”の時)にはデータDATA0の“L”/“H”によってデータ出力Qの“L”/“H”が決定し、スキャンシフト時(スキャンイネーブル信号SENが“H”の時)にはスキャンイン信号SINの“L”/“H”によってデータ出力Qの“L”/“H”が決定し、リセット時(スキャンイネーブル信号SENが“L”、データDATA1が“L”の時)には、スキャンイン信号SIN及びデータDATAの値に関係なく、データ出力Qは“L”に決定される。   As shown in FIG. 32, for example, in the normal operation (when the scan enable signal SEN is “L” and the data DATA1 is “H”), the data output Q is “L” by “L” / “H” of the data DATA0. "/" H is determined, and at the time of scan shift (when the scan enable signal SEN is "H"), the data output Q is "L" / "H" by the scan-in signal SIN "L" / "H". When reset (when the scan enable signal SEN is “L” and the data DATA1 is “L”), the data output Q is determined to be “L” regardless of the values of the scan-in signal SIN and the data DATA. Is done.

(効果)
図33及び図34は実施の形態9の効果説明用の回路図である。図33は従来のスキャンFF回路51a,51bを用いて同期リセットを行う集積回路を想定している。なお、スキャンFF回路51a,51bの構成は図43で示したスキャンFF回路51の構成と同様であるため、説明を省略する。
(effect)
33 and 34 are circuit diagrams for explaining the effect of the ninth embodiment. FIG. 33 assumes an integrated circuit that performs synchronous reset using conventional scan FF circuits 51a and 51b. The configuration of the scan FF circuits 51a and 51b is the same as that of the scan FF circuit 51 shown in FIG.

図33に示すように、スキャンFF回路51aのデータ出力端子P21が組合せ回路31の入力の一つに接続され、スキャンアウト端子P22がスキャンFF回路51bのスキャンイン端子P13に接続される。   As shown in FIG. 33, the data output terminal P21 of the scan FF circuit 51a is connected to one of the inputs of the combinational circuit 31, and the scan-out terminal P22 is connected to the scan-in terminal P13 of the scan FF circuit 51b.

そして、組合せ回路31の出力の一つである出力信号S31がANDゲートG13の他方入力となり、ANDゲートG13の一方入力が別の組合せ回路32の出力の一つである出力信号S32となる。ANDゲートG13の出力がスキャンFF回路51bのデータ入力端子P12に接続される。   An output signal S31 that is one of the outputs of the combinational circuit 31 becomes the other input of the AND gate G13, and one input of the AND gate G13 becomes an output signal S32 that is one of the outputs of another combinational circuit 32. The output of the AND gate G13 is connected to the data input terminal P12 of the scan FF circuit 51b.

このような構成の集積回路において、出力信号S31はANDゲートG13を経由してスキャンFF回路51bのデータ入力端子P12に付与される。すなわち、スキャンFF回路51bのフリップフロップ61のデータ入力端子Dへの出力信号S31に基づく信号入力は、ANDゲートG13及びスキャンFF回路51bの2to1セレクタ62からなる第1のデータ入力信号伝搬経路の通過を要することになる。   In the integrated circuit having such a configuration, the output signal S31 is applied to the data input terminal P12 of the scan FF circuit 51b via the AND gate G13. That is, the signal input based on the output signal S31 to the data input terminal D of the flip-flop 61 of the scan FF circuit 51b passes through the first data input signal propagation path composed of the AND gate G13 and the 2to1 selector 62 of the scan FF circuit 51b. Will be required.

図34は従来のスキャンFF回路51aと実施の形態9のスキャンFF回路9を用いて同期リセットを行う集積回路を想定している。   FIG. 34 assumes an integrated circuit that performs synchronous reset using the conventional scan FF circuit 51a and the scan FF circuit 9 of the ninth embodiment.

図35はスキャンFF回路9内の3to1セレクタ33の詳細を示す回路図である。同図に示すように、3to1セレクタ33は2to1セレクタ42(第1のセレクタ)と,インバータG14、ANDゲートG15及び2to1セレクタ41からなる第2のセレクタとから構成される。   FIG. 35 is a circuit diagram showing details of the 3to1 selector 33 in the scan FF circuit 9. As shown in the figure, the 3to1 selector 33 includes a 2to1 selector 42 (first selector) and a second selector including an inverter G14, an AND gate G15, and a 2to1 selector 41.

インバータG14の入力はスキャンイネーブル端子P14に接続され、ANDゲートG15の一方入力はインバータG14の出力に接続され、他方入力はデータ入力端子P121に接続される。   The input of the inverter G14 is connected to the scan enable terminal P14, one input of the AND gate G15 is connected to the output of the inverter G14, and the other input is connected to the data input terminal P121.

2to1セレクタ42の“0”入力は接地レベルに接続され、“1”入力はスキャンイン端子P13に接続され、制御入力はスキャンイネーブル端子P14に接続される。そして、2to1セレクタ42はスキャンイネーブル端子P14より得られるスキャンイネーブル信号SENに基づき、接地レベル及びスキャンイン端子P13より得られるスキャンイン信号SINのうち一方を選択して出力する第1の選択動作を実行する。   The “0” input of the 2to1 selector 42 is connected to the ground level, the “1” input is connected to the scan-in terminal P13, and the control input is connected to the scan enable terminal P14. The 2to1 selector 42 executes a first selection operation for selecting and outputting one of the ground level and the scan-in signal SIN obtained from the scan-in terminal P13 based on the scan enable signal SEN obtained from the scan enable terminal P14. To do.

2to1セレクタ41の“1”入力はデータ入力端子P120に接続され、“0”入力は2to1セレクタ42の出力に接続され、制御入力はANDゲートG15の出力に接続される。そして、2to1セレクタ41は、ANDゲートG15の出力に基づき、データ入力端子P120より得られるデータDATA0及び2to1セレクタ42の出力のうち一方を選択してフリップフロップ11への付与データとしてデータ入力端子Dに出力する第2の選択動作を実行する。   The “1” input of the 2to1 selector 41 is connected to the data input terminal P120, the “0” input is connected to the output of the 2to1 selector 42, and the control input is connected to the output of the AND gate G15. Then, the 2to1 selector 41 selects one of the data DATA0 obtained from the data input terminal P120 and the output of the 2to1 selector 42 based on the output of the AND gate G15, and applies it to the data input terminal D as data to be given to the flip-flop 11. The second selection operation to be output is executed.

このように構成される3to1セレクタ33は、図32で示した審理値表に従い、スキャンイネーブル信号SEN及びデータDATA1に基づく選択動作を行う。   The 3to1 selector 33 configured as described above performs a selection operation based on the scan enable signal SEN and the data DATA1 in accordance with the trial value table shown in FIG.

このように、実施の形態9のスキャンFF回路9は、スキャンイネーブル信号SENに基づき2to1セレクタ42を制御することができ、スキャンイネーブル信号SEN及びデータDATA1の組合せに基づき2to1セレクタ41、インバータG14及びANDゲートG15よりなる第2のセレクタを制御することができる。   As described above, the scan FF circuit 9 according to the ninth embodiment can control the 2to1 selector 42 based on the scan enable signal SEN, and based on the combination of the scan enable signal SEN and the data DATA1, the 2to1 selector 41, the inverter G14, and the AND. The second selector composed of the gate G15 can be controlled.

加えて、実施の形態9のスキャンFF回路9は、スキャンイネーブル信号SENが論理値“0”(“L”)を指示するとき、図32に示すように、データDATA0とデータDATA1との論理積を2to1セレクタ41から出力することができる。   In addition, when the scan enable signal SEN indicates a logical value “0” (“L”), the scan FF circuit 9 according to the ninth embodiment performs a logical product of data DATA0 and data DATA1, as shown in FIG. Can be output from the 2to1 selector 41.

図34に戻って、スキャンFF回路51aのデータ出力端子P21が組合せ回路31の入力の一つに接続され、スキャンアウト端子P22がスキャンFF回路9のスキャンイン端子P13に接続される。そして、組合せ回路31の出力の一つである出力信号S31がデータ入力端子P121に接続され、別の組合せ回路32の出力の一つである出力信号S32がスキャンFF回路9のデータ入力端子P120に接続される。すなわち、出力信号S32はスキャンFF回路9のデータDATA0として直接入力される。   Returning to FIG. 34, the data output terminal P 21 of the scan FF circuit 51 a is connected to one of the inputs of the combinational circuit 31, and the scan-out terminal P 22 is connected to the scan-in terminal P 13 of the scan FF circuit 9. An output signal S31 that is one of the outputs of the combinational circuit 31 is connected to the data input terminal P121, and an output signal S32 that is one of the outputs of another combinational circuit 32 is connected to the data input terminal P120 of the scan FF circuit 9. Connected. That is, the output signal S32 is directly input as the data DATA0 of the scan FF circuit 9.

このような構成の集積回路において、出力信号S32はデータDATA0として直接にスキャンFF回路9のデータ入力端子P12に付与される。すなわち、スキャンFF回路9のフリップフロップ11のデータ入力端子Dへの出力信号S31に基づく信号入力は、3to1セレクタ33内の2to1セレクタ41のみからなる第2のデータ入力信号伝搬経路の通過を要することになる。   In the integrated circuit having such a configuration, the output signal S32 is directly applied to the data input terminal P12 of the scan FF circuit 9 as data DATA0. That is, the signal input based on the output signal S31 to the data input terminal D of the flip-flop 11 of the scan FF circuit 9 needs to pass through the second data input signal propagation path including only the 2to1 selector 41 in the 3to1 selector 33. become.

このように、図33及び図34の比較(第1及び第2のデータ入力信号伝搬経路の比較)から明らかなように、リセット機能を付加された場合、データDATA0の入力に関するセットアップタイミング条件に関し、ANDゲートG13を設ける必要がない分、実施の形態9のスキャンFF回路9によって構成される集積回路の方が緩和されるため、ANDゲートG13の信号伝搬遅延分の高速化を図ることができる効果を奏する。   Thus, as is clear from the comparison of FIG. 33 and FIG. 34 (comparison of the first and second data input signal propagation paths), when the reset function is added, regarding the setup timing condition regarding the input of the data DATA0, Since there is no need to provide the AND gate G13, the integrated circuit constituted by the scan FF circuit 9 according to the ninth embodiment is relaxed, so that the signal propagation delay of the AND gate G13 can be increased. Play.

また、3to1セレクタ33が、図35で示したような構成でなく、データDATA0、接地レベル及びスキャンイン信号SINをそれぞれ一のトランスファゲート等を介して選択的にフリップフロップ11にデータ入力端子Dに接続する1段の構成であっても、データDATA0に関してANDゲートG13を設ける必要がないため、セットアップタイミング条件を緩和することができる。   Further, the 3to1 selector 33 is not configured as shown in FIG. 35, and the data DATA0, the ground level and the scan-in signal SIN are selectively sent to the flip-flop 11 and the data input terminal D through one transfer gate or the like. Even in the one-stage configuration to be connected, it is not necessary to provide the AND gate G13 with respect to the data DATA0, so that the setup timing condition can be relaxed.

また、図33及び図34に示すように、スキャンFF回路51aのスキャンアウト端子P22とスキャンFF回路51bのスキャンイン端子P13は直結され、スキャンFF回路51aのスキャンアウト端子P22とスキャンFF回路9のスキャンイン端子P13間は直結されており、信号伝搬遅延時間は小さいため、スキャンイン信号SINのホールドタイミング条件は厳しくなる。   33 and 34, the scan-out terminal P22 of the scan FF circuit 51a and the scan-in terminal P13 of the scan FF circuit 51b are directly connected, and the scan-out terminal P22 of the scan FF circuit 51a and the scan FF circuit 9 Since the scan-in terminal P13 is directly connected and the signal propagation delay time is small, the hold timing condition for the scan-in signal SIN becomes severe.

このため、図33の集積回路の場合、スキャンFF回路51aのスキャンアウト端子P22,スキャンFF回路51bのスキャンイン端子P13との間にバッファを挿入する必要があった。   Therefore, in the case of the integrated circuit of FIG. 33, it is necessary to insert a buffer between the scan-out terminal P22 of the scan FF circuit 51a and the scan-in terminal P13 of the scan FF circuit 51b.

しかしながら、図33の集積回路において、スキャンFF回路51bは1段の2to1セレクタ62を介してスキャンイン信号SINをフリップフロップ11のデータ入力端子D取り込んでいるのに対し、図34の集積回路では、スキャンFF回路9は2段の2to1セレクタ42及び41を介してスキャンイン信号SINをフリップフロップ11への付与データとしてデータ入力端子Dに取り込んでいるため、2to1セレクタ1個分の信号伝搬時間が図33の集積回路以上に要することになる。   However, in the integrated circuit of FIG. 33, the scan FF circuit 51b captures the scan-in signal SIN through the data input terminal D of the flip-flop 11 via the one-stage 2to1 selector 62, whereas in the integrated circuit of FIG. Since the scan FF circuit 9 takes in the scan-in signal SIN as data to be given to the flip-flop 11 via the two-stage 2to1 selectors 42 and 41, the signal propagation time for one 2to1 selector is shown. More than 33 integrated circuits.

このように、図33及び図34の比較から明らかなように、スキャンイン信号SINのホールドタイミング条件に関し、2段の2to1セレクタ42及び41を設ける分、実施の形態9のスキャンFF回路9を用いて構成される集積回路の方が緩和されるという効果を奏する。   As can be seen from the comparison between FIG. 33 and FIG. 34, the scan FF circuit 9 of the ninth embodiment is used because the two-stage 2-to-1 selectors 42 and 41 are provided for the hold timing condition of the scan-in signal SIN. The integrated circuit constructed as described above has the effect of being relaxed.

(他の態様)
図36は実施の形態9のスキャンFF回路の他の態様を示す回路図である。同図に示すように、図35で示したスキャンFF回路9に比べ、図36で示す他の態様のスキャンFF回路9Xは、2to1セレクタ42に代えてANDゲートG16を設けた点が異なる。以下、異なる点を中心に説明する。
(Other aspects)
FIG. 36 is a circuit diagram showing another aspect of the scan FF circuit of the ninth embodiment. As shown in FIG. 35, the scan FF circuit 9X of another mode shown in FIG. 36 differs from the scan FF circuit 9 shown in FIG. 35 in that an AND gate G16 is provided instead of the 2to1 selector 42. Hereinafter, different points will be mainly described.

ANDゲートG16は一方入力がスキャンイン端子P13に接続され、他方入力がスキャンイネーブル端子P14に接続され、出力が2to1セレクタ413の“0”入力に接続される。   The AND gate G16 has one input connected to the scan-in terminal P13, the other input connected to the scan enable terminal P14, and the output connected to the “0” input of the 2to1 selector 413.

ANDゲートG16は、スキャンイネーブル信号SENが“H”のとき、スキャンイン信号SINを2to1セレクタ41の“0”入力に付与し、スキャンイネーブル信号SENが“L”のときはスキャンイン信号SINに関係なく固定値“L”を2to1セレクタ41の“0”入力に出力する。したがって、スキャンFF回路9Xは図32で示した真理値表と同様の振る舞い、すなわち、スキャンFF回路9と等価な動作を行うことができる。   The AND gate G16 applies the scan-in signal SIN to the “0” input of the 2to1 selector 41 when the scan enable signal SEN is “H”, and relates to the scan-in signal SIN when the scan enable signal SEN is “L”. Instead, the fixed value “L” is output to the “0” input of the 2to1 selector 41. Therefore, the scan FF circuit 9X behaves in the same manner as the truth table shown in FIG. 32, that is, can perform an operation equivalent to the scan FF circuit 9.

さらに、図34のスキャンFF回路9に代えて、スキャンFF回路9Xを用いた場合も、リセット機能を付加させた場合のデータDATA0の入力のセットアップタイミング条件の緩和及びスキャンイン信号SINのホールドタイミング条件の緩和効果も同様に発揮することができる。   Further, when the scan FF circuit 9X is used instead of the scan FF circuit 9 in FIG. 34, the setup timing condition of the input of the data DATA0 is relaxed and the hold timing condition of the scan-in signal SIN when the reset function is added. The mitigating effect can also be exhibited.

さらに、スキャン回路9Xは、スキャンFF回路9の2to1セレクタ42をANDゲートG16により構成することにより、回路構成の簡略化を図ることができる。   Further, the scan circuit 9X can simplify the circuit configuration by configuring the 2to1 selector 42 of the scan FF circuit 9 with the AND gate G16.

<実施の形態10>
(回路構成)
図37はこの発明の実施の形態10である同期セット端子付きスキャンFF回路の回路構成を示す回路図である。同図に示すように、実施の形態10のスキャンFF回路10はフリップフロップ11及び3to1セレクタ34(セレクタ)から構成され、入力部にクロック端子P11、データ入力端子P120,P121、スキャンイン端子P13及びスキャンイネーブル端子P14を有し、出力部にデータ出力端子P21、スキャンアウト端子P22及びデータ出力反転端子P23を有する。
<Embodiment 10>
(Circuit configuration)
FIG. 37 is a circuit diagram showing a circuit configuration of a scan FF circuit with a synchronous set terminal according to the tenth embodiment of the present invention. As shown in the figure, the scan FF circuit 10 according to the tenth embodiment is composed of a flip-flop 11 and a 3to1 selector 34 (selector), and has a clock terminal P11, data input terminals P120 and P121, a scan-in terminal P13, and an input section. It has a scan enable terminal P14, and has a data output terminal P21, a scan-out terminal P22, and a data output inversion terminal P23 in the output section.

クロック端子P11はクロックCLOCKを受け、データ入力端子P120はデータDATA0を受け、データ入力端子P121はデータDATA1を受け、スキャンイン端子P13はスキャンイン信号SINを受け、スキャンイネーブル端子P14はスキャンイネーブル信号SENを受ける。一方、データ出力端子P21からデータ出力Q、スキャンアウト端子P22からスキャンアウト信号SOUT、データ出力反転端子P23から反転データ出力QBがそれぞれ出力される。   The clock terminal P11 receives the clock CLOCK, the data input terminal P120 receives the data DATA0, the data input terminal P121 receives the data DATA1, the scan-in terminal P13 receives the scan-in signal SIN, and the scan enable terminal P14 receives the scan enable signal SEN. Receive. On the other hand, a data output Q is output from the data output terminal P21, a scan-out signal SOUT is output from the scan-out terminal P22, and an inverted data output QB is output from the data output inversion terminal P23.

3to1セレクタ34の“01”入力、“00”入力及び“1X”入力は、電源電位、データ入力端子P120及びスキャンイン端子P13に接続され、2つの制御入力はスキャンイネーブル端子P14及びデータ入力端子P121に接続される。   The “01” input, “00” input and “1X” input of the 3to1 selector 34 are connected to the power supply potential, the data input terminal P120 and the scan-in terminal P13, and the two control inputs are the scan enable terminal P14 and the data input terminal P121. Connected to.

フリップフロップ11のクロック端子Cはクロック端子P11に接続され、データ入力端子Dは3to1セレクタ34の出力に接続され、データ出力端子Qinはデータ出力端子P21及びスキャンアウト端子P22に共通に接続され、反転データ出力端子QBinはデータ出力反転端子P23に接続される。   The clock terminal C of the flip-flop 11 is connected to the clock terminal P11, the data input terminal D is connected to the output of the 3to1 selector 34, the data output terminal Qin is connected in common to the data output terminal P21 and the scan-out terminal P22, and is inverted. The data output terminal QBin is connected to the data output inversion terminal P23.

(動作)
図38は図37で示した実施の形態10のスキャンFF回路の動作を真理値表形式で示した説明図である。以下、図38を参照しつつ、実施の形態10のスキャンFF回路の動作を説明する。
(Operation)
FIG. 38 is an explanatory diagram showing the operation of the scan FF circuit of the tenth embodiment shown in FIG. 37 in the form of a truth table. Hereinafter, the operation of the scan FF circuit according to the tenth embodiment will be described with reference to FIG.

フリップフロップ11はクロック端子P11より得られるクロックCLOCKに同期して動作し、通常動作時にスキャンイネーブル信号SENを“L”、データDATA1を“L”(制御入力“00”)にしてデータ入力端子P120より得られるデータDATA0を3to1セレクタ34を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力する。   The flip-flop 11 operates in synchronization with the clock CLOCK obtained from the clock terminal P11. During normal operation, the scan enable signal SEN is set to “L”, the data DATA1 is set to “L” (control input “00”), and the data input terminal P120. The data DATA0 obtained is output to the data input terminal D as data to be given to the flip-flop 11 through the 3to1 selector 34.

一方、スキャンシフト時はスキャンイネーブル信号SENを“H”にして(制御入力“1X”)スキャンイン端子P13より得られるスキャンイン信号SINを3to1セレクタ34を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力する。   On the other hand, at the time of scan shift, the scan enable signal SEN is set to “H” (control input “1X”), and the scan-in signal SIN obtained from the scan-in terminal P13 is supplied as data to be given to the flip-flop 11 via the 3to1 selector 34. Output to the input terminal D.

また、セット時には、スキャンイネーブル信号SENを“L”、データDATA1を“H”(制御入力“01”)にして、電源電位の信号を3to1セレクタ34を介してフリップフロップ11への付与データとしてデータ入力端子Dに出力する。   At the time of setting, the scan enable signal SEN is set to “L”, the data DATA1 is set to “H” (control input “01”), and the signal of the power supply potential is supplied as data to be given to the flip-flop 11 via the 3to1 selector 34. Output to the input terminal D.

そして、フリップフロップ11の格納データをデータ出力端子P21及びスキャンアウト端子P22よりデータ出力Q及びスキャンアウト信号SOUTとして出力し、格納データの反転データをデータ出力反転端子P23から反転データ出力QBとして出力する。   Then, the data stored in the flip-flop 11 is output from the data output terminal P21 and the scan-out terminal P22 as the data output Q and the scan-out signal SOUT, and the inverted data of the stored data is output from the data output inversion terminal P23 as the inverted data output QB. .

図38に示すように、例えば、通常動作時(スキャンイネーブル信号SENが“L”、データDATA1が“L”の時)にはデータDATA0の“L”/“H”によってデータ出力Qの“L”/“H”が決定し、スキャンシフト時(スキャンイネーブル信号SENが“H”の時)にはスキャンイン信号SINの“L”/“H”によってデータ出力Qの“L”/“H”が決定し、セット時(スキャンイネーブル信号SENが“L”、データDATA1が“H”の時)には、スキャンイン信号SIN及びデータDATAの値に関係なく、データ出力Qは“H”に決定される。   As shown in FIG. 38, for example, in normal operation (when the scan enable signal SEN is “L” and the data DATA1 is “L”), the data output Q is “L” by the “L” / “H” of the data DATA0. "/" H is determined, and at the time of scan shift (when the scan enable signal SEN is "H"), the data output Q is "L" / "H" by the scan-in signal SIN "L" / "H". When set (when the scan enable signal SEN is “L” and the data DATA1 is “H”), the data output Q is determined to be “H” regardless of the values of the scan-in signal SIN and the data DATA. Is done.

(効果)
図39及び図40は実施の形態10の効果説明用の回路図である。図39は従来のスキャンFF回路51a,51bを用いて同期セットを行う集積回路を想定している。なお、スキャンFF回路51a,51bの構成は図43で示したスキャンFF回路51の構成と同様であるため、説明を省略する。
(effect)
39 and 40 are circuit diagrams for explaining the effect of the tenth embodiment. FIG. 39 assumes an integrated circuit that performs synchronous setting using conventional scan FF circuits 51a and 51b. The configuration of the scan FF circuits 51a and 51b is the same as that of the scan FF circuit 51 shown in FIG.

図39に示すように、スキャンFF回路51aのデータ出力端子P21が組合せ回路31の入力の一つに接続され、スキャンアウト端子P22がスキャンFF回路51bのスキャンイン端子P13に接続される。   As shown in FIG. 39, the data output terminal P21 of the scan FF circuit 51a is connected to one of the inputs of the combinational circuit 31, and the scan-out terminal P22 is connected to the scan-in terminal P13 of the scan FF circuit 51b.

そして、組合せ回路31の出力の一つである出力信号S31がORゲートG17の他方入力となり、ORゲートG17の一方入力が別の組合せ回路32の出力の一つである出力信号S32となる。ORゲートG17の出力がスキャンFF回路51bのデータ入力端子P12に接続される。   An output signal S31 that is one of the outputs of the combinational circuit 31 becomes the other input of the OR gate G17, and one input of the OR gate G17 becomes an output signal S32 that is one of the outputs of another combinational circuit 32. The output of the OR gate G17 is connected to the data input terminal P12 of the scan FF circuit 51b.

このような構成の集積回路において、出力信号S31はORゲートG17を経由してスキャンFF回路51bのデータ入力端子P12に付与される。すなわち、スキャンFF回路51bのフリップフロップ61のデータ入力端子Dへの出力信号S31に基づく信号入力は、ORゲートG17及びスキャンFF回路51bの2to1セレクタ62からなる第1のデータ入力信号伝搬経路の通過を要することになる。   In the integrated circuit having such a configuration, the output signal S31 is applied to the data input terminal P12 of the scan FF circuit 51b via the OR gate G17. That is, the signal input based on the output signal S31 to the data input terminal D of the flip-flop 61 of the scan FF circuit 51b passes through the first data input signal propagation path composed of the OR gate G17 and the 2to1 selector 62 of the scan FF circuit 51b. Will be required.

図40は従来のスキャンFF回路51aと実施の形態10のスキャンFF回路10を用いて同期セットを行う集積回路を想定している。   FIG. 40 assumes an integrated circuit that performs a synchronous set using the conventional scan FF circuit 51a and the scan FF circuit 10 of the tenth embodiment.

図41はスキャンFF回路10内の3to1セレクタ34の詳細を示す回路図である。同図に示すように、3to1セレクタ34は2to1セレクタ44(第1のセレクタ)と、ORゲートG25及び2to1セレクタ43とからなる第2のセレクタとから構成される。   FIG. 41 is a circuit diagram showing details of the 3to1 selector 34 in the scan FF circuit 10. As shown in the figure, the 3to1 selector 34 includes a 2to1 selector 44 (first selector) and a second selector including an OR gate G25 and a 2to1 selector 43.

ORゲートG25の一方入力はスキャンイネーブル端子P14に接続され、他方入力はデータ入力端子P121に接続される。   One input of the OR gate G25 is connected to the scan enable terminal P14, and the other input is connected to the data input terminal P121.

2to1セレクタ44の“0”入力は電源電位に接続され、“1”入力はスキャンイン端子P13に接続され、制御入力はスキャンイネーブル端子P14に接続される。そして、2to1セレクタ44はスキャンイネーブル端子P14より得られるスキャンイネーブル信号SENに基づき、電源電位及びスキャンイン端子P13より得られるスキャンイン信号SINのうち一方を選択して出力する第1の選択動作を実行する。   The “0” input of the 2to1 selector 44 is connected to the power supply potential, the “1” input is connected to the scan-in terminal P13, and the control input is connected to the scan enable terminal P14. Based on the scan enable signal SEN obtained from the scan enable terminal P14, the 2to1 selector 44 executes a first selection operation for selecting and outputting one of the power supply potential and the scan-in signal SIN obtained from the scan-in terminal P13. To do.

2to1セレクタ43の“1”入力はデータ入力端子P120に接続され、“0”入力は2to1セレクタ44の出力に接続され、制御入力はORゲートG25の出力に接続される。そして、2to1セレクタ43は、ORゲートG25の出力に基づき、データ入力端子P120より得られるデータDATA0及び2to1セレクタ42の出力のうち一方を選択してフリップフロップ11への付与データとしてデータ入力端子Dに出力する第2の選択動作を実行する。   The “1” input of the 2to1 selector 43 is connected to the data input terminal P120, the “0” input is connected to the output of the 2to1 selector 44, and the control input is connected to the output of the OR gate G25. Then, the 2to1 selector 43 selects one of the data DATA0 obtained from the data input terminal P120 and the output of the 2to1 selector 42 based on the output of the OR gate G25 and applies it to the data input terminal D as the data to be given to the flip-flop 11. The second selection operation to be output is executed.

このように構成される3to1セレクタ34は、図38で示した審理値表に従い、スキャンイネーブル信号SEN及びデータDATA1に基づく選択動作を行う。   The 3to1 selector 34 configured as described above performs a selection operation based on the scan enable signal SEN and the data DATA1 in accordance with the trial value table shown in FIG.

このように、実施の形態10のスキャンFF回路10は、スキャンイネーブル信号SENに基づき2to1セレクタ44を制御することができ、スキャンイネーブル信号SEN及びデータDATA1の組合せに基づき2to1セレクタ43及びORゲートG25よりなる第2のセレクタを制御することができる。   As described above, the scan FF circuit 10 according to the tenth embodiment can control the 2to1 selector 44 based on the scan enable signal SEN, and based on the combination of the scan enable signal SEN and the data DATA1, based on the 2to1 selector 43 and the OR gate G25. The second selector can be controlled.

図40に戻って、スキャンFF回路51aのデータ出力端子P21が組合せ回路31の入力の一つに接続され、スキャンアウト端子P22がスキャンFF回路10のスキャンイン端子P13に接続される。そして、組合せ回路31の出力の一つである出力信号S31がデータ入力端子P121に接続され、別の組合せ回路32の出力の一つである出力信号S32がスキャンFF回路10のデータ入力端子P120に接続される。すなわち、出力信号S32はスキャンFF回路10のデータDATA0として直接入力される。   Returning to FIG. 40, the data output terminal P <b> 21 of the scan FF circuit 51 a is connected to one of the inputs of the combinational circuit 31, and the scan-out terminal P <b> 22 is connected to the scan-in terminal P <b> 13 of the scan FF circuit 10. An output signal S31 that is one of the outputs of the combinational circuit 31 is connected to the data input terminal P121, and an output signal S32 that is one of the outputs of another combinational circuit 32 is connected to the data input terminal P120 of the scan FF circuit 10. Connected. That is, the output signal S32 is directly input as the data DATA0 of the scan FF circuit 10.

このような構成の集積回路において、出力信号S32はデータDATA0として直接にスキャンFF回路10のデータ入力端子P12に付与される。すなわち、スキャンFF回路10のフリップフロップ11のデータ入力端子Dへの出力信号S31に基づく信号入力は、3to1セレクタ34内の2to1セレクタ43のみからなる第2のデータ入力信号伝搬経路の通過を要することになる。   In the integrated circuit having such a configuration, the output signal S32 is directly applied to the data input terminal P12 of the scan FF circuit 10 as data DATA0. That is, the signal input based on the output signal S31 to the data input terminal D of the flip-flop 11 of the scan FF circuit 10 needs to pass through the second data input signal propagation path including only the 2to1 selector 43 in the 3to1 selector 34. become.

このように、図39及び図40の比較(第1及び第2のデータ入力信号伝搬経路の比較)から明らかなように、セット機能を付加された場合データDATA0の入力に関するセットアップタイミング条件に関し、ORゲートG17を設ける必要がない分、実施の形態10のスキャンFF回路10によって構成される集積回路の方が緩和されるため、ORゲートG17の信号伝搬遅延分の高速化を図ることができる効果を奏する。   Thus, as is clear from the comparison of FIG. 39 and FIG. 40 (comparison of the first and second data input signal propagation paths), the OR is related to the setup timing condition regarding the input of the data DATA0 when the set function is added. Since there is no need to provide the gate G17, the integrated circuit constituted by the scan FF circuit 10 according to the tenth embodiment is relaxed, so that the signal propagation delay of the OR gate G17 can be increased. Play.

また、3to1セレクタ34が、図41で示したような構成でなく、データDATA0、電源電位及びスキャンイン信号SINをそれぞれ一のトランスファゲート等を介して選択的にフリップフロップ11にデータ入力端子Dに接続する1段の構成であっても、データDATA0に関してORゲートG17を設ける必要がないため、セットアップタイミング条件を緩和することができる。   Further, the 3to1 selector 34 is not configured as shown in FIG. 41, and the data DATA0, the power supply potential, and the scan-in signal SIN are selectively sent to the flip-flop 11 and the data input terminal D through one transfer gate or the like. Even in the case of the one-stage configuration to be connected, it is not necessary to provide the OR gate G17 for the data DATA0, so that the setup timing condition can be relaxed.

加えて、実施の形態10のスキャンFF回路10は、スキャンイネーブル信号SENが論理値“0”を指示するとき、図38に示すように、データDATA0とデータDATA1との論理和を2to1セレクタ43から出力することができる。   In addition, when the scan enable signal SEN indicates the logical value “0”, the scan FF circuit 10 according to the tenth embodiment outputs the logical sum of the data DATA0 and the data DATA1 from the 2to1 selector 43 as shown in FIG. Can be output.

また、図39及び図40に示すように、スキャンFF回路51aのスキャンアウト端子P22とスキャンFF回路51bのスキャンイン端子P13は直結され、スキャンFF回路51aのスキャンアウト端子P22とスキャンFF回路10のスキャンイン端子P13間は直結されており、信号伝搬遅延時間は小さいため、スキャンイン信号SINのホールドタイミング条件は厳しくなる。   As shown in FIGS. 39 and 40, the scan-out terminal P22 of the scan FF circuit 51a and the scan-in terminal P13 of the scan FF circuit 51b are directly connected, and the scan-out terminal P22 of the scan FF circuit 51a and the scan FF circuit 10 are connected. Since the scan-in terminal P13 is directly connected and the signal propagation delay time is small, the hold timing condition for the scan-in signal SIN becomes severe.

このため、図39の集積回路の場合、スキャンFF回路51aのスキャンアウト端子P22,スキャンFF回路51bのスキャンイン端子P13との間にバッファを挿入する必要があった。   Therefore, in the integrated circuit of FIG. 39, it is necessary to insert a buffer between the scan-out terminal P22 of the scan FF circuit 51a and the scan-in terminal P13 of the scan FF circuit 51b.

しかしながら、図39の集積回路において、スキャンFF回路51bは1段の2to1セレクタ62を介してスキャンイン信号SINをフリップフロップ11のデータ入力端子Dに取り込んでいるのに対し、図40の集積回路では、スキャンFF回路10は2段の2to1セレクタ44及び43を介してスキャンイン信号SINをフリップフロップ11のデータ入力端子Dに取り込んでいるため、2to1セレクタ1個分の信号伝搬時間が図39の集積回路以上に要することになる。   However, in the integrated circuit of FIG. 39, the scan FF circuit 51b takes in the scan-in signal SIN to the data input terminal D of the flip-flop 11 through the one-stage 2to1 selector 62, whereas in the integrated circuit of FIG. Since the scan FF circuit 10 takes in the scan-in signal SIN to the data input terminal D of the flip-flop 11 via the two-stage 2to1 selectors 44 and 43, the signal propagation time for one 2to1 selector is integrated in FIG. More than a circuit.

このように、図39及び図40の比較から明らかなように、スキャンイン信号SINのホールドタイミング条件に関し、2段の2to1セレクタ44及び43を設ける分、実施の形態10のスキャンFF回路10を用いて構成される集積回路の方が緩和されるという効果を奏する。   As is apparent from the comparison between FIGS. 39 and 40, the scan FF circuit 10 according to the tenth embodiment is used because the two-stage 2-to-1 selectors 44 and 43 are provided for the hold timing condition of the scan-in signal SIN. The integrated circuit constructed as described above has the effect of being relaxed.

(他の態様)
図42は実施の形態10のスキャンFF回路の他の態様を示す回路図である。同図に示すように、図41で示したスキャンFF回路10に比べ、図42で示す他の態様のスキャンFF回路10Xは、2to1セレクタ44に代えてORゲートG18を設けた点が異なる。以下、異なる点を中心に説明する。
(Other aspects)
FIG. 42 is a circuit diagram showing another aspect of the scan FF circuit of the tenth embodiment. As shown in FIG. 41, the scan FF circuit 10X of another mode shown in FIG. 42 is different from the scan FF circuit 10 shown in FIG. Hereinafter, different points will be mainly described.

ORゲートG18は一方入力がスキャンイン端子P13に接続され、反転他方入力がスキャンイネーブル端子P14に接続され、出力が2to1セレクタ433の“0”入力に接続される。   The OR gate G18 has one input connected to the scan-in terminal P13, the other input connected to the scan enable terminal P14, and the output connected to the “0” input of the 2to1 selector 433.

ORゲートG18は、スキャンイネーブル信号SENが“H”のとき、スキャンイン信号SINを2to1セレクタ43の“0”入力に付与し、スキャンイネーブル信号SENが“L”のときはスキャンイン信号SINに関係なく固定値“H”を2to1セレクタ43の“0”入力に出力する。したがって、スキャンFF回路10Xは図38で示した真理値表と同様の振る舞い、すなわち、スキャンFF回路10と等価な動作を行うことができる。   The OR gate G18 applies the scan-in signal SIN to the “0” input of the 2to1 selector 43 when the scan enable signal SEN is “H”, and relates to the scan-in signal SIN when the scan enable signal SEN is “L”. Instead, the fixed value “H” is output to the “0” input of the 2to1 selector 43. Therefore, the scan FF circuit 10X behaves in the same manner as the truth table shown in FIG. 38, that is, can perform an operation equivalent to the scan FF circuit 10.

さらに、図40のスキャンFF回路10に代えて、スキャンFF回路10Xを用いた場合も、セット機能を付加させた場合のデータDATA0の入力のセットアップタイミング条件の緩和及びスキャンイン信号SINのホールドタイミング条件の緩和効果も同様に発揮することができる。   Furthermore, when the scan FF circuit 10X is used instead of the scan FF circuit 10 of FIG. 40, the setup timing condition of the input of the data DATA0 is relaxed and the hold timing condition of the scan-in signal SIN when the set function is added. The mitigating effect can also be exhibited.

さらに、スキャン回路10Xは、スキャンFF回路10の2to1セレクタ44をORゲートG18により構成することにより、回路構成の簡略化を図ることができる。   Further, the scan circuit 10X can simplify the circuit configuration by configuring the 2to1 selector 44 of the scan FF circuit 10 with the OR gate G18.

この発明の実施の形態1である同期リセット端子付きスキャンFF回路の回路構成を示す回路図である。It is a circuit diagram which shows the circuit structure of the scan FF circuit with a synchronous reset terminal which is Embodiment 1 of this invention. 図1で示したフリップフロップの内部構成を示す回路図である。FIG. 2 is a circuit diagram showing an internal configuration of the flip-flop shown in FIG. 1. 図1及び図2で示した実施の形態1のスキャンFF回路の動作を真理値表形式で示した説明図である。It is explanatory drawing which showed operation | movement of the scan FF circuit of Embodiment 1 shown in FIG.1 and FIG.2 in the truth table format. 同期リセット信号発生回路の内部構成を示す説明図である。It is explanatory drawing which shows the internal structure of a synchronous reset signal generation circuit. 実施の形態1の効果説明用の回路図(従来構成)である。FIG. 3 is a circuit diagram (conventional configuration) for explaining the effect of the first embodiment. 実施の形態1の効果説明用の回路図(実施の形態構成)である。FIG. 3 is a circuit diagram (configuration of the embodiment) for explaining the effect of the first embodiment. 実施の形態1のスキャンFF回路の他の態様を示す回路図である。FIG. 6 is a circuit diagram illustrating another aspect of the scan FF circuit according to the first embodiment. この発明の実施の形態2である同期セット端子付きスキャンFF回路の回路構成を示す回路図である。It is a circuit diagram which shows the circuit structure of the scan FF circuit with a synchronous set terminal which is Embodiment 2 of this invention. 図8で示した実施の形態2のスキャンFF回路の動作を真理値表形式で示した説明図である。It is explanatory drawing which showed the operation | movement of the scan FF circuit of Embodiment 2 shown in FIG. 8 in the truth table format. 同期セット信号発生回路の内部構成を示す説明図である。It is explanatory drawing which shows the internal structure of a synchronous set signal generation circuit. 実施の形態2の効果説明用の回路図(従来構成)である。FIG. 10 is a circuit diagram (conventional configuration) for explaining the effect of the second embodiment. 実施の形態2の効果説明用の回路図(実施の形態構成)である。FIG. 10 is a circuit diagram (configuration of the embodiment) for explaining the effect of the second embodiment. 実施の形態2のスキャンFF回路の他の態様を示す回路図である。FIG. 10 is a circuit diagram illustrating another aspect of the scan FF circuit according to the second embodiment. この発明の実施の形態3である同期リセット端子付きスキャンFF回路の回路構成を示す回路図である。It is a circuit diagram which shows the circuit structure of the scan FF circuit with a synchronous reset terminal which is Embodiment 3 of this invention. 図14で示した実施の形態3のスキャンFF回路の動作を真理値表形式で示した説明図である。FIG. 15 is an explanatory diagram showing the operation of the scan FF circuit of the third embodiment shown in FIG. 14 in a truth table format. スキャンイネーブル信号と同期リセット信号との関係を表形式で示す説明図である。It is explanatory drawing which shows the relationship between a scan enable signal and a synchronous reset signal in a tabular form. 同期リセット信号及びスキャンイネーブル信号発生回路の内部構成を示す説明図である。It is explanatory drawing which shows the internal structure of a synchronous reset signal and a scan enable signal generation circuit. 実施の形態3のスキャンFF回路の他の態様を示す回路図である。FIG. 10 is a circuit diagram illustrating another aspect of the scan FF circuit according to the third embodiment. この発明の実施の形態4である同期セット端子付きスキャンFF回路の回路構成を示す回路図である。It is a circuit diagram which shows the circuit structure of the scan FF circuit with a synchronous set terminal which is Embodiment 4 of this invention. 図19で示した実施の形態4のスキャンFF回路の動作を真理値表形式で示した説明図である。FIG. 20 is an explanatory diagram showing the operation of the scan FF circuit of the fourth embodiment shown in FIG. 19 in a truth table format. スキャンイネーブル信号と同期セット信号との関係を表形式で示す説明図である。It is explanatory drawing which shows the relationship between a scan enable signal and a synchronous set signal in a table format. 実施の形態4のスキャンFF回路の他の態様を示す回路図である。FIG. 10 is a circuit diagram illustrating another aspect of the scan FF circuit according to the fourth embodiment. この発明の実施の形態5である同期リセット端子付きスキャンFF回路の回路構成を示す回路図である。It is a circuit diagram which shows the circuit structure of the scan FF circuit with a synchronous reset terminal which is Embodiment 5 of this invention. 実施の形態5のスキャンFF回路の他の態様を示す回路図である。FIG. 10 is a circuit diagram illustrating another aspect of the scan FF circuit according to the fifth embodiment. この発明の実施の形態6である同期セット端子付きスキャンFF回路の回路構成を示す回路図である。It is a circuit diagram which shows the circuit structure of the scan FF circuit with a synchronous set terminal which is Embodiment 6 of this invention. 実施の形態6のスキャンFF回路の他の態様を示す回路図である。FIG. 22 is a circuit diagram illustrating another aspect of the scan FF circuit according to the sixth embodiment. この発明の実施の形態7である同期リセット端子付きスキャンFF回路の回路構成を示す回路図である。It is a circuit diagram which shows the circuit structure of the scan FF circuit with a synchronous reset terminal which is Embodiment 7 of this invention. 実施の形態7のスキャンFF回路の他の態様を示す回路図である。FIG. 22 is a circuit diagram showing another aspect of the scan FF circuit according to the seventh embodiment. この発明の実施の形態8である同期セット端子付きスキャンFF回路の回路構成を示す回路図である。It is a circuit diagram which shows the circuit structure of the scan FF circuit with a synchronous set terminal which is Embodiment 8 of this invention. 実施の形態8のスキャンFF回路の他の態様を示す回路図である。FIG. 20 is a circuit diagram illustrating another aspect of the scan FF circuit according to the eighth embodiment. この発明の実施の形態9である同期リセット端子付きスキャンFF回路の回路構成を示す回路図である。It is a circuit diagram which shows the circuit structure of the scan FF circuit with a synchronous reset terminal which is Embodiment 9 of this invention. 図31で示した実施の形態9のスキャンFF回路の動作を真理値表形式で示した説明図である。FIG. 32 is an explanatory diagram showing the operation of the scan FF circuit of the ninth embodiment shown in FIG. 31 in a truth table format. 実施の形態9の効果説明用の回路図(従来構成)である。FIG. 20 is a circuit diagram (conventional configuration) for explaining the effect of the ninth embodiment. 実施の形態9の効果説明用の回路図(実施の形態構成)である。FIG. 22 is a circuit diagram for explaining the effect of the ninth embodiment (configuration of the embodiment); 実施の形態9のスキャンFF回路内の3to1セレクタの詳細を示す回路図である。FIG. 20 is a circuit diagram illustrating details of a 3to1 selector in a scan FF circuit according to a ninth embodiment. 実施の形態9のスキャンFF回路の他の態様を示す回路図である。FIG. 23 is a circuit diagram illustrating another aspect of the scan FF circuit according to the ninth embodiment. この発明の実施の形態10である同期セット端子付きスキャンFF回路の回路構成を示す回路図である。It is a circuit diagram which shows the circuit structure of the scan FF circuit with a synchronous set terminal which is Embodiment 10 of this invention. 図37で示した実施の形態10のスキャンFF回路の動作を真理値表形式で示した説明図である。FIG. 38 is an explanatory diagram showing the operation of the scan FF circuit of the tenth embodiment shown in FIG. 37 in a truth table format. 実施の形態10の効果説明用の回路図(従来構成)である。FIG. 22 is a circuit diagram (conventional configuration) for explaining the effect of the tenth embodiment. 実施の形態10の効果説明用の回路図(実施の形態構成)である。FIG. 22 is a circuit diagram for explaining the effect of the tenth embodiment (configuration of the embodiment). 実施の形態10のスキャンFF回路内の3to1セレクタの詳細を示す回路図である。FIG. 29 is a circuit diagram illustrating details of a 3to1 selector in the scan FF circuit according to the tenth embodiment. 実施の形態10のスキャンFF回路の他の態様を示す回路図である。FIG. 38 is a circuit diagram illustrating another aspect of the scan FF circuit according to the tenth embodiment. 従来のスキャンFF回路の内部構成を示す回路図である。It is a circuit diagram which shows the internal structure of the conventional scan FF circuit.

符号の説明Explanation of symbols

1〜10,1a,1b,1X,2a,2b,2X〜10X スキャンFF回路、11 フリップフロップ、12〜19,23〜30,41〜44 2to1セレクタ、33,34 3to1セレクタ、G9,G15,G16,G31,G33,G35 ANDゲート、G12,G17,G18,G32,G34,G36 ORゲート、G14 インバータ。
1-10, 1a, 1b, 1X, 2a, 2b, 2X-10X scan FF circuit, 11 flip-flop, 12-19, 23-30, 41-442 2to1 selector, 33, 34 3to1 selector, G9, G15, G16 , G31, G33, G35 AND gate, G12, G17, G18, G32, G34, G36 OR gate, G14 inverter.

Claims (26)

クロック端子、データ入力端子、スキャンイン端子、データ出力端子、及びスキャンアウト端子を有するスキャンフリップフロップ回路(スキャンFF回路)であって、
前記クロック端子を介して入力されるクロックに同期して、付与されたデータを格納データとして取り込み、該格納データを前記データ出力端子及び前記スキャンアウト端子の少なくとも一方より出力するフリップフロップと、
所定の固定値及び前記スキャンイン端子より得られるスキャンイン信号のうち一方を選択して出力する第1の選択動作を実行する第1のセレクタと、
前記データ入力端子より得られる入力データ及び前記第1のセレクタの出力のうち一方を選択して、前記フリップフロップへの付与データとして出力する第2の選択動作を実行する第2のセレクタとを備える、
スキャンFF回路。
A scan flip-flop circuit (scan FF circuit) having a clock terminal, a data input terminal, a scan-in terminal, a data output terminal, and a scan-out terminal,
A flip-flop that captures the given data as stored data in synchronization with a clock input via the clock terminal, and outputs the stored data from at least one of the data output terminal and the scan-out terminal;
A first selector that performs a first selection operation of selecting and outputting one of a predetermined fixed value and a scan-in signal obtained from the scan-in terminal;
A second selector that selects one of the input data obtained from the data input terminal and the output of the first selector, and executes a second selection operation that outputs the selected data as data to be given to the flip-flop. ,
Scan FF circuit.
請求項1記載のスキャンFF回路であって、
スキャンイネーブル端子及び同期固定値設定端子をさらに有し、
前記第1のセレクタは、前記スキャンイネーブル端子より得られるスキャンイネーブル信号に基づき、前記第1の選択動作を実行し、
前記第2のセレクタは、前記同期固定値設定端子より得られる固定値指示信号に基づき、前記第2の選択動作を実行する、
スキャンFF回路。
The scan FF circuit according to claim 1,
A scan enable terminal and a synchronous fixed value setting terminal;
The first selector performs the first selection operation based on a scan enable signal obtained from the scan enable terminal;
The second selector performs the second selection operation based on a fixed value instruction signal obtained from the synchronous fixed value setting terminal;
Scan FF circuit.
請求項2記載のスキャンFF回路であって、
前記スキャンイネーブル信号が前記スキャンイン信号の選択を指示するとき、前記固定値指示信号が前記第1のセレクタの出力の選択を指示する値に強制的に設定される信号設定機能を有する、
スキャンFF回路。
The scan FF circuit according to claim 2,
A signal setting function in which, when the scan enable signal instructs selection of the scan-in signal, the fixed value instruction signal is forcibly set to a value instructing selection of an output of the first selector;
Scan FF circuit.
請求項1記載のスキャンFF回路であって、
スキャンイネーブル端子及び同期固定値設定端子をさらに有し、
前記第1のセレクタは、前記同期固定値設定端子より得られる固定値指示信号に基づき、前記第1の選択動作を実行し、
前記第2のセレクタは、前記スキャンイネーブル端子より得られるスキャンイネーブル信号に基づき、前記第2の選択動作を実行する、
スキャンFF回路。
The scan FF circuit according to claim 1,
A scan enable terminal and a synchronous fixed value setting terminal;
The first selector performs the first selection operation based on a fixed value instruction signal obtained from the synchronous fixed value setting terminal;
The second selector performs the second selection operation based on a scan enable signal obtained from the scan enable terminal.
Scan FF circuit.
請求項4記載のスキャンFF回路であって、
スキャンシフト時において、前記固定値指示信号は前記スキャンイン信号の選択を指示し、前記スキャンイネーブル信号は前記第1のセレクタの出力の選択を指示する信号設定機能をさらに備える、
スキャンFF回路。
The scan FF circuit according to claim 4,
At the time of scan shift, the fixed value instruction signal instructs selection of the scan-in signal, and the scan enable signal further includes a signal setting function that instructs selection of the output of the first selector.
Scan FF circuit.
請求項2ないし請求項5のうち、いずれか1項に記載のスキャンFF回路であって、
前記同期固定値設定端子は同期リセット信号を入力する同期リセット端子を含み、
前記所定の固定値は論理値“0”を指示する固定値を含む、
スキャンFF回路。
A scan FF circuit according to any one of claims 2 to 5,
The synchronous fixed value setting terminal includes a synchronous reset terminal for inputting a synchronous reset signal,
The predetermined fixed value includes a fixed value indicating a logical value “0”.
Scan FF circuit.
請求項2ないし請求項5のうち、いずれか1項に記載のスキャンFF回路であって、
前記同期固定値設定端子は同期セット信号を入力する同期セット端子を含み、
前記所定の固定値は論理値“1”を指示する固定値を含む、
スキャンFF回路。
A scan FF circuit according to any one of claims 2 to 5,
The synchronous fixed value setting terminal includes a synchronous set terminal for inputting a synchronous set signal,
The predetermined fixed value includes a fixed value indicating a logical value “1”.
Scan FF circuit.
請求項2記載のスキャンFF回路であって、
前記同期固定値設定端子は同期リセット信号を入力する同期リセット端子を含み、
前記所定の固定値は論理値“0”を指示する固定値を含み、
前記スキャンイネーブル信号はスキャンシフト時に論理値“1”を示す信号を含み、
前記第1のセレクタは前記スキャンイン端子及び前記スキャンイネーブル端子を一方及び他方入力とするANDゲートを含む、
スキャンFF回路。
The scan FF circuit according to claim 2,
The synchronous fixed value setting terminal includes a synchronous reset terminal for inputting a synchronous reset signal,
The predetermined fixed value includes a fixed value indicating a logical value “0”;
The scan enable signal includes a signal indicating a logical value “1” at the time of scan shift,
The first selector includes an AND gate having the scan-in terminal and the scan enable terminal as one input and the other input,
Scan FF circuit.
請求項2記載のスキャンFF回路であって、
前記同期固定値設定端子は同期セット信号を入力する同期セット端子を含み、
前記所定の固定値は論理値“1”を指示する固定値を含み、
前記スキャンイネーブル信号はスキャンシフト時に論理値“1”を示す信号を含み、
前記第1のセレクタは前記スキャンイン端子及び前記スキャンイネーブル端子を一方入力及び反転他方入力とするORゲートを含む、
スキャンFF回路。
The scan FF circuit according to claim 2,
The synchronous fixed value setting terminal includes a synchronous set terminal for inputting a synchronous set signal,
The predetermined fixed value includes a fixed value indicating a logical value “1”;
The scan enable signal includes a signal indicating a logical value “1” at the time of scan shift,
The first selector includes an OR gate having the scan-in terminal and the scan enable terminal as one input and an inverted other input,
Scan FF circuit.
請求項4記載のスキャンFF回路であって、
前記同期固定値設定端子は同期リセット信号を入力する同期リセット端子を含み、
前記所定の固定値は論理値“0”を指示する固定値を含み、
前記同期リセット信号はリセット時に論理値“0”を示す信号を含み、
前記第1のセレクタは前記スキャンイン端子及び前記同期リセット端子を一方及び他方入力とするANDゲートを含む、
スキャンFF回路。
The scan FF circuit according to claim 4,
The synchronous fixed value setting terminal includes a synchronous reset terminal for inputting a synchronous reset signal,
The predetermined fixed value includes a fixed value indicating a logical value “0”;
The synchronous reset signal includes a signal indicating a logical value “0” at the time of resetting;
The first selector includes an AND gate having the scan-in terminal and the synchronous reset terminal as one and the other inputs,
Scan FF circuit.
請求項4記載のスキャンFF回路であって、
前記同期固定値設定端子は同期セット信号を入力する同期セット端子を含み、
前記所定の固定値は論理値“1”を指示する固定値を含み、
前記同期セット信号はセット時に論理値“0”を示す信号を含み、
前記第1のセレクタは前記スキャンイン端子及び前記同期セット端子を一方入力及び反転他方入力とするORゲートを含む、
スキャンFF回路。
The scan FF circuit according to claim 4,
The synchronous fixed value setting terminal includes a synchronous set terminal for inputting a synchronous set signal,
The predetermined fixed value includes a fixed value indicating a logical value “1”;
The synchronous set signal includes a signal indicating a logical value “0” when set,
The first selector includes an OR gate having the scan-in terminal and the synchronous set terminal as one input and an inverted other input,
Scan FF circuit.
クロック端子、データ入力端子、スキャンイン端子、データ出力端子、及びスキャンアウト端子を有するスキャンフリップフロップ回路(スキャンFF回路)であって、
前記クロック端子を介して入力されるクロックに同期して、付与されたデータを格納データとして取り込み、該格納データを前記データ出力端子を介して出力するフリップフロップと、
前記データ入力端子より得られる入力データ及び前記スキャンイン端子より得られるスキャンイン信号のうち、一方を選択して、前記フリップフロップへの付与データとして出力する第1の選択動作を実行する第1のセレクタと、
所定の固定値及び前記フリップフロップの前記格納データのうち一方を選択して前記スキャンアウト端子から出力する、第2の選択動作を実行する第2のセレクタとを備える、
スキャンFF回路。
A scan flip-flop circuit (scan FF circuit) having a clock terminal, a data input terminal, a scan-in terminal, a data output terminal, and a scan-out terminal,
A flip-flop that captures the given data as storage data in synchronization with a clock input via the clock terminal and outputs the storage data via the data output terminal;
A first selection operation is performed in which one of the input data obtained from the data input terminal and the scan-in signal obtained from the scan-in terminal is selected and output as data to be given to the flip-flop. A selector,
A second selector that selects one of a predetermined fixed value and the stored data of the flip-flop and outputs the selected data from the scan-out terminal;
Scan FF circuit.
請求項12記載のスキャンFF回路であって、
スキャンイネーブル端子及び同期固定値設定端子をさらに有し、
前記第1のセレクタは、前記同期固定値設定端子より得られる固定値指示信号に基づき、前記第1の選択動作を実行し、
前記第2のセレクタは、前記スキャンイネーブル端子より得られるスキャンイネーブル信号に基づき、前記第2の選択動作を実行する、
スキャンFF回路。
The scan FF circuit according to claim 12,
A scan enable terminal and a synchronous fixed value setting terminal;
The first selector performs the first selection operation based on a fixed value instruction signal obtained from the synchronous fixed value setting terminal;
The second selector performs the second selection operation based on a scan enable signal obtained from the scan enable terminal.
Scan FF circuit.
請求項12記載のスキャンFF回路であって、
スキャンイネーブル端子及び同期固定値設定端子をさらに有し、
前記第1のセレクタは、前記スキャンイネーブル端子より得られるスキャンイネーブル信号に基づき、前記第1の選択動作を実行し、
前記第2のセレクタは、前記同期固定値設定端子より得られる固定値指示信号に基づき、前記第2の選択動作を実行する、
スキャンFF回路。
The scan FF circuit according to claim 12,
A scan enable terminal and a synchronous fixed value setting terminal;
The first selector performs the first selection operation based on a scan enable signal obtained from the scan enable terminal;
The second selector performs the second selection operation based on a fixed value instruction signal obtained from the synchronous fixed value setting terminal;
Scan FF circuit.
請求項13あるいは請求項14記載のスキャンFF回路であって、
前記同期固定値設定端子は同期リセット信号を入力する同期リセット端子を含み、
前記所定の固定値は論理値“0”を指示する固定値を含む、
スキャンFF回路。
The scan FF circuit according to claim 13 or 14,
The synchronous fixed value setting terminal includes a synchronous reset terminal for inputting a synchronous reset signal,
The predetermined fixed value includes a fixed value indicating a logical value “0”.
Scan FF circuit.
請求項13あるいは請求項14記載のスキャンFF回路であって、
前記同期固定値設定端子は同期セット信号を入力する同期セット端子を含み、
前記所定の固定値は論理値“1”を指示する固定値を含む、
スキャンFF回路。
The scan FF circuit according to claim 13 or 14,
The synchronous fixed value setting terminal includes a synchronous set terminal for inputting a synchronous set signal,
The predetermined fixed value includes a fixed value indicating a logical value “1”.
Scan FF circuit.
請求項13記載のスキャンFF回路であって、
前記同期固定値設定端子は同期リセット信号を入力する同期リセット端子を含み、
前記所定の固定値は論理値“0”を指示する固定値を含み、
前記スキャンイネーブル信号はスキャンシフト時に論理値“1”を示す信号を含み、
前記第1のセレクタは前記フリップフロップの前記格納データ及び前記スキャンイネーブル端子を一方及び他方入力とするANDゲートを含む、
スキャンFF回路。
The scan FF circuit according to claim 13,
The synchronous fixed value setting terminal includes a synchronous reset terminal for inputting a synchronous reset signal,
The predetermined fixed value includes a fixed value indicating a logical value “0”;
The scan enable signal includes a signal indicating a logical value “1” at the time of scan shift,
The first selector includes an AND gate having the stored data and the scan enable terminal of the flip-flop as one and the other inputs,
Scan FF circuit.
請求項13記載のスキャンFF回路であって、
前記同期固定値設定端子は同期セット信号を入力する同期セット端子を含み、
前記所定の固定値は論理値“1”を指示する固定値を含み、
前記スキャンイネーブル信号はスキャンシフト時に論理値“1”を示す信号を含み、
前記第1のセレクタは前記フリップフロップの前記格納データ及び前記スキャンイネーブル端子を一方入力及び反転他方入力とするORゲートを含む、
スキャンFF回路。
The scan FF circuit according to claim 13,
The synchronous fixed value setting terminal includes a synchronous set terminal for inputting a synchronous set signal,
The predetermined fixed value includes a fixed value indicating a logical value “1”;
The scan enable signal includes a signal indicating a logical value “1” at the time of scan shift,
The first selector includes an OR gate having the storage data and the scan enable terminal of the flip-flop as one input and an inverted other input,
Scan FF circuit.
請求項14記載のスキャンFF回路であって、
前記同期固定値設定端子は同期リセット信号を入力する同期リセット端子を含み、
前記所定の固定値は論理値“0”を指示する固定値を含み、
前記同期リセット信号はリセット時に論理値“0”を示す信号を含み、
前記第1のセレクタは前記フリップフロップの前記格納データ及び前記同期リセット端子を一方及び他方入力とするANDゲートを含む、
スキャンFF回路。
The scan FF circuit according to claim 14,
The synchronous fixed value setting terminal includes a synchronous reset terminal for inputting a synchronous reset signal,
The predetermined fixed value includes a fixed value indicating a logical value “0”;
The synchronous reset signal includes a signal indicating a logical value “0” at the time of resetting;
The first selector includes an AND gate having the stored data and the synchronous reset terminal of the flip-flop as one and the other inputs,
Scan FF circuit.
請求項14記載のスキャンFF回路であって、
前記同期固定値設定端子は同期セット信号を入力する同期セット端子を含み、
前記所定の固定値は論理値“1”を指示する固定値を含み、
前記同期セット信号はセット時に論理値“0”を示す信号を含み、
前記第1のセレクタは前記フリップフロップの前記格納データ及び前記同期セット端子を一方入力及び反転他方入力とするORゲートを含む、
スキャンFF回路。
The scan FF circuit according to claim 14,
The synchronous fixed value setting terminal includes a synchronous set terminal for inputting a synchronous set signal,
The predetermined fixed value includes a fixed value indicating a logical value “1”;
The synchronous set signal includes a signal indicating a logical value “0” when set,
The first selector includes an OR gate having the stored data and the synchronous set terminal of the flip-flop as one input and an inverted other input,
Scan FF circuit.
請求項1記載のスキャンFF回路であって、
前記データ入力端子は第1の入力データを受ける第1のデータ入力端子を含み、
スキャンイネーブル端子及び第2のデータ入力端子をさらに有し、
前記第1のセレクタは、前記スキャンイネーブル端子より得られるスキャンイネーブル信号に基づき、前記第1の選択動作を実行し、
前記第2のセレクタは、前記スキャンイネーブル信号及び前記第2のデータ入力端子より得られる第2の入力データに基づき、前記第2の選択動作を実行する、
スキャンFF回路。
The scan FF circuit according to claim 1,
The data input terminal includes a first data input terminal for receiving first input data;
A scan enable terminal and a second data input terminal;
The first selector performs the first selection operation based on a scan enable signal obtained from the scan enable terminal;
The second selector executes the second selection operation based on the scan enable signal and second input data obtained from the second data input terminal;
Scan FF circuit.
請求項21記載のスキャンFF回路であって、
前記所定の固定値は論理値“0”を指示する固定値を含み、
前記スキャンイネーブル信号はスキャンシフト時に論理値“1”を示す信号を含み、
前記第1のセレクタは前記スキャンイネーブル信号が論理値“0”を指示するとき、前記所定の固定値を出力し、
前記第2のセレクタは前記スキャンイネーブル信号が論理値“0”を指示するとき、前記第2の入力データの“1”/“0”に基づき、前記第1の入力データ/前記所定の固定値を出力する、
スキャンFF回路。
The scan FF circuit according to claim 21,
The predetermined fixed value includes a fixed value indicating a logical value “0”;
The scan enable signal includes a signal indicating a logical value “1” at the time of scan shift,
The first selector outputs the predetermined fixed value when the scan enable signal indicates a logical value “0”;
When the scan enable signal indicates a logical value “0”, the second selector selects the first input data / the predetermined fixed value based on “1” / “0” of the second input data. Output,
Scan FF circuit.
請求項22記載のスキャンFF回路であって、
前記第1のセレクタは前記スキャンイン信号及び前記スキャンイネーブル信号を一方入力及び他方入力とするANDゲートを含む、
スキャンFF回路。
The scan FF circuit according to claim 22,
The first selector includes an AND gate having the scan-in signal and the scan enable signal as one input and the other input,
Scan FF circuit.
請求項21記載のスキャンFF回路であって、
前記所定の固定値は論理値“1”を指示する固定値を含み、
前記スキャンイネーブル信号はスキャンシフト時に論理値“1”を示す信号を含み、
前記第1のセレクタは前記スキャンイネーブル信号が論理値“0”を指示するとき、前記所定の固定値を出力し、
前記第2のセレクタは前記スキャンイネーブル信号が論理値“0”を指示するとき、前記第2の入力データの“0”/“1”に基づき、前記第1の入力データ/前記所定の固定値を出力する、
スキャンFF回路。
The scan FF circuit according to claim 21,
The predetermined fixed value includes a fixed value indicating a logical value “1”;
The scan enable signal includes a signal indicating a logical value “1” at the time of scan shift,
The first selector outputs the predetermined fixed value when the scan enable signal indicates a logical value “0”;
When the scan enable signal indicates a logical value “0”, the second selector selects the first input data / the predetermined fixed value based on “0” / “1” of the second input data. Output,
Scan FF circuit.
請求項24記載のスキャンFF回路であって、
前記第1のセレクタは前記スキャンイン信号及び前記スキャンイネーブル信号を一方入力及び反転他方入力とするORゲートを含む、
スキャンFF回路。
The scan FF circuit according to claim 24,
The first selector includes an OR gate having the scan-in signal and the scan enable signal as one input and an inverted other input,
Scan FF circuit.
クロック端子、第1及び第2のデータ入力端子、スキャンイン端子、スキャンイネーブル端子、データ出力端子、及びスキャンアウト端子を有するスキャンフリップフロップ回路(スキャンFF回路)であって、
前記クロック端子を介して入力されるクロックに同期して、付与されたデータを格納データとして取り込み、該格納データを前記データ出力端子及び前記スキャンアウト端子の少なくとも一方より出力するフリップフロップと、
前記スキャンイネーブル端子より得られるスキャンイネーブル信号及び前記第2のデータ入力端子より得られる第2の入力データに基づき、前記第1のデータ入力端子より得られる第1の入力データ、所定の固定値及び前記スキャンイン端子より得られるスキャンイン信号のうちの一つを選択して、前記フリップフロップへの付与データとして出力する選択動作を実行するセレクタとを備える、
スキャンFF回路。
A scan flip-flop circuit (scan FF circuit) having a clock terminal, first and second data input terminals, a scan-in terminal, a scan enable terminal, a data output terminal, and a scan-out terminal;
A flip-flop that captures the given data as stored data in synchronization with a clock input via the clock terminal, and outputs the stored data from at least one of the data output terminal and the scan-out terminal;
Based on a scan enable signal obtained from the scan enable terminal and second input data obtained from the second data input terminal, first input data obtained from the first data input terminal, a predetermined fixed value, and A selector that selects one of the scan-in signals obtained from the scan-in terminal and performs a selection operation that outputs the selected signal as data to be given to the flip-flop;
Scan FF circuit.
JP2005374231A 2005-12-27 2005-12-27 Scan flip-flop circuit Pending JP2007178160A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005374231A JP2007178160A (en) 2005-12-27 2005-12-27 Scan flip-flop circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005374231A JP2007178160A (en) 2005-12-27 2005-12-27 Scan flip-flop circuit

Publications (1)

Publication Number Publication Date
JP2007178160A true JP2007178160A (en) 2007-07-12

Family

ID=38303515

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005374231A Pending JP2007178160A (en) 2005-12-27 2005-12-27 Scan flip-flop circuit

Country Status (1)

Country Link
JP (1) JP2007178160A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014502043A (en) * 2010-11-11 2014-01-23 クアルコム,インコーポレイテッド Feedback scan separation and scan bypass structure
KR20160005464A (en) * 2014-07-07 2016-01-15 삼성전자주식회사 Scan chain circuit and integrated circuit including the same

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014502043A (en) * 2010-11-11 2014-01-23 クアルコム,インコーポレイテッド Feedback scan separation and scan bypass structure
KR20160005464A (en) * 2014-07-07 2016-01-15 삼성전자주식회사 Scan chain circuit and integrated circuit including the same
KR102222643B1 (en) * 2014-07-07 2021-03-04 삼성전자주식회사 Scan chain circuit and integrated circuit including the same

Similar Documents

Publication Publication Date Title
JP5041694B2 (en) Flip-flop circuit with scan function
US7712002B2 (en) Test circuit for semiconductor integrated circuit
US6570407B1 (en) Scannable latch for a dynamic circuit
JP5275136B2 (en) Semiconductor integrated circuit
JP2007187458A (en) Scan flip-flop circuit and semiconductor integrated circuit device
US20070252583A1 (en) Semiconductor integrated circuit device, measurement method therefore and measurement system for measuring AC characteristics thereof
US20110060952A1 (en) Semiconductor integrated circuit
JP2002289776A (en) Semiconductor device
JP2010223672A (en) Scan test circuit
JP2005303464A (en) Flip-flop
US20090240996A1 (en) Semiconductor integrated circuit device
JP2007178160A (en) Scan flip-flop circuit
US8803581B2 (en) Fast flip-flop structure with reduced set-up time
JP2768910B2 (en) Scan test circuit in semiconductor integrated device
JP5136043B2 (en) Logic circuit and recording medium
JP2007263756A (en) Flip-flop for scan test
JP3363691B2 (en) Semiconductor logic integrated circuit
JP6534592B2 (en) Scan test circuit and scan test apparatus
US7155649B2 (en) Scan test control method and scan test circuit
JP7354807B2 (en) semiconductor integrated circuit
JPH11194152A (en) Semiconductor integrated circuit
JP2006258694A (en) Method for resolving hold error of scan chain
JP4416469B2 (en) Semiconductor integrated circuit and design method thereof
JP2009175154A (en) Semiconductor integrated circuit and its design method
TW594030B (en) Low-power, high efficiency and accurate cycle testing apparatus