JPH0511474B2 - - Google Patents

Info

Publication number
JPH0511474B2
JPH0511474B2 JP59186382A JP18638284A JPH0511474B2 JP H0511474 B2 JPH0511474 B2 JP H0511474B2 JP 59186382 A JP59186382 A JP 59186382A JP 18638284 A JP18638284 A JP 18638284A JP H0511474 B2 JPH0511474 B2 JP H0511474B2
Authority
JP
Japan
Prior art keywords
circuit
output
serial
counting
error correction
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
JP59186382A
Other languages
Japanese (ja)
Other versions
JPS6165680A (en
Inventor
Toshuki Kurita
Tsukasa Yamada
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.)
Hitachi Ltd
Japan Broadcasting Corp
Original Assignee
Hitachi Ltd
Nippon Hoso Kyokai NHK
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 Hitachi Ltd, Nippon Hoso Kyokai NHK filed Critical Hitachi Ltd
Priority to JP59186382A priority Critical patent/JPS6165680A/en
Publication of JPS6165680A publication Critical patent/JPS6165680A/en
Publication of JPH0511474B2 publication Critical patent/JPH0511474B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明はいわゆる巡回符号を用いた誤り訂正回
路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Application of the Invention] The present invention relates to an error correction circuit using a so-called cyclic code.

〔発明の背景〕[Background of the invention]

第1図は一般的な誤り訂正方式の一例を示すブ
ロツク図であり、いわゆる文字コード放送(山田
他1:「文字コード放送用誤り訂正符号の野外実
験結果」テレビ学技報ICS61−2,p55,58/5を
参照されたい)と呼ばれる放送方式の場合につい
て示したものである。
Figure 1 is a block diagram showing an example of a general error correction system, which is used for so-called character code broadcasting (Yamada et al. 1: "Results of Field Experiments on Error Correction Codes for Character Code Broadcasting", Television Science and Technology Journal ICS61-2, p. 55). , 58/5).

第1図において、1は文字コード信号として受
信した受信系列を入力する入力端子、2は受信系
列を一時貯えておくための受信バツフア、3はデ
ータのやりとりを行なうためのデータバス、4は
受信バツフア2から読み出された受信系列の伝送
誤りを訂正するための誤り訂正回路、5はシステ
ム全体を制御するための中央演算制御装置(以
下、CPUと略記する)、6は誤り訂正回路4によ
り誤り訂正された後の受信系列を記憶しておくた
めの記憶回路(以下、RAMと略記する)、7は
CPU5を制御するための制御命令を貯えておく
ための記憶回路(以下、ROMと略記する)であ
る。
In Figure 1, 1 is an input terminal for inputting the received sequence received as a character code signal, 2 is a receiving buffer for temporarily storing the received sequence, 3 is a data bus for exchanging data, and 4 is a receiving terminal. An error correction circuit for correcting transmission errors in the received sequence read out from the buffer 2; 5 a central processing control unit (hereinafter abbreviated as CPU) for controlling the entire system; 6 an error correction circuit 4; 7 is a storage circuit (hereinafter abbreviated as RAM) for storing the received sequence after error correction;
This is a storage circuit (hereinafter abbreviated as ROM) for storing control instructions for controlling the CPU 5.

次に、第1図における動作説明をする。 Next, the operation in FIG. 1 will be explained.

文字コード信号は、放送局より時系列に順次送
信され、受信側で受信系列として受信される。そ
の際、受信系列は受信されながら同時に入力端子
1を介して受信バツフア2の中へ書き込まれる。
受信バツフア2の中に書き込まれた受信系列は、
伝送途中で発生した誤りを含んだままである。し
たがつて、CPU5は受信系列を誤り訂正するた
めに誤り訂正回路4に書き込むよう制御する。受
信系列が全て誤り訂正回路4に書き込まれた後、
CPU5は誤り訂正回路4に対し誤り訂正命令を
出す。この誤り訂正命令により、誤り訂正回路4
は受信系列の誤りを訂正して誤りのない受信系列
を出力する。CPU5は、誤り訂正回路4によつ
て訂正された受信系列をデータバス3を介して読
み取りRAM6へ書き込むよう制御する。以上が
第1図における動作であるが、誤り訂正回路4に
ついて更に詳しく説明する。
Character code signals are sequentially transmitted in time series from a broadcasting station, and are received as a reception series on the receiving side. In this case, the received sequence is written into the receiving buffer 2 via the input terminal 1 at the same time as it is being received.
The reception sequence written in reception buffer 2 is
It still contains errors that occurred during transmission. Therefore, the CPU 5 controls the received sequence to be written into the error correction circuit 4 in order to correct the error. After all received sequences are written into the error correction circuit 4,
The CPU 5 issues an error correction command to the error correction circuit 4. This error correction command causes the error correction circuit 4
corrects errors in the received sequence and outputs an error-free received sequence. The CPU 5 controls the received sequence corrected by the error correction circuit 4 to be read via the data bus 3 and written into the RAM 6. The operation in FIG. 1 has been described above, and the error correction circuit 4 will be explained in more detail.

第2図は従来の誤り訂正回路を示すブロツク図
である。
FIG. 2 is a block diagram showing a conventional error correction circuit.

第2図において、11は8ビツトの入力バツフ
ア、12は誤り訂正回路4の基本動作クロツク信
号、13はクロツク信号12から誤り訂正回路全
体の制御タイミングを発生させるタイミング発生
回路、14は入力バツフア11の出力でデータバ
ス3を介して書かれたデータが保持されている。
15はデータ14の並列入力を並直列変換し、ま
たER回路19の出力を直並列変換する並直列
変換・直並列変換兼用回路、16は並直列変換回
路15の出力を直列に272ビツト記録するシフト
レジスタ回路、17はシンドロームレジスタであ
り、並直列変換回路15からの出力を入力し誤り
検出するためにいわゆるシンドロームといわれる
系列を計算、記憶した後その計算結果を出力する
ものである。18はシンドロームレジスタ17の
出力から誤り検出を行なう誤り検出回路、19は
誤り検出回路18とシフトレジスタ16とのE
R(排他的論理和)をとるER回路、20は直
並列変換回路15の出力を保持しバツフアする8
ビツトの出力バツフアである。
In FIG. 2, 11 is an 8-bit input buffer, 12 is a basic operation clock signal for the error correction circuit 4, 13 is a timing generation circuit that generates control timing for the entire error correction circuit from the clock signal 12, and 14 is an input buffer 11. The data written via the data bus 3 is held at the output.
15 is a parallel/serial/serial/parallel conversion circuit that converts the parallel input of data 14 into parallel and serial, and converts the output of the ER circuit 19 into serial/parallel; 16 records the output of the parallel/serial converter 15 in 272 bits in series; The shift register circuit 17 is a syndrome register, which inputs the output from the parallel-to-serial conversion circuit 15, calculates and stores a series called a syndrome for error detection, and then outputs the calculation result. 18 is an error detection circuit that detects errors from the output of the syndrome register 17; 19 is an E between the error detection circuit 18 and the shift register 16;
ER circuit that takes R (exclusive OR); 20 holds and buffers the output of the serial-to-parallel conversion circuit 15;
This is a bit output buffer.

次に、第2図における動作説明をする。 Next, the operation in FIG. 2 will be explained.

まずCPU5が受信バツフア2から受信系列を
8ビツトずつ並列に読み出しデータバス3を介し
て入力バツフア11へ書き込むよう制御する。次
に、CPU5は入力バツフア11を介してタイミ
ング発生回路13を動作させ、8ビツト並列のデ
ータ14を並直列変換回路15により直列に変換
し1ビツトずつシフトレジスタ16およびシンド
ロームレジスタ17へそれぞれ順次直列に8ビツ
ト書き込むよう制御する。
First, the CPU 5 controls the reception buffer 2 to read out the received sequence in parallel, 8 bits at a time, and write it to the input buffer 11 via the data bus 3. Next, the CPU 5 operates the timing generation circuit 13 via the input buffer 11, converts the 8-bit parallel data 14 into serial data by the parallel-to-serial conversion circuit 15, and sequentially serializes the data bit by bit to the shift register 16 and syndrome register 17. Control is performed so that 8 bits are written to.

ところで、文字コード信号は第3図に示される
ようなパケツト形式をとつている。
By the way, the character code signal has a packet format as shown in FIG.

第3図は文字コード信号を示す模式図である。 FIG. 3 is a schematic diagram showing a character code signal.

第3図に示す様に、1パケツトは272ビツトか
らなつており、そのパケツトの内容は8ビツトの
SI/IN、6ビツトのPC、22バイトの文字符号、
そして誤り訂正用のパリテイ82ビツトで構成され
ている。ここで、SI/IN、PCはそれぞれパケツ
ト制御符号である。1パケツトが272ビツトであ
るから、1パケツト分のデータをシフトレジスタ
16に全て書き込むためには、272÷8=34より、
34回の書き込みがなされればよいことになる。
As shown in Figure 3, one packet consists of 272 bits, and the content of the packet consists of 8 bits.
SI/IN, 6-bit PC, 22-byte character code,
It consists of 82 bits of parity for error correction. Here, SI/IN and PC are packet control codes, respectively. Since one packet is 272 bits, in order to write all the data for one packet to the shift register 16, from 272÷8=34,
It is enough if the data is written 34 times.

さて、次に、1パケツト分のデータ272ビツト
がシフトレジスタ16に書き込まれた後、CPU
5は誤り訂正回路4に対し誤り訂正命令を出力す
る。誤り訂正命令は入力バツフア11を介しタイ
ミング発生回路13を制御する。そして、シンド
ロームレジスタ17の出力を誤り検出回路18で
判定することにより、シフトレジスタ16の先頭
ビツトに誤りがあるかどうかを検出する。誤りが
ある場合には誤り検出回路18の出力が“H”レ
ベルになり、EOR回路19によりシフトレジス
タ回路16の先頭ビツトが反転されて直並列変換
回路15へ送られる。また、誤りのない場合には
誤り検出回路18の出力が“L”レベルとなり、
その為、EOR回路19によりシフトレジスタ回
路16の先頭ビツトはそのまま直並列変換回路1
5へ送られる。このようにして、CPU5から誤
り訂正命令が1回送られると8ビツトのデータが
誤り訂正されて直並列変換回路15へ送られ、直
並列変換される。その後、8ビツト並列の直並列
変換回路15からの出力は出力バツフア20を介
してデータバス3へ読み出される。以上の動作が
誤り訂正命令が送られる度に行われ、1パケツト
分のデータが全てシフトレジスタ16から読み出
されるまで読けられる。この様な誤り訂正回路4
により誤り訂正された受信系列はRAM6へ送ら
れる。以上が第2図に示した誤り訂正回路の説明
である。
Next, after the 272-bit data for one packet is written to the shift register 16, the CPU
5 outputs an error correction command to the error correction circuit 4. The error correction command controls the timing generation circuit 13 via the input buffer 11. Then, by determining the output of the syndrome register 17 with an error detection circuit 18, it is detected whether or not there is an error in the first bit of the shift register 16. If there is an error, the output of the error detection circuit 18 becomes "H" level, and the first bit of the shift register circuit 16 is inverted by the EOR circuit 19 and sent to the serial/parallel conversion circuit 15. In addition, if there is no error, the output of the error detection circuit 18 becomes "L" level,
Therefore, the first bit of the shift register circuit 16 is directly transferred to the serial/parallel converter circuit 1 by the EOR circuit 19.
Sent to 5. In this way, when an error correction command is sent from the CPU 5 once, the 8-bit data is error-corrected and sent to the serial/parallel conversion circuit 15, where it is serial-parallel converted. Thereafter, the output from the 8-bit parallel serial/parallel conversion circuit 15 is read out to the data bus 3 via the output buffer 20. The above operations are performed every time an error correction command is sent, and data for one packet is read out until all the data is read out from the shift register 16. Such error correction circuit 4
The error-corrected received sequence is sent to the RAM 6. The above is the explanation of the error correction circuit shown in FIG.

このような従来の誤り訂正回路においては以下
に示すような欠点があつた。
Such conventional error correction circuits have the following drawbacks.

第4図a及びbはそれぞれ第3図に示す文字コ
ード信号が記憶される際の記憶形態を示す模式図
である。
FIGS. 4a and 4b are schematic diagrams each showing a storage format when the character code signal shown in FIG. 3 is stored.

受信系列は第3図に示す様な伝送形態をとつて
おり、また、誤り訂正符号としては連続したもの
でなければならないので、受信バツフア2には第
4図aの形で記憶されている。この内で制御符号
PCは6ビツトのためにその後の全データが2ビ
ツトずつシフトされてしまう。したがつて、誤り
訂正回路4によつて訂正された受信系列も第4図
aと同じ形で出力され、そのためRAM6に記憶
される形も第4図aの形式となつてしまう。しか
しながら、このままの形ではこれらの情報を文字
コード信号として扱うことができないため、一度
第4図bのような形、即ち、SI/IN,PC,文字
符号1、文字符号2…と順にそれぞれ1バイトず
つ与えて記憶する形態に直す必要があつた。この
処理はCPU5を用いて行い、文字符号22バイト
全てを処理しなければならないので、かなり
CPU5の能力をシフト処理として使用しなけれ
ばならないという欠点があつた。またハードウエ
アで処理する場合にもRAM6から読み出してシ
フト処理後新ためてRAM6に書き込まなければ
ならなくかなりの規模の回路を必要とするという
欠点があつた。
The received sequence has a transmission form as shown in FIG. 3, and since the error correction code must be continuous, it is stored in the reception buffer 2 in the form shown in FIG. 4a. Control code within this
Since the PC is 6 bits, all subsequent data is shifted 2 bits at a time. Therefore, the received sequence corrected by the error correction circuit 4 is also output in the same form as shown in FIG. 4a, and therefore the form stored in the RAM 6 is also in the form shown in FIG. 4a. However, since these pieces of information cannot be treated as character code signals in their current form, they are first converted into the form shown in Figure 4b, that is, SI/IN, PC, character code 1, character code 2, and so on. It was necessary to change the format to one where bytes are given and memorized. This processing is done using CPU5, and all 22 bytes of character code must be processed, so it is quite time consuming.
The disadvantage was that the CPU 5's capacity had to be used for shift processing. Further, when processing with hardware, there is a drawback that the data must be read from the RAM 6 and then written to the RAM 6 anew after the shift processing, which requires a fairly large circuit.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、上記した従来技術の欠点をな
くし、回路規模の増大を招くことなしに、可変長
のデータより成る符号語を各まとまり毎に順に所
定ビツトずつ与えてRAMに記憶するようにする
ことができる誤り訂正回路を提供することにあ
る。
An object of the present invention is to eliminate the above-mentioned drawbacks of the prior art, and to provide a code word consisting of variable-length data in sequence by giving a predetermined bit to each group and storing it in a RAM without causing an increase in circuit scale. The object of the present invention is to provide an error correction circuit that can perform the following steps.

〔発明の概要〕 上記した目的を達成するため、本発明では、直
並列変換回路の変換のタイミングに同期してシフ
トレジスタから該タイミング1回当りについて読
み出される直列ビツト数を可変的に予め設定する
手段と、設定された該ビツト数に従つて前記シフ
トレジスタから前記タイミング1回当りについて
読み出されるデイジタル信号のビツト数を制御す
る手段とを具備するようにした。
[Summary of the Invention] In order to achieve the above-mentioned object, the present invention variably presets the number of serial bits to be read out from the shift register at each timing in synchronization with the conversion timing of the serial-to-parallel conversion circuit. and means for controlling the number of bits of the digital signal read out from the shift register per timing according to the set number of bits.

〔発明の実施例〕[Embodiments of the invention]

第5図は本発明の一実施例を示すブロツク図で
ある。
FIG. 5 is a block diagram showing one embodiment of the present invention.

第5図において、従来技術で説明した第2図に
示したと同じ機能を果すものには第2図と同一の
番号をつけてある。また、第5図で、41はタイ
ミング発生回路13のタイミングを制御するため
のデータを記録するレジスタ回路、42はレジス
タ回路41の出力、43はタイミング発生回路1
3の出力、44はクリア信号である。
In FIG. 5, parts that perform the same functions as those shown in FIG. 2 and described in the prior art are given the same numbers as in FIG. 2. In FIG. 5, 41 is a register circuit for recording data for controlling the timing of the timing generation circuit 13, 42 is the output of the register circuit 41, and 43 is the timing generation circuit 1.
The output of 3 and 44 are clear signals.

本実施例について詳細に説明する前に、まず、
第2図または第5図に示すシフトレジスタ16及
び直並列変換回路15の本発明に関連した動作に
ついて説明する。(尚、該回路は並直列・直並列
変換兼用の回路であるが、以下の説明は直並列変
換の場合についてのみ説明するものとする。) タイミング発生回路13からの出力はパルス列
からなり、シフトレジスタ16及び直並列変換回
路15にそれぞれ入力されている(尚、シンドロ
ームレジスタ17にも入力されているが、以下の
説明には直接関連はない。)。
Before explaining this example in detail, first,
The operations of the shift register 16 and serial/parallel conversion circuit 15 shown in FIG. 2 or 5 in relation to the present invention will be described. (Although this circuit is a circuit that is used for both parallel-to-serial and serial-to-parallel conversion, the following explanation will be made only for the case of serial-to-parallel conversion.) The output from the timing generation circuit 13 consists of a pulse train, and the shift It is input to the register 16 and the serial/parallel converter circuit 15, respectively (it is also input to the syndrome register 17, but it is not directly related to the following explanation).

シフトレジスタ16ではタイミング発生回路1
3から1パルス入力される度に情報(この場合、
文字コード信号)を1ビツトずつ順次出力する。
In the shift register 16, the timing generation circuit 1
Every time one pulse is input from 3, information (in this case,
Character code signal) is output one bit at a time.

また、直並列変換回路15では、タイミング発
生回路13から1パルス入力される度に、シフト
レジスタ16からくる1ビツトの情報を入力する
と同時に、先に入力されている情報を1ビツトず
つ直列にシフトしている。ただし、直並列変換回
路15では、出力端が8ビツト分の情報を出力す
る機能しかない為、8段階以上シフトされた情報
は順次消去されていく。
Furthermore, each time one pulse is input from the timing generation circuit 13, the serial/parallel conversion circuit 15 inputs one bit of information coming from the shift register 16, and at the same time shifts the previously input information serially one bit at a time. are doing. However, since the output end of the serial/parallel conversion circuit 15 only has the function of outputting 8 bits of information, information shifted by 8 or more steps is sequentially erased.

この様にして直並列変換回路15に入力された
情報はある時刻taにおいて並列に出力される。す
なわち、時刻taにおいて、そのときの内部に存在
する情報(8ビツト分の情報)を全て一度に出力
する。但し、情報が出力されることによつて、内
部に存在する情報が消減するわけではなく、新た
に情報が入力されてシフトされない限りその状態
のままである。また、直並列変換回路15からの
情報が出力されるタイミング(時刻ta)は周期的
であり、タイミング発生回路13からの出力と同
期している。
The information input to the serial/parallel conversion circuit 15 in this manner is output in parallel at a certain time t a . That is, at time ta , all the information (8 bits worth of information) existing internally at that time is output at once. However, by outputting information, the information existing inside does not disappear; it remains in that state unless new information is input and shifted. Further, the timing (time ta ) at which the information from the serial/parallel conversion circuit 15 is output is periodic and synchronized with the output from the timing generation circuit 13.

では、本実施例の動作について、従来技術と比
較しながら説明する。
Now, the operation of this embodiment will be explained while comparing it with the conventional technology.

第6図aは従来のタイミング発生回路の出力波
形を示す波形図、第6図bは本発明によるタイミ
ング発生回路の出力とそれによつてシフトレジス
タから読み出される文字コード信号との関係を説
明するための説明図である。
FIG. 6a is a waveform diagram showing the output waveform of a conventional timing generation circuit, and FIG. 6b is for explaining the relationship between the output of the timing generation circuit according to the present invention and the character code signal read out from the shift register. FIG.

第6図bにおいて、イはタイミング発生回路の
出力、ロは文字コード信号を示す。
In FIG. 6b, A indicates the output of the timing generation circuit, and B indicates the character code signal.

従来では、第6図aに示す様に、タイミング発
生回路13からは常に8パルスが周期Tで繰り返
し出力されるようになつている。従つて、前述し
た様に、直並列変換回路15では、時間t1の間に
シフトレジスタ16から読み出された8ビツトの
情報が順次入力されるとともにシフトされ、時間
t2の間のある時刻taにおいて、それら8ビツトの
情報が並列に出力されることになる。
Conventionally, as shown in FIG. 6a, the timing generation circuit 13 always repeatedly outputs eight pulses at a period T. Therefore, as described above, in the serial-to-parallel conversion circuit 15, the 8-bit information read out from the shift register 16 during time t1 is sequentially input and shifted, and
At a certain time ta between t2 , these 8 bits of information are output in parallel.

本実施例では、この様なタイミング発生回路1
3からの出力を第6図bのイに示す様に変えてみ
た。すなわち、後述の如くタイミング発生回路1
3及びレジスタ回路41を動作させることによ
り、従来、周期Tで常に8パルスを繰り返し出力
していたのを、「PC」の情報に対応するときだけ
6パルスにて出力するようにした。
In this embodiment, such a timing generation circuit 1 is used.
I tried changing the output from 3 as shown in A of Figure 6b. That is, as described later, the timing generation circuit 1
By operating the register circuit 3 and the register circuit 41, it is possible to output 6 pulses only when corresponding to the information of "PC", instead of the conventional method of repeatedly outputting 8 pulses with a cycle T.

以下、第6図bを用いて、シフトレジスタ16
及び直並列回路15の動作について説明する。
Hereinafter, using FIG. 6b, the shift register 16
and the operation of the series/parallel circuit 15 will be explained.

最初の8パルスにより、直並列変換回路15に
は、シフトレジスタ16から読み出された8ビツ
トの情報、すなわち「SI/IN」の情報が順次入
力される。そして時間t2の間のある時刻taにおい
て「SI/IN」の8ビツトの情報が並列に出力さ
れる。尚、前述したように、並列に情報が出力さ
れた後も、「SI/IN」の8ビツトの情報は直並列
変換回路15の内部に残つている。
The first eight pulses sequentially input the 8-bit information read from the shift register 16, that is, the "SI/IN" information, to the serial/parallel conversion circuit 15. Then, at a certain time ta during time t2 , 8-bit information of "SI/IN" is output in parallel. As described above, even after the information is output in parallel, the 8-bit information of "SI/IN" remains inside the serial/parallel conversion circuit 15.

次に、タイミング発生回路13からは6パルス
が出力される。これにより、シフトレジスタ16
からは従来の様に8ビツトの情報ではなく「PC」
の6ビツトの情報しか読み出されないことにな
る。すなわち、直並列変換回路15には、6ビツ
トの「PC」の情報しか入力されなくなる為、回
路内部では6段階しかシフトされず、従つて、前
の「SI/IN」の情報のうち下位2ビツトの情報
は消去されず残ることになる。従つて、直並列変
換回路15では、時間t2の間のある時刻taにおい
て、「SI/IN」のうち下位2ビツトの情報と、
「PC」の6ビツトの情報とが並列に出力されるこ
とになる。
Next, six pulses are output from the timing generation circuit 13. As a result, the shift register 16
From now on, instead of 8-bit information as in the past, "PC"
Only 6 bits of information will be read out. In other words, since only 6-bit "PC" information is input to the serial/parallel conversion circuit 15, only 6 steps are shifted inside the circuit, and therefore, the lower 2 of the previous "SI/IN" information is The bit information will not be deleted and will remain. Therefore, in the serial/parallel conversion circuit 15, at a certain time ta during time t2 , the information of the lower two bits of "SI/IN" and
The 6-bit information of "PC" will be output in parallel.

次に、タイミング発生回路13からは再び8パ
ルスが出力される。これにより、シフトレジスタ
16からは「文字符号1」の8ビツトの情報が読
み出され、直並列変換回路15に順次入力され以
下同様の動作が繰り返される。
Next, the timing generation circuit 13 outputs eight pulses again. As a result, 8-bit information of "character code 1" is read out from the shift register 16, and is sequentially input to the serial/parallel conversion circuit 15, and the same operation is repeated thereafter.

結局、シフトレジスタ16から直並列回路15
に入力される情報は8ビツト(「SI/IN」)、6ビ
ツト(「PC」)、8ビツト(「文字符号1」)、…と
なり、直並列回路15から出力バツフア20を介
してデータバス3へ出力される情報は、8ビツト
(「SI/IN」)、8ビツト(「SI/IN」)の下位2ビ
ツト及び「PC」)、8ビツト(「文字符号1」)、…
となる。
In the end, from the shift register 16 to the series/parallel circuit 15
The information input to the circuit is 8 bits (``SI/IN''), 6 bits (``PC''), 8 bits (``character code 1''), etc., and is sent from the serial/parallel circuit 15 to the data bus via the output buffer 20. The information output to 3 is 8 bits (``SI/IN''), the lower 2 bits of 8 bits (``SI/IN'' and ``PC''), 8 bits (``Character code 1''),...
becomes.

したがつて、CPU5はこの誤り訂正回路4の
出力を読み取つてそのままRAM6に書き込むよ
う制御すれば第7図のような正しい文字コード信
号が記憶されることになる。
Therefore, if the CPU 5 controls to read the output of the error correction circuit 4 and write it directly into the RAM 6, a correct character code signal as shown in FIG. 7 will be stored.

第7図は本発明によつてRAMに記憶される文
字コード信号の記憶状態を示す模式図である。
FIG. 7 is a schematic diagram showing the storage state of character code signals stored in the RAM according to the present invention.

第7図において、αは「SI/IN」の下位2ビ
ツトの情報を示す。
In FIG. 7, α indicates information on the lower two bits of "SI/IN".

尚、第7図に示す様に、番地2には不要な情報
である「SI/IN」の下位2ビツトの情報αが書
き込まれることになるが、これを無視して処理す
ることができるので問題はない。
Furthermore, as shown in Figure 7, information α of the lower two bits of "SI/IN", which is unnecessary information, will be written to address 2, but this can be ignored and processed. No problem.

では次に、タイミング発生回路13から第6図
bのイに示す様な出力波形を出力させる為のタイ
ミング発生回路13及びレジスタ回路41の動作
について第5図及び第8図を用いて説明する。
Next, the operation of the timing generation circuit 13 and the register circuit 41 for causing the timing generation circuit 13 to output an output waveform as shown in A of FIG. 6B will be explained using FIGS. 5 and 8.

第8図aは第5図におけるレジスタ回路41の
一具体例を示す回路図である。
FIG. 8a is a circuit diagram showing a specific example of the register circuit 41 in FIG. 5. FIG.

この回路はDタイプのフリツプフロツプであ
り、CPU5からのストローブ信号及びデータに
より各出力Q1,Q2,Q3,…,QNを独立に“H”
レベルか“L”レベルかに切り換えることが可能
である。すなわち、この回路はCPU5からの指
令によつて各出力を設定することにより、タイミ
ング発生回路13から6パルスを出力するか、8
パルスを出力するかを決定するものである。例え
ば、6パルスを出力したい時には(Q5,Q4,Q3
Q2,Q1)=(0,0,1,1,1)(以下、並列の
データは単に(0,0,1,1,1)の様に表す
ものとする。)という様に設定し、また8パルス
を出力したいときには(0,1,0,0,1)と
いう様に設定する。
This circuit is a D-type flip-flop, and each output Q 1 , Q 2 , Q 3 , ..., Q N is independently set to "H" by the strobe signal and data from the CPU 5.
It is possible to switch between the low level and the "L" level. That is, this circuit outputs 6 pulses or 8 pulses from the timing generation circuit 13 by setting each output according to instructions from the CPU 5.
This determines whether to output a pulse. For example, if you want to output 6 pulses (Q 5 , Q 4 , Q 3 ,
Q 2 , Q 1 ) = (0, 0, 1, 1, 1) (Hereafter, parallel data will be expressed simply as (0, 0, 1, 1, 1).) However, if you want to output 8 pulses, set it as (0, 1, 0, 0, 1).

第8図bは第5図におけるタイミング発生回路
13の一具体例を示すブロツク図であり、第8図
cは第8図bにおける各部入出力波形を示す波形
図である。
FIG. 8b is a block diagram showing a specific example of the timing generation circuit 13 in FIG. 5, and FIG. 8c is a waveform diagram showing input and output waveforms of each part in FIG. 8b.

第8図bにおいて、12はクロツク信号、42
はレジスタ回路41からの出力、44はクリア信
号、53はクロツク信号12のクロツク数を計数
するためのカウンタ回路である。尚、Q1,Q2
Q3,…,QNはそれぞれ順にLSB出力からMSB出
力までを表している。また、54はインバータ回
路、55はカウンタ回路53の出力が所定値例え
ば(0,0,0,0,1)になつた時1パルスを
出力するデコード回路、56はレジスタ回路41
からの出力42とカウンタ回路52からの出力と
を比較し一致した時に検出出力を出す比較器、5
7は一般にSRフリツプフロツプ回路と呼ばれる
状態保持回路、58は状態保持回路57の位相を
あわせるための遅延回路、59は遅延回路58か
らの出力とクロツク信号12との論理積をとるた
めのANDゲート回路である。
In FIG. 8b, 12 is a clock signal, 42
is an output from the register circuit 41, 44 is a clear signal, and 53 is a counter circuit for counting the number of clocks of the clock signal 12. Furthermore, Q 1 , Q 2 ,
Q 3 , ..., Q N each represent the LSB output to the MSB output in order. Further, 54 is an inverter circuit, 55 is a decode circuit that outputs one pulse when the output of the counter circuit 53 reaches a predetermined value, for example (0, 0, 0, 0, 1), and 56 is a register circuit 41.
a comparator 5 that compares the output 42 from the counter circuit 52 with the output from the counter circuit 52 and outputs a detection output when they match;
7 is a state holding circuit generally called an SR flip-flop circuit, 58 is a delay circuit for matching the phase of the state holding circuit 57, and 59 is an AND gate circuit for calculating the AND of the output from the delay circuit 58 and the clock signal 12. It is.

では、第8図bに示すタイミング発生回路13
の動作について説明する。尚、タイミング発生回
路13からは前述した様に8パルスと6パルスと
が出力されるわけであるが、以下の説明は6パル
スの場合についてのみ行うものとする。従つて、
レジスタ回路41の出力42はCPU5により
(0,0,1,1,1)に設定されている。
Now, the timing generation circuit 13 shown in FIG. 8b
The operation will be explained. Note that although the timing generation circuit 13 outputs 8 pulses and 6 pulses as described above, the following explanation will be made only for the case of 6 pulses. Therefore,
The output 42 of the register circuit 41 is set to (0, 0, 1, 1, 1) by the CPU 5.

カウンタ回路53には第8図cに示す様な連続
波形であるクロツク信号12が入力されている。
また、CLR端子には、クリア信号44が入力さ
れており、第8図cに示す様に“H”レベルにな
るとカウンタ回路53はクリアされる。クリアに
よつて、カウンタ回路53のMSB出力である出
力QNが“L”レベルになると、インバータ回路
60の出力が“H”レベルとなり、カウンタ回路
53のイネーブル入力が動作許すとなつてカウン
タ回路53は計数を開始する。計数が開始される
とカウンタ回路53の各出力(Q1,Q2,Q3)波
形は第8図cに示す様になる。
A clock signal 12 having a continuous waveform as shown in FIG. 8c is input to the counter circuit 53.
Further, a clear signal 44 is input to the CLR terminal, and when the clear signal 44 reaches the "H" level as shown in FIG. 8c, the counter circuit 53 is cleared. By clearing, when the output Q N , which is the MSB output of the counter circuit 53, goes to "L" level, the output of the inverter circuit 60 goes to "H" level, and the enable input of the counter circuit 53 allows operation, and the counter circuit 53 starts counting. When counting starts, the waveforms of each output (Q 1 , Q 2 , Q 3 ) of the counter circuit 53 become as shown in FIG. 8c.

デコード回路55はカウンタ回路53の出力を
デコードし、該出力が(0,0,0,0,1)に
なつたとき第8図cに示す様にデコード回路55
の出力Gは“H”レベルとなる。
The decoding circuit 55 decodes the output of the counter circuit 53, and when the output becomes (0, 0, 0, 0, 1), the decoding circuit 55 decodes the output of the counter circuit 53.
The output G becomes "H" level.

また、カウンタ回路53の出力は比較器56に
おいて、レジスタ回路41の出力42と比較さ
れ、カウンタ回路53の出力が(0,0,1,
1,1)の状態(前述したようにレジスタ回路4
1の出力42は(0,0,1,1,1)に設定さ
れている。)になつた時、比較器56の出力Hが
第6図cに示す様に“H”レベルとなる。
Further, the output of the counter circuit 53 is compared with the output 42 of the register circuit 41 in a comparator 56, and the output of the counter circuit 53 is (0, 0, 1,
1, 1) (as mentioned above, the register circuit 4
The output 42 of 1 is set to (0, 0, 1, 1, 1). ), the output H of the comparator 56 becomes "H" level as shown in FIG. 6c.

さらに、デコード回路55の出力Gは状態保持
回路57のセツト端子Sに比較器56の出力Hは
状態保持回路57のリセツト端子Rに夫々接続さ
れているので、状態保持回路57の出力Iは第8
図cに示す如くになる。そして、状態保持回路5
7の出力Iであるゲートパルスの位相をあわせる
為に遅延回路58によつて位相を変える。そし
て、遅延回路58の出力Jとクロツク信号12を
夫々AND回路59に入力することにより両者の
論理積を導き、タイミング発生回路13の出力4
3とする。
Further, since the output G of the decoding circuit 55 is connected to the set terminal S of the state holding circuit 57 and the output H of the comparator 56 is connected to the reset terminal R of the state holding circuit 57, the output I of the state holding circuit 57 is connected to the set terminal S of the state holding circuit 57. 8
The result will be as shown in Figure c. And the state holding circuit 5
In order to match the phase of the gate pulse which is the output I of 7, the phase is changed by a delay circuit 58. Then, by inputting the output J of the delay circuit 58 and the clock signal 12 to the AND circuit 59, the logical product of both is derived, and the output 4 of the timing generation circuit 13 is
3.

以上の様にして、タイミング発生回路13から
6パルスの出力43が得られる。
In the manner described above, six pulses of output 43 are obtained from the timing generation circuit 13.

上記の説明は、6パルスを出力させる場合につ
いてのみ説明したが、8パルスを出力させる場合
についてもレジスタ回路41の出力42を(0,
1,0,0,1)に設定し、同様の動作にて実現
させることができる。
In the above explanation, only the case of outputting 6 pulses was explained, but also when outputting 8 pulses, the output 42 of the register circuit 41 is (0,
1, 0, 0, 1), and the same operation can be performed.

また、本発明は、タイミング発生回路13から
の出力が本実施例の如く6パルスまたは8パルス
の場合だけに限るのではなく、任意のパルス数に
対し用い得ることは言うまでもない。尚、その場
合についても同様の動作にて出力させることがで
きる。
Furthermore, it goes without saying that the present invention is not limited to the case where the output from the timing generation circuit 13 is 6 or 8 pulses as in this embodiment, but can be used for any number of pulses. Note that in that case as well, the output can be performed using the same operation.

では最後に、第5図を用いて、タイミング発生
回路13から第6図bのイに示す出力波形を出力
させる為の動作について総合的に説明する。
Finally, with reference to FIG. 5, the operation for causing the timing generation circuit 13 to output the output waveform shown in FIG. 6b, A will be comprehensively explained.

最初、CPU5は入力バツフア11を介しレジ
スタ回路41に該出力42が(0,1,0,0,
1)となるよう設定させる。そして、CPU5は
クリア信号44を発生し、前述の様にタイミング
発生回路13を動作させ、8パルスを生成させ
る。次にCPU5は入力バツフア11を介しレジ
スタ回路41に該出力42が(0,0,1,1,
1)となるよう設定させる。そして、CPU5は
クリア信号44を発生し、タイミング発生回路1
3を動作させ、6パルスを生成させる。その後、
再びCPU5は入力バツフア11を介し、レジス
タ回路41に該出力42が(0,1,0,0,
1)となるよう設定させる。そして、CPU5は
クリア信号を発生しタイミング発生回路13を動
作させる。以下、1パケツト分(272ビツト分)
のデータがすべて誤り訂正を終えるまで、CPU
5は、レジスタ回路41の出力42を(0,1,
0,0,1)のままにして、タイミング発生回路
13を動作させる。
Initially, the CPU 5 sends the output 42 to the register circuit 41 via the input buffer 11 (0, 1, 0, 0,
1). Then, the CPU 5 generates a clear signal 44, operates the timing generation circuit 13 as described above, and generates eight pulses. Next, the CPU 5 sends the output 42 to the register circuit 41 via the input buffer 11 (0, 0, 1, 1,
1). Then, the CPU 5 generates a clear signal 44, and the timing generation circuit 1
3 to generate 6 pulses. after that,
Again, the CPU 5 sends the output 42 to the register circuit 41 via the input buffer 11 (0, 1, 0, 0,
1). Then, the CPU 5 generates a clear signal to operate the timing generation circuit 13. Below, 1 packet (272 bits)
CPU until all data has been corrected.
5 converts the output 42 of the register circuit 41 into (0, 1,
0, 0, 1), and the timing generation circuit 13 is operated.

以上の様にして、タイミング発生回路13から
は第6図bのイに示す様な出力波形が得られるわ
けである。
In the manner described above, the output waveform shown in FIG. 6B is obtained from the timing generation circuit 13.

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

本発明によれば、ハードウエアやソフトウエア
などの新たなシフト処理を必要とせずに、可変長
データより成る符号語を各まとまり毎に順に所定
ビツトずつRAMに記憶させることができるの
で、シフト処理のためのソフトウエア容量の増加
やハードウエア規模の大幅な増加を避けることが
可能である。
According to the present invention, a code word consisting of variable length data can be stored in a RAM in sequence for each set of predetermined bits without requiring any new shift processing such as hardware or software. It is possible to avoid an increase in software capacity or a significant increase in hardware scale.

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

第1図は一般的な誤り訂正方式の一例を示すブ
ロツク図、第2図は従来の誤り訂正回路を示すブ
ロツク図、第3図は文字コード信号を示す模式
図、第4図a及びbはそれぞれ第3図に示す文字
コード信号が記憶される際の記憶形態を示す模式
図、第5図は本発明の一実施例を示すブロツク
図、第6図aは従来タイミング発生回路の出力波
形を示す波形図、同図bは本発明によるタイミン
グ発生回路の出力と文字コード信号との関係を説
明するための説明図、第7図は本発明における文
字コード信号の記憶形態を示す模式図、第8図a
は第5図におけるレジスタ回路の一具体例を示す
回路図、同図bは第5図におけるタイミング発生
回路の一具体例を示すブロツク図、同図cは同図
bにおける各部入出力波形を示す波形図、であ
る。 符号説明、4……誤り訂正回路、5……CPU、
6……RAM、11……入力バツフア、12……
クロツク信号、13……タイミング発生回路、1
5……並直列変換・直並列変換兼用回路、16…
…シフトレジスタ、17……シンドロームレジス
タ、18……誤り検出回路、19……EOR回路、
20……出力バツフア、41……レジスタ回路。
Fig. 1 is a block diagram showing an example of a general error correction system, Fig. 2 is a block diagram showing a conventional error correction circuit, Fig. 3 is a schematic diagram showing a character code signal, and Fig. 4 a and b are FIG. 3 is a schematic diagram showing the storage format when character code signals are stored, FIG. 5 is a block diagram showing an embodiment of the present invention, and FIG. 6a is a diagram showing the output waveform of a conventional timing generation circuit. FIG. 7 is an explanatory diagram for explaining the relationship between the output of the timing generation circuit and the character code signal according to the present invention, and FIG. 7 is a schematic diagram showing the storage form of the character code signal according to the present invention. Figure 8a
5 is a circuit diagram showing a specific example of the register circuit in FIG. 5, FIG. 5b is a block diagram showing a specific example of the timing generation circuit in FIG. 5, and FIG. This is a waveform diagram. Code explanation, 4...Error correction circuit, 5...CPU,
6...RAM, 11...Input buffer, 12...
Clock signal, 13...timing generation circuit, 1
5... Parallel-to-serial conversion/serial-to-parallel conversion circuit, 16...
...Shift register, 17...Syndrome register, 18...Error detection circuit, 19...EOR circuit,
20...Output buffer, 41...Register circuit.

Claims (1)

【特許請求の範囲】 1 デイジタル信号系列を順次直列に入力して記
憶する直列記憶手段と、該直列記憶手段に入力さ
れる前記デイジタル信号系列内の誤りを検出しそ
の検出結果により前記直列記憶手段から順次直列
に読み出されるデイジタル信号系列の誤りを訂正
する誤り検出訂正手段と、誤りが訂正された該デ
イジタル信号系列を所定のビツト数を単位として
直並列変換して出力する直並列変換手段とから少
なくとも成る誤り訂正回路において、前記直並列
変換のタイミングに同期して前記直列記憶手段か
ら該タイミング1回当りについて読み出される直
列ビツト数を可変的に予め設定する手段と、設定
された該ビツト数に従つて前記直列記憶手段から
前記タイミング1回当りについて読み出されるデ
イジタル信号のビツト数を制御する手段とを具備
したことを特徴とする誤り訂正回路。 2 特許請求の範囲第1項に記載の誤り訂正回路
において、前記制御手段は、計数開始信号により
計数を開始し計数した値が所定値となつた時計数
を停止する計数手段と、該計数手段からの計数出
力により第1のパルスを発生するパルス発生手段
と、前記計数手段からの計数出力が前記設定手段
による設定結果に対応する値になつたことを検出
し、第2のパルスを出力する検出手段と、前記第
1のパルスによりセツトされ前記第2のパルスに
よりセツトされることによりゲート信号を発生す
るゲート信号発生手段と、該ゲート信号とクロツ
ク信号との論理積をつくる論理積手段と、から成
ることを特徴とする誤り訂正回路。
[Scope of Claims] 1. Serial storage means for sequentially inputting and storing digital signal sequences in series, and detecting errors in the digital signal sequences input to the serial storage means and detecting errors based on the detection results. an error detection and correction means for correcting errors in a digital signal sequence sequentially read out in series; and a serial-to-parallel conversion means for converting the error-corrected digital signal sequence into serial-to-parallel units in units of a predetermined number of bits. An error correction circuit comprising: means for variably presetting the number of serial bits to be read out from the serial storage means per timing in synchronization with the timing of the serial/parallel conversion; Accordingly, an error correction circuit comprising means for controlling the number of bits of a digital signal read out from the serial storage means per timing. 2. In the error correction circuit according to claim 1, the control means includes a counting means that starts counting in response to a counting start signal and stops counting when the counted value reaches a predetermined value, and the counting means pulse generating means for generating a first pulse based on the counting output from the counting means; and detecting that the counting output from the counting means has reached a value corresponding to the setting result by the setting means, and outputting a second pulse. a detection means, a gate signal generation means for generating a gate signal by being set by the first pulse and set by the second pulse, and an AND means for generating a logical product of the gate signal and the clock signal. An error correction circuit comprising:
JP59186382A 1984-09-07 1984-09-07 Error correction circuit Granted JPS6165680A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59186382A JPS6165680A (en) 1984-09-07 1984-09-07 Error correction circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59186382A JPS6165680A (en) 1984-09-07 1984-09-07 Error correction circuit

Publications (2)

Publication Number Publication Date
JPS6165680A JPS6165680A (en) 1986-04-04
JPH0511474B2 true JPH0511474B2 (en) 1993-02-15

Family

ID=16187409

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59186382A Granted JPS6165680A (en) 1984-09-07 1984-09-07 Error correction circuit

Country Status (1)

Country Link
JP (1) JPS6165680A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63206967A (en) * 1987-02-23 1988-08-26 Matsushita Electric Ind Co Ltd Code error correcting device
JPH02162839A (en) * 1988-12-15 1990-06-22 Fujitsu Ltd Data reception circuit

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59133751A (en) * 1983-01-20 1984-08-01 Nippon Hoso Kyokai <Nhk> Error correcting and decoding system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59133751A (en) * 1983-01-20 1984-08-01 Nippon Hoso Kyokai <Nhk> Error correcting and decoding system

Also Published As

Publication number Publication date
JPS6165680A (en) 1986-04-04

Similar Documents

Publication Publication Date Title
JP2655547B2 (en) CRC calculation method and HEC synchronizer in ATM switching system
US5570377A (en) Method and device for detection and correction of errors in ATM cell headers
US4320511A (en) Method and device for conversion between a cyclic and a general code sequence by the use of dummy zero bit series
JPH07170200A (en) Crc synchronizer
US4672612A (en) Error correction system in a teletext system
JPH0511474B2 (en)
US5367543A (en) Circuit for detecting synchronizing signal in frame synchronization data transmission
KR910001071B1 (en) Error correction system of telext system using cyclic code
US4521886A (en) Quasi-soft decision decoder for convolutional self-orthogonal codes
US4701914A (en) Apparatus for correcting cyclic code data stored in memory and method therefor
EP0240921A2 (en) BCH code signal correcting system
US4870646A (en) Word synchronizer
US6889272B1 (en) Parallel data bus with bit position encoded on the clock wire
JP3001414B2 (en) Code error correction device
JP2817803B2 (en) Sync generation method
JP2973725B2 (en) Subframe synchronization signal detection circuit
JP2871495B2 (en) Error correction code decoding method
JPH0566778B2 (en)
JPH10294720A (en) Signal transmission circuit and signal-transmitting method
JP2576111B2 (en) Digital signal speed conversion method
JP3245622B2 (en) Pattern comparison method
JP2669344B2 (en) Signal detection circuit
JPH0155788B2 (en)
JPH0697918A (en) Radio communication system
JPS6178229A (en) Error correction control circuit

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term