JP4413524B2 - Multiport memory - Google Patents
Multiport memory Download PDFInfo
- Publication number
- JP4413524B2 JP4413524B2 JP2003126229A JP2003126229A JP4413524B2 JP 4413524 B2 JP4413524 B2 JP 4413524B2 JP 2003126229 A JP2003126229 A JP 2003126229A JP 2003126229 A JP2003126229 A JP 2003126229A JP 4413524 B2 JP4413524 B2 JP 4413524B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- access
- microprocessor
- wait
- port memory
- 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 - Lifetime
Links
Images
Landscapes
- Multi Processors (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、複数のマイクロプロセッサによるアクセスを可能とするマルチポートメモリに関する。
【0002】
【従来の技術】
今日、複数のマイクロプロセッサでメモリが共有される場合があり、この場合にはマルチポートメモリが用いられることがある。このマルチポートメモリには調停回路が設けられて、各マイクロプロセッサからのアクセスを調停回路が先着優先で調停してシングルポートメモリにアクセスできるようにしている(特許文献1参照)。
【0003】
このようなマルチポートメモリの従来構成を図11を参照して説明する。
【0004】
当該マルチポートメモリ4は、複数のマイクロプロセッサ1a,1b間のデータ受渡しを行う際の調停を行う調停回路2、データが格納されるシングルポートメモリ3を主要構成としている。
【0005】
調停回路2は、アクセス権判定手段5と切替手段6とからなり、複数のマイクロプロセッサ1a,1bから同時にアクセスが発生しても先着優先でアクセスの競合を調停するようになっている。
【0006】
アクセス権判定手段5は、マイクロプロセッサ1a,1bからのアクセス信号CS−A,CS−Bに基づきアクセス権を判定して、アクセスを許可する一方のマイクロプロセッサ1a(1b)を示す切替信号SELを切替手段6に出力すると共に、アクセス待ちとなるマイクロプロセッサ1b(1a)に対してはウエイト信号WAIT−B(WAIT−A)を出力する。
【0007】
切替手段6は、切替信号SELに基いてマイクロプロセッサ1aからの信号とマイクロプロセッサ1bからの信号とを切替えて、シングルポートメモリ3にアドレス信号ADRS、データ信号DATA、書込信号WR、読出信号RDとして出力する。
【0008】
なお、マイクロプロセッサ1aからの信号は、アドレス信号ADRS−A、データ信号DATA−A、書込信号WR−A、読出信号RD−Aである。また、マイクロプロセッサ1bからの信号は、アドレス信号ADRS−B、データ信号DATA−B、書込信号WR−B、読出信号RD−Bである。
【0009】
図12はこのようなマルチポートメモリ4のタイミングチャートを示す図で、マイクロプロセッサ1aが先着でアクセスすると、アクセス権判定手段5は切替信号SELをA側選択とし、マイクロプロセッサ1bにハイレベルのウエイト信号WAIT−Bを出力する。
【0010】
【特許文献1】
特開2000−57775号公報
【0011】
【発明が解決しようとする課題】
しかしながら、上記マルチポートメモリ4では、例えばマイクロプロセッサ1aが連続してアクセスすると切替信号SELがA側選択の状態を継続するので、マイクロプロセッサ1bにはウエイト信号WAIT−Bが出力されつづけてアクセス待ち状態を継続するようになるため以下のような問題が発生する。
【0012】
即ち、例えばマイクロプロセッサ1aがアクセスしている間は、マイクロプロセッサ1bがウエイト信号WAIT−Bにより演算を停止するので、当該マイクロプロセッサ1bの演算性能が低下してしまう問題がある。
【0013】
また、マイクロプロセッサ1aがアクセスを継続しマイクロプロセッサ1bがアクセス待ちを続けると、マイクロプロセッサ1bは割込処理などの緊急処理を実行することができないため、結果的に緊急処理に対する応答性能が低下してしまう問題がある。
【0014】
さらに、マイクロプロセッサ1aが負荷の低い処理を実施し、マイクロプロセッサ1bが負荷の高い処理を実施している場合でも、マイクロプロセッサ1aがアクセスを継続すると、この間マイクロプロセッサ1bはアクセス待ち状態を継続するため、よりマイクロプロセッサ1bの負荷が大きくなり結果として性能が低下してしまう問題がある。
【0015】
そこで、本発明は、マイクロプロセッサの演算性能低下を抑制すると共に、緊急時に対する応答時間を短くして効率的なメモリアクセスを可能にしたマルチポートメモリを提供することを目的とする。
【0016】
【課題を解決するための手段】
上記課題を解決するため、本発明は、シングルポートメモリと、該シングルポートメモリに複数のマイクロプロセッサによるアクセスの競合が発生した際に、一方の前記マイクロプロセッサに対してはアクセスを許可し、他方の前記マイクロプロセッサに対してはウエイト信号を出力してアクセス待ちにすることでアクセスの調停を行う調停回路とを有するマルチポートメモリにおいて、前記調停回路が、他方の前記マイクロプロセッサに対する前記ウエイト信号の出力継続時間を計時して、当該計時した時間が所定時間に達するとタイマ信号を出力するウエイトタイマと、前記タイマ信号を受信すると、一方の前記マイクロプロセッサのアクセスが一旦終了した後に、他方の前記マイクロプロセッサによる前記マルチポートメモリへのアクセスができるように切替信号を出力するアクセス権判定手段と、前記切替信号に基づいて、該当する前記マイクロプロセッサが前記シングルポートメモリにアクセスできるように切替える切替手段とを有することを特徴とする。
【0017】
この構成によれば、1つのマイクロプロセッサのアクセスが連続した場合においては、ウエイトタイマが所定時間以上アクセス待ち状態が継続したことを検出し、タイマ信号をアクセス権判定手段に出力し、アクセス権判定手段においてアクセス権をウエイト信号の出ていた側に切替るため、他方のマイクロプロセッサのアクセス待ち状態が所定時間以上にならないようにすることができる。
【0018】
これにより、マイクロプロセッサの演算性能が低下することを抑制し、割込処理などの緊急処理についても所定時間以内に応答することができる。
【0019】
また、別の発明は、シングルポートメモリと、該シングルポートメモリに複数のマイクロプロセッサによるアクセスの競合が発生した際に、一方の前記マイクロプロセッサに対してはアクセスを許可し、他方の前記マイクロプロセッサに対してはウエイト信号を出力してアクセス待ちにすることでアクセスの調停を行う調停回路とを有するマルチポートメモリにおいて、前記調停回路が、他方の前記マイクロプロセッサに対する前記ウエイト信号と一方の前記マイクロプロセッサからの読出し信号又は書込み信号を検出して、当該検出回数の一致不一致に関わらず、当該検出回数が所定回数に達するとカウント信号を出力するウエイトカウンタと、前記カウント信号を受信すると、一方の前記マイクロプロセッサのアクセスが一旦終了した後に、他方の前記マイクロプロセッサによる前記マルチポートメモリへのアクセスができるように切替信号を出力するアクセス権判定手段と、前記切替信号に基づいて、該当する前記マイクロプロセッサが前記シングルポートメモリにアクセスできるように切替える切替手段とを有することを特徴とする。
【0020】
この構成によれば、1つのマイクロプロセッサのアクセスが連続した場合においては、ウエイトカウンタが所定時間以上アクセス待ち状態が継続したことを検出し、カウント信号をアクセス権判定手段に出力し、アクセス権判定手段においてアクセス権をウエイト信号の出ていた側に切替るため、他方のプロセッサのアクセス待ち状態が一定アクセス回数以上にならないようにすることができる。また、ウエイトカウンタの設定をプロセッサ個別に設定することができる。
【0021】
これにより、マイクロプロセッサの演算性能が低下することを抑制し、割込処理などの緊急処理についても所定時間以内に応答することができる。また、ウエイトカウンタにおけるアクセス回数を可変に設定できるようにしたので、マイクロプロセッサの優先度に応じて設定することにより演算性能を向上させることができる。
【0022】
【発明の実施の形態】
本発明の実施の形態を図を参照して説明する。なお、従来と同一構成に関して、同一符号を付して説明を適宜省略する。
【0023】
図1は、本実施の形態の説明に適用されるマルチポートメモリ4の概略構成を示すブロック図で、複数のマイクロプロセッサ1a,1bとの間のアクセスの競合を調停するために設けられた調停回路2、データが格納されるシングルポートメモリ3を主要構成として、調停回路2はマイクロプロセッサ1a,1b及びシングルポートメモリ3と接続されている。
【0024】
この調停回路2は、アクセス権判定手段5、切替手段6、ウエイトタイマ7a,7bを有して、複数のマイクロプロセッサ1a,1bから同時にアクセスが発生しても所定時間毎にアクセス権を切替るように構成されている。
【0025】
アクセス権判定手段5は、マイクロプロセッサ1a,1bからのアクセス信号CS−A,CS−Bに基づきアクセス権を判定し切替信号SEL及びウエイト信号WAIT−A,WAIT−Bを出力する。
【0026】
切替手段6は、切替信号SELに基いてマイクロプロセッサ1a,1bからのアドレス信号ADRS−A,ADRS−B、データ信号DATA−A,DATA−B、書込信号WR−A,WR−B、読出信号RD−A,RD−Bを切替えてシングルポートメモリ3にアドレス信号ADRS、データ信号DATA、書込信号WR、読出信号RDとして出力する。
【0027】
ウエイトタイマ7a,7bは、ウエイト信号WAIT−A,WAIT−Bから所定時間以上アクセス待ち状態が継続したことを検出(計時)するとタイマ信号TIME−A、TIME−Bを出力する。
【0028】
図2は、このような構成のタイミングチャートである。マイクロプロセッサ1aが、アクセス中にマイクロプロセッサ1bのアクセス信号CS−Bが入るとアクセス権判定手段5は、マイクロプロセッサ1bにB側のウエイト信号WAIT−Bを返し、このウエイト信号WAIT−Bにより、マイクロプロセッサ1bは、アクセス待ち状態となる。
【0029】
そして、マイクロプロセッサ1aのアクセスが連続し、ウエイトタイマ7bがタイマ設定時間tbを超えるとタイマ信号TIME−Bがアクセス権判定手段5に出力される。
【0030】
アクセス権判定手段5は、タイマ信号TIME−Bを検出すると、マイクロプロセッサ1aからの読出信号RD−A又は書込信号WR−Aが一旦終了した時点で、切替信号SELをA側からB側に切替える。
【0031】
切替手段6は、切替信号SELがA側からB側に切替えられたことにより、読出信号RD、書込信号WR、アドレス信号ADRS、データ信号DATAを、読出信号RD−Aから読出信号RD−Bに、書込信号WR−Aから書込信号WR−Bに、アドレス信号ADRS−Aからアドレス信号ADRS−Bに、データ信号DATA−Aからデータ信号DATA−Bにそれぞれ切替る。
【0032】
同様にマイクロプロセッサ1bがアクセス中に、マイクロプロセッサ1aのアクセス信号CS−Aが入るとアクセス権判定手段5は、マイクロプロセッサ1aにウエイト信号WAIT−Aを返し、当該ウエイト信号WAIT−Aにより、マイクロプロセッサ1aは、アクセス待ち状態となる。
【0033】
そして、マイクロプロセッサ1bのアクセスが連続し、ウエイトタイマ7aのタイマ設定時間taを超えるとタイマ信号TIME−Aがアクセス権判定手段5に出力される。
【0034】
アクセス権判定手段5では、タイマ信号TIME−Aを検出すると、マイクロプロセッサ1bからの読出信号RD−B又は書込信号WR−Bが一旦終了した時点で、切替信号SELをB側からA側に切替える。
【0035】
切替手段6は、切替信号SELがB側からA側に変化したことにより、読出信号RD、書込信号WR、アドレス信号ADRS、データ信号DATAを、各々読出信号RD−Bから読出信号RD−Aに、書込信号WR−Bから書込信号WR−Aに、アドレス信号ADRS−Bからアドレス信号ADRS−Aに、データ信号DATA−Bからデータ信号DATA−Aにそれぞれ切替る。
【0036】
以上説明したような構成により、マイクロプロセッサ1a,1bのアクセス待ち状態が所定時間以上にならず、これらマイクロプロセッサ1a,1bの演算性能低下が抑制でき、また割込処理などの緊急処理についても所定時間以内に応答することができるようになる。
【0037】
なお、ウエイトタイマのタイマ設定時間ta、tbをマイクロプロセッサ個別に設定することも可能であり、この場合にはウエイトタイマのタイマ設定時間ta、tbを予め優先度に応じて設定することができるため演算性能を向上させることが可能になる。
【0038】
次に、本発明の第2の実施の形態を図を参照して説明する。なお、上述した実施の形態と同一構成に関しては同一符号を用い説明を適宜省略する。
【0039】
図3は、本実施の形態の説明に適用されるマルチポートメモリの概略構成を示すブロック図で、基本的には図1に示す構成と略同じであるが、図1におけるウエイトタイマ7bを省略した点が大きく相違している。
【0040】
即ち、調停回路2においてウエイト信号WAIT−Aから所定時間以上アクセス待ち状態が継続したことを検出しタイマ信号TIME−Aを出力するウエイトタイマ7aを有し、複数のマイクロプロセッサ1a,1bから同時にアクセスが発生してもマイクロプロセッサ1aのアクセス待ち状態が所定時間以内となるようにしている。
【0041】
図4は、このような構成のタイミングチャートで、マイクロプロセッサ1bのアクセスが連続した場合に、ウエイトタイマ7aがタイマ設定時間taを計時するとタイマ信号WAIT−Aがアクセス権判定手段5に出力される。
【0042】
アクセス権判定手段5では、タイマ信号WAIT−Aを検出すると、マイクロプロセッサ1bからの読出信号RD−B又は書込信号WR−Bが一旦終了した時点で、切替信号SELをB側からA側に切替える。
【0043】
切替手段6は、切替信号SELがB側からA側に変化したことにより、読出信号RD、書込信号WR、アドレス信号ADRS、データ信号DATAを、B側読出信号RD−BからA側読出信号RD−Aに、B側書込信号WR−BからA側書込信号WR−Aに、B側アドレス信号ADRS−BからA側アドレス信号ADRS−Aに、B側データ信号DATA−BからA側データ信号DATA−Aにそれぞれ切替る。
【0044】
同様に、マイクロプロセッサ1bがアクセスを行うと、アクセス信号CS−Bがアクセス権判定手段5に出力される。
【0045】
アクセス権判定手段5では、マイクロプロセッサ1aからの読出信号RD−A又は書込信号WR−Aが一旦終了した時点で、切替信号SELをA側からB側に切替える。
【0046】
このように、マイクロプロセッサ1bのアクセスが連続した場合に、ウエイトタイマ7aがタイマ設定時間ta以上アクセスが継続したことを検出するとタイマ信号TIME−Aがアクセス権判定手段5に出力され、当該アクセス権判定手段5はアクセス権をA側に切替るため、マイクロプロセッサ1aのアクセス待ち状態が所定時間以上にならないようにすることができる。
【0047】
従って、マイクロプロセッサ1aの演算性能が低下するのを抑制できると共に、割込処理などの緊急処理についても所定時間以内に応答することが可能になって演算性能の向上が図れる。
【0048】
次に、本発明の第3の実施の形態を図を参照して説明する。なお、上述した実施の形態と同一構成に関しては同一符号を用い説明を適宜省略する。
【0049】
図5は、本実施の形態の説明に適用されるマルチポートメモリの概略構成を示すブロック図で、基本的には図1に示す構成と略同じであるが、図1におけるウエイトタイマ7a,7bのタイマ設定時間ta,tbをマイクロプロセッサ1a,1bから設定できるようにしたものである。
【0050】
即ち、調停回路2において、ウエイト信号WAIT−A,WAIT−Bから所定時間以上アクセス待ち状態が継続したことを検出すると、タイマ信号TIME−A、TIME−Bを出力するウエイトタイマ7a,7bにおけるタイマ設定時間ta,tbを個別に設定できるようにしている。
【0051】
これにより、マイクロプロセッサ1a,1bの優先度に応じてタイマ設定時間ta,tbが当該マイクロプロセッサ1a,1bから設定でき、マイクロプロセッサ1a,1bの演算性能低下が抑制されると共に、割込処理などの緊急処理についても所定時間以内に応答することができるようになる。
【0052】
次に、本発明の第4の実施の形態を図を参照して説明する。なお、上述した実施の形態と同一構成に関しては同一符号を用い説明を適宜省略する。
【0053】
図6は、本実施の形態の説明に適用されるマルチポートメモリの概略構成を示すブロック図で、図1に示す調停回路2におけるウエイトタイマ7a,7bの代わりにウエイト信号WAIT−A,WAIT−Bから一定回数以上の読出信号RD又は書込信号WR、即ちアクセス待ち状態での一定回数以上のアクセス回数があったことを検出しカウント信号CNT−A,CNT−Bを出力する複数のウエイトカウンタ8a、8bを設けた点が異なっている。
【0054】
これにより、複数のマイクロプロセッサ1a,1bから同時にアクセスが発生しても一定アクセス回数でアクセス権を切替ることが可能になる。
【0055】
図7は、このような構成のタイミングチャートで、マイクロプロセッサ1aがアクセス中にマイクロプロセッサ1bのアクセス信号CS−Bが入ると、アクセス権判定手段5はマイクロプロセッサ1bにB側のウエイト信号WAIT−Bを出力し、このウエイト信号WAIT−Bにより、マイクロプロセッサ1bはアクセス待ち状態となる。
【0056】
そして、マイクロプロセッサ1aのアクセスが連続し、B側ウエイトカウンタ8bのカウンタ設定回数nbを超えるとB側のカウント信号CNT−Bがアクセス権判定手段5に出力される。
【0057】
アクセス権判定手段5は、B側のカウント信号CNT−Bを検出すると、マイクロプロセッサ1aからの読出信号RD−A又は書込信号WR−Aが一旦終了した時点で、切替信号SELをA側からB側に変化させる。
【0058】
切替手段6は、切替信号SELがA側からB側に変化したことにより、読出信号RD、書込信号WR、アドレス信号ADRS、データ信号DATAを、読出信号RD−Aから読出信号RD−Bに、書込信号WR−Bから書込信号WR−Bに、アドレス信号ADRS−Aからアドレス信号ADRS−Bに、データ信号DATA−Aからデータ信号DATA−Bにそれぞれ切替る。
【0059】
同様にマイクロプロセッサ1bがアクセス中にマイクロプロセッサ1aのアクセス信号CS−Aが入るとアクセス権判定手段5は、マイクロプロセッサ1aにウエイト信号WAIT−Aを返す。
【0060】
ウエイト信号WAIT−Aが有効となると、マイクロプロセッサ1aは、アクセス待ち状態となる。
【0061】
そして、マイクロプロセッサ1bのアクセスが連続し、ウエイトカウンタ8aのカウンタ設定回数naを超えるとカウント信号CNT−Aがアクセス権判定手段5に出力される。
【0062】
アクセス権判定手段5では、カウント信号CNT−Aを検出すると、マイクロプロセッサ1bからの読出信号RD−B又は書込信号WR−Bが一旦終了した時点で、切替信号SELをB側からA側に変化させる。
【0063】
切替手段6は、切替信号SELがB側からA側に変化したことにより、読出信号RD、書込信号WR、アドレス信号ADRS、データ信号DATAを、読出信号RD−Bから読出信号RD−Aに、書込信号WR−Bから書込信号WR−Aに、アドレス信号ADRS−Bからアドレス信号ADRS−Aに、データ信号DATA−Bからデータ信号DATA−Aにそれぞれ切替る。
【0064】
このように、マイクロプロセッサ1a又はマイクロプロセッサ1bのアクセスが連続した場合において、ウエイトカウンタ8a、8bが一定アクセス回数継続したことを検出し、カウント信号CNT−A、CNT−Bをアクセス権判定手段5に出力し、アクセス権判定手段5において切替信号SELをウエイト信号WAIT−A,WAIT−Bの出ていた側に切替るため、マイクロプロセッサ1a,1bのアクセス待ち状態が所定時間以上にならないようになり、マイクロプロセッサ1a,1bの演算性能が低下することを抑制すること、割込処理などの緊急処理についても所定時間以内に応答することができるようになる。
【0065】
また、ウエイトカウンタのカウント設定値na、nbを予め優先度に応じて設定することができることにより演算性能を向上させることができるようになる。
【0066】
なお、ウエイトカウンタのカウント設定na、nbをマイクロプロセッサ1a,1b毎に個別に設定することも可能である。
【0067】
次に、本発明の第5の実施の形態を図を参照して説明する。なお、上述した実施の形態と同一構成に関しては同一符号を用い説明を適宜省略する。
【0068】
図8は、本実施の形態の説明に適用されるマルチポートメモリの概略構成を示すブロック図で、図6に示す構成に対し、ウエイトカウンタ8bを省略した構成となっている。
【0069】
これにより、ウエイト信号WAIT−Aから所定時間以上アクセス待ち状態が継続したことを検出しカウント信号CNT−Aを出力するウエイトカウンタ8aにより、複数のマイクロプロセッサ1a,1bから同時にアクセスが発生してもマイクロプロセッサ1aのアクセス権が所定時間以内で取得可能な構成となっている。
【0070】
図9は、このような構成のタイミングチャートで、マイクロプロセッサ1bのアクセスが連続した場合に、ウエイトカウンタ8aのカウント設定値naを超えるとカウント信号CNT−Aがアクセス権判定手段5に出力される。
【0071】
アクセス権判定手段5は、カウント信号CNT−Aを検出すると、マイクロプロセッサ1bからの読出信号RD−B又は書込信号WR−Bが一旦終了した時点で、切替信号SELをB側からA側に変化させる。
【0072】
切替手段6は、切替信号SELがB側からA側に変化したことにより、読出信号RD、書込信号WR、アドレス信号ADRS、データ信号DATAを、読出信号RD−Bから読出信号RD−Aに、書込信号WR−Bから書込信号WR−Aに、アドレス信号ADRS−BからA側のアドレス信号ADRS−A、データ信号DATA−Bからデータ信号DATA−Aにそれぞれ切替る。
【0073】
同様に、マイクロプロセッサ1bがアクセスを行うと、アクセス信号CS−Bがアクセス権判定手段5に出力される。
【0074】
アクセス権判定手段5では、マイクロプロセッサ1aからの読出信号RD−A又は書込信号WR−Aが一旦終了した時点で、切替信号SELをA側からB側に切替える。
【0075】
このようにマイクロプロセッサ1bのアクセスが連続した場合に、ウエイトカウンタ8aがカウント設定値na以上アクセスが継続したことを検出し、カウント信号CNT−Aをアクセス権判定手段5に出力し、アクセス権判定手段5がアクセス権をA側に切替るため、マイクロプロセッサ1aのアクセス待ち状態が所定時間以上にならないようにすることが可能になる。
【0076】
従って、マイクロプロセッサ1aの演算性能が低下することを抑制すること、割込処理などの緊急処理についても所定時間以内に応答することにより演算性能を向上させることができる。
【0077】
次に、本発明の第6の実施の形態を図を参照して説明する。なお、上述した実施の形態と同一構成に関しては同一符号を用い説明を適宜省略する。
【0078】
図10は、本実施の形態の説明に適用されるマルチポートメモリの概略構成を示すブロック図で、図6に示す調停回路2において、ウエイトカウンタ8a,8bのカウント設定値na,nbを設定できるようにしたものである。
【0079】
即ち、ウエイト信号WAIT−A,WAIT−Bから一定回数以上継続してアクセスがあったことを検出しカウント信号CNT−A、CNT−Bを出力するウエイトカウンタ8a,8bにおいて、カウント設定値na,nbを可変できるようにし、マイクロプロセッサ1a,1bの優先度に応じて動的にカウント設定値na,nbをマイクロプロセッサ1a,1bから設定することができるようになっている。
【0080】
これにより、第4実施の形態と同様に、マイクロプロセッサ1a,1bのアクセス待ち状態が所定時間以上にならないようにすることが可能となり、ウエイトカウンタ8a、8bのカウント設定値na、nbを個別に設定することも可能となって、演算性能を向上させることができる。
【0081】
【発明の効果】
以上説明したように、本発明によれば、調停回路が、ウエイト信号から所定時間以上アクセス待ち状態が継続したことを検出するとタイマ信号又はカウント信号を出力するウエイトタイマ又はウエイトカウンタと、複数のマイクロプロセッサからのアクセス信号が競合した場合には、タイマ信号又はカウント信号に基づき一方のマイクロプロセッサがマルチポートメモリにアクセスできるように切替信号を出力すると共に他のマイクロプロセッサに対してはアクセス待ち示すウエイト信号を出力するアクセス権判定手段と、切替信号に基いて該当するマイクロプロセッサからの信号を切替えてシングルポートメモリに出力してアクセス可能にする切替手段とを設けたので、一方のマイクロプロセッサのアクセス待ち状態が所定時間以上にならないようにすることができ、当該マイクロプロセッサの演算性能が低下することが抑制できるようになる。
【図面の簡単な説明】
【図1】本発明の第1の形態を示すマルチポートメモリの構成図である。
【図2】本発明の第1の形態にかかるマルチポートメモリのタイミングチャートである。
【図3】本発明の第2の形態にかかるマルチポートメモリの構成図である。
【図4】本発明の第2の形態にかかるマルチポートメモリのタイミングチャートである。
【図5】本発明の第3の形態にかかるマルチポートメモリの構成図である。
【図6】本発明の第4の形態にかかるマルチポートメモリの構成図である。
【図7】本発明の第4の形態にかかるマルチポートメモリのタイミングチャートである。
【図8】本発明の第5の形態にかかるマルチポートメモリの構成図である。
【図9】本発明の第5の形態にかかるマルチポートメモリのタイミングチャートである。
【図10】本発明の第6の形態にかかるマルチポートメモリの構成図である。
【図11】従来のマルチポートメモリの構成図である。
【図12】従来のマルチポートメモリのタイミングチャートである。
【符号の説明】
1a,1b マイクロプロセッサ
2 調停回路
3 シングルポートメモリ
4 マルチポートメモリ
5 アクセス権判定手段
6 切替手段
7a,7b ウエイトタイマ
8a、8b ウエイトカウンタ[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a multiport memory that can be accessed by a plurality of microprocessors.
[0002]
[Prior art]
Today, memory may be shared by multiple microprocessors, in which case multiport memory may be used. This multi-port memory is provided with an arbitration circuit, so that the arbitration circuit arbitrates access from each microprocessor on a first-come-first-served basis (see Patent Document 1).
[0003]
A conventional configuration of such a multi-port memory will be described with reference to FIG.
[0004]
The
[0005]
The
[0006]
The access right determination means 5 determines an access right based on the access signals CS-A and CS-B from the
[0007]
The switching means 6 switches the signal from the
[0008]
Signals from the
[0009]
FIG. 12 is a timing chart of such a
[0010]
[Patent Document 1]
JP 2000-57775 A
[0011]
[Problems to be solved by the invention]
However, in the
[0012]
That is, for example, while the
[0013]
Further, if the
[0014]
Further, even when the
[0015]
SUMMARY OF THE INVENTION An object of the present invention is to provide a multi-port memory capable of suppressing a decrease in the calculation performance of a microprocessor and shortening a response time in an emergency and enabling efficient memory access.
[0016]
[Means for Solving the Problems]
In order to solve the above problems, the present invention provides: When access competition by a plurality of microprocessors occurs in a single port memory and the single port memory, access is permitted to one of the microprocessors, and a wait signal is sent to the other microprocessor. In a multi-port memory having an arbitration circuit that arbitrates access by outputting and waiting for access, The arbitration circuit counts the output duration time of the wait signal to the other microprocessor, and when the time reaches the predetermined time, a wait timer that outputs a timer signal; The microprocessor access is Once finished Later, an access right determination means for outputting a switching signal so that the other microprocessor can access the multi-port memory, and the corresponding microprocessor can access the single-port memory based on the switching signal. Switching means for switching as described above.
[0017]
According to this configuration, when one microprocessor accesses continuously, the wait timer detects that the access wait state has continued for a predetermined time or more, and outputs a timer signal to the access right determination means to determine the access right. Since the access right is switched to the side from which the wait signal is output in the means, the access waiting state of the other microprocessor can be prevented from exceeding a predetermined time.
[0018]
Thereby, it is possible to suppress a reduction in the calculation performance of the microprocessor, and to respond to an emergency process such as an interrupt process within a predetermined time.
[0019]
According to another aspect of the present invention, when access conflict between a single port memory and a plurality of microprocessors occurs in the single port memory, access is permitted to one of the microprocessors, and the other microprocessor is In the multi-port memory having an arbitration circuit that arbitrates access by outputting a wait signal and waiting for access, the arbitration circuit includes the wait signal for the other microprocessor and the one of the microprocessors. Detect a read signal or write signal from the processor, Regardless of the number of detection matches, A wait counter that outputs a count signal when the number of detection times reaches a predetermined number, and upon receipt of the count signal, once access to one of the microprocessors is completed, the other microprocessor accesses the multiport memory. Access right determination means for outputting a switching signal so that access is possible, and switching means for switching so that the corresponding microprocessor can access the single port memory based on the switching signal.
[0020]
According to this configuration, when one microprocessor accesses continuously, the wait counter detects that the access waiting state has continued for a predetermined time or more, and outputs a count signal to the access right determination means to determine the access right. Since the access right is switched to the side from which the wait signal is output, the access waiting state of the other processor can be prevented from exceeding the predetermined number of accesses. Also, the setting of the weight counter can be set for each processor.
[0021]
Thereby, it is possible to suppress a reduction in the calculation performance of the microprocessor, and to respond to an emergency process such as an interrupt process within a predetermined time. In addition, since the number of accesses in the wait counter can be set variably, the calculation performance can be improved by setting according to the priority of the microprocessor.
[0022]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described with reference to the drawings. In addition, about the same structure as the past, the same code | symbol is attached | subjected and description is abbreviate | omitted suitably.
[0023]
FIG. 1 is a block diagram showing a schematic configuration of a
[0024]
The
[0025]
The access right determination means 5 determines an access right based on the access signals CS-A and CS-B from the
[0026]
The switching means 6 is based on the switching signal SEL and receives address signals ADRS-A and ADRS-B, data signals DATA-A and DATA-B, write signals WR-A and WR-B, and reads from the
[0027]
The wait timers 7a and 7b output timer signals TIME-A and TIME-B when detecting that the access wait state has continued for a predetermined time or more from the wait signals WAIT-A and WAIT-B.
[0028]
FIG. 2 is a timing chart of such a configuration. When the
[0029]
When the
[0030]
When the access right determination means 5 detects the timer signal TIME-B, the switching signal SEL is changed from the A side to the B side when the read signal RD-A or the write signal WR-A from the
[0031]
The switching means 6 switches the read signal RD, the write signal WR, the address signal ADRS, and the data signal DATA from the read signal RD-A to the read signal RD-B when the switch signal SEL is switched from the A side to the B side. Further, the write signal WR-A is switched to the write signal WR-B, the address signal ADRS-A is switched to the address signal ADRS-B, and the data signal DATA-A is switched to the data signal DATA-B.
[0032]
Similarly, when the access signal CS-A of the
[0033]
When the access of the
[0034]
When the access right determination means 5 detects the timer signal TIME-A, the switching signal SEL is changed from the B side to the A side when the read signal RD-B or the write signal WR-B from the
[0035]
The switching means 6 changes the read signal RD, the write signal WR, the address signal ADRS, and the data signal DATA from the read signal RD-B to the read signal RD-A because the switch signal SEL changes from the B side to the A side. The write signal WR-B is switched to the write signal WR-A, the address signal ADRS-B is switched to the address signal ADRS-A, and the data signal DATA-B is switched to the data signal DATA-A.
[0036]
With the configuration described above, the access waiting state of the
[0037]
Note that the timer setting times ta and tb of the wait timer can be set individually for each microprocessor. In this case, the timer setting times ta and tb of the wait timer can be set in advance according to the priority. Calculation performance can be improved.
[0038]
Next, a second embodiment of the present invention will be described with reference to the drawings. Note that the same components as those in the above-described embodiment are denoted by the same reference numerals and description thereof is omitted as appropriate.
[0039]
FIG. 3 is a block diagram showing a schematic configuration of a multi-port memory applied to the description of the present embodiment, which is basically the same as the configuration shown in FIG. 1, but omits the wait timer 7b in FIG. The point which I did is greatly different.
[0040]
In other words, the
[0041]
FIG. 4 is a timing chart of such a configuration. When the
[0042]
When the access right determination means 5 detects the timer signal WAIT-A, the switching signal SEL is changed from the B side to the A side when the read signal RD-B or the write signal WR-B from the
[0043]
The switching means 6 changes the read signal RD, the write signal WR, the address signal ADRS, and the data signal DATA from the B side read signal RD-B to the A side read signal when the switch signal SEL changes from the B side to the A side. RD-A, B-side write signal WR-B to A-side write signal WR-A, B-side address signal ADRS-B to A-side address signal ADRS-A, B-side data signal DATA-B to A Each is switched to the side data signal DATA-A.
[0044]
Similarly, when the
[0045]
The access right determining
[0046]
As described above, when the access of the
[0047]
Therefore, it is possible to suppress a decrease in the calculation performance of the
[0048]
Next, a third embodiment of the present invention will be described with reference to the drawings. Note that the same components as those in the above-described embodiment are denoted by the same reference numerals and description thereof is omitted as appropriate.
[0049]
FIG. 5 is a block diagram showing a schematic configuration of a multi-port memory applied to the description of the present embodiment, which is basically the same as the configuration shown in FIG. 1, but the wait timers 7a and 7b in FIG. The timer setting times ta and tb can be set from the
[0050]
That is, when the
[0051]
As a result, the timer setting times ta and tb can be set from the
[0052]
Next, a fourth embodiment of the present invention will be described with reference to the drawings. Note that the same components as those in the above-described embodiment are denoted by the same reference numerals and description thereof is omitted as appropriate.
[0053]
FIG. 6 is a block diagram showing a schematic configuration of a multiport memory applied to the description of the present embodiment. Wait signals WAIT-A and WAIT- are used in place of the wait timers 7a and 7b in the
[0054]
This makes it possible to switch the access right with a certain number of accesses even when accesses are made simultaneously from the plurality of
[0055]
FIG. 7 is a timing chart of such a configuration. When the access signal CS-B of the
[0056]
When the
[0057]
When the access right determination means 5 detects the count signal CNT-B on the B side, when the read signal RD-A or the write signal WR-A from the
[0058]
The switching means 6 changes the read signal RD, the write signal WR, the address signal ADRS, and the data signal DATA from the read signal RD-A to the read signal RD-B by changing the switching signal SEL from the A side to the B side. The write signal WR-B is switched to the write signal WR-B, the address signal ADRS-A is switched to the address signal ADRS-B, and the data signal DATA-A is switched to the data signal DATA-B.
[0059]
Similarly, when the access signal CS-A of the
[0060]
When the wait signal WAIT-A becomes valid, the
[0061]
When the
[0062]
When the access right determination means 5 detects the count signal CNT-A, the switching signal SEL is changed from the B side to the A side when the read signal RD-B or the write signal WR-B from the
[0063]
The switching means 6 changes the read signal RD, the write signal WR, the address signal ADRS, and the data signal DATA from the read signal RD-B to the read signal RD-A due to the change of the switch signal SEL from the B side to the A side. The write signal WR-B is switched to the write signal WR-A, the address signal ADRS-B is switched to the address signal ADRS-A, and the data signal DATA-B is switched to the data signal DATA-A.
[0064]
In this manner, when the accesses of the
[0065]
Further, the count setting values na and nb of the wait counter can be set in advance according to the priority, so that the calculation performance can be improved.
[0066]
It should be noted that the count settings na and nb of the wait counter can be set individually for each of the
[0067]
Next, a fifth embodiment of the present invention will be described with reference to the drawings. Note that the same components as those in the above-described embodiment are denoted by the same reference numerals and description thereof is omitted as appropriate.
[0068]
FIG. 8 is a block diagram showing a schematic configuration of a multi-port memory applied to the description of the present embodiment. In this configuration, the
[0069]
Thus, even if access is simultaneously generated from the plurality of
[0070]
FIG. 9 is a timing chart of such a configuration. When the
[0071]
When the access right determination means 5 detects the count signal CNT-A, when the read signal RD-B or write signal WR-B from the
[0072]
The switching means 6 changes the read signal RD, the write signal WR, the address signal ADRS, and the data signal DATA from the read signal RD-B to the read signal RD-A due to the change of the switch signal SEL from the B side to the A side. The write signal WR-B is switched to the write signal WR-A, the address signal ADRS-B is switched to the A-side address signal ADRS-A, and the data signal DATA-B is switched to the data signal DATA-A.
[0073]
Similarly, when the
[0074]
The access right determining
[0075]
In this way, when the access of the
[0076]
Accordingly, it is possible to improve the computing performance by suppressing the computing performance of the
[0077]
Next, a sixth embodiment of the present invention will be described with reference to the drawings. Note that the same components as those in the above-described embodiment are denoted by the same reference numerals and description thereof is omitted as appropriate.
[0078]
FIG. 10 is a block diagram showing a schematic configuration of a multiport memory applied to the description of the present embodiment. In the
[0079]
That is, in the wait counters 8a and 8b, which detect that there has been an access from the wait signals WAIT-A and WAIT-B for a certain number of times and output the count signals CNT-A and CNT-B, nb can be varied, and the count setting values na and nb can be dynamically set from the
[0080]
As a result, as in the fourth embodiment, it becomes possible to prevent the
[0081]
【The invention's effect】
As described above, according to the present invention, when the arbitration circuit detects that the access waiting state has continued for a predetermined time or more from the wait signal, it outputs a timer signal or a count signal, When the access signals from the processors compete, a switching signal is output so that one microprocessor can access the multi-port memory based on the timer signal or the count signal, and the other microprocessor waits for access. Since there is provided an access right judging means for outputting a signal and a switching means for switching the signal from the corresponding microprocessor based on the switching signal and outputting it to the single-port memory so that it can be accessed. If the waiting state is longer than the specified time Can be odd, operation performance of the microprocessor will be able suppressed from being lowered.
[Brief description of the drawings]
FIG. 1 is a configuration diagram of a multiport memory according to a first embodiment of the present invention.
FIG. 2 is a timing chart of the multiport memory according to the first embodiment of the present invention.
FIG. 3 is a configuration diagram of a multiport memory according to a second embodiment of the present invention.
FIG. 4 is a timing chart of the multi-port memory according to the second embodiment of the present invention.
FIG. 5 is a configuration diagram of a multiport memory according to a third embodiment of the present invention.
FIG. 6 is a configuration diagram of a multi-port memory according to a fourth embodiment of the present invention.
FIG. 7 is a timing chart of the multi-port memory according to the fourth embodiment of the present invention.
FIG. 8 is a configuration diagram of a multiport memory according to a fifth embodiment of the present invention.
FIG. 9 is a timing chart of the multiport memory according to the fifth embodiment of the present invention.
FIG. 10 is a configuration diagram of a multi-port memory according to a sixth embodiment of the present invention.
FIG. 11 is a configuration diagram of a conventional multi-port memory.
FIG. 12 is a timing chart of a conventional multiport memory.
[Explanation of symbols]
1a, 1b microprocessor
2 Arbitration circuit
3 Single port memory
4 Multiport memory
5 Access right judgment means
6 Switching means
7a, 7b Wait timer
8a, 8b Weight counter
Claims (6)
前記調停回路が、他方の前記マイクロプロセッサに対する前記ウエイト信号の出力継続時間を計時して、当該計時した時間が所定時間に達するとタイマ信号を出力するウエイトタイマと、
前記タイマ信号を受信すると、一方の前記マイクロプロセッサのアクセスが一旦終了した後に、他方の前記マイクロプロセッサによる前記マルチポートメモリへのアクセスができるように切替信号を出力するアクセス権判定手段と、
前記切替信号に基づいて、該当する前記マイクロプロセッサが前記シングルポートメモリにアクセスできるように切替える切替手段とを有することを特徴とするマルチポートメモリ。When an access conflict between a single port memory and a plurality of microprocessors occurs in the single port memory, access is permitted to one of the microprocessors, and a wait signal is sent to the other microprocessor. In a multi-port memory having an arbitration circuit that arbitrates access by outputting and waiting for access,
The arbitration circuit counts the output duration time of the wait signal to the other microprocessor, and a wait timer that outputs a timer signal when the counted time reaches a predetermined time;
When the timer signal is received, access right determination means for outputting a switching signal so that the access to the multi-port memory by the other microprocessor can be performed after the access of the one microprocessor is once completed,
A multi-port memory comprising switching means for switching so that the corresponding microprocessor can access the single-port memory based on the switching signal.
前記調停回路が、他方の前記マイクロプロセッサに対する前記ウエイト信号と一方の前記マイクロプロセッサからの読出し信号又は書込み信号を検出して、当該検出回数の一致不一致に関わらず、当該検出回数が所定回数に達するとカウント信号を出力するウエイトカウンタと、
前記カウント信号を受信すると、一方の前記マイクロプロセッサのアクセスが一旦終了した後に、他方の前記マイクロプロセッサによる前記マルチポートメモリへのアクセスができるように切替信号を出力するアクセス権判定手段と、
前記切替信号に基づいて、該当する前記マイクロプロセッサが前記シングルポートメモリにアクセスできるように切替える切替手段とを有することを特徴とするマルチポートメモリ。When an access conflict between a single port memory and a plurality of microprocessors occurs in the single port memory, access is permitted to one of the microprocessors, and a wait signal is sent to the other microprocessor. In a multi-port memory having an arbitration circuit that arbitrates access by outputting and waiting for access,
The arbitration circuit detects the wait signal for the other microprocessor and the read signal or write signal from the one microprocessor, and the number of detections reaches a predetermined number regardless of the coincidence or mismatch of the number of detections. Then, a wait counter that outputs a count signal,
When the count signal is received, access right determination means for outputting a switching signal so that the access to the multi-port memory by the other microprocessor can be performed after the access of the one microprocessor is once completed,
A multi-port memory comprising switching means for switching so that the corresponding microprocessor can access the single-port memory based on the switching signal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003126229A JP4413524B2 (en) | 2003-05-01 | 2003-05-01 | Multiport memory |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003126229A JP4413524B2 (en) | 2003-05-01 | 2003-05-01 | Multiport memory |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2004334361A JP2004334361A (en) | 2004-11-25 |
| JP4413524B2 true JP4413524B2 (en) | 2010-02-10 |
Family
ID=33503222
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2003126229A Expired - Lifetime JP4413524B2 (en) | 2003-05-01 | 2003-05-01 | Multiport memory |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4413524B2 (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7765250B2 (en) | 2004-11-15 | 2010-07-27 | Renesas Technology Corp. | Data processor with internal memory structure for processing stream data |
| JP2007004338A (en) * | 2005-06-22 | 2007-01-11 | Renesas Technology Corp | Data processor |
| WO2008038372A1 (en) * | 2006-09-28 | 2008-04-03 | Fujitsu Microelectronics Limited | Shared memory circuit and access control method |
| WO2009147744A1 (en) * | 2008-06-06 | 2009-12-10 | 三菱電機株式会社 | Bus arbiter |
| US8699277B2 (en) * | 2011-11-16 | 2014-04-15 | Qualcomm Incorporated | Memory configured to provide simultaneous read/write access to multiple banks |
-
2003
- 2003-05-01 JP JP2003126229A patent/JP4413524B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JP2004334361A (en) | 2004-11-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0382469B1 (en) | Arbitration of bus access in digital computers | |
| US9262356B2 (en) | Arbiter device and arbitration method | |
| US8046505B2 (en) | Systems for implementing SDRAM controllers, and buses adapted to include advanced high performance bus features | |
| CN109308220B (en) | Shared resource allocation method and device | |
| KR101624153B1 (en) | Data space arbiter | |
| US7539806B2 (en) | Arbitrator and its arbitration method | |
| US5640519A (en) | Method and apparatus to improve latency experienced by an agent under a round robin arbitration scheme | |
| JP4413524B2 (en) | Multiport memory | |
| JP2008021298A (en) | Method and system for providing low latency and scalable interrupt collection | |
| US7490219B2 (en) | Counter counts valid requests based on a judgment in a system having a plurality of pipeline processors | |
| JP2000298652A (en) | Multiprocessor | |
| JPH06161873A (en) | Hang-up processing method for multiple access points to main memory | |
| JP3357920B2 (en) | Bus control system and system | |
| KR100964154B1 (en) | How to control shared bank access of dual port memory and dual port memory | |
| JP3985085B2 (en) | DMA controller | |
| JP3956652B2 (en) | Processor system | |
| JPH0330175B2 (en) | ||
| US20140052941A1 (en) | Calculation processing device and control method for calculation processing device | |
| JP2000259548A (en) | Dma bus transfer system | |
| JPH07253915A (en) | Access control device having performance measurement function | |
| JP2848450B2 (en) | Bus arbitration method | |
| JP2004199374A (en) | Multiprocessor system and bus arbitration method | |
| JP2008217419A (en) | Interrupt controller that automatically changes the interrupt level | |
| JP2013073297A (en) | Interruption control circuit and interruption control method by time division system | |
| JP3082196B2 (en) | Error access processing method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20050314 |
|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20050325 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060222 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080425 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080513 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080711 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080909 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20081110 |
|
| 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: 20091027 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20091118 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121127 Year of fee payment: 3 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 4413524 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131127 Year of fee payment: 4 |
|
| EXPY | Cancellation because of completion of term |