JPH0630085B2 - Computer system - Google Patents

Computer system

Info

Publication number
JPH0630085B2
JPH0630085B2 JP58007531A JP753183A JPH0630085B2 JP H0630085 B2 JPH0630085 B2 JP H0630085B2 JP 58007531 A JP58007531 A JP 58007531A JP 753183 A JP753183 A JP 753183A JP H0630085 B2 JPH0630085 B2 JP H0630085B2
Authority
JP
Japan
Prior art keywords
dma
bus
processor
transfer
signal
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
JP58007531A
Other languages
Japanese (ja)
Other versions
JPS59133629A (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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP58007531A priority Critical patent/JPH0630085B2/en
Publication of JPS59133629A publication Critical patent/JPS59133629A/en
Publication of JPH0630085B2 publication Critical patent/JPH0630085B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime 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/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
    • G06F13/282Cycle stealing DMA

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bus Control (AREA)

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、プロセッサの処理と並列にDMA転送を行
い、プロセッサの処理効率を向上させることが可能な計
算機システムに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer system capable of improving the processing efficiency of a processor by performing DMA transfer in parallel with the processing of the processor.

〔従来の技術〕 従来より、高速度転送を要するI/Oデバイス(例えば
CRTデイスプレイ装置)と主メモリの間では、プログ
ラムによることなく、DMA(Direct Memory Access)制
御によつてハードウエアでデータ転送を行つている。そ
の場合、従来の計算機システムでは、第1図に示すよう
に、プロセツサ1に対し、アドレス・バス104,データ
・バス105および制御バス103を介してメモリ4、DMA
制御素子2およびI/Oデバイス3が直結されているた
め、DMA制御素子2とプロセツサ1が同時にこれらの
バス103,104,105を占有することはできない。したがつ
て、DMA転送要求が発生したときには、その都度、プ
ロセツサ1を停止させたり、基本クロツクの幅を延長し
たりして、プロセツサ1の動作が停止している間に、D
MA転送を行う方法、つまり時分割方式によりDMA転
送を行つている。
[Prior Art] Conventionally, data is transferred between an I / O device (for example, a CRT display device) that requires high-speed transfer and a main memory by hardware by DMA (Direct Memory Access) control without using a program. Are going. In that case, in the conventional computer system, as shown in FIG. 1, the processor 1 is provided with a memory 4, a DMA via a address bus 104, a data bus 105 and a control bus 103.
Since the control element 2 and the I / O device 3 are directly connected, the DMA control element 2 and the processor 1 cannot simultaneously occupy these buses 103, 104, 105. Therefore, when a DMA transfer request is issued, the processor 1 is stopped or the width of the basic clock is extended each time the DMA transfer request is issued.
The DMA transfer is performed by the method of performing the MA transfer, that is, the time division method.

第2図は、第1図の計算機システムの動作タイムチヤー
トである。
FIG. 2 is an operation time chart of the computer system shown in FIG.

第2図において、先ず、(1)DMA転送要求TXRQn
が、I/Oデバイス3からライン106を介してDMA制
御素子2に入力されると、DMA制御素子2はその入力
をクロツクφ2の立上がり時点でチエツクし、もしDM
A転送要求TXRQnががハイレベルであれば、以下
(2)〜(11)の手順にしたがつて動作する。(2)DMA転送
要求TXRQnがハイレベルであることをチエツクした
DMA制御素子2は、ライン101を介してプロセツサ停
止要求信号▲▼=Oをプロセツサ1に出力し
て、プロセツサ停止を要求する。(3)プロセツサ1から
制御バス103を介してI/Oデバイス3に転送アクノリ
ツジ信号TXAKAを出力する。(4)プロセツサ1が停
止して、プロセツサ1からライン102を介してDMA制
御素子2に対し、DMA転送承認信号DGRNT(ハイ
レベル)が出力されるのを待つ。(5)承認信号DGRN
Tがハイレベルになると、転送アクノリツジ信号TXA
KB、アドレス信号およびDMA R/W信号を、DM
A制御素子2から制御バス103,およびアドレス・バス1
04を介してI/Oデバイス3に出力する。(6)DMA制
御素子2からライン107を介してDMA転送ストローブ
TXSTBnをI/Oデバイス3に出力して、データ・
バス105を介しメモリ4とI/Oデバイス3との間でD
MA転送を行う。(7)DMA制御素子2内のアドレス・
レジスタを+1し、転送語数レジスタを−1する。(8)
ライン101を介して送られるプロセツサ停止要求信号▲
▼がハイレベルに戻つて、プロセツサ1は再び
動作を開始する。(9)ライン106を介して送られるDMA
転送要求信号TXRQnがローレベルに戻る。(10)アド
レス・バス104、DMA R/Wの制御バス103は、再び
ハイインピーダンス状態となる。(11)ライン102を介し
て送られるDMA転送許可信号DGRNTが、ローレベ
ルに戻る。
In FIG. 2, first, (1) DMA transfer request TXRQn
Is input to the DMA control element 2 from the I / O device 3 via the line 106, the DMA control element 2 checks the input at the rising edge of the clock φ 2 , and if DM
If the A transfer request TXRQn is at high level,
It operates according to the procedure from (2) to (11). (2) The DMA control element 2 which has checked that the DMA transfer request TXRQn is at the high level outputs the processor stop request signal ∇ = O to the processor 1 through the line 101 to request the processor stop. (3) The transfer acknowledge signal TXAKA is output from the processor 1 to the I / O device 3 via the control bus 103. (4) Wait for the processor 1 to stop and output the DMA transfer acknowledge signal DGRNT (high level) from the processor 1 to the DMA control element 2 via the line 102. (5) Acknowledgment signal DGRN
When T goes high, the transfer acknowledge signal TXA
KB, address signal and DMA R / W signal
A control element 2 to control bus 103, and address bus 1
Output to I / O device 3 via 04. (6) The DMA transfer strobe TXSTBn is output from the DMA control element 2 to the I / O device 3 via the line 107 to transfer the data.
D between the memory 4 and the I / O device 3 via the bus 105
Perform MA transfer. (7) Address in DMA control element 2
The register is incremented by 1, and the transfer word number register is decremented by -1. (8)
Processor stop request signal sent via line 101 ▲
When ▼ returns to the high level, the processor 1 starts the operation again. (9) DMA sent over line 106
The transfer request signal TXRQn returns to low level. (10) The address bus 104 and the DMA R / W control bus 103 are again in a high impedance state. (11) The DMA transfer permission signal DGRNT sent via the line 102 returns to the low level.

このように、上記(1)〜(11)の手順でDMA転送が行わ
れるが、その都度、プロセツサ1を停止させる必要があ
るため、プロセツサ1の実行サイクルとDMA転送の前
後で、DMA制御素子2もプロセツサ1もともにバスを
使用しないデツド・サイクル(Dead Cycle)が生ずる。
このデツド・サイクルが生じることに加えて、プロセツ
サ1とDMA制御素子2が時分割で動作するため、DM
A転送により、DMA転送に関係のない処理に関してプ
ロセツサ1の処理効率が低下するという欠点がある。
As described above, the DMA transfer is performed in the procedure of (1) to (11), but the processor 1 needs to be stopped each time, so that the DMA control element is used before and after the execution cycle of the processor 1 and the DMA transfer. A dead cycle occurs in which neither the processor 2 nor the processor 1 uses the bus.
In addition to the occurrence of this dead cycle, since the processor 1 and the DMA control element 2 operate in a time division manner, DM
The A transfer has a drawback in that the processing efficiency of the processor 1 is reduced with respect to the processing not related to the DMA transfer.

〔発明の目的〕[Object of the Invention]

本発明の目的は、このような欠点を除去するため、プロ
セツサがDMA関連デバイスをアクセスしないときに
は、プロセツサとDMAデバイスを並列処理させること
により、DMA転送時のプロセツサの処理効率の低下を
防ぐことができる計算機システムを提供することにあ
る。
An object of the present invention is to eliminate such drawbacks, by allowing the processor and the DMA device to perform parallel processing when the processor does not access the DMA related device, thereby preventing the processing efficiency of the processor during DMA transfer from being lowered. It is to provide a computer system that can do it.

〔発明の概要〕[Outline of Invention]

本発明の計算機システムは、プロセッサ、記憶装置およ
びDMA制御装置を共通バスで接続した計算機システム
において、上記共通バスに接続された上記DMA制御装
置と該DMA制御装置により制御される関連装置とを接
続するバス部分とその他のプロセッサ側のバス部分とを
切り離すためのバス・スイッチと、上記プロセッサから
アクセス先を指定する信号を受信し、該信号が上記DM
A関連装置をアクセス先として指定していないときにバ
ス切り替え信号およびバス不アクセス信号を発生するデ
コーダを設け、上記バス・スイッチは、上記デコーダか
ら発生された上記バス切り替え信号によって切り離さ
れ、上記DMA制御装置は、上記DMA関連装置である
DMA転送用I/O装置からデータ転送要求を受けたと
き、上記DMAバス不アクセス信号を上記デコーダから
受信した場合にDMA転送を行うことを特徴としてい
る。
A computer system according to the present invention is a computer system in which a processor, a storage device and a DMA controller are connected by a common bus, and the DMA controller connected to the common bus and an associated device controlled by the DMA controller are connected to each other. And a bus switch for disconnecting the bus portion of the other processor from the bus portion of the processor, and a signal designating an access destination from the processor, and the signal is transmitted to the DM.
A decoder is provided for generating a bus switching signal and a bus non-access signal when the A-related device is not designated as an access destination, and the bus switch is disconnected by the bus switching signal generated from the decoder, and the DMA is switched. The control device is characterized in that when the data transfer request is received from the DMA transfer I / O device which is the DMA related device, the control device performs the DMA transfer when the DMA bus non-access signal is received from the decoder.

〔発明の実施例〕Example of Invention

第3図は本発明の実施例を示す計算機システムのブロツ
ク図である。
FIG. 3 is a block diagram of a computer system showing an embodiment of the present invention.

本発明では、第3図に示すように、プロセツサ1と、D
MA関連デバイスであるDMA制御素子2、I/Oデバ
イス3、DMA転送用記憶素子5の間に、バス切替スイ
ツチ6を設け、このスイツチ6を制御するためのデコー
ダ7を設けている。
In the present invention, as shown in FIG.
A bus switching switch 6 is provided between the DMA control element 2, the I / O device 3, and the DMA transfer storage element 5, which are MA-related devices, and a decoder 7 for controlling the switch 6 is provided.

ところで、プロセツサ1は、直接、DMA関連デバイス
をアクセスするとき以外には、他の記憶素子あるいはI
/Oデバイスをアクセスするか、あるいはプロセツサ自
身の内部レジスタをアクセスしており、その間にDMA
制御素子2が単独でDMA関連デバイス3をアクセスで
きるようにすれば、プロセツサ1とDMA関連デバイス
は並列に動作することができる。プロセツサ1が直接D
MAデバイスをアクセスするのは、DMAデバイスをア
クセスする命令をフエツチした後、データを読み出し、
書き込みする1サイクルの間だけであり、全体からみる
と僅かな期間である。勿論、プロセツサ1がDMAデバ
イスをアクセスしない命令のときには、全くDMAデバ
イスはアクセスされず、無駄な時間となつている。これ
は、プロセツサ1とDMA制御素子2が直接バスで結ば
れているためであり、DMA転送制御時には、このバス
をプロセツサ1とDMA制御素子2が時分割で使用する
ので、プロセツサ1の処理効率は低下することになる。
By the way, the processor 1 uses other storage elements or I except when directly accessing the DMA-related device.
I / O device or the internal register of the processor itself is being accessed.
If the control element 2 can independently access the DMA-related device 3, the processor 1 and the DMA-related device can operate in parallel. Processor 1 directly D
The MA device is accessed by fetching the data after fetching the instruction to access the DMA device.
It is only for one cycle of writing, which is a short period as a whole. Of course, when the processor 1 is an instruction not to access the DMA device, the DMA device is not accessed at all, resulting in a waste of time. This is because the processor 1 and the DMA control element 2 are directly connected to each other by a bus, and during the DMA transfer control, the processor 1 and the DMA control element 2 use the bus in a time division manner, so that the processing efficiency of the processor 1 is improved. Will be reduced.

そこで、第3図では、DMA関連デバイス(2,3,
5)とプロセツサ1の間にバススイツチ6を設け、DM
A転送時に、プロセツサ1の使用するバス(103,104,10
5)とDMA関連デバイスの使用するバス(203,204,205,3
03,304,305)を分離させ、プロセツサ1の処理と、DM
A転送とを並列に処理させることにより、処理効率の低
下を防止する。
Therefore, in FIG. 3, the DMA-related devices (2, 3,
5) A bus switch 6 is provided between the processor 1 and DM
The bus used by processor 1 during A transfer (103, 104, 10
5) and buses used by DMA related devices (203, 204, 205, 3
03, 304, 305) are separated, the processing of processor 1 and DM
By processing the A transfer in parallel, a decrease in processing efficiency is prevented.

第3図において、バススイツチ6は、デコーダ7により
開閉され、プロセツサ1がDMA関連デバイス(2,
3,5)をアクセスしないときには、プロセツサ側のバ
スからDMA側のバスを切り離す。DMA転送の手順は
ほぼ従来のDMA転送の場合と同じであるが、ただ、本
発明の場合には、I/Oデバイス3から転送要求があつ
ても、プロセツサ1に対して停止要求信号▲▼
を出力したり、またDMA転送許可信号DGRNTを入
力したりしない。すなわち、DMAは、プロセツサ1と
並列に動作するのである。
In FIG. 3, the bus switch 6 is opened / closed by the decoder 7 so that the processor 1 can operate the DMA-related devices (2,
When not accessing 3, 5), the bus on the DMA side is disconnected from the bus on the processor side. The procedure of the DMA transfer is almost the same as that of the conventional DMA transfer. However, in the case of the present invention, even if a transfer request is issued from the I / O device 3, a stop request signal ▲ ▼ is sent to the processor 1.
Is not output or the DMA transfer enable signal DGRNT is not input. That is, the DMA operates in parallel with the processor 1.

第4図は、第3図におけるDMA制御素子2の構成を示
すブロツク図である。
FIG. 4 is a block diagram showing the structure of the DMA control element 2 in FIG.

DMA制御素子2は、第4図に示すように、アドレス・
レジスタ8、データ・カウント・レジスタ9、コントロ
ール・レジスタ10、ステータス・レジスタ11、アド
レス・バス・バツフア12、アンド回路13,14を有
している。各レジスタ8,9,10,11は、各チヤネ
ルごとに1個ずつ設けられる。アドレス・レジスタ8
は、アドレス・バス・バツフア12を通して、バススイ
ツチ6に対し、DMA転送制御用のアドレスを出力する
(アドレス・バス204)。アドレス・レジスタ8の内容
は、そのチヤネルのDMAを実行している間、バス・ス
イツチ6に出力され、1語の転送が終ると+1される。
As shown in FIG. 4, the DMA control element 2 has an address
It has a register 8, a data count register 9, a control register 10, a status register 11, an address bus buffer 12, and AND circuits 13 and 14. The registers 8, 9, 10 and 11 are provided one for each channel. Address register 8
Outputs an address for DMA transfer control to the bus switch 6 through the address bus buffer 12 (address bus 204). The contents of the address register 8 are output to the bus switch 6 while the DMA of the channel is being executed, and are incremented by 1 when the transfer of one word is completed.

次に、データ・カウント・レジスタ9はDMA転送の転
送語数をセツトし、データ・カウント・レジスタ9の内
容を1語の転送が終了するごとに−1する。
Next, the data count register 9 sets the number of words to be transferred in the DMA transfer, and decrements the content of the data count register 9 by -1 every time one word is transferred.

コントロール・レジスタ10は、対応する各チヤンネル
の制御情報をセツトする。このコントロール・レジスタ
10には、I/Oデバイス3の選択情報DVSがあり、
選択情報DVSとDMA転送要求信号TXRQn(ライ
ン106)の論理積により、I/Oデバイス3に対するD
MA転送許可信号TXSTBnをライン107を介して出
力する。また、コントロール・レジスタ10の送信/受
信を指定するS/R信号と、DMA転送要求信号TXR
Qn(ライン106)の論理積により、制御バス203を介し
てDMAからのリード/ライト信号(DMA R/W)
を出力する。
The control register 10 sets the control information of each corresponding channel. The control register 10 has selection information DVS for the I / O device 3,
D for the I / O device 3 is obtained by the logical product of the selection information DVS and the DMA transfer request signal TXRQn (line 106).
The MA transfer permission signal TXSTBn is output via the line 107. Also, an S / R signal designating transmission / reception of the control register 10 and a DMA transfer request signal TXR
Read / write signal (DMA R / W) from the DMA via the control bus 203 by the logical product of Qn (line 106)
Is output.

ステータス・レジスタ11は、割込フラグ等のDMA制
御素子2の動作状態を読み出すために使用される。
The status register 11 is used to read the operating state of the DMA control element 2 such as an interrupt flag.

各レジスタ8,9,10,11への書き込み、および読
み出しは、先ずデコード回路7のレジスタ選択信号によ
りレジスタが選択され、DMA側のデータ・バス205か
らバス・スイツチ6を通してプロセツサ1に読み書きさ
れる。
For writing to and reading from each of the registers 8, 9, 10, and 11, the register is first selected by the register selection signal of the decoding circuit 7, and the data is read from or written to the processor 1 from the data bus 205 on the DMA side through the bus switch 6. .

第5図は、第3図におけるバス・スイツチ6およびデコ
ード回路7の構成を示すブロツク図である。
FIG. 5 is a block diagram showing the configuration of the bus switch 6 and the decoding circuit 7 in FIG.

バス・スイツチ6は、第5図に示すように、アドレス・
バツフア15,16、インバータ17、データ・バスゲ
ート制御器18、データ・バス・バツフア19、データ
・セレクタ20から構成される。バス・スイツチ6で
は、デコード回路7からのデコード信号(DMACS
CPU)、つまりプロセツサ1がDMA制御素子2、I
/Oデバイス3、DMA転送用メモリ5のDMA関連デ
バイスをアクセスするためのデコード信号21によつ
て、プロセツサ側のアドレス・バツフア15を開き、バ
ス304を介してメモリ5、I/Oデバイス3にアドレス
を出力する。プロセツサ1がDMA関連デバイスをアク
セスしない場合には、デコード信号(DMAC
CPU)21がローレベルとなるため、プロセツサ側
のアドレス・バツフア15を閉じ、インバータ17を通
してDMA側のアドレス・バツフア16のゲートを開
き、DMA制御素子2の出力するアドレス(アドレス・
バス204)をDMA関連メモリ5、I/Oデバイス3に
供給する(アドレス・バス304)。
The bus switch 6, as shown in FIG.
It comprises buffers 15 and 16, an inverter 17, a data bus gate controller 18, a data bus buffer 19, and a data selector 20. In the bus switch 6, the decode signal (DMACS) from the decode circuit 7
CPU ), that is, the processor 1 is the DMA control element 2, I
The address buffer 15 on the processor side is opened by the decode signal 21 for accessing the DMA related device of the I / O device 3 and the DMA transfer memory 5, and the memory 5 and the I / O device 3 are connected to the memory 5 and the I / O device 3 via the bus 304. Output address. If the processor 1 does not access the DMA related device, the decode signal (DMAC
Since the S CPU ) 21 becomes low level, the address buffer 15 on the processor side is closed, the gate of the address buffer 16 on the DMA side is opened through the inverter 17, and the address (address
The bus 204) is supplied to the DMA related memory 5 and the I / O device 3 (address bus 304).

データ・バス105,205,305に対しては、デコード回路7
のデコード信号(DMACSCPU)21と、プロセツ
サ1のリード/ライト信号(バス103のR/W)とによ
り、データ・バスゲート制御器18が、双方向データ・
バス・バツフア19を開閉する。すなわち、プロセツサ
1がDMA関連デバイスをアクセスするとき、デコード
信号(DMACSCPU)21がハイレベルとなり、プ
ロセツサ1のリード/ライト信号(制御バス103のR/
W)に対応していずれか一方のデータ・バス・バツフア
19が開き、プロセツサ1側のデータ・バス105とDM
A側のデータ・バス205,305が接続される。プロセツサ
1がDMA関連デバイスをアクセスしないときには、デ
ータ・バス・バツフア19は、デコード信号(DMAC
CPU)21がローレベルとなるため、ハイインピー
ダンスとなり、プロセツサ側のデータ・バス105とDM
Aがわのデータ・バス205,305は分離される。
Decoding circuit 7 for data buses 105, 205, 305
The decode signal (DMACS CPU ) 21 and the read / write signal (R / W of the bus 103) of the processor 1 cause the data bus gate controller 18 to control the bidirectional data.
Open and close the bus buffer 19. That is, when the processor 1 accesses the DMA-related device, the decode signal (DMACS CPU ) 21 becomes high level, and the read / write signal of the processor 1 (R / R of the control bus 103).
One of the data bus buffers 19 is opened corresponding to W) and the data bus 105 and DM on the processor 1 side are opened.
The data buses 205 and 305 on the A side are connected. When the processor 1 does not access the DMA related device, the data bus buffer 19 receives the decode signal (DMAC
S CPU ) 21 becomes low level, so it becomes high impedance, and processor side data bus 105 and DM
The data buses 205 and 305 of Awa are separated.

DMA側のメモリ5にリード/ライト信号(R/W)を
供給するために、データ・セレクタ20が設けられる。
データ・セレクタ20は、プロセツサ1がDMA関連デ
バイスをアクセスするか否かを示すデコード信号21が
ハイレベルのときには、プロセッサ側の制御バス103の
リード/ライト信号(R/W)を、またデコード信号2
1がローレベルのときには、DMA側の制御バス203の
リード/ライト信号(R/W)を、DMA側制御バス30
3に出力し、DMA用メモリおよびI/Oデバイス3に
供給する。
A data selector 20 is provided to supply a read / write signal (R / W) to the memory 5 on the DMA side.
The data selector 20 outputs the read / write signal (R / W) of the processor-side control bus 103 and the decode signal when the decode signal 21 indicating whether or not the processor 1 accesses the DMA-related device is at a high level. Two
When 1 is low level, the read / write signal (R / W) of the DMA control bus 203 is sent to the DMA control bus 30.
3 and supplies it to the DMA memory and I / O device 3.

第6図は、本発明の実施例を示す計算機システムの動作
タイムチヤートであり、第7図は同じく処理フローチヤ
ートである。
FIG. 6 is an operation time chart of the computer system showing the embodiment of the present invention, and FIG. 7 is a processing flow chart of the same.

先ず、(1)DMA転送要求TXRQnがライン106を介し
てI/Oデバイス3からDMA制御素子2に入力される
と(第7図のステツプ31)、DMA制御素子2は入力
をクロツクφ2の立上がりでチエツクし(ステツプ3
2)、もしDMA転送要求TXRQnがハイレベルであ
れば、下記(2)〜(6)の手順にしたがつて動作する(ステ
ツプ33〜)。(2)TXRQn=“H”を確認すると、
次のサイクルの先頭で、DMA制御素子2およびこの素
子2が制御するDMAデバイス(I/Oデバイス3、メ
モリ5)に対して、ライン206を介してプロセツサ1側
からのチツプセレクト信号▲▼CPUが出力
されていないこと(▲▼CPU=“H”)を
チエツクする(ステツプ34)。(3)▲▼
CPU=“H”を確認すると、DMA制御素子2はDM
A側バス(204,203,107)にそれぞれアドレス、DMAリ
ード/ライト信号(R/W)およびDMA転送ストロー
ブTXSTBを出力し、DMA転送を行う(ステツプ3
5)。この間、プロセツサ1は、他の処理を並列に実行
している。(4)DMA制御素子2内のアドレス・レジス
タ8を+1し、転送語数レジスタ9を−1する。(ステ
ツプ36)。(5)DMA転送要求信号TXRQn(ライ
ン106)がローレベルに戻る(ステツプ37)。(6)アド
レス・バス204,制御バス203は再びハイインピーダンス
状態になり、転送ストローブTXSTBはハイレベルと
なる(ステツプ38)。
First, (1) When the DMA transfer request TXRQn is input from the I / O device 3 to the DMA control element 2 via the line 106 (step 31 in FIG. 7), the DMA control element 2 inputs the clock φ 2 Check at start-up (step 3
2) If the DMA transfer request TXRQn is at the high level, the operation is performed according to the following procedures (2) to (6) (step 33). (2) When TXRQn = "H" is confirmed,
At the beginning of the next cycle, a chip select signal from the processor 1 side via line 206 to the DMA control element 2 and the DMA device (I / O device 3, memory 5) controlled by this element 2 CPU Is not output (▲ ▼ CPU = “H”) (step 34). (3) ▲ ▼
When CPU = “H” is confirmed, the DMA control element 2 is DM
The address, the DMA read / write signal (R / W) and the DMA transfer strobe TXSTB are output to the A side buses (204, 203, 107) to perform the DMA transfer (step 3).
5). During this time, the processor 1 is executing other processing in parallel. (4) The address register 8 in the DMA control element 2 is incremented by 1 and the transfer word number register 9 is decremented by 1. (Step 36). (5) The DMA transfer request signal TXRQn (line 106) returns to low level (step 37). (6) The address bus 204 and the control bus 203 are brought into the high impedance state again, and the transfer strobe TXSTB becomes high level (step 38).

以上の(1)〜(6)の手順で、DMA転送が行われる。プロ
セツサ1を停止させずにDMA転送ができるため、DM
A転送の処理時間は、プロセツサ1がDMA関連デバイ
スをアクセスしなければ、すべてのサイクルをDMA転
送の時間に充当できる。もし、DMA転送が終了しない
うちに、プロセツサ1からDMAデバイスをアクセスす
るような命令が実行されても、命令をフエツチするサイ
クル、そのオペランドを読み込むサイクルでは、まだD
MAデバイスをアクセスしないため、この期間内に十分
DMA転送することができる。したがつて、従来のDM
A転送のように、1語のDMA転送の前後で、プロセツ
サ1もDMA制御素子2もともにバスを使用しない、い
わゆるデツド・サイクルが発生せず、またDMA転送の
ために、プロセツサ1を停止させることもないので、D
MA転送中にプロセツサ1の処理効率を低下させない。
The DMA transfer is performed by the above steps (1) to (6). Since DMA transfer can be performed without stopping the processor 1, DM
As for the processing time of the A transfer, all the cycles can be allocated to the time of the DMA transfer unless the processor 1 accesses the DMA related device. Even if an instruction to access the DMA device is executed from the processor 1 before the DMA transfer is completed, D is still in the cycle for fetching the instruction and the cycle for reading the operand.
Since the MA device is not accessed, DMA transfer can be sufficiently performed within this period. Therefore, conventional DM
Before and after the DMA transfer of one word like the A transfer, neither the processor 1 nor the DMA control element 2 uses the bus, that is, a so-called dead cycle does not occur, and the processor 1 is stopped for the DMA transfer. There is no such thing, so D
The processing efficiency of the processor 1 is not reduced during MA transfer.

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

以上説明したように、本発明によれば、プロセツサとD
MA関連デバイスを結ぶバス上に、DMA関連デバイス
をアクセスしないときには、プロセツサとDMA関連デ
バイスのバスを分離するためのバス・スイツチを設けた
ので、プロセツサがDMA関連デバイスをアクセスしな
いときには、プロセツサの演算とDMA転送を並列に処
理できる。さらに、プロセツサを停止させずにDMA転
送ができるため、DMA転送の前後で、DMA制御素子
もプロセツサもともにバスを使用しない時間、つまりデ
ツド・サイクルが生ずることはなく、DMA転送により
プロセツサの処理効率は低下しない。
As described above, according to the present invention, the processor and the D
On the bus connecting the MA related devices, a bus switch is provided to separate the processor and the DMA related device buses when the DMA related devices are not accessed. Therefore, when the processor does not access the DMA related devices, the processor operation is performed. And DMA transfer can be processed in parallel. Furthermore, since the DMA transfer can be performed without stopping the processor, the DMA control element and the processor do not use the bus before and after the DMA transfer, that is, the dead cycle does not occur, and the DMA transfer can improve the processing efficiency of the processor. Does not fall.

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

第1図は従来の計算機システムを示すブロツク図、第2
図は第1図の動作タイム・チヤート、第3図は本発明の
実施例を示す計算機システムのブロツク図、第4図は第
3図におけるDMA制御素子の構成を示すブロツク図、
第5図は第3図におけるバス・スイツチおよびデコード
回路の構成を示すブロツク図、第6図は本発明の実施例
を示す計算機システムの動作タイム・チヤート、第7図
は同じく処理フローチヤートである。 1:プロセツサ、2:DMA制御素子、3:DMA転送
用I/Oデバイス、4:主メモリ、5:DMA制御用メ
モリ、6:バス・スイツチ、7:バス・スイツチを開閉
するデコーダ回路、8:アドレス・レジスタ、9:デー
タ・カウント・レジスタ、10:コントローラ・レジス
タ、11ステータス・レジスタ、12:アドレス・バツ
フア、18:データ・バス・ゲート制御回路、19:双
方向データ・バス・バツフア、20:データ・セレク
タ。
FIG. 1 is a block diagram showing a conventional computer system, and FIG.
1 is a block diagram showing the operation time chart of FIG. 1, FIG. 3 is a block diagram of a computer system showing an embodiment of the present invention, and FIG. 4 is a block diagram showing the structure of the DMA control element in FIG.
FIG. 5 is a block diagram showing the structure of the bus switch and the decoding circuit in FIG. 3, FIG. 6 is an operation time chart of the computer system showing the embodiment of the present invention, and FIG. 7 is a processing flow chart. . 1: Processor, 2: DMA control element, 3: DMA transfer I / O device, 4: Main memory, 5: DMA control memory, 6: Bus switch, 7: Decoder circuit for opening / closing the bus switch, 8 : Address register, 9: data count register, 10: controller register, 11 status register, 12: address buffer, 18: data bus gate control circuit, 19: bidirectional data bus buffer, 20: Data selector.

フロントページの続き (72)発明者 藤倉 信之 神奈川県川崎市麻生区王禅寺1099番地 株 式会社日立製作所システム開発研究所内 (72)発明者 宮本 捷二 神奈川県川崎市麻生区王禅寺1099番地 株 式会社日立製作所システム開発研究所内 (56)参考文献 特開 昭56−87128(JP,A) 特開 昭57−176442(JP,A)Front page continuation (72) Inventor Nobuyuki Fujikura 1099, Ozenji, Aso-ku, Kawasaki-shi, Kanagawa Hitachi, Ltd. System Development Laboratory (72) Inventor, Koji Miyamoto 1099, Ozen-ji, Aso-ku, Kawasaki, Kanagawa (56) References JP-A-56-87128 (JP, A) JP-A-57-176442 (JP, A)

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】プロセッサ、記憶装置およびDMA制御装
置を共通バスで接続した計算機システムにおいて、 上記共通バスに接続された上記DMA制御装置と該DM
A制御装置により制御されるDMA関連装置とを接続す
るバス部分とその他のプロセッサ側のバス部分とを切り
離すためのバス・スイッチと、 上記プロセッサからアクセス先を指定する信号を受信
し、該信号が上記DMA関連装置をアクセス先として指
定していないときにバス切り替え信号およびバス不アク
セス信号を発生するデコーダを設け、 上記バス・スイッチは、上記デコーダから発生された上
記バス切り替え信号によって切り離され、 上記DMA制御装置は、上記DMA関連装置であるDM
A転送用I/O装置からデータ転送要求を受けたとき、
上記DMAバス不アクセス信号を上記デコーダから受信
した場合にDMA転送を行うことを特徴とする計算機シ
ステム。
1. A computer system in which a processor, a storage device, and a DMA control device are connected by a common bus, wherein the DMA control device and the DM are connected to the common bus.
A bus switch for disconnecting a bus part for connecting a DMA-related device controlled by the A control device and a bus part on the other processor side, and a signal designating an access destination from the processor are received. A decoder for generating a bus switching signal and a bus non-access signal when the DMA-related device is not designated as an access destination is provided, and the bus switch is disconnected by the bus switching signal generated from the decoder. The DMA control device is a DM which is the above-mentioned DMA-related device.
When a data transfer request is received from the A transfer I / O device,
A computer system which performs DMA transfer when the DMA bus non-access signal is received from the decoder.
【請求項2】特許請求の範囲第1項記載の計算機システ
ムにおいて、 上記バス・スイッチは、プロセッサ側のバスまたはDM
A関連装置側のバスに接続されかつ上記バス切り替え信
号によって切り替え制御されるバッファまたはセレクタ
からなることを特徴とする計算機システム。
2. The computer system according to claim 1, wherein the bus switch is a processor-side bus or DM.
A computer system comprising a buffer or a selector that is connected to a bus on the side of the A-related device and is switched and controlled by the bus switching signal.
JP58007531A 1983-01-20 1983-01-20 Computer system Expired - Lifetime JPH0630085B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58007531A JPH0630085B2 (en) 1983-01-20 1983-01-20 Computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58007531A JPH0630085B2 (en) 1983-01-20 1983-01-20 Computer system

Publications (2)

Publication Number Publication Date
JPS59133629A JPS59133629A (en) 1984-08-01
JPH0630085B2 true JPH0630085B2 (en) 1994-04-20

Family

ID=11668360

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58007531A Expired - Lifetime JPH0630085B2 (en) 1983-01-20 1983-01-20 Computer system

Country Status (1)

Country Link
JP (1) JPH0630085B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62260256A (en) * 1986-05-06 1987-11-12 Nec Corp Interface switching circuit
JPS6337453A (en) * 1986-08-01 1988-02-18 Matsushita Electric Ind Co Ltd Bus switch device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5687128A (en) * 1979-12-19 1981-07-15 Fujitsu Ltd Data transfer system
JPS57176442A (en) * 1981-04-24 1982-10-29 Fujitsu Ltd Information processing system

Also Published As

Publication number Publication date
JPS59133629A (en) 1984-08-01

Similar Documents

Publication Publication Date Title
EP0489504B1 (en) Bidirectional FIFO buffer for interfacing between two buses
KR900004006B1 (en) Micro processor system
US5893153A (en) Method and apparatus for preventing a race condition and maintaining cache coherency in a processor with integrated cache memory and input/output control
US5109333A (en) Data transfer control method and apparatus for co-processor system
US5041962A (en) Computer system with means for regulating effective processing rates
JPS60258671A (en) Processor
JPH0258649B2 (en)
JPH05324348A (en) Single chip microcomputer
US5933613A (en) Computer system and inter-bus control circuit
JPS581451B2 (en) Data transfer method
JPH0630085B2 (en) Computer system
US6938118B1 (en) Controlling access to a primary memory
JP2568017B2 (en) Microprocessor and data processing system using the same
EP0425843A2 (en) Enhanced locked bus cycle control in a cache memory computer system
JP3201439B2 (en) Direct memory access control circuit
JPH0351943A (en) Sharing system for high/low speed bus lines
JP2642087B2 (en) Data transfer processing mechanism between main storage devices
CN115328635A (en) RAM automatic transmission control circuit and RAM field copy control method
JPS60142450A (en) Storage system
JPH02307123A (en) Computer
JPH01144151A (en) Information processor
JPH036762A (en) Direct access method for image memory
JPH0981500A (en) Virtual dma transfer method
JPH0721078A (en) Computer system
JPS6027058B2 (en) Interrupt control circuit