JPH0336643A - Data processing method - Google Patents

Data processing method

Info

Publication number
JPH0336643A
JPH0336643A JP1172348A JP17234889A JPH0336643A JP H0336643 A JPH0336643 A JP H0336643A JP 1172348 A JP1172348 A JP 1172348A JP 17234889 A JP17234889 A JP 17234889A JP H0336643 A JPH0336643 A JP H0336643A
Authority
JP
Japan
Prior art keywords
data
address
format
indian
representation
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
JP1172348A
Other languages
Japanese (ja)
Inventor
Michio Abe
阿部 道夫
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
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP1172348A priority Critical patent/JPH0336643A/en
Publication of JPH0336643A publication Critical patent/JPH0336643A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To process data in various address expressing forms by changing the contents of a conversion table and to prevent the overhead of preprocessing by providing an address converter, data aliner and instruction execution unit controller. CONSTITUTION:An execution unit 4 accesses an address conversion table 9 of a main storage device and an address is fetched to a table 11 in a CPU 1, and converted by a physical address in the table. Simultaneously, an address expressing form designating bit 10 is fetched to a copy part 12 as well and it is detected whether the data to be accessed are big Indian or little Indian. Afterwards, a main memory 2 is accessed by the address converted to the physical address. An aliner 3 puts the data in order to data arrangement to be used in an internal part according to a signal 15 showing the address expressing form from the copy part 12 and the data are delivered to the execu tion unit 4 and processed. At the time of writing, operation is made reverse. Thus, when information mixing the data in the various address expressing forms are processed, the overhead of the preprocessing can be prevented.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置のデータの取扱方法に関し、特に
複数のアドレス表現形式のデータを混在して収り扱うデ
ータ処理方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data handling method for an information processing device, and particularly to a data processing method that handles a mixture of data in a plurality of address expression formats.

〔従来の技術〕[Conventional technology]

情報処理装置の取り扱うデータのアドレスの主記憶装置
上の表現方法には複数あり、−船釣に用いられている形
式としては2種類のものがある。
There are several ways to represent the address of data handled by an information processing device on the main memory, and there are two types used in boat fishing.

それはビッグインディアンと呼ばれるものとリトルイン
ディアンと呼ばれるものである。
They are called the Big Indian and the Little Indian.

ビッグインディアンと呼ばれる表現方法は主記憶が表現
する一語のMSB側を低いアドレスとして表現する。例
えばバイトのアドレスでは主記憶が32ビツトであると
すると231から224の重みを持ったビットが表現す
るバイトを低位のアドレスとしLSB(Ilになるに従
い高位のアドレスであると表現する。ビットアドレスで
も同様にMSB側を低位のビットアドレスとし、L S
 B、l!!Jを高位のビットアドレスと表現する。
An expression method called Big Indian expresses the MSB side of a word expressed by the main memory as a low address. For example, in terms of byte addresses, if the main memory is 32 bits, the byte represented by the bits with a weight of 231 to 224 is considered a low address, and the LSB (Il) is expressed as a high address. Similarly, the MSB side is set as the lower bit address, and L S
B, l! ! Let J be a high-order bit address.

リトルインディアンと呼ばれる方式はビッグインディア
ンの反対で、LSB側が低位アドレスと表現され、MS
B側が高位のアドレスと表現される。
The system called Little Indian is the opposite of Big Indian, and the LSB side is expressed as a low-order address, and the MS
The B side is expressed as a high-order address.

このような異なった表現形式のデータを混在して取り扱
う情報処理装置では、バイト操作やビット操作の様な主
記憶の語長と異なるビット幅のデータを取り扱う場合の
アドレスの対応が異なり、データの間で互換性がとれな
くなる。例えば、バイト列の順番が異なってしまい文字
列を表現したデータで順番が異なってしまったり、バイ
トデータやビットデータのアドレスが示されても示さて
たデータの位置が異なってしまうため、双方のデータを
統一的に一つのプログラムで取り扱うことはできない。
In an information processing device that handles a mixture of data in such different representation formats, the address correspondence differs when handling data with a bit width that differs from the main memory word length, such as byte operations and bit operations, and the data There will be no compatibility between them. For example, the order of the byte strings may be different, resulting in the data representing the character string being in a different order, or even if the address of byte data or bit data is indicated, the position of the indicated data may be different. Data cannot be handled uniformly by a single program.

前述したようなアドレスの表現形式の異なったデータを
混在して取り扱う情報処理装置では、取り扱うデータの
表現形式がどの表現形式であるかを知り、その表現形式
に従って操作を行う必要がある。一般には情報処理装置
が取り扱うデータの表現形式は一つの方式に決定されて
おり、決定された方式と異なるデータを収り扱う場合に
は通常の命令では処理することができずデータの変換を
命令あるいはプログラムで行う必要がある。
In an information processing apparatus that handles a mixture of data with different address representation formats as described above, it is necessary to know which representation format the data to be handled is and to perform operations according to that representation format. In general, the representation format of data handled by an information processing device is determined to be one format, and when handling data that differs from the determined format, it cannot be processed with normal instructions and a data conversion command is issued. Or you need to do it programmatically.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述したアドレスの表現形式が異なるデータが混在した
情報処理装置では、その情報処理装置が仮定したデータ
を取り扱う場合は通常の処理を行うのみであり、何等問
題はない。しかし、データの表現形式が仮定したものと
異なった場合には、データをアクセスする際にデータの
表現形式の相違を意識し、その変換も含めて処理プログ
ラムを作成しなければならない。例えば、文字列で“°
AB CD ”というものが与えられると、主記憶上で
はビッグインディアンの表現ではMSB側からABCD
という順番となるが、リトルインディアンではMSB側
からDCBAという順番となる。すなわち、ビッグイン
ディアンで表現されたデータをリトルインディアンで取
り扱うと文字列“ABCD″′が“D CB A ”と
いう順番と見なされてしまいデータの互換性をとること
ができない。そこで、もし全処理している情報処理装置
がリトルインディアンを仮定して処理を行うように設計
されていた場合に、ビッグインディアンで表現されたデ
ータを処理しようとするとバイトの順番を入れ換える処
理を本来の処理の前に行わなければならず、処理能力が
低下する。また、この入れ換え処理は操作するデータの
形式に依存し、単純な入れ換えを行うだけでは対処する
ことが出来ない。また、統一的に作成された処理プログ
ラムでは異なる形式のデータを混在して取り扱うことは
できず、同じ処理プログラムもビッグインディアン用と
リトルインディアン用の2つの処理プログラムを作成す
る必要がある。
In an information processing device containing a mixture of data having different address expression formats as described above, when the information processing device handles assumed data, it only performs normal processing, and there is no problem. However, if the data representation format differs from the assumed one, the difference in data representation format must be taken into account when accessing the data, and a processing program must be created that also includes the conversion. For example, in the string “°
AB CD” is given, in the main memory, in the Big Indian expression, ABCD is input from the MSB side.
However, in Little Indian, the order is from MSB to DCBA. That is, when data expressed in Big Indian is handled in Little Indian, the character string "ABCD"' is assumed to be in the order "DCBA", making it impossible to maintain data compatibility. Therefore, if the information processing device that is performing all the processing is designed to perform processing assuming Little Indian, if you try to process data expressed in Big Indian, it will not be possible to change the order of the bytes. must be performed before processing, which reduces processing power. Furthermore, this swapping process depends on the format of the data to be manipulated, and cannot be handled by simply performing swapping. Further, a uniformly created processing program cannot handle data of different formats in a mixed manner, and it is necessary to create two processing programs for the same processing program, one for Big Indian and one for Little Indian.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のデータ処理方法は複数のバイト・アドレスおよ
びビット・アドレスの表現方法によって表現されたデー
タを混在して取り扱う情報処理装置において、論理アド
レスから物理アドレスに変換を行うために用いるアドレ
ス変換テーブルに取り扱うデータのアドレス表現形式を
示すピッI・を設け、この表現形式を示すビットのつい
た変換テーブルに対応して物理アドレス内のデータはす
べて示されたデータの表現方法であるとしてデータの操
作をハードウェアあるいはマイクロプログラムでのデー
タの取扱方法を変更することで複数の表現方法のデータ
をデータのアドレスの表現方法に対応してプログラムを
変更することなしに一元的に一つのプログラムによって
操作および演算を行うことを可能とする。
The data processing method of the present invention uses an address conversion table used to convert a logical address to a physical address in an information processing device that handles a mixture of data expressed using a plurality of byte address and bit address expression methods. A bit indicating the address expression format of the data to be handled is provided, and data operations are performed by assuming that all data in the physical address is in the indicated data expression method, corresponding to a conversion table with a bit indicating this expression format. By changing the data handling method in hardware or microprograms, it is possible to centrally manipulate and calculate data in multiple representation methods using a single program without having to change the program to correspond to the data address representation method. It is possible to do this.

〔作 用〕[For production]

本発明において情報処理装置は、論理アドレスから物理
アドレスに変換するためのアドレス変換テーブルが示す
メモリ領域に格納されているデータの形式を示すビット
を設えたアドレス変換装置と、変換テーブルに示された
データ形式に従ってデータの整列を行うアライナと、上
記ビットによってデータの取扱を変更することの出来る
命令実実行ユニット制御装置とから成っている。
In the present invention, an information processing device includes an address translation device provided with a bit indicating the format of data stored in a memory area indicated by an address translation table for translating from a logical address to a physical address, and It consists of an aligner that aligns data according to the data format, and an instruction execution unit control device that can change the handling of data depending on the bits mentioned above.

データをアクセスする場合には、まずアクセスする論理
アドレスで変換テーブルを検索するか、そのとき論理ア
ドレスから変換された物理アドレスを得ると同時に変換
テーブルからそのアドレスに格納されているデータがど
のアドレス表現形式であるかを知る。この情報によって
アクセスされたデータをアライナによって内部で収り扱
う形式に整列する。また、整列されたデータは命令実行
されるが実行時もこの情報を使用し、データの取扱いが
変更される。
When accessing data, first search the translation table using the logical address to be accessed, or at the same time obtain the physical address translated from the logical address and use the translation table to determine which address representation the data stored at that address is. Know what the format is. The data accessed using this information is arranged into a format that can be handled internally by the aligner. Further, when the ordered data is used for command execution, this information is used during execution to change the handling of the data.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照し゛C説明す
る。
Next, embodiments of the present invention will be described with reference to the drawings.

本発明の一実施例を示す第1図を参照すると、1は中央
処理装置であり、プログラムの実行を制御する。2は主
記憶装置であり、中央処理装置lがアクセスするプログ
ラム、データとアドレス変換テーブルが格納されている
。3はアライナであり、データの整列を行う。4は実行
ユニットで中央処置装置1内でプログラムの実行を行な
う。5は実行ユニット制御装置であり、マイクロプログ
ラムやハードウェアによって実行ユニツl−4を制御す
る。6は主記憶装置2内のメモリでありここにデータ及
びアドレス変換テーブル9が格納される。7はビッグイ
ンディアン表現データ、8はリトルインディアン表現デ
ータである。
Referring to FIG. 1, which shows one embodiment of the present invention, 1 is a central processing unit, which controls the execution of programs. Reference numeral 2 denotes a main storage device in which programs, data, and address conversion tables accessed by the central processing unit 1 are stored. 3 is an aligner that aligns data. 4 is an execution unit that executes programs within the central processing unit 1; Reference numeral 5 denotes an execution unit control device, which controls the execution unit 1-4 using a microprogram or hardware. Reference numeral 6 denotes a memory within the main storage device 2, in which data and an address conversion table 9 are stored. 7 is Big Indian expression data, and 8 is Little Indian expression data.

いま、実行ユニット4がデータをアクセスしようとする
場合、まずアドレス変換テーブル9をアクセスし、デー
タバス13を通して中央処理装置1内のテーブル11に
取り込まれる。この変換テーブル内の物理アドレスによ
ってアドレスが変換されると同時に変換テーブル内のア
ドレス表現形式指定ビット10も同時に12に収り込ま
れ、いまアクセスするデータがビッグインディアンであ
るかリトルインディアンであるかを知ることができる。
Now, when the execution unit 4 attempts to access data, it first accesses the address translation table 9 and imports the data into the table 11 in the central processing unit 1 via the data bus 13. At the same time as the address is converted by the physical address in this conversion table, the address expression format specification bit 10 in the conversion table is also set to 12, and it is determined whether the data to be accessed is Big Indian or Little Indian. You can know.

その後、物理アドレスに変換されたアドレスによって主
記憶をアクセスする。リード時は主記憶装置2から読み
出されたデータはデータバス13を通ってアライナ3に
入力される。アライナ3は12から出力されたアドレス
表現形式を示す信号15によってデータのアドレス表現
形式を知り、その情報に従ってデータを整列し、内部で
使用するデータの並びとする。整列されたデータは内部
データバス14を用いて実行ユニット4に渡しデータを
処理する。書き込み時はこの反対で、実行ユニット4か
ら出力されたデータは内部データバス14を通りアライ
ナ3に渡される。アライナ3は読み出し時と反対に内部
の形式から信号15で指示されたアドレス表現形式に整
列し直し、バス13を経由して主記憶装置2内に書き込
む。
Thereafter, the main memory is accessed using the address converted to a physical address. At the time of reading, data read from the main memory device 2 is input to the aligner 3 through the data bus 13. The aligner 3 learns the address expression format of the data from the signal 15 output from the signal 12 indicating the address expression format, and aligns the data according to that information to form a data arrangement for internal use. The aligned data is passed to the execution unit 4 using the internal data bus 14 to process the data. When writing, the opposite is true, and the data output from the execution unit 4 is passed to the aligner 3 via the internal data bus 14. The aligner 3 rearranges the data from the internal format to the address expression format instructed by the signal 15, contrary to the reading operation, and writes the data into the main memory 2 via the bus 13.

また、アライナ3のみでデータの整列を行うことが出来
ない場合には、信号15が実行ユニット制御装置5に伝
えられ、命令実行時に実行ユニット4の処理を実行ユニ
ット制御装置5によって、変更することによって対応す
ることができるようになっている。
Furthermore, if data cannot be aligned using only the aligner 3, a signal 15 is transmitted to the execution unit control device 5, and the execution unit control device 5 changes the processing of the execution unit 4 when executing an instruction. It is now possible to respond by

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

以上説明したように、本発明によれば、アドレスの表現
形式の異なるデータが混在した情報処理装置においてデ
ータの前処理を行うことなしに異なるデータをアドレス
変換テーブル内のデータのアドレス形式を表現するビッ
トを格納することによって処理することができ、前処理
のオーバーヘッドが生じることがない。また、ひとつの
アドレス表現形式のためのプログラムによって異なるア
ドレス表現形式のデータをアドレス変換テーブルの内容
を変更することによって処理することができ、データ形
式に対応した別々のプログラムを作成する必要がない。
As described above, according to the present invention, in an information processing device in which data with different address expression formats coexist, different data can be expressed in the address format of data in an address conversion table without preprocessing the data. It can be processed by storing bits and there is no preprocessing overhead. Further, a program for one address expression format can process data of different address expression formats by changing the contents of the address conversion table, and there is no need to create separate programs corresponding to the data formats.

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

第1図は本発明の一実施例を示す構成図である。 1・・・中央処理装置、2・・・主記憶装置、3・・・
アライナ、4・・・実行ユニット、5・・・実行ユニッ
ト制御装置、6・・・主記憶、7・・・ビッグインディ
アン表現データ、8・・・リトルインディアン表現デー
タ、9・・・アドレス変換テーブル、10・・・アドレ
ス表現形式指定ピッI・、11・・・アクセスするアド
レスに対応したアドレス変換テーブルの複写、12・・
・アクセスするアドレスに対応したアドレス表現形式指
定ビットの複写、13・・・データバス、14・・・内
部データバス。
FIG. 1 is a block diagram showing an embodiment of the present invention. 1...Central processing unit, 2...Main storage device, 3...
Aligner, 4... Execution unit, 5... Execution unit control device, 6... Main memory, 7... Big Indian expression data, 8... Little Indian expression data, 9... Address conversion table , 10...Address expression format specification pin I..., 11...Copying the address conversion table corresponding to the address to be accessed, 12...
- Copy of address expression format designation bits corresponding to the address to be accessed, 13...data bus, 14...internal data bus.

Claims (1)

【特許請求の範囲】[Claims] 複数のバイト・アドレスおよびビット・アドレスの表現
方法によって表現されたデータを混在して取り扱う情報
処理装置において、論理アドレスから物理アドレスに変
換を行うために用いるアドレス変換テーブルに取り扱う
データのアドレス表現形式を示すビットを設け、この表
現形式を示すビットのついた変換テーブルに対応して物
理アドレス内のデータはすべて示されたデータの表現方
法であるとしてデータの操作をハードウェアあるいはマ
イクロプログラムでのデータの取扱方法を変更すること
で複数の表現方法のデータをデータのアドレスの表現方
法に対応してプログラムを変更することなしに一元的に
一つのプログラムによって操作および演算を行うことを
可能とすることを特徴とするデータ処理方法。
In an information processing device that handles a mixture of data expressed using multiple byte address and bit address expression methods, the address expression format of the data handled is specified in the address conversion table used to convert from a logical address to a physical address. A bit is provided to indicate the representation format, and all data in the physical address is assumed to be the indicated data representation method, and the data is manipulated by hardware or a microprogram. By changing the handling method, it is possible to centrally manipulate and calculate data in multiple representation methods using one program without changing the program to correspond to the data address representation method. Characteristic data processing method.
JP1172348A 1989-07-03 1989-07-03 Data processing method Pending JPH0336643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1172348A JPH0336643A (en) 1989-07-03 1989-07-03 Data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1172348A JPH0336643A (en) 1989-07-03 1989-07-03 Data processing method

Publications (1)

Publication Number Publication Date
JPH0336643A true JPH0336643A (en) 1991-02-18

Family

ID=15940242

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1172348A Pending JPH0336643A (en) 1989-07-03 1989-07-03 Data processing method

Country Status (1)

Country Link
JP (1) JPH0336643A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5946215A (en) * 1996-01-23 1999-08-31 Mitsubishi Denki Kabushiki Kaisha Machine tool controlling network communication controlling system
WO2010029794A1 (en) * 2008-09-12 2010-03-18 株式会社ルネサステクノロジ Data processing device and semiconductor integrated circuit device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5946215A (en) * 1996-01-23 1999-08-31 Mitsubishi Denki Kabushiki Kaisha Machine tool controlling network communication controlling system
WO2010029794A1 (en) * 2008-09-12 2010-03-18 株式会社ルネサステクノロジ Data processing device and semiconductor integrated circuit device
JP2014179107A (en) * 2008-09-12 2014-09-25 Renesas Electronics Corp Semiconductor integrated circuit device
US9524237B2 (en) 2008-09-12 2016-12-20 Renesas Electronics Corporation Data processing device and semiconductor intergrated circuit device for a bi-endian system

Similar Documents

Publication Publication Date Title
US5406644A (en) Apparatus and method for emulating a computer instruction set using a jump table in the host computer
US4835733A (en) Programmable access memory
JPH0248931B2 (en)
JPS5917463B2 (en) Microprogrammable computer system
JPH0414385B2 (en)
EP0310600B1 (en) Arrangement for software emulation
US4068299A (en) Data processing system incorporating a logical compare instruction
JPS623461B2 (en)
JPH0336643A (en) Data processing method
JPS6266330A (en) Loading device for instruction counter
KR920006611B1 (en) Information processing apparatus
JPS6055911B2 (en) main storage
JPS6049335B2 (en) Branch address determination method in microprogram controlled data processing equipment
JPS60134937A (en) Address extension device
JPS6235151B2 (en)
JPS6015965B2 (en) Information processing device that processes character string data
JPS62126447A (en) Address conversion method
JPS6218076B2 (en)
JPS59106047A (en) Microcomputer
JPH03168845A (en) Instruction execution control system
JPS63241647A (en) Microprocessor
JPS59742A (en) Access processing system of data arrangement
JPS62263539A (en) Character string processing system
JPH02157932A (en) Variable length data processor
JPS63208146A (en) Computer environment converter