JPH06112812A - Binary counter - Google Patents

Binary counter

Info

Publication number
JPH06112812A
JPH06112812A JP4259190A JP25919092A JPH06112812A JP H06112812 A JPH06112812 A JP H06112812A JP 4259190 A JP4259190 A JP 4259190A JP 25919092 A JP25919092 A JP 25919092A JP H06112812 A JPH06112812 A JP H06112812A
Authority
JP
Japan
Prior art keywords
output
type flip
input
clock
binary counter
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
JP4259190A
Other languages
Japanese (ja)
Inventor
Koichi Hara
浩一 原
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP4259190A priority Critical patent/JPH06112812A/en
Publication of JPH06112812A publication Critical patent/JPH06112812A/en
Pending legal-status Critical Current

Links

Landscapes

  • Tests Of Electronic Circuits (AREA)

Abstract

PURPOSE:To conduct a test with two clock signals independently of a bit number through the provision of the test mode when the operation test of a binary counter is implemented. CONSTITUTION:Selector circuits 5-7 select a clock input signal CLK as an output signal by setting a select signal S to a high level. Thus, D type flip-flop circuits 1-4 output a high level at the falling of a 1st clock of all signals CLK and output a low level at the falling of a 2nd clock. Furthermore, outputs of the flip-flop circuits 1-4 are inputted to an AND gate 9 and its output is outputted from a terminal 14.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はバイナリ・カウンタに関
し、特にテストモード付きのバイナリ・カウンタに関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a binary counter, and more particularly to a binary counter with a test mode.

【0002】[0002]

【従来の技術】図5は従来の4ビットの非同期型バイナ
リ・カウンタの回路図である。図5において、本バイナ
リ・カウンタは、D型フリップフロップ60〜63を有
する。また、D型フリップフロップ60〜62の各Q出
力は次段のD型フリップフロップ61〜63のクロック
入力に入力されると共に、出力端子51〜54より出力
される。Q(反転値)の出力は、データ入力(D)にフ
ィードバックされている。
2. Description of the Related Art FIG. 5 is a circuit diagram of a conventional 4-bit asynchronous binary counter. In FIG. 5, the present binary counter has D-type flip-flops 60 to 63. The Q outputs of the D-type flip-flops 60 to 62 are input to the clock inputs of the D-type flip-flops 61 to 63 in the next stage, and also output from the output terminals 51 to 54. The output of Q (inverted value) is fed back to the data input (D).

【0003】図6のタイミング図を参照しながら、図5
の動作を説明する。図6のようなクロック信号(CL
K)を1ビット目のD型フリップフロップ60のC入力
に入力すると、そのQ出力はCLKの立ち下りに同期し
た信号として、Q出力より出力され、2ビット目のD型
フリップフロップ61のC入力され、同時に出力端子5
1より出力される。
Referring to the timing diagram of FIG. 6, FIG.
The operation of will be described. A clock signal (CL
K) is input to the C input of the first bit D-type flip-flop 60, its Q output is output from the Q output as a signal in synchronization with the falling edge of CLK, and the C bit of the second-type D-type flip-flop 61 is output. Input and output terminal 5 at the same time
It is output from 1.

【0004】2ビット目では前段のQ出力を入力とする
ので出力端子51の信号の立ち下りに同期した信号とし
て、3ビット目のD型フリップフロップ62のC入力に
入力され、同時に出力端子52より出力される。
At the second bit, since the Q output of the previous stage is input, it is input to the C input of the D-type flip-flop 62 of the third bit as a signal synchronized with the falling edge of the signal at the output terminal 51, and at the same time, the output terminal 52 Will be output.

【0005】同様にして、出力端子53,54の出力に
図6のタイミング図のようなデータが出力され、この出
力端子51〜54を調べることにより、バイナリ・カウ
ンタの動作を確認することができる。
Similarly, data as shown in the timing chart of FIG. 6 is output to the outputs of the output terminals 53 and 54, and the operation of the binary counter can be confirmed by checking the output terminals 51 to 54. .

【0006】しかし、このような構成であると、D型フ
リップフロップのnビットのQ出力に“1”が出力され
るまでに、2のn乗のクロック数を必要とする。
However, with such a configuration, 2 n clocks are required until "1" is output to the n-bit Q output of the D-type flip-flop.

【0007】[0007]

【発明が解決しようとする課題】前述したように、従来
のnビットのバイナリ・カウンタでは、その動作を試験
するのに2のn乗のクロック数を必要とし、ビット数が
増えるとテスト時間も増えるという欠点があった。
As described above, the conventional n-bit binary counter requires 2n clocks to test its operation, and the test time increases as the number of bits increases. There was a drawback that it would increase.

【0008】本発明の目的は、前記欠点を解決し、テス
ト時間を短縮したバイナリ・カウンタを提供することに
ある。
An object of the present invention is to solve the above-mentioned drawbacks and to provide a binary counter with a shorter test time.

【0009】[0009]

【課題を解決するための手段】本発明のバイナリ・カウ
ンタの構成は、nビットのD型フリップフロップを有
し、前記nビットのD型フリップフロップの各ビットの
Q出力を一方の入力とし、かつクロック信号を他方の入
力とするn−1個のセレクタを有し、前記セレクタを制
御するセレクト信号の入力端子を有し、前記セレクタの
出力を次段の前記D型フリップフロップに入力し、前記
セレクト信号によりテストモード選択時には、前記nビ
ットのD型フリップフロップの各入力に前記クロック信
号が入力するようにしなしたことを特徴とする。
The structure of the binary counter of the present invention has an n-bit D-type flip-flop, and the Q output of each bit of the n-bit D-type flip-flop is used as one input, Further, it has n-1 selectors having the clock signal as the other input, has an input terminal of a select signal for controlling the selector, and inputs the output of the selector to the D-type flip-flop of the next stage, When the test mode is selected by the select signal, the clock signal is input to each input of the n-bit D flip-flop.

【0010】[0010]

【実施例】次に、本発明について図面を参照して説明す
る。図1は本発明の第1の実施例のバイナリ・カウンタ
を示す回路図である。図1においては、簡単のために4
ビットのバイナリ・カウンタを例にとり説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings. FIG. 1 is a circuit diagram showing a binary counter according to the first embodiment of the present invention. In FIG. 1, for simplicity, 4
A binary counter of bits will be described as an example.

【0011】図1において、本実施例は、バイナリ・カ
ウンタを構成するD型フリップフロップ1〜4と、セレ
クト信号Sにより各ビットのD型フリップフロップ1〜
4のクロック入力(C)に前段のQ出力を入力するかク
ロック信号(CLK)入力端子からの信号を入力するか
を選択するためのセレクタ5,6,7とを備えている。
また、D型フリップフロップ1〜4の各Q出力はそれぞ
れ出力端子11〜14より出力される。
In FIG. 1, in the present embodiment, D-type flip-flops 1 to 4 constituting a binary counter and D-type flip-flops 1 to 1 of each bit by a select signal S are used.
The clock input (C) 4 has selectors 5, 6 and 7 for selecting whether to input the Q output of the previous stage or the signal from the clock signal (CLK) input terminal.
The Q outputs of the D-type flip-flops 1 to 4 are output from the output terminals 11 to 14, respectively.

【0012】D型フリップフロップ1〜4のQ(反転
値)出力は、データ(D)入力にフィードバックされ
る。セレクタ5,6,7は、いずれも同一の回路構成と
なっており、図7にも示すように、2入力ANDゲート
71,72とORゲート73とを有する。
The Q (inverted value) outputs of the D-type flip-flops 1 to 4 are fed back to the data (D) input. The selectors 5, 6 and 7 have the same circuit configuration, and have 2-input AND gates 71 and 72 and an OR gate 73 as shown in FIG.

【0013】次に図2のタイミング図を参照しながら、
図1の動作を説明する。セレクト信号Sがロウレベレの
時はセレクタ5〜7は各段のD型フリップフロップ1〜
3のQ出力を選択する。従って、この場合従来例と同様
に、通常のバイナリ・カウンタの動作を行う。
Next, referring to the timing chart of FIG.
The operation of FIG. 1 will be described. When the select signal S is low level, the selectors 5 to 7 are D-type flip-flops 1 to 1 of each stage.
Q output of 3 is selected. Therefore, in this case, the operation of the normal binary counter is performed as in the conventional example.

【0014】次に、セレクト信号Sをハイレベルにする
とテストモードになり、セレクタ5〜7は、クロック入
力信号CLKを選択し、各D型フリップフロップ1〜4
に同一のクロックを供給する。クロックが入力される
と、クロックの立ち下りで各D型フリップフロップ1〜
4のQ出力は一斉にハイレベルとなる。そして、次のク
ロックの立ち下りで各D型フリップフロップ1〜4のQ
出力は一斉にロウレベルを出力する。以上の動作によ
り、バイナリ・カウンタを構成するD型フリップフロッ
プの動作をわずか2クロックで試験することができる。
Next, when the select signal S is set to the high level, the test mode is set, the selectors 5 to 7 select the clock input signal CLK, and the D-type flip-flops 1 to 4 are selected.
Supply the same clock to. When a clock is input, each D-type flip-flop 1-
The Q output of 4 becomes high level all at once. Then, at the next falling edge of the clock, Q of each D-type flip-flop 1 to 4 is
The output outputs low level all at once. With the above operation, the operation of the D-type flip-flop that constitutes the binary counter can be tested with only two clocks.

【0015】図3は本発明の第2の実施例のバイナリ・
カウンタを示す回路図である。図3において、本実施例
が前記第1の実施例と相違する点は、各D型フリップフ
ロップ1〜4のQ出力の論理ANDをANDゲート9で
とり、セレクタ8を介して出力端子14のみで動作をチ
ェックできるようにした点である。
FIG. 3 is a binary diagram of the second embodiment of the present invention.
It is a circuit diagram which shows a counter. In FIG. 3, the present embodiment is different from the first embodiment in that the AND gate 9 takes the logical AND of the Q outputs of the D-type flip-flops 1 to 4, and only the output terminal 14 is provided via the selector 8. The point is that you can check the operation.

【0016】次に、図4のタイミング図を参照しなが
ら、図3の動作を説明する。まず、セレクト信号Sがロ
ウレベルの時は、前記第1の実施例の場合と同様に通常
のバイナリ・カウンタの動作をする。
Next, the operation of FIG. 3 will be described with reference to the timing chart of FIG. First, when the select signal S is low level, the normal binary counter operation is performed as in the case of the first embodiment.

【0017】次に、セレクト信号Sをハイレベルにする
とテストモードとなり、セレクタ5〜7はクロック入力
信号CLKを選択し、各D型フリップフロップ1〜4に
同一のクロックを供給する。クロック信号(CLK)が
入力されると、クロックの立ち下りで各D型フリップフ
ロップ1〜4のQ出力は一斉にハイレベルとなる。
Next, when the select signal S is set to the high level, the test mode is set, the selectors 5 to 7 select the clock input signal CLK, and the same clock is supplied to each of the D-type flip-flops 1 to 4. When the clock signal (CLK) is input, the Q outputs of the D-type flip-flops 1 to 4 simultaneously become high level at the falling edge of the clock.

【0018】ここで、ANDゲート9により各D型フリ
ップフロップ1〜4のQ出力の論理積がとられ、AND
ゲート9の出力もハイレベルとなり、セレクタ8を通し
て、出力端子14よりハイレベルが出力される。
Here, the AND gate 9 ANDs the Q outputs of the D-type flip-flops 1 to 4 to obtain an AND.
The output of the gate 9 also becomes high level, and the high level is output from the output terminal 14 through the selector 8.

【0019】そして、次のクロックの立ち下りで各D型
フリップフロップ1〜4のQ出力は一斉にロウレベルを
出力する。ここで、ANDゲート9により各D型フリッ
プフロップ1〜4のQ出力の論理積がとられ、ANDゲ
ート9の出力もロウレベルとなり、セレクタ8を通し
て、出力端子14よりロウレベルが出力される。このよ
うに、第2の実施例では、出力端子14の出力のみから
バイナリ・カウンタの動作を試験することができる。尚
セレクタは、図1の回路でもよい。
Then, at the next falling edge of the clock, the Q outputs of the D-type flip-flops 1 to 4 simultaneously output a low level. Here, the AND output of the Q outputs of the D-type flip-flops 1 to 4 is ANDed by the AND gate 9, and the output of the AND gate 9 also becomes low level, and the low level is output from the output terminal 14 through the selector 8. Thus, in the second embodiment, the operation of the binary counter can be tested only from the output of the output terminal 14. The selector may be the circuit of FIG.

【0020】[0020]

【発明の効果】以上説明したように、本発明は、テスト
モード時には各段のD型フリップフロップのクロック入
力に同一のクロックを与えるようにすることで、2クロ
ックでバイナリ・カウンタの動作試験を行うことができ
る。
As described above, according to the present invention, in the test mode, the same clock is applied to the clock inputs of the D-type flip-flops in each stage, so that the operation test of the binary counter can be performed with two clocks. It can be carried out.

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

【図1】本発明の第1の実施例のバイナリ・カウンタを
示す回路図である。
FIG. 1 is a circuit diagram showing a binary counter according to a first embodiment of the present invention.

【図2】図1の第1の実施例のタイミング図である。2 is a timing diagram of the first embodiment of FIG. 1. FIG.

【図3】本発明の第2の実施例の回路図である。FIG. 3 is a circuit diagram of a second embodiment of the present invention.

【図4】図3の第2の実施例のタイミング図である。FIG. 4 is a timing diagram of the second embodiment of FIG.

【図5】従来のバイナリ・カウンタの回路図である。FIG. 5 is a circuit diagram of a conventional binary counter.

【図6】図5のタイミング図である。FIG. 6 is a timing diagram of FIG.

【図7】図1,図3のセレクタを示す回路図である。FIG. 7 is a circuit diagram showing the selector shown in FIGS. 1 and 3;

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

1〜4,60〜,63 D型フリップフロップ 5〜8 セレクタ 9,71,72 ANDゲート 11〜14,51〜53 出力端子 73 ORゲート S セレクト信号 CLK クロック信号 1-4, 60-, 63 D-type flip-flop 5-8 Selector 9, 71, 72 AND gate 11-14, 51-53 Output terminal 73 OR gate S Select signal CLK Clock signal

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 nビットのD型フリップフロップを有
し、前記nビットのD型フリップフロップの各ビットの
Q出力を一方の入力とし、かつクロック信号を他方の入
力とするn−1個のセレクタを有し、前記セレクタを制
御するセレクト信号の入力端子を有し、前記セレクタの
出力を次段の前記D型フリップフロップに入力し、前記
セレクト信号によりテストモード選択時には、前記nビ
ットのD型フリップフロップの各入力に前記クロック信
号が入力するようにしなしたことを特徴とするバイナリ
・カウンタ。
1. An n-bit D-type flip-flop having n-1 number of bits, wherein the Q output of each bit of the n-bit D-type flip-flop is one input and the clock signal is the other input. A selector and an input terminal for a select signal for controlling the selector; an output of the selector is input to the D-type flip-flop of the next stage; and when the test mode is selected by the select signal, the n-bit D A binary counter characterized in that the clock signal is inputted to each input of a flip flop.
【請求項2】 前記D型フリップフロップの各Q出力を
入力とするANDゲートを設け、セレクタを介して出力
とする請求項1に記載のバイナリ・カウンタ。
2. The binary counter according to claim 1, further comprising an AND gate having each Q output of the D-type flip-flop as an input, and outputting the output through a selector.
JP4259190A 1992-09-29 1992-09-29 Binary counter Pending JPH06112812A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4259190A JPH06112812A (en) 1992-09-29 1992-09-29 Binary counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4259190A JPH06112812A (en) 1992-09-29 1992-09-29 Binary counter

Publications (1)

Publication Number Publication Date
JPH06112812A true JPH06112812A (en) 1994-04-22

Family

ID=17330629

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4259190A Pending JPH06112812A (en) 1992-09-29 1992-09-29 Binary counter

Country Status (1)

Country Link
JP (1) JPH06112812A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1989002479A1 (en) * 1987-09-09 1989-03-23 Nkk Corporation Process for decarburizing high-cr molten pig iron

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1989002479A1 (en) * 1987-09-09 1989-03-23 Nkk Corporation Process for decarburizing high-cr molten pig iron
AU619488B2 (en) * 1987-09-09 1992-01-30 Nkk Corporation Process for decarburizing high-cr molten pig iron

Similar Documents

Publication Publication Date Title
JP2576366B2 (en) Variable delay buffer circuit
US4876704A (en) Logic integrated circuit for scan path system
JPH04288607A (en) Clock signal switching circuit
US11646741B2 (en) Pulse width modulator with reduced pulse width
US3992635A (en) N scale counter
US4741005A (en) Counter circuit having flip-flops for synchronizing carry signals between stages
JPH06112812A (en) Binary counter
US20020018539A1 (en) Multi-bit counter
US5937024A (en) Counter for counting high frequency
JP2924030B2 (en) Clock signal selection circuit
JP3236235B2 (en) Toggle flip-flop
JP2621205B2 (en) Divider circuit
JP2001168691A (en) Pulse width modulation circuit
JP3003328B2 (en) Clock signal circuit
JPH04142116A (en) Variable frequency divider
JPH1114711A (en) Timing generator for semiconductor testing device
JP2903548B2 (en) Logic circuit diagnostic system
JP2003223237A (en) Clock switching circuit
JPS63254823A (en) Sequence circuit using d type flip-flop
JPS61285523A (en) Clock switching circuit
JPH04181186A (en) Test mode setting circuit for integrated circuit
JPS6160456B2 (en)
JPH0795047A (en) Frequency divider circuit
JPH0590952A (en) Synchronous counter
JPH03105269A (en) Test circuit

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19990921