JPS6235951A - Inter-memory data transfer system - Google Patents

Inter-memory data transfer system

Info

Publication number
JPS6235951A
JPS6235951A JP17549685A JP17549685A JPS6235951A JP S6235951 A JPS6235951 A JP S6235951A JP 17549685 A JP17549685 A JP 17549685A JP 17549685 A JP17549685 A JP 17549685A JP S6235951 A JPS6235951 A JP S6235951A
Authority
JP
Japan
Prior art keywords
memory
signal
cpu
data
bus
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
JP17549685A
Other languages
Japanese (ja)
Inventor
Masato Soshi
正人 曽雌
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer 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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP17549685A priority Critical patent/JPS6235951A/en
Publication of JPS6235951A publication Critical patent/JPS6235951A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To transfer data between memories directly at a high speed by making an address counter operatable and counting up it with a clock signal while a CPU releases a bus. CONSTITUTION:Though a gate 6 is normally turned on, it is turned off by a transfer control signal C in the high-speed data transfer mode to disconnect a CPU 4 from a system address bus SAB. A gate 7 has a read gate and a write gate, and they are turned off together by the control signal C in the high-speed data transfer mode to disconnect the CPU 4 from a system data bus SDB. An address counter control part 5 has an address counter, and this counter is made unoperated normally; but in the high speed data transfer mode (the CPU released the bus SAB), the counter is made operatable and is counted up by every clock signal from a clock generating part 3 and the address as the output is outputted onto the bus SAB.

Description

【発明の詳細な説明】 [発明の技術分野] この発明はメモリ間のデータ転送方式に関する。[Detailed description of the invention] [Technical field of invention] The present invention relates to a data transfer method between memories.

[従来技術と問題点] 一般にCPUは、プログラム転送の場合、メモリからデ
ータを一度読み込んでから他のメモリにデータを書き込
むことによってデータを転送する。しかし、この転送方
式だとlO命令程度を実行しなければならないので非常
に時間がかかる(特に大量のデータの場合)。
[Prior Art and Problems] Generally, in the case of program transfer, a CPU transfers data by once reading data from a memory and then writing the data to another memory. However, with this transfer method, it is necessary to execute approximately 10 instructions, which takes a very long time (especially in the case of a large amount of data).

これを解決するために、DMA (直接メモリアクセス
)コントローラによる直接メモリアクセス方式が使用さ
れている。この方式は高速転送を可能とするものではあ
るが、DMAコントローラ自体が小型のCPUのような
論理を必要とするため、種々のデバイス(典型的には、
アドレスレジスタ、カウンタレジスタ、制御レジスタ、
状態レジスタ等々)を必要とし、構成が複雑であり、コ
ストも高い。
To solve this problem, a direct memory access method using a DMA (direct memory access) controller is used. Although this method enables high-speed transfer, the DMA controller itself requires logic such as a small CPU, so various devices (typically
address register, counter register, control register,
(status registers, etc.), the configuration is complex, and the cost is high.

[発明の目的] そこでこの発明はDMAコントローラを使用することな
く、簡単な構成でしかも高速で(DMAコントローラに
よる方式以にの高速)メモリ間の大にデータ転送を行う
ことのできる転送方式を提供することを目的とするもの
である。
[Objective of the Invention] Therefore, the present invention provides a transfer method that can transfer large amounts of data between memories with a simple configuration and at high speed (faster than a method using a DMA controller) without using a DMA controller. The purpose is to

[発明の要点] この発明はデータ送信側メモリとデータ受信側メモリを
指定し、CPUがバス(システム・アドレスバス、シス
テム・データバス)を開放してl、)る間に、メモリア
ドレスカウンタをクロック発生器からの、lクロック信
号ごとに歩進させ(インクリメント/デクリメント)、
メモリアドレスカウンタがシステムアドレスバス−Fに
同一アドレスを出力している間にクロック信号を用いて
データ送信側メモリとデータ受信側メモリを夫々、デー
タ送信可能状態、データ受信可能状態に制御するように
したことを要旨とするものである。
[Summary of the Invention] This invention specifies the data sending side memory and the data receiving side memory, and while the CPU releases the bus (system address bus, system data bus), the memory address counter is increment/decrement every l clock signal from a clock generator;
While the memory address counter is outputting the same address to the system address bus -F, the clock signal is used to control the data sending side memory and the data receiving side memory to a data sending enabled state and a data receiving enabled state, respectively. This is a summary of what was done.

[実施例] 第1図はこの発明を用いた最小単位の実施例の全体構成
のブロック図である。図中1は第1のメモリであるRA
MIを、2は第2のメモリであるRAM2を表わす。3
はクロック発生部でその出力信号であるクロック信号は
CPU4に供給されるとともにアドレスカウンタ制御部
5にも供給される。
[Embodiment] FIG. 1 is a block diagram of the overall configuration of a minimum unit embodiment using the present invention. 1 in the figure is the first memory RA
MI and 2 represent RAM2, which is the second memory. 3
is a clock generator whose output signal, a clock signal, is supplied to the CPU 4 and also to the address counter controller 5.

両方向性システムデータバスΣπ1は種々のデバイス(
ここではCPU4、RAMI、RAM2)を相互結合し
ており、同様にシステムアドレスバスΣへ1は種々のデ
バイス(ここではCPU、RAM1.RAM2、アドレ
スカウンタ制御部5)を相互結合している。
The bidirectional system data bus Σπ1 connects various devices (
Here, CPU 4, RAMI, RAM 2) are mutually coupled, and similarly, various devices (here CPU, RAM 1, RAM 2, address counter control section 5) are interconnected to system address bus Σ.

ゲート6は通常は導通しているがこの実施例による高速
データ転送モード下では制御信号C(転送制御信号)に
より、オフ状態となり、CPU4をシステムアドレスバ
スΣへ1から切り離す。ゲート7は読出ゲートと書込ゲ
ートを有し、高速データ転送モード下では制御信号Cに
より両方ともオフ状態となり、CPU4をシステムデー
タバスΣ旦1から切り離す。CPU4の通常のプログラ
ム転送においては、CPU4のデータ読出命令に従って
ゲート7の読出ゲートが閉成してCPUにデータが取り
込まれ、データ書込命令に従って書込ゲートが閉成して
CPUよりデータが取り出されるようになっている。
Gate 6 is normally conductive, but in the high-speed data transfer mode according to this embodiment, it is turned off by control signal C (transfer control signal), disconnecting CPU 4 from system address bus Σ1. Gate 7 has a read gate and a write gate, both of which are turned off by control signal C under high-speed data transfer mode, disconnecting CPU 4 from system data bus ΣD1. In normal program transfer to the CPU 4, the read gate of gate 7 is closed according to a data read command from the CPU 4 and data is taken into the CPU, and the write gate is closed according to a data write command and data is taken out from the CPU. It is now possible to

アドレスカウンタ制御部5は、アドレスカウンタを有し
、このカウンタは通常は不動作状態に置かれているが、
高速データ転送モードでは(CPUがシステムアドレス
バスSABを開放している間)、動作可能状態に置かれ
、クロック発生部3からのクロック信号ごとに歩進され
、その出力であるアドレスをシステムアドレスバスジム
1上に出すよう、になっている。
The address counter control unit 5 has an address counter, and this counter is normally placed in an inactive state.
In the high-speed data transfer mode (while the CPU releases the system address bus SAB), it is placed in an operational state and is incremented by each clock signal from the clock generator 3, and the output address is transferred to the system address bus. It is set to be displayed on Gym 1.

8(i)は第1番目のメモリの制御変換部を表わすもの
で、図中では、第1メモリであるRAMI用としてメモ
リ制御変換部8(1)が、また第2メモリであるRAM
I用としてメモリ制御変換部8(2)が図示されている
。各メモリ制御変換部はCPU4よりコントロールバス
を介して送られてくる各種制御信号の状態に従って、関
連するメモリに必要な制御信号を供給するように構成さ
れている。
8(i) represents a control converter for the first memory, and in the figure, the memory control converter 8(1) is used for the RAMI which is the first memory, and the memory control converter 8(1) is used for the RAM which is the second memory.
A memory control converter 8(2) is shown for I. Each memory control converter is configured to supply necessary control signals to the associated memory according to the states of various control signals sent from the CPU 4 via the control bus.

説明の便宜上、実施例で使用する制御信号を以下に列挙
し、その意味を簡単に説明する。
For convenience of explanation, control signals used in the embodiment are listed below, and their meanings will be briefly explained.

C:データ転送制御信号。CPU4よりゲート6.7に
供給される信号で、データ転送モード中、ゲートをオフ
状態にしCPUをSAB、SDBから切り離す。
C: Data transfer control signal. A signal supplied from the CPU 4 to the gate 6.7 turns off the gate during the data transfer mode and disconnects the CPU from SAB and SDB.

cs(i):第1番目のメモリ選択信号。例えばC3I
は第1メモリであるRAMIの選択信号。
cs(i): first memory selection signal. For example, C3I
is a selection signal for RAMI, which is the first memory.

CPUの通常のプログラム転送(通常モード)で使用さ
れる信号で、ロウレベル“L”でアクティブとなる(そ
の他の制御信号も同様である)。
This signal is used for normal program transfer (normal mode) of the CPU, and becomes active at low level "L" (the same applies to other control signals).

CPU4より第1番目メモリ制御変換部8(i)に供給
される。
The data is supplied from the CPU 4 to the first memory control converter 8(i).

RD:リード信号。CPUの通常モードで使用される。RD: Read signal. Used in normal CPU mode.

CPU4より各種のメモリ制御変換部に供給される。The data is supplied from the CPU 4 to various memory control converters.

WRニライト信号。以下HDと同様。WR Nilight signal. The following is the same as HD.

CLK:クロック発生部3の発生するクロック。CPU
4、アドレスカウンタ制御部5、メモリ制御変換部に供
給される。
CLK: Clock generated by the clock generator 3. CPU
4, is supplied to the address counter control section 5 and the memory control conversion section.

DMARQ:直接メモリアクセス(高速データ転送)要
求信号。CPU4よりアドレスカウンタ制御部5に供給
される。
DMARQ: Direct memory access (high speed data transfer) request signal. It is supplied from the CPU 4 to the address counter control section 5.

BUSRQ:バス開放要求信号。DMARQに応答して
アドレスカウンタ制御部5がCPU4に供給する信号。
BUSRQ: Bus release request signal. A signal supplied by the address counter control unit 5 to the CPU 4 in response to DMARQ.

BUSAK :バス開放信号。バスSAB、斗旦下を開
放した場合にCPUがアドレスカウンタ制御部5及び全
てのメモリ制御部に供給する信号。
BUSAK: Bus release signal. A signal that the CPU supplies to the address counter control unit 5 and all memory control units when the bus SAB and the bottom are released.

RDS (i):CPUより1番目のメモリ制御変換部
に供給されるリード選択信号。高速データ転送モードで
使用される。
RDS (i): Read selection signal supplied from the CPU to the first memory control converter. Used in high speed data transfer mode.

WR3(i):CPUより1番目のメモリ制御変換部に
供給されるライト選択信号。以下RDS  (i)と同
様。
WR3(i): Write selection signal supplied from the CPU to the first memory control converter. The following is the same as RDS (i).

MRD (i):第1番目のメモリの読出信号。関連す
るメモリ制御変換部より供給される。
MRD (i): First memory read signal. Supplied by the associated memory control converter.

MWR(i):第1番目のメモリ書込み信号。以下はM
RD(i)と同様。
MWR(i): first memory write signal. The following is M
Same as RD(i).

Mcs  (i):第1番目のメモリのチップ選択信号
。以下はMRD(i)と同様。
Mcs (i): Chip selection signal of the first memory. The following is the same as MRD(i).

メモリ制御変換部8(i)は下記の表にしめずような論
理を有するものである。
The memory control converter 8(i) has logic as shown in the table below.

表 例えば、1番目のメモリ即ちRAM1のメモリ書込信号
MRDIは、通常モードでは、リード信号RDにより制
御され(MRD 1=RD)、高速データ転送モードで
は、RDSI信号が°′L″のと・きCLKにより制御
され(MRDl=CLK)、そうでない場合は°゛H′
となる。以下省略。
For example, in the normal mode, the memory write signal MRDI of the first memory, RAM1, is controlled by the read signal RD (MRD 1=RD), and in the high-speed data transfer mode, the RDSI signal is 'L''. (MRDl=CLK), otherwise °゛H'
becomes. The following is omitted.

第2図は」1記の論理を実現したメモリ制御変換部の構
成例を示している。そのゲー18−1〜8−14の構成
は図示から明らかであるので説明を簡単にとどめる。こ
の例ではBUSAK信号を高速データ転送実行モード中
であることを示す信号として用いている。BUSAK線
」二に設けたインバータ8−2はデータ転送中における
RD倍信号WR倍信号通常モードで使用する信号)をゲ
ート8−1と8−6で禁止するよう作用し1通常モード
ではゲート8−1と8−6をイネーブルして1いる。そ
の他、BUSAK信号により各種ゲートが選択的にイネ
ーブル/ディスイネーブルされる) 21.” l −
flハス しかし、このようなイネーブル/ディスイネーブル手段
はメモリ制御変換部側に設ける必然性はなく、CPU側
のハードウェアおよび/またはプログラムにより実現す
ることが可能である。例えば、RD、WR倍信号高速デ
ータ転送実行中は“H”に固定されるようにし、RDS
(i)、WR3(i)信号は通常モードではH11に固
定されるようにCPU側で設定した場合は、第2図に示
すものより簡単な構成で実現できる。その−例を第5図
に示す。この例の場合、高速データ転送モードでのMC
3(i)は、WR3(i)又はWR3(i)がL”の場
合に(CLKではなく)“L”となる(MCS  (i
)=WRS  (i)ハRDS(i)、したがって、W
σ丁ズ刀=WR丁]刀URD S  (i))。
FIG. 2 shows an example of the configuration of a memory control converter that implements the logic described in item 1. Since the configurations of the games 18-1 to 8-14 are obvious from the illustration, the explanation will be kept brief. In this example, the BUSAK signal is used as a signal indicating that the high-speed data transfer execution mode is in progress. The inverter 8-2 provided on the BUSAK line 2 acts to inhibit the RD double signal WR double signal (signal used in normal mode) during data transfer at gates 8-1 and 8-6. -1 and 8-6 are enabled. In addition, various gates are selectively enabled/disabled by the BUSAK signal) 21. ”l-
However, such an enable/disable means is not necessarily provided on the memory control converter side, but can be realized by hardware and/or a program on the CPU side. For example, the RD and WR double signals are fixed to "H" during high-speed data transfer, and the RDS
(i), WR3 (i) If the CPU side sets the signal to be fixed at H11 in the normal mode, it can be realized with a simpler configuration than that shown in FIG. An example thereof is shown in FIG. In this example, the MC in high-speed data transfer mode
3(i) becomes “L” (not CLK) when WR3(i) or WR3(i) is “L” (MCS (i
)=WRS (i) RDS(i), therefore W
σ Ding's sword = WR Ding] sword URD S (i)).

次に、第1図、第2図に示した装置による高速データ転
送の動作について第3図と第4図を参照して説明する。
Next, the operation of high-speed data transfer by the apparatus shown in FIGS. 1 and 2 will be explained with reference to FIGS. 3 and 4.

説明の便宜上、第2のメモリであるR・AM2より第1
のメモリであるRAMIにデータを転送する場合につい
て述べる。
For convenience of explanation, the first memory is
A case will be described in which data is transferred to RAMI, which is the memory of the computer.

まず、RAM2を読出側メモリ(データ送信側メモリ)
として選択する(ステップ101)これによりRDS2
信号が“L”に固定されRAM2に供給される(第2図
参照)。なおWRS2信号は“H”のままである。また
RAMIを書込側メモリ(データ受信側メモリ)として
選択する(ステップ102)。これによりWRDI信号
が“L”に固定される(なおRDSl=“H”)。次に
CPU4はDMAを要求する(ステップ103)。これ
により、DMARQ信号(高速データ転送要求信号)が
アドレスカウンタ制御部5に送ら□れる。これを受けて
アドレスカウンタ制御部5はBUSRQ ()くス要求
信号)をCPU側へ送り直す。そこでCPUはステップ
104でバス要求の有無をチェックし、無い場合にはエ
ラー105として処理する。バス要求有りの場合、CP
Uはバス切離しのための命令を実行する(ステップ10
6)。
First, use RAM2 as the reading side memory (data sending side memory).
(step 101) This allows RDS2
The signal is fixed at "L" and is supplied to the RAM 2 (see FIG. 2). Note that the WRS2 signal remains at "H". RAMI is also selected as the writing side memory (data receiving side memory) (step 102). As a result, the WRDI signal is fixed at "L"(RDSl="H"). Next, CPU 4 requests DMA (step 103). As a result, a DMARQ signal (high-speed data transfer request signal) is sent to the address counter control section 5. In response to this, the address counter control unit 5 resends BUSRQ ( ) request signal) to the CPU side. Therefore, the CPU checks in step 104 whether or not there is a bus request, and if there is no bus request, it processes as an error 105. If there is a bus request, CP
U executes the command for bus disconnection (step 10
6).

これにより、輸送制御信号Cが発生してゲート6とゲー
ト7をオフにし、CPUはシステムアトl レスバスSAB、システムデータバスSDBから切離さ
れる。次にCPUはBUSAK (バス開放信号)を出
力する(ステップ107)。
As a result, a transport control signal C is generated to turn off gates 6 and 7, and the CPU is separated from the system address bus SAB and system data bus SDB. Next, the CPU outputs BUSAK (bus release signal) (step 107).

この信号BUSAKの供給により、アドレスカウンタ制
御部5のアドレスカウンタはイネーブルされ、クロック
発生部3からのlクロック信号(立下り)ごとにカウン
トアツプされ、そのカウント出力であるアドレスをシス
テムアドレスバスΣへ1上に出力する。一方、BUSA
K信号は各メモリ制御変換部にも供給され、第2メモリ
(RAM2)用の制御変換部8(2)においては、RD
S2信号“L”ゲート8−3を通りゲート8−4をイネ
ーブルする。このためクロック発生部からのクロック信
号がこのゲート8−4を通り、さらにゲート8−5を通
ってメモリリード信号MRD2としてRAM2に供給さ
れ、同様にチップ選択信号MC3もクロック信号で制御
されてRAM2のチップをイネーブルし、RAM2はデ
ータ送信可能状態(データ読出状態)に制御される。ま
た第1メモリ(RAMI)用の制御変換部8(1)にお
いては、WR3I信号“L”がゲート8−7を通りゲー
ト8−8をイネーブルする。
By supplying this signal BUSAK, the address counter of the address counter control unit 5 is enabled, counts up every l clock signal (falling edge) from the clock generator 3, and sends the address, which is the count output, to the system address bus Σ. Output on 1. On the other hand, BUSA
The K signal is also supplied to each memory control converter, and in the control converter 8(2) for the second memory (RAM2), the RD
S2 signal "L" passes through gate 8-3 and enables gate 8-4. Therefore, the clock signal from the clock generator passes through this gate 8-4 and further passes through the gate 8-5 and is supplied to the RAM2 as a memory read signal MRD2. Similarly, the chip selection signal MC3 is also controlled by the clock signal and is sent to the RAM2. chip is enabled, and the RAM 2 is controlled to be in a data transmittable state (data read state). Further, in the control conversion unit 8(1) for the first memory (RAMI), the WR3I signal "L" passes through the gate 8-7 and enables the gate 8-8.

このためクロック信号がこのゲート8−8を通り、さら
にゲート8−9を通ってメモリライト信号MWRIとし
てRAMIに供給される。さらにこのクロック信号はゲ
ート8−10.8−13.8−14を通ってメモリ選択
信号MC5IとなりRAMIをチップイネーブルする。
Therefore, the clock signal passes through this gate 8-8 and further passes through gate 8-9 and is supplied to RAMI as a memory write signal MWRI. Furthermore, this clock signal passes through gates 8-10.8-13.8-14 and becomes a memory selection signal MC5I, which chip-enables RAMI.

この結果、RAMIはデータ受信可能状態(データ書込
状態)に制御される。
As a result, RAMI is controlled to be in a data receivable state (data write state).

このようにして、クロック発生部からのクロック信号ご
とにアドレスカウンタがインクリメントされ、同アドレ
スカウンタが同一アドレスを保持している間に、データ
送信側のメモリであるRAM2がデータ送信可能状態に
、またデータ受信側メモリであるRAMIがデータ受信
可能状態となるため、上記のアドレスで指定XれるRA
M2内の記憶場所よりデータが出力され、同じアドレス
で指定されるRAMI内の記憶場所に直接転送される(
第4図参照)、1メモリ語(8ビット単位のメモリであ
れば1バイト)の転送が1クロツクごとに行なわれるた
め、最高速度でデータ転送がなされる。この状態をステ
ップ108で示す。
In this way, the address counter is incremented for each clock signal from the clock generator, and while the address counter holds the same address, RAM2, which is the memory on the data transmitting side, becomes ready for data transmission. Since RAMI, which is the data receiving side memory, is ready to receive data, the RA specified by the above address
Data is output from the memory location in M2 and transferred directly to the memory location in RAMI specified by the same address (
(see FIG. 4), one memory word (one byte in the case of an 8-bit memory) is transferred every clock, so data is transferred at the highest speed. This state is indicated by step 108.

なお第4図では図面を簡略化するため、2個分のデータ
転送しか示していないが、実際はアドレスカウンタ制御
部のアドレスカウンタがリセットされるまでデータ転送
は続けられる。
Although FIG. 4 only shows two data transfers in order to simplify the drawing, in reality, data transfer continues until the address counter of the address counter control section is reset.

さて、アドレスカウンタがリセットされると(データ転
送完了)、アドレスカウンタ制御部はBUSRQ信号を
解除する(ステップ109)これを受けてCPUはBU
SAK (バス開放信号)を解除しくステップtio)
、データ転送信号Cを取り下げてゲート6.7のオフ状
態を解除し、CPUとバス1八1、S08間の接続を回
復させる(ステップ111)。さらにCPUはMDAR
Q (データ直接転送要求)信号を取り下げ(ステップ
112)、RDS2とWRSIを解除(“H”に戻す)
する(ステップ113)。こうして通常動作に復帰する
Now, when the address counter is reset (data transfer completed), the address counter control section releases the BUSRQ signal (step 109).
Step tio) to release SAK (bus release signal)
, the data transfer signal C is withdrawn to release the off state of the gate 6.7, and the connection between the CPU and the bus 181 and S08 is restored (step 111). Furthermore, the CPU is MDAR
Cancel the Q (direct data transfer request) signal (step 112) and release RDS2 and WRSI (return to “H”)
(step 113). In this way, normal operation is restored.

第2図かられかるように、CPUの通常のプログラム転
送モードでは、メモリリード信号MRD(i)は、リー
ド信号RDにより制御され、メモリライト信号MWR(
i)はライト信号WRにより制御され、メモリ選択信号
MC5(i)は選択信号03(i)により制御される。
As can be seen from FIG. 2, in the normal program transfer mode of the CPU, the memory read signal MRD(i) is controlled by the read signal RD, and the memory write signal MWR(i) is controlled by the read signal RD.
i) is controlled by the write signal WR, and the memory selection signal MC5(i) is controlled by the selection signal 03(i).

RAMIよりRAM2への高速、直接データ転送を行な
う場合はRAM2よりRAMIへの転送の場合と逆のこ
とを行なえばよい。例えば、ステップ101でRDS2
ではなくRDSIを“L”にしてRAMIをデータ送信
側メモリとして指定する。ステップ102でWR5Iで
はなくWR32を“L 11にしてRAM2をデータ受
信側メモリとして指定する等々である。
When performing high-speed, direct data transfer from RAMI to RAM2, it is sufficient to perform the opposite procedure to the case of transfer from RAM2 to RAMI. For example, in step 101, RDS2
Instead, RDSI is set to "L" to designate RAMI as the data transmission side memory. In step 102, WR32 is set to "L11" instead of WR5I to designate RAM2 as the data receiving memory, and so on.

なお」1記の実施例では、第1メモリとしてRAMIを
第2メモリとしてRAM2を使用しているが、これに限
らず、例えば第1メモリとしてROMを使用してもよい
。ROMの場合、通常、メモリリード信号MRDとメモ
リライト信号MWRは不要である(使用しない)から、
第2図の構成のうちMRD(i)とMWR(+)を生成
するための回路はなくてもよい。
Note that in the embodiment described in section 1, RAMI is used as the first memory and RAM2 is used as the second memory, but the present invention is not limited to this, and for example, a ROM may be used as the first memory. In the case of ROM, the memory read signal MRD and memory write signal MWR are usually unnecessary (not used), so
In the configuration shown in FIG. 2, the circuit for generating MRD(i) and MWR(+) may not be provided.

また、直接データ転送すべきメモリとして、第3メモリ
、第4メモリ・・・と自由に追加することができる。す
なわち、追加メモリ用のメモリ制御変換部を追加し、そ
れに必要な制御信号をCPUより供給できるようにすれ
ばよい。
Furthermore, a third memory, a fourth memory, etc. can be freely added as memories to which data should be directly transferred. That is, it is sufficient to add a memory control converter for the additional memory and to enable the CPU to supply the necessary control signals thereto.

さらにアドレスカウンタ制御部5は種々の構成が可能で
あるが、最も簡単な構成の場合、事実上アドレスカウン
タのみで実現することができる。
Further, the address counter control section 5 can have various configurations, but the simplest configuration can be realized by practically using only an address counter.

例えば、DMARQ信号(またはこれと等価な制御信号
)をアドレスカウンタのリセット(またはプリセット)
信号として使用し、BUSRQ信号は除去し、BUSA
K信号(またはこれと等価な制御信号)をアドレスカウ
ンタのイネーブル信号として使用し、BUSAK信号が
出ている間、クロック発生部3からのクロック信号によ
りアドレスカウンタがカウントアツプするようにし、ア
ドレスカウンタのキャリ出力をCPU側に供給すること
によってBUSAK信号が取り下げられるようにすれば
よい。
For example, use the DMARQ signal (or equivalent control signal) to reset (or preset) the address counter.
signal, remove the BUSRQ signal, and use the BUSA
The K signal (or an equivalent control signal) is used as an enable signal for the address counter, and while the BUSAK signal is output, the address counter is incremented by the clock signal from the clock generator 3, and the address counter is incremented by the clock signal from the clock generator 3. The BUSAK signal may be canceled by supplying a carry output to the CPU side.

またCPUよりメモリ制御変換部に供給するための制御
信号についても種々の変更が可能である。図示実施例で
は、リードセレクト信号RDS(j)とライトセレクト
信号WR5(i)を用いることによって、高速データ転
送モードで使用するメモリ選択と、使用メモリのライト
の指定(あるいはリードの指定)を同時に行っている。
Furthermore, various changes can be made to the control signals supplied from the CPU to the memory control converter. In the illustrated embodiment, by using the read select signal RDS(j) and the write select signal WR5(i), it is possible to simultaneously select the memory to be used in the high-speed data transfer mode and specify the write (or read) of the memory to be used. Is going.

つまりひとつの信号でデータ受信側のメモリの指定を行
い、もうひとつの信号でデータ送信側のメモリの指定を
行っているわけであるが、この発明はこれに限られず、
例えば直接データ転送で使用するメモリを選択する信号
と、使用するメモリがリード側であることを指定する信
号を、使用するメモリがライト側であることを指定する
信号を用いて(つまり、リードセレクト信号をリード信
号とセレクト信号に分け、ライトセレクト信号をライト
信号とセレクト信号に分けてCPUから出力させる)デ
ータ送信側メモリ、あるいはデータ受信側メモリの指定
を行うようにしてもよい。このために必要なCPUおよ
びプログラム上の変更、並びにメモリ制御部側の変更は
当業者にとって自明な範囲内で可能である。
In other words, one signal specifies the memory on the data receiving side, and another signal specifies the memory on the data transmitting side, but the present invention is not limited to this.
For example, by using a signal to select the memory to be used in direct data transfer and a signal to specify that the memory to be used is on the read side, a signal to specify that the memory to be used is on the write side (in other words, read select The data transmitting side memory or the data receiving side memory may be specified (the signal is divided into a read signal and a select signal, and the write select signal is divided into a write signal and a select signal and output from the CPU). Changes to the CPU and program necessary for this purpose, as well as changes to the memory control section, can be made within the range obvious to those skilled in the art.

更に実施例では、RAM1.RAM2として。Furthermore, in the embodiment, RAM1. As RAM2.

リード信号とライト信号を別個の信号として使用するタ
イプのメモリ(リード入力端子とライト入力端子が別に
なっているメモリ)を用いているが、ひとつの読出/書
込入力端子(通常ηVと標記され、′H″で読出、“L
”で書込となる)を[発明の効果] 以上の説明から明らかなように、この発明では、CPU
がバスΣAB、SDRを開放している間、アドレスカウ
ンタを動作可能にしてクロック信号により歩進させられ
るようにし、そのカウント出力、即ちアドレスをシステ
ムアドレスバス上に出力させている。そして、システム
アドレスバス上に同一アドレスが保持されている間、デ
ータ送信メモリとデータ受信メモリを、クロック信号を
用いて夫々データ送信状態、データ受信状態に制御して
いる。したがって、クロック発生器の出力するlクロッ
クごとに1メモリ語のメモリ間転送が行なわれる。つま
り、最高の速度でメモリ間の大量のデータ転送を可能と
しているもの〒ある。しかも従来のDMAコントローラ
のようなものは一切使用することなく、簡単な構成で高
速データ転送を可能としており、その効果は大である。
A type of memory that uses the read signal and write signal as separate signals (memory with separate read input terminal and write input terminal) is used, but only one read/write input terminal (usually marked ηV) is used. , ``H'', ``L''
[Effect of the invention] As is clear from the above explanation, in this invention, the CPU
While the bus ΣAB and SDR are released, the address counter is enabled so that it can be incremented by the clock signal, and its count output, that is, the address, is outputted onto the system address bus. Then, while the same address is held on the system address bus, the data transmission memory and the data reception memory are controlled to the data transmission state and data reception state, respectively, using the clock signal. Therefore, one memory word is transferred between memories every l clocks output by the clock generator. In other words, there are devices that allow large amounts of data to be transferred between memories at the highest speeds. Moreover, it does not use anything like a conventional DMA controller and enables high-speed data transfer with a simple configuration, which is highly effective.

特に、ROM+RAM、RAMMRAM、RAMカード
eRAM間でデータを写しかえる場合に適している。
It is particularly suitable for transferring data between ROM+RAM, RAM MRAM, and RAM card eRAM.

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

第1図はこの発明を用いた最小単位の実施例の構成ブロ
ック図、第2図は第1図のメモリ制御変換部の構成例を
示す回路図、第3図はRAM2よりRAMIへ高速デー
タ転送を行うためのフローチャート、第4図はRAM2
よりRAMIへの高速データ転送のタイミングチャート
、第5図は第1図のメモリ制御変換部の第2構成例を示
す回路図である。 l、?・・・・・・RAM、3・・・・・・クロック発
生部、4・・・・・・CPU、5・・・・・・アドレス
カウンタ制御部、SAB・・・・・・システムアドレス
バス、SDB・・・・・・システムデータバス、8(1
)、8(2)・・・・・・メモリ制御変換部、6.7・
・団・ゲート部。 第2図
Figure 1 is a configuration block diagram of a minimum unit embodiment using this invention, Figure 2 is a circuit diagram showing an example configuration of the memory control converter shown in Figure 1, and Figure 3 is high-speed data transfer from RAM2 to RAMI. Flowchart for performing this, Figure 4 shows RAM2
FIG. 5 is a circuit diagram showing a second configuration example of the memory control converter shown in FIG. 1. l,? ...RAM, 3 ... Clock generation section, 4 ... CPU, 5 ... Address counter control section, SAB ... System address bus , SDB...System data bus, 8 (1
), 8(2)...Memory control conversion unit, 6.7.
・Gate Club. Figure 2

Claims (1)

【特許請求の範囲】 データ送信側メモリとデータ受信側メモリを指定する手
段と、 メモリアドレスカウンタと、 クロック発生器と、 CPUをシステムアドレスバス、システムデータバスか
ら切り離す切断手段と、 CPUが上記切断手段により上記バスから切り離されて
いる条件下で、メモリアドレスカウンタを上記クロック
発生器からの1クロック信号ごとに歩進させる手段と、 上記条件下においてメモリアドレスカウンタが同一アド
レス保持している間に、上記クロック発生器からのクロ
ック信号を用いて、データ送信側メモリとデータ受信側
メモリを夫々、データ送信状態、データ受信状態に制御
する手段と、から成るメモリ間のデータ転送方式。
[Scope of Claims] Means for specifying a data sending side memory and a data receiving side memory; a memory address counter; a clock generator; a disconnecting means for disconnecting a CPU from a system address bus and a system data bus; means for incrementing the memory address counter for each clock signal from the clock generator under the condition that the memory address counter is disconnected from the bus by means; and while the memory address counter holds the same address under the condition; and means for controlling a data transmitting side memory and a data receiving side memory to a data transmitting state and a data receiving state, respectively, using a clock signal from the clock generator.
JP17549685A 1985-08-09 1985-08-09 Inter-memory data transfer system Pending JPS6235951A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17549685A JPS6235951A (en) 1985-08-09 1985-08-09 Inter-memory data transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17549685A JPS6235951A (en) 1985-08-09 1985-08-09 Inter-memory data transfer system

Publications (1)

Publication Number Publication Date
JPS6235951A true JPS6235951A (en) 1987-02-16

Family

ID=15997055

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17549685A Pending JPS6235951A (en) 1985-08-09 1985-08-09 Inter-memory data transfer system

Country Status (1)

Country Link
JP (1) JPS6235951A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07281917A (en) * 1994-04-13 1995-10-27 Nec Corp Cpu switchin circuit

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5441631A (en) * 1977-09-09 1979-04-03 Casio Comput Co Ltd Fixed program set system for control
JPS60120457A (en) * 1983-12-05 1985-06-27 Toshiba Corp Controller of direct memory access

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5441631A (en) * 1977-09-09 1979-04-03 Casio Comput Co Ltd Fixed program set system for control
JPS60120457A (en) * 1983-12-05 1985-06-27 Toshiba Corp Controller of direct memory access

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07281917A (en) * 1994-04-13 1995-10-27 Nec Corp Cpu switchin circuit

Similar Documents

Publication Publication Date Title
US4096572A (en) Computer system with a memory access arbitrator
US4099236A (en) Slave microprocessor for operation with a master microprocessor and a direct memory access controller
KR100726361B1 (en) System and method for communicating with memory devices
JPS6126103B2 (en)
KR100268655B1 (en) Multiple bus architecture
US5799161A (en) Method and apparatus for concurrent data routing
JPS63175962A (en) Direct memory access controller
US4539656A (en) Memory access selection circuit
JPS6235951A (en) Inter-memory data transfer system
US6647450B1 (en) Multiprocessor computer systems with command FIFO buffer at each target device
US4180855A (en) Direct memory access expander unit for use with a microprocessor
JPS602710B2 (en) Composite computer system
EP0321775B1 (en) Secure data processing system using commodity devices
JPS61165170A (en) Bus controlling system
JPS5878251A (en) Data transfer system
JP3483312B2 (en) Bus arbitration equipment
JPS6235950A (en) Inter-memory data transfer system
JP2000285090A (en) Data processing method and system
JP2752834B2 (en) Data transfer device
JPS63279359A (en) Data transfer device for multi-cpu
JPS6214866B2 (en)
JPH03219359A (en) Interface circuit
JPH0756860A (en) Multi-cpu system
JPS59180718A (en) System for controlling data transfer
JPS62187956A (en) Dma control system