JPS63100553A - High-speed transferring system between memory blocks - Google Patents

High-speed transferring system between memory blocks

Info

Publication number
JPS63100553A
JPS63100553A JP24528586A JP24528586A JPS63100553A JP S63100553 A JPS63100553 A JP S63100553A JP 24528586 A JP24528586 A JP 24528586A JP 24528586 A JP24528586 A JP 24528586A JP S63100553 A JPS63100553 A JP S63100553A
Authority
JP
Japan
Prior art keywords
memory
transfer
signal
data
dma
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
JP24528586A
Other languages
Japanese (ja)
Inventor
Hideki Yoshino
英樹 吉野
Toru Maeda
徹 前田
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 Engineering Co Ltd
Hitachi Ltd
Original Assignee
Hitachi Engineering Co Ltd
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 Engineering Co Ltd, Hitachi Ltd filed Critical Hitachi Engineering Co Ltd
Priority to JP24528586A priority Critical patent/JPS63100553A/en
Publication of JPS63100553A publication Critical patent/JPS63100553A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve the throughput of a microcomputer system by providing the function which equalizes the transfer source address and the transfer destination address in case of transfer between memory blocks. CONSTITUTION:In case of transfer between memory blocks 6 and 7, the transfer source memory and the transfer destination memory are selected by memory addresses outputted from a DAM control LSI 3, and a signal MEMW or MEMR is sent to one memory IC, and a signal IOR or IOW is sent to the other memory IC. Since the transfer source memory outputs data onto a data bus by the leading edge of the signal MEMR or IOR and data on the data bus is inputted to the transfer destination memory by the trailing edge of the signal IOW or MEMW, data is transferred from the transfer source memory to the transfer destination memory in one DMA cycle.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はメモリブロック間転送を必要とするマイコンシ
ステムに係り、特に転送元メモリブロツ  。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microcomputer system that requires transfer between memory blocks, and particularly to a transfer source memory block.

りと転送先メモリブロックが別々のメモリICで構成さ
れているマイコンシステムに好適なメモリブロック間高
速転送方式に関する。
The present invention relates to a high-speed transfer method between memory blocks suitable for a microcomputer system in which the destination memory block and the transfer destination memory block are configured with separate memory ICs.

〔従来の技術〕[Conventional technology]

従来メモリブロック間転送をDMA制御LSIで行なう
には、1回目のDMAサイクルで転送元メモリからデー
タを読出し一時記憶バツファに書き込み、2回目のDM
Aサイクルで一時記憶バツ知ら−れており、既在のDM
A制御LSIでもこの方式によりメモリブロック間転送
を行なっていた。
Conventionally, in order to perform transfer between memory blocks using a DMA control LSI, data is read from the transfer source memory and written to a temporary storage buffer in the first DMA cycle, and data is written in the temporary storage buffer in the second DMA cycle.
It is known that the A cycle has temporary memory, and the existing DM
The A control LSI also performed transfer between memory blocks using this method.

従来の方式でもMPUを介さないので高速ではあるが、
1回の転送に2回のDMAサイクルを要する為、メモリ
とI/O間の転送より時間がかかつていた。
Although the conventional method is fast because it does not involve the MPU,
Since one transfer requires two DMA cycles, it took longer than transfer between memory and I/O.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記従来例では、メモリブロック間転送に時間がかかり
、マイコンシステムのスルーブツトを低下させる問題が
あった。
In the conventional example described above, there was a problem in that it took time to transfer data between memory blocks, reducing the throughput of the microcomputer system.

本発明は、メモリICが別々に割当てられているメモリ
ブロック間転送において、従来2回のDMAサイクルで
行なっていた転送元メモリからの読出しと転送先メモリ
への書込みを、メモリとI/O間の転送と同様に1回の
DMAサイクルで終了させることによりメモリブロワ間
転送を高速にしてマイコンシステムのスループットを向
上させることを目的とする。
In a transfer between memory blocks to which memory ICs are allocated separately, the present invention replaces reading from the source memory and writing to the destination memory, which conventionally took two DMA cycles, between the memory and the I/O. The purpose is to speed up the transfer between memory blowers and improve the throughput of the microcomputer system by completing the transfer in one DMA cycle, similar to the transfer of .

C問題点を解決するための手段〕 上記目的は、メモリブロック間転送の際、転送元メモリ
のアドレスと転送先メモリのアドレスを同一とし、DM
A制御LSIが発生するアドレスを2つのメモリブロッ
クで共用し、転送元メモリと転送先メモリを同時に選択
することにより、転送元メモリからの読出しと転送先メ
モリへの書込みは1回のDMAサイクルで終了し、メモ
リブロック間転送を高速にすることが出来る為、マイコ
ンシステムのスループット向上を達成することが出来る
Means for Solving Problem C] The above purpose is to make the address of the transfer source memory and the address of the transfer destination memory the same during transfer between memory blocks, and to
By sharing the address generated by the A control LSI between two memory blocks and selecting the transfer source memory and transfer destination memory at the same time, reading from the transfer source memory and writing to the transfer destination memory can be performed in one DMA cycle. Since the transfer between memory blocks can be made faster, the throughput of the microcomputer system can be improved.

〔作用〕[Effect]

一般的にメモリICは、読出し動作の場合はアドレスと
メモリIC選択信号でメモリIC内の特定のアドレスを
選択後、メモリからデータを読出す為のパルス状のスト
ローブ信号の前縁でデータをデータバス上に出力し、ま
た書込み動作の場合はアドレスとメモリIC選択信号で
メモリIC内の特定のアドレスを選択後、メモリへデー
タを書込む為のパルス状のストローブ信号の後縁でデー
タバス上のデータを入力する。また既存のDMAご制御
LSIは、1回のDMAサイクルでDMA転・送応答信
号DACKとメモリアドレスと、メモリからデータを読
出す為のストローブ信号MEMRとI/Oにデータを書
込む為のストローブ信号IOWまたはI/Oからデータ
を読出す為のストローブ信号IORとメモリにデータを
書込む為のストローブ信号MEMVを出力する。メモリ
ブロック間転送において、転送元メモリと転送先メモリ
をD M A III御LSIが出力するメモリアドレ
スで選択し、一方のメモリICには前記MEMW信号ま
たは前記MEMR信号を、もう一方のメモリICには前
記IOR信号または前記IOW信号を入れることによっ
て、転送元メモリは前記MEMR信号または前記IOR
信号の前縁でデータバス上にデータを出力し、転送先メ
モリは前記IOW信号または前記MEMV信号の後縁で
データバス上のデータを入力するので、1つのDMAサ
イクルで転送元メモリから転送先メモリへのデータ転送
が可能となる。
Generally, in the case of a read operation, a memory IC selects a specific address within the memory IC using an address and a memory IC selection signal, and then reads data at the leading edge of a pulsed strobe signal to read data from the memory. In the case of a write operation, after selecting a specific address in the memory IC using the address and memory IC selection signal, the data bus is output at the trailing edge of a pulsed strobe signal for writing data to the memory. Enter the data. In addition, the existing DMA control LSI uses a DMA transfer response signal DACK, a memory address, a strobe signal MEMR for reading data from memory, and a strobe signal for writing data to I/O in one DMA cycle. A strobe signal IOR for reading data from the signal IOW or I/O and a strobe signal MEMV for writing data into the memory are output. In transfer between memory blocks, the transfer source memory and transfer destination memory are selected by the memory address output by the DMA III control LSI, and the MEMW signal or MEMR signal is sent to one memory IC and the other memory IC. By inputting the IOR signal or the IOW signal, the transfer source memory receives the MEMR signal or the IOR signal.
Data is output onto the data bus at the leading edge of the signal, and data on the data bus is input to the destination memory at the trailing edge of the IOW signal or the MEMV signal, so one DMA cycle transfers data from the source memory to the destination memory. Data transfer to memory becomes possible.

〔実施例〕〔Example〕

以下、本発明の一実施例を説明する。第1図は)本発明
″)20″図を示し・第2図″メゝす2″′ツタ転送制
御回路2とメモリIC選択信号切替回路5の具体的実施
例を示し、第3図は本実施例のタイミングチャートを示
す。
An embodiment of the present invention will be described below. Fig. 1 shows a 20'' diagram of the present invention, Fig. 2 shows a concrete embodiment of the vine transfer control circuit 2 and the memory IC selection signal switching circuit 5, and Fig. 3 shows a concrete embodiment of the present invention. A timing chart of this embodiment is shown.

メモリブロックA6とメモリブロックB7は別別のメモ
リICで構成される。またアドレスデコーダー4は別々
のアドレスでメモリブロックA選択信号15とメモリブ
ロックBfi択信号16を出力する。メモリブロック間
転送以外では、メモリブロックB7はメモリIC選択信
号切替回路5の働きでメモリブロックB選択信号16で
選択される為、メモリブロックA6とは別のアドレスに
割当てられ、MPU1が出力するメモリリードライト信
号24によってメモリからのデータ読出し又はメモリへ
のデータ書込みを行なう。
Memory block A6 and memory block B7 are composed of separate memory ICs. Further, the address decoder 4 outputs a memory block A selection signal 15 and a memory block Bfi selection signal 16 at different addresses. In cases other than transfer between memory blocks, memory block B7 is selected by the memory block B selection signal 16 by the function of the memory IC selection signal switching circuit 5, so it is assigned to a different address from the memory block A6, and the memory output from the MPU 1 is A read/write signal 24 is used to read data from or write data to the memory.

MPUIがメモリブロック転送要求信号/Oをメモリブ
ロック転送制御回路2のフリップフロップ21にセット
するとフリップフロップ21はDMA制御LSI3にD
MA要求償号11を出す。
When the MPUI sets the memory block transfer request signal /O to the flip-flop 21 of the memory block transfer control circuit 2, the flip-flop 21 transfers D to the DMA control LSI 3.
Issue MA request compensation number 11.

:’Du>AmwLS I 3+1puaa求信−sl
 1*受sけるとMPtJlにMPUホールド要求信号
12を出し、MPUIはこれを受付けるとアドレス出力
とデータ出力をハイインピーダンスにしてアドレスバス
8.データバス9から切り離すと共にメモリリードライ
ト信号24の出力もハイインピーダンスにして、バスの
使用権及びメモリへのリードライト制御をDMA制御L
SI3に移し、MPUホールド応答信号13をDMA制
御LSI3に返す、DMA制御LSI3はMPUホール
ド応答信号13を受付けるとメモリブロック転送制御回
路2にDMA応答信号14を返すと共にアドレスバス8
にあらかじめDMA制御LSI3にプログラムしてあっ
たメモリブロックA6のアドレス信号22を出力する。
:'Du>AmwLS I 3+1puaa request-sl
1*When accepted, it issues an MPU hold request signal 12 to MPtJl, and when MPUI accepts this, it sets the address output and data output to high impedance and sets the address bus 8. In addition to disconnecting from the data bus 9, the output of the memory read/write signal 24 is also set to high impedance, and the right to use the bus and read/write control to the memory is controlled by the DMA control L.
When the DMA control LSI 3 receives the MPU hold response signal 13, it returns the DMA response signal 14 to the memory block transfer control circuit 2 and sends the MPU hold response signal 13 to the address bus 8.
Then, the address signal 22 of the memory block A6, which has been programmed in the DMA control LSI 3 in advance, is output.

アドレスデコーダー4はアドレス信号22によりメモリ
ブロックA選択信号15を出しメモリブロックA6を選
択する。またメモリブロック転送制御回路2はメモリI
C選択切替信号17をメモリIC選択信号切替回路5に
出し、メモリIC選択信号切替回路5はメモリブロック
A選択信号15でメモリブロックB7を選択するように
切替わり、メモリブロック八6とメモリブロックB7は
DMA制御LSI3が出力するアドレス信号22で選択
される。メモリブロックA6が転送元になりメモリブロ
ックB7が転送先になる場合、ストローブ信号18はメ
モリからデータを読出すための信号MEMRであり、ス
トローブ信号19は工/○にデータを書込むための信号
IOWである。メモリブロック八6はストローブ信号1
8の前縁でデータバス9に転送データ信号23を出力し
メモリブロックB7はストローブ信号19の後縁でデー
タバス9上にある転送データ信号23をメモリに書込み
1回のDMAサイクルは終了する。また、メモリブロッ
クB7が転送元になりメモリブロックA6が転送先にな
る場合、ストローブ信号18はメモリへデータを書込む
ための信号MEMIIIであり、ストローブ信号19は
I/Oからデータを読出すための信号IORである。こ
の時第3図のタイミングチャート内でストローブ信号1
8とストローブ信号19の位置が反転する。
Address decoder 4 outputs memory block A selection signal 15 in response to address signal 22 and selects memory block A6. In addition, the memory block transfer control circuit 2
The C selection switching signal 17 is sent to the memory IC selection signal switching circuit 5, and the memory IC selection signal switching circuit 5 is switched to select the memory block B7 with the memory block A selection signal 15, and the memory block 86 and memory block B7 are switched. is selected by the address signal 22 output from the DMA control LSI 3. When memory block A6 is the transfer source and memory block B7 is the transfer destination, the strobe signal 18 is a signal MEMR for reading data from the memory, and the strobe signal 19 is a signal for writing data to It is IOW. Memory block 86 receives strobe signal 1
The transfer data signal 23 is output to the data bus 9 at the leading edge of the strobe signal 19, and the memory block B7 writes the transfer data signal 23 on the data bus 9 to the memory at the trailing edge of the strobe signal 19, thus completing one DMA cycle. Furthermore, when memory block B7 is the transfer source and memory block A6 is the transfer destination, the strobe signal 18 is the signal MEMIII for writing data to the memory, and the strobe signal 19 is for reading data from the I/O. is the signal IOR of At this time, strobe signal 1 in the timing chart of Figure 3.
8 and the strobe signal 19 are inverted.

メモリブロックB7はストローブ信号19の前縁でデー
タバス9に転送データ信号23を出力しメモリブロック
八6はストローブ信号18の後縁でデータバス9上にあ
る転送データ信号23をメモリに書込み1回のDMAサ
イクルが終了する。メモリブロックA6を転送元にする
場合はDMA制御LSI3はメモリからIloへ転送す
るようにプログラムし、メモリブロックB7を転送元に
する場合はDMA制御LSI3はI/Oからメモリへ転
送するようにプログラムすれば、ストローブ信号18と
ストローブ信号19の内容切替はDMA制御LSIが自
動的に行なってくれる。
Memory block B7 outputs the transfer data signal 23 to the data bus 9 at the leading edge of the strobe signal 19, and memory block B86 writes the transfer data signal 23 on the data bus 9 to the memory once at the trailing edge of the strobe signal 18. DMA cycle ends. When memory block A6 is the transfer source, DMA control LSI3 is programmed to transfer from memory to Ilo, and when memory block B7 is the transfer source, DMA control LSI3 is programmed to transfer from I/O to memory. Then, the DMA control LSI automatically switches the contents of the strobe signal 18 and strobe signal 19.

あらかじめDMA制御LSIにプログラムされたブロッ
ク転送数を終了するまではDMA要求信号11はアクテ
ィブのままのため、DMAサイクルは連続する。ブロッ
ク転送数を終了する最後のDMAサイクルでDMA制御
LSIはDMA応答信号14と共にブロック転送終了信
号20を出す。
Since the DMA request signal 11 remains active until the number of block transfers preprogrammed in the DMA control LSI is completed, the DMA cycle continues. In the last DMA cycle that ends the number of block transfers, the DMA control LSI issues a block transfer end signal 20 together with the DMA response signal 14.

メモリブロック転送制御回路2内のフリップフロップ2
1はDMA応答信号14とブロック転送終了信号20の
論理積によってリセットされ、DMA要求信号11をリ
セットし、メモリブロック転送を終了する。
Flip-flop 2 in memory block transfer control circuit 2
1 is reset by the AND of the DMA response signal 14 and block transfer end signal 20, resets the DMA request signal 11, and ends the memory block transfer.

本実施例によれば、メモリブロック間転送において転送
元メモリからの読出しと転送先メモリへの書込みを1回
のDMAサイクルで終了することができる。また本実施
例では、メモリIC選択信号切替回路5と同様の回路で
構成されるストローブ信号切替回路24を有し、メモリ
IC選択切替信号17をDMA応答信号14に接続しで
ある為、メモリブロック間転送中にメモリブロック転送
要求信号/OによるDMA要求信号11よりも優先順位
の高いDMA要求でメモリブロックB7と1/O間のデ
ータ転送が発生した場合には、メモリブロック転送要求
信号/OによるDMA要求信号11に対応したDMA応
答信号14は出力されず、これに接続しであるメモリI
C選択切替信号17も出力されないため、メモリからデ
ータを読出し又はメモリへデータを書込むためのMEM
R又はMEMRであるストローブ信号18はストローブ
信号切替、回路24を通ってメモリブロックB7に接続
される。このため前記のようにメモリブロック間転送中
にメモリブロック転送要求信号/OによるDMA要求信
号11よりも優先順位の高いDMA要求でメモリブロッ
クB7と1/O間のデータ転送が発生しても対応できる
According to this embodiment, reading from the source memory and writing to the destination memory can be completed in one DMA cycle in inter-memory block transfer. Furthermore, in this embodiment, the strobe signal switching circuit 24 is configured with a circuit similar to the memory IC selection signal switching circuit 5, and the memory IC selection switching signal 17 is connected to the DMA response signal 14. If data transfer between memory blocks B7 and 1/O occurs during data transfer between memory blocks B7 and 1/O by a DMA request with a higher priority than DMA request signal 11 by memory block transfer request signal /O, memory block transfer request signal /O The DMA response signal 14 corresponding to the DMA request signal 11 is not output, and the memory I connected to it is not output.
Since the C selection switching signal 17 is not output, the MEM for reading data from or writing data to the memory
Strobe signal 18, R or MEMR, is connected to memory block B7 through strobe signal switching circuit 24. Therefore, as mentioned above, even if a data transfer between memory blocks B7 and 1/O occurs due to a DMA request with a higher priority than the DMA request signal 11 caused by the memory block transfer request signal /O during transfer between memory blocks, it can be handled. can.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、DMA制御LSIによるメモリブロッ
ク間転送では、1つのデータの転送に2回のDMAサイ
クルを要していたが、1回のDMAサイクルに短縮でき
るので、メモリブロック間転送に要する時間が半減でき
、マイコンシステムのスループットを向上する効果があ
る。
According to the present invention, the transfer between memory blocks using a DMA control LSI requires two DMA cycles to transfer one data, but it can be shortened to one DMA cycle. This has the effect of cutting the time in half and improving the throughput of the microcomputer system.

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

第1図は本発明の一実施例のブロック図、第2図は本発
明の重要な部分であるメモリブロック転送制御回路とメ
モリIC選択信号切替回路図、第3図は本実施例のタイ
ミングチャートである。 1・・・MPU、2・・・メモリブロック転送制御回路
、3・・・DMA制御LSI、4・・・アドレスデコー
ダー、5・・・メモリIC選択信号切替回路、6・・・
メモリブロックA、7・・・メモリブロックB、8・・
・アドレス信号ス、9・・・データバス、/O・・・メ
モリブロック転送要求信号、11・・・DMA要求償号
、12・・・MPUホールド要求信号、13・・・MP
tJホールド応答信号、14・・・DMA応答信号、1
5・・・メモリブロックA選択信号、16・・・メモリ
ブロックB選択信号、17・・・メモリIC選択切替信
号、18・・・ストローブ信号、19・・・ストローブ
信号、20・・・ブロック転送終了信号、21・・・フ
リップフロップ、22・・・アドレス信号、23・・・
転送データ信号、24・・・ストローブ信号切替回路。
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a diagram of a memory block transfer control circuit and memory IC selection signal switching circuit, which are important parts of the present invention, and FIG. 3 is a timing chart of this embodiment. It is. DESCRIPTION OF SYMBOLS 1...MPU, 2...Memory block transfer control circuit, 3...DMA control LSI, 4...Address decoder, 5...Memory IC selection signal switching circuit, 6...
Memory block A, 7...Memory block B, 8...
・Address signal, 9...Data bus, /O...Memory block transfer request signal, 11...DMA request code, 12...MPU hold request signal, 13...MP
tJ hold response signal, 14...DMA response signal, 1
5...Memory block A selection signal, 16...Memory block B selection signal, 17...Memory IC selection switching signal, 18...Strobe signal, 19...Strobe signal, 20...Block transfer End signal, 21...Flip-flop, 22...Address signal, 23...
Transfer data signal, 24... Strobe signal switching circuit.

Claims (1)

【特許請求の範囲】[Claims] 1、別々のメモリICで構成されるメモリブロックを2
つ以上有し、メモリとI/O間のデータ転送の際にメモ
リにデータを書き込み為のストローブ信号出力と、メモ
リからデータを読み出す為のストローブ信号出力と、I
/Oからデータを読み出す為のストローブ信号出力と、
I/Oにデータを書き込む為のストローブ信号と、あら
かじめ設定された数のデータ転送が終了したことを知ら
せる信号出力を持つている既存のDMA制御LSIを有
するマイコンシステムにおいて、メモリブロック間転送
を行なう際、転送元アドレスと転送先アドレスを同一に
する機能を有することを特徴とするメモリブロック間高
速転送方式。
1. 2 memory blocks composed of separate memory ICs
A strobe signal output for writing data to the memory during data transfer between the memory and the I/O, a strobe signal output for reading data from the memory, and an I/O
strobe signal output for reading data from /O,
Transfer between memory blocks in a microcomputer system that has an existing DMA control LSI that has a strobe signal for writing data to I/O and a signal output to notify that a preset number of data transfers have been completed. A high-speed transfer method between memory blocks characterized by having a function of making a transfer source address and a transfer destination address the same.
JP24528586A 1986-10-17 1986-10-17 High-speed transferring system between memory blocks Pending JPS63100553A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24528586A JPS63100553A (en) 1986-10-17 1986-10-17 High-speed transferring system between memory blocks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24528586A JPS63100553A (en) 1986-10-17 1986-10-17 High-speed transferring system between memory blocks

Publications (1)

Publication Number Publication Date
JPS63100553A true JPS63100553A (en) 1988-05-02

Family

ID=17131390

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24528586A Pending JPS63100553A (en) 1986-10-17 1986-10-17 High-speed transferring system between memory blocks

Country Status (1)

Country Link
JP (1) JPS63100553A (en)

Similar Documents

Publication Publication Date Title
JPS6360430B2 (en)
KR960004457B1 (en) Data transfer device
JPS63100553A (en) High-speed transferring system between memory blocks
JPH01120661A (en) Memory control circuit
JPS62125458A (en) Data transfer control circuit
JPS61233860A (en) Data transfer system
JPS61150055A (en) Dma data transfer system
JPH0248916Y2 (en)
JP2000132451A (en) Memory control circuit
JPH0311448A (en) Direct memory access control system
JPH06290139A (en) Bank memory transfer system
JPH1031646A (en) Dma control system
JPS62276655A (en) Dma transfer system
JPH06149724A (en) Dma transfer device
JPS6383854A (en) Data transfer circuit
JPS6269347A (en) Direct memory access controller
JPS6325717A (en) Data transfer circuit
JPS63304357A (en) Microcomputer system
JPH01126754A (en) System for copying specified area in dma transferring time
JPH03158954A (en) Microcomputer system
JPH03189755A (en) Inter-memory transfer device
JPH02133854A (en) Dma controller capable of access to transfer enable/ unable memory
JPH0512183A (en) Data transfer system
JPH0769885B2 (en) Data transfer device
JPH06175980A (en) Data switching exchange