JPH0815260B2 - Error count circuit - Google Patents

Error count circuit

Info

Publication number
JPH0815260B2
JPH0815260B2 JP5180558A JP18055893A JPH0815260B2 JP H0815260 B2 JPH0815260 B2 JP H0815260B2 JP 5180558 A JP5180558 A JP 5180558A JP 18055893 A JP18055893 A JP 18055893A JP H0815260 B2 JPH0815260 B2 JP H0815260B2
Authority
JP
Japan
Prior art keywords
error
counter
section
count
data
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
Application number
JP5180558A
Other languages
Japanese (ja)
Other versions
JPH0738422A (en
Inventor
司 上野
晋 山口
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 JP5180558A priority Critical patent/JPH0815260B2/en
Publication of JPH0738422A publication Critical patent/JPH0738422A/en
Publication of JPH0815260B2 publication Critical patent/JPH0815260B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明はエラーカウント回路に関
し、特に連続したデータ列の中のエラーデータの数を所
定の区間ごとにカウントするエラーカウント回路に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an error count circuit, and more particularly to an error count circuit for counting the number of error data in a continuous data string for each predetermined section.

【0002】[0002]

【従来の技術】従来、この種のエラーカウント回路は、
連続したデータ列のデータをm個単位の区間ごとに連続
して計測し、各区間ごとのエラーデータの数をカウント
することを目的として用いられている。
2. Description of the Related Art Conventionally, this type of error counting circuit is
It is used for the purpose of continuously measuring the data of a continuous data string for each section of m units and counting the number of error data for each section.

【0003】図4は従来のエラーカウント回路の一例を
示す回路図である。第1カウンタ5の第1区間カウンタ
5aおよび第2カウンタ6の第2区間カウンタ6aはい
ずれもダウンカウンタでそれぞれ1区間の計測データの
数mをカウントする。また第1カウンタ5の第1エラー
カウンタ5bおよび第2カウンタの第2エラーカウンタ
6bはいずれもダウンカウンタで、1区間のエラーデー
タの数をカウントし、エラーデータの数がnになるとO
Rゲート14を介してアラームを発生する。第1エラー
カウンタ5bは第1区間カウンタ5aと、また第2エラ
ーカウンタ6bは第2区間カウンタ6aとそれぞれ対で
動作し、第1カウンタ5と第2カウンタ6とは交互に動
作する。
FIG. 4 is a circuit diagram showing an example of a conventional error count circuit. Each of the first section counter 5a of the first counter 5 and the second section counter 6a of the second counter 6 is a down counter and counts the number m of measurement data of one section. Further, the first error counter 5b of the first counter 5 and the second error counter 6b of the second counter are both down counters and count the number of error data in one section. When the number of error data becomes n, O
An alarm is generated via the R gate 14. The first error counter 5b and the second error counter 6b operate in pairs with the first section counter 5a and the second section counter 6a, respectively, and the first counter 5 and the second counter 6 operate alternately.

【0004】次に、動作について図5の波形図を併用し
つつ説明する。まず、第2区間カウンタ6aが計測デー
タmのカウントを完了した場合を考える。第2区間カウ
ンタ6aがカウントを終えると、H(ハイ)レベルのキ
ャリーを発生する。発生したキャリーは半クロック後に
FF(フリップフロップ)7に記憶され、その結果FF
7のQ出力はL(ロウ)からHに変化してSRラッチ8
をリセット状態とする。SRラッチ8がリセットされる
とそのQ反転出力がHレベルとなり、第2区間カウンタ
6aには初期値mを、第2エラーカウンタ6bには初期
値n+1をロードして第2カウンタ6をカウント初期状
態とする。これを図5の(f),(g),(h)に示
す。第2カウンタ6をカウント初期状態とすることによ
り、第2区間カウンタ6aのキャリーはLレベルに変化
し、次のCLK(クロック)でFF7はLレベルを記憶
し、その結果FF7のQ出力はLレベルに変化し、SR
ラッチ8のリセットを解除する。この場合、SRラッチ
8はセット状態になるまで出力レベルを保持するので、
第2区間カウンタ6aおよび第2エラーカウンタ6bの
ロード状態は保持され、カウントは行なわれない。
Next, the operation will be described with reference to the waveform chart of FIG. First, consider a case where the second section counter 6a has completed counting the measurement data m. When the second section counter 6a finishes counting, an H (high) level carry is generated. The generated carry is stored in FF (flip-flop) 7 after half a clock, and as a result, FF
Q output of 7 changes from L (low) to H and SR latch 8
Is reset. When the SR latch 8 is reset, its Q inversion output becomes H level, the second section counter 6a is loaded with the initial value m, and the second error counter 6b is loaded with the initial value n + 1 to start counting the second counter 6. State. This is shown in (f), (g), and (h) of FIG. By setting the second counter 6 to the counting initial state, the carry of the second section counter 6a changes to the L level, the FF 7 stores the L level at the next CLK (clock), and as a result, the Q output of the FF 7 becomes the L level. Change to level, SR
The reset of the latch 8 is released. In this case, since the SR latch 8 holds the output level until it is set,
The loaded states of the second section counter 6a and the second error counter 6b are held and counting is not performed.

【0005】SRラッチ8のQ反転出力のHレベルはさ
らに、ORゲート9aを開いて第1区間カウンタ5aを
イネーブル(ENB)とし、かつANDゲート10にも
供給されてORゲート9bを介して第1エラーカウンタ
5bへのエラー信号入力をイネーブルとする。これによ
り、カウント動作は第2カウンタ6から第1カウンタ5
に移る。
The H level of the Q inverted output of the SR latch 8 further opens the OR gate 9a to enable (ENB) the first section counter 5a, and is also supplied to the AND gate 10 to be supplied to the first gate via the OR gate 9b. 1 Error signal input to the error counter 5b is enabled. Accordingly, the counting operation is performed from the second counter 6 to the first counter 5.
Move on to.

【0006】第1区間カウンタ5aが1区間のデータの
カウントを終えると、前述した第2区間カウンタ6aと
同様の動作をする。すわなち、第1区間カウンタ5aに
キャリーが発生してキャリーはFF11に取り込まれ
る。FF11のQ出力はSRラッチ8をセット状態と
し、SRラッチ8のQ出力はHレベルとなり、第1区間
カウンタ5aには初期値mを、また第1エラーカウンタ
5bには初期値n+1をロードさせてカウント初期状態
とし、またORゲート12a,12bおよびANDゲー
ト13を介して第2区間カウンタ6aおよび第2エラー
カウンタ6bをイネーブルとなし、カウント動作は第1
カウンタ5から第2カウンタ6に移る。この状態を図5
の(b),(c),(d)に示す。
When the first section counter 5a finishes counting the data of one section, the same operation as that of the second section counter 6a described above is performed. That is, a carry is generated in the first section counter 5a and the carry is taken into the FF 11. The Q output of the FF 11 sets the SR latch 8 to the set state, the Q output of the SR latch 8 becomes the H level, and the first section counter 5a is loaded with the initial value m and the first error counter 5b is loaded with the initial value n + 1. To the initial state of counting, and the second section counter 6a and the second error counter 6b are enabled via the OR gates 12a and 12b and the AND gate 13, and the counting operation is the first.
The counter 5 moves to the second counter 6. This state is shown in Figure 5.
(B), (c), and (d).

【0007】以上の一連の動作の繰り返しで、第1カウ
ンタ5と第2カウンタ6とは交互に動作する。
By repeating the above series of operations, the first counter 5 and the second counter 6 operate alternately.

【0008】[0008]

【発明が解決しようとする課題】この従来のエカウント
回路は、同一のカウント回路を2組備えているのでカウ
ントする桁数を増やすときには2組に等しく増やさなけ
ればならず、このため回路規模が著しく増大するという
欠点があった。
Since this conventional counting circuit has two sets of the same counting circuit, when the number of digits to be counted must be increased to two sets, the circuit scale is remarkably large. It had the drawback of increasing.

【0009】また、この種のエラーカウント回路を1組
のエラーカウント回路で構成しようとするときには次の
ような問題点があった。これを図6,図7および図8を
用いて説明する。
Further, when the error count circuit of this type is constituted by one set of error count circuits, there are the following problems. This will be described with reference to FIGS. 6, 7 and 8.

【0010】図6において、区間カウンタ15がカウン
トを完了し、発生したキャリーをロード信号として使用
して区間カウンタ15には初期値mを、またエラーカウ
ンタ2には初期値n+1をロードしてカウント初期状態
に戻るタイミングのときデータにエラーがない場合は図
7の波形図に示すようにエラーは正しくカウントされ
る。しかしながら、カウント状態に戻るタイミングのと
きデータにエラーがある場合は、図8の波形図に示すよ
うに最初のエラーはカウントされない。そこで従来は図
4に示すように2組のカウンタを交互に動作させること
で正しくカウントさせていた。
In FIG. 6, the section counter 15 completes counting and the generated carry is used as a load signal to load the section counter 15 with an initial value m and the error counter 2 with an initial value n + 1 to count. If there is no error in the data at the time of returning to the initial state, the error is correctly counted as shown in the waveform chart of FIG. However, if there is an error in the data at the timing of returning to the counting state, the first error is not counted as shown in the waveform diagram of FIG. Therefore, conventionally, two sets of counters are operated alternately as shown in FIG. 4 to correctly count.

【0011】本発明の目的は上述した欠点を解決し、1
組のカウント回路に限定した簡素な構成かつカウント初
期状態(ロード時)にあってもカウントエラーを発生し
ないエラーカウント回路を提供することにある。
The object of the present invention is to solve the abovementioned drawbacks, and
An object of the present invention is to provide an error count circuit which has a simple structure limited to a set of count circuits and which does not generate a count error even in the initial count state (during load).

【0012】[0012]

【課題を解決するための手段】本発明の回路は、あらか
じめ設定したデータ列のデータ数を所定の区間ごとに繰
り返しカウントする区間カウンタと、前記データ列のデ
ータの含むエラー数を前記所定の区間ごとにカウントす
るエラーカウンタとを備えて前記所定の区間ごとの繰り
返しのカウントで前記エラーカウンタのカウント値が制
限内であるか否かを判定するエラーカウント回路であっ
て、前記所定の区間ごとの繰り返しのカウントの開始時
点におけるエラーデータの有無に対応して前記エラーカ
ウンタの初期値を切り替えて前記エラーカウンタにおけ
るカウントエラーの発生を抑圧する手段を有する。
The circuit of the present invention comprises a section counter for repeatedly counting the number of data of a preset data string for each predetermined section, and the number of errors contained in the data of the data string in the predetermined section. An error count circuit for determining whether or not the count value of the error counter is within a limit by a repeated count for each of the predetermined intervals, which includes an error counter that counts for each predetermined interval. There is provided means for suppressing the occurrence of a count error in the error counter by switching the initial value of the error counter in accordance with the presence / absence of error data at the time of starting the repeated counting.

【0013】また本発明の回路は、前記区間カウンタと
前記エラーカウンタとをそれぞれ1台かつダウンカウン
タとした構成を有する。
Further, the circuit of the present invention has a structure in which the section counter and the error counter are each one and are down counters.

【0014】[0014]

【実施例】次に、本発明について図面を参照して説明す
る。図1は本発明の一実施例を示す回路図である。
Next, the present invention will be described with reference to the drawings. FIG. 1 is a circuit diagram showing an embodiment of the present invention.

【0015】区間カウンタ1はダウンカウンタで1区間
の計測データの数mをカウントする。エラーカウンタ2
はダウンカウンタで1区間のエラーデータの数をカウン
トする。セレクタ3はエラーカウンタ2にロードする初
期値を切り替え、エラーデータの数n、もしくはエラー
データの数nに1を加えた値n+1のいずれかを選択す
る。ORゲート4は、エラーカウンタ2のエネーブル入
力を供給する。
The section counter 1 is a down counter and counts the number m of measurement data in one section. Error counter 2
Is a down counter and counts the number of error data in one section. The selector 3 switches the initial value to be loaded into the error counter 2, and selects either the number n of error data or the value n + 1 obtained by adding 1 to the number n of error data. The OR gate 4 supplies the enable input of the error counter 2.

【0016】次に、本実施例の動作について説明する。
まず、区間カウンタ1が1区間のデータのカウントを完
了するとキャリーが発生する。キャリーはロード信号と
して使用され、ロード信号101によって区間カウンタ
1およびエラーカウンタ2にそれぞれ初期値がロードさ
れる。区間カウンタ1の初期値はmであり、一方エラー
カウンタ2の初期値はエラーのないときっとエラーのあ
るときとで異なる。これを図2および図3の波形図を参
照しながら説明する。
Next, the operation of this embodiment will be described.
First, a carry occurs when the section counter 1 completes the counting of data for one section. The carry is used as a load signal, and the load signal 101 loads initial values to the section counter 1 and the error counter 2, respectively. The initial value of the section counter 1 is m, while the initial value of the error counter 2 is different when there is no error and when there is an error. This will be described with reference to the waveform diagrams of FIGS. 2 and 3.

【0017】図2はロード時にエラーのないときの波形
図である。ロード時にエラーのないときには、エラーの
数nより1つ大い数n+1をロードし、ロードの次のク
ロックタイミングよりエラーのカウントを開始させる。
FIG. 2 is a waveform diagram when there is no error during loading. When there is no error at the time of loading, the number n + 1, which is one greater than the number n of errors, is loaded and the error counting is started from the clock timing next to the loading.

【0018】図3はロード時にエラーのある時の波形図
である。ロード時のあるときには、エラーの数nをロー
ドする。このことはロード時にエラーをカウントしたの
と同じ状態であり、ロードのクロックタイミングよりエ
ラーのカウントを開始したのと同等の動作である。
FIG. 3 is a waveform diagram when an error occurs during loading. At some load time, load the number n of errors. This is the same state as when an error is counted at the time of loading, which is the same operation as when the error counting is started from the load clock timing.

【0019】以上のような動作により、カウント初期状
態のエラーも誤りなくカウントすることができる。
By the above operation, the error in the initial state of counting can be counted without error.

【0020】[0020]

【発明の効果】以上説明したように本発明は、カウンタ
のロード時にエラーがない場合にはエラーがある場合よ
りもダウンカウントすべきエラー数を1つふやす構成と
することにより、エラーカウント回路を1組の区間カウ
ンタとエラーカウンタで構成でき、かつ桁数の増加にお
ける構成要素の増大も著しく抑圧できる効果を有する。
As described above, according to the present invention, when the counter is loaded with no error, the number of errors to be down-counted is increased by one rather than the error. It has an effect that it can be constituted by one set of section counter and error counter, and that the increase of the constituent elements in the increase of the number of digits can be significantly suppressed.

【0021】[0021]

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

【図1】本発明の一実施例のエラーカウント回路の回路
図である。
FIG. 1 is a circuit diagram of an error count circuit according to an embodiment of the present invention.

【図2】本発明の一実施例のロード時にエラーがない場
合の動作を説明するための波形図である。
FIG. 2 is a waveform diagram for explaining an operation when there is no error during loading according to the embodiment of this invention.

【図3】本発明の一実施例のロード時にエラーがある場
合の動作を説明するための図である。
FIG. 3 is a diagram for explaining an operation when an error occurs during loading according to the embodiment of this invention.

【図4】従来のエラーカウント回路の一例を示す回路図
である。
FIG. 4 is a circuit diagram showing an example of a conventional error count circuit.

【図5】従来のエラーカウント回路の動作を説明するた
めの波形図である。
FIG. 5 is a waveform diagram for explaining the operation of a conventional error count circuit.

【図6】カウンタを1組とした場合のエラーカウント回
路の回路図である。
FIG. 6 is a circuit diagram of an error count circuit in the case where one set of counters is used.

【図7】カウンタを1組としたエラーカウント回路のロ
ード時にエラーがある場合の動作を説明するための波形
図である。
FIG. 7 is a waveform diagram for explaining an operation in the case where there is an error when loading the error count circuit including one set of counters.

【図8】カウンタを1組としたエラーカウント回路のロ
ード時にエラーがない場合の動作を示す波形図である。
FIG. 8 is a waveform diagram showing an operation when there is no error when loading the error count circuit with one set of counters.

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

1 区間カウンタ 2 エラーカウンタ 3 セレクタ 4 ORゲート 1 section counter 2 error counter 3 selector 4 OR gate

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 あらかじめ設定したデータ列のデータ数
を所定の区間ごとに繰り返しカウントする区間カウンタ
と、前記データ列のデータの含むエラー数を前記所定の
区間ごとにカウントするエラーカウンタとを備えて前記
所定の区間ごとの繰り返しのカウントで前記エラーカウ
ンタのカウント値が制限内であるか否かを判定するエラ
ーカウント回路であって、前記所定の区間ごとの繰り返
しのカウントの開始時点におけるエラーデータの有無に
対応して前記エラーカウンタの初期値を切り替えて前記
エラーカウンタにおけるカウントエラーの発生を抑圧す
る手段を有することを特徴とするエラーカウント回路。
1. A section counter for repeatedly counting the number of data of a preset data string for each predetermined section, and an error counter for counting the number of errors contained in the data of the data string for each of the predetermined section. An error count circuit for judging whether or not the count value of the error counter is within a limit by the repeated count for each of the predetermined sections, wherein the error data of the error data at the start point of the repeated count for each of the predetermined sections is An error count circuit comprising means for switching the initial value of the error counter in accordance with the presence or absence of the error counter to suppress the occurrence of a count error in the error counter.
【請求項2】 前記区間カウンタと前記エラーカウンタ
とをそれぞれ1台かつダウンカウンタとして構成したこ
とを特徴とする請求項1記載のエラーカウンタ回路。
2. The error counter circuit according to claim 1, wherein each of the section counter and the error counter is configured as a single down counter.
JP5180558A 1993-07-22 1993-07-22 Error count circuit Expired - Lifetime JPH0815260B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5180558A JPH0815260B2 (en) 1993-07-22 1993-07-22 Error count circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5180558A JPH0815260B2 (en) 1993-07-22 1993-07-22 Error count circuit

Publications (2)

Publication Number Publication Date
JPH0738422A JPH0738422A (en) 1995-02-07
JPH0815260B2 true JPH0815260B2 (en) 1996-02-14

Family

ID=16085384

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5180558A Expired - Lifetime JPH0815260B2 (en) 1993-07-22 1993-07-22 Error count circuit

Country Status (1)

Country Link
JP (1) JPH0815260B2 (en)

Also Published As

Publication number Publication date
JPH0738422A (en) 1995-02-07

Similar Documents

Publication Publication Date Title
KR890017866A (en) Filter circuit
EP0631391B1 (en) Decoded counter with error check and self-correction
US4160154A (en) High speed multiple event timer
US6434588B1 (en) Binary counter with low power consumption
JPH04248481A (en) Logic comparison circuit of ic testing device
JPH0815260B2 (en) Error count circuit
EP0527636B1 (en) Counter circuit using Johnson-type counter and applied circuit including the same
US20020036935A1 (en) Programmable high speed frequency divider
TWI801100B (en) Shift register circuit and a method for controlling a shift register circuit
JPH04351118A (en) Counter circuit
JP2563366B2 (en) Signal cycle measuring device
US4581751A (en) Reversible shift register
JP2984429B2 (en) Semiconductor integrated circuit
JPS6390236A (en) Alarm circuit for degradation of error rate
JPH0683066B2 (en) Counter circuit
JPH05327482A (en) Divider
KR0142792B1 (en) Data interpolation circuit
JPS61243527A (en) Bit buffer circuit
SU1287281A1 (en) Frequency divider with fractional countdown
JPS6233394Y2 (en)
SU1128390A1 (en) Pulse repetition frequency divider
SU1172004A1 (en) Controlled frequency divider
JPH04243316A (en) Start timing setting changeover system for pulse signal
JPH0481124A (en) Count number setting changeover system
JPH04302527A (en) Counting 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: 19960903