JPH0877061A - Information processor - Google Patents

Information processor

Info

Publication number
JPH0877061A
JPH0877061A JP21090294A JP21090294A JPH0877061A JP H0877061 A JPH0877061 A JP H0877061A JP 21090294 A JP21090294 A JP 21090294A JP 21090294 A JP21090294 A JP 21090294A JP H0877061 A JPH0877061 A JP H0877061A
Authority
JP
Japan
Prior art keywords
address
cpu
access
output
expected
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP21090294A
Other languages
Japanese (ja)
Inventor
Masayuki Inoue
雅之 井上
Shigeto Osuji
成人 大條
Kazuhisa Nishimoto
和久 西本
Tsukasa Yamauchi
司 山内
Masahito Fukushima
雅仁 福島
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.)
Hitachi Ltd
Hitachi Advanced Digital Inc
Original Assignee
Hitachi Ltd
Hitachi Video and Information System Inc
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 Hitachi Ltd, Hitachi Video and Information System Inc filed Critical Hitachi Ltd
Priority to JP21090294A priority Critical patent/JPH0877061A/en
Publication of JPH0877061A publication Critical patent/JPH0877061A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To shorten an access time and enable fast access when access is caused as expected by detecting an address advanced output cycle and outputting an estimated address to a high-speed access target in advance. CONSTITUTION: A CPU state deciding means 102 specifies storage devices 108 and 109 to be accessed fast for which an address is determined in advance if possible from a CPU address and a state signal, and sends an indication for latching the address to an address storage means 104. An estimated address output means 105 generates an address that a CPU 101 should access next as an estimated address on the basis of the CPU address latched by the address storage means 104. When the CPU 101 outputs an actual CPU address, a coincidence deciding means 103 compares the CPU address with the estimated address and reads and writes data out of and to the storage device 108 (109) in fast timing when the comparison result shows a coincidence.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はCPUと記憶装置で構成
する情報処理装置に係わり、特に、CPUの記憶装置へ
のアクセス時間を減少させ、処理速度を向上させるメモ
リ制御方式に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information processing apparatus composed of a CPU and a storage device, and more particularly to a memory control system for reducing the access time of the CPU to the storage device and improving the processing speed.

【0002】[0002]

【従来の技術】CPUと記憶装置で構成される情報処理
装置で処理速度を向上させる場合、CPUの動作周波数
の高速化が1つの方法となる。しかし、CPUの動作が
高速化するにつれ、CPUの読み書きする記憶装置への
アクセス時間が処理時間の大半を占めるようになってき
た。この記憶装置アクセスの高速化の手法として例え
ば、CPUの動作に比べ比較的アクセスタイムの遅いR
OM(読み込み専用記憶装置)のアクセスを高速化する
方法として、特開平3−294945号公報がある。当
該従来技術では、ROMの出力するデータをラッチする
手段を設け、データラッチ後アクセス終了前に現在のア
ドレスを1カウントアップしたアドレスを記憶装置に出
力する。次にCPUが実際に出力したアドレスが上記カ
ウントアップアドレスと一致する場合、上記カウントア
ップアドレスの出力開始タイミングからメモリアクセス
時間が確保でき、アクセスタイムが短くすることができ
た。
2. Description of the Related Art In order to improve the processing speed of an information processing apparatus including a CPU and a storage device, one method is to increase the operating frequency of the CPU. However, as the operation of the CPU becomes faster, the access time to the storage device read and written by the CPU has become the majority of the processing time. As a method of speeding up the storage device access, for example, R, which has a relatively slow access time compared to the operation of the CPU
Japanese Patent Laid-Open No. 3-294945 discloses a method for speeding up access to an OM (read-only storage device). In the related art, a means for latching the data output from the ROM is provided, and after the data latch, the current address is incremented by 1 before the access is completed and the address is output to the storage device. Next, when the address actually output by the CPU matches the count-up address, the memory access time can be secured from the output start timing of the count-up address, and the access time can be shortened.

【0003】[0003]

【発明が解決しようとする課題】当該従来技術では、ア
クセス時間の遅いROMのアクセスを高速化できるとい
う利点があった。
The conventional technique has the advantage that the ROM of which access time is slow can be accessed at high speed.

【0004】しかし、ROMとROM以外の記憶装置、
例えばDRAM(読み書き可能記憶装置)を含む記憶装
置構成で、ROMとDRAMのアクセスがランダムに行
われる場合についての配慮がなされていないため、DR
AMのアクセス後のROMのアクセスは高速化できな
い。
However, a ROM and a storage device other than the ROM,
For example, in a storage device configuration including a DRAM (readable / writable storage device), since no consideration is given to the case where the ROM and the DRAM are randomly accessed, the DR
ROM access after AM access cannot be speeded up.

【0005】また、記憶装置構成をデータ幅の異なるR
OMで構成する場合、予想アドレスを生成するために現
在のアドレスに加算するための加算値をデータ幅により
変えなければならない。しかし、このデータ幅による配
慮がなされていないため記憶装置構成として、データ幅
の異なるROMで構成することができなかった。
In addition, the storage device configuration is changed to R with different data widths.
In the case of the OM, the added value for adding to the current address to generate the expected address must be changed according to the data width. However, since the data width is not taken into consideration, the storage device cannot be composed of ROMs having different data widths.

【0006】また、ROMの出力するデータをラッチす
る手段を設ける必要があり、部品点数の増加などの課題
がある。さらに、ROMのデータがラッチを通過する
際、遅延時間が発生するためアクセス時間が増大すると
いう課題がある。
Further, it is necessary to provide a means for latching the data output from the ROM, which causes a problem such as an increase in the number of parts. Further, there is a problem that the access time increases because a delay time occurs when the ROM data passes through the latch.

【0007】本発明の目的は、少なくとも1つ以上の記
憶手段が混在する情報処理装置に適用可能で、データの
ラッチ手段が不要な記憶装置の高速アクセス方式の実現
にある。
An object of the present invention is to realize a high-speed access system for a storage device which can be applied to an information processing device in which at least one storage device is mixed and which does not require a data latching device.

【0008】[0008]

【課題を解決するための手段】上述した問題を解決する
ため、本発明では、アクセスデータアドレスを指示する
CPUアドレスと、アクセス開始タイミング及びリード
/ライトアクセスを区別する信号を含むステート信号を
出力するCPU(中央演算処理装置)とデータを記憶す
る記憶手段とを備え、CPUアドレスをラッチするアド
レス記憶手段と、CPUが次にアクセスすべきアドレス
を生成する予想アドレス出力手段と、記憶装置に出力す
るアドレスをCPUアドレスか予想アドレスのいずれか
に切り換える切換手段と、予想アドレスとCPUアドレ
スを比較してその結果を出力する一致判定手段と、CP
Uの出力するステート信号とCPUアドレスから制御信
号を生成するCPUステート判定手段を設けた。
In order to solve the above-mentioned problems, the present invention outputs a state signal including a CPU address indicating an access data address and a signal for distinguishing access start timing and read / write access. A CPU (Central Processing Unit) and a storage unit for storing data are provided, and an address storage unit for latching a CPU address, an expected address output unit for generating an address to be accessed next by the CPU, and an output to the storage unit. Switching means for switching the address to either the CPU address or the expected address, a coincidence judging means for comparing the expected address with the CPU address and outputting the result, CP
A CPU state determination means for generating a control signal from the state signal output by U and the CPU address is provided.

【0009】[0009]

【作用】CPUステート手段は、CPUアドレスとステ
ート信号から(1)可能ならばアドレスを先行して確定
する高速アクセス対象の記憶装置の特定、(2)アドレ
スをアクセスサイクルの少なくとも途中で終了できるア
クセスの特定、(3)アクセスサイクルの開始タイミン
グの判定、を行う。(1)高速アクセス対象の記憶装置
へのアクセスである場合、アドレス記憶装置にアドレス
のラッチを指示する。また、(2)アドレスの出力をア
クセス期間の途中で終了可能であるアクセスである場
合、アドレス出力終了時に切換手段をAに切り換える。
また、(3)アクセスサイクルの開始タイミングにおい
て、一致判定手段に判定を指示する。
The CPU state means (1) specifies a memory device to be accessed at high speed, which determines the address in advance from the CPU address and the state signal if possible, and (2) accesses which can end the address at least in the middle of the access cycle. Is specified, and (3) the start timing of the access cycle is determined. (1) If the access is to the storage device targeted for high-speed access, the address storage device is instructed to latch the address. Further, (2) in the case of an access in which the output of the address can be completed in the middle of the access period, the switching means is switched to A when the output of the address is completed.
Further, (3) at the start timing of the access cycle, the coincidence determination means is instructed to make a determination.

【0010】アドレス記憶手段は、CPUステート判定
手段からラッチ指示を受けるとCPUアドレスをラッチ
する。
The address storage means latches the CPU address when receiving the latch instruction from the CPU state determination means.

【0011】予想アドレス出力手段は、アドレス記憶手
段のラッチしたCPUアドレスをもとに、CPUが次に
アクセスすべきアドレスを、アクセス対象の記憶装置の
データ幅を考慮して、予想アドレスとして生成する。
The expected address output means generates an address to be accessed next by the CPU as an expected address in consideration of the data width of the storage device to be accessed, based on the CPU address latched by the address storage means. .

【0012】一致判定手段は、CPUステート判定手段
の判定指示を受けると、予想アドレス出力手段の出力す
る予想アドレスとCPUアドレスを比較し、結果をコマ
ンド生成手段に通知する。
Upon receiving the judgment instruction from the CPU state judging means, the coincidence judging means compares the predicted address output from the predicted address output means with the CPU address and notifies the command generating means of the result.

【0013】コマンド生成手段は、CPUのステート状
態と一致判定手段のアドレス比較結果をもとにアクセス
サイクルの長さを決定し、これに応じてメモリコマンド
信号、I/Oコマンド信号をメモリ・I/Oに出力す
る。さらにアクセス期間制御信号によりCPUのアクセ
スサイクル時間を制御する。
The command generation means determines the length of the access cycle based on the state state of the CPU and the result of the address comparison by the coincidence determination means, and the memory command signal and the I / O command signal are accordingly sent to the memory / I. Output to / O. Further, the access cycle control signal controls the access cycle time of the CPU.

【0014】切換手段は、CPUステート判定信号の切
り換え指示に応じて入力信号A・Bを切り換えアドレス
を出すタイミングを決定する。
The switching means determines the timing of switching the input signals A and B and outputting the address in accordance with the switching instruction of the CPU state determination signal.

【0015】[0015]

【実施例】以下、本発明の実施例を図1を用いて説明す
る。図1は、本実施例の情報処理装置の構成手段を示す
ブロック図である。図1において、101は情報処理装
置全体の制御をメモリA・Bに記憶されているプログラ
ムに応じて実行するCPUである。102は、CPU1
01のアクセスサイクルの開始タイミングや実行するア
クセスの種類を示すステート信号と、CPU101のア
クセス対象を示すCPUアドレスを入力として、(1)
アドレス記憶手段104のアドレスラッチ指示、(2)
一致判定手段103の一致判定指示、(3)切換手段1
06の切り換え指示を出力するCPUステート判定手段
である。103は、CPUステート判定手段の出力結果
に応じて、CPUアドレスと予想アドレス出力手段10
5の出力する予想アドレスを比較する一致判定手段であ
る。104は、CPUステート判定手段の判定指示に応
じて、CPUアドレスを記憶するアドレス記憶手段であ
る。105は、アドレス記憶手段104の保持するCP
Uアドレスに応じて、次のアクセスアドレスを予想・特
定する予想アドレス出力手段である。106は、CPU
ステート判定手段の指示に応じて、メモリA・BやI/
Oなどに出力するアドレスを切り換える切換手段であ
る。107は、一致判定手段103の判定結果に応じて
必要なアクセスサイクル期間を判断し、CPU101の
アクセス期間の制御と該アクセス期間に応じたコマンド
信号をメモリ・I/Oに出力するコマンド生成手段であ
る。
EXAMPLE An example of the present invention will be described below with reference to FIG. FIG. 1 is a block diagram showing the constituent means of the information processing apparatus of this embodiment. In FIG. 1, reference numeral 101 denotes a CPU that executes control of the entire information processing apparatus according to a program stored in the memories A and B. 102 is the CPU 1
The state signal indicating the start timing of the access cycle of 01 and the type of access to be executed, and the CPU address indicating the access target of the CPU 101 are input (1)
Address latch instruction of the address storage means 104, (2)
Matching determination instruction from the matching determination means 103, (3) switching means 1
The CPU state determination means outputs a switching instruction of 06. Reference numeral 103 denotes a CPU address and expected address output means 10 according to the output result of the CPU state determination means.
5 is a coincidence determining means for comparing the expected addresses output by the reference numeral 5. Reference numeral 104 is an address storage unit that stores a CPU address according to a determination instruction from the CPU state determination unit. 105 is a CP stored in the address storage means 104
It is a predicted address output means for predicting / specifying the next access address according to the U address. 106 is a CPU
According to the instruction of the state determination means, the memories A and B and I /
It is a switching means for switching the address output to O or the like. Reference numeral 107 denotes a command generation unit that determines a required access cycle period according to the determination result of the coincidence determination unit 103, controls the access period of the CPU 101, and outputs a command signal according to the access period to the memory / I / O. is there.

【0016】以下、本実施例の動作を図3〜7を用いて
説明する。本実施例では、CPUのアクセス対象である
メモリA・B、I/OのうちメモリA108のアクセス
に対して、アドレスの先行出力による高速化をおこなう
構成としている。図3はCPUステート判定手段102
の処理手順を示すフローチャート、図4はアドレス記憶
手段104の処理手順を示すフローチャート、図5は予
想アドレス出力手段105の処理手順を示すフローチャ
ート、図6は一致判定手段103の処理手順を示すフロ
ーチャート、図7はコマンド生成手段107の処理手順
を示すフローチャートである。
The operation of this embodiment will be described below with reference to FIGS. In this embodiment, the access to the memory A 108 of the memories A and B and the I / O to be accessed by the CPU is speeded up by the preceding output of the address. FIG. 3 shows the CPU state determination means 102.
4 is a flowchart showing the processing procedure of the address storage means 104, FIG. 5 is a flowchart showing the processing procedure of the expected address output means 105, and FIG. 6 is a flowchart showing the processing procedure of the match determination means 103. FIG. 7 is a flowchart showing the processing procedure of the command generating means 107.

【0017】CPUステート判定手段102では、図3
の手順で処理が実行される。処理3001で、CPU1
01のステート信号を監視し、アクセスサイクル(CP
Uサイクル)の開始を検知する。アクセスサイクルの先
頭で、処理3002でアドレスセレクト信号をB指定と
する。これにより、切換手段106でCPUアドレスが
選択・出力される。また、一致判定手段103に一致判
定指示を出す。一致判定処理103では、CPUアドレ
スと予想アドレスを元に判定をおこなう。判定中にアド
レス記憶手段104のアドレスが更新されてしまうと正
しい判定ができない。これを防止するために、一致判定
処理終了までの規定時間、待機する処理3004を実施
する。一致判定処理終了後に、処理3005でステート
情報を取得し、処理3006・3007でメモリA10
8に対するアクセスの場合にはアドレス記憶手段にアド
レスラッチ指示を出す。次に、処理3008〜3010
で現在のアクセスサイクルがアクセスサイクル終了より
早い時点でアドレス出力を完了できるサイクル(以下、
「アドレス先行出力可能サイクル」と称する)の場合、
アドレス出力完了時点まで処理3009で待った後、処
理3010で切換手段106に通知するアドレスセレク
ト信号を予想アドレスに切り換える。これによりアクセ
スサイクルの途中から、次のアクセスサイクルの予想ア
ドレスを出力可能となる。アドレス先行出力可能サイク
ルとしては、DRAMアクセスサイクルなどのようにア
ドレス保持期間がアクセスサイクルより短いアクセスサ
イクルや、アイドルサイクルなどのように特にアドレス
出力を必要としないサイクルが挙げられる。
In the CPU state judging means 102, as shown in FIG.
The process is executed according to the procedure. In process 3001, CPU1
01 state signal is monitored and access cycle (CP
U cycle) start is detected. At the beginning of the access cycle, the address select signal is designated as B in process 3002. As a result, the switching means 106 selects and outputs the CPU address. Further, it issues a match determination instruction to the match determining means 103. In the match determination processing 103, a determination is made based on the CPU address and the expected address. If the address of the address storage means 104 is updated during the determination, the correct determination cannot be made. In order to prevent this, a process 3004 of waiting for a specified time until the end of the matching determination process is performed. After the match determination process is completed, the state information is acquired in process 3005, and the memory A10 is acquired in processes 3006 and 3007.
In the case of access to 8, the address latch instruction is issued to the address storage means. Next, processing 3008 to 3010
The cycle in which the address output can be completed at the point when the current access cycle is earlier than the end of the access cycle (hereinafter,
In the case of "address preceding output enable cycle"),
After waiting in step 3009 until the address output is completed, in step 3010 the address select signal notified to the switching means 106 is switched to the expected address. As a result, the predicted address of the next access cycle can be output from the middle of the access cycle. Examples of the address preceding output enable cycle include an access cycle in which an address holding period is shorter than an access cycle such as a DRAM access cycle, and a cycle in which no address output is particularly required such as an idle cycle.

【0018】アドレス記憶手段104では、図4の処理
が実行される。処理401でCPUステート判定手段1
02が処理3007で出力するCPUアドレスラッチ指
示の通知を検知し、処理402でCPUアドレスをラッ
チ(記憶)する。以上の処理により、CPUステート判
定手段102でアドレスを前のアクセスサイクルの途中
から可能な場合には先行して出力したいメモリ(以下、
「高速アクセスターゲット」と称する)に対するアクセ
スの場合にアドレスラッチ指示を出し、アドレス記憶手
段104で前回の高速アクセスターゲットのアドレスを
ラッチ保持可能となる。
The address storage means 104 executes the processing shown in FIG. In process 401, CPU state determination means 1
02 detects the notification of the CPU address latch instruction output in process 3007, and latches (stores) the CPU address in process 402. By the above processing, if the CPU state determination unit 102 can output an address in the middle of the previous access cycle, the memory to be output in advance (hereinafter,
In the case of access to a "high-speed access target"), an address latch instruction is issued and the address of the previous high-speed access target can be latched and held in the address storage means 104.

【0019】予想アドレス出力手段105では、図5の
処理が実行される。処理501で、アドレス記憶手段1
04の保持する前回の高速アクセスターゲットに対する
アクセスアドレスを取得する。次に、処理502で予想
アドレスを生成する。予想アドレスの生成方法として
は、バイトアクセスが連続することを想定し、アドレス
記憶手段のアドレスに1加えたものを予想アドレスとす
る方式や、ワードアクセスが連続することを想定し、ア
ドレス記憶手段のアドレスに2加えたものを予想アドレ
スとする方式などが適用可能であるが、予想アドレスの
生成方法に関しては特にこれを限定するものではない。
次に処理503・504で生成した予想アドレスが高速
アクセスターゲットであるメモリAの領域内に収まって
いるか判定し、領域外である場合には処理504で領域
内に収まるように予想アドレスを修正する。
The expected address output means 105 executes the processing shown in FIG. In process 501, the address storage unit 1
The access address for the previous high-speed access target held by 04 is acquired. Next, in process 502, an expected address is generated. As a method of generating the expected address, it is assumed that byte access is continuous, a method in which one is added to the address of the address storage means is used as the expected address, and that word access is continuous, It is possible to apply a method such as adding two to the address as the predicted address, but the method of generating the predicted address is not particularly limited.
Next, it is determined whether the predicted address generated in processing 503 and 504 is within the area of the memory A that is the high-speed access target, and if it is outside the area, the predicted address is corrected so that it is included in the area in processing 504. .

【0020】一致判定手段103では、図6の処理が実
行される。処理601でCPUステート判定手段102
が処理3003で通知する一致判定指示を検知する。一
致判定指示があった場合は、処理602でCPUアドレ
スと予想アドレスの比較をおこない、アドレスが一致し
た場合は処理603で一致判定結果信号を短縮指示に設
定する。アドレスが一致しない場合は、処理604で一
致判定結果信号を通常指示に設定する。
The match determining means 103 executes the processing shown in FIG. In processing 601, the CPU state determination means 102
Detects the match determination instruction notified in process 3003. If there is a match determination instruction, the CPU address and the expected address are compared in process 602, and if the addresses match, the process 603 sets the match determination result signal to the shortening instruction. If the addresses do not match, the match determination result signal is set to the normal instruction in step 604.

【0021】コマンド生成手段107では、図7の処理
が実行される。処理701で、CPU101のステート
情報を取得し、アクセスサイクルの種類特定やアクセス
サイクルのタイミング同期をおこなう。次に処理702
で、一致判定手段103が処理603または604で通
知する一致判定信号の状態を検知し、予想アドレスがC
PUアドレスと一致し、アクセスサイクルの短縮が可能
な場合は処理703・704を実行する。また、アドレ
スが一致しない通常処理の場合には処理703・704
を実行する。処理703・704では、高速アクセスタ
ーゲットであるメモリA108に先行してアドレスを出
力してあるので、アクセスサイクル先頭からのアクセス
時間の短縮が可能となり、早期アクセスタイミング(図
2のサイクル3)でコマンド信号を出力する。さらに、
CPU101に対してはアクセス期間制御信号により早
期アクセスタイミングにあわせたアクセスサイクルタイ
ミング制御(WAIT制御)を実施する。処理705・
706では、メモリA・B、I/Oに対する先行アドレ
ス出力はないので、アクセスサイクル先頭から通常アク
セス時間が必要となり、通常アクセスタイミング(図2
のサイクル1・2)でコマンド信号を出力する。さら
に、CPU101に対してはアクセス期間制御信号によ
り通常アクセスタイミングにあわせたアクセスサイクル
タイミング制御(WAIT制御)を実施する。
The command generating means 107 executes the processing shown in FIG. In process 701, the state information of the CPU 101 is acquired, the type of access cycle is specified, and the timing of the access cycle is synchronized. Then process 702
Then, the match determination means 103 detects the state of the match determination signal notified in the processing 603 or 604, and the expected address is C
If it matches the PU address and the access cycle can be shortened, the processes 703 and 704 are executed. Also, in the case of normal processing in which the addresses do not match, processing 703 and 704
To execute. In the processes 703 and 704, since the address is output prior to the memory A 108 which is the high-speed access target, the access time from the beginning of the access cycle can be shortened, and the command can be issued at the early access timing (cycle 3 in FIG. 2). Output a signal. further,
For the CPU 101, access cycle timing control (WAIT control) is performed in accordance with the early access timing by the access period control signal. Processing 705
In 706, since the preceding addresses are not output to the memories A and B and I / O, the normal access time is required from the beginning of the access cycle, and the normal access timing (see FIG.
The command signal is output in cycle 1 and 2). Further, the CPU 101 executes the access cycle timing control (WAIT control) matched with the normal access timing by the access period control signal.

【0022】以上の処理を行うことにより、アドレス先
行出力可能サイクルを検知し、アドレス先行出力可能サ
イクルの場合は高速アクセスターゲットに対する予想ア
ドレスを先行出力しておき、該高速アクセスターゲット
に対するアクセスが予想どおりに発生した場合には、ア
クセス時間の短縮が可能となる。
By performing the above processing, the address preceding output enable cycle is detected, and in the case of the address preceding output enable cycle, the expected address for the high speed access target is output in advance, and the access to the high speed access target is performed as expected. If the error occurs, the access time can be shortened.

【0023】以上述べた本実施例の動作例を図2を用い
て説明する。図2は、本実施例の情報処理装置のアクセ
スサイクルのタイミングを示すタイミングチャートであ
る。図2において、サイクル1・3は高速アクセスター
ゲットに対するアクセスサイクル、サイクル2はアドレ
ス先行出力可能サイクルである。サイクル1で、CPU
ステート判定手段102はアドレス記憶手段にアドレス
ラッチ指示をだし、アドレス記憶手段104はCPUア
ドレスNを記憶する。予想アドレス出力手段105は予
想アドレスN+1を生成出力する。サイクル1では、一
致判定手段103の判定結果は不一致であったとする。
An operation example of the above-described embodiment will be described with reference to FIG. FIG. 2 is a timing chart showing the timing of the access cycle of the information processing apparatus of this embodiment. In FIG. 2, cycles 1 and 3 are access cycles for the high-speed access target, and cycle 2 is an address preceding output enable cycle. CPU in cycle 1
The state determination means 102 issues an address latch instruction to the address storage means, and the address storage means 104 stores the CPU address N. The predicted address output means 105 generates and outputs the predicted address N + 1. In cycle 1, it is assumed that the determination result of the coincidence determination means 103 does not match.

【0024】次のサイクル2は、アドレス先行出力可能
サイクルである。CPUステート判定手段101ではア
ドレス先行出力可能サイクルであることを検知し、切換
手段106をサイクル2のアクセスに必要なアドレスM
の出力完了タイミングでBからAに切り換える。これに
より、サイクル2に必要なアドレスMの出力期間完了後
のサイクル2期間中に次のアクセスサイクルの予想アド
レスを先行出力可能となる(図2中期間R)。サイクル
3では、CPUステート判定手段102の指示により一
致判定手段103がCPUアドレスN+1と予想アドレ
スN+1を比較し、一致していると判定する。これによ
りコマンド生成手段107にアクセス期間の短縮指示が
出力され、コマンド生成手段107で早期アクセスタイ
ミングでコマンド信号が出力される(図2中期間S)と
ともにCPUのアクセスタイミング制御がおこなわれ
る。
The next cycle 2 is an address preceding output enable cycle. The CPU state determination means 101 detects that the address preceding output is possible, and the switching means 106 uses the address M required for the cycle 2 access.
The output is switched from B to A at the output completion timing. As a result, the predicted address of the next access cycle can be output in advance during the cycle 2 period after the completion of the output period of the address M required for the cycle 2 (period R in FIG. 2). In cycle 3, the match determination means 103 compares the CPU address N + 1 with the expected address N + 1 according to an instruction from the CPU state determination means 102, and determines that they match. As a result, an instruction to shorten the access period is output to the command generation unit 107, a command signal is output from the command generation unit 107 at an early access timing (period S in FIG. 2), and the access timing of the CPU is controlled.

【0025】これにより、サイクル3では高速アクセス
ターゲットに通常アクセスでアクセスするのと比較して
アクセス期間の短縮が可能となり、高速アクセスができ
る。
As a result, in cycle 3, the access period can be shortened as compared with the normal access to the high-speed access target, and high-speed access can be performed.

【0026】本実施例において、CPUステート判定手
段102、一致判定手段103、アドレス記憶手段10
4、予想アドレス出力手段105、コマンド生成手段1
07の各手段はその1部またはすべてをハードウェアま
たはCPUなどの実行可能なソフトウェアプログラムで
実現可能であり、実現方法に関してはこれを特に限定す
るものではない。
In the present embodiment, the CPU state judging means 102, the coincidence judging means 103, the address storing means 10
4, expected address output means 105, command generation means 1
Part or all of the means 07 can be implemented by hardware or an executable software program such as a CPU, and the implementation method is not particularly limited.

【0027】また、予想アドレス出力手段の処理502
での予想アドレス生成方法として、高速アクセスターゲ
ット(メモリ)のデータ幅に着目し、データ幅が8ビッ
トでは予想アドレス=記憶アドレス+1とし、データ幅
が16ビットでは、予想アドレス=記憶アドレス+2と
するなど、データ幅に応じて予想アドレスを決定する方
式も可能である。さらに、高速アクセスターゲットが複
数種類のメモリより構成される場合においては、予想ア
ドレスの生成方法を前期高速アクセスターゲットメモリ
の種類に応じて可変とする構成も可能である。
Further, processing 502 of the expected address output means
As an expected address generation method in the above, paying attention to the data width of the high-speed access target (memory), when the data width is 8 bits, the expected address = memory address + 1, and when the data width is 16 bits, the expected address = memory address + 2. A method of determining the expected address according to the data width is also possible. Further, when the high-speed access target is composed of a plurality of types of memories, it is possible to change the method of generating the expected address in accordance with the type of the high-speed access target memory in the previous period.

【0028】予想アドレスの生成方法に関しては、さら
に高速アクセスターゲットメモリの種類と関係なく予想
アドレスの生成方法を少なくとも1つ以上もち、ユーザ
設定またはシステムの状況判断に応じて該生成方法を反
抗可能とする構成も可能である。
Regarding the method of generating the expected address, there is at least one method of generating the expected address regardless of the type of the high-speed access target memory, and the generation method can be rebelled according to the user setting or the system status judgment. It is also possible to have a configuration.

【0029】また、予想アドレス生成の元データであ
る、ラッチアドレスを保持するアドレス記憶手段104
で、高速アクセスターゲットのアドレス情報を無条件に
ラッチする構成の他に、たとえば、リードアクセスの
み、ライトアクセスのみ、コードフェッチ動作のみ、ア
ドレスをラッチする構成や、その他特定の条件発生時に
のみアドレスをラッチする構成も可能であり、アドレス
もラッチ条件は特にこれを限定するものではない。
Further, the address storage means 104 for holding the latch address which is the original data for generating the expected address.
In addition to the configuration that unconditionally latches the address information of the high-speed access target, for example, only the read access, the write access, the code fetch operation only, the address is latched, and the address is latched only when a specific condition occurs. A latch configuration is also possible, and the address and latch conditions are not particularly limited.

【0030】また、高速アクセスターゲットをメモリ以
外のI/Oなどのデバイスとする構成や、メモリとメモ
リ以外のデバイスの混成とする構成も可能である。
Further, the high-speed access target may be a device other than the memory, such as an I / O device, or a combination of the memory and the device other than the memory.

【0031】[0031]

【発明の効果】本発明によれば、高速アクセスターゲッ
トのメモリに対するCPUアクセス期間を短縮可能とな
り、高速アクセスが可能となる。
According to the present invention, the CPU access period to the memory of the high speed access target can be shortened, and the high speed access can be realized.

【0032】さらに、高速アクセスだが高価なメモリが
必要な情報処理装置において、アクセス期間の短縮によ
り低速で安価なメモリを用いてほぼ同様の高速アクセス
が可能となり、情報処理装置のコスト低減が可能とな
る。
Furthermore, in an information processing apparatus which requires high-speed access but expensive memory, the access period is shortened, and thus the same high-speed access can be performed by using a low-speed and inexpensive memory, and the cost of the information processing apparatus can be reduced. Become.

【図面の簡単な説明】[Brief description of drawings]

【図1】第1の実施例の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of a first embodiment.

【図2】第1の実施例で予想アドレスの出力によるアク
セス時間の短縮を示す説明図である。
FIG. 2 is an explanatory diagram showing shortening of access time by output of an expected address in the first embodiment.

【図3】CPUステート判定手段102の動作フローチ
ャートである。
FIG. 3 is an operation flowchart of CPU state determination means 102.

【図4】アドレス記憶手段104の動作フローチャート
である。
FIG. 4 is an operation flowchart of address storage means 104.

【図5】予想アドレス出力手段105の動作フローチャ
ートである。
5 is an operation flowchart of expected address output means 105. FIG.

【図6】一致判定手段103の動作フローチャートであ
る。
FIG. 6 is an operation flowchart of the match determination means 103.

【図7】コマンド生成手段107の動作フローチャート
である。
FIG. 7 is an operation flowchart of command generation means 107.

【符号の説明】[Explanation of symbols]

101…CPU(中央演算処理装置)、102…CPU
ステート判定手段、103…一致判定手段、104…ア
ドレス記憶手段、105…予想アドレス出力手段、10
6…切換手段、107…コマンド生成手段、108,1
09…記憶装置。
101 ... CPU (Central Processing Unit), 102 ... CPU
State determining means, 103 ... Matching determining means, 104 ... Address storage means, 105 ... Expected address output means, 10
6 ... Switching means, 107 ... Command generating means, 108, 1
09 ... Storage device.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 西本 和久 神奈川県横浜市戸塚区吉田町292番地株式 会社日立画像情報システム内 (72)発明者 山内 司 神奈川県横浜市戸塚区吉田町292番地株式 会社日立製作所映像メディア研究所内 (72)発明者 福島 雅仁 茨城県日立市東多賀町一丁目1番1号株式 会社日立製作所情報映像メディア事業部内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Kazuhisa Nishimoto 292 Yoshida-cho, Totsuka-ku, Yokohama, Kanagawa Stock Company Hitachi Image Information Systems (72) Inventor Tsukasa Yamauchi 292 Yoshida-cho, Totsuka-ku, Yokohama, Kanagawa (72) Inventor Masahito Fukushima, 1-1 1-1 Higashitaga-cho, Hitachi-shi, Ibaraki Ltd. Information & Media Division, Hitachi, Ltd.

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】CPU(中央演算処理装置)と情報を記憶
するメモリなどの記憶手段を少なくとも1つ以上備える
情報処理装置において、 前記CPUの出力したCPUアドレスを保持するアドレ
ス記憶手段と、CPUアドレスから予想アドレスを生成
する予想アドレス出力手段と、CPUアドレスと予想ア
ドレスを比較する一致判定手段と、前記記憶装置に出力
するアドレスをCPUアドレスと予想アドレスのいずれ
かに切り換える切換手段と、前記記憶装置のアクセスに
必要なコマンドとアクセス期間を制御する信号を生成す
るコマンド生成手段と、前記CPUのアクセス開始とア
クセス種別を示すステート信号を受けて、上記各手段を
制御するCPUステート判定手段を設け、 前記CPUが前記記憶装置にアクセスする際、メモリア
ドレス出力期間がアクセス期間より短い場合、メモリア
ドレス出力期間終了後前記CPUアドレスが指示される
前に予想アドレスをメモリアドレスとして、前記記憶装
置に出力し、前記CPUにより実際のCPUアドレスが
出力された時、CPUアドレスと予想アドレスを比較
し、比較した結果が一致する場合、早いタイミングで前
記記憶装置のデータを読み書きする手段を設けたことを
特徴とする情報処理装置。
1. An information processing apparatus comprising a CPU (Central Processing Unit) and at least one storage means such as a memory for storing information, comprising: an address storage means for holding a CPU address output from the CPU; and a CPU address. An expected address output means for generating an expected address from the CPU, a match determination means for comparing the CPU address with the expected address, a switching means for switching the address output to the storage device to either the CPU address or the expected address, and the storage device. A command generation means for generating a command necessary for access of the CPU and a signal for controlling an access period, and a CPU state determination means for controlling each of the above means by receiving a state signal indicating an access start and an access type of the CPU, When the CPU accesses the storage device, the memory address is When the output period is shorter than the access period, when the expected address is output to the storage device as the memory address before the CPU address is instructed after the end of the memory address output period, and the actual CPU address is output by the CPU. An information processing apparatus comprising means for reading and writing data in the storage device at an early timing when the CPU address and the expected address are compared and the compared results match.
【請求項2】請求項1の情報処理装置において、前記記
憶装置の少なくとも1つをDRAMとし、前記メモリア
ドレス出力期間がアクセス期間より短いアクセスをDR
AMアクセスとしたCPUステート判定手段を設けたこ
とを特徴とする情報処理装置。
2. The information processing apparatus according to claim 1, wherein at least one of the storage devices is a DRAM, and access for which the memory address output period is shorter than the access period is DR.
An information processing apparatus comprising a CPU state determination means for AM access.
【請求項3】請求項1の情報処理装置において、前記メ
モリアドレス出力期間がアクセス期間より短いアクセス
をCPUの内部処理サイクルまたは、実行命令のないア
イドルサイクルのいずれかまたは、両方としたCPUス
テート判定手段を設けたことを特徴とする情報処理装
置。
3. The information processing apparatus according to claim 1, wherein the CPU state determination is such that the access in which the memory address output period is shorter than the access period is either the internal processing cycle of the CPU or the idle cycle without an execution instruction, or both. An information processing apparatus comprising means.
【請求項4】請求項1,2又は3の情報処理装置におい
て、予想アドレスによるアクセス対象とするデバイスの
データ幅に応じて、予想アドレスの生成方法をかえる予
想アドレス出力手段を設けたことを特徴とする情報処理
装置。
4. The information processing apparatus according to claim 1, 2 or 3, further comprising: expected address output means for changing a method of generating the expected address according to a data width of a device to be accessed by the expected address. Information processing device.
【請求項5】請求項4の情報処理装置において、予想ア
ドレス記憶手段で記憶するアドレスの条件として、デバ
イスの種類や読み込み/書き込みなどのアクセス種類を
判定条件の少なくとも1つとするCPUステート判定手
段を設けたことを特徴とする情報記憶装置。
5. An information processing apparatus according to claim 4, further comprising: a CPU state determining means for determining at least one of a determination condition, such as a device type or an access type such as read / write, as an address condition stored in the expected address storage means. An information storage device provided.
JP21090294A 1994-09-05 1994-09-05 Information processor Pending JPH0877061A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21090294A JPH0877061A (en) 1994-09-05 1994-09-05 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21090294A JPH0877061A (en) 1994-09-05 1994-09-05 Information processor

Publications (1)

Publication Number Publication Date
JPH0877061A true JPH0877061A (en) 1996-03-22

Family

ID=16596969

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21090294A Pending JPH0877061A (en) 1994-09-05 1994-09-05 Information processor

Country Status (1)

Country Link
JP (1) JPH0877061A (en)

Similar Documents

Publication Publication Date Title
JP2002041489A (en) Synchronizing signal generation circuit, processor system using the same and synchronizing signal generating method
JPH1115675A (en) Interruption controller and control system
US7702885B2 (en) Firmware extendable commands including a test mode command for a microcontroller-based flash memory controller
JP3304444B2 (en) Vector processing equipment
JPH0877061A (en) Information processor
JP3462245B2 (en) Central processing unit
JP3169878B2 (en) Memory control circuit
JPH0877143A (en) Vector data processor
JPH06324861A (en) System and method for controlling cpu
JPH0954694A (en) Pipeline processor and its processing method
JPH06348581A (en) Memory access controller
JP2826781B2 (en) Data transfer method
JPH0743668B2 (en) Access control device
JPH07225681A (en) Interruption controller
JP2817675B2 (en) Program debug device
JPH11184751A (en) Memory control circuit and memory device
JP2643399B2 (en) Information processing device
JPH08123725A (en) Write-back type cache system
JPH0391055A (en) Method for setting hardware lock, hardware lock controller, method and device for detecting hardware lock
JPH10289149A (en) Memory access device
JPH04209046A (en) Memory access circuit
JPH11282787A (en) Input/output control device
JPH1055289A (en) Debugging information generating circuit and information processor using the same
JPH05143366A (en) Interruption control circuit
JPH04260144A (en) Memory access method for bank switching system