JPS6312057A - Bus control system - Google Patents

Bus control system

Info

Publication number
JPS6312057A
JPS6312057A JP15583686A JP15583686A JPS6312057A JP S6312057 A JPS6312057 A JP S6312057A JP 15583686 A JP15583686 A JP 15583686A JP 15583686 A JP15583686 A JP 15583686A JP S6312057 A JPS6312057 A JP S6312057A
Authority
JP
Japan
Prior art keywords
data
bus
processor
byte
address
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
JP15583686A
Other languages
Japanese (ja)
Inventor
Mikio Yonekura
米倉 幹夫
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.)
Fanuc Corp
Original Assignee
Fanuc 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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP15583686A priority Critical patent/JPS6312057A/en
Publication of JPS6312057A publication Critical patent/JPS6312057A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform the data processing similar to a processor of the same system without reducing the processing speed by switching a data selecting signal and a data bus even if processors different in data arrangement system are connected to the same bus. CONSTITUTION:When trying to process data where the arrangement of upper data and lower data is different a processor 11 outputs an address selecting signal. An address control means 12 receives and stores this signal and sends the signal to selecting signal switching means 13 and 14 and a data switching means 17. Selecting signal switching means switch which selects upper data or lower data outputted from the processor, and upper data is converted to output the selecting signal, which selects lower data, to a bus 30 if the processor selects upper data. When lower data is read, an upper data bus 33 and a lower data bus 34 are switched by the data switching means 17 to read out lower data, which is read out from a memory, as upper data of the processor.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は上位データと下位データの配列の異なるプロセ
ッサを結合したバスにおけるバス制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a bus control system for a bus connecting processors with different arrangements of upper and lower data.

〔従来の技術〕[Conventional technology]

1バイトのデータを2個結合して16ビントのデータと
してこれをメモリに記憶配列する方式として第2図に示
すように2方式がある。
As shown in FIG. 2, there are two methods for combining two 1-byte data to create 16-bit data and storing and arranging it in a memory.

第2図(a)はビッグエンディアン(B i gend
ian)方式と称し、16ビットのデータの上位の8ビ
ットのデータが最初の番地に、下位の8ビットのデータ
が次の番地に記憶される方式である。(以下、この方式
をBE方弐と言う。)第2図(b)はリントルエンディ
アン(Little  endian)方式と称し、1
6ビ・7トの下位の8ビットのデータを最初の番地に、
上位の8ビットのデータを次の番地に記憶する方式であ
る。(以下、この方式をLE方弐と言う。)いずれの方
式にするかは、採用するプロセッサによって定まり、通
常1個のシステムではどちらかに統一されている。
Figure 2 (a) is big endian (B i gend
In this method, the upper 8 bits of 16-bit data are stored in the first address, and the lower 8 bits are stored in the next address. (Hereinafter, this method will be referred to as BE method 2.) Figure 2 (b) is called the Little endian method, and 1
Put the lower 8-bit data of 6-bit and 7-bit data in the first address,
This is a method in which the upper 8 bits of data are stored at the next address. (Hereinafter, this method will be referred to as LE method 2.) Which method is used depends on the processor used, and one system is usually unified to one or the other.

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

しかし、上記2方式のプロセッサシステムで別個にソフ
トウェアの開発が行われ、ソフトウェアの蓄積が相当さ
れた後に2系統のシステムを結合したような新しいシス
テムが必要になる場合も少なくない。この場合データの
配列記憶方式が異なり、いずれか一方のプロセッサシス
テムに統一する必要があり、他方の蓄積されたソフトウ
ェアは使用できなくなる。これではソフトウェアが無駄
となり、これを避けるために両者を結合し、データを交
換する場合にプロセッサ内で上位データと下位データを
交換することも可能である。しかし、この方式では常に
データの交換というプロセスがソフトウェア処理工程に
はいり、処理時間が著しく遅くなるという問題点がある
However, it is not uncommon for software to be developed separately for the two types of processor systems mentioned above, and after the software has been accumulated, a new system that combines the two systems becomes necessary. In this case, the data arrangement and storage methods are different, and it is necessary to unify them to one of the processor systems, making the software stored in the other system unusable. This wastes software, and to avoid this, it is also possible to combine the two and, when exchanging data, exchange upper and lower data within the processor. However, this method has the problem that the process of exchanging data is always included in the software processing step, which significantly slows down the processing time.

そこで本発明の目的は上記問題点を解決し、上位データ
と下位データの配列の異なるプロセッサを結合したバス
において、これをハードウェアで変換するようにしたバ
ス制御方式を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problems and provide a bus control system that converts the upper and lower data using hardware in a bus that connects processors with different arrangements.

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

本発明では上記の問題点を解決するために、1個のバス
に上位バイトと下位バイトの配列の異なるアドレス方式
を有するプロセッサが結合されたバス制御方式において
、 プロセッサからのアドレス方式選択信号を受けてアドレ
ス方式を記憶し制御するるアドレス制御手段と、 該アドレス制御手段からの信号を受けてプロセッサから
の上位データと下位データの選択信号を切り換える選択
信号切換手段と、 前記アドレス制御手段からの信号を受けて上位バイトデ
ータバスと下位バイトデータバスを切り換えるデータ切
換手段とを有し、 アドレス方式の異なるデータの上位データと下位データ
の配列を変換するように構成したことを特徴とするバス
制御方式、 を採用した。
In order to solve the above-mentioned problems, the present invention provides a bus control method in which processors having different addressing methods for upper byte and lower byte arrangement are connected to one bus. address control means for storing and controlling an address system using the address control means; selection signal switching means for receiving a signal from the address control means and switching between a selection signal for upper data and lower data from the processor; and a signal from the address control means. a data switching means for switching between an upper byte data bus and a lower byte data bus in response to a signal, and is configured to convert the arrangement of upper and lower data of data having different addressing systems. , It was adopted.

〔作用〕[Effect]

プロセッサが上位データと下位データの配列の異なるデ
ータを処理しようとするとき、プロセッサはアドレス選
択信号を出力する。
When the processor attempts to process data with different arrangements of upper and lower data, the processor outputs an address selection signal.

これを受けたアドレス制御手段はこれを記憶し、選択信
号切換手段とデータ切換手段に信号を送る。
The address control means that receives this stores it and sends a signal to the selection signal switching means and the data switching means.

選択信号切換手段はプロセッサの出力する上位データと
下位データのいずれを選択するかの選択信号を切り換え
、プロセッサが上位データをを選択すると、これを変換
し、下位データを選択する選択信号がバスに出力される
。従って、メモリ等の下位データが読出される。
The selection signal switching means switches the selection signal for selecting either the upper data or the lower data output by the processor, and when the processor selects the upper data, it converts this and sends the selection signal for selecting the lower data to the bus. Output. Therefore, lower-order data such as memory is read out.

下位データが読出れると、これをデータ切換手段によっ
て上位データバスと下位データバスを互いに切換え、メ
モリから読出された下位データがプロセッサの上位デー
タとして読出される。
When the lower data is read out, the data switching means switches between the upper data bus and the lower data bus, and the lower data read from the memory is read out as upper data of the processor.

これによって、他のメモリ等からのデータの配列を変換
して読み取ることができる。プロセッサが他のメモリ等
に書込む場合も同様である。
This makes it possible to convert and read data arrays from other memories and the like. The same applies when the processor writes to another memory or the like.

〔実施例〕〔Example〕

以下本発明の一実施例を図面に基すいて説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第1図に本発明の一実施例のブロック図を示す。図にお
いて、10はプロセッサモジュールであり、プロセッサ
11を含み、プロセッサ11は第2図(a)に示すBE
方式とする。
FIG. 1 shows a block diagram of an embodiment of the present invention. In the figure, 10 is a processor module, which includes a processor 11, and the processor 11 is a BE shown in FIG. 2(a).
method.

20はメモリモジュールであり、このメモリには第2図
(b)に示すLE方式でデータが記憶されているものと
する。
20 is a memory module, and data is stored in this memory in the LE format shown in FIG. 2(b).

プロセッサモジュールlOとメモリモジュール20はバ
ス30で結合されており、このバス30には図示されて
いないL2方式のプロセッサが接続されている。
The processor module 10 and the memory module 20 are connected by a bus 30, and an L2 type processor (not shown) is connected to the bus 30.

即ち、ここで図示されていないLE方式のプロセッサか
らメモリモジュール20に書込まれたデータをBE方式
であるプロセッサモジュール10が読込むように構成し
たものである。
That is, the configuration is such that the BE processor module 10 reads data written to the memory module 20 from an LE processor (not shown).

次にプロセッサモジュール10の構成の詳細について述
べる。プロセッサ11は前に述べたようにBE方式のプ
ロセッサである。12はアドレス制御回路であり、プロ
セッサ11がLE方式のデータを読込むときには5WA
P指令を受けて、これを記憶し、その内容を出力する。
Next, details of the configuration of the processor module 10 will be described. The processor 11 is a BE type processor as described above. 12 is an address control circuit, which uses 5WA when the processor 11 reads data in the LE format.
It receives the P command, stores it, and outputs its contents.

13及び14は選択信号切換回路であり、BE方式の信
゛号を読込むときはプロセッサ11のライン18aから
上位データ選択信号(* U o S)が出され、その
まま選択信号切換回路13を通り、ライン31に出力さ
れる。しかし、LE方式のデータを読込む時はアドレス
制御回路工2からの出力信号によって、選択13号切換
回路14の実線で示す通路が有効となり、ライン32に
下位データ選択信号(*LDS)として出力され、メモ
リモジュール20から下位データを読み込むのである。
Reference numerals 13 and 14 designate selection signal switching circuits, and when reading a BE system signal, an upper data selection signal (*UoS) is output from line 18a of the processor 11 and passes through the selection signal switching circuit 13 as it is. , is output on line 31. However, when reading data in the LE system, the output signal from the address control circuit 2 enables the path shown by the solid line in the selection No. 13 switching circuit 14, and outputs it to the line 32 as a lower data selection signal (*LDS). Then, the lower data is read from the memory module 20.

一方、15及び16はパスバッファであり、17はデー
タ切換回路である。通常、BE方式のデータを読込むと
きは上位バイトのデータは上位バイトデータバス33か
らそのまま、バスバッファ15を経由して読込まれる。
On the other hand, 15 and 16 are pass buffers, and 17 is a data switching circuit. Normally, when reading BE method data, the upper byte data is read directly from the upper byte data bus 33 via the bus buffer 15.

しかし、LE方式のデータを読込むときは、下位バイト
データバス34がらのデータをアドレス制御回路12か
らの信号を受けたデータ切換回路17によって上位バイ
トデータバス33に切換え、パスバッファ15、バス1
9aをとうして上位データとして読込むのである。
However, when reading data in the LE format, data from the lower byte data bus 34 is switched to the upper byte data bus 33 by the data switching circuit 17 that receives a signal from the address control circuit 12, and the data from the lower byte data bus 34 is switched to the upper byte data bus 33.
The data is read as upper data through 9a.

次にメモリモジュール20の詳細について述べる。図に
おいて16ビット分のメモリを上位バイトメモリ21と
下位バイトメモリ22として図示しである。24及び2
5はパスバッファであり、内部パスライン26a及び2
6bをかいして外部の上位バイトデータバス33及び下
位バイトデータバス34に結合されている。ここでは前
に述べたように、図示されていないLE方式のプロセッ
サからデータが書込まれ、LE方式でデータが記憶され
ている。即ち、第2図(b)に示すように、上位バイト
メモリ21に上位データが、下位バイトメモリ22に下
位データが記憶されている。
Next, details of the memory module 20 will be described. In the figure, memories for 16 bits are shown as an upper byte memory 21 and a lower byte memory 22. 24 and 2
5 is a pass buffer, and internal pass lines 26a and 2
6b to an external upper byte data bus 33 and lower byte data bus 34. As mentioned above, data is written from an LE processor (not shown) and stored in the LE format. That is, as shown in FIG. 2(b), upper byte memory 21 stores upper data, and lower byte memory 22 stores lower data.

バス30は16ビットのデータバスであり、これに制御
信号として上位データ選択信号0kUDS)ライン31
及び下位データ選択信号(*LDS)ライン32等が含
まれている。尚、本実施例のようにLE方式のデータを
BE方式に変換する場合はバイト単位でデータの転送を
行う。
The bus 30 is a 16-bit data bus, and the upper data selection signal (0kUDS) line 31 is connected to this as a control signal.
and a lower data selection signal (*LDS) line 32. Note that when converting LE format data to BE format data as in this embodiment, data is transferred in byte units.

次に動作についてのべる。前に述べたように、メモリモ
ジュール20にはり、E方式でデータが記憶されなおり
、上位バイトメモリ21には上位データが、下位バイト
メモリ22には下位データが記憶されている。
Next, I will talk about the operation. As mentioned previously, data is not stored in the memory module 20 in the E format, but the upper byte memory 21 stores upper data and the lower byte memory 22 stores lower data.

プロセッサ11はBE方式のプロセッサであり、上位デ
ータを下位バイトに下位データを上位バイトに読込みた
い。そこで、プロセッサ11はまず、アドレス制御回路
12にS W A P指令を出し、LE方式のデータを
読込む準備をする。アドレス制御回路12はこれを記憶
し、選択信号切換回路13及び14に信号を出し、選択
信号切換回路I3及び14は実線で示す通路が有効にな
るように制御する。又、データ切換回路17及びパスバ
ッファ15.16はアドレス制御回路12の信号を受け
、上位バイトデータバス33のデータをライン19bに
下位バイトデータバス34のデータをライン19aに出
力するように制御する。
The processor 11 is a BE processor, and it is desired to read the upper data into the lower byte and the lower data into the upper byte. Therefore, the processor 11 first issues a S W A P command to the address control circuit 12 to prepare for reading data in the LE format. The address control circuit 12 stores this and outputs a signal to the selection signal switching circuits 13 and 14, and the selection signal switching circuits I3 and 14 control the path shown by the solid line to become valid. Further, the data switching circuit 17 and path buffers 15 and 16 receive signals from the address control circuit 12 and control the data in the upper byte data bus 33 to be output to line 19b and the data in the lower byte data bus 34 to line 19a. .

プロセッサ11は次に上位データ選択信号(*UDS)
をライン18aから出力して上位データを読込もうとす
る。この信号は選択信号切換回路14によって、下位デ
ータ選択信号(* L D S)としてライン32に出
力され、メモリモジュール20のバスバッファ25に与
えられ下位バイトメモリ22のデータ(下位データ)が
下位バイトデータバス3,1に読みだされろ。このデー
タはデータ切換回路17によって切り換えられ、パスバ
ッファ15を経由してライン19aから上位データとし
てプロセッサ11に読込まれる。
The processor 11 then sends the upper data selection signal (*UDS)
is output from line 18a and an attempt is made to read the higher-order data. This signal is output to the line 32 as a lower data selection signal (*LDS) by the selection signal switching circuit 14, and is applied to the bus buffer 25 of the memory module 20 so that the data (lower data) in the lower byte memory 22 is changed to the lower byte. Read out to data bus 3,1. This data is switched by the data switching circuit 17 and read into the processor 11 as upper data from the line 19a via the path buffer 15.

次にプロセッサ11は下位データを読込むために下位デ
ータ選択信号(*LDS)をライン18bに出力し、こ
れは選択信号切換回路13によって、上位データ選択信
号(*UDS)に変換され、ライン31に出力され、メ
モリモジュール20のパスバッファ24に与えられ、上
位バイトメモリ21のデータ、即ち上位データを上位バ
イトデータバス33に出力させる。この上位データはデ
ータ切換回路17によって下位バイトデータバスに切換
られパスバッファ16を経由して、ライン19t)から
下位データとしてプロセッサ11に読込まれる。このよ
うにしてプロセッサ11は上位データと下位データの配
列を変換して読込むことができる。さらに、同一の動作
を繰り返し°、順次、次のデータが読込まれる。従って
、プロセッサ11は最初にデータを変換して読込む指令
をすれば、データごとに変換の必要がなく、データの処
理速度が早くなり、ソフトウェア作成の負担も減少する
Next, the processor 11 outputs a lower data selection signal (*LDS) to the line 18b in order to read the lower data, which is converted by the selection signal switching circuit 13 into an upper data selection signal (*UDS) and output to the line 31. is applied to the path buffer 24 of the memory module 20, and causes the data in the upper byte memory 21, that is, the upper data, to be output to the upper byte data bus 33. This upper data is switched to the lower byte data bus by the data switching circuit 17 and read into the processor 11 as lower data from line 19t via the path buffer 16. In this manner, the processor 11 can convert and read the arrays of upper and lower data. Further, the same operation is repeated and the next data is read in sequence. Therefore, if the processor 11 first instructs to convert and read the data, there is no need to convert each data item, the data processing speed becomes faster, and the burden of software creation is reduced.

上記の実施例ではプロセッサ11の読込みの例を示した
が、書込みの場合も同様にして行うことができる。又、
バスは16ビットとし、各データは8ビットとしたが、
勿論この値は他の値に拡張することも可能である。さら
に、同一のバスに接続された場合に限定されず、外部の
ラインから入出力される外部データ入出力についても同
様な構成によって解決することができる。
In the above embodiment, an example of reading by the processor 11 was shown, but writing can be performed in the same manner. or,
The bus was 16 bits, and each data was 8 bits.
Of course, this value can also be expanded to other values. Furthermore, the problem is not limited to the case where the devices are connected to the same bus, and a similar configuration can be used for external data input/output that is input/output from an external line.

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

以上説明したように本発明では、データの配列の方式が
ことなるプロセッサが同一のバスに結合されたときでも
データ選択信号とデータバスを切換るように構成したの
で、処理速度を低下させることなく、同一方式のプロセ
ッサと同様にデータ処理を行うことができ、ソフトウェ
アの負担も軽減される。
As explained above, in the present invention, even when processors with different data arrangement methods are connected to the same bus, the data selection signal and the data bus are switched, so there is no reduction in processing speed. , data processing can be performed in the same way as processors of the same type, and the burden on software is also reduced.

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

第1図は本発明の一実施例のブロック図、第2図(a)
ピッグエンディアン方式のデータ配列方式を示す図、 第2図(b)はりトルエンディアン方式のデータ配列方
式を示す図である。 10−・−プロセッサモジュール 11−−−−プロセッサ 12−・−・アドレス制御回路 13.14−・−選択信号切換回路 17−−−−・−データ切換回路 20・−・−・メモリモジュール 30・・・−バス 31−−−−−−一上位バイトデータバス32−−−−
一下位ハイトデータバス 第、2図
Fig. 1 is a block diagram of an embodiment of the present invention, Fig. 2(a)
FIG. 2(b) is a diagram showing the data arrangement method of the pig endian method; FIG. 2(b) is a diagram showing the data arrangement method of the true endian method. 10--Processor module 11--Processor 12--Address control circuit 13.14--Selection signal switching circuit 17--Data switching circuit 20--Memory module 30-- ...-Bus 31-----First-order byte data bus 32----
First lower height data bus, Figure 2

Claims (2)

【特許請求の範囲】[Claims] (1)1個のバスに上位バイトと下位バイトの配列の異
なるアドレス方式を有するプロセッサが結合されたバス
制御方式において、 プロセッサからのアドレス方式選択信号を受けてアドレ
ス方式を記憶し制御するアドレス制御手段と、 該アドレス制御手段からの信号を受けてプロセッサから
の上位データと下位データの選択信号を切り換える選択
信号切換手段と、 前記アドレス制御手段からの信号を受けて上位バイトデ
ータバスと下位バイトデータバスを切り換えるデータ切
換手段とを有し、 アドレス方式の異なるデータの上位データと下位データ
の配列を変換するように構成したことを特徴とするバス
制御方式。
(1) In a bus control system in which processors having different address systems with different upper byte and lower byte arrangements are combined on one bus, address control is performed to store and control the address system in response to an address system selection signal from the processor. means, selection signal switching means for receiving a signal from the address control means to switch between a selection signal for upper data and lower data from the processor; and receiving a signal from the address control means for switching between an upper byte data bus and a lower byte data bus; 1. A bus control method, comprising: data switching means for switching buses, and configured to convert the arrangement of upper and lower data of data having different addressing systems.
(2)バイトデータは8ビットであり、バスは16ビッ
ト構成である特許請求の範囲第1項記載のバス制御方式
(2) The bus control method according to claim 1, wherein the byte data is 8 bits and the bus has a 16 bit configuration.
JP15583686A 1986-07-02 1986-07-02 Bus control system Pending JPS6312057A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15583686A JPS6312057A (en) 1986-07-02 1986-07-02 Bus control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15583686A JPS6312057A (en) 1986-07-02 1986-07-02 Bus control system

Publications (1)

Publication Number Publication Date
JPS6312057A true JPS6312057A (en) 1988-01-19

Family

ID=15614561

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15583686A Pending JPS6312057A (en) 1986-07-02 1986-07-02 Bus control system

Country Status (1)

Country Link
JP (1) JPS6312057A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5428801A (en) * 1989-02-28 1995-06-27 Sharp Kabushiki Kaisha Data array conversion control system for controlling conversion of data arrays being transferred between two processing systems

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5428801A (en) * 1989-02-28 1995-06-27 Sharp Kabushiki Kaisha Data array conversion control system for controlling conversion of data arrays being transferred between two processing systems

Similar Documents

Publication Publication Date Title
KR100294130B1 (en) Memory integrated circuit and main memory and graphics memory systems applying the above
US5594878A (en) Bus interface structure and system for controlling the bus interface structure
US5838985A (en) Parallel processor with memory/ALU inhibiting feature
JPH03105789A (en) Semiconductor memory device
US5428801A (en) Data array conversion control system for controlling conversion of data arrays being transferred between two processing systems
US6138188A (en) Buffer management device and method for improving buffer usage and access performance in data processing system
US6725369B1 (en) Circuit for allowing data return in dual-data formats
JPS6312057A (en) Bus control system
US4618946A (en) Dual page memory system having storage elements which are selectively swapped between the pages
JPH05189360A (en) Data transfer and storage system
JPH0344886A (en) Fast-in fast-out memory constituting system
US6757752B2 (en) Micro controller development system
JPH0512883A (en) Sequential memory
JPH08202646A (en) Input and output controller
JP2980163B2 (en) Data transfer method
JPH11338818A (en) Method and device for transferring data
KR19980083459A (en) Databus Sizing Device
JPH04143846A (en) Interface converter circuit
JPH04372039A (en) Dma transfer system
JPH01310463A (en) Buffer storage
JPS61201336A (en) Loading system for microprogram
JPH01205324A (en) First-in first-out storage device
JPH04304547A (en) Data transferring system
JPH01219930A (en) Interrupt control circuit device for indirect address system
JPH1021207A (en) Inter-cpu communication device