JPH0449723Y2 - - Google Patents

Info

Publication number
JPH0449723Y2
JPH0449723Y2 JP3631988U JP3631988U JPH0449723Y2 JP H0449723 Y2 JPH0449723 Y2 JP H0449723Y2 JP 3631988 U JP3631988 U JP 3631988U JP 3631988 U JP3631988 U JP 3631988U JP H0449723 Y2 JPH0449723 Y2 JP H0449723Y2
Authority
JP
Japan
Prior art keywords
request
access
memory
arbitration
arbitration circuit
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.)
Expired
Application number
JP3631988U
Other languages
Japanese (ja)
Other versions
JPH01142061U (en
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 filed Critical
Priority to JP3631988U priority Critical patent/JPH0449723Y2/ja
Publication of JPH01142061U publication Critical patent/JPH01142061U/ja
Application granted granted Critical
Publication of JPH0449723Y2 publication Critical patent/JPH0449723Y2/ja
Expired legal-status Critical Current

Links

Description

【考案の詳細な説明】 [産業上の利用分野] 本考案は複数のマイクロプロセツサからメモリ
アクセスされる共有メモリの調停回路に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to an arbitration circuit for a shared memory accessed by a plurality of microprocessors.

[従来の技術] 複数のマイクロプロセツサから同時にメモリア
クセスされた場合、優先度にしたがつていずれか
のマイクロプロセツサに実行を許可するかの調停
がされている。従来の共有メモリの調停は、1デ
ータのアクセス毎に調停を実行するか、或いは一
連のデータ転送が終了した時点で調停を実行する
かのどちらかであつた。例えば、前者の場合第4
図aのようにプロセツサPAからのA1データアク
セス後、プロセツサPBからアクセス要求があり
このときプロセツサPAからの要求がないとする
とB2データがアクセスされる。その後、調停が
実行され、B3,B4とその1データのアクセス毎
に調停を実行していき、B4の調停実行が終わつ
た後にプロセツサPAとPBの両方からアクセス要
求があると調停を実行し、ここで優先度の高いプ
ロセツサPAのデータA5のアクセス要求を受付け
る。また、後者の場合は第4図bのようにプロセ
ツサPAからのA1データアクセス後、プロセツサ
PBからのアクセス要求があると一連のデータ転
送がB2〜B6と実行され、この実行途中でプロセ
ツサPAから要求があつても、この要求は保持し
てデータB6までの一連データ転送終了時点でプ
ロセツサPAからのデータA7のアクセスを受付け
る。
[Prior Art] When multiple microprocessors access memory at the same time, arbitration is performed to determine which microprocessor is allowed to execute based on priority. In conventional shared memory arbitration, arbitration is performed either each time one data is accessed or when a series of data transfers is completed. For example, in the former case, the fourth
As shown in Figure A, after the processor PA accesses the A1 data, there is an access request from the processor PB, and if there is no request from the processor PA at this time, the B2 data is accessed. After that, arbitration is executed, and arbitration is executed every time B3, B4 and one data is accessed, and after the arbitration execution of B4 is completed, when there is an access request from both processors PA and PB, arbitration is executed. Here, an access request for data A5 from processor PA with a high priority is accepted. In the latter case, as shown in Figure 4b, after accessing A1 data from processor PA, the processor
When there is an access request from PB, a series of data transfers is executed from B2 to B6, and even if there is a request from processor PA during this execution, this request is held and the processor transfers data at the end of the series of data transfers up to data B6. Accept access to data A7 from PA.

[考案が解決しようとする問題点] 上記説明した第4図aにおける場合は、1デー
タのアクセス毎に調停を実行するため、メモリ素
子の高速アクセスモードを使用することができな
いのでスループツトが向上しない。また、第4図
bにおける場合には高速アクセスモードは使用で
きるが、一連のデータ転送が終了するまで他の要
求(第4図bではプロセツサPAからの要求)を
待たせるので総合のスループツトが向上しない。
一度に転送するデータの長さを短くすれば、他の
要求が待たされている時間は短くなるがデータ転
送の起動の回数が増加するので、この場合でも総
合のスループツトは向上しないという欠点があつ
た。
[Problems to be solved by the invention] In the case shown in FIG. 4a explained above, since arbitration is executed every time one data is accessed, the high-speed access mode of the memory element cannot be used, so the throughput cannot be improved. . In addition, in the case shown in Fig. 4b, the high-speed access mode can be used, but other requests (requests from the processor PA in Fig. 4b) are made to wait until a series of data transfers are completed, which improves the overall throughput. do not.
If the length of data transferred at one time is shortened, the time that other requests are kept waiting will be shortened, but the number of data transfer starts will increase, so even in this case, the overall throughput will not improve. Ta.

[問題点を解決するための手段] 本考案にかかる共有メモリの調停回路は、複数
のマイクロプロセツサから共有メモリへのメモリ
アクセスによりいずれか一つのマイクロプロセツ
サの実行を許可するものであり、複数のマイクロ
プロセツサのいずれの要求を認めたかを表示する
要求確認信号の入力により当該マイクロプロセツ
サのメモリアクセスを実行するメモリコントロー
ル信号出力と、割込可信号出力及び一つのアクセ
ス終了を表示するアクセス終了信号出力を有する
メモリコントローラと、複数のメモリアクセス要
求信号を入力したときメモリコントローラからの
アクセス終了信号が終了表示でなくとも割込可信
号が有効であれば複数のメモリアクセス要求信号
のうち要求を認めた優先順の上位の要求を出力す
る要求確認信号と、要求を認めない下位の要求を
出力する調停結果と、中断した下位の要求の存在
を表示する退避フラグを有し、かつ退避フラグの
表示中に優先順位上位の要求のメモリアクセス終
了を示す前記メモリコントローラからのアクセス
終了信号の入力により前記調停結果を入力する要
求調停回路と、要求調停回路からの調停結果を一
時退避して要求調停回路へ出力する調停結果退避
レジスタとを有することを特徴とするものであ
る。
[Means for Solving the Problems] The shared memory arbitration circuit according to the present invention allows execution of any one microprocessor by memory access to the shared memory from a plurality of microprocessors, Outputs a memory control signal that executes memory access of the microprocessor by inputting a request confirmation signal that indicates which request from a plurality of microprocessors has been acknowledged, outputs an interrupt enable signal, and displays the completion of one access. When a memory controller that has an access end signal output and multiple memory access request signals are input, even if the access end signal from the memory controller does not indicate completion, if the interrupt enable signal is valid, one of the multiple memory access request signals is input. It has a request confirmation signal that outputs a higher priority request that has been accepted, an arbitration result that outputs lower requests that are not accepted, and an evacuation flag that indicates the existence of an interrupted lower order request, and an evacuation signal. a request arbitration circuit that inputs the arbitration result in response to input of an access completion signal from the memory controller indicating completion of memory access of a request with a higher priority while the flag is displayed; and a request arbitration circuit that temporarily saves the arbitration result from the request arbitration circuit. The present invention is characterized in that it includes an arbitration result save register that outputs to the request arbitration circuit.

[作用] マルチポートの共有メモリにおいて、一つのバ
スからの要求に応じて高速アクセスモードで動作
中であつても他のバスからのより優先度の高い要
求があつたならば、優先度の低い要求の動作を中
断して後者の要求に対するアクセスを行なわせ
る。
[Operation] In a multi-port shared memory, even if it is operating in high-speed access mode in response to a request from one bus, if there is a higher priority request from another bus, the lower priority The operation of the request is interrupted to allow access to the latter request.

[実施例] 第1図は本考案の一実施例のブロツク図であ
る。第1図において、1はメモリコントローラ、
2は要求調停回路、3は調停結果退避レジスタ、
4はアドレスカウンタ、5はアドレスパス、6は
マルチプレクサである。第2図は第1図の動作を
説明するためのタイミングチヤート、第3図は本
考案の調停回路の状態遷移図である。
[Embodiment] FIG. 1 is a block diagram of an embodiment of the present invention. In FIG. 1, 1 is a memory controller;
2 is a request arbitration circuit, 3 is an arbitration result save register,
4 is an address counter, 5 is an address path, and 6 is a multiplexer. FIG. 2 is a timing chart for explaining the operation of FIG. 1, and FIG. 3 is a state transition diagram of the arbitration circuit of the present invention.

プロセツサPA(図示しない)からのA1データ
アクセス後、メモリコントローラ1から割込可信
号PGEND及びアクセス終了信号ENDが要求調
停回路2へ出力されてプロセツサPB(図示しな
い)からアクセス要求があり、このときプロセツ
サPAからの要求がないとすると、要求調停回路
2がプロセツサPBの識別信号を含む要求確認信
号RFをメモリコントローラ1に出力してプロセ
ツサPBのメモリアクセスを実行するメモリコン
トロール信号MCを出力して一連のデータB2〜
Bnが高速モードによりアクセスさせる。このと
き、メモリ要求RQはプロセツサPBからのみされ
たのであつたから、要求調停回路2から調停結果
ABはプロセツサPBに対するものである。なお、
一連のデータB2〜Bnについてアドレスカウンタ
4でアドレス生成されてマルチプレクサ6から出
力する。その後、上記調停により確認された結果
が実行されていてメモリコントローラ1からアク
セス終了信号ENDが出力されていなくとも、プ
ロセツサPBよりも優先順位が上位のプロセツサ
PAからメモリ要求RQがあつたときは、要求調
停回路2はプロセツサPAのほうが優先上位と確
認してプロセツサPAの識別信号を含む要求確認
信号PFをメモリコントローラ1に出力する。メ
モリコントローラ1ではプロセツサPAのメモリ
アクセスを実行するメモリコントロール信号MC
を出力して、データA7をアクセスする。このと
き、下位のプロセツサPBについてはそのメモリ
アクセスを中断したので要求調停回路2はプロセ
ツサPBの識別信号を含ませた調停結果AB(PB)
を調停結果退避レジスタ3に退避させると同時
に、退避させた要求が存在していることを表示す
るため要求調停回路2自身に退避フラグFを表示
する。ここで、プロセツサPBからプロセツサPA
へ処理が移つたことから、アドレスカウンタ4に
データA7についてアドレス生成させてはデータ
Bについてのアドレスが壊れてしまうので、アド
レスパス5にデータAのアドレスを生成させると
ともに、マルチプレクサ6で切替えてメモリアド
レスを得ている。プロセツサPAがデータAn+1
についてのメモリアクセスを終了するとメモリコ
ントローラ1からアクセス終了信号ENDが出力
される。一方、調停結果退避レジスタ3から中断
していた要求がPBであつたことを示す調停結果
AB(PB)RQが出力されており、要求調停回路
2がこれらを入力してプロセツサPBの要求を復
帰(ポツプ)させる。これにより、要求調停回路
2は退避フラグFをリセツトして前の状態に戻
り、中断していたプロセツサPBよりアクセスを
再開してデータBn+1を転送する。このときア
ドレスの生成はアドレスカウンタ4に戻つて行わ
れる。
After the A1 data is accessed from the processor PA (not shown), the interrupt enable signal PGEND and the access end signal END are output from the memory controller 1 to the request arbitration circuit 2, and an access request is made from the processor PB (not shown). Assuming that there is no request from the processor PA, the request arbitration circuit 2 outputs the request confirmation signal RF containing the identification signal of the processor PB to the memory controller 1, and outputs the memory control signal MC to execute the memory access of the processor PB. Series of data B2~
Bn allows access in fast mode. At this time, since the memory request RQ was made only from the processor PB, the arbitration result was sent from the request arbitration circuit 2.
AB is for processor PB. In addition,
Addresses are generated by the address counter 4 for a series of data B2 to Bn and output from the multiplexer 6. After that, even if the result confirmed by the above arbitration has been executed and the access end signal END has not been output from memory controller 1, a processor with a higher priority than processor PB
When a memory request RQ is received from PA, the request arbitration circuit 2 confirms that the processor PA has higher priority and outputs a request confirmation signal PF containing an identification signal of the processor PA to the memory controller 1. In memory controller 1, memory control signal MC is used to execute memory access of processor PA.
Output and access data A7. At this time, since the memory access of the lower processor PB has been interrupted, the request arbitration circuit 2 outputs the arbitration result AB (PB) containing the identification signal of the processor PB.
is saved in the arbitration result save register 3, and at the same time, a save flag F is displayed on the request arbitration circuit 2 itself to indicate that the saved request exists. Here, from processor PB to processor PA
Since the processing has been moved to address path 5, if address counter 4 is made to generate an address for data A7, the address for data B will be destroyed. Got the address. Processor PA is data An+1
When the memory access for 1 is completed, the memory controller 1 outputs an access end signal END. On the other hand, the arbitration result from arbitration result save register 3 indicates that the suspended request was PB.
AB(PB)RQ is output, and the request arbitration circuit 2 inputs these and returns (pops) the request from the processor PB. As a result, the request arbitration circuit 2 resets the save flag F and returns to the previous state, resumes access from the interrupted processor PB, and transfers data Bn+1. At this time, address generation is performed by returning to the address counter 4.

[考案の効果] 以上詳細に説明したように、本考案によれば、
高速モードで動作中であつても優先順位が上位の
プロセツサから要求があつたときに優先順位の下
位の動作を中断して前者の要求に対するアクセス
を行わせることができるので、システムのスルー
プツトを向上することができる。また、中断した
下位の要求について退避させているので直ちに誤
りなく動作を再開させることができる。
[Effects of the invention] As explained in detail above, according to the invention,
Even when operating in high-speed mode, when a request is received from a higher-priority processor, lower-priority operations can be interrupted to allow access to the former request, improving system throughput. can do. Furthermore, since the interrupted lower-level requests are saved, the operation can be restarted immediately without error.

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

第1図は本考案の一実施例のブロツク図、第2
図は第1図の動作を説明するためのタイミングチ
ヤート、第3図は本考案の調停回路の状態遷移
図、第4図a、第4図bは従来の調停を説明する
タイミングチヤートである。 1……メモリコントローラ、2……要求調停回
路、3……調停結果退避レジスタ、4……アドレ
スカウンタ、5……アドレスパス、6……マルチ
プレクサ。
Fig. 1 is a block diagram of an embodiment of the present invention;
1 is a timing chart for explaining the operation of FIG. 1, FIG. 3 is a state transition diagram of the arbitration circuit of the present invention, and FIGS. 4a and 4b are timing charts for explaining conventional arbitration. 1...Memory controller, 2...Request arbitration circuit, 3...Arbitration result save register, 4...Address counter, 5...Address path, 6...Multiplexer.

Claims (1)

【実用新案登録請求の範囲】 複数のマイクロプロセツサから共有メモリへの
メモリアクセスによりいずれか一つのマイクロプ
ロセツサの実行を許可する共有メモリの調停回路
において、 複数のマイクロプロセツサのいずれの要求を認
めたかを表示する要求確認信号の入力により当該
マイクロプロセツサのメモリアクセスを実行する
メモリコントロール信号出力と、割込可信号出力
及び一つのアクセス終了を表示するアクセス終了
信号出力を有するメモリコントローラと、 複数のメモリアクセス要求信号を入力したとき
前記メモリコントローラからのアクセス終了信号
が終了表示でなくとも前記割込可信号が有効であ
れば前記複数のメモリアクセス要求信号のうち要
求を認めた優先順の上位の要求を出力する前記要
求確認信号と、要求を認めない下位の要求を出力
する調停結果と、中断した下位の要求の存在を表
示する退避フラグを有し、かつ退避フラグの表示
中に前記優先順位上位の要求のメモリアクセス終
了を示す前記メモリコントローラからのアクセス
終了信号の入力により前記調停結果を入力する要
求調停回路と、 前記要求調停回路からの調停結果を一時退避し
て前記要求調停回路へ出力する調停結果退避レジ
スタとを有することを特徴とする共有メモリの調
停回路。
[Claim for Utility Model Registration] In a shared memory arbitration circuit that permits execution of any one microprocessor by memory access to the shared memory from multiple microprocessors, a memory controller having a memory control signal output for executing memory access of the microprocessor in response to input of a request confirmation signal indicating whether the request has been granted, an interrupt enable signal output and an access completion signal output for indicating the completion of one access; When a plurality of memory access request signals are input, even if the access completion signal from the memory controller does not indicate completion, if the interrupt enable signal is valid, the priority order in which the request was acknowledged among the plurality of memory access request signals is The request confirmation signal outputs a higher level request, the arbitration result outputs a lower level request that does not approve the request, and an evacuation flag that indicates the existence of an interrupted lower level request, and while the evacuation flag is displayed, a request arbitration circuit that inputs the arbitration result upon input of an access completion signal from the memory controller indicating completion of memory access for a request with a higher priority; and a request arbitration circuit that temporarily saves the arbitration result from the request arbitration circuit. 1. A shared memory arbitration circuit comprising: an arbitration result save register for outputting to a shared memory arbitration circuit.
JP3631988U 1988-03-22 1988-03-22 Expired JPH0449723Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3631988U JPH0449723Y2 (en) 1988-03-22 1988-03-22

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3631988U JPH0449723Y2 (en) 1988-03-22 1988-03-22

Publications (2)

Publication Number Publication Date
JPH01142061U JPH01142061U (en) 1989-09-28
JPH0449723Y2 true JPH0449723Y2 (en) 1992-11-24

Family

ID=31262930

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3631988U Expired JPH0449723Y2 (en) 1988-03-22 1988-03-22

Country Status (1)

Country Link
JP (1) JPH0449723Y2 (en)

Also Published As

Publication number Publication date
JPH01142061U (en) 1989-09-28

Similar Documents

Publication Publication Date Title
US5535341A (en) Apparatus and method for determining the status of data buffers in a bridge between two buses during a flush operation
JPH0354375B2 (en)
EP0523764A2 (en) Computer system having direct bus attachment between processor and dynamic main memory, and having in-processor DMA control with respect to a plurality of data exchange means also connected to said bus, and central processor for use in such computer system
US5210828A (en) Multiprocessing system with interprocessor communications facility
US4941086A (en) Program controlled bus arbitration for a distributed array processing system
JP2822782B2 (en) Single chip microcomputer
JPS6063609A (en) Numerical controller
JPH0449723Y2 (en)
JPS5925258B2 (en) processor control system
EP0376003A2 (en) Multiprocessing system with interprocessor communications facility
JPS63175964A (en) Shared memory
JPH01263858A (en) Multi-processor system
JP2751660B2 (en) Multiprocessor system
JP2876909B2 (en) Interrupt emulator
JPH02101560A (en) Bus interface device
JPS63298555A (en) Shared memory control system
JP3365419B2 (en) Bus arbitration method
JPH06314231A (en) Shared memory access control method
JPH03122744A (en) Computer system
JP2722908B2 (en) Single chip microcomputer
JPS63155254A (en) Information processor
JPS61165172A (en) Memory access controlling system
JPS5942331B2 (en) Prosetsusasouchinoseigiohoshiki
JPH01302448A (en) Information processor
JPS60129865A (en) Communication device