JPH05134971A - Computer device - Google Patents

Computer device

Info

Publication number
JPH05134971A
JPH05134971A JP32391191A JP32391191A JPH05134971A JP H05134971 A JPH05134971 A JP H05134971A JP 32391191 A JP32391191 A JP 32391191A JP 32391191 A JP32391191 A JP 32391191A JP H05134971 A JPH05134971 A JP H05134971A
Authority
JP
Japan
Prior art keywords
memory
dma
transfer
cpu
selector
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
JP32391191A
Other languages
Japanese (ja)
Inventor
Shinsuke Teramura
信介 寺村
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 JP32391191A priority Critical patent/JPH05134971A/en
Publication of JPH05134971A publication Critical patent/JPH05134971A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform transfer between main memory and a resist and an arithmetic operation between the resists by a CPU even while a DMA controller performs DMA transfer. CONSTITUTION:When the DMA transfer is performed, the CPU 2 delivers a transfer address to the DMA controller 8 via a shared bus 1 first. The transfer address designates the address of buffer memory 5, not that of the main memory 4. Thence, the DMA controller 8, etc., is started up by delivering a series of commands from the CPU 2 to the DMA controller 8, and switching so as to connect a DMA pass selector 7 to a memory pass selector 6 is performed. The DMA controller 8 transfers received data as increasing or decreasing the number of transfer addresses. The memory pass selector 6 decodes part of received transfer addresses, and write is performed by automatically selecting the buffer memory 5.

Description

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

【0001】[0001]

【技術分野】本発明は、コンピュータ装置に関する。TECHNICAL FIELD The present invention relates to a computer device.

【0002】[0002]

【従来技術】従来、バスによってCPU(中央処理装
置)、DMA(ダイレクト・メモリ・アクセス)デバイ
ス、メモリ等が接続されたシステムでは、バスマスタ
(バスを制御する能力のあるデバイス。ここではCP
U、DMAデバイスがこれに相当する)の要求をバスア
ービタが受け、バスアクセスを調停して処理を行なって
いた。例えば、 Ethernet (イーサ・ネット)コントロ
ーラやSCSIコントローラを含むシステムでは、これ
らのコントローラはDMAコントローラを介して共有バ
スにつながれている。Ethernet、SCSIコントローラ
とのデータ転送は次のようにして行なわれる。
2. Description of the Related Art Conventionally, in a system in which a CPU (central processing unit), a DMA (direct memory access) device, a memory and the like are connected by a bus, a bus master (a device capable of controlling the bus.
The U and DMA devices correspond to this), and the bus arbiter receives the request and arbitrates the bus access for processing. For example, in a system that includes an Ethernet (Ethernet) controller and a SCSI controller, these controllers are connected to a shared bus via a DMA controller. Data transfer with the Ethernet and SCSI controllers is performed as follows.

【0003】まずCPUがDMAコントローラに対して
一連のコマンドと転送アドレスを送って起動をかける。
DMAコントローラはバスアービタに対してバス要求信
号を送り、バスを獲得してから Ethernet やSCSIコ
ントローラとメモリの間でデータの転送を行なう。この
方法によって、これらのコントローラがデータ転送を行
なっている間もCPUは処理を続行することができる。
上述のように、従来技術によって Ethernet コントロー
ラやSCSIコントローラがメモリアクセスをしている
間もCPUは処理を続行できるが、この処理はレジスタ
−レジスタ転送やアキュムレータに対する演算など、C
PU内部の処理に限られてしまい、メモリアクセスが必
要な処理はDMA転送が済むまで待たされてしまう。
First, the CPU sends a series of commands and transfer addresses to the DMA controller to activate it.
The DMA controller sends a bus request signal to the bus arbiter, acquires the bus, and then transfers data between the Ethernet or SCSI controller and the memory. This method allows the CPU to continue processing while these controllers are transferring data.
As described above, according to the conventional technique, the CPU can continue the processing while the Ethernet controller or the SCSI controller is accessing the memory. However, this processing is performed by register-register transfer, operation on the accumulator, and the like.
The processing is limited to the processing inside the PU, and the processing requiring memory access is made to wait until the DMA transfer is completed.

【0004】[0004]

【目的】本発明は、上述のごとき実情に鑑みてなされた
もので、DMA転送が行なわれている間もそのDMA転
送で操作中のデータ以外ならアクセスすることを可能と
し、信頼性、拡張性の高いメモリシステムを持ったコン
ピュータ装置を提供することを目的としてなされたもの
である。
[Object] The present invention has been made in view of the above-mentioned circumstances, and makes it possible to access any data other than the data being operated in the DMA transfer while the DMA transfer is being performed, thereby improving reliability and expandability. It is made for the purpose of providing a computer device having a high memory system.

【0005】[0005]

【構成】本発明は、上記目的を達成するために、(1)
共有バスと、該共有バスにつながったCPUと、I/O
装置と、DMA装置と、メモリとを具備するコンピュー
タ装置において、前記DMA転送データのためのバッフ
ァメモリと、前記共有バスからメモリアクセスする際の
パスを決めるメモリパスセレクタと、前記DMAからま
たはDMAへのデータを決めるDMAパスセレクタとを
有し、DMA転送をメインメモリではなく、バッファメ
モリに対して行なうことでCPUとの並列動作を可能に
したこと、更には、(2)前記バッファメモリを複数の
ブロックに分け、バッファメモリのアクセスについても
並列動作を可能としたこと、更には、(3)前記(2)
において、前記各メモリブロックにセレクタを設けるこ
とでメモリパスセレクタを簡単にし、拡張性を持たせる
ことを特徴としたものである。以下、本発明の実施例に
基づいて説明する。
In order to achieve the above object, the present invention provides (1)
Shared bus, CPU connected to the shared bus, and I / O
In a computer device including a device, a DMA device, and a memory, a buffer memory for the DMA transfer data, a memory path selector that determines a path for memory access from the shared bus, and the DMA to or from the DMA And a DMA path selector that determines the data of the above, and enables parallel operation with the CPU by performing the DMA transfer not to the main memory but to the buffer memory. Divided into blocks, enabling parallel operation for access to the buffer memory, and (3) above (2)
In the above, in each of the memory blocks, a selector is provided to simplify the memory path selector and provide expandability. Hereinafter, description will be given based on examples of the present invention.

【0006】図1は、本発明によるコンピュータ装置の
一実施例を説明するための構成図で、図中、1は共有バ
ス、2はCPU(中央処理装置)、3はI/O(入出力
装置)、4はメインメモリ、5はバッファメモリ、6は
メモリバスセレクタ、7はDMA(ダイレクト・メモリ
・アクセス)バスセレクタ、8はDMAコントローラで
ある。
FIG. 1 is a block diagram for explaining an embodiment of a computer device according to the present invention. In the figure, 1 is a shared bus, 2 is a CPU (central processing unit), and 3 is an I / O (input / output). (Device), 4 is a main memory, 5 is a buffer memory, 6 is a memory bus selector, 7 is a DMA (direct memory access) bus selector, and 8 is a DMA controller.

【0007】メモリセレクタ6は、共有バス1またはD
MAバスセレクタ7からアクセスアドレスならびにアク
セスデータを受けとり、アクセスアドレスの一部をデコ
ードすることによってメインメモリ4、バッファメモリ
5のいずれかを選択し、残りのアドレスとデータを供給
する回路である。また、DMAバスセレクタ7はCPU
2から共有バス1を介してアクセスすることにより、D
MA転送時にDMAコントローラ8が使用するアクセス
アドレスならびにアクセスデータの流れる経路を変更
し、共有バス1かメモリバスセレクタ6のいずれかにす
るためのスイッチの働きをする回路である。なお、DM
A(ダイレクト・メモリ・アクセス)とは、マイクロプ
ロセッサ(MPU)を介さずに外部デバイスがメモリに
直接アクセスする機能のことである。
The memory selector 6 is a shared bus 1 or D.
This circuit receives an access address and access data from the MA bus selector 7, decodes a part of the access address to select either the main memory 4 or the buffer memory 5, and supplies the remaining addresses and data. The DMA bus selector 7 is a CPU
2 from the shared bus 1 to access D
This is a circuit that functions as a switch for changing the access address and access data flow path used by the DMA controller 8 at the time of MA transfer to make either the shared bus 1 or the memory bus selector 6. In addition, DM
A (direct memory access) is a function in which an external device directly accesses a memory without going through a microprocessor (MPU).

【0008】まず、請求項1について説明する。初期状
態ではDMAパスセレクタ7は共有バス1の方につなが
っている。最初にDMAからメモリにデータを送る場合
について説明する。DMA転送を行なう場合、まずCP
U2が共有バス1を介してDMAコントローラ8に転送
アドレスを渡す。この際の転送アドレスはメインメモリ
4ではなく、バッファメモリ5のアドレスを指定する。
次にCPU2からDMAコントローラ8に一連のコマン
ドを渡してDMAコントローラ8や、その先の Etherne
t コントローラまたはSCSIコントローラに起動をか
け、DMAパスセレクタ7をメモリパスセレクタ6につ
なぐように切替える。DMAコントローラ8は Etherne
t コントローラやSCSIコントローラなどから受けと
ったデータを、転送アドレスを増加または減少させなが
ら転送する。メモリパスセレクタ6は、受けとった転送
アドレスの一部をデコードし、これによってバッファメ
モリ5が自動的に選択されて書き込みが行なわれる。
First, claim 1 will be described. In the initial state, the DMA path selector 7 is connected to the shared bus 1. First, the case of sending data from the DMA to the memory will be described. When performing DMA transfer, first
U2 passes the transfer address to the DMA controller 8 via the shared bus 1. At this time, the transfer address is not the main memory 4 but the buffer memory 5 address.
Next, a series of commands are passed from the CPU 2 to the DMA controller 8 and the DMA controller 8 and the Ethere
The t controller or the SCSI controller is activated, and the DMA path selector 7 is switched to be connected to the memory path selector 6. DMA controller 8 is Etherne
t Transfer the data received from the controller or SCSI controller while increasing or decreasing the transfer address. The memory path selector 6 decodes a part of the received transfer address, whereby the buffer memory 5 is automatically selected and writing is performed.

【0009】メモリからDMAコントローラ側にデータ
が転送される場合は、あらかじめ転送データを格納して
おくバッファがバッファメモリ5上に取られるようにシ
ステムがアドレスを割り付ける。後は上述の場合と同様
にしてDMAコントローラ8を起動して、転送データを
Ethernet コントローラまたはSCSIコントローラに
送る。いずれの場合もDMA転送が行なわれている間、
共有バス1は空いているのでCPU2はメインメモリ4
や、他のI/Oデバイスを待ち時間なしで自由にアクセ
スすることができる。
When data is transferred from the memory to the DMA controller side, the system allocates addresses so that the buffer memory 5 has a buffer for storing the transfer data in advance. After that, the DMA controller 8 is activated in the same manner as described above to transfer data.
Send to Ethernet controller or SCSI controller. In either case, while DMA transfer is being performed,
Since the shared bus 1 is free, the CPU 2 has the main memory 4
Alternatively, other I / O devices can be freely accessed without waiting time.

【0010】図2は、本発明によるコンピュータ装置の
他の実施例(請求項2)を示す図で、図中、5a〜5n
はバッファメモリで、その他、図1と同じ作用をする部
分は同一の符号を付してある。図1の実施例によれば、
DMA転送を行なっている間もCPU2が他のデバイス
などをアクセスできるという利点があった。しかしこの
方法だと、例えばDMA転送されてきたデータをCPU
2が読み出している間や、DMA転送データをCPU2
がバッファメモリ5に書き込んでいる間は次のDMA転
送をすることができない。逆に、DMA転送中にCPU
2がバッファ5をアクセスして、1つ前のDMA転送に
よるデータを読み込んだり、次のDMA転送のためのデ
ータをバッファメモリ5に書き込んだりすることもでき
ない。そこで、バッファメモリ5を複数のブロックに分
け、DMA転送を行なうバッファメモリ・ブロック5a
〜5nを前回のDMA転送で使用したブロックとは異な
るブロックにすれば、前述の並列動作が可能になる。こ
の場合、メモリパスセレクタ6は入力アドレスをデコー
ドし、複数あるメモリブロックのうちのどれかを選択し
てバスを切替える2回路多接点のスイッチとみなすこと
ができる。
FIG. 2 is a diagram showing another embodiment (claim 2) of the computer apparatus according to the present invention, in which 5a to 5n are shown.
Is a buffer memory, and other parts having the same functions as those in FIG. 1 are denoted by the same reference numerals. According to the embodiment of FIG.
There is an advantage that the CPU 2 can access other devices while performing the DMA transfer. However, with this method, for example, the data transferred by DMA is transferred to the CPU.
2 while it is reading the DMA transfer data
While writing to the buffer memory 5, the next DMA transfer cannot be performed. Conversely, during DMA transfer, the CPU
Neither can the buffer 2 access the buffer 5 to read the data by the previous DMA transfer or write the data for the next DMA transfer to the buffer memory 5. Therefore, the buffer memory 5 is divided into a plurality of blocks, and the buffer memory block 5a for performing DMA transfer.
If 5n is a block different from the block used in the previous DMA transfer, the above-mentioned parallel operation becomes possible. In this case, the memory path selector 6 can be regarded as a two-circuit, multi-contact switch that decodes an input address, selects one of a plurality of memory blocks, and switches the bus.

【0011】図3は、図2におけるメモリパスセレクタ
を示す図で、図中、11a〜11cはバッファメモリブ
ロック、12a,12bはデコーダである。図2の実施
例によれば、CPUとDMAは同一のバッファブロック
を同時にアクセスするとき以外は並列動作が可能であ
り、処理を高速で行なうことができる。しかし、上述の
ように、メモリパスセレクタは複数の信号線の集合であ
るバスを同時に切替しなければならないため、回路が複
雑で誤動作の原因となりやすい。しかもバッファメモリ
ブロックがアクセスされるように回路変更しなくてはな
らない。したがってシステム構成を柔軟に変更すること
ができない。そこでメモリパスセレクタを図4のように
変更する。各メモリブロック毎についているセレクタ1
3a〜13cは、入力アドレスの一部をデコードしてそ
のブロックがアクセスされているかどうかを決定し、メ
モリに対してアドレス、データ、イネーブ信号を出力す
る。セレクタ内にはアービタを設け、片方がアクセス中
はもう片方のアクセスを許さないようにする。
FIG. 3 is a diagram showing the memory path selector in FIG. 2, in which 11a to 11c are buffer memory blocks and 12a and 12b are decoders. According to the embodiment shown in FIG. 2, the CPU and the DMA can operate in parallel except when the same buffer block is simultaneously accessed, and the processing can be performed at high speed. However, as described above, since the memory path selector has to simultaneously switch the buses that are a set of a plurality of signal lines, the circuit is complicated and is likely to cause a malfunction. Moreover, the circuit must be changed so that the buffer memory block can be accessed. Therefore, the system configuration cannot be changed flexibly. Therefore, the memory path selector is changed as shown in FIG. Selector 1 for each memory block
3a to 13c decode a part of the input address to determine whether the block is being accessed, and output the address, data and enable signals to the memory. An arbiter is provided in the selector to prevent access to the other while one is accessing.

【0012】[0012]

【効果】以上の説明から明らかなように、本発明による
と、以下のような効果がある。 (1)請求項1項によれば、DMAコントローラがDM
A転送を行なっている間もCPUがメインメモリやレジ
スタ間転送、レジスタ間の演算などを行なうことがで
き、処理が高速になる。 (2)請求項2項によれば、DMAコントローラがDM
A転送を行なっている間も、同一バッファメモリブロッ
クでなければCPUはバッファメモリにアクセスできる
ため、更に高速な処理が可能である。 (3)請求項3項によれば、メモリパスセレクタの回路
を簡単にすることにより誤動作の少ない信頼性の高いシ
ステムを構築することができる。また、バッファメモリ
を簡単に増設できるので、拡張性の高い柔軟なシステム
を構築できる。
As is apparent from the above description, the present invention has the following effects. (1) According to claim 1, the DMA controller is DM
While the A transfer is being performed, the CPU can perform the transfer between the main memory and the registers, the operation between the registers, etc., and the processing speed becomes high. (2) According to claim 2, the DMA controller is DM
Even during the A transfer, the CPU can access the buffer memory if it is not in the same buffer memory block, so that higher speed processing is possible. (3) According to the third aspect, it is possible to construct a highly reliable system with few malfunctions by simplifying the circuit of the memory path selector. Further, since the buffer memory can be easily added, a flexible system with high expandability can be constructed.

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

【図1】 本発明によるコンピュータ装置の一実施例を
説明するための構成図である。
FIG. 1 is a configuration diagram for explaining an embodiment of a computer device according to the present invention.

【図2】 本発明によるコンピュータ装置の他の実施例
を説明するための構成図である。
FIG. 2 is a configuration diagram for explaining another embodiment of the computer device according to the present invention.

【図3】 図2におけるメモリパスセレクタを示す図で
ある。
FIG. 3 is a diagram showing a memory path selector in FIG.

【図4】 他のメモリパスセレクタを示す図である。FIG. 4 is a diagram showing another memory path selector.

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

1…共有バス、2…CPU(中央処理装置)、3…I/
O(入出力装置)、4…メインメモリ、5…バッファメ
モリ、6…メモリバスセレクタ、7…DMA(ダイレク
ト・メモリ・アクセス)バスセレクタ、8…DMAコン
トローラ。
1 ... Shared bus, 2 ... CPU (central processing unit), 3 ... I /
O (input / output device), 4 ... Main memory, 5 ... Buffer memory, 6 ... Memory bus selector, 7 ... DMA (Direct Memory Access) bus selector, 8 ... DMA controller.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 共有バスと、該共有バスにつながったC
PUと、I/O装置と、DMA装置と、メモリとを具備
するコンピュータ装置において、前記DMA転送データ
のためのバッファメモリと、前記共有バスからメモリア
クセスする際のパスを決めるメモリパスセレクタと、前
記DMAからまたはDMAへのデータを決めるDMAパ
スセレクタとを有し、DMA転送をメインメモリではな
く、バッファメモリに対して行なうことでCPUとの並
列動作を可能にしたことを特徴とするコンピュータ装
置。
1. A shared bus and a C connected to the shared bus
In a computer device including a PU, an I / O device, a DMA device, and a memory, a buffer memory for the DMA transfer data, a memory path selector that determines a path for memory access from the shared bus, A computer device having a DMA path selector for determining data from or to the DMA and enabling parallel operation with a CPU by performing DMA transfer not to a main memory but to a buffer memory. ..
【請求項2】 前記バッファメモリを複数のブロックに
分け、バッファメモリのアクセスについても並列動作を
可能としたことを特徴とする請求項1記載のコンピュー
タ装置。
2. The computer apparatus according to claim 1, wherein the buffer memory is divided into a plurality of blocks, and parallel operations can be performed even when accessing the buffer memory.
【請求項3】 前記各メモリブロックにセレクタを設け
ることでメモリパスセレクタを簡単にし、拡張性を持た
せることを特徴とする請求項2記載のコンピュータ装
置。
3. The computer apparatus according to claim 2, wherein a memory path selector is simplified and provided with expandability by providing a selector in each of the memory blocks.
JP32391191A 1991-11-11 1991-11-11 Computer device Pending JPH05134971A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32391191A JPH05134971A (en) 1991-11-11 1991-11-11 Computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32391191A JPH05134971A (en) 1991-11-11 1991-11-11 Computer device

Publications (1)

Publication Number Publication Date
JPH05134971A true JPH05134971A (en) 1993-06-01

Family

ID=18159996

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32391191A Pending JPH05134971A (en) 1991-11-11 1991-11-11 Computer device

Country Status (1)

Country Link
JP (1) JPH05134971A (en)

Similar Documents

Publication Publication Date Title
EP1590912A2 (en) Method and apparatus for controlling a data processing system during debug
JP2561398B2 (en) Redundant disk controller
US4896256A (en) Linking interface system using plural controllable bidirectional bus ports for intercommunication amoung split-bus intracommunication subsystems
US7725621B2 (en) Semiconductor device and data transfer method
US7058740B2 (en) Effective bus utilization using multiple buses and multiple bus controllers
JPH05134971A (en) Computer device
JPH0227696B2 (en) JOHOSHORISOCHI
US6813671B1 (en) Controller for hot swapping of extended I/O device to computer body
US20060026310A1 (en) Computer system having an I/O module directly connected to a main storage for DMA transfer
JPH11184761A (en) Read modify write control system
JPH10198524A (en) Hard disk controller
JPH07319840A (en) Multi-cpu device
JPH07248927A (en) Input/output emulation circuit and data checking circuit
JP3201439B2 (en) Direct memory access control circuit
KR910005379B1 (en) Memory board used for control function distribution in main storage system of data processing system
JPH05120207A (en) Data transfer system
JP2001084173A (en) Memory device
JPH05204830A (en) Input/output controller
JPS6252342B2 (en)
JPH08115292A (en) Interface board and instruction processor
JPH01266592A (en) Image display system
JPS61234447A (en) Bus acuisition controller
JPS62187956A (en) Dma control system
JPS63307570A (en) Switch for starry topology
JPH04155454A (en) Information processor