JPH0689258A - Bus control system - Google Patents

Bus control system

Info

Publication number
JPH0689258A
JPH0689258A JP4133153A JP13315392A JPH0689258A JP H0689258 A JPH0689258 A JP H0689258A JP 4133153 A JP4133153 A JP 4133153A JP 13315392 A JP13315392 A JP 13315392A JP H0689258 A JPH0689258 A JP H0689258A
Authority
JP
Japan
Prior art keywords
command
data
unit
bus
transfer
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.)
Withdrawn
Application number
JP4133153A
Other languages
Japanese (ja)
Inventor
Yasunori Tsutsumi
靖典 堤
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 JP4133153A priority Critical patent/JPH0689258A/en
Publication of JPH0689258A publication Critical patent/JPH0689258A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

PURPOSE:To improve the deterioration of the transfer ability of a bus, which occures by the internal processing time of a slave, and also to obtain a same kind of effect even in the continuous operation of a same master when the plural masters continueouly execute an operation in a data transmission bus. CONSTITUTION:The transfer control part 1m7 of the master 1 can receive a new transfer request in spite of the previously received transfer request from a main processing part and executes transfer to a bus in accordance with request receiving order. When response for a command transmitted to the bus is transmitted from the slave, the completion of transfer is recognized but, regardless of presence or absence of responce, the master can issue the command. When the command from the master is received, the transfer control part 4s6 of the slave 4 permits a command and data storage part 4s7 to store it, transmit it to a pre-processing part 4s8 in accordance with reception order and transmits responce from a responce and data transmissting part 4s5 to the bus when the pre-processing part 4s8 executes the access of a memory 4s1 so that are command processing is completed.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はバス制御方式に関する。FIELD OF THE INVENTION The present invention relates to a bus control system.

【0002】[0002]

【従来の技術】従来のバス制御方式は、データ転送を行
なうマスタはバスの使用要求を行ない、調停によりバス
の使用が許可されるとバスを専有し、転送命令の発行及
び転送データの送信あるいは受信を行ない、転送終了後
バスを解放し1回の転送サイクルを終了する制御を行な
っている。従ってスレーブがマスタから発行されたコマ
ンドお受信し処理する間マスタはバスを専有した状態で
あり、その間他のマスタはバスを使用できない。また、
マスタは1回の転送サイクルを実行することができない
ため同一のマスタが連続して動作する場合にはバスの待
ち時間の影響が大であった。
2. Description of the Related Art In the conventional bus control system, a master performing data transfer requests the use of the bus, and when the use of the bus is permitted by arbitration, the bus monopolizes the bus, issues a transfer command and transmits the transfer data. The reception is performed, and after the transfer is completed, the bus is released to control one transfer cycle. Therefore, while the slave receives and processes the command issued from the master, the master keeps the bus exclusively, and the other master cannot use the bus during that time. Also,
Since the master cannot execute one transfer cycle, when the same master operates continuously, the waiting time of the bus has a great influence.

【0003】[0003]

【発明が解決しようとする課題】従来のバス制御方式
は、1つのマスタ装置がバスを使用する際にバスの使用
要求を行ないバスの使用が許可されるとバうを専有しコ
マンドの発行及びデータの送受信を1回のバスサイクル
中に行なう。従ってスレーブでのコマンド及びデータの
処理に要する時間が長くなると1回のバス使用サイクル
が長くなり、かつ、スレーブの内部処理中には実際には
バスのデータ転送が行なわれない待ち時間となり転送効
率が低下するという問題があった。また前記バスシステ
ムにおける問題の解決において複数のマスタのサイクル
をパイプライン化することを考えた場合に同一のマスタ
が連続して動作する場合には自身のバスサイクル中には
新たにサイクルを実行できないためバスの転送効率が低
下してしまう問題がある。
In the conventional bus control method, when one master device uses the bus, a bus use request is issued, and when the use of the bus is permitted, the exclusive command is issued and issued. Data transmission / reception is performed during one bus cycle. Therefore, if the time required for command and data processing by the slave becomes longer, one bus use cycle becomes longer, and the data transfer of the bus is not actually performed during the internal processing of the slave. There was a problem that it decreased. In addition, in the solution of the problem in the bus system, when considering the pipeline of a plurality of masters, if the same master operates continuously, a new cycle cannot be executed during its own bus cycle. Therefore, there is a problem that the transfer efficiency of the bus decreases.

【0004】さらに、バスの転送サイクルのパイプライ
ン化により転送効率を向上してもスレーブ内のメモリの
アクセス実行処理以外の前処理実行中は新たなコマンド
の処理は実行できないため前処理に要する時間はやはり
バスサイクルの待ち時間となり転送効率を低下させてし
まうという欠点があった。
Further, even if the transfer efficiency is improved by pipelining the transfer cycle of the bus, a new command cannot be executed during the preprocessing other than the access execution processing of the memory in the slave. However, there is still a drawback that it becomes a waiting time of the bus cycle and reduces the transfer efficiency.

【0005】さらに、バスサイクルがパイプラインで実
行されるため排他的なメモリアクセスができないという
欠点があった。
Further, there is a drawback that exclusive memory access cannot be performed because the bus cycle is executed in a pipeline.

【0006】[0006]

【課題を解決するための手段】第1の発明のバス制御方
式は、(A)マスタは主処理部の要求によりバスの使用
要求を行なうバス使用要求部、転送制御部の制御により
バスに対してコマンド・データを送信するコマンド・デ
ータ送信部、バスに送出したコマンドに対してスレーブ
から送信される応答命令を受信し、自身が送出したコマ
ンドに対する応答であることを認識し、コマンドの転送
が終了したことを転送制御部に通知するとともに転送サ
イクルを終了させ、かつ、スレーブからのデータ読み出
しの場合データを受信し主処理部に送る応答・データ受
信部、後述する転送制御部の制御により主処理部から送
られるコマンド・データを記憶するコマンド・データ記
憶部、主処理部からの転送要求を既に受け付け済の転送
要求があっても続けて受け付け可能であり受け付けた転
送要求の順序に従ってコマンド・データをコマンド・デ
ータ記憶部に記憶さえる制御を行ない、かつ、受け付け
た順にコマンド・データ送信部を制御し、バスに対して
コマンド・データを送信しスレーブからの応答が送信さ
れ、応答・データ受信部から応答受信通知を受けるとコ
マンド・データ記憶部の対応するコマンドの転送終了を
主処理部に通知する転送制御部、コマンド転送と共に転
送制御部の制御でバスの制御信号を送受信し応答受信時
に転送制御部の制御で応答受信タイミングを通知すると
ともに応答受信部からの制御により応答受信サイクルを
終了させる制御信号送受信部を有し、(B)スレーブは
制御信号送受信部からのコマンド受信タイミングに従っ
てマスタから送信されたコマンド・データを受信し後述
するコマンド・データ記憶部に送るコマンド・データ受
信部、コマンド・データ受信部から送られるコマンド・
データを一時的に記憶するコマンド・データ記憶部、前
処理部が処理受け付け可である場合、コマンド・データ
記憶部から未処理のコマンド・データを古い順に前処理
部に送り、メモリのアクセスが終了するとバス使用要求
部を制御しバス使用要求を行ないバス使用が許可される
と応答・データ送信部を制御し応答及びデータを送信す
るとともに制御信号送受信を制御し制御信号を送受信す
る機能を有する転送制御部、転送制御部の制御でバス使
用要求を行いバスの使用が許可されると転送制御部に対
しバス使用許可の通知を行なうバス使用要求部、メモリ
のアクセスが終了するとマスタに対する応答あるいはデ
ータを送信する応答・データ送信部、応答送信時に転送
制御部の制御により制御信号を送受信しコマンド・デー
タ受信時にコマンド・データ受信部に対しコマンド・デ
ータ受信タイミングを通知するとともにコマンドサイク
ルの終了処理を行なう制御信号送受信部、コマンド・デ
ータ記憶部から送られるコマンド・データを処理しメモ
リに対するアクセスを行ない、かつ、内部処理をシーケ
ンシャルに実行する前処理部を備えている。
According to the bus control method of the first invention, (A) the master requests the bus to be used by the main processing unit and requests the bus to be used, and the transfer control unit controls the bus to the bus. Command / data transmitting section that transmits command data by the slave, receives the response command sent from the slave to the command sent to the bus, recognizes that it is a response to the command sent by itself, and transfers the command. A response / data receiving unit that notifies the transfer control unit of the end and ends the transfer cycle, and receives data and sends it to the main processing unit when data is read from the slave. Even if there is a transfer request that has already received a transfer request from the command / data storage unit and main processing unit that stores the command data sent from the processing unit, Command data is stored in the command data storage unit according to the order of the received transfer requests, and the command data transmission unit is controlled in the order of reception to send the command data to the bus. When the response is sent from the slave and the response / data receiving unit receives the response reception notification, the main processing unit is notified of the completion of the transfer of the corresponding command in the command / data storage unit. A control signal transmission / reception unit that transmits / receives a bus control signal under the control of the control unit, notifies the response reception timing under the control of the transfer control unit when the response is received, and ends the response reception cycle under the control of the response reception unit. ) The slave sends the command sent from the master according to the command reception timing from the control signal transmitter / receiver. Command data receiving unit for sending the command data storage unit to be described later receives over data, command sent from the command data receiving unit
When the command / data storage unit that temporarily stores data and the pre-processing unit can accept processing, the unprocessed command data is sent from the command / data storage unit to the pre-processing unit in the oldest order, and the memory access ends. Then, the bus use request unit is controlled, the bus use request is made, and when the use of the bus is permitted, the response / data transmission unit is controlled to transmit the response and the data, and at the same time, the control signal transmission / reception is controlled and the transfer having the function of transmitting / receiving the control signal is performed. A bus use request unit that issues a bus use request under the control of the control unit and transfer control unit, and notifies the transfer control unit of the bus use permission when the bus use is permitted, and a response or data to the master when the memory access ends Of the response / data transmission section that transmits the control signal and the control signal of the transfer control section when transmitting the response, and the command signal when receiving the command / data. Control signal transmission / reception unit for notifying the data reception unit of command / data reception timing and ending the command cycle, processing command / data sent from the command / data storage unit to access the memory, and internal It has a pre-processing unit that executes processing sequentially.

【0007】第2の発明のバス制御方式は、前処理部内
に実際のメモリアクセスを実行する処理部を複数備え、
処理部の動作状態を管理し、最も以前に使用された処理
部が次の処理で使用される様制御する前処理制御部を備
えている。
The bus control method of the second invention comprises a plurality of processing units for executing actual memory access in the preprocessing unit,
A pre-processing control unit is provided for managing the operating state of the processing unit and controlling the most recently used processing unit to be used in the next process.

【0008】第3の発明のバス制御方式は、マスタから
送信されるコマンドに以降のコマンドのスレーブ内での
実行処理を禁止する命令(以下禁止命令と呼ぶ)を有
し、禁止命令を有するコマンドを受信するとそれ以降の
受信コマンドの実行を禁止し、コマンドの実行処理を許
可する命令(以下許可命令と呼ぶ)を有するコマンドを
受信するとこのコマンドの実行処理終了後に禁止命令に
より実行が禁止されていたコマンドの実行を再開する転
送制御部を備えてる。
In the bus control system of the third invention, a command transmitted from the master has an instruction (hereinafter referred to as a prohibition instruction) for prohibiting execution processing of subsequent commands in the slave, and a command having a prohibition instruction. When the command is received, the execution of the subsequent received command is prohibited, and when a command having an instruction (hereinafter, referred to as a permit instruction) for permitting the execution processing of the command is received, the execution is prohibited by the prohibit instruction after the completion of the execution processing of this command. A transfer control unit for restarting the execution of the command is provided.

【0009】[0009]

【実施例】次に本発明について図面を参照して説明す
る。
The present invention will be described below with reference to the drawings.

【0010】図1は本発明の第1の実施例のブロック図
である。1は、バスの転送制御以外の基本処理を行なう
主処理部1m1、バスの使用要求を行なうバス使用要求
部1m2、バスの転送制御信号の送受信及び制御を行な
う制御信号送受信部1m3、バスに対するコマンド・デ
ータの送信を行なうコマンド・データ送信部1m4、マ
スタ自身がバスに送出したコマンドに対するスレーブか
らの応答・データを受信する応答・データ受信部1m
5、主処理部1m1から送られるコマンド・データを一
時的に記憶するコマンド・データ記憶部1m6、主処理
部1m1からの転送要求に従ってバスの使用要求及び転
送を制御する転送制御部1m7により構成される。
FIG. 1 is a block diagram of a first embodiment of the present invention. Reference numeral 1 denotes a main processing unit 1m1 that performs basic processing other than bus transfer control, a bus use request unit 1m2 that requests bus use, a control signal transmission / reception unit 1m3 that transmits and receives and controls bus transfer control signals, and commands to the bus. -Command for sending data-Data sending section 1m4, Response from slave to command sent by master itself to bus-Response for receiving data-Data receiving section 1m
5, a command / data storage unit 1m6 for temporarily storing command data sent from the main processing unit 1m1, and a transfer control unit 1m7 for controlling bus use request and transfer according to a transfer request from the main processing unit 1m1. It

【0011】スレーブ4は、メモリ4s1、バスに対す
る使用要求を行なうバス使用要求部4s2、バスの転送
制御信号の送受信及び制御を行なう制御信号送受信部4
s3、マスタから送信されたコマンド・データを受信
し、コマンド・データ記憶部4s7に送るコマンド・デ
ータ受信部4s4、マスタから送られたコマンドの処理
終了後マスタに対する応答及びデータを送信する応答・
データ送信部4s5、マスタか送られたコマンドを受信
した順序で処理する制御を行なう転送制御部4s6、コ
マンド・データ受信部4s4から送られるコマンド・デ
ータを一時的に記憶するコマンド・データ記憶部4s
7、コマンド・データ記憶部4s7から送られるコマン
ド・データを処理し、メモリ4S1に対する直接アクセ
スを行なう前処理部4s8により構成される。
The slave 4 has a memory 4s1, a bus use request unit 4s2 for making a use request to the bus, and a control signal transmitting / receiving unit 4 for transmitting / receiving and controlling a transfer control signal for the bus.
s3, a command / data receiving section 4s4 that receives command / data transmitted from the master and sends the command / data to the command / data storage section 4s7, a response that sends a response to the master and data after processing of the command sent from the master
A data transmission unit 4s5, a transfer control unit 4s6 that controls the processing in which the commands sent from the master are received, and a command / data storage unit 4s that temporarily stores the command data sent from the command / data reception unit 4s4.
7. The pre-processing unit 4s8 processes command data sent from the command / data storage unit 4s7 and directly accesses the memory 4S1.

【0012】マスタ1〜3及びスレーブ4は制御バスb
1及びコマンド・データバスb2で接続され、バス調停
部5にバス使用要求手段r1,r2,r3,r4及びバ
ス使用許可通知手段a1,a2,a3,a4で接続され
る。
Masters 1 to 3 and slave 4 are control buses b
1 and a command / data bus b2, and is connected to the bus arbitration unit 5 by bus use request means r1, r2, r3, r4 and bus use permission notifying means a1, a2, a3, a4.

【0013】次にこのように構成された本実施例におけ
る動作を説明する。マスタ1の主処理部1m1はバスに
対する転送が必要になると転送制御部1m7に対して転
送要求を行なうとともにコマンド・データをコマンド・
データ記憶部1m6に送る。転送制御部1m7は、バス
使用要求部1m2に対しバスの使用要求の通知を行ない
バス使用要求部1m2はバス使用要求手段r1を介して
バス調停部5にバス使用要求を行なう。調停部5でバス
使用要求の調停を行ないバス使用許可通知手段a1を介
してバスの使用が許可されるとバス使用要求部1m2は
転送制御部1m7に通知する。
Next, the operation of the present embodiment thus constructed will be described. When the main processing unit 1m1 of the master 1 needs to transfer to the bus, it sends a transfer request to the transfer control unit 1m7 and sends command data to the command
Send to the data storage unit 1m6. The transfer control unit 1m7 notifies the bus use request unit 1m2 of the bus use request, and the bus use request unit 1m2 makes a bus use request to the bus arbitration unit 5 via the bus use request unit r1. When the bus use request is arbitrated by the arbitration unit 5 and the bus use is permitted via the bus use permission notifying means a1, the bus use request unit 1m2 notifies the transfer control unit 1m7.

【0014】転送制御部1m7はコマンド・データ記憶
部1m6か最も古いコマンド及びデータをコマンド・デ
ータをコマンド・データ送信部1m4に送信させコマン
ド・データ送信部1m4はコマンド・データバスb2に
コマンド及びデータを送出する。それと同時に転送制御
部1m7は制御信号送受信部1m3を制御しバスの制御
信号を制御バスb1に送出する。バスにコマンドが送出
されるとスレーブの制御信号送受信部4s3が制御バス
b1から送られるタイミングよりコマンドの受信タイミ
ングをコマンド・データ受信部4s4に送り、コマンド
・データ受信部4s4はこのタイミングでコマンド・デ
ータを受信しコマンド・データ記憶部4s7に送る。制
御信号送受信部4s3はコマンドサイクルの終了通知を
制御バスb1を介してマスタに送る。コマンドの転送が
終了するとマスタ1の転送制御部1m7はスレーブから
の応答待ちとなる。
The transfer control unit 1m7 causes the command / data storage unit 1m6 or the oldest command and data to be transmitted to the command / data transmission unit 1m4, and the command / data transmission unit 1m4 transmits the command and data to the command / data bus b2. Is sent. At the same time, the transfer control unit 1m7 controls the control signal transmission / reception unit 1m3 to send a bus control signal to the control bus b1. When a command is sent to the bus, the slave control signal transmitter / receiver 4s3 sends the command reception timing to the command / data receiver 4s4 from the timing sent from the control bus b1, and the command / data receiver 4s4 sends the command / data at this timing. The data is received and sent to the command / data storage unit 4s7. The control signal transmitting / receiving unit 4s3 sends a command cycle end notification to the master via the control bus b1. When the command transfer is completed, the transfer control unit 1m7 of the master 1 waits for a response from the slave.

【0015】主処理部1m1は次の転送が必要となれば
転送制御部1m7に対して転送要求を行なうことが可能
であり、コマンド・データ記憶部1m6にコマンド・デ
ータを送り記憶させる。転送制御部1m7は主処理部1
m1からの転送要求の順序を記憶し受信した順にバスに
対してコマンド・データの転送を行なう。コマンドの発
行は前にバうに送出したコマンドに対するスレーブ4か
らの応答が送信されていなくても発行することができる
スレーブ4ではコマンド・データ受信部4s4が受信し
たコマンド・データはコマンド・データ記憶部4s7に
送られる。
The main processing section 1m1 can issue a transfer request to the transfer control section 1m7 when the next transfer is required, and sends the command data to the command / data storage section 1m6 for storage. The transfer control unit 1m7 is the main processing unit 1
The order of transfer requests from m1 is stored, and command data is transferred to the bus in the order received. The command can be issued even if the response from the slave 4 to the previously transmitted command is not transmitted. In the slave 4, the command data received by the command data receiving unit 4s4 is the command data storage unit. Sent to 4s7.

【0016】前処理部4s8が処理受け付け可であれば
転送制御部4s6はコマンド・データ記憶部4s7から
コマンド・データを前処理部4s8に送らせる。前処理
部4s8はパイプライン動作が可能であり、メモリ4s
1のアクセス前に次のコマンド・データを処理すること
ができる。次のコマンド・データの処理が可能になれば
転送制御部4s6に通知する。次のコマンド・データが
記憶部4s7にあれば続けて前処理部4s7に送る。前
処理部4s8はメモリ4s1に対するアクセスが終了す
ると転送制御部4s6に通知する。
If the preprocessing unit 4s8 can accept the process, the transfer control unit 4s6 causes the command data storage unit 4s7 to send the command data to the preprocessing unit 4s8. The pre-processing unit 4s8 is capable of pipeline operation, and the memory 4s
The next command data can be processed before one access. When the next command data can be processed, the transfer control unit 4s6 is notified. If the next command data is stored in the storage unit 4s7, it is continuously sent to the preprocessing unit 4s7. The preprocessing unit 4s8 notifies the transfer control unit 4s6 when the access to the memory 4s1 is completed.

【0017】転送制御部4s6はバス使用要求部4s2
を制御しバス使用要求手段r4を介してバス調停部5に
バス使用要求を行なう。バス調停部5で調停され、バス
使用許可通知手段a4でバスの使用許可か通知されると
応答・データ送信部4s5は応答をコマンド・データバ
スb2を介して送出するとともに制御信号送受信部4s
3は制御バスb1を介して制御信号を送出する。スレー
ブ4からのデータ読み出しの場合メモリ4s1から応答
・データ送信部4s5にデータが送られコマンド・デー
タバスb2にデータが送出される。
The transfer control unit 4s6 is a bus use request unit 4s2.
To request the bus use to the bus arbitration unit 5 via the bus use requesting means r4. When the bus arbitration unit 5 arbitrates and the bus use permission notifying means a4 notifies the bus use permission, the response / data transmission unit 4s5 sends a response through the command / data bus b2 and the control signal transmission / reception unit 4s.
3 sends a control signal via the control bus b1. When data is read from the slave 4, data is sent from the memory 4s1 to the response / data sending unit 4s5 and sent to the command / data bus b2.

【0018】バスに応答命令が送出されるとマスタ1の
制御信号送受信部1m3は制御信号を受信し応答受信タ
イミングを応答受信部1m5に送る。このタイミングで
1m5は応答を受信しさらにスレーブ4からのデータ読
み出しの場合はデータを受信し主処理部にデータを送
る。転送制御部1m7は応答を受信すると制御信号送受
信部1m3を制御し応答サイクルの終了通知を制御バス
b1を介して行なう。転送制御部1m7は応答の受信に
より主処理部1m1に転送要求が終了したことを通知す
るとともに読み出しの場合データを応答データ受信部1
m5から主処理部1m1に送られる。
When the response command is sent to the bus, the control signal transmission / reception unit 1m3 of the master 1 receives the control signal and sends the response reception timing to the response reception unit 1m5. At this timing, 1m5 receives a response, and when reading data from the slave 4, receives the data and sends the data to the main processing unit. When the transfer control unit 1m7 receives the response, it controls the control signal transmitting / receiving unit 1m3 to notify the end of the response cycle via the control bus b1. Upon receiving the response, the transfer control unit 1m7 notifies the main processing unit 1m1 that the transfer request has been completed, and in the case of reading, the response data receiving unit 1 receives data.
It is sent from m5 to the main processing unit 1m1.

【0019】以上の様にマスタ1はコマンド発行後スレ
ーブからの応答受信前であっても次のコマンドを発行す
ることが可能であるため同一マスタの1回のバス転送サ
イクル中でも次のコマンド転送サイクルの実行が可能で
ある。
As described above, the master 1 can issue the next command even after the command is issued but before the response is received from the slave, so that the next command transfer cycle is performed even during one bus transfer cycle of the same master. Can be executed.

【0020】図2は本発明の第2の実施例のブロック図
である。マスタ及びバス調停部は図1と同一でありスレ
ーブ内の前処理部は図2の様に構成される。前処理部2
0はメモリ100のアクセスを実行する処理部2−2
1,2−22,2−2nにより構成され、コマンド・デ
ータ記憶部300から送られるコマンド・データを最も
以前に使用された処理部に送る制御を行なう前処理制御
部2−1で構成される。
FIG. 2 is a block diagram of the second embodiment of the present invention. The master and the bus arbitration unit are the same as in FIG. 1, and the preprocessing unit in the slave is configured as shown in FIG. Pre-processing unit 2
0 is a processing unit 2-2 that executes access to the memory 100.
1, 22-2, 2-2n, and a pre-processing control section 2-1 for controlling the command data sent from the command / data storage section 300 to the most recently used processing section. .

【0021】次に本実施例について動作を説明する。マ
スタの動作は〈請求項1〉と同一でありスレーブ内での
前処理部20の動作についてのみ説明する。前処理制御
部2−1は前処理部20内の処理部の動作状態を管理し
最も以前に使用された処理部が次に使用される様に制御
する。コマンド・データ記憶部3からコマンド・データ
が送られると前処理制御部2−1の制御により最も以前
に使用された処理部2−21にコマンド・データが送ら
れる。さらに次のコマンドデータは処理部2−22に送
られ、処理部2−21と2−22は同時動作可能であ
る。各処理部は処理終了後メモリ100はアクセスす
る。
Next, the operation of this embodiment will be described. The operation of the master is the same as in claim 1 and only the operation of the preprocessing unit 20 in the slave will be described. The pre-processing control unit 2-1 manages the operating state of the processing units in the pre-processing unit 20 and controls the processing unit that was used most previously to be used next. When the command data is sent from the command data storage unit 3, the command data is sent to the processing unit 2-21 which was used most recently under the control of the preprocessing control unit 2-1. Further, the next command data is sent to the processing unit 2-22, and the processing units 2-21 and 2-22 can operate simultaneously. Each processing unit accesses the memory 100 after the processing is completed.

【0022】図3は本発明の第3の実施例のブロック図
である。マスタ及びバス調停部は図1と同一でありスレ
ーブ内のコマンド・データ記憶部は図3の様に構成され
ている。コマンド・データ記憶部10はマスタから送ら
れるコマンド内に含まれる禁止命令及び許可命令に従っ
て記憶部1−1に記憶されているコマンドの実行の禁止
処理を制御する禁止制御部1−2で構成され、コマンド
・データ受信部200及び前処理部30に接続されてい
る。
FIG. 3 is a block diagram of the third embodiment of the present invention. The master and the bus arbitration unit are the same as in FIG. 1, and the command / data storage unit in the slave is configured as shown in FIG. The command / data storage unit 10 is composed of a prohibition control unit 1-2 that controls a prohibition process for executing the command stored in the storage unit 1-1 according to a prohibition command and a permission command included in the command sent from the master. , The command / data receiving unit 200 and the preprocessing unit 30.

【0023】次にこの様に構成した本実施例の動作を説
明する。禁止制御部1−2は禁止命令を有するコマンド
を受信するとこのコマンド及びデータを記憶部1−1に
記憶させるとともに以降のコマンドの実行を禁止するモ
ードとなる。従って禁止命令を有するコマンドを前処理
部30に送ると、以降にコマンド・データ受信部から送
られるコマンド・データは記憶部1−1に記憶されるの
みで前処理部30には送られない。
Next, the operation of this embodiment having such a configuration will be described. When the prohibition control unit 1-2 receives a command having a prohibition command, the prohibition control unit 1-2 stores the command and data in the storage unit 1-1 and enters a mode in which execution of subsequent commands is prohibited. Therefore, when the command having the prohibition command is sent to the preprocessing unit 30, the command data sent from the command data receiving unit thereafter is only stored in the storage unit 1-1 and is not sent to the preprocessing unit 30.

【0024】次の禁止制御部1−2は許可命令を有する
コマンドを受信すると記憶部1−1に記憶した後前処理
部30が処理受け付け可能であれば記憶部に記憶された
他のコマンド・データがあっても優先して前処理部3に
送る。以降は記憶部1−1に記憶されているコマンドの
実行の禁止を解除し、記憶された順に前処理部30にコ
マンド・データを送る動作を継続して行なう。
When the next prohibition control unit 1-2 receives a command having a permission command, the prohibition control unit 1-2 stores it in the storage unit 1-1 and, if the preprocessing unit 30 can accept the process, another command stored in the storage unit. Even if there is data, it is sent to the preprocessing unit 3 with priority. After that, the prohibition of the execution of the commands stored in the storage unit 1-1 is released, and the operation of sending the command data to the preprocessing unit 30 in the stored order is continuously performed.

【0025】[0025]

【発明の効果】以上説明したように本発明のバス制御方
式は、 (1)バスに複数のマスタが接続されていても単独のマ
スタのみが連続して動作する場合にスレーブ側での1回
のコマンド処理が終了する前に同一のマスタが次のコマ
ンドの発行をできる様にすることによってスレーブ側処
理によって生じる待ち時間中にもコマンドの発行するこ
とによりバスの使用効率が向上する効果がある。 (2)スレーブ側のコマンド実行処理における同時動作
不可能なメモリアクセス以外の処理により待ち時間をな
くすことができるという効果がある。 (3)バスアクセスのバイプライン動作を一時的に禁止
することにより排他的なメモリアクセスができるという
効果がある。
As described above, the bus control system of the present invention has the following advantages. (1) Even if a plurality of masters are connected to the bus, if only one master operates continuously, once on the slave side, By allowing the same master to issue the next command before the end of the command processing, the command is issued even during the waiting time caused by the slave side processing, which has the effect of improving the bus usage efficiency. . (2) In the command execution process on the slave side, there is an effect that the waiting time can be eliminated by a process other than memory access in which simultaneous operation is impossible. (3) There is an effect that exclusive memory access can be performed by temporarily prohibiting the bus access biline operation.

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

【図1】本発明の第1の実施例を示すブロック図であ
る。
FIG. 1 is a block diagram showing a first embodiment of the present invention.

【図2】本発明の第2の実施例を示すブロック図であ
る。
FIG. 2 is a block diagram showing a second embodiment of the present invention.

【図3】本発明の第3の実施例を示すブロック図であ
る。
FIG. 3 is a block diagram showing a third embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1〜3 マスタ 4 スレーブ 5 バス調停部 b1 制御バス b2 コマンド・データバス r1,r2,r3,r4 バス使用要求通知手段 a1,a2,a3,a4 バス使用許可通知手段 1m1 主処理部 1m2 バス使用要求部 1m3 制御信号送受信部 1m4 コマンド・データ送信部 1m5 応答・データ受信部 1m6 コマンド・データ記憶部 1m7 転送制御部 4s1 メモリ 4s2 バス使用要求部 4s3 制御信号送受信部 4s4 コマンド・データ受信部 4s5 応答・データ送信部 4s6 転送制御部 4s7 コマンド・データ記憶部 4s8 前処理部 1 to 3 master 4 slave 5 bus arbitration unit b1 control bus b2 command / data bus r1, r2, r3, r4 bus use request notifying means a1, a2, a3, a4 bus use permission notifying means 1m1 main processing unit 1m2 bus use request Part 1m3 Control signal transmitter / receiver 1m4 Command / data transmitter 1m5 Response / data receiver 1m6 Command / data storage 1m7 Transfer controller 4s1 Memory 4s2 Bus use requester 4s3 Control signal transmitter / receiver 4s4 Command / data receiver 4s5 Response / data Transmission unit 4s6 Transfer control unit 4s7 Command / data storage unit 4s8 Pre-processing unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 情報処理装置で使用されるデータ伝送バ
スであって、データを転送する命令(以下コマンドと呼
ぶ)を発行する装置(以下マスタと呼ぶ)とマスタの発
行するコマンドに応じてデータの受信及び送信を行なう
装置(以下スレーブと呼ぶ)とが複数接続され、 (A)マスタは主処理部の要求によりバスの使用要求を
行なうバス使用要求部、後述する転送制御部の制御によ
りバスに対してコマンド・データを送信するコマンド・
データ送信部、バスに送出したコマンドに対してスレー
ブから送信される応答命令を受信し、自身が送出したコ
マンドに対する応答であることを認識し、コマンドの転
送が終了したことを後述する転送制御部に通知するとと
もに転送サイクルを終了させ、かつ、スレーブからのデ
ータ読み出しの場合データを受信し主処理部に送る応答
・データ受信部、後述する転送制御部の制御により主処
理部から送られるコマンド・データを記憶するコマンド
・データ記憶部、主処理部からの転送要求を既に受け付
け済の転送要求があっても続けて受け付け可能であり受
け付けた転送要求の順序に従ってコマンド・データをコ
マンド・データ記憶部に記憶さえる制御を行ない、か
つ、受け付けた順にコマンド・データ送信部を制御し、
バスに対してコマンド・データを送信しスレーブからの
応答が送信され、応答・データ受信部から応答受信通知
を受けるとコマンド・データ記憶部の対応するコマンド
の転送終了を主処理部に通知する転送制御部、コマンド
転送と共に転送制御部の制御でバスの制御信号を送受信
し応答受信時に転送制御部の制御で応答受信タイミング
を通知するとともに応答受信部からの制御により応答受
信サイクルを終了させる制御信号送受信部を有し、 (B)スレーブは制御信号送受信部からのコマンド受信
タイミングに従ってマスタから送信されたコマンド・デ
ータを受信し後述するコマンド・データ記憶部に送るコ
マンド・データ受信部、コマンド・データ受信部から送
られるコマンド・データを一時的に記憶するコマンド・
データ記憶部、後述する前処理部が処理受け付け可であ
る場合、コマンド・データ記憶部から未処理のコマンド
・データを古い順に前処理部に送り、メモリのアクセス
が終了すると後述するバス使用要求部を制御しバス使用
要求を行ないバス使用が許可されると応答・データ送信
部を制御し応答及びデータを送信するとともに制御信号
送受信を制御し制御信号を送受信する機能を有する転送
制御部、転送制御部の制御でバス使用が許可されると転
送制御部に対しバス使用許可の通知を行なうバス使用要
求部、メモリのアクセスが終了するとマスタに対する応
答あるいはデータを送信する応答・データ送信部、応答
送信時に転送制御部の制御により制御信号を送受信しコ
マンド・データ受信時にコマンド・データ受信部に対し
コマンド・データ受信タイミングを通知するとともにコ
マンドサイクルの終了処理を行なう制御信号送受信部、
コマンド・データ記憶部から送られるコマンド・データ
を処理しメモリに対するアクセスを行ない、かつ、内部
処理をシーケンシャルに実行する前処理部を含むことを
特徴とするバス制御方式。
1. A data transmission bus used in an information processing device, wherein a device (hereinafter referred to as a master) that issues a command (hereinafter referred to as a command) for transferring data and data according to a command issued by the master. A plurality of devices (hereinafter referred to as slaves) for receiving and transmitting data are connected to each other. (A) The master uses a bus use request unit that makes a bus use request at the request of the main processing unit, and a bus is controlled by a transfer control unit described later. Command to send command data to
The data transmission unit receives the response command transmitted from the slave to the command transmitted to the bus, recognizes that it is a response to the command transmitted by itself, and the transfer control unit described later that the command transfer is completed. To the main processing unit when the data is read from the slave, and the data reception unit sends a command to the main processing unit under the control of the transfer control unit described later. A command / data storage unit that stores data, a transfer request from the main processing unit can be continuously received even if a transfer request has already been received, and command data is stored in the command / data storage unit in the order of the received transfer requests. To control the command / data transmission section in the order in which they are received,
When the command / data is sent to the bus, the response from the slave is sent, and when the response / data receiving unit receives the response reception notification, the transfer that notifies the main processing unit of the transfer completion of the corresponding command in the command / data storage unit A control signal for transmitting and receiving a bus control signal under the control of the transfer control unit along with the control unit and command transfer, notifying the response reception timing under the control of the transfer control unit when receiving a response, and ending the response receiving cycle under the control of the response receiving unit (B) The slave has a transmission / reception unit, and the slave receives the command data transmitted from the master in accordance with the command reception timing from the control signal transmission / reception unit, and sends the command data to the command data storage unit described later. Command that temporarily stores command data sent from the receiver
When the data storage unit and the pre-processing unit described later can accept the processing, the command / data storage unit sends unprocessed command data to the pre-processing unit in the oldest order, and when the memory access is completed, the bus use request unit described later. When the bus use is permitted by controlling the control and the bus use request, the transfer / control unit which has a function of controlling the response / data transmitting unit to transmit the response and data and controlling the control signal transmission / reception and transmitting / receiving the control signal, the transfer control When the bus control is permitted by the control unit, the bus use request unit that notifies the transfer control unit of the bus use permission, the response / data transmission unit that transmits the response or data to the master when the memory access is completed, the response transmission Sometimes control signals are sent and received under the control of the transfer control unit, and when command data is received, command data is sent to the command data receiving unit. Control signal receiving unit that performs termination processing command cycle and notifies the signal timing,
A bus control method characterized by including a pre-processing unit for processing command data sent from a command / data storage unit to access a memory, and for sequentially executing internal processing.
【請求項2】 前処理部内に実際のメモリアクセスを実
行する処理部を複数備え、処理部の動作状態を管理し、
最も以前に使用された処理部が次の処理で使用される様
制御する前処理制御部を有する請求項1記載のバス制御
方式。
2. The pre-processing unit is provided with a plurality of processing units for executing actual memory access, and manages the operating state of the processing units,
2. The bus control system according to claim 1, further comprising a pre-processing control unit for controlling the processing unit used most recently so as to be used in the next processing.
【請求項3】 マスタから送信されるコマンドに以降の
コマンドのスレーブ内での実行処理を禁止する命令(以
下禁止命令と呼ぶ)を有し、禁止命令を有するコマンド
を受信するとそれ以降の受信コマンドの実行を禁止し、
コマンドの実行処理を許可する命令(以下許可命令と呼
ぶ)を有するコマンドを受信するとこのコマンドの実行
処理終了後に前記禁止命令により実行が禁止されていた
コマンドの実行を再開する転送制御部を有する請求項1
記載のバス制御方式。
3. A command transmitted from the master has an instruction (hereinafter referred to as a prohibition instruction) for prohibiting execution of subsequent commands in the slave, and when a command having the prohibition instruction is received, subsequent reception commands are received. Prohibit the execution of
A transfer control unit that resumes the execution of a command whose execution is prohibited by the prohibition command after the command execution process is received when a command having a command execution process permitting command execution (hereinafter referred to as a permission command) is received. Item 1
Bus control method described.
JP4133153A 1992-05-26 1992-05-26 Bus control system Withdrawn JPH0689258A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4133153A JPH0689258A (en) 1992-05-26 1992-05-26 Bus control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4133153A JPH0689258A (en) 1992-05-26 1992-05-26 Bus control system

Publications (1)

Publication Number Publication Date
JPH0689258A true JPH0689258A (en) 1994-03-29

Family

ID=15097950

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4133153A Withdrawn JPH0689258A (en) 1992-05-26 1992-05-26 Bus control system

Country Status (1)

Country Link
JP (1) JPH0689258A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08272711A (en) * 1995-03-30 1996-10-18 Mitsubishi Electric Corp Automatic management system for file transfer
US7203580B2 (en) 2003-02-19 2007-04-10 Denso Corporation Electrical control unit and control system comprising plural electrical control units

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08272711A (en) * 1995-03-30 1996-10-18 Mitsubishi Electric Corp Automatic management system for file transfer
US7203580B2 (en) 2003-02-19 2007-04-10 Denso Corporation Electrical control unit and control system comprising plural electrical control units

Similar Documents

Publication Publication Date Title
US6282598B1 (en) PCI bus system wherein target latency information are transmitted along with a retry request
JPH08255124A (en) System and method for data processing
KR100708096B1 (en) How to adjust the bus system and its execution order
US7543093B2 (en) Method and system for stream burst data transfer
JP2734246B2 (en) Pipeline bus
JPH0689258A (en) Bus control system
JP2647035B2 (en) Bus control circuit
JP3990569B2 (en) Data memory control device
JPH11242506A (en) Programmable controller
JPH10307788A (en) Bus bridge
JPH05282242A (en) Bus control system
JPH09218859A (en) Multiprocessor control system
JPS63286949A (en) Bus control method
JPH02219157A (en) Bus arbiter in computer system
JP2000155738A (en) Data processor
JPH09274601A (en) Bus control circuit
JPH01108665A (en) Dma transfer control system
JP2000285087A (en) Method for data communication between nodes
JPH1139266A (en) Multiprocessor device
JPH09330288A (en) Dma bus transfer system
JPH02201559A (en) Hierarchical memory controller
JP2001282707A (en) Device and method for controlling bus
JP2000267984A (en) Device processor and method for data processing
JPH05134980A (en) Bus system
JPH0358216B2 (en)

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990803