JPS61190648A - Inter-memory data transfer control circuit - Google Patents
Inter-memory data transfer control circuitInfo
- Publication number
- JPS61190648A JPS61190648A JP3133285A JP3133285A JPS61190648A JP S61190648 A JPS61190648 A JP S61190648A JP 3133285 A JP3133285 A JP 3133285A JP 3133285 A JP3133285 A JP 3133285A JP S61190648 A JPS61190648 A JP S61190648A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- bit
- data
- address
- memories
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/16—Handling requests for interconnection or transfer for access to memory bus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
Abstract
Description
【発明の詳細な説明】
(a)発明の技術分野
この発明は、CPUにより同一アドレス空間に属する第
1のメモリのデータをM2のメモリに転送する制御回路
に関するものである。DETAILED DESCRIPTION OF THE INVENTION (a) Technical Field of the Invention The present invention relates to a control circuit for transferring data in a first memory belonging to the same address space to a memory M2 by a CPU.
(b)従来技術と問題点
一般に、CPUは一つのアドレス上の2つ以上のメモリ
セルを同時にアクセスすることはできないので、外部に
メモリマツピング回路、メモリバンク切換回路などの付
加回路を設けてなんらかのアドレス拡張を行う。これに
いくつかのメモリを接続し、付加回路の設定を変えるこ
とでメモ′!′切換える方法をとってきた。(b) Prior art and problems Generally, a CPU cannot access two or more memory cells at one address at the same time, so additional circuits such as a memory mapping circuit and a memory bank switching circuit are provided externally. Perform some address expansion. By connecting some memory to this and changing the settings of the additional circuit, you can create a memo! 'We have adopted a method of switching.
しかし、このような異なるメモリ間のデータ転送では、
次の例で示すように煩雑な手顧が必要になり、同じメモ
リ内での転送に比べ、著しく転送速度が遅くなる欠点が
あった。However, in such data transfer between different memories,
As shown in the following example, this method requires complicated handling and has the disadvantage that the transfer speed is significantly slower than transfer within the same memory.
以下、第3図を参照して従来回路を説明する。The conventional circuit will be explained below with reference to FIG.
第3図の1はCPU12は第1のメモリ、3は第2のメ
モリ、5はアドレス拡張回路である。In FIG. 3, 1 is a first memory for the CPU 12, 3 is a second memory, and 5 is an address expansion circuit.
あるアドレスがメモリ2に属するかメモリ3に属するか
はアドレス拡張回路5上の制御ビットにより、どちらか
一方に決定される。Whether a certain address belongs to memory 2 or memory 3 is determined by a control bit on address expansion circuit 5.
したがって、同じアドレスの内容をメモリ2とメそり3
の間でコピーする場合、まず一方を読み出し、この制御
ビットを変更させたうえで他方に書き込み、さらにもう
一度反転させて復旧する動作をデータの数だけ繰り返す
必要がある。Therefore, the contents of the same address are stored in memory 2 and memory 3.
When copying between data, it is necessary to first read one, change the control bits, write to the other, and then invert again to restore the data, repeating this operation for the number of data.
次に、第3図のフローチャートを第4図に示す。Next, the flow chart of FIG. 3 is shown in FIG.
第4図のステップ11では、CPUIがメモリ2を読み
取る。すなわち、前もってセットされていたメモリ選択
情報がアドレスとして各メモリに供給され、その結果メ
モリ2が選択されデータを出力する。In step 11 of FIG. 4, the CPUI reads the memory 2. That is, memory selection information set in advance is supplied to each memory as an address, and as a result, memory 2 is selected and outputs data.
ステップ12では、CPU1によりアドレス拡張回路5
のアドレスをCPUIからメモリ3に書き直す。In step 12, the address extension circuit 5 is
Rewrite the address from the CPUI to memory 3.
ステップ13では、CPUIのデータをメモリ3に書き
込む。In step 13, the CPUI data is written into the memory 3.
ステップ14では、アドレス拡張回路5のアドレスをメ
モリ3からメモリ2に戻す。In step 14, the address of the address expansion circuit 5 is returned from the memory 3 to the memory 2.
第3図、第4図のような従来回路では、アドレス拡張回
路5の変更分だけ余分に時間がかかるので、アドレス範
囲が広くなると、実用上の許容時間を越えてしまうとい
う問題がある。In the conventional circuits as shown in FIGS. 3 and 4, extra time is required for changing the address expansion circuit 5, so when the address range becomes wider, there is a problem that the practical allowable time is exceeded.
(c)発明の目的
この発明は、同一アドレス空間上の2種類以上のメモリ
間のデータ転送手段として拡張ビットをもつプログラム
メモリとデコーダを採用し、CPUによる読み出しまた
は書き込み時、この拡張ビットにより交互にメモリを選
択するようなプログラムを作り、上記メモリ間の転送を
高速に処理できるようにすることを目的とする。(c) Purpose of the Invention The present invention employs a program memory and a decoder having extension bits as a means of data transfer between two or more types of memories in the same address space, and uses the extension bits to alternate when reading or writing by the CPU. The purpose of the present invention is to create a program that selects a memory at different times, and to be able to process transfers between the memories at high speed.
(d)問題点を解決するための手段
第3図のような従来技術で転送に時間がかかるのは、メ
モリの選択を拡張されたアドレスで行うためである。(d) Means for Solving the Problems The reason why transfer takes time in the conventional technique as shown in FIG. 3 is because memory selection is performed using extended addresses.
この発明は、メモリ選択情報をプログラムにもたせるこ
とを特徴とする。The present invention is characterized in that memory selection information is included in the program.
次に、この発明の原理構成図を第1図に示す。Next, FIG. 1 shows a diagram of the basic configuration of this invention.
第1図の6はプログラムメモリ、7はデコーダである。In FIG. 1, 6 is a program memory, and 7 is a decoder.
メモリ選択情報はプログラムメモリ6の語長を拡張した
拡張ビット82に格納される。そして、CPUIがプロ
グラムメモリ6から命令61を取り出すごとに、拡張ビ
ット62をデコーダ7に供給する。The memory selection information is stored in an extension bit 82 that extends the word length of the program memory 6. Then, each time the CPUI retrieves an instruction 61 from the program memory 6, an extension bit 62 is supplied to the decoder 7.
これにより、デコーダ7はメモリ2、メモリ3およびメ
モリ4の許可入力に各デコード出力を加え、任意のメモ
リを交互に切り換える。As a result, the decoder 7 adds each decode output to the permission inputs of the memory 2, memory 3, and memory 4, and alternately switches between arbitrary memories.
(e)発明の実施例 この発明による実施例の構成図を第2図に示す。(e) Examples of the invention A configuration diagram of an embodiment according to the present invention is shown in FIG.
第2図は第1図の拡張ビット62が1ビツトの場合を例
示したものである。FIG. 2 illustrates a case where the extension bit 62 in FIG. 1 is one bit.
拡張ビット62が1ビツトなので、第2図では第1図の
デコーダ7をインバータ8で実現している。Since the extension bit 62 is 1 bit, the decoder 7 in FIG. 1 is implemented by the inverter 8 in FIG.
第2図では、インバータ8をメモリ2に接続しているが
、メモリ3の間にインバータ8を接続してもよい。Although the inverter 8 is connected to the memory 2 in FIG. 2, the inverter 8 may be connected between the memories 3.
この場合、同じ動作をさせるためには拡張ビ。In this case, in order to get the same behavior, you need an extension.
トロ2にセットするデータを反転させておく。Invert the data set in Toro 2.
次に、プログラムメモリ6の構成図を第5図に示す。
゛
第5図の61は命令、62は拡張ビットである。Next, a configuration diagram of the program memory 6 is shown in FIG.
``61 in FIG. 5 is an instruction, and 62 is an extension bit.
命令61はCPUIに直接接続され、どのメモリをアク
セスするかの情報は含まない。Instructions 61 are directly connected to the CPUI and do not include information about which memory to access.
拡張とブト82は、例えばrlJ、rOJのように構成
し、「0」でメモリ2を選択し、「1」でメモリ3を選
択するなどのようにする。The expansion and buttons 82 are configured, for example, as rlJ and rOJ, with "0" selecting memory 2, "1" selecting memory 3, and so on.
次に、第2図のフローチャートを第8図に示す。Next, the flowchart of FIG. 2 is shown in FIG.
第6図のステップ21では、CPU1の指令によりプロ
グラムメモリθの拡張ビット62をセットする。ステッ
プ22では、CPUIは、あるアドレスのメモリからデ
ータを読みこむ命令61を取り出し実行すると同時に、
拡張ビット61の「0」をインバータ8に出力する。そ
の結果メモリ2が選択され、メモリ2のデータがCPU
Iに読みこまれる。At step 21 in FIG. 6, the expansion bit 62 of the program memory θ is set by a command from the CPU 1. In step 22, the CPUI retrieves and executes an instruction 61 to read data from memory at a certain address, and at the same time,
“0” of the extension bit 61 is output to the inverter 8. As a result, memory 2 is selected and the data in memory 2 is transferred to the CPU.
It is read into I.
同様にしてステップ23では、ステップ22と同じアド
レスのメモリに書きこむ命令61を実行すると同時に、
拡張ビット82の「1」をインバータ8に出力する。そ
の結果メモリ3が選択され、CPUIのデータがメモリ
3に書きこまれることになる。Similarly, in step 23, the instruction 61 to write to the memory at the same address as in step 22 is executed, and at the same time,
“1” of the extension bit 82 is output to the inverter 8. As a result, memory 3 is selected and CPUI data is written to memory 3.
ステップ21からステップ24を繰り返すことにより、
メモリ3の任意アドレス範囲の7−タをメモリ2に転送
することができる。By repeating steps 21 to 24,
7-data in an arbitrary address range of memory 3 can be transferred to memory 2.
第4図と第6図を比べると明らかなように、第6図では
第4図のステップ12、ステップ14がないので、それ
だけ転送時間を高速にすることができる。As is clear from a comparison between FIG. 4 and FIG. 6, in FIG. 6 there are no steps 12 and 14 in FIG. 4, so the transfer time can be increased accordingly.
(f)発明の効果
この発明によれば、メモリ切換情報をアドレス拡張回路
ではなく転送プログラムそのものに持たせているため、
メモリ間のデータ転送プロセス中にメモリ切換情報の更
新が不要となり、その分だけ高速処理をすることができ
る。(f) Effects of the Invention According to this invention, since the memory switching information is provided in the transfer program itself rather than in the address expansion circuit,
There is no need to update memory switching information during the data transfer process between memories, and processing can be performed at a correspondingly high speed.
通常ステップ12.14にはステップ22.23の2倍
以上の実行時間が必要なので、全体の転送時間は1/3
以下にすることができる。Normally step 12.14 requires more than twice the execution time of step 22.23, so the overall transfer time is reduced to 1/3.
It can be:
第1図はこの発明の原理構成図、
第2図はこの発明による実施例の構成図、第3図は従来
の構成図、
第4図は第2図のフローチャート、
第5図はプログラムメモリ6の構成図、第6図は第1図
のフロチャート。
1・・・・・・CPU、2・・・・・・第1のメモリ、
3・・・・・・第2のメモリ、4・・・・・・第3のメ
モリ、5・・・・・・アドレス拡張回路、8・・・・・
・プログラムメモリ、7・・・・・・デコーダ、8・・
・・・・インバータ。
代理人 弁理士 小 俣 欽 司
第 1 図
第 2 図
インバータ
第 3 図
第 4 図1 is a diagram showing the principle of the present invention, FIG. 2 is a diagram illustrating an embodiment of the invention, FIG. 3 is a conventional diagram, FIG. 4 is a flowchart of FIG. 2, and FIG. 5 is a program memory 6. FIG. 6 is a flowchart of FIG. 1. 1... CPU, 2... First memory,
3...Second memory, 4...Third memory, 5...Address extension circuit, 8...
・Program memory, 7... Decoder, 8...
...Inverter. Agent Patent Attorney Kinji Omata Figure 1 Figure 2 Inverter Figure 3 Figure 4
Claims (1)
リのデータを第2のメモリに転送する制御回路において
、 拡張ビットを有するプログラムメモリと、 前記拡張ビット出力をデコードし、第1のメモリまたは
第2のメモリのどれか1つを選択するデコーダとを備え
、 メモリ読み出し時と、書き込み時で異なるメモリが許可
となるようにあらかじめ拡張ビットをセットしたプログ
ラムをCPUが実行することによりデータの転送を行う
ことを特徴とするメモリ間のデータ転送制御回路。[Scope of Claims] 1. A control circuit for transferring data of a first memory belonging to the same address space to a second memory by a CPU, comprising: a program memory having an extension bit; memory or a decoder for selecting one of the second memory, and the CPU executes a program in which an extension bit is set in advance so that different memories are permitted when reading and writing the memory. A data transfer control circuit between memories, characterized in that the circuit transfers data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3133285A JPS61190648A (en) | 1985-02-19 | 1985-02-19 | Inter-memory data transfer control circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3133285A JPS61190648A (en) | 1985-02-19 | 1985-02-19 | Inter-memory data transfer control circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS61190648A true JPS61190648A (en) | 1986-08-25 |
Family
ID=12328300
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3133285A Pending JPS61190648A (en) | 1985-02-19 | 1985-02-19 | Inter-memory data transfer control circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS61190648A (en) |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5595160A (en) * | 1979-01-10 | 1980-07-19 | Hitachi Ltd | Memory control system |
-
1985
- 1985-02-19 JP JP3133285A patent/JPS61190648A/en active Pending
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5595160A (en) * | 1979-01-10 | 1980-07-19 | Hitachi Ltd | Memory control system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0238975B2 (en) | ||
| JPH0346850B2 (en) | ||
| US4949242A (en) | Microcomputer capable of accessing continuous addresses for a short time | |
| JPS6113629B2 (en) | ||
| JPH05197619A (en) | Memory control circuit for multi-cpu | |
| JPS6319058A (en) | Memory device | |
| JPS6233603B2 (en) | ||
| JP3597548B2 (en) | Digital signal processor | |
| JPS5838876B2 (en) | Shumemory Seigiyohoshiki | |
| JPS63317857A (en) | Memory access circuit | |
| KR100492985B1 (en) | How to Control Working Register Blocks and Working Register Blocks for Microcontrollers or Microprocessors | |
| JP3091522B2 (en) | Memory circuit | |
| JPS6126701B2 (en) | ||
| JPH05342096A (en) | Program execution method of programmable controller | |
| JPS6231382B2 (en) | ||
| JPS63234496A (en) | Semiconductor memory | |
| JPH0619710B2 (en) | Register control method | |
| JPH06103056A (en) | Address controller | |
| JPS60142450A (en) | Storage system | |
| JPS60241144A (en) | Memory block selection circuit | |
| JPS6258340A (en) | Register updating mechanism | |
| JPH04271432A (en) | Operand designating method and central arithmetic processing unit using this method | |
| JPH03142544A (en) | Memory access system | |
| JPS6260034A (en) | Stored program system controller | |
| JPH01261767A (en) | Data communication system |