JP3016812B2 - Wait cycle controller - Google Patents

Wait cycle controller

Info

Publication number
JP3016812B2
JP3016812B2 JP2078111A JP7811190A JP3016812B2 JP 3016812 B2 JP3016812 B2 JP 3016812B2 JP 2078111 A JP2078111 A JP 2078111A JP 7811190 A JP7811190 A JP 7811190A JP 3016812 B2 JP3016812 B2 JP 3016812B2
Authority
JP
Japan
Prior art keywords
cycle
wait
bus
signal
cycles
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2078111A
Other languages
Japanese (ja)
Other versions
JPH03278158A (en
Inventor
明 桑田
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP2078111A priority Critical patent/JP3016812B2/en
Publication of JPH03278158A publication Critical patent/JPH03278158A/en
Application granted granted Critical
Publication of JP3016812B2 publication Critical patent/JP3016812B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、マイクロプロセッサに関し、特に、並列デ
ータを転送する際のバス・サイクルにおいて、ウエイト
・サイクルの挿入を制御するウエイト・サイクル制御装
置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microprocessor, and more particularly, to a wait cycle control device for controlling insertion of a wait cycle in a bus cycle when transferring parallel data. .

〔従来の技術〕[Conventional technology]

情報処理装置の制御装置及び演算装置(以下総称して
CPUと呼ぶ)と、記憶装置(以下総称してメモリと呼
ぶ)、あるいは周辺装置(以下総称してI/Oと呼ぶ)と
の間での並列データの転送を行なう場合、それぞれある
決ったシーケンスのバス・サイクルによりデータの転送
を行う。それぞれのバス・サイクルは、1クロック毎に
変化するTステートで分割されており、T1ステート,T2
ステートなどで構成されている。一例として第4図にメ
モリへデータを書き込む場合のバス・サイクルを示す。
第4図のバス・サイクルでデータの入力を要求されたメ
モリは、アドレスの出力からCPUがデータ・バスにデー
タを出力するまでのバス・サイクルの決められた時間内
に、アドレス値に対応するデータを入力することが必要
である。このバス・サイクルの決められた時間内に、デ
ータの出力あるいは入力を行う事ができない、データの
入出力が遅いメモリやI/Oとの間でデータの入出力を行
う場合には、バス・サイクル中に低速のメモリやI/Oの
データの入出力が間に合うように、ウエイト・サイクル
と呼ばれるサイクルを挿入してバス・サイクルを引延ば
す事ができる。第5図に第4図のバス・サイクルにウエ
イト・サイクルを2回挿入した場合のバス・サイクルを
示す。
Control device and arithmetic device of information processing device (hereinafter collectively
When performing parallel data transfer between a storage device (hereinafter collectively referred to as memory) or a peripheral device (hereinafter collectively referred to as I / O) and a certain sequence, respectively. The data is transferred by the bus cycle. Each bus cycle is divided into T states that change every clock, and T1 state, T2 state
It is composed of states. FIG. 4 shows a bus cycle when writing data to the memory as an example.
The memory requested to input data in the bus cycle of FIG. 4 corresponds to the address value within a predetermined time of the bus cycle from the output of the address until the CPU outputs the data to the data bus. It is necessary to enter data. If data cannot be output or input within the fixed time of this bus cycle, and data is input / output to / from memory or I / O that is slow in data input / output, the bus A bus cycle can be extended by inserting a cycle called a wait cycle so that the input and output of low-speed memory and I / O data can be performed in time during the cycle. FIG. 5 shows a bus cycle when a wait cycle is inserted twice into the bus cycle shown in FIG.

ウエイト・サイクルの挿入の制御は、CPUが矢印501,5
02,503で示すタイミングで▲▼信号を調べ、
▲▼信号がハイ・レベルであればウエイト・
サイクルを挿入しロウ・レベルであればウエイト・サイ
クルは挿入しない。ウエイト・サイクルは▲
▼信号がハイ・レベルである限り必要な数だけ何サイク
ルでも挿入できる。
The CPU controls the insertion of the wait cycle by the arrow 501,5.
Check the ▲ ▼ signal at the timing indicated by 02,503,
If the signal is high, wait
If a cycle is inserted and the level is low, no wait cycle is inserted. The weight cycle is ▲
▼ As many signals as necessary can be inserted as long as the signal is high.

この様なウエイト・サイクルの挿入を制御するために
ウエイト・サイクル制御装置を用いる。第7図に従来の
ウエイト・サイクル制御装置のブロック図を示す。
In order to control the insertion of such a wait cycle, a wait cycle controller is used. FIG. 7 shows a block diagram of a conventional wait cycle control device.

第7図のウエイト・サイクル制御装置は、バス・サイ
クルの種類を判定する、バス・サイクル判定部101、ウ
エイト・サイクルの設定数を保持しているウエイト・サ
イクル数設定レジスタ102、ウエイト・サイクル数の選
択,デコードを行うウエイト・サイクル数選択部103、
挿入されたウエイト・サイクルの数をカウントするカウ
ンタ105、カウンタ105と設定されたウエイト・サイクル
の数の比較を行うコンパレータ106、▲▼信
号の制御を行う▲▼信号109発生部107、バス
・サイクルの種類が出力されるバス・ステータス信号10
8で構成される。
The wait cycle control device shown in FIG. 7 includes a bus cycle determining unit 101 for determining the type of a bus cycle, a wait cycle number setting register 102 holding the set number of wait cycles, and a wait cycle number. Wait cycle number selection unit 103 for selecting and decoding
A counter 105 for counting the number of inserted wait cycles, a comparator 106 for comparing the counter 105 with the set number of wait cycles, a signal 109 for controlling the signal ▼, a signal 109 generator 107, a bus cycle Status signal 10 that outputs the type of
Consists of eight.

以下第7図のブロック図に従って動作を説明する。 The operation will be described below with reference to the block diagram of FIG.

バス・サイクルが発行されると、バス・サイクル判定
部101ではアドレス・バス及びバス・ステータス信号108
からバス・サイクルの種類を判定し、ウエイト・サイク
ル数選択部103にウエイト・サイクル数設定レジスタ102
からどの値を選択するのかを知らせる。ウエイト・サイ
クル数選択部103は、バス・サイクル判定部101で判定さ
れたバス・サイクルの種類から、ウエイト・サイクル数
設定レジスタ102より挿入するウエイト・サイクルの数
を選択しデコードする。カウンタ105は、挿入されたウ
エイト・サイクルの数をカウントしコンパレータ106に
出力する。コンパレータ106は、ウエイト・サイクル数
選択部103で決ったウエイト・サイクルの数とカウンタ1
05の出力を比較し、カウントされたウエイト・サイクル
の数がウエイト・サイクル数選択部103で決められた数
に達するまで▲▼信号発生部に▲
▼信号をハイ・レベルにするように要求し続ける。
When a bus cycle is issued, the bus cycle determination unit 101 makes the address bus and bus status signal 108
The type of the bus cycle is determined from the
Tells you which value to choose from. The wait cycle number selection unit 103 selects and decodes the number of wait cycles to be inserted from the wait cycle number setting register 102 from the type of bus cycle determined by the bus cycle determination unit 101. The counter 105 counts the number of inserted wait cycles and outputs it to the comparator 106. The comparator 106 counts the number of wait cycles determined by the wait cycle number selection unit 103 and the counter 1
The outputs of 05 are compared, and until the number of counted wait cycles reaches the number determined by the wait cycle number selection unit 103, the signal is output to the signal generation unit.
Continue to request the signal to go high.

このように従来までウエイト・サイクルの制御方法
は、バス・サイクルの発行からウエイト・サイクルの挿
入のための▲▼信号の出力までを逐次的に処
理しており、バス・サイクルの発行から▲▼
信号の検出までの時間が短いような場合のウエイト・サ
イクルの制御には向いていない。
As described above, the conventional wait cycle control method sequentially processes the issuance of a bus cycle to the output of a signal for inserting a wait cycle from the issuance of a bus cycle.
It is not suitable for controlling a wait cycle when the time until signal detection is short.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

第6図に従来のCPUによるバス・サイクルを示す。従
来のCPUによるバス・サイクルはT1,T2,T3,T4の4クロッ
クのTステートで構成され、ウエイト・サイクルの挿入
のための▲▼信号の検知は矢印601のT3ステ
ートの立上がりで行う。バス・サイクルの発行から▲
▼信号の検知までの時間は、たとえばクロック
周波数が10MHzの場合、1サイクル100nsecであるから、
CPUがバス・サイクルを発行してから▲▼信
号の検知を行うまでには第4図のバス・サイクルでは15
0nsecであり、また第6図に示す従来までのバス・サイ
クルでは250nsの時間があることになる。従来までウエ
イト・サイクル制御装置は、この間にバス・サイクルの
種類を判定し、設定されているウエイト・サイクルの数
をデコードし、▲▼信号の出力を制御するこ
とができた。しかしクロック周波数の高速化、あるいは
命令を実行するのに要するバス・サイクルの短縮などの
CPUの高性能化により、バス・サイクルの発行から▲
▼信号を検知するまでの時間は短くなってきて
いる。従来までの逐次的な▲▼信号の制御
は、この様な高性能なCPUにおけるウエイト・サイクル
の制御は間に合わなくなるという欠点を持っている。
FIG. 6 shows a bus cycle by a conventional CPU. A bus cycle by a conventional CPU is composed of T states of four clocks T1, T2, T3, and T4. Detection of a signal for inserting a wait cycle is performed at the rise of the T3 state indicated by an arrow 601. From issue of bus cycle ▲
▼ The time until signal detection is 100 nsec per cycle when the clock frequency is 10 MHz, for example.
From the time the CPU issues a bus cycle to the time the CPU detects a signal, the bus cycle shown in FIG.
0 nsec, and there is a time of 250 ns in the conventional bus cycle shown in FIG. Until now, the wait cycle control device has been able to determine the type of bus cycle during this period, decode the set number of wait cycles, and control the output of the signal. However, such as increasing the clock frequency or shortening the bus cycle required to execute an instruction,
From the issuance of bus cycles due to the higher performance of CPU ▲
▼ The time required to detect a signal is getting shorter. The conventional sequential control of the signal has the disadvantage that the control of the wait cycle in such a high-performance CPU cannot be performed in time.

〔課題を解決するための手段〕[Means for solving the problem]

本発明のウエイト・サイクル制御装置は、実行するバ
スサイクルを判定する判定手段と、この判定手段からの
判定結果に応答して、前記実行するバスサイクルのため
に挿入すべきウエイトサイクルの数を表すデータを得、
当該データを出力する手段と、前記データが表すウエイ
トサイクルの数が0でないときにアクティブレベルとな
る信号を出力し、前記バスサイクルの実行中に挿入され
るウエイトサイクルの数が前記データが表すウエイトサ
イクルの数となるまで維持する手段と、前記信号のアク
ティブレベルに応答してウエイトサイクルの挿入要求を
発生する発生手段とを有するウエイト・サイクル制御装
置であって、前記判定手段からの前記判定結果に応答し
て、前記実行するバスサイクルがウエイトサイクルを必
要とするかどうかを示す情報を出力する手段をさらに有
し、前記発生手段は、前記情報を受けて当該情報がウエ
イトサイクルを必要とすることを示す時には前記信号が
前記アクティブレベルでない状態であっても前記ウエイ
トサイクル挿入要求を発生するように構成されているこ
とを特徴とする。
The wait cycle control device according to the present invention includes: a determination unit that determines a bus cycle to be executed; and, in response to a determination result from the determination unit, represents a number of wait cycles to be inserted for the bus cycle to be executed. Data
Means for outputting the data; and outputting a signal which becomes active when the number of wait cycles represented by the data is not 0, wherein the number of wait cycles inserted during execution of the bus cycle indicates a wait represented by the data. A wait cycle control device having means for maintaining the number of cycles until the number of cycles is reached, and generating means for generating a wait cycle insertion request in response to the active level of the signal, wherein the determination result from the determination means is Further comprising means for outputting information indicating whether or not the bus cycle to be executed requires a wait cycle, wherein the generating means receives the information and requires the information to require a wait cycle. Indicates that the wait cycle insertion is required even if the signal is not at the active level. Characterized in that it is configured to generate.

すなわち、従来バス・サイクルが発行されてから▲
▼信号の制御を行う場合、まずバス・サイクル
の種類を検知し、次に設定されているウエイト・サイク
ルの数を選択、デコードし、▲▼信号を制御
する逐次的な制御を行っていた。
That is, after the conventional bus cycle is issued,
In controlling the signal, the type of the bus cycle is first detected, then the number of set wait cycles is selected and decoded, and the sequential control for controlling the signal is performed.

本発明ではバス・サイクルが発行されてから▲
▼信号を発行するまでに、まず特定ウエイト・サイ
クル数設定レジスタを選択し、設定してあるウエイト・
サイクルの数が特定の回数以上かそれより少ないかを検
出する。
In the present invention, after a bus cycle is issued,
▼ Before issuing the signal, first select the specific wait cycle number setting register, and
Detect if the number of cycles is greater than or less than a certain number.

たとえば特定ウエイト・サイクルの数が、0か1以上
かであるかを示す場合、選択したウエイト・サイクルの
数が1以上であればまず先に1ウエイト・サイクルを発
行してバス・サイクルを引延ばす。そしてこの1ウエイ
ト・サイクルの挿入により引延ばされた時間に任意ウエ
イト・サイクルの設定数をデコードし、1ウエイト・サ
イクル終了後に、残りのウエイト・サイクルを挿入して
いる。
For example, when indicating whether the number of specific wait cycles is 0 or 1 or more, if the number of selected wait cycles is 1 or more, first issue 1 wait cycle and subtract the bus cycle. extend. Then, the set number of arbitrary wait cycles is decoded at the time extended by the insertion of the one wait cycle, and after the completion of one wait cycle, the remaining wait cycles are inserted.

〔実施例〕〔Example〕

第1図は、本発明の一実施例を示すブロック図であ
る。以下図を参考にして、本発明の構成及び動作を詳細
に説明する。
FIG. 1 is a block diagram showing one embodiment of the present invention. Hereinafter, the configuration and operation of the present invention will be described in detail with reference to the drawings.

バス・サイクルの種類を判別する、バス・サイクル判
定部101。バス・サイクルに挿入するウエイト・サイク
ル数を保持する任意ウエイト・サイクル数設定レジスタ
102。設定されているウエイト・サイクルの数が0か1
以上かの情報を保持している特定ウエイト・サイクル数
設定レジスタ110。バス・サイクル判定部101から得られ
るバス・サイクルの種類と、ウエイト・サイクル数設定
レジスタ102からウエイト・サイクルの数を選択するウ
エイト・サイクル数選択部103。バス・サイクル判定部1
01から得られるバス・サイクルの種類と、特定ウエイト
・サイクル数設定レジスタ110からウエイト・サイクル
の数が0か1以上であるかをみて、1以上であれば1ウ
エイト・サイクルの挿入を▲▼信号発生部10
7に要求するウエイト・サイクル数0検出部104。▲
▼信号の数をカウントし、コンパレータ106にカ
ウントした数を出力するカウンタ108、設定したウエイ
ト・サイクルの数とバス・サイクルの数とを比較し、▲
▼信号発生部107に▲▼信号の発
生を要求するコンパレータ106、▲▼信号の
出力を制御する▲▼信号発生部107。バス・
サイクルの種類を示すバス・ステータス信号108、▲
▼信号109が接続されている。
A bus cycle determination unit 101 that determines the type of a bus cycle. Arbitrary wait cycle number setting register that holds the number of wait cycles inserted in the bus cycle
102. The number of set wait cycles is 0 or 1
A specific wait cycle number setting register 110 holding the above information. A type of bus cycle obtained from the bus cycle determination unit 101 and a wait cycle number selection unit 103 for selecting the number of wait cycles from the wait cycle number setting register 102. Bus cycle judgment unit 1
Check the type of bus cycle obtained from 01 and whether the number of wait cycles is 0 or 1 or more from the specific wait cycle number setting register 110, and if it is 1 or more, insert 1 wait cycle. Signal generator 10
Wait cycle number 0 detector 104 required for 7. ▲
▼ Counter 108 counts the number of signals and outputs the counted number to comparator 106, compares the set number of wait cycles with the number of bus cycles, and
A comparator 106 for requesting the signal generation unit 107 to generate a signal, and a signal generation unit 107 for controlling the output of the signal. bus·
Bus status signal 108 indicating the type of cycle, ▲
▼ Signal 109 is connected.

以下本実施例の動作を、第1図のブロック図と第2
図,第3図のタイミング・チャートに従って説明する。
The operation of this embodiment will be described below with reference to the block diagram of FIG.
This will be described with reference to the timing charts of FIGS.

まず挿入するウエイト・サイクルの数が1の場合を第
2図のタイミング・チャートに従って説明する。
First, the case where the number of inserted wait cycles is 1 will be described with reference to the timing chart of FIG.

バス・サイクルが発行されるとバス・サイクル判定部
101は、T1サイクルの立上がり付近でアドレス・バスの
アドレス値とバス・ステータス信号108が確定した後、
発行されたバス・サイクルの種類を判定し、バス・サイ
クルの種類を出力する。
Bus cycle judgment unit when bus cycle is issued
101 indicates that after the address value of the address bus and the bus status signal 108 are determined near the rising edge of the T1 cycle,
The type of the issued bus cycle is determined, and the type of the bus cycle is output.

ウエイト・サイクル数0検出部104は、バス・サイク
ルの種類から特定ウエイト・サイクル数設定レジスタ11
0より挿入すべきウエイト・サイクルの数が0か1以上
であるかをみるが、この場合1ウエイト・サイクルを挿
入する設定になっているので、▲▼信号発生
部107へ1ウエイト・サイクルの挿入を行うように▲
▼信号の発生を要求する。
The wait cycle number 0 detection unit 104 determines the specific wait cycle number setting register 11 based on the type of bus cycle.
It is checked whether the number of wait cycles to be inserted is 0 or 1 or more from 0. In this case, since it is set to insert 1 wait cycle, the signal generation unit 107 is supplied with 1 wait cycle. Like inserting
▼ Request signal generation.

▲▼信号発生部107は、T2ステートの期間
▲▼信号をインアクティブにする。CPUはT2
ステートの立上がりで▲▼信号がインアクテ
ィブであることを検知して1ウエイト・サイクルを挿入
する。
The signal generator 107 inactivates the signal during the T2 state. CPU is T2
At the rise of the state, it detects that the signal is inactive and inserts one wait cycle.

またウエイト・サイクル数選択部103は、ウエイト・
サイクル数0検出部104と同様に、バス・サイクル判定
部101に出力されるバス・サイクルの種類から、任意ウ
エイト・サイクル設定レジスタ102より挿入するウエイ
ト・サイクルの数を選択してデコードし、コンパレータ
106へデコードしたウエイト・サイクルの数を出力す
る。
Also, the wait cycle number selection unit 103
Similarly to the cycle number 0 detection unit 104, the number of wait cycles to be inserted is selected from the arbitrary wait cycle setting register 102 from the type of the bus cycle output to the bus cycle determination unit 101, and is decoded.
The number of decoded wait cycles is output to 106.

カウンタ105は、バス・サイクルが発行されてからの
▲▼信号の数を、▲▼信号の立上
がりでカウントしてコンパレータ106へ出力しており、
▲▼信号が出力されるとコンパレータ106に
は1が入力される。
The counter 105 counts the number of ▲ ▼ signals since the bus cycle was issued at the rising edge of the ▲ ▼ signal and outputs it to the comparator 106.
When the ▲ ▼ signal is output, 1 is input to the comparator 106.

コンパレータ106は、入力されたウエイト・サイクル
の設定値1とカウンタ105のカウント数1が一致をする
のをみて、▲▼信号発生部107へ▲
▼信号をロー・レベルに保つように要求し、ウエイト
・サイクルの挿入を終了する。
The comparator 106 determines that the input wait cycle set value 1 and the count number 1 of the counter 105 match, and sends the signal to the signal generator 107.
▼ Request to keep the signal low, and end the insertion of the wait cycle.

次にウエイト・サイクルの数が0の場合を第3図のタ
イミング・チャートに従って説明する。
Next, the case where the number of wait cycles is 0 will be described with reference to the timing chart of FIG.

バス・サイクルが発行されるとバス・サイクル判定部
101は、アドレス・バスのアドレス値とバス・ステータ
ス信号108が確定した後、発行されたバス・サイクルの
種類を判定しバス・サイクルの種類を出力する。
Bus cycle judgment unit when bus cycle is issued
After the address value of the address bus and the bus status signal 108 are determined, the type 101 determines the type of the issued bus cycle and outputs the type of the bus cycle.

ウエイト・サイクル数0検出部104は、バス・サイク
ルの種類から特定ウエイト・サイクル数設定レジスタ11
0より挿入すべきウエイト・サイクルの数が0か1以上
であるかをみるが、この場合0ウエイト・サイクルを挿
入する設定になっているので、▲▼信号発生
部107へは▲▼信号をアクティブ・レベルに
保つように要求する。
The wait cycle number 0 detection unit 104 determines the specific wait cycle number setting register 11 based on the type of bus cycle.
It is checked whether the number of wait cycles to be inserted is 0 or 1 or more from 0. In this case, since the setting is to insert 0 wait cycles, the ▲ ▼ signal is sent to the ▲ ▼ signal generator 107. Request to stay at the active level.

ウエイト・サイクル数選択部103は、ウエイト・サイ
クル数0検出部104と同様にバス・サイクル判定部101か
ら出力されるバス・サイクルの種類から、任意ウエイト
・サイクル設定レジスタ102より挿入するウエイト・サ
イクルの数を選択してデコードし、コンパレータ106へ
デコードしたウエイト・サイクルの数、0を出力し、コ
ンパレータに入力されるが、0であるので▲
▼信号発生部107に、▲▼信号をロー・レベ
ルに保つように要求する。
The wait cycle number selection unit 103 determines the wait cycle to be inserted from the arbitrary wait cycle setting register 102 based on the type of the bus cycle output from the bus cycle determination unit 101, similarly to the wait cycle number 0 detection unit 104. Is selected and decoded, and the number of decoded wait cycles, 0, is output to the comparator 106, and is input to the comparator.
Requests the signal generator 107 to keep the signal at a low level.

ここで、特定ウエイト・サイクル数設定レジスタと任
意ウエイト・サイクル数設定レジスタについて詳細に説
明する。第9図は特定ウエイト・サイクル数設定レジス
タの一例であり、バス・サイクルの種類に対して各1ビ
ットずつを有する。第9図ではCPUメモリ・サイクル,CP
UI/Oサイクル,DMAサイクル,リフレッシュ・サイクルに
対して1ビットずつ割当てられており、発行されたバス
・サイクルに対応するビットが“1"ならば1ウエイト以
上挿入、“0"ならば0ウエイト挿入である。第10図は任
意ウエイト・サイクル数設定レジスタの一例であり、バ
ス・サイクルの種類に対して各3ビットずつを有し、最
高7ウエイトまで挿入可能である。まず、バス・サイク
ルが発行されると、特定ウエイト・サイクル数設定レジ
スタにより、0ウエイトか、1ウエイト以上挿入かを高
速に検出し、▲▼信号を制御する。1ウエイ
ト以上挿入する場合は、同時に任意ウエイト・サイクル
数設定レジスタからバス・サイクルに対応するウエイト
数を選択,デコードし、1ウエイト挿入後にデコードさ
れたウエイト数と挿入したウエイト数が一致するまでウ
エイト・サイクルを挿入する。
Here, the specific wait cycle number setting register and the arbitrary wait cycle number setting register will be described in detail. FIG. 9 shows an example of a specific wait cycle number setting register, which has one bit for each type of bus cycle. In FIG. 9, CPU memory cycle, CP
One bit is assigned to each UI / O cycle, DMA cycle, and refresh cycle. If the bit corresponding to the issued bus cycle is "1", insert one or more waits; if "0", insert zero wait. Insertion. FIG. 10 shows an example of an arbitrary wait cycle number setting register, which has three bits for each type of bus cycle and can insert up to seven waits. First, when a bus cycle is issued, whether a 0 wait or more than 1 wait is inserted is detected at a high speed by a specific wait cycle number setting register, and the signal is controlled. When more than one wait is inserted, the number of waits corresponding to the bus cycle is selected and decoded from the arbitrary number of wait cycles setting register at the same time. -Insert a cycle.

本発明の他の実施例2では、実施例1のウエイト・サ
イクル数0検出部にさらにウエイト・サイクルの数が0
に加え1の場合も検知するようにし2以上のウエイト・
サイクルを挿入する場合は、先に2ウエイト・サイクル
を挿入するようにし、実施例1ではウエイト・サイクル
1サイクル分の時間を稼ぐのに対してウエイト・サイク
ル2サイクル分の時間を稼ぐようにしたものである。
In another embodiment 2 of the present invention, the number of wait cycles is further reduced to 0 by the wait cycle number 0 detector of the first embodiment.
In addition to detecting the case of 1, the weight of 2 or more
When a cycle is inserted, two wait cycles are inserted first. In the first embodiment, a time corresponding to one wait cycle is obtained, whereas a time corresponding to two wait cycles is obtained. Things.

第8図は本実施例のブロック図である。第1図の実施
例と同じ構成であるが、第1図の実施例中の特定ウエイ
ト・サイクル数設定レジスタ110を、0、あるいは1,2以
上のウエイト・サイクルを設定できる810に、ウエイト
・サイクル0検出部104を、0あるいは1,2以上を検出す
るようなウエイト・サイクル0,1検出部804に置き換え
る。
FIG. 8 is a block diagram of the present embodiment. Although the configuration is the same as that of the embodiment shown in FIG. 1, the number of wait cycle number setting registers 110 in the embodiment shown in FIG. The cycle 0 detection unit 104 is replaced with a wait cycle 0, 1 detection unit 804 that detects 0 or 1, 2 or more.

本実施例の動作は、1以下のウエイト・サイクルを挿
入する場合、実施例1の動作と同じである。2以上のウ
エイト・サイクルを挿入する場合は、まずウエイト・サ
イクル0,1検出部が▲▼信号発生部へ2ウエ
イト・サイクルの挿入を要求し、この間に挿入するウエ
イト・サイクルの数をデコードして、2ウエイト・サイ
クルの挿入の後残りのウエイト・サイクルを挿入する。
The operation of the present embodiment is the same as the operation of the first embodiment when one or less wait cycles are inserted. When inserting two or more wait cycles, the wait cycle 0, 1 detector first requests the signal generator to insert two wait cycles, and decodes the number of wait cycles to be inserted during this period. Then, after inserting two wait cycles, the remaining wait cycles are inserted.

〔発明の効果〕〔The invention's effect〕

情報処理装置に対する性能向上の要求のなかで、制御
および演算に要する時間の短縮は最も大きな要求の1つ
である。この制御および演算に要する時間を短縮するた
めのCPUにおける演算速度の高速化はめざましく、クロ
ック周波数の向上やバス・サイクルに必要なクロック数
の減少によるCPUの高性能化は今後もさらに続くものと
考えられる。
Among the demands for improving the performance of information processing devices, reduction of the time required for control and calculation is one of the greatest demands. The CPU operation speed has been remarkably increased in order to reduce the time required for this control and operation, and CPU performance will continue to increase due to the increase in clock frequency and the number of clocks required for bus cycles. Conceivable.

この様な高性能なCPUを用いたシステムにおいてウエ
イト・サイクルの制御を行う場合、従来までのような逐
次的なウエイト・サイクルの制御では、バス・サイクル
の決められた時間内に処理を行い▲▼信号の
制御をする事は難しく、さらにCPUの性能向上によりウ
エイト・サイクル制御のための処理をする時間が短くな
った場合、従来までの逐次的な処理では▲▼
信号の制御は行えなくなる事が考えられる。
When controlling a wait cycle in a system using such a high-performance CPU, in the conventional sequential control of the wait cycle, processing is performed within a predetermined time of the bus cycle. ▼ It is difficult to control signals, and if the processing time for wait cycle control is shortened due to the improvement of CPU performance, the conventional sequential processing is ▲ ▼
Control of the signal may not be possible.

しかし本発明を用いる事で、クロック周波数が向上し
た、あるいはバス・サイクルに必要なクロック数が減少
した高性能なCPUを使ったシステムにおいても、たとえ
ば実施例1に示したような方法により、ウエイト・サイ
クルの制御が行うことが可能になる。そしてさらにCPU
の性能向上によりウエイト・サイクルの制御を行うため
の時間が短縮された場合にも、実施例2で示したように
ウエイト・サイクルの設定数が0か1以上かではなく、
ウエイト・サイクルの設定数が0か1か2以上かを示す
出力をあらかじめ持つ事で2ウエイト・サイクルの時間
を稼ぐ事ができ、CPUの高速化に対応する事ができるよ
うになる。
However, by using the present invention, even in a system using a high-performance CPU in which the clock frequency has been improved or the number of clocks required for a bus cycle has been reduced, for example, a method as shown in the first embodiment can be used.・ Cycle control can be performed. And even CPU
In the case where the time for controlling the weight cycle is shortened due to the performance improvement, the set number of weight cycles is not 0 or 1 or more as shown in the second embodiment.
By having an output indicating whether the set number of wait cycles is 0, 1 or 2 or more, the time of 2 wait cycles can be gained, and it is possible to cope with an increase in the speed of the CPU.

このように本発明により、高速化するCPUにも対応で
きるウエイト・サイクル制御装置を構成する事が可能で
あり十分な効果がある。
As described above, according to the present invention, it is possible to configure a wait cycle control device that can cope with a CPU that operates at a high speed, and there are sufficient effects.

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

第1図は、本発明の一実施例の構成を示すブロック図、
第2図,第3図は第1図の実施例の動作を説明するタイ
ミング・チャート、第4図,第5図,第6図は基本的な
バス・サイクルを示すタイミング・チャート、第7図は
従来のウエイト・サイクル制御装置の構成を示すブロッ
ク図、第8図は本発明の別の実施例を示すブロック図、
第9図は特定ウエイト・サイクル数設定レジスタのブロ
ック図、第10図は任意ウエイト・サイクル数設定レジス
タのブロック図である。 101……バス・サイクル判定部、102……任意ウェイト・
サイクル数設定レジスタ、110,810……特定ウエイト・
サイクル数設定レジスタ、103……ウエイト・サイクル
数選択部、104……ウエイト・サイクル数0検出部、804
……ウエイト・サイクル数0,1検出部、105……カウン
タ、106……コンパレータ、107……▲▼信号
発生部、108……アドレス・バス及びバス・ステータス
信号、109……▲▼信号、401,501,502,503,6
01……CPUが▲▼信号を検知するタイミン
グ。
FIG. 1 is a block diagram showing the configuration of one embodiment of the present invention,
2 and 3 are timing charts for explaining the operation of the embodiment of FIG. 1, FIGS. 4, 5, and 6 are timing charts showing basic bus cycles, and FIG. Is a block diagram showing a configuration of a conventional weight cycle control device, FIG. 8 is a block diagram showing another embodiment of the present invention,
FIG. 9 is a block diagram of a specific wait cycle number setting register, and FIG. 10 is a block diagram of an arbitrary wait cycle number setting register. 101: Bus cycle determination unit, 102: Arbitrary wait
Cycle number setting register, 110,810 …… Specific wait
Cycle number setting register, 103: Wait cycle number selection unit, 104: Wait cycle number 0 detection unit, 804
... Wait cycle number 0, 1 detector, 105, counter, 106, comparator, 107, signal generator 108, address bus and bus status signal, 109, ▲ ▼ signal, 401,501,502,503,6
01 …… The timing when the CPU detects the ▲ ▼ signal.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭64−88763(JP,A) 特開 昭59−114639(JP,A) 特開 昭59−114638(JP,A) 実開 昭57−132249(JP,U) 実開 昭63−75960(JP,U) 日立マイクロコンピュータデータブッ ク 8ビット・16ビットマイクロプロセ ッサ,(昭和60年9月)、株式会社日立 製作所,p462−464 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-64-88763 (JP, A) JP-A-59-114639 (JP, A) JP-A-59-114638 (JP, A) 132249 (JP, U) Actually open 63-75960 (JP, U) Hitachi microcomputer data book 8-bit / 16-bit microprocessor, (September 1985), Hitachi, Ltd., p462-464

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】実行するバスサイクルを判定する判定手段
と、この判定手段からの判定結果に応答して、前記実行
するバスサイクルのために挿入すべきウエイトサイクル
の数を表すデータを得、当該データを出力する手段と、
前記データが表すウエイトサイクルの数が0でないとき
にアクティブレベルとなる信号を出力し、前記バスサイ
クルの実行中に挿入されるウエイトサイクルの数が前記
データが表すウエイトサイクルの数となるまで維持する
手段と、前記信号のアクティブレベルに応答してウエイ
トサイクルの挿入要求を発生する発生手段とを有するウ
エイト・サイクル制御装置であって、前記判定手段から
の前記判定結果に応答して、前記実行するバスサイクル
がウエイトサイクルを必要とするかどうかを示す情報を
出力する手段をさらに有し、前記発生手段は、前記情報
を受けて当該情報がウエイトサイクルを必要とすること
を示す時には前記信号が前記アクティブレベルでない状
態であっても前記ウエイトサイクル挿入要求を発生する
ように構成されていることを特徴とするウエイト・サイ
クル制御装置。
A determining means for determining a bus cycle to be executed; and responding to the determination result from the determining means, obtaining data indicating the number of wait cycles to be inserted for the bus cycle to be executed. Means for outputting data;
A signal which becomes an active level when the number of wait cycles represented by the data is not 0 is output, and is maintained until the number of wait cycles inserted during execution of the bus cycle becomes the number of wait cycles represented by the data. Means for generating a wait cycle insertion request in response to the active level of the signal, wherein the execution is performed in response to the determination result from the determination means. And a means for outputting information indicating whether the bus cycle requires a wait cycle. The generating means receives the information, and when the information indicates that a wait cycle is required, generates the signal when the signal indicates the wait cycle. It is configured to generate the wait cycle insertion request even when the state is not the active level. Wait cycle controller according to claim Rukoto.
JP2078111A 1990-03-27 1990-03-27 Wait cycle controller Expired - Lifetime JP3016812B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2078111A JP3016812B2 (en) 1990-03-27 1990-03-27 Wait cycle controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2078111A JP3016812B2 (en) 1990-03-27 1990-03-27 Wait cycle controller

Publications (2)

Publication Number Publication Date
JPH03278158A JPH03278158A (en) 1991-12-09
JP3016812B2 true JP3016812B2 (en) 2000-03-06

Family

ID=13652776

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2078111A Expired - Lifetime JP3016812B2 (en) 1990-03-27 1990-03-27 Wait cycle controller

Country Status (1)

Country Link
JP (1) JP3016812B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6488763A (en) * 1987-09-30 1989-04-03 Toshiba Corp Input/output control circuit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
日立マイクロコンピュータデータブック 8ビット・16ビットマイクロプロセッサ,(昭和60年9月)、株式会社日立製作所,p462−464

Also Published As

Publication number Publication date
JPH03278158A (en) 1991-12-09

Similar Documents

Publication Publication Date Title
US5873114A (en) Integrated processor and memory control unit including refresh queue logic for refreshing DRAM during idle cycles
JPH03167649A (en) Wait cycle controller
US5590299A (en) Multiprocessor system bus protocol for optimized accessing of interleaved storage modules
JPH06139189A (en) Common bus arbitrating mechanism
US6085261A (en) Method and apparatus for burst protocol in a data processing system
USRE40261E1 (en) Apparatus and method of partially transferring data through bus and bus master control device
JP3016812B2 (en) Wait cycle controller
US6691182B2 (en) DMA controller in which bus access ratio can be set
JPH11232214A (en) Processor for information processor and its controlling method
JP2004013618A (en) Access controller for synchronous semiconductor storage device
JP3008895B2 (en) Multiprocessor load equalizer
JP2005165508A (en) Direct memory access controller
EP1125191A1 (en) Controlling access to a primary memory
JP3169878B2 (en) Memory control circuit
JP2770743B2 (en) Weight control method
JP2002207541A (en) Microcomputer and data processor
KR0145932B1 (en) Dma controller in high speed computer system
JPH08137785A (en) Dma controller
JPH09297990A (en) Memory refresh control method and memory refresh controller
JP2570271B2 (en) Semiconductor memory controller
JPH07182272A (en) Dma controller circuit
JP2003036241A (en) Wait cycle control device and wait cycle control method
JPH05109270A (en) D-ram refresh controller
JPH01209556A (en) Data processing system
JPH0512121A (en) Data processor