JPH04291655A - Inter-memory data transfer control system - Google Patents

Inter-memory data transfer control system

Info

Publication number
JPH04291655A
JPH04291655A JP5656791A JP5656791A JPH04291655A JP H04291655 A JPH04291655 A JP H04291655A JP 5656791 A JP5656791 A JP 5656791A JP 5656791 A JP5656791 A JP 5656791A JP H04291655 A JPH04291655 A JP H04291655A
Authority
JP
Japan
Prior art keywords
data
memory
address
area
transfer
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.)
Withdrawn
Application number
JP5656791A
Other languages
Japanese (ja)
Inventor
Masaru Kato
勝 加藤
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP5656791A priority Critical patent/JPH04291655A/en
Publication of JPH04291655A publication Critical patent/JPH04291655A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

PURPOSE:To transfer data between plural memories for the same transfer time without operating external data in respect to a control system for controlling the data storing positions of a transfer destination and a transfer origin in the case of transferring the data between the memories. CONSTITUTION:An additional memory 2 consisting of an area having the same constitution as a memory 1 connected to a CPU 5 is constituted so as to be duplexed to the memory 1, an address conversion part 3 for adding '1' to the address of the memory 2 and an output selection part 4 for selecting a write output to the memory based on a transfer pattern instruction outputted from the CPU 5 are also included in the control system and constituted so that the memory 1 stores data based on address setting from the CPU 5, the conversion part 3 converts an address outputted from the CPU 5 and adds '1' to the converted value, the memory 2 stores a value obtained by shifting the same data as the data of the memory 1 only by an area and the output selection part 4 writes the reading data of the area of the memory 1 in another area of the memory 2.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明はメモリ間のデータ転送を
行う場合の転送元と転送先のデータ格納位置の制御方式
に関する。交換機において加入者回路からメモリへデー
タの書込みと読出しを行う場合、通常CPUを経由して
メモリの領域内に転送元と転送先の領域を設けて互いに
データの送受を行っている。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for controlling data storage locations of a transfer source and a transfer destination when data is transferred between memories. When writing and reading data from a subscriber circuit to a memory in an exchange, normally a transfer source and a transfer destination area are provided in the memory area via a CPU, and data is sent and received from each other.

【0002】メモリ間のデータ転送方式の接続構成例を
図5に示す。図において、21は加入者回路、22はI
/Oインタフェース、23はCPU、24はメモリを示
す。加入者回路21からI/Oインタフェース22を経
由して送受信されるデータは、CPU23により処理さ
れてメモリ24から読出されると共にメモリ24に書込
まれる。この読出し又は書込まれるデータバスは16ビ
ットで構成され、かつデータが8ビット(1バイト)単
位で取り扱われている。
FIG. 5 shows an example of a connection configuration of a data transfer method between memories. In the figure, 21 is a subscriber circuit, 22 is an I
/O interface, 23 is a CPU, and 24 is a memory. Data transmitted and received from the subscriber circuit 21 via the I/O interface 22 is processed by the CPU 23, read out from the memory 24, and written into the memory 24. This read or write data bus is composed of 16 bits, and data is handled in units of 8 bits (1 byte).

【0003】メモリ24は読出しのための転送元領域と
書込みのための転送先領域とからなり、各領域は奇数番
目のアドレスと偶数番目のアドレスによりデータの格納
順位が定められている。したがって転送元の偶数番目の
アドレスで読出されたデータ領域
The memory 24 consists of a transfer source area for reading and a transfer destination area for writing, and the data storage order of each area is determined by odd-numbered addresses and even-numbered addresses. Therefore, the data area read at the even numbered address of the transfer source

〔0〕のデータは、C
PU23で処理されて転送先の偶数番目のアドレスのデ
ータ領域
[0] data is C
Data area of even numbered address of transfer destination processed by PU23

〔0〕に書込まれる。同様に転送元の奇数番目
のアドレスで読出されたデータ領域〔1〕のデータは、
CPU23で処理されて転送先の奇数番目のアドレスの
データ領域〔1〕に書込まれる。即ちデータ領域
Written to [0]. Similarly, the data in data area [1] read at the odd-numbered address of the transfer source is
It is processed by the CPU 23 and written to the data area [1] of the odd numbered address of the transfer destination. i.e. data area

〔0〕
と〔1〕の1バイトずつのデータは1ワード16ビット
のデータとして、同じ領域から読出され、同じ領域に書
込みが行われる。しかし転送元の偶数番目のアドレスで
読出されたデータ領域
[0]
The 1-byte data of and [1] are read from the same area and written to the same area as 1 word of 16-bit data. However, the data area read at the even numbered address of the transfer source

〔0〕のデータを転送先の奇数番
目のアドレスのデータ領域〔1〕に書込む場合や、転送
元の奇数番目のアドレスで読出されたデータ領域〔1〕
のデータを転送先の偶数番目のアドレスのデータ領域〔
2〕に書込む場合は、CPU23内で転送領域の変換処
理が必要である。
When data [0] is written to the data area [1] at the odd numbered address of the transfer destination, or when the data area [1] is read at the odd numbered address of the transfer source.
Transfer data to the data area of the even-numbered address [
2], it is necessary to convert the transfer area within the CPU 23.

【0004】0004

【従来の技術】従来の転送方式の機能ブロック接続構成
図を図6に示す。図において、点線で囲まれた部分がメ
モリ領域を示し、MEM−U1とMEM−L1の上部と
下部の(8ビット×m)メモリ領域から構成され、通常
のメモリアクセスを行う。MEM−L1側がデータバス
上のD00 〜D07 を、MEM−U1側がデータバ
ス上のD08 〜D15 を記憶する。アドレスバスか
らのアドレスに従ってデータバス上のデータをそれぞれ
の領域に記憶する。
2. Description of the Related Art A functional block connection diagram of a conventional transfer system is shown in FIG. In the figure, the area surrounded by dotted lines indicates the memory area, which is composed of the upper and lower (8 bits x m) memory areas of MEM-U1 and MEM-L1, and performs normal memory access. The MEM-L1 side stores D00 to D07 on the data bus, and the MEM-U1 side stores D08 to D15 on the data bus. Data on the data bus is stored in each area according to the address from the address bus.

【0005】データバスが16ビットで構成され、かつ
データが8ビット(1バイト)単位で取り扱われる装置
において、メモリ間のデータ転送を行う場合、転送先頭
アドレスの組合せにより転送パターンの組合せが4種類
ある。従来の転送パターンの切替方法を図7に示す。図
において、(1)’は偶数アドレス→偶数アドレス、(
2)’は奇数アドレス→奇数アドレス、(3)’は偶数
アドレス→奇数アドレス、(4)’は奇数アドレス→偶
数アドレスの場合を示す。なおA,B,C,D,E,F
は1バイトのデータ領域を示す。 (1)’偶数アドレス→偶数アドレスの場合は、Aの転
送元の読出し側の最初のアドレスが偶数で転送先の書込
み側の最初のアドレスが偶数であると、1ワードのデー
タABはそのまま転送される。次の1ワードのデータC
DもEFもそのまま転送される。 (2)’奇数アドレス→奇数アドレスの場合は、Aの転
送元の読出し側の最初のアドレスが奇数で転送先の書込
み側の最初のアドレスが奇数であると、1バイトのデー
タAが1バイトのデータAとして転送され、次の1ワー
ドのデータBCとデータEDはそのまま転送され、次の
1バイトのデータFは1バイトのデータFとして転送さ
れる。 (3)’偶数アドレス→奇数アドレスの場合は、Aの転
送元の読出し側の最初のアドレスが偶数で転送先の書込
み側の最初のアドレスが奇数であると、1バイトのデー
タAが先ず1バイトのデータAとして転送され、次のデ
ータBとデータCとを取り出して1ワードのデータBC
として転送する。同様にデータDとEを取り出して1ワ
ードのデータDEとして転送する。次の1バイトのデー
タFは1バイトのデータFとして転送する。 (4)’奇数アドレス→偶数アドレスの場合は、Aの転
送元の読出し側の最初のアドレスが奇数で転送先の書込
み側の最初のアドレスが偶数であると、1バイトのデー
タAとデータBとを取り出してデータABとして転送さ
れ、次のデータCとデータDとを取り出して1ワードの
データCDとして転送する。同様にデータEとFを取り
出して1ワードのデータEFとして転送する。
[0005] When data is transferred between memories in a device where the data bus is composed of 16 bits and data is handled in units of 8 bits (1 byte), there are four types of combinations of transfer patterns depending on the combination of transfer start addresses. be. FIG. 7 shows a conventional transfer pattern switching method. In the figure, (1)' means even address → even address, (
2)' shows the case of odd number address → odd number address, (3)' shows the case of even number address → odd number address, and (4)' shows the case of odd number address → even number address. Note that A, B, C, D, E, F
indicates a 1-byte data area. (1) In the case of even address → even address, if the first address on the read side of the transfer source of A is an even number and the first address on the write side of the transfer destination is an even number, 1 word of data AB will be transferred as is. be done. Next 1 word data C
Both D and EF are transferred as is. (2) In the case of 'odd address → odd number address, if the first address on the read side of the transfer source of A is an odd number and the first address on the write side of the transfer destination is an odd number, 1 byte of data A is 1 byte. The next 1 word of data BC and data ED are transferred as they are, and the next 1 byte of data F is transferred as 1 byte of data F. (3) In the case of even number address → odd number address, if the first address on the read side of the transfer source of A is an even number and the first address on the write side of the transfer destination is an odd number, 1 byte of data A is first It is transferred as a byte of data A, and the next data B and data C are taken out and 1 word of data BC is created.
Transfer as . Similarly, data D and E are extracted and transferred as one word of data DE. The next 1 byte of data F is transferred as 1 byte of data F. (4) In the case of 'odd address → even address, if the first address on the read side of the transfer source of A is an odd number and the first address on the write side of the transfer destination is an even number, 1 byte of data A and data B is extracted and transferred as data AB, and the next data C and data D are extracted and transferred as one word of data CD. Similarly, data E and F are extracted and transferred as one word of data EF.

【0006】[0006]

【発明が解決しようとする課題】上記(1)’に関して
は、通常の手段でメモリからデータバス上に16ビット
(1ワード)のデータを読出し、そのデータをそのまま
転送先のメモリに書込めばよく、(2)’に関しても同
様に、まず8ビット(1バイト)分を転送すれば、(1
)’のパターンと同じに行える。しかし(3)’と(4
)’の場合は、1バイトづつメモリから読出し、データ
バス上の上位と下位を入替えてからメモリに書込まなけ
ればならないため、(1)’と(2)’のデータ転送に
比べて余分な操作が必要となり、かつ、データ転送時間
も単純にいえば倍以上かかることになる。
[Problem to be Solved by the Invention] Regarding (1)' above, if you read 16 bits (1 word) of data from the memory onto the data bus using normal means and write that data as is to the destination memory. Similarly for (2)', if you first transfer 8 bits (1 byte), then (1
)' pattern. However, (3)' and (4
)', it is necessary to read one byte at a time from the memory, swap the upper and lower parts on the data bus, and then write it to the memory, which requires extra data transfer compared to (1)' and (2)'. In addition, the data transfer time will be more than twice as long.

【0007】本発明では前記(1)’〜(4)’のどの
場合においても、同一の転送時間で、かつ外部でのデー
タの操作なしで、メモリ間のデータ転送を行うようにす
ることを目的とする。
[0007] In any of the above cases (1)' to (4)', the present invention aims to transfer data between memories in the same transfer time and without external data manipulation. purpose.

【0008】[0008]

【課題を解決するための手段】本発明の原理構成図を図
1に示す。図において、1は上部データ領域と下部デー
タ領域とからなるメモリ、2はメモリ1と同一構成の領
域からなる追加メモリ、3はアドレスを+1加算するア
ドレス変換部、4はCPUからの転送パターン指示によ
りメモリへの書込み出力を選択する出力選択部、5はメ
モリにアドレスバスによりアドレス、データバスにより
上位と下位のデータ、制御バスにより読出し/書込みの
制御信号を送出し、出力選択部へは転送パターン指示を
送出するCPUを示す。
[Means for Solving the Problems] A diagram of the principle configuration of the present invention is shown in FIG. In the figure, 1 is a memory consisting of an upper data area and a lower data area, 2 is an additional memory consisting of an area with the same configuration as memory 1, 3 is an address conversion unit that adds +1 to an address, and 4 is a transfer pattern instruction from the CPU. 5 is an output selector that selects the write output to the memory. 5 sends an address to the memory via the address bus, upper and lower data via the data bus, and read/write control signals via the control bus, which are transferred to the output selector. Indicates the CPU that sends the pattern instruction.

【0009】メモリ1はCPU5からのアドレス設定に
より上部データ領域と下部データ領域にデータを記憶し
、メモリ2はCPU5からのアドレスをアドレス変換部
3で変換して+1設定し、メモリ1へのデータと同一の
データを1つ領域をずらして下部データ領域と上部デー
タ領域に記憶する。出力選択部4は常時はメモリ1の読
出しと書込みをメモリ1の領域で行うようにし、メモリ
2の読出しと書込みはメモリ2の領域で行うようにする
。CPU5からの転送パターン指示により、出力選択部
4はメモリ1の領域の読出しデータをメモリ2の別の領
域に書込むようにする。出力選択部4は転送パターンに
よりどちらをデータバス上に出力するかを決め、特定番
地のデータをバス上の上位/下位どちらにも出力できる
ように構成する
The memory 1 stores data in the upper data area and the lower data area according to the address setting from the CPU 5, and the memory 2 converts the address from the CPU 5 using the address converter 3 and sets it by +1, and stores the data in the memory 1. The same data is stored in the lower data area and the upper data area with one area shifted. The output selection unit 4 always performs reading and writing from the memory 1 in the memory 1 area, and always performs reading and writing from the memory 2 in the memory 2 area. In response to a transfer pattern instruction from the CPU 5, the output selection unit 4 writes the read data in an area of the memory 1 to another area of the memory 2. The output selection unit 4 determines which one to output onto the data bus based on the transfer pattern, and is configured so that data at a specific address can be output to either the upper or lower part of the bus.

【0010】0010

【作用】本発明のメモリ構成の概念図を図2に示す。図
(a)は領域変換しない場合、図(b)は領域変換をす
る場合の状態を示す。図において、A,B,C,D,E
,Fは各1バイトのデータを示し、メモリの上部領域又
は下部領域に記憶され、CPUからの書込み/読出し制
御によりデータバスの上位データと下位データを選択す
る。
[Operation] A conceptual diagram of the memory structure of the present invention is shown in FIG. Figure (a) shows the state when area conversion is not performed, and Figure (b) shows the situation when area conversion is performed. In the figure, A, B, C, D, E
, F each represent one byte of data, which is stored in the upper or lower area of the memory, and the upper data and lower data of the data bus are selected under write/read control from the CPU.

【0011】図(a)の領域変換しない場合は、メモリ
1の下部領域と上部領域に書込まれたデータバスの下位
データA,C,Eと上位データB,D,Fとは、読出し
時もデータバスの下位データA,C,Eと上位データB
,D,Fをメモリ1の下部領域と上部領域から読出す。
When the area shown in FIG. 1 (a) is not converted, the lower data A, C, E and upper data B, D, F of the data bus written in the lower area and upper area of memory 1 are Lower data A, C, E and upper data B of the data bus
, D, F from the lower and upper regions of the memory 1.

【0012】図(b)の領域変換をする場合は、書込み
時はメモリ2の上部領域にはデータバスの上位データA
,C,Eを書込み、メモリ2の下部領域にはデータバス
の下位データB,D,Fを書込む。読出し時はメモリ2
の下部領域からデータバスの上位データA,C,Eを読
出し、メモリ2の上部領域からデータバスの下位データ
B,D,Fを読出す。
When performing the area conversion as shown in FIG.
, C, and E, and lower-order data B, D, and F of the data bus are written in the lower area of the memory 2. Memory 2 when reading
The upper data bus A, C, and E are read from the lower area of the memory 2, and the lower data B, D, and F of the data bus are read from the upper area of the memory 2.

【0013】[0013]

【実施例】本発明の転送方式の機能ブロック構成図の実
施例を図3に示す。図において、11はメモリ、12は
追加メモリ、13はアドレス変換部、14は出力選択部
を示す。 第1のメモリ11は上部領域部MEM−U1と下部領域
部MEM−L1とからなり、第2のメモリ12は上部領
域部MEM−U2と下部領域部MEM−L2とからなり
、アドレス変換部13は+1加算器からなり、出力変換
部14はセレクタS1とセレクタS2からなる。出力変
換部14内のデータバスの▽印はデータの読出し方向及
び書込み方向を示す。CPUからのバスはアドレスバス
AXX−00、データバスD15−08, D07−0
0、制御線R/W 、転送パターン指示線PTからなる
。アドレスバスとデータバスは太線で示し、制御線は細
線で示す。
Embodiment FIG. 3 shows an embodiment of a functional block diagram of the transfer method of the present invention. In the figure, 11 is a memory, 12 is an additional memory, 13 is an address conversion section, and 14 is an output selection section. The first memory 11 includes an upper area MEM-U1 and a lower area MEM-L1, the second memory 12 includes an upper area MEM-U2 and a lower area MEM-L2, and an address conversion unit 13. consists of a +1 adder, and the output conversion section 14 consists of a selector S1 and a selector S2. The ▽ mark on the data bus in the output converter 14 indicates the data read direction and data write direction. Buses from the CPU are address bus AXX-00, data bus D15-08, D07-0.
0, a control line R/W, and a transfer pattern instruction line PT. Address buses and data buses are shown with thick lines, and control lines are shown with thin lines.

【0014】図中、メモリ11は従来からあるメモリで
、メモリ領域MEM−U1/L1 は8ビット×m構成
であり、通常のメモリアクセスを行う。MEM−L1側
がデータバス上のD00 〜D07 を、MEM−U1
側がデータバス上のD08 〜D15 を記憶する。そ
れと同時に本発明で追加されたメモリ12のメモリ領域
MEM−U2/L2にアドレス変換部13の変換回路に
より+1されたアドレスが指示され、そのアドレスに従
ってMEM−L2側にデータバス上のD08 〜D15
 を、MEM−U2側にデータバス上のD00 〜D0
7 を記憶する。結果的には各メモリに同時に書込まれ
ることになる。読出し時にはMEM−L1側がデータバ
ス上のD00 〜D07 に、MEM−U1がデータバ
ス上のD08 〜D15 に出力するために、出力選択
部14のセレクタS1とS2の■側に接続される。それ
と同時に、本発明で追加されたメモリ12の領域MEM
−U2/L2 にアドレス変換部13により+1された
アドレスが指示され、そのアドレスに従ってMEM−L
2側がデータバス上のD00 〜D07 に、MEM−
U2側がデータバス上のD08 〜D15 に出力する
ために、出力選択部14のセレクタS1とS2の■側に
接続される。
In the figure, the memory 11 is a conventional memory, and the memory area MEM-U1/L1 has an 8-bit×m configuration and performs normal memory access. The MEM-L1 side transfers D00 to D07 on the data bus to the MEM-U1
side stores D08 to D15 on the data bus. At the same time, an address incremented by +1 is specified by the conversion circuit of the address conversion unit 13 to the memory area MEM-U2/L2 of the memory 12 added in the present invention, and according to the address, D08 to D15 on the data bus are sent to the MEM-L2 side.
, D00 to D0 on the data bus on the MEM-U2 side.
Remember 7. As a result, the data will be written to each memory simultaneously. At the time of reading, the MEM-L1 side outputs to D00 to D07 on the data bus, and the MEM-U1 outputs to D08 to D15 on the data bus. At the same time, the area MEM of the memory 12 added in the present invention
-U2/L2 is given an address incremented by 1 by the address converter 13, and according to that address, MEM-L
The 2nd side connects MEM- to D00 to D07 on the data bus.
The U2 side is connected to the ■ side of the selectors S1 and S2 of the output selection section 14 in order to output to D08 to D15 on the data bus.

【0015】出力選択部14のセレクタS1とS2は、
CPUからの転送指示パターンにより■か■のルートを
選択し、どちらをデータバス上に出力するかを決める。 結果的にはある特定番地のデータを、バス上の上位/下
位どちらにも出力することが可能である。即ち出力選択
部14のセレクタS1とS2の■側を選択すれば、メモ
リ11により読出しと書込みが行われ、セレクタS1と
S2の■側を選択すれば、メモリ12により読出しが行
われ、メモリ11により書込みが行われる。
Selectors S1 and S2 of the output selection section 14 are as follows:
Depending on the transfer instruction pattern from the CPU, either the ■ or ■ route is selected, and which route is to be output onto the data bus is determined. As a result, it is possible to output data at a specific address to either the upper or lower end on the bus. That is, if the ■ side of the selectors S1 and S2 of the output selection section 14 is selected, reading and writing are performed by the memory 11, and when the ■ side of the selectors S1 and S2 is selected, the reading is performed by the memory 12, and the memory 11 Writing is performed by.

【0016】各転送パターンの切替実施例を図4に示す
。(1) は偶数アドレス→偶数アドレス、(2) は
奇数アドレス→奇数アドレス、(3)は偶数アドレス→
奇数アドレス、(4) は奇数アドレス→偶数アドレス
の転送パターンを示す。図において、転送元で読出し、
転送先に書込むデータをA,B,C,D,E,Fで示す
。MEM−U1/L1はメモリ11のメモリ領域、ME
M−U2/L2 はメモリ12のメモリ領域を示し、D
07−D00,D08−D15 はデータバス上のデー
タを示す。 (1) 偶数アドレス→偶数アドレスの場合、転送元の
データは偶数アドレスをMEM−U1/L1 で、奇数
アドレスをMEM−U2/L2 で読出し、転送先のデ
ータは偶数アドレスをMEM−U1/L1 に書込み、
同時に奇数アドレスをMEM−U2/L2 に書込む。 従って、転送元のMEM−U2/L2 は使用せず、転
送元のMEM−U1/L1 を読出して転送先のMEM
−U1/L1 に偶数アドレスを書込み、同時にMEM
−U2/L2 に奇数アドレスを書込むが、AB,CD
,EFの各ワードデータをメモリ11の間で転送する。 (2) 奇数アドレス→奇数アドレスの場合、転送元の
データは奇数アドレスをMEM−U1/L1 で、偶数
アドレスをMEM−U2/L2 で読出し、転送先のデ
ータは奇数アドレスをMEM−U1/L1 に書込み、
同時に偶数アドレスをMEM−U2/L2 に書込む。 従って、転送元のMEM−U2/L2 は使用せず、転
送元のMEM−U1/L1 を読出して転送先のMEM
−U1/L1 に奇数アドレスを書込み、同時にMEM
−U2/L2 に偶数アドレスを書込むが、Aの1バイ
トとBC,DEの各ワードとFの1バイトをメモリ11
の間で転送する。 (3) 偶数アドレス→奇数アドレスの場合、転送元の
データは偶数アドレスをMEM−U1/L1 で、奇数
アドレスをMEM−U2/L2 で読出し、転送先のデ
ータは奇数アドレスをMEM−U1/L1 に書込み、
同時に偶数アドレスをMEM−U2/L2 に書込む。 従って、転送元のMEM−U1/L1 は使用せず、転
送元のMEM−U2/L2 を読出して転送先のMEM
−U1/L1 に奇数アドレスを書込み、同時にMEM
−U2/L2 に偶数アドレスを書込むが、Aの1バイ
トとBC,DEの各ワードとFの1バイトをメモリ12
から転送する。 (4) 奇数アドレス→偶数アドレスの場合、転送元の
データは奇数アドレスをMEM−U1/L1 で、偶数
アドレスをMEM−U2/L2 で読出し、転送先のデ
ータは偶数アドレスをMEM−U1/L1 に書込み、
同時に奇数アドレスをMEM−U2/L2 に書込む。 従って、転送元のMEM−U1/L1 は使用せず、転
送元のMEM−U2/L2 を読出して転送先のMEM
−U1/L1 に奇数アドレスを書込み、同時にMEM
−U2/L2 に偶数アドレスを書込むが、AB,CD
,EFの各ワードをメモリ12から転送する。
FIG. 4 shows an example of switching between each transfer pattern. (1) is even number address → even number address, (2) is odd number address → odd number address, (3) is even number address →
Odd address (4) indicates a transfer pattern from odd address to even address. In the figure, read at the transfer source,
The data to be written to the transfer destination is indicated by A, B, C, D, E, and F. MEM-U1/L1 is the memory area of the memory 11, ME
M-U2/L2 indicates the memory area of the memory 12, and D
07-D00, D08-D15 indicate data on the data bus. (1) In the case of even address → even address, the transfer source data is read from the even address by MEM-U1/L1 and the odd address by MEM-U2/L2, and the transfer destination data is read from the even address by MEM-U1/L1. write to,
At the same time, write the odd address to MEM-U2/L2. Therefore, the transfer source MEM-U2/L2 is not used, but the transfer source MEM-U1/L1 is read and the transfer destination MEM-U2/L2 is not used.
-Write an even address to U1/L1 and write MEM at the same time.
-Write an odd address to U2/L2, but AB, CD
, EF are transferred between the memories 11. (2) In the case of odd address→odd address, the transfer source data is read from the odd address using MEM-U1/L1 and the even address from MEM-U2/L2, and the transfer destination data is read from the odd address using MEM-U1/L1. write to,
At the same time, write an even address to MEM-U2/L2. Therefore, the transfer source MEM-U2/L2 is not used, but the transfer source MEM-U1/L1 is read and the transfer destination MEM-U2/L2 is not used.
-Write an odd address to U1/L1 and write MEM at the same time.
-Write an even address to U2/L2, but write 1 byte of A, each word of BC, DE, and 1 byte of F to memory 11.
Transfer between. (3) In the case of an even number address → an odd number address, the transfer source data is read from the even address by MEM-U1/L1 and the odd number address by MEM-U2/L2, and the transfer destination data is read from the odd address by MEM-U1/L1. write to,
At the same time, write an even address to MEM-U2/L2. Therefore, the transfer source MEM-U1/L1 is not used, but the transfer source MEM-U2/L2 is read and the transfer destination MEM
-Write an odd address to U1/L1 and write MEM at the same time.
-Write an even address to U2/L2, but write 1 byte of A, each word of BC, DE, and 1 byte of F to memory 12.
Transfer from (4) In the case of odd address → even address, the transfer source data is read from the odd address using MEM-U1/L1 and the even address using MEM-U2/L2, and the transfer destination data is read from the even address using MEM-U1/L1. write to,
At the same time, write the odd address to MEM-U2/L2. Therefore, the transfer source MEM-U1/L1 is not used, but the transfer source MEM-U2/L2 is read and the transfer destination MEM
-Write an odd address to U1/L1 and write MEM at the same time.
-Write an even address to U2/L2, but AB, CD
, EF are transferred from memory 12.

【0017】上記の例に於いて、(1) と(2) の
場合は出力選択部14のセレクタS1とS2の■側を選
択してメモリ11間転送を行って書込み処理を行い、(
3) と(4) の場合は出力選択部14のセレクタS
1とS2の■側を選択してメモリ12間転送を行って書
込み処理を行う。
In the above example, in the case of (1) and (2), the selectors S1 and S2 of the output selection unit 14 are selected on the ■ side, and the data is transferred between the memories 11 to perform the writing process, and (
3) and (4), the selector S of the output selection section 14
1 and the ■ side of S2 are selected and data is transferred between the memories 12 to perform a write process.

【0018】[0018]

【発明の効果】本発明により、従来技術の問題点であっ
たデータ転送パターンによる転送時間が倍以上になるこ
とがなくなり、かつ、外部でのデータの操作が不要とな
るためデータ転送パターンを考慮せず、高速なメモリ間
のデータ転送が可能になる。従ってシステム全体の処理
能力が向上する。
[Effects of the Invention] The present invention eliminates the problem of the prior art from doubling the transfer time due to the data transfer pattern, and also eliminates the need for external data manipulation, so the data transfer pattern is taken into account. This enables high-speed data transfer between memories. Therefore, the processing capacity of the entire system is improved.

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

【図1】  本発明の原理構成図[Figure 1] Principle configuration diagram of the present invention

【図2】  本発明のメモリ構成の概念図[Figure 2] Conceptual diagram of the memory configuration of the present invention

【図3】  
実施例の機能ブロック構成図
[Figure 3]
Functional block configuration diagram of the embodiment

【図4】  転送パターン
の切替実施例
[Figure 4] Example of switching transfer pattern

【図5】  データ転送方式の接続構成例
[Figure 5] Connection configuration example of data transfer method

【図6】  従来例の機能ブロック構成図[Figure 6] Functional block configuration diagram of conventional example

【図7】  
転送パターンの切替従来例
[Figure 7]
Conventional example of transfer pattern switching

【符号の説明】[Explanation of symbols]

1,11,24  メモリ 2,12  追加メモリ 3,13  アドレス変換部 4,14  出力選択部 5,23  CPU 21  加入者回路 22  I/Oインタフェース 1, 11, 24 Memory 2,12 Additional memory 3,13 Address conversion section 4, 14 Output selection section 5,23 CPU 21 Subscriber circuit 22 I/O interface

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  データバスが16ビットで構成され、
かつデータが8ビット単位で取り扱われる装置において
、CPU(5)に接続される上部データ領域と下部デー
タ領域とからなるメモリ(1)に、該メモリ(1)と同
一構成の領域からなる追加メモリ(2)を設けて二重化
構成にし、該追加メモリ(2)にアドレスを+1加算す
るアドレス変換部(3)と、CPU(5)からの転送パ
ターン指示によりメモリ(1)への書込み出力を選択す
る出力選択部(4)を設け、メモリ(1)はCPU(5
)からのアドレス設定により上部データ領域と下部デー
タ領域にデータを記憶し、メモリ(2)はCPU(5)
からのアドレスをアドレス変換部(3)で変換して+1
設定し、メモリ(1)へのデータと同一のデータを1つ
領域をずらして下部データ領域と上部データ領域に記憶
すると共に、出力選択部(4)は常時はメモリ(1)の
読出しと書込みをメモリ(1)の領域で行うようにし、
メモリ(2)の読出しと書込みはメモリ(2)の領域で
行うようにし、CPU(5)からの転送パターン指示に
より出力選択部(4)はメモリ(1)の領域の読出しデ
ータをメモリ(2)の別の領域に書込むようにして、特
定番地のデータをバス上の上位/下位どちらにも出力で
きるようにすることを特徴とするメモリ間データ転送制
御方式。
Claim 1: The data bus is composed of 16 bits,
In a device in which data is handled in units of 8 bits, an additional memory consisting of an area having the same configuration as the memory (1) is added to the memory (1) consisting of an upper data area and a lower data area connected to the CPU (5). (2) is provided to create a duplex configuration, and an address converter (3) that adds +1 to the address to the additional memory (2) and selects the write output to the memory (1) based on a transfer pattern instruction from the CPU (5). The memory (1) is provided with an output selection section (4) to
), data is stored in the upper data area and lower data area according to the address settings from the memory (2) and the CPU (5).
The address from is converted by the address converter (3) and +1
The output selection unit (4) always reads and writes data to the memory (1), and stores the same data as the data to the memory (1) in the lower data area and the upper data area by shifting one area. is performed in the memory (1) area,
Reading and writing to and from the memory (2) are performed in the area of the memory (2), and according to a transfer pattern instruction from the CPU (5), the output selection unit (4) transfers read data from the area of the memory (1) to the memory (2). ), data at a specific address can be output to either the upper or lower end of the bus.
【請求項2】  上記データバスが8×nビットに拡張
されたシステムにおいて、メモリをn重化構成にし、デ
ータ書込み時にそれぞれのメモリにアドレスを1番地づ
つずらして書込むことを特徴とする請求項1記載のメモ
リ間データ転送制御方式。
2. A system in which the data bus is expanded to 8×n bits, wherein the memories are configured in n-layers, and when data is written, the address is shifted by one address to each memory and written. The inter-memory data transfer control method according to item 1.
JP5656791A 1991-03-20 1991-03-20 Inter-memory data transfer control system Withdrawn JPH04291655A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5656791A JPH04291655A (en) 1991-03-20 1991-03-20 Inter-memory data transfer control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5656791A JPH04291655A (en) 1991-03-20 1991-03-20 Inter-memory data transfer control system

Publications (1)

Publication Number Publication Date
JPH04291655A true JPH04291655A (en) 1992-10-15

Family

ID=13030716

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5656791A Withdrawn JPH04291655A (en) 1991-03-20 1991-03-20 Inter-memory data transfer control system

Country Status (1)

Country Link
JP (1) JPH04291655A (en)

Similar Documents

Publication Publication Date Title
JPH0238975B2 (en)
KR960004457B1 (en) Data transmission device
US5717874A (en) Apparatus for data transfer between image memory and external I/O device wherein inner registers set the image valid area, direction and moder of transfer
JPH04291655A (en) Inter-memory data transfer control system
JPH0279294A (en) Data length variable memory
JPS62182857A (en) Input and output controller
JPH03260750A (en) Dma transfer system
JPH0512883A (en) Sequential memory
JP2849804B2 (en) Memory access interface circuit and memory access method
JPS59151371A (en) Semiconductor memory element
JPH02110758A (en) Dma transfer system
JP2788250B2 (en) Digital signal switch and digital signal switch selection module
JPS63146143A (en) Transfer control system for storage device
JPS61112270A (en) Byte converter
JPH01233515A (en) information processing equipment
JPS6299826A (en) Data conversion selection method
JPS6312057A (en) Bus control system
JPH0844634A (en) Storage device
JPS6398046A (en) Memory controller
JPS63100550A (en) Controlling system for bit map memory
JPS62298990A (en) High speed memory device
JPH0667769A (en) Single chip microcomputer
JPS5913766B2 (en) Address control method
JPH04372039A (en) Dma transfer system
JPS63118965A (en) Dma word transfer system

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980514