JPS62276655A - Dma transfer system - Google Patents

Dma transfer system

Info

Publication number
JPS62276655A
JPS62276655A JP12073586A JP12073586A JPS62276655A JP S62276655 A JPS62276655 A JP S62276655A JP 12073586 A JP12073586 A JP 12073586A JP 12073586 A JP12073586 A JP 12073586A JP S62276655 A JPS62276655 A JP S62276655A
Authority
JP
Japan
Prior art keywords
data
transfer
byte
word
strobe 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.)
Pending
Application number
JP12073586A
Other languages
Japanese (ja)
Inventor
Hitoshi Kurita
栗田 仁
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.)
PFU Ltd
Original Assignee
PFU 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 PFU Ltd filed Critical PFU Ltd
Priority to JP12073586A priority Critical patent/JPS62276655A/en
Publication of JPS62276655A publication Critical patent/JPS62276655A/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/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

Abstract

PURPOSE:To improve a transfer speed and to efficiently and surely write data in a storage device by controlling data transfer and writing/reading data in/from the memory device in each word and byte. CONSTITUTION:The DMA transfer between a transfer device 1 for transferring data in each byte and the storage device having data width of each word consisting of plural bytes is controlled in each word by using a DMA controller 3. A bus switching control means 5 counts up a strobe signal obtained from the device 1 and controls a bus switching circuit 4 for switching a data bus from the device 1 based on the output of the device 1. On the other hand, a strobe control means 6 controls a data strobe signal of the device 2 based on a previously set flag. Consequently, data transfer to the device 2 and data writing into the device 2 can be executed by either one format, i.e. word or byte.

Description

【発明の詳細な説明】 3、発明の詳細な説明 [概 要] ワード単位にメモリとの間のデータ転送を制御するDM
A制御装置と、バイト単位にデータを転送する装置との
間において、バイト転送をワード転送に変換し、メモリ
のストローブ信号を制御することにより、ワード/バイ
トの両方の形式による転送およびメモリへの書き込みを
可能としたものである。
[Detailed Description of the Invention] 3. Detailed Description of the Invention [Overview] DM that controls data transfer to and from memory in word units
Between the A control device and the device that transfers data in bytes, byte transfers are converted to word transfers and the memory strobe signal is controlled, thereby allowing transfers in both word/byte formats and data transfers to memory. It is possible to write.

[産業上の利用分野] 本発明は、入出力装置のデータを転送する転送装置と記
憶装置間のD M A転送に係わり、特にバイト単位に
データを転送する転送’ATLと複数バイトからなるワ
ード単位の記憶装置間のD M A転送方式に関する。
[Industrial Field of Application] The present invention relates to DMA transfer between a transfer device that transfers data from an input/output device and a storage device, and particularly relates to transfer 'ATL' that transfers data in units of bytes and words consisting of multiple bytes. The present invention relates to a DMA transfer method between unit storage devices.

中央処理装置(以下、CPUと略記する)を介さず、直
接転送装置が主記憶装置にアクセスし、読出しおよび書
込みを行うのがDMAであって、情報処理装置において
広く行われている。
DMA is a method in which a transfer device directly accesses a main memory to perform reading and writing without using a central processing unit (hereinafter abbreviated as CPU), and is widely used in information processing devices.

転送装置のデータバスは通常8ビット幅であり、主記憶
装置のデータ幅は通常16ビツトまたは32ビツトであ
る。
The data bus of the transfer device is typically 8 bits wide, and the data width of the main memory is typically 16 or 32 bits.

従って、DMAにおいて主記憶装置に端数ハイドが生ず
る場合には特別の処理を要し、最も効率的な処理方法が
要望される。
Therefore, when a fractional hide occurs in the main memory in DMA, special processing is required, and the most efficient processing method is desired.

[従来の技術] ハイド単位でデータを転送する転送装置と複数バイトか
らなるワード単位の記憶装置間のD M A転送には、
従来衣の二つの方式があった。
[Prior Art] DMA transfer between a transfer device that transfers data in units of hides and a storage device in units of words consisting of multiple bytes is as follows.
Traditionally, there were two types of clothing.

第1の方式は、第急図(a)に示すように、ハイ゛ト単
位にデータを転送する装置に合せて、DMA転送自体を
バイト転送する方式であり、第2の方式は同図(b)に
示すように、転送装置からのバイトデータを上位・下位
に切り換えてワード単位として転送する方式である。
The first method, as shown in Figure (a), is a method in which the DMA transfer itself is a byte transfer in accordance with the device that transfers data in units of height, and the second method is shown in Figure (a). As shown in b), this is a method in which the byte data from the transfer device is switched between upper and lower order and transferred in units of words.

[発明が解決しようとする問題点] 上記の従来のDMA転送方式によれば、第1の方式では
転送時間が2倍必要であり、第2の方式では記憶装置上
のデータ管理単位がワード単位となっており、DMA転
送の最初および最後が端数バイトのときは、誤りによる
消去、重ね書き等が発生する恐れのあるものであった。
[Problems to be Solved by the Invention] According to the above-mentioned conventional DMA transfer method, the first method requires twice the transfer time, and the second method requires the data management unit on the storage device to be word-based. Therefore, when the first and last DMA transfers are fractional bytes, there is a risk that errors such as erasure or overwriting may occur.

本発明は、このような問題点を解消した新規なりMA転
送方式を提供しようとするものである。
The present invention aims to provide a new MA transfer method that solves these problems.

[問題点を解決するための手段] 第1図は本発明のDMA転送方式の原理ブロック図を示
す。
[Means for Solving the Problems] FIG. 1 shows a block diagram of the principle of the DMA transfer method of the present invention.

第1図において、1はバイト単位にデータを転送する転
送装置、2は2バイトからなるワードm位の記憶装置、
3はワード単位にDMA転送を制御するDMA制御装置
である。
In FIG. 1, 1 is a transfer device that transfers data in byte units, 2 is a storage device of m words consisting of 2 bytes,
3 is a DMA control device that controls DMA transfer in units of words.

4はバイトデータを保持するフリ、ブフロ・7プの2&
11と切換スイッチから成り、転送装置1からのバイト
幅のバスをワード幅のバスに変換するバス切換回路であ
る。
4 pretends to hold byte data, 2& of Buflo 7p
11 and a changeover switch, it is a bus switching circuit that converts a byte-width bus from the transfer device 1 into a word-width bus.

5は転送装置1からのストローブ信号をカウントし、バ
ス切換回路4を制御するバス切換制御手段である。
Reference numeral 5 denotes bus switching control means for counting strobe signals from the transfer device 1 and controlling the bus switching circuit 4.

6は予め設定されたフラグにより、記憶装置2へのデー
タストローブ信号を制御するデータストローブ制御手段
である。
Reference numeral 6 denotes a data strobe control means for controlling a data strobe signal to the storage device 2 using a preset flag.

バス切換回路4は、バス切換制御手段5の制御によって
、転送装置1からのバイト幅データを、ワード転送、上
位側バイト転送または下位側バイト転送の何れにも変換
可能となる。
Under the control of the bus switching control means 5, the bus switching circuit 4 can convert the byte width data from the transfer device 1 into word transfer, upper byte transfer, or lower byte transfer.

データストローブ制411手段4において、予めセント
したフラグにより記憶装置2の上位および下位ハイドご
とのデータストローブを制御することにより記憶装置2
への書込みをワード単位/ハイド単位の何れの形式にも
行うことが可能となる。
The data strobe system 411 means 4 controls the data strobe for each upper and lower hide of the storage device 2 using a flag set in advance.
It becomes possible to write in either word unit or hide unit format.

[作用] 上記の構成をとることによって、D M A転送はワー
ド単位で高速に行い、D M A転送の先頭又は/及び
最終をバイト単位に管理して書き込むことが可能となる
[Operation] By adopting the above configuration, it is possible to perform DMA transfer at high speed in units of words, and manage and write the beginning and/or end of DMA transfer in units of bytes.

[実施例] 以下第2図及び第3図に示す実施例により、本発明をさ
らに具体的に説明するゆ 第2図は本発明の一実施例のプロ7り図である。
[Example] The present invention will be explained in more detail with reference to the embodiment shown in FIGS. 2 and 3. FIG. 2 is a schematic diagram of one embodiment of the present invention.

図において、1はバイト単位にデータを転送する転送装
置、2は2バイトからなるワード単位の記憶装置、3は
ワード単位にDMA転送を制御するDMA制御装置であ
る。
In the figure, 1 is a transfer device that transfers data in byte units, 2 is a storage device in word units consisting of 2 bytes, and 3 is a DMA control device that controls DMA transfer in word units.

41および42は転送装置1がらのデータバイトをラッ
チするフリップフロップであって、41は記jQ装置2
の上位バイトに書き込むためにラッチし、42は記憶装
置2の下位ハイドに書き込むためにラッチする。43は
マルチプレクサ(以下、M P Xと略記する)であっ
て、転送装置1からのデータをフリップフロップ41と
42の何れかに切り換える。
41 and 42 are flip-flops for latching data bytes from the transfer device 1;
42 is latched to write to the upper byte of storage device 2, and 42 is latched to write to the lower byte of storage device 2. A multiplexer 43 (hereinafter abbreviated as M P X) switches data from the transfer device 1 to either of the flip-flops 41 and 42 .

51は1ビツトのカウンタであって、転送装置1からの
ストローフ゛イ言号Bをカウントして、そのカラント結
果のデータを、MPX切換切換信号上位ラッチ信号Eお
よび下位ラッチ信号Fとして出力する。
51 is a 1-bit counter that counts the strophe words B from the transfer device 1 and outputs the current result data as the MPX switching signal upper latch signal E and lower latch signal F.

61はフラグ1用ラツチ、62はフラグ2用ラツチであ
り、63および64は記憶装置2へのデータストローブ
信号を制御するANDゲートである。
61 is a flag 1 latch, 62 is a flag 2 latch, and 63 and 64 are AND gates that control a data strobe signal to the storage device 2.

フラグ1は上位のデータストローブ信号Gをマスクする
ためのフラグであり、プログラムにより予めセットされ
、最初のデータストローブ信号の終りでリセット(この
部分図示省略)される。
Flag 1 is a flag for masking the upper data strobe signal G, is set in advance by a program, and is reset at the end of the first data strobe signal (this part is not shown).

フラグ2は下位のデータストローブ信号I(をマスクす
るためのフラグであり、転送要求信号Aと転送装置から
のストローブ信号Bと転送終了信号CとMPX切換信号
りとの論理積でセットされ、データストローブ信号の終
りでリセット(この部じて記憶装置2へのアドレス信号
とデータストローブ信号が出力される。
Flag 2 is a flag for masking the lower data strobe signal I, and is set by the logical product of the transfer request signal A, the strobe signal B from the transfer device, the transfer end signal C, and the MPX switching signal. Reset at the end of the strobe signal (at this point, the address signal and data strobe signal to the storage device 2 are output.

DMA制御装置3からのデータストローブ信号は、AN
Dゲート63および64によって、記憶装置2の上位ス
トローブ信号Gと下位ストローブ信号Hに分けられ、上
位ストローブ信号Gはフラグ1が“1″のときANDゲ
ート63によってマスクされ、下位ストローブ信号Hは
フラグ2が“1″のときANDゲート64によってマス
クされる。
The data strobe signal from the DMA control device 3 is AN
The D gates 63 and 64 divide the memory device 2 into an upper strobe signal G and a lower strobe signal H. The upper strobe signal G is masked by the AND gate 63 when flag 1 is "1", and the lower strobe signal H is masked by the flag 1. 2 is masked by AND gate 64 when it is "1".

カウンタ51は、転送要求信号Aによってカウントを開
始するが、フラグ1がセットされていないときはMPX
43が上位からスタートし、フラグ1がセットされてい
るときは、MPX43が下位からスタートするようプリ
セットされる。
Counter 51 starts counting in response to transfer request signal A, but when flag 1 is not set, MPX
When the MPX 43 starts from the upper position and flag 1 is set, the MPX 43 is preset to start from the lower position.

第3図は、本発明の実施例における各信号のタイミング
を示すタイミングチャートである。
FIG. 3 is a timing chart showing the timing of each signal in the embodiment of the present invention.

第3図では、6バイトのDMA転送を行い、1バイト目
は記憶装置の下位にバイト書込みし、2〜5バイトはワ
ード書込みし、7バイト目は上位にバイト書込みする例
を示している。
FIG. 3 shows an example in which a 6-byte DMA transfer is performed, the first byte is written in the lower byte of the storage device, the 2nd to 5th bytes are written in words, and the 7th byte is written in the upper byte.

(1)最初のバイトを下位バイトから書き込むため、プ
ログラムによりフラグ1をセットしておく。
(1) In order to write the first byte from the lower byte, flag 1 is set by the program.

そのためカウンタ51は、転送要求信号Aの立上りによ
り、MPX43の下位側(L)から転送装置のストロー
ブ信号Bのカウントを開始する。
Therefore, when the transfer request signal A rises, the counter 51 starts counting the strobe signal B of the transfer device from the lower side (L) of the MPX 43.

(2)最初のバイトは下位側にラッチされ、バイト転送
される。DMA制御装置からは最初のアドレスとストロ
ーブ信号が出力されるが、上位のデータストローブ信号
はフラグ1によってマスクされ、記憶装置2へは下位バ
イトにのみ書込みが行われる。データストローブ信号の
終りでフラグ1はリセットされる。
(2) The first byte is latched to the lower side and the byte is transferred. The first address and strobe signal are output from the DMA control device, but the upper data strobe signal is masked by flag 1, and only the lower byte is written into the storage device 2. Flag 1 is reset at the end of the data strobe signal.

(3)転送装置1からの次のストローブ信号Bでカウン
タ51は反転し、MPX43は上位側(U)に切り換わ
り、第2のバイトは上位にラッチされ、その次のストロ
ーブ信号Bでカウンタ51は再び反転して第3のバイト
は下位にラッチされ、ワード転送される。D M A制
御装置3からの次のアドレスとデータストローブ信号に
よりワード書込みが行われる。第4および第5のバイト
についても同様にワード転送され、ワード書込みされる
(3) The counter 51 is inverted by the next strobe signal B from the transfer device 1, the MPX 43 is switched to the upper side (U), the second byte is latched to the upper side, and the counter 51 is inverted by the next strobe signal B. is inverted again, the third byte is latched to the lower order, and the word is transferred. Word writing is performed by the next address and data strobe signal from the DMA controller 3. Similarly, the fourth and fifth bytes are word-transferred and word-written.

(4)転送装置1からの6番目のストローブ信号Bによ
りMPX+jJ換信号りは車信号(U)となり、第6の
バイトは上位側にラッチされ、転送終了信号Cによりバ
イト転送される。図に小円で示したように、転送要求信
号Aとストローブ信号Bと転送終了信号CとMPX切換
信号((U)側のとき61′)Dとの論理積によりフラ
グ2がセ・7トされ、下位のデータストローブ信号Hは
マスクされて、第6のバイトは上位へバイト書込みされ
る。フラグ2はそのデータストローブ信号Hの終りでリ
セットされる。
(4) Due to the sixth strobe signal B from the transfer device 1, the MPX+jJ conversion signal becomes a car signal (U), the sixth byte is latched to the upper side, and the byte is transferred in response to the transfer end signal C. As shown by the small circle in the figure, flag 2 is set to The lower data strobe signal H is masked, and the sixth byte is written into the upper byte. Flag 2 is reset at the end of its data strobe signal H.

[発明の効果] 以上説明のように本発明によれば、データ転送および記
憶装置への書込み/読出しを、ワード単位ならびにバイ
ト単位に管理して行うことが可能となり、転送速度を向
上し、記憶装置への書込みを効率よく且つ確実に行うこ
とを可能としたもので、その実用上の効果は大きい。
[Effects of the Invention] As explained above, according to the present invention, data transfer and writing/reading to and from a storage device can be managed in word units and byte units, improving transfer speed and improving storage efficiency. This makes it possible to write to the device efficiently and reliably, and has great practical effects.

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

第1図は本発明の原理ブロック図、 第2図は本発明の一実施例のブロック図、第3図は本発
明の実施例のタイミングチャート、第4図は従来例のブ
ロック図である。 図面において、 ■は転送装置、     2は記憶装置、3はDMA制
御装置、  4はバス切換回路、5はバス切換制御手段
、 6はデータストローブ制御手段、 41、42はフリップフロップ、 43はマルチプレクサ(MPX)、 51はカウンタ、      6L 62はフラグラッ
チ、63、64はANDゲート、 をそれぞれ示す。 本発明の原理ブロック図 第1図 より 本発明の一実7111のフロック図 第 2 図 本発明の実原5すのタイミングチャート第 3 図
FIG. 1 is a block diagram of the principle of the present invention, FIG. 2 is a block diagram of an embodiment of the present invention, FIG. 3 is a timing chart of the embodiment of the present invention, and FIG. 4 is a block diagram of a conventional example. In the drawings, 1 is a transfer device, 2 is a storage device, 3 is a DMA control device, 4 is a bus switching circuit, 5 is a bus switching control means, 6 is a data strobe control means, 41 and 42 are flip-flops, and 43 is a multiplexer ( MPX), 51 is a counter, 6L, 62 is a flag latch, and 63 and 64 are AND gates, respectively. The principle block diagram of the present invention is shown in Fig. 1. The block diagram of the actual product 7111 of the present invention is shown in Fig. 2. The timing chart of the actual product 5 of the present invention is shown in Fig. 3.

Claims (1)

【特許請求の範囲】 バイト単位にデータを転送する転送装置(1)と、複数
バイトからなるワード単位のデータ幅を有する記憶装置
(2)間を、ワード単位にDMA転送を制御するDMA
制御装置(3)を用いて行うDMA転送において、 転送装置(1)からのストローブ信号をカウントし、そ
の出力により、転送装置(1)からのデータバスを切換
えを行うバス切換回路(4)を制御するバス切換制御手
段(5)と、 予め設定したフラグにより、記憶装置(2)へのデータ
ストローブ信号を制御するストローブ制御手段(6)と
を備え、 記憶装置(2)への転送、ならびに記憶装置(2)への
書込みを、ワードおよびバイトの何れの形式でも可能に
なるよう構成したことを特徴とするDMA転送方式。
[Claims] A DMA that controls DMA transfer in word units between a transfer device (1) that transfers data in byte units and a storage device (2) that has a data width in word units consisting of multiple bytes.
In DMA transfer performed using the control device (3), a bus switching circuit (4) that counts strobe signals from the transfer device (1) and switches the data bus from the transfer device (1) based on the output. A bus switching control means (5) for controlling a data strobe signal to the storage device (2) according to a preset flag, and a strobe control means (6) for controlling a data strobe signal to the storage device (2). A DMA transfer method characterized in that writing to a storage device (2) is possible in either word or byte format.
JP12073586A 1986-05-26 1986-05-26 Dma transfer system Pending JPS62276655A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12073586A JPS62276655A (en) 1986-05-26 1986-05-26 Dma transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12073586A JPS62276655A (en) 1986-05-26 1986-05-26 Dma transfer system

Publications (1)

Publication Number Publication Date
JPS62276655A true JPS62276655A (en) 1987-12-01

Family

ID=14793688

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12073586A Pending JPS62276655A (en) 1986-05-26 1986-05-26 Dma transfer system

Country Status (1)

Country Link
JP (1) JPS62276655A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01145753A (en) * 1987-12-02 1989-06-07 Hitachi Ltd Direct memory access controller
JPH0222756A (en) * 1988-07-12 1990-01-25 Matsushita Electric Ind Co Ltd Dma transfer data width converting device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5846727A (en) * 1981-09-14 1983-03-18 Nec Corp Current injection type logical gate circuit using josephson effect
JPS60189052A (en) * 1984-03-07 1985-09-26 Seiko Epson Corp Memory access controller

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5846727A (en) * 1981-09-14 1983-03-18 Nec Corp Current injection type logical gate circuit using josephson effect
JPS60189052A (en) * 1984-03-07 1985-09-26 Seiko Epson Corp Memory access controller

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01145753A (en) * 1987-12-02 1989-06-07 Hitachi Ltd Direct memory access controller
JPH0222756A (en) * 1988-07-12 1990-01-25 Matsushita Electric Ind Co Ltd Dma transfer data width converting device

Similar Documents

Publication Publication Date Title
DE3751426D1 (en) Bus interface circuit for digital data processor.
JPH046980B2 (en)
JPS62276655A (en) Dma transfer system
KR970059914A (en) Flash memory system
US5566350A (en) Information device for providing fast data transfer with minimum overhead
JPH0222748A (en) Non-volatile memory control circuit
JPH03204753A (en) Dma controller
JPS61150055A (en) Dma data transfer system
KR900001530Y1 (en) Data transfer circuit between font rom and character generating ram
JPS61139854A (en) 2-port ram system
JP2581144B2 (en) Bus control device
JPS6136854A (en) Memory switching device
JPH01169691A (en) Ic card
JPS61161560A (en) Memory device
JPS6177468A (en) Memory constitution for picture data of facsimile equipment
JPS6398758A (en) Dma controller
JPH06161945A (en) Memory data transfer device
JPS60164836A (en) Floppy disc data changing system
JPS6194167A (en) Peripheral controller
JPH01120659A (en) Bus access system
JPS62262169A (en) Data transfer system
JPH02301851A (en) System bus accessing system
JPH04107666A (en) Dma transfer system
JPH0122655B2 (en)
JPS62171065A (en) Data transfer system