JPS6320527A - Code converter - Google Patents

Code converter

Info

Publication number
JPS6320527A
JPS6320527A JP16389086A JP16389086A JPS6320527A JP S6320527 A JPS6320527 A JP S6320527A JP 16389086 A JP16389086 A JP 16389086A JP 16389086 A JP16389086 A JP 16389086A JP S6320527 A JPS6320527 A JP S6320527A
Authority
JP
Japan
Prior art keywords
code conversion
data
code
ram
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP16389086A
Other languages
Japanese (ja)
Inventor
Hidenori Taniguchi
谷口 秀憲
Shingo Chiba
千葉 信吾
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.)
NEC Corp
NEC Engineering Ltd
Original Assignee
NEC Corp
NEC Engineering Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp, NEC Engineering Ltd filed Critical NEC Corp
Priority to JP16389086A priority Critical patent/JPS6320527A/en
Publication of JPS6320527A publication Critical patent/JPS6320527A/en
Pending legal-status Critical Current

Links

Landscapes

  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To arbitrarily rewrite a code conversion table, and also, to execute the processing at a high speed, by using a RAM which can rewrite dynamically the code conversion table by a program, etc., in case of bringing a data to a code conversion. CONSTITUTION:An input data S1 from an external device 4 is sent to a code converting RAM 2 through a multiplexer 5. In a read means 7, when it is known by a control signal S7 that a data has been sent out of the external device 4, a read data S6 is read from the code converting RAM 2. The read data S6 which has been read from the read means 7 can be read as a data which has brought the input data S1 inputted from the external device 4, to a code conversion. In this way, the data which is to be brought to a code conversion can be brought to a code conversion by using the code converting RAM 2, and in this case, the code conversion can be processed at a high speed, since it is not executed by a microprogram.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データ処理装置においてデータをコード変換
するのに用いるコード変換装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a code conversion device used for code conversion of data in a data processing device.

〔従来の技術〕[Conventional technology]

コード変換装置は、情報処理システムにおいてデータを
コード変換する場合に用いられる。
A code conversion device is used to convert data into a code in an information processing system.

従来、この種のコード変換装置として、コード変換をハ
ードウェアで行うものがあり、このものでは、ROM上
に作成された変換テーブルによって外部装置から入力し
たデータをコード変換し、データを出力していた。また
、別の方法によるものとして、マイクロプログラム等で
コード変換を行う方法によるものがあった。すなわち、
入力したデータをマイクロプログラムがメモリ上に作成
されているコード変換テーブルを参照してコード変換を
行う方法による装置があった。
Conventionally, there is a code conversion device of this type that performs code conversion using hardware, which converts data input from an external device into code using a conversion table created on ROM and outputs the data. Ta. Another method is to perform code conversion using a microprogram or the like. That is,
There has been a device in which a microprogram converts input data by referring to a code conversion table created in a memory.

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

しかし、上述した従来のコード変換装置では、前者の場
合、コード変換をハードウェアで行うため処理能力は速
いが、コード変換テーブルがROM上に書き込まれてる
ため、変換コードを変更しようとする時はコード変換用
ROMを交換しなければならずコード変換テーブルをテ
ンポラリ−に書き換えることができない。また後者の場
合、コード変換テーブルをテンポラリ−に書き換えるこ
とができるが、マイクロプログラムによってコード変換
を行うため、処理能力は前者に比べて遅いという欠点が
あった。
However, in the former case, with the conventional code conversion device described above, the processing capacity is fast because the code conversion is performed by hardware, but since the code conversion table is written on the ROM, when trying to change the conversion code, The code conversion ROM must be replaced, and the code conversion table cannot be temporarily rewritten. In the latter case, the code conversion table can be temporarily rewritten, but since the code conversion is performed by a microprogram, the processing capacity is slower than in the former case.

本発明の目的は、容易に変換コードの変更に対処できる
と共に高速で処理できるコード変換装置を提供すること
にある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a code conversion device that can easily handle changes in converted codes and can process at high speed.

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

本発明のコード変換装置は、 情報処理システムのコード変換装置であって、プログラ
ムの制御により与えられるコード変換データが格納され
る書き換え可能なコード変換用RAMと、 プログラム制御により上記コード変換用RA Mにコー
ド変換テーブルを作成するデープル作成手段と、 外部装置からのデータと上記テーブル作成手段からのデ
ータのうち一方を選択して出力するマルチプレクサと、 このマルチプレクサを切換制御する制御手段と、上記外
部装置からのデータの送出に応じて上記コード変換用R
AMからコード変換されたデータを読み取る読み取り手
段とを有することを特徴としている。
The code conversion device of the present invention is a code conversion device for an information processing system, and includes a rewritable code conversion RAM in which code conversion data given under program control is stored; a multiplexer for selecting and outputting one of data from an external device and data from the table creating means; a control means for switching and controlling the multiplexer; and a control means for controlling switching of the multiplexer; R for code conversion according to the data sent from
It is characterized by having a reading means for reading code-converted data from AM.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例を示すブロック図である。こ
のコード変換装置1は□、プログラムの制御により与え
られるコード変換用データが格納されているコード変換
用RA M 2とプログラムの制御によりコード変換用
RAM2にコード変換テーブルを作成するテーブル作成
手段3と、外部装置4からのデータとテーブル作成手段
3からのデータのうちの一方を選択して出力するマルチ
プレクサ5と、このマルチプレクサ5を制御する制御手
段6と外部装置4からデータが送出されたことにより、
コード変換用RAM2からコード変換されたデータを読
み取る読み取り手段7を備えている。
FIG. 1 is a block diagram showing one embodiment of the present invention. This code conversion device 1 includes a code conversion RAM 2 in which code conversion data given under the control of a program is stored, and table creation means 3 for creating a code conversion table in the code conversion RAM 2 under the control of the program. , a multiplexer 5 that selects and outputs either the data from the external device 4 or the data from the table creation means 3, the control means 6 that controls this multiplexer 5, and the data sent from the external device 4. ,
It is provided with a reading means 7 for reading code-converted data from the code-converting RAM 2.

コード変換装置1のマルチプレクサ5には、外部装置4
からの入力′データSlとテーブル作成手段3からのデ
ータS2が与えられるようになっており、制御手段6か
らのデータS5によって、後述の如く変換テーブル作成
時にはテーブル作成手段3からのデータS2が、また作
成後は外部装置4からの入力データSIが選択されるよ
うになっている。
The multiplexer 5 of the code conversion device 1 includes an external device 4
The input data Sl and the data S2 from the table creation means 3 are given, and when the conversion table is created as described later, the data S2 from the table creation means 3 is Further, after creation, input data SI from the external device 4 is selected.

マルチプレクサ5の出力はアドレス情報S4としてコー
ド変換用RA M 2に与えられる。また、テーブル作
成手段3は変換データS3を出力し、これがコード変換
用RAM2に供給されるようになっている。
The output of the multiplexer 5 is given to the code conversion RAM 2 as address information S4. Further, the table creation means 3 outputs conversion data S3, which is supplied to the code conversion RAM 2.

読み取り手段7には外部装置4からの制御信号S7が供
給されるようになっており、これによって読み取り手段
7は読み取りデータS6を読み取る。即ち、外部装置4
からコード変換すべき入力データSlがコード変換装置
1に供給された場合、読み取り手段7には制御信号S7
が与えられ、読み取り動作が行われて入力データSlを
コード変換したデータが出力データS8として読み取り
手段7から出力されるようになっている。
The reading means 7 is supplied with a control signal S7 from the external device 4, so that the reading means 7 reads the read data S6. That is, the external device 4
When input data Sl to be code-converted is supplied to the code conversion device 1, the reading means 7 receives a control signal S7.
is given, a reading operation is performed, and data obtained by converting the input data Sl to the code is outputted from the reading means 7 as output data S8.

次に、このようなテーブル作成手段3とマルチプレクサ
5と制御手段6とコード変換用RA M 2と読み取り
手段7によって構成されるコード変換装置1の動作につ
いて説明する。
Next, the operation of the code conversion device 1 constituted by the table creation means 3, multiplexer 5, control means 6, code conversion RAM 2, and reading means 7 will be explained.

まず、コード変換用RAM2に変換テーブルを書き込む
。即ち、変換テーブル作成の場合には、制御手段6がマ
ルチプレクサ5を切り換えてコード変換用RAM2に入
力されるアドレス情報s4がテーブル作成手段3から出
力されるデータS2になるように切り換える。次に、こ
のような切換手段状態において、テーブル作成手段3か
らマルチプレクサ5を経由してコード変換用RAM2の
アドレス情報S4と変換データS3を出力し、コード変
換用RAM2に変換テーブルを書き込む。
First, a conversion table is written into the code conversion RAM 2. That is, in the case of creating a conversion table, the control means 6 switches the multiplexer 5 so that the address information s4 input to the code conversion RAM 2 becomes the data S2 output from the table creation means 3. Next, in such a state of the switching means, the address information S4 and the conversion data S3 of the code conversion RAM 2 are outputted from the table creation means 3 via the multiplexer 5, and the conversion table is written in the code conversion RAM 2.

このようにして、コード変換用RAM2に変換テーブル
を作成し、以後は次に述べるようにマルチプレクサ5を
入力データS、側へ切り換えて入力データS1 のコー
ド変換を行う。この場合、もし、交換コードを変更した
いときは、前述の交換テーブルの作成と同様の操作を行
うようにすればよく、コード変換テーブルを任意に書き
換えることができるので、従来のもののようにコード変
換用RAMを交換しなければならないということはない
In this way, a conversion table is created in the code conversion RAM 2, and thereafter, as described below, the multiplexer 5 is switched to the input data S side to perform code conversion of the input data S1. In this case, if you want to change the exchange code, you just need to perform the same operation as creating the exchange table described above, and you can rewrite the code conversion table as you like, so you can change the code conversion like the conventional one. There is no need to replace the RAM.

さて、変換テーブルの作成が完了したならば、次のよう
にして入力データS1のコード変換処理を行う。
Now, once the creation of the conversion table is completed, the code conversion process for the input data S1 is performed as follows.

即ち、変換テーブルの作成を終了した時点で、制御手段
6がマルチプレクサ5を切り換えて、コード変換用RA
M2に入力されるアドレス情報S4が外部装置4から出
力される入力データS1 になるように切り換える。
That is, at the point when the creation of the conversion table is completed, the control means 6 switches the multiplexer 5 so that the code conversion RA
The address information S4 input to M2 is switched so as to become the input data S1 output from the external device 4.

次にこの切換状態において、外部装置4からの入力デー
タSI がマルチプレクサ5を経由して、コード変換用
RAM2に送られる。
Next, in this switching state, input data SI from the external device 4 is sent to the code conversion RAM 2 via the multiplexer 5.

読み取り手段7では外部装置4からデータが送出された
ことを制御信号S7で知ると、コード変換用RAM2か
ら読み取りデータS6を読み取る。
When the reading means 7 learns from the control signal S7 that data has been sent from the external device 4, it reads the read data S6 from the code conversion RAM 2.

読み取り手段7から読み取った読み取りデータS6は、
外部装置4から入力した入力データSlをコード変換し
たデータとして読み取ることができる。
The read data S6 read from the reading means 7 is
Input data Sl input from the external device 4 can be read as code-converted data.

このようにして、コード変換すべきデータをコード変換
用RA M 2を用いてコード変換することができ、こ
の場合、コード変換は従来の他の方法のようにマイクロ
プログラムによって行うのではないため、高速で処理す
ることができる。
In this way, the data to be code-converted can be code-converted using the code conversion RAM 2, and in this case, the code conversion is not performed by a microprogram as in other conventional methods. Can be processed at high speed.

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

以上説明したように本発明は、データをコード変換する
場合、プログラム等でコード変換テーブルをダイナミッ
クに書き換えることが可能なRAMを使用して、コード
変換テーブルを任意に書き換えることができ、しかも高
速で処理できるという効果がある。
As explained above, when converting data to a code, the present invention uses a RAM that allows the code conversion table to be dynamically rewritten using a program, etc., so that the code conversion table can be arbitrarily rewritten, and moreover, at high speed. It has the effect of being able to be processed.

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

第1図は本発明のコード変換装置の一実施例のブロック
図である。 1・・・・・コード変換装置 2・・・・・コード変換用RAM 3・・・・・テーブル作成手段 4・・・・・外部装置 5・・・・・マルチプレクサ 6・・・・・制御手段 7・・・・・読み取り手段 S、  ・・・・入力データ S2 ・・・・テーブル作成手段からのデータS3 ・
・・・変換データ S4 ・・・・アドレス情報 S5 ・・・・制御手段からのデータ S6 ・・・・読み取りデータ S7 ・・・・制御信号 S8 ・・・・出力データ
FIG. 1 is a block diagram of an embodiment of the code conversion device of the present invention. 1... Code conversion device 2... RAM for code conversion 3... Table creation means 4... External device 5... Multiplexer 6... Control Means 7...Reading means S,...Input data S2...Data S3 from the table creation means.
... Conversion data S4 ... Address information S5 ... Data from control means S6 ... Read data S7 ... Control signal S8 ... Output data

Claims (1)

【特許請求の範囲】[Claims] (1)情報処理システムのコード変換装置であって、 プログラムの制御により与えられるコード変換データが
格納される書き換え可能なコード変換用RAMと、 プログラム制御により上記コード変換用RAMにコード
変換テーブルを作成するテーブル作成手段と、 外部装置からのデータと上記テーブル作成手段からのデ
ータのうち一方を選択して出力するマルチプレクサと、 このマルチプレクサを切換制御する制御手段と、上記外
部装置からのデータの送出に応じて上記コード変換用R
AMからコード変換されたデータを読み取る読み取り手
段とを有することを特徴とするコード変換装置。
(1) A code conversion device for an information processing system, comprising a rewritable code conversion RAM in which code conversion data given under program control is stored, and a code conversion table created in the code conversion RAM under program control. a multiplexer for selecting and outputting one of the data from the external device and the data from the table creating means; a control means for switching and controlling the multiplexer; R for above code conversion according to
A code conversion device comprising: reading means for reading code-converted data from an AM.
JP16389086A 1986-07-14 1986-07-14 Code converter Pending JPS6320527A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16389086A JPS6320527A (en) 1986-07-14 1986-07-14 Code converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16389086A JPS6320527A (en) 1986-07-14 1986-07-14 Code converter

Publications (1)

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

Family

ID=15782744

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16389086A Pending JPS6320527A (en) 1986-07-14 1986-07-14 Code converter

Country Status (1)

Country Link
JP (1) JPS6320527A (en)

Similar Documents

Publication Publication Date Title
JPS6320527A (en) Code converter
JPS6150360B2 (en)
JP2919841B2 (en) Testing method for data processing equipment
JPS59167113A (en) D/a converter
JPS62137640A (en) Interpreter execution control system
JP2578940B2 (en) A / D conversion circuit
JP2764024B2 (en) Storage device table indexing method and indexing device
JPS6367604A (en) Process signal converter
JPS6312057A (en) Bus control system
JPS6129940A (en) Arithmetic unit
JPS61140272A (en) Image magnifying and reducing device
JPH0269826A (en) System for controlling instruction with condition
JPH01291315A (en) Input/output interface
JPH01251394A (en) Programmable rom
JPH0254373A (en) Control system for graphic processor
JPH0798695A (en) Microcomputer
JPH05100817A (en) Memory circuit with data conversion function
JPS61288718A (en) Settling system for digital protective relay
JPS6376020A (en) Virtual computer system
JPH03105504A (en) Programmable controller
JPS62184538A (en) Microprogram controller
JPS6279519A (en) General-use register reading method
JPH0548033U (en) Arithmetic device control device
JP2001084139A (en) Arithmetic processor and arithmetic processing method
JPS60262257A (en) Input and output controller