JPH08249268A - Direct memory access method - Google Patents

Direct memory access method

Info

Publication number
JPH08249268A
JPH08249268A JP7048691A JP4869195A JPH08249268A JP H08249268 A JPH08249268 A JP H08249268A JP 7048691 A JP7048691 A JP 7048691A JP 4869195 A JP4869195 A JP 4869195A JP H08249268 A JPH08249268 A JP H08249268A
Authority
JP
Japan
Prior art keywords
register
transfer
address
memory access
direct 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
JP7048691A
Other languages
Japanese (ja)
Inventor
Taiji Yamakawa
泰司 山川
Michinori Naito
倫典 内藤
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
Hitachi Asahi Electronics Co Ltd
Original Assignee
Hitachi Ltd
Hitachi Asahi Electronics 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 Hitachi Ltd, Hitachi Asahi Electronics Co Ltd filed Critical Hitachi Ltd
Priority to JP7048691A priority Critical patent/JPH08249268A/en
Publication of JPH08249268A publication Critical patent/JPH08249268A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE: To support a DMA transferring system controlled by two pair of registers while keeping the interchangeability of software by allocating respectively the same IO addresses to the two pair of registers within a direct memory access controller (DMAC) so as to set a transfer address and the number of transfer bytes to the two pair of registers with single writing. CONSTITUTION: DMAC 4 is provided inside with a first register R1 consisting of a system-side address register (SAD) 8 and a system-side count register (SCT) 9 and a second register R2 consisting of an IO-side address register (LAD) 10 and an IO-side count register (ICT) 11. By setting a transfer destination address to SAD 8 and IAD 10 and the number of the transfer bytes to SCT 9 and LCT 11 at the time of starting DMA transfer, software can support DMA transfer without recognizing the two registers R1 and R2.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、メモリと周辺装置間に
設けられたダイレクトメモリアクセスコントローラ(以
下、DMACと称する)を介して、データのダイレクト
メモリアクセスを行うダイレクトメモリアクセス方法に
かかり、特に、メモリと周辺装置間でシステムバスとI
Oバスの2つのバスを介して行われるダイレクトメモリ
アクセス方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a direct memory access method for performing direct memory access of data through a direct memory access controller (hereinafter referred to as DMAC) provided between a memory and a peripheral device, and more particularly, , System bus and I between memory and peripherals
The present invention relates to a direct memory access method performed via two buses, an O bus.

【0002】[0002]

【従来の技術】CPU性能の向上と高速なバスの出現に
より、一般のコンピュータシステムは拡大しており、特
開平5ー94404号公報に記載されているように、C
PUやメインメモリが接続される高速のシステムバスと
周辺装置が接続されるIOバスとをバスコントローラに
接続する構成が主流となってきた。
2. Description of the Related Art The general computer system is expanding due to the improvement of CPU performance and the advent of high-speed buses. As described in JP-A-5-94404, C
A configuration in which a high-speed system bus to which a PU and a main memory are connected and an IO bus to which peripheral devices are connected are connected to a bus controller has become mainstream.

【0003】[0003]

【発明が解決しようとする課題】DMA転送方式におい
ても、従来のDMAC内に設けた1対のレジスタで転送
アドレス及び転送バイト数を制御するDMA転送方式か
ら、システムバスでの転送とIOバスでの転送を分け、
2対のレジスタで制御するDMA転送方式をサポートす
る必要性が生じている。2対のレジスタで制御するDM
A転送方式をサポートする場合、ソフトウエアはDMA
転送開始時に2対のレジスタに対してそれぞれIOライ
トして、転送アドレス及び転送バイト数を設定する必要
がある。
Even in the DMA transfer system, the conventional DMA transfer system, in which the transfer address and the number of transfer bytes are controlled by a pair of registers provided in the DMAC, is transferred from the system bus to the IO bus. The transfer of
There is a need to support a DMA transfer scheme that is controlled by two pairs of registers. DM controlled by two pairs of registers
If the A transfer method is supported, the software is DMA
At the start of transfer, it is necessary to write IO to each of the two pairs of registers and set the transfer address and the number of transfer bytes.

【0004】2対のレジスタで制御するDMA転送方式
をサポートするソフトウエアは、DMA転送開始時に転
送アドレス及び転送バイト数を設定する際に、DMAC
内にレジスタが2対あることを認識してIOライトを2
回行わなけらばならない。つまり、従来の1対のレジス
タで制御するDMA転送方式をサポートしているソフト
ウエアをそのまま流用することはできず、ソフトウエア
の互換性が保てなくなる。
Software that supports the DMA transfer method controlled by two pairs of registers uses the DMAC when setting the transfer address and the number of transfer bytes at the start of the DMA transfer.
Recognize that there are 2 pairs of registers in the IO write 2
You have to do it once. That is, the software supporting the conventional DMA transfer method controlled by a pair of registers cannot be used as it is, and the compatibility of the software cannot be maintained.

【0005】本発明は、上記した従来技術の問題点に鑑
みなされたもので、ソフトウエアの互換性を保ちつつ、
2対のレジスタで制御するDMA転送方式をサポートす
ることが可能なダイレクトメモリアクセス方法を提供す
ることを目的とする。
The present invention has been made in view of the above-mentioned problems of the prior art. While maintaining the compatibility of software,
An object is to provide a direct memory access method capable of supporting a DMA transfer method controlled by two pairs of registers.

【0006】[0006]

【課題を解決するための手段】本発明のダイレクトメモ
リアクセス方法は、システムバスを介してメモリとダイ
レクトメモリアクセスコントローラが接続され、かつI
Oバスを介して周辺装置とダイレクトメモリアクセスコ
ントローラが接続され、システムバスとダイレクトメモ
リアクセスコントローラ内のバッファとIOバスを介し
てデータのダイレクトメモリアクセスを行うダイレクト
メモリアクセス方法であって、システムバス上で行われ
るダイレクトメモリアクセス転送におけるデータの転送
先アドレス及び転送データ数を格納する第1のレジスタ
と、IOバス上で行われるダイレクトメモリアクセス転
送におけるデータの転送先アドレス及び転送データ数を
格納する第2のレジスタとをダイレクトメモリアクセス
コントローラ内に設け、上記第1、第2のレジスタを用
いてメモリと周辺装置間で行われるダイレクトメモリア
クセス転送の転送先アドレスと転送データ数を制御する
ダイレクトメモリアクセス方法に適用されるもので、次
の特徴を有している。
According to a direct memory access method of the present invention, a memory and a direct memory access controller are connected via a system bus, and I
A direct memory access method in which a peripheral device and a direct memory access controller are connected via an O bus, and direct data memory access of data is performed via a buffer in the system bus and the direct memory access controller and an IO bus. A first register for storing a data transfer destination address and the number of transfer data in the direct memory access transfer performed in the above, and a first register for storing the data transfer destination address and the number of transfer data in the direct memory access transfer performed on the IO bus. Direct memory for controlling the transfer destination address and the transfer data number of direct memory access transfer performed between the memory and the peripheral device by using the first register and the second register. Intended to be applied to the access method, it has the following characteristics.

【0007】即ち、第1のレジスタにおける転送先アド
レスレジスタのIOアドレスと第2のレジスタにおける
転送先アドレスレジスタのIOアドレスとに同一アドレ
スを割り付け、かつ第1のレジスタにおける転送データ
数レジスタのIOアドレスと第2のレジスタにおける転
送データ数レジスタのIOアドレスとに同一アドレスを
割り付けて、1回のIOライトにより、第1のレジスタ
と第2のレジスタに転送先アドレス及び転送データ数を
同時に設定し、さらに1ビットのフラグを設けることに
より、上記第1のレジスタと第2のレジスタのいずれか
一方だけを読み出すことを可能にしたことを特徴として
いる。
That is, the same address is assigned to the IO address of the transfer destination address register in the first register and the IO address of the transfer destination address register in the second register, and the IO address of the transfer data number register in the first register. And the same address is assigned to the IO address of the transfer data number register in the second register, and the transfer destination address and the transfer data number are simultaneously set in the first register and the second register by one IO write, Further, by providing a 1-bit flag, it is possible to read only one of the first register and the second register.

【0008】[0008]

【作用】ダイレクトメモリアクセスコントローラ内の2
組のレジスタ(転送先アドレスレジスタの組と転送デー
タ数レジスタの組)に、それぞれIOアドレスとして同
一のアドレスを割り付けることにより、ソフトウエア
は、1回のIOライトで第1レジスタと第2レジスタに
転送アドレス及び転送バイト数を設定することができ
る。また第1のレジスタと第2のレジスタの値を読み出
す場合には、割り付けられたIOアドレスが同じであっ
ても、1ビットのフラグを設けることで第1のレジスタ
と第2のレジスタを判別することができるため、ソフト
ウエアはダイレクトメモリアクセスコントローラ内に第
1、第2のレジスタがあるということを認識する必要は
なくなる。よって、第1、第2のレジスタ(2対のレジ
スタ)で制御するDMA転送方式をサポートする際に、
1対のレジスタで転送アドレス及び転送バイト数を制御
するDMA転送方式をサポートしているソフトウエアを
そのまま流用することができ、ソフトウエアの互換性を
保つことができる。
[Operation] 2 in the direct memory access controller
By assigning the same address as the IO address to each of the registers of the group (the group of the transfer destination address register and the group of the transfer data number register), the software sets the first register and the second register by one IO write. A transfer address and the number of transfer bytes can be set. Further, when reading the values of the first register and the second register, even if the assigned IO addresses are the same, a 1-bit flag is provided to distinguish the first register from the second register. Therefore, the software does not need to recognize that the first and second registers are included in the direct memory access controller. Therefore, when supporting the DMA transfer method controlled by the first and second registers (two pairs of registers),
Software that supports the DMA transfer method of controlling the transfer address and the number of transfer bytes by a pair of registers can be used as it is, and the compatibility of the software can be maintained.

【0009】[0009]

【実施例】以下、添付の図面を用いて本発明の実施例に
ついて説明する。
Embodiments of the present invention will be described below with reference to the accompanying drawings.

【0010】図1は本発明のダイレクトメモリアクセス
方法が適用されるコンピュータシステムの概略構成の一
例を示すブロック図である。図1に示すコンピュータシ
ステムは、情報処理を行うMPU1と、データを記憶す
るメインメモリ(以下、MMと称する)3と、MM3を
制御するメインメモリコントローラ(以下、MCUと称
する)2と、システムバス6を介してMCU2と接続さ
れるダイレクトメモリアクセスコントローラ(以下、D
MACと称する)4と、IOバス7を介してDMAC4
と接続される周辺装置5とから構成されている。DMA
C4内には、システムバス上でDMA転送されるデータ
の転送先アドレスがセットされるシステム側アドレスレ
ジスタ(以下、SADと称する)8と転送バイト数がセ
ットされるシステムバス側カウントレジスタ(以下、S
CTと称する)9から成る第1のレジスタR1と、IO
バス上でDMA転送されるデータの転送先アドレスがセ
ットされるIO側アドレスレジスタ(以下、IADと称
する)10と転送バイト数がセットされるIO側カウン
トレジスタ(以下、ICTと称する)11から成る第2
のレジスタR2と、周辺装置5からMM3に転送するデ
ータを一時的に保管するDMA転送ライト用バッファ
(以下、DMAWバッファと称する)12と、MM3か
ら周辺装置5に転送されるデータを一時的に保管するD
MAリード用バッファ(以下、DMARバッファと称す
る)13と、IOリード時のレジスタ切り替えフラグ1
4が設けられている。ここで、SAD8とIAD10に
は同じIOアドレスが割り当てられ、SCT9とICT
11には同じIOアドレスが割り当てられている。
FIG. 1 is a block diagram showing an example of a schematic configuration of a computer system to which the direct memory access method of the present invention is applied. The computer system shown in FIG. 1 includes an MPU 1 that performs information processing, a main memory (hereinafter referred to as MM) 3 that stores data, a main memory controller (hereinafter referred to as MCU) 2 that controls the MM 3, and a system bus. Direct memory access controller (hereinafter referred to as D
4) and a DMAC 4 via the IO bus 7.
And a peripheral device 5 connected to. DMA
In C4, a system side address register (hereinafter, referred to as SAD) 8 in which a transfer destination address of data to be DMA-transferred on the system bus is set, and a system bus side count register in which the number of transfer bytes is set (hereinafter, referred to as SAD) S
(Referred to as CT) 9 consisting of a first register R1 and IO
It is composed of an IO side address register (hereinafter referred to as IAD) 10 in which a transfer destination address of data transferred by DMA on the bus is set, and an IO side count register (hereinafter referred to as ICT) 11 in which the number of transfer bytes is set. Second
Register R2, a DMA transfer write buffer (hereinafter referred to as a DMAW buffer) 12 for temporarily storing the data transferred from the peripheral device 5 to the MM3, and the data transferred from the MM3 to the peripheral device 5 temporarily. D to save
MA read buffer (hereinafter referred to as DMAR buffer) 13 and register switching flag 1 at IO read
4 are provided. Here, the same IO address is assigned to SAD8 and IAD10, and SCT9 and ICT
The same IO address is assigned to 11.

【0011】さらに詳しく説明すると、図1において、
システムバス6側からIOバス7側にDMA転送を行う
場合、SAD8とIAD10には周辺装置5内のメモリ
(図示せず)の転送先アドレスがセットされ、逆にIO
バス7側からシステムバス6側にDMA転送を行う場
合、SAD8とIAD10にはMM3の転送先アドレス
がセットされる。また、図1において、SCT9とIC
T11には転送開始時には転送バイト数がセットされる
が、転送開始後においては、前記転送バイト数から実際
に転送されたバイト数を減算した値がセットされる。例
えば、システムバス6側からIOバス7側にDMA転送
が行われ、かつ転送バイト数が256バイトの場合、S
CT9とICT11には当初「256」がセットされ
る。そして、システムバス6を介してDMAC4に対
し、例えば4バイト単位で転送が行われる場合、SCT
9には順次「252」,「248」…の値がセットされ
る。また、DMAC4からIOバス7を介して周辺装置
5に対し、例えば1バイト単位で転送が行われる場合、
ICT11には順次「255」,「254」,「25
3」がセットされる。この場合には、DMAC4のDM
AWバッファ12はシステムバス6から4バイト単位で
データを受け、1バイト単位でIOバス7へ出力するこ
とになる。
In more detail, referring to FIG.
When performing a DMA transfer from the system bus 6 side to the IO bus 7 side, the transfer destination address of the memory (not shown) in the peripheral device 5 is set in the SAD 8 and IAD 10, and conversely IO
When performing DMA transfer from the bus 7 side to the system bus 6 side, the transfer destination address of the MM 3 is set in SAD 8 and IAD 10. Further, in FIG. 1, SCT9 and IC
The number of transfer bytes is set in T11 at the start of transfer, but after the start of transfer, a value obtained by subtracting the number of bytes actually transferred from the number of transfer bytes is set. For example, if DMA transfer is performed from the system bus 6 side to the IO bus 7 side and the number of transfer bytes is 256 bytes, S
Initially, "256" is set in CT9 and ICT11. Then, when data is transferred to the DMAC 4 via the system bus 6 in units of 4 bytes, for example, the SCT
The values of “252”, “248”, ... Further, when data is transferred from the DMAC 4 to the peripheral device 5 via the IO bus 7 in units of 1 byte, for example,
The ICT 11 has “255”, “254”, and “25” in order.
3 ”is set. In this case, DM of DMAC4
The AW buffer 12 receives data from the system bus 6 in 4-byte units and outputs the data to the IO bus 7 in 1-byte units.

【0012】図2は、システムバス6側からIOバス7
側にデータをDMA転送する場合、DMA転送開始時に
DMAC内の第1のレジスタR1と第2のレジスタR2
に転送先アドレス及び転送バイト数を設定する場合のパ
スの設定を示すブロック図である。
FIG. 2 shows the IO bus 7 from the system bus 6 side.
When data is DMA-transferred to the side, the first register R1 and the second register R2 in the DMAC at the start of the DMA transfer.
FIG. 6 is a block diagram showing the setting of a path when setting a transfer destination address and a transfer byte number in the.

【0013】ソフトウエアは、DMA転送開始時にシス
テムバス6を介してDMAC4内の第1のレジスタのS
AD8と第2のレジスタのIAD10の両方のレジスタ
に転送先アドレス(例えば1000番地)をIOライト
する。ここで、SAD8のIOアドレスとIAD10の
IOアドレスは同じアドレス(例えばAAAA番地)で
あるので、ソフトウエアがこのAAAA番地に1回“1
000番地”という値をIOライトすることで、パス2
1,22,23を介してSAD8とIAD10の2つの
レジスタに“1000番地”が設定される。
At the start of the DMA transfer, the software uses the S of the first register in the DMAC 4 via the system bus 6.
The transfer destination address (for example, address 1000) is IO-written to both the registers of AD8 and IAD10 of the second register. Here, since the IO address of the SAD8 and the IO address of the IAD10 are the same address (for example, the address AAAA), the software sends "1" once to the address AAAA.
By writing the value "address 000" to IO, pass 2
"1000" is set in the two registers of SAD8 and IAD10 via 1, 22, and 23.

【0014】次に、ソフトウエアはシステムバス6を介
してDMAC4内の第1のレジスタのSCT9と第2の
レジスタのICT11の両方のレジスタに転送バイト数
(例えば256)をIOライトする。ここで、SCT9
のIOアドレスとICT11のIOアドレスは同じアド
レス(例えばBBBB番地)であるので、ソフトウエア
がこのBBBB番地に1回“256”という値をIOラ
イトすることで、パス21,22,24を介してSCT
9とICT11の2つのレジスタに“256”が設定さ
れる。
Next, the software IO-writes the number of transfer bytes (for example, 256) to both the registers SCT9 of the first register and ICT11 of the second register via the system bus 6 in the DMAC4. Where SCT9
Since the IO address of the ICT11 and the IO address of the ICT11 are the same address (for example, BBBB address), the software writes the value "256" to the BBBB address once, and the IO is written through the paths 21, 22 and 24. SCT
"256" is set in the two registers of 9 and ICT11.

【0015】上記実施例によれば、DMA転送開始時、
1回のIOライトでSAD8とIAD10に転送先アド
レスを、またSCT9とICT11に転送バイト数を設
定することができ、ソフトウエアは2つのレジスタを認
識することなくDMA転送をサポートすることができ、
ソフトウエアの互換性を保つことができる。
According to the above embodiment, when the DMA transfer is started,
It is possible to set the transfer destination address in SAD8 and IAD10 and the transfer byte number in SCT9 and ICT11 by one IO write, and the software can support the DMA transfer without recognizing the two registers.
Software compatibility can be maintained.

【0016】図3は、DMAC4内の第1のレジスタR
1及び第2のレジスタR2の内容を読み出す場合のパス
の設定を示す図である。図3において、SAD8とIA
D10及びSCT9とICT11をIOリードする場
合、この2組のレジスタには同じIOアドレスが割り付
けられている。そこで、この実施例では、DMAC4内
のレジスタ切り替えフラグ14の値により、IOリード
されるレジスタをハードウエア上で指定するように構成
している。通常レジスタ切り替えフラグ14をセットし
ない限りレジスタ切り替えフラグ14は“0”となって
おり、第2のレジスタR2が指定されている。この場
合、ソフトウエアがDMAC4内のレジスタにセットさ
れている転送先アドレスを知るためにAAAA番地をI
Oリードするとパス28,30,32,33,34を介
してIAD10のレジスタ値がリードされる。また、D
MAC4内のレジスタにセットされている転送バイト数
を知るためにBBBB番地をIOリードするとパス2
9,30,32,33,34を介してICT11のレジ
スタ値がリードされる。ここで、もし誤動作等で動作解
析のためにSAD8もしくはSCT9のレジスタ値をリ
ードする必要性が生じた場合、動作解析ツールにてレジ
スタ切り替えフラグ14に“1”をセットすると,ハー
ドウエア上で第1レジスタR1が指定され、AAAA番
地をIOリードするとパス25,27,31,33,3
4を介してSAD8のレジスタ値が、またBBBB番地
をIOリードするとパス26,27,31,33,34
を介してSCT9のレジスタ値がリードされる。
FIG. 3 shows the first register R in the DMAC4.
It is a figure which shows the setting of the path at the time of reading the content of the 1st and 2nd register R2. In FIG. 3, SAD8 and IA
When D10 and SCT9 and ICT11 are IO-read, the same IO address is assigned to these two sets of registers. Therefore, in this embodiment, the value of the register switching flag 14 in the DMAC 4 is used to specify the IO read register on the hardware. Unless the normal register switching flag 14 is set, the register switching flag 14 is "0", and the second register R2 is designated. In this case, the software sets the address AAAA to I in order to know the transfer destination address set in the register in the DMAC4.
When O is read, the register value of the IAD 10 is read via the paths 28, 30, 32, 33 and 34. Also, D
If the BBBB address is IO read to know the number of transfer bytes set in the register in MAC4, the path 2
The register value of the ICT 11 is read via 9, 30, 32, 33, and 34. Here, if it is necessary to read the register value of SAD8 or SCT9 for operation analysis due to a malfunction, etc., if the register switching flag 14 is set to "1" in the operation analysis tool, the first When 1 register R1 is specified and IO is read from the address AAAA, paths 25, 27, 31, 33, 3
When the register value of the SAD8 is read through IO and the address BBBB is IO-read, the paths 26, 27, 31, 33, 34 are passed.
The register value of SCT9 is read via.

【0017】上記実施例によれば、第1のレジスタと第
2のレジスタの値を読み出す場合、割り付けられたIO
アドレスが同じであっても、1ビットのフラグを設ける
ことで第1のレジスタと第2のレジスタを判別すること
ができるため、ソフトウエアはDMAC内に第1、第2
のレジスタがあるということを認識する必要はなくり、
ソフトウエアの互換性をサポートすることが可能にな
る。
According to the above embodiment, when reading the values of the first register and the second register, the assigned IO
Even if the addresses are the same, the first register and the second register can be discriminated by providing a 1-bit flag.
You don't have to be aware that
It becomes possible to support software compatibility.

【0018】[0018]

【発明の効果】以上述べたように、本発明によれば、シ
ステムバス上で行われるDMA転送におけるデータの転
送先アドレス及び転送データ数を制御する第1のレジス
タと、IOバス上で行われるDMA転送におけるデータ
の転送先アドレス及び転送データ数を制御する第2のレ
ジスタの2対のレジスタのシステムでも、従来の1対の
レジスタでDMA転送を制御するDMA転送方式と同様
に1回のIOライトで転送先アドレス及び転送バイト数
を設定できる。また第1のレジスタと第2のレジスタの
値を読み出す場合には、割り付けられたIOアドレスが
同じであっても、1ビットのフラグを設けることで第1
のレジスタと第2のレジスタを判別することができるた
め、ソフトウエアはダイレクトメモリアクセスコントロ
ーラ内に第1、第2のレジスタがあるということを認識
する必要はなくなる。したがって、ソフトウエアの互換
性を保つことができる。
As described above, according to the present invention, it is carried out on the IO bus and the first register for controlling the data transfer destination address and the number of transferred data in the DMA transfer carried out on the system bus. Even in the system of two pairs of registers of the second register that controls the transfer destination address and the number of pieces of data to be transferred in the DMA transfer, one IO is performed in the same manner as the conventional DMA transfer method in which the DMA transfer is controlled by the pair of registers. The destination address and the number of transfer bytes can be set by writing. In addition, when reading the values of the first register and the second register, even if the assigned IO addresses are the same, by providing a 1-bit flag
Since it is possible to discriminate between the first register and the second register, the software does not need to recognize that the first and second registers are present in the direct memory access controller. Therefore, software compatibility can be maintained.

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

【図1】図1は本発明のダイレクトメモリアクセス方法
が適用されるコンピュータシステムの概略構成の一例を
示すブロック図。
FIG. 1 is a block diagram showing an example of a schematic configuration of a computer system to which a direct memory access method of the present invention is applied.

【図2】図2はシステムバス側からIOバス側にデータ
をDMA転送する場合、DMA転送開始時にDMAC内
の第1のレジスタと第2のレジスタに転送先アドレス及
び転送バイト数を設定するときのパスの設定を示すブロ
ック図。
FIG. 2 is a diagram showing a case of setting a transfer destination address and a transfer byte number in a first register and a second register in a DMAC at the start of DMA transfer when data is DMA-transferred from a system bus side to an IO bus side. Block diagram showing the setting of the path.

【図3】図3はDMAC4内の第1のレジスタR1及び
第2のレジスタR2の内容を読み出す場合のパスの設定
を示す図。
FIG. 3 is a diagram showing a path setting when reading the contents of a first register R1 and a second register R2 in the DMAC4.

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

1…MPU、2…メインメモリコントローラ(MC
U)、3…メインメモリ(MM)、4…ダイレクトメモ
リアクセスコントローラ(DMAC)、5…周辺装置、
6…システムバス、7…IOバス、8…システムバス側
アドレスレジスタ(SAD)、9…システムバス側カウ
ントレジスタ(SCT)、10…IOバス側アドスレレ
ジスタ(IAD),11…IOバス側カウントレジスタ
(ICT)、12…DMAライト用バッファ、13…D
MAリード用バッファ、14…レジスタ切り替えフラ
グ。
1 ... MPU, 2 ... Main memory controller (MC
U), 3 ... Main memory (MM), 4 ... Direct memory access controller (DMAC), 5 ... Peripheral device,
6 ... System bus, 7 ... IO bus, 8 ... System bus side address register (SAD), 9 ... System bus side count register (SCT), 10 ... IO bus side address register (IAD), 11 ... IO bus side count register (ICT), 12 ... DMA write buffer, 13 ... D
MA read buffer, 14 ... Register switching flag.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 システムバスを介してメモリとダイレク
トメモリアクセスコントローラが接続され、かつIOバ
スを介して周辺装置とダイレクトメモリアクセスコント
ローラが接続され、システムバスとダイレクトメモリア
クセスコントローラ内のバッファとIOバスとを介し
て、データのダイレクトメモリアクセスを行うダイレク
トメモリアクセス方法であって、システムバス上で行わ
れるダイレクトメモリアクセス転送におけるデータの転
送先アドレス及び転送データ数を格納する第1のレジス
タと、IOバス上で行われるダイレクトメモリアクセス
転送におけるデータの転送先アドレス及び転送データ数
を格納する第2のレジスタとをダイレクトメモリアクセ
スコントローラ内に設け、上記第1、第2のレジスタを
用いてメモリと周辺装置間で行われるダイレクトメモリ
アクセス転送の転送先アドレスと転送データ数を制御す
るダイレクトメモリアクセス方法において、 第1のレジスタにおける転送先アドレスレジスタのIO
アドレスと第2のレジスタにおける転送先アドレスレジ
スタのIOアドレスとに同一アドレスを割り付け、かつ
第1のレジスタにおける転送データ数レジスタのIOア
ドレスと第2のレジスタにおける転送データ数レジスタ
のIOアドレスとに同一アドレスを割り付けて、1回の
IOライトにより、第1のレジスタと第2のレジスタに
転送先アドレス及び転送データ数を同時に設定し、さら
に1ビットのフラグを設けることにより、上記第1のレ
ジスタと第2のレジスタのいずれか一方だけを読み出す
ことを特徴とするダイレクトメモリアクセス方法。
1. A memory and a direct memory access controller are connected via a system bus, a peripheral device and a direct memory access controller are connected via an IO bus, and a buffer in the system bus and the direct memory access controller and an IO bus. A direct memory access method for performing direct memory access of data via, a first register for storing a transfer destination address and a transfer data number of data in a direct memory access transfer performed on a system bus, and an IO A second register for storing the data transfer destination address and the number of transferred data in the direct memory access transfer performed on the bus is provided in the direct memory access controller, and the memory is provided around the memory using the first and second registers. Dress In a direct memory access method for controlling a transfer destination address and a transfer data number of a direct memory access transfer performed in a space, an IO of a transfer destination address register in a first register is provided.
The same address is assigned to the address and the IO address of the transfer destination address register in the second register, and the IO address of the transfer data number register in the first register and the IO address of the transfer data number register in the second register are the same. By assigning an address and setting the transfer destination address and the number of transfer data in the first register and the second register at the same time by one IO write, and further by providing a 1-bit flag, A direct memory access method, characterized in that only one of the second registers is read.
JP7048691A 1995-03-08 1995-03-08 Direct memory access method Pending JPH08249268A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7048691A JPH08249268A (en) 1995-03-08 1995-03-08 Direct memory access method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7048691A JPH08249268A (en) 1995-03-08 1995-03-08 Direct memory access method

Publications (1)

Publication Number Publication Date
JPH08249268A true JPH08249268A (en) 1996-09-27

Family

ID=12810347

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7048691A Pending JPH08249268A (en) 1995-03-08 1995-03-08 Direct memory access method

Country Status (1)

Country Link
JP (1) JPH08249268A (en)

Similar Documents

Publication Publication Date Title
US7007126B2 (en) Accessing a primary bus messaging unit from a secondary bus through a PCI bridge
JPH08249268A (en) Direct memory access method
JP2568017B2 (en) Microprocessor and data processing system using the same
JPH0283736A (en) OSC detection method of buffer storage controller
JPS59197946A (en) Memory device
JPH02171843A (en) Interface device
JPS603049A (en) Bus interface apparatus
JP3331943B2 (en) Information processing device and input / output control device
JPH07160655A (en) Memory access method
JP3176319B2 (en) Data processing device
JPS6019816B2 (en) microprogram control adapter
JPH0358246A (en) Data output circuit for debug
JPH05324534A (en) Dma transfer system
JPS6255167B2 (en)
JPS6385958A (en) System control system
JPS62196760A (en) Data transfer system for parallel computer
JPS62293365A (en) Data transfer system
JPS5819965A (en) Recording device
JPH09146877A (en) Inter-memory data transfer controller
JPH03184143A (en) Memory access method
JPS6215644A (en) Cache memory control circuit
JPH02299076A (en) Image data upside down system
JPS62123551A (en) Memory device
JPS6180072A (en) Apparatus for processing module information of lsi test system
JPS6095667A (en) High speed access system in external address space

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees