JP3699529B2 - Bus control device - Google Patents

Bus control device Download PDF

Info

Publication number
JP3699529B2
JP3699529B2 JP12267596A JP12267596A JP3699529B2 JP 3699529 B2 JP3699529 B2 JP 3699529B2 JP 12267596 A JP12267596 A JP 12267596A JP 12267596 A JP12267596 A JP 12267596A JP 3699529 B2 JP3699529 B2 JP 3699529B2
Authority
JP
Japan
Prior art keywords
bus
period
processor
peripheral device
request
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 - Fee Related
Application number
JP12267596A
Other languages
Japanese (ja)
Other versions
JPH09288642A (en
Inventor
達哉 吉田
弘敏 加藤
由幸 熊崎
律男 鈴木
Original Assignee
株式会社日立インフォメーションテクノロジー
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 株式会社日立インフォメーションテクノロジー filed Critical 株式会社日立インフォメーションテクノロジー
Priority to JP12267596A priority Critical patent/JP3699529B2/en
Publication of JPH09288642A publication Critical patent/JPH09288642A/en
Application granted granted Critical
Publication of JP3699529B2 publication Critical patent/JP3699529B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
この発明は、バス制御装置に関し、詳しくは、マイクロコンピュータを有する演算処理システムにおいて、プロセッサ(MPUあるいはCPU)とバス接続される各種周辺回路、周辺機器あるいはそのインタフェースとがバス制御装置の管理の下において共通にバスを使用する場合に、MPUあるいはCPU等のプロセッサの優先順位が高く、かつ、周辺機器、周辺回路のバス使用権の割当て使用時間の配分を効率よく行うことができるようなバス制御装置に関する。
【0002】
【従来の技術】
プロセッサと各種周辺回路,装置がバス接続されてバスを相互に利用してデータの授受を行うコンピュータシステムにあっては、MPUあるいはCPU等のプロセッサがバスを介して各種回路、機器に接続される。
通常、プロセッサとメモリとは、データ伝送頻度が高いので、これらは、専用のバスで接続されるが、周辺機器、インタフェース回路等の周辺回路(この明細書ではこれらを含めて周辺デバイスと言う。)は、前記とは別のバスで相互にあるいはプロセッサにバス制御装置を介して接続される構成を採る。
【0003】
このような場合においては、各周辺デバイスがバス使用要求(バス要求)を発生した場合にそれに応じて所定時間バスを使用する権利(バス権)が割当てられるが、バス要求からバス使用までの時間には制限がある。例えば、通信制御装置などでは、受信データを受けて、それをバッファメモリにバスを介して転送しなければ、次のデータの受信ができなくなる。そこで、一定時間内にバス権を獲得しなければならない。したがって、プロセッサや周辺デバイスは、時間的な制限の下にバスを使用することになる。
これには、プロセッサが周辺デバイス側のバスにアクセスしようとする場合、プロセッサに優先的にバスを割当て周辺デバイスを待たせるという方式と、周辺デバイス側に優先的にバスを割当て周辺デバイスがバスを使用する場合には、プロセッサを待たせるという方式がある。
【0004】
【発明が解決しようとする課題】
しかしながら、このようなコンピュータ装置にあっては、プロセッサに優先的にバス権を与えると、プロセッサのバス使用を基準として全ての周辺デバイスがバス権を要求することになる。そこで、周辺デバイスが使用するバスへのプロセッサによるアクセスが頻繁になった場合に、プロセッサの処理内容によって各周辺デバイスにバス権が与えられるまでの時間が守れなくなり、それが問題になる。
【0005】
一方、周辺デバイス側に優先的にバス権を与えると複数の周辺デバイスが同時あるいは、連続的にバス権を要求した場合に、すべての周辺デバイスのバス使用が完了するまでプロセッサにバス権が回ってこない問題がある。このような場合には、ある周辺デバイスでのバスの使用が完了し、バスが使用されていないにもかかわらず、次に待つ周辺デバイスのために、プロセッサが待たされてしまうことになる。この場合、周辺デバイスがバス要求をする限り、プロセッサにはバス使用権がないので、プロセッサの処理能力が低下することになる。
この発明の目的は、このような従来技術の問題点を解決するものであって、全ての周辺デバイスがバス要求をしたときでも、各周辺デバイスがバス権を獲得するまでの時間を保証し、かつ、各周辺デバイスからのバス使用要求あっても、プロセッサがバスを使用するできるバス制御装置を提供することにある。
【0006】
【課題を解決するための手段】
このような目的を達成するためのこの発明のバス制御装置の特徴は、プロセッサからのバス使用要求と周辺デバイスのバス使用要求とをそれぞれにそれぞれの要求タイミングで受付け、プロセッサとn個(ただしnは2以上の正数)の周辺デバイスとがバス制御装置を介してバスを共有してプロセッサおよび周辺デバイスがデータの授受を行うコンピュータ装置において、周辺デバイスがバス使用を要求してからバスの使用を開始できるまでの許容最小時間に対応する期間Tを周期として実質的に期間Tを(n+1)k個(ただしkは2以上の正数)に分割して期間T/{(n+1)k}を単位期間としてこの単位期間k個をプロセッサのバス使用期間として割当てk個分の単位期間に相当する期間T/(n+1)をそれぞれn個の周辺デバイスのバス使用期間に割当てることでそれぞれの前記期間Tにおいて期間T/{(n+1)k}を単位として
プロセッサのバス使用要求があるときには周辺デバイスのバス使用要求に応じて割当てられた期間T/(n+1)の使用期間に対してこの使用期間の後ろをプロセッサのバス使用期間として単位期間分を割当てて最小でk個分を確保し、周辺デバイスのバス要求がないときにこのバス要求のない周辺デバイスに割当てられたT/(n+1)についてプロセッサのバス使用期間として単位期間分を割当ててプロセッサのバス使用を許容しかつ周期Tの期間においてk個分単位期間を増加させるものである。
【0007】
さらに具体的なこの発明の構成としては、周辺デバイスからのバス要求を検出する手段と各周辺デバイスがバス権を要求してから開始しなければならない時間を基準時間Tとし、前記基準時間T内にプロセッサが周辺デバイス側のバスを使用できる時間T/{(n+1)k}を割り当てプロセッサがバスをアクセスする時のバス使用時間T/(n+1)からプロセッサがバスへのアクセスできる回数をkとして強制的に設定し、これを、例えば、カウンタに初期値として設定することで、このカウンタのカウント値を周辺デバイスが前記バスを使用しなかったときその時間分kだけカウントアップさせて、プロセッサがバスへアクセスできる回数とし、プロセッサがバスをアクセスするごとにカウンタがゼロになるまで減算するものである。そして、カウント値がゼロになったときにその期間Tにおけるプロセッサのアクセスを禁止するものである。
【0008】
【発明の実施の形態】
この発明によれば、コンピュータ装置において、基準時間内に全周辺デバイスから周辺デバイス側のバスへアクセスが多い場合には、プロセッサの前記バスへのアクセス可能な回数が減少し、その分、周辺デバイスが期間T/(n+1)においてそれぞれアクセスでき、かつ、プロセッサは、最低でも設定された時間T/{(n+1)k}を単位とする回数kはアクセス可能である。この場合には待ち時間は増加するが、前記の基準時間Tを守ることができるので、周辺デバイスの動作が阻害されることはない。また、各周辺デバイスから前記バスへのバス要求が少ない場合には、プロセッサの前記バスへのアクセスは、アクセス可能な回数が期間T/{(n+1)k}に応じてkづつ増加するので、プロセッサの待ち時間を減少させることができる。
その結果、全ての周辺デバイスがバス要求をしたときでも、各周辺デバイスがバス権を獲得するまでの時間を保証することができ、各周辺デバイスからのバス要求あっても、プロセッサはバスを使用することができる。さらに、バスに空き時間がある場合には、プロセッサの待ち時間を極力短縮することができる。
【0009】
【実施例】
図1は、この発明のバス制御装置を適用した一実施例のブロック図であり、図2は、このバス制御装置を有するコンピュータシステムの構成図である。
図2は、プロセッサと不定期的にバスを使用する複数の周辺デバイスを共通バスに接続して、バス制御装置107(図面ではシステム全体の一部としてバス制御部107としてこれを示すが、以下これをバス制御装置107として説明する。)によりこれのバス使用を調整するものである。
図2において、プロセッサ101とメインメモリ102は、プロセッサ側バス109で接続されている。周辺デバイス(1)103と、周辺デバイス(2)104、周辺デバイス(3)105、周辺デバイス(4)106、そしてバッファメモリ108とは、周辺デバイス側バス110において相互に接続されている。
プロセッサ側のバス109と周辺デバイス側のバス110は、バス制御装置107を介して接続され、バス制御装置107がバス110の割当て、バスの調停制御をする。プロセッサ101がメインメモリ102をアクセスする場合には、プロセッサ側バス109のみを使用し、バス制御装置107は何もしない。この場合には、周辺デバイス側バス110には影響を与えない。
【0010】
プロセッサ101は、各周辺デバイス(103,104,105,106)やバッファメモリ108をアクセスする時、バス制御装置107を介して周辺デバイス側バス110をアクセスする。
図1は、このアクセス等についてバス110の使用を管理、調停制御をするバス制御装置107のブロック図である。
図1におて、バス制御装置107は、カウンタ301、コンパレータ302、監視タイミング発生回路303、周辺デバイスバス要求検出回路304、プロセッサバス要求検出回路305、バス調停制御回路306等とから構成されていて、プロセッサバス要求検出回路305とコンパレータ302によりこの発明の検出回路が構成される。また、バス調停制御回路306は、プロセッサとこれが実行するプログラムを主体として構成されてもよい。
【0011】
バス調停制御回路306は、周辺デバイス(103,104,105,106)のうちバス使用を要求してからバスの使用を開始できるまでの許容最小時間の周辺デバイス、例えば、周辺デバイス(1)103に対応する期間Tを周期として実質的に期間Tを(n+1)×k個(n=4、k=2)に分割して、各周辺デバイスの期間とプロセッサ101のバス使用期間の単位をT/10として、プロセッサ101には期間T/10を割当て、各周辺デバイス(103,104,105,106)には期間T/5を割当てる。プロセッサ101からバス要求されたときには、各周辺デバイスの期間の後ろに期間T/10を挿入する。プロセッサ101の期間T/10をk個、この実施例では2個(k=2)まで挿入することを許可する。なお、各周辺デバイスの期間にバス権の要求がなければその期間の最初にプロセッサ101にバス権が与えられ、次の周辺デバイスの期間に移る。
【0012】
図3の(a),(b)は、それぞれバス調停制御回路306における、プロセッサ101と周辺デバイス(1)103、周辺デバイス(2)104、周辺デバイス(3)105、周辺デバイス(4)106のバスの割当て時間を表わす図である。図3の(a)について説明すると、これは、プロセッサ101からバス要求が周辺デバイス103と周辺デバイス104の期間にあって、これらの期間の後に1回づつ合計2回のプロセッサ101のバス使用要求を受け入れた例である。
これにより周辺デバイス103と周辺デバイス104の期間204、期間206の後ろにプロセッサのアクセス期間(CPU)202として期間T/10(=期間T/{(n+1)k}がそれぞれに挿入されている。
【0013】
これによりプロセッサ101のバス使用権を確保することができる。したがって、周辺デバイス103と周辺デバイス104のバス使用期間とプロセッサ101のバス使用期間は、2:1になる。プロセッサ101のバス使用期間202として期間T/10を確保し、周辺デバイス103の期間204、周辺デバイス104の期間206、周辺デバイス105の期間208、周辺デバイス106の期間210のそれぞれに期間2T/10(=T/5)を割当てるために、バス調停制御回路306は、バス110の使用管理を監視タイミング発生回路303からの基準期間Tに対応する周期のパルスPT(図4(a)参照)とタイミングパルスPc(その周期T/10=期間T/{(n+1)k}、図4(b)参照)とを受けてこれらにに応じてバス使用の調整制御をする。
【0014】
図4は、監視タイミング発生回路303のタイミングパルスの説明図である。
その(b)が前記のタイミングパルスPcである。このパルスの周期TCは、期間T/10(=期間T/{(n+1)k})に対応している。なお、(a)は基準期間を示す周期Tのパルスが基準パルスPTである。
ところで、周辺デバイス(1)103、周辺デバイス(2)、104周辺デバイス(3)105、周辺デバイス(4)106がバスを要求してからバスを獲得とするまでには、制限時間があって、この時間内にプロセッサ101と全ての周辺デバイス(1)103,周辺デバイス(2)104,周辺デバイス(3)105,周辺デバイス(4)106のバスの使用時間を割り当てなければならない。そこで、これら周辺デバイスのうちのもっとも短い制限時間に対応せて基準時間Tが設定されている。
【0015】
この基準時間Tは、例えば、通信制御装置でフレーム同期プロトコル処理を行う場合、フレームの受信を開始すると受信終了までデバイス内のFIFO(ファーストインファーストアウト)のバッファサイズに関係する時間内にFIFOバッファに記憶された受信データをバッファメモリ108に転送する必要がある。このような場合には、通常、FIFOの受信バッファの2分の1までデータが受信されたときにバス要求を発生させる。そこで、残りの2分の1を受信するまでにバス要求が受け入れられなければ受信に失敗することになる。
この期間がバス割当ての制限時間となる。そして、これが他の周辺デバイスの持つ制限時間に対して最小時間であるとすれば、前記の基準時間Tとして使用される。この実施例では、例えば、周辺デバイス103がこの最小時間Tを持つデバイスに当たっている。
【0016】
ここで、プロセッサ101が周辺デバイス側のバス110を使用した場合のアクセス時間は、プロセッサ101のバス使用時間TP(=期間T/10)とする。 また、この実施例では、各周辺デバイスT(103,104,105,106)がバス110を使用した場合のバス使用時間(203,205,207,209)は、プロセッサ101のバス使用時間TPのちょうど2倍かかるものとしている。
周辺デバイス(1)103のバス要求監視時間203,周辺デバイス(2)104のバス要求監視時間205,周辺デバイス(3)105のバス要求監視時間207,周辺デバイス(4)106のバス要求監視時間209は、説明の都合上、図では幅があるが、実際には微細な時間であるため、各バス使用期間のタイミング発生時点の初期に割当て、これを無視できるものとする。そのための監視パルスPDを図4の(c)に示す。
【0017】
この実施例では、プロセッサ101と全周辺デバイス(103,104,105,106)が基準時間T内にバス110を使用した場合でもバス割当て図3の(a)に示すようにプロセッサ101のバス使用時間TPが基準時間T内に最大2回(k=2)分割当てることができる。そこで、プロセッサ101のアクセス回数のカウンタ301の初期値を2とする。これは、監視タイミング発生回路303から発生する図4の基準パルスPTの発生に応じてカウンタ301に設定される。
【0018】
バス制御装置107は、監視タイミング発生回路303により基準時間T以下の同期でプロセッサ101及び全周辺デバイス(103,104,105,106)のバス権要求を監視する。監視タイミング発生回路303から発生する監視タイミング発生回路303は、例えば、4つの周辺デバイスを監視するとすれば、期間TDの周期で幅の狭い監視パルスPDを周辺デバイスバス要求検出回路304に送出する。これにより各周辺デバイスのバス要求の有無を監視し、カウンタ301のカント値によりプロセッサの使用期間の管理をする。
ここでは、基準時間Tを5分割した期間T/5の周期を2つに分けて、T/10をプロセッサ101のバス使用期間(CPU)に割当てているので、各周辺デバイス103、104は、前記により割当てられた期間T/5において処理が終了しないときには、その手前で、処理中のデータをバッファメモリ等に退避させて、次のバス使用期間まで待つ処理を行う。これは、プロセッサ101についても同様である。
【0019】
周辺デバイスバス要求検出回路304は、アンドゲート304a,304b,304c,304dと、これらアンドゲートの出力を受けるオアゲート304eとからなる。
アンドゲート304aは、周辺デバイス103のバス要求を受け、期間204の初期のタイミング203で発生する監視パルスPDを受ける。アンドゲート304bは、周辺デバイス104のバス要求を受け、期間204の初期のタイミング205で発生する監視パルスPDを受ける。アンドゲート304cは、周辺デバイス104のバス要求を受け、期間208の初期のタイミング207で発生する監視パルスPDを受ける。アンドゲート304dは、周辺デバイス105のバス要求を受け、期間210の初期のタイミング209で発生する監視パルスPDを受ける。
【0020】
バス要求の信号は、LOWレベル(以下”L”)有意の信号であり、それぞれの周辺デバイスにバス要求があると、前記の監視パルスPDの発生タイミングに応じて各アンドゲートの出力は、”L”になる。その結果、オアゲート304eの出力は、バス要求があると”L”になるので、カウンタ301は、カウント値が加えられない。一方、いずれかの監視期間にバス要求がない場合には、オアゲート304eの出力は、HIGHレベル(以下”H”)になり、カウンタ301に数値2が加えられ、カウント値が2だけ加算される。
これにより周辺デバイスバス要求検出回路304は、周辺デバイス(103,104,105,106)のバス使用時間にバス要求があるか否かを検出して、バス権要求がない場合には、カウンタ301をカウントアップすることで、プロセッサ101にバス使用権を解放する。
なお、オアゲート304eの出力は、バス調停制御回路306に加えられ、この出力が”L”であるときには、バス要求があるとして、発生したタイミングに対応する周辺デバイスにバス権を与える信号をバス調停制御回路306は送出する。
【0021】
監視タイミング発生回路303は、プロセッサバス要求検出回路305にタイミングパルスPcを送出してプロセッサ101のバス要求の監視をする。プロセッサバス要求検出回路305は、アンドゲート305aとインバータ305bとからなり、タイミングパルスPcを受けるアンドゲート305aがインバータ305bを介してプロセッサ101からのバス要求を受ける。これによりバス要求は”H”にされる。アンドゲート305aは、コンパレータ302の出力も受ける。その結果、カウント値がゼロにならない限り、プロセッサ101からのバス要求がアンドゲート305aを介してバス調停制御回路306に受付けられる。アンドゲート305aの出力は、カウンタ301の減算出力に入力され、1回のアクセスごとにカウント値が1減算される。これにより、初期設定された2回だけは、言い換えれば、期間202の期間だけはアクセスが可能となる。
アンドゲート305aとオアゲート304eの出力は、監視タイミング発生回路303に入力され、いずれかの周辺デバイスの期間において周辺デバイスからバス要求がなく、かつ、プロセッサ101のバス要求があるときには、監視タイミング発生回路303は、図4の(d)に示すように、監視パルスPdの次の発生を周期T/10だけ、手前にはシフトさせて発生させる。(d)は、周辺デバイス(1)103にバス権の要求がない場合である。そして、監視パルスPdに応じてそれに対応した周辺デバイスにおいてバス要求がないときにはプロセッサ101にT/10の期間だけバス使用権が与えられる。これが図3の(b)に示す例である。
【0022】
さて、カウンタ301の出力は、コンパレータ302に入力されて、その値がゼロ以下か否かが比較され、ゼロ以下になったときに、LOWレベルの検出出力がアンドゲート305bに送出されてプロセッサ101のバス要求が阻止される。
バス調停制御回路306は、オアゲート304eの出力が”L”であるときに、プロセッサか101らのバス要求を受けると、周辺デバイスのバス使用期間をT/6に制限して残りの期間T/12の最初のタイミングでバス権をプロセッサ101に与える信号をプロセッサ101に送出してバス110をプロセッサ101に解放する。
バス調停制御回路306は、オアゲート304eの出力が”H”であるときに、すなわち、周辺デバイスからのバス要求がなったときには、プロセッサか101らのバス要求を受けると、その周辺デバイスのバス使用期間をT/5のうち期間T/10分のバス権をプロセッサ101に与える信号をプロセッサ101に送出してバス110をプロセッサ101に解放する。なお、この場合に図4の(d)のような制御をせずに、バス使用期間をT/5のうち期間T/10分のバス権を2回プロセッサ101に与える信号を発生して期間T/10のプロセッサにバスを使用させてもよい。
【0023】
図3の(a)の例について、バス制御装置の動作を説明すると、周辺デバイス(1)103がバス要求監視時間203内に、周辺デバイス(2)104がバス要求監視時間205内に、周辺デバイス(3)105がバス要求監視時間207内に周辺デバイス(4)106がバス要求監視時間209内にそれぞれバスの使用を要求しており、各周辺デバイス(103,104,105,106)のバス要求監視時(203,205,207,209)には、カウンタ301は、加算されずプロセッサ101が周辺デバイス側バス110を使用した時のみ前記カウンタ301の値を1ずつ減算する。
プロセッサ101が2回目にバスを使用した際に前記カウンタ301の値は、0となっているためバス制御装置107は、周辺デバイス(3)105のバス使用時間208後及び周辺デバイス(4)106のバス使用時間210後でプロセッサ101のバス権要求があってもコンパレータ302の出力結果が”L”(=偽)である限り、プロセッサ101にバス権が与えられない。
そして、周辺デバイス(4)106のバス使用時間210が終了すると、基準時間Tをすべて使用しているため監視周期の先頭215を前記カウンタ301に発行し、前記カウンタの301値を初期値2に戻す。
【0024】
図3の(b)の例について、バス制御装置の動作を説明すると、周辺デバイス(1)103がバス要求監視時間203内にバス権の要求がなく、前記カウンタ301の初期値2に対してバス権要求のなかった周辺デバイス(1)103のバス要求監視時間203後に前記カウンタ301に2を加算し値を4とする。その後プロセッサ101が周辺デバイス側バス110を使用したとき、前記カウンタ301の値を1ずつ減算しても全てのプロセッサ101のバス権要求のタイミングで前記カウンタ301の値が0より大きな値を示すためプロセッサ101の周辺デバイス側バス110へのアクセスが可能となる。
【0025】
以上のことより各周辺デバイス(103,104,105,106)がバスを使用しなかった時間を利用し、プロセッサ101が基準時間T内にバスを使用できる時間を偏りなく増やすことができるためプロセッサ101の周辺デバイス側バス110の待ち時間を少なくできる。
【0026】
【発明の効果】
以上説明してきたように、この発明にあっては、プロセッサと前記プロセッサとは別のバスに接続される複数の周辺デバイスを持ち、各周辺デバイスにバス権を割当てられるまでの時間に制限がある装置において、前記周辺デバイスの制限時間内に前記周辺デバイスからのバス使用状況によりプロセッサのバス割当て時間を可変させることで周辺デバイスがバスを要求してからバスを使用するまでの時間を保証できプロセッサが優先的かつ有効的ににバスを使用させ、プロセッサの待ち時間を減少させることができる。
【図面の簡単な説明】
【図1】図1は、この発明のバス制御装置を適用した一実施例のブロック図である。
【図2】図2は、このバス制御装置を有するコンピュータシステムの構成図である。
【図3】図3は、バス調停制御回路のバス権の期間管理の説明図であって、(a)は、周辺デバイスにバス要求がある場合の説明図であり,(b)は、周辺デバイスの1つにバス要求がない場合の説明図である。
【図4】図4は、図1の監視タイミング発生回路のタイミングパルスの説明図である。
【符号の説明】
101…プロセッサ、102…メインメモリ、
103…周辺デバイス(1)、1104…周辺デバイス(2)
105…周辺デバイス(3)、106…周辺デバイス(4)、
107…バス制御装置、108…バッファメモリ、
109…プロセッサ側バス、
110…周辺デバイス側バス、
111…アクセス回数カウンタ、
301…カウンタ、
302…コンパレータ、
303…監視タイミング発生回路、
T…基準時間、TP…プロセッサのバス使用時間。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a bus control device, and more particularly, in an arithmetic processing system having a microcomputer, various peripheral circuits connected to a processor (MPU or CPU), peripheral devices, or interfaces thereof are under the control of the bus control device. Control in which the priority order of processors such as MPU or CPU is high and the allocation of usage time of the right to use buses of peripheral devices and peripheral circuits can be efficiently performed when the bus is used in common Relates to the device.
[0002]
[Prior art]
In a computer system in which a processor and various peripheral circuits and devices are connected by a bus and data is exchanged using the bus, a processor such as an MPU or CPU is connected to various circuits and devices via the bus. .
Usually, since the data transmission frequency is high between the processor and the memory, they are connected by a dedicated bus. However, peripheral circuits such as peripheral devices and interface circuits (in this specification, these are referred to as peripheral devices). ) Adopts a configuration in which they are connected to each other or to processors via a bus control device.
[0003]
In such a case, when each peripheral device generates a bus use request (bus request), a right to use the bus for a predetermined time (bus right) is allocated accordingly, but the time from bus request to bus use is assigned. There are limitations. For example, a communication control device or the like cannot receive the next data unless it receives the received data and transfers it to the buffer memory via the bus. Therefore, the bus right must be acquired within a certain time. Therefore, the processor and peripheral devices use the bus under time restrictions.
When a processor tries to access a bus on the peripheral device side, it assigns a bus to the processor preferentially and waits for the peripheral device, and assigns a bus to the peripheral device side preferentially and the peripheral device assigns the bus. When used, there is a method of making the processor wait.
[0004]
[Problems to be solved by the invention]
However, in such a computer apparatus, when the bus right is given to the processor preferentially, all peripheral devices request the bus right based on the use of the processor bus. Therefore, when the processor frequently accesses the bus used by the peripheral device, the time until the bus right is given to each peripheral device cannot be maintained depending on the processing contents of the processor, which is a problem.
[0005]
On the other hand, when a bus right is preferentially given to the peripheral device side, when multiple peripheral devices request the bus right simultaneously or continuously, the bus right is routed to the processor until the bus use of all the peripheral devices is completed. There is a problem that does not come. In such a case, the use of the bus in a certain peripheral device is completed, and the processor waits for the next peripheral device to wait for even though the bus is not used. In this case, as long as the peripheral device makes a bus request, the processor does not have the right to use the bus, so that the processing capacity of the processor is reduced.
An object of the present invention is to solve such a problem of the prior art, and even when all peripheral devices make a bus request, it guarantees the time until each peripheral device acquires the bus right, It is another object of the present invention to provide a bus control device that allows a processor to use a bus even when there is a bus use request from each peripheral device.
[0006]
[Means for Solving the Problems]
A feature of the bus control device of the present invention for achieving such an object is that it accepts a bus use request from a processor and a bus use request of a peripheral device at each request timing, and n processors (however, n Is a computer device in which the processor and the peripheral device exchange data with the peripheral device sharing the bus via the bus control device and using the bus after the peripheral device requests the use of the bus. Period T / {(n + 1) k} by dividing period T into (n + 1) k pieces (where k is a positive number greater than or equal to 2) with period T corresponding to the minimum allowable time until start of the period as a period. corresponds to a unit period of allocation of k min the unit period of k as a bus period of use of the processor as the unit period duration T / (n + 1) of n around Device respectively Period T / a {(n + 1) k} as a unit in each of the periods T by assigning the bus use period of the scan
When there is a processor bus use request, a unit period is assigned to the use period of the period T / (n + 1) assigned according to the bus use request of the peripheral device, with the end of this use period as the processor bus use period. ensuring the k component with minimal, peripheral devices T / assigned to the peripheral device without bus request Nico when there is no bus request (n + 1) of the processor assigns a unit period as a bus usage period of the processor for The use of the bus is allowed and the unit period is increased by k in the period T.
[0007]
As a more specific configuration of the present invention, a means for detecting a bus request from a peripheral device and a time that each peripheral device must start after requesting a bus right is set as a reference time T, and the reference time T is within the reference time T. Is assigned the time T / {(n + 1) k} at which the processor can use the bus on the peripheral device side, and k is the number of times the processor can access the bus from the bus use time T / (n + 1) when the processor accesses the bus. By forcibly setting it, for example, by setting it as an initial value in the counter, when the peripheral device does not use the bus, the count value of this counter is counted up by k for that time, and the processor The number of times the bus can be accessed is subtracted until the counter reaches zero each time the processor accesses the bus. Then, when the count value becomes zero, the processor access during the period T is prohibited.
[0008]
DETAILED DESCRIPTION OF THE INVENTION
According to the present invention, in the computer device, when there are many accesses from all peripheral devices to the peripheral device side bus within the reference time, the number of times the processor can access the bus is reduced, and accordingly, the peripheral device Can be accessed in the period T / (n + 1), respectively, and the processor can access at least the number of times k with the set time T / {(n + 1) k} as a unit. In this case, the waiting time increases, but the reference time T can be maintained, so that the operation of the peripheral device is not hindered. Further, when there are few bus requests from each peripheral device to the bus, the number of times the processor can access the bus increases by k according to the period T / {(n + 1) k}. Processor latency can be reduced.
As a result, even when all peripheral devices make a bus request, the time until each peripheral device acquires the bus right can be guaranteed, and the processor uses the bus even if there is a bus request from each peripheral device. can do. Furthermore, when there is free time on the bus, the waiting time of the processor can be shortened as much as possible.
[0009]
【Example】
FIG. 1 is a block diagram of an embodiment to which the bus control device of the present invention is applied, and FIG. 2 is a block diagram of a computer system having this bus control device.
FIG. 2 shows a bus controller 107 (which is shown as a bus controller 107 as a part of the entire system in the drawing), by connecting a processor and a plurality of peripheral devices that use the bus irregularly to a common bus. This will be described as the bus control device 107.) The use of this bus is adjusted.
In FIG. 2, the processor 101 and the main memory 102 are connected by a processor side bus 109. Peripheral device (1) 103, peripheral device (2) 104, peripheral device (3) 105, peripheral device (4) 106, and buffer memory 108 are connected to each other via peripheral device side bus 110.
The processor-side bus 109 and the peripheral device-side bus 110 are connected via a bus control device 107, and the bus control device 107 assigns the bus 110 and controls bus arbitration. When the processor 101 accesses the main memory 102, only the processor side bus 109 is used, and the bus control device 107 does nothing. In this case, the peripheral device side bus 110 is not affected.
[0010]
The processor 101 accesses the peripheral device side bus 110 via the bus control device 107 when accessing each peripheral device (103, 104, 105, 106) and the buffer memory 108.
FIG. 1 is a block diagram of a bus control device 107 that manages the use of the bus 110 and controls arbitration for this access and the like.
In FIG. 1, the bus control device 107 includes a counter 301, a comparator 302, a monitoring timing generation circuit 303, a peripheral device bus request detection circuit 304, a processor bus request detection circuit 305, a bus arbitration control circuit 306, and the like. Thus, the processor bus request detection circuit 305 and the comparator 302 constitute a detection circuit of the present invention. In addition, the bus arbitration control circuit 306 may be configured mainly with a processor and a program executed by the processor.
[0011]
The bus arbitration control circuit 306 is a peripheral device having a minimum allowable time from the request for use of the bus to the start of use of the peripheral device (103, 104, 105, 106), for example, the peripheral device (1) 103. The period T is substantially divided into (n + 1) × k (n = 4, k = 2), and the unit of the period of each peripheral device and the bus use period of the processor 101 is T. / 10, a period T / 10 is assigned to the processor 101, and a period T / 5 is assigned to each peripheral device (103, 104, 105, 106). When a bus request is issued from the processor 101, a period T / 10 is inserted after the period of each peripheral device. Insertion of up to k periods T / 10 of the processor 101, up to two (k = 2) in this embodiment is permitted. If there is no bus right request in each peripheral device period, the bus right is given to the processor 101 at the beginning of the period, and the next peripheral device period starts.
[0012]
3A and 3B show the processor 101 and the peripheral device (1) 103, the peripheral device (2) 104, the peripheral device (3) 105, and the peripheral device (4) 106 in the bus arbitration control circuit 306, respectively. It is a figure showing the allocation time of the bus. Referring to FIG. 3A, this is because the bus request from the processor 101 is in the period of the peripheral device 103 and the peripheral device 104, and the bus use request of the processor 101 is made twice, once after these periods. Is an example of accepting.
Accordingly, a period T / 10 (= period T / {(n + 1) k}) is inserted as the processor access period (CPU) 202 after the periods 204 and 206 of the peripheral device 103 and the peripheral device 104, respectively.
[0013]
As a result, the right to use the bus of the processor 101 can be secured. Therefore, the bus usage period of the peripheral device 103 and the peripheral device 104 and the bus usage period of the processor 101 are 2: 1. The period T / 10 is secured as the bus use period 202 of the processor 101, and the period 2T / 10 is set for each of the period 204 of the peripheral device 103, the period 206 of the peripheral device 104, the period 208 of the peripheral device 105, and the period 210 of the peripheral device 106. In order to allocate (= T / 5), the bus arbitration control circuit 306 manages the use of the bus 110 with a pulse PT having a period corresponding to the reference period T from the monitoring timing generation circuit 303 (see FIG. 4A). In response to the timing pulse Pc (period T / 10 = period T / {(n + 1) k}, see FIG. 4B), the bus use adjustment control is performed in accordance with these timing pulses.
[0014]
FIG. 4 is an explanatory diagram of timing pulses of the monitoring timing generation circuit 303.
(B) is the timing pulse Pc. The period TC of this pulse corresponds to the period T / 10 (= period T / {(n + 1) k}). In (a), a pulse having a period T indicating a reference period is a reference pulse PT.
By the way, there is a time limit between the peripheral device (1) 103, the peripheral device (2), the 104 peripheral device (3) 105, and the peripheral device (4) 106 requesting the bus and acquiring the bus. During this time, the bus usage time of the processor 101 and all peripheral devices (1) 103, peripheral device (2) 104, peripheral device (3) 105, and peripheral device (4) 106 must be allocated. Therefore, a reference time T is set corresponding to the shortest time limit among these peripheral devices.
[0015]
For example, when frame communication protocol processing is performed in the communication control apparatus, the reference time T is within a time related to the FIFO (first-in first-out) buffer size in the device until reception ends when frame reception is started. It is necessary to transfer the received data stored in the buffer memory 108. In such a case, usually, a bus request is generated when the data is received until one-half of the reception buffer of the FIFO. Therefore, if the bus request is not accepted before the remaining half is received, the reception fails.
This period is the time limit for bus allocation. If this is the minimum time with respect to the time limit of other peripheral devices, it is used as the reference time T. In this embodiment, for example, the peripheral device 103 corresponds to the device having the minimum time T.
[0016]
Here, the access time when the processor 101 uses the peripheral device side bus 110 is the bus use time TP (= period T / 10) of the processor 101. In this embodiment, the bus use time (203, 205, 207, 209) when each peripheral device T (103, 104, 105, 106) uses the bus 110 is the bus use time TP of the processor 101. It is supposed to take exactly twice.
Bus request monitoring time 203 of peripheral device (1) 103, bus request monitoring time 205 of peripheral device (2) 104, bus request monitoring time 207 of peripheral device (3) 105, bus request monitoring time of peripheral device (4) 106 For convenience of explanation, 209 has a range in the figure, but since it is actually a minute time, it is assigned at the beginning of the timing of occurrence of each bus use period and can be ignored. A monitoring pulse PD for this purpose is shown in FIG.
[0017]
In this embodiment, even when the processor 101 and all peripheral devices (103, 104, 105, 106) use the bus 110 within the reference time T, the bus allocation is performed as shown in FIG. The time TP can be allocated up to twice (k = 2) within the reference time T. Therefore, the initial value of the access count counter 301 of the processor 101 is set to 2. This is set in the counter 301 in accordance with the generation of the reference pulse PT shown in FIG.
[0018]
The bus control device 107 monitors the bus right requests of the processor 101 and all peripheral devices (103, 104, 105, 106) in synchronization with the reference time T or less by the monitoring timing generation circuit 303. For example, if four peripheral devices are monitored, the monitoring timing generation circuit 303 generated from the monitoring timing generation circuit 303 sends a monitoring pulse PD having a narrow width to the peripheral device bus request detection circuit 304 in the period TD. Thus, the bus request of each peripheral device is monitored and the usage period of the processor is managed by the cant value of the counter 301.
Here, the period T / 5 divided into five reference times T is divided into two, and T / 10 is allocated to the bus usage period (CPU) of the processor 101. Therefore, each peripheral device 103, 104 is If the process does not end in the period T / 5 allocated as described above, a process of saving the data being processed to the buffer memory or the like and waiting until the next bus use period is performed. The same applies to the processor 101.
[0019]
The peripheral device bus request detection circuit 304 includes AND gates 304a, 304b, 304c, and 304d and an OR gate 304e that receives the outputs of these AND gates.
The AND gate 304 a receives a bus request from the peripheral device 103 and receives a monitoring pulse PD generated at the initial timing 203 of the period 204. The AND gate 304 b receives a bus request from the peripheral device 104 and receives a monitoring pulse PD generated at the initial timing 205 of the period 204. The AND gate 304 c receives a bus request from the peripheral device 104 and receives a monitoring pulse PD generated at the initial timing 207 of the period 208. The AND gate 304d receives a bus request from the peripheral device 105 and receives a monitoring pulse PD generated at the initial timing 209 of the period 210.
[0020]
The bus request signal is a LOW level (hereinafter, “L”) significant signal. When there is a bus request to each peripheral device, the output of each AND gate is “ L ”. As a result, the output of the OR gate 304e becomes “L” when there is a bus request, and the counter 301 is not added with the count value. On the other hand, if there is no bus request in any of the monitoring periods, the output of the OR gate 304e becomes HIGH level (hereinafter “H”), the numerical value 2 is added to the counter 301, and the count value is incremented by 2. .
Thus, the peripheral device bus request detection circuit 304 detects whether or not there is a bus request during the bus usage time of the peripheral device (103, 104, 105, 106). The right to use the bus is released to the processor 101.
The output of the OR gate 304e is applied to the bus arbitration control circuit 306. When this output is "L", it is determined that there is a bus request, and a signal that gives the bus right to the peripheral device corresponding to the generated timing is bus arbitrated. The control circuit 306 sends out.
[0021]
The monitoring timing generation circuit 303 sends a timing pulse Pc to the processor bus request detection circuit 305 to monitor the bus request of the processor 101. The processor bus request detection circuit 305 includes an AND gate 305a and an inverter 305b. The AND gate 305a receiving the timing pulse Pc receives a bus request from the processor 101 via the inverter 305b. As a result, the bus request is set to “H”. The AND gate 305a also receives the output of the comparator 302. As a result, the bus request from the processor 101 is accepted by the bus arbitration control circuit 306 via the AND gate 305a unless the count value becomes zero. The output of the AND gate 305a is input to the subtraction output of the counter 301, and the count value is decremented by 1 for each access. As a result, the access can be performed only twice in the initial setting, in other words, only during the period 202.
The outputs of the AND gate 305a and the OR gate 304e are input to the monitoring timing generation circuit 303. When there is no bus request from the peripheral device during the period of any peripheral device and there is a bus request of the processor 101, the monitoring timing generation circuit As shown in (d) of FIG. 4, 303 generates the next generation of the monitoring pulse Pd by shifting it forward by the period T / 10. (D) shows a case where the peripheral device (1) 103 has no bus right request. When there is no bus request in the peripheral device corresponding to the monitoring pulse Pd, the right to use the bus is given to the processor 101 for a period of T / 10. This is an example shown in FIG.
[0022]
The output of the counter 301 is input to the comparator 302, and whether or not the value is equal to or less than zero is compared. When the value is equal to or less than zero, a LOW level detection output is sent to the AND gate 305b. Bus requests are blocked.
When the bus arbitration control circuit 306 receives a bus request from the processor 101 when the output of the OR gate 304e is "L", the bus arbitration control circuit 306 limits the bus use period of the peripheral device to T / 6 and the remaining period T / At the first timing of 12, a signal for giving the bus right to the processor 101 is sent to the processor 101, and the bus 110 is released to the processor 101.
When the output of the OR gate 304e is "H", that is, when a bus request is received from a peripheral device, the bus arbitration control circuit 306 receives the bus request from the processor 101 and uses the bus of the peripheral device. A signal for giving the bus right for the period T / 10 out of the period T / 5 to the processor 101 is sent to the processor 101 to release the bus 110 to the processor 101. In this case, without performing the control as shown in FIG. 4 (d), a signal for generating the bus right for the period T / 10 out of the bus use period T / 5 is generated twice to generate the period. The bus may be used by a T / 10 processor.
[0023]
3A, the operation of the bus control apparatus will be described. The peripheral device (1) 103 is within the bus request monitoring time 203, and the peripheral device (2) 104 is within the bus request monitoring time 205. The device (3) 105 requests the use of the bus within the bus request monitoring time 207 while the peripheral device (4) 106 requests the use of the bus within the bus request monitoring time 209, and each of the peripheral devices (103, 104, 105, 106). At the time of bus request monitoring (203, 205, 207, 209), the counter 301 is not added and the value of the counter 301 is decremented by 1 only when the processor 101 uses the peripheral device side bus 110.
When the processor 101 uses the bus for the second time, the value of the counter 301 is 0. Therefore, the bus controller 107 determines that the peripheral device (4) 106 after the bus use time 208 of the peripheral device (3) 105. Even if there is a bus right request of the processor 101 after the bus use time 210, as long as the output result of the comparator 302 is “L” (= false), the bus right is not given to the processor 101.
When the bus usage time 210 of the peripheral device (4) 106 is completed, since all the reference time T is used, the head 215 of the monitoring cycle is issued to the counter 301, and the 301 value of the counter is set to the initial value 2. return.
[0024]
The operation of the bus control apparatus will be described with respect to the example of FIG. 3B. The peripheral device (1) 103 has no bus right request within the bus request monitoring time 203, and the initial value 2 of the counter 301 is 2 is added to the counter 301 after the bus request monitoring time 203 of the peripheral device (1) 103 for which no bus right request has been made, and the value is set to 4. Thereafter, when the processor 101 uses the peripheral device side bus 110, even if the value of the counter 301 is decremented by one, the value of the counter 301 shows a value larger than 0 at the timing of the bus right request of all the processors 101. Access to the peripheral device bus 110 of the processor 101 becomes possible.
[0025]
As described above, the time that each peripheral device (103, 104, 105, 106) did not use the bus can be used, and the time during which the processor 101 can use the bus within the reference time T can be increased without bias. The waiting time of the peripheral device side bus 110 of 101 can be reduced.
[0026]
【The invention's effect】
As described above, according to the present invention, a processor and a plurality of peripheral devices connected to different buses are provided, and there is a limit in time until a bus right is assigned to each peripheral device. In the apparatus, the processor can guarantee the time from when the peripheral device requests the bus to using the bus by varying the bus allocation time of the processor according to the bus usage status from the peripheral device within the time limit of the peripheral device. Can preferentially and effectively use the bus and reduce processor latency.
[Brief description of the drawings]
FIG. 1 is a block diagram of an embodiment to which a bus control device of the present invention is applied.
FIG. 2 is a configuration diagram of a computer system having the bus control device.
FIGS. 3A and 3B are explanatory diagrams of the period management of the bus right of the bus arbitration control circuit, wherein FIG. 3A is an explanatory diagram when a peripheral device has a bus request, and FIG. It is explanatory drawing in case there is no bus request in one of the devices.
FIG. 4 is an explanatory diagram of timing pulses of the monitoring timing generation circuit of FIG. 1;
[Explanation of symbols]
101 ... Processor, 102 ... Main memory,
103: Peripheral device (1), 1104: Peripheral device (2)
105 ... Peripheral device (3), 106 ... Peripheral device (4),
107: Bus control device, 108: Buffer memory,
109 ... processor side bus,
110: Peripheral device side bus,
111 ... Access count counter,
301 ... Counter,
302 ... Comparator,
303 ... monitoring timing generation circuit,
T: Reference time, TP: Processor bus usage time.

Claims (4)

プロセッサからのバス使用要求と周辺デバイスのバス使用要求とをそれぞれにそれぞれの要求タイミングで受付け、前記プロセッサとn個(ただしnは2以上の正数)の前記周辺デバイスとがバス制御装置を介してバスを共有して前記プロセッサおよび前記周辺デバイスがデータの授受を行うコンピュータ装置において、前記周辺デバイスがバス使用要求してからバスの使用を開始できるまでの許容最小時間に対応する期間を周期Tとして実質的に前記期間Tを(n+1)k個(ただしkは2以上の正数)に分割して前記期間T/{(n+1)k}を単位期間としてこの単位期間k個を前記プロセッサのバス使用期間として割当てk個分の前記単位期間に相当する期間T/(n+1)をそれぞれ前記n個の周辺デバイスのバス使用期間に割当てることでそれぞれの前記期間Tにおいて前記期間T/{(n+1)k}を単位とし、
前記プロセッサの前記バス使用要求があるときには前記周辺デバイスの前記バス使用要求に応じて割当てられた前記期間T/(n+1)の使用期間に対してこの使用期間の後ろを前記プロセッサのバス使用期間として前記単位期間分を割当てて最小で前記k個分を確保し、前記周辺デバイスのバス要求がないときにこのバス要求のない周辺デバイスに割当てられた前記T/(n+1)について前記プロセッサのバス使用期間として前記単位期間分を割当てて前記プロセッサのバス使用を許容しかつ前記周期Tの期間においてk個分前記単位期間を増加させるバス制御装置。
Accepted at each request timing and bus use request of a bus use request and the peripheral devices from the processor to each of the processor and the n (where n is 2 or more positive) and the said peripheral device via the bus control unit In the computer apparatus in which the processor and the peripheral device exchange data by sharing the bus, a period corresponding to the minimum allowable time from when the peripheral device requests to use the bus until the use of the bus can be started is a period T as substantially the period T (n + 1) k number (where k is 2 or more positive) the period is divided into T / {(n + 1) k} this unit period k pieces as a unit period of the processor allocation period corresponding to the unit period of allocation of k min as a bus usage period T / a (n + 1) to the bus use period of each of the n-number of peripheral devices The period T / a {(n + 1) k} as a unit in each of the periods T in Rukoto,
When there is a bus use request of the processor, the use period after the use period is set as the bus use period of the processor with respect to the use period of the period T / (n + 1) allocated according to the bus use request of the peripheral device. securing said k pieces minute with minimum assigns the unit period, the bus of the processor for said assigned to the peripheral device without bus request Nico when no bus request of the peripheral device the T / (n + 1) A bus control device that allocates the unit period as a use period to allow the processor to use the bus and increases the unit period by k in the period T.
前記期間T/{(n+1)k}を単位としたタイミングパルスに応じて少なくとも各前記周辺デバイスに割当てられた前記期間T/(n+1)の開始時点でこの期間を割り当てる前記周辺デバイスのバス使用要求があるか否かを検出して検出結果に応じて前記プロセッサの前記バス使用要求に対する前記単位期間の前記プロセッサのバス使用の割当てをする請求項1記載のバス制御装置。 A bus use request of the peripheral device to which this period is assigned at least at the start time of the period T / (n + 1) assigned to each peripheral device in response to a timing pulse in units of the period T / {(n + 1) k} The bus control device according to claim 1, wherein the bus control apparatus allocates the bus use of the processor in the unit period to the bus use request of the processor according to a detection result . プロセッサからのバス使用要求と周辺デバイスのバス使用要求とをそれぞれにそれぞれの要求タイミングで受付け、前記プロセッサとn個(ただしnは2以上の正数)の前記周辺デバイスとがバス制御装置を介してバスを共有して前記プロセッサおよび前記周辺デバイスがデータの授受を行うコンピュータ装置において、前記周辺デバイスがバス使用を要求してからバスの使用を開始できるまでの許容最小時間に対応する期間Tに対して実質的に前記期間T/{(n+1)k}(ただしkは2以上の正数)を周期とするタイミングパルスを発生するタイミングパルス発生回路と、
前記タイミングパルスに応じて前記期間T/{(n+1)k}を前記プロセッサのバス使用期間として割当て前記期間T/(n+1)を前記n個の周辺デバイスのバス使用期間に割当てかつ前記プロセッサの前記バス使用要求があるときにはこれに対応する制御信号に応じて、前記周辺デバイスの前記バス使用要求に応じて割当てられた前記期間T/(n+1)の使用期間に対してこの使用期間の後ろを前記プロセッサのバス使用期間として前記単位期間分を割当てて最小で前記k個分を確保し、前記周辺デバイスのバス要求がないときには前記制御信号に応じて、このバス要求のない周辺デバイスに割当てられた前記T/(n+1)について前記プロセッサのバス使用期間として前記単位期間分を割当てて前記プロセッサのバス使用を許容しかつ前記周期Tの期間においてk個分前記単位期間を増加させる制御をするバス調停制御部と、
各前記周辺デバイスに割当てられた前記期間T/(n+1)においてその開始時点でこの期間が割当られる前記周辺デバイスにバス使用要求があるか否かを検出しかつ前記プロセッサからのバス使用要求に応じて前記制御信号を発生する検出回路とを備えるバス制御装置。
Accepted at each request timing and bus use request of a bus use request and the peripheral devices from the processor to each of the processor and the n (where n is 2 or more positive) and the said peripheral device via the bus control unit In the computer apparatus in which the processor and the peripheral device exchange data by sharing the bus, the period T corresponds to the allowable minimum time from when the peripheral device requests the use of the bus until the use of the bus can be started. A timing pulse generating circuit for generating a timing pulse having a period substantially equal to the period T / {(n + 1) k} (where k is a positive number of 2 or more);
In response to the timing pulse, the period T / {(n + 1) k} is assigned as the bus use period of the processor, the period T / (n + 1) is assigned to the bus use period of the n peripheral devices, and the processor When there is a bus use request, in response to a control signal corresponding thereto, the use period after the use period is compared with the use period of the period T / (n + 1) assigned according to the bus use request of the peripheral device. securing said k pieces minute with minimum assigns the unit period as a bus period of use of the processor, the when there is no bus request of the peripheral device in response to said control signal, to the peripheral device without bus request this the allocated the T / (n + 1) assigns said unit period as a bus use period of the processor allows the bus use of the processor And a bus arbitration control unit for the control of increasing the k partial unit period in a period of the period T,
In the period T / (n + 1) allocated to each peripheral device, it detects whether or not the peripheral device to which this period is allocated has a bus use request at the start time and responds to the bus use request from the processor. And a detection circuit for generating the control signal.
前記検出回路は、前記kを前記T期間の開始時点で記憶するカウンタと、前記n個の周辺デバイスから前記バス使用要求を受けて各前記周辺デバイスに割当てられた各前記期間 T/(n+1)の開始時点でこの期間が割当られる前記周辺デバイスにバス使用要求があるか否かを検出して前記バス使用要求がないときに前記カウンタを前記kだけカウントアップする計数値発生回路と、前記プロセッサが前記バスを使用したときに前記期間T/{(n+1)k}を単位としてこの期間ごとに前記カウンタを1カウントダウンし、前記カウンタのカウント値が1以上であるとき前記プロセッサからのバス使用要求を前記制御信号として発生するゲート回路とを備える請求項3記載のバス制御装置。Wherein the detection circuit includes a counter for storing the k at the start of the T period, the n each said period from the peripheral device assigned to each said peripheral device receiving said bus request T / (n + 1) A count value generating circuit for detecting whether or not there is a bus use request in the peripheral device to which this period is assigned at the start of the counter, and counting up the counter by k when there is no bus use request, and the processor When using the bus, the counter is decremented by 1 every period T / {(n + 1) k} as a unit, and when the count value of the counter is 1 or more, a bus use request from the processor The bus control device according to claim 3, further comprising: a gate circuit that generates a signal as the control signal.
JP12267596A 1996-04-19 1996-04-19 Bus control device Expired - Fee Related JP3699529B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12267596A JP3699529B2 (en) 1996-04-19 1996-04-19 Bus control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12267596A JP3699529B2 (en) 1996-04-19 1996-04-19 Bus control device

Publications (2)

Publication Number Publication Date
JPH09288642A JPH09288642A (en) 1997-11-04
JP3699529B2 true JP3699529B2 (en) 2005-09-28

Family

ID=14841856

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12267596A Expired - Fee Related JP3699529B2 (en) 1996-04-19 1996-04-19 Bus control device

Country Status (1)

Country Link
JP (1) JP3699529B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4898527B2 (en) * 2006-06-02 2012-03-14 パナソニック株式会社 RESOURCE USE MANAGEMENT DEVICE, RESOURCE USE MANAGEMENT SYSTEM, AND RESOURCE USE MANAGEMENT DEVICE CONTROL METHOD

Also Published As

Publication number Publication date
JPH09288642A (en) 1997-11-04

Similar Documents

Publication Publication Date Title
US4969120A (en) Data processing system for time shared access to a time slotted bus
US6820152B2 (en) Memory control device and LSI
JPH06236329A (en) Deadlock detection and masking device
AU687627B2 (en) Multiprocessor system bus protocol for optimized accessing of interleaved storage modules
JPH0218657A (en) Multiple bus microcomputer system
JPH05197671A (en) Master and slave communication method
KR0155269B1 (en) Bus arbitrating method and its apparatus
JP3699529B2 (en) Bus control device
US6105082A (en) Data processor used in a data transfer system which includes a detection circuit for detecting whether processor uses bus in a forthcoming cycle
JP4151362B2 (en) Bus arbitration method, data transfer device, and bus arbitration method
JPH0656602B2 (en) Priority control system for processors with cache
JPH0962640A (en) Access control method for shared memory
KR100243868B1 (en) Arbiter logic in main computer system
KR930004910Y1 (en) Data bus arbitrator for multiprocessor system
JP2658972B2 (en) Bus arbitration equipment
JP2742135B2 (en) Bus arbitration equipment
JP4170506B2 (en) Arbitration circuit and method
JPH06266657A (en) Information processor
JP3206562B2 (en) Computer system
JP3677535B2 (en) Data transfer control circuit
JPH0830549A (en) Bus control device
JP3266184B2 (en) I / O control method and device
KR100583455B1 (en) Programmable Bus arbiter with simple hardware structure
JP2837893B2 (en) Microcomputer device
KR930001586B1 (en) Microcomputer system

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050318

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050405

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20050601

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050601

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20050705

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050708

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090715

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100715

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100715

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110715

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees