JPH04288695A - Synchronous counter - Google Patents

Synchronous counter

Info

Publication number
JPH04288695A
JPH04288695A JP644391A JP644391A JPH04288695A JP H04288695 A JPH04288695 A JP H04288695A JP 644391 A JP644391 A JP 644391A JP 644391 A JP644391 A JP 644391A JP H04288695 A JPH04288695 A JP H04288695A
Authority
JP
Japan
Prior art keywords
counter
counter block
count
block
carry
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
JP644391A
Other languages
Japanese (ja)
Inventor
Shinichi Yoshioka
晋一 吉岡
Yasuo Yamada
泰生 山田
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP644391A priority Critical patent/JPH04288695A/en
Publication of JPH04288695A publication Critical patent/JPH04288695A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To reduce time and labor and to shorten a time required for test work with compact constitution by providing a counter block control part, and enabling an arbitrary counter block to be skipped. CONSTITUTION:The counter block control circuit 15 is comprised of a count control register 16 and a combination circuit. The count control register 16 is comprised of three bits, and the bits A-C are conformed to the counter blocks 11-13. For example, when the bit A shows '1', an input signal 102 to the enable input terminal Enable of the counter block 11 is inputted to the enable input terminal Enable of a high-order counter block 12. In other words, the counter block 11 can be skipped. Thereby, since a low-order counter block can be skipped, a test on respective counter block can be easily performed. Also, the number of test patterns can be reduced.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】[発明の目的][Object of the invention]

【0002】0002

【産業上の利用分野】本発明は、同期式カウンタに関し
、特に、回路検証が容易な可変進数の同期式カウンタに
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a synchronous counter, and more particularly to a variable-base synchronous counter that facilitates circuit verification.

【0003】0003

【従来の技術】従来、カウント周期Nのカウンタを構成
する方法として、図6に示すようにカウント周期N1の
カウンタブロック601、カウント周期N2のカウンタ
ブロック602、及びカウント周期N3のカウンタブロ
ック603によりカウント周期N(=N1×N2×N3
)のカウンタ600を構成する方法がある。
2. Description of the Related Art Conventionally, as shown in FIG. 6, a counter block 601 with a count period N1, a counter block 602 with a count period N2, and a counter block 603 with a count period N3 are used to configure a counter with a count period N3. Period N (=N1×N2×N3
) There is a method of configuring the counter 600.

【0004】以下、128進カウンタをカウンタ周期N
1=32、N2=2、N3=2のカウンタブロックで構
成した例について説明する。
[0004] Hereinafter, a 128-decimal counter has a counter period N.
An example configured with counter blocks of 1=32, N2=2, and N3=2 will be described.

【0005】32進カウンタ601は、リセット端子R
eset に入力されるリセット信号611がアクティ
ブになった時、次のクロックにてゼロリセット(同期リ
セット)され、リセット信号611がディセイブルで且
つイネーブル入力端子Enableに入力されるカウン
トイネーブル信号610がアクティブになった時、クロ
ック612に同期してカウントアップを開始する(以下
イネーブルになると言う)同期リセット付き同期式カウ
ンタである。32進カウンタ601の桁上げ信号613
(以下キャリーと称する)はキャリー出力端子Carr
y Outputより出力され、この信号は次段の上位
カウンタブロック(2進カウンタ)602のカウントイ
ネーブル信号614としてイネーブル入力端子Enab
leに入力される。
[0005] The 32-decimal counter 601 has a reset terminal R.
When the reset signal 611 input to eset becomes active, zero reset (synchronous reset) is performed at the next clock, the reset signal 611 is disabled, and the count enable signal 610 input to the enable input terminal Enable becomes active. This is a synchronous counter with a synchronous reset that starts counting up in synchronization with the clock 612 (hereinafter referred to as being enabled) when the clock 612 is reached. Carry signal 613 of 32-decimal counter 601
(hereinafter referred to as carry) is the carry output terminal Carr
This signal is output from the enable input terminal Enab as the count enable signal 614 of the next-stage upper counter block (binary counter) 602.
input to le.

【0006】そして更に、カウンタブロック602のキ
ャリー615は、上位カウンタブロックである2進カウ
ンタ603のカウントイネーブル信号616としてイネ
ーブル入力端子Enableに入力される構成となって
いる。 尚、カウンタブロック602及び603も同期リセット
付き同期式カウンタである。
Furthermore, the carry 615 of the counter block 602 is input to an enable input terminal Enable as a count enable signal 616 of a binary counter 603 which is an upper counter block. Note that the counter blocks 602 and 603 are also synchronous counters with synchronous reset.

【0007】これらカウンタブロックの動作を図7を用
いて説明する。
The operations of these counter blocks will be explained using FIG.

【0008】カウンタブロック601がイネーブルにな
ると、カウンタブロック601はクロック612に同期
してカウント動作を始める。そして、カウント値が(3
2−1)になる時だけキャリー613がアクティブにな
る。このキャリー613はカウントイネーブル信号61
4として次段のカウンタブロック602のイネーブル入
力端子Enableに入力され、カウンタブロック60
2は次のクロックの期間のみイネーブルになる。即ち、
カウンタブロック601が桁上げ出力する毎にカウンタ
ブロック602はカウントアップされる。
When the counter block 601 is enabled, the counter block 601 starts counting in synchronization with the clock 612. And the count value is (3
2-1), the carry 613 becomes active. This carry 613 is the count enable signal 61
4 is input to the enable input terminal Enable of the counter block 602 in the next stage, and the counter block 60
2 is enabled only during the next clock period. That is,
Each time the counter block 601 outputs a carry, the counter block 602 is counted up.

【0009】カウンタブロック602が(2−1)まで
カウントアップされ、且つカウンタブロック601が(
32−1)になるとカウンタブロック602はキャリー
を出力し、カウンタブロック603をイネーブルにして
カウントアップさせる。
Counter block 602 counts up to (2-1), and counter block 601 counts up to (2-1).
32-1), the counter block 602 outputs a carry and enables the counter block 603 to count up.

【0010】これらの動作により、カウンタ回路全体は
(32×2×2)カウント毎にカウンタブロック603
のキャリー信号617を回路の出力として出力する。即
ち、(32×2×2)のカウント周期を持つカウンタと
して働く。
Through these operations, the entire counter circuit outputs the counter block 603 every (32×2×2) count.
A carry signal 617 is output as the output of the circuit. That is, it functions as a counter with a count period of (32×2×2).

【0011】この様なカウンタをテストするには、図6
に示すようにカウンタブロック601、602及び60
3のそれぞれのキャリー出力をセレクタ604に接続し
、セレクト信号S0〜S2によりセレクタ出力618を
切り換えてテストを行なう方法が取られていた。このテ
スト方法によれば、カウンタブロック601のキャリー
出力613の検証には32クロック、カウンタブロック
602のキャリー出力615の検証には32×2クロッ
ク、カウンタブロック603のキャリー出力617の検
証には32×2×2クロック分のテストデータが少なく
とも必要となる。従って、このカウンタ600のテスト
に必要なクロック数は合計で、(32+32×2+32
×2×2=)224クロック必要となる。
To test such a counter, use the method shown in FIG.
Counter blocks 601, 602 and 60 as shown in
A method has been adopted in which the carry outputs of each of the three types are connected to the selector 604, and the selector output 618 is switched by the select signals S0 to S2 to perform the test. According to this test method, the carry output 613 of the counter block 601 is verified by 32 clocks, the carry output 615 of the counter block 602 is verified by 32×2 clocks, and the carry output 617 of the counter block 603 is verified by 32×2 clocks. At least 2×2 clocks worth of test data is required. Therefore, the total number of clocks required to test this counter 600 is (32+32×2+32
×2×2=)224 clocks are required.

【0012】0012

【発明が解決しようとする課題】以上の様に、従来の同
期式カウンタでは、カウント周期Nの値が大きくなると
それを検証するために必要となるカウント周期に相当す
るテストデータも増大する。そのため、大きなカウント
周期をもつカウンタを内蔵したLSIの検証には膨大な
テストデータが必要となり、更にそれを用いたシミュレ
ーションによる検証作業に時間を要するという欠点があ
った。
As described above, in the conventional synchronous counter, as the value of the count period N increases, the test data corresponding to the count period required to verify it also increases. Therefore, a huge amount of test data is required to verify an LSI incorporating a counter with a long counting period, and furthermore, there is a drawback that verification work by simulation using the data is time consuming.

【0013】本発明は、上記問題点を解決するもので、
その目的は、よりコンパクトな構成でテスト作業に要す
る手間と時間を短縮できる同期式カウンタを提供するこ
とである。
[0013] The present invention solves the above problems.
The purpose is to provide a synchronous counter that has a more compact configuration and can reduce the effort and time required for test work.

【0014】[発明の構成][Configuration of the invention]

【0015】[0015]

【課題を解決するための手段】前記課題を解決するため
に、本発明の特徴は、図1に示す如く、同期式カウンタ
として、カウントを進めるカウントイネーブル信号を入
力するイネーブル入力端子Enableと、カウント値
が桁上げの時にキャリー信号を出力するキャリー出力端
子Carry Outputとを持つn個(n:正整数
)のカウンタブロックを縦続接続して構成され、カウン
ト周期が前記n個のカウンタブロックそれぞれのカウン
ト周期の積で与えられる同期式カウンタにおいて、i番
目(1<i≦n)のカウンタブロックのイネーブル入力
端子Enableに、i−1番目のカウンタブロックか
ら出力されるキャリー信号、または1番目からi−1番
目の何れかのカウンタブロックに入力されるカウントイ
ネーブル信号、の何れを入力させるかを制御するカウン
タブロック制御部15を具備することである。
[Means for Solving the Problems] In order to solve the above-mentioned problems, the present invention is characterized in that, as shown in FIG. It is constructed by cascading n (n: positive integer) counter blocks each having a carry output terminal that outputs a carry signal when the value is a carry, and the count period is equal to the count of each of the n counter blocks. In a synchronous counter given by the product of periods, the carry signal output from the i-1th counter block or the carry signal from the 1st to i- The counter block control unit 15 is provided to control which of the count enable signals to be input to the first counter block.

【0016】[0016]

【作用】本発明の同期式カウンタでは、カウンタブロッ
ク制御部15で、i番目(1<i≦n)のカウンタブロ
ックのイネーブル入力端子Enableに、i−1番目
のカウンタブロックから出力されるキャリー信号、また
は1番目からi−1番目の何れかのカウンタブロックに
入力されるカウントイネーブル信号、の何れを入力させ
るかを制御するので、下位のカウンタブロックへのカウ
ントイネーブル信号を次段の上位のカウンタブロックの
イネーブル入力端子Enableに入力して下位のカウ
ンタブロックをスキップすることができ、特にLSI上
の回路の場合、それぞれのカウンタブロックのテストが
容易になり、テストパターンも少なくて済むため、カウ
ンタ回路の検証に要する手間と時間が大幅に短縮される
[Operation] In the synchronous counter of the present invention, the counter block control unit 15 inputs the carry signal output from the i-1th counter block to the enable input terminal Enable of the i-th (1<i≦n) counter block. , or the count enable signal input to any one of the counter blocks from the 1st to the i-1th counter block. It is possible to skip the lower counter blocks by inputting the input to the enable input terminal Enable of the block.Especially in the case of a circuit on an LSI, testing of each counter block becomes easier and fewer test patterns are required. The effort and time required for verification will be significantly reduced.

【0017】[0017]

【実施例】以下、本発明に係る実施例を図面に基づいて
説明する。
Embodiments Hereinafter, embodiments of the present invention will be explained based on the drawings.

【0018】図1に本発明の実施例に係る同期式カウン
タを示す。同図において、同期式カウンタはカウント周
期N1のカウンタブロック11、カウント周期N2のカ
ウンタブロック12、及びカウント周期N3のカウンタ
ブロック13と、カウンタブロック制御部15とにより
カウント周期N(=N1×N2×N3)のカウンタとし
て構成されている。
FIG. 1 shows a synchronous counter according to an embodiment of the present invention. In the figure, the synchronous counter has a count period N (=N1×N2× N3) is configured as a counter.

【0019】以下、最大128進カウンタの具体的設計
例として、カウンタ周期N1=16、N2=4、N3=
2のカウンタブロックで構成した例について説明する。
Below, as a specific design example of the maximum 128-decimal counter, counter period N1=16, N2=4, N3=
An example configured with two counter blocks will be explained.

【0020】各カウンタブロックはイネーブルの時、ク
ロック103に同期してカウントアップ動作を行なう。 各カウンタブロックのキャリーはキャリー出力端子Ca
rry Outputより出力され、そのキャリーが上
位のカウンタブロックのイネーブル入力端子Enabl
eに入力される。 尚、リセット信号101によるリセットはクロック10
3に同期して行なわれる。
Each counter block performs a count-up operation in synchronization with the clock 103 when enabled. The carry of each counter block is the carry output terminal Ca.
The carry is output from the rry Output and the carry is sent to the enable input terminal Enable of the upper counter block.
e. Note that the reset by the reset signal 101 is performed by the clock 10.
It is carried out in synchronization with 3.

【0021】カウンタブロックの構成例を図2に示す。 ここでは、16進カウンタ(カウンタブロック11)を
例として示している。同図において、カウンタブロック
11は、4個の2進カウンタ21、22、23及び24
から構成されている。リセット信号101がアクティブ
(”0”)の時、次のクロックの立ち上がりで全てのF
/Fはゼロリセットされる。カウントイネーブル信号1
02がアクティブで、且つリセット信号101がディセ
イブルの時、クロック103に同期してカウント動作を
行なう。各2進カウンタ21、22、及び23が桁上げ
される毎に、各2進カウンタ21、22、及び23より
順次キャリー信号201、201、及び203が伝達さ
れ、最終的にカウント値が(16−1)になると、2進
カウンタ204のキャリー出力105がカウンタブロッ
ク11のキャリーとして出力される。
FIG. 2 shows an example of the configuration of the counter block. Here, a hexadecimal counter (counter block 11) is shown as an example. In the figure, the counter block 11 includes four binary counters 21, 22, 23 and 24.
It consists of When the reset signal 101 is active (“0”), all F
/F is reset to zero. Count enable signal 1
02 is active and the reset signal 101 is disabled, a counting operation is performed in synchronization with the clock 103. Every time each binary counter 21, 22, and 23 is carried up, carry signals 201, 201, and 203 are transmitted sequentially from each binary counter 21, 22, and 23, and finally the count value becomes (16 -1), the carry output 105 of the binary counter 204 is output as the carry of the counter block 11.

【0022】カウンタ制御回路部15は、カウント制御
レジスタ16と組み合わせ回路により構成されている。 カウント制御レジスタ16は3ビット構成で、各ビット
は各カウンタブロックに対応している。即ち、ビットA
はカウンタブロック11に、ビットBはカウンタブロッ
ク12に、ビットCはカウンタブロック13に対応して
おり、”1”となっているビットに対応するカウンタブ
ロックをスキップする。カウンタブロック11を例に説
明すると、カウント制御レジスタ16のビットAが”1
”の時、カウンタブロック11のイネーブル入力端子E
nableへの入力信号102を上位カウンタブロック
12のイネーブル入力端子Enableに入力する。つ
まり、カウンタブロック11をスキップすることになる
The counter control circuit section 15 is composed of a count control register 16 and a combinational circuit. The count control register 16 has a 3-bit configuration, and each bit corresponds to each counter block. That is, bit A
corresponds to counter block 11, bit B corresponds to counter block 12, bit C corresponds to counter block 13, and the counter block corresponding to the bit set to "1" is skipped. Taking the counter block 11 as an example, bit A of the count control register 16 is “1”.
”, the enable input terminal E of the counter block 11
The input signal 102 to nable is input to the enable input terminal Enable of the upper counter block 12. In other words, the counter block 11 is skipped.

【0023】次に、図3及び図4を用いて、本実施例の
動作を説明する。
Next, the operation of this embodiment will be explained using FIGS. 3 and 4.

【0024】図3はカウンタブロック11をスキップす
る場合のタイミングを示すタイムチャートである。カウ
ント制御レジスタ16のビットA、B、及びCの内容が
それぞれ”1、0、0”の時、組み合わせ回路を経てカ
ウンタブロック11のカウントイネーブル信号102は
カウンタブロック12のイネーブル入力端子Enabl
eに入力され、カウンタブロック11及び12に入力さ
れるカウントイネーブル信号は共通になる。従って、カ
ウンタブロック11がイネーブルになると同時にカウン
タブロック12もイネーブルになるので、カウンタブロ
ック11及び12は共にカウント動作を始めることにな
る。そのため、カウンタブロック12はクロック103
に同期してカウントアップし、カウント値が(4−1)
になるとキャリー108を出力する。このキャリー10
8がカウンタブロック13イネーブル入力端子Enab
leに入力され、カウンタブロック13はこれによりカ
ウントアップする。つまり、カウンタブロック11の動
作は上位カウンタブロック12及び13には影響を与え
ず、カウンタブロック11はスキップされたことになり
、その結果カウンタ全体のカウント周期Nは(4×2)
となる。
FIG. 3 is a time chart showing the timing when the counter block 11 is skipped. When the contents of bits A, B, and C of the count control register 16 are "1, 0, 0" respectively, the count enable signal 102 of the counter block 11 is passed through the combinational circuit to the enable input terminal Enable of the counter block 12.
A common count enable signal is input to counter blocks 11 and 12. Therefore, since counter block 12 is also enabled at the same time that counter block 11 is enabled, both counter blocks 11 and 12 start counting operations. Therefore, the counter block 12 uses the clock 103
It counts up in synchronization with , and the count value is (4-1)
When this happens, carry 108 is output. This carry 10
8 is the counter block 13 enable input terminal Enab
le, and the counter block 13 counts up accordingly. In other words, the operation of counter block 11 does not affect upper counter blocks 12 and 13, and counter block 11 is skipped. As a result, the count period N of the entire counter is (4×2)
becomes.

【0025】また、図4はカウンタブロック12をスキ
ップする場合のタイミングを示すタイムチャートである
。カウンタブロック11の値が(16−1)になるとキ
ャリー105が出力されるが、このキャリー105はカ
ウンタブロック制御部15によりカウンタブロック12
のイネーブル入力端子Enable、及びカウンタブロ
ック13のイネーブル入力端子Enableに入力され
る。カウンタブロック12からのキャリー出力108も
カウンタブロック13のイネーブル入力端子Enabl
eに入力されることが考えられるが、カウンタブロック
12からキャリーが出力されるときには必ずカウンタブ
ロック11からのキャリーを受けて行なわれるので、カ
ウンタブロック11からキャリー105が出力されない
ときにはカウンタブロック13は動作しない。つまり、
カウンタブロック13はカウンタブロック12とは独立
して、カウンタブロック11からのキャリー105を受
けてカウント動作すると考えてよい。従って、この場合
のカウンタ全体のカウント周期Nは(16×2)となる
FIG. 4 is a time chart showing the timing when the counter block 12 is skipped. When the value of the counter block 11 becomes (16-1), a carry 105 is output.
and the enable input terminal Enable of the counter block 13. The carry output 108 from the counter block 12 is also connected to the enable input terminal Enable of the counter block 13.
However, when a carry is output from the counter block 12, the carry is always received from the counter block 11, so when the carry 105 is not output from the counter block 11, the counter block 13 does not operate. do not. In other words,
It may be considered that the counter block 13 receives the carry 105 from the counter block 11 and performs a counting operation independently of the counter block 12. Therefore, the count period N of the entire counter in this case is (16×2).

【0026】カウンタブロック13をスキップする場合
のタイミングを示すタイムチャートは省略したが、この
場合、カウンタブロック13のイネーブル入力端子En
ableへの入力がそのままカウンタ全体の出力となり
、カウント周期Nは(16×4)となる。
Although a time chart showing the timing when the counter block 13 is skipped is omitted, in this case, the enable input terminal En of the counter block 13 is
The input to ABLE becomes the output of the entire counter as it is, and the count period N becomes (16×4).

【0027】次に、図5を用いて本実施例の検証方法に
ついて説明する。
Next, the verification method of this embodiment will be explained using FIG.

【0028】同図は、上述したカウンタブロック制御部
によるカウンタブロックのスキップ動作を、概念的に切
り換えスイッチSW0、SW1、SW2により表したも
のである。先ず、カウンタブロック11をテストする場
合、スイッチSW2をb側に、スイッチSW1、SW0
をa側にしてカウンタブロック12、13をスキップす
る。これによりカウンタは16クロック周期で動作し、
従って、テストクロック数は最低16周期分となる。
The figure conceptually represents the counter block skip operation by the counter block control section described above using changeover switches SW0, SW1, and SW2. First, when testing the counter block 11, switch SW2 is set to b side, switches SW1 and SW0 are
is set to the a side and the counter blocks 12 and 13 are skipped. This causes the counter to operate at 16 clock cycles,
Therefore, the number of test clocks is at least 16 cycles.

【0029】同様に、カウンタブロック12をテストす
る場合には、スイッチSW1のみb側とし、スイッチS
W0、SW2をa側にして、カウンタブロック11、1
3をスキップし、またカウンタブロック13をテストす
る場合には、スイッチSW0のみb側とし、スイッチS
W1、SW2をa側にして、カウンタブロック11、1
2をスキップすることにより、それぞれのカウンタブロ
ックのテストにかかるクロック数は最低4周期、2周期
分で済む。
Similarly, when testing the counter block 12, only the switch SW1 is set to the b side, and the switch SW1 is set to the b side.
With W0 and SW2 on the a side, counter blocks 11 and 1
3 and when testing the counter block 13, set only the switch SW0 to the b side and switch S
With W1 and SW2 on side a, counter blocks 11 and 1
By skipping 2, the number of clocks required to test each counter block can be at least 4 cycles, or 2 cycles.

【0030】図6に示す従来の同期式カウンタをテスト
する場合、224(=128+64+32)周期に相当
するテストパターンが必要であったが、本実施例の場合
には、22(=16+4+2)周期に相当するテストパ
ターンで済み、テストに要する時間が10分の1に短縮
されることがわかる。
When testing the conventional synchronous counter shown in FIG. 6, a test pattern corresponding to 224 (=128+64+32) cycles was required, but in the case of this embodiment, a test pattern corresponding to 22 (=16+4+2) cycles was required. It can be seen that a corresponding test pattern is sufficient and the time required for testing is reduced to one-tenth.

【0031】また、本実施例で実現できるカウント周期
は、カウント制御レジスタ16の値の設定により、1、
16、4、2、16×4(=64)、4×2(=8)、
16×2(=32)、16×4×2(=128)の8通
りに設定できる。
Furthermore, the count period that can be realized in this embodiment is 1, 1, or 1, depending on the value of the count control register 16
16, 4, 2, 16×4 (=64), 4×2 (=8),
It can be set in eight ways: 16×2 (=32) and 16×4×2 (=128).

【0032】尚、図8に示すように、従来例を構成する
全ての2進カウンタのキャリーをセレクタ801(3ビ
ットのセレクト信号により制御される8  to  1
のセレクタ)より選択して出力するように構成しても、
本実施例と同じくカウント周期を1、2、4、8、16
、32、64、128の8通りに設定できるが、選択制
御する回路は本実施例に比べてはるかに複雑となる。更
に、テストクロック数は255(=1+2+4+8+1
6+32+64+128)クロック必要となり、テスト
に要する時間が増加する。
As shown in FIG. 8, the carries of all the binary counters constituting the conventional example are controlled by a selector 801 (8 to 1 controlled by a 3-bit select signal).
Even if you configure it to select and output from
Same as this example, the count period is 1, 2, 4, 8, 16.
, 32, 64, and 128, but the circuit for selection control is much more complex than in this embodiment. Furthermore, the number of test clocks is 255 (=1+2+4+8+1
6+32+64+128) clocks are required, increasing the time required for testing.

【0033】また、本実施例では、回路は3個のカウン
タブロックの構成なので、カウント周期は23 通りの
組み合わせが存在したが、m個のカウンタブロックの構
成では、最大2m通りの組み合わせが可能となる。
Furthermore, in this embodiment, since the circuit has a configuration of three counter blocks, there are 23 combinations of count periods, but with a configuration of m counter blocks, a maximum of 2m combinations are possible. Become.

【0034】更に、本実施例では、カウント周期N1=
16、N2=4、N3=2をもって説明したが、本発明
の主旨はこれに限られていないことは言うまでもない。
Furthermore, in this embodiment, the count period N1=
16, N2=4, and N3=2, but it goes without saying that the gist of the present invention is not limited to this.

【0035】[0035]

【発明の効果】以上の様に本発明によれば、カウントブ
ロック制御部により、任意のカウントブロックをスキッ
プできることとしたので、LSI上の回路の場合、それ
ぞれのカウンタブロックのテストが容易になり、テスト
パターンも少なくて済むため、カウンタ回路の検証に要
する手間と時間が大幅に短縮し得る同期式カウンタを提
供することができる。
As described above, according to the present invention, it is possible to skip any count block by the count block control section, so in the case of a circuit on an LSI, it becomes easy to test each counter block. Since fewer test patterns are required, it is possible to provide a synchronous counter that can significantly reduce the effort and time required to verify a counter circuit.

【0036】また、パラレルロード機能無しにカウント
周期を多くの組み合わせに設定することができ、回路が
コンパクトであるので、簡単な回路構成で可変進数カウ
ンタを実現できる。
Furthermore, since the count period can be set in many combinations without a parallel load function and the circuit is compact, a variable base counter can be realized with a simple circuit configuration.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の実施例に係る同期式カウンタの回路図
FIG. 1 is a circuit diagram of a synchronous counter according to an embodiment of the present invention.

【図2】カウンタブロックの回路図の一例[Figure 2] An example of a circuit diagram of a counter block

【図3】カウ
ンタブロックをスキップする場合のタイミングを示すタ
イムチャート
[Figure 3] Time chart showing the timing when skipping a counter block

【図4】カウンタブロックをスキップする場合のタイミ
ングを示すタイムチャート
[Figure 4] Time chart showing the timing when skipping a counter block

【図5】本発明の実施例に係る同期式カウンタの検証方
法を説明する図
FIG. 5 is a diagram illustrating a method for verifying a synchronous counter according to an embodiment of the present invention.

【図6】従来の同期式カウンタの回路図[Figure 6] Circuit diagram of a conventional synchronous counter

【図7】従来の
同期式カウンタのタイミングを示すタイムチャート
[Figure 7] Time chart showing the timing of a conventional synchronous counter

【図8】従来例においてカウント同期を多くの種類に設
定する場合の回路図である。
FIG. 8 is a circuit diagram when setting many types of count synchronization in a conventional example.

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

11〜13、601〜603  カウンタブロック15
  カウンタブロック制御部 16  カウント制御レジスタ 21〜24  2進カウンタ 101、611  リセット信号 102、106、109、610、614、616  
各カウンタブロックのカウントイネーブル信号103、
612  クロック信号 105、108、111、613、615、617  
各カウンタブロックのキャリー
11-13, 601-603 Counter block 15
Counter block control section 16 Count control registers 21 to 24 Binary counters 101, 611 Reset signals 102, 106, 109, 610, 614, 616
Count enable signal 103 of each counter block,
612 Clock signals 105, 108, 111, 613, 615, 617
Carry for each counter block

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  同期式カウンタとして、カウントを進
めるカウントイネーブル信号を入力するイネーブル入力
端子と、カウント値が桁上げの時にキャリー信号を出力
するキャリー出力端子とを持つn個(n:正整数)のカ
ウンタブロックを縦続接続して構成され、カウント周期
が前記n個のカウンタブロックそれぞれのカウント周期
の積で与えられる同期式カウンタにおいて、i番目(1
<i≦n)のカウンタブロックのイネーブル入力端子に
、i−1番目のカウンタブロックから出力されるキャリ
ー信号、または1番目からi−1番目の何れかのカウン
タブロックに入力されるカウントイネーブル信号、の何
れを入力させるかを制御するカウンタブロック制御部を
有することを特徴とする同期式カウンタ。
[Claim 1] As a synchronous counter, n pieces (n: positive integer) each have an enable input terminal that inputs a count enable signal to advance the count, and a carry output terminal that outputs a carry signal when the count value is a carry. In the synchronous counter, which is constructed by cascade-connecting n counter blocks, and whose count period is given by the product of the count periods of each of the n counter blocks, the i-th (1
<i≦n) A carry signal output from the i-1th counter block to the enable input terminal of the counter block, or a count enable signal input to any of the i-1th counter blocks from the 1st to the i-1th counter block, 1. A synchronous counter comprising a counter block control section that controls which of the following is input.
JP644391A 1991-01-23 1991-01-23 Synchronous counter Pending JPH04288695A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP644391A JPH04288695A (en) 1991-01-23 1991-01-23 Synchronous counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP644391A JPH04288695A (en) 1991-01-23 1991-01-23 Synchronous counter

Publications (1)

Publication Number Publication Date
JPH04288695A true JPH04288695A (en) 1992-10-13

Family

ID=11638550

Family Applications (1)

Application Number Title Priority Date Filing Date
JP644391A Pending JPH04288695A (en) 1991-01-23 1991-01-23 Synchronous counter

Country Status (1)

Country Link
JP (1) JPH04288695A (en)

Similar Documents

Publication Publication Date Title
CA1175154A (en) Shift circuit
US20080012605A1 (en) Glitch-free clock switcher
JPS58124325A (en) Shift register with variable number of delay stages
JPH04288695A (en) Synchronous counter
KR0170720B1 (en) Digital/analog converter interface apparatus
US6466505B1 (en) Flexible input structure for an embedded memory
JPH06291604A (en) Variable delay circuit
JPH083514B2 (en) Counter test equipment
JPS6193711A (en) Delay circuit
KR200155054Y1 (en) Counter circuit
JPS5965352A (en) Sorting device
JPH027616A (en) Timer circuit
KR960015560B1 (en) Apparatus for inputting 2-test data input to integrated circuit in a boundary-scan architecture
JPH0191396A (en) Shift register
JPH02181516A (en) Test circuit for counter
JP2586374B2 (en) Test circuit for adder circuit
JPH02272822A (en) Register with counter function and shift register function
JPH05143289A (en) Adder circuit
JPH05233213A (en) Serial/parallel conversion circuit
JPH0422220A (en) Synchronous output circuit
JPH0653819A (en) Synchronizing counter
JPH0764769A (en) Multiplier
JPS61126821A (en) Logic lsi circuit
JPH0410300A (en) Register read circuit
JPH0628151A (en) Parallel latch circuit for serial data