JPS6320932A - Parity counter - Google Patents

Parity counter

Info

Publication number
JPS6320932A
JPS6320932A JP61165722A JP16572286A JPS6320932A JP S6320932 A JPS6320932 A JP S6320932A JP 61165722 A JP61165722 A JP 61165722A JP 16572286 A JP16572286 A JP 16572286A JP S6320932 A JPS6320932 A JP S6320932A
Authority
JP
Japan
Prior art keywords
parity
circuit
output
reset pulse
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.)
Pending
Application number
JP61165722A
Other languages
Japanese (ja)
Inventor
Hideo Sunaga
英男 須長
Masanori Hiramoto
平本 正徳
Kazuyoshi Ikeda
和義 池田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP61165722A priority Critical patent/JPS6320932A/en
Publication of JPS6320932A publication Critical patent/JPS6320932A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve high-speed operation by employing a synchronizing system so as not to clear a JK flip-flop in a parity counter to prolong the holding time of a count value for the count result of data of a fraction of one multi-frame. CONSTITUTION:A reset pulse 5 is extracted from timing signals P-1-P-3 in an AND circuit 12' and fed to an OR circuit 14'. Furthermore, an AND circuit 13' with an inverting input uses the signal P-3 to extract only a data part 7 from an input signal as shown in waveform 6 and gives it to an OR circuit 14' and a terminal K of a JK FF 15'. Then the OR circuit 14' inserts a reset pulse (* mark in waveform 8) to a position of a bit M just before the start of parity count in the data part and gives the result to a terminal J, then a level 1 is fed respectively to the terminals J, K in case of the dotted lines (a). An inverter output 1 at the rising of the next clock is outputted as an odd number parity 9 and an even number parity 10 from a terminal Q, the output 0 inverted further in case of the dotted lines (b), the output 1 in case of the dotted lines (c) because of 1, 0 of reset levels, and the output 0 inverted further in case of the dotted lines (d) are outputted from the terminal Q in the respective cases as the odd and even number parities, thereby making the data holding time longer as from the leading of the clock to the rising of the next clock.

Description

【発明の詳細な説明】 〔概要〕 パリティカウンタにおいて、JK−フリップフロップを
クリアしない同期式で動作をさせることにより、■マル
チフレーム分の1のデータをカウントしたカウント値の
保持時間を長くして高速動作の可能性を改善したもので
ある。
[Detailed Description of the Invention] [Summary] By operating the parity counter in a synchronous manner without clearing the JK-flip-flop, ■ the holding time of the count value obtained by counting one multi-frame data can be extended. This improves the possibility of high-speed operation.

〔産業上の利用分野〕[Industrial application field]

本発明はパリティカウンタの改良に関するものである。 The present invention relates to improvements in parity counters.

パリティカウンタはディジタル信号を伝送する際に伝送
された信号に誤りが生じたか否かを検出する為に広く使
用されているが、多重・分離変換装置に使用した場合に
ついて以下に説明する。
Parity counters are widely used to detect whether or not an error has occurred in a signal transmitted when transmitting a digital signal, and the case where it is used in a multiplexing/demultiplexing conversion device will be described below.

第4図は多重・分離変換装置のブロック図例で第4図(
El)は多重変換装置ブロック図例、第4図(b)は3
次群信号のフレームフォーマット例、第4図(C1は分
離変換装置ブロック図例を示す。
Figure 4 is an example of a block diagram of a multiplexing/demultiplexing conversion device.
El) is an example of a multiplex conversion device block diagram, and FIG. 4(b) is 3
An example of the frame format of the next group signal, FIG. 4 (C1 shows an example of a block diagram of the separation/conversion device).

第4図(alにおいて、例えば6.312 Mb/sの
2次群信号7CHが多重化装置1で多重化され、マルチ
フレーム先頭ビットパリティビット等の付加ビットが挿
入されて44.736 Mbへの3次群信号に変換され
るが、この一部はパリティカウンタ3に加えられる。こ
こでは、3次群信号中のデータ部分の1の数を1マルチ
フレームずつカウントし、その結果を2次群信号中の所
定の位置に挿入する。尚、パルス発生装置2は必要なタ
イミング信号をパリティカウンタ供給する部分である。
In FIG. 4 (al), for example, 7 CH of secondary group signals of 6.312 Mb/s are multiplexed by the multiplexer 1, and additional bits such as the multi-frame first bit parity bit are inserted, and the signal is converted into 44.736 Mb. It is converted into a cubic group signal, and a part of it is added to the parity counter 3. Here, the number of 1's in the data part in the cubic group signal is counted for each multiframe, and the result is converted into a secondary group signal. The pulse generator 2 is inserted at a predetermined position in the signal.The pulse generator 2 is a part that supplies a necessary timing signal to the parity counter.

又、第4図(b)に示す様に1マルチフレームは例えば
7フレームで、lフレームは8ブロツク、1ブロツクは
付加ピッl−(M、 G)から次の付加ビットの1ビツ
ト前までの85ビツトでそれぞれ構成され、1マルチフ
レームの先頭にマルチフレーム先頭ビットMが挿入され
る。
Also, as shown in Fig. 4(b), one multiframe is made up of, for example, seven frames, one frame is eight blocks, and one block is the data from the additional bits l-(M, G) to one bit before the next additional bit. Each frame is composed of 85 bits, and a multiframe head bit M is inserted at the head of one multiframe.

次に、第4図(C1は分離装置4で3次群信号を2次群
信号に戻しているが、一部の3次群信号中のデータの1
を1マルチフレー1、ずつパリティカウンタ7でカウン
トしたカウント値と、この信号中に挿入されたパリティ
ビットをパリティビット検出装置5で検出してパリティ
エラー検出装置6で前記のカウント値と比較して伝送路
で誤りが発生したか否かを監視しているが、パリティカ
ウンタとしてはできるだけ高速まで正常に動作すること
が必要である。
Next, as shown in FIG.
The count value counted by the parity counter 7 in increments of 1 multiframe 1 and the parity bit inserted into this signal are detected by the parity bit detection device 5, and the parity error detection device 6 compares the count value with the above count value. Although it monitors whether an error has occurred in the transmission path, the parity counter needs to operate normally at the highest possible speed.

〔従来の技術〕[Conventional technology]

第5図は従来例の回路図、第6図は第5図のタイムチャ
ートで、第6図中の左側の数字は第5図中の同じ数字の
部分の波形を示す。以下、第6図を参照しながら第5図
の動作を説明する。
FIG. 5 is a circuit diagram of a conventional example, and FIG. 6 is a time chart of FIG. 5. The numbers on the left side of FIG. 6 indicate the waveforms of the portions with the same numbers in FIG. The operation shown in FIG. 5 will be explained below with reference to FIG.

先ず、第5図のパリティカウンタ10はDタイプフリッ
プフロップ(以下、 D−FFと省略する)で構成され
ているが、第6図−■に示す様な入力信号中のマルチフ
レーム先頭ビット門が入力した時にタイミング信号P−
1,P−2,P−3が全て1となる様になっているので
、この時にパリティカウンタ10はナンド回路9からの
出力でクリアされる(第6図−■〜■参照)。
First, the parity counter 10 shown in FIG. 5 is composed of a D-type flip-flop (hereinafter abbreviated as D-FF), and the parity counter 10 shown in FIG. Timing signal P- when input
Since 1, P-2, and P-3 are all set to 1, the parity counter 10 is cleared at this time by the output from the NAND circuit 9 (see FIG. 6--).

又、タイミング信号P−3は第6図−■に示す様に付加
ビットM、Gの位置では1に、他の位置では0になるの
で、一部反転入力付きナンド回路8の出力はP−3が1
.又は入力信号中のデータがOの時は1が、データが1
の時は反転したクロックが出力される(第6図−■参照
)。
Furthermore, as shown in FIG. 6-■, the timing signal P-3 becomes 1 at the positions of the additional bits M and G, and becomes 0 at other positions, so the output of the NAND circuit 8 with a partial inversion input becomes P-. 3 is 1
.. Or, when the data in the input signal is O, it is 1, and the data is 1.
When , an inverted clock is output (see Figure 6-■).

そこで、2分周回路を形成しているパリティカウンタ1
0は、第6図−■に示す様に入力するクロックの立上り
、即ち1の数に対応して状態が変化した出力を例えば端
子Qより送出するが、上記の様にマルチフレーム先頭ビ
ットhでパリティカウンタ6はクリアされてOになるの
で、その前のビット(第6図−■の率印の部分)の状態
が1マルチフレーム中のパリティカウント値となる。
Therefore, the parity counter 1 forming the divide-by-2 circuit
0, as shown in Figure 6-■, sends out an output whose state changes according to the rising edge of the input clock, that is, the number of 1s, from the terminal Q, for example, but as shown above, at the first bit h of the multiframe. Since the parity counter 6 is cleared and becomes O, the state of the previous bit (the part marked with a mark in Figure 6--) becomes the parity count value in one multiframe.

しかし、この値は上記の様にデータ中に挿入したり、又
は抽出したパリティと比較しなければならないのでラッ
チ回路11でラッチしなければならない。
However, since this value must be inserted into the data or compared with extracted parity as described above, it must be latched by the latch circuit 11.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

ここで、パリティカウンタ10が1マルチフレームの最
後の1を数えたカウント値は、上記の様にこのカウンタ
がクリアされる前にラッチタイマの立上りでラッチさせ
なければならないが、このカウント値の保持時間が第6
図−■に示す様なりロックの立下りから次のクロックの
立上りまでと短いので、高速動作の際にはラッチできな
い可能性が高くなり、高速まで正常に動作する可能性が
低くなる。
Here, the count value that the parity counter 10 counts the last 1 of one multiframe must be latched at the rising edge of the latch timer before this counter is cleared as described above, but the holding time of this count value is is the 6th
As shown in Figure 2, since the period from the falling edge of the lock to the rising edge of the next clock is short, there is a high possibility that latching will not be possible during high-speed operation, and there is a low possibility that normal operation will occur up to high speed.

〔問題点を解決する為の手段〕[Means for solving problems]

上記の問題点は第1図に示す様に、タイミング信号を用
いて入力信号中のパリティカウント開始直前のビットに
一致したリセットパルスを発生するリセットパルス発生
手段12と、該タイミング信号を用いて入力信号中に含
まれるデータ部分を抽出するデータ抽出手段13と、該
リセットパルス発生手段の出力を該データ抽出手段の出
力に挿入するリセットパルス挿入手段I4と、該リセッ
トパルス挿入手段と該データ抽出手段の出力を用いて該
パリティカウント開始直前のビットの位置で初期 ゛化
されると共に、該入力信号中の1のデータのみをカウン
トするパリティカウント手段15とから構成された本発
明のパリティカウンタにより解決される。
As shown in FIG. 1, the above problem is solved by a reset pulse generating means 12 that uses a timing signal to generate a reset pulse that matches the bit immediately before the start of parity count in the input signal, and data extraction means 13 for extracting a data portion included in a signal; reset pulse insertion means I4 for inserting the output of the reset pulse generation means into the output of the data extraction means; the reset pulse insertion means and the data extraction means. This problem is solved by the parity counter of the present invention, which is initialized at the bit position immediately before the start of parity counting using the output of be done.

〔作用〕[Effect]

本発明は入力するタイミング信号を用いてリセットパル
ス発生手段12で発生したリセットパルスを、データ抽
出手段13で入力信号から抽出したデータ部分にリセッ
トパルス挿入手段14で挿入した後、リセットパルスが
挿入されたデータ部分と挿入されないデータ部分とをパ
リティカウント手段15に加えてデータ部分が1になる
度に次のクロックでカウントアツプさせ、リセットパル
スが入力した時には次のクロックで初期値がセットされ
る様にすることにより、リセットパルスをデータとして
扱い、且つクリアを使用しないのでパリティカウントし
たカウント値の保持時間がクロックの立上り間隔と長く
なり、高速まで正常に動作する可能性が高くなる。
The present invention uses an input timing signal to insert a reset pulse generated by a reset pulse generating means 12 into a data portion extracted from an input signal by a data extracting means 13 using a reset pulse inserting means 14, and then the reset pulse is inserted. The data portion that has been inserted and the data portion that will not be inserted are added to the parity counting means 15, and each time the data portion becomes 1, it is counted up at the next clock, so that when a reset pulse is input, the initial value is set at the next clock. By doing so, the reset pulse is handled as data and clearing is not used, so the holding time of the parity count value is longer than the rising interval of the clock, increasing the possibility of normal operation up to high speeds.

〔実施例〕〔Example〕

第2図は本発明の実施例の回路図、第3図は第2図のタ
イムチャートで、第3図中の左側の数字は第2図中の同
じ数字の部分の波形を示す。尚、企図を通じて同一符号
は同一対象物で、アンド回路12°、一部反転入力付き
アンド回路13′、オア回路14 ’ 、JK−フリッ
プフロップ(以下、JK−FFと省略する)159はそ
れぞれリセットパルス発生手段12、データ抽出手段1
3.リセットパルス挿入手段14、パリティカウント手
段15の構成部分を示す。
FIG. 2 is a circuit diagram of an embodiment of the present invention, and FIG. 3 is a time chart of FIG. 2. The numbers on the left side of FIG. 3 indicate the waveforms of the portions with the same numbers in FIG. Throughout the plan, the same symbols refer to the same objects, and the AND circuit 12°, the AND circuit 13' with a partially inverted input, the OR circuit 14', and the JK-flip-flop (hereinafter abbreviated as JK-FF) 159 are each reset. Pulse generation means 12, data extraction means 1
3. Components of reset pulse insertion means 14 and parity counting means 15 are shown.

以下、第3図を参照して第2図の動作を説明する。The operation shown in FIG. 2 will be explained below with reference to FIG.

先ず、アンド回路12°で入力するタイミング(ε号P
−1,P−2,P−3からリセットパルスを取出してオ
ア回路14゛に加える(第3図−〇〜■参照)。
First, the input timing at AND circuit 12° (ε No. P
Reset pulses are taken out from -1, P-2, and P-3 and applied to the OR circuit 14' (see Figure 3-0 to 3).

又、一部反転入力付きアンド回路13’でタイミング信
号P−3を用いて第3図−■に示す様な入力信号からデ
ータ部分のみを抽出し、オア回路14“とJK−FF 
15 ”の端子Kに加える(第3図−■参照)、そこで
、オア回路14°でデータ部分中のパリティカウント開
始直前のビットHの位置にリセットパルス(第3図−■
中の*印の部分)を挿入してJK−FF 15 ’の端
子Jに加えるので、端子Qから第3図−■に示す様な出
力が得られる(第3図−■参照)。即ち、点線aの時は
J端子、に端子に1.1が加えられるが9次のクロック
の立上りで前の状態の反転した出力lが、点線すの時は
更に反転してOが、点線Cの時(リセット)は1゜0だ
から1が、点線dの時は反転してOが・・・端子Qから
出力される(第3図−■、■参照)。
Also, an AND circuit 13' with a partial inversion input extracts only the data part from the input signal as shown in Figure 3-■ using the timing signal P-3, and connects it to the OR circuit 14'' and the JK-FF.
15'' (see Figure 3-■), and then the OR circuit 14° applies a reset pulse (Figure 3-■) to the bit H position immediately before the start of parity counting in the data portion.
Since the part marked * in the middle is inserted and applied to the terminal J of the JK-FF 15', an output as shown in Figure 3-■ can be obtained from the terminal Q (see Figure 3-■). That is, when dotted line a, 1.1 is added to the J terminal, but at the rise of the 9th clock, the output l which is inverted from the previous state, and when dotted line A, the output l is further inverted and O is added to the dotted line. At C (reset), it is 1°0, so 1 is output, and at dotted line d, it is inverted and O is output from terminal Q (see Figure 3--■, ■).

ここで、点線Cは1マルチフレームの先頭だから3点線
すの部分が前のマルチフレームのパリティカウント値と
なり、これを従来例と同じくラッチ回路(図示せず)で
ラッチればよいが、データ保持時間としてクロックの立
上りから次のクロックの立−ヒリまでとなり従来よりも
長くなるので、高速まで正常に動作する可能性が高くな
る。
Here, since the dotted line C is the beginning of one multiframe, the part marked by the three dotted lines becomes the parity count value of the previous multiframe, and this can be latched by a latch circuit (not shown) as in the conventional example, but data retention Since the time from the rising edge of the clock to the rising edge of the next clock is longer than in the conventional case, the possibility of normal operation up to high speed increases.

〔発明の効果〕〔Effect of the invention〕

以上詳細に説明した様に本発明によれば高速まで正常に
動作する可能性が高(なると云う効果がある。
As described above in detail, the present invention has the effect of increasing the possibility of normal operation up to high speeds.

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

第1図は本発明の原理ブロッダ図、 第2図は本発明の実施例の回路図、 第5図は従来例の回路図、 第6図は第5歯のタイムチャートを示す。 図において、 12はリセットパルス発生手段、 13はデータ抽出手段、 14はリセットパルス挿入手段、 15はパリティカウント手段を示す。 小ぐち朗の原理フ゛ロツ2区 茅 1 図 小発明の実濾4り°Jの目yを口 手 2 閃 汐↑・4縛11友中柊牧lのプロ77ばト町茅 4 区 Figure 1 is a Brodder diagram of the principle of the present invention. FIG. 2 is a circuit diagram of an embodiment of the present invention, Figure 5 is a circuit diagram of a conventional example. FIG. 6 shows a time chart for the fifth tooth. In the figure, 12 is a reset pulse generating means; 13 is a data extraction means; 14 is a reset pulse insertion means; 15 indicates parity counting means. Koguchiro's Principles 2nd Ward Kaya 1 diagram A small invention of real filter 4 ° J eyes y mouth Hand 2 flash Ushio ↑ 4 bound 11 Tomo Naka Hiragimaki l professional 77 Batomachi Kaya 4 ward

Claims (1)

【特許請求の範囲】 タイミング信号を用いて入力信号中のパリテイカウント
開始直前のビットに一致したリセットパルスを発生する
リセットパルス発生手段(12)と、該タイミング信号
を用いて入力信号中に含まれるデータ部分を抽出するデ
ータ抽出手段(13)と、該リセットパルス発生手段の
出力を該データ抽出手段の出力に挿入するリセットパル
ス挿入手段(14)と、 該リセットパルス挿入手段と該データ抽出手段の出力を
用いて該パリテイカウント開始直前のビットの位置で初
期化されると共に、該入力信号中の1のデータのみをカ
ウントするパリテイカウント手段(15)とから構成さ
れたことを特徴とするパリテイカウンタ。
[Scope of Claims] Reset pulse generating means (12) that uses a timing signal to generate a reset pulse that matches a bit immediately before the start of parity counting in an input signal; a data extracting means (13) for extracting a data portion that is generated; a reset pulse inserting means (14) for inserting the output of the reset pulse generating means into the output of the data extracting means; the reset pulse inserting means and the data extracting means parity counting means (15) that is initialized at the bit position immediately before the parity counting starts using the output of the input signal, and that counts only 1 data in the input signal. parity counter.
JP61165722A 1986-07-15 1986-07-15 Parity counter Pending JPS6320932A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61165722A JPS6320932A (en) 1986-07-15 1986-07-15 Parity counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61165722A JPS6320932A (en) 1986-07-15 1986-07-15 Parity counter

Publications (1)

Publication Number Publication Date
JPS6320932A true JPS6320932A (en) 1988-01-28

Family

ID=15817826

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61165722A Pending JPS6320932A (en) 1986-07-15 1986-07-15 Parity counter

Country Status (1)

Country Link
JP (1) JPS6320932A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02188834A (en) * 1989-01-18 1990-07-24 Fujitsu Ltd Parity counting circuit
JPH0392016A (en) * 1989-09-05 1991-04-17 Nec Corp Parity circuit
JPH06229948A (en) * 1991-08-09 1994-08-19 Chugoku Boshoku Kogyo Kenkyu Chushin Identification of characteristic of floating warp and weft of fabric by digital imaging

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02188834A (en) * 1989-01-18 1990-07-24 Fujitsu Ltd Parity counting circuit
JPH0392016A (en) * 1989-09-05 1991-04-17 Nec Corp Parity circuit
JPH06229948A (en) * 1991-08-09 1994-08-19 Chugoku Boshoku Kogyo Kenkyu Chushin Identification of characteristic of floating warp and weft of fabric by digital imaging

Similar Documents

Publication Publication Date Title
US5163092A (en) Parallel scrambler used in sonet data transmission
US5202904A (en) Pulse stuffing apparatus and method
US5185799A (en) Parallel scrambler used in SONET data transmission
JPS5813056B2 (en) How to maintain accurate framing in multiplexed pulse transmission systems
US4538286A (en) Data rate conversion and supervisory bit insertion in a data system
EP0372458A2 (en) Synchronous multiplex transmission apparatus
JPS59135946A (en) Multiplex converting system in digital synchronism
JPS6320932A (en) Parity counter
US4010325A (en) Framing circuit for digital signals using evenly spaced alternating framing bits
JPS5917571B2 (en) Pulse detection circuit
JPS6310833A (en) Time division multiplexing separation device
JPH02260734A (en) Serial data transmission system
JPS6224736A (en) Stuff synchronizing circuit
JPH0450777B2 (en)
SU1411759A1 (en) User interface
KR100216518B1 (en) Synchronization device for transmitting stm-1
JPH0427228A (en) Separating circuit
JPH0720087B2 (en) Frame synchronization circuit
JPH02222235A (en) Monitor for stuff multiplex converter
JPH03145834A (en) Timing extraction circuit
JPH0736547B2 (en) Word interleaved multiplex signal separation device
JPH04304726A (en) Multiplexer/demultiplexer
JPH0117621B2 (en)
JPS6198034A (en) Detection system for stuff specifying pulse
JPH06177870A (en) Synchronization protecting device