JP2001306415A - Input/output device - Google Patents

Input/output device

Info

Publication number
JP2001306415A
JP2001306415A JP2000123867A JP2000123867A JP2001306415A JP 2001306415 A JP2001306415 A JP 2001306415A JP 2000123867 A JP2000123867 A JP 2000123867A JP 2000123867 A JP2000123867 A JP 2000123867A JP 2001306415 A JP2001306415 A JP 2001306415A
Authority
JP
Japan
Prior art keywords
output
input
test
selector
circuit
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
JP2000123867A
Other languages
Japanese (ja)
Inventor
Kazuyo Yamaguchi
和代 山口
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 Micro Systems Co Ltd
Original Assignee
Renesas Micro Systems Co Ltd
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 Micro Systems Co Ltd filed Critical Renesas Micro Systems Co Ltd
Priority to JP2000123867A priority Critical patent/JP2001306415A/en
Publication of JP2001306415A publication Critical patent/JP2001306415A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an input/output(I/O) device capable of easily executing a test and shortening the test time by eliminating the necessity of a DC test. SOLUTION: The I/O device is provided with a pull-up control register 1, a port latch 2, an I/O control register 3, a CMOS/NOD switching register 4, a selector 5, an internal bus 6, an input buffer 7, an output buffer 8, a pull-up circuit 9, an external terminal 10, an NAND gate 11, an AND gate 12, an OR gate 13, and a test circuit 16.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、入出力回路に関
し、特にテストを容易化した入出力回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an input / output circuit, and more particularly, to an input / output circuit whose test is facilitated.

【0002】[0002]

【従来の技術】図5は、従来例の入出力回路を示す構成
図である。従来例の入出力回路は、ポートラッチ2と、
I/O制御レジスタ3と、内部バス6と、入力バッファ
7と、出力バッファ8と、外部端子10と、セレクタ1
8と、セレクタ50とを備えている。ポートラッチ2は
内部バス6を介してポートラッチ書き込み信号W(P
L)により書き込まれたポートデータを保持し出力す
る。同様に、I/O制御レジスタ3は内部バス6を介し
てI/O制御レジスタ書き込み信号W(PM)により書
きこまれた、出力バッファ8の出力の許可禁止を制御す
る出力制御データを保持し出力する。出力バッファ8は
スリーステート出力バッファであり、出力制御データが
論理(L)レベルのときポートラッチ2が保持している
ポートデータを外部端子10に出力し、出力制御データ
が論理(H)レベルのとき出力がオフし、ハイインピー
ダンス状態となる。入力バッファ7は外部端子10から
入力されたデータをセレクタ18に出力する。セレクタ
18は出力制御データが論理(L)レベルのときポート
ラッチ2が保持しているポートデータをセレクタ50に
出力し、出力制御データが論理(H)レベルのとき入力
バッファ7が出力するデータをセレクタ50に出力す
る。セレクタ50はポートラッチ選択信号S(PL)に
よりセレクタ18が出力するデータを内部バス6に出力
するとともに、I/O制御レジスタ選択信号S(PM)
によりI/O制御レジスタ3が出力する出力制御データ
を内部バス6に出力する。そして、この入出力回路のテ
ストにおいては、外部テスタから図示されていない入力
端子と内部バス6とを介してポートラッチ2及びI/O
制御レジスタ3にテストパタンを書き込み、外部端子1
0から出力されたデータを期待値と照合して出力バッフ
ァ8の機能動作を確認していた。
2. Description of the Related Art FIG. 5 is a block diagram showing a conventional input / output circuit. A conventional input / output circuit includes a port latch 2 and
I / O control register 3, internal bus 6, input buffer 7, output buffer 8, external terminal 10, selector 1
8 and a selector 50. The port latch 2 receives the port latch write signal W (P
L) holds and outputs the written port data. Similarly, the I / O control register 3 holds output control data which is written by the I / O control register write signal W (PM) via the internal bus 6 and controls the output enable / disable of the output buffer 8. Output. The output buffer 8 is a three-state output buffer, and outputs the port data held by the port latch 2 to the external terminal 10 when the output control data is at the logical (L) level, and outputs the data at the logical (H) level. At this time, the output is turned off, and a high impedance state is set. The input buffer 7 outputs data input from the external terminal 10 to the selector 18. The selector 18 outputs the port data held by the port latch 2 to the selector 50 when the output control data is at the logic (L) level, and outputs the data output from the input buffer 7 when the output control data is at the logic (H) level. Output to selector 50. The selector 50 outputs the data output from the selector 18 to the internal bus 6 according to the port latch selection signal S (PL), and outputs the I / O control register selection signal S (PM).
Outputs the output control data output from the I / O control register 3 to the internal bus 6. In the test of this input / output circuit, the port latch 2 and the I / O 2 are input from an external tester through an input terminal (not shown) and the internal bus 6.
The test pattern is written to the control register 3 and the external terminal 1
The function operation of the output buffer 8 has been confirmed by comparing the data output from 0 with the expected value.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、従来例
の入出力回路においては、出力バッファ8が能動状態と
なるようなテストパタンのときは外部端子10からは論
理レベルのパタンが出力されるので、テストパタンを走
行させながら直接期待値と照合して出力制御データにつ
いてのテストを行うことができるが、出力バッファ8の
出力がハイインピーダンス状態となるようなテストパタ
ンが入力されると、直接パタン照合により出力制御デー
タについてのテストを行うことができず、このときは、
テストパタン走行を一時停止し、先ずI/O制御レジス
タ3に論理(H)レベルを書き込み、出力バッファ8の
出力をハイインピーダンス状態にし、次に外部端子10
に論理(H)レベル又は論理(L)レベルをスタティッ
クに印加し、外部端子10のリーク電流を測定すること
により出力バッファ8の出力制御データの機能動作を確
認していたが、このような間接的な直流テストを行う
と、テストパタンのみによるテストよりもテストパタン
毎或いは外部端子毎に長い測定時間が必要になり、特
に、入出力回路の構成が単純ではなく、例えば、出力回
路部分が複数の動作モードを備えたりプルアップ機能を
備えていたりするとき、制御レジスタ類が増加して出力
制御データ論理が複雑化し、テストパタンによる複雑な
出力制御データ論理の設定と直流テストとにより、非常
に長いテスト時間が必要になってしまうという問題があ
った。
However, in the conventional input / output circuit, when the output buffer 8 is in a test pattern in which the output buffer 8 becomes active, a pattern of a logic level is output from the external terminal 10. The test on the output control data can be performed by directly collating with the expected value while running the test pattern. However, when a test pattern such that the output of the output buffer 8 is in a high impedance state is input, the direct pattern collation is performed. Cannot perform a test on the output control data.
The test pattern running is temporarily stopped, a logic (H) level is first written into the I / O control register 3, the output of the output buffer 8 is set to a high impedance state, and
A logical (H) level or a logical (L) level is statically applied to the output buffer 8, and the leak current of the external terminal 10 is measured to confirm the functional operation of the output control data of the output buffer 8. A typical DC test requires a longer measurement time for each test pattern or for each external terminal than a test using only a test pattern. In particular, the configuration of the input / output circuit is not simple. When the operation mode or the pull-up function is provided, the number of control registers increases and the output control data logic becomes more complicated. There was a problem that a long test time was required.

【0004】本発明は、かかる問題点に鑑みてなされた
ものであって、直流テストを不要とすることで、テスト
を容易化し、テスト時間が短い入出力回路を提供するこ
とにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and an object of the present invention is to provide an input / output circuit which facilitates a test by eliminating a direct current test, thereby shortening a test time.

【0005】[0005]

【課題を解決するための手段】本発明の入出力回路は、
内部バスからデータが書き込まれるポートラッチと、前
記ポートラッチの出力を出力端子に出力するスリーステ
ート出力バッファと、前記出力端子からデータが入力さ
れる入力バッファと、テスト回路とを備え、前記テスト
回路は、前記ポートラッチの出力又は前記入力バッファ
の出力と、前記スリーステート出力バッファの出力がハ
イインピーダンス状態であることを示す検出結果データ
とを切換えて前記内部バスに出力することを特徴とす
る。
An input / output circuit according to the present invention comprises:
A port latch to which data is written from an internal bus, a three-state output buffer for outputting an output of the port latch to an output terminal, an input buffer for receiving data from the output terminal, and a test circuit; Is configured to switch between the output of the port latch or the output of the input buffer and the detection result data indicating that the output of the three-state output buffer is in a high impedance state and output the data to the internal bus.

【0006】また、前記スリーステート出力バッファの
出力がハイインピーダンス状態であることを、少なくと
も前記スリーステート出力バッファの出力制御データの
状態により検出することを特徴とする。
[0006] The present invention is characterized in that the fact that the output of the three-state output buffer is in a high impedance state is detected at least based on the state of output control data of the three-state output buffer.

【0007】また、前記テスト回路は、前記出力制御デ
ータの状態を検出する検出回路を備えることを特徴とす
る。
Further, the test circuit includes a detection circuit for detecting a state of the output control data.

【0008】また、前記テスト回路は、前記検出回路
と、前記ポートラッチの出力と前記入力バッファの出力
とを切換え出力する第1のセレクタと、前記検出回路の
出力と前記第1のセレクタの出力とを切換え出力する第
2のセレクタとを備えることを特徴とする。
Further, the test circuit comprises: the detection circuit; a first selector for switching and outputting between the output of the port latch and the output of the input buffer; an output of the detection circuit and an output of the first selector. And a second selector for switching and outputting the signals.

【0009】また、前記第2のセレクタは、テストイネ
ーブル信号により切換制御されることを特徴とする。
Further, the switching of the second selector is controlled by a test enable signal.

【0010】また、前記第2のセレクタの出力は、第3
のセレクタに入力され、前記第3のセレクタに入力され
るポートラッチ選択信号に従って前記内部バスに出力さ
れることを特徴とする。
The output of the second selector is the third output.
And output to the internal bus according to a port latch selection signal input to the third selector.

【0011】[0011]

【発明の実施の形態】次に、本発明の実施の形態の入出
力回路の構成を図面を参照して説明する。図1は、本発
明の第1の実施の形態の入出力回路の構成図である。図
1に示すように、本発明の第1の実施の形態の入出力回
路は、プルアップ制御レジスタ1と、ポートラッチ2
と、I/O制御レジスタ3と、CMOS/Nchオープ
ンドレイン(以下、NODと記載する)切換レジスタ4
と、セレクタ5と、内部バス6と、入力バッファ7と、
出力バッファ8と、プルアップ回路9と、外部端子10
と、NANDゲート11と、ANDゲート12と、OR
ゲート13と、テスト回路16とを備えている。
Next, the configuration of an input / output circuit according to an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a configuration diagram of an input / output circuit according to a first embodiment of the present invention. As shown in FIG. 1, an input / output circuit according to a first embodiment of the present invention includes a pull-up control register 1 and a port latch 2.
, An I / O control register 3 and a CMOS / Nch open drain (hereinafter referred to as NOD) switching register 4
, A selector 5, an internal bus 6, an input buffer 7,
Output buffer 8, pull-up circuit 9, external terminal 10
, NAND gate 11, AND gate 12, OR
A gate 13 and a test circuit 16 are provided.

【0012】プルアップ制御レジスタ1は、内部バス6
を介して書き込み信号W(PU)により書き込まれたプ
ルアップ回路9のプルアップオン/オフを制御するデー
タを保持し出力する。プルアップオン設定されると論理
(H)レベルが出力され、プルアップオフ設定されると
論理(L)レベルが出力される。
The pull-up control register 1 has an internal bus 6
Holds and outputs data for controlling the pull-up on / off of the pull-up circuit 9 written by the write signal W (PU) via. When the pull-up is set on, a logic (H) level is output, and when the pull-up is set off, a logic (L) level is output.

【0013】プルアップ回路9は、トランジスタ9Aの
ソースドレイン路と、一端が電源VDDに接続された抵
抗Rとが直列接続されて構成され、制御入力端であるト
ランジスタ9Aのゲート端に入力制御データ14が入力
され、論理(L)レベルが入力されると出力端子10は
プルアップオンされ、論理(H)レベルが入力されると
出力端子10はプルアップオフされる。
The pull-up circuit 9 includes a source / drain path of a transistor 9A and a resistor R having one end connected to a power supply VDD connected in series. The input control data is connected to the gate end of the transistor 9A as a control input end. 14 is input and a logic (L) level is input, the output terminal 10 is pulled up and if a logic (H) level is input, the output terminal 10 is pulled up and off.

【0014】ポートラッチ2は、内部バス6を介して書
き込み信号W(PL)により書きこまれたポートデータ
を保持し出力する。
The port latch 2 holds and outputs port data written by the write signal W (PL) via the internal bus 6.

【0015】I/O制御レジスタ3は、内部バス6を介
して書き込み信号W(PM)により書きこまれた出力バ
ッファ8の出力の許可禁止を制御し外部端子10の入出
力方向を制御するデータを保持し出力する。入力モード
設定されると論理(H)レベルが出力され、出力モード
設定されると論理(L)レベルが出力される。
The I / O control register 3 controls the permission and prohibition of the output of the output buffer 8 written by the write signal W (PM) via the internal bus 6 and the data for controlling the input / output direction of the external terminal 10. And output. When the input mode is set, a logic (H) level is output, and when the output mode is set, a logic (L) level is output.

【0016】出力バッファ8はスリーステート出力バッ
ファであり、出力制御データ15が論理(L)レベルの
ときポートラッチ2が出力するポートデータを外部端子
10に出力し、出力制御データ15が論理(H)レベル
のとき出力がオフし、ハイインピーダンス状態となる。
The output buffer 8 is a three-state output buffer. When the output control data 15 is at a logic (L) level, it outputs the port data output from the port latch 2 to the external terminal 10, and the output control data 15 is at a logic (H). ) When the output is at the level, the output is turned off and a high impedance state is set.

【0017】CMOS/NOD切換レジスタ4は、内部
バス6を介して書き込み信号W(POM)により書き込
まれた、出力バッファ8をCMOSモード又はNODモ
ードに切換えるデータを保持し出力する。オープンドレ
イン出力となるNODモード設定されると論理(H)レ
ベルが出力され、CMOSモード設定されると論理
(L)レベルが出力される。
The CMOS / NOD switching register 4 holds and outputs the data written by the write signal W (POM) via the internal bus 6 to switch the output buffer 8 to the CMOS mode or the NOD mode. A logic (H) level is output when the NOD mode is set as an open drain output, and a logic (L) level is output when the CMOS mode is set.

【0018】NANDゲート11は、プルアップ制御レ
ジスタ1の出力とI/O制御レジスタ3の出力とが共に
論理(H)レベルであるときのみ、即ち入力モードでプ
ルアップ設定オンのときのみ、入力制御データ14を論
理(L)レベルとして、プルアップ回路9をオンする。
The NAND gate 11 receives an input signal only when both the output of the pull-up control register 1 and the output of the I / O control register 3 are at the logic (H) level, that is, only when the pull-up setting is ON in the input mode. The control data 14 is set to the logic (L) level, and the pull-up circuit 9 is turned on.

【0019】ANDゲート12は、ポートラッチ2の出
力とCMOS/NOD切換レジスタ4の出力とが共に論
理(H)レベルであるときのみ、即ちポートデータが論
理(H)レベルでNODモード設定されたときのみ、O
Rゲート13から出力される出力バッファ8の出力制御
データ15を強制的に論理(H)レベルとし、出力バッ
ファ8の出力をオフし、ハイインピーダンス状態とし、
擬似的に出力バッファ8をCMOSモードからNODモ
ードに切換える。
The AND gate 12 is set to the NOD mode only when the output of the port latch 2 and the output of the CMOS / NOD switching register 4 are both at the logic (H) level, that is, when the port data is at the logic (H) level. Only when, O
The output control data 15 of the output buffer 8 output from the R gate 13 is forcibly set to a logic (H) level, the output of the output buffer 8 is turned off, and a high impedance state is set.
The output buffer 8 is switched from the CMOS mode to the NOD mode in a pseudo manner.

【0020】ORゲート13は、上記ポートデータが論
理(H)レベルでNODモード設定されたとき以外、I
/O制御レジスタ3の出力を出力制御データ15として
出力する。
The OR gate 13 controls the I / O mode except when the port data is at the logic (H) level and the NOD mode is set.
The output of the / O control register 3 is output as output control data 15.

【0021】セレクタ5は、プルアップ制御レジスタ
1、テスト回路16、I/O制御レジスタ3及びCMO
S/NOD切換レジスタ4の各出力が入力され、プルア
ップ制御レジスタ選択信号S(PU)が論理(H)レベ
ルとなると、プルアップ制御レジスタ1の出力を内部バ
ス6に出力し、ポートラッチ選択信号S(PL)が論理
(H)レベルとなると、テスト回路16の出力を内部バ
ス6に出力し、I/O制御レジスタ選択信号S(PM)
が論理(H)レベルとなると、I/O制御レジスタ3の
出力を内部バス6に出力し、CMOS/NOD切換レジ
スタ選択信号S(POM)が論理(H)レベルとなる
と、CMOS/NOD切換レジスタ4の出力を内部バス
6に出力する。
The selector 5 includes a pull-up control register 1, a test circuit 16, an I / O control register 3, and a CMO
When each output of the S / NOD switching register 4 is input and the pull-up control register selection signal S (PU) becomes a logic (H) level, the output of the pull-up control register 1 is output to the internal bus 6 and the port latch is selected. When the signal S (PL) goes to the logic (H) level, the output of the test circuit 16 is output to the internal bus 6, and the I / O control register selection signal S (PM)
Is at a logic (H) level, the output of I / O control register 3 is output to internal bus 6. When CMOS / NOD switching register selection signal S (POM) is at a logic (H) level, CMOS / NOD switching register 4 is output to the internal bus 6.

【0022】なお、選択信号S(PU)/書き込み信号
W(PU)、選択信号S(PL)/書き込み信号W(P
L)、選択信号S(PM)/書き込み信号W(PM)、
選択信号S(POM)/書き込み信号W(POM)は、
それぞれ、デコードされた同アドレスにおいて、リード
/ライトタイミングに従って生成される。
The selection signal S (PU) / write signal W (PU) and the selection signal S (PL) / write signal W (P
L), selection signal S (PM) / write signal W (PM),
The selection signal S (POM) / write signal W (POM)
Each is generated at the same decoded address in accordance with the read / write timing.

【0023】テスト回路16は、検出回路17と、セレ
クタ18と、セレクタ19とを備えている。
The test circuit 16 includes a detection circuit 17, a selector 18, and a selector 19.

【0024】検出回路17は、従来例では直流テストに
よらねばならなかった出力端子10がハイインピーダン
スになる状態、即ち入力制御データ14と出力制御デー
タ15とが共に論理(H)レベルである論理状態を検出
するため、入力端17Aに入力制御データ14が入力さ
れ、入力端17Bに出力制御データ15が入力され、検
出結果データは出力端17Cからセレクタ19に出力さ
れる。
The detection circuit 17 is in a state in which the output terminal 10, which had to be subjected to the DC test in the conventional example, becomes high impedance, that is, both the input control data 14 and the output control data 15 are at the logic (H) level. In order to detect the state, the input control data 14 is input to the input terminal 17A, the output control data 15 is input to the input terminal 17B, and the detection result data is output to the selector 19 from the output terminal 17C.

【0025】検出回路17は、具体的一例として図2に
示すように、EXOR(排他的論理和)ゲート17Dに
より構成され、入力端17A及び入力端17Bが共に論
理(H)レベルのとき、出力端17Cから検出結果デー
タとして論理(L)レベルを出力するが、本構成に限ら
れるものではなく、例えば多ビットコンパレータを用い
検出期待値を設定しておき、任意ビット数の任意状態を
検出できるようにしてもよい。
As shown in FIG. 2 as a specific example, the detection circuit 17 is constituted by an EXOR (exclusive OR) gate 17D. When both the input terminals 17A and 17B are at the logic (H) level, the output circuit 17 outputs the signal. A logic (L) level is output from the terminal 17C as detection result data, but the present invention is not limited to this configuration. For example, a detection expectation value is set using a multi-bit comparator, and an arbitrary state with an arbitrary number of bits can be detected. You may do so.

【0026】入力バッファ7は、外部端子10から入力
されたデータをセレクタ18に出力する。セレクタ18
は、I/O制御レジスタ3の出力が論理(L)レベルの
ときポートラッチ2が出力するポートデータをセレクタ
19に出力し、I/O制御レジスタ3の出力が論理
(H)レベルのとき入力バッファ7が出力するデータを
セレクタ19に切換え出力する。
The input buffer 7 outputs data input from the external terminal 10 to the selector 18. Selector 18
Outputs the port data output by the port latch 2 to the selector 19 when the output of the I / O control register 3 is at a logical (L) level, and inputs the data when the output of the I / O control register 3 is at a logical (H) level. The data output from the buffer 7 is switched to the selector 19 and output.

【0027】セレクタ19は、テストイネーブル信号T
STが入力され、テストイネーブル信号TSTが論理
(H)レベルとなると、検出回路17の出力端17Cか
らの検出結果データをセレクタ5に出力し、テストイネ
ーブル信号TSTが論理(L)レベルとなると、セレク
タ18が出力するデータをセレクタ5に切換え出力し、
テストイネーブル信号TSTにより、入力バッファ7及
び出力バッファ8のポートデータのリード経路を共用し
て、入力制御データ14及び出力制御データ15の状態
を内部バス6に読み出している。
The selector 19 has a test enable signal T
When ST is input and the test enable signal TST goes to a logic (H) level, the detection result data from the output terminal 17C of the detection circuit 17 is output to the selector 5, and when the test enable signal TST goes to a logic (L) level, The data output from the selector 18 is switched to the selector 5 and output.
By the test enable signal TST, the states of the input control data 14 and the output control data 15 are read out to the internal bus 6 by sharing the read path of the port data of the input buffer 7 and the output buffer 8.

【0028】ここで、テストイネーブル信号TSTは、
例えばテスト用レジスタを設け、データを書き込むこと
により生成される。
Here, the test enable signal TST is
For example, it is generated by providing a test register and writing data.

【0029】次に動作を説明する。先ず、テストイネー
ブル信号TSTを論理(H)レベルとし、テスト回路1
6が検出回路17からの検出結果データをセレクタ5に
出力するように設定する。
Next, the operation will be described. First, the test enable signal TST is set to a logic (H) level, and the test circuit 1
6 is set to output the detection result data from the detection circuit 17 to the selector 5.

【0030】次に、例えば入出力回路がプルアップオン
及びNOD出力モードのときについては、出力端子10
がハイインピーダンスになる状態、即ち入力制御データ
14と出力制御データ15とが共に論理(H)レベルで
ある論理状態となるように、プルアップ制御レジスタ1
の出力を論理(H)レベル、ポートラッチ2の出力を論
理(H)レベル、I/O制御レジスタ3の出力を論理
(L)レベル、CMOS/NOD切換レジスタ4の出力
を論理(H)レベルとなるようなテストパタンを外部テ
スタから内部バス6を経由して書き込み設定する。
Next, for example, when the input / output circuit is in the pull-up ON and NOD output modes, the output terminal 10
Becomes a high impedance state, that is, a logic state in which both the input control data 14 and the output control data 15 are at a logic (H) level.
Is the logic (H) level, the output of the port latch 2 is the logic (H) level, the output of the I / O control register 3 is the logic (L) level, and the output of the CMOS / NOD switching register 4 is the logic (H) level. A test pattern is written from an external tester via the internal bus 6 and set.

【0031】これにより、入出力回路の制御動作、即ち
入力制御データ14及び出力制御データ15が正常であ
れば、プルアップ回路9はオフ状態となり、出力バッフ
ァ8はハイインピーダンス状態となって、同時に検出回
路17からは論理(L)レベルの検出結果データがセレ
クタ19を介してセレクタ5に出力され、入力制御デー
タ14及び出力制御データ15に故障があれば、検出回
路17からは論理(H)レベルの検出結果データがセレ
クタ19を介してセレクタ5に出力され、ポートラッチ
選択信号S(PL)が論理(H)レベルとなると、検出
結果データが内部バス6に出力される。
As a result, when the control operation of the input / output circuit, that is, the input control data 14 and the output control data 15 are normal, the pull-up circuit 9 is turned off, and the output buffer 8 is turned into a high impedance state. The detection circuit 17 outputs detection result data of a logic (L) level to the selector 5 via the selector 19. If there is a failure in the input control data 14 and the output control data 15, the detection circuit 17 outputs the logic (H). The level detection result data is output to the selector 5 via the selector 19, and when the port latch selection signal S (PL) becomes a logic (H) level, the detection result data is output to the internal bus 6.

【0032】内部バス6に出力された検出結果データの
検証方法は、例えば、テスト対象となっていない入出力
回路の外部端子を経由して出力させ、外部テスタにより
期待値と照合する。
As a method of verifying the detection result data output to the internal bus 6, for example, the data is output via an external terminal of an input / output circuit which is not a test target, and is compared with an expected value by an external tester.

【0033】そして、入力制御データ14及び出力制御
データ15の故障は、両信号を生成しているレジスタ、
ラッチ類の設定値の全ての組み合わせ条件について上記
テストを繰り返すことで検出判定することができる。
The failure of the input control data 14 and the output control data 15 is caused by the register generating both signals,
Detection and determination can be made by repeating the above test for all combinations of the set values of the latches.

【0034】以上説明したように、本実施の形態の入出
力回路は、テストがテストパタンによるファンクション
テストのみであるため、テスト条件が多岐に渡る場合も
テスト条件設定が容易であり、しかも、従来例のように
測定時間が長いリーク電流測定の直流テストを不要とす
ることができるため、テスト時間を短くすることができ
る。
As described above, in the input / output circuit of the present embodiment, since the test is only a function test using a test pattern, the test condition can be easily set even when the test condition is diversified. As in the example, a DC test for measuring a leak current having a long measurement time can be unnecessary, so that the test time can be shortened.

【0035】図3は、本発明の第2の実施の形態の入出
力回路の構成図であり、図4は、本発明の第2の実施の
形態の入出力回路のタイムチャートである。図3に示す
本発明の第2の実施の形態の入出力回路の構成と、図1
に示す本発明の第1の実施の形態の入出力回路の構成と
の相違部分は、テスト回路16がテスト回路21に変更
されている部分であり、テスト回路21において、テス
トイネーブル信号TSTとステータス信号CLKとをA
NDゲート20に入力し、ANDゲート20の論理積出
力によりセレクタ19を制御し、即ちステータス信号C
LKによりテストイネーブル信号TSTが反転するよう
に変更されている。なお、図3において、図1に示した
本発明の第1の実施の形態の入出力回路と同一構成部分
には同一符号を付し、その詳しい説明を省略する。
FIG. 3 is a block diagram of the input / output circuit according to the second embodiment of the present invention, and FIG. 4 is a time chart of the input / output circuit according to the second embodiment of the present invention. The configuration of the input / output circuit according to the second embodiment of the present invention shown in FIG.
Is different from the configuration of the input / output circuit according to the first embodiment of the present invention in that the test circuit 16 is changed to a test circuit 21. In the test circuit 21, the test enable signal TST and the status The signal CLK and A
The selector 19 is input to the ND gate 20 and controlled by the AND output of the AND gate 20.
The test enable signal TST is changed so as to be inverted by LK. In FIG. 3, the same components as those of the input / output circuit according to the first embodiment of the present invention shown in FIG. 1 are denoted by the same reference numerals, and detailed description thereof will be omitted.

【0036】ところで、図1に示した本発明の第1の実
施の形態の入出力回路においては、テスト時に、テスト
イネーブル信号TST生成用のテスト用レジスタにデー
タを書き込み、ポートラッチ2又は入力バッファ7の出
力データを読み出すか、検出回路17の検出結果データ
を読み出すかを選択しているため、テスト用レジスタの
1回の書き込み命令に対して、ポートラッチ2又は入力
バッファ7の出力データの読み取りと、検出回路17の
出力の読み取りとを両方実行することはできない。
By the way, in the input / output circuit of the first embodiment of the present invention shown in FIG. 1, at the time of testing, data is written into a test register for generating a test enable signal TST, and the port latch 2 or the input buffer is written. 7 to read the output data of the port latch 2 or the output data of the input buffer 7 in response to one write command of the test register. And reading of the output of the detection circuit 17 cannot both be performed.

【0037】しかし、本実施の形態の入出力回路におい
ては、図4に示すように、テスト用レジスタに1回デー
タが書き込まれテストイネーブル信号TST及びポート
ラッチ選択信号S(PL)が論理(H)レベルの状態の
ままでも、ステータス信号CLKによりANDゲート2
0から出力されるテストイネーブル信号TSTが反転さ
れるため、ステータス信号CLKが論理(L)レベルか
ら論理(H)レベルに変化する時刻t1以前では、ポー
トラッチ2出力がセレクタ5から出力され、ステータス
信号CLKが論理(H)レベルである時刻t1から時刻
t2までは、検出回路17の検出結果データがセレクタ
5から出力され、ステータス信号CLKが論理(H)レ
ベルから論理(L)レベルに変化する時刻t2以後で
は、ポートラッチ2出力がセレクタ5から出力されるの
で、ステータス信号CLKの論理レベル或いは立上がり
立下りに同期して2回読み取ることにより、1命令のう
ちに、時分割でポートラッチ2出力と検出回路17の検
出結果データとを読み取りテストすることができ、図1
に示した本発明の第1の実施の形態の入出力回路に対
し、テスト時間を更に短縮することができるという効果
を有する。
However, in the input / output circuit of this embodiment, as shown in FIG. 4, data is written once to the test register, and the test enable signal TST and the port latch selection signal S (PL) are set to logic (H). ) Even if the state remains at the level, the AND gate 2
Since the test enable signal TST output from 0 is inverted, before the time t1 when the status signal CLK changes from the logic (L) level to the logic (H) level, the output of the port latch 2 is output from the selector 5 and the status From time t1 to time t2 when the signal CLK is at the logic (H) level, the detection result data of the detection circuit 17 is output from the selector 5, and the status signal CLK changes from the logic (H) level to the logic (L) level. After the time t2, the output of the port latch 2 is output from the selector 5, so that the port latch 2 is read twice in synchronization with the logic level or the rise and fall of the status signal CLK, so that the port latch 2 The output and the detection result data of the detection circuit 17 can be read and tested.
As compared with the input / output circuit according to the first embodiment of the present invention, there is an effect that the test time can be further reduced.

【0038】[0038]

【発明の効果】以上説明したように、本発明による第1
の効果は、テストがファンクションテストのみであるた
め、テスト条件が多岐に渡る場合もテスト条件設定が容
易であることであり、第2の効果は、従来例のように測
定時間が長いリーク電流測定の直流テストを不要とする
ことができるため、テスト時間を短くすることができる
ことである。
As described above, the first embodiment according to the present invention is described.
The effect of (1) is that since the test is only a function test, it is easy to set the test conditions even when the test conditions are diversified. The second effect is that the leak current measurement has a long measurement time as in the conventional example. Since the DC test can be omitted, the test time can be shortened.

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

【図1】本発明の第1の実施の形態の入出力回路の構成
図である。
FIG. 1 is a configuration diagram of an input / output circuit according to a first embodiment of the present invention.

【図2】図1の検出回路の構成図である。FIG. 2 is a configuration diagram of a detection circuit of FIG. 1;

【図3】本発明の第2の実施の形態の入出力回路の構成
図である。
FIG. 3 is a configuration diagram of an input / output circuit according to a second embodiment of the present invention.

【図4】本発明の第2の実施の形態の入出力回路のタイ
ムチャートである。
FIG. 4 is a time chart of an input / output circuit according to a second embodiment of the present invention.

【図5】従来例の入出力回路の構成図である。FIG. 5 is a configuration diagram of a conventional input / output circuit.

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

1 プルアップ制御レジスタ 2 ポートラッチ 3 I/O制御レジスタ 4 CMOS/NOD切換レジスタ 5、18、19、50 セレクタ 6 内部バス 7 入力バッファ 8 出力バッファ 9 プルアップ回路 9A トランジスタ 10 外部端子 11 NANDゲート 12、20 ANDゲート 13 ORゲート 16、21 テスト回路 17 検出回路 17D EXORゲート R 抵抗 DESCRIPTION OF SYMBOLS 1 Pull-up control register 2 Port latch 3 I / O control register 4 CMOS / NOD switching register 5, 18, 19, 50 Selector 6 Internal bus 7 Input buffer 8 Output buffer 9 Pull-up circuit 9A transistor 10 External terminal 11 NAND gate 12 , 20 AND gate 13 OR gate 16, 21 test circuit 17 detection circuit 17D EXOR gate R resistance

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 内部バスからデータが書き込まれるポー
トラッチと、前記ポートラッチの出力を出力端子に出力
するスリーステート出力バッファと、前記出力端子から
データが入力される入力バッファと、テスト回路とを備
え、前記テスト回路は、前記ポートラッチの出力又は前
記入力バッファの出力と、前記スリーステート出力バッ
ファの出力がハイインピーダンス状態であることを示す
検出結果データとを切換えて前記内部バスに出力するこ
とを特徴とする入出力回路。
1. A port latch to which data is written from an internal bus, a three-state output buffer that outputs an output of the port latch to an output terminal, an input buffer that receives data from the output terminal, and a test circuit. The test circuit switches between the output of the port latch or the output of the input buffer and the detection result data indicating that the output of the three-state output buffer is in a high impedance state, and outputs the data to the internal bus. An input / output circuit characterized by the following.
【請求項2】 前記スリーステート出力バッファの出力
がハイインピーダンス状態であることを、少なくとも前
記スリーステート出力バッファの出力制御データの状態
により検出することを特徴とする請求項1記載の入出力
回路。
2. The input / output circuit according to claim 1, wherein the output of the three-state output buffer is in a high impedance state based on at least a state of output control data of the three-state output buffer.
【請求項3】 前記テスト回路は、前記出力制御データ
の状態を検出する検出回路を備えることを特徴とする請
求項2記載の入出力回路。
3. The input / output circuit according to claim 2, wherein said test circuit includes a detection circuit for detecting a state of said output control data.
【請求項4】 前記テスト回路は、前記検出回路と、前
記ポートラッチの出力と前記入力バッファの出力とを切
換え出力する第1のセレクタと、前記検出回路の出力と
前記第1のセレクタの出力とを切換え出力する第2のセ
レクタとを備えることを特徴とする請求項3記載の入出
力回路。
4. The test circuit includes: a detection circuit; a first selector for switching between an output of the port latch and an output of the input buffer; and an output of the detection circuit and an output of the first selector. 4. The input / output circuit according to claim 3, further comprising: a second selector for switching and outputting a signal.
【請求項5】 前記第2のセレクタは、テストイネーブ
ル信号により切換制御されることを特徴とする請求項4
記載の入出力回路。
5. The switching of the second selector is controlled by a test enable signal.
Input / output circuit as described.
【請求項6】 前記第2のセレクタの出力は、第3のセ
レクタに入力され、前記第3のセレクタに入力されるポ
ートラッチ選択信号に従って前記内部バスに出力される
ことを特徴とする請求項5記載の入出力回路。
6. The output of the second selector is input to a third selector, and is output to the internal bus according to a port latch selection signal input to the third selector. 5. The input / output circuit according to 5.
JP2000123867A 2000-04-25 2000-04-25 Input/output device Pending JP2001306415A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000123867A JP2001306415A (en) 2000-04-25 2000-04-25 Input/output device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000123867A JP2001306415A (en) 2000-04-25 2000-04-25 Input/output device

Publications (1)

Publication Number Publication Date
JP2001306415A true JP2001306415A (en) 2001-11-02

Family

ID=18634089

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000123867A Pending JP2001306415A (en) 2000-04-25 2000-04-25 Input/output device

Country Status (1)

Country Link
JP (1) JP2001306415A (en)

Similar Documents

Publication Publication Date Title
US7721174B2 (en) Full-speed BIST controller for testing embedded synchronous memories
US6061282A (en) Semiconductor memory having an improved test circuit
US7996738B2 (en) Semiconductor chip with a plurality of scannable storage elements and a method for scanning storage elements on a semiconductor chip
JP2914346B2 (en) Semiconductor device
US7053686B2 (en) Data strobe circuit using clock signal
US7913132B2 (en) System and method for scanning sequential logic elements
US7725792B2 (en) Dual-path, multimode sequential storage element
US20090254784A1 (en) Semiconductor memory device and system using semiconductor memory device
US11435940B2 (en) Testing a memory which includes conservative reversible logic
US11404134B2 (en) Memory device test circuit and memory device test method
JP2001306415A (en) Input/output device
US7770081B2 (en) Interface circuit for a single logic input pin of an electronic system
KR100697896B1 (en) Method and apparatus for an easy identification of a state of a dram generator controller
JP2007527091A (en) DFT technology to enhance self-timing memory for detecting delay faults
JP2011080808A (en) Semiconductor integrated circuit and method for testing the same
US6158029A (en) Method of testing an integrated circuit having a memory and a test circuit
US7685484B2 (en) Methods for the support of JTAG for source synchronous interfaces
JP3943890B2 (en) Semiconductor device
KR100214315B1 (en) Ability testing circuit of asic built-in memory
JP2001296334A (en) Integrated circuit and failure detection method
US7293190B2 (en) Noisy clock test method and apparatus
JP2009053130A (en) Semiconductor device
KR100576482B1 (en) Multibit Data Test Device
KR100186335B1 (en) Parallel test circuit of dram
JP2870291B2 (en) Semiconductor memory circuit

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20031125

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20060307