JPH0462625B2 - - Google Patents

Info

Publication number
JPH0462625B2
JPH0462625B2 JP61289469A JP28946986A JPH0462625B2 JP H0462625 B2 JPH0462625 B2 JP H0462625B2 JP 61289469 A JP61289469 A JP 61289469A JP 28946986 A JP28946986 A JP 28946986A JP H0462625 B2 JPH0462625 B2 JP H0462625B2
Authority
JP
Japan
Prior art keywords
signal
level
circuit
data signal
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP61289469A
Other languages
Japanese (ja)
Other versions
JPS63142744A (en
Inventor
Toshihiro Uota
Harushige Oochi
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

Description

【発明の詳細な説明】 <産業上の利用分野] この発明は、通常の2値化された1ビツトの
NRZ(ノン・リターン・トウ・ゼロ符号等のデー
タ信号と上記データ信号の符号則違反を指示する
符号則違反信号とに基づいて、伝送信号等に用い
られる2ビツトのブロツクに符号化されたCMI
(コーデツド・マーク・インバージヨン)符号の
信号を作成するのに好適な符号則違反を有する
CMI符号化回路に関する。
[Detailed Description of the Invention] <Industrial Application Fields> This invention is applicable to ordinary binarized 1-bit data.
CMI coded into a 2-bit block used for transmission signals, etc. based on a data signal such as NRZ (Non-Return-to-Zero code) and a coding rule violation signal that indicates violation of the coding rules of the data signal.
(coded mark inversion) has a code rule violation suitable for creating a coded signal.
Regarding CMI encoding circuit.

<従来の技術> CMI符号とは2値化された1ビツトのデータ
信号を2ビツトのブロツクに符号化する1B2B符
号の一種であり、例えば、データ信号“0”の場
合は“01”の2ビツトのブロツクに符号化し、デ
ータ信号“1”の場合は途中に発生するデータ信
号“0”にかかわりなく直前のデータ信号“1”
の場合と交互に“00”または“11”のブロツクに
符号化された符号をいう。また、上記CMI符号
の符号則違反とは、データ信号“0”を“10”の
ブロツクに符号化し、データ信号“1”を交互で
はなく直前に変換したデータ信号“1”のCMI
符号に連続した“00”または“11”のブロツクに
符号化されることをいう。
<Prior art> A CMI code is a type of 1B2B code that encodes a binarized 1-bit data signal into a 2-bit block. For example, in the case of a data signal "0", it is If the data signal is “1”, the immediately preceding data signal “1” is encoded into a block of bits, regardless of the data signal “0” that occurs in the middle.
A code encoded in blocks of "00" or "11" alternately. Furthermore, the above-mentioned violation of the CMI code code rule means that the data signal “0” is encoded into a block of “10”, and the data signal “1” is converted into a CMI code immediately before the data signal “1” is converted instead of alternately.
This means that the code is encoded as a block of consecutive "00" or "11".

従来、CMI符号化回路としては、第7図に示
すようなものがある。第7図において、101,
102,103は夫々入力端子であり、上記入力
端子101は上記NRZ符号のデータ信号の入力
端子である。入力端子102はNRZ符号の符号
則違反の出力を指示する符号則違反信号(以下、
CRV信号とする)の入力端子であり、入力端子
103は上記2種の信号と同期したクロツク信号
の入力端子である。ここで、上記CRV信号が
“1”のとき符号則違反をおこし、“0”のとき符
号則違反をおこさないものとする。ラツチ・遅延
回路104は入力された上記データ信号をラツチ
してデータ信号が“1”のとき出力する信号S−
1と、半クロツク分遅延してデータ信号が“0”
のとき出力するS−2と、同様に半クロツク分遅
延してデータ信号が“1”のとき出力する信号S
−3とに分離する。またラツチ回路105は入力
された上記CRV信号をラツチし、符号則違反を
おこすきに信号S−4を出力する。
Conventionally, there is a CMI encoding circuit as shown in FIG. In FIG. 7, 101,
102 and 103 are input terminals, respectively, and the input terminal 101 is an input terminal for the data signal of the NRZ code. An input terminal 102 receives a coding rule violation signal (hereinafter referred to as
The 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 coding rule violation occurs when the CRV signal is "1", and a coding rule violation does not occur when it is "0". The latch/delay circuit 104 latches the input data signal and outputs a signal S- when the data signal is "1".
1, and the data signal becomes “0” with a delay of half a clock.
S-2, which is output when
Separate into -3 and 3. Furthermore, the latch circuit 105 latches the input CRV signal and outputs a signal S-4 when a sign rule violation occurs.

データ信号“0”用CMI符号化回路106は
上記ラツチ回路105の出力信号S−4とクロツ
ク信号とから、符号則違反をおこさない場合は
“01”のブロツクの信号S−5を出力し、符号則
違反をおこす場合は“10”のブロツクの信号S−
5を出力する。この信号はデータ信号のいかんに
かかわらず上記ラツチ105からの信号S−4と
クロツク信号との関係において出力されるので、
データ信号が“1”のときも出力される。データ
信号“1”用CMI符号化回路107は、上記ラ
ツチ・遅延回路104の出力信号S−1とラツチ
回路105の出力信号S−4とクロツク信号とか
ら、符号則違反をおこさないデータ信号“1”の
場合は出力レベルを反転する信号S−6を出力す
る。この場合も同様に上記信号はデータ信号が
“0”のときも出力される。
The CMI encoding circuit 106 for data signal "0" outputs a block signal S-5 of "01" from the output signal S-4 of the latch circuit 105 and the clock signal if no violation of the coding rule occurs. If a code rule violation occurs, the “10” block signal S-
Outputs 5. This signal is output in the relationship between the signal S-4 from the latch 105 and the clock signal, regardless of the data signal.
It is also output when the data signal is "1". The CMI encoding circuit 107 for the data signal "1" generates a data signal "1" that does not violate the coding rule from 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. 1'', a signal S-6 whose output level is inverted is output. In this case as well, the above signal is output even when the data signal is "0".

上記データ信号“0”用CMI符号化回路10
6の出力信号S−5をデータ信号“0”のゲート
回路108に入力し、上記ラツチ・遅延回路10
5が出力する上記半クロツク分遅延した信号S−
2によりゲートを開くことにより、データ信号が
“0”のときだけ信号S−7を出力する。また、
上記データ信号“1”用CMI符号化回路107
の出力信号S−6をデータ信号“1”のゲート回
路109に入力し、上記ラツチ・遅延回路104
が出力する上記半クロツク分遅延した信号S−3
よりゲートを開くことにより、データ信号が
“1”のときだけ信号S−8を出力する。そして
合成回路110により上記データ信号“0”のゲ
ート回路108の出力信号S−7と、上記データ
信号“1”のゲート回路109の出力信号S−8
とを合成してCMI符号信号S−9を生成し、出
力端子111に出力する。
CMI encoding circuit 10 for the above data signal “0”
The output signal S-5 of 6 is input to the gate circuit 108 of the data signal "0", and the latch/delay circuit 10
5 outputs the signal S- delayed by the above half clock.
By opening the gate with 2, the signal S-7 is output only when the data signal is "0". Also,
CMI encoding circuit 107 for the above data signal “1”
The output signal S-6 is input to the gate circuit 109 for the data signal "1", and the latch/delay circuit 104
The signal S-3 delayed by the above half clock outputted by
By opening the gate further, the signal S-8 is output only when the data signal is "1". Then, the synthesis circuit 110 generates 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 "1".
A CMI code signal S-9 is generated by combining the CMI code signal S-9 and output to the output terminal 111.

第8図は第7図のCMI符号化回路である回路
図であり、また、第9図は第8図における各出力
信号のタイミグチヤートである。第8図におい
て、入力端子121は上記NRZ符号のデータ信
号の入力端子であり、入力端子122はNRZ符
号のCRV信号の入力端子であり、入力端子12
3は上記2種の信号と同期したクロツク信号の入
力端子である。フリツプフロツプ124,125
で上記データ信号のラツチ・遅延回路104を形
成し、フリツプフロツプ126で上記CRV信号
のラツチ回路105を形成する。また、フリツプ
フロツプ127でEX−ORゲート128とでデ
ータ信号“0”用CMI符号化回路106を形成
し、NORゲート129とフリツプフロツプ13
0とでデータ信号“1”用CMI符号化回路10
7を形成する。さらにNORゲート131でデー
タ信号“0”のゲート回路108を、NORゲー
ト132でデータ信号“1”のゲート回路109
を、ORゲート133で合成回路110を夫々形
成する。134はCMI符号の出力端子である。
FIG. 8 is a circuit diagram of the CMI encoding circuit of FIG. 7, and FIG. 9 is a timing diagram of each output signal in FIG. 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, and the input terminal 12
3 is an input terminal for a clock signal synchronized with the above two types of signals. Flip-flop 124, 125
The latch/delay circuit 104 for the data signal is formed by the flip-flop 126, and the latch circuit 105 for the CRV signal is formed by the flip-flop 126. Furthermore, the flip-flop 127 and the EX-OR gate 128 form the CMI encoding circuit 106 for the data signal "0", and the NOR gate 129 and the flip-flop 13
0 and CMI encoding circuit 10 for data signal “1”
form 7. Further, the NOR gate 131 connects the gate circuit 108 with the data signal "0", and the NOR gate 132 connects the gate circuit 109 with the data signal "1".
, and form the synthesis circuit 110 using the OR gate 133, respectively. 134 is a CMI code output terminal.

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

<発明が解決しようとする問題点> しかしながら、上記従来のCMI符号化回路に
おいては、上記データ信号“0”用CMI符号化
回路106とデータ信号“1”用CMI符号化回
路107によりデータ信号が“0”のときと
“1”のときと別々にCMI符号化を行い、最終段
階でORゲート133からなる合成回路110
で、データ信号“0”をCMI符号化した信号と
データ信号“1”をCMI符号化した信号とを合
成し、CMI符号化された信号kを出力している
ので、上記信号iと信号jとの上記合成回路11
0に入力されるまで通過してくるゲート数がそれ
ぞれ異なり、両信号i,j間にゲート遅延の差が
生じて、第9図における信号kの矢印Zで示す位
置にグリツチが発生するという問題がある。
<Problems to be Solved by the Invention> However, in the conventional CMI encoding circuit described above, the data signal is CMI encoding is performed separately for “0” and “1”, and in the final stage a synthesis circuit 110 consisting of an OR gate 133
Since the signal obtained by CMI-encoding the data signal "0" and the signal obtained by CMI-encoding the data signal "1" are combined and outputting the CMI-encoded signal k, the above signal i and signal j The above synthesis circuit 11 with
The problem is that the number of gates that each signal passes through until it is input to 0 is different, and a difference in gate delay occurs between both signals i and j, causing a glitch to occur at the position indicated by arrow Z of signal k in Figure 9. There is.

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

そこで、信号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, but this may result in differences in the temperature characteristics of each gate and waveform distortion due to higher speeds. This also causes glitches. Therefore, in order to remove such glitches, the waveform was shaped using a clock multiplied by 2. However, as the speed increases, the above waveform becomes distorted and the glitch width widens. A drawback is that bit errors occur when the timing of the coding glitch and the doubling clock match.

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

<問題点を解決するための手段> 上記目的を達成するため、この発明のCMI符
号化回路は、2値された1ビツトのデータ信号
を、符号則違反を指示する符号則違反信号に基づ
いて、符号則違反を有する2ビツトのブロツクに
符号化するCMI符号化回路において、上記デー
タ信号と上記符号則違反信号とに基づいて、上記
データ信号“1”を上記2ビツトのブロツクに符
号化したときのレベルを保持するデータ“1”時
のレベル記憶回路と、上記データ“1”時のレベ
ル記憶回路で保持している直前のデータ信号
“1”のときのレベルと、上記データ信号と、符
号則違反信号とに基づいて、上記1ビツトのデー
タ信号を上記2ビツトのブロツクに符号化すると
きの各ブロツクの後半ビツトのレベルを判定して
保持する後半ビツトレベル判定回路と、上記デー
タ“1”時のレベル記憶回路で保持している上記
直前のデータ信号“1”のときのレベル信号と、
上記後半ビツトレベル判定回路で判定して保持し
ている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 binary 1-bit data signal based on a coding rule violation signal that indicates a coding rule violation. In a CMI encoding circuit that encodes into a 2-bit block having a coding rule violation, the data signal "1" is encoded into the 2-bit block based on the data signal and the coding rule violation signal. a level storage circuit when the data is “1” that holds the level at the time; a level when the immediately preceding data signal is “1” held by the level storage circuit when the data is “1”; and the data signal. a second-half bit level determination circuit that determines and holds the level of the second-half bit of each block when the one-bit data signal is encoded into the two-bit block based on the coding rule violation signal; ” level signal at the time of the above-mentioned immediately preceding data signal “1” held in the level storage circuit,
The output level is determined based on the level signal 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 above data signal, and the above coding rule violation signal. a determination circuit that determines whether or not to invert and outputs an inverted signal if inversion is necessary;
a gate circuit that controls a clock signal for inverting the output level based on the inverted signal from the determination circuit; and a previously held signal outputted immediately beforehand based on the clock signal output from the gate circuit. an output inverting circuit that inverts and outputs the level of the second half bit when encoding the second half bit block outputted from the second half bit level judgment circuit; A comparison circuit that compares the level of the second half of the bits and outputs a signal if the above judgment level and the level of the second half bit differ; 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 a signal representing the above is output.

<作用> 入力端子より2値化された1ビツトのデータ信
号と符号則違反信号とが入力されると、上記デー
タ信号と符号則違反信号とに基づいて、上記デー
タ信号“1”を2ビツトのブロツク(“00”また
は“11”)に符号化したときのレベルがデータ
“1”時のレベル記憶回路によつて保持され、ま
た、上記データ“1”時のレベル記憶回路で保持
されている直前のデータ信号“1”のときのレベ
ルと、上記データ信号と、上記符号則違反信号と
に基づいて、上記1ビツトのデータ信号(“0”,
“1”)を上記2ビツトのブロツク(“01”,“10”,
“00”,“11”)に符号化するときの各ブロツクの後
半ビツトのレベル(“0”または“1”)が、後半
ビツトレベル判定回路によつて判定されてその結
果が保持される。
<Operation> When a binary 1-bit data signal and a coding rule violation signal are input from the input terminal, the data signal "1" is converted to 2 bits based on the data signal and the coding rule violation signal. The level when encoded into the block (“00” or “11”) is held by the level storage circuit when the data is “1”, and the level is held by the level storage circuit when the data is “1”. The 1-bit data signal (“0”,
“1”) to the above 2-bit block (“01”, “10”,
The level ("0" or "1") of the second half bit of each block when encoding into "00", "11") is determined by the second half bit level determination circuit, and the result is held.

次に、上記データ“1”時のレベル記憶回路で
保持されている上記直前のデータ信号“1”のと
きのレベル信号と、上記後半ビツトレベル判定回
路で判定されて保持されている1ビツト前のデー
タ信号に対する2ビツトのうちの後半ビツトのレ
ベルと、上記データ信号と、上記符号則違反信号
とに基づいて、出力レベルを反転するか否かが判
定回路によつて判定されて、反転する必要がある
場合に反転信号が出力される。さらに、上記判定
回路から反転信号が出力されると、ゲート回路に
よつて出力レベルを反転させるクロツク信号のゲ
ートが開けられて上記クロツク信号が出力され
る。
Next, the level signal at the time of the immediately preceding data signal "1" held in the level storage circuit at the time of the data "1" and the level signal of the previous bit judged and held by the second half bit level judgment circuit are Based on the level of the second half of the two bits for the data signal, the data signal, and the sign rule violation signal, a determination circuit determines whether or not to invert the output level, and it is necessary to invert the output level. If there is, an inverted signal is output. Furthermore, when the inverted signal is output from the determination circuit, the gate of the clock signal whose output level is inverted is opened by the gate circuit, and the clock signal is outputted.

上記ゲート回路から上記クロツク信号が出力さ
れた場合は、出力反転回路によつて予め保持され
ている信号のレベル(“0”または“1”)が反転
されて出力され、ゲート回路からクロツク信号が
出力されない場合は、上記出力反転回路によつて
予め保持されている信号のレベルがそのまま出力
される。
When the clock signal is output from the gate circuit, the level (“0” or “1”) of the signal held in advance by the output inversion circuit is inverted and output, and the clock signal is output from the gate circuit. If the signal is not output, the level of the signal held in advance by the output inverting circuit is output as is.

上記後半ビツトレベル判定回路によつて判定さ
れた2ビツトのブロツクに符号化するときの後半
ビツトの判定レベルと、上記出力反転回路から出
力される2ビツトのうちの後半ビツトのレベルと
が比較回路によつて比較されて、上記判定レベル
と後半ビツトレベルとが異なる場合には信号が出
力される。そして、上記比較回路からの判定レベ
ルと後半ビツトレベルとが異なる信号に基づい
て、位相制御回路によつて上記出力反転回路から
出力される信号の位相が逆転されて出力され、上
記比較回路から上記判定レベルと後半ビツトレベ
ルとが異なる信号が出力されない場合は、上記出
力反転回路から出力される信号はそのまま出力さ
れる。
The determination level of the second half bit when encoding into a 2-bit block determined by the second half bit level determination circuit and the level of the second half bit of the two bits output from the output inverting circuit are sent to the comparison circuit. After comparison, a signal is output if the determination level and the second half bit level are different. Then, the phase control circuit inverts the phase of the signal output from the output inverting circuit and outputs the resultant signal based on the signal in which the judgment level from the comparison circuit is different from the second half bit level, and the signal output from the comparison circuit outputs the signal outputted from the output inverting circuit. If a signal whose level is different from the second half bit level is not output, the signal output from the output inversion circuit is output as is.

このように、直前の出力ビツトレベルを反転あ
るいは非反転することによつてCMI符号化する
ので、複数の信号を合成するために同期をとる必
要がなく、回路内における各信号のゲート遅延に
全く影響されずにCMI符号化することができ、
出力信号にグリツチが発生することがない。
In this way, CMI 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. Can be CMI encoded without being
No glitches occur in the output signal.

<実施例> 以下、この発明を図示の実施例により詳細に説
明する。
<Examples> The present invention will be described in detail below with reference to illustrated examples.

第1図はこの発明の構成を示すブロツク図であ
り、12,3は入力端子である。上記入力端子1
はNRZ符号等のデータ信号の入力端子であり、
入力端子2はNRZ符号のCRV信号の入力端子で
あり、入力端子3は上記2種の信号と同期したク
ロツク信号の入力端子である。ラツチ・遅延回路
5は上記入力端子1より入力したデータ信号をラ
ツチし、データ信号とその反転信号と夫々の半ク
ロツク分遅延した信号とを出力する。また、ラツ
チ回路6は上記入力端子2より入力したCRV信
号をラツチする。
FIG. 1 is a block diagram showing the configuration of the present invention, and 12 and 3 are input terminals. Above input terminal 1
is an input terminal for data signals such as NRZ code,
Input terminal 2 is an input terminal for an NRZ code CRV signal, and input terminal 3 is an input terminal for a clock signal synchronized with the above two types of signals. 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 latch circuit 6 latches the CRV signal inputted from the input terminal 2.

データ“1”時のレベル記憶回路7は、入力さ
れたデータ信号とCRV信号とに基づいてデータ
信号をCMI符号化したときのレベルを内部レベ
ルとして保持するものである。その動作は、デー
タ信号“1”が入力され、さらに、CRV信号が
“0”の場合すなわち符号則違反をおさない場合
は、保持している内部レベル(“0”または
“1”)を反転し、また、CRV信号が“1”の場
合すなわち符号則違反をおこす場合は、上記内部
レベルをそのまま保持する。ここで、内部レベル
とは回路内に保持しいる信号のレベルのことであ
り、入力された上記データ信号“1”をCMI符
号化した際に、“00”または“11”のどちらのレ
ベルで符号化したかを示すものである。上記内部
レベルを参照することにより、次に入力されるデ
ータ信号“1”をCMI符号化する際に、“00”ま
たは“11”のどちらのレベルで符号化すべきかを
判定することができる。
The level storage circuit 7 when data is "1" holds as an internal level the level obtained when the data signal is CMI encoded based on the input data signal and CRV signal. Its operation is such that when a data signal "1" is input and the CRV signal is "0", that is, when the sign rule violation is not violated, the held internal level ("0" or "1") is inverted. , In addition, when the CRV signal is "1", that is, when a coding rule violation occurs, the above-mentioned internal level is held as is. Here, the internal level refers to the level of the signal held within the circuit, and when the input data signal "1" is CMI encoded, it is determined whether it is at the level "00" or "11". This indicates whether the data has been encoded. By referring to the internal level, it is possible to determine which level, "00" or "11", should be encoded when the next input data signal "1" is CMI encoded.

後半ビツトレベル判定回路9は上記ラツチ・遅
延回路5でラツチした入力データ信号と、上記ラ
ツチ回路6でラツチした入力CRV信号と、上記
データ“1”時のレベル記憶回路7で保持してい
る内部レベルすなわち直前のデータ信号“1”を
CMI符号化したレベルに基づいて、現在入力さ
れたデータ信号をCRV信号に基づいてCMI符号
化するときに、2ビツトのブロツクの後半ビツト
を“0”または“1”のどちらのレベルにするか
を判定して、そのレベルを保持する。上記後半ビ
ツトレベルの判定は、具体的には第3図の表に従
つて行われる。この表はデータ信号、CRV信号、
上記データ“1”時のレベル記憶回路7で保持さ
れている直前のデータ信号“1”をCMI符号化
したときのレベル信号と、上記3種の信号に基づ
いて判定された後半ビツトレベル信号とを同列に
表示し、参考のためにCMI符号のブロツクも表
示している。この表により、例えばデータ信号
“0”、CRV信号“0”の場合は直前のデータ信
号“1”のときの保持レベルとは関係なく、符号
則違反をおこさないのでCMI符号化のブロツク
は“01”となり、その後半ビツトは“1”と判定
される。一方、データ信号“0”、CRV信号
“1”の場合は符号則違反をおこすので、CMI符
号化のブロツクは“10”となり、その後半ビツト
は“0”と判定される。同様に、データ信号
“1”、CRV信号“0”の場合、直前のデータ信
号“1”のときの保持レベルが“0”であれば
CMI符号化のブロツクは“11”となるので、そ
の後半ビツトは“1”と判定される。また直前の
データ信号“”のときの保持レベルが“1”であ
れば、CMI符号とのブロツクは“0 0”とな
り、その後半ビツトは“0”と判定される。以
下、データ信号“1”、CRV信号“1”の場合も
同様にして判定される。
The second half bit level determination circuit 9 receives the input data signal latched by the latch/delay circuit 5, the input CRV signal latched by the latch circuit 6, and the internal level held in the level storage circuit 7 when the data is "1". In other words, the previous data signal “1”
Based on the CMI encoded level, when the currently input data signal is CMI encoded based on the CRV signal, which level should the second half of the 2-bit block be set to “0” or “1”? and maintain that level. Specifically, the determination of the second half bit level is performed according to the table shown in FIG. This table shows the data signal, CRV signal,
The level signal obtained when the immediately preceding data signal "1" held in the level storage circuit 7 at the time of the data "1" is CMI encoded, and the second half bit level signal determined based on the three types of signals mentioned above. They are displayed in the same row, and a CMI code block is also shown for reference. According to this table, for example, in the case of a data signal "0" and a CRV signal "0", regardless of the holding level of the immediately preceding data signal "1", no violation of the coding rule occurs, so the CMI encoding block is 01", and the second half bit is determined to be "1". On the other hand, if the data signal is "0" and the CRV signal is "1", a coding rule violation occurs, so the CMI encoded block is determined to be "10" and the second half bit is determined to be "0". Similarly, in the case of data signal “1” and CRV signal “0”, if the holding level at the time of the previous data signal “1” is “0”, then
Since the CMI encoded block is "11", the second half bit is determined to be "1". Further, if the holding level of the immediately preceding data signal "" is "1", the block with the CMI code becomes "0 0", and the second half bit is determined to be "0". Hereinafter, the data signal "1" and the CRV signal "1" are determined in the same manner.

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

上記出力反転回路13は、上記ゲート回路11
から入力されるクロツクパルスにより保持してい
る内部レベルを反転する。この出力反転回路13
の内部レベルは、初期リセツトされている場合は
入力データ信号を入力CRV信号に基づいて正常
にCMI符号化した信号を得ることができるが、
上記出力反転回路13の内部レベルの初期値によ
つては、今出力しようとするビツトの出力レベル
が正しいレベルに対して位相が逆になつてしまう
場合がある。このような誤動作を防止するため
に、比較回路14で上記後半ビツトレベル判定回
路9から入力される判定レベルと、上記出力反転
回路13から入力される出力反転回路13の内部
レベル出力のCMI符号化した2ビツトのブロツ
クの後半ビツトのレベルとを比較し、上記判定レ
ベルと後半ビツトレベルとが異なる場合は上記両
レベルが異なることを表わす信号を位相制御回路
15に出力する。そして、上記位相制御回路15
により、化化反転回路13から入力される出力反
転回路13の内部レベル出力の位相を逆転させ、
また、上記両レベルが等しい場合はそのままの位
相で出力端子17にCMI符号の信号として出力
する。
The output inverting circuit 13 includes the gate circuit 11
The internal level held is inverted by the clock pulse input from the clock pulse. This output inversion circuit 13
If the internal level of the input data signal is initially reset, a normally CMI encoded signal can be obtained based on the input CRV signal, but
Depending on the initial value of the internal level of the output inversion circuit 13, the phase of the output level of the bit to be output may be opposite to the correct level. In order to prevent such malfunctions, the comparison circuit 14 encodes the judgment level input from the second half bit level judgment circuit 9 and the internal level output of the output inversion circuit 13 input from the output inversion circuit 13. The level of the second half bit of the two-bit block is compared, and if the above judgment level and the second half bit level are different, a signal indicating that the two levels are different is outputted to the phase control circuit 15. And the phase control circuit 15
, the phase of the internal level output of the output inverting circuit 13 input from the conversion inverting circuit 13 is reversed,
If the two levels are equal, the signal is output to the output terminal 17 as a CMI code signal with the same phase.

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

まず、データ信号が“0”の場合のCMI符号
のブロツクの前半ビツトのレベル判定手順につい
て述べる。今例えば第4図1行目に示すようにデ
ータ信号“0”が入力され、さらにCRV信号
“0”が入力されて符号則違反をおこさない場合
は、このデータ信号“0”をCRV信号“0”に
基づいてCMI符号化すると、“01”となる。この
とき後半ビツトレベル判定回路9に保持されてい
る内部レベルは、今入力されたデータ信号および
CRV信号の1ビツト前のデータ信号を、CMI符
号化したときの2ビツトのブロツクの後半ビツト
のレベルが保持されており、上記内部レベルが
“0”であるとすると、現在入力されたデータ信
号“0”およびCRV信号“0”に対するCMI符
号のブロツク“01”の前半ビツトは上記1ビツト
前のデータ信号に対する後半ビツトと同じ“0”
であるため、CMI符号の出力信号を出力するに
際し、上記出力反転回路13に保持されている1
ビツト前のデータ信号のCMI符号における後半
ビツトの信号レベル“0”を反転する必要がな
い。そこで、この場合はゲート回路11を閉じク
ロツクパルスを出力しないようにする。また、第
4図2列目に示すように、上記後半ビツトのレベ
ルが“1”すなわち1ビツト前のデータ信号に対
するCMI符号のブロツクの後半ビツトが“1”
であるとすると、今入力されたデータ信号“0”
およびCRV信号“0”に対するCMI符号のブロ
ツク“01”の前半ビツトは“0”であるため、
CMI符号の出力を出力するに際し、出力反転回
路13に保持されている1ビツト前のデータ信号
における後半ビツトのレベル“1”を“0”に反
転する必要がある。そこで、この場合は上記ゲー
ト回路11を開きクロツクパルスを出力反転回路
13に出力し、出力反転回路13で保持している
CMI符号化の出力信号のレベルを反転させて、
CMI符号のブロツクの前半ビツトを出力させる。
First, the procedure for determining the level of the first half of the CMI code block when the data signal is "0" will be described. For example, if the data signal "0" is input as shown in the first line of FIG. CMI encoding based on "0" results in "01". At this time, the internal level held in the second half bit level determination circuit 9 is based on the currently input data signal and
If the level of the second half bit of the 2-bit block is held when the data signal 1 bit before the CRV signal is CMI encoded, and the above internal level is "0", then the currently input data signal The first half bit of the CMI code block “01” for “0” and CRV signal “0” is “0”, which is the same as the second half bit for the data signal one bit before.
Therefore, when outputting the CMI code output signal, the 1 held in the output inverting circuit 13 is
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 bit. Therefore, in this case, the gate circuit 11 is closed so that no clock pulse is output. Further, as shown in the second column of FIG. 4, the level of the second half bit is "1", that is, the second half bit of the block of CMI code corresponding to the data signal one bit before is "1".
If this is the case, the data signal “0” that has just been input is
And since the first half bit of block “01” of CMI code for CRV signal “0” is “0”,
When outputting the CMI code, it is necessary to invert the level "1" of the second half bit of the data signal one bit before, which is held in the output inverting circuit 13, to "0". Therefore, in this case, the gate circuit 11 is opened and the clock pulse is output to the output inverting circuit 13, where it is held.
Invert the level of the output signal of CMI encoding,
Outputs the first half bits of the CMI code block.

また、第4図3,4列目に示すようにデータ信
号“0”が入力され、さらにCRV信号“1”が
入力されて符号則違反をおこす場合は、このデー
タ信号“0”をCMI符号化すると“10”である
ためCMI符号でのブロツクの前半ビツトが“1”
であるとして、上述のようにして、1ビツト前の
データ信号におけるCMI符号のブロツクの後半
ビツトすなわち出力反転回路13の内部レベル
を、反転するかまたは反転しないか(すなわちゲ
ート回路11を開くかまたは閉じるか)を第4図
に示すように判定してゲート回路11を制御す
る。このように、データ信号が、“0”の場合に
は直前のデータ信号“1”のときの保持レベルに
は関係なくCMI符号のブロツクの前半ビツトを
判定する。
In addition, as shown in the 3rd and 4th columns of FIG. Since it is “10” when converted to “10”, the first half bit of the block in CMI code is “1”.
Assuming that, as described above, the second half bit of the block of CMI code in the data signal one bit before, that is, the internal level of the output inverting circuit 13, is inverted or not inverted (that is, the gate circuit 11 is opened or (closed) is determined as shown in FIG. 4, and the gate circuit 11 is controlled. In this manner, when the data signal is "0", the first half bit of the CMI code block is determined regardless of the holding level when the data signal was "1" immediately before.

次に、データ信号が“1”の場合のCMI符号
のブロツクの前半ビツトのレベル判定手順につい
て述べる。データ信号“1”が入力された場合
は、CRV信号と、直前のデータ信号“1”を
CMI符号化した時レベルすなわちデータ“1”
時のレベル記憶回路7で保持している内部レベル
とにより、現在入力されたデータ信号“1”を
“00”または“11”のどちらのレベルで符号化す
るかを判定し、その判定結果に対して、データ信
号“0”のときと同様にして、出力反転回路13
で保持している内部レベルである1ビツト前のデ
ータ信号におけるCMI符号のブロツクの後半ビ
ツトレベルに対して反転するかしないかを第4図
の表に示すように判定してゲート回路11を制御
する。
Next, a procedure for determining the level of the first half of the CMI code block when the data signal is "1" will be described. When the data signal “1” is input, the CRV signal and the previous data signal “1” are input.
Level when CMI encoded, that is, data “1”
Based on the internal level held in the current level storage circuit 7, it is determined whether the currently input data signal "1" should be encoded at the level "00" or "11", and the determination result is On the other hand, in the same way as when the data signal is "0", the output inverting circuit 13
The gate circuit 11 is controlled by determining whether or not the second half bit level of the block of CMI code in the data signal one bit earlier, which is the internal level held by the bit, is inverted or not, as shown in the table of FIG. .

次に、データ信号が“0”の場合のCMI符号
のブロツクの後半ビツトのレベル判定手順につい
て述べる。データ信号“0”をCMI符号化する
場合CMI符号化“01”(符号則違反をおこす場合
は“10”)の後半ビツトのレベル“1”(符号則違
反をおこす場合は“0”)は前半ビツトのレベル
“0”(符号則違反をおこす場合は“1”)に対し
て反転する必要があるので、第5図1行目のよう
にゲート回路11を開きクロツクパルスを上記出
力反転回路13に出力して、上述のようにしてす
でに出力し出力反転回路13に保持されている前
半ビツトのレベルを反転してCMI符号のブロツ
クの後半ビツトを出力する。
Next, a procedure for determining the level of the second half bit of a CMI code block when the data signal is "0" will be described. When data signal “0” is CMI encoded, the level “1” of the second half bit of CMI encoding “01” (“10” when violation of coding rules occurs) (“0” when violation of coding rules) is Since it is necessary to invert the level "0" of the first half bit ("1" if a violation of the sign rule occurs), the gate circuit 11 is opened as shown in the first line of FIG. 5, and the clock pulse is transferred 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”の場合における後半ビツ
トのレベル判定手順について述べる。データ信号
“1”をCMI符号化する場合、CMI符号の後半ビ
ツトのレベルは前半ビツトのレベルと同じレベル
であるので、第5図2行目のようにゲート回路1
1を閉じて出力反転回路13に保持されている内
部レベルをそのまま出力する。
Next, the procedure for determining the level of the second half bit in the case of the data signal "1" will be described. When data signal "1" is CMI encoded, the level of the second half bit of the CMI code is the same as the level of the first half bit, so the gate circuit 1 is encoded as shown in the second line of FIG.
1 is closed and the internal level held in the output inversion circuit 13 is output as is.

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

第2図は第1図に示したブロツク図の一実施例
の回路を示し、21はNRZ符号等のデータ信号
入力端子であり、22はNRZ符号のCRV信号入
力端子であり、23は上記2種の信号と同期した
クロツク信号の入力端子である。フリツプフロツ
プ25,26でデータ信号の上記ラツチ・遅延回
路5を形成し、フリツプフロツプ27はCRV信
号の上記ラツチ回路6である。NANDゲート2
9,30,31,32およびフリツプフロツプ3
4,35で上記後半ビツトレベル判定回路9を形
成し、ANDゲート37およびフリツプフロツプ
38,39で上記データ“1”時のレベル記憶回
路7を形成する。また、EX−Oゲート41およ
びパリテイチエツク回路42は上記判定回路10
の一部を形成し、ANDゲート44,45,46
は判定回路10兼クロツクパルスの上記ゲート回
路11を形成する。フリツプフロツプ48,4
9,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, where 21 is a data signal input terminal for NRZ code, etc., 22 is a CRV signal input terminal for NRZ code, and 23 is the above-mentioned 2. This is an input terminal for a clock signal synchronized with the seed signal. Flip-flops 25 and 26 form the aforementioned latch/delay circuit 5 for the data signal, and flip-flop 27 is the aforementioned latch circuit 6 for the CRV signal. NAND gate 2
9, 30, 31, 32 and flip-flop 3
4 and 35 form the second half bit level determination circuit 9, and AND gate 37 and flip-flops 38 and 39 form the level storage circuit 7 when the data is "1". Further, the EX-O gate 41 and the parity check circuit 42 are connected to the determination circuit 10.
AND gates 44, 45, 46
forms the judgment circuit 10 and the gate circuit 11 of the clock pulse. flipflop 48,4
9, 50 and the parity check circuit 51 form an output inversion circuit 13, and flip-flops 53,
54, 55 and an EX-OR gate 56 form the storage circuit 14 which compares and determines the latter half bits of the block of CMI codes. The EX-OR gate 57 is the phase control circuit 15, and also the EX-OR gate 57 is the phase control circuit 15.
Gates 58 and 59 are circuits that output the clock signal and its inverted signal so that there is no difference in gate delay, and 60 is a CMI code output terminal.

ここで、上記パリテイチエツク回路42,51
は、入力A,B,Cのうちレベル“1”である信
号が偶数個(0または2)であればレベル“1”
を、また奇数個(1または3)であればレベル
“0”を出力端子ΣEVENから出力する。すなわ
ち、入力端子A,B,Cのうちどれか1つの入力
レベルが反転したときに、出力端子ΣEVENから
の出力レベルを反転する回路である。
Here, the parity check circuits 42, 51
is level “1” if there is an even number of signals (0 or 2) that are level “1” among inputs A, B, and C.
If there is an odd number (1 or 3), level "0" is output from the output terminal ΣEVEN. That is, the circuit inverts the output level from the output terminal ΣEVEN when the input level of any one of the input terminals A, B, and C is inverted.

この実施例における第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〜Oで示した各部
の信号を表示した図である。図中CRV信号Bと
クロツク信号Cとの間に示した信号A+Bは上記
データ信号AとCRV信号Bとの論理和であり、
この信号A+BをCMI符号化した信号が求める
出力信号Oである。ここで信号A+Bのうち
“K”はデータ信号“0”のCMI符号則違反信号
を示し、“J”はデータ信号“1”のCMI符号則
違反信号を示す。また、出力信号Oの下にCMI
符号化前の信号A+Bを並列して示した。
FIG. 3 is a diagram showing signals of each part indicated by A to O in FIG. 2. The signal A+B shown between the CRV signal B and the clock signal C in the figure is the logical sum of the data signal A and CRV signal B,
The signal obtained by CMI encoding this signal A+B is the desired output signal O. Here, among the signals A+B, "K" indicates a CMI coding rule violation signal of the data signal "0", and "J" indicates a CMI coding rule violation signal of the data signal "1". Also, below the output signal O, CMI
Signals A+B before encoding are shown in parallel.

換言すれば、この発明は、データ信号Aを符号
則違反信号Bに従つて、連続した2ビツトのブロ
ツク列であるCMI符号信号Oに符号化するに際
し、上記データ信号AとCRV信号Bと直前のデ
ータ信号“1”におけるCMI符号レベル信号G
と1ビツト前のデータ信号におけるCMI符号の
後半ビツトレベル信号Iとに基づいて、今出力し
ようとしているCMI符号のブロツクの1ビツト
のレベルは、直前に出力した1ビツトのレベルを
反転して出力すべきか否かを順次1ビツトずつ判
定して出力する。したがつて2種の信号を合成す
るために同期をとる必要がなく、グリツチが発生
しない。
In other words, when encoding data signal A into CMI code signal O, which is a continuous 2-bit block string, in accordance with coding rule violation signal B, the present invention provides a system that CMI code level signal G at data signal “1” of
Based on the second half bit level signal I of the CMI code in the data signal 1 bit before, the level of 1 bit of the block of CMI code that is about to be output is determined by inverting the level of the 1 bit output just before. It sequentially determines whether the data is valid or not, one bit at a time, and outputs it. Therefore, there is no need to synchronize two types of signals in order to synthesize them, and glitches do not occur.

<発明の効果> 以上より明らかなように、この発明のCMI符
号化回路は、1ビツト前のデータ信号に対する2
ビツトのブロツクの後半ビツトのレベルを判定・
保持し、この1ビツト前のデータ信号に対する後
半ビツトのレベル信号と、直前のデータ信号
“1”のときのレベル信号と、2値化された1ビ
ツトのデータ信号と、符号則違反信号とに基づい
て、判定回路によつて次に出力すべき出力レベル
を反転するか否かを判定して、この判定結果によ
り出力反転回路によつて予め保持している直前に
出力した信号のレベルを、反転あるいは非反転し
て出力するようにしたので、CMI信号を作成す
るために2種以上の信号を同期をとつて合成する
必要がなく、回路内の各信号のゲート遅延には関
係なくグリツチが発生するのを確実に防ぐことが
できる。したがつて、温度変化によるゲート遅延
量の変化の激しい場所での伝送装置内に使用する
ことができ、従来の素子のままで容易に高速化す
ることができる。
<Effects of the Invention> As is clear from the above, the CMI encoding circuit of the present invention has two
Determine the level of the second half of the bit block.
The second half bit level signal for the data signal one bit before, the level signal when the previous data signal is "1", the binarized 1-bit data signal, and the coding rule violation signal are used. Based on this, the determination circuit determines whether or not to invert the output level to be output next, and based on the determination result, the level of the signal output just before, which is held in advance by the output inversion circuit, is Since the output is inverted or non-inverted, there is no need to synchronize and synthesize two or more types of signals to create a CMI signal, and glitches are eliminated regardless of the gate delay of each signal in the circuit. This can definitely be prevented from occurring. 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 drawings]

第1図はこの発明のCMI符号化回路の一実施
例を示すブロツク図、第2図は上記実施例の回路
図、第3図は後半ビツトレベル判定回路の動作を
示す図、第4図は判定回路の後半ビツトから前半
ビツトを判定する動作を示す図、第5図は判定回
路の前半ビツトから後半ビツトを判定する動作を
示す図、第6図は第2図の回回路図における各部
の信号のタイミングチヤート、第7図は従来の
CMI符号化回路のブロツク図、第8図は上記従
来例の回路図、第9図は第8図の回路図における
各部の信号のタイミングチヤートである。 1…データ信号入力端子、二KlCRV信H入力
端子、7…データ“1”時のレベル記憶回路、9
…後半ビツトレベル判定回路、10…判定回路、
13…出力反転回路、14…比較回路、15…位
相制御回路。
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 judgment circuit, and Fig. 4 is a judgment A diagram showing the operation of determining the first half bit from the second half bit of the circuit, FIG. 5 is a diagram showing the operation of determining the second half bit from the first half bit of the determination circuit, and FIG. 6 shows the signals of each part in the circuit diagram of FIG. 2. Figure 7 is the timing chart for the conventional
FIG. 8 is a block diagram of the CMI encoding circuit, FIG. 8 is a circuit diagram of the conventional example, and FIG. 9 is a timing chart of signals at various parts in the circuit diagram of FIG. 1...Data signal input terminal, 2.KlCRV signal H input terminal, 7...Level storage circuit when data is "1", 9
... second half bit level judgment circuit, 10... judgment circuit,
13... Output inversion circuit, 14... Comparison circuit, 15... Phase control circuit.

Claims (1)

【特許請求の範囲】 1 2値化された1ビツトのデータ信号を、符号
則違反を指示する符号則違反信号に基づいて、符
号則違反を有する2ビツトのブロツクに符号化す
るCMI符号化回路において、 上記データ信号と上記符号則違反信号とに基づ
いて、上記データ信号“1”を上記2ビツトのブ
ロツクに符号化したときのレベルを保持するデー
タ“1”時のレベル記憶回路と、 上記データ“1”時のレベル記憶回路で保持し
ている直前のデータ信号“1”のときのレベル
と、上記データ信号と、上記符号則違反信号とに
基づいて、上記1ビツトのデータ信号を上記2ビ
ツトのブロツクに符号化するときの各ブロツクの
後半ビツトのレベルを判定して保持する後半ビツ
トレベル判定回路と、 上記データ“1”時のレベル記憶回路で保持し
ている上記直前のデータ信号“1”のときのレベ
ル信号と、上記後半ビツトレベル判定回路で判定
て保持している1ビツト前のデータ信号に対する
2ビツトのうちの後半ビツトのレベル信号と、上
記データ信号と、上記符号則違反信号とに基づい
て、出力レベルを反転するか否かを判定して、反
転する必要がある場合に反転信号を出力する判定
回路と、 上記判定回路からの反転信号に基づいて、上記
出力レベルを反転させるクロツク信号を制御する
ゲート回路と、 上記ゲート回路から出力される上記クロツク信
号に基づいて、予め保持している直前に出力した
信号のレベルを反転して出力する出力反転回路
と、 上記後半ビツトレベル判定回路から出力される
上記2ビツトのブロツクに符号化するときの後半
ビツトの判定レベルと、上記出力反転回路から出
力される2ビツトのうちの後半ビツトのレベルと
を比較して、上記判定レベルと後半ビツトのレベ
ルとが異なる場合に信号を出力する比較回路と、 上記比較回路から上記判定レベルと後半ビツト
のレベルとが異なることを表わす信号が出力され
たとき、上記出力反転回路から出力される信号の
位相を逆転させる位相制御回路とを備えたことを
特徴とするCMI符号化回路。
[Claims] 1. 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. a level storage circuit for storing the level when the data signal is "1", which holds the level when the data signal "1" is encoded into the 2-bit block based on the data signal and the coding rule violation signal; Based on the level at the time of the previous data signal "1" held in the level storage circuit at the time of data "1", the above data signal, and the above code rule violation signal, the above 1-bit data signal is A second half bit level determination circuit that determines and holds the level of the second half bit of each block when encoding into a 2-bit block, and the immediately preceding data signal held in the level storage circuit when the data is "1". 1'' level signal, 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, 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 above and outputs an inverted signal when inversion is necessary; and a determination circuit that inverts the output level based on the inverted signal from the determination circuit. a gate circuit for controlling the clock signal outputted from the gate circuit; an output inversion circuit for inverting and outputting the previously held level of the previously output signal based on the clock signal outputted from the gate circuit; The judgment level of the latter half of the 2-bit block outputted from the judgment circuit is compared with the level of the latter half of the 2 bits output from the output inversion circuit, and the judgment level is determined. a comparator circuit that outputs a signal when the level of the second half bit differs 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 JPS63142744A (en) 1988-06-15
JPH0462625B2 true 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
JPS63142744A (en) 1988-06-15

Similar Documents

Publication Publication Date Title
US5023891A (en) Method and circuit for decoding a Manchester code signal
US4542420A (en) Manchester decoder
US4502143A (en) Consecutive identical digit suppression system in a digital communication system
JP3433426B2 (en) Method and apparatus for decoding Manchester encoded data
EP0059224B1 (en) System for coding and decoding binary data
US4325053A (en) Method and a circuit for decoding a C.M.I. encoded binary signal
US6195025B1 (en) Method and means for invertibly mapping binary sequences into rate 2/3 (1,K) run-length-limited coded sequences with maximum transition density constraints
US4740998A (en) Clock recovery circuit and method
US4617553A (en) Enhanced Miller code
US4502036A (en) Encoding and decoding systems for binary data
JPH0654475B2 (en) Device for detecting transition error
JPH0462503B2 (en)
KR890009127A (en) Frame Synchronization Method and System
JPH0462625B2 (en)
JPS63257333A (en) Code reader for cmi encoded signal
JPH0695643B2 (en) CMI coding circuit
JPS62274948A (en) Frame synchronizing system
JP2606194B2 (en) Digital signal transmission equipment
JPH0462624B2 (en)
US6492919B2 (en) Circuit system suitable for codifying NRZ type binary signals into CMI type binary signals
JPH0370414B2 (en)
JPS6352809B2 (en)
JP2668901B2 (en) Encoding device
KR910009093B1 (en) Coded mark inversion coding circuit
KR910008256Y1 (en) Circuit for removing glitch using cmi type data transfer