JPS63168578A - Test of binary counter - Google Patents
Test of binary counterInfo
- Publication number
- JPS63168578A JPS63168578A JP61311920A JP31192086A JPS63168578A JP S63168578 A JPS63168578 A JP S63168578A JP 61311920 A JP61311920 A JP 61311920A JP 31192086 A JP31192086 A JP 31192086A JP S63168578 A JPS63168578 A JP S63168578A
- Authority
- JP
- Japan
- Prior art keywords
- counting
- value
- function
- digit
- 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
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 29
- 238000000034 method Methods 0.000 claims description 6
- 238000010998 test method Methods 0.000 claims description 3
- 239000004065 semiconductor Substances 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 5
- 238000007796 conventional method Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 241000282376 Panthera tigris Species 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
Landscapes
- Tests Of Electronic Circuits (AREA)
Abstract
Description
【発明の詳細な説明】
[発明の目的コ
(産業上の利用分野)
本発明は、多ビットの2進カウンタの計数機能を確認す
るテスト方法に関する。DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention (Field of Industrial Application) The present invention relates to a test method for checking the counting function of a multi-bit binary counter.
(従来の技術)
一般にカウンタの計数機能を確認するテストは以下に示
す方法により行われている。(Prior Art) Generally, a test to confirm the counting function of a counter is performed by the method shown below.
まず、カウンタの計数値をすべてクリアして計数値の全
ビットを“0”に設定する。First, all counts of the counter are cleared and all bits of the counts are set to "0".
この後、たとえばこのカウンタが2進nビツトであると
き、21個の計数クロックを入力する。After this, for example, when this counter is binary n bits, 21 counting clocks are input.
そして、計数結果が10進コードで“n ”であること
を確認する。Then, confirm that the count result is "n" in decimal code.
(発明が解決しようとする問題点)
ところで近年、マイクロコンピュータ等の演算回路は、
処理の高速動作化等を目的として多ビット化される傾向
にある。すなわち、8ビツトから16ビツト、さらには
32ビツトとなり、上記したカウンタも同様に多ビット
化される。(Problems to be solved by the invention) In recent years, arithmetic circuits such as microcomputers have
There is a trend toward multi-bit processing for the purpose of faster processing. That is, the number of bits increases from 8 bits to 16 bits and then to 32 bits, and the above-mentioned counter is also made to have multiple bits.
この場合、従来のカウンタの計数機能を確認するテスト
では多ビット化されるに従いそのテスト時間が膨大なる
という問題がある。たとえばこのカウンタが2進32ビ
ツトであり、計数クロックの周期がIBであるとき、ア
ップカウント機能テストだけでも、
1oX2” =4X10” s
の時間が必要とされる。In this case, a conventional test for checking the counting function of a counter has a problem in that the test time becomes enormous as the number of bits increases. For example, if this counter is a 32-bit binary counter and the period of the counting clock is IB, a time of 10X2" = 4X10" s is required just for the up-counting function test.
本発明はこのにょうな事情に対処してなされたもので、
多ビット化されたカウンタの計数機能を確認するための
テスト時間を短縮することができる2進カウンタのテス
ト方法を提供することを目的としている。The present invention was made in response to this situation.
It is an object of the present invention to provide a binary counter testing method that can shorten the test time for checking the counting function of a multi-bit counter.
[発明の構成]
(問題点を解決するための手段)
すなわち本発明方法は、アップカウント機能および/、
tたはダウンカウント機能を有しかつ計数初期値にセッ
ト可能な多ビットの2進カウンタの計数機能を確認する
テスト方法において、アップカウント機能テスト時に、
前記計数初期値として所定の桁以下のビットを“1”で
、該桁を越えるビットを“0″に設定し、この後1個の
計数クロックを入力し、あらかじめ設定された計数結果
の期待値と比較し、ダウンカウント機能テスト時↓こ、
前記計数初期値として所定の桁のビットを“1″で、該
桁以外の桁のビットを′O″に設定し、この後1個の計
数クロックを入力し、あらかじめ設定された計数結果の
期待値と比較することを特徴としている。[Structure of the invention] (Means for solving the problem) That is, the method of the present invention includes an up-count function and/or
In a test method for checking the counting function of a multi-bit binary counter that has a down-count function and can be set to an initial count value, when testing the up-count function,
As the initial counting value, set the bits below a predetermined digit to "1" and the bits exceeding the digit to "0", then input one counting clock and set the expected value of the counting result set in advance. When comparing the down count function test ↓,
As the initial counting value, set the bits of a predetermined digit to "1" and the bits of other digits to 'O', then input one counting clock and expect the preset counting result. It is characterized by comparing with the value.
(作 用)
本発明は上記した方法により、所定のビットの桁上げa
trgまたは桁下げ機能の確認は1個の計数クロックを
入力するだけでよいことになる。これにより、多ビット
化されたカウンタの計数機能を確認するためのテスト時
間を短縮することができるようになる。(Function) The present invention uses the method described above to carry a predetermined bit.
To confirm the trg or carry down function, it is only necessary to input one counting clock. This makes it possible to shorten the test time for checking the counting function of the multi-bit counter.
(実施例)
以下、本発明方法を8ビツト2進カウンタを直列接続し
てなる32ビツト2進カウンタの計数機能確認テストに
適用した一実施例を図面に基づいて詳細に説明する。(Embodiment) Hereinafter, an embodiment in which the method of the present invention is applied to a counting function confirmation test of a 32-bit binary counter formed by connecting 8-bit binary counters in series will be described in detail with reference to the drawings.
第1図はその32ビツト2進カウンタの構成を示す回路
図で、図中符号Co”C3はそれぞれ8ビツト2進カウ
ンタを示す、また、Doo〜’ D、Fは32ビツト
の計数初期値が入力される入力端子、Qoo〜Q+Fは
32ビツトの計数結果が出力される出力端子である。さ
らに、LOADは入力端子I)oo〜D、Fにセットさ
れた計数初期値を各カウンタCo〜C1へ入力させるた
めの制御信号が入力される制御端子、CLKは計数クロ
ックが入力される入力端子、UP/DOWNはアップカ
ウント/ダウンカウントの切替えの制御信号が入力され
る制9p端子である。Figure 1 is a circuit diagram showing the configuration of the 32-bit binary counter. In the figure, Co"C3 indicates an 8-bit binary counter, and Doo~'D and F indicate the initial count value of 32 bits. The input terminals Qoo to Q+F are output terminals to which 32-bit counting results are output.Furthermore, LOAD outputs the count initial values set in the input terminals I)oo to D and F to each counter Co to C1. CLK is an input terminal to which a counting clock is input, and UP/DOWN is a control terminal 9p to which a control signal for switching between up-counting and down-counting is inputted.
次に、このカウンタの計数機能確認テストを行うための
装置のブロック図を第2図に示す。Next, FIG. 2 shows a block diagram of a device for testing the counting function of this counter.
同図において、符号1は第1図に示した32ビツト2進
カウンタであり、この32ピッ1−2進カウンタ1の入
力端子Doo”−DlFには計数初期値が記憶されたF
ROM(プログラム可能なROM)2が接続されている
。また、符号3は計数結果の期待値が記憶されたFRO
Mであり、このFROM3の出力は、32ビツト2進カ
ウンタ1の出力端子Qoo=Q+Fの出力とともに、比
較回路4に入力され、これらの比較結果が比較回路4か
ら出力される。In the same figure, reference numeral 1 is the 32-bit binary counter shown in FIG.
A ROM (programmable ROM) 2 is connected. In addition, code 3 is the FRO in which the expected value of the counting result is stored.
The output of the FROM 3 is input to the comparator circuit 4 together with the output of the output terminal Qoo=Q+F of the 32-bit binary counter 1, and the results of these comparisons are output from the comparator circuit 4.
第3図は上記したFROM2.3にそれぞれ記憶された
内容を示す図である。なお、この図における各数列は3
2ビツトの数値を16進法を用いて表したものである。FIG. 3 is a diagram showing the contents stored in the above-mentioned FROM 2.3. Note that each number sequence in this figure is 3
This is a 2-bit numerical value expressed using hexadecimal notation.
また同図において、A側の数値はある桁以下のビットが
1”、該桁を越えるビットが“0″となる°もののすべ
ての組合せであり、B側の数値はある桁のビットが“1
″で、該桁以外の桁のビットが“0”となるもののすべ
ての組合せである。In addition, in the figure, the numbers on the A side are all combinations of bits below a certain digit being 1" and bits exceeding that digit being "0", and the numbers on the B side are all combinations of bits below a certain digit being "1".
'', the bits of digits other than the corresponding digit are "0".
そして、アップカウントavgテスト時には、計数初期
値としてFROM2にA側の数値、計数結果の期待値と
してFROM3にB側の数値が出力されるようにセット
する。Then, during the up-count avg test, settings are made so that the value on the A side is output to FROM2 as the initial count value, and the value on the B side is output to FROM3 as the expected value of the count result.
次に、FROM2にA側の数値の第1列目を32ビツト
2進カウンタ1の入力端子Doo〜DIFにセットし、
制御端子LOADに制御信号を入力することでカウンタ
Co”C3へ入力させる。Next, set the first column of numbers on the A side in FROM2 to the input terminals Doo to DIF of the 32-bit binary counter 1,
By inputting a control signal to the control terminal LOAD, it is input to the counter Co''C3.
この後、入力端子CLKに1個の計数クロックを入力し
カウントアツプさせる。これにより、この32ビツト2
進カウンタ1のアップカウント機能が正常である場合に
は、“1″を有するビットが桁上げされて対応するB側
の数値(第1列目)と同一のものとなる。After that, one counting clock is input to the input terminal CLK to count up. As a result, this 32-bit 2
When the up-counting function of the decimal counter 1 is normal, the bit having "1" is carried over and becomes the same as the corresponding B-side value (first column).
すなわち、このカウントアツプされた出力を出力端子Q
oa〜Q+Fから比較回路4に入力し、FROM3から
入力されたB側の数値の第1列目と比較することで、こ
れらの比較結果から32ビツト2進カウンタ1の1′°
を有するビットのアップカウント機能が正常であるか否
かが確認される。In other words, this counted up output is sent to the output terminal Q.
By inputting from oa to Q+F to the comparator circuit 4 and comparing it with the first column of the B side numerical value input from FROM 3, 1'° of the 32-bit binary counter 1 is calculated from these comparison results.
It is confirmed whether the up-counting function of the bit having .
以下、このような比較テストを第32列目まで行うこと
により、すべてのビットのアップカウント機能が正常で
あるか否かが確認される。Hereinafter, by performing such a comparison test up to the 32nd column, it is confirmed whether or not the up-counting function of all bits is normal.
このように本実施例のアップカウント機能テストでは、
たとえば計数クロックの周期が1虎であるとき、そのテ
スト時間は、
1gX32=32Ils
となり、従来と比較してテスト時間が大幅に短縮される
。In this way, in the up-count function test of this example,
For example, when the period of the counting clock is 1 tiger, the test time is 1g×32=32Ils, which significantly reduces the test time compared to the conventional method.
なお、ダウンカウント機能テスト時には、計数初期値と
してF ROM 2にB側の数値、計数結果の期待値と
してFROM3にA側の数値が出力されるようにセット
することにより、以下上述した例と同様に行うことがで
きるため、その説明を省略する。In addition, when testing the down count function, by setting the value on the B side to FROM 2 as the initial counting value and the value on the A side to FROM 3 as the expected value of the counting result, the result will be the same as in the above example. The explanation will be omitted because it can be done in the following manner.
[発明の効果]
以上説明したように本発明の2進カウンタのテスト方法
によれば、多ビット化されたカウンタの計数機能を確認
するためのテスト時間を従来と比較して大幅に短縮する
ことができる。[Effects of the Invention] As explained above, according to the binary counter testing method of the present invention, the test time for checking the counting function of a multi-bit counter can be significantly shortened compared to the conventional method. I can do it.
第1図は本発明の一実施例に係る32ビツト2進カウン
タの構成を示す回路図、第2図はこの実施例に係るカウ
ンタの計数機能確認テストを行うための装置のブロック
図、第3図はこの実施例におけるF ROM 2.3に
記憶された内容を示す図である。
1・・・・・・・・・32ビツト2進カウンタ2.3
・・・・・・FROM
4・・・・・・・・・比較回路
Co ”C3
・・・・・・8ビット2進カウンタ
Doo′−D+F
・・・・・・入力端子
Qoo〜Q+r
・・・・・・出力端子
出願人 株式会社 東芝
代理人 弁理士 須 山 佐 −
第1図FIG. 1 is a circuit diagram showing the configuration of a 32-bit binary counter according to an embodiment of the present invention, FIG. 2 is a block diagram of a device for testing the counting function of the counter according to this embodiment, and FIG. The figure shows the contents stored in the F ROM 2.3 in this embodiment. 1...32-bit binary counter 2.3...FROM 4...Comparison circuit Co "C3...8-bit binary Counter Doo'-D+F ...Input terminal Qoo~Q+r ...Output terminal Applicant Toshiba Corporation Agent Patent attorney Sasu Suyama - Figure 1
Claims (2)
ト機能を有しかつ計数初期値にセット可能な多ビットの
2進カウンタの計数機能を確認するテスト方法において
、 (イ)アップカウント機能テスト時に、 前記計数初期値として所定の桁以下のビットを“1”で
、該桁を越えるビットを“0”に設定し、この後1個の
計数クロックを入力し、あらかじめ設定された計数結果
の期待値と比較し、 (ロ)ダウンカウント機能テスト時に、 前記計数初期値として所定の桁のビットを“1”で、該
桁以外の桁のビットを“0”に設定し、この後1個の計
数クロックを入力し、あらかじめ設定された計数結果の
期待値と比較する ことを特徴とする2進カウンタのテスト方法。(1) In a test method for checking the counting function of a multi-bit binary counter that has an up-counting function and/or a down-counting function and can be set to an initial counting value, (a) when testing the up-counting function, As an initial value, set the bits below a predetermined digit to "1" and the bits exceeding the digit to "0", then input one counting clock and compare it with the expected value of the counting result set in advance. (b) When testing the down count function, set the bits of a specified digit to "1" as the initial count value, set the bits of other digits to "0", and then run one counting clock. A method for testing a binary counter, which comprises inputting data and comparing it with a preset expected value of a counting result.
モリに記憶されていることを特徴とする特許請求の範囲
第1項記載の2進カウンタのテスト方法。(2) The method for testing a binary counter according to claim 1, wherein the initial count value and the expected value of the count result are stored in a semiconductor memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61311920A JPS63168578A (en) | 1986-12-29 | 1986-12-29 | Test of binary counter |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP61311920A JPS63168578A (en) | 1986-12-29 | 1986-12-29 | Test of binary counter |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS63168578A true JPS63168578A (en) | 1988-07-12 |
Family
ID=18023013
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP61311920A Pending JPS63168578A (en) | 1986-12-29 | 1986-12-29 | Test of binary counter |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS63168578A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0442500A (en) * | 1990-06-07 | 1992-02-13 | Sharp Corp | Semiconductor memory device |
-
1986
- 1986-12-29 JP JP61311920A patent/JPS63168578A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0442500A (en) * | 1990-06-07 | 1992-02-13 | Sharp Corp | Semiconductor memory device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20020194422A1 (en) | Method and apparatus for dynamically masking an N-bit memory array having individually programmable cells | |
US4777586A (en) | Semiconductor integrated circuit device with built-in arrangement for memory testing | |
EP0766405A1 (en) | Successive approximation register without redundancy | |
EP0074627B1 (en) | Circuit for checking bit errors in a received bch code succession by the use of primitive and non-primitive polynomials | |
EP0095777A2 (en) | Programmable counter system | |
US5373542A (en) | Counter circuit capable of generating adjustable precise desired frequency | |
WO1999060702A1 (en) | Low power counters | |
JPS63168578A (en) | Test of binary counter | |
JPH083514B2 (en) | Counter test equipment | |
US5185770A (en) | Variable frequency dividing circuits | |
JPH04292018A (en) | Variable crc generation circuit | |
EP0822481A1 (en) | Constant divider | |
JPS6125079A (en) | Address counter testing circuit | |
US5303177A (en) | Method and device for performing an approximate arithmetical division | |
CN119247725A (en) | A counting control device and method for a universal timer | |
JPS6128423Y2 (en) | ||
JPH0241029A (en) | Analog/digital conversion circuit | |
JPH03188514A (en) | Counting circuit | |
JPH03216727A (en) | N-bit comparator | |
JPS58119046A (en) | Adder and subtracter | |
JPH0422220A (en) | Synchronous output circuit | |
JPS59168543A (en) | Binary-decimal converting circuit | |
JPH05304255A (en) | Mode setting method of integrated circuit by reset signal | |
JPH04287514A (en) | Pulse width modulation circuit | |
JP2001282384A (en) | Software programmable timer unit |