JPS6133560A - Data transfer circuit - Google Patents

Data transfer circuit

Info

Publication number
JPS6133560A
JPS6133560A JP15598084A JP15598084A JPS6133560A JP S6133560 A JPS6133560 A JP S6133560A JP 15598084 A JP15598084 A JP 15598084A JP 15598084 A JP15598084 A JP 15598084A JP S6133560 A JPS6133560 A JP S6133560A
Authority
JP
Japan
Prior art keywords
bus
data
data transfer
request signal
memory
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
JP15598084A
Other languages
Japanese (ja)
Inventor
Akira Nishimura
彰 西村
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP15598084A priority Critical patent/JPS6133560A/en
Publication of JPS6133560A publication Critical patent/JPS6133560A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/36Handling requests for interconnection or transfer for access to common bus or bus system
    • G06F13/368Handling requests for interconnection or transfer for access to common bus or bus system with decentralised access control
    • G06F13/372Handling requests for interconnection or transfer for access to common bus or bus system with decentralised access control using a time-dependent priority, e.g. individually loaded time counters or time slot
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/36Handling requests for interconnection or transfer for access to common bus or bus system

Abstract

PURPOSE:To prevent a bus from long occupation and to improve the using efficiency of the bus by transferring data intermittently when the large volume of data are to be transferred. CONSTITUTION:An oscillator 5 of which oscillation frequency and duty ratio can be set from the external is formed. When a transfer request signal is outputted from a memory or an I/O, AND between a bus using request signal outputted from a data transfer control circuit 4 and an oscillation output from the oscillator 5 is found out by an AND gate 6 and outputted as a bus request signal. Only in the period that the AND is ''1'', the bus is used and data is transferred, and in the ''0'' period, the bus is made idle to be used for other devices.

Description

【発明の詳細な説明】 技術分野 本発明は、データ転送回路に関し、詳しくはマイクロコ
ンピュータ・システムにおけるバス・データの転送回路
に関するものである。
TECHNICAL FIELD The present invention relates to a data transfer circuit, and more particularly to a bus data transfer circuit in a microcomputer system.

従来技術 マイクロコンピュータ・システムにおいては、通常、共
通バス上にCPU、メモリ、工10等のデバイスが接続
された構成を用いている0すなわち、第3図に示すよう
に、共通のバス9にはCPU1とメモリ2と、データ転
送制御回路(DirectMemory Access
 Controller) 4を介したメモリまたけI
lo 3とが接続されている。バス9とメモリまたはI
lo 3との間にはアドレス・データ・コントロール線
が、バス9とデータ転送制御回路4との間にはバス・コ
ントロール線が、データ転送制御回路4とメモリまfは
■103との間には転送要水線が、それぞれ設けられて
いる〇 第3図において、例えばメモリまたは■103からメモ
リ2にN語のデータを転送する場合、従来の転送方法と
しては次の3つの方法がある。
Conventional microcomputer systems usually use a configuration in which devices such as a CPU, a memory, and a processor 10 are connected on a common bus. In other words, as shown in FIG. The CPU 1, the memory 2, and the data transfer control circuit (DirectMemory Access
Memory spanning I via Controller) 4
lo 3 is connected. bus 9 and memory or I
There is an address/data control line between the LO3, a bus control line between the bus 9 and the data transfer control circuit 4, and a bus control line between the data transfer control circuit 4 and the memory or f103. In FIG. 3, for example, when N words of data are to be transferred from the memory or the memory 103 to the memory 2, there are three conventional transfer methods:

(1)1語転送ごとにバス・アクセス要求をCPU1(
または図示しないバス・アービタ)に送出し、許可され
れば送出を停止する方法、(li)あるデータ・ブロッ
ク数に分割してバス・アクセス要求を送出し、それをN
語になるまで数回繰り返す方法、(iii)一旦、バス
使用権を得た後は、バスを独占的に使用してすべてのデ
ータを一度に転送する方法である。
(1) For each word transfer, a bus access request is sent to CPU1 (
(or a bus arbiter (not shown)), and if permission is granted, the sending is stopped; (li) sending a bus access request by dividing it into a certain number of data blocks, and dividing it into N
(iii) Once the right to use the bus is obtained, the bus is used exclusively to transfer all data at once.

第4図、第5図は、上記(i)の転送方法の説明図であ
る。
FIGS. 4 and 5 are explanatory diagrams of the transfer method (i) above.

いま、メモリまたはrlo 3より大量のデータ(N語
)をメモリ2に転送しようとする場合、先ずメモリマだ
はIlo 3よシデータ転送制御回路4に転送要求信号
(REQUEST )を送出する(第4図。
Now, when trying to transfer a large amount of data (N words) from the memory or rlo 3 to the memory 2, the memory master first sends a transfer request signal (REQUEST) from the memory to the data transfer control circuit 4 (see Fig. 4). .

第5図参照)。これによシ、データ転送制御回路4は、
1語ごとにバス要求信号(BREQ)を送出する。CP
U1(または図示しないバス・アービタ)からバス使用
許可信号(BPRN)がデータ転送制御回路4に送られ
てくることによシ、アドレス・データ・コントロール線
を介してメモリまたはIlo 3からメモリ2に1語の
データを転送する。
(See Figure 5). Accordingly, the data transfer control circuit 4
A bus request signal (BREQ) is sent out for each word. C.P.
By sending a bus permission signal (BPRN) from U1 (or a bus arbiter not shown) to the data transfer control circuit 4, data is transferred from the memory or Ilo 3 to the memory 2 via the address/data control line. Transfer one word of data.

これを、第5図に示すように、N回繰り返すことによシ
データ転送が実行される。
As shown in FIG. 5, data transfer is executed by repeating this N times.

しかし、上記(i)の方法では、バス使用権を獲得する
だめの時間がN回分かかシ、そのだめの待時間が長くな
ってしまう。すなわち、第5図に示すように、バス使用
許可信号(BPRN)の受信と同時に、データ転送が行
われるが、データ1語を転送するごとにバスの空きを待
つだめの待時間が挿入されるのでバスの使用効率が悪く
なる。
However, in the method (i) above, it takes N times to acquire the right to use the bus, and the waiting time between those attempts becomes long. That is, as shown in FIG. 5, data transfer is performed at the same time as the bus permission signal (BPRN) is received, but a waiting time for waiting for a vacant bus is inserted every time one word of data is transferred. As a result, bus usage efficiency deteriorates.

また、前記(百)の方法、つまジブロックごとにバス・
アクセス要求を出す方法では、データ・ブロック数ごと
にデータをカウントする必要があるため、そのだめのオ
ーバヘッドが大きくなる。
In addition, according to the method (100) above, bus
In the method of issuing an access request, it is necessary to count data for each data block, resulting in a large overhead.

さらに、前記(iii)の方法、つまシバスを独立使用
する方法では、バスの使用効率は上がるが、バスに接続
された他の制御装置はその間バスを使用できないため、
処理が阻害される。
Furthermore, in the method (iii) above, in which the bus is used independently, the bus usage efficiency increases, but other control devices connected to the bus cannot use the bus during that time.
Processing is inhibited.

目   的 本発明の目的は、このような従来の問題点を改善し、大
量のデータを転送するときにも、長時間バスを独占せず
、かつバスの使用効率を高めることができるデータ転送
回路を提供することにある。
Purpose An object of the present invention is to provide a data transfer circuit that can improve the problems of the conventional art and that can improve bus usage efficiency without monopolizing the bus for a long time even when transferring a large amount of data. Our goal is to provide the following.

構成 上記目的を達成するため、本発明のデータ転送回路は、
2個以上のバス・マスタによシ使用されるバス構造を有
する処理システムにおいて、発振周波数とデユーティ比
を外部から任意に設定できる発振器、および該発振器の
発振出力とバス・マスタからのバス使用要求信号との論
理積をとる手段を有し、該論理積の結果がn 1)Iの
ときのみバスを使用してデータ転送することに特徴があ
る。
Configuration In order to achieve the above object, the data transfer circuit of the present invention has the following features:
In a processing system having a bus structure used by two or more bus masters, an oscillator whose oscillation frequency and duty ratio can be set arbitrarily from the outside, and the oscillation output of the oscillator and bus usage requests from the bus masters. It is characterized in that it has means for performing a logical product with a signal, and data is transferred using a bus only when the result of the logical product is n1)I.

以下、本発明の構成を実施例によシ説明する。Hereinafter, the configuration of the present invention will be explained using examples.

第1図は、本発明の一実施例を示すデータ転送回路のブ
ロック図であシ、第2図は第1図の動作タイムチャート
である。
FIG. 1 is a block diagram of a data transfer circuit showing one embodiment of the present invention, and FIG. 2 is an operation time chart of FIG. 1.

第1図において、4はデータ転送制御回路、5は発振周
波数とデユーティ比率が設定可能な発振回路、6はアン
ド・ゲート、9は共通バスであって、図示されていない
がその他にも第3図と同じように、メモリは■/103
、メモリ2、およびCPU1が接続されている。
In FIG. 1, 4 is a data transfer control circuit, 5 is an oscillation circuit whose oscillation frequency and duty ratio can be set, 6 is an AND gate, 9 is a common bus, and there is also a third bus (not shown). As shown in the figure, the memory is ■/103
, memory 2, and CPU 1 are connected.

本発明では、発振周波数とデユーティ比を外部から設定
できる発振器5を設けて、メモリまたは工103から転
送要求信号(REQUEST )があると、データ転送
制御回路4からのバス使用要求信号(。
In the present invention, an oscillator 5 whose oscillation frequency and duty ratio can be set externally is provided, and when a transfer request signal (REQUEST) is received from the memory or the device 103, a bus use request signal (REQUEST) is sent from the data transfer control circuit 4.

BREQ )と発振器5からの発振出力との論理積をと
ってバス要求信号(BREQ’ )  とする。そして
論理積の結果が“1”の期間のみバスを使用して・デー
タを転送し to Onの期間は他の装置(バス・マス
タ)のためにバスを空ける。すなわち、バスの使用許可
(BPRN)が送られてきても、バスを連続して独占せ
ずに、間歇的にデータを転送することによって、必ず途
中で他の装置(バス・マスタ)からのバス使用要求を受
付けられるようにする。
BREQ) and the oscillation output from the oscillator 5 are ANDed to obtain a bus request signal (BREQ'). The bus is used to transfer data only during the period when the AND result is "1", and the bus is freed for other devices (bus master) during the to-on period. In other words, even if a bus usage permission (BPRN) is sent, data is transferred intermittently without monopolizing the bus continuously, so that the bus is always interrupted by another device (bus master) on the way. Be able to accept usage requests.

第2図に示すように、バスの使用負荷は状況によって変
わるが、tz/ (tx + tz)の割合で使用する
ことができる。
As shown in FIG. 2, the load on the bus varies depending on the situation, but it can be used at a rate of tz/(tx + tz).

発振器5には、あらかじめ発振周波数’/ (Lx+ 
t2) (Hz )  およびデユーティ比率t2 /
 (t1+t2)を設定しておくことによシ、発振出力
OSCとしてt1=at o”、t2==”l″′が出
力される。
The oscillator 5 has an oscillation frequency '/(Lx+
t2) (Hz) and duty ratio t2/
By setting (t1+t2), t1=ato" and t2=="l"' are output as the oscillation output OSC.

ここで、t1=″′0”の期間は、他のバス・ マスク
(例えばCPU1)のためにバスを開放する時間であ1
、t2=“1”の期間は、このデータ転送回路がバスを
使用する時間である。
Here, the period t1=''0'' is the time to release the bus for another bus mask (for example, CPU1).
, t2="1" is the time during which this data transfer circuit uses the bus.

転送要求信号(REQtJEsT )が入力すると、デ
ータ転送制御回路4からバス要求信号(BREQ)が出
力される。第2図に示すように、バス要求信号(BRE
Q)は1語ごとに区切らなくてもよい。ただ、間歇的な
要求信号を自動的に出力させるため、発振回路5からの
出力信号(OSC)とバス要求信号(B REQ )と
の論理積をとって、バス要求信号(BRE(r)とする
。これによって、発振回路5の出力(OSC)が“1″
の期間t2だけ、データの転送が行われ、出力(OSC
)がtl OIIの期間t】にはデータの転送が中断さ
れて、バスを他のバス・マスタのために明は渡す。
When the transfer request signal (REQtJEsT) is input, the data transfer control circuit 4 outputs the bus request signal (BREQ). As shown in Figure 2, the bus request signal (BRE
Q) does not need to be separated into individual words. However, in order to automatically output an intermittent request signal, the output signal from the oscillation circuit 5 (OSC) and the bus request signal (B REQ ) are ANDed and the bus request signal (BRE(r) As a result, the output (OSC) of the oscillation circuit 5 becomes “1”.
Data transfer is performed for a period t2, and the output (OSC
) during period t] of tlOII, data transfer is interrupted and the bus is handed over to another bus master.

第2図と第5図のタイムチャートを比較すれば明らかな
ように、第5図では1語転送するごとに待時間が挿入さ
れているのに対し、第2図では複数語(図では5語)の
データを転送するごとに待時間が挿入されるだけである
から、バスの使用効率は向上する。また、発振回路5の
出力のt2期間だけデータが転送されて、その間の語数
が定まっているため、ブロック転送のだめのカウントが
不要である。また、発振回路5の発振周波数およびデユ
ーティ比率を可変にすることによって、バスの使用頻度
に応じたデータ転送が行える。
As is clear from a comparison of the time charts in Figures 2 and 5, in Figure 5 a waiting time is inserted for each word transferred, whereas in Figure 2 a wait time is inserted for each word transferred (in Since only a waiting time is inserted each time data is transferred, bus usage efficiency is improved. Furthermore, since data is transferred only during the t2 period of the output of the oscillation circuit 5, and the number of words during that period is fixed, there is no need to count the number of block transfers. Furthermore, by making the oscillation frequency and duty ratio of the oscillation circuit 5 variable, data transfer can be performed in accordance with the frequency of use of the bus.

効果 以上説明したように、本発明によれば、大量のデータを
転送するときにも、間歇的にデータを転送するため、長
時間バスを独占することがなく、したがって他のバス・
マスタを阻害せず、しかもバスの使用効率を向上するこ
とができる。
Effects As explained above, according to the present invention, even when transferring a large amount of data, the data is transferred intermittently, so the bus is not monopolized for a long time, and therefore other buses
It is possible to improve bus usage efficiency without interfering with the master.

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

第1図は本発明の一実施例を示すデータ転送回路のブロ
ック図、第2図は第1図の動作タイムチャート、第3図
はマイクロコンピュータ・システムのブロック構成図、
第4図は従来のデータ転送回路のブロック構成図、第5
図は第4図の動作タイム・チャートである。 1:CPU、2:メモリ、3:メモリまたはIlo、4
:データ転送制御回路、5:発振器、6:アンド・ゲー
ト、9:共通バス。 第   1   図 第   2   図 第   3   図 第   4   図 第   5   図 待時間    データ転送中
FIG. 1 is a block diagram of a data transfer circuit showing an embodiment of the present invention, FIG. 2 is an operation time chart of FIG. 1, and FIG. 3 is a block diagram of a microcomputer system.
Figure 4 is a block diagram of a conventional data transfer circuit;
The figure is an operation time chart of FIG. 4. 1: CPU, 2: Memory, 3: Memory or Ilo, 4
: data transfer control circuit, 5: oscillator, 6: AND gate, 9: common bus. Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Wait time Data transfer in progress

Claims (1)

【特許請求の範囲】[Claims] 2個以上のバス・マスタにより使用されるバス構造を有
する処理システムにおいて、発振周波数とデユーテイ比
を外部から任意に設定できる発振器、および該発振器の
発振出力とバス・マスタからのバス使用要求信号との論
理積をとる手段を有し、該論理積の結果が“1”のとき
のみバスを使用してデータ転送することを特徴とするデ
ータ転送回路。
In a processing system having a bus structure used by two or more bus masters, an oscillator whose oscillation frequency and duty ratio can be set arbitrarily from the outside, and the oscillation output of the oscillator and a bus use request signal from the bus masters are provided. What is claimed is: 1. A data transfer circuit comprising: means for calculating a logical product; and data is transferred using a bus only when the result of the logical product is "1".
JP15598084A 1984-07-26 1984-07-26 Data transfer circuit Pending JPS6133560A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15598084A JPS6133560A (en) 1984-07-26 1984-07-26 Data transfer circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15598084A JPS6133560A (en) 1984-07-26 1984-07-26 Data transfer circuit

Publications (1)

Publication Number Publication Date
JPS6133560A true JPS6133560A (en) 1986-02-17

Family

ID=15617722

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15598084A Pending JPS6133560A (en) 1984-07-26 1984-07-26 Data transfer circuit

Country Status (1)

Country Link
JP (1) JPS6133560A (en)

Similar Documents

Publication Publication Date Title
JPS6048791B2 (en) access control device
JPS6133560A (en) Data transfer circuit
JPH0210459A (en) Bus use right determining system
JPH02144652A (en) Bus arbitration system
JPS6280753A (en) Bus control system
JPS57211628A (en) Controller for shared input and output loop bus of multicomputer system
JP2742135B2 (en) Bus arbitration equipment
JPS6041157A (en) Bus contention control system
JPS5936863A (en) Circuit for controlling access competition of common resource
JPS62200446A (en) Interface device
JPS5839343B2 (en) Multiprocessor system instructions
JPS61264463A (en) Bus controlling system
JPH06214946A (en) Bus using right mediation system for multistage bus
JPS63280363A (en) Processing speed setting system
JPH043239A (en) Bus controller
JPH08297631A (en) Bus control method
JPS6267653A (en) Bus control system
JPS6079455A (en) Bus controlling system
JPH03282955A (en) Bus arbitration circuit
JPS626359A (en) Bus control system
JPS6152766A (en) Multi-processor control system
JPS5856057A (en) Interruption signal generating device
JPS62160560A (en) Bus control system
JPH03240151A (en) Data transfer control system
JPS58203563A (en) System for controlling assignment of priority of right