JPS62160560A - Bus control system - Google Patents

Bus control system

Info

Publication number
JPS62160560A
JPS62160560A JP154386A JP154386A JPS62160560A JP S62160560 A JPS62160560 A JP S62160560A JP 154386 A JP154386 A JP 154386A JP 154386 A JP154386 A JP 154386A JP S62160560 A JPS62160560 A JP S62160560A
Authority
JP
Japan
Prior art keywords
bus
time
computer
unit
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.)
Pending
Application number
JP154386A
Other languages
Japanese (ja)
Inventor
Shunichiro Nakamura
俊一郎 中村
Yoji Yamashita
陽司 山下
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP154386A priority Critical patent/JPS62160560A/en
Publication of JPS62160560A publication Critical patent/JPS62160560A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To reduce the difference of response time by providing a setting means which makes the set time of the bus busy state longer than a prescribed time when the bus use rate is lower than a certain value. CONSTITUTION:A program of OS calculates the time of setting to the idle waiting state and the time of release by interrupt to calculate the busy rate of a computer, namely, the bus use rate per unit time (one minute or the like). A set value based on the use rate is set/reset to a setting means 11 (delay mode latch), which extends the time of the output of the bus busy state outputted by a bus controller in accordance with the calculated value or if this value is smaller than a prescribed value, by a diagnosis instruction. A bus controller 10 sets the time of the bus busy state by the value set to the means 11. Thus, the bus capacity is degraded when the processing load of the computer is light, and the difference of response time to terminals accompanied with the variance of the processing load of the computer is reduced.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、データ処理装置等の計算機の内部でデータ
転送用に使われるバスの制御方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a control system for a bus used for data transfer inside a computer such as a data processing device.

〔従来の技術〕[Conventional technology]

第3図に従来のバス制御方式を用いたデータ処理装置の
一例を示す。図において(1)はデータ転送用のバス、
(2)、  (3)は上記バス(1)を介してデータが
入出力される、例えばCPUや入出力インタフェース等
のユニット0及びユニット1、(4)はRAMより構成
されるメモリユニットである。(5)はバス(1)の使
用を要求するユニットO(2)のリクエスト信号、(6
)はバス(1)の使用を許可するユニット0 (2)に
対するイネーブル信号、(7)はユニット1 (3)の
リクエスト信号、(8)はユニ・ノド1 (3)に対す
るイネーブル信号、(9)はメモリユニット(4)に対
するイネーブル信号である。(10)は上記各信号によ
って上記各ユニット (2)。
FIG. 3 shows an example of a data processing device using a conventional bus control method. In the figure, (1) is a bus for data transfer,
(2) and (3) are units 0 and 1, such as CPUs and input/output interfaces, to which data is input/output via the bus (1), and (4) is a memory unit composed of RAM. . (5) is the request signal of unit O (2) requesting the use of bus (1), (6
) is an enable signal for unit 0 (2) that allows use of bus (1), (7) is a request signal for unit 1 (3), (8) is an enable signal for Uni-node 1 (3), (9 ) is an enable signal for the memory unit (4). (10) is each of the above units (2) according to each of the above signals.

(3)、  (4)のバス(1)の使用を制御するバス
制御装置である。
This is a bus control device that controls the use of bus (1) in (3) and (4).

第4図は第3図に示した従来のハス制御方式の動作を示
すタイムチャートであり、以下、第4図に沿って従来方
式の動作について説明する。
FIG. 4 is a time chart showing the operation of the conventional lotus control system shown in FIG. 3, and the operation of the conventional system will be described below with reference to FIG.

まず、ユニットO(2)がメモリユニ、ト(4)からデ
ータを読出す必要が生じると、クロックnでユニット0
(2)がリクエスト信号(5)をセットする。バス制御
装置(10)は同じクロックnでこれを受付はクロック
n+lでイネーブル信号(6)をセットする。これによ
りユニット0(2)はメモリアドレスをバス(1)上に
出力し、メモリユニット(10)に転送する。又、ユニ
ット0  (2)は次のクロックn+2でリクエスト信
号(5)をリセットする。そして、クロックn+3でバ
ス制御装置(10)はメモリユニット(4)に対しイネ
ーブル信号(9)をセットする。これによりメモリユニ
ット(4)から読出されたデータがバス(1)上に出力
され、ユニットO(2)に転送される。以上でユニット
0(2)のメモリ読出しは終了する。なお、この間のク
ロックn+1からクロックn+3の間、バス制御装置(
10)の内部でバスビジー状態がセットされ、他のユニ
ットがバス(1)を使わないようにする。ちなみに、ク
ロックn+3でユニッl−1(3)がリクエスト信号(
7)をセットしてるが、このクロックではバスビジー状
態であるためこのリクエストは受付けられない。しかし
、クロックn+4でバスビジー状態がリセットされるた
め、このクロックでユニット1 (3)のリクエストは
受付けられ、クロックn+5でユニットl (3)に対
しイネーブル信号(8)がセットされる。これによりユ
ニット1 (3)はメモリアドレスをハス(1)上に出
力し、メモリユニット(4)に転送する。又、ユニット
1 (3)は次のクロックn+5でリクエスト信号(7
)をリセットする。そして、クロックn+7でイネーブ
ル信号(9)がメモリユニット(4)に対してセットさ
れ、メモリユニット(4)から続出されたデータがバス
1上に出力されユニット1 (3)に送られる。同様に
、この間のクロ・7りn+5からn+7までバスビジー
状態がセットされる。
First, when unit O (2) needs to read data from memory unit O (4), unit O (2) reads data from memory unit O (4) at clock n.
(2) sets the request signal (5). The bus control device (10) accepts this at the same clock n and sets the enable signal (6) at clock n+l. This causes unit 0 (2) to output the memory address onto bus (1) and transfer it to memory unit (10). Also, unit 0 (2) resets the request signal (5) at the next clock n+2. Then, at clock n+3, the bus control device (10) sets an enable signal (9) to the memory unit (4). As a result, data read from memory unit (4) is output onto bus (1) and transferred to unit O (2). This completes the memory reading of unit 0 (2). Note that during this period from clock n+1 to clock n+3, the bus control device (
A bus busy state is set inside bus (10) to prevent other units from using bus (1). By the way, at clock n+3, unit l-1(3) sends the request signal (
7), but this request cannot be accepted because the bus is busy at this clock. However, since the bus busy state is reset at clock n+4, the request from unit 1 (3) is accepted at this clock, and the enable signal (8) is set for unit l (3) at clock n+5. As a result, unit 1 (3) outputs the memory address onto hash (1) and transfers it to memory unit (4). Also, unit 1 (3) sends a request signal (7) at the next clock n+5.
) to reset. Then, at clock n+7, the enable signal (9) is set for the memory unit (4), and the data successively output from the memory unit (4) is output onto the bus 1 and sent to the unit 1 (3). Similarly, the bus busy state is set from n+5 to n+7 during this period.

以上従来技術について説明したが、このようにバスビジ
ー状態に基づきバスの使用を制御することはあるユニッ
トがバス上でデータ転送を行っている時に、同時に別の
ユニットがバスを使わないようにするために必須なこと
がらである。
As explained above about the conventional technology, controlling the use of the bus based on the bus busy state is done in order to prevent another unit from using the bus at the same time when one unit is transferring data on the bus. It is essential for

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

ところで、最近の計算機では、その性能の向上にともな
ってTSS (タイムシェアリングシステム)という形
態で複数のユーザーが端末から時分割で計算機を使うこ
とが多い。1つの計算機を多くの人が時分割で使用する
訳で、計算機の処理負荷が重くなる程、すなわち多くの
人が使用する程端末に対する応答時間は遅くなる。一方
、処理負荷が軽い時、すなわち計算機を使う人が少い時
は応答時間は非常に速くなる。例えば、仕事で多くの人
が端末を使用する昼間は応答時間が遅いが、仕事が終っ
て使用する人がほとんどいない夜になると応答時間はも
のすごく速くなるということになる。これは、端末の使
用数により第3図に示し ・た各ユニットのバスリクエ
ストの頻度が変化するのにともないバスの使用率、すな
わちビジー率が変化することによるものである。
By the way, as the performance of modern computers has improved, multiple users are often able to use the computer in a time-sharing manner from their terminals in the form of a TSS (time sharing system). Since one computer is used by many people in a time-sharing manner, the heavier the processing load on the computer, that is, the more people use it, the slower the response time to the terminal becomes. On the other hand, when the processing load is light, that is, when there are few people using computers, the response time becomes extremely fast. For example, the response time may be slow during the day when many people are using the device for work, but it will be extremely fast at night when few people are using it after work. This is because the bus usage rate, ie, the busy rate, changes as the frequency of bus requests from each unit shown in FIG. 3 changes depending on the number of terminals in use.

しかしながら、計算機使用者にとっては、このように応
答時間に大きな落差が生じるのはあまり使い勝手が良い
ものではなかった。すなわち、昼間遅いのは計算機の性
能上の問題でやむを得ないが、夜になって極端に速くな
るのは計算機の性能等では解決しえない問題点となって
いた。
However, for computer users, such a large difference in response time is not very convenient. In other words, the slowness of the daytime is an unavoidable problem due to computer performance, but the extreme speed at night is a problem that cannot be solved by computer performance.

この発明は上記のような問題点を解消するためになされ
たもので、計算機の処理負荷が軽い時には適度に計算機
の性能を落とすことができるようにして、応答時間の落
差を減少することができるバス制御方式を提供すること
を目的とするものである。
This invention was made to solve the above-mentioned problems, and when the processing load on the computer is light, the performance of the computer can be moderately reduced, thereby reducing the difference in response time. The purpose is to provide a bus control method.

〔問題点を解決するための手段〕 この発明に係るバス制御方式は、バス使用時にバスビジ
ー状態を所定期間セットするバス制御装置に、バスビジ
ー状態のセット期間を上記所定期間以上に設定する設定
手段を設け、単位時間当りのバスの使用率が一定値以下
の時、上記設定手段を働かせるようにしたものである。
[Means for Solving the Problems] The bus control method according to the present invention includes a bus control device that sets a bus busy state for a predetermined period when the bus is used, and a setting means that sets the set period of the bus busy state to be longer than the predetermined period. The setting means is configured to operate when the bus usage rate per unit time is below a certain value.

〔作用〕[Effect]

この発明においては、例えば、深夜、休日等の計算機負
荷が非常に軽い時間帯でバスの使用率が一定値以下にな
ると、設定手段がセットされ、これにより通常より長く
バスビジー状態がセットされるようになり、そのため計
算機の性能が落ちて、端末使用者に対する応答時間を本
来よりも遅くすることができる。
In this invention, for example, when the bus usage rate falls below a certain value during times when the computer load is very light, such as late at night or on holidays, the setting means is set so that the bus busy state is set for a longer time than usual. As a result, the performance of the computer decreases, and the response time to the terminal user can become slower than it should be.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第1図は実施例の構成を示すブロック図であり、第3図
に示した従来例と同−又は相当部分には同一符号を用い
、その説明は省略する。図中、11が本願によりバス制
御装置(10)に設けられた設定手段に相当する遅延モ
ードラッチであり、本実施例では機械語プログラムがダ
イアグノース命令によりこのう・ノチをセット/リセッ
トできるようになっている。O3(オペレーティングシ
ステム)のプログラムはIdleのwattに入った時
刻、割り込みによりこれが解除された時刻を計測するこ
とにより計算機のビジー率、すなわちバスのビジー率を
計算する。単位時間9例えば1分間の平均ビジー率が一
定値1例えば5%以下という状態が検出されるとO8の
プログラムはダイアグノース命令によりこの遅延モード
ラッチ(11)をセットする。一方、このラッチがセッ
トさ゛れている状態で1分間の平均ビジー率が5%以上
になると、同様にO8はダイアグノース命令によりこの
遅延モードラッチ(11)をリセットする。この遅延モ
ードラッチ(11)がリセットされている時には、バス
(1)は第3図の従来装置と同様。
FIG. 1 is a block diagram showing the configuration of an embodiment, and the same or equivalent parts as in the conventional example shown in FIG. 3 are denoted by the same reference numerals, and the explanation thereof will be omitted. In the figure, numeral 11 is a delay mode latch corresponding to the setting means provided in the bus control device (10) according to the present application, and in this embodiment, the machine language program can set/reset the input/output by the diagnosis command. It has become. The O3 (operating system) program calculates the busy rate of the computer, that is, the busy rate of the bus, by measuring the time when the Idle WAT is entered and the time when it is released by an interrupt. When a state is detected in which the average busy rate over a unit time 9, for example, one minute is less than a constant value 1, for example 5%, the O8 program sets this delay mode latch (11) by a diagnosis command. On the other hand, if the average busy rate for one minute becomes 5% or more while this latch is set, O8 similarly resets this delay mode latch (11) by a diagnosis command. When this delay mode latch (11) is reset, the bus (1) is the same as in the conventional device of FIG.

即ち第4図に示すタイムチャートのごとく動作する。That is, it operates as shown in the time chart shown in FIG.

第2図は、本実施例において、上記遅延モードラッチ(
11)がセットされている場合の動作を示したタイムチ
ャートであり、以下この図に沿って本実施例の動作につ
いて説明する。
FIG. 2 shows the delay mode latch (
11) is set, and the operation of this embodiment will be described below with reference to this diagram.

ユニットO(2)がクロックnでリクエスト信号(5)
をセットし、クロックn+lでイネーブル信号(6)が
セットされてバス(1)上にメモリアドレスが出力され
、クロックn+3でイネーブル信号(9)がセットされ
てメモリ読出しデータがバス(1)上に出力されるのは
第4図の場合と同様である。異なるのは、第4図の場合
バスビジー状態がクロックn+1からn+3までセット
されたのに対し、ここではクロックn+lからクロ、り
n+7まで、即ち4クロック多くセットされることであ
る。このためユニット1 (3)がクロックfi+3で
リクエスト信号(7)を上げてもクロックn+8まで受
付けられない。クロックn+8でこのリクエストは受付
けられ、クロックn+9でイネーブル信号(8)がセッ
トされ、ユニット1 (3)からメモリアドレスがバス
l上に出力される。そして、クロックn+11でメモリ
ユニ7)(4)からメモリ読出しデータがバス(1)上
に出力されユニット1 (3)に送られる。この場合も
同様に、バスビジー状態はクロックn+9からクロック
n+15までと、通常よりも4クロック長くセットされ
る。遅延モードラッチ(11)がセットされていない場
合(第4図)では、ユニット1 (3)はクロックn+
3でリクエスト信号(7)を七″ットして、クロックf
i+7でメモリ読出しデータを受付るのであるが、遅延
モードラッチ(11)がセットされた場合(第2図)で
は、ユニット1 (3)は同様にクロックH+3でリク
エスト信号(7)をセットしても、クロックn+11で
データを受取ることになる。即ち、遅延モードラッチ(
11)がセットされると、各ユニットがバス(1)上の
データ転送に時間を余分に使うようになり、そのため計
算機の性能が落ちることになる。これにより各端末の応
答時間も遅くなることになる。
Unit O (2) sends a request signal (5) at clock n.
is set, the enable signal (6) is set at clock n+l and the memory address is output on the bus (1), and the enable signal (9) is set at clock n+3 and the memory read data is output on the bus (1). The output is the same as in the case of FIG. The difference is that in the case of FIG. 4, the bus busy state is set from clock n+1 to clock n+3, whereas here it is set from clock n+l to clock n+7, that is, four clocks more. Therefore, even if unit 1 (3) raises the request signal (7) at clock fi+3, it will not be accepted until clock n+8. This request is accepted at clock n+8, the enable signal (8) is set at clock n+9, and the memory address is output from unit 1 (3) onto bus l. Then, at clock n+11, memory read data is outputted from the memory unit 7 (4) onto the bus (1) and sent to the unit 1 (3). In this case as well, the bus busy state is set from clock n+9 to clock n+15, which is 4 clocks longer than usual. When the delay mode latch (11) is not set (Fig. 4), unit 1 (3) is clocked n+
3, cut the request signal (7) by 7" and set the clock f.
Memory read data is accepted at clock i+7, but when the delay mode latch (11) is set (Figure 2), unit 1 (3) similarly sets the request signal (7) at clock H+3. will also receive data at clock n+11. That is, the delay mode latch (
If 11) is set, each unit will spend extra time transferring data on bus (1), which will reduce the performance of the computer. This also slows down the response time of each terminal.

なお、上記実施例では、機械語プログラムで動<O3(
オペレーティングシステム)が計算機のIdle状態を
検出して遅延モードラッチをセット/リセットするよう
になっているが、このかわりにサービスプロセッサ等の
マイクロプログラムが同様に計算機の1dle状態を検
出して、遅延モードラッチをセット/リセットするよう
にしてもよい。
Note that in the above embodiment, the machine language program is
The operating system (operating system) detects the Idle state of the computer and sets/resets the delay mode latch, but instead, a microprogram such as a service processor similarly detects the Idle state of the computer and sets/resets the delay mode latch. A latch may also be set/reset.

又、遅延モードラッチを例えば4ビット設け、これらの
値が“o o o o” の時は通常の動作、“000
1“の時はバスビジー状態を通常より1クロック延ばし
、”OO10″の時は同様に2クロック延ばし、・・・
・・・、“1111’ の時は同様に15クロック延ば
す、というようにしてもよい。
In addition, a delay mode latch is provided with, for example, 4 bits, and when these values are "o o o o", it is normal operation and "000".
When it is 1", the bus busy state is extended by 1 clock from normal, and when it is "OO10", it is also extended by 2 clocks, etc.
..., "1111'" may be similarly extended by 15 clocks.

〔発明の効果) 以上のように、この発明によるバス制御方式によれば、
バス使用時にバスビジー状態を所定期間セットするバス
制御装置に、バスビジー状態のセット期間を上記所定期
間以上に設定する設定手段を設け、単位時間当りのバス
の使用率が一定値以下の時、上記設定手段を働かせるよ
うにしたので、計算機の処理負荷が軽いときにバス性能
、ひいては計算機性能を落とすことができるようになり
、これにより計算機の処理負荷の変化により生じる端末
に対する応答時間の落差を減少することができるという
効果が得られる。
[Effects of the Invention] As described above, according to the bus control method according to the present invention,
A bus control device that sets the bus busy state for a predetermined period when the bus is used is provided with a setting means for setting the bus busy state to be longer than the predetermined period, and when the bus usage rate per unit time is below a certain value, the above setting is performed. By making the process more effective, it is possible to lower the bus performance and, by extension, the computer performance when the computer's processing load is light, thereby reducing the difference in response time for terminals caused by changes in the computer's processing load. You can get the effect that you can.

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

第1図は本発明の一実施例を示すブロック図、第2図は
本発明の一実施例のバスの動作を示すタイムチャート、
第3図は従来のバス制御方式を示すブロック図、第4図
は従来のバス制御方式の動作を示すタイムチャートであ
る。 (1)・・・・・・バス、(2,)・・・・・・ユニノ
)0.(3)・・・・・・ユニットL  (4)・・・
・・・メモリユニット、(5)、  (7)・・・・・
・リクエスト信号、(6)。 (8)、  (9)・・・・・・イネーブル信号、(1
0)・・・・・・バス制御装置、(11)・・・・・・
遅延モードラ・7チ(設定手段)。 なお、図中間−又は相当部分には同一符号を用いている
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a time chart showing the operation of a bus in an embodiment of the present invention.
FIG. 3 is a block diagram showing a conventional bus control method, and FIG. 4 is a time chart showing the operation of the conventional bus control method. (1)...Bus, (2,)...Unino)0. (3)...Unit L (4)...
...Memory unit, (5), (7)...
-Request signal, (6). (8), (9)... Enable signal, (1
0)... Bus control device, (11)...
Delay mode controller 7chi (setting means). Note that the same reference numerals are used for the middle part of the figure or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] データが入出力される複数のユニット間を共通のデータ
転送用バスで接続するとともに、上記バスの未使用時に
いずれかのユニットからのバス使用要求があると当該ユ
ニットにバス使用許可を与えてバスビジー状態を所定期
間セットし、その間に他のユニットからのバス使用要求
があってもこれを受付けないように制御するバス制御装
置を備えた計算機において、上記バス制御装置にバスビ
ジー状態のセット期間を上記所定期間以上に設定する設
定手段を設け、単位時間当りのバスの使用率が一定値以
下の時、上記設定手段を動かせるようにしたことを特徴
とするバス制御方式。
A common data transfer bus connects multiple units that input and output data, and when one of the units requests to use the bus when the bus is not in use, the unit is given permission to use the bus and becomes bus busy. In a computer equipped with a bus control device that sets the bus busy state for a predetermined period of time and controls the bus so that it does not accept any bus use requests from other units during that time, the bus control device has the bus busy state set period as described above. 1. A bus control method, characterized in that a setting means is provided for setting a period of time or more, and the setting means can be operated when the bus usage rate per unit time is below a certain value.
JP154386A 1986-01-08 1986-01-08 Bus control system Pending JPS62160560A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP154386A JPS62160560A (en) 1986-01-08 1986-01-08 Bus control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP154386A JPS62160560A (en) 1986-01-08 1986-01-08 Bus control system

Publications (1)

Publication Number Publication Date
JPS62160560A true JPS62160560A (en) 1987-07-16

Family

ID=11504434

Family Applications (1)

Application Number Title Priority Date Filing Date
JP154386A Pending JPS62160560A (en) 1986-01-08 1986-01-08 Bus control system

Country Status (1)

Country Link
JP (1) JPS62160560A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130097443A1 (en) * 2011-10-12 2013-04-18 Qualcomm Incorporated Dynamic voltage and clock scaling control based on running average, variant and trend

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130097443A1 (en) * 2011-10-12 2013-04-18 Qualcomm Incorporated Dynamic voltage and clock scaling control based on running average, variant and trend
US8650423B2 (en) * 2011-10-12 2014-02-11 Qualcomm Incorporated Dynamic voltage and clock scaling control based on running average, variant and trend

Similar Documents

Publication Publication Date Title
US5497501A (en) DMA controller using a predetermined number of transfers per request
JPS5812611B2 (en) Data Tensou Seigiyohoushiki
JPH0534699B2 (en)
JPS62160560A (en) Bus control system
JPS57211628A (en) Controller for shared input and output loop bus of multicomputer system
JPH04264652A (en) Dma control system
JPH09218859A (en) Multiprocessor control system
JPH04169953A (en) Computer system
JPS61264463A (en) Bus controlling system
JPH0216667A (en) Processor system
JPH0375859A (en) Direct memory access control device
JPS62127962A (en) Microcomputer
JPS61165172A (en) Memory access controlling system
JPH0354374B2 (en)
JPS63231668A (en) Interruption queue control system
JPS63282871A (en) Multi-processor system
JPS62145345A (en) Control system for direct memory access interval
JPS5856057A (en) Interruption signal generating device
JPS6334653A (en) Memory accessing system for information processor
JPS6097461A (en) Data bus control circuit
JPS63314668A (en) Transfer system for memory mapped data
JPS626359A (en) Bus control system
JPH01248264A (en) System for controlling contention of system bus
JPH0589028A (en) Information processor
JPH0814815B2 (en) Processing speed setting method