JPH01120661A - Memory control circuit - Google Patents

Memory control circuit

Info

Publication number
JPH01120661A
JPH01120661A JP27897587A JP27897587A JPH01120661A JP H01120661 A JPH01120661 A JP H01120661A JP 27897587 A JP27897587 A JP 27897587A JP 27897587 A JP27897587 A JP 27897587A JP H01120661 A JPH01120661 A JP H01120661A
Authority
JP
Japan
Prior art keywords
memory
memories
data
adder
address
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
JP27897587A
Other languages
Japanese (ja)
Inventor
Makoto Hanawa
良 花輪
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP27897587A priority Critical patent/JPH01120661A/en
Publication of JPH01120661A publication Critical patent/JPH01120661A/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 realize simultaneous reading and writing actions between different addresses of two memories by designating simultaneously the addresses different from each other by an addition value to be added to an adder at both memories via a buffer and the adder. CONSTITUTION:An adder 11 is put into an address bus 20 connected between two memories 1 and 2. At the same time, buffer 8-10 are put into control lines connected between both memories 1 and 2. The buffers 8-10 are individually controlled by a DMA controller 5. Then an prescribed addition value is given to the adder 11 so that the addresses different from each other by said addition value are designated at one time at both memories 1 and 2.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置または通信装置におけるメモリ転
送に利用する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention is used for memory transfer in an information processing device or a communication device.

本発明は、高いリアルタイム処理機能が必要とされるデ
ータ通信装置、マルチCPUによる分離処理技術を必要
とする大量高速データ処理装置、データ伝送スピードの
異なるディジタル多重分散通信装置の速度変換用バッフ
ァ回路、汎用パケット交換装置等に応用される。
The present invention relates to a data communication device that requires a high real-time processing function, a large-volume high-speed data processing device that requires separation processing technology using multiple CPUs, a speed conversion buffer circuit for a digital multiplex and distributed communication device with different data transmission speeds, Applied to general-purpose packet switching equipment, etc.

〔概 要〕〔overview〕

二つのメモリ間のデータ転送を制御する制御手段を備え
、この制御手段および上記二つのメモリの間に、データ
バス、アドレスバスおよび制御線が接続されたメモリ制
御回路において、上記アドレスバスの通路に挿入された
加算器と、上記制御線にそれぞれ挿入されたバッファと
を備えることにより、 二つのメモリの異なるアドレス間のリード、ライトのア
ドレス指定を同時に行うことを可能とするようにしたも
のである。
A memory control circuit comprising a control means for controlling data transfer between two memories, and in which a data bus, an address bus, and a control line are connected between the control means and the two memories; By providing an inserted adder and a buffer inserted into each of the above control lines, it is possible to simultaneously perform read and write addressing between different addresses in two memories. .

〔従来の技術〕[Conventional technology]

従来、この種のメモリ制御回路においてはCPUあるい
はDMAコントローラを用いてデータ転送を行う場合に
、データは一方のメモリから読み出されてCPUあるい
はDMAコントローラのテンポラリ−レジスタに格納さ
れ、他方のメモリの転送先アドレスが新たに出力される
とそのデータが他方のメモリに書き込まれていた。
Conventionally, in this type of memory control circuit, when data is transferred using a CPU or DMA controller, data is read from one memory and stored in a temporary register of the CPU or DMA controller, and then transferred to the other memory. When a new transfer destination address was output, that data was written to the other memory.

第6図に示す従来例ではメモリ1ないしメモリ2へのリ
ード信号線16.18、ライト信号線17.19および
アドレスバス20.21を同時に独立に制御することが
不可能である。このため、CPU3の制御により二つの
メモリ間のデータ転送を行う場合には、第7図に示す処
理を実行し、DMAコントロー゛うを用いる場合には、
第8図に示す処理を実行していた。第9図は、CPUに
より転送を実行する場合の1ワ一ド転送時のタイミング
チャートであり、このとき転送元メモリに与えるアドレ
ス、転送先メモリに与えるアドレスおよびリード・ライ
ト信号の時間にしたがう変化を示す。第10図はDMA
コントローラにより制御を行う場合のタイミングチャー
トである。いずれの場合にも1バイト転送時には、転送
元アドレスからデータバスへのデータの読み出しおよび
テンポラリ−レジスタへのデータの書き込みに1サイク
ルを要し、テンポラリ−レジスタからデータバスへのデ
ータの読み出しおよび転送先アドレスへのデータの書き
込みにさらに1サイクルを要し、ひとつの動作に計2サ
イクル必要となることがわかる。
In the conventional example shown in FIG. 6, it is impossible to simultaneously and independently control the read signal line 16.18, write signal line 17.19 and address bus 20.21 to memories 1 and 2. Therefore, when data is transferred between two memories under the control of the CPU 3, the process shown in FIG. 7 is executed, and when DMA control is used,
The process shown in FIG. 8 was being executed. FIG. 9 is a timing chart of one word transfer when the transfer is executed by the CPU, and at this time, the address given to the transfer source memory, the address given to the transfer destination memory, and the change in read/write signal according to time. shows. Figure 10 shows DMA
It is a timing chart when control is performed by a controller. In either case, when transferring one byte, it takes one cycle to read data from the transfer source address to the data bus and write data to the temporary register, and to read and transfer data from the temporary register to the data bus. It can be seen that one additional cycle is required to write data to the destination address, and a total of two cycles are required for one operation.

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

上述の従来技術では、二つのメモリに対して共通に1組
のメモリリード・ライト信号線が接続されているので、
二つのメモリ間でデータ転送を行う場合には、転送元に
対するリード信号と転送先に対するライト信号を同時に
送出することかできない欠点があった。さらに、二つの
メモリ間でデータ転送を行う場合には、転送元のメモリ
からデータバス上に読み出されたデータをCPUあるい
はDMAコントローラの制御にしたがって、テンポラリ
−レジスタにいったん格納してから、この内容を転送先
のメモリに書き込むため、データバスの使用効率が約半
分になり、その分だけメモリ転送のために時間を必要と
する欠点があった。
In the above-mentioned conventional technology, one set of memory read/write signal lines is commonly connected to two memories.
When data is transferred between two memories, there is a drawback that a read signal to the transfer source and a write signal to the transfer destination cannot be sent at the same time. Furthermore, when data is transferred between two memories, the data read from the source memory onto the data bus is stored in a temporary register under the control of the CPU or DMA controller, and then the data is stored in a temporary register. Since the contents are written to the memory of the transfer destination, the efficiency of using the data bus is approximately halved, and the disadvantage is that the memory transfer takes that much time.

本発明はこれを改良するもので、二つのメモリの異なる
アドレス間のリード・ライトを同時に行うことを可能に
し、データ転送に要する時間を大幅に削減することを目
的とする。
The present invention improves this, and aims to make it possible to read and write between different addresses of two memories at the same time, and to significantly reduce the time required for data transfer.

〔問題点を解決するための手段〕[Means for solving problems]

二つのメモリ間に接続される上記アドレスバスの通路に
挿入された加算器と、二つのメモリ間に接続される上記
制御線にそれぞれ挿入されたバッファとを備え、データ
転送を制御する制御手段には、上記バッファを個別に制
御する手段と、上記加算器に加算値を与える手段とを含
み、二つのメモリ間のデータ転送時に上記アドレスバス
に送出するアドレス値およびこのアドレス値に加算する
加算値により上記二つのメモリのアドレスを同時に指定
する手段を含むことを特徴とする。
A control means for controlling data transfer, comprising an adder inserted in the path of the address bus connected between the two memories, and a buffer inserted in each of the control lines connected between the two memories. includes means for individually controlling the buffers, and means for providing an addition value to the adder, and includes an address value to be sent to the address bus when data is transferred between two memories, and an addition value to be added to this address value. The present invention is characterized in that it includes means for simultaneously specifying the addresses of the two memories.

〔作 用〕[For production]

バッファおよび加算器により、二つのメモリに対し、加
算器に与える加算値だけ互いに異なるアドレスを同時に
指定する。これにより独立にメモリリード信号、メモリ
ライト信号、アドレスバスを制御することが可能となる
。したがって1ワードのデータ転送が1サイクルで完了
し、二つのメモリの異なるアドレス間でのリードおよび
ライトを同時に行うことが可能となり、データ転送に要
する時間を大幅に削減することができる。
Using a buffer and an adder, addresses that differ from each other by the addition value given to the adder are simultaneously designated to two memories. This makes it possible to independently control the memory read signal, memory write signal, and address bus. Therefore, data transfer of one word is completed in one cycle, and reading and writing between different addresses of two memories can be performed simultaneously, and the time required for data transfer can be significantly reduced.

〔実施例〕〔Example〕

第1図は本発明の一実施例を示すブロック図、第2図お
よび第3図は本発明の実施例の続出専用メモリ4に書き
込まれているCPU3のプログラムを示すフローチャー
ト、第4図および第5図は本発明の実施例のフローチャ
ートを実行したときのタイミングチャートである。
FIG. 1 is a block diagram showing one embodiment of the present invention, FIGS. 2 and 3 are flowcharts showing the program of the CPU 3 written in the continuous memory 4 of the embodiment of the present invention, and FIGS. FIG. 5 is a timing chart when the flowchart of the embodiment of the present invention is executed.

この装置は、第一のメモリ1および第二のメモリ2のデ
ータ転送を制御する制御手段として、CPU3、読出専
用メモリ4およびDMAコントローラ5を備え、この制
御手段および上記二つのメモリの間に、データバス22
.23、アドレスバス20.21および制御回路として
バッファ25、遅延用インバータ6.7および信号線が
接続されている。
This device includes a CPU 3, a read-only memory 4, and a DMA controller 5 as control means for controlling data transfer between a first memory 1 and a second memory 2, and between this control means and the two memories, data bus 22
.. 23, an address bus 20.21, a buffer 25 as a control circuit, a delay inverter 6.7, and a signal line are connected.

ここで本発明の特徴とするところは、上記第二のメモリ
2に接続されるアドレスバス20.21の通路に加算器
11が挿入され、第二のメモリ2に接続される制御線に
それぞれ挿入されたバッファ8.9および10を備え、
上記制御手段には、上記バッファ8.9.10を個別に
制御する手段としてゲート回路28.29.30、上記
加算器に加算値を与える手段としてアドレス加算用のラ
ッチ回路12およびゲート回路32を含み、上記制御手
段は、上記二つのメモリ間のデータ転送時に上記アドレ
スバス20.21に送出するアドレス値およびこのアド
レス値に加算する加算値により上記二つのメモリ1およ
び2のアドレスを同時に指定する手段を含むことを特徴
とする。
Here, the feature of the present invention is that adders 11 are inserted in the paths of the address buses 20 and 21 connected to the second memory 2, and adders 11 are inserted in the control lines connected to the second memory 2, respectively. buffers 8.9 and 10,
The control means includes gate circuits 28, 29, and 30 as means for individually controlling the buffers 8, 9, and 10, and a latch circuit 12 for address addition and a gate circuit 32 as means for providing an added value to the adder. and the control means simultaneously specifies the addresses of the two memories 1 and 2 by an address value sent to the address bus 20.21 and an additional value added to this address value during data transfer between the two memories. It is characterized by including means.

本発明ではバッファ9.10および加算器11により、
二つのメモリ間において独立にメモリリード信号16.
18、メモリライト信号17.19、アドレスバス20
.21を制御することが可能となる。遅延用インバータ
6.7はデータバス上に有効データが存在する期間中に
転送先メモリへのデータ書き込みを完了させるために設
けられている。
In the present invention, the buffer 9.10 and the adder 11 provide the following:
A memory read signal 16. is transmitted independently between two memories.
18, memory write signal 17.19, address bus 20
.. It becomes possible to control 21. The delay inverter 6.7 is provided to complete writing data to the destination memory while valid data is present on the data bus.

バッファ8.9.10および加算器11により、二つの
メモリに対し、加算器11に与える加算値だけ互いに異
なるアドレスを同時に指定する。これにより独立にメモ
リリード信号16.18、メモリライト信号17.19
、アドレスバス20.21を制御することが可能となる
。したがって、第2図に示すような制御により、1ワー
ドのデータ転送が第4図に示すように1サイクルで完了
する。
The buffer 8.9.10 and the adder 11 simultaneously designate addresses that differ from each other by the addition value given to the adder 11 to the two memories. As a result, the memory read signal 16.18 and the memory write signal 17.19 are independently output.
, address bus 20.21. Therefore, by controlling as shown in FIG. 2, data transfer of one word is completed in one cycle as shown in FIG. 4.

さらに第3図で示すDMAコントローラ5を利用したプ
ログラムでは次のデータ転送が行われるまでに実行する
必要がないので、高速なデータ転送が可能となり、この
ときのタイミングチャートは第5図に示すとおりになる
。特に多量のデータ転送時には従来の方法と比べ転送時
間が約半分となり転送効率は飛躍的に向上する。
Furthermore, since the program using the DMA controller 5 shown in Fig. 3 does not need to be executed before the next data transfer, high-speed data transfer is possible, and the timing chart at this time is as shown in Fig. 5. become. Especially when transferring a large amount of data, the transfer time is about half that of conventional methods, dramatically improving transfer efficiency.

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

以上説明したように、本発明によれば二つのメモリの任
意のアドレス間でのリード、ライトを同時に行うことが
可能となり、データ転送に要する時間を大幅に削減する
ことができる。
As described above, according to the present invention, it is possible to simultaneously read and write between arbitrary addresses in two memories, and the time required for data transfer can be significantly reduced.

本発明は、二つのメモリ間でのデータ転送に用いてきわ
めて有効である。
The present invention is extremely effective when used for data transfer between two memories.

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

第1図は本発明の一実施=例を示すブロック構成図。 第2図および第3図は本発明の実施例の続出専用メモリ
に書き込まれているCPUのプログラムフローチャート
。 第4図および第5図は本発明の実施例の動作タイミング
チャート。 第6図は従来例のブロック構成図。 第7図および第8図は従来例のプログラムフローチャー
ト。 第9図および第10図は従来例の動作タイミングチャー
ト。 1.2・・・メモリ、3・・・CPU、4・・・読出専
用メモリ、5・・・DMAコントローラ、6.7・・・
遅延用インバータ、8.9.10・・・メモリ2に対す
るメモリリード・ライト信号バッファ、11・・・加算
器、12・・・アドレス加算用のラッチ回路、13・・
・CPUによるメモリーメモリ間データ転送イネーブル
信号(ENB) 、14・・・DMAコントローラ動作
時のアドレスイネーブル信号(AEN) 、15・・・
D M A :]ントローラエンドオブプロセス信号(
EOP)、16・・・メモリ1へのリード信号線、17
・・・メモリ1へのライト信号線、18・・・メモリ2
へのリード信号線、19・・・メモリ2へのライト信号
線、20・・・メモリ1へのアドレスバス、21・・・
メモリ2へのアドレスバス、22・・・メモリ1へのデ
ータバス、23・・・メモリ2へのデータバス、25・
・・バッファ、28.29.30.32・・・ゲート回
路、31・・・遅延用インバータ。
FIG. 1 is a block diagram showing an example of the implementation of the present invention. FIGS. 2 and 3 are flowcharts of the CPU program written in the successive memory according to the embodiment of the present invention. 4 and 5 are operation timing charts of the embodiment of the present invention. FIG. 6 is a block diagram of a conventional example. FIG. 7 and FIG. 8 are program flowcharts of a conventional example. 9 and 10 are operation timing charts of the conventional example. 1.2...Memory, 3...CPU, 4...Read-only memory, 5...DMA controller, 6.7...
Delay inverter, 8.9.10... Memory read/write signal buffer for memory 2, 11... Adder, 12... Latch circuit for address addition, 13...
・Memory-to-memory data transfer enable signal (ENB) by the CPU, 14...Address enable signal (AEN) during DMA controller operation, 15...
DMA:] controller end of process signal (
EOP), 16... Read signal line to memory 1, 17
...Write signal line to memory 1, 18...Memory 2
Read signal line to memory 1, 19... Write signal line to memory 2, 20... Address bus to memory 1, 21...
address bus to memory 2, 22... data bus to memory 1, 23... data bus to memory 2, 25.
...Buffer, 28.29.30.32...Gate circuit, 31...Delay inverter.

Claims (1)

【特許請求の範囲】[Claims] (1)第一のメモリ(1)および第二のメモリ(2)の
データ転送を制御する制御手段(3、4、5)を備え、
この制御手段および上記二つのメモリの間に、データバ
ス、アドレスバスおよび制御回路が接続された メモリ制御回路において、 上記第二のメモリに接続される上記アドレスバスの通路
に挿入された加算器(11)と、 上記第二のメモリに接続される上記制御線にそれぞれ挿
入されたバッファ(8、9、10)とを備え、上記制御
手段には、上記バッファを個別に制御する手段と、上記
加算器に加算値を与える手段とを含み、 上記制御手段は、上記二つのメモリ間のデータ転送時に
上記アドレスバスに送出するアドレス値およびこのアド
レス値に加算する加算値により上記二つのメモリのアド
レスを同時に指定する手段を含む ことを特徴とするメモリ制御回路。
(1) comprising control means (3, 4, 5) for controlling data transfer between the first memory (1) and the second memory (2);
In a memory control circuit in which a data bus, an address bus, and a control circuit are connected between the control means and the two memories, an adder ( 11); buffers (8, 9, 10) respectively inserted into the control lines connected to the second memory; the control means includes means for individually controlling the buffers; and means for providing an addition value to an adder, and the control means controls the address of the two memories by the address value sent to the address bus and the addition value added to this address value when data is transferred between the two memories. A memory control circuit comprising means for simultaneously specifying.
JP27897587A 1987-11-04 1987-11-04 Memory control circuit Pending JPH01120661A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27897587A JPH01120661A (en) 1987-11-04 1987-11-04 Memory control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27897587A JPH01120661A (en) 1987-11-04 1987-11-04 Memory control circuit

Publications (1)

Publication Number Publication Date
JPH01120661A true JPH01120661A (en) 1989-05-12

Family

ID=17604677

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27897587A Pending JPH01120661A (en) 1987-11-04 1987-11-04 Memory control circuit

Country Status (1)

Country Link
JP (1) JPH01120661A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03171356A (en) * 1989-11-30 1991-07-24 Matsushita Graphic Commun Syst Inc Inter-memory data transfer device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03171356A (en) * 1989-11-30 1991-07-24 Matsushita Graphic Commun Syst Inc Inter-memory data transfer device

Similar Documents

Publication Publication Date Title
KR960004457B1 (en) Data transfer device
JPH01120661A (en) Memory control circuit
JPH03204753A (en) Dma controller
JPS6381557A (en) Dual port memory
JPH01126754A (en) System for copying specified area in dma transferring time
JPH02211571A (en) Information processor
JPS6217873A (en) Image processing system
JPH01129342A (en) System for copying specified area at dma transferring time
JPH03189755A (en) Inter-memory transfer device
JPH06149724A (en) Dma transfer device
JP2581144B2 (en) Bus control device
JPS63103351A (en) Dma control circuit
JPH01191964A (en) Transfer method for memory bus data
JPS63100553A (en) High-speed transferring system between memory blocks
JPS61120262A (en) Inter-memory intelligent dma controller
JPH02171949A (en) Dma transfer system
JPS62249263A (en) Direct memory access controller
JPS62143158A (en) Control method for data transfer by dma controller
JPS6383854A (en) Data transfer circuit
JPH06161945A (en) Memory data transfer device
JPS61267852A (en) Data bus conversion system
JPS63304357A (en) Microcomputer system
JPS62241057A (en) Circuit for increasing input/output processing speed
JPS62262169A (en) Data transfer system
JPH036762A (en) Direct access method for image memory