JP2011018355A - Information processing apparatus and memory access arbitration method - Google Patents

Information processing apparatus and memory access arbitration method Download PDF

Info

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
Application number
JP2010192319A
Other languages
Japanese (ja)
Inventor
Atsuhiro Mori
敦弘 森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Corp
Original Assignee
Panasonic Corp
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 Panasonic Corp filed Critical Panasonic Corp
Priority to JP2010192319A priority Critical patent/JP2011018355A/en
Publication of JP2011018355A publication Critical patent/JP2011018355A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Bus Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To implement a small scale mechanism for inputting/outputting data to/from a memory at high speed having always high priority for a built-in memory of a processor.SOLUTION: An information processing apparatus includes a processor for executing pipeline processing to instructions, a memory built in the processor, and an input/output control means for accessing the memory with high priority. A memory access arbitration method includes the steps of suspending clock supply to the processor when accesses to the memory from the processor and the input/output control means compete (S512), executing the access to the memory from the input/output control means (S506), and releasing the clock wait of the processor after the access to the memory from the input/output control means ends and executing the access to the memory from the processor (S507, S511).

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.

特開平9−198298号公報Japanese Patent Laid-Open No. 9-198298

しかしながら、複数の制御装置のどちらかの制御装置からのアクセスを優先したい場合が考えられる。例えばプロセッサ内蔵メモリへの外部入出力機構を介した外部プロセッサからのアクセスを考えた場合、外部プロセッサからのプロセッサ内蔵メモリへのアクセスは長時間のアクセスとはならないが、外部プロセッサが高速動作を必要とするため、常に外部プロセッサからのアクセスを優先したいという要望がある。   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.

本発明の第1の実施の形態の情報処理装置を示す構成図。The lineblock diagram showing the information processor of a 1st embodiment of the present invention. 図1に示した情報処理装置の動作を示すフローチャート。3 is a flowchart showing the operation of the information processing apparatus shown in FIG. 本発明の第2の実施の形態の情報処理装置の概略構成を示すブロック図。The block diagram which shows schematic structure of the information processing apparatus of the 2nd Embodiment of this invention. 本発明の実施の形態におけるリードデータ保持部の構成を示す回路図。The circuit diagram which shows the structure of the read data holding | maintenance part in embodiment of this invention. 図3に示した情報処理装置の動作を示すフローチャート。4 is a flowchart showing an operation of the information processing apparatus shown in FIG. 3. 図3に示した情報処理装置の動作の一例(プロセッサが単発アクセスする場合)を示すタイミングチャート。FIG. 4 is a timing chart illustrating an example of an operation of the information processing apparatus illustrated in FIG. 3 (when a processor performs single access). 図3に示した情報処理装置の動作の一例(プロセッサが連続アクセスする場合)を示すタイミングチャート。FIG. 4 is a timing chart illustrating an example of the operation of the information processing apparatus illustrated in FIG. 3 (when the processor continuously accesses).

以下、本発明の実施の形態について図面を参照しながら説明する。   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 information processing device 150 includes a data storage device 101, a first data input / output device 102 having a high access priority with respect to the data storage device 101, and a second data input / output device having a low access priority. 103, a clock generation device 104 that supplies a clock to the second data input / output device 103, an access arbitration device 109, and a control signal selector 112.

アクセス調停装置109は、第1のデータ入出力装置102の制御信号106と第2のデータ入出力装置103の制御信号108を監視し、データ記憶装置101へ供給する制御信号114とライトデータ113を、第1のデータ入出力装置102と第2のデータ入出力装置103の間で切替えるためのアクセス選択信号110と、第1のデータ入出力装置102と第2のデータ入出力装置103のデータ記憶装置101へのアクセスが競合した場合に、第2のデータ入出力装置103をウェイトさせるクロックウェイト要求信号111を生成する。   The access arbitration device 109 monitors the control signal 106 of the first data input / output device 102 and the control signal 108 of the second data input / output device 103, and sends the control signal 114 and write data 113 supplied to the data storage device 101. , An access selection signal 110 for switching between the first data input / output device 102 and the second data input / output device 103, and data storage of the first data input / output device 102 and the second data input / output device 103 When access to the device 101 competes, a clock wait request signal 111 for waiting for the second data input / output device 103 is generated.

制御信号セレクタ112は、アクセス調停装置109から出力されるアクセス選択信号110を受けて、第1のデータ入出力装置102からデータ記憶装置101へ供給されるライトデータ105および制御信号106と、第2のデータ入出力装置103からデータ記憶装置101へ供給されるライトデータ107および制御信号108を切替える。   The control signal selector 112 receives the access selection signal 110 output from the access arbitration device 109, receives the write data 105 and the control signal 106 supplied from the first data input / output device 102 to the data storage device 101, and the second The write data 107 and the control signal 108 supplied from the data input / output device 103 to the data storage device 101 are switched.

以上のように構成された本実施の形態について、以下、その動作を図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 access arbitration device 109 monitors the access status of the first data input / output device 102 and the second data input / output device 103 to the data storage device 101 (S201). When only the first data input / output device 102 is accessed from the state where the data storage device 101 is not accessed (S200) (A in S201), the access arbitration device 109 sets the control signal selector 112 to the first data input device. Switching to the output device 102 side (S202), the first data input / output device 102 accesses the data storage device 101 (S203). Thereafter, when the access to the data storage device 101 of the first data input / output device 102 is completed (A in S203), the access to the data storage device 101 is completed (S204).

一方、第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 / output device 103 before the access to the data storage device 101 of the first data input / output device 102 is completed (B in S203), the access arbitration device 109 accesses A conflict is detected, a clock wait request signal 111 is output to the second data input / output device 103, and the second data input / output device 103 enters a wait state (S205). Thereafter, the first data input / output device 102 accesses the data storage device 101 (S206).

第1のデータ入出力装置102のデータ記憶装置101へのアクセスが終了すると、第2のデータ入出力装置103のウェイト状態は解除され(S207)、アクセス調停装置109は制御信号セレクタ112を第2のデータ入出力装置103側に切替え(S208)、第2のデータ入出力装置103がデータ記憶装置101へアクセスを実行する(S209)。   When the access of the first data input / output device 102 to the data storage device 101 is completed, the wait state of the second data input / output device 103 is released (S207), and the access arbitration device 109 sets the control signal selector 112 to the second state. Switch to the data input / output device 103 side (S208), and the second data input / output device 103 accesses the data storage device 101 (S209).

データ記憶装置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 / output device 102 is accessed from the state where the data storage device 101 is not accessed (S200) (C of S201), the access arbitration device 109 sets the control signal selector 112 to the second data Switching to the input / output device 103 side (S208), the second data input / output device 103 accesses the data storage device 101 (S209). Thereafter, when the access to the data storage device 101 of the second data input / output device 103 is completed (B in S209), the access to the data storage device 101 is ended (S204).

一方、第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 / output device 102 before the access to the data storage device 101 of the second data input / output device 103 ends (A in S209), or to the data storage device 101 When the first data input / output device 102 and the second data input / output device 103 simultaneously access the data storage device 101 (B in S201) from the state where there is no access (S200), the access arbitration device 109 causes access contention. Then, a clock wait request signal 111 is output to the second data input / output device 103, and the second data input / output device 103 enters a wait state (S210). Thereafter, the access arbitration device 109 switches the control signal selector 112 to the first data input / output device 102 side (S211), and the first data input / output device 102 accesses the data storage device 101 (S206). The operations after step S207 are as described above.

以上のように本実施の形態によれば、データ記憶手段となるデータ記憶装置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 data storage device 101 serving as the data storage unit, the first data input / output device 102 serving as the first data input / output unit, and the second data input / output unit are provided. A second data input / output device 103, a clock generation device 104 serving as clock generation means, a control signal selector 112 serving as switching means for switching access, and an access arbitration device 109 serving as access arbitration means for arbitrating access. When access to the data storage device 101 from the first data input / output device 102 and the second data input / output device 103 competes, the clock of the second data input / output device 103 is waited and the first data input / output device 103 is The access to the output device 102 is executed first, and the second data input / output device at the end of the access to the first data input / output device 102 Since the clock wait of 03 is released and the second data input / output device 103 is accessed, the access arbitration that allows the first data input / output device 102 to always access the data storage device 101 with priority is provided. This can be realized with a small circuit configuration that only performs weight control.

(第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 information processing device 350 includes a clock generation unit 301, a processor built-in memory unit 304 that is built in the processor and can be accessed from outside the processor, a processor core unit 305 that pipelines instructions, and a processor core unit. An external input / output control unit 310 having higher access priority to the processor built-in memory 304 than the 305, a read data holding unit 322 that holds the processor-side read data 320 output from the external input / output control unit 310, and a processor core unit 305 and an access arbitration unit 315 that generates a wait request signal 316 when accesses from the external input / output control unit 310 occur simultaneously.

クロック生成部301は、クロック発振部338と、ウェイト要求信号316の入力中はクロック発振部338から供給されるクロックを停止し、整数倍の周期を持つクロックを生成するクロックウェイト制御部337とを備える。クロック302はクロック発振部338から出力されるウェイト制御のないクロックである。クロック303はクロックウェイト制御部337から出力されるウェイト制御されたクロックである。   The clock generation unit 301 includes a clock oscillation unit 338 and a clock wait control unit 337 that stops the clock supplied from the clock oscillation unit 338 while the wait request signal 316 is being input, and generates a clock having an integer multiple cycle. Prepare. A clock 302 is a clock without wait control output from the clock oscillation unit 338. A clock 303 is a wait-controlled clock output from the clock wait control unit 337.

プロセッサコア部305は、メモリ部304からのリードデータ323を受け取るメモリアクセス制御部330と、複数のフリップフロップ331,332,333,334とを有し、メモリ部304にアクセスするためのプロセッサ側アドレス306、プロセッサ側チップセレクト(CS)信号307、リードイネーブル信号(RE)、ライトイネーブル信号(WE)等のメモリ装置制御信号308とプロセッサ側ライトデータ309を生成する。   The processor core unit 305 includes a memory access control unit 330 that receives read data 323 from the memory unit 304 and a plurality of flip-flops 331, 332, 333, and 334, and a processor side address for accessing the memory unit 304 306, a memory device control signal 308 such as a processor side chip select (CS) signal 307, a read enable signal (RE), a write enable signal (WE), and the processor side write data 309 are generated.

外部入出力制御部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 / output control unit 310 includes an external input / output signal synchronization unit 336 and a memory access selector unit 335. The external input / output signal synchronization unit 336 is used to write and read data to / from the memory unit 304 from the outside of the processor, the external input / output address 325, the external input / output read enable / write enable (RE / WE) signal 326, the external Synchronized external input / output side address 311, external input / output side chip select (CS) signal 312, external input / output side write enable / read enable for receiving input / output write data 327 and accessing the processor built-in memory unit 304 A memory device control signal such as a (WE / RE) signal 313 and external input / output side write data 314 are generated. The memory access selector unit 335 switches between the memory control signal and write data from the external input / output signal synchronization unit 336 and the memory control signal and write data from the processor core unit 305, and writes the write data 317 and the write data to the processor built-in memory 304. By supplying the memory control signal 318 and switching the read data 319 from the processor built-in memory 304 to the processor core unit 305 and the external processor 328, the processor side read data (without holding) 320 is supplied to the read data holding unit 322, External input / output side read data 321 is supplied to the external processor 328. The processor built-in memory 304 outputs read data 319 to the memory access selector unit 335.

アクセス調停部315は、プロセッサコア部305からのライトイネーブル信号、リードイネーブル信号308と、外部入出力制御部310内で生成されるライトイネーブル信号、リードイネーブル信号313を監視し、プロセッサコア部305側のメモリ制御信号およびライト・リードデータと、外部入出力制御部310側のメモリ制御信号およびライト・リードデータとを切替えるため、外部入出力制御部310内のメモリアクセスセレクタ部335へセレクタ制御信号324を供給する。また、アクセス調停部315は、プロセッサコア部305からプロセッサ内蔵メモリ部304へのアクセスと、外部入出力制御部310からプロセッサ内蔵メモリ部304へのアクセスが同時に発生した場合に、プロセッサコア部305に供給するクロックをウェイトさせるためのウェイト要求信号316を生成する。   The access arbitration unit 315 monitors the write enable signal and read enable signal 308 from the processor core unit 305, and the write enable signal and read enable signal 313 generated in the external input / output control unit 310, and the processor core unit 305 side The selector control signal 324 is sent to the memory access selector unit 335 in the external input / output control unit 310 in order to switch the memory control signal and write / read data of the memory and the memory control signal and write / read data on the external input / output control unit 310 side. Supply. Further, the access arbitration unit 315 transfers the processor core unit 305 to the processor core unit 305 when access from the processor core unit 305 to the processor built-in memory unit 304 and access from the external input / output control unit 310 to the processor built-in memory unit 304 occur simultaneously. A wait request signal 316 for causing the supplied clock to wait is generated.

リードデータ保持部322は、外部入出力制御部310内のメモリアクセスセレクタ部335から出力されるプロセッサ側リードデータ(保持無し)320を保持し、プロセッサコア部305にプロセッサ側リードデータ323を供給する。   The read data holding unit 322 holds the processor side read data (no holding) 320 output from the memory access selector unit 335 in the external input / output control unit 310 and supplies the processor side read data 323 to the processor core unit 305. .

図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 data holding unit 322. In FIG. 4, the read data holding unit 322 updates the data at the rising edge of the clock next to the cycle in which the flip-flop enable signal 411 is “1”, and the read data output from the memory access selector unit 335 of the external input / output control unit 310. The flip-flop 401 that holds the data 320, the flip-flop 403 that delays the timing of the processor-side read enable (RE) signal 308 by one cycle of the clock 302 without wait control, and the wait request signal 316 that does not have wait control And a flip-flop 405 for delaying the timing of one cycle of 302. Further, an AND gate 407 that performs a logical product of a processor side read enable (RE) signal 308, a processor side read enable signal 404 delayed by one cycle, and a wait request signal 406 delayed by one cycle, and an output signal of the AND gate 407 When the selector control signal 408 is “1”, the held data output 402 is output to the processor side read data 323, and when the selector control signal 408 is “0”, the read data 320 is output to the processor side read data 323. And an AND gate 410 that takes a negative logical product of the processor side read enable signal 404 delayed by one cycle and the wait request signal 406 delayed by one cycle and generates a flip-flop enable signal.

以上のように構成された本実施の形態について、以下、その動作を図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 memory 304 monitors the access state of the external input / output control unit 310 and the processor core unit 305 to the memory 304 (S501). When only the external input / output control unit 310 is accessed from a state where there is no access to the memory 304 (S500) (A in S501), the access arbitration unit 315 switches the memory access selector unit 335 in the external input / output control unit 310. Switching to the external input / output control unit 310 side (S502), the external input / output control unit 310 accesses the memory 304 (S503). Thereafter, when the access to the memory 304 of the external input / output control unit 310 is completed (A in S503), the access to the memory 304 is completed (S504).

一方、外部入出力制御部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 memory 304 of the external input / output control unit 310 is completed (B in S503), the access arbitration unit 315 detects an access conflict and detects the processor core unit 305. In response to this, a wait request signal 316 is output, and the processor core unit 305 enters a wait state (S505). Thereafter, the external input / output control unit 310 accesses the memory 304 (S506). When the access to the memory 304 of the external input / output control unit 310 is completed, the wait state of the processor core unit 305 is released (S507).

アクセス競合がプロセッサコア部305のメモリ304への連続リードアクセス発生中に起こっていた場合(S508のY)は、プロセッサコア部305のリードデータとしてリードデータ保持部322の保持しているデータを供給する(S509)。   If access contention occurred during continuous read access to the memory 304 of the processor core unit 305 (Y in S508), the data held in the read data holding unit 322 is supplied as read data of the processor core unit 305. (S509).

一方、アクセス競合の発生がプロセッサコア部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 memory 304 of the processor core unit 305 (N in S508), the processor side read data (no holding) 320 is supplied as the read data of the processor core unit 305. To do. Thereafter, the access arbitration unit 315 switches the memory access selector unit 335 in the external input / output control unit 310 to the processor core unit 305 side (S510), and the processor core unit 305 accesses the memory 304 (S511).

なお、メモリ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 access arbitration unit 315 also performs the memory access selector unit 335 in the external input / output control unit 310. Is switched to the processor core unit 305 side (S510), and the processor core unit 305 accesses the memory 304 (S511). Thereafter, when the access to the memory 304 of the processor core unit 305 is completed (B in S511), the access to the memory 304 is completed (S504).

一方、プロセッサコア部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 / output control unit 310 before the access to the memory 304 of the processor core unit 305 is completed (A in S511), or when there is no access to the memory 304 (S500) When the input / output control unit 310 and the processor core unit 305 simultaneously access the memory 304 (B in S501), the access arbitration unit 315 detects an access conflict and outputs a wait request signal 316 to the processor core unit 305. The core unit 305 enters a wait state (S512). Thereafter, the access arbitration unit 315 switches the memory access selector unit 335 in the external input / output control unit 310 to the external input / output control unit 310 side (S513), and the external input / output control unit 310 accesses the memory 304 ( S506). The subsequent operation is as described above.

さらに本発明の実施の形態にかかる情報処理装置について、以下、その動作の詳細を図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 internal memory 304 from the external input / output control unit 310 causes a conflict when the processor core unit 305 accesses the processor internal memory 304 in a single shot. The timing chart of FIG. 7 shows a case where access from the external input / output control unit 310 to the processor built-in memory 304 is in contention while the processor core unit 305 continuously performs read access to the processor built-in memory 304.

図6において、プロセッサ側リードイネーブル信号308と、外部入出力側リードイネーブル信号313が図6のAのタイミングにおいて同時に発生した場合、図3のアクセス調停部315がアクセス競合を検出し、図3のクロック生成部301に対して、ウェイト要求信号316を供給する。   In FIG. 6, when the processor side read enable signal 308 and the external input / output side read enable signal 313 are simultaneously generated at the timing of FIG. 6A, the access arbitration unit 315 of FIG. A wait request signal 316 is supplied to the clock generation unit 301.

これにより、図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 clock 303 supplied to the processor core unit 305 to wait for one cycle at the B timing in FIG. The processor side address 306, the processor side CS signal 307, and the processor side read enable (RE) signal 308 output from the processor core unit 305 are output via the flip-flops 331 to 334 in the processor core unit 305, respectively. Therefore, at the timing B during the wait period of the processor core unit 305, the output state at the timing A is held.

このとき、図3のアクセス調停部315は図3の外部入出力制御部310内のメモリアクセスセレクタ部335を制御する。そして、外部入出力制御部310内のメモリアクセスセレクタ部335はプロセッサ内蔵メモリ304に対して、図6のタイミングAの期間、すなわちプロセッサコア部305がウェイト動作する1サイクル前の期間は外部入出力制御部310からのメモリ制御信号を供給し、図6のタイミングBの期間、すなわちプロセッサコア部305がウェイト動作している期間はプロセッサコア部305からのメモリ制御信号を供給する。   At this time, the access arbitration unit 315 in FIG. 3 controls the memory access selector unit 335 in the external input / output control unit 310 in FIG. Then, the memory access selector unit 335 in the external input / output control unit 310 is externally input / output with respect to the processor built-in memory 304 during the period of timing A in FIG. 6, that is, the period one cycle before the processor core unit 305 performs the wait operation. The memory control signal is supplied from the control unit 310, and the memory control signal from the processor core unit 305 is supplied during the period of timing B in FIG.

これによって図6のタイミングBの期間、すなわちプロセッサコア部305がウェイト動作している期間にプロセッサ内蔵メモリ304は外部入出力制御部310のアクセスによるリードデータをリードデータ319として出力し、図6のタイミングCの期間、すなわちプロセッサがウェイトから復帰した最初の1サイクルの期間ではプロセッサコア部305のアクセスによるリードデータをリードデータ319として出力する。図6のタイミングCの期間では、図4のセレクタ制御信号408は「0」となっており、プロセッサ側リードデータ323にはリードデータ319がプロセッサ側リードデータ(保持無し)320を経由して供給される。   Accordingly, the processor built-in memory 304 outputs the read data by the external input / output control unit 310 as read data 319 during the period of timing B in FIG. In the period of timing C, that is, in the period of the first cycle in which the processor returns from the wait state, the read data by the access of the processor core unit 305 is output as the read data 319. In the period of timing C in FIG. 6, the selector control signal 408 in FIG. 4 is “0”, and the read data 319 is supplied to the processor side read data 323 via the processor side read data (without holding) 320. Is done.

図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 memory 304, the processor built-in memory 304 is transferred to the processor built-in memory 304 from the external input / output control unit 310 during the period of timing A in FIG. 7. When there is an access, the wait request signal 316 is generated in the period of timing A in FIG. 7 as in the case of FIG. 6, and the processor core unit 305 enters the wait operation in the period of timing B.

このとき、図6の場合と同様に、図7のタイミングBの期間でプロセッサ内蔵メモリ304は外部入出力制御部310のアクセスによるリードデータをリードデータ319に出力し、図7のタイミングCの期間でプロセッサコア部305のアクセスによるリードデータをリードデータ319に出力する。   At this time, similarly to the case of FIG. 6, the processor built-in memory 304 outputs the read data by the access of the external input / output control unit 310 to the read data 319 in the period of timing B in FIG. Thus, the read data by the access of the processor core unit 305 is output to the read data 319.

しかしながら、このときプロセッサコア部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 memory 304 of the processor core unit 305 one cycle before in which the access to the processor built-in memory 304 of the processor core unit 305 and the access of the external input / output control unit 310 compete, The read data is output at timing A in FIG. 7, and at the next timing B, the processor core unit 305 is in the wait operation. Therefore, at the timing C when the processor core unit 305 returns from the wait state, the processor core unit 305 The necessary read data cannot be imported.

そこで、図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-flop 401 in FIG. 4 is held until the timing B and output to the retained data output 402. Further, the AND gate 407 in FIG. , The selector control signal 408 is set to “1” at timing B, whereby the selector 409 supplies the retained data output 402 to the processor-side read data 323, and the data at timing C of the processor core unit 305. The acquisition is possible.

一方、タイミングCにおいてはウェイト状態が解除されているため、セレクタ制御信号408は「0」に戻され、セレクタ409はプロセッサ側リードデータ323にリードデータ319を供給する。   On the other hand, since the wait state is released at timing C, the selector control signal 408 is returned to “0”, and the selector 409 supplies the read data 319 to the processor side read data 323.

このように、図7に示すようなプロセッサコア部305のプロセッサ内蔵メモリ部304への連続アクセスの最中に外部入出力制御部310からのアクセスが競合した場合にもアクセス調停を可能にしている。   As described above, even when access from the external input / output control unit 310 competes during continuous access to the processor built-in memory unit 304 of the processor core unit 305 as shown in FIG. .

以上のように本実施の形態は、命令をパイプライン処理するプロセッサとなるプロセッサコア部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 memory 304 serving as a memory built in the processor, and an input for executing preferential access to the memory. To an external input / output control unit 310 serving as an output control unit, a clock generation unit 301 serving as a clock generation unit that supplies a clock to the processor core unit 305, and a processor built-in memory 304 of the processor core unit 305 and the external input / output control unit 310 The access arbitration unit 315 is an access arbitration unit that monitors access and performs access arbitration. When the external input / output control unit 310 competes for access while the processor core unit 305 is accessing the processor built-in memory 304, the external input / output control unit 310 waits for the clock supplied to the processor core unit 305. The processor core unit 305 is accessed and the processor core unit 305 is accessed when the access to the processor built-in memory 304 of the external input / output control unit 310 is completed.

これにより、プロセッサコア部305が単発でプロセッサ内蔵メモリ304にアクセスする場合、ウェイトすることなく高速でプロセッサ内蔵メモリ304にアクセス可能な外部入出力制御部310を、プロセッサコア部305に供給するクロックをウェイトする回路を追加するだけの小規模な回路で実現することが出来る。   As a result, when the processor core unit 305 accesses the processor built-in memory 304 in a single shot, the external input / output control unit 310 that can access the processor built-in memory 304 at high speed without waiting is supplied with a clock to be supplied to the processor core unit 305. This can be realized with a small-scale circuit that simply adds a circuit to wait.

さらにプロセッサコア部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 data holding unit 322 serving as a holding unit for holding output data from the memory is provided, and the external input / output control unit 310 is built in the processor when the processor core unit 305 continuously accesses the processor built-in memory 304 for reading. Even when access to the memory 304 occurs and access contention occurs, the data held in the read data holding unit 322 is supplied to the processor core unit 305 and access to the processor built-in memory 304 is resumed. Access from the external input / output control unit 310 during continuous access is also possible.

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 SYMBOLS 101 Data storage device 102 1st data input / output device 103 2nd data input / output device 104 Clock generator 105 Write data 106 Control signal 107 Write data 108 Control signal 109 Access arbitration device 110 Access selection signal 111 Clock wait request signal 112 Control signal selector 113 Write data 114 Control signal 115 Read data 301 Clock generation unit 302 Clock without wait control 303 Wait-controlled clock 304 Processor built-in memory unit 305 Processor core unit 306 Processor side address 307 Processor side CS signal 308 Processor side WE / RE signal 309 Processor side write data 310 External input / output control unit 311 External input / output side address 312 External input / output side CS signal 313 External input WE / RE signal on output side 314 External I / O side write data 315 Access arbitration unit 316 Wait request signal 317 Write data 318 Memory control signal 319 Read data 320 Processor side read data (no hold)
321 External input / output read data 322 Read data holding unit 323 Processor side read data 324 Selector control signal 325 External input / output address 326 External input / output WE / RE signal 327 External input / output write data 328 External processor 330 Memory access control unit 331-334 Flip-flop 335 Memory access selector section 336 External input / output signal synchronization section 337 Clock wait control section 338 Clock oscillation section 401 Flip-flop 402 Holding data output 403 Flip-flop 404 Processor-side RE signal delayed by one cycle 405 Flip-flop 406 One cycle delayed Wait request signal 407 AND gate 408 selector control signal 409 selector 410 AND gate

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:
請求項2に記載の情報処理装置であって、
前記プロセッサと前記入出力制御手段の前記内蔵メモリへのアクセスを切替える選択手段をさらに備え、
前記アクセス調停手段は、前記プロセッサの前記内蔵メモリへのアクセス中に前記入出力制御手段の前記内蔵メモリへのアクセス要求が発生すると、前記選択手段へ制御信号を出力し、
前記制御信号を受けた前記選択手段は、前記プロセッサのアクセスを前記入出力制御手段の前記内蔵メモリへのアクセスに切替えることを特徴とする情報処理装置。
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.
請求項2に記載の情報処理装置であって、
前記プロセッサのウェイト動作前に前記内蔵メモリが出力していたリードデータを前記プロセッサのウェイト動作中に保持しておく保持手段をさらに備え、
前記アクセス調停手段は、前記プロセッサへ供給するリードデータを、前記内蔵メモリが出力するリードデータと前記保持手段が保持しているリードデータとの間で切替えることを特徴とする情報処理装置。
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のデータ入出力手段と、前記第2のデータ入出力手段に供給されるノーマルクロック信号を生成するクロック発振部と、前記ノーマルクロック信号が有するサイクルの整数倍のサイクルを有するウェイトクロック信号を生成するクロックウェイト制御部とを備えるクロック生成手段と、を含む情報処理装置のメモリアクセス調停方法であって、
前記第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:
JP2010192319A 2010-08-30 2010-08-30 Information processing apparatus and memory access arbitration method Withdrawn JP2011018355A (en)

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)

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