JPH1021109A - Circuit for testing arithmetic unit - Google Patents

Circuit for testing arithmetic unit

Info

Publication number
JPH1021109A
JPH1021109A JP8173938A JP17393896A JPH1021109A JP H1021109 A JPH1021109 A JP H1021109A JP 8173938 A JP8173938 A JP 8173938A JP 17393896 A JP17393896 A JP 17393896A JP H1021109 A JPH1021109 A JP H1021109A
Authority
JP
Japan
Prior art keywords
test
output
counter
circuit
rom
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
JP8173938A
Other languages
Japanese (ja)
Inventor
Masahiro Ohashi
政宏 大橋
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP8173938A priority Critical patent/JPH1021109A/en
Publication of JPH1021109A publication Critical patent/JPH1021109A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a testing circuit for reducing the number of testing terminals and test time required for the test of an arithmetic unit which operates data of a memory incorporated in LSI. SOLUTION: A test clock is inputted from an external input terminal 301 and test ROM address signals 311 and 312 are generated by couters 303 and 305 by the clock generated by a clock generating circuit 306. Then, data of ROM 316 and 317 as against the generated address are outputted to an adder 318. The coincidence of the addition result of the adder 318 with data of a serial/parallel conversion register 207, which is obtained by latching the expectation value of the addition result inputted from the external input terminal 302 is detected by a coincidence circuit 319 so that testing is executed in the adder and ROM.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明はLSIをテストする
とき、メモリのデータを演算する演算器のテスト回路に
関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a test circuit of a computing unit for computing data in a memory when testing an LSI.

【0002】[0002]

【従来の技術】図7は、第1の従来の技術による、2つ
のメモリ(ROM)のデータを演算する演算器(加算
器)のテスト回路のブロック図である。外部入力端子4
01〜404よりROM414(4ビットアドレス、4
ビットデータ)のテスト用アドレス信号を入力する。ま
た外部入力端子405〜408よりROM415(4ビ
ットアドレス、4ビットデータ)のテスト用アドレス信
号を入力する。セレクタ412とセレクタ413は加算
器416のテストモード信号411がLレベルであるテ
スト時に、外部入力端子401〜408より入力された
テスト用アドレス信号を選択し、それぞれROM414
とROM415に出力する。ROM414とROM41
5は入力されたテスト用アドレス信号に対するそれぞれ
のデータを加算器416に出力する、加算器416は加
算結果を外部出力端子417〜421に出力して加算器
のテストを行なう。
2. Description of the Related Art FIG. 7 is a block diagram of a test circuit of an arithmetic unit (adder) for operating data of two memories (ROM) according to a first conventional technique. External input terminal 4
ROM 414 (4-bit address, 4
(Bit data) is input. A test address signal for the ROM 415 (4-bit address, 4-bit data) is input from the external input terminals 405 to 408. When the test mode signal 411 of the adder 416 is at the L level, the selectors 412 and 413 select the test address signals input from the external input terminals 401 to 408, respectively.
Is output to the ROM 415. ROM 414 and ROM 41
5 outputs each data corresponding to the input test address signal to the adder 416. The adder 416 outputs the addition result to the external output terminals 417 to 421 to test the adder.

【0003】また、図5は、第2の従来の技術による2
つのメモリ(ROM)のデータを演算する演算器(加算
器)のテスト回路のブロック図である。外部入力端子5
01よりROM511(4ビットアドレス、4ビットデ
ータ)のテスト用アドレス信号を入力し、入力されたテ
スト用アドレス信号を外部入力端子503より入力され
るテスト用クロックにより4ビットのシリアル−パラレ
ル変換レジスタ504でラッチする。また、外部入力端
子502よりROM512(4ビットアドレス、4ビッ
トデータ)のテスト用アドレス信号を入力し、入力され
たテスト用アドレス信号を外部入力端子503より入力
されるテスト用クロックにより4ビットのシリアル−パ
ラレル変換レジスタ505でラッチする。セレクタ50
9とセレクタ510は、加算器513のテストモード信
号508がLレベルであるテスト時に、シリアル−パラ
レル変換レジスタ504とシリアル−パラレル変換レジ
スタ505のデータをそれぞれテスト用アドレス信号と
して選択し、ROM511とROM512にそれぞれ出
力する。ROM511とROM512は入力されたテス
ト用アドレス信号に対するデータを加算器513に出力
する。加算器513は加算結果を5ビットのパラレル−
シリアル変換レジスタ514に出力する。パラレル−シ
リアル変換レジスタ514は、演算結果を、外部入力端
子503より入力されるテスト用クロックでラッチした
後、外部入力端子515から入力される制御信号でシリ
アル出力に切り替える。このシリアル出力は外部入力端
子503より入力されるテスト用クロックにより外部出
力端子516に出力され、加算器のテストを行なう。
[0005] FIG. 5 shows a second prior art.
FIG. 3 is a block diagram of a test circuit of a computing unit (adder) that computes data of two memories (ROM). External input terminal 5
01, a test address signal of the ROM 511 (4-bit address, 4-bit data) is input from the input device 101, and the input test address signal is converted into a 4-bit serial-parallel conversion register 504 by a test clock input from the external input terminal 503. Latch. Further, a test address signal of ROM 512 (4-bit address, 4-bit data) is input from the external input terminal 502, and the input test address signal is converted into a 4-bit serial signal by a test clock input from the external input terminal 503. -Latch by the parallel conversion register 505. Selector 50
9 and the selector 510 select the data of the serial-parallel conversion register 504 and the data of the serial-parallel conversion register 505 as a test address signal when the test mode signal 508 of the adder 513 is at the L level. Respectively. The ROM 511 and the ROM 512 output data corresponding to the input test address signal to the adder 513. The adder 513 converts the addition result into a 5-bit parallel
Output to the serial conversion register 514. The parallel-serial conversion register 514 latches the operation result with a test clock input from the external input terminal 503, and switches to a serial output with a control signal input from the external input terminal 515. This serial output is output to an external output terminal 516 in response to a test clock input from an external input terminal 503 to test the adder.

【0004】[0004]

【発明が解決しようとする課題】第1の従来の技術によ
る、2つのメモリのデータを演算する演算器のテスト回
路においては、メモリと演算器の構成上外部端子の数が
増加する。外部端子の数に制限があり絶対量が不足して
いるLSIにおいてはこのように多数のテスト用の外部
端子を設けることが困難であるため、テスト用の外部端
子の数の削減が要求されている。また、第2の従来の技
術による2つのメモリのデータを演算する演算器のテス
ト回路においては、テスト用アドレス入力に対しシリア
ル−パラレル変換を行うとともに、演算器のテスト結果
出力に対してもパラレル−シリアル変換を行うためにテ
スト時間が増加する。このため、テスト時間の削減が要
求されている。
In the test circuit of the arithmetic unit for operating data of two memories according to the first prior art, the number of external terminals increases due to the configuration of the memory and the arithmetic unit. In an LSI in which the number of external terminals is limited and the absolute amount is insufficient, it is difficult to provide a large number of external terminals for testing as described above. Therefore, it is required to reduce the number of external terminals for testing. I have. Further, in a test circuit of an arithmetic unit for operating data of two memories according to the second conventional technique, a serial-to-parallel conversion is performed for a test address input, and a test result output of the arithmetic unit is also parallelized. -The test time increases to perform the serial conversion. Therefore, a reduction in test time is required.

【0005】本発明は上記各それぞれの従来技術の問題
点を解決するためのもので、テスト用の外部端子の数が
少なくテスト時間が短い演算器のテスト回路を提供する
ことを目的とする。
An object of the present invention is to solve the above-mentioned problems of the prior art, and an object of the present invention is to provide a test circuit of an arithmetic unit having a small number of external test terminals and a short test time.

【0006】[0006]

【課題を解決するための手段】外部入力端子から入力さ
れるテスト用クロックを第1のカウンタでカウントして
第1のテスト用アドレス信号を生成し、第1のカウンタ
の任意の値をカウントする第2のカウンタで第2のテス
ト用アドレス信号を生成する。第1及び第2テスト用ア
ドレス信号をそれぞれのメモリに与えてそれぞれのデー
タを出力し、それらのデータを加算して出力することに
より加算器とメモリのテストを行う。
A test clock input from an external input terminal is counted by a first counter to generate a first test address signal, and an arbitrary value of the first counter is counted. The second counter generates a second test address signal. The first and second test address signals are applied to the respective memories to output respective data, and the data is added and output, thereby testing the adder and the memory.

【0007】[0007]

【発明の実施の形態】本発明の演算器テスト回路は、テ
スト時に外部入力端子から入力されるテスト用クロック
で動作する第1のカウンタと、第1のカウンタの任意の
1つの値をイネーブル信号とし、テスト用クロックをカ
ウントする第2カウンタと、第1カウンタで生成される
第1のメモリのテスト用アドレス信号と第1のメモリの
通常動作時のアドレス信号のいずれかを選択する第1の
セレクタと、第2のカウンタで生成される第2のメモリ
のテスト用アドレス信号と第2のメモリの通常動作時の
アドレス信号のいずれかを選択する第2のセレクタを備
え、演算器の出力結果を外部端子に出力することで演算
器のテストを行う構成を有している。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An arithmetic unit test circuit according to the present invention provides a first counter which operates with a test clock input from an external input terminal at the time of a test, and an enable signal for an arbitrary value of the first counter. A second counter for counting a test clock, a first counter for selecting one of a test address signal of the first memory generated by the first counter and an address signal of the first memory during normal operation. A selector, and a second selector for selecting one of a test address signal for the second memory generated by the second counter and an address signal for a normal operation of the second memory; Is output to an external terminal to test the arithmetic unit.

【0008】さらに上記の構成に加えて、外部入力端子
より入力される演算器の出力期待値と演算器の出力を入
力とする第1の一致回路を備え、第1の一致回路の出力
を外部端子に出力することで演算器のテストが可能とな
る構成を有している。
Further, in addition to the above configuration, there is provided a first matching circuit which receives an expected output value of the arithmetic unit input from an external input terminal and an output of the arithmetic unit, and outputs an output of the first matching circuit to an external unit. It has a configuration that enables testing of the arithmetic unit by outputting to a terminal.

【0009】さらに、上記の構成に加えて、外部端子か
ら入力される演算器の出力期待値をテスト用クロックに
よりラッチするシリアル−パラレル変換レジスタと、第
1のカウンタと第2のカウンタのクロックを生成するた
めのクロック生成回路と、シリアル−パラレル変換レジ
スタのデータと演算器の出力結果の一致を検出する第2
の一致回路を有し、第2の一致回路の出力を外部端子に
出力することで演算器のテストが可能となる構成を有し
ている。
Further, in addition to the above configuration, a serial-parallel conversion register for latching an expected output value of an arithmetic unit input from an external terminal by a test clock, and a clock for a first counter and a second counter are provided. A clock generation circuit for generating the data, and a second circuit for detecting a match between the data of the serial-parallel conversion register and the output result of the arithmetic unit
And outputting the output of the second matching circuit to an external terminal to enable a test of the arithmetic unit.

【0010】[0010]

【実施例】以下、本発明の実施例について、図1ないし
図6を用いて説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIGS.

【0011】《実施例1》図1は2つの読出し専用メモ
リであるROM112、113のデータを加算する加算
器114のテスト回路のブロック図である。このテスト
回路が大規模集積回路(以下LSIと称する)に組み込
まれている。図1において、カウンタ102は4ビット
のカウンタである。カウンタ102にデコーダ103が
接続されている。デコーダ103の出力端は4ビットの
カウンタ104セレクタ110と111の出力端はそれ
ぞれROM112と113に接続されている。ROM1
12と113の出力端はテスト対象の加算器114に接
続されている。
Embodiment 1 FIG. 1 is a block diagram of a test circuit of an adder 114 for adding data of ROMs 112 and 113, which are two read-only memories. This test circuit is incorporated in a large-scale integrated circuit (hereinafter, referred to as LSI). In FIG. 1, the counter 102 is a 4-bit counter. The decoder 103 is connected to the counter 102. The output terminal of the decoder 103 is connected to the ROM 112 and 113, and the output terminals of the 4-bit counter 104 selectors 110 and 111 are connected to the ROM 112 and 113, respectively. ROM1
Output terminals of 12 and 113 are connected to an adder 114 to be tested.

【0012】以上のように構成された加算器114のテ
スト回路について、図4の波形図を参照してその動作を
述べる。LSIのテスト時には、外部入力端子101よ
りテスト用クロック(図4のb)を入力する。カウンタ
102は、テストモード信号109(図4のa)がLレ
ベルの時に外部入力端子101より入力されたテスト用
クロックをカウントする。カウンタ102は、「000
0」〜「1111」(BIN)のカウントを繰り返し
て、加算器114のテスト用ROMアドレス信号107
(図4のc)を生成する。デコーダ103は、カウンタ
102の「1111」の値をデコードし、Hレベルの信
号を出力する。カウンタ104は、デコーダ103の信
号がHレベルの時に外部入力端子101より入力される
テスト用クロックをカウントする。カウンタ104は
「0000」〜「1111」(BIN)のカウントを行
ない加算器のテスト用ROMアドレス108(図4の
d)を生成する。セレクタ110は、通常動作時のRO
Mアドレス信号106とテスト用ROMアドレス信号1
08の内、テストモード信号109がLレベルの時にテ
スト用ROMアドレス信号108を選択し、ROM11
2に出力する。セレクタ111は、通常動作時のROM
アドレス信号105とテスト用ROMアドレス信号10
7の内、テストモード信号109(図4のa)がLレベ
ルの時にテスト用ROMアドレス信号107を選択し、
ROM113に出力する。ROM112とROM113
はそれぞれのテスト用ROMアドレス信号108とテス
ト用ROMアドレス信号107が指定したアドレスのデ
ータ(図4のe、f)を加算器114に出力する。加算
器114は、加算結果(図4のg)を外部出力端子11
5〜119に出力する。この加算結果に基づいて加算器
のテストが可能である。
The operation of the test circuit of the adder 114 configured as described above will be described with reference to the waveform diagram of FIG. At the time of testing the LSI, a test clock (FIG. 4B) is input from the external input terminal 101. The counter 102 counts the test clock input from the external input terminal 101 when the test mode signal 109 (a in FIG. 4) is at the L level. The counter 102 indicates “000
By repeating the count of “0” to “1111” (BIN), the test ROM address signal 107
(C in FIG. 4). The decoder 103 decodes the value of “1111” of the counter 102 and outputs an H-level signal. The counter 104 counts the test clock input from the external input terminal 101 when the signal of the decoder 103 is at the H level. The counter 104 counts “0000” to “1111” (BIN) and generates a test ROM address 108 (d in FIG. 4) for the adder. The selector 110 controls the RO in the normal operation.
M address signal 106 and test ROM address signal 1
08, the test ROM address signal 108 is selected when the test mode signal 109 is at the L level.
Output to 2. The selector 111 is a ROM for normal operation.
Address signal 105 and test ROM address signal 10
7, when the test mode signal 109 (FIG. 4A) is at the L level, the test ROM address signal 107 is selected.
Output to the ROM 113. ROM 112 and ROM 113
Outputs the data (e, f in FIG. 4) at the address designated by the test ROM address signal 108 and the test ROM address signal 107 to the adder 114. The adder 114 outputs the addition result (g in FIG. 4) to the external output terminal 11.
5 to 119. The adder can be tested based on the result of the addition.

【0013】以上のように実施例1によれば、1個の外
部入力端子101から入力されるテスト用クロックによ
りメモリのテスト用アドレス信号を生成して演算パター
ンのすべてのテストが可能であり、演算結果を1個の外
部出力端子に出力することで演算器のテストを行なうこ
とができる。従ってテスト用の外部入出力端子の数が削
減されるとともにメモリのテストも可能である。また、
図8の従来例に示すように、演算器のテスト結果の出力
信号に対しパラレル−シリアル変換レジスタを用いてい
ないため、それを用いたものに較べて、テスト時間の削
減が可能となる。なお複数個のメモリのデータを演算す
る演算器のテストにおいてもテスト用アドレス信号を生
成するカウンタを付加することで同様にテストが可能で
ある。
As described above, according to the first embodiment, it is possible to generate a test address signal for a memory by a test clock input from one external input terminal 101 and perform all tests of the operation pattern. By outputting the operation result to one external output terminal, a test of the operation unit can be performed. Therefore, the number of external input / output terminals for the test can be reduced and the memory can be tested. Also,
As shown in the conventional example of FIG. 8, since the parallel-serial conversion register is not used for the output signal of the test result of the arithmetic unit, the test time can be reduced as compared with the case using the register. It should be noted that the same test can be performed in a test of a computing unit that computes data of a plurality of memories by adding a counter for generating a test address signal.

【0014】《実施例2》図2は2つのROM217、
218のデータを加算する加算器219のテスト回路の
ブロック図である。図2において、カウンタ207は4
ビットのカウンタであり、カウント値をデコーダ208
に印加する。カウンタ209は4ビットのカウンタであ
る。セレクタ215、216、ROM217、218及
びテスト対象の加算器219の構成は図1の対応する部
分のそれと実質的に同じである。本実施例2では新たに
一致回路220が設けられている。
Embodiment 2 FIG. 2 shows two ROMs 217,
FIG. 18 is a block diagram of a test circuit of an adder 219 for adding data of 218. In FIG. 2, the counter 207 is 4
This is a bit counter, and the count value is
Is applied. The counter 209 is a 4-bit counter. The configurations of the selectors 215 and 216, the ROMs 217 and 218, and the adder 219 to be tested are substantially the same as those of the corresponding parts in FIG. In the second embodiment, a coincidence circuit 220 is newly provided.

【0015】以上のように構成された加算器のテスト回
路について、図5の波形図を参照してその動作を述べ
る。LSIのテスト時には、外部入力端子201よりテ
スト用クロック(図5のb)を入力する。カウンタ20
7は、テストモード信号214(図5のa)がLレベル
の時に、外部入力端子201よりテ入力されるテスト用
クロックをカウントする。カウンタ207は「000
0」〜「1111」(BIN)のカウントを繰り返し
て、加算器のテスト用ROMアドレス信号212(図5
のc)を生成する。デコーダ208はカウンタ207の
「1111」の値をデコードし、Hレベルの信号を出力
する。カウンタ209はデコーダ208の信号がHレベ
ルの時に外部入力端子201よりテ入力されたテスト用
クロックをカウントし、カウンタ209は、「000
0」〜「1111」(BIN)のカウントを行ない加算
器のテスト用ROMアドレス213(図5のd)を生成
する。セレクタ216は、テストモード信号214がL
レベルの時に、通常動作時のROMアドレス信号210
とテスト用ROMアドレス信号212の内のテスト用R
OMアドレス信号212を選択し、ROM218に出力
する。セレクタ215は、テストモード信号214がL
レベルの時に、通常動作時のROMアドレス信号211
とテスト用ROMアドレス信号213の内、テスト用R
OMアドレス信号213を選択し、ROM217に出力
する。ROM217とROM218はそれぞれのテスト
用ROMアドレス信号213とテスト用ROMアドレス
信号212が指定したアドレスのデータ(図5のe、
f)を加算器219に出力する。この時、外部入力端子
202〜206に加算結果の期待値(図5のh)を入力
し、一致回路220で加算器219の出力(図5のg)
と期待値の一致を検出し、外部出力端子221に出力す
る。(図5のi)一致した場合のHレベル出力の一致信
号を検出することによって加算器のテストが可能であ
る。
The operation of the test circuit of the adder configured as described above will be described with reference to the waveform diagram of FIG. At the time of testing the LSI, a test clock (FIG. 5B) is input from the external input terminal 201. Counter 20
Reference numeral 7 counts a test clock input from the external input terminal 201 when the test mode signal 214 (FIG. 5A) is at the L level. The counter 207 indicates “000
By repeating the count of "0" to "1111" (BIN), the test ROM address signal 212 (FIG.
C) is generated. The decoder 208 decodes the value of "1111" of the counter 207 and outputs an H level signal. The counter 209 counts the test clock input from the external input terminal 201 when the signal of the decoder 208 is at the H level.
The count from “0” to “1111” (BIN) is performed to generate the test ROM address 213 (d in FIG. 5) of the adder. The selector 216 determines that the test mode signal 214 is low.
Level, the ROM address signal 210 during normal operation
And the test R in the test ROM address signal 212
The OM address signal 212 is selected and output to the ROM 218. The selector 215 determines that the test mode signal 214 is low.
Level, the ROM address signal 211 during normal operation
And test ROM address signal 213,
The OM address signal 213 is selected and output to the ROM 217. The ROM 217 and the ROM 218 store the data of the address designated by the test ROM address signal 213 and the test ROM address signal 212 (e in FIG. 5,
f) is output to the adder 219. At this time, the expected value (h in FIG. 5) of the addition result is input to the external input terminals 202 to 206, and the output of the adder 219 (g in FIG.
And an expected value are detected and output to the external output terminal 221. (I in FIG. 5) A test of the adder is possible by detecting a coincidence signal of an H level output in the case of coincidence.

【0016】以上のように実施例2によれば、1個の外
部入力端子201から入力されるテスト用クロックによ
りメモリのテスト用アドレス信号を生成して演算パター
ンのすべてのテストが可能である。外部入力端子202
〜206より演算結果の出力期待値を入力し、演算結果
との一致を検出することで演算器のテストを行ない1個
の外部出力端子221に出力される。テスト用の外部入
出力端子の数が削減されるとともにメモリのテストも可
能であり、また、演算器のテスト結果の出力信号に対し
パラレル−シリアル変換レジスタを用いていないため、
テスト時間の削減が可能となる。なお、複数個のメモリ
のデータを演算する演算器のテストにおいてもテスト用
アドレス信号を生成するカウンタを付加することで同様
にテストが可能である。
As described above, according to the second embodiment, a test address signal for a memory is generated by a test clock input from one external input terminal 201, and all tests of the operation pattern can be performed. External input terminal 202
The expected output value of the operation result is input from .about.206, the operation unit is tested by detecting coincidence with the operation result, and is output to one external output terminal 221. Since the number of external input / output terminals for testing is reduced and the memory can be tested, and because the parallel-serial conversion register is not used for the output signal of the test result of the arithmetic unit,
Test time can be reduced. It should be noted that the same test can be performed in a test of a computing unit that computes data in a plurality of memories by adding a counter for generating a test address signal.

【0017】《実施例3》図3は2つのROM316、
317のデータを加算する加算器318のテスト回路の
ブロック図である。図3において、カウンタ303は4
ビットのカウンタであり、カウント値をデコーダ304
に印加する。カウンタ305は4ビットのカウンタであ
る。クロック生成回路306はカウンタ303と305
に接続されている。シリアル−パラレル変換レジスタ3
07は5ビットのレジスタである。セレクタ314と3
15はそれぞれROM316と317の出力を選択す
る。ROM316、317の出力はテスト対象の加算器
318に印加される。シリアル−パラレル変換レジスタ
307の出力と加算器の出力は一致回路319に印加さ
れる。
<< Embodiment 3 >> FIG. 3 shows two ROMs 316,
FIG. 13 is a block diagram of a test circuit of an adder 318 for adding data 317. In FIG. 3, the counter 303 indicates 4
It is a bit counter, and the count value is
Is applied. The counter 305 is a 4-bit counter. The clock generation circuit 306 includes counters 303 and 305
It is connected to the. Serial-parallel conversion register 3
07 is a 5-bit register. Selectors 314 and 3
Reference numeral 15 selects the output of the ROMs 316 and 317, respectively. The outputs of the ROMs 316 and 317 are applied to an adder 318 to be tested. The output of the serial-parallel conversion register 307 and the output of the adder are applied to the matching circuit 319.

【0018】以上のように構成された加算器318のテ
スト回路について、図6の波形図を参照してその動作を
述べる。LSIのテスト時には、外部入力端子301よ
りテスト用クロック(図6のb)を入力する。クロック
生成回路306は、テストモード信号313(図6の
a)がLレベルの時、外部入力端子301より入力され
たテスト用クロックの5クロックを1クロックに変換し
て生成クロック308(図6のc)を生成する。カウン
タ303は、テストモード信号313がLレベルの時に
生成クロック308をカウントする。カウンタ303で
は、「0000」〜「1111」(BIN)のカウント
が繰り返され加算器のテスト用ROMアドレス信号31
1(図6のd)が生成される。デコーダ304はカウン
タ303の「1111」の値をデコードし、Hレベルの
信号をカウンタ305に出力する。カウンタ305は、
デコーダ304の信号がHレベルの時にクロック308
をカウントする。カウンタ305は「0000」〜「1
111」(BIN)のカウントを行ない加算器のテスト
用ROMアドレス312(図6のe)を生成する。セレ
クタ314は、テストモード信号313がLレベルの時
に、通常動作時のROMアドレス信号310とテスト用
ROMアドレス信号312の内のテスト用ROMアドレ
ス信号312を選択し、ROM316に出力する。セレ
クタ315は、テストモード信号313がLレベルの時
に、通常動作時のROMアドレス信号309とテスト用
ROMアドレス信号311の内のテスト用ROMアドレ
ス信号311を選択し、ROM317に出力する。RO
M316とROM317はそれぞれのテスト用ROMア
ドレス信号312とテスト用ROMアドレス信号311
が指定したアドレスのデータ(図6のg、h)を加算器
318に出力する。外部入力端子302には加算結果の
期待値を入力し、外部入力端子301より入力されたテ
スト用クロックによりシリアル−パラレル変換レジスタ
307でラッチする。一致回路319では、加算器31
8の出力データ(図6のh)とシリアル−パラレル変換
レジスタ307にラッチされた出力期待値データ(図6
のi)の一致を検出し、外部出力端子320に出力す
る。一致した場合にテスト用クロックの5クロック周期
でHレベル出力の一致信号が検出されることで加算器の
テストが可能である。
The operation of the test circuit of the adder 318 configured as described above will be described with reference to the waveform diagram of FIG. At the time of testing the LSI, a test clock (FIG. 6B) is input from the external input terminal 301. When the test mode signal 313 (a in FIG. 6) is at the L level, the clock generation circuit 306 converts five test clocks input from the external input terminal 301 into one clock and generates the generated clock 308 (FIG. 6). c). The counter 303 counts the generated clock 308 when the test mode signal 313 is at the L level. The counter 303 repeats counting from “0000” to “1111” (BIN), and repeats the test ROM address signal 31 for the adder.
1 (d in FIG. 6) is generated. The decoder 304 decodes the value of “1111” of the counter 303 and outputs an H level signal to the counter 305. The counter 305 is
When the signal of the decoder 304 is at the H level, the clock 308
Count. The counter 305 ranges from “0000” to “1”.
111 "(BIN) is counted to generate an adder test ROM address 312 (FIG. 6e). When the test mode signal 313 is at the L level, the selector 314 selects the test ROM address signal 312 from the ROM address signal 310 and the test ROM address signal 312 during normal operation, and outputs the selected signal to the ROM 316. When the test mode signal 313 is at L level, the selector 315 selects the ROM address signal 309 for normal operation and the test ROM address signal 311 from the test ROM address signal 311 and outputs the selected ROM address signal 311 to the ROM 317. RO
M316 and ROM 317 are respectively a test ROM address signal 312 and a test ROM address signal 311.
Outputs the data (g, h in FIG. 6) at the address designated by the adder 318 to the adder 318. The expected value of the addition result is input to the external input terminal 302, and is latched by the serial-parallel conversion register 307 according to the test clock input from the external input terminal 301. In the matching circuit 319, the adder 31
8 (h in FIG. 6) and the expected output value data latched in the serial-parallel conversion register 307 (FIG. 6).
(I) is detected and output to the external output terminal 320. When a match occurs, an adder test can be performed by detecting a match signal of an H level output in five clock cycles of the test clock.

【0019】以上のように実施例3によれば、1個の外
部入力端子301から入力されたテスト用クロックによ
りメモリのテスト用アドレス信号を生成して演算パター
ンのすべてのテストが可能である。他の1個の外部入力
端子302より演算結果の期待値を入力し、テスト用ク
ロックによりシリアル−パラレル変換レジスタにラッチ
する。そして演算結果のデータとシリアル−パラレル変
換レジスタのデータの一致を検出して1個の外部出力端
子320に出力することで演算器のテストを行なう。従
ってテスト用の外部入出力端子の数が削減されるととも
にメモリのテストも可能であり、また、演算器のテスト
結果出力信号に対しパラレル−シリアル変換レジスタを
用いていないため、テスト時間の削減が可能となる。な
お、複数個のメモリのデータを演算する演算器のテスト
においてもテスト用アドレス信号を生成するカウンタを
付加することで同様にテストが可能である。
As described above, according to the third embodiment, a test address signal for a memory is generated by a test clock input from one external input terminal 301, and all tests of the operation pattern can be performed. An expected value of the operation result is input from another external input terminal 302 and latched in a serial-parallel conversion register by a test clock. Then, the arithmetic unit is tested by detecting a match between the data of the operation result and the data of the serial-parallel conversion register and outputting the data to one external output terminal 320. Therefore, the number of external input / output terminals for testing can be reduced and the memory can be tested. In addition, since the parallel-serial conversion register is not used for the test result output signal of the arithmetic unit, the test time can be reduced. It becomes possible. It should be noted that the same test can be performed in a test of a computing unit that computes data in a plurality of memories by adding a counter for generating a test address signal.

【0020】[0020]

【発明の効果】以上のように本発明によれば、1個の外
部入力端子101から入力されるテスト用クロックによ
りメモリのテスト用アドレス信号を生成して演算結果を
1個の外部出力端子に出力することで演算器のテストを
行なうことができる。従ってテスト用の外部入出力端子
の数が削減されるとともにメモリのテストも可能であ
る。また、演算器のテスト結果の出力信号に対しパラレ
ル−シリアル変換レジスタを用いていないため、テスト
時間の削減が可能となる。
As described above, according to the present invention, a test address signal for a memory is generated by a test clock input from one external input terminal 101, and the operation result is output to one external output terminal. By outputting the data, a test of the arithmetic unit can be performed. Therefore, the number of external input / output terminals for the test can be reduced and the memory can be tested. Further, since the parallel-serial conversion register is not used for the output signal of the test result of the arithmetic unit, the test time can be reduced.

【0021】また、1個の外部入力端子201から入力
されるテスト用クロックによりメモリのテスト用アドレ
ス信号を生成するとともに、外部入力端子202〜20
6より演算結果の出力期待値を入力し、演算結果との一
致を検出することで演算器のテストを行ない1個の外部
出力端子221に出力される。テスト用の外部入出力端
子の数が削減されるとともにメモリのテストも可能であ
り、また、演算器のテスト結果の出力信号に対しパラレ
ル−シリアル変換レジスタを用いていないため、テスト
時間の削減が可能となる。
A test address signal for a memory is generated by a test clock input from one external input terminal 201, and the external input terminals 202 to 20 are generated.
6, the expected output value of the operation result is input, and the operation unit is tested by detecting the coincidence with the operation result, and is output to one external output terminal 221. The number of external input / output terminals for testing is reduced and the memory can be tested. In addition, since the parallel-serial conversion register is not used for the output signal of the test result of the computing unit, the test time can be reduced. It becomes possible.

【0022】さらに、1個の外部入力端子301からテ
スト用クロックによりメモリのテスト用アドレス信号を
生成するとともに他の1個の外部入力端子302より演
算結果の期待値を入力し、テスト用クロックによりシリ
アル−パラレル変換レジスタにラッチする。そして演算
結果のデータとシリアル−パラレル変換レジスタのデー
タの一致を検出して1個の外部出力端子320に出力す
ることで演算器のテストを行なう。従ってテスト用の外
部入出力端子の数が削減されるとともにメモリのテスト
も可能であり、また、演算器のテスト結果出力信号に対
しパラレル−シリアル変換レジスタを用いていないた
め、テスト時間の削減が可能となる。
Further, a test address signal for a memory is generated from one external input terminal 301 by a test clock, and an expected value of the operation result is input from another external input terminal 302. Latch into the serial-parallel conversion register. Then, the arithmetic unit is tested by detecting a match between the data of the operation result and the data of the serial-parallel conversion register and outputting the data to one external output terminal 320. Therefore, the number of external input / output terminals for testing can be reduced and the memory can be tested. In addition, since the parallel-serial conversion register is not used for the test result output signal of the arithmetic unit, the test time can be reduced. It becomes possible.

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

【図1】本発明の実施例1による演算器テスト回路のブ
ロック図
FIG. 1 is a block diagram of a computing unit test circuit according to a first embodiment of the present invention.

【図2】本発明の実施例2による演算器テスト回路のブ
ロック図
FIG. 2 is a block diagram of a computing unit test circuit according to a second embodiment of the present invention;

【図3】本発明の実施例3による演算器テスト回路のブ
ロック図
FIG. 3 is a block diagram of a computing unit test circuit according to a third embodiment of the present invention;

【図4】本発明の実施例1による演算器テスト回路の動
作波形図
FIG. 4 is an operation waveform diagram of a computing unit test circuit according to the first embodiment of the present invention.

【図5】本発明の実施例2による演算器テスト回路の動
作波形図
FIG. 5 is an operation waveform diagram of a computing unit test circuit according to a second embodiment of the present invention.

【図6】本発明の実施例3による演算器テスト回路の動
作波形図
FIG. 6 is an operation waveform diagram of a computing unit test circuit according to Embodiment 3 of the present invention.

【図7】第1の従来例の演算器テスト回路のブロック図FIG. 7 is a block diagram of an arithmetic unit test circuit according to a first conventional example;

【図8】第2の従来例の演算器テスト回路のブロック図FIG. 8 is a block diagram of an arithmetic unit test circuit according to a second conventional example.

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

101 テスト用クロック外部入力端子 102、104 カウンタ 103 デコーダ 105、106 通常動作時のROMアドレス信号 107、108 テスト用ROMアドレス信号 109 加算器のテストモード信号 110、111 セレクタ 112、113 ROM 114 加算器 115〜119 加算器データ外部出力端子 201 テスト用クロック外部入力端子 202〜206 加算器出力期待値外部入力端子 207、209 カウンタ 208 デコーダ 210、211 通常動作時のROMアドレス信号 212、213 テスト用ROMアドレス信号 214 加算器のテストモード信号 215、216 セレクタ 217、218 ROM 219 加算器 220 一致回路 221 一致回路出力信号外部出力端子 301 テスト用クロック外部入力端子 302 加算器出力期待値外部入力端子 303、305 カウンタ 304 デコーダ 306 クロック生成回路 307 シリアル−パラレル変換レジスタ 308 クロック生成回路の生成クロック 309、310 通常動作時のROMアドレス信号 311、312 テスト用ROMアドレス信号 313 加算器のテストモード信号 314、315 セレクタ 316、317 ROM 318 加算器 319 一致回路 320 一致回路出力信号外部出力端子 101 Test clock external input terminal 102, 104 Counter 103 Decoder 105, 106 ROM address signal 107, 108 for normal operation ROM address signal 109 for test 109 Test mode signal of adder 110, 111 Selector 112, 113 ROM 114 Adder 115 To 119 adder data external output terminal 201 test clock external input terminal 202 to 206 adder output expected value external input terminal 207, 209 counter 208 decoder 210, 211 ROM address signal during normal operation 212, 213 test ROM address signal 214 Test mode signal of adder 215, 216 Selector 217, 218 ROM 219 Adder 220 Match circuit 221 Match circuit output signal external output terminal 301 Test clock external input terminal 302 Adder output expected value external input terminal 303, 305 Counter 304 Decoder 306 Clock generation circuit 307 Serial-parallel conversion register 308 Clock generated by clock generation circuit 309, 310 ROM address signal during normal operation 311, 312 Test ROM address signal 313 adder test mode signal 314,315 selector 316,317 ROM 318 adder 319 match circuit 320 match circuit output signal external output terminal

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】大規模集積回路(LSI)に内蔵された第
1のメモリと第2のメモリのデータを演算する演算器の
テスト時に、外部入力端子から入力されるテスト用クロ
ックをカウントする第1のカウンタと、 前記第1のカウンタの任意の1つの値をイネーブル信号
として前記テスト用クロックをカウントする第2のカウ
ンタと、 前記第1のカウンタで生成される前記第1のメモリのア
ドレス信号と前記第1のメモリの通常動作時のアドレス
信号のいずれかを選択する第1のセレクタと、 前記第2のカウンタで生成される前記第2のメモリのア
ドレス信号と前記第2のメモリの通常動作時のアドレス
信号のいずれかを選択する第2のセレクタと、前記第1
のメモリと第2のメモリの両出力を演算して出力データ
を外部出力端子に出力する演算器と、 を備えた演算器テスト回路。
1. A test circuit for counting a test clock input from an external input terminal during a test of a computing unit for computing data in a first memory and a second memory built in a large-scale integrated circuit (LSI). 1 counter; a second counter that counts the test clock using an arbitrary value of the first counter as an enable signal; and an address signal of the first memory generated by the first counter. And a first selector for selecting any one of the address signals during normal operation of the first memory; an address signal of the second memory generated by the second counter; and a normal selector of the second memory. A second selector for selecting one of the address signals during operation;
A computing unit that computes both outputs of the memory and the second memory and outputs output data to an external output terminal.
【請求項2】前記演算器の出力結果の期待値を入力する
外部入力端子と、前記期待値と前記演算器の出力データ
とを比較する一致回路とを備えた請求項1記載の演算器
テスト回路。
2. An arithmetic unit test according to claim 1, further comprising an external input terminal for inputting an expected value of an output result of said arithmetic unit, and a matching circuit for comparing said expected value with output data of said arithmetic unit. circuit.
【請求項3】前記テスト用クロックで前記演算器の出力
期待値をラッチするシリアル−パラレル変換のレジスタ
と、前記テスト用クロックにより前記第1のカウンタと
前記第2のカウンタのクロックを生成するクロック生成
回路と、前記シリアル−パラレル変換レジスタのデータ
と前記演算器の出力データを比較する一致回路を備え、
前記一致回路の出力を外部出力端子に出力するように構
成された請求項1または2記載のテスト回路。
3. A serial-to-parallel conversion register that latches an expected output value of the arithmetic unit with the test clock, and a clock that generates clocks of the first counter and the second counter with the test clock. A generating circuit, and a matching circuit for comparing data of the serial-parallel conversion register with output data of the arithmetic unit,
3. The test circuit according to claim 1, wherein the output of the match circuit is output to an external output terminal.
JP8173938A 1996-07-03 1996-07-03 Circuit for testing arithmetic unit Pending JPH1021109A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8173938A JPH1021109A (en) 1996-07-03 1996-07-03 Circuit for testing arithmetic unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8173938A JPH1021109A (en) 1996-07-03 1996-07-03 Circuit for testing arithmetic unit

Publications (1)

Publication Number Publication Date
JPH1021109A true JPH1021109A (en) 1998-01-23

Family

ID=15969858

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8173938A Pending JPH1021109A (en) 1996-07-03 1996-07-03 Circuit for testing arithmetic unit

Country Status (1)

Country Link
JP (1) JPH1021109A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6785172B2 (en) 2002-06-27 2004-08-31 Oki Electric Industry Co., Ltd. Semiconductor memory device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6785172B2 (en) 2002-06-27 2004-08-31 Oki Electric Industry Co., Ltd. Semiconductor memory device

Similar Documents

Publication Publication Date Title
US4860236A (en) Cellular automaton for generating random data
US5553025A (en) Semiconductor memory device executing a memory test in a plurality of test modes
JPH0541088A (en) Semiconductor integrated circuit
US7640467B2 (en) Semiconductor memory with a circuit for testing the same
JPH11339499A (en) Parallel bit test circuit sharing output driver, parallel bit test method utilizing the same, and its semiconductor memory device
JPH1021109A (en) Circuit for testing arithmetic unit
JPH1021150A (en) Memory test circuit
KR20040092778A (en) Device for modifying delay
EP1160668B1 (en) Semiconductor integrated circuit and method of testing semiconductor integrated circuit
US20050022082A1 (en) Integrated circuit test apparatus
JP3955708B2 (en) Built-in self-test circuit
JPH1019996A (en) Rate generating circuit
JPH06138191A (en) Semiconductor integrated circuit
JPH05151017A (en) Microcomputer
JP2002042493A (en) Memory test circuit
KR100261439B1 (en) Multiple boundary scan circuit
JP2524529B2 (en) Pattern generator
JP2003185706A (en) Circuit for setting test mode
JP3281898B2 (en) Memory mounted semiconductor device and memory test method
JPS6282820A (en) Comparator circuit
JPH06167546A (en) Data transfer circuit for memory device inspection
JP2006118995A (en) Semiconductor integrated circuit
JPH10123213A (en) Semiconductor integrated circuit
JPH116858A (en) Semiconductor test circuit
JPH06201795A (en) Test circuit for semiconductor device