JP2011018355A - Information processing apparatus and memory access arbitration method - Google Patents
Information processing apparatus and memory access arbitration method Download PDFInfo
- Publication number
- JP2011018355A JP2011018355A JP2010192319A JP2010192319A JP2011018355A JP 2011018355 A JP2011018355 A JP 2011018355A JP 2010192319 A JP2010192319 A JP 2010192319A JP 2010192319 A JP2010192319 A JP 2010192319A JP 2011018355 A JP2011018355 A JP 2011018355A
- Authority
- JP
- Japan
- Prior art keywords
- access
- processor
- memory
- output
- clock
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Images
Landscapes
- Bus Control (AREA)
Abstract
Description
本発明は、プロセッサに内蔵されるメモリ装置に対し、外部から高速で書き込みまたは読み出しが可能な外部入出力機構を備えた情報処理装置およびそのメモリ装置に対するアクセスが競合した場合のメモリアクセス調停方法に関するものである。 The present invention relates to an information processing apparatus having an external input / output mechanism capable of high-speed writing or reading from the outside with respect to a memory device incorporated in a processor, and a memory access arbitration method when access to the memory device competes. Is.
従来、一つのメモリ装置に対して、複数の制御装置から書き込み、読み出しを実現する場合、デュアルポートメモリを使用するのがもっとも容易な実現方法であった。しかし、近年LSI市場がシステムLSI重視へと移行し、回路規模が増大しているため、大きなチップ面積を占有するデュアルポートメモリは、大容量のメモリを必要とするシステムLSIにおいては、コストの観点から不利となる。そこで、チップ面積を削減するためシングルポートメモリを使用することが考えられるが、複数の制御装置からアクセスする場合のタイミングによっては、アクセスの競合が発生するため、アクセスの調停をおこなう必要がある。 Conventionally, when writing to and reading from a plurality of control devices with respect to one memory device, it has been the easiest implementation method to use a dual port memory. However, since the LSI market has recently shifted to emphasis on system LSIs and the circuit scale has increased, dual-port memory that occupies a large chip area is a cost viewpoint in system LSIs that require large-capacity memories. Is disadvantageous. In order to reduce the chip area, it is conceivable to use a single-port memory. However, depending on the timing when accessing from a plurality of control devices, access contention occurs, so it is necessary to arbitrate access.
複数の制御装置からのアクセスの調停方法として、従来の方法は以下のようにしてアクセスを調停する。第1の制御装置がメモリへアクセス中に、第1の制御装置よりも優先度の高い第2の制御装置からのアクセスがあった場合、第1の制御装置のメモリへのアクセスが終了するまで第2の制御装置をウェイト(待機)させ、第1の制御装置のメモリへのアクセスが終了すると第2の制御装置のメモリへのアクセスを開始させる。また、第2の制御装置がメモリへのアクセスを実行中は第1の制御装置のメモリへのアクセスは一切禁止され、第2の制御装置が第1の制御装置に対して優先的にメモリにアクセスできるようにする(例えば特許文献1参照)。 As a method for arbitrating access from a plurality of control devices, the conventional method arbitrates access as follows. When there is an access from a second control device having a higher priority than the first control device while the first control device is accessing the memory, until the access to the memory of the first control device is completed The second control device waits (waits), and when the access to the memory of the first control device is completed, the access to the memory of the second control device is started. In addition, while the second control device is accessing the memory, access to the memory of the first control device is completely prohibited, and the second control device preferentially uses the memory as the first control device. It can be accessed (see, for example, Patent Document 1).
すなわち、最初にアクセスを行った方の制御装置がアクセス実行中は、後からアクセスを行った制御装置は、最初にアクセスを行った制御装置のアクセスが終了するまでメモリへアクセスすることができない。 In other words, while the control device that has performed the access first is executing the access, the control device that has performed the access later cannot access the memory until the access of the control device that has performed the access first is completed.
しかしながら、複数の制御装置のどちらかの制御装置からのアクセスを優先したい場合が考えられる。例えばプロセッサ内蔵メモリへの外部入出力機構を介した外部プロセッサからのアクセスを考えた場合、外部プロセッサからのプロセッサ内蔵メモリへのアクセスは長時間のアクセスとはならないが、外部プロセッサが高速動作を必要とするため、常に外部プロセッサからのアクセスを優先したいという要望がある。 However, there may be a case where priority is given to access from one of a plurality of control devices. For example, when considering access from an external processor via an external input / output mechanism to the processor's internal memory, access from the external processor to the processor's internal memory does not take a long time, but the external processor needs to operate at high speed. Therefore, there is a demand to always give priority to access from an external processor.
このようなプロセッサ内蔵メモリに対して高速なアクセスを必要とする外部入出力機構を備えたプロセッサに上記の手法を適用すると、プロセッサコアがメモリにアクセスしている間に外部入出力機構からメモリへアクセスが発生した場合、外部入出力機構はプロセッサコアのアクセスが終了するまでウェイトがかけられ、外部入出力機構のアクセス速度が低下する。 When the above method is applied to a processor having an external input / output mechanism that requires high-speed access to such a processor built-in memory, the external input / output mechanism to the memory while the processor core is accessing the memory. When an access occurs, the external input / output mechanism waits until the access of the processor core is completed, and the access speed of the external input / output mechanism decreases.
すなわち、プロセッサのメモリへのアクセス状態によって外部入出力機構のアクセス速度が低下する場合が存在する。従って、この機構を外部プロセッサからプロセッサ内蔵メモリへの外部入出力機構を介したデータ授受などに応用した場合、外部アクセス速度の低下を招き、ひいては最終セットの動作速度の低下にもつながる。 That is, there is a case where the access speed of the external input / output mechanism decreases depending on the access state of the processor to the memory. Therefore, when this mechanism is applied to data transfer from an external processor to a processor built-in memory via an external input / output mechanism, the external access speed is lowered, and the operation speed of the final set is also lowered.
本発明は、上記従来の問題点を解決するもので、プロセッサがメモリに対していかなるアクセス状態にある場合にも、常に優先的でかつウェイトなしの高速アクセスが可能な外部入出力機構を実現する情報処理装置およびメモリアクセス調停方法を提供することを目的とする。 The present invention solves the above-described conventional problems, and realizes an external input / output mechanism that is always preferential and capable of high-speed access without a wait, regardless of the access state of the processor to the memory. An object is to provide an information processing apparatus and a memory access arbitration method.
本発明の情報処理装置は、データ記憶手段と、前記データ記憶手段に対してアクセスする第1と第2のデータ入出力手段と、前記第2のデータ入出力手段に供給されるノーマルクロック信号を生成するクロック発振部と、前記ノーマルクロック信号が有するサイクルの整数倍のサイクルを有するウェイトクロック信号を生成するクロックウェイト制御部とを備えるクロック生成手段と、前記第1のデータ入出力手段と前記第2のデータ入出力手段の前記データ記憶手段に対するアクセスを切替える制御信号セレクタ手段と、前記第1のデータ入出力手段と前記第2のデータ入出力手段の前記データ記憶手段に対するアクセスが競合した場合に、前記第2のデータ入出力手段に対する前記ノーマルクロック信号を1クロックサイクルの間前記クロック発振部に停止させ、前記第2のデータ入出力手段に対して前記ウェイトクロック信号を前記クロックウェイト制御部に供給させ、前記データ記憶手段に対するアクセスを1クロックサイクルの間前記第2のデータ入出力手段に不許可とし、前記1クロックサイクルの間前記第1のデータ入出力手段のアクセスを実行させ、前記1クロックサイクルの間の前記第1のデータ入出力手段のアクセス終了後に前記第2のデータ入出力手段のアクセスを開始させるアクセス調停手段と、を備えることを特徴とする。 The information processing apparatus according to the present invention includes a data storage means, first and second data input / output means for accessing the data storage means, and a normal clock signal supplied to the second data input / output means. A clock generation unit including a clock oscillation unit to generate, and a clock wait control unit to generate a wait clock signal having a cycle that is an integral multiple of the cycle of the normal clock signal; the first data input / output unit; Control data selector means for switching access to the data storage means of the second data input / output means, and access to the data storage means by the first data input / output means and the second data input / output means The normal clock signal for the second data input / output means is applied to the clock for one clock cycle. And the second data input / output unit supplies the wait clock signal to the clock wait control unit, and accesses the data storage unit for one clock cycle. The input / output means is disabled, the first data input / output means is accessed during the one clock cycle, and the second data is accessed after the access of the first data input / output means during the one clock cycle. Access arbitration means for starting access to the data input / output means.
上記構成によれば、データ記憶手段に対してアクセスする第1と第2のデータ入出力手段においてアクセス競合が発生した場合に、一方のデータ入出力手段のクロックをウェイトさせてアクセス調停を行うことにより、第1と第2のデータ入出力手段のどちらか一方から、常に優先的でかつウェイトなしの高速アクセスを実現することができる。 According to the above configuration, when access contention occurs in the first and second data input / output means accessing the data storage means, the access arbitration is performed by waiting the clock of one data input / output means. Thus, it is possible to realize high-speed access that always has priority and no wait from either one of the first and second data input / output means.
本発明の情報処理装置は、内蔵メモリと、前記内蔵メモリに格納されたデータを処理するプロセッサと、前記プロセッサに供給されるノーマルクロック信号を生成するクロック発振部と、前記ノーマルクロック信号が有するサイクルの整数倍のサイクルを有するウェイトクロック信号を生成するクロックウェイト制御部とを備えるクロック生成手段と、外部制御装置からの指示を受けて前記内蔵メモリへのアクセスを実行する入出力制御手段と、前記プロセッサと前記入出力制御手段の前記内蔵メモリへのアクセスが競合した場合に、前記ノーマルクロック信号を1クロックサイクルの間前記クロック発振部に停止させ、前記プロセッサに対して前記ウェイトクロック信号を前記クロックウェイト制御部に供給させ、前記入出力制御手段のアクセスを優先的に実行させるアクセス調停手段と、を備えることを特徴とする。 An information processing apparatus according to the present invention includes an internal memory, a processor that processes data stored in the internal memory, a clock oscillation unit that generates a normal clock signal supplied to the processor, and a cycle that the normal clock signal has A clock wait control unit that generates a wait clock signal having a cycle that is an integer multiple of the input, an input / output control unit that executes an access to the internal memory in response to an instruction from an external control device, When the access to the internal memory of the processor and the input / output control means competes, the normal clock signal is stopped by the clock oscillation unit for one clock cycle, and the wait clock signal is sent to the clock to the processor. The weight control unit supplies the signal to the input / output control means. Characterized in that it comprises an access arbitration unit for executing the processes preferentially, the.
上記構成によれば、内蔵メモリに対してアクセスするプロセッサと外部制御装置においてアクセス競合が発生した場合に、外部制御装置のアクセスを優先させてアクセス調停を行うことにより、外部制御装置から内蔵メモリへのデータ授受の速度を向上させることができる。 According to the above configuration, when an access conflict occurs between the processor accessing the internal memory and the external control device, the access control of the external control device is prioritized and access arbitration is performed, so that the external control device transfers to the internal memory. The speed of data exchange can be improved.
上記構成において、前記プロセッサと前記入出力制御手段の前記内蔵メモリへのアクセスを切替える選択手段をさらに備え、前記アクセス調停手段は、前記プロセッサの前記内蔵メモリへのアクセス中に前記入出力制御手段の前記内蔵メモリへのアクセス要求が発生すると、前記選択手段へ制御信号を出力し、前記制御信号を受けた前記選択手段は、前記プロセッサのアクセスを前記入出力制御手段の前記内蔵メモリへのアクセスに切替えることを特徴とする。 In the above configuration, the processor and the input / output control unit further include a selection unit that switches access to the built-in memory, and the access arbitration unit includes the input / output control unit during access to the built-in memory. When an access request to the built-in memory is generated, the control unit outputs a control signal to the selection unit, and the selection unit that receives the control signal changes the access of the processor to access to the built-in memory of the input / output control unit. It is characterized by switching.
上記構成によれば、プロセッサが内蔵メモリに対してアクセスする場合において、内蔵メモリに対して外部制御装置からデータを書き込みまたは読み出す際、プロセッサのアクセスを入出力制御手段のアクセスに切替えることにより、プロセッサに優先する外部制御装置の高速アクセスを実現することができる。 According to the above configuration, when the processor accesses the built-in memory, when data is written to or read from the external memory from the external control device, the processor access is switched to the input / output control unit access. It is possible to realize high-speed access of an external control device that has priority over the above.
上記構成において、前記プロセッサのウェイト動作前に前記内蔵メモリが出力していたリードデータを前記プロセッサのウェイト動作中に保持しておく保持手段をさらに備え、前記アクセス調停手段は、前記プロセッサへ供給するリードデータを、前記内蔵メモリが出力するリードデータと前記保持手段が保持しているリードデータとの間で切替えることを特徴とする。 In the above configuration, the memory device further comprises holding means for holding the read data output from the built-in memory before the wait operation of the processor during the wait operation of the processor, and the access arbitration means supplies the processor to the processor The read data is switched between the read data output from the built-in memory and the read data held by the holding means.
上記構成によれば、プロセッサがメモリに対して連続でアクセスする場合においても、内蔵メモリが出力するリードデータと保持手段が保持しているリードデータを切替えることにより、そのアクセス状態に依存することなく高速アクセスを実現することができる。 According to the above configuration, even when the processor continuously accesses the memory, the read data output from the built-in memory and the read data held by the holding means are switched, so that it does not depend on the access state. High-speed access can be realized.
本発明のメモリアクセス調停方法は、データ記憶手段と、前記データ記憶手段に対してアクセスする第1と第2のデータ入出力手段と、前記第2のデータ入出力手段に供給されるノーマルクロック信号を生成するクロック発振部と、前記ノーマルクロック信号が有するサイクルの整数倍のサイクルを有するウェイトクロック信号を生成するクロックウェイト制御部とを備えるクロック生成手段と、を含む情報処理装置のメモリアクセス調停方法であって、前記第1および第2のデータ入出力手段への前記ノーマルクロック信号を設けるステップと、前記第1のデータ入出力手段と前記第2のデータ入出力手段の前記データ記憶手段に対するアクセスが競合した場合に、前記第2のデータ入出力手段に対する前記ノーマルクロック信号を1クロックサイクルの間前記クロックウェイト信号に停止させ、前記データ記憶手段に対するアクセスを1クロックサイクルの間前記第2のデータ入出力手段に不許可とするクロックウェイト信号を設けるステップと、前記第2のデータ入出力手段より早く前記第1のデータ入出力手段のアクセスを実行するステップと、前記第1のデータ入出力手段のアクセス終了後に前記第2のデータ入出力手段の前記クロック信号の停止を解除し、前記第2のデータ入出力手段のアクセスを実行するステップと、を備えることを特徴とする。 The memory access arbitration method of the present invention comprises a data storage means, first and second data input / output means for accessing the data storage means, and a normal clock signal supplied to the second data input / output means. And a clock generation unit including a clock wait control unit that generates a wait clock signal having a cycle that is an integral multiple of a cycle of the normal clock signal. Providing the normal clock signal to the first and second data input / output means, and accessing the data storage means by the first data input / output means and the second data input / output means. The normal clock signal for the second data input / output means is 1 clock. Providing a clock wait signal for stopping the clock wait signal during a clock cycle and disabling access to the data storage means for the second data input / output means during one clock cycle; Executing the access of the first data input / output means earlier than the input / output means, and releasing the stop of the clock signal of the second data input / output means after the access of the first data input / output means is completed. And a step of executing access to the second data input / output means.
上記方法によれば、データ記憶手段に対してアクセスする第1と第2のデータ入出力手段においてアクセス競合が発生した場合に、一方のデータ入出力手段のクロックをウェイトさせてアクセス調停を行うことにより、第1と第2のデータ入出力手段のどちらか一方から、常に優先的でかつウェイトなしの高速アクセスを実現することができる。 According to the above method, when an access conflict occurs between the first and second data input / output means accessing the data storage means, the access arbitration is performed by waiting the clock of one data input / output means. Thus, it is possible to realize high-speed access that always has priority and no wait from either one of the first and second data input / output means.
本発明のメモリアクセス調停方法は、命令をパイプライン処理するプロセッサと、前記プロセッサに設けられるメモリと、前記メモリに対して前記プロセッサよりも高い優先度でアクセスを実行する入出力制御手段と、前記プロセッサおよび前記データ入出力手段に供給するノーマルクロック信号を生成するクロック発振部と、前記ノーマルクロック信号が有するサイクルの整数倍のサイクルを有するウェイトクロック信号を生成するクロックウェイト制御部とを備えたクロック生成手段と、を含む情報処理装置のメモリアクセス調停方法であって、前記プロセッサおよび前記データ入出力手段への前記ノーマルクロック信号を設けるステップと、前記プロセッサと前記入出力制御手段の前記メモリへのアクセスが競合した場合に、前記プロセッサに供給しているクロック信号を1クロックサイクルの間停止させるウェイト要求信号を発生するステップと、前記プロセッサと前記入出力制御手段の前記メモリへのアクセスが競合した場合に、前記プロセッサに対する前記ノーマルクロック信号を1クロックサイクルの間停止させるクロックウェイト信号設け、前記プロセッサの前記メモリへのアクセスを1クロックサイクルの間不許可とするステップと、前記プロセッサのアクセスを前記入出力制御手段の前記メモリへのアクセスに切替えるステップと、前記入出力制御手段の前記メモリへのアクセス終了後に前記プロセッサの前記ウェイト要求信号を解除し、前記プロセッサの前記メモリへのアクセスを実行するステップと、を含む。 The memory access arbitration method of the present invention includes a processor that pipelines an instruction, a memory provided in the processor, an input / output control unit that accesses the memory with higher priority than the processor, A clock including a clock oscillation unit that generates a normal clock signal to be supplied to the processor and the data input / output unit, and a clock wait control unit that generates a wait clock signal having a cycle that is an integral multiple of the cycle of the normal clock signal A memory access arbitration method for an information processing apparatus, comprising: a step of providing the normal clock signal to the processor and the data input / output unit; and the processor and the input / output control unit to the memory. If access conflicts, the pro Generating a wait request signal for stopping the clock signal supplied to the memory for one clock cycle, and when the processor and the input / output control means access to the memory competes, Providing a clock wait signal for stopping a normal clock signal for one clock cycle, disabling access to the memory by the processor for one clock cycle; and accessing the processor by the memory of the input / output control means Switching to access to the memory, and releasing the wait request signal of the processor after the access of the input / output control means to the memory is completed, and executing the access to the memory of the processor.
上記方法によれば、プロセッサが内蔵メモリに対してアクセスする場合において、内蔵メモリに対して外部からデータを書き込みまたは読み出す際、プロセッサのアクセスを入出力制御手段のアクセスに切替えることにより、プロセッサに優先する高速アクセスを実現することができる。また、プロセッサに対しては、外部入出力手段とのアクセスが競合した場合に、1パイプラインステージウェイトするだけでアクセス再開が可能な高速アクセスを実現することができる。 According to the above method, when the processor accesses the internal memory, when data is written to or read from the external to the internal memory, the processor access is switched to the input / output control means to give priority to the processor. High speed access can be realized. In addition, when access to the external input / output means competes with the processor, it is possible to realize high-speed access that can resume access only by waiting for one pipeline stage.
本発明のメモリアクセス調停方法は、命令をパイプライン処理するプロセッサと、前記プロセッサに設けられるメモリと、前記メモリに対して前記プロセッサよりも高い優先度でアクセスを実行する入出力制御手段と、前記プロセッサおよび前記データ入出力手段に供給するノーマルクロック信号を生成するクロック発振部と、前記ノーマルクロック信号が有するサイクルの整数倍のサイクルを有するウェイトクロック信号を生成するクロックウェイト制御部とを備えたクロック生成手段と、前記プロセッサのウェイト動作前に前記メモリが出力していたリードデータを前記プロセッサのウェイト動作中に保持しておく保持手段と、を含む情報処理装置のメモリアクセス調停方法であって、前記プロセッサおよび前記データ入出力手段への前記ノーマルクロック信号を設けるステップと、前記プロセッサが前記メモリに対して連続リードアクセスしている期間に前記入出力制御手段のリードアクセスが競合した場合に、前記プロセッサのウェイト動作前に前記メモリが出力していたリードデータを保持するステップと、前記プロセッサに対する前記ノーマルクロックを停止させる前記クロックウェイト信号設けるステップと、前記入出力制御手段の前記メモリへのアクセスを実行するステップと、前記入出力制御手段の前記メモリへのアクセス終了後に前記プロセッサのクロック信号の停止を解除し、前記保持手段に保持しているデータを前記プロセッサへ供給し、前記メモリへの前記プロセッサのアクセスを再開するステップと、を含む。 The memory access arbitration method of the present invention includes a processor that pipelines an instruction, a memory provided in the processor, an input / output control unit that accesses the memory with higher priority than the processor, A clock including a clock oscillation unit that generates a normal clock signal to be supplied to the processor and the data input / output unit, and a clock wait control unit that generates a wait clock signal having a cycle that is an integral multiple of the cycle of the normal clock signal A memory access arbitration method for an information processing apparatus, comprising: generating means; and holding means for holding read data output from the memory before the wait operation of the processor during the wait operation of the processor, Before the processor and the data input / output means When the read access of the input / output control means competes during the period in which the normal clock signal is provided and the processor has continuous read access to the memory, the memory outputs before the wait operation of the processor. Holding the read data, providing the clock wait signal for stopping the normal clock for the processor, executing the access of the input / output control means to the memory, and Releasing the stop of the clock signal of the processor after the access to the memory is completed, supplying the data held in the holding means to the processor, and resuming the access of the processor to the memory. .
上記方法によれば、プロセッサがメモリに対して連続でアクセスする場合においても、保持手段に保持しているデータをプロセッサへ供給し、メモリへのプロセッサのアクセスを再開することにより、そのアクセス状態に依存することなく高速アクセスを実現することができる。 According to the above method, even when the processor continuously accesses the memory, the data held in the holding means is supplied to the processor, and the access of the processor to the memory is resumed. High-speed access can be realized without dependence.
本発明によれば、データ記憶手段に対してアクセスする2つのデータ入出力手段においてアクセス競合が発生した場合に、一方のデータ入出力手段のクロックをウェイトさせるだけでアクセス調停を実施するアクセス調停回路を小規模な回路で実現することができる。 According to the present invention, when an access conflict occurs in two data input / output means accessing the data storage means, the access arbitration circuit performs access arbitration only by waiting for the clock of one data input / output means. Can be realized with a small circuit.
本発明によれば、プロセッサが内蔵メモリに対して単発でアクセスする場合において、プロセッサ内蔵のメモリに対して外部からデータを書き込みまたは読み出す際、プロセッサに対して優先で、ウェイトすることのない高速アクセスを、プロセッサに供給するクロックをウェイトする回路を追加するだけの小規模な回路で実現することができる。さらにプロセッサに対しては、外部入出力手段とのアクセスが競合した場合に1パイプラインステージウェイトするだけでアクセス再開が可能なアクセス調停回路を実現することができる。 According to the present invention, when the processor accesses the built-in memory in a single shot, when data is written to or read from the processor built-in memory from the outside, the processor is given high-speed access without waiting. Can be realized by a small-scale circuit that simply adds a circuit that waits for a clock supplied to the processor. Further, an access arbitration circuit capable of resuming access by simply waiting for one pipeline stage when access to the external input / output means competes with the processor can be realized.
本発明によれば、プロセッサがメモリに対して連続でアクセスする場合においても、そのアクセス状態に依存することなく実行可能な外部入出力手段を実現することができる。 According to the present invention, it is possible to realize an external input / output unit that can be executed without depending on the access state even when the processor continuously accesses the memory.
以下、本発明の実施の形態について図面を参照しながら説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(第1の実施の形態)
図1は本発明の第1の実施の形態の情報処理装置を示す構成図である。図1において、情報処理装置150は、データ記憶装置101と、データ記憶装置101に対してアクセス優先度の高い第1のデータ入出力装置102と、アクセス優先度の低い第2のデータ入出力装置103と、第2のデータ入出力装置103にクロックを供給するクロック生成装置104と、アクセス調停装置109と、制御信号セレクタ112とを備える。
(First embodiment)
FIG. 1 is a block diagram showing an information processing apparatus according to the first embodiment of this invention. In FIG. 1, the
アクセス調停装置109は、第1のデータ入出力装置102の制御信号106と第2のデータ入出力装置103の制御信号108を監視し、データ記憶装置101へ供給する制御信号114とライトデータ113を、第1のデータ入出力装置102と第2のデータ入出力装置103の間で切替えるためのアクセス選択信号110と、第1のデータ入出力装置102と第2のデータ入出力装置103のデータ記憶装置101へのアクセスが競合した場合に、第2のデータ入出力装置103をウェイトさせるクロックウェイト要求信号111を生成する。
The
制御信号セレクタ112は、アクセス調停装置109から出力されるアクセス選択信号110を受けて、第1のデータ入出力装置102からデータ記憶装置101へ供給されるライトデータ105および制御信号106と、第2のデータ入出力装置103からデータ記憶装置101へ供給されるライトデータ107および制御信号108を切替える。
The
以上のように構成された本実施の形態について、以下、その動作を図2のフローチャートを用いて説明する。アクセス調停装置109は、第1のデータ入出力装置102と第2のデータ入出力装置103のデータ記憶装置101へのアクセス状態を監視する(S201)。データ記憶装置101へのアクセスがない状態(S200)から第1のデータ入出力装置102のみにアクセスがあった場合(S201のA)、アクセス調停装置109は制御信号セレクタ112を第1のデータ入出力装置102側に切替え(S202)、第1のデータ入出力装置102がデータ記憶装置101へアクセスを実行する(S203)。このあと、第1のデータ入出力装置102のデータ記憶装置101へのアクセスが終了した場合は(S203のA)、データ記憶装置101へのアクセスが終了する(S204)。
The operation of the embodiment configured as described above will be described below with reference to the flowchart of FIG. The
一方、第1のデータ入出力装置102のデータ記憶装置101へのアクセスが終了する前に第2のデータ入出力装置103からのアクセスがあった場合(S203のB)、アクセス調停装置109はアクセス競合を検出し、第2のデータ入出力装置103に対してクロックウェイト要求信号111を出力し、第2のデータ入出力装置103はウェイト状態に入る(S205)。この後、第1のデータ入出力装置102がデータ記憶装置101へアクセスを実行する(S206)。
On the other hand, when there is an access from the second data input /
第1のデータ入出力装置102のデータ記憶装置101へのアクセスが終了すると、第2のデータ入出力装置103のウェイト状態は解除され(S207)、アクセス調停装置109は制御信号セレクタ112を第2のデータ入出力装置103側に切替え(S208)、第2のデータ入出力装置103がデータ記憶装置101へアクセスを実行する(S209)。
When the access of the first data input /
データ記憶装置101へのアクセスがない状態(S200)から第2のデータ入出力装置102のみにアクセスがあった場合(S201のC)も、アクセス調停装置109は制御信号セレクタ112を第2のデータ入出力装置103側に切替え(S208)、第2のデータ入出力装置103がデータ記憶装置101へアクセスを実行する(S209)。この後、第2のデータ入出力装置103のデータ記憶装置101へのアクセスが終了した場合は(S209のB)、データ記憶装置101へのアクセスが終了する(S204)。
Even when only the second data input /
一方、第2のデータ入出力装置103のデータ記憶装置101へのアクセスが終了する前に第1のデータ入出力装置102からのアクセスがあった場合(S209のA)、またはデータ記憶装置101へのアクセスがない状態(S200)から第1のデータ入出力装置102と第2のデータ入出力装置103が同時にデータ記憶装置101へアクセスした場合(S201のB)、アクセス調停装置109はアクセス競合を検出し、第2のデータ入出力装置103に対してクロックウェイト要求信号111を出力し、第2のデータ入出力装置103はウェイト状態に入る(S210)。この後、アクセス調停装置109は制御信号セレクタ112を第1のデータ入出力装置102側に切替え(S211)、第1のデータ入出力装置102がデータ記憶装置101へアクセスを実行する(S206)。ステップS207以降の動作は前述のとおりである。
On the other hand, when there is an access from the first data input /
以上のように本実施の形態によれば、データ記憶手段となるデータ記憶装置101と、第1のデータ入出力手段となる第1のデータ入出力装置102と、第2のデータ入出力手段となる第2のデータ入出力装置103と、クロック生成手段となるクロック生成装置104と、アクセスを切替える切替え手段となる制御信号セレクタ112と、アクセスを調停するアクセス調停手段となるアクセス調停装置109を備え、第1のデータ入出力装置102と第2のデータ入出力装置103からデータ記憶装置101に対するアクセスが競合した場合に、第2のデータ入出力装置103のクロックをウェイトさせ、第1のデータ入出力装置102のアクセスを先に実行し、第1のデータ入出力装置102のアクセス終了時に第2のデータ入出力装置103のクロックウェイトを解除し、第2のデータ入出力装置103のアクセスを実行するので、第1のデータ入出力装置102が常に優先してデータ記憶装置101にアクセス可能なアクセス調停が、クロックのウェイト制御を行うだけの小規模な回路構成で実現可能である。
As described above, according to the present embodiment, the
(第2の実施の形態)
図3は本発明の第2の実施の形態の情報処理装置の概略構成を示すブロック図である。図3において情報処理装置350は、クロック生成部301と、プロセッサに内蔵されてプロセッサ外部からもアクセスが可能なプロセッサ内蔵メモリ部304と、命令をパイプライン処理するプロセッサコア部305と、プロセッサコア部305よりもプロセッサ内蔵メモリ304に対するアクセスの優先度が高い外部入出力制御部310と、外部入出力制御部310から出力されるプロセッサ側リードデータ320を保持するリードデータ保持部322と、プロセッサコア部305と外部入出力制御部310からアクセスが同時に発生した場合にウェイト要求信号316を生成するアクセス調停部315とを備える。
(Second Embodiment)
FIG. 3 is a block diagram showing a schematic configuration of an information processing apparatus according to the second embodiment of this invention. In FIG. 3, an
クロック生成部301は、クロック発振部338と、ウェイト要求信号316の入力中はクロック発振部338から供給されるクロックを停止し、整数倍の周期を持つクロックを生成するクロックウェイト制御部337とを備える。クロック302はクロック発振部338から出力されるウェイト制御のないクロックである。クロック303はクロックウェイト制御部337から出力されるウェイト制御されたクロックである。
The clock generation unit 301 includes a
プロセッサコア部305は、メモリ部304からのリードデータ323を受け取るメモリアクセス制御部330と、複数のフリップフロップ331,332,333,334とを有し、メモリ部304にアクセスするためのプロセッサ側アドレス306、プロセッサ側チップセレクト(CS)信号307、リードイネーブル信号(RE)、ライトイネーブル信号(WE)等のメモリ装置制御信号308とプロセッサ側ライトデータ309を生成する。
The processor core unit 305 includes a memory
外部入出力制御部310は、外部入出力信号同期化部336とメモリアクセスセレクタ部335とを有する。外部入出力信号同期化部336は、プロセッサの外部からメモリ部304へのデータの書き込みと読み出しのため、外部入出力アドレス325、外部入出力リードイネーブル・ライトイネーブル(RE/WE)信号326、外部入出力ライトデータ327を受け付け、プロセッサ内蔵メモリ部304にアクセスするための同期化された外部入出力側アドレス311、外部入出力側チップセレクト(CS)信号312、外部入出力側ライトイネーブル・リードイネーブル(WE/RE)信号313等のメモリ装置制御信号および外部入出力側ライトデータ314を生成する。メモリアクセスセレクタ部335は、外部入出力信号同期化部336からのメモリ制御信号およびライトデータと、プロセッサコア部305からのメモリ制御信号およびライトデータとを切替え、プロセッサ内蔵メモリ304にライトデータ317およびメモリ制御信号318を供給し、プロセッサ内蔵メモリ304からのリードデータ319をプロセッサコア部305と外部プロセッサ328へ切替えることで、リードデータ保持部322にプロセッサ側リードデータ(保持無し)320を供給し、外部プロセッサ328に外部入出力側リードデータ321を供給する。プロセッサ内蔵メモリ304は、メモリアクセスセレクタ部335にリードデータ319を出力する。
The external input /
アクセス調停部315は、プロセッサコア部305からのライトイネーブル信号、リードイネーブル信号308と、外部入出力制御部310内で生成されるライトイネーブル信号、リードイネーブル信号313を監視し、プロセッサコア部305側のメモリ制御信号およびライト・リードデータと、外部入出力制御部310側のメモリ制御信号およびライト・リードデータとを切替えるため、外部入出力制御部310内のメモリアクセスセレクタ部335へセレクタ制御信号324を供給する。また、アクセス調停部315は、プロセッサコア部305からプロセッサ内蔵メモリ部304へのアクセスと、外部入出力制御部310からプロセッサ内蔵メモリ部304へのアクセスが同時に発生した場合に、プロセッサコア部305に供給するクロックをウェイトさせるためのウェイト要求信号316を生成する。
The
リードデータ保持部322は、外部入出力制御部310内のメモリアクセスセレクタ部335から出力されるプロセッサ側リードデータ(保持無し)320を保持し、プロセッサコア部305にプロセッサ側リードデータ323を供給する。
The read
図4はリードデータ保持部322の構成を示す回路図である。図4においてリードデータ保持部322は、フリップフロップイネーブル信号411が「1」のサイクルの次のクロックの立ち上がりでデータを更新し、外部入出力制御部310のメモリアクセスセレクタ部335から出力されるリードデータ320を保持しておくフリップフロップ401と、プロセッサ側リードイネーブル(RE)信号308をウェイト制御のないクロック302の1サイクル分タイミングを遅らせるフリップフロップ403と、ウェイト要求信号316をウェイト制御のないクロック302の1サイクル分タイミングを遅らせるフリップフロップ405とを備える。さらに、プロセッサ側リードイネーブル(RE)信号308と、1サイクル遅れたプロセッサ側リードイネーブル信号404と、1サイクル遅れたウェイト要求信号406との論理積をとるANDゲート407と、ANDゲート407の出力信号であるセレクタ制御信号408が「1」のときプロセッサ側リードデータ323に保持データ出力402を出力し、セレクタ制御信号408が「0」のときプロセッサ側リードデータ323にリードデータ320を出力するセレクタ409と、1サイクル遅れたプロセッサ側リードイネーブル信号404と、1サイクル遅れたウェイト要求信号406の負論理の論理積をとり、フリップフロップイネーブル信号を生成するANDゲート410とを備える。
FIG. 4 is a circuit diagram showing a configuration of the read
以上のように構成された本実施の形態について、以下、その動作を図5のフローチャートを用いて説明する。メモリ304は、外部入出力制御部310とプロセッサコア部305のメモリ304へのアクセス状態を監視する(S501)。メモリ304へのアクセスがない状態(S500)から外部入出力制御部310のみにアクセスがあった場合(S501のA)、アクセス調停部315は外部入出力制御部310内のメモリアクセスセレクタ部335を外部入出力制御部310側に切替え(S502)、 外部入出力制御部310がメモリ304へアクセスを実行する(S503)。このあと、外部入出力制御部310のメモリ304へのアクセスが終了した場合は(S503のA)、メモリ304へのアクセスが終了する(S504)。
The operation of the embodiment configured as described above will be described below with reference to the flowchart of FIG. The
一方、外部入出力制御部310のメモリ304へのアクセスが終了する前にプロセッサコア部305からのアクセスがあった場合(S503のB)、アクセス調停部315はアクセス競合を検出しプロセッサコア部305に対してウェイト要求信号316を出力し、プロセッサコア部305はウェイト状態に入る(S505)。その後、外部入出力制御部310がメモリ304にアクセスを実行する(S506)。外部入出力制御部310のメモリ304へのアクセスが終了すると、プロセッサコア部305のウェイト状態は解除される(S507)。
On the other hand, if there is an access from the processor core unit 305 before the access to the
アクセス競合がプロセッサコア部305のメモリ304への連続リードアクセス発生中に起こっていた場合(S508のY)は、プロセッサコア部305のリードデータとしてリードデータ保持部322の保持しているデータを供給する(S509)。
If access contention occurred during continuous read access to the
一方、アクセス競合の発生がプロセッサコア部305のメモリ304への連続リードアクセス発生中ではない場合(S508のN)は、プロセッサコア部305のリードデータとしてプロセッサ側リードデータ(保持無し)320を供給する。その後、アクセス調停部315は外部入出力制御部310内のメモリアクセスセレクタ部335をプロセッサコア部305側に切替え(S510)、プロセッサコア部305がメモリ304へアクセスを実行する(S511)。
On the other hand, when the occurrence of the access conflict is not during the continuous read access to the
なお、メモリ304へのアクセスがない状態(S500)からプロセッサコア部305のみにアクセスがあった場合(S501のC)も、アクセス調停部315は外部入出力制御部310内のメモリアクセスセレクタ部335をプロセッサコア部305側に切替え(S510)、プロセッサコア部305がメモリ304へアクセスを実行する(S511)。このあと、プロセッサコア部305のメモリ304へのアクセスが終了した場合は(S511のB)、メモリ304へのアクセスが終了する(S504)。
Even when only the processor core unit 305 is accessed from the state where there is no access to the memory 304 (S500) (C in S501), the
一方、プロセッサコア部305のメモリ304へのアクセスが終了する前に外部入出力制御部310からのアクセスがあった場合(S511のA)、またはメモリ304へのアクセスがない状態(S500)から外部入出力制御部310とプロセッサコア部305が同時にメモリ304へアクセスした場合(S501のB)、アクセス調停部315はアクセス競合を検出しプロセッサコア部305に対してウェイト要求信号316を出力し、プロセッサコア部305はウェイト状態に入る(S512)。この後、アクセス調停部315は外部入出力制御部310内のメモリアクセスセレクタ部335を外部入出力制御部310側に切替え(S513)、外部入出力制御部310がメモリ304へアクセスを実行する(S506)。以降の動作は前述のとおりである。
On the other hand, when there is an access from the external input /
さらに本発明の実施の形態にかかる情報処理装置について、以下、その動作の詳細を図6、図7のタイミングチャートを用いて説明する。図6のタイミングチャートは、プロセッサコア部305が単発でプロセッサ内蔵メモリ304にアクセスした場合に外部入出力制御部310からのプロセッサ内蔵メモリ304へのアクセスが競合を起こした場合を示す。図7のタイミングチャートは、プロセッサコア部305が連続でプロセッサ内蔵メモリ304にリードアクセスしている期間に外部入出力制御部310からプロセッサ内蔵メモリ304へのアクセスが競合を起こした場合を示す。
Further, the details of the operation of the information processing apparatus according to the embodiment of the present invention will be described below with reference to the timing charts of FIGS. The timing chart of FIG. 6 shows a case where access to the processor
図6において、プロセッサ側リードイネーブル信号308と、外部入出力側リードイネーブル信号313が図6のAのタイミングにおいて同時に発生した場合、図3のアクセス調停部315がアクセス競合を検出し、図3のクロック生成部301に対して、ウェイト要求信号316を供給する。
In FIG. 6, when the processor side read enable
これにより、図3のクロック生成部301はプロセッサコア部305に供給するウェイト制御されたクロック303を図6のBタイミングで1サイクルウェイトさせる。プロセッサコア部305から出力しているプロセッサ側アドレス306、プロセッサ側CS信号307、プロセッサ側リードイネーブル(RE)信号308は、それぞれプロセッサコア部305内部にあるフリップフロップ331〜334を介して出力しているため、プロセッサコア部305のウェイト期間中であるタイミングBではタイミングAでの出力の状態を保持している。
As a result, the clock generation unit 301 in FIG. 3 causes the wait-controlled
このとき、図3のアクセス調停部315は図3の外部入出力制御部310内のメモリアクセスセレクタ部335を制御する。そして、外部入出力制御部310内のメモリアクセスセレクタ部335はプロセッサ内蔵メモリ304に対して、図6のタイミングAの期間、すなわちプロセッサコア部305がウェイト動作する1サイクル前の期間は外部入出力制御部310からのメモリ制御信号を供給し、図6のタイミングBの期間、すなわちプロセッサコア部305がウェイト動作している期間はプロセッサコア部305からのメモリ制御信号を供給する。
At this time, the
これによって図6のタイミングBの期間、すなわちプロセッサコア部305がウェイト動作している期間にプロセッサ内蔵メモリ304は外部入出力制御部310のアクセスによるリードデータをリードデータ319として出力し、図6のタイミングCの期間、すなわちプロセッサがウェイトから復帰した最初の1サイクルの期間ではプロセッサコア部305のアクセスによるリードデータをリードデータ319として出力する。図6のタイミングCの期間では、図4のセレクタ制御信号408は「0」となっており、プロセッサ側リードデータ323にはリードデータ319がプロセッサ側リードデータ(保持無し)320を経由して供給される。
Accordingly, the processor built-in
図7のタイミングチャートにおいて、プロセッサコア部305が連続でプロセッサ内蔵メモリ304にリードアクセスを実行している最中に、図7のタイミングAの期間でプロセッサ内蔵メモリ304に外部入出力制御部310からアクセスがあった場合、図6の場合と同様に図7のタイミングAの期間でウェイト要求信号316が発生し、タイミングBの期間でプロセッサコア部305はウェイト動作に入る。
In the timing chart of FIG. 7, while the processor core unit 305 is continuously performing read access to the processor built-in
このとき、図6の場合と同様に、図7のタイミングBの期間でプロセッサ内蔵メモリ304は外部入出力制御部310のアクセスによるリードデータをリードデータ319に出力し、図7のタイミングCの期間でプロセッサコア部305のアクセスによるリードデータをリードデータ319に出力する。
At this time, similarly to the case of FIG. 6, the processor built-in
しかしながら、このときプロセッサコア部305のプロセッサ内蔵メモリ304へのアクセスと外部入出力制御部310のアクセスが競合する1サイクル前のプロセッサコア部305のプロセッサ内蔵メモリ304へのリード命令において、この命令のリードデータは図7のタイミングAで出力されており、この次のタイミングBはプロセッサコア部305がウェイト動作に入っているため、プロセッサコア部305がウェイトから復帰したタイミングCではプロセッサコア部305は必要なリードデータを取り込むことが出来ない。
However, at this time, in the read instruction to the processor built-in
そこで、図4のフリップフロップ401によってタイミングAで出力されたリードデータをタイミングBまで保持して保持データ出力402に出力し、さらに図4のANDゲート407によって、プロセッサコア部305の連続リードアクセス中のウェイト動作状態を検出し、タイミングBにおいてセレクタ制御信号408を「1」にすることによって、セレクタ409はプロセッサ側リードデータ323に保持データ出力402を供給し、プロセッサコア部305のタイミングCにおけるデータ取得を可能にしている。
Therefore, the read data output at the timing A by the flip-
一方、タイミングCにおいてはウェイト状態が解除されているため、セレクタ制御信号408は「0」に戻され、セレクタ409はプロセッサ側リードデータ323にリードデータ319を供給する。
On the other hand, since the wait state is released at timing C, the
このように、図7に示すようなプロセッサコア部305のプロセッサ内蔵メモリ部304への連続アクセスの最中に外部入出力制御部310からのアクセスが競合した場合にもアクセス調停を可能にしている。
As described above, even when access from the external input /
以上のように本実施の形態は、命令をパイプライン処理するプロセッサとなるプロセッサコア部305と、プロセッサに内蔵するメモリとなるプロセッサ内蔵メモリ304と、メモリに対して優先してアクセスを実行する入出力制御手段となる外部入出力制御部310と、プロセッサコア部305にクロックを供給するクロック生成手段となるクロック生成部301と、プロセッサコア部305と外部入出力制御部310のプロセッサ内蔵メモリ304へのアクセスを監視し、アクセス調停を行うアクセス調停手段となるアクセス調停部315から構成される。そして、プロセッサコア部305がプロセッサ内蔵メモリ304にアクセスしている期間に外部入出力制御部310がアクセス競合した場合、プロセッサコア部305に供給しているクロックをウェイトさせ、外部入出力制御部310のプロセッサ内蔵メモリ304へのアクセスを実行し、外部入出力制御部310のプロセッサ内蔵メモリ304へのアクセス終了時にプロセッサコア部305のクロックウェイトを解除し、プロセッサコア部305のアクセスを実行する。
As described above, according to the present embodiment, the processor core unit 305 serving as a processor for pipeline processing of instructions, the processor built-in
これにより、プロセッサコア部305が単発でプロセッサ内蔵メモリ304にアクセスする場合、ウェイトすることなく高速でプロセッサ内蔵メモリ304にアクセス可能な外部入出力制御部310を、プロセッサコア部305に供給するクロックをウェイトする回路を追加するだけの小規模な回路で実現することが出来る。
As a result, when the processor core unit 305 accesses the processor built-in
さらにプロセッサコア部305に対しては、外部入出力手段とのアクセスが競合した場合に1パイプラインステージウェイトするだけでアクセス再開が可能なアクセス調停が実現可能である。また、メモリからの出力データを保持する保持手段となるリードデータ保持部322を備え、プロセッサコア部305がプロセッサ内蔵メモリ304へ連続でリードアクセスしている際に外部入出力制御部310がプロセッサ内蔵メモリ304へアクセスし、アクセス競合が発生した場合にも、リードデータ保持部322に保持しているデータをプロセッサコア部305へ供給しプロセッサ内蔵メモリ304へのアクセスを再開し、プロセッサコア部305の連続アクセス中の外部入出力制御部310からのアクセスも可能にしている。
Furthermore, for the processor core unit 305, it is possible to realize access arbitration that can resume access only by waiting for one pipeline stage when access with external input / output means competes. In addition, a read
101 データ記憶装置
102 第1のデータ入出力装置
103 第2のデータ入出力装置
104 クロック生成装置
105 ライトデータ
106 制御信号
107 ライトデータ
108 制御信号
109 アクセス調停装置
110 アクセス選択信号
111 クロックウェイト要求信号
112 制御信号セレクタ
113 ライトデータ
114 制御信号
115 リードデータ
301 クロック生成部
302 ウェイト制御のないクロック
303 ウェイト制御されたクロック
304 プロセッサ内蔵メモリ部
305 プロセッサコア部
306 プロセッサ側アドレス
307 プロセッサ側CS信号
308 プロセッサ側WE/RE信号
309 プロセッサ側ライトデータ
310 外部入出力制御部
311 外部入出力側アドレス
312 外部入出力側CS信号
313 外部入出力側WE/RE信号
314 外部入出力側ライトデータ
315 アクセス調停部
316 ウェイト要求信号
317 ライトデータ
318 メモリ制御信号
319 リードデータ
320 プロセッサ側リードデータ(保持無し)
321 外部入出力リードデータ
322 リードデータ保持部
323 プロセッサ側リードデータ
324 セレクタ制御信号
325 外部入出力アドレス
326 外部入出力WE/RE信号
327 外部入出力ライトデータ
328 外部プロセッサ
330 メモリアクセス制御部
331〜334 フリップフロップ
335 メモリアクセスセレクタ部
336 外部入出力信号同期化部
337 クロックウェイト制御部
338 クロック発振部
401 フリップフロップ
402 保持データ出力
403 フリップフロップ
404 1サイクル遅れたプロセッサ側RE信号
405 フリップフロップ
406 1サイクル遅れたウェイト要求信号
407 ANDゲート
408 セレクタ制御信号
409 セレクタ
410 ANDゲート
DESCRIPTION OF
321 External input / output read
Claims (7)
前記データ記憶手段に対してアクセスする第1と第2のデータ入出力手段と、
前記第2のデータ入出力手段に供給されるノーマルクロック信号を生成するクロック発振部と、前記ノーマルクロック信号が有するサイクルの整数倍のサイクルを有するウェイトクロック信号を生成するクロックウェイト制御部とを備えるクロック生成手段と、
前記第1のデータ入出力手段と前記第2のデータ入出力手段の前記データ記憶手段に対するアクセスを切替える制御信号セレクタ手段と、
前記第1のデータ入出力手段と前記第2のデータ入出力手段の前記データ記憶手段に対するアクセスが競合した場合に、前記第2のデータ入出力手段に対する前記ノーマルクロック信号を1クロックサイクルの間前記クロック発振部に停止させ、前記第2のデータ入出力手段に対して前記ウェイトクロック信号を前記クロックウェイト制御部に供給させ、前記データ記憶手段に対するアクセスを1クロックサイクルの間前記第2のデータ入出力手段に不許可とし、前記1クロックサイクルの間前記第1のデータ入出力手段のアクセスを実行させ、前記1クロックサイクルの間の前記第1のデータ入出力手段のアクセス終了後に前記第2のデータ入出力手段のアクセスを開始させるアクセス調停手段と、
を備えることを特徴とする情報処理装置。 Data storage means;
First and second data input / output means for accessing the data storage means;
A clock oscillation unit that generates a normal clock signal supplied to the second data input / output unit; and a clock wait control unit that generates a wait clock signal having a cycle that is an integral multiple of the cycle of the normal clock signal. Clock generation means;
Control signal selector means for switching access to the data storage means of the first data input / output means and the second data input / output means;
When the access to the data storage means of the first data input / output means and the second data input / output means competes, the normal clock signal for the second data input / output means is changed to the normal data signal for one clock cycle. The clock oscillation unit is stopped, the wait clock signal is supplied to the clock wait control unit to the second data input / output unit, and access to the data storage unit is input to the second data input unit for one clock cycle. The output means is disabled, the first data input / output means is accessed during the one clock cycle, and the second data input is terminated after the access of the first data input / output means during the one clock cycle. Access arbitration means for starting access to the data input / output means;
An information processing apparatus comprising:
前記内蔵メモリに格納されたデータを処理するプロセッサと、
前記プロセッサに供給されるノーマルクロック信号を生成するクロック発振部と、前記ノーマルクロック信号が有するサイクルの整数倍のサイクルを有するウェイトクロック信号を生成するクロックウェイト制御部とを備えるクロック生成手段と、
外部制御装置からの指示を受けて前記内蔵メモリへのアクセスを実行する入出力制御手段と、
前記プロセッサと前記入出力制御手段の前記内蔵メモリへのアクセスが競合した場合に、前記ノーマルクロック信号を1クロックサイクルの間前記クロック発振部に停止させ、前記プロセッサに対して前記ウェイトクロック信号を前記クロックウェイト制御部に供給させ、前記入出力制御手段のアクセスを優先的に実行させるアクセス調停手段と、
を備えることを特徴とする情報処理装置。 Built-in memory,
A processor for processing data stored in the internal memory;
A clock generation unit including a clock oscillation unit that generates a normal clock signal supplied to the processor, and a clock wait control unit that generates a wait clock signal having a cycle that is an integral multiple of the cycle of the normal clock signal;
Input / output control means for receiving an instruction from an external control device and executing access to the internal memory;
When the access to the internal memory of the processor and the input / output control unit competes, the normal clock signal is stopped by the clock oscillation unit for one clock cycle, and the wait clock signal is sent to the processor. An access arbitration unit that supplies the clock wait control unit and preferentially executes the access of the input / output control unit;
An information processing apparatus comprising:
前記プロセッサと前記入出力制御手段の前記内蔵メモリへのアクセスを切替える選択手段をさらに備え、
前記アクセス調停手段は、前記プロセッサの前記内蔵メモリへのアクセス中に前記入出力制御手段の前記内蔵メモリへのアクセス要求が発生すると、前記選択手段へ制御信号を出力し、
前記制御信号を受けた前記選択手段は、前記プロセッサのアクセスを前記入出力制御手段の前記内蔵メモリへのアクセスに切替えることを特徴とする情報処理装置。 An information processing apparatus according to claim 2,
A selection means for switching access to the internal memory of the processor and the input / output control means;
The access arbitration means outputs a control signal to the selection means when an access request to the internal memory of the input / output control means occurs during access to the internal memory of the processor,
The information processing apparatus, wherein the selection unit that receives the control signal switches the access of the processor to access to the internal memory of the input / output control unit.
前記プロセッサのウェイト動作前に前記内蔵メモリが出力していたリードデータを前記プロセッサのウェイト動作中に保持しておく保持手段をさらに備え、
前記アクセス調停手段は、前記プロセッサへ供給するリードデータを、前記内蔵メモリが出力するリードデータと前記保持手段が保持しているリードデータとの間で切替えることを特徴とする情報処理装置。 An information processing apparatus according to claim 2,
Further comprising holding means for holding the read data output from the built-in memory before the wait operation of the processor during the wait operation of the processor;
The information processing apparatus, wherein the access arbitration unit switches read data supplied to the processor between read data output from the built-in memory and read data held by the holding unit.
前記第1および第2のデータ入出力手段への前記ノーマルクロック信号を設けるステップと、
前記第1のデータ入出力手段と前記第2のデータ入出力手段の前記データ記憶手段に対するアクセスが競合した場合に、前記第2のデータ入出力手段に対する前記ノーマルクロック信号を1クロックサイクルの間前記クロックウェイト信号に停止させ、前記データ記憶手段に対するアクセスを1クロックサイクルの間前記第2のデータ入出力手段に不許可とするクロックウェイト信号を設けるステップと、
前記第2のデータ入出力手段より早く前記第1のデータ入出力手段のアクセスを実行するステップと、
前記第1のデータ入出力手段のアクセス終了後に前記第2のデータ入出力手段の前記クロック信号の停止を解除し、前記第2のデータ入出力手段のアクセスを実行するステップと、
を備えることを特徴とするメモリアクセス調停方法。 Data storage means; first and second data input / output means for accessing the data storage means; a clock oscillation unit for generating a normal clock signal supplied to the second data input / output means; A clock generation unit including a clock wait control unit that generates a wait clock signal having a cycle that is an integral multiple of a cycle of a normal clock signal, and a memory access arbitration method for an information processing device,
Providing the normal clock signal to the first and second data input / output means;
When the access to the data storage means of the first data input / output means and the second data input / output means competes, the normal clock signal for the second data input / output means is changed to the normal data signal for one clock cycle. Providing a clock wait signal for stopping the clock wait signal and disabling access to the data storage means to the second data input / output means for one clock cycle;
Executing the access of the first data input / output means earlier than the second data input / output means;
Canceling the stop of the clock signal of the second data input / output means after the access of the first data input / output means is completed, and executing the access of the second data input / output means;
A memory access arbitration method comprising:
前記プロセッサおよび前記データ入出力手段への前記ノーマルクロック信号を設けるステップと、
前記プロセッサと前記入出力制御手段の前記メモリへのアクセスが競合した場合に、前記プロセッサに供給しているクロック信号を1クロックサイクルの間停止させるウェイト要求信号を発生するステップと、
前記プロセッサと前記入出力制御手段の前記メモリへのアクセスが競合した場合に、前記プロセッサに対する前記ノーマルクロック信号を1クロックサイクルの間停止させるクロックウェイト信号設け、前記プロセッサの前記メモリへのアクセスを1クロックサイクルの間不許可とするステップと、
前記プロセッサのアクセスを前記入出力制御手段の前記メモリへのアクセスに切替えるステップと、
前記入出力制御手段の前記メモリへのアクセス終了後に前記プロセッサの前記ウェイト要求信号を解除し、前記プロセッサの前記メモリへのアクセスを実行するステップと、
を含むメモリアクセス調停方法。 A processor that pipelines instructions, a memory provided in the processor, an input / output control unit that executes access to the memory with a higher priority than the processor, and a supply to the processor and the data input / output unit An information processing apparatus comprising: a clock generation unit that generates a normal clock signal to be generated; and a clock generation unit that includes a clock wait control unit that generates a wait clock signal having a cycle that is an integral multiple of a cycle of the normal clock signal. Memory access arbitration method of
Providing the normal clock signal to the processor and the data input / output means;
Generating a wait request signal for stopping a clock signal supplied to the processor for one clock cycle when access to the memory of the processor and the input / output control means competes;
When the access of the processor and the input / output control means to the memory competes, a clock wait signal is provided to stop the normal clock signal for the processor for one clock cycle, and the access of the processor to the memory is 1 A step that is disallowed during the clock cycle;
Switching access of the processor to access to the memory of the input / output control means;
Canceling the wait request signal of the processor after the access to the memory of the input / output control means is completed, and executing the access to the memory of the processor;
A memory access arbitration method including:
前記プロセッサおよび前記データ入出力手段への前記ノーマルクロック信号を設けるステップと、
前記プロセッサが前記メモリに対して連続リードアクセスしている期間に前記入出力制御手段のリードアクセスが競合した場合に、前記プロセッサのウェイト動作前に前記メモリが出力していたリードデータを保持するステップと、
前記プロセッサに対する前記ノーマルクロックを停止させる前記クロックウェイト信号設けるステップと、
前記入出力制御手段の前記メモリへのアクセスを実行するステップと、
前記入出力制御手段の前記メモリへのアクセス終了後に前記プロセッサのクロック信号の停止を解除し、前記保持手段に保持しているデータを前記プロセッサへ供給し、前記メモリへの前記プロセッサのアクセスを再開するステップと、
を含むメモリアクセス調停方法。 A processor that pipelines instructions, a memory provided in the processor, an input / output control unit that executes access to the memory with a higher priority than the processor, and a supply to the processor and the data input / output unit A clock generation unit including a clock oscillation unit that generates a normal clock signal to be transmitted, a clock wait control unit that generates a wait clock signal having a cycle that is an integral multiple of a cycle of the normal clock signal, and a wait operation of the processor A memory access arbitration method for an information processing apparatus, comprising: holding means for holding read data previously output from the memory during a wait operation of the processor;
Providing the normal clock signal to the processor and the data input / output means;
The step of holding the read data output from the memory before the wait operation of the processor when the read access of the input / output control means competes during the period in which the processor continuously accesses the memory When,
Providing the clock wait signal for stopping the normal clock for the processor;
Executing access to the memory of the input / output control means;
After the access of the input / output control means to the memory is completed, the stop of the clock signal of the processor is released, the data held in the holding means is supplied to the processor, and the processor's access to the memory is resumed. And steps to
A memory access arbitration method including:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010192319A JP2011018355A (en) | 2010-08-30 | 2010-08-30 | Information processing apparatus and memory access arbitration method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010192319A JP2011018355A (en) | 2010-08-30 | 2010-08-30 | Information processing apparatus and memory access arbitration method |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003017437A Division JP4633334B2 (en) | 2003-01-27 | 2003-01-27 | Information processing apparatus and memory access arbitration method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2011018355A true JP2011018355A (en) | 2011-01-27 |
Family
ID=43596036
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010192319A Withdrawn JP2011018355A (en) | 2010-08-30 | 2010-08-30 | Information processing apparatus and memory access arbitration method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2011018355A (en) |
-
2010
- 2010-08-30 JP JP2010192319A patent/JP2011018355A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2010282405A (en) | Data processing system | |
JP2011095978A (en) | Bus system and bus control method | |
JP2007219678A (en) | Multilayer bus system | |
JP2011081553A (en) | Information processing system and control method thereof | |
JP2007102646A (en) | Context switching device | |
JP2006040276A (en) | Bus arbitration system for saving on power consumption based on selective clock control and method thereof | |
US7913013B2 (en) | Semiconductor integrated circuit | |
JP2005515544A (en) | Information exchange between local synchronization circuits | |
JP2007172112A (en) | Memory controller | |
JP4902640B2 (en) | Integrated circuit and integrated circuit system | |
JP4633334B2 (en) | Information processing apparatus and memory access arbitration method | |
JP2008140065A (en) | Access arbitration device, access arbitration method and information processor | |
JP4112813B2 (en) | Bus system and command transmission method thereof | |
JP2011018355A (en) | Information processing apparatus and memory access arbitration method | |
JP2004310394A (en) | Sdram access control device | |
JP5528939B2 (en) | Microcomputer | |
US20080228961A1 (en) | System including virtual dma and driving method thereof | |
JP2009032085A (en) | Data processing system | |
JP2008226135A (en) | Semiconductor integrated circuit and memory system | |
JP2005316546A (en) | Memory controller | |
JP6725970B2 (en) | Multiprocessor system | |
JP2008165463A (en) | Bus controller | |
JP2005157929A (en) | Semiconductor device | |
JP5445385B2 (en) | Data processing device | |
JP2007241912A (en) | Signal processing circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A761 | Written withdrawal of application |
Free format text: JAPANESE INTERMEDIATE CODE: A761 Effective date: 20120312 |