JP2699482B2 - Data transfer control device - Google Patents

Data transfer control device

Info

Publication number
JP2699482B2
JP2699482B2 JP29687988A JP29687988A JP2699482B2 JP 2699482 B2 JP2699482 B2 JP 2699482B2 JP 29687988 A JP29687988 A JP 29687988A JP 29687988 A JP29687988 A JP 29687988A JP 2699482 B2 JP2699482 B2 JP 2699482B2
Authority
JP
Japan
Prior art keywords
data
interface
local memory
unit
byte
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.)
Expired - Fee Related
Application number
JP29687988A
Other languages
Japanese (ja)
Other versions
JPH02141860A (en
Inventor
幸男 内山
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 JP29687988A priority Critical patent/JP2699482B2/en
Publication of JPH02141860A publication Critical patent/JPH02141860A/en
Application granted granted Critical
Publication of JP2699482B2 publication Critical patent/JP2699482B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)
  • Information Transfer Systems (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理装置に利用する。本発明はデータ転
送制御を行うデータ転送制御装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention is used for an information processing apparatus. The present invention relates to a data transfer control device that performs data transfer control.

〔概要〕〔Overview〕

本発明はパーシャルライト可能インタフェースからパ
ーシャルライト不可能インタフェースにデータ転送を行
うデータ転送インタフェースにおいて、 送られてきたデータがすべて有効なときにはそのまま
転送し、一部有効なデータのときにはバイト位置を変更
するとともに、マスク情報に基づいてアドレス値を演算
しローカルメモリを指定してデータの書込みおよび読出
を行うことにより、 少ないハードウェア構成で、かつ単純な制御によりデ
ータ転送を行うことができるようにしたものである。
The present invention relates to a data transfer interface for transferring data from a partially writable interface to a partially writable interface. In the data transfer interface, when all the transmitted data is valid, the data is transferred as it is, and when the data is partially valid, the byte position is changed. By performing an address value calculation based on mask information and designating a local memory to perform data writing and reading, data transfer can be performed with a small hardware configuration and simple control. is there.

〔従来の技術〕[Conventional technology]

パーシャルライト可能なインタフェースからパーシャ
ルライト不可能なインタフェースへデータ転送を行う場
合には、パーシャルライト可能なインタフェース上のワ
ードの途中より転送されたデータをパーシャルライト不
可能なインタフェースのワードの先頭から転送しなけれ
ばならない。たとえば、パーシャルライト可能なインタ
フェースが2バイトのとき第1ワードの下位バイトより
有効なデータが転送されてくるような場合である。この
とき、パーシャルライト不可能なインタフェースも2バ
イトであるとすると、このインタフェースに送出すると
きは第1ワードの上位より有効なデータを送出しなけれ
ばならない。
When transferring data from a partially writable interface to a partially writable interface, data transferred from the middle of a word on the partially writable interface must be transferred from the beginning of the word on the partially writable interface. There must be. For example, there is a case where valid data is transferred from the lower byte of the first word when the interface capable of partial writing is 2 bytes. At this time, assuming that the interface for which partial writing is not possible is also 2 bytes, when transmitting to this interface, valid data must be transmitted from the upper part of the first word.

従来は、受信すべきデータを2ワード分データ転送装
置内にあるデータ転送用の二つのレジスタに格納した
後、第一のデータ転送用レジスタの下位1バイトをロー
カルメモリの上位1バイトへ、第二のデータ転送用レジ
スタの上位1バイトのデータをローカルメモリの下位1
バイトへ転送して格納し、さらに、次の1ワード分のデ
ータを第一のデータ転送用レジスタに格納し、続いて第
二のデータ転送用レジスタの下位1バイトをローカルメ
モリの上位1バイトへ第一のデータ転送用レジスタの上
位1バイトをローカルメモリの下位1バイトへ転送して
格納していた。以後2ワードの第一および第二のデータ
転送用レジスタを交互に使用して同様に転送することに
よりローカルメモリへデータを格納し、このデータをパ
ーシャルライト不可能なインタフェースに直接送出して
データ転送を行っていた。
Conventionally, after data to be received is stored in two registers for data transfer in the data transfer device for two words, the lower one byte of the first data transfer register is transferred to the upper one byte of the local memory. The upper 1 byte data of the second data transfer register is transferred to the lower 1 byte of the local memory.
And stores the next one word of data in the first data transfer register, and then transfers the lower one byte of the second data transfer register to the upper one byte of the local memory. The upper 1 byte of the first data transfer register is transferred to the lower 1 byte of the local memory and stored. Thereafter, data is stored in the local memory by alternately using the first and second data transfer registers of two words to store data, and this data is directly transmitted to an interface in which partial writing is not possible to transfer data. Had gone.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

上述した従来のデータ転送装置では、パーシャルライ
ト可能なインタフェースからパーシャルライト不可能な
インタフェースへデータ転送を行う場合、前者インタフ
ェースの2ワード分のレジスタを持ちシステムメモリか
らのデータをそれらのレジスタに交互に受信することに
よりデータ転送を行っているために、ハードウェアが大
きくなり制御が複雑になる欠点を有していた。
In the above-described conventional data transfer device, when data is transferred from a partially writable interface to a partially non-writable interface, the former has two words of registers and the data from the system memory is alternately written to those registers. Since the data transfer is performed by receiving the data, the hardware becomes large and the control becomes complicated.

本発明はこのような欠点を除去するもので、少ない回
路構成で、かつ単純な制御によりパーシャルライト可能
なインタフェースからパーシャルライト不可能なインタ
フェースへデータを転送することができる装置を提供す
ることを目的とする。
An object of the present invention is to provide an apparatus which can eliminate such disadvantages and can transfer data from an interface capable of partially writing to an interface capable of partially writing with a simple circuit and with a simple control. And

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

本発明は、転送元であるパーシャルライト可能な第一
インタフェースと、転送先であるパーシャルライト不可
能な第二インタフェースとに接続され、前記第一インタ
フェースより転送されたデータを一時記憶するローカル
メモリ部と、このローカルメモリ部のアドレスを生成す
るアドレス手段とを備えたデータ転送制御装置におい
て、前記第一インタフェースに入力するマスク状態を記
憶するマスク記憶部を設け、上記ローカルメモリ部は並
列的に同等容量のメモリが配置され、このローカルメモ
リ部に前記マスク記憶部の内容にしたがって前記第一イ
ンタフェースを並列的に配置されたメモリに分配するデ
ータハンドリング部を備え、前記アドレス手段は、マス
ク記憶部の内容にしたがって前記メモリ部に与えるアド
レスを演算する手段を含むことを特徴とする。
The present invention is directed to a local memory unit that is connected to a first interface that can be partially written as a transfer source and a second interface that cannot be partially written as a transfer destination, and temporarily stores data transferred from the first interface. A data transfer control device comprising: an address unit for generating an address of the local memory unit; and a mask storage unit for storing a mask state input to the first interface, wherein the local memory units are equivalent in parallel. A memory having a capacity is arranged, and a data handling unit for distributing the first interface to the memory arranged in parallel according to the contents of the mask storage unit is provided in the local memory unit, and the address unit is provided in the mask storage unit. Means for calculating an address to be given to the memory unit according to the contents. And wherein the Mukoto.

〔作用〕[Action]

パーシャルライト可能インタフェースの第一ワードの
上位バイトから上位、下位バイトともに有効なデータと
それを示すマスク情報が送られたとときには、マスク記
憶部がそのマスク情報を記憶して、アドレス演算部がア
ドレス部のアドレスをそのまま送出しローカルメモリ部
にデータを一時書込み、すべてのデータの書込み終了時
にパーシャルライト不可能インタフェースにデータを送
出する。
When valid data and mask information indicating the valid data are transmitted from the upper byte and the lower byte of the first word of the partial writable interface, the mask storage unit stores the mask information, and the address operation unit stores the address information in the address unit. Is sent as it is, and data is temporarily written in the local memory unit. When writing of all data is completed, the data is sent to the partially writable interface.

パーシャルライト不可能インタフェースの第1ワード
の下位バイトから下位バイトのみ有効なデータとそれを
示すマスク情報が送られたときには、マスク記憶部がそ
のマスク情報を記憶するとともに、データハンドリング
部が上位バイトと下位バイトを反転させる。このときア
ドレス演算部がアドレス部のデータを演算して送出し、
送られてきたデータを演算により定められたローカルメ
モリ部に一時書込み、すべてのデータの書込みが終了し
たときにパーシャルライト不可能インタフェースにデー
タを送出する。
When valid data and mask information indicating only valid data from the lower byte to the lower byte of the first word of the partial write disable interface are transmitted, the mask storage unit stores the mask information and the data handling unit stores the mask information as the upper byte. Invert the lower byte. At this time, the address calculation unit calculates and sends the data in the address portion,
The transmitted data is temporarily written in a local memory unit determined by the operation, and when all the data has been written, the data is sent to the partial write disable interface.

これにより、少ない回路構成で、かつ単純な制御によ
りパーシャルライト可能なインタフェースからパーシャ
ルライト不可能なインタフェースへデータを転送するこ
とができる。
As a result, data can be transferred from a partially writable interface to a partially non-writable interface with a small circuit configuration and simple control.

〔実施例〕〔Example〕

次に、本発明実施例を図面に基づいて説明する。第1
図は本発明実施例の構成を示すブロック図である。
Next, embodiments of the present invention will be described with reference to the drawings. First
FIG. 2 is a block diagram showing the configuration of the embodiment of the present invention.

本発明実施例は、転送元であるパーシャルライト可能
インタフェース2と、転送先であるパーシャルライト不
可能インタフェース3とに接続され、パーシャルライト
可能インタフェース2より転送されたデータを一時記憶
するローカルメモリ部5、6と、このローカルメモリ部
5、6のアドレスを生成するアドレス手段を構成するア
ドレス部7およびアドレス演算部8とを備え、さらに、
本発明の特徴とするところの、パーシャルライト可能イ
ンタフェース2に入力するマスク状態を記憶するマスク
記憶部12を設け、ローカルメモリ部5、6は並列的に同
等容量のメモリが配置され、このローカルメモリ部5、
6にマスク記憶部12の内容にしたがってパーシャルライ
ト可能インタフェースを並列的に配置されたメモリに分
配するデータハンドリング部4を備え、アドレス手段を
構成するアドレス部7およびアドレス演算部8は、マス
ク記憶部12の内容にしたがってローカルメモリ部5、6
に与えるアドレスを演算する手段を含む。
In the embodiment of the present invention, the local memory unit 5 is connected to the partial write enable interface 2 as the transfer source and the partial write disable interface 3 as the transfer destination, and temporarily stores the data transferred from the partial write enable interface 2. , 6 and an address unit 7 and an address operation unit 8 which constitute address means for generating addresses of the local memory units 5, 6.
A feature of the present invention is to provide a mask storage unit 12 for storing a mask state input to the partial writable interface 2, and the local memory units 5 and 6 have memories of the same capacity arranged in parallel. Part 5,
6 is provided with a data handling unit 4 for distributing a partial writable interface to memories arranged in parallel in accordance with the contents of a mask storage unit 12, and an address unit 7 and an address calculation unit 8 constituting address means are provided in a mask storage unit. Local memory units 5 and 6 according to contents of 12
Means for calculating the address given to

ローカルメモリ部5、6はパーシャルライト不可能イ
ンタフェースドライバ11に接続され、このパーシャルラ
イト不可能インタフェースドライバにはパーシャルライ
ト不可能インタフェース3が接続される。
The local memory units 5 and 6 are connected to a partially writable interface driver 11, to which the partially writable interface 3 is connected.

このように構成された本発明実施例の動作について説
明する。
The operation of the embodiment of the present invention thus configured will be described.

まず、パーシャルライト可能インタフェース2の第1
ワードの上位バイトからデータ転送が行われた場合を考
える。この場合、2バイト以上のデータ転送であれば、
第1ワードは上位および下位のバイトとも有効データで
あるからデータと共にそれを示すマスク情報が送られて
くる。
First, the first of the partially writable interface 2
Consider a case where data transfer is performed from the upper byte of a word. In this case, if the data transfer is 2 bytes or more,
Since the first word is valid data in both the upper and lower bytes, mask information indicating the data is sent together with the data.

データ転送制御装置1は第1ワードのマスク情報をマ
スク記憶部12へ記憶すると共に、2バイトとも有効であ
るのでそのままパーシャルライト可能インタフェース2
の上位1バイトをローカルメモリ部6へ、下位1バイト
をローカルメモリ部5へ転送する。また、このときパー
シャルライト可能インタフェース2のデータが2バイト
とも有効であるのでアドレス演算部8はアドレス部7の
データをそのままローカルメモリ下位側アドレスライン
9に送出する。ここで、ローカルメモリ5および6にラ
イトパルスを出力して書込みを行うと共にアドレス部7
を2バイト分インクリメントする。
The data transfer control device 1 stores the mask information of the first word in the mask storage unit 12 and, since both bytes are valid, the partial write enable interface 2
Is transferred to the local memory unit 6 and the lower one byte is transferred to the local memory unit 5. At this time, since the data of the partially writable interface 2 is both valid, the address operation unit 8 sends the data of the address unit 7 to the local memory lower address line 9 as it is. Here, a write pulse is output to the local memories 5 and 6 to perform writing, and the address section 7 is written.
Is incremented by 2 bytes.

続いて、次のワードが送られてくると、マスク記憶部
12で第1ワードが2バイトとも有効であったことを記憶
しているので上記と同様の手順でローカルメモリ5およ
び6に書込む。以下同様に最終バイトまでデータをロー
カルメモリ5および6に書込む。
Then, when the next word is sent, the mask storage
Since it is stored in step 12 that the first word is valid for both bytes, it is written to the local memories 5 and 6 in the same procedure as described above. Similarly, data is written to the local memories 5 and 6 until the last byte.

すべてのデータのローカルメモリ5および6への書込
みが終了すると、次にパーシャルライト不可能インタフ
ェース3へパーシャルライト不可能インタフェースドラ
イバ11からデータを送出する。これはローカルメモリ5
および6へ書込んだ順にローカルメモリ6の上位バイト
をパーシャルライト不可能インタフェース3の上位側へ
ローカルメモリ5の下位バイトをパーシャルライト不可
能インタフェース3の下位側へパーシャルライト不可能
インタフェースドライバ11から送出して転送を完了す
る。この状態を第2図に示す。
When the writing of all the data to the local memories 5 and 6 is completed, the data is sent from the partially writable interface driver 11 to the partially writable interface 3 next. This is local memory 5
And the lower byte of the local memory 5 is transmitted from the partial write disable interface driver 11 to the lower side of the partial write disable interface 3 to the upper byte of the partial write disable interface 3. To complete the transfer. This state is shown in FIG.

次に、パーシャルライト可能インタフェース2の第1
ワードの下位バイトからデータ転送が行われた場合を考
える。この場合第1ワードは下位側のバイトのみ有効デ
ータであるから、データと共にそれを示すマスク情報が
送られてくる。そして、データ転送制御装置1は、第1
ワードのマスク情報をマスク記憶部12へ記憶すると共に
下位1バイトのみ有効なのでデータハンドリング部4は
上位バイトと下位バイトを反転させて、パーシャルライ
ト可能インタフェース2の上位バイトをローカルメモリ
部5へ下位バイトをローカルメモリ部6へ転送する。ま
た、このときパーシャルライト可能インタフェース2の
データは下位バイトのみ有効であるのでアドレス演算部
8はアドレス部7のデータを1バイト分減算してローカ
ルメモリ下位側アドレスライン9に送出する。ここで、
ローカルメモリ5および6にライトパルスを出して書込
みを行うと共にアドレス部7を2バイト分インクリメン
トする。
Next, the first of the partially writable interface 2
Consider a case where data transfer is performed from the lower byte of a word. In this case, since the first word is valid data only in the lower byte, mask information indicating the data is sent together with the data. Then, the data transfer control device 1
Since the mask information of the word is stored in the mask storage unit 12 and only the lower byte is valid, the data handling unit 4 inverts the upper byte and the lower byte, and transfers the upper byte of the partial writable interface 2 to the local memory unit 5 as the lower byte. Is transferred to the local memory unit 6. At this time, since only the lower byte of the data of the partial writable interface 2 is valid, the address operation unit 8 subtracts one byte of the data of the address unit 7 and sends it to the lower address line 9 of the local memory. here,
A write pulse is issued to the local memories 5 and 6 to perform writing, and the address section 7 is incremented by 2 bytes.

続いて、次のワードが送られてくると、マスク記憶部
12で第1ワードが下位1バイトのみ有効であったことを
記憶しているので上記と同様の手順でローカルメモリに
書込む。以下同様に最終バイトまでデータをローカルメ
モリ5および6へ書込む。すべてのデータをローカルメ
モリ5および6に書込み終わると、パーシャルライト不
可能インタフェース3へデータを送出する。これはロー
カルメモリ5および6へ書込んだ順に、ローカルメモリ
の上位バイトをインタフェースの上位側へ、ローカルメ
モリの下位バイトをパーシャルライト不可能インタフェ
ース3の下位側へパーシャルライト不可能ドライバ11か
ら送出することにより転送を完了する。この状態を第3
図に示す。
Then, when the next word is sent, the mask storage
In step 12, since the first word stores that only the lower 1 byte is valid, it is written to the local memory in the same procedure as described above. Similarly, data is written to the local memories 5 and 6 until the last byte. When all the data has been written to the local memories 5 and 6, the data is sent to the partial write disable interface 3. This means that the upper byte of the local memory is sent out to the upper side of the interface and the lower byte of the local memory is sent out to the lower side of the partially writable interface 3 from the partially writable driver 11 in the order of writing to the local memories 5 and 6. This completes the transfer. This state is the third
Shown in the figure.

〔発明の効果〕〔The invention's effect〕

以上説明したように本発明によれば、少ない回路構成
で、かつ単純な制御によりパーシャルライト可能なイン
タフェースからパーシャルライト不可能なインタフェー
スへデータ転送を行うことができる効果がある。
As described above, according to the present invention, there is an effect that data can be transferred from an interface where partial writing is possible to an interface where partial writing is not possible with a small circuit configuration and simple control.

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

第1図は本発明実施例の構成を示すブロック図。 第2図は本発明実施例の第1ワードが2バイトとも有効
データである場合のデータ転送の例を示す図。 第3図は本発明実施例の第1ワードが下位1バイトのみ
有効データである場合のデータ転送の例を示す図。 1……データ転送制御装置、2……パーシャルライト可
能インタフェース、3……パーシャルライト不可能イン
タフェース、4……データハンドリング部、5……ロー
カルメモリ(下位1バイト)、6……ローカルメモリ
(上位1バイト)、7……アドレス部、8……アドレス
演算部、9……ローカルメモリ下位側アドレスライン、
10……ローカルメモリ上位側アドレスライン、11……パ
ーシャルライト不可能インタフェースドライバ、12……
マスク記憶部。
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. FIG. 2 is a diagram showing an example of data transfer in a case where both first bytes are valid data in the embodiment of the present invention. FIG. 3 is a diagram showing an example of data transfer when the first word is valid data only in the lower 1 byte in the embodiment of the present invention. 1 ... Data transfer control device, 2 ... Partial writable interface, 3 ... Partial writable interface, 4 ... Data handling unit, 5 ... Local memory (lower 1 byte), 6 ... Local memory (higher order) 7) Address part, 8 ... Address operation part, 9 ... Local memory lower address line,
10: Upper address line of local memory, 11: Partial write disable interface driver, 12:
Mask storage unit.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】転送元であるパーシャルライト可能な第一
インタフェースと、転送先であるパーシャルライト不可
能な第二インタフェースとに接続され、 前記第一インタフェースより転送されたデータを一時記
憶するローカルメモリ部と、 このローカルメモリ部のアドレスを生成するアドレス手
段と を備えたデータ転送制御装置において、 前記第一インタフェースに入力するマスク状態を記憶す
るマスク記憶部を設け、 上記ローカルメモリ部は並列的に同等容量のメモリが配
置され、 このローカルメモリ部に前記マスク記憶部の内容にした
がって前記第一インタフェースを並列的に配置されたメ
モリに分配するデータハンドリング部を備え、 前記アドレス手段は、マスク記憶部の内容にしたがって
前記メモリ部に与えるアドレスを演算する手段を含む ことを特徴とするデータ転送制御装置。
A local memory connected to a first interface capable of partial writing as a transfer source and a second interface non-partial writable as a transfer destination and temporarily storing data transferred from the first interface. A data transfer control device comprising: a memory unit that stores a mask state input to the first interface; wherein the local memory unit is provided in parallel with the local memory unit. A memory having an equivalent capacity, a data handling unit for distributing the first interface to memories arranged in parallel according to the contents of the mask storage unit in the local memory unit, and the address unit includes a mask storage unit Calculate the address given to the memory unit according to the contents of A data transfer control device comprising means.
JP29687988A 1988-11-22 1988-11-22 Data transfer control device Expired - Fee Related JP2699482B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29687988A JP2699482B2 (en) 1988-11-22 1988-11-22 Data transfer control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29687988A JP2699482B2 (en) 1988-11-22 1988-11-22 Data transfer control device

Publications (2)

Publication Number Publication Date
JPH02141860A JPH02141860A (en) 1990-05-31
JP2699482B2 true JP2699482B2 (en) 1998-01-19

Family

ID=17839346

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29687988A Expired - Fee Related JP2699482B2 (en) 1988-11-22 1988-11-22 Data transfer control device

Country Status (1)

Country Link
JP (1) JP2699482B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6990908B2 (en) 2017-08-25 2022-02-03 株式会社日立ハイテクサイエンス Constant temperature device and analyzer equipped with it

Also Published As

Publication number Publication date
JPH02141860A (en) 1990-05-31

Similar Documents

Publication Publication Date Title
JP2699482B2 (en) Data transfer control device
JP3057754B2 (en) Memory circuit and distributed processing system
JP2581144B2 (en) Bus control device
JPS6217879Y2 (en)
JPH0133848B2 (en)
JP2574821B2 (en) Direct memory access controller
JPS58179977A (en) Memory controller
JPH04333950A (en) Information processing system
JPH04160458A (en) Dma controller peripheral circuit
JPH05289931A (en) Information processor
JPH06208539A (en) High-speed data transfer system
JPS61214047A (en) Memory data transfer circuit
JPS63153655A (en) Memory access control system
JPH0370816B2 (en)
JPH0652516B2 (en) Bus interface device
JPH02166547A (en) Information processor
JPH0230532B2 (en)
JPS63206855A (en) Data transmission equipment
JPH01219930A (en) Interrupt control circuit device for indirect address system
JPS63300345A (en) Data transfer system
JPH06195297A (en) Dma circuit
JPH0113570B2 (en)
JPH01161561A (en) Bus converter
JPS60254477A (en) Memory system
JPS6174055A (en) Data communication device between processors

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees