JP2000259492A - Data transfer system - Google Patents
Data transfer systemInfo
- Publication number
- JP2000259492A JP2000259492A JP11063999A JP6399999A JP2000259492A JP 2000259492 A JP2000259492 A JP 2000259492A JP 11063999 A JP11063999 A JP 11063999A JP 6399999 A JP6399999 A JP 6399999A JP 2000259492 A JP2000259492 A JP 2000259492A
- Authority
- JP
- Japan
- Prior art keywords
- address
- memory
- data transfer
- control signal
- 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
Links
- 230000015654 memory Effects 0.000 claims abstract description 142
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 claims abstract description 17
- 230000006870 function Effects 0.000 claims description 8
- 230000004044 response Effects 0.000 claims description 2
- 230000002401 inhibitory effect Effects 0.000 claims 2
- 238000010586 diagram Methods 0.000 description 7
- 238000011094 buffer selection Methods 0.000 description 1
Landscapes
- Memory System (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】この発明は、メモリ間のデー
タ転送速度を改善したデータ転送システムに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transfer system with improved data transfer speed between memories.
【0002】[0002]
【従来の技術】メモリ間でデータ転送を行う従来のデー
タ転送システムの一構成を図6に示す。図6において、
このデータ転送システムは、MCU100に含まれてデ
ータ転送の制御中枢となるCPU101(又はDMA)
とMCU100の内部メモリ102ならびにMCU10
0の外部に設けられた外部メモリ103が、アドレスバ
ス104及びデータバス105に並列に接続され、CP
U101からアクセス制御信号となる読み出し信号(R
D)と書き込み信号(WR)が内部メモリ102ならび
に外部メモリ103に与えられて構成される。2. Description of the Related Art FIG. 6 shows a configuration of a conventional data transfer system for transferring data between memories. In FIG.
This data transfer system includes a CPU 101 (or DMA) included in the MCU 100 and serving as a control center of data transfer.
And the internal memory 102 of the MCU 100 and the MCU 10
0 is connected to the address bus 104 and the data bus 105 in parallel,
The read signal (R
D) and a write signal (WR) are provided to the internal memory 102 and the external memory 103.
【0003】このような構成において、内部メモリ10
2と外部メモリ103間でデータ転送を行う場合には、
まず第1回目のバスサイクルにおいて、アドレスバス1
04を介してCPU101から転送元の内部メモリ10
2又は外部メモリ103に読み出しアドレスが与えら
れ、かつCPU101から転送元のメモリに読み出し信
号が与えられ、これにより転送元のメモリからデータが
データバス105に読み出される。次に第2回目のバス
サイクルにおいて、アドレスバス104を介してCPU
101から転送先の外部メモリ103又は内部メモリ1
02に書き込みアドレスが与えられ、かつCPU101
から転送先のメモリに書き込み信号が与えられ、これに
より転送先のメモリにデータバス105に読み出された
データが書き込まれ、内部メモリ102と外部メモリ1
03間でデータ転送が行われていた。In such a configuration, the internal memory 10
When performing data transfer between the external memory 103 and the external memory 103,
First, in the first bus cycle, the address bus 1
04 from the CPU 101 via the transfer source internal memory 10
2 or the external memory 103, and a read signal is provided from the CPU 101 to the transfer source memory, whereby data is read from the transfer source memory to the data bus 105. Next, in the second bus cycle, the CPU
101 to the external memory 103 or the internal memory 1 of the transfer destination
02 is given a write address and the CPU 101
Supplies a write signal to the transfer destination memory, whereby the read data is written to the data bus 105 in the transfer destination memory, and the internal memory 102 and the external memory 1
Data transfer was performed between 03.
【0004】このように従来のメモリ間でのデータ転送
においては、1つのデータ転送に2回のバスサイクルが
必要になっていた。このため、多くのデータを転送する
場合には極めて多くの転送時間を必要としていた。As described above, in the conventional data transfer between memories, one data transfer requires two bus cycles. Therefore, when transferring a large amount of data, an extremely long transfer time is required.
【0005】[0005]
【発明が解決しようとする課題】以上説明したように、
メモリ間における従来のデータ転送システムにおいて
は、1つのデータを転送する際にデータの読み出しを行
うバスサイクルとデータを書き込むバスサイクルの2回
のバスサイクルが必要であった。このため、メモリ間で
の単純なデータ転送にもかかわらず、データ転送に時間
がかかり、膨大なデータを転送するような場合には多大
な転送時間が必要になり、さらにデータ転送を伴う様々
な処理に時間がかかっていた。これにより、システム全
体のパフォーマンスが低下するといった不具合を招いて
いた。As described above,
In a conventional data transfer system between memories, when transferring one data, two bus cycles, a bus cycle for reading data and a bus cycle for writing data, are required. Therefore, in spite of simple data transfer between memories, data transfer takes a long time, and when transferring a huge amount of data, a large transfer time is required. Processing took time. This has led to a problem that the performance of the entire system is reduced.
【0006】そこで、この発明は、上記に鑑みてなされ
たものであり、その目的とするところは、メモリ間での
データ転送における転送時間の短縮化を達成し得るデー
タ転送システムを提供することにある。Accordingly, the present invention has been made in view of the above, and it is an object of the present invention to provide a data transfer system capable of achieving a reduction in transfer time in data transfer between memories. is there.
【0007】[0007]
【課題を解決するための手段】上記目的を達成するため
に、課題を解決する第1の手段は、データ転送を制御す
る機能を備えた制御ユニットならびに第1のメモリと第
2のメモリがデータバス及び第1のアドレスバスに並列
に接続され、前記制御ユニットの制御の下に前記データ
バスを介して前記第1のメモリと前記第2のメモリとの
間でデータ転送が行われるデータ転送システムにおい
て、前記制御ユニットは、データ転送時には同一のアク
セスサイクル内に前記第1のメモリをアクセスする第1
のアドレスならびに前記第2のメモリをアクセスする第
2のアドレスを生成し、前記第1のアドレスバスを介し
て前記第1のアドレスを前記第1のメモリに供給し、前
記制御ユニットで生成された前記第2のアドレスが専ら
転送される第2のアドレスバスと、前記制御ユニットか
ら前記第1のメモリに供給される第1のアクセス制御信
号の読み出し信号又は書き込み信号を受けて、データ転
送時には前記第1のメモリがアクセスされると同一のア
クセスサイクル内に第2のアクセス制御信号の書き込み
信号又は読み出し信号を生成して前記第2のメモリに供
給する制御信号生成回路と、前記第1のアドレスバスを
介して前記制御ユニットから与えられる第1のアドレス
と前記第2のアドレスバスを介して前記アドレス生成回
路から与えられる第2のアドレスを受けて、前記第1の
アドレス又は前記第2のアドレスを選択して前記第2の
メモリに入力するアドレス入力回路と、前記制御ユニッ
トから与えられる第1のアクセス制御信号を受けて、デ
ータ転送時には前記第1のアクセス制御信号の前記第2
のメモリへの入力を禁止する制御信号入力回路とを備
え、データ転送時には前記第2のメモリは前記第2のア
ドレスバスを介して与えられる第2のアドレスならびに
前記制御信号生成回路から与えられる第2のアクセス制
御信号にしたがってアクセスされてなることを特徴とす
る。In order to achieve the above-mentioned object, a first means for solving the problem is a control unit having a function of controlling data transfer, and a first memory and a second memory having a function of controlling data transfer. A data transfer system connected in parallel to a bus and a first address bus, wherein data is transferred between the first memory and the second memory via the data bus under the control of the control unit Wherein the control unit accesses the first memory within the same access cycle during data transfer.
And a second address for accessing the second memory, supplying the first address to the first memory via the first address bus, and generating the second address by the control unit. A second address bus to which the second address is exclusively transferred, and a read or write signal of a first access control signal supplied from the control unit to the first memory; A control signal generation circuit for generating a write signal or a read signal of a second access control signal within the same access cycle when the first memory is accessed and supplying the write signal or the read signal to the second memory; A first address provided from the control unit via a bus, and a first address provided from the address generation circuit via the second address bus. And an address input circuit for selecting the first address or the second address and inputting the selected address to the second memory, and receiving a first access control signal provided from the control unit. During data transfer, the second access control signal
And a control signal input circuit for prohibiting input to the memory of the second memory. In the data transfer, the second memory receives a second address supplied through the second address bus and a second signal supplied from the control signal generation circuit. 2 is accessed in accordance with the second access control signal.
【0008】第2の手段は、データ転送を制御する機能
を備えた制御ユニットならびに第1のメモリと第2のメ
モリがデータバス及び第1のアドレスバスに並列に接続
され、前記制御ユニットの制御の下に前記データバスを
介して前記第1のメモリと前記第2のメモリとの間でデ
ータ転送が行われるデータ転送システムにおいて、前記
第1のメモリがアクセスされると同一のアクセスサイク
ル内に、前記第2のメモリをアクセスする第2のアドレ
スを生成するアドレス生成回路と、前記アドレス生成回
路で生成された前記第2のアドレスが専ら転送される第
2のアドレスバスと、前記制御ユニットから前記第1の
メモリに供給される第1のアクセス制御信号の読み出し
信号又は書き込み信号を受けて、データ転送時には前記
第1のメモリがアクセスされると同一のアクセスサイク
ル内に第2のアクセス制御信号の書き込み信号又は読み
出し信号を生成して前記第2のメモリに供給する制御信
号生成回路と、前記第1のアドレスバスを介して前記制
御ユニットから与えられる第1のアドレスと前記第2の
アドレスバスを介して前記アドレス生成回路から与えら
れる第2のアドレスを受けて、前記第1のアドレス又は
前記第2のアドレスを選択して前記第2のメモリに入力
するアドレス入力回路と、前記制御ユニットから与えら
れる第1のアクセス制御信号を受けて、データ転送時に
は前記第1のアクセス制御信号の前記第2のメモリへの
入力を禁止する制御信号入力回路とを備え、データ転送
時には前記第2のメモリは前記第2のアドレスバスを介
して与えられる第2のアドレスならびに前記制御信号生
成回路から与えられる第2のアクセス制御信号にしたが
ってアクセスされてなることを特徴とする。The second means includes a control unit having a function of controlling data transfer, a first memory and a second memory connected in parallel to a data bus and a first address bus, and controlling the control unit. In a data transfer system in which data is transferred between the first memory and the second memory via the data bus under the same condition, the first memory is accessed within the same access cycle. An address generation circuit for generating a second address for accessing the second memory; a second address bus to which the second address generated by the address generation circuit is exclusively transferred; Upon receiving a read signal or a write signal of a first access control signal supplied to the first memory, the first memory is activated during data transfer. And a control signal generating circuit that generates a write signal or a read signal of a second access control signal and supplies the write signal or the read signal to the second memory in the same access cycle when the memory is accessed. Receiving a first address provided from a control unit and a second address provided from the address generation circuit via the second address bus, selecting the first address or the second address, In response to an address input circuit input to the second memory and a first access control signal provided from the control unit, input of the first access control signal to the second memory is inhibited during data transfer. And a control signal input circuit, wherein at the time of data transfer, the second memory is a second address provided through the second address bus. Characterized by comprising been accessed according to a second access control signal supplied from said control signal generating circuit.
【0009】第3の手段は、上記第2の手段において、
前記アドレス生成回路は、データ転送前に前記データバ
スを介して前記制御ユニットから与えられるオフセット
値を保持するレジスタと、前記レジスタに保持されたオ
フセット値と、前記制御ユニットから前記第1のアドレ
スバスを介して前記第1のメモリに与えられる第1のア
ドレスを加算して前記第2のアドレスを生成する加算器
とを有することを特徴とする。The third means is the second means,
The address generating circuit includes: a register for holding an offset value given from the control unit via the data bus before data transfer; an offset value held in the register; and a first address bus from the control unit. And an adder for adding the first address given to the first memory via the first memory to generate the second address.
【0010】第4の手段は、上記第1,2又は3の手段
において、前記第2のメモリは、前記制御ユニット、前
記第2のアドレスバス、前記制御信号生成回路、前記ア
ドレス入力回路ならびに前記制御信号入力回路を有する
ユニット、又は該ユニットに前記アドレス生成回路を備
えたユニットに含まれる内部メモリからなり、前記第1
のメモリは、前記ユニットの外部に設けられた外部メモ
リからなることを特徴とする。[0010] A fourth means is the first, second or third means, wherein the second memory comprises the control unit, the second address bus, the control signal generation circuit, the address input circuit, and the second memory. A unit having a control signal input circuit, or an internal memory included in a unit having the address generation circuit in the unit;
Is characterized by comprising an external memory provided outside the unit.
【0011】[0011]
【発明の実施の形態】以下、図面を用いてこの発明の実
施形態を説明する。Embodiments of the present invention will be described below with reference to the drawings.
【0012】図1は請求項2,3又は4記載の発明の一
実施形態に係るデータ転送システムの構成を示す図であ
る。FIG. 1 is a diagram showing a configuration of a data transfer system according to an embodiment of the present invention.
【0013】図1において、この実施形態のデータ転送
システムは、CPU1、アドレス生成回路2、制御信号
生成回路3、内部メモリ4、アドレス入力回路5、制御
信号入力回路6、第2のアドレスバス7を備えたMCU
8と、MCU8の外部に設けられた外部メモリ9がデー
タバス10ならびに第1のアドレスバス11に並列に接
続されて構成されている。In FIG. 1, a data transfer system according to this embodiment includes a CPU 1, an address generation circuit 2, a control signal generation circuit 3, an internal memory 4, an address input circuit 5, a control signal input circuit 6, and a second address bus 7. MCU with
An external memory 9 provided outside the MCU 8 is connected to the data bus 10 and the first address bus 11 in parallel.
【0014】CPU1は、内部メモリ4又は外部メモリ
9を個別にアクセスし、かつ両メモリ間のデータ転送を
制御する制御中枢となる制御ユニットとして機能する。
すなわちCPU1は、それぞれのメモリがアクセスされ
る際に必要となる、アドレス、データ、アクセス制御信
号となる読み出し信号又は書き込み信号の全て又は一部
を与える。また、CPU1は、内部メモリ3と外部メモ
リ9間でのデータ転送時には、データ転送有効信号を制
御信号生成回路3、アドレス入力回路5ならびに制御信
号入力回路6に与える。The CPU 1 individually accesses the internal memory 4 or the external memory 9 and functions as a control unit serving as a control center for controlling data transfer between the two memories.
That is, the CPU 1 supplies all or a part of a read signal or a write signal serving as an address, data, and an access control signal, which are necessary when each memory is accessed. Further, the CPU 1 supplies a data transfer valid signal to the control signal generation circuit 3, the address input circuit 5, and the control signal input circuit 6 when data is transferred between the internal memory 3 and the external memory 9.
【0015】アドレス生成回路2は、第1のアドレスバ
ス11を介してCPU1から外部メモリ9に与えられる
第1のアドレスを受けて、この第1のアドレスで外部メ
モリ9がアクセスされると同一のバスサイクル内に内部
メモリ4をアクセスする第2のアドレスを生成する。生
成された第2のアドレスは、この第2のアドレスを専ら
転送する第2のアドレスバス7を介してアドレス入力回
路5に与えられる。アドレス生成回路2は、例えば図2
に示すように、データバス10を介してCPU1から与
えられるオフセット値を受けて保持するレジスタ21
と、アドレスバス11を介してCPU1から与えられる
第1のアドレスとレジスタ21に保持されたオフセット
値を加算して内部メモリ4をアクセスする第2のアドレ
スを生成するADDER(加算器)22を備えて構成さ
れる。なお、CPU1から与えられるオフセット値は、
一連のデータ転送処理では一定とし、又はそれぞれのア
ドレス生成毎に変えるようにしてもよい。The address generation circuit 2 receives a first address given from the CPU 1 to the external memory 9 via the first address bus 11, and when the external memory 9 is accessed by the first address, the same address is generated. A second address for accessing the internal memory 4 is generated within a bus cycle. The generated second address is applied to the address input circuit 5 via the second address bus 7 which exclusively transfers the second address. The address generation circuit 2 is, for example, as shown in FIG.
As shown in FIG. 3, a register 21 receives and holds an offset value given from the CPU 1 through the data bus 10.
And an ADDER (adder) 22 for adding a first address given from the CPU 1 via the address bus 11 and an offset value held in the register 21 to generate a second address for accessing the internal memory 4. It is composed. Note that the offset value given from the CPU 1 is
In a series of data transfer processing, it may be fixed or may be changed for each address generation.
【0016】制御信号生成回路3は、CPU1から外部
メモリ9に与えられる第1のアクセス制御信号の読み出
し信号(RD1)又は書き込み信号(WR1)を受け
て、メモリ間のデータ転送時にCPU1からデータ転送
有効信号が与えられると(有効時)、外部メモリ9がア
クセスされると同一のバスサイクル内に第2のアクセス
制御信号の書き込み信号(WR2)又は読み出し信号
(RD2)を生成して内部メモリ4に与える。すなわ
ち、制御信号生成回路3は、外部メモリ9から内部メモ
リ4にデータを転送する場合は、外部メモリ9からデー
タを読み出す第1のアクセス制御信号の読み出し信号を
受けて第2のアクセス制御信号の書き込み信号を生成
し、一方内部メモリ4から外部メモリ9にデータを転送
する場合は、外部メモリ9にデータを書き込む第1のア
クセス制御信号の書き込み信号を受けて第2のアクセス
制御信号の読み出し信号を生成する。制御信号生成回路
3は、例えば図3に示すように、データ転送有効信号に
よりゲートされるANDゲート31、32を用いて構成
される。The control signal generating circuit 3 receives a read signal (RD1) or a write signal (WR1) of the first access control signal given from the CPU 1 to the external memory 9, and transfers data from the CPU 1 during data transfer between the memories. When a valid signal is given (when valid), when the external memory 9 is accessed, a write signal (WR2) or a read signal (RD2) of the second access control signal is generated within the same bus cycle to generate the internal memory 4 Give to. That is, when transferring data from the external memory 9 to the internal memory 4, the control signal generation circuit 3 receives a read signal of the first access control signal for reading data from the external memory 9 and receives the read signal of the second access control signal. When a write signal is generated and data is transferred from the internal memory 4 to the external memory 9, a write signal of a first access control signal for writing data to the external memory 9 is received and a read signal of a second access control signal is received. Generate The control signal generation circuit 3 is configured by using AND gates 31 and 32 that are gated by a data transfer valid signal, for example, as shown in FIG.
【0017】内部メモリ4は、アドレス入力回路5から
与えられるアドレス、データバス10を介して入出力さ
れるデータ、制御信号生成回路3又は制御信号入力回路
6から与えられるアクセス制御信号に基づいてアクセス
される。The internal memory 4 is accessed based on an address supplied from an address input circuit 5, data input / output via a data bus 10, and an access control signal supplied from a control signal generation circuit 3 or a control signal input circuit 6. Is done.
【0018】アドレス入力回路5は、第1のアドレスバ
ス11を介してCPU1から与えられる第1のアドレス
と第2のアドレスバス7を介してアドレス生成回路2か
ら与えられる第2のアドレスを受けて、データ転送有効
信号が有効時には第2のアドレスを選択し、データ転送
信号が無効時には第1のアドレスを選択する。選択され
た第1又は第2のアドレスは内部メモリ4に与えられ
る。アドレス入力回路5は、例えば図4に示すように、
データ転送有効信号に基づいて第1のアドレス、第2の
アドレスをバッファ選択制御するバッファゲート41、
42を備えて構成される。The address input circuit 5 receives a first address given from the CPU 1 via the first address bus 11 and a second address given from the address generating circuit 2 via the second address bus 7. When the data transfer valid signal is valid, the second address is selected, and when the data transfer signal is invalid, the first address is selected. The selected first or second address is provided to the internal memory 4. The address input circuit 5, for example, as shown in FIG.
A buffer gate 41 for controlling buffer selection of a first address and a second address based on a data transfer valid signal;
42.
【0019】制御信号入力回路6は、CPU1から与え
られる第1のアクセス制御信号を受けて、データ転送有
効信号が有効時には第1のアクセス制御信号の内部メモ
リ4への入力を禁止する。制御信号入力回路6は、例え
ば図5に示すように、データ転送有効信号を反転した信
号によりゲートされるANDゲート51、52を用いて
構成される。The control signal input circuit 6 receives the first access control signal from the CPU 1 and prohibits the input of the first access control signal to the internal memory 4 when the data transfer valid signal is valid. The control signal input circuit 6 is configured by using AND gates 51 and 52 which are gated by a signal obtained by inverting a data transfer valid signal, for example, as shown in FIG.
【0020】このような構成において、CPU1から第
1のアドレスバス11に与えられた第1のアドレス、な
らびに第1の制御信号により内部メモリ4又は外部メモ
リ9はそれぞれ個別にアクセスされる。In such a configuration, the internal memory 4 or the external memory 9 is individually accessed by the first address given from the CPU 1 to the first address bus 11 and the first control signal.
【0021】次に、内部メモリ4と外部メモリ9間でデ
ータ転送を行う場合、例えば外部メモリ9の1000番
地から内部メモリ4の100番地にデータを転送するよ
うな場合は、まず転送が開始される前にCPU1により
アドレス生成回路2のレジスタ21にオフセット値の
“F100”が書き込まれる。この後データ転送有効信
号がCPU1から出力されてデータ転送のバスサイクル
が開始されると、第1のアドレス(1000番地)がC
PU1から第1のアドレスバス11に与えられ、かつ第
1のアクセス制御信号の読み出し信号(RD1)が出力
される。このバスサイクルにおいて、第1のアドレスバ
ス11に与えられた第1のアドレスはアドレス生成回路
2のオフセット値と加算されて第2のアドレス(100
番地)が生成され、生成された第2のアドレスはアドレ
ス入力回路5で選択されて内部メモリ4に与えられる。
またこのバスサイクルにおいて、第2のアクセス制御信
号の書き込み信号が制御信号生成回路3で生成されて内
部メモリ4に与えられる。この時、第1のアクセス制御
信号の読み出し信号の内部メモリ4への入力は制御信号
入力回路6により禁止される。Next, when data is transferred between the internal memory 4 and the external memory 9, for example, when data is transferred from the address 1000 of the external memory 9 to the address 100 of the internal memory 4, the transfer is first started. Before the initialization, the CPU 1 writes the offset value “F100” into the register 21 of the address generation circuit 2. Thereafter, when the data transfer valid signal is output from the CPU 1 and the bus cycle of the data transfer is started, the first address (address 1000) becomes C
PU1 is applied to first address bus 11, and a read signal (RD1) of a first access control signal is output. In this bus cycle, the first address given to the first address bus 11 is added to the offset value of the address generation circuit 2 and the second address (100
Address) is generated, and the generated second address is selected by the address input circuit 5 and supplied to the internal memory 4.
In this bus cycle, a write signal of the second access control signal is generated by the control signal generation circuit 3 and supplied to the internal memory 4. At this time, the input of the read signal of the first access control signal to the internal memory 4 is prohibited by the control signal input circuit 6.
【0022】これにより、このバスサイクルにおいて、
第1のアドレスバス11に出力された第1のアドレス、
ならびにCPU1から与えられた第1のアクセス制御信
号の読み出し信号に基づいて外部メモリ9の1000番
地からデータがデータバス10に読み出され、データバ
ス10に読み出されたデータは、アドレス入力回路5で
選択された第2のアドレス、ならびに制御信号生成回路
3から与えられた第2のアクセス制御信号の書き込み信
号に基づいて内部メモリ4の100番地に書き込まれ、
外部メモリ9から内部メモリ4への1つのデータのデー
タ転送が終了する。一方、内部メモリ4からデータを読
み出して外部メモリ9に書き込むというデータ転送を行
う場合には、第1アクセス制御信号を書き込み信号と
し、第2のアクセス制御信号を読み出し信号とすること
で、上記と同様にして1回のバスサイクルでデータ転送
を行うことができる。Thus, in this bus cycle,
A first address output to the first address bus 11,
Data is read from address 1000 of the external memory 9 to the data bus 10 based on the read signal of the first access control signal given from the CPU 1, and the data read to the data bus 10 is stored in the address input circuit 5. Is written to the address 100 of the internal memory 4 based on the second address selected in the step (c) and the write signal of the second access control signal given from the control signal generation circuit 3;
The data transfer of one data from the external memory 9 to the internal memory 4 ends. On the other hand, when performing data transfer in which data is read from the internal memory 4 and written to the external memory 9, the first access control signal is used as a write signal, and the second access control signal is used as a read signal. Similarly, data transfer can be performed in one bus cycle.
【0023】このように、一方のメモリをアクセスする
のに必要な第1のアドレスならびに第1のアクセス制御
信号がCPU1から出力されると同一のバスサイクルに
おいて、他方のメモリをアクセスするのに必要な第2の
アドレスならびに第2のアクセス制御信号を生成して供
給するようにしているので、同一のバスサイクル内で内
部メモリと外部メモリ間で1つのデータを転送すること
が可能となる。これにより、1つのデータを転送するの
に2回のバスサイクルを要していた従来に比べて、デー
タ転送時間を半減させることができる。また、データ転
送時間が大幅に短縮されるので、データ転送を伴う処理
の処理時間も短縮され、システムの処理能力を向上させ
ることができる。Thus, in the same bus cycle as when the first address and the first access control signal required to access one memory are output from CPU 1, it is necessary to access the other memory. Since the second address and the second access control signal are generated and supplied, one data can be transferred between the internal memory and the external memory in the same bus cycle. As a result, the data transfer time can be reduced by half as compared with the related art that requires two bus cycles to transfer one data. Further, since the data transfer time is greatly reduced, the processing time of the processing involving data transfer is also reduced, and the processing capacity of the system can be improved.
【0024】なお、上記実施形態の他の実施形態とし
て、例えばアドレス生成回路2の機能をCPU1に含む
ようにしてもよく、またMCU8に内部メモリを複数含
むような場合には、データ転送を内部メモリ間としても
よく、さらに、データ転送システムとしてMCUを含む
システムに限らずメモリ間のデータ転送機能を備えたシ
ステムであればどのようなシステムであってもよい。As another embodiment of the above-described embodiment, for example, the function of the address generation circuit 2 may be included in the CPU 1, and when the MCU 8 includes a plurality of internal memories, the data transfer is performed between the internal memories. The data transfer system is not limited to a system including an MCU, but may be any system provided with a data transfer function between memories.
【0025】[0025]
【発明の効果】以上説明したように、この発明によれ
ば、一方のメモリをアクセスするのに必要な第1のアド
レスならびに第1のアクセス制御信号が出力されると同
一のバスサイクルにおいて、他方のメモリをアクセスす
るのに必要な第2のアドレスならびに第2のアクセス制
御信号を生成して供給するようにしたので、1つのバス
サイクル内で1つのデータをメモリ間で転送することが
可能となる。これにより、データ転送時間を従来に比べ
て短縮することが可能となる。また、データ転送時間が
大幅に短縮されるので、データ転送を伴う処理の処理時
間も短縮され、システムの処理能力を向上させることが
できる。As described above, according to the present invention, in the same bus cycle as when the first address and the first access control signal required to access one memory are output, the other is used. The second address and the second access control signal required to access the memory are generated and supplied, so that one data can be transferred between the memories in one bus cycle. Become. As a result, the data transfer time can be reduced as compared with the related art. Further, since the data transfer time is greatly reduced, the processing time of the processing involving data transfer is also reduced, and the processing capacity of the system can be improved.
【図1】請求項2,3又は4記載の発明の一実施形態に
係るデータ転送システムの構成を示す図である。FIG. 1 is a diagram showing a configuration of a data transfer system according to an embodiment of the present invention.
【図2】図1に示すアドレス生成回路の構成を示す図で
ある。FIG. 2 is a diagram illustrating a configuration of an address generation circuit illustrated in FIG. 1;
【図3】図1に示す制御信号生成回路の構成を示す図で
ある。FIG. 3 is a diagram illustrating a configuration of a control signal generation circuit illustrated in FIG. 1;
【図4】図1に示すアドレス入力回路の構成を示す図で
ある。FIG. 4 is a diagram showing a configuration of an address input circuit shown in FIG. 1;
【図5】図1に示す制御信号入力回路の構成を示す図で
ある。FIG. 5 is a diagram showing a configuration of a control signal input circuit shown in FIG.
【図6】従来のデータ転送システムの構成を示す図であ
る。FIG. 6 is a diagram showing a configuration of a conventional data transfer system.
1 CPU 2 アドレス生成回路 3 制御信号生成回路 4 内部メモリ 5 アドレス入力回路 6 制御信号入力回路 7 第2のアドレスバス 8 MCU 9 外部メモリ 10 データバス 11 第1のアドレスバス 21 レジスタ 22 加算器 31,32,51,52 ANDゲート 41,42 バッファゲート DESCRIPTION OF SYMBOLS 1 CPU 2 Address generation circuit 3 Control signal generation circuit 4 Internal memory 5 Address input circuit 6 Control signal input circuit 7 Second address bus 8 MCU 9 External memory 10 Data bus 11 First address bus 21 Register 22 Adder 31, 32, 51, 52 AND gate 41, 42 Buffer gate
Claims (5)
ユニットならびに第1のメモリと第2のメモリがデータ
バス及び第1のアドレスバスに並列に接続され、前記制
御ユニットの制御の下に前記データバスを介して前記第
1のメモリと前記第2のメモリとの間でデータ転送が行
われるデータ転送システムにおいて、 前記制御ユニットは、データ転送時には同一のアクセス
サイクル内に前記第1のメモリをアクセスする第1のア
ドレスならびに前記第2のメモリをアクセスする第2の
アドレスを生成し、前記第1のアドレスバスを介して前
記第1のアドレスを前記第1のメモリに供給し、 前記制御ユニットで生成された前記第2のアドレスが専
ら転送される第2のアドレスバスと、 前記制御ユニットから前記第1のメモリに供給される第
1のアクセス制御信号の読み出し信号又は書き込み信号
を受けて、データ転送時には前記第1のメモリがアクセ
スされると同一のアクセスサイクル内に第2のアクセス
制御信号の書き込み信号又は読み出し信号を生成して前
記第2のメモリに供給する制御信号生成回路と、 前記第1のアドレスバスを介して前記制御ユニットから
与えられる第1のアドレスと前記第2のアドレスバスを
介して前記アドレス生成回路から与えられる第2のアド
レスを受けて、前記第1のアドレス又は前記第2のアド
レスを選択して前記第2のメモリに入力するアドレス入
力回路と、 前記制御ユニットから与えられる第1のアクセス制御信
号を受けて、データ転送時には前記第1のアクセス制御
信号の前記第2のメモリへの入力を禁止する制御信号入
力回路とを備え、 データ転送時には前記第2のメモリは前記第2のアドレ
スバスを介して与えられる第2のアドレスならびに前記
制御信号生成回路から与えられる第2のアクセス制御信
号にしたがってアクセスされてなることを特徴とするデ
ータ転送システム。1. A control unit having a function of controlling data transfer, and a first memory and a second memory are connected in parallel to a data bus and a first address bus, and under control of the control unit, In a data transfer system in which data is transferred between the first memory and the second memory via a data bus, the control unit stores the first memory in the same access cycle during data transfer. Generating a first address to access and a second address to access the second memory, supplying the first address to the first memory via the first address bus, the control unit A second address bus to which the second address generated in step (1) is exclusively transferred, and a first address bus supplied from the control unit to the first memory. Upon receiving a read signal or a write signal of an access control signal, when data transfer is performed, a write signal or a read signal of a second access control signal is generated within the same access cycle when the first memory is accessed. A control signal generation circuit that supplies the first memory with a first address provided from the control unit via the first address bus and a second control signal generated from the address generation circuit via the second address bus. An address input circuit that selects the first address or the second address and inputs the selected address to the second memory; and a first access control signal provided from the control unit. A control signal input circuit for inhibiting input of the first access control signal to the second memory during data transfer. At the time of data transfer, the second memory is accessed according to a second address provided via the second address bus and a second access control signal provided from the control signal generation circuit. Data transfer system.
ユニットならびに第1のメモリと第2のメモリがデータ
バス及び第1のアドレスバスに並列に接続され、前記制
御ユニットの制御の下に前記データバスを介して前記第
1のメモリと前記第2のメモリとの間でデータ転送が行
われるデータ転送システムにおいて、 前記第1のメモリがアクセスされると同一のアクセスサ
イクル内に、前記第2のメモリをアクセスする第2のア
ドレスを生成するアドレス生成回路と、 前記アドレス生成回路で生成された前記第2のアドレス
が専ら転送される第2のアドレスバスと、 前記制御ユニットから前記第1のメモリに供給される第
1のアクセス制御信号の読み出し信号又は書き込み信号
を受けて、データ転送時には前記第1のメモリがアクセ
スされると同一のアクセスサイクル内に第2のアクセス
制御信号の書き込み信号又は読み出し信号を生成して前
記第2のメモリに供給する制御信号生成回路と、 前記第1のアドレスバスを介して前記制御ユニットから
与えられる第1のアドレスと前記第2のアドレスバスを
介して前記アドレス生成回路から与えられる第2のアド
レスを受けて、前記第1のアドレス又は前記第2のアド
レスを選択して前記第2のメモリに入力するアドレス入
力回路と、 前記制御ユニットから与えられる第1のアクセス制御信
号を受けて、データ転送時には前記第1のアクセス制御
信号の前記第2のメモリへの入力を禁止する制御信号入
力回路とを備え、 データ転送時には前記第2のメモリは前記第2のアドレ
スバスを介して与えられる第2のアドレスならびに前記
制御信号生成回路から与えられる第2のアクセス制御信
号にしたがってアクセスされてなることを特徴とするデ
ータ転送システム。2. A control unit having a function of controlling data transfer, and a first memory and a second memory are connected in parallel to a data bus and a first address bus, and under control of the control unit, In a data transfer system in which data transfer is performed between the first memory and the second memory via a data bus, the second memory may be accessed within the same access cycle when the first memory is accessed. An address generation circuit for generating a second address for accessing the memory of the first embodiment, a second address bus to which the second address generated by the address generation circuit is exclusively transferred, and a first address bus from the control unit. Upon receiving a read signal or a write signal of a first access control signal supplied to the memory, the first memory is accessed during data transfer. A control signal generation circuit that generates a write signal or a read signal of a second access control signal in the same access cycle as described above and supplies the write signal or the read signal to the second memory; In response to a given first address and a second address provided from the address generation circuit via the second address bus, the first address or the second address is selected and the second address is selected. An address input circuit for inputting to the memory; a control signal input for receiving a first access control signal provided from the control unit and for inhibiting input of the first access control signal to the second memory during data transfer A second address during data transfer, a second address provided through the second address bus, and a control circuit. Data transfer system characterized by comprising been accessed according to a second access control signal supplied from the signal generating circuit.
トから与えられるオフセット値を保持するレジスタと、 前記レジスタに保持されたオフセット値と、前記制御ユ
ニットから前記第1のアドレスバスを介して前記第1の
メモリに与えられる第1のアドレスを加算して前記第2
のアドレスを生成する加算器とを有することを特徴とす
る請求項2記載のデータ転送システム。3. An address generating circuit comprising: a register for holding an offset value given from the control unit via the data bus before data transfer; an offset value held in the register; Adding a first address provided to the first memory via a first address bus to add the second address to the second memory;
3. The data transfer system according to claim 2, further comprising:
ト、前記第2のアドレスバス、前記制御信号生成回路、
前記アドレス入力回路ならびに前記制御信号入力回路を
有するユニット、又は該ユニットに前記アドレス生成回
路を備えたユニットに含まれる内部メモリからなり、 前記第1のメモリは、前記ユニットの外部に設けられた
外部メモリからなることを特徴とする請求項1,2又は
3記載のデータ転送システム。4. The second memory includes: the control unit, the second address bus, the control signal generation circuit,
A unit having the address input circuit and the control signal input circuit, or an internal memory included in a unit including the address generation circuit in the unit, wherein the first memory is an external memory provided outside the unit. 4. The data transfer system according to claim 1, comprising a memory.
転送有効信号が、有効時には第2のアドレスを選択し、
無効時には第1のアドレスを選択することを特徴とする
請求項1又は2記載のデータ転送システム。5. A data transfer valid signal provided from the control unit selects a second address when valid.
3. The data transfer system according to claim 1, wherein the first address is selected when the data is invalid.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP11063999A JP2000259492A (en) | 1999-03-10 | 1999-03-10 | Data transfer system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP11063999A JP2000259492A (en) | 1999-03-10 | 1999-03-10 | Data transfer system |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2000259492A true JP2000259492A (en) | 2000-09-22 |
Family
ID=13245486
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP11063999A Pending JP2000259492A (en) | 1999-03-10 | 1999-03-10 | Data transfer system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2000259492A (en) |
-
1999
- 1999-03-10 JP JP11063999A patent/JP2000259492A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7907469B2 (en) | Multi-port memory device for buffering between hosts and non-volatile memory devices | |
JP3532932B2 (en) | Randomly accessible memory with time overlapping memory access | |
JP3841442B2 (en) | Method and system for storing and processing multiple memory addresses | |
JP2004536417A (en) | Memory device for performing addressing with different burst order in read and write operations | |
US6292867B1 (en) | Data processing system | |
WO2006050983A1 (en) | Memory access using multiple sets of address/data lines | |
JP3583844B2 (en) | Cache memory method | |
JP2000259492A (en) | Data transfer system | |
JPH0546527A (en) | Dual port memory circuit | |
JP3600830B2 (en) | Processor | |
JP3204157B2 (en) | Computer data supply method | |
JPH10133945A (en) | Data processor | |
JPH11259356A (en) | Memory initialization device | |
JPH0212358A (en) | Data transfer system | |
JPH113274A (en) | Memory access control system | |
JP3727452B2 (en) | Data processing apparatus and data processing system | |
JP3255429B2 (en) | Memory interface circuit | |
JP3242474B2 (en) | Data processing device | |
JP2000132491A (en) | Method and system for device control | |
JPH10105457A (en) | Memory control system and memory control circuitt | |
JPH04116750A (en) | Dma memory transfer device | |
JPH1091570A (en) | Data transfer device | |
JPH05274868A (en) | Memory control device | |
JPH01260559A (en) | Microcomputer system | |
JPH04199450A (en) | Direct memory access control circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040827 |
|
A621 | Written request for application examination |
Effective date: 20040827 Free format text: JAPANESE INTERMEDIATE CODE: A621 |
|
A977 | Report on retrieval |
Effective date: 20060927 Free format text: JAPANESE INTERMEDIATE CODE: A971007 |
|
A131 | Notification of reasons for refusal |
Effective date: 20061003 Free format text: JAPANESE INTERMEDIATE CODE: A131 |
|
A521 | Written amendment |
Effective date: 20061204 Free format text: JAPANESE INTERMEDIATE CODE: A523 |
|
A711 | Notification of change in applicant |
Effective date: 20061204 Free format text: JAPANESE INTERMEDIATE CODE: A712 |
|
A131 | Notification of reasons for refusal |
Effective date: 20070320 Free format text: JAPANESE INTERMEDIATE CODE: A131 |
|
A521 | Written amendment |
Effective date: 20070521 Free format text: JAPANESE INTERMEDIATE CODE: A523 |
|
A02 | Decision of refusal |
Effective date: 20070710 Free format text: JAPANESE INTERMEDIATE CODE: A02 |
|
A521 | Written amendment |
Effective date: 20070910 Free format text: JAPANESE INTERMEDIATE CODE: A523 |
|
A911 | Transfer of reconsideration by examiner before appeal (zenchi) |
Free format text: JAPANESE INTERMEDIATE CODE: A911 Effective date: 20071031 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20071127 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20071205 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101214 Year of fee payment: 3 |
|
R150 | Certificate of patent (=grant) or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 3 Free format text: PAYMENT UNTIL: 20101214 |
|
FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111214 Year of fee payment: 4 |
|
LAPS | Cancellation because of no payment of annual fees |