JPS63142744A - Cmi encoding circuit - Google Patents

Cmi encoding circuit

Info

Publication number
JPS63142744A
JPS63142744A JP61289469A JP28946986A JPS63142744A JP S63142744 A JPS63142744 A JP S63142744A JP 61289469 A JP61289469 A JP 61289469A JP 28946986 A JP28946986 A JP 28946986A JP S63142744 A JPS63142744 A JP S63142744A
Authority
JP
Japan
Prior art keywords
signal
level
circuit
output
bit
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
JP61289469A
Other languages
Japanese (ja)
Other versions
JPH0462625B2 (en
Inventor
Toshihiro Uota
利浩 魚田
Harushige Ochi
大地 治重
Satoyuki Sasaki
里幸 佐々木
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP61289469A priority Critical patent/JPS63142744A/en
Publication of JPS63142744A publication Critical patent/JPS63142744A/en
Publication of JPH0462625B2 publication Critical patent/JPH0462625B2/ja
Granted legal-status Critical Current

Links

Abstract

PURPOSE:To securely prevent the occurrence of glitch out of relation to the gate delay of respective signals in a circuit by inverting or non-inverting the level of signal which is previously held and outputted just before in an output inversion circuit according to decided result so as to output it. CONSTITUTION:A comparison circuit 14 compares a decision level inputted from a latter bit level decision circuit 9 with the level of the latter bit of two bits of block obtained by CMI encoding the internal level output of an output inversion circuit 13 inputted from the output inversion circuit 13 and outputs a signal expressing that both levels are different, if the decision level and the level of the latter. bit are different, to a phase control circuit 15. And the phase control circuit 15 inverts the phase of the internal level output of the output inversion circuit 13 inputted from the output inversion circuit 13 and if both levels are equal the circuit 15 outputs as the signal of the CMI code to an output terminal 17 in the same phase. Thus, erroneous actions can be prevented.

Description

【発明の詳細な説明】 〈産業上の利用分野〉 この発明は、通常の2値化された1ビットのNRZ(ノ
ン・リターン・トウ・ゼロ)符号等のデータ信号と上記
データ信号の符号則違反を指示する符号則違反信号とに
基づいて、伝送信号等に用いられる2ビットのブロック
に符号化されたCMI(コーテッド・マーク・インバー
ジョン)符号の信号を作成するのに好適な符号則違反を
有するCM■符号化回路に関する。
[Detailed Description of the Invention] <Industrial Application Field> The present invention relates to a data signal such as a normal binary 1-bit NRZ (non-return-to-zero) code and a code rule for the data signal. A coding rule violation signal that is suitable for creating a CMI (Coated Mark Inversion) code signal encoded into a 2-bit block used for a transmission signal, etc. based on a coding rule violation signal that indicates a violation. The present invention relates to a CM2 encoding circuit having a CM2 encoding circuit.

〈従来の技術〉 CMI符号とは2値化された1ビットのデータ信号を2
ビットのブロックに符号化する1B2B符号の一種であ
り、例えば、データ信号“0”の場合は“0ビの2ビッ
トのブロックに符号化し、データ信号“ピの場合は途中
に発生するデータ信号“0″にかかわりなく直前のデー
タ信号“ビの場合と交互に“00°または“lビのブロ
ックに符号化された符号をいう。また、上記CM!符号
の符号則違反とは、データ信号“0”を“lO“のブロ
ックに符号化し、データ信号“ビを交互ではなく直前に
変換したデータ信号“ビのCMI符号に連続した“00
”または“lビのブロックに符号化されることをいう。
<Prior art> A CMI code is a system that converts a binary 1-bit data signal into 2 bits.
It is a type of 1B2B code that is encoded into a block of bits. For example, in the case of a data signal "0", it is encoded into a 2-bit block of "0 bits", and in the case of a data signal "pi", it is encoded as a data signal generated in the middle. 0'' refers to a code that is encoded in blocks of ``00° or ``l Bi'' alternately with the previous data signal ``Bi''.Also, violation of the code rule for the above CM! 0'' into a block of ``lO'', and the data signal ``bi'' is not alternately converted, but the data signal ``bi'' is encoded immediately after the CMI code of the converted data signal ``bi''.
” or “encoded into l bi blocks.

従来、CM!符号化回路としては、第7図に示すような
ものがある。第7図において、101゜102.103
は夫々入力端子であり、上記入力端子101は上記NR
Z符号のデータ信号の入力端子である。入力端子102
はNRZ符号の符号則違反の出力を指示する符号則違反
信号(以下、CRV信号とする)の入力端子であり、入
力端子103は上記2種の信号と同期したクロック信号
の入力端子である。ここで、上記CRV信号が“ビのと
き符号則違反をおこし、“0”のとき符号則違反をおこ
さないものとする。ラッチ・遅延回路104は入力され
た上記データ信号をラッチしてデータ信号が“ビのとき
出力する信号S−tと、半クロツク分遅延してデータ信
号が“0“のとき出力する信号S−2と、同様に半クロ
ツク分遅延してデータ信号が“ビのとき出力する信号S
−3とに分離する。またラッチ回路105は入力された
上記CR■信号をラッチし、符号則違反をおこすときに
信号S−4を出力する。
Traditionally, CM! As an encoding circuit, there is one shown in FIG. In Figure 7, 101°102.103
are input terminals, and the input terminal 101 is the input terminal NR.
This is an input terminal for a Z code data signal. Input terminal 102
is an input terminal for a code rule violation signal (hereinafter referred to as a CRV signal) that instructs the output of a code rule violation of the NRZ code, and input terminal 103 is an input terminal for a clock signal synchronized with the above two types of signals. Here, it is assumed that a violation of the coding rule occurs when the CRV signal is “B” and a violation of the coding rule does not occur when it is “0”.The latch/delay circuit 104 latches the inputted data signal and outputs the data signal A signal S-t is output when the data signal is "0" after being delayed by half a clock, and a signal S-2 is output when the data signal is "0" after being delayed by half a clock. Output signal S
Separate into -3 and 3. Further, the latch circuit 105 latches the inputted CR■ signal and outputs a signal S-4 when a violation of the sign rule occurs.

データ信号“0”用CMI符号化回路106は上記ラッ
チ回路105の出力信号S−4とクロック信号とから、
符号則違反をおこさない場合は“0ビのブロックの信号
S−5を出力し、符号則違反をおこす場合は“lO”の
ブロックの信号S−5を出力する。この信号はデータ信
号のいかんにかかわらず上記ラッチ105からの信号S
−4とクロック信号との関係において出力されるので、
データ信号が“ビのときも出力される。、データ信号“
ビ用CMI符号化回路107は、上記ラッチ・遅延回路
104の出力信号S−1とラッチ回路105の出力信号
S−4とクロック信号とから、符号則違反をおこさない
データ信号“ビの場合は出力レベルを反転する信号S−
6を出力する。この場合も同様に上記信号はデータ信号
が“0”のときも出力される。
The data signal "0" CMI encoding circuit 106 uses the output signal S-4 of the latch circuit 105 and the clock signal to
If the coding rule is not violated, the signal S-5 of the "0 bit" block is output, and if the coding rule is violated, the signal S-5 of the "lO" block is output. Regardless of whether the signal S from the latch 105
Since it is output in the relationship between -4 and the clock signal,
It is also output when the data signal is “B”.
The CMI encoding circuit 107 for Bi uses the output signal S-1 of the latch/delay circuit 104, the output signal S-4 of the latch circuit 105, and the clock signal to generate a data signal that does not violate the coding rule. Signal S- to invert the output level
Outputs 6. In this case as well, the above signal is output even when the data signal is "0".

上記データ信号“0”用CMI符号化回路106の出力
信号S−5をデータ信号“0”のゲート回路108に入
力し、上記う4チ・遅延回路105が出力する上記半ク
ロツク分遅延した信号S−2によりゲートを開くことに
より、データ信号が“0”のときだけ信号S−7を出力
する。また、上記データ信号“ビ用CMI符号化回路1
07の出力信号S−6をデータ信号“ビのゲート回路1
09に入力し、上記ラッチ・遅延回路104が出力する
上記半クロツク分遅延した信号S−3によりゲートを開
くことにより、データ信号が“ビのときだけ信号S−8
を出力する。そして合成回路llOにより上記データ信
号“0″のゲート回路108の出力信号S−7と、上記
データ信号“ビのゲート回路109の出力信号S−8と
を合成してCMI符号信号S−9を生成し、出力端子I
11に出力する。
The output signal S-5 of the CMI encoding circuit 106 for the data signal "0" is inputted to the gate circuit 108 for the data signal "0", and the signal delayed by the half clock is outputted by the fourth delay circuit 105. By opening the gate with S-2, the signal S-7 is output only when the data signal is "0". In addition, the CMI encoding circuit 1 for the data signal “BI”
The output signal S-6 of 07 is converted into the data signal
By opening the gate with the signal S-3 delayed by the half clock and output from the latch/delay circuit 104, the signal S-8 is input to
Output. Then, the synthesis circuit 110 synthesizes the output signal S-7 of the gate circuit 108 for the data signal "0" and the output signal S-8 of the gate circuit 109 for the data signal "B" to generate the CMI code signal S-9. generate and output terminal I
Output to 11.

第8図は第7図のCMI符号化回路である回路図であり
、また、第9図は第8図における各出力信号のタイミン
グチャートである。第8図において、入力端子121は
上記NRZ符号のデータ信号の入力端子であり、入力端
子122はNRZ符号のCRV信号の入力端子であり、
入力端子123は上記2種の信号と同期したクロック信
号の入力端子である。フリップフロップ124,125
で上記データ信号のラッチ・遅延回路104を形成し、
フリップフロップ126で上記CRV信号のラッチ回路
105を形成する。また、フリップフロップ127とE
X−ORゲート128とでデータ信号“0”用CMI符
号化回路106を形成し、NORゲート129とフリッ
プフロップ130とでデータ信号“ビ用CMI符号化回
路107を形成する。さらにN ORゲート131でデ
ータ信号“0”のゲート回路108を、N ORゲート
132でデータ信号“ビのゲート回路109を、ORゲ
−)133で合成回路110を夫々形成する。134は
CMI符号の出力端子である。
8 is a circuit diagram of the CMI encoding circuit of FIG. 7, and FIG. 9 is a timing chart of each output signal in FIG. 8. In FIG. 8, an input terminal 121 is an input terminal for the data signal of the NRZ code, an input terminal 122 is an input terminal for the CRV signal of the NRZ code,
The input terminal 123 is an input terminal for a clock signal synchronized with the above two types of signals. Flip-flop 124, 125
forming the latch/delay circuit 104 for the data signal,
The flip-flop 126 forms the latch circuit 105 for the CRV signal. Also, flip-flop 127 and E
The X-OR gate 128 forms the CMI encoding circuit 106 for the data signal "0", and the NOR gate 129 and the flip-flop 130 form the CMI encoding circuit 107 for the data signal "BI". The gate circuit 108 for the data signal "0" is formed by the NOR gate 132, the gate circuit 109 for the data signal "B" is formed by the NOR gate 132, and the synthesis circuit 110 is formed by the OR gate 133. 134 is a CMI code output terminal.

第9図は上記第8図における各部の出力信号を示してい
る。図中信号a+bはデータ信号aとCRV信号すとの
論理和であり、この信号a+bをCMI符号化した信号
kが求める出力信号である。
FIG. 9 shows the output signals of each section in FIG. 8 above. Signal a+b in the figure is the logical sum of data signal a and CRV signal S, and signal k obtained by CMI encoding this signal a+b is the desired output signal.

〈発明が解決しようとする問題点〉 しかしながら、上記従来のCMI符号化回路においては
、上記データ信号“0”用CMI符号化回路106とデ
ータ信号“ビ用CMI符号化回路107によりデータ信
号が“0”のときと“どのときと別々にCMI符号化を
行い、最終段階でORゲート133からなる合成回路1
10で、データ信号“0”をCMI符号化した信号とデ
ータ信号“ビをCMI符号化した信号とを合成し、CM
I符号化された信号kを出力しているので、上記信号i
と信号jとの上記合成回路llOに人力されるまで通過
してくるゲート数がそれぞれ異なり、両信号i、j間に
ゲート遅延の差が生じて、第9図における信号にの矢印
Zで示す位置にグリッチが発生するという問題がある。
<Problems to be Solved by the Invention> However, in the conventional CMI encoding circuit, the CMI encoding circuit 106 for the data signal "0" and the CMI encoding circuit 107 for the data signal "BI" convert the data signal to " CMI encoding is performed separately for "0" and "any time," and in the final stage, a synthesis circuit 1 consisting of an OR gate 133 is applied.
At step 10, a signal obtained by CMI encoding the data signal "0" and a signal obtained by CMI encoding the data signal "B" are combined,
Since the I-encoded signal k is output, the above signal i
The number of gates through which the signals i and j pass through until they are manually input to the synthesis circuit llO is different, and a difference in gate delay occurs between the two signals i and j, as shown by the arrow Z in the signal in FIG. There is a problem with position glitches.

また、データ信号“0”をCMI符号化する場合、上記
EX−ORゲート128により、符号則違反をおこす場
合にクロック信号の一部を反転させてCMI符号化して
いるので、クロック信号CとCRV信号すの遅延差によ
って第9図における信号fの矢印Yで示す位置にグリッ
チが発生し、それがそのまま信号にの矢印Yで示す位置
に現れろという問題がある。
Furthermore, when data signal "0" is CMI-encoded, the EX-OR gate 128 inverts a part of the clock signal and CMI-encodes it when a coding rule violation occurs. There is a problem in that a glitch occurs at the position shown by arrow Y in the signal f in FIG. 9 due to the delay difference between the signals, and this glitch appears as it is at the position shown by arrow Y in the signal.

そこで、信号iと信号jとが通過してくるゲート数を等
しくしてゲート数による各信号の遅延差を無(すことが
考えられるが、各ゲートの温度特性の違いや、高速化に
よる波形のひずみによりやはりグリッチが発生する。そ
こで、このようなグリッチを取り除くために2逓倍した
クロックで波形整形していたが、高速化すると上記波形
がひずみグリッチ幅か拡がってしまうので、拡がったグ
リッチ幅のグリッチが入っているCMI符号のグリッチ
と2逓倍クロヅクとのタイミングが合った場合にビット
誤りが生じるという欠点がある。
Therefore, it is conceivable to equalize the number of gates through which signal i and signal j pass to eliminate the difference in delay between each signal due to the number of gates. Glitches still occur due to distortion. Therefore, in order to remove such glitches, the waveform was shaped using a clock that was doubled, but as the speed was increased, the above waveform became wider than the distortion glitch width, so the widened glitch width There is a drawback that a bit error occurs when the glitch of the CMI code containing the glitch matches the timing of the double clock.

そこで、この発明の目的は、CRV信号に基づいてNR
Z符号のデータ信号を符号則違反を有するCMI符号に
符号化する場合、回路内における各信号のゲート遅延に
影響されることかなく、CMl符号の出力信号にグリッ
チが発生しない、高速のデータに対しても安定してCM
I符号化することのできるCMI符号化回路を提供する
ことにある。
Therefore, an object of the present invention is to
When encoding a Z code data signal into a CMI code that violates the coding rules, it is possible to encode high-speed data without being affected by the gate delay of each signal in the circuit and without causing glitches in the output signal of the CMI code. CM is stable even against
The object of the present invention is to provide a CMI encoding circuit capable of I encoding.

く問題点を解決するための手段〉 上記目的を達成するため、この発明のCMI符号化回路
は、2値化された1ビットのデータ信号を、符号則違反
を指示する符号則違反信号に基づいて、符号則違反を有
する2ビットのブロックに符号化するCMI符号化回路
において、上記データ信号と上記符号則違反信号とに基
づいて、上記データ信号“ビを上記2ビットのブロック
に符号化したときのレベルを保持するデータ“ビ時のレ
ベル記憶回路と、上記データ“ビ時のレベル記憶回路で
保持している直前のデータ信号“ビのときのレベルと、
上記データ信号と、上記符号則違反信号とに基づいて、
上記1ビットのデータ信号を上記2ビットのブロックに
符号化するときの各ブロックの後半ビットのレベルを判
定して保持する後半ビットレベル判定回路と、上記デー
タ“ビ時のレベル記憶回路で保持している上記直前のデ
ータ信号“ビのときのレベル信号と、上記後半ビットレ
ベル判定回路で判定して保持している1ビット前のデー
タ信号に対する2ビットのうちの後半ビットのレベル信
号と、上記データ信号と、上記符号則違反信号とに基づ
いて、出力レベルを反転するか否かを判定して、反転す
る必要がある場合に反転信号を出力する判定回路と、上
記判定回路からの反転信号に基づいて、上記出力レベル
を反転させるクロック信号を制御するゲート回路と、上
記ゲート回路から出力される上記クロック信号に基づい
て、予め保持している直前に出力した信号のレベルを反
転して出力する出力反転回路と、上記後半ビットレベル
判定回路から出力される上記2ビットのブロックに符号
化するときの後半ビットの判定レベルと、上記出力反転
回路から出力される2ビットのうちの後半ビットのレベ
ルとを比較して、上記判定レベルと後半ビットのレベル
とが異なる場合に信号を出力する比較回路と、上記比較
回路から上記判定レベルと後半ビットのレベルとが異な
ることを表わす信号が出力されたとき、上記出力反転回
路から出力される信号の位相を逆転させる位相制御回路
とを備えたことを特徴としている。
Means for Solving the Problems In order to achieve the above object, the CMI encoding circuit of the present invention converts a binarized 1-bit data signal based on a coding rule violation signal that indicates a coding rule violation. The CMI encoding circuit encodes the data signal "Bi" into the 2-bit block based on the data signal and the coding rule violation signal. a level storage circuit for data "B" that holds the level at "B", and a level for the immediately preceding data signal "B" held by the level storage circuit for the data "B";
Based on the data signal and the code rule violation signal,
The second half bit level determination circuit determines and holds the level of the second half bit of each block when the 1-bit data signal is encoded into the 2-bit block, and the level storage circuit when the data is stored is used. The level signal of the immediately preceding data signal "B", the level signal of the second half bit of the two bits for the previous data signal determined and held by the second half bit level judgment circuit, and the above a determination circuit that determines whether or not to invert the output level based on the data signal and the sign rule violation signal, and outputs an inverted signal if inversion is necessary; and an inverted signal from the determination circuit. a gate circuit that controls a clock signal that inverts the output level based on the clock signal; and a gate circuit that inverts and outputs the level of the previously output signal held in advance based on the clock signal output from the gate circuit. the determination level of the second half bits when encoding into the 2-bit block output from the second half bit level determination circuit; and the determination level of the second half bits of the two bits output from the output inversion circuit. a comparison circuit that compares the levels and outputs a signal when the judgment level and the level of the second half bits are different; and a signal that indicates that the judgment level and the level of the second half bits are different from the comparison circuit. The present invention is characterized by comprising a phase control circuit that inverts the phase of the signal output from the output inversion circuit when

〈作用〉 入力端子より2値化された1ビットのデータ信号と符号
all違反信号とが入力されると、上記デー 。
<Operation> When a binarized 1-bit data signal and a code all violation signal are input from the input terminal, the above data.

夕信号と符号則違反信号とに基づいて、上記データ信号
“ビを2ビットのブロック(“00′または“11”)
に符号化したときのレベルがデータ“ビ時のレベル記憶
回路によって保持され、また、上記データ“1時のレベ
ル記憶回路で保持されている直前のデータ信号“ビのと
きのレベルと、上記データ信号と、上記符号則違反信号
とに基づいて、上記lビットのデータ信号(0′、“ビ
)を上記2ビットのブロック(“0ビ、”l G”、”
QO”、”1ビ)に符号化するときの各ブロックの後半
ビットのレベル(“0”または“ビ)が、後半ビットレ
ベル判定回路によって判定されてその結果が保持される
Based on the evening signal and the coding rule violation signal, the data signal “B” is converted into a 2-bit block (“00’ or “11”).
The level when the data signal "B" is encoded is held by the level storage circuit when the data "1" is encoded, and the level when the data "1" is encoded is held by the level storage circuit when the data "1" is encoded. signal and the code rule violation signal, the l-bit data signal (0', "Bi) is converted into the 2-bit block ("0 Bi, "l G", "
The level ("0" or "bi") of the second half bit of each block when encoding into QO", "1bi" is determined by a second half bit level determination circuit, and the result is held.

次に、上記データ“1時のレベル記憶回路で保持されて
いる上記直前のデータ信号“ビのときのレベル信号と、
上記後半ビットレベル判定回路で判定されて保持されて
いる1ビット前のデータ信号に対する2ビットのうちの
後半ビットのレベルと、上記データ信号と、上記符号則
違反信号とに基づいて、出力レベルを反転するか否かが
判定回路によって判定されて、反転する必要がある場合
に反転信号が出力される。さらに、上記判定回路から反
転信号が出力されると、ゲート回路によって出力レベル
を反転させるクロック信号のゲートが開けられて上記ク
ロック信号が出力される。
Next, the level signal at the time of the above-mentioned immediately preceding data signal "B" held in the level storage circuit at the time of the above-mentioned data "1",
The output level is determined based on the level of the second half of the two bits for the data signal one bit before, which is determined and held by the second half bit level determination circuit, the data signal, and the code rule violation signal. A determination circuit determines whether or not to invert, and if inversion is necessary, an inversion signal is output. Furthermore, when the inverted signal is output from the determination circuit, the gate circuit opens the gate of the clock signal whose output level is inverted, and the clock signal is output.

上記ゲート回路から上記クロック信号が出力された場合
は、出力反転回路によって予め保持されている信号のレ
ベル(“0”または“ビ)が反転されて出力され、ゲー
ト回路からクロック信号が出力されない場合は、上記出
力反転回路によって予め保持されている信号のレベルが
そのまま出力され上記後半ビットレベル判定回路によっ
て判定された2ビットのブロックに符号化するときの後
半ビットの判定レベルと、上記出力反転回路から出力さ
れる2ビットのうちの後半ビットのレベルとが比較回路
によって比較されて、上記判定レベルと後半ビットレベ
ルとが異なる場合には信号が出力される。そして、上記
比較回路からの判定レベルと後半ビットレベルとが異な
る信号に基づいて、位相制御回路によって上記出力反転
回路から出力される信号の位相が逆転されて出力され、
上記比較回路から上記判定レベルと後半ビットレベルと
が異なる信号が出力されない場合は、上記出力反転回路
から出力される信号はそのまま出力される。
When the clock signal is output from the gate circuit, the signal level (“0” or “bi”) held in advance by the output inversion circuit is inverted and output, and when the clock signal is not output from the gate circuit is the determination level of the second half bit when the level of the signal held in advance by the output inversion circuit is output as is and is encoded into a 2-bit block determined by the second half bit level determination circuit, and the determination level of the second half bit of the signal held in advance by the output inversion circuit. The comparison circuit compares the level of the latter half of the two bits output from the comparison circuit, and if the above judgment level and the latter half bit level are different, a signal is output.Then, the judgment level from the comparison circuit The phase control circuit reverses the phase of the signal output from the output inverting circuit based on the signal in which the second half bit level is different from the second half bit level, and outputs the signal after inverting the phase thereof.
If the comparing circuit does not output a signal whose determination level is different from the second half bit level, the signal output from the output inverting circuit is output as is.

このように、直前の出力ビットレベルを反転あるいは非
反転することによってCMr符号化するので、複数の信
号を合成するために同期をとる必要がなく、回路内にお
ける各信号のゲート遅延に全く影響されずにCMI符号
化することができ、出力信号にグリッチが発生すること
がない。
In this way, CMr encoding is performed by inverting or non-inverting the previous output bit level, so there is no need to synchronize to synthesize multiple signals, and there is no effect on the gate delay of each signal in the circuit. CMI encoding can be performed without causing any glitches in the output signal.

〈実施例〉 以下、この発明を図示の実施例により詳細に説明する。<Example> Hereinafter, the present invention will be explained in detail with reference to illustrated embodiments.

第1図はこの発明の構成を示すブロック図であり、1,
2.3は入力端子である。上記入力端子1はNRZ符号
等のデータ信号の入力端子であり、入力端子2はNRZ
符号のCRV信号の入力端子であり、入力端子3は上記
2種の信号と同期したクロック信号の入力端子である。
FIG. 1 is a block diagram showing the configuration of this invention.
2.3 is an input terminal. The input terminal 1 is an input terminal for a data signal such as an NRZ code, and the input terminal 2 is an input terminal for a data signal such as an NRZ code.
The input terminal 3 is an input terminal for a CRV signal of the code, and the input terminal 3 is an input terminal for a clock signal synchronized with the above two types of signals.

ラッチ・遅延回路5は上記入力端子1より入力したデー
タ信号をラッチし、データ信号とその反転信号と夫々の
半クロツク分遅延した信号とを出力する。また、う・ソ
チ回路6は上記入力端子2より入力したCRV信号をラ
ッチする。
The latch/delay circuit 5 latches the data signal input from the input terminal 1, and outputs the data signal, its inverted signal, and a signal delayed by a half clock. Further, the false circuit 6 latches the CRV signal input from the input terminal 2.

データ“1時のレベル記憶回路7は、入力されたデータ
信号とCRV信号とに基づいてデータ信号をCMI符号
化したときのレベルを内部レベルとして保持する乙ので
ある。その動作は、データ信号“ビが入力され、さらに
、CRV信号が“0”の場合すなわち符号則違反をおこ
さない場合は、保持している内部レベル(“0”または
“ビ)を反転し、また、CRV信号が“ビの場合すなわ
ち符号則違反をおこす場合は、上記内部レベルをそのま
ま保持する。ここで、内部レベルとは回路内に保持して
いる信号のレベルのことであり、入力された上記データ
信号“ビをCMI符号化した際に、“00”または“エ
ビのどちらのレベルで符号化したかを示すものである。
The level storage circuit 7 at data "1" stores the level obtained when the data signal is CMI encoded based on the input data signal and CRV signal as an internal level. If the CRV signal is “0”, that is, if no coding rule violation occurs, the internal level held (“0” or “B”) is inverted, and the CRV signal is “B”. In the case of , that is, when a sign rule violation occurs, the above internal level is maintained as is. Here, the internal level is the level of the signal held in the circuit, and when the input data signal "BI" is CMI encoded, it is encoded at the level "00" or "Ebi". This shows whether the results have been changed.

上記内部レベルを参照することにより、次に入力される
データ信号“ビをCMI符号化する際に、“00“また
は“エビのどちらのレベルで符号化すべきかを判定する
ことができる。
By referring to the above-mentioned internal level, it is possible to determine which level should be used to encode the data signal "00" or "Ebi" when CMI-encoding the next input data signal "BI".

後半ビットレベル判定回路9は上記ラッチ・遅延回路5
でラッチした入力データ信号と、上記ラッチ回路6でラ
ッチした人力CRV信号と、上記データ“1時のレベル
記憶回路7で保持している内部レベルすなわち直航のデ
ータ信号“ビをCMI符号化したレベルとに基づいて、
現在入力されたデータ信号をCRV信号に基づいてCM
I符号化するときに、2ビットのブロックの後半ビット
を“0”または“ビのどちらのレベルにするかを判定し
て、そのレベルを保持する。上記後半ビットレベルの判
定は、具体的には第3図の表に従って行イつれる。この
表はデータ信号、CRV信号、上記データ“ビ時のレベ
ル記憶回路7で保持されている直前のデータ信号“ビを
CMI符号化したときのレベル信号と、上記3種の信号
に基づいて判定された後半ビットレベル信号とを同列に
表示し、参考のためにCMI符号のブロックも表示して
いる。
The second half bit level determination circuit 9 is the latch/delay circuit 5 described above.
The input data signal latched by the latch circuit 6, the human-powered CRV signal latched by the latch circuit 6, and the internal level held in the 1 o'clock level storage circuit 7, that is, the direct data signal, were CMI encoded. Based on the level and
CM the currently input data signal based on the CRV signal
When performing I encoding, it is determined whether the second half bit of a 2-bit block should be set to the level "0" or "B", and that level is held.The determination of the second half bit level is specifically is carried out according to the table shown in Fig. 3.This table shows the data signal, CRV signal, and the level when the data signal "B" is CMI encoded. The signal and the second half bit level signal determined based on the above three types of signals are displayed in the same line, and blocks of CMI codes are also displayed for reference.

この表により、例えばデータ信号“0”、CRV信号“
0”の場合は直前のデータ信号“ビのときの保持レベル
とは関係なく、符号則違反をおこさないのでCMI符号
のブロックは“0ビとなり、その後半ヒツトは“ビと判
定される。一方、データ信号“0”、CRV信号“ビの
場合は符号則違反をおこすので、CMI符号のブロック
はlO”となり、その後半ヒツトは“0”と判定される
。同様に、データ信号“ビ、CRV信号“0”の場合、
直前のデータ信号“1”のときの保持レベルが“0“て
あれば1” NA  I  B 会/7’l−f口 −
+  々r寸“11 ”)t; X をへテムめ後半ビ
ットは“ビと判定される。また直前のデータ信号“ビの
ときの保持レベルが“ビであれば、CMI符号のブロッ
クは“00”となり、その後半ビットは“0”と判定さ
れる。以下、データ信号“ビ。
According to this table, for example, data signal "0", CRV signal "
In the case of "0", there is no violation of the coding rule regardless of the holding level when the previous data signal "B" occurs, so the block of the CMI code becomes "0B", and the second half of the hit is determined to be "B". On the other hand, in the case of the data signal "0" and the CRV signal "B", a code rule violation occurs, so the CMI code block is determined to be 10, and the second half hits are determined to be "0". Similarly, in the case of data signal “BI” and CRV signal “0”,
If the holding level when the previous data signal is “1” is “0”, it is “1” NA I B Association/7'l-f Port -
+ r dimension "11") t; 00", and the second half bit is determined to be "0". Hereinafter, the data signal "B".

CRV信号“ビの場合も同様にして判定される。The determination is made in the same manner in the case of the CRV signal "B".

判定回路10は上記ラッチ・遅延回路5から入力される
入力データ信号および遅延データ信号と、上記ラッチ回
路6から人力される入力CRV信号と、上記後半ビット
レベル判定回路9から入力される判定出力と、上記デー
タ“ビ時のレベル記憶回路7から入力される内部レベル
出力とに基づいて、上記入力データ信号を入力CRV信
号に従ってCMI符号化する際に、今出力しようとする
ビットのレベル(出力レベルと言う)を直前のビットの
レベルに対して反転して出力しなければならないか否か
を判定する。そして反転すると判定したときのみゲート
回路11を開き、上記出力レベルを反転させるクロック
パルスを出力反転回路13へ出力する。
The judgment circuit 10 receives an input data signal and a delayed data signal input from the latch/delay circuit 5, an input CRV signal input manually from the latch circuit 6, and a judgment output input from the second half bit level judgment circuit 9. , the level of the bit to be output now (output level ) should be inverted and output with respect to the level of the previous bit. Only when it is determined that it is inverted, the gate circuit 11 is opened and a clock pulse that inverts the output level is output. Output to the inverting circuit 13.

上記出力反転回路13は、上記ゲート回路IIから入力
されるクロックパルスにより保持している内部レベルを
反転する。この出力反転回路13の内部レベルは、初期
リセットされている場合は人力データ信号を人力CRV
信号に基づいて正常にCMI符号化した信号を得ること
ができるが、上記出力反転回路13の内部レベルの初期
値によっては、今出力しようとするビットの出力レベル
が正しいレベルに対して位相が逆になってしまう場合が
ある。このような誤動作を防止するために、比較回路1
4で上記後半ビットレベル判定回路9から入力される判
定レベルと、上記出力反転回路I3から人力される出力
反転回路I3の内部レベル出力のCMI符号化した2ビ
ットのブロックの後半ビットのレベルとを比較し、上記
判定レベルと後半ビットのレベルとが異なる場合は上記
両レベルが異なることを表わす信号を位相制御回路15
に出力する。そして、上記位相制御回路15により、出
力反転回路13から入力される出力反転回路13の内部
レベル出力の位相を逆転させ、また、上記両レベルが等
しい場合はそのままの位相で出力端子17にCMI符号
の信号として出方する。
The output inversion circuit 13 inverts the internal level held by the clock pulse input from the gate circuit II. When the internal level of this output inverting circuit 13 is initially reset, the manual data signal is input to the manual CRV.
Although a normally CMI encoded signal can be obtained based on the signal, depending on the initial value of the internal level of the output inverting circuit 13, the output level of the bit to be output now may be in phase opposite to the correct level. It may become. In order to prevent such malfunction, the comparator circuit 1
In step 4, the determination level inputted from the second half bit level determination circuit 9 and the level of the second half bit of the CMI-encoded 2-bit block of the internal level output of the output inversion circuit I3 manually inputted from the output inversion circuit I3 are determined. When the comparison is made and the determination level is different from the level of the second half bit, the phase control circuit 15 sends a signal indicating that the two levels are different.
Output to. Then, the phase control circuit 15 inverts the phase of the internal level output of the output inversion circuit 13 that is input from the output inversion circuit 13, and if the two levels are equal, the CMI code is sent to the output terminal 17 with the same phase. It appears as a signal.

次に上記判定回路1oの動作について第4.5図を参照
しながら述べる。第4図は1ビット館のデータ信号に対
するCMI符号のブロックの後半ビットのレベルに基づ
いて、今CMI符号化しようとするデータ信号に対する
前半ビットを判定するための表であり、第5図は同様に
後半ビットを判定するための表である。また、この表は
データ信号、CI?V信号、データ“1”時のレベル記
憶回路7で保持されている直前のデータ信号“じをCM
I符号化したときのレベル信号、後半ビットレベル判定
回路9で保持されている1ビット前のデータ信号に対す
る後半ビットのレベル信号と、上記4種の信号に基づい
て判定された上記ゲート回路11の開または閉の判定結
果とを同列に表示している。
Next, the operation of the determination circuit 1o will be described with reference to FIG. 4.5. FIG. 4 is a table for determining the first half bit of a data signal to be CMI encoded based on the level of the second half bit of a CMI code block for a 1-bit data signal, and FIG. This is a table for determining the second half bit. Also, this table shows the data signal, CI? CM V signal, the previous data signal held in the level storage circuit 7 when data is “1”
The level signal of the gate circuit 11 determined based on the level signal when I-encoded, the level signal of the second half bit with respect to the data signal 1 bit earlier held in the second half bit level determination circuit 9, and the four types of signals described above. The open or closed determination results are displayed in the same row.

まず、データ信号が“θ′の場合のCMI符号のブロッ
クの前半ビットのレベル判定手順について述べる。今例
えば第4図1行目に示すようにデータ信号“θ″が入力
され、さらにCRV信号“0”が入力されて符号則違反
をおこさない場合は、このデータ信号“0”をCRV信
号“0”に基づいてCMI符号化すると、“0ビとなる
。このとき後半ビットレベル判定回路9に保持されてい
る内部レベルは、介入力されたデータ信号およびCRV
信号の1ビット前のデータ信号を、CMI符号化したと
きの2ビットのブロックの後半ビットのレベルが保持さ
れており、上記内部レベルが“0”であるとすると、現
在入力されたデータ信号“0”およびCRV信号“O”
に対するCMI符号のブロック“0ラ      ビの
前半ビットは上記Iビット前のデータ信号に対する後半
ビットと同じ“0”であるため、CMr符号の出力信号
を出力するに際し、上記出力反転回路13に保持されて
いる夏ビット前のデータ信号のCMI符号における後半
ビットの信号レベル“0”を反転する必要がない。そこ
で、この場合はゲート回路11を閉じクロックパルスを
出力しないようにする。また、第4図2行目に示すよう
に、上記後半ビットのレベルが“ビすなわち1ビ・1ト
前のデータ信号に対するCMI符号のブロックの後半ビ
ットが“ビであるとすると、介入力されたデータ信号“
0”およびCRV信号“0“に対するCM!符号のブロ
ック“0ビの前半ビットは“0”であるため、CMI符
号の出力を出力するに際し、出力反転回路13に保持さ
れている1ビット前のデータ信号における後半ビットの
レベル“ビを“0”に反転する必要がある。そこで、こ
の場合は上記ゲート回路11を開きクロックパルスを出
力反転回路13に出力し、出力反転回路13で保持して
いるCMI符号化の出力信号のレベルを反転させて、C
MI符号のブロックの前半ビットを出力させる。
First, the procedure for determining the level of the first half bit of a CMI code block when the data signal is "θ' will be described. For example, as shown in the first line of FIG. 4, the data signal "θ" is input, and the CRV signal " If 0 is input and a coding rule violation does not occur, this data signal 0 is CMI encoded based on the CRV signal 0, resulting in a 0 bit. At this time, the internal level held in the second half bit level determination circuit 9 is the intervening data signal and CRV.
If the level of the second half bit of the 2-bit block is held when the data signal 1 bit before the signal is CMI encoded, and the above internal level is "0", then the currently input data signal " 0” and CRV signal “O”
Since the first half bit of the block "0 Ravi" of the CMI code for "0" is "0", which is the same as the second half bit for the data signal before the above I bit, it is held in the output inverting circuit 13 when outputting the output signal of the CMr code. There is no need to invert the signal level "0" of the second half bit in the CMI code of the data signal before the summer bit. Therefore, in this case, the gate circuit 11 is closed and no clock pulse is output. As shown in the second line of FIG. 2, if the level of the second half bit is "B", that is, the second half bit of the CMI code block corresponding to the data signal 1 bit/1 bit before is "B", then the intervening data signal "
0” and the CRV signal “0”, the first half bit of the block “0 bit” of the CM! code is “0”, so when outputting the CMI code, the previous bit held in the output inverting circuit 13 It is necessary to invert the level "B" of the second half bit in the data signal to "0". Therefore, in this case, the gate circuit 11 is opened and a clock pulse is output to the output inverting circuit 13, and the clock pulse is held by the output inverting circuit 13. By inverting the level of the output signal of CMI encoding,
The first half bits of the MI code block are output.

また、第4図3.4行目に示すようにデータ信号“0”
が入力され、さらにcRV信号“ビが入力されて符号則
違反をおこす場合は、このデータ信号“0”をCMr符
号化すると“10”であるためCMl符号でのブロック
の前半ビットが“じであるとして、上述のようにして、
1ビット前のデータ信号におけるCMI符号のブロック
の後半ビットすなわち出力反転回路13の内部レベルを
、反転するかまたは反転しないか(すなわちゲート回路
11を開くかまたは閉じるか)を第4図に示すように判
定してゲート回路11を制御する。このように、データ
信号が、“0”の場合には直前のデータ信号“ビのとき
の保持レベルには関係なくCMI符号のブロックの前半
ビットを判定する。
In addition, as shown in the 3.4th line of Figure 4, the data signal “0”
If the cRV signal “Bi” is input and a coding rule violation occurs, the first half bits of the block in the CMl code will be “10” when the data signal “0” is encoded with the CMr code. If so, as described above,
As shown in FIG. 4, it is determined whether the second half bit of the block of CMI code in the previous data signal, that is, the internal level of the output inverting circuit 13, is inverted or not (that is, whether the gate circuit 11 is opened or closed). The gate circuit 11 is controlled based on the determination. In this manner, when the data signal is "0", the first half bits of the CMI code block are determined regardless of the holding level when the previous data signal "B".

次に、データ信号が“ビの場合のCMI符号のブロック
の前半ビットのレベル判定手順について述べる。データ
信号“ビが入力された場合は、CRV信号と、直前のデ
ータ信号“l”をCMI符号化した時のレベルすなわち
データ“1時のレベル記憶回路7で保持している内部レ
ベルとにより、現在入力されたデータ信号“ビを“00
”または“lビのどちらのレベルで符号化するかを判定
し、その判定結果に対して、データ信号“0”のときと
同様にして、出力反転回路13で保持している内部レベ
ルである1ビット前のデータ信号におけるCMI符号の
ブロックの後半ビットレベルに対して反転するかしない
かを第4図の表に示すように判定してゲート回路[1を
制御する。
Next, we will discuss the level determination procedure for the first half bits of the CMI code block when the data signal is "Bi".When the data signal "Bi" is input, the CRV signal and the immediately preceding data signal "l" are converted into the CMI code. The currently input data signal “B” is set to “00” by the level when the data “1” is reached, that is, the internal level held in the level storage circuit 7 at the time of the data “1”.
” or “l-bi” to be encoded, and based on the determination result, the internal level held in the output inverting circuit 13 is determined in the same manner as when the data signal is “0”. The gate circuit [1 is controlled by determining whether or not to invert the second half bit level of the CMI code block in the data signal one bit before, as shown in the table of FIG.

次に、データ信号が“0”の場合のCMI符号のブロッ
クの後半ビットのレベル判定手順について述べる。デー
タ信号“0”をCMI符号化する場合CMI符号“0ビ
(符号則違反をおこす場合は“IO”)の後半ビットの
レベル“ビ(符号則違反をおこす場合は“0”)は前半
ビットのレベル“0”(符号則違反をおこす場合は“ビ
)に対して反転する必要があるので、第5図1行目のよ
うにゲート回路、11を開きクロックパルスを上記出力
反転回路13に出力して、上述のようにしてすでに出力
し出力反転回路13に保持されている前半ビットのレベ
ルを反転してCMI符号のブロックの後半ビットを出力
する。
Next, a procedure for determining the level of the second half bit of the CMI code block when the data signal is "0" will be described. When data signal “0” is CMI encoded, the level “bi” of the second half bit of the CMI code “0 bit (“IO” if it violates the coding rule) is the first half bit (“0” if it violates the coding rule). Since it is necessary to invert the level "0" (or "B" in case of violation of the sign rule), the gate circuit 11 is opened as shown in the first line of FIG. 5 and the clock pulse is sent to the output inverting circuit 13. The second half bits of the CMI code block are output by inverting the level of the first half bits already output and held in the output inverting circuit 13 as described above.

次にデータ信号“ビの場合における後半ビットのレベル
判定手順について述べる。データ信号“1″をCMI符
号化する場合、CMI符号の後半ビットのレベルは前半
ビットのレベルと同じレベルであるので、第5図2行目
のようにゲート回路11を閉じて出力反転回路13に保
持されている内部レベルをそのまま出力する。
Next, we will discuss the level determination procedure for the second half bit in the case of the data signal "BI". When CMI encoding the data signal "1", the level of the second half bit of the CMI code is the same as the level of the first half bit, so 5. As shown in the second line of FIG. 5, the gate circuit 11 is closed and the internal level held in the output inversion circuit 13 is output as is.

以上のように判定回路lOは、CMI符号のブロックの
出力しようとしている前半または後半ビットを、出力反
転回路13に保持されている1ビット前のCMI符号の
ブロックの後半ビットあるいは同一ブロック内の前半ビ
ットと比較し、それぞれ反転が必要な場合のみゲート回
路11を開いてクロックパルスを出力反転回路13に出
力するように動作する。
As described above, the determination circuit IO determines whether the first half or second half bits of the CMI code block to be output are the second half bits of the 1-bit previous CMI code block held in the output inversion circuit 13 or the first half bits within the same block. The gate circuit 11 is opened and a clock pulse is output to the output inverting circuit 13 only when inversion is necessary.

第2図は第1図に示したブロック図の一実施例の回路を
示し、21はNRZ符号等のデータ信号入力端子であり
、22はNRZ符号のCRV信号入力端子であり、23
は上記2種の信号と同期したクロック信号の入力端子で
ある。フリップフロップ25.26でデータ信号の上記
ラッチ・遅延回路5を形成し、フリップフロップ27は
CRV信号の上記ラッチ回路6である。NANDゲート
29.30.31.32およびフリップフロップ34゜
35で上記後半ビットレベル判定回路9を形成し、39
で上記データ“ビ時のレベル記憶回路7を形成する。ま
た、EX−ORゲート41およびパリティチェック回路
42は上記判定回路10の一部を形成し、ANDゲート
44,45.46は判定回路10兼クロツクパルスの上
記ゲート回路IIを形成する。フリップフロップ48,
49.50およびパリティチェック回路51で出力反転
回路13を形成し、フリップフロップ53,54.55
およびEX−ORゲート56で各CMI符号のブロック
の後半ビットを比較判定する上記比較回路14を形成す
る。EX−ORゲート57は上記位相制御回路15であ
り、また、EX−ORゲート58゜59は、上記クロッ
ク信号とその反転信号とにゲート遅延の差が生じないよ
うに出力する回路であり、60はCMI符号の出力端子
である。
FIG. 2 shows a circuit of an embodiment of the block diagram shown in FIG. 1, in which 21 is a data signal input terminal such as NRZ code, 22 is a CRV signal input terminal of NRZ code, and 23
is an input terminal for a clock signal synchronized with the above two types of signals. The flip-flops 25 and 26 form the latch/delay circuit 5 for the data signal, and the flip-flop 27 is the latch circuit 6 for the CRV signal. The latter half bit level determination circuit 9 is formed by the NAND gates 29, 30, 31, and 32 and the flip-flops 34 and 35.
The EX-OR gate 41 and the parity check circuit 42 form a part of the judgment circuit 10, and the AND gates 44, 45, and 46 form a part of the judgment circuit 10. The gate circuit II of the double clock pulse is formed.Flip-flop 48,
49.50 and the parity check circuit 51 form the output inversion circuit 13, and the flip-flops 53, 54.55
The EX-OR gate 56 forms the comparison circuit 14 that compares and determines the latter half bits of each CMI code block. The EX-OR gate 57 is the phase control circuit 15, and the EX-OR gates 58 and 59 are circuits that output the clock signal and its inverted signal so that there is no difference in gate delay. is the output terminal of the CMI code.

ここで、上記パリティチェック回路42.51は、人力
A、B、Cのうちレベル“ビである信号が偶数9(0ま
たは2)であればレベル“ビを、また奇数個(1または
3)であればレベル“0”を出力端子ΣEVENから出
力する。すなわち、入力端子A1BSCのうちどれか1
つの入力レベルが反転したときに、出力端子ΣEVEN
からの出力レベルを反転する回路である。
Here, the parity check circuits 42 and 51 check the level "B" if the signals at the level "B" among the signals A, B, and C are an even number 9 (0 or 2), and the level "B" for the odd number (1 or 3) If so, level "0" is output from the output terminal ΣEVEN. In other words, any one of the input terminals A1BSC
When two input levels are inverted, the output terminal ΣEVEN
This is a circuit that inverts the output level from the .

この実施例における第2図に示す回路はこれに限るもの
ではなく、第1図に示したブロック図の作用を実現する
ような回路であればどのような回路を用いてもよい。
The circuit shown in FIG. 2 in this embodiment is not limited to this, and any circuit may be used as long as it realizes the function of the block diagram shown in FIG.

第3図は、第2図においてA〜0で示した各部の信号を
表示した図である。図中CRV信号Bとクロック信号C
との間に示した信号A+Bは上記データ信号AとCRV
信号Bとの論理和であり、この信号A+BをCMI符号
化した信号が求める出力信号0である。ここで信号A+
Hのうち“K”はデータ信号“0”のCMI符号則違反
信号を示し、“J”はデータ信号“l”のCMI符号則
違反信号を示す。また、出力信号0の下にCMI符号化
萌の信号A+Bを並列して示した。
FIG. 3 is a diagram showing signals of each part indicated by A to 0 in FIG. 2. CRV signal B and clock signal C in the diagram
The signal A+B shown between the above data signal A and CRV
This is the logical sum with signal B, and the signal obtained by CMI encoding this signal A+B is the desired output signal 0. Here signal A+
Among H, "K" indicates a CMI coding rule violation signal of data signal "0", and "J" indicates a CMI coding rule violation signal of data signal "1". Furthermore, CMI encoded signals A+B are shown in parallel below the output signal 0.

換言すれば、この発明は、データ信号Aを符号則違反信
号Bに従って、連続した2ビットのブロック列であるC
MI符号信号0に符号化するに際し、上記データ信号A
とCRV信号Bと直前のデータ信号“ビにおけるCMI
符号レベし信号Gと1ビット前のデータ信号におけるC
MI符号の後半ビットレベル信号Iとに基づいて、今出
力しようとしているCM■符号のブロックの1ビットの
レベルは、直前に出力した1ビットのレベルを反転して
出力すべきか否かを順次1ビットずつ判定して出力する
。したがって2種の信号を合成するために同期をとる必
要がなく、グリッチが発生しない。
In other words, the present invention converts the data signal A into C, which is a continuous 2-bit block sequence, according to the coding rule violation signal B.
When encoding the MI code signal 0, the above data signal A
and CRV signal B and the previous data signal “CMI at
Code level signal G and C in the data signal 1 bit before
Based on the second half bit level signal I of the MI code, the level of 1 bit of the block of CM code to be outputted is sequentially determined by 1 whether or not the level of the 1 bit output immediately before should be inverted and output. Determine and output bit by bit. Therefore, there is no need to synchronize two types of signals in order to synthesize them, and glitches do not occur.

〈発明の効果〉 以上より明らかなように、この発明のCM!符号化回路
は、!ビット前のデータ信号に対する2ビットのブロッ
クの後半ビットのレベルを判定・保持し、この1ビット
曲のデータ信号に対する後半ビットのレベル信号と、直
前のデータ信号“ビのときのレベル信号と、2値化され
た1ビットのデータ信号と、符号則違反信号とに基づい
て、判定回路によって次に出力すべき出力レベルを反転
するか否かを判定して、この判定結果により出力反転回
路によって予め保持している直前に出力した信号のレベ
ルを、反転あるいは非反転して出力するようにしたので
、CMI信号を作成するために2種以上の信号を同期を
とって合成する必要がなく、回路内の各信号のゲート遅
延には関係なくグリッチが発生するのを確実に防ぐこと
ができる。
<Effects of the invention> As is clear from the above, the commercial of this invention! The encoding circuit is! The level of the second half bit of the 2-bit block with respect to the data signal before the bit is determined and held, and the level signal of the second half bit with respect to the data signal of this 1-bit song, the level signal when the immediately preceding data signal "B", Based on the converted 1-bit data signal and the sign rule violation signal, the determination circuit determines whether or not to invert the output level to be output next, and based on the determination result, the output inversion circuit By inverting or non-inverting the level of the previously output signal that is held, there is no need to synchronize and synthesize two or more types of signals to create a CMI signal, and the circuit It is possible to reliably prevent glitches from occurring regardless of the gate delay of each signal within.

したがって、温度変化によるゲート遅延量の変化の激し
い場所での伝送装置内に使用することができ、従来の素
子のままで容易に高速化することができる。
Therefore, it can be used in a transmission device in a place where the amount of gate delay changes drastically due to temperature changes, and the speed can be easily increased using conventional elements.

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

第1図はこの発明のCMI符号化回路の一実施例を示す
ブロック図、第2図は上記実施例の回路図、第3図は後
半ビットレベル判定回路の動作を示す囚、第4図は判定
回路の後半ビットから前半ビットを判定する動作を示す
回、第5図は判定回路の前半ビットから後半ビットを判
定する動作を示す図、第6図は第2図の回路図における
各部の信号のタイミングチャート、第7図は従来のCM
I符号化回路のブロック図、第8図は上記従来例771
1’;’;’I rJ4F IT’刀  竺n 畠71
1.j ”k O口bへr=コ0々177+ l+ A
−+u ? # mの信号のタイミングチャートである
。 !・・・データ信号入力端子、 2・・・CRV信号入力端子、 7・・・データ“1時のレベル記憶回路、9・・・後半
ビットレベル判定回路、10・・・判定回路、13・・
・出力反転回路、      14・・・比較回路、1
5・・・位相制御回路。 特 許 出 願 人  シャープ株式会社代 理 人 
弁理士  青 山 葆 ほか2名第3図 X:珪はイ壬A【 第67 A+セ                ・Oj   
K、01   JOj  O4コ ク   ・ロ 十   0   1     ・   
     にり Jユ Cjl    J:    −−、−a       
 g   +り
FIG. 1 is a block diagram showing an embodiment of the CMI encoding circuit of the present invention, FIG. 2 is a circuit diagram of the above embodiment, FIG. 3 is a diagram showing the operation of the second half bit level determination circuit, and FIG. 5 shows the operation of determining the first half bit from the second half bit of the determination circuit. FIG. 6 shows the signal of each part in the circuit diagram of FIG. 2. Timing chart, Figure 7 is a conventional CM
The block diagram of the I encoding circuit, FIG. 8, is the above conventional example 771.
1';';'I rJ4F IT' Katana Jiku n Hatake 71
1. j ”k O mouth b to r=ko 0 and 177+ l+ A
-+u? # is a timing chart of the signal m. ! . . . Data signal input terminal, 2 . . . CRV signal input terminal, 7 . . . Data “1” level storage circuit, 9 .
・Output inversion circuit, 14... Comparison circuit, 1
5...Phase control circuit. Patent applicant: Sharp Corporation Agent
Patent attorney Aoyama Ao and two others Figure 3
K, 01 JOj O4 Koku ・Ro 10 0 1 ・
Niri J Yu Cjl J: --, -a
g +ri

Claims (1)

【特許請求の範囲】[Claims] (1)2値化された1ビットのデータ信号を、符号則違
反を指示する符号則違反信号に基づいて、符号則違反を
有する2ビットのブロックに符号化するCMI符号化回
路において、 上記データ信号と上記符号則違反信号とに基づいて、上
記データ信号“1”を上記2ビットのブロックに符号化
したときのレベルを保持するデータ“1”時のレベル記
憶回路と、 上記データ“1”時のレベル記憶回路で保持している直
前のデータ信号“1”のときのレベルと、上記データ信
号と、上記符号則違反信号とに基づいて、上記1ビット
のデータ信号を上記2ビットのブロックに符号化すると
きの各ブロックの後半ビットのレベルを判定して保持す
る後半ビットレベル判定回路と、 上記データ“1”時のレベル記憶回路で保持している上
記直前のデータ信号“1”のときのレベル信号と、上記
後半ビットレベル判定回路で判定して保持している1ビ
ット前のデータ信号に対する2ビットのうちの後半ビッ
トのレベル信号と、上記データ信号と、上記符号則違反
信号とに基づいて、出力レベルを反転するか否かを判定
して、反転する必要がある場合に反転信号を出力する判
定回路と、 上記判定回路からの反転信号に基づいて、上記出力レベ
ルを反転させるクロック信号を制御するゲート回路と、 上記ゲート回路から出力される上記クロック信号に基づ
いて、予め保持している直前に出力した信号のレベルを
反転して出力する出力反転回路と、上記後半ビットレベ
ル判定回路から出力される上記2ビットのブロックに符
号化するときの後半ビットの判定レベルと、上記出力反
転回路から出力される2ビットのうちの後半ビットのレ
ベルとを比較して、上記判定レベルと後半ビットのレベ
ルとが異なる場合に信号を出力する比較回路と、上記比
較回路から上記判定レベルと後半ビットのレベルとが異
なることを表わす信号が出力されたとき、上記出力反転
回路から出力される信号の位相を逆転させる位相制御回
路とを備えたことを特徴とするCMI符号化回路。
(1) In a CMI encoding circuit that encodes a binarized 1-bit data signal into a 2-bit block having a coding rule violation based on a coding rule violation signal that indicates a coding rule violation, the above data a level storage circuit for storing the level when the data signal "1" is encoded into the 2-bit block based on the signal and the coding rule violation signal; The 1-bit data signal is stored in the 2-bit block based on the level of the previous data signal "1" held in the current level storage circuit, the data signal, and the sign rule violation signal. a second half bit level determination circuit that determines and holds the level of the second half bit of each block when encoding, and a level storage circuit that stores the level of the previous data signal "1" when the data is "1". the level signal of the latter bit of the 2 bits for the data signal of 1 bit earlier determined and held by the latter half bit level determination circuit, the above data signal, and the above coding rule violation signal. a determination circuit that determines whether or not to invert the output level based on the output level, and outputs an inversion signal if inversion is necessary; and a determination circuit that inverts the output level based on the inversion signal from the determination circuit. a gate circuit that controls a clock signal; an output inversion circuit that inverts and outputs the previously held signal level of a previously output signal based on the clock signal output from the gate circuit; The judgment level of the second half bits output from the judgment circuit when encoding into the 2-bit block is compared with the level of the second half bits of the 2 bits output from the output inversion circuit, and the judgment level and a comparison circuit that outputs a signal when the level of the second half bit is different from the level of the second half bit. A CMI encoding circuit comprising: a phase control circuit for reversing the phase of a signal.
JP61289469A 1986-12-04 1986-12-04 Cmi encoding circuit Granted JPS63142744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61289469A JPS63142744A (en) 1986-12-04 1986-12-04 Cmi encoding circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61289469A JPS63142744A (en) 1986-12-04 1986-12-04 Cmi encoding circuit

Publications (2)

Publication Number Publication Date
JPS63142744A true JPS63142744A (en) 1988-06-15
JPH0462625B2 JPH0462625B2 (en) 1992-10-07

Family

ID=17743678

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61289469A Granted JPS63142744A (en) 1986-12-04 1986-12-04 Cmi encoding circuit

Country Status (1)

Country Link
JP (1) JPS63142744A (en)

Also Published As

Publication number Publication date
JPH0462625B2 (en) 1992-10-07

Similar Documents

Publication Publication Date Title
US5023891A (en) Method and circuit for decoding a Manchester code signal
CA1224274A (en) Manchester decoder
US3902117A (en) Pcm error detection
JP3433426B2 (en) Method and apparatus for decoding Manchester encoded data
JPS60180222A (en) Code error correcting device
US4813044A (en) Method and apparatus for detecting transient errors
CA2031643C (en) Bch code decoder and method for decoding a bch code
JPH07131448A (en) Phase comparing circuit
JPH0462503B2 (en)
JPS63142744A (en) Cmi encoding circuit
JP2006067107A (en) Elastic buffer
US5229769A (en) Method and circuit for performing running disparity measurements
WO1983001141A1 (en) Encoding and decoding system for binary data
US5694405A (en) Encoder and decoder of an error correcting code
US5510786A (en) CMI encoder circuit
JPH0695643B2 (en) CMI coding circuit
JPS6380650A (en) Cmi encoding circuit with code rule illegality
JPH0370414B2 (en)
US3866170A (en) Binary transmission system using error-correcting code
KR910009093B1 (en) Coded mark inversion coding circuit
JPH01233850A (en) Timing system
KR100213256B1 (en) 5 bit and 16 bit cyclic redundancy check circuit
JPS63312754A (en) Error generation circuit
JPS60227549A (en) Cmi decoding circuit
JPS59144248A (en) Cmi encoding and decoding circuit