JPH03260841A - Code converter - Google Patents
Code converterInfo
- Publication number
- JPH03260841A JPH03260841A JP2058053A JP5805390A JPH03260841A JP H03260841 A JPH03260841 A JP H03260841A JP 2058053 A JP2058053 A JP 2058053A JP 5805390 A JP5805390 A JP 5805390A JP H03260841 A JPH03260841 A JP H03260841A
- Authority
- JP
- Japan
- Prior art keywords
- data
- lrc
- circuit
- code
- converted
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Detection And Correction Of Errors (AREA)
Abstract
Description
【発明の詳細な説明】
(概要)
コード変換装置に係り、特に特定コードで表現された入
力データを他のコードに変換するコード変換回路を有し
てなるコード変換装置に関し、データ変換時の誤りチェ
ックを行なえ、データの信頼性を高めることを目的とし
て、
特定コードで表現された入力データを他のコードに変換
するコード変換回路を有してなるコード変換装置におい
て、入力データにLRCデータを付加するLRC作戒作
成と、LRCデータと共に上記データ変換回路で変換さ
れたデータを逆変換する逆変換回路と、逆変換されたデ
ータのLRCチェックを行なうLRCチェック回路を設
けて構成する。Detailed Description of the Invention (Summary) It relates to a code conversion device, and particularly to a code conversion device having a code conversion circuit that converts input data expressed in a specific code into another code. In a code converter equipped with a code conversion circuit that converts input data expressed in a specific code into another code, LRC data is added to the input data in order to perform checks and improve data reliability. An inverse conversion circuit that inversely converts the data converted by the data conversion circuit together with the LRC data, and an LRC check circuit that performs an LRC check on the inversely converted data are provided.
(産業上の利用分野)
本発明は、コード変換装置に係り、特に特定コードで表
現された入力データを他のコードに変換するコード変換
回路を宥してなるコード変換装置に関する。(Industrial Application Field) The present invention relates to a code conversion device, and more particularly to a code conversion device equipped with a code conversion circuit that converts input data expressed in a specific code into another code.
(従来の技術)
一般に特定のコードで表現されたデータを他のコードに
変換することがある。これは例えばASCII形式で記
載されたデータをEBCDIC(拡張2進化10進符号
)形式に変換したり、また、その逆の変換を行なう。従
来、このようなコード変換装置として第3図に示すもの
がある。これはコード変換回路としてPROM31を設
け、このPROMにコードの変換テーブルを格納し、特
定コードで表現されると共にパリティピットが付加され
た入力データに対応する他のコードで表現されると共に
パリティピットを付加した出力データを発生するもであ
る。また、このコート変換回路では入力データのパリテ
ィチェックも行なうものとしている。(Prior Art) Generally, data expressed in a specific code may be converted into another code. This converts, for example, data written in ASCII format to EBCDIC (Extended Binary Coded Decimal Code) format, and vice versa. Conventionally, there is a code conversion device shown in FIG. 3 as such a code conversion device. A PROM 31 is provided as a code conversion circuit, and a code conversion table is stored in this PROM.Input data is expressed by a specific code and is expressed by another code corresponding to input data to which parity pits are added. It also generates additional output data. This code conversion circuit also performs a parity check on input data.
ところで、上述の従来のコード変換装置においては入力
データ及び出力データそのものの信頼性はパリティピッ
トを付加していることによって保証されているが、変換
そのものが正確に行なわれたかについては何等検証され
ていなかった。そのため、データ変換回路であるPRO
Mのセグメントの異常等によって発生する変換誤りをチ
ェックすることはできない。By the way, in the above-mentioned conventional code conversion device, the reliability of the input data and output data itself is guaranteed by adding parity pits, but there is no verification as to whether the conversion itself is performed accurately. There wasn't. Therefore, PRO, which is a data conversion circuit,
It is not possible to check for conversion errors caused by abnormalities in segments of M.
そこで本発明はデータ変換時の誤りチェックを行なえ、
データの信頼性を高めたコード変換装置を提供すること
を目的とする。Therefore, the present invention can perform error checking during data conversion,
The purpose of the present invention is to provide a code conversion device with improved data reliability.
(課題を解決するための手段)
本発明にあって、上記の課題を解決するための手段は、
第1図に示すように、特定コードで表現された入力デー
タを他のコードに変換するコード変換回路1を有してな
るコード変換装置において、入力データにLRCデータ
を付加するLRC作威作成2と、LRCデータと共に上
記データ変換回路で変換されたデータを逆変換する逆変
換回路3と、逆変換されたデータのLRCチェックを行
なうLRCチェック回路4を設けたことである。(Means for solving the problems) In the present invention, the means for solving the above problems are as follows:
As shown in FIG. 1, in a code conversion device comprising a code conversion circuit 1 that converts input data expressed in a specific code into another code, an LRC creation 2 that adds LRC data to input data is used. In addition, an inverse conversion circuit 3 that inversely converts the data converted by the data conversion circuit together with the LRC data, and an LRC check circuit 4 that performs an LRC check on the inversely converted data are provided.
本発明によれば、LRC作威作成はコード変換回路への
入力データにLRCデータを付加し、逆変換回路はLR
Cデータと共に上記データ変換回路で変換されたデータ
を逆変換してもとのコードに戻す。そして、LRCチェ
ック回路逆変換されたデータのLRCチェックを行なう
からコード変換回路での変換誤りを検出することができ
る。According to the present invention, LRC data is created by adding LRC data to the input data to the code conversion circuit, and the inverse conversion circuit adds the LRC data to the input data to the code conversion circuit.
The data converted by the data conversion circuit together with the C data is inversely converted back to the original code. Since the LRC check circuit performs an LRC check on the inversely converted data, it is possible to detect conversion errors in the code conversion circuit.
(実施例)
以下本発明に係るコード変換装置の実施例を図面に基づ
いて説明する。(Example) An example of a code conversion device according to the present invention will be described below based on the drawings.
第2図は本発明に係るコード変換装置の実施例を示すも
のである。本実施例において、コード変換装置はASC
II形式からEBCDIC形式へ、また、逆にEBCD
IC形式からASCII形式への変換を行なうことがで
きるものである。FIG. 2 shows an embodiment of the code conversion device according to the present invention. In this embodiment, the code conversion device is ASC
From II format to EBCDIC format and vice versa
It is capable of converting from IC format to ASCII format.
同図において11は入力したデータに水平冗長検査に用
いるLRCデータを付加するLRCデータ作威作成ある
P L D (Programmable Logic
Device )、12.13はタイくング調整用のレ
ジスタ(Reg)、14は入力切換用の切換スイッチ(
SW)、15はASCII形式からEBCDIC形式へ
のコード変換回路であるPROM、また、16はEBC
DIC形式からASCII形式へのコード変換を行なう
PROM、IT、18はタイくング調整用のレジスタ(
Reg)、19は入力切換用のマルチプレクサ(MPX
)、20はLRCチェックを行なうLRCチェック手段
としてのPALを示している。ここで上記の2つのFR
OMは互いに逆変換の関係となっている。In the same figure, 11 is a programmable logic generator (PLD) that creates LRC data that adds LRC data used for horizontal redundancy check to input data.
Device), 12.13 is a register (Reg) for tying adjustment, and 14 is a selector switch for input selection (
SW), 15 is a PROM which is a code conversion circuit from ASCII format to EBCDIC format, and 16 is an EBC
PROM, IT, 18, which performs code conversion from DIC format to ASCII format, is a register for tying adjustment (
Reg), 19 is a multiplexer for input switching (MPX
), 20 indicates a PAL as an LRC check means for performing an LRC check. Here, the above two FRs
The OMs have a mutually inverse transformation relationship.
次に本実施例に係るコード変換装置の実施例の作動を説
明する。先ず、ASCII形式のデータなEBCDIC
形式のデータに変換する場合について説明する。Next, the operation of the embodiment of the code conversion device according to this embodiment will be explained. First, ASCII format data EBCDIC
The case of converting to format data will be explained.
入力されたASCIIデータにはPLDIIにおいてL
RCデータが付加され、切換スイッチ14でPROM1
5に入力され、LRCデータをも含めてEBCDICデ
ータに変換される。そして出力は分岐され、その一方(
■)はレジスタ18に入力されPROM16に入力され
再びASCIIデータに変換される。その出力(■)は
マルチプレクサ19を経てLRCチェック用のPAL2
0に入力され水平冗長度が検査され、変換が正常に行な
われたかが検査される。この検査結果により変換の正常
性を保証することができる。The input ASCII data is
RC data is added and the selector switch 14 selects PROM1.
5 and is converted into EBCDIC data including LRC data. And the output is forked, while (
(2) is inputted into the register 18, inputted into the PROM 16, and converted into ASCII data again. Its output (■) passes through multiplexer 19 to PAL2 for LRC check.
0 and the horizontal redundancy is checked to see if the conversion was successful. The normality of the conversion can be guaranteed by this test result.
次にEBCDIC形式のデータをASCII形式のデー
タに変換する場合について説明する。Next, a case will be described in which EBCDIC format data is converted to ASCII format data.
入力されたEBCDICデータにはPLDIIにおいて
LRCデータが付加され、切換スイッチ14でPROM
16に入力され、LR,Cデータをも含めてASCII
データに変換される。そして出力は分岐され、その一方
(■)はレジスタ17に入力されPROM15に入力さ
れ再びEBCDICデータに変換される。その出力(■
)はマルチプレクサ19を経てLRCチェック用のPA
L20に入力され水平冗長度が検査され、変換が正常に
行なわれたかが検査される。この検査結果により変換の
正常性を保証することができる。LRC data is added to the input EBCDIC data in the PLDII, and the PROM data is added to the input EBCDIC data by the changeover switch 14.
16, including LR and C data in ASCII
converted to data. The output is then branched, and one of the outputs (■) is input to the register 17 and then to the PROM 15, where it is again converted into EBCDIC data. Its output (■
) is the PA for LRC check via multiplexer 19.
The signal is input to L20 and the horizontal redundancy is checked to see if the conversion was performed normally. The normality of the conversion can be guaranteed by this inspection result.
従って本実施例によれば、入力データは付加されたLR
Cデータと共にコード変換され、この変換後のデータは
再び逆変換され、LRCチェックされるから、コード変
換が正常に行なわれたか否かを確認することができ、コ
ード変換処理の信頼性を高めることができる。Therefore, according to this embodiment, the input data is added to the LR
The code is converted together with the C data, and the data after this conversion is inversely converted again and subjected to an LRC check, so it can be confirmed whether the code conversion has been performed normally, thereby increasing the reliability of the code conversion process. I can do it.
尚上記の実施例においては、コードとしてASCII及
びEBCDICを例として説明したが、これは他のコー
ドを対象としてもよいのは勿論である。また、上記の実
施例では2種コード間において相互変換できる装置につ
いて説明したが、本発明は1のコードから他のコートへ
の一方向への変換のみを行なう装置にも適用できること
は言うまでもない。In the above embodiment, ASCII and EBCDIC codes were used as examples, but it goes without saying that other codes may also be used. Further, in the above embodiment, a device capable of mutual conversion between two types of codes has been described, but it goes without saying that the present invention can also be applied to a device that only converts one code to another code in one direction.
(発明の効果)
以上説明したように、本発明によればコード変換装置に
入力データにLRCデータを付加するLRC作戒作成と
、LRCデータと共に上記データ変換回路で変換された
データを逆変換する逆変換回路と、逆変換されたデータ
のLRCチェックを行なうLRCチェック回路を設ける
ものとしたから、コード変換回路での変換誤りを検出す
ることができコード変換処理の信頼性を高めることがで
きるという効果を奏する。(Effects of the Invention) As explained above, according to the present invention, the code conversion device creates an LRC command by adding LRC data to input data, and inversely converts the data converted by the data conversion circuit together with the LRC data. Since an inverse conversion circuit and an LRC check circuit for performing an LRC check on the inversely converted data are provided, conversion errors in the code conversion circuit can be detected and the reliability of the code conversion process can be increased. be effective.
第1図は本発明の原理図、第2図は本発明に係るコード
変換装置の実施例を示すブロック図、第3図は従来のコ
ード変換装置を示すブロック図である。
1・・・コード変換回路
2・・・LRC作成回路
3・・・逆変換回路
4・・・LRCチェック回路
本発明の旅搾口
笛 1 図FIG. 1 is a diagram showing the principle of the present invention, FIG. 2 is a block diagram showing an embodiment of a code converting device according to the present invention, and FIG. 3 is a block diagram showing a conventional code converting device. 1...Code conversion circuit 2...LRC creation circuit 3...Inverse conversion circuit 4...LRC check circuit Traveling whistle of the present invention 1 Figure
Claims (1)
するコード変換回路(1)を有してなるコード変換装置
において、 入力データにLRCデータを付加するLRC作成回路(
2)と、 LRCデータと共に上記データ変換回路で変換されたデ
ータを逆変換する逆変換回路(3)と、逆変換されたデ
ータのLRCチェックを行なうLRCチェック回路(4
)を設けたことを特徴とするコード変換装置。[Claims] A code conversion device comprising a code conversion circuit (1) for converting input data expressed in a specific code into another code, comprising: an LRC creation circuit (1) for adding LRC data to input data;
2), an inverse conversion circuit (3) that inversely converts the data converted by the data conversion circuit together with the LRC data, and an LRC check circuit (4) that performs an LRC check on the inversely converted data.
) is provided.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2058053A JPH03260841A (en) | 1990-03-12 | 1990-03-12 | Code converter |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2058053A JPH03260841A (en) | 1990-03-12 | 1990-03-12 | Code converter |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03260841A true JPH03260841A (en) | 1991-11-20 |
Family
ID=13073175
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2058053A Pending JPH03260841A (en) | 1990-03-12 | 1990-03-12 | Code converter |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03260841A (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS59108150A (en) * | 1982-12-13 | 1984-06-22 | Hitachi Ltd | Diagnosing method |
| JPS60256984A (en) * | 1984-05-31 | 1985-12-18 | Nec Corp | Magnetic recording and reproducing device |
-
1990
- 1990-03-12 JP JP2058053A patent/JPH03260841A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS59108150A (en) * | 1982-12-13 | 1984-06-22 | Hitachi Ltd | Diagnosing method |
| JPS60256984A (en) * | 1984-05-31 | 1985-12-18 | Nec Corp | Magnetic recording and reproducing device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0797873B2 (en) | A device for generating information and instructions for entering into a program memory of a computer | |
| US5831997A (en) | Pattern generating apparatus | |
| JPS632370B2 (en) | ||
| JP3345385B2 (en) | Chain search device | |
| JPH03260841A (en) | Code converter | |
| JPH0228057A (en) | Electronic interlocking device | |
| US4739506A (en) | IC chip error detecting and correcting apparatus | |
| US4739504A (en) | IC chip error detecting and correcting method | |
| JPS6116357A (en) | Data transfer device | |
| JPS6216693Y2 (en) | ||
| JP2606831B2 (en) | Image processing device | |
| JPS60214043A (en) | Pipeline control circuit | |
| JPS63106838A (en) | Data buffer check circuit | |
| JPH02105635A (en) | Data error detection circuit | |
| JPS6022769B2 (en) | error correction circuit | |
| JPS6122321B2 (en) | ||
| JPH01151855A (en) | Network simulator support system | |
| JPS6314244A (en) | Error processing circuit | |
| JPH01190129A (en) | Chip selecting circuit for decoder | |
| JPH0350637A (en) | Shift pass check circuit | |
| JPS6131491B2 (en) | ||
| JPH0320814A (en) | Key input control circuit | |
| JPH03117923A (en) | error correction decoder | |
| JPH0362738A (en) | Arithmetic device | |
| JPH04264646A (en) | Error inspection system |