JP2586375B2 - Counter circuit with test function - Google Patents
Counter circuit with test functionInfo
- Publication number
- JP2586375B2 JP2586375B2 JP5089009A JP8900993A JP2586375B2 JP 2586375 B2 JP2586375 B2 JP 2586375B2 JP 5089009 A JP5089009 A JP 5089009A JP 8900993 A JP8900993 A JP 8900993A JP 2586375 B2 JP2586375 B2 JP 2586375B2
- Authority
- JP
- Japan
- Prior art keywords
- bit
- register
- test
- gate
- adder
- 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.)
- Expired - Lifetime
Links
- 238000012360 testing method Methods 0.000 title claims description 93
- 238000010586 diagram Methods 0.000 description 8
- 238000006243 chemical reaction Methods 0.000 description 6
- 238000000034 method Methods 0.000 description 6
- 238000010998 test method Methods 0.000 description 2
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
- Tests Of Electronic Circuits (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、試験機能付きカウンタ
回路に関し、特に、集積回路内に形成されたカウンタを
少ないテストパターン数により試験できる試験機能付き
カウンタ回路に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a counter circuit with a test function, and more particularly to a counter circuit with a test function that can test a counter formed in an integrated circuit with a small number of test patterns.
【0002】[0002]
【従来の技術】従来の試験機能付きカウンタ回路として
は、集積回路内に形成されたカウンタを試験するときに
は、カウンタの内容をリセット後に、カウンタの最上位
ビットが反転する迄クロックを与え続けて“1”を加算
するカウントを行わせる方法、およびカウンタの全ビッ
トについて、集積回路外からあるテスト値を設定して、
カウントアップ後のテスト値を読み取るテスト値の入出
力による方法などが使用されている。2. Description of the Related Art As a conventional counter circuit having a test function, when testing a counter formed in an integrated circuit, after resetting the contents of the counter, a clock is continuously supplied until the most significant bit of the counter is inverted. A method of performing a count of adding 1 ", and setting a certain test value from outside the integrated circuit for all bits of the counter,
A method of inputting / outputting a test value for reading a test value after counting up is used.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、上述し
た従来の試験機能付きカウンタ回路は、前者の方法を用
いると、カウンタの内容をリセット後にそのカウンタの
最上位ビットが反転する迄に、nビットのカウンタの場
合では、2n 回のクロックを与え続ける必要があり、こ
のカウンタの試験には数多くのテストパターンも必要と
するので、試験に時間がかかるという欠点を有してい
る。However, in the conventional counter circuit with a test function described above, when the former method is used, after resetting the contents of the counter, the most significant bit of the counter is inverted until the most significant bit of the counter is inverted. In the case of the counter, it is necessary to continuously supply 2 n clocks, and since the test of this counter also requires a large number of test patterns, it has a disadvantage that the test takes time.
【0004】なお、この前者の方法を多段カウンタ回路
に適応している一例としては、特開昭63−2342
0,“テスト回路を有するカウンタ装置”がある。[0004] An example of applying the former method to a multi-stage counter circuit is disclosed in JP-A-63-2342.
0, "Counter device having test circuit".
【0005】また、後者の方法では、カウンタの全ビッ
トについて集積回路に入出力ピンを設ける必要があり、
nビットのカウンタの場合では、このカウンタの試験の
ために、2×n本のテストピンを必要とするので、集積
回路が大きくなってしまうという欠点を有している。In the latter method, it is necessary to provide input / output pins on the integrated circuit for all bits of the counter.
In the case of an n-bit counter, since 2 × n test pins are required for testing this counter, there is a disadvantage that the integrated circuit becomes large.
【0006】そこで、この後者の方法を用いてテストピ
ンを少なくするために、カウンタの前に直列/並列変換
回路を置いて、直列/並列変換回路を通して集積回路外
からのテスト値を入力し、カウンタの後に並列/直列変
換回路を置いて、並列/直列変換回路を通して集積回路
外へテスト値を出力するように改善している一例として
は、特開昭62−267677,“カウンタ回路試験方
式”がある。Therefore, in order to reduce the number of test pins by using the latter method, a serial / parallel conversion circuit is placed before the counter, and a test value from outside the integrated circuit is input through the serial / parallel conversion circuit. Japanese Patent Application Laid-Open No. Sho 62-267677, "Counter circuit test method" discloses an example in which a parallel / serial conversion circuit is placed after a counter and a test value is output outside the integrated circuit through the parallel / serial conversion circuit. There is.
【0007】この“カウンタ回路試験方式”を用いたと
きには、nビットのカウンタの場合では、このカウンタ
の試験のために、入出力を行う際には2×nクロック以
上を必要とするとともに、集積回路内に直列/並列変換
回路や並列/直列変換回路を必要とするという欠点を有
している。When the "counter circuit test method" is used, in the case of an n-bit counter, 2 × n clocks or more are required for input / output for testing this counter, and the There is a disadvantage that a serial / parallel conversion circuit or a parallel / serial conversion circuit is required in the circuit.
【0008】本発明の目的は、集積回路内に形成された
カウンタの前に、“0”や“1”を選択する簡単なセレ
クタを設けて、わずかなハードウェアと少ないテストピ
ンとを追加することにより、少ないクロック数による少
ないテストパターンを用いてカウンタの正常動作の試験
を実現することができる試験機能付きカウンタ回路を提
供することにある。It is an object of the present invention to provide a simple selector for selecting "0" or "1" in front of a counter formed in an integrated circuit to add a small amount of hardware and a small number of test pins. Accordingly, an object of the present invention is to provide a counter circuit with a test function that can realize a normal operation test of the counter using a small number of test patterns with a small number of clocks.
【0009】[0009]
【課題を解決するための手段】第1の発明の試験機能付
きカウンタ回路は、(A)カウント結果を保持するnビ
ットのレジスタと、(B)前記レジスタから受けたnビ
ットの出力情報に“1”を加算するnビットの加算器
と、(C)平常時には前記加算器のnビットの出力情報
を選択し、試験開始時には最上位ビットとして“0”を
選択するとともに下位n−1ビットのそれぞれとして
“1”を選択して、前記レジスタに送るnビットのセレ
クタと、(D)前記レジスタから受けた下位n−1ビッ
トの出力情報に対する論理和情報を出力する論理和ゲー
トと、を備えることにより、試験開始時に前記レジスタ
の最上位ビットが前記セレクタから“0”を受けた後
に、前記加算器による“1”の加算で“1”になり、こ
のときに前記論理和ゲートの出力が“0”であることを
検出して、正常動作が試験できる機能を有している。According to a first aspect of the present invention, a counter circuit with a test function includes (A) an n-bit register for holding a count result, and (B) an n-bit output information received from the register. (C) Normally, the n-bit output information of the adder is selected. At the start of the test, "0" is selected as the most significant bit and the lower n-1 bits are added. An n-bit selector for selecting "1" and sending the register to the register; and (D) an OR gate for outputting OR information for the lower n-1 bits of output information received from the register. Thus, at the start of the test, after the most significant bit of the register receives “0” from the selector, it becomes “1” by the addition of “1” by the adder. Detects that the output of a "0", and has a function of test normal operation.
【0010】また、第2の発明の試験機能付きカウンタ
回路は、(A)カウント結果を保持するnビットのレジ
スタと、(B)前記レジスタから受けたnビットの出力
情報に“1”を加算するnビットの加算器と、(C)平
常時には前記加算器のnビットの出力情報を選択し、試
験開始時には各ビットとして“1”を選択して、前記レ
ジスタに送るnビットのセレクタと、(D)前記レジス
タから受けたnビットの出力情報に対する論理和情報を
出力する論理和ゲートと、を備えることにより、試験開
始時に前記レジスタの各ビットが前記セレクタから
“1”を受けた後に、前記加算器による“1”の加算で
前記レジスタの各ビットが“0”になるので、このとき
に前記論理和ゲートの出力が“0”であることを検出し
て、正常動作の試験ができる機能を有している。The counter circuit with a test function according to the second aspect of the present invention includes (A) an n-bit register for holding a count result, and (B) adding "1" to the n-bit output information received from the register. (C) an n-bit selector which selects n-bit output information of the adder in a normal state, selects "1" as each bit at the start of a test, and sends it to the register; (D) an OR gate that outputs OR information for the n-bit output information received from the register, after each bit of the register receives “1” from the selector at the start of a test, Each bit of the register becomes “0” by the addition of “1” by the adder. At this time, it is detected that the output of the OR gate is “0”, and the normal operation test is performed. And it has a kill function.
【0011】一方、第3の発明の試験機能付きカウンタ
回路は、(A)カウント結果を保持するnビットのレジ
スタと、(B)前記レジスタから受けたnビットの出力
情報に対して“1”の減算を行うnビットの減算器と、
(C)平常時には前記減算器のnビットの出力情報を選
択し、試験開始時には各ビットとして“0”を選択し
て、前記レジスタに送るnビットのセレクタと、(D)
前記レジスタから受けたnビットの出力情報に対する論
理積情報を出力する論理積ゲートと、を備えることによ
り、試験開始時に前記レジスタの各ビットが前記セレク
タから“0”を受けた後に、前記減算器による“1”の
減算で前記レジスタの各ビットが“1”になるので、こ
のときに前記論理積ゲートの出力が“1”であることを
検出して、正常動作の試験ができる機能を有している。On the other hand, a counter circuit with a test function according to a third aspect of the present invention comprises: (A) an n-bit register for holding a count result; An n-bit subtractor for subtracting
(C) an n-bit selector that selects n-bit output information of the subtractor during normal times, selects “0” as each bit at the start of the test, and sends the selected bit to the register;
A logical product gate for outputting logical product information with respect to the n-bit output information received from the register, after each bit of the register receives “0” from the selector at the start of a test, Each bit of the register becomes "1" by the subtraction of "1" by "1". At this time, it has a function of detecting that the output of the AND gate is "1" and testing the normal operation. doing.
【0012】さらに、第4の発明の試験機能付きカウン
タ回路は、(A)カウント結果を保持するnビットのレ
ジスタと、(B)前記レジスタから受けたnビットの出
力情報に対して“1”の加算および減算を行うnビット
の加減算器と、(C)平常時には前記加減算器のnビッ
トの出力情報を選択し、加算試験の開始時には各ビット
として“1”を選択して、前記レジスタに送るととも
に、減算試験の開始時には各ビットとして“0”を選択
して、前記レジスタに送るnビットのセレクタと、
(D)前記レジスタから受けたnビットの出力情報に対
する論理和情報を出力する論理和ゲートと、(E)前記
レジスタから受けたnビットの出力情報に対する論理積
情報を出力する論理積ゲートと、を備えることにより、
加算試験の開始時には前記レジスタの各ビットが前記セ
レクタから“1”を受けた後に、前記加減算器による
“1”の加算で前記レジスタの各ビットが“0”になる
ので、このときには前記論理和ゲートの出力が“0”で
あることを検出し、減算試験の開始時には前記レジスタ
の各ビットが前記セレクタから“0”を受けた後に、前
記加減算器による“1”の減算で前記レジスタの各ビッ
トが“1”になるので、このときには前記論理積ゲート
の出力が“1”であることを検出して、正常動作の試験
ができる機能を有している。Further, a counter circuit with a test function according to a fourth aspect of the present invention is characterized in that (A) an n-bit register for holding a count result, and (B) "1" for n-bit output information received from the register. (C) Normally, the n-bit output information of the adder / subtractor is selected. At the start of the addition test, "1" is selected as each bit, and the register is set in the register. And at the start of the subtraction test, select "0" as each bit, and send an n-bit selector to the register;
(D) an OR gate that outputs OR information for the n-bit output information received from the register, and (E) an AND gate that outputs AND information for the n-bit output information received from the register. By having
At the start of the addition test, after each bit of the register receives "1" from the selector, each bit of the register becomes "0" by addition of "1" by the adder / subtractor. It detects that the output of the gate is “0”, and at the start of the subtraction test, after each bit of the register receives “0” from the selector, the subtraction of “1” by the adder / subtractor causes each bit of the register to be subtracted. Since the bit becomes "1", at this time, it has a function of detecting that the output of the AND gate is "1" and testing the normal operation.
【0013】[0013]
【実施例】次に、本発明の実施例について図面を参照し
て説明する。図1は本発明の試験機能付きカウンタ回路
の第1の実施例を示すブロック図である。Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a first embodiment of a counter circuit with a test function according to the present invention.
【0014】図1に示すように、nビットのレジスタ1
は、nビットのカウント結果を保持している。また、n
ビットの加算器2は、レジスタ1から受けたnビットの
出力情報に“1”ずつの加算をしている。As shown in FIG. 1, an n-bit register 1
Holds an n-bit count result. Also, n
The bit adder 2 adds “1” to the n-bit output information received from the register 1.
【0015】そして、nビットのセレクタ3は、平常時
には加算器2のnビットの出力情報を選択し、試験開始
時には最上位ビットとして“0”を選択するとともに、
下位n−1ビットのそれぞれとして“1”を選択して、
レジスタ1に送っている。The n-bit selector 3 selects the n-bit output information of the adder 2 in normal times, and selects "0" as the most significant bit at the start of the test.
Selecting "1" as each of the lower n-1 bits,
It is sent to register 1.
【0016】一方、論理和ゲート4は、レジスタ1から
受けた下位n−1ビットの出力情報に対する論理和情報
を出力している。On the other hand, the OR gate 4 outputs OR information for the output information of the lower n-1 bits received from the register 1.
【0017】そこで、試験開始時に際して、テスト入力
5とリセット入力6とがオンになると、レジスタ1の内
容がリセットされた後に、レジスタ1は、セレクタ3か
ら、最上位ビットとして“0”を受け、下位n−1ビッ
トのそれぞれとして“1”を受けている。Therefore, when the test input 5 and the reset input 6 are turned on at the start of the test, after the contents of the register 1 are reset, the register 1 receives “0” as the most significant bit from the selector 3. , "1" as each of the lower n-1 bits.
【0018】そして、クロック入力7があれば、加算器
2による“1”の加算が正常に行われることにより、レ
ジスタ1の下位n−1ビットのそれぞれは、すべて
“0”になり、レジスタ1の最上位ビットが“1”にな
る。If the clock input 7 is present, the addition of "1" by the adder 2 is normally performed, so that each of the lower n-1 bits of the register 1 becomes "0" and the register 1 becomes "0". Becomes "1".
【0019】この結果、最上位ビット出力8として、
“1”が出力されるとともに、すべて“0”の論理和で
ある論理和ゲート4のテスト出力9には、“0”が出力
されるので、これらを検出することにより、第1の実施
例の試験機能付きカウンタ回路に対する正常動作の試験
が実施できる。As a result, as the most significant bit output 8,
Since "1" is output and "0" is output to the test output 9 of the OR gate 4 which is a logical sum of all "0" s, these are detected, whereby the first embodiment is performed. A normal operation test can be performed on the counter circuit with the test function.
【0020】図2は本発明の試験機能付きカウンタ回路
の第2の実施例を示すブロック図である。FIG. 2 is a block diagram showing a second embodiment of the counter circuit with a test function according to the present invention.
【0021】図2に示すように、nビットのレジスタ1
1は、nビットのカウント結果を保持している。また、
nビットの加算器12は、レジスタ11から受けたnビ
ットの出力情報に“1”ずつの加算をしている。As shown in FIG. 2, an n-bit register 1
1 holds an n-bit count result. Also,
The n-bit adder 12 adds “1” to the n-bit output information received from the register 11.
【0022】そして、nビットのセレクタ13は、平常
時には加算器12のnビットの出力情報を選択し、試験
開始時にはnビットのそれぞれとして“1”を選択する
ことにより、レジスタ11に送っている。The n-bit selector 13 selects the n-bit output information of the adder 12 in normal times, and sends it to the register 11 by selecting "1" as each of the n bits at the start of the test. .
【0023】一方、論理和ゲート14は、レジスタ11
から受けたnビットの出力情報に対する論理和情報を出
力している。On the other hand, the OR gate 14 is connected to the register 11
The logical sum information corresponding to the n-bit output information received from is output.
【0024】そこで、試験開始時に際して、レジスタ1
1は、リセットの後にセレクタ13から、nビットのそ
れぞれとして“1”を受けている。Therefore, at the start of the test, the register 1
1 receives “1” as n bits from the selector 13 after the reset.
【0025】そして、加算器12による“1”の加算が
正常に行われると、レジスタ11のnビットのそれぞれ
は、すべて“0”になる。When the addition of "1" by the adder 12 is performed normally, each of the n bits of the register 11 becomes "0".
【0026】この結果、すべて“0”の論理和である論
理和ゲート14の出力には、“0”が出力されるので、
これを検出して、第2の実施例の試験機能付きカウンタ
回路に対する正常動作の試験が実施できる。As a result, "0" is output to the output of the OR gate 14, which is the logical sum of all "0".
By detecting this, a normal operation test can be performed on the counter circuit with a test function of the second embodiment.
【0027】図3は本発明の試験機能付きカウンタ回路
の第3の実施例を示すブロック図である。FIG. 3 is a block diagram showing a third embodiment of the counter circuit with a test function according to the present invention.
【0028】図3に示すように、nビットのレジスタ2
1は、nビットのカウント結果を保持している。また、
nビットの減算器22は、レジスタ21から受けたnビ
ットの出力情報から“1”ずつの減算をしている。As shown in FIG. 3, an n-bit register 2
1 holds an n-bit count result. Also,
The n-bit subtractor 22 subtracts “1” from the n-bit output information received from the register 21.
【0029】そして、nビットのセレクタ23は、平常
時には減算器22のnビットの出力情報を選択し、試験
開始時にはnビットのそれぞれとして“0”を選択する
ことにより、レジスタ21に送っている。The n-bit selector 23 selects the n-bit output information of the subtractor 22 in normal times, and selects "0" as each of the n bits at the start of the test to send the information to the register 21. .
【0030】一方、論理積ゲート24は、レジスタ21
から受けたnビットの出力情報に対する論理積情報を出
力している。On the other hand, the AND gate 24 is connected to the register 21
And outputs the logical product information with respect to the n-bit output information received from.
【0031】そこで、試験開始時に際して、レジスタ2
1は、リセットの後にセレクタ23から、nビットのそ
れぞれとして“0”を受けている。Therefore, when starting the test, the register 2
1 receives “0” as each of n bits from the selector 23 after the reset.
【0032】そして、減算器22による“1”の減算が
正常に行われると、レジスタ21のnビットのそれぞれ
は、すべて“1”になる。When the subtraction of "1" by the subtractor 22 is normally performed, all of the n bits of the register 21 become "1".
【0033】この結果、すべて“1”の論理積である論
理積ゲート24の出力には、“1”が出力されるので、
これを検出して、第3の実施例の試験機能付きカウンタ
回路に対する正常動作の試験が実施できる。As a result, "1" is output to the output of the AND gate 24, which is a logical product of all "1".
By detecting this, a normal operation test can be performed on the counter circuit with a test function of the third embodiment.
【0034】図4は本発明の試験機能付きカウンタ回路
の第4の実施例を示すブロック図である。FIG. 4 is a block diagram showing a fourth embodiment of the counter circuit with a test function according to the present invention.
【0035】図4に示すように、nビットのレジスタ3
1は、nビットのカウント結果を保持している。また、
nビットの加減算器32は、レジスタ31から受けたn
ビットの出力情報に“1”ずつの加算あるいは減算をし
ている。As shown in FIG. 4, an n-bit register 3
1 holds an n-bit count result. Also,
The n-bit adder / subtracter 32 receives the n
Bit output information is added or subtracted by "1".
【0036】そして、nビットのセレクタ33は、平常
時には加減算器32のnビットの出力情報を選択し、加
算試験の開始時にはnビットのそれぞれとして“1”を
選択することにより、レジスタ31に送るとともに、減
算試験の開始時にはnビットのそれぞれとして“0”を
選択することにより、レジスタ31に送っている。The n-bit selector 33 selects the n-bit output information of the adder / subtractor 32 in normal times, and selects "1" as each of the n bits at the start of the addition test, thereby sending the information to the register 31. At the same time, at the start of the subtraction test, "0" is selected as each of the n bits, thereby sending it to the register 31.
【0037】一方、論理和ゲート34は、レジスタ31
から受けたnビットの出力情報に対する論理和情報を出
力している。On the other hand, the OR gate 34 is connected to the register 31
The logical sum information corresponding to the n-bit output information received from is output.
【0038】他方、論理積ゲート35は、レジスタ31
から受けたnビットの出力情報に対する論理積情報を出
力している。On the other hand, the AND gate 35 is connected to the register 31
And outputs the logical product information with respect to the n-bit output information received from.
【0039】そこで、加算試験の開始時に際して、レジ
スタ31は、リセットの後にセレクタ33から、nビッ
トのそれぞれとして“1”を受けている。Therefore, at the start of the addition test, the register 31 receives "1" as each of n bits from the selector 33 after reset.
【0040】そして、加減算器32による“1”の加算
が正常に行われると、レジスタ31のnビットのそれぞ
れは、すべて“0”になる。When the addition of "1" by the adder / subtracter 32 is normally performed, each of the n bits of the register 31 becomes "0".
【0041】この結果、すべて“0”の論理和である論
理和ゲート34の出力には、“0”が出力されるので、
これを検出して、第4の実施例の試験機能付きカウンタ
回路に対する正常の加算動作の試験が実施できる。As a result, "0" is output to the output of the OR gate 34 which is a logical sum of all "0".
By detecting this, a test of a normal addition operation can be performed on the counter circuit with a test function of the fourth embodiment.
【0042】さらに、減算試験の開始時に際して、レジ
スタ31は、リセットの後にセレクタ33から、nビッ
トのそれぞれとして“0”を受けている。Further, at the start of the subtraction test, the register 31 receives “0” as n bits from the selector 33 after the reset.
【0043】そして、加減算器32による“1”の減算
が正常に行われると、レジスタ31のnビットのそれぞ
れは、すべて“1”になる。When the subtraction of "1" by the adder / subtracter 32 is normally performed, each of the n bits of the register 31 becomes "1".
【0044】この結果、すべて“1”の論理積である論
理積ゲート35の出力には、“1”が出力されるので、
これを検出して、第4の実施例の試験機能付きカウンタ
回路に対する正常の減算動作の試験が実施できる。As a result, "1" is output to the output of the AND gate 35, which is the logical product of all "1".
By detecting this, a normal subtraction operation test can be performed on the counter circuit with a test function of the fourth embodiment.
【0045】[0045]
【発明の効果】以上説明したように、本発明の試験機能
付きカウンタ回路は、集積回路の中に形成されたカウン
タの前に、“0”や“1”を選択する簡単なセレクタを
設け、わずかなハードウェアと少ないテストピンとを追
加することにより、少ないクロック数による少ないテス
トパターンを用いて、カウンタの正常動作の試験を実現
することができるという効果を有している。As described above, the counter circuit with a test function of the present invention is provided with a simple selector for selecting "0" or "1" in front of the counter formed in the integrated circuit. By adding a small amount of hardware and a small number of test pins, there is an effect that a normal operation test of the counter can be realized using a small number of test patterns with a small number of clocks.
【図1】本発明の試験機能付きカウンタ回路の第1の実
施例を示すブロック図である。FIG. 1 is a block diagram showing a first embodiment of a counter circuit with a test function according to the present invention.
【図2】本発明の試験機能付きカウンタ回路の第2の実
施例を示すブロック図である。FIG. 2 is a block diagram illustrating a counter circuit with a test function according to a second embodiment of the present invention.
【図3】本発明の試験機能付きカウンタ回路の第3の実
施例を示すブロック図である。FIG. 3 is a block diagram showing a third embodiment of a counter circuit with a test function according to the present invention.
【図4】本発明の試験機能付きカウンタ回路の第4の実
施例を示すブロック図である。FIG. 4 is a block diagram illustrating a counter circuit with a test function according to a fourth embodiment of the present invention.
【符号の説明】 1,11,21,31 レジスタ 2,12 加算器 3,13,23,33 セレクタ 4,14,34 論理和ゲート 5 テスト入力 6 リセット入力 7 クロック入力 8 最上位ビット出力 9 テスト出力 22 減算器 24,35 論理積ゲート 32 加減算器[Description of Signs] 1,11,21,31 Register 2,12 Adder 3,13,23,33 Selector 4,14,34 OR gate 5 Test input 6 Reset input 7 Clock input 8 Most significant bit output 9 Test Output 22 Subtractor 24,35 AND gate 32 Adder / subtractor
Claims (4)
レジスタと、 (B)前記レジスタから受けたnビットの出力情報に
“1”を加算するnビットの加算器と、 (C)平常時には前記加算器のnビットの出力情報を選
択し、試験開始時には最上位ビットとして“0”を選択
するとともに下位n−1ビットのそれぞれとして“1”
を選択して、前記レジスタに送るnビットのセレクタ
と、 (D)前記レジスタから受けた下位n−1ビットの出力
情報に対する論理和情報を出力する論理和ゲートと、 を備えることにより、試験開始時に前記レジスタの最上
位ビットが前記セレクタから“0”を受けた後に、前記
加算器による“1”の加算で“1”になり、このときに
前記論理和ゲートの出力が“0”であることを検出し
て、正常動作が試験できる機能を有することを特徴とす
る試験機能付きカウンタ回路。(A) an n-bit register for holding a count result; (B) an n-bit adder for adding "1" to n-bit output information received from the register; Sometimes, the n-bit output information of the adder is selected. At the start of the test, "0" is selected as the most significant bit and "1" is set as each of the lower n-1 bits.
, Selecting an n-bit selector to send to the register; and (D) an OR gate for outputting OR information with respect to the output information of the lower n−1 bits received from the register. Sometimes, after the most significant bit of the register receives “0” from the selector, it becomes “1” by the addition of “1” by the adder. At this time, the output of the OR gate is “0”. A counter circuit with a test function, characterized in that the counter circuit has a function of detecting the fact and testing a normal operation.
レジスタと、 (B)前記レジスタから受けたnビットの出力情報に
“1”を加算するnビットの加算器と、 (C)平常時には前記加算器のnビットの出力情報を選
択し、試験開始時には各ビットとして“1”を選択し
て、前記レジスタに送るnビットのセレクタと、 (D)前記レジスタから受けたnビットの出力情報に対
する論理和情報を出力する論理和ゲートと、 を備えることにより、試験開始時に前記レジスタの各ビ
ットが前記セレクタから“1”を受けた後に、前記加算
器による“1”の加算で前記レジスタの各ビットが
“0”になるので、このときに前記論理和ゲートの出力
が“0”であることを検出して、正常動作の試験ができ
る機能を有することを特徴とする試験機能付きカウンタ
回路。(A) an n-bit register for holding the count result; (B) an n-bit adder for adding "1" to the n-bit output information received from the register; Sometimes, the n-bit output information of the adder is selected, and at the start of the test, "1" is selected as each bit, and an n-bit selector to be sent to the register; and (D) the n-bit output received from the register. An OR gate for outputting OR information for the information, after each bit of the register receives “1” from the selector at the start of a test, the register is added by “1” by the adder. Has a function of detecting that the output of the OR gate is "0" at this time and testing the normal operation. Counter circuit.
レジスタと、 (B)前記レジスタから受けたnビットの出力情報に対
して“1”の減算を行うnビットの減算器と、 (C)平常時には前記減算器のnビットの出力情報を選
択し、試験開始時には各ビットとして“0”を選択し
て、前記レジスタに送るnビットのセレクタと、 (D)前記レジスタから受けたnビットの出力情報に対
する論理積情報を出力する論理積ゲートと、 を備えることにより、試験開始時に前記レジスタの各ビ
ットが前記セレクタから“0”を受けた後に、前記減算
器による“1”の減算で前記レジスタの各ビットが
“1”になるので、このときに前記論理積ゲートの出力
が“1”であることを検出して、正常動作の試験ができ
る機能を有することを特徴とする試験機能付きカウンタ
回路。(A) an n-bit register for holding a count result; (B) an n-bit subtractor for subtracting “1” from the n-bit output information received from the register; C) Normally, n-bit output information of the subtractor is selected, and at the start of the test, "0" is selected as each bit, and an n-bit selector to be sent to the register; and (D) n received from the register. A logical product gate for outputting logical product information with respect to bit output information, after each bit of the register receives “0” from the selector at the start of a test, and subtracting “1” by the subtractor. Since each bit of the register becomes "1" at this time, it has a function of detecting that the output of the AND gate is "1" and performing a test of a normal operation. Counter circuit with test function.
レジスタと、 (B)前記レジスタから受けたnビットの出力情報に対
して“1”の加算および減算を行うnビットの加減算器
と、 (C)平常時には前記加減算器のnビットの出力情報を
選択し、加算試験の開始時には各ビットとして“1”を
選択して、前記レジスタに送るとともに、減算試験の開
始時には各ビットとして“0”を選択して、前記レジス
タに送るnビットのセレクタと、 (D)前記レジスタから受けたnビットの出力情報に対
する論理和情報を出力する論理和ゲートと、 (E)前記レジスタから受けたnビットの出力情報に対
する論理積情報を出力する論理積ゲートと、 を備えることにより、加算試験の開始時には前記レジス
タの各ビットが前記セレクタから“1”を受けた後に、
前記加減算器による“1”の加算で前記レジスタの各ビ
ットが“0”になるので、このときには前記論理和ゲー
トの出力が“0”であることを検出し、減算試験の開始
時には前記レジスタの各ビットが前記セレクタから
“0”を受けた後に、前記加減算器による“1”の減算
で前記レジスタの各ビットが“1”になるので、このと
きには前記論理積ゲートの出力が“1”であることを検
出して、正常動作の試験ができる機能を有することを特
徴とする試験機能付きカウンタ回路。(A) an n-bit register for holding a count result; and (B) an n-bit adder / subtractor for adding and subtracting “1” to and from the n-bit output information received from the register. (C) Normally, the n-bit output information of the adder / subtractor is selected, and at the start of the addition test, "1" is selected as each bit and sent to the register. (D) an OR gate that outputs OR information for the n-bit output information received from the register, and (E) an OR gate that outputs OR information for the n-bit output information received from the register. a logical product gate for outputting logical product information with respect to the n-bit output information, whereby at the start of the addition test, each bit of the register is set to “1” by the selector. After received,
Each bit of the register becomes "0" by the addition of "1" by the adder / subtractor. At this time, it is detected that the output of the OR gate is "0". After each bit receives “0” from the selector, each bit of the register becomes “1” by subtraction of “1” by the adder / subtractor. At this time, the output of the AND gate is “1”. A counter circuit with a test function, characterized in that the counter circuit has a function of detecting the presence of a signal and performing a normal operation test.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5089009A JP2586375B2 (en) | 1993-04-16 | 1993-04-16 | Counter circuit with test function |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5089009A JP2586375B2 (en) | 1993-04-16 | 1993-04-16 | Counter circuit with test function |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH06303129A JPH06303129A (en) | 1994-10-28 |
| JP2586375B2 true JP2586375B2 (en) | 1997-02-26 |
Family
ID=13958875
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5089009A Expired - Lifetime JP2586375B2 (en) | 1993-04-16 | 1993-04-16 | Counter circuit with test function |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2586375B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| DE19522839C2 (en) * | 1995-06-23 | 2003-12-18 | Atmel Germany Gmbh | Procedure for testing pulse counters |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH03259618A (en) * | 1990-03-09 | 1991-11-19 | Fujitsu Ltd | Test system for counter |
-
1993
- 1993-04-16 JP JP5089009A patent/JP2586375B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH06303129A (en) | 1994-10-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3643698B2 (en) | Dynamic memory test circuit address generation apparatus and method | |
| US4774686A (en) | Serial digital signal processing circuitry | |
| JP2586375B2 (en) | Counter circuit with test function | |
| JP2000091889A (en) | Device and method for generating pulse signal | |
| JP2868038B2 (en) | Test circuit for semiconductor integrated circuit device | |
| JPH04179344A (en) | Encoding device | |
| JP2002271427A (en) | Noise removal circuit | |
| JP3098503B2 (en) | Method of detecting the number of front and rear protection steps, device thereof, and recording medium recording method of detecting number of front and rear protection steps | |
| JP2678085B2 (en) | Tracer | |
| JP2002042493A (en) | Memory test circuit | |
| JP3110072B2 (en) | Pre-normalization circuit | |
| JP2827679B2 (en) | Semiconductor device | |
| JPH11191080A (en) | Memory testing device | |
| KR200326695Y1 (en) | Digital processor | |
| JPH07253906A (en) | Pseudo fault generation circuit | |
| JP2575856B2 (en) | Arithmetic circuit | |
| JPS62206643A (en) | Trouble detecting circuit for adder | |
| JPS58114142A (en) | Logic device | |
| JP2001184260A (en) | Address generator | |
| JPH01193942A (en) | Self-diagnosis method for signal processing circuits | |
| JPH03176733A (en) | Overflow detecting circuit for adder/subtractor | |
| JPH118548A (en) | Counter | |
| JPH0573271A (en) | Divider circuit | |
| JP2000165371A (en) | Method for detecting forward backward protection stage number, its system, and recoding medium recording detection method of forward, backward protection stage number | |
| JPH05108199A (en) | Timer circuit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 19961008 |