JPH1028109A - Bit protection circuit - Google Patents

Bit protection circuit

Info

Publication number
JPH1028109A
JPH1028109A JP18187696A JP18187696A JPH1028109A JP H1028109 A JPH1028109 A JP H1028109A JP 18187696 A JP18187696 A JP 18187696A JP 18187696 A JP18187696 A JP 18187696A JP H1028109 A JPH1028109 A JP H1028109A
Authority
JP
Japan
Prior art keywords
protection
bit
bits
circuit
protecting
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.)
Granted
Application number
JP18187696A
Other languages
Japanese (ja)
Other versions
JP3443630B2 (en
Inventor
Hiroki Iwasaki
宏記 岩▲崎▼
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 Engineering Ltd
Original Assignee
NEC Engineering Ltd
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 Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP18187696A priority Critical patent/JP3443630B2/en
Publication of JPH1028109A publication Critical patent/JPH1028109A/en
Application granted granted Critical
Publication of JP3443630B2 publication Critical patent/JP3443630B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent the increase of a circuit scale even when the number of bits is increased by counting the number of protecting stages at every bit and successively writing and reading the counted protecting stage number at every bit as against a shared memory. SOLUTION: A selector 7 selects 1 by a carry signal at a rear part protecting side, O by the carry signal at a front part protecting side and a protecting result at the time of a preceding frame, which is stored in RAM 4, in the other cases so as to execute an output. Then, the protecting result is written in RAM 4. Since a data signal inputted to a counter 1-2 is inverted by an inverter 2 in a front part protecting operation, the bit state of a rear part protecting operation only becomes the opposite one. But, 0 is outputted as the protecting result by the logic of the selector 7. Thus, storage is temporarily executed in RAM 4 so that one circuit is shared concerning the respective bits of serially multiplexed status bits and, therefore, the circuit scale is not increased even when the bits are increased.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はビット保護回路に関
し、特にシリアルに多重されているステータスビットに
ついて前方及び後方保護を行うビット保護回路に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a bit protection circuit, and more particularly to a bit protection circuit for performing forward and backward protection on serially multiplexed status bits.

【0002】[0002]

【従来の技術】データ伝送回路においては、本来伝送す
べき主信号データの他に、回路各部の状態を示すステー
タスビットをシリアルに多重して伝送する場合がある。
かかるステータスビットは、伝送中のエラーによって内
容が変化することがあるので、所定保護段数の前方保護
及び後方保護を行うのが通常である。すなわち、ビット
の内容が変化した場合でも、その変化後の状態が所定保
護段数だけ継続した場合にのみ、その内容が変化したこ
とを確定的に取扱うのである。例えば、図3に示されて
いるように、シリアルに多重されているデータD1〜D
mのmビットのステータスビットの検出は、検出したビ
ットが伝送路中のエラーによって誤まる場合を考慮し
て、保護回路を通すことによってその信頼性を高めてい
る。なお、図中のデータD1〜Dmが1フレームであ
り、各フレーム毎にフレームパルスが立上り、各データ
毎にクロックが立上っている。
2. Description of the Related Art In data transmission circuits, status bits indicating the state of each part of the circuit may be serially multiplexed and transmitted in addition to the main signal data to be transmitted.
Since the contents of such status bits may change due to an error during transmission, it is usual to perform forward protection and backward protection for a predetermined number of protection stages. In other words, even when the contents of the bits change, only when the state after the change continues for the predetermined number of protection steps, the fact that the contents have changed is definitely handled. For example, as shown in FIG. 3, data D1 to D
The detection of m status bits of m increases the reliability by passing through a protection circuit in consideration of the case where the detected bits are erroneous due to an error in the transmission path. The data D1 to Dm in the figure are one frame, a frame pulse rises in each frame, and a clock rises in each data.

【0003】従来の保護回路において、検出するステー
タスビットがmビットの場合には、図4に示す通り1ビ
ットの検出を行う保護回路8をmビット分必要としてい
た。
In the conventional protection circuit, if the status bit to be detected is m bits, as shown in FIG. 4, the protection circuit 8 for detecting one bit is required for m bits.

【0004】同図において、保護回路8は、保護段数を
カウントするカウンタ9−1,9−2と、一方のカウン
タ9−2に入力するデータ信号を反転するインバータ2
と、両カウンタ9−1及び9−2出力のキャリー信号を
入力し、保護結果を出力するリセット・セット−フリッ
プフロップ(RS−F/F)10とを含んで構成されて
いる。また、各保護回路に入力するクロック信号は、ク
ロックとフレームパルスとを基準に、タイミング発生回
路11から出力する。ここで、ビット状態(ビットの内
容)が“0”から“1”に変化するときの保護を後方保
護(保護段数をxとする)、その反対を前方保護(保護
段数をyとする)とすると、カウンタ9−1が後方保護
カウンタ,カウンタ9−2が前方保護カウンタとなる。
In FIG. 1, a protection circuit 8 includes counters 9-1 and 9-2 for counting the number of protection stages and an inverter 2 for inverting a data signal input to one counter 9-2.
And a reset / set-flip-flop (RS-F / F) 10 that receives the carry signals of the counters 9-1 and 9-2 and outputs a protection result. The clock signal input to each protection circuit is output from the timing generation circuit 11 based on the clock and the frame pulse. Here, protection when the bit state (contents of the bit) changes from "0" to "1" is defined as backward protection (the number of protection steps is x), and the opposite is protection in the forward direction (y is the number of protection steps). Then, the counter 9-1 becomes a rear protection counter, and the counter 9-2 becomes a front protection counter.

【0005】後方保護動作について説明する。データ信
号は後方保護のカウンタ9−1のイネーブル端子(E
N)及びロード端子(LD)に入力されているため、入
力されたデータのビットの内容が“0”の時は、予め設
定されている保護段数の初期値が読込まれる。ここで設
定する初期値は、(初期値+保護段数x)の値がカウン
タのフルカウント値になる値である。
[0005] The rearward protection operation will be described. The data signal is supplied to the enable terminal (E) of the counter 9-1 for backward protection.
N) and the load terminal (LD), the initial value of the preset number of protection stages is read when the bit content of the input data is "0". The initial value set here is a value at which the value of (initial value + number of protection stages x) becomes the full count value of the counter.

【0006】次にビットの内容が“1”に変わると、後
方保護カウンタ9−1のイネーブル端子及びロード端子
が共に“1”になるので、カウンタはカウントアップを
行う。そしてビットの内容が“1”の状態が続き、x回
カウントアップを行ったところで、カウンタはフルカウ
ントになり、キャリー信号を出力する。このキャリー信
号はRS−F/F10のセット端子(S)に入力されて
いるので、出力(保護結果)は“1”となる。
Next, when the content of the bit changes to "1", both the enable terminal and the load terminal of the rear protection counter 9-1 become "1", so that the counter counts up. Then, when the content of the bit continues to be "1" and the counter is counted up x times, the counter becomes full count and outputs a carry signal. Since the carry signal is input to the set terminal (S) of the RS-F / F 10, the output (protection result) is "1".

【0007】ところでビットの内容が“0”の時に、ノ
イズ等によりビットが反転したとすると、後方保護カウ
ンタ9−1はカウントアップを行う。しかし、x回続け
て反転しない限り後方保護カウンタ9−1はフルカウン
トにならないため、キャリー信号は出力されず、出力も
“1”にならない。このように、予め定められた所定保
護段数に達した時に初めてビット内容が変化したものと
見なすことにより、ノイズ等に対する保護がかかるので
ある。
If the bit is "0" and the bit is inverted due to noise or the like, the rear protection counter 9-1 counts up. However, since the rear protection counter 9-1 does not reach a full count unless it is continuously inverted x times, no carry signal is output and the output does not become "1". In this way, it is assumed that the bit content has changed only when a predetermined number of protection stages is reached, thereby protecting against noise and the like.

【0008】次に、前方保護動作について説明する。前
方保護カウンタ9−2のイネーブル端子及びロード端子
に反転のデータ信号を入力されており、前方保護動作は
後方保護動作のビット状態が反対になるだけである。た
だし、前方保護カウンタ9−2の出力のキャリー信号は
RS−F/F10のリセット端子(R)に入力されてい
るため、保護結果は“0”となる。
Next, the forward protection operation will be described. Since the inverted data signal is input to the enable terminal and the load terminal of the forward protection counter 9-2, the forward protection operation is only the opposite of the bit state of the backward protection operation. However, since the carry signal output from the front protection counter 9-2 is input to the reset terminal (R) of the RS-F / F 10, the protection result is “0”.

【0009】また、図5は特開平1−73836号公報
に記載されている保護回路である。同図に示されている
ビット保護回路は、データ信号を1フレーム遅延させる
シフトレジスタ12と、データ信号とシフトレジスタ1
2から出力される1フレーム遅延されたデータ信号との
一致検出を行う排他的オアゲート13と、排他的オアゲ
ートでの検出結果により保護段数をカウントする加算回
路14と、加算回路14のカウント値と保護結果とを、
クロック及びフレームパルスを基準にアドレスカウンタ
15から出力されるアドレスによってビット毎に記憶す
るRAM4と、加算回路14のカウント値がxであるこ
とを検出するx検出回路16と、同じくカウント値がy
であることを検出するy検出回路17と、x検出回路1
6及びy検出回路17の両出力により保護結果を選択す
るセレクタ7とを含んで構成されている。
FIG. 5 shows a protection circuit described in Japanese Patent Application Laid-Open No. 1-73836. The bit protection circuit shown in FIG. 1 includes a shift register 12 for delaying a data signal by one frame, and a data signal and a shift register 1.
2, an exclusive OR gate 13 for detecting coincidence with the data signal delayed by one frame output from 2, an adding circuit 14 for counting the number of protection stages based on the detection result of the exclusive OR gate, and a count value and protection of the adding circuit 14. And the result
A RAM 4 for storing bit by bit the address output from the address counter 15 based on the clock and the frame pulse, an x detection circuit 16 for detecting that the count value of the adder circuit 14 is x, and a count value of y
Y detection circuit 17 and x detection circuit 1
6 and a selector 7 for selecting a protection result by both outputs of the y detection circuit 17.

【0010】次に、動作を説明する。シリアルに多重さ
れているステータスビットは排他的オアゲート13で、
シフトレジスタ12から出力される1フレーム前のビッ
トと比較される。加算回路14はこの比較結果が一致を
示した場合は、RAM4から出力される前フレーム時ま
でのカウント値のカウントアップを行い、不一致を示し
た場合にはカウント値を“0”にリセットする。そし
て、このカウント値を再びRAM4に書込む。つまり、
RAM4にはビット毎に異なるカウント値が一時記憶さ
れることになり、アドレスカウンタ15から出力される
アドレスに基づいてビット毎のカウント値の読出し/書
込みが行われる。
Next, the operation will be described. The status bits multiplexed serially are exclusive OR gates 13,
The bit is compared with the previous bit output from the shift register 12. The adder circuit 14 counts up the count value until the previous frame output from the RAM 4 when the comparison result indicates a match, and resets the count value to “0” when the comparison result indicates a mismatch. Then, the count value is written into the RAM 4 again. That is,
A different count value is temporarily stored in the RAM 4 for each bit, and reading / writing of the count value for each bit is performed based on the address output from the address counter 15.

【0011】x検出回路16は加算回路14がデータの
一致回数xをカウントした状態を検出し、y検出回路1
7は一致回数yを検出する。ここで、排他的オアゲート
13はデータの一致状態を検出するゲートであり、
“1”の時も“0”の時もその一致状態を検出してしま
う。つまり加算回路14は後方保護及び前方保護の両方
のカウントを行うことになり、x及びyの大きさによっ
ては先に別の検出回路が動作する場合がある。そのた
め、夫々の検出回路にイネーブル信号としてデータ信号
を入力し、回路の制御を行う。
An x detection circuit 16 detects a state in which the addition circuit 14 has counted the number x of data matches, and the y detection circuit 1
7 detects the number of matches y. Here, the exclusive OR gate 13 is a gate for detecting a data matching state.
In both cases of "1" and "0", the matching state is detected. That is, the adder circuit 14 counts both the backward protection and the forward protection, and another detection circuit may operate first depending on the magnitudes of x and y. Therefore, a data signal is input to each detection circuit as an enable signal to control the circuits.

【0012】セレクタ7はx検出回路16の検出信号の
入力に応答して“1”を出力し、y検出回路17の検出
信号の入力に応答して“0”を出力し、それ以外の時は
RAM4に記憶しておく前フレームの該当するビットの
保護結果を出力する。そして、出力した保護結果はRA
M4に書込まれる。なお、保護動作をmビットについて
連続で行うため、保護結果はシリアルに出力される。
The selector 7 outputs "1" in response to the input of the detection signal of the x detection circuit 16, outputs "0" in response to the input of the detection signal of the y detection circuit 17, Outputs the protection result of the corresponding bit of the previous frame stored in the RAM 4. Then, the output protection result is RA
Written to M4. Since the protection operation is performed continuously for m bits, the protection result is output serially.

【0013】[0013]

【発明が解決しようとする課題】図4に示されている従
来のビット保護回路では、検出するビット数と同数の保
護回路が必要となり、ビット数が増大すると回路規模も
増大するという欠点がある。また、図5の回路は検出す
るビットが複数のときにも対応できる回路であるが、デ
ータを1フレーム遅延させるためにシフトレジスタを使
用している。よって、検出するビット数が数ビット程度
なら特に問題はないが、例えば数百ビットとなった場合
にはシフトレジスタ自体が大規模になってしまい、やは
り回路規模が増大するという欠点がある。
The conventional bit protection circuit shown in FIG. 4 requires the same number of protection circuits as the number of bits to be detected, and has a drawback that the circuit scale increases as the number of bits increases. . Although the circuit of FIG. 5 is a circuit that can handle a plurality of bits to be detected, a shift register is used to delay data by one frame. Therefore, if the number of bits to be detected is about several bits, there is no particular problem. However, for example, when the number of bits to be detected is several hundreds, the shift register itself becomes large-scale, and the circuit scale also increases.

【0014】本発明は上述した従来技術の欠点を解決す
るためになされたものであり、その目的は回路規模が増
大することのないビット保護回路を提供することであ
る。
The present invention has been made to solve the above-mentioned drawbacks of the prior art, and an object of the present invention is to provide a bit protection circuit which does not increase the circuit scale.

【0015】[0015]

【課題を解決するための手段】本発明によるビット保護
回路は、複数のビットから構成されるシリアルデータに
ついて該ビット個々の内容について前方保護及び後方保
護の少なくとも一方を行うビット保護回路であって、前
記複数のビット夫々について特定の値が連続している回
数が順次プリセットされ前記ビット夫々について特定の
値の連続回数を計数する計数手段と、前記計数手段に順
次プリセットされるべき連続回数値が順次読出されかつ
前記計数手段の計数値が該ビットについての新たな連続
回数値として順次書込まれる記憶手段と、前記記憶手段
に書込まれる計数値と予め定められた保護段数値とを前
記各ビット毎に比較する比較手段とを含み、この比較結
果を保護出力とすることを特徴とする。
SUMMARY OF THE INVENTION A bit protection circuit according to the present invention is a bit protection circuit that performs at least one of forward protection and backward protection on the contents of individual bits of serial data composed of a plurality of bits, A counting means for sequentially counting the number of times a specific value is continuous for each of the plurality of bits and counting the number of times a specific value is continuous for each of the bits, and a continuous number value to be sequentially preset for the counting means. Storage means for reading out and sequentially writing the count value of the counting means as a new continuous count value for the bit; and storing the count value written to the storage means and a predetermined protection stage value for each bit. And a comparing means for making a comparison output every time.

【0016】[0016]

【発明の実施の形態】本発明の作用は以下の通りであ
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The operation of the present invention is as follows.

【0017】上述した問題点を解決するため本発明のビ
ット保護回路では、プリセット付きのカウンタを使用し
て後方及び前方保護段数をカウントしている。また、保
護段数のカウント値を後方と前方とに分けて共通のRA
Mに記憶させ、各ビット毎に保護段数の書込み及び読出
しの処理を行っている。これにより、ビット数が増大し
た時にも回路規模の増大が抑えられる。
In order to solve the above problem, the bit protection circuit of the present invention counts the number of rear and front protection stages using a counter with a preset. Further, the count value of the number of protection stages is divided into a rearward and a forward
M, and the process of writing and reading the number of protection stages is performed for each bit. As a result, even when the number of bits increases, an increase in circuit scale can be suppressed.

【0018】次に、本発明の実施例について図面を参照
して説明する。
Next, an embodiment of the present invention will be described with reference to the drawings.

【0019】図1は本発明によるビット保護回路の一実
施例の構成を示すブロック図である。このビット保護回
路は、クロックとは非同期にデータをプリセットできる
カウンタ1−1及び1−2と、一方のカウンタ1−2に
入力するデータ信号を反転するインバータ2と、カウン
タ1−1及び1−2から出力されるカウント値と後方/
前方保護段数(後方/前方保護値)とを比較するコンパ
レータ3−1,3−2と、クロックが“H”の時に読出
状態、“L”の時に書込み状態となり、カウンタ1−1
及び1−2から出力されるビット毎のカウント値と保護
結果とを記憶するRAM4と、RAM4のアドレス端子
(ADDRESS)に対するアドレス信号とカウンタ1
−1及び1−2に対するプリセットイネーブル(PE)
信号とを出力するタイミング発生回路5と、コンパレー
タ3−1及び3−2から出力される各保護段数との比較
結果をリタイミングするフリップフロップ(F/F)6
−1及び6−2と、F/F6−1,6−2から出力され
る保護段数の比較結果によって保護結果を選択して出力
するセレクタ7とを含んで構成されている。ここで、ビ
ット状態が“0”から“1”に変化するときの保護を後
方保護(保護段数をxとする)、その反対を前方保護
(保護段数をyとする)とすると、カウンタ1−1が後
方保護カウンタ,カウンタ1−2が前方保護カウンタと
なる。
FIG. 1 is a block diagram showing a configuration of an embodiment of a bit protection circuit according to the present invention. This bit protection circuit includes counters 1-1 and 1-2 capable of presetting data asynchronously with a clock, an inverter 2 for inverting a data signal input to one of the counters 1-2, and counters 1-1 and 1--1. Count value output from 2 and backward /
Comparators 3-1 and 3-2 for comparing the number of forward protection stages (backward / forward protection values), a read state when the clock is "H", and a write state when the clock is "L", and the counter 1-1.
, A RAM 4 for storing a count value for each bit output from 1-2 and a protection result, an address signal for an address terminal (ADDRESS) of the RAM 4 and a counter 1
Preset enable (PE) for -1 and 1-2
And a flip-flop (F / F) 6 for retiming the result of comparison with the number of protection stages output from the comparators 3-1 and 3-2.
-1 and 6-2, and a selector 7 for selecting and outputting a protection result based on a comparison result of the number of protection stages output from the F / Fs 6-1 and 6-2. Here, assuming that protection when the bit state changes from “0” to “1” is backward protection (the number of protection steps is x) and the opposite is forward protection (the number of protection steps is y), the counter 1− 1 is a rear protection counter, and the counter 1-2 is a front protection counter.

【0020】次に、後方保護動作について図2を参照し
て説明する。カウンタ1−1のプリセットイネーブル端
子(PE)には、図2の(D)に示されているタイミン
グのプリセットイネーブル信号が入力される。このイネ
ーブル信号によりカウンタ1−1は、信号が“L”の時
にRAM4から読出されるデータをセットし、“H”の
時はクロックの立下りエッジでカウント動作を行う。
Next, the backward protection operation will be described with reference to FIG. A preset enable signal at the timing shown in FIG. 2D is input to the preset enable terminal (PE) of the counter 1-1. With this enable signal, the counter 1-1 sets data read from the RAM 4 when the signal is "L", and performs the counting operation at the falling edge of the clock when the signal is "H".

【0021】また、カウンタ1−1のリセット端子
(R)にはデータ信号(同図(A))が入力され、この
入力されるステータスビットの内容が“1”の時は通常
のカウント動作を行い、“0”の時はカウント値をリセ
ット、つまり“0”にする。RAM4は同図(C)に示
されている通り、同図(B)のクロック信号の“H”と
“L”とに応じて読出し/書込み動作を行う。
A data signal (FIG. 2A) is input to the reset terminal (R) of the counter 1-1. When the content of the input status bit is "1", a normal count operation is performed. When the count is "0", the count value is reset, that is, set to "0". The RAM 4 performs a read / write operation according to the clock signals “H” and “L” in FIG.

【0022】ステータスビットの状態が“0”の間は、
カウンタ1−1は上述した通りリセット状態にあり、R
AM4に書込まれる値も“0”である。一方、ビットの
状態が“0”から“1”に変わると、カウンタ1−1に
はプリセットイネーブル信号によりRAM4に書込まれ
ているカウント値“0”がプリセットされ(a)、クロ
ックの立下りエッジでカウントアップを行う(b)。こ
れにより、カウント値は“0”から“1”になり、この
カウント値の“1”はRAM4に書込まれる。
While the status bit is "0",
The counter 1-1 is in the reset state as described above,
The value written to AM4 is also "0". On the other hand, when the state of the bit changes from "0" to "1", the counter 1-1 is preset with the count value "0" written in the RAM 4 by the preset enable signal (a), and the clock falls. Counting is performed at the edge (b). As a result, the count value changes from "0" to "1", and the count value "1" is written into the RAM 4.

【0023】ビットの状態に“1”が連続すると、カウ
ントアップが継続される(同図(E))。そして、カウ
ント値が後方保護段数であるxまで進むと、コンパレー
タ3−1において比較する対称と一致する。このため、
同図(F)に示されているようにキャリー信号が出力さ
れる。このキャリー信号は同図(B)のクロックによ
り、同図(G)に示されているようにF/F6−1でリ
タイミングされ、セレクタ7に入力される。
When "1" continues in the state of the bit, the count-up is continued ((E) in the figure). Then, when the count value advances to x, which is the number of rear protection stages, it matches the symmetry to be compared in the comparator 3-1. For this reason,
A carry signal is output as shown in FIG. The carry signal is retimed by the F / F 6-1 by the clock shown in FIG. 2B and input to the selector 7 as shown in FIG.

【0024】セレクタ7では、後方保護側のキャリー信
号で“1”を、前方保護側のキャリー信号で“0”を、
それ以外の時はRAM4に記憶されている前フレーム時
の保護結果を選択し、出力する。そして、この保護結果
(同図(H))はRAM4に書込まれる。
In the selector 7, "1" is set for the carry signal on the rear protection side, "0" is set for the carry signal on the front protection side,
At other times, the protection result at the previous frame stored in the RAM 4 is selected and output. Then, the protection result ((H) in the figure) is written in the RAM 4.

【0025】前方保護動作は、カウンタ1−2に入力さ
れるデータ信号をインバータ2で反転しているので、上
述した後方保護動作のビット状態が反対になるだけであ
る。但し、セレクタ7の論理により保護結果として
“0”が出力される。
In the forward protection operation, since the data signal input to the counter 1-2 is inverted by the inverter 2, only the bit state of the above-described backward protection operation is reversed. However, “0” is output as a protection result by the logic of the selector 7.

【0026】以上説明したように、ビット保護回路は、
各ビット夫々について特定の値が連続している回数、す
なわち後方及び前方の両保護段数をカウントするカウン
タにデータプリセット機能のあるカウンタを使用するこ
とと、カウンタのカウンタ値と保護結果とを各ビット毎
にRAMに一次記憶させることで、シリアルに多重され
ているステータスビットの各ビットについて一つの回路
を共用することができる。このため、ビット数が増大し
た場合にも回路規模が増大しないのである。
As described above, the bit protection circuit comprises:
A counter having a data preset function is used as a counter for counting the number of times that a specific value is continuous for each bit, that is, the number of protection steps both rearward and forward, and the counter value of the counter and the protection result are stored in each bit. By temporarily storing the status bits in the RAM every time, one circuit can be shared for each of the serially multiplexed status bits. Therefore, even if the number of bits increases, the circuit scale does not increase.

【0027】また、先述した特開平1−73836号公
報の回路では1フレームのビット数によって回路規模が
定まるシフトレジスタを使用しているが、本回路ではこ
れを使用していないため、やはり回路規模の増大を抑制
できるのである。
In the circuit disclosed in Japanese Patent Application Laid-Open No. 1-73836, a shift register whose circuit size is determined by the number of bits in one frame is used. Can be suppressed.

【0028】なお、以上はステータスビットについての
保護回路について説明したが、それ以外のビットを保護
対象にすることができることは明らかである。
Although the protection circuit for status bits has been described above, it is clear that other bits can be protected.

【0029】請求項の記載に関連して本発明は更に次の
態様をとりうる。
The present invention can take the following aspects in connection with the description of the claims.

【0030】(4)前記複数のビットの遷移タイミング
で第1のレベルから第2のレベルへ遷移しかつ該ビット
の遷移タイミング以外のタイミングで第2のレベルから
第1のレベルへ遷移するクロックを入力とし、該クロッ
クの第2のレベルへの遷移タイミングで前記連続回数値
が前記計数手段にプリセットされ、該クロックの第1の
レベルへの遷移タイミングで前記計数手段が計数動作す
ることを特徴とする請求項1〜3のいずれかに記載のビ
ット保護回路。
(4) A clock that transitions from the first level to the second level at the transition timing of the plurality of bits and transitions from the second level to the first level at a timing other than the transition timing of the bits. As an input, the count value is preset in the counting means at a transition timing of the clock to a second level, and the counting means performs a counting operation at a transition timing of the clock to the first level. The bit protection circuit according to claim 1.

【0031】(5)前記クロックが第2のレベルである
とき前記記憶手段から計数値が読出され、かつ前記クロ
ックが第1のレベルであるとき前記記憶手段に計数値が
書込まれることを特徴とする請求項1〜4のいずれかに
記載のビット保護回路。
(5) When the clock is at the second level, a count value is read from the storage means, and when the clock is at the first level, the count value is written to the storage means. The bit protection circuit according to claim 1, wherein

【0032】[0032]

【発明の効果】以上説明したように本発明は、各ビット
個々に保護段数を計数し、この計数した保護段数値を共
用のメモリに対して各ビット毎に順次書込みかつ読出す
ことにより、ビット数が増大した場合でも回路規模が増
大しないという効果がある。
As described above, according to the present invention, the number of protection stages is counted for each bit, and the counted number of protection stages is sequentially written and read for each bit with respect to the shared memory. There is an effect that the circuit scale does not increase even when the number increases.

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

【図1】本発明の実施例によるビット保護回路の構成を
示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a bit protection circuit according to an embodiment of the present invention.

【図2】図1のビット保護回路の動作を示す波形図であ
る。
FIG. 2 is a waveform chart showing an operation of the bit protection circuit of FIG.

【図3】ビット保護回路に入力されるデータ信号の内容
を示す波形図である。
FIG. 3 is a waveform diagram showing contents of a data signal input to a bit protection circuit.

【図4】従来のビット保護回路の構成を示すブロック図
である。
FIG. 4 is a block diagram showing a configuration of a conventional bit protection circuit.

【図5】従来の他のビット保護回路の構成を示すブロッ
ク図である。
FIG. 5 is a block diagram showing a configuration of another conventional bit protection circuit.

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

1−1,1−2 カウンタ 2 インバータ 3−1,3−2 コンパレータ 4 RAM 5 タイミング発生回路 6−1,6−2 フリップフロップ 7 セレクタ 1-1, 1-2 Counter 2 Inverter 3-1, 3-2 Comparator 4 RAM 5 Timing generation circuit 6-1, 6-2 Flip-flop 7 Selector

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数のビットから構成されるシリアルデ
ータについて該ビット個々の内容について前方保護及び
後方保護の少なくとも一方を行うビット保護回路であっ
て、前記複数のビット夫々について特定の値が連続して
いる回数が順次プリセットされ前記ビット夫々について
特定の値の連続回数を計数する計数手段と、前記計数手
段に順次プリセットされるべき連続回数値が順次読出さ
れかつ前記計数手段の計数値が該ビットについての新た
な連続回数値として順次書込まれる記憶手段と、前記記
憶手段に書込まれる計数値と予め定められた保護段数値
とを前記各ビット毎に比較する比較手段とを含み、この
比較結果を保護出力とすることを特徴とするビット保護
回路。
1. A bit protection circuit that performs at least one of forward protection and backward protection on the content of each bit of serial data composed of a plurality of bits, wherein a specific value is continuous for each of the plurality of bits. Counting means for sequentially counting the number of consecutive times of a specific value for each of the bits, and a continuous number value to be sequentially preset to the counting means is sequentially read out; And a comparing means for comparing, for each bit, a count value written to the storing means and a predetermined protection stage value for each bit. A bit protection circuit characterized in that a result is a protection output.
【請求項2】 前記記憶手段は、半導体メモリであるこ
とを特徴とする請求項1記載のビット保護回路。
2. The bit protection circuit according to claim 1, wherein said storage means is a semiconductor memory.
【請求項3】 前記前方保護及び後方保護は、前記ビッ
トの内容が変化した状態が前記保護段数だけ連続したと
きに始めてそのビットが変化したものとみなすことを特
徴とする請求項1又は2記載のビット保護回路。
3. The method according to claim 1, wherein the forward protection and the backward protection are regarded as being changed only when the state in which the content of the bit has changed continues for the number of protection stages. Bit protection circuit.
JP18187696A 1996-07-11 1996-07-11 Bit protection circuit Expired - Fee Related JP3443630B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18187696A JP3443630B2 (en) 1996-07-11 1996-07-11 Bit protection circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18187696A JP3443630B2 (en) 1996-07-11 1996-07-11 Bit protection circuit

Publications (2)

Publication Number Publication Date
JPH1028109A true JPH1028109A (en) 1998-01-27
JP3443630B2 JP3443630B2 (en) 2003-09-08

Family

ID=16108413

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18187696A Expired - Fee Related JP3443630B2 (en) 1996-07-11 1996-07-11 Bit protection circuit

Country Status (1)

Country Link
JP (1) JP3443630B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2482029A (en) * 2010-07-16 2012-01-18 Martin Dolan A precision indexing conveyor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2482029A (en) * 2010-07-16 2012-01-18 Martin Dolan A precision indexing conveyor
GB2482029B (en) * 2010-07-16 2014-11-12 Martin Dolan A precision indexing conveyor

Also Published As

Publication number Publication date
JP3443630B2 (en) 2003-09-08

Similar Documents

Publication Publication Date Title
US5502655A (en) Difference comparison between two asynchronous pointers and a programmable value
JP4317336B2 (en) Data restoration device and restoration circuit, data restoration method, and program storage device for realizing the method
US6879651B2 (en) Phase-adjustment control method and information processing apparatus
US5138637A (en) First-in-first-out buffer
US5398270A (en) Data coincidence detecting circuit
US5206817A (en) Pipelined circuitry for allowing the comparison of the relative difference between two asynchronous pointers and a programmable value
JP3815209B2 (en) Generation of pulse signal from clock signal
US6075833A (en) Method and apparatus for counting signal transitions
US6504876B1 (en) Pulse signal generating apparatus and pulse signal generating method
US4797625A (en) Device for detecting bit phase difference
US7696801B2 (en) Reset method for clock triggering digital circuit and related signal generating apparatus utilizing the reset method
JP3443630B2 (en) Bit protection circuit
US5600695A (en) Counter circuit having load function
JP3093583B2 (en) Memory control circuit
US6201487B1 (en) Error detecting circuit in a line length decoding system
JP2644112B2 (en) FIFO test diagnostic circuit
JP3156273B2 (en) Pointer processing circuit
US6259383B1 (en) Logic circuit and signal transmission method
US20240428878A1 (en) Memory device and control method therefor
US7752506B1 (en) FIFO memory error circuit and method
JP2001339376A (en) Synchronous circuit
JP3088144B2 (en) FIFO reset circuit
US6680990B1 (en) Elastic integrated circuit
JP6717781B2 (en) Processing device and processing method
US6670823B2 (en) Detecting counter contents for time-critical applications

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: 20030422

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees