JPH01201757A - Access contention avoidance circuit - Google Patents
Access contention avoidance circuitInfo
- Publication number
- JPH01201757A JPH01201757A JP2685888A JP2685888A JPH01201757A JP H01201757 A JPH01201757 A JP H01201757A JP 2685888 A JP2685888 A JP 2685888A JP 2685888 A JP2685888 A JP 2685888A JP H01201757 A JPH01201757 A JP H01201757A
- Authority
- JP
- Japan
- Prior art keywords
- access
- signal
- access request
- address
- asserted
- 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
Links
Landscapes
- Bus Control (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は夫々バスマスタとなり得る複数のモジュールに
よる共有資源へのアクセス競合を回避するための回路に
関し、例えばデュアルプロセッサシステムに含まれる共
有メモリに対するアクセス競合を回避する回路の小型化
さらには高速応答性に適用して有効な技術に関するもの
である。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a circuit for avoiding contention for access to a shared resource by a plurality of modules, each of which can be a bus master. The present invention relates to a technology that is effective when applied to miniaturization of circuits to avoid competition and high-speed response.
デュアルプロセッサシステムやマルチプロセッサシステ
ムに含まれる共有メモリなどに対するアクセス競合を回
避する回路は、従来り型フリップフロップが利用されて
いる0例えばデュアルプロセッサシステムにおいて一対
のプロセッサに共有されるメモリに対するアクセス競合
を回避する場合、相互に逆相でクロック信号が与えられ
る一対のD型フリップフロップの夫々に相互に異なるア
クロック信号が供給されるようにされ、相互に一方のD
型フリップフロップの出力を他方のフリップフロップの
クリア端子に供給するようにして、一対のD型フリップ
フロップの出力が相補的関係を採り得るようにされてい
る。A circuit that avoids access contention for shared memory, etc. included in a dual processor system or multiprocessor system uses a conventional flip-flop. If this is to be avoided, a pair of D-type flip-flops to which clock signals are provided with mutually opposite phases are supplied with mutually different ac-clock signals, and each of the D-type flip-flops is
The output of the D-type flip-flop is supplied to the clear terminal of the other flip-flop, so that the outputs of the pair of D-type flip-flops can have a complementary relationship.
尚、バスアクセスの競合回避技術については例えば昭和
60年12月25日オーム社発行の「マイクロコンピュ
ータハンドブックJ P674乃至PCl3に記載され
ている。The bus access contention avoidance technique is described in, for example, "Microcomputer Handbook JP674 to PCl3" published by Ohm Publishing on December 25, 1985.
しかしながら、従来のアクセス競合回避回路は1つのア
クセス要求信号につき少なくとも1つのプリップフロッ
プが必要になって、回路規模の増大、さらには占有面積
の増大を招いてしまう。しカモ、クロック信号に同期し
てアクセス要求をサンプリングするため、このサンプリ
ングタイミングとアクセス要求タイミングとの間にずれ
がある場合には、アクセス要求に対する応答が悪くなっ
てしまう。However, the conventional access contention avoidance circuit requires at least one flip-flop for each access request signal, resulting in an increase in circuit scale and further increase in occupied area. However, since the access request is sampled in synchronization with the clock signal, if there is a difference between this sampling timing and the access request timing, the response to the access request will deteriorate.
本発明の目的は、回路規模の小型化、さらにはアクセス
要求に対する高速応答性を達成することができるアクセ
ス競合回避回路を提供することにある。SUMMARY OF THE INVENTION An object of the present invention is to provide an access contention avoidance circuit that can reduce the circuit scale and achieve high-speed response to access requests.
本発明の前記並びにそのほかの目的と新規な特徴は、本
明細書の記述及び添付図面から明らかになるであろう。The above and other objects and novel features of the present invention will become apparent from the description of this specification and the accompanying drawings.
本願において開示される発明のうち代表的なものの概要
を簡単に説明すれば下記の通りである。A brief overview of typical inventions disclosed in this application is as follows.
すなわち、一方の入力端子と出力端子を相互に交叉結合
した一対の論理ゲートを備え、夫々の論理ゲートの他方
の入力端子には夫々バスマスタとなり得る互いに異なる
モジュール(バスマスタモジュール)のアクセス要求信
号又はこれに基づいて形成された信号が供給され、何れ
か一方のアクセス要求信号が先にアサートされたとき、
これによって得られる出力状態を他方のアクセス要求信
号のアサート状態に関係なく保持するスタティックフリ
ップフロップを含んで構成される。That is, it is equipped with a pair of logic gates whose input terminals and output terminals are cross-coupled with each other, and the other input terminal of each logic gate receives an access request signal or an access request signal of a different module (bus master module) that can be a bus master. A signal formed based on the access request signal is supplied, and when one of the access request signals is asserted first,
It is configured to include a static flip-flop that maintains the output state obtained thereby regardless of the asserted state of the other access request signal.
上記した手段によれば、1つのスタティックプリップフ
ロップは、夫々バスマスタとなり得る複数のモジュール
による共有資源への競合する2つのアクセス要求をその
要求の早遅によって1つだけ選択的に有効としてアクセ
ス競合を回避する。According to the above-mentioned means, one static flip-flop resolves access conflicts by selectively validating two competing access requests to a shared resource by a plurality of modules, each of which can be a bus master, depending on whether the request is early or late. To avoid.
斯るスタティックフリップフロップは1つで直接2つの
アクセス要求の競合を回避処理することにより、回路規
模の小型化もしくは占有面積の低減を達成すると共に、
プログラマブル・ロジック・デバイスのようにゲートレ
ベルで基本セルが構成されているような半導体集積回路
において未使用もしくは空きセルを利用したアクセス競
合回避回路の構成が極めて容易になる。さらにこのスタ
ティックフリップフロップはクロック信号などによって
アクセス要求信号のサンプリングタイミングを規定する
必要がないことにより、内部ゲート数段骨の実質的に無
視し得る程度の短い時間遅延するだけで所定のアクセス
要求を有効とすることができ、もってアクセス要求の高
速応答性を達成する。One such static flip-flop can directly avoid conflicts between two access requests, thereby reducing the circuit scale or occupying area.
In a semiconductor integrated circuit such as a programmable logic device in which basic cells are configured at the gate level, it becomes extremely easy to configure an access conflict avoidance circuit using unused or empty cells. Furthermore, since this static flip-flop does not require the sampling timing of the access request signal to be determined by a clock signal, etc., it is possible to process a given access request with only a negligible short delay due to several stages of internal gates. This enables fast response of access requests.
第2図は本発明に係るアクセス競合回避回路を適用した
デュアルプロセッサシステムの一部を示すブロック図で
ある。FIG. 2 is a block diagram showing part of a dual processor system to which the access conflict avoidance circuit according to the present invention is applied.
このデュアルプロセッサシステムは、2つのマイクロプ
ロセッサM P U a 、 M P U bを含み、
両プロセッサMPUa、MPUbは独立にアクセス可能
な共有資源として例えばSRAM (スタティック・ラ
ンダム・アクセス・メモリ)のようなメモリCMを共有
する。This dual processor system includes two microprocessors MPU a and MPU b,
Both processors MPUa and MPUb share a memory CM, such as SRAM (Static Random Access Memory), as an independently accessible shared resource.
このメモリCMのアドレス入力端子は、アドレス入力バ
ッファABUFa及びアドレスバスABaを介して一方
のマイクロプロセッサM P tJ aのアドレス出力
端子に結合されると共に、アドレス人力バッファABU
Fb及びアドレスバスABbを介して他方のマイクロプ
ロセッサMPUbのアドレス出力端子に結合される。さ
らに、メモリCMのデータ入出力端子は、データ入出力
バッファD B U F a及びデータバスDBaを介
して一方のマイクロプロセッサM P U aのデータ
入出力端子に結合されると共に、データ入出力バッファ
DBUFb及びデータバスDBbを介して他方のマイク
ロプロセッサMPUbのデータ入出力端子に結合される
。The address input terminal of this memory CM is coupled to the address output terminal of one microprocessor M P tJ a via an address input buffer ABUFa and an address bus ABa, and an address input terminal of the address manual buffer ABU
Fb and an address output terminal of the other microprocessor MPUb via address bus ABb. Furthermore, the data input/output terminal of the memory CM is coupled to the data input/output terminal of one microprocessor MPU a via the data input/output buffer DBUFa and the data bus DBa, and It is coupled to the data input/output terminal of the other microprocessor MPUb via DBUFb and data bus DBb.
アクセス競合回避回路ABTは、一方のマイクロプロセ
ッサM P U aからアクセス要求信号REQaを受
けると共に、他方のマイクロプロセッサMPUbからア
クセス要求信号REQbを受ける。The access conflict avoidance circuit ABT receives an access request signal REQa from one microprocessor MPUa, and receives an access request signal REQb from the other microprocessor MPUb.
特に制限されないが、本実施例においてアクセス要求信
号REQa、REQbは共にマイクロプロセッサMPU
a、MPUbから出力される。アクセス競合回避回路A
BTは、マイクロプロセラするアクセス要求をその要求
信号REQa、REQbのアサートタイミングの早遅に
よって1つだけ選択的に有効とするものであり、競合す
るアクセフセス選択信号P S a e P S bを
アクセスコントローラACONTに出力する。このアク
セス選択信号PSaはアサートレベルとしてのローレベ
ルによりマイクロプロセッサM P U aによるアク
セス要求に応じて当該アクセス選択を指示する信号とさ
れる。アクセス選択信号PSbはアサートレベルとして
のローレベルによりマイクロプロセッサM P tJ
bによるアクセス要求に応じて当該アクセス選択を指示
する信号とされる。したがって、アクセス選択信号PS
a、PSbは、同時にアサートされることなく何れか一
方だけが選択的にアサートされる。Although not particularly limited, in this embodiment, both the access request signals REQa and REQb are sent to the microprocessor MPU.
a, output from MPUb. Access conflict avoidance circuit A
The BT selectively validates only one access request made by the microprocessor depending on whether the request signals REQa and REQb are asserted early or late, and the competing access selection signals P S a e P S b are sent to the access controller. Output to ACONT. This access selection signal PSa is set to a low level as an assert level, and is used as a signal for instructing access selection in response to an access request from the microprocessor MPUa. The access selection signal PSb is activated by the microprocessor M P tJ by the low level as the assertion level.
This signal is used to instruct the access selection in response to the access request by b. Therefore, access selection signal PS
a and PSb are not asserted at the same time, but only one of them is selectively asserted.
第1図は上記アクセス競合回避回路BATの詳細な一例
を示す回路図である。このアクセス競合回避回路BAT
は、一方の入力端子にアクセス要求信号RE Q aが
供給される2人力型オアゲートOR1と、一方の入力端
子にインバータINv1を介してアクセス要求信号RE
Qbが供給される2人力型アンドゲートANDIとを備
え、オアゲートORIの他方の入力端子をアンドゲート
AND1の出力端子に交叉結合すると共に、アンドゲー
トAND1の他方の入力端子をオアゲートOR1の出力
端子に交叉結合し、そのオアゲートOR1の出力を一方
のアクセス選択信号PSaとすると共に、アンドゲート
AND1の出力信号をインバータINV2で反転形成し
た信号を他方のアクセス選択信号PSbとするスタティ
ックフリップフロップとして構成される。FIG. 1 is a circuit diagram showing a detailed example of the access conflict avoidance circuit BAT. This access conflict avoidance circuit BAT
is a two-man type OR gate OR1 to which an access request signal REQa is supplied to one input terminal, and an access request signal REQa to one input terminal via an inverter INv1.
The other input terminal of the OR gate AND1 is cross-coupled to the output terminal of the AND gate AND1, and the other input terminal of the AND gate AND1 is connected to the output terminal of the OR gate OR1. They are cross-coupled and configured as a static flip-flop in which the output of the OR gate OR1 is used as one access selection signal PSa, and the output signal of the AND gate AND1 is inverted and formed by an inverter INV2 as the other access selection signal PSb. .
このアクセス競合回避回路BATにおいて、両方のアク
セス要求信号REQa、REQbが共にハイレベルにネ
ゲートされているときは双方のアクセス選択信号PSa
、PSbはハイレベルにネゲートされる。この状態で、
一方のアクセス要求信号RE Q aがローレベルにア
サートされると。In this access conflict avoidance circuit BAT, when both access request signals REQa and REQb are both negated to high level, both access selection signals PSa
, PSb are negated to high level. In this state,
When one access request signal RE Q a is asserted to low level.
これに対応する一方のアクセス選択信号PSaがローレ
ベルに反転される。このようにして何れか一方のアクセ
ス要求信号が先にアサートされると、スタティックフリ
ップフロップとしての性質上、上記一方のアクセス要求
信号がネゲートされない限りこれによって得られる出力
状態は他方のアクセス要求信号のアサート状態に関係な
く保持される。これによって、アクセス競合回避回路A
BTは、マイクロプロセッサMPUa、MPUbによる
メモリCMへの競合するアクセス要求をその要求信号R
EQa、REQbのナサートタイミングの早遅によって
1つだけ導板的に有効として、競合するアクセス要求を
回避するようにアクセス選択信号PSa、PSbの何れ
か一方だけを選択的にアサートする。One access selection signal PSa corresponding to this is inverted to low level. In this way, if one of the access request signals is asserted first, due to the nature of the static flip-flop, unless the one access request signal is negated, the resulting output state will be that of the other access request signal. Retained regardless of asserted state. As a result, access conflict avoidance circuit A
BT responds to competing access requests to memory CM by microprocessors MPUa and MPUb with its request signal R.
Only one of the access selection signals PSa and PSb is selectively asserted to avoid conflicting access requests, depending on whether the nasser timing of EQa or REQb is early or late.
アクセスコントローラACONTは、何れのアクセス選
択信号P S a又はPSbがアサートされるかに呼応
してマイクロプロセッサM P U a又はMPUbに
よるメモリCMのアクセスを可能とするための各種タイ
ミング信号若しくは制御信号を形成する。次にこのアク
セスコントローラACONTの詳細な一例を第3図に基
づいて説明する。The access controller ACONT sends various timing signals or control signals to enable the microprocessor MPU a or MPUb to access the memory CM in response to which access selection signal P S a or PSb is asserted. Form. Next, a detailed example of this access controller ACONT will be explained based on FIG. 3.
このアクセスコントローラACONTは、上記アクセス
選択信号PSaがアサートされることによって出力動作
をイネーブルとするマイクロプロセッサM P U a
用のアドレスコンパレータACOMPaと、上記アクセ
ス選択信号PSbがアサートされることによって出力動
作をイネーブルとするマイクロプロセッサMPUb用の
アドレスコンパレータACOMPbとを備える。This access controller ACONT is a microprocessor MPU whose output operation is enabled when the access selection signal PSa is asserted.
and an address comparator ACOMPb for the microprocessor MPUb whose output operation is enabled when the access selection signal PSb is asserted.
一方のアドレスコンパレータA COM P aは、メ
モリCMに割り当てられたアドレス空間に応するアドレ
スデータADATaが参照アドレスとして予めアドレス
スイッチを介して初期設定されており、一方のマイクロ
プロセッサM P U aから供給されるアドレス・ス
トローブ信号ASaがローレベルにアサートされること
に呼応して当該マイクロプロセッサM P U aから
出力されるアドレス信号ADR8aを内部に取り込んで
参照アドレスと比較する。その比較結果が一致の場合に
はアドレスコンパレータA COM P aの出力信号
とされるアドレスバッファ選択信号A B S aをロ
ーレベルにアサートするが、斯る出力動作は上記アクセ
ス選択信号PSaがアサートされた場合にだけ行われる
。このアドレスバッファ選択信号ABSaはそのローレ
ベルによってアドレス入力バッファA B U F a
を動作可能な状態に制御する。アドレスバッファ選択信
号ABSaは2人力型オアゲートOR2によってデータ
ストローブ信号DSaと論理和が採られ、このオアゲー
トOR2の出力はデータバッファ選択信号DBSaとさ
れる。データバッファ選択信号DR8aは、アドレスバ
ッファ選択信号A B S a及びデータストローブ信
号DSaが共にアサートされた場合にのみローレベルに
7サートされて、データ人出力バッファDBUFaを動
作可能な状態に制御する。One address comparator A COM P a has address data ADATa corresponding to the address space allocated to the memory CM set as a reference address in advance via an address switch, and is supplied from one microprocessor M P U a. In response to the address strobe signal ASa being asserted to a low level, the address signal ADR8a output from the microprocessor MPUa is taken into the microprocessor and compared with a reference address. If the comparison result is a match, the address buffer selection signal ABSa, which is the output signal of the address comparator ACOMPA, is asserted to a low level, but such output operation is performed when the access selection signal PSa is asserted. This is done only if This address buffer selection signal ABSa is set to address input buffer A B U F a depending on its low level.
control to be operational. Address buffer selection signal ABSa is logically summed with data strobe signal DSa by two-manual OR gate OR2, and the output of this OR gate OR2 is used as data buffer selection signal DBSa. The data buffer selection signal DR8a is asserted to a low level only when the address buffer selection signal ABSa and the data strobe signal DSa are both asserted, and controls the data output buffer DBUFa to be operable.
他方のアドレスコンパレータACOMPbは、メモリC
Mに割り当てられたアドレス空間に応するアドレスデー
タADATbが参照アドレスとして予め初期設定されて
おり、一方のマイクロプロセッサMPUbから供給され
るアドレス・ストローブ信号ASbがローレベルにアサ
ートされることに呼応して当該マイクロプロセッサMP
Ubから出力されるアドレス信号ADR8bを内部に取
り込んで参照アドレスと比較する。その比較結果が一致
の場合にはアドレスコンパレータACOMpbの出力信
号とされるアドレスバッファ選択信号ABSbをローレ
ベルにアサートするが、斯る出力動作は上記アクセス選
択信号PSbがアサートされた場合にだけ行われる。こ
のアドレスバッファ選択信号ABSbはそのローレベル
によってアドレス人力バッファABUFbを動作可能な
状態に制御する。アドレスバッファ選択信号ABSbは
2人力型オアゲートOR3によってデータストローブ信
号DSbと論理和が採られ、このオアゲートOR3の出
力はデータバッファ選択信号DBSbとされる。データ
バッファ選択信号DBSbは、アドレスバッファ選択信
号ABSb及びデータストローブ信号DSbが共にアサ
ートされた場合にのみローレベルにアサートされて、デ
ータ人出力バッファDRUFbを動作可能な状態に制御
する。The other address comparator ACOMPb is connected to memory C.
Address data ADATb corresponding to the address space allocated to M is initialized in advance as a reference address, and in response to the address strobe signal ASb supplied from one microprocessor MPUb being asserted to a low level. The microprocessor MP
The address signal ADR8b output from Ub is taken in and compared with the reference address. If the comparison result is a match, the address buffer selection signal ABSb, which is the output signal of the address comparator ACOMpb, is asserted to low level, but such output operation is performed only when the access selection signal PSb is asserted. . Address buffer selection signal ABSb controls address manual buffer ABUFb to be operable by its low level. Address buffer selection signal ABSb is logically summed with data strobe signal DSb by two-manual OR gate OR3, and the output of this OR gate OR3 is used as data buffer selection signal DBSb. The data buffer selection signal DBSb is asserted to a low level only when the address buffer selection signal ABSb and the data strobe signal DSb are both asserted, and controls the data output buffer DRUFb to be in an operable state.
上記データバッファ選択信号DBSa、DBSbは2人
力型アンドゲートAND2に供給され、面入力信号の論
理積がメモリCMのチップイネーブル信号CEとされる
。このチップイネーブル信号CEは、マイクロプロセッ
サM P U a 、又はMPUbによるメモリCMの
アクセス要求がアクセス選択信号PSa又はPSbによ
って有効とされる場合に呼応してローレベルにアサート
される。The data buffer selection signals DBSa and DBSb are supplied to a two-manual AND gate AND2, and the logical product of the plane input signals is used as the chip enable signal CE of the memory CM. This chip enable signal CE is asserted to a low level in response to a request for accessing the memory CM by the microprocessor MPU a or MPUb being validated by the access selection signal PSa or PSb.
上記アドレスバッファ選択信号ABSa及びリード/ラ
イト信号R/WaはオアゲートOR4によってその論理
和が採られ、また、上記アドレスバッファ選択信号AB
Sb及びリード/ライト信号R/WbはオアゲートOR
5によってその論理和が採られる。上記オアゲートOR
4,OR5の出力は2人力型アンドゲートAND3に供
給され、面入力信号の論理積がメモリCMのリード/ラ
イト信号R/Wとされる。このリード/ライト信号R/
Wは、マイクロプロセッサM P U a 、又はMP
UbによるメモリCMのアクセス要求がアクセス選択信
号PSa又はPSbによって有効とされる場合に、当該
有効とされる方のプロセッサから出力されるリード/ラ
イト信号と同相に制御される。The address buffer selection signal ABSa and the read/write signal R/Wa are logically summed by the OR gate OR4, and the address buffer selection signal ABSa and the read/write signal R/Wa are
Sb and read/write signal R/Wb are OR gate OR
The logical sum is determined by 5. OR gate above
The outputs of 4 and OR5 are supplied to a two-manual AND gate AND3, and the logical product of the plane input signals is used as the read/write signal R/W of the memory CM. This read/write signal R/
W is a microprocessor M P U a or M P
When the access request to the memory CM by Ub is made valid by the access selection signal PSa or PSb, it is controlled to be in phase with the read/write signal output from the processor that is made valid.
次に上記実施例の動作を第4図のタイムチャートをも参
照しながら説明する。Next, the operation of the above embodiment will be explained with reference to the time chart of FIG. 4.
第4図はマイクロプロセッサM P U aによるアク
セス要求がマイクロプロセッサMPUbによるアクセス
要求よりも先にある場合を一例としている。FIG. 4 shows an example of a case where the access request by the microprocessor MPUa comes before the access request by the microprocessor MPUb.
例えば、マイクロプロセッサM P U aからアドレ
ス信号ADR8aなどが出力されて時刻t、にアクセス
要求信号RE Q aが先にアサートされると、これに
呼応してアクセス競合回路回路ABTはマイクロプロセ
ッサM P U aのためのアクセス選択信号PSaを
アサートする。これにより、アクセスコントローラAC
ONTは、アドレスバッファ選択信号A RS a及び
データバッファ選択信号D B S aを順次アサート
してマイクロプロセッサM P U aのためのアドレ
ス人力バッファABUFa及びデータ入出力バッファD
RUFaを夫々動作可能な状態に制御すると共に、チッ
プイネーブル信号GEをメモリCMにアサートするなど
して、メモリCMをマイクロプロセッサM P U a
によってアクセス可能にする。For example, when the microprocessor MPU a outputs the address signal ADR8a and the access request signal REQa is asserted at time t, the access contention circuit ABT responds to the assertion of the access request signal REQa. Assert the access selection signal PSa for Ua. This allows access controller AC
The ONT sequentially asserts an address buffer selection signal A RS a and a data buffer selection signal D B S a to select an address manual buffer ABUFa and a data input/output buffer D for the microprocessor MPU a.
The memory CM is controlled by the microprocessor M P U a by controlling each RUFa to be in an operable state and by asserting the chip enable signal GE to the memory CM.
Make it accessible by.
マイクロプロセッサM P U aによるメモリCMの
アクセス中に、当該メモリCMをアクセスするためのア
ドレス信号ADR8bがマイクロプロセッサM P t
J bから出力されてこのためのアクセス要求信号RE
Qbが時刻t1にアサートされると、アクセス競合回避
回路ABTは先にアサートされたアクセス要求信号RE
Qaがネゲートされるまで依然として時刻tゆに同期し
て達成された出力状態(アクセス選択信号PSaのアサ
ート状態、アクセス選択信号PSbをネゲート状態)を
維持することによって、メモリCMのアクセス競合を回
避制御する。During the access of the memory CM by the microprocessor M P U a, the address signal ADR8b for accessing the memory CM is input to the microprocessor M P t
The access request signal RE outputted from Jb for this purpose
When Qb is asserted at time t1, the access contention avoidance circuit ABT receives the previously asserted access request signal RE.
Control avoids access conflicts in the memory CM by maintaining the output state achieved in synchronization with time t (access selection signal PSa asserted, access selection signal PSb negated) until Qa is negated. do.
時刻t3にアクセス要求信号REQaがネゲートされた
とき、他方のマイクロプロセッサMPUbによるアクセ
ス要求信号REQbのアサート状態が維持されていると
、これに同期してアクセス選択信号P S aがネゲー
ト状態に変化されると共に、アクセス選択信号PSbが
アサート状態に変化される。これにより、アクセスコン
トローラACONTは、今度はアドレスバッファ選択信
号ABSb及びデータバッファ選択信号DBSbを順次
アサートしてマイクロプロセッサMPUbのためのアド
レス人力バッファABUFb及びデータ入出力バッファ
DBUFbを夫々動作可能な状態に制御すると共に、チ
ップイネーブル信号CEをメモリCMにアサートするな
どして、メモリCMをマイクロプロセッサMPUbによ
ってアクセス可能にする。When the access request signal REQa is negated at time t3, if the access request signal REQb is maintained in the asserted state by the other microprocessor MPUb, the access selection signal P S a is changed to the negated state in synchronization with this. At the same time, the access selection signal PSb is changed to the asserted state. As a result, the access controller ACONT sequentially asserts the address buffer selection signal ABSb and the data buffer selection signal DBSb to control the address manual buffer ABUFb and the data input/output buffer DBUFb for the microprocessor MPUb to an operable state, respectively. At the same time, the memory CM is made accessible by the microprocessor MPUb by asserting the chip enable signal CE to the memory CM.
上記実施例によれば以下の作用効果を得るものである。According to the above embodiment, the following effects can be obtained.
(1)アンドゲートANDlとオアゲートORIそして
一対のインバータINVI及びINV2によって構成さ
れた1つのスタティックフリップフロップとして機能す
るアクセス競合回避回路ABTは、マイクロプロセッサ
MPUa、MPUbによる共有資源としてのメモリCM
への競合するアクセス要求をその要求の早遅によって1
つだけ選択的に有効としてアクセス競合を回避すること
により、1つのスタティックフリップフロップで直接2
つのアクセス要求の競合を回避処理することができ、回
路規模の小型化もしくは占有面積の低減を達成すること
ができる。特に、回路規模の小型化により、プログラマ
ブル・ロジック・デバイスのようにゲートレベルで基本
セルが構成されているような半導体集積回路においては
未使用もしくは空きセルを利用してアクセス競合回避回
路を構成することが極めて容易になる。(1) The access contention avoidance circuit ABT, which functions as one static flip-flop constituted by an AND gate ANDl, an OR gate ORI, and a pair of inverters INVI and INV2, is a memory CM as a shared resource by the microprocessors MPUa and MPUb.
1 depending on whether the request is early or late.
Two static flip-flops directly
Conflicts between two access requests can be avoided, and the circuit scale or occupied area can be reduced. In particular, due to the miniaturization of circuit scale, in semiconductor integrated circuits such as programmable logic devices where basic cells are configured at the gate level, unused or empty cells are used to configure access conflict avoidance circuits. It becomes extremely easy.
(2)アクセス競合回避回路を構成するスタティックフ
リップフロップはクロック信号などによってアクセス要
求信号REQa、REQbのサンプリングタイミングを
規定する必要がないことにより、内部ゲート数段分の実
質的に無視し得る程度の短い時間遅延するだけで所定の
アクセス要求を有効とすることができ、もってアクセス
要求の高速応答性を達成することができる。(2) Since the static flip-flop that constitutes the access conflict avoidance circuit does not need to specify the sampling timing of the access request signals REQa and REQb using a clock signal, etc., A predetermined access request can be made valid with only a short time delay, thereby achieving high-speed responsiveness of access requests.
以上本発明者によってなされた発明を実施例に基づいて
具体的に説明したが本発明はそれに限定されずその要旨
を逸脱しない範囲において種々変更することができる。Although the invention made by the present inventor has been specifically described above based on examples, the present invention is not limited thereto and can be modified in various ways without departing from the gist thereof.
例えば上記実施例のアクセス競合回避回路はアンドゲー
トとオアゲートそして一対のインバータによって構成さ
れるが、これはその他適宜の論理ゲートの組合せによっ
て様々に回路構成することができる。For example, the access contention avoidance circuit of the above embodiment is configured by an AND gate, an OR gate, and a pair of inverters, but this can be configured in various ways by combining other appropriate logic gates.
また、上記実施例は2つのマイクロプロセッサによるア
クセス要求にプライオリティを設定していない場合につ
いて説明したが、プライオリティに基づいた処理が必要
とされる場合には、その為の処理を行う回路をアクセス
競合回避回路の前段に設ければよい。また、上記実施例
における2つのマイクロプロセッサは相互にアドレスバ
ス及びデータバスを共有しないしないが、共有バスに設
けた共有資源をアクセスする構成におけるアクセス競合
回避技術にも適用することができる。即ち、所謂バスア
ービタとして利用することができ、その場合にアクセス
競合回避回路の出力信号はアクセス要求に対するアクノ
リッジ信号としてアクセス要求元に戻される。また、ア
クセス競合回避処理の対象とされ、バスマスタとなり得
るモジュールはマイクロプロセッサに限定されずダイレ
クト・メモリ・アクセス・コントローラなどのモジュー
ルに変更することができる。また、
また、上記実施例ではアクセス要求信号が共にマイクロ
プロセッサの出力信号とされる場合について説明したが
、そのようなアクセス要求信号はマイクロプロセッサか
ら出力されるアドレス信号及びアドレスストローブ信号
に基づいて外部で形成するようにしてもよい0例えばそ
の場合には、第3図に示されるようなアドレスコンパレ
ータの出力をアクセス要求信号としてアクセス競合回避
回路に供給し、これによってアクセス競合回避回路から
出力される信号を上記実施例のアドレスバッファ選択信
号のような信号として以下必要な制御信号やタイミング
信号を形成するように構成すればよい。Furthermore, although the above embodiment describes the case where no priority is set for access requests by two microprocessors, if priority-based processing is required, the circuit that performs the processing is configured to compete for access. It may be provided before the avoidance circuit. Further, although the two microprocessors in the above embodiment do not share the address bus and data bus with each other, the present invention can also be applied to an access conflict avoidance technique in a configuration in which shared resources provided on a shared bus are accessed. That is, it can be used as a so-called bus arbiter, and in that case, the output signal of the access conflict avoidance circuit is returned to the access request source as an acknowledge signal for the access request. Furthermore, the module that is subject to access conflict avoidance processing and can become a bus master is not limited to a microprocessor, but can be changed to a module such as a direct memory access controller. Furthermore, in the above embodiment, the case where the access request signal is both an output signal of the microprocessor is explained, but such an access request signal is externally output based on the address signal and address strobe signal output from the microprocessor. For example, in that case, the output of the address comparator as shown in FIG. The signal may be configured to be a signal such as the address buffer selection signal of the above embodiment to form the necessary control signals and timing signals.
更に、本発明に係るアクセス競合回避回路はマスクプロ
セッサに内蔵するようにして外部と内部のアクセス要求
に対する調停のために利用することもできる。Furthermore, the access conflict avoidance circuit according to the present invention can be built into a mask processor and used for arbitration between external and internal access requests.
以上の説明では主として本発明者によってなされた発明
をその背景となった利用分野であるマルチプロセッサシ
ステムにおける2つのアクセス競合回避に適用した場合
について説明したが、本発明はこれに限定されずデュア
ルプロセッサシステムなど各種アクセス要求の調停やア
クセス競合回避に適用することができる0本発明は、少
なくとも夫々バスマスタとなり得る複数のモジュールに
よる共有資源への競合するアクセス要求をその要求の早
遅によって1つだけ選択的に有効としてアクセス競合を
回避する条件のものに適用することができる。In the above explanation, the invention made by the present inventor was mainly applied to avoidance of two access conflicts in a multiprocessor system, which is the background field of application of the invention, but the present invention is not limited to this, and the present invention is not limited to this. The present invention, which can be applied to arbitrating various access requests such as a system and avoiding access conflicts, selects only one of competing access requests to a shared resource by a plurality of modules, each of which can be a bus master, depending on whether the request is early or late. It can be applied to conditions that avoid access conflicts as being effective.
本願において開示される発明のうち代表的なものによっ
て得られる効果を簡単に説明すれば下記の通りである。A brief explanation of the effects obtained by typical inventions disclosed in this application is as follows.
すなわち、共有資源への競合する2つのアクセス要求を
その要求の早遅によって1つだけ選択的に有効としてア
クセス競合を回避するスタティックフリップフロップは
1つで直接2つのアクセス要求の競合を回避処理すると
ことにより、回路規模の小型化もしくは占有面積の低減
を達成することができると共に、プログラマブル・ロジ
ック・デバイスのようにゲートレベルで基本セルが構成
されているような半導体集積回路において未使用もしく
は空きセルを利用したアクセス競合回避回路の構成が極
めて容易になるという効果がある。In other words, a static flip-flop that avoids access conflicts by selectively validating only one of two conflicting access requests to a shared resource depending on whether the request is early or late can directly avoid conflicts between two access requests. By doing so, it is possible to achieve miniaturization of the circuit scale or reduction of the occupied area, and also to reduce unused or empty cells in semiconductor integrated circuits where basic cells are configured at the gate level such as programmable logic devices. This has the effect that it is extremely easy to configure an access conflict avoidance circuit using the .
さらに、アクセス競合回避回路に含まれるスタティック
フリップフロップはクロック信号などによってアクセス
要求信号のサンプリングタイミングを規定する必要がな
いことにより、内部ゲート数段分の実質的に無視し得る
程度の短い時間遅延するだけで所定のアクセス要求を有
効とすることができ、もってアクセス要求の高速応答性
を達成することができるという効果がある。Furthermore, since the static flip-flop included in the access conflict avoidance circuit does not need to specify the sampling timing of the access request signal using a clock signal, etc., the delay time is as short as several stages of internal gates and can be virtually ignored. This has the advantage that a predetermined access request can be made valid by just the above command, and thereby high-speed response of the access request can be achieved.
第1図は本発明に係るアクセス競合回避回路の詳細な一
例を示す論理回路図、
第2図は本発明に係るアクセス競合回避回路を適用した
デュアルプロセッサシステムの一部を示すブロック図、
第3図はデュアルプロセッサシステムに含まれる共有資
源としてのメモリをアクセス制御するアクセスコントロ
ーラの一例を示す論理回路図、第4図はアクセス競合回
避動作を説明するためのタイムチャートである。
M P tJ a 、 M P U b・・・マイクロ
プロセッサ、CM・・・メモリ、ABUFa、ABUF
b・・・アドレスバッファ、D B U F a 、
D B U F b−データバッファ、ABT・・・ア
クセス競合回避回路、ORI・・・オアゲート、AND
l・・・アンドゲート、INVI。
I N V 2−・・インバータ、REQa、REQb
−・−アクセス要求信号、PSa、PSb・・・アクセ
ス選択信号
第1図
REQo、REQb−−−アクセス要求イ言8PSo、
PSb −−−フクヤレQ!4J?aa第2図
第3図FIG. 1 is a logic circuit diagram showing a detailed example of the access conflict avoidance circuit according to the present invention; FIG. 2 is a block diagram showing a part of a dual processor system to which the access conflict avoidance circuit according to the present invention is applied; The figure is a logic circuit diagram showing an example of an access controller that controls access to a memory as a shared resource included in a dual processor system, and FIG. 4 is a time chart for explaining access conflict avoidance operation. M PtJ a, M P U b...Microprocessor, CM...Memory, ABUFa, ABUF
b...Address buffer, DBUFa,
D B U F b-data buffer, ABT... access conflict avoidance circuit, ORI... OR gate, AND
l...and gate, INVI. I N V 2-...Inverter, REQa, REQb
--- Access request signal, PSa, PSb... Access selection signal FIG. 1 REQo, REQb --- Access request signal 8 PSo,
PSb---Fukuyare Q! 4J? aaFigure 2Figure 3
Claims (1)
合するアクセス要求をその要求の早遅によって1つだけ
選択的に有効としてアクセス競合を回避する回路であっ
て、一方の入力端子と出力端子を相互に交叉結合した一
対の論理ゲートを備え、夫々の論理ゲートの他方の入力
端子には相互に異なるバスマスタモジュールのアクセス
要求信号又はこれに基づいて形成された信号が供給され
、何れか一方のアクセス要求信号が先にアサートされた
とき、これによって得られる出力状態を他方のアクセス
要求信号のアサート状態に関係なく保持するスタティッ
クフリップフロップを含んで成るものであることを特徴
とするアクセス競合回避回路。 2、ゲートレベルで基本セルが構成されたプログラマブ
ル・ロジック・デバイスの空きセルによって構成された
ものであることを特徴とする特許請求の範囲第1項記載
のアクセス競合回避回路。[Scope of Claims] 1. A circuit that avoids access conflicts by selectively validating only one of competing access requests to a shared resource by a plurality of bus master modules depending on whether the request is early or late, wherein one input terminal and a pair of logic gates whose output terminals are cross-coupled with each other, and the other input terminal of each logic gate is supplied with an access request signal of a mutually different bus master module or a signal formed based on the access request signal. An access device comprising a static flip-flop that maintains an output state obtained when one of the access request signals is asserted first, regardless of the asserted state of the other access request signal. Conflict avoidance circuit. 2. The access conflict avoidance circuit according to claim 1, wherein the access conflict avoidance circuit is constituted by empty cells of a programmable logic device in which basic cells are constituted at the gate level.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2685888A JPH01201757A (en) | 1988-02-08 | 1988-02-08 | Access contention avoidance circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2685888A JPH01201757A (en) | 1988-02-08 | 1988-02-08 | Access contention avoidance circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH01201757A true JPH01201757A (en) | 1989-08-14 |
Family
ID=12204976
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2685888A Pending JPH01201757A (en) | 1988-02-08 | 1988-02-08 | Access contention avoidance circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH01201757A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007058518A (en) * | 2005-08-24 | 2007-03-08 | Renesas Technology Corp | Memory card |
-
1988
- 1988-02-08 JP JP2685888A patent/JPH01201757A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007058518A (en) * | 2005-08-24 | 2007-03-08 | Renesas Technology Corp | Memory card |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4594657A (en) | Semaphore for memory shared by two asynchronous microcomputers | |
| US5119480A (en) | Bus master interface circuit with transparent preemption of a data transfer operation | |
| KR0133236B1 (en) | Shared memory system and arbitration method and system | |
| JPS6325381B2 (en) | ||
| US5038276A (en) | Data processing system having dual arbiter for controlling access to a system bus | |
| EP0242879A2 (en) | Data processor with wait control allowing high speed access | |
| US11157206B2 (en) | Multi-die system capable of sharing non-volatile memory | |
| JPS5836381B2 (en) | shared memory controller | |
| JPH01201757A (en) | Access contention avoidance circuit | |
| JPH0343804A (en) | Sequence controller | |
| JPH02143363A (en) | Common memory control system in multiprocessor | |
| JP2001035148A (en) | Data processor | |
| JPH0547855B2 (en) | ||
| JPH05282246A (en) | Microcomputer | |
| US6499087B1 (en) | Synchronous memory sharing based on cycle stealing | |
| KR930000670B1 (en) | Interface circuit of common ram between main cpu and sub-cpu | |
| JPH0245274B2 (en) | ||
| JP2668215B2 (en) | Micro computer | |
| JPH06103766A (en) | DRAM refresh arbiter circuit | |
| JPS63298555A (en) | Shared memory control system | |
| JPH05165541A (en) | Electronic circuit | |
| JPH06318184A (en) | Bus arbitration device | |
| JPH04116752A (en) | Arbiter circuit | |
| JPS626365A (en) | Multi-processor system | |
| JPS6238901A (en) | Programmable controller |