JPS63217416A - Data array transform device - Google Patents

Data array transform device

Info

Publication number
JPS63217416A
JPS63217416A JP5132487A JP5132487A JPS63217416A JP S63217416 A JPS63217416 A JP S63217416A JP 5132487 A JP5132487 A JP 5132487A JP 5132487 A JP5132487 A JP 5132487A JP S63217416 A JPS63217416 A JP S63217416A
Authority
JP
Japan
Prior art keywords
data
array
map register
information
memory
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
JP5132487A
Other languages
Japanese (ja)
Inventor
Norihei Nakada
徳平 中田
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 JP5132487A priority Critical patent/JPS63217416A/en
Publication of JPS63217416A publication Critical patent/JPS63217416A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the program maintenance properties and to reduce a program size by obtaining the conversion data by transforming the data array order into such a form that can be processed by a central processing unit CPU based on the array information supplied from a map register reading part and sending said conversion data to the CPU. CONSTITUTION:Data 5C-0-5C-3 are read out with output of the address information 102. The higher 2 bits of the information 102 are supplied to a map register reading part 2. The part 2 selects an area 1C of a map register 1 based on said higher 2 bits of the information 102 and reads out the contents '1' of the area 1C to deliver it to a data array transform part 3. The part 3 supplies the data 5C-0-5C-3 read out of a memory 5 and inverts the array order into 5C-3-5C-0 owing to a fact that the information received from the part 2 is set at '1' to deliver it to a CPU4. Thus it is possible to improve the program maintenance properties and also to prevent deterioration of the system processing performance.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はコンピュータシステムにおいてデータ処理を行
う際に、データの配列状態を中央処理装置が処理できる
順序に変換するために用いるデータ配列変換装置に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data array conversion device used to convert the array state of data into an order that can be processed by a central processing unit when processing data in a computer system. .

〔従来の技術〕[Conventional technology]

従来、コンピュータシステムにおいて、中央処理装置(
CPU)が直接処理することのできるJIII序の配列
(メモリの低い番地から順に低い値のデータがあるか、
または反対に高い値のデータがあるかということで、デ
ータの並びともいう)のデータと、その逆の順序の配列
のデータが混在している場合には、プログラム側がデー
タアクセスの度にそのデータがCPUが直接処理できる
順序の配列(順配列)であるかまたは反対の順序の配列
(逆配列)であるかを識別し、逆配列の場合にはプログ
ラム側がそのデータを順配列に変換している。
Traditionally, in computer systems, the central processing unit (
JIII-ordered array (Is there data with low values starting from the lowest address in memory, which the CPU) can directly process?
Or, conversely, if there is data with a high value (also called data arrangement) and data with an arrangement in the opposite order, the program side will need to access the data every time it accesses the data. identifies whether it is an array in an order that the CPU can directly process (forward array) or an array in the opposite order (reverse array), and if it is a reverse array, the program converts the data to a forward array. There is.

例えばシステムAで作成したファイルをシステムBで参
照するような場合、もし、システムAに対する順配列と
システムBに対する順配列とが反対の配列であり、ファ
イル内のポインタがシステムAに対する順配列にセット
されていると、システムB側のファイルアクセスプログ
ラムはそのポインタをアクセスする度にデータの配列を
反転させなければならず、しかもシステムB内の通常の
メモリをアクセスする場合にはこのような反転動作を行
わないようにしなければならない。
For example, when a file created on system A is referenced on system B, if the sequential array for system A and the sequential array for system B are opposite arrays, and the pointer in the file is set to the sequential array for system A. , the file access program on system B side must invert the data array every time it accesses that pointer, and this inversion operation is necessary when accessing normal memory in system B. must be avoided.

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

上述したように、従来のコンピュータシステムでは、プ
ログラム側がデータの配列順序の認識と、その順序を反
転させる動作とを行わなければならないなめ、保守性が
低く、またプログラムの大きさが増大し、かつコンピュ
ータシステムの処理性能が低下するという欠点がある。
As mentioned above, in conventional computer systems, the program side must recognize the data arrangement order and perform operations to reverse that order, resulting in low maintainability, increased program size, and The disadvantage is that the processing performance of the computer system decreases.

本発明の目的は、上述のような従来のコンピュータシス
テムの欠点を除去して、プログラムの保守性にすぐれ、
またその大きさも小さく、がっシステムの処理性能の低
下を防止することのできるデータ配列変換装置を提供す
ることにある。
An object of the present invention is to eliminate the drawbacks of the conventional computer system as described above, and to improve program maintainability.
Another object of the present invention is to provide a data array conversion device that is small in size and can prevent a decrease in system processing performance.

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

本発明のデータ配列変換装置は、データの配列に関して
メモリ内の領域による偏りがあることに着目し、データ
の配列順序を領域毎にそのデータを扱うプログラム側か
ら指定できるようにするなめ、各領域内のデータがその
CPUが直接処理することのできる順配列であるが否か
を示す値を各領域に対応させてマツプレジスタに格納し
ておき、プログラムがメモリをアクセスする際にマツプ
レジスタの値に応じて自動的にデータの配列順序を調整
するためのアドレス情報をCPUがメモリをアクセスす
るときに出力し、このアドレス情報によってデータが格
納されている領域に対応するマツプレジスタの値をマツ
プレジスタ読取部によって読み出し、マツプレジスタ読
取部から出力された値によってデータ配列変換部におい
てデータの配列順序を反転するが否がを決定してその決
定に従った配列順序でデータを通過させるように構成し
ている。
The data array conversion device of the present invention focuses on the fact that the data array is biased depending on the area in the memory, and in order to enable the data array order to be specified for each area from the program that handles the data, A value indicating whether or not the data in the area is an ordered array that can be directly processed by the CPU is stored in the map register in association with each area, and when the program accesses the memory, the value in the map register is stored. When the CPU accesses the memory, the CPU outputs address information to automatically adjust the data arrangement order according to the map register. The reading unit reads the data, and the data array conversion unit determines whether or not to invert the arrangement order of the data based on the value output from the map register reading unit, and passes the data in the arrangement order according to the determination. ing.

すなわち、本発明のデータ配列変換装置は、複数個の領
域に分割されたメモリの各領域に対応する記憶領域を有
し前記領域のそれぞれに格納されたデータの配列順序を
示す配列情報を格納するマツプレジスタと、中央処理装
置から前記メモリに送出されるアドレス情報の一部を入
力して前記マツプレジスタの該当する前記配列情報を読
出すマツプレジスタ読取部と、前記メモリの該当する領
域からその領域に格納されているデータを読出し前記マ
ツプレジスタ読取部から前記配列情報を入力してその配
列情報に従って前記データの配列順序を前記中央処理装
置が処理できる配列順序に変換した変換データを前記中
央処理装置に送出するデータ配列変換部とを備えて構成
される。
That is, the data array conversion device of the present invention has a storage area corresponding to each area of a memory divided into a plurality of areas, and stores array information indicating the arrangement order of data stored in each of the areas. a map register; a map register reading section that inputs a part of the address information sent from the central processing unit to the memory and reads out the corresponding array information of the map register; reads the data stored in the map register reading section, inputs the array information from the map register reading section, converts the array order of the data into an array order that can be processed by the central processing unit according to the array information, and converts the converted data into an array order that can be processed by the central processing unit. and a data array conversion unit that sends data to the data array.

〔実施例〕〔Example〕

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

第1図は本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

第1図において、1はマツプレジスタ、2は中央処理袋
f (CPU)4がメモリ5をアクセスする際に出力さ
れるアドレス情報を入力してそのアドレス情報に対応す
る。マツプレジスタ1の内容を読出してデータ配列変換
部3に出力するマツプレジスタ読取装置、3はCPU4
がらメモリ5に書込まれるデータやメモリ5がら続出さ
れるデータの配列順序をマツプレジスタ読取部2がらの
出力値に応じて反転させるデータ配列変換部である。
In FIG. 1, reference numeral 1 indicates a map register, and reference numeral 2 indicates address information output when the central processing unit f (CPU) 4 accesses the memory 5, and corresponds to the address information. A map register reading device that reads the contents of map register 1 and outputs it to data array converter 3; 3 is CPU 4;
This is a data array conversion section that inverts the arrangement order of data written into the memory 5 or data successively read out from the memory 5 in accordance with the output value from the map register reading section 2.

第2図は第1図のマツプレジスタ1とメモリ5の領域と
の関係を示す説明図である。
FIG. 2 is an explanatory diagram showing the relationship between the map register 1 of FIG. 1 and the areas of the memory 5.

本実施例では、第2図に示すように、メモリ5は4個の
領域5Aおよび5Bおよび5cおよび5Dに分割されて
おり、その各領域とマツプレジスタ内の領域IAおよび
IBおよび1cおよびIDがそれぞれ対応している。マ
ツプレジスタの1個の領域は1ビツトで構成されており
、その値が“0′”のときはメモリ5の対応する領域に
格納されているデータの配列が順配列であることを示し
、その値が“1′′のときは逆配列であることを示す。
In this embodiment, as shown in FIG. 2, the memory 5 is divided into four areas 5A, 5B, 5c and 5D, and each of these areas and areas IA, IB, 1c and ID in the map register are divided into four areas 5A, 5B, 5c and 5D. Each corresponds to the other. One area of the map register consists of one bit, and when the value is "0'", it indicates that the data array stored in the corresponding area of memory 5 is a sequential array. A value of "1" indicates an inverted array.

第1図の実施例ではメモリ5の領域5Aおよび5Dは順
配列になっており、領域5Bおよび5Cは逆配列となっ
ている。
In the embodiment shown in FIG. 1, areas 5A and 5D of memory 5 are arranged in order, and areas 5B and 5C are arranged in reverse.

第3図は第1図の実施例においてデータの配列が順配列
のデータをメモリ5から読出すときの状態を示すブロッ
ク図である。
FIG. 3 is a block diagram showing a state when data in a sequential data arrangement is read from the memory 5 in the embodiment of FIG. 1.

第3図において、メモリ5の領域5D内のデータは4バ
イトのデータであり、それらをデータ5D−0および5
D−1および5D−2および5D−3とするとき、これ
らをCPU4が読出すときは、まずデータ5D−〇〜5
D−3を読出すためにアドレス情報101を出力する。
In FIG. 3, the data in area 5D of memory 5 is 4 bytes of data, which are divided into data 5D-0 and 5D.
D-1, 5D-2, and 5D-3, when the CPU 4 reads them, first the data 5D-0 to 5
Address information 101 is output to read D-3.

このとき、アドレス情報101の上位2ビツトがマツプ
レジスタ読取部2に入力される。マツプレジスタ読取部
2は、入力されたアドレス情報101の上位2ビツトか
ら判断してマツプレジスタ1の領域IDを選択し、その
内容“0”を読出してデータ配列変換部3に出力する。
At this time, the upper two bits of the address information 101 are input to the map register reading section 2. The map register reading section 2 selects the area ID of the map register 1 based on the upper two bits of the input address information 101, reads out its content "0", and outputs it to the data array converting section 3.

データ配列変換部3は、メモリ5から出力されるデータ
5D−0〜5D−3を入力し、マツプレジスタ読取部2
からの情報が“0″であるため、その配列順序を変換せ
ずにそのままの順序でCPU4に出力する。
The data array converter 3 inputs the data 5D-0 to 5D-3 output from the memory 5, and inputs the data 5D-0 to 5D-3 output from the memory 5, and
Since the information from is "0", the arrangement order is not converted and is output to the CPU 4 in that order.

第4図は第1図の実施例において、逆配列のデータをメ
モリ5から読出すときの状態を示すブロック図である。
FIG. 4 is a block diagram showing the state when reversely arranged data is read from the memory 5 in the embodiment of FIG. 1.

第4図において、領域5C内のデータは4バイトのデー
タであり、それらをデータ5C−0および5C−1およ
び5C−2および5C−3とするとき、これらをCPU
4が読出すときは、まずデータ5C−0〜5C−3を読
出すなめにアドレス情報102を出力する。このとき、
アドレス情報102の上位2ビツトがマツプレジスタ読
取部2に入力される。マツプレジスタ読取部2は、入力
されたアドレス情報102の上位2ビツトから判断して
マツプレジスタ1の領域ICを選択し、その内容“1″
を読出してデータ配列変換部3に出力する。データ配列
変換部3は、メモリ5がら出力されるデータ5C−0〜
5C−3を入力し、マツプレジスタ読取部2からの情報
が“1″であるため、その配列順序を50−3〜5C−
0の順に反転してCPU4に出力する。
In FIG. 4, data in area 5C is 4-byte data, and when these are data 5C-0, 5C-1, 5C-2, and 5C-3, these are
When reading data 5C-0 to 5C-3, address information 102 is first output. At this time,
The upper two bits of the address information 102 are input to the map register reading section 2. The map register reading unit 2 selects the area IC of the map register 1 based on the upper two bits of the input address information 102, and selects the area IC of the map register 1, whose content is "1".
is read out and output to the data array conversion section 3. The data array converter 3 converts data 5C-0 to 5C-0 output from the memory 5.
5C-3 is input, and the information from the map register reading section 2 is "1", so the arrangement order is changed to 50-3 to 5C-.
The data is inverted in the order of 0 and output to the CPU 4.

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

以上説明したように本発明は、プログラム側があらかじ
めメモリの各領域内のデータの配列順序に関する情報を
対応するマツプレジスタにセットするだけで、その後は
データの配列順序をメモリへのアクセスの度に認識する
必要がなく、また順序を反転させる動作をする必要もな
くなるため、保守性が向上し、プログラムサイズも減少
するという効果がある。また、コンピュータシステムの
処理性能の低下を防止することができるという効果もあ
る。
As explained above, the present invention allows the program to simply set information regarding the arrangement order of data in each area of memory in the corresponding map register in advance, and after that, the arrangement order of data is recognized every time the memory is accessed. Since there is no need to perform an operation to reverse the order, maintainability is improved and the program size is reduced. Furthermore, there is also the effect that deterioration in the processing performance of the computer system can be prevented.

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

第1図は本発明の一実施例を示すブロック図、第2図は
第1図のマツプレジスタとメモリの領域との関係を示す
説明図、第3図は第1図の実施例において順配列を有す
るデータをメモリから読出す時の状態を示す図、第4図
は第1図の実施例において逆配列を有するデータをメモ
リから読出すときの状態を示すブロック図である。 1・・・マツプレジスタ、2・・・マツプレジスタ読取
部、3・・・データ配列変換部、4・・・中央処理装置
(CPU)、5・・・メモリ。 茅 1 園 茅 2 月 青 4 酊
FIG. 1 is a block diagram showing one embodiment of the present invention, FIG. 2 is an explanatory diagram showing the relationship between the map registers in FIG. 1 and memory areas, and FIG. 3 is a sequential arrangement in the embodiment of FIG. FIG. 4 is a block diagram showing a state when data having an inverted arrangement is read from the memory in the embodiment of FIG. 1. DESCRIPTION OF SYMBOLS 1... Map register, 2... Map register reading section, 3... Data array conversion section, 4... Central processing unit (CPU), 5... Memory. Kaya 1 Garden Kaya 2 Tsukisei 4 Drunkenness

Claims (1)

【特許請求の範囲】[Claims] 複数個の領域に分割されたメモリの各領域に対応する記
憶領域を有し前記領域のそれぞれに格納されたデータの
配列順序を示す配列情報を格納するマップレジスタと、
中央処理装置から前記メモリに送出されるアドレス情報
の一部を入力して前記マップレジスタの該当する前記配
列情報を読出すマップレジスタ読取部と、前記メモリの
該当する領域からその領域に格納されているデータを読
出し前記マップレジスタ読取部から前記配列情報を入力
してその配列情報に従って前記データの配列順序を前記
中央処理装置が処理できる配列順序に変換した変換デー
タを前記中央処理装置に送出するデータ配列変換部とを
備えることを特徴とするデータ配列変換装置。
a map register having a storage area corresponding to each area of a memory divided into a plurality of areas, and storing array information indicating an array order of data stored in each of the areas;
a map register reading section that inputs a part of the address information sent to the memory from the central processing unit and reads out the corresponding array information of the map register; data that is read out, inputs the array information from the map register reading section, converts the array order of the data into an array order that can be processed by the central processing unit according to the array information, and sends converted data to the central processing unit. A data array conversion device comprising: an array conversion section.
JP5132487A 1987-03-05 1987-03-05 Data array transform device Pending JPS63217416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5132487A JPS63217416A (en) 1987-03-05 1987-03-05 Data array transform device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5132487A JPS63217416A (en) 1987-03-05 1987-03-05 Data array transform device

Publications (1)

Publication Number Publication Date
JPS63217416A true JPS63217416A (en) 1988-09-09

Family

ID=12883738

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5132487A Pending JPS63217416A (en) 1987-03-05 1987-03-05 Data array transform device

Country Status (1)

Country Link
JP (1) JPS63217416A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6341345B1 (en) 1995-02-24 2002-01-22 International Business Machines Corporation Mixed-endian computer system that provides cross-endian data sharing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6341345B1 (en) 1995-02-24 2002-01-22 International Business Machines Corporation Mixed-endian computer system that provides cross-endian data sharing

Similar Documents

Publication Publication Date Title
JPS63217416A (en) Data array transform device
US7254667B2 (en) Data transfer between an external data source and a memory associated with a data processor
US7240144B2 (en) Arbitration of data transfer requests
JPH0731666B2 (en) Inter-processor communication method
JPH05233560A (en) Inter-processor notifying system for multiprocessor circuit and its method
JPH0135376B2 (en)
JPH0736806A (en) Dma system
JPS6257050A (en) Common memory device
JP3049710B2 (en) Nonvolatile semiconductor memory device
JPS60134956A (en) Information processing system
JP2972568B2 (en) Bus extender
JPH05334233A (en) Data transferring device
JPH01283653A (en) Memory pool managing system
JPH04195234A (en) Data transfer system
JPS61153770A (en) Image processor
JPS63250736A (en) Image data processor
JPS6327740B2 (en)
JPS6273344A (en) Data processor
JPS6186859A (en) Bus selector
JPH01134545A (en) Speed-up circuit for transfer of block data
JPH06110682A (en) Advanced readout arithmetic processing device
JPH0512853A (en) First in first out storage device
JPH02199556A (en) Dump system for file device
JPS62282342A (en) Buffer storage control system
JPH03164850A (en) Direct memory access device