JPS6155137B2 - - Google Patents

Info

Publication number
JPS6155137B2
JPS6155137B2 JP4176479A JP4176479A JPS6155137B2 JP S6155137 B2 JPS6155137 B2 JP S6155137B2 JP 4176479 A JP4176479 A JP 4176479A JP 4176479 A JP4176479 A JP 4176479A JP S6155137 B2 JPS6155137 B2 JP S6155137B2
Authority
JP
Japan
Prior art keywords
data
address
counter
transfer
transferred
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
Application number
JP4176479A
Other languages
Japanese (ja)
Other versions
JPS55134428A (en
Inventor
Yoshinori Chiwaki
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
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP4176479A priority Critical patent/JPS55134428A/en
Publication of JPS55134428A publication Critical patent/JPS55134428A/en
Publication of JPS6155137B2 publication Critical patent/JPS6155137B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Description

【発明の詳細な説明】 本発明は周辺装置から記憶装置へのデータ転送
を行なうデータ転送装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data transfer device that transfers data from a peripheral device to a storage device.

従来、データ転送装置は転送データの格納番地
を保持する単一のアドレスカウンタおよび転送す
るデータ数を保持する単一のレングスカウンタか
ら構成されている。この構成においては、周辺装
置からの記憶装置に転送されるデータブロツクが
1個のときは、記憶装置の単一のエリアに格納
し、また、そのデータブロツクが複数のときは、
そのデータブロツクが切り換わる毎にアドレスカ
ウンタとレングスカウンタの内容を変更して、記
憶装置の複数のエリアに格納している。従つて、
同じデータブロツクの一部および全部をデータ転
送時に、記憶装置の複数エリアに格納することが
できないため、周辺装置からのデータブロツクを
一度記憶装置の特定の番地に格納したのちにその
一部および全部を他の番地に移さなければならな
いという欠点がある。
Conventionally, a data transfer device is comprised of a single address counter that holds the storage address of transfer data and a single length counter that holds the number of data to be transferred. In this configuration, when one data block is transferred from the peripheral device to the storage device, it is stored in a single area of the storage device, and when there are multiple data blocks, it is stored in a single area of the storage device.
Each time the data block is switched, the contents of the address counter and length counter are changed and stored in multiple areas of the storage device. Therefore,
Because it is not possible to store part or all of the same data block in multiple areas of the storage device during data transfer, a data block from a peripheral device is stored at a specific address in the storage device, and then part or all of it is stored in multiple areas of the storage device. The disadvantage is that the address must be moved to another address.

本発明の目的は、上述の欠点を除去したデータ
転送装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a data transfer device that eliminates the above-mentioned drawbacks.

本発明の装置は、周辺装置から記憶装置へのデ
ータ転送を行なうデータ転送装置において、 転送データを記憶する前記記憶装置のアドレス
を格納する複数のアドレス格納手段と、 これらのアドレス格納手段のそれぞれに対応し
て前記周辺装置から転送が予定されるデータバイ
ト数を格納する転送予定数格納手段と、 前記外部から転送されたデータバイト数を計数
する計数手段と、 前記アドレス格納手段のそれぞれに対応して前
記記憶装置に対するデータ転送開始を示すために
前記周辺装置から転送される予め定められた数の
データバイト数を格納する転送開始データバイト
数格納手段と、 前記計数手段の計数結果と前記転送開始データ
バイト数格納手段のデータバイト数とを比較する
比較手段とを備え、 この比較手段により一致がとられたときに前記
記憶装置にデータ転送を行なうようにしたことを
特徴とする。
The device of the present invention is a data transfer device that transfers data from a peripheral device to a storage device, and includes a plurality of address storage means for storing addresses of the storage device that stores transferred data; Transfer scheduled number storage means for storing the number of data bytes scheduled to be transferred from the peripheral device, counter means for counting the number of data bytes transferred from the external device, and corresponding to the address storage means, respectively. transfer start data byte number storage means for storing a predetermined number of data bytes transferred from the peripheral device to indicate the start of data transfer to the storage device; and a count result of the counting means and the start of transfer. The present invention is characterized in that it comprises comparison means for comparing the number of data bytes in the data byte number storage means, and when a match is found by the comparison means, the data is transferred to the storage device.

次に本発明について図面を参照して詳細に説明
する。
Next, the present invention will be explained in detail with reference to the drawings.

第1図に示す本発明の第1の実施例は、転送デ
ータの格納番地を保持し、転送毎に値“1”を加
算する第1のアドレスカウンタ2および第2のア
ドレスカウンタ3、前記第1のアドレスカウンタ
の出力と第2のアドレスカウンタの出力とを入力
し、記憶装置(図示せず)へ送出するアドレスを
選択するセレクタ1、前記第1および第2のアド
レスカウンタに対応して転送データ数を保持し、
転送毎に値“1”を減算する第1のレングスカウ
ンタ4および第2のレングスカウンタ5、第1お
よび第2のアドレスカウンタに対応して、データ
転送を開始するときに転送データ数を設定する第
1のスタートレジスタ6および第2のスタートレ
ジスタ7転送データ毎に値“1”を加算するデー
タカウンタ8、第1のスタートレジスタ6の値と
データカウンタ8の値とを比較する比較回路1
0、第2のスタートレジスタの値7とデータカウ
ンタ8の値とを比較する比較回路11、第1のレ
ングスカウンタ4の内容が零になつたことを検出
する零検出器12と第2のレングスカウンタ5の
内容が零になつたことを検出する零検出器13、
第1のデータ転送開始時点を検出する第1のサー
チフリツプフロツプ14、第2のデータ転送開始
時点を検出する第2のサーチフリツプフロツプ1
5、アンド回路18および19、第1のデータ転
送中を示す第1のデータフリツプフロツプ16、
第2のデータ転送幅を示す第2のデータフリツプ
フロツプ17、記憶装置(図示せず)に転送する
データを格納するデータレジスタ9および第1の
データフリツプフロツプ16および第2のデータ
フリツプフロツプ17により、セレクタ1および
記憶装置(図示せず)とのインタフエースを制御
し、第1および第2のアドレスカウンタ2および
3で+1するタイミング、第1および第2のレン
グスカウンタ4および5で−1するタイミング、
データカウンタ8の+1するタイミングおよび第
1および第2のサーチフリツプフロツプ14およ
び15と、第1および第2のデータフリツプフロ
ツプ16および17とのセツトやリセツトのタイ
ミングを制御する制御回路20から構成されてい
る。
The first embodiment of the present invention shown in FIG. A selector 1 inputs the output of the first address counter and the output of the second address counter and selects an address to be sent to a storage device (not shown), which is transferred in correspondence with the first and second address counters. retains the number of data,
The number of data to be transferred is set when starting data transfer in correspondence with the first length counter 4 and the second length counter 5 that subtract the value "1" each time the data is transferred, and the first and second address counters. A first start register 6 and a second start register 7 A data counter 8 that adds a value "1" for each transferred data, A comparison circuit 1 that compares the value of the first start register 6 and the value of the data counter 8
0, a comparison circuit 11 that compares the value 7 of the second start register and the value of the data counter 8, a zero detector 12 that detects when the content of the first length counter 4 becomes zero, and a second length counter a zero detector 13 for detecting that the contents of the counter 5 have become zero;
A first search flip-flop 14 detects the start point of the first data transfer, and a second search flip-flop 1 detects the start point of the second data transfer.
5. AND circuits 18 and 19; first data flip-flop 16 indicating that the first data is being transferred;
a second data flip-flop 17 indicating a second data transfer width; a data register 9 storing data to be transferred to a storage device (not shown); a first data flip-flop 16; A flip-flop 17 controls the interface with the selector 1 and a storage device (not shown), and controls the timing of incrementing the first and second address counters 2 and 3 by 1, and the timing of incrementing the first and second length counters 4. And the timing of -1 at 5,
A control circuit that controls the timing of incrementing the data counter 8 by 1 and the timing of setting and resetting the first and second search flip-flops 14 and 15 and the first and second data flip-flops 16 and 17. It consists of 20.

なお、第1図における参照符号S1およびS2
はそれぞれ第1の側と第2の側の動作開始の起動
信号、参照符号S3およびS4はそれぞれ第1の
側および第2の側のデータ転送中を示す転送信
号、参照符号S5は記憶装置(図示せず)に送る
アドレス信号、参照符号S6は記憶装置(図示せ
ず)に送るデータ信号である。
Note that reference symbols S1 and S2 in FIG.
are activation signals for starting the operation of the first and second sides, respectively, reference symbols S3 and S4 are transfer signals indicating that data is being transferred on the first and second sides, respectively, and reference symbol S5 is a storage device ( Reference numeral S6 is a data signal sent to a storage device (not shown).

まず、第1のアドレスカウンタ2にA番地を、
第2のアドレスカウンタ3にB番地を、第1のレ
ングスカウンタ4にN個を、第2のレングスカウ
タ5にM個を、第1のスタートレジスタ6に論理
“0”を、第2のスタートレジスタ7に値“c”
がセツトされたあと、第1および第2のサーチフ
リツプフロツプ14および15が、起動信号S1
およびS2により、セツトされる。
First, write address A to the first address counter 2,
Address B in the second address counter 3, N in the first length counter 4, M in the second length counter 5, logic "0" in the first start register 6, and N in the first length counter 4, logic "0" in the first start register 6, and 7 with value “c”
is set, the first and second search flip-flops 14 and 15 receive the activation signal S1.
and S2.

データカウンタ8は、初期値“0”に設定され
ている。第1および第2のサーチフリツプフロツ
プ14および15がセツトされたため、第1およ
び第2の比較回路10および11は活性化されな
い状態になる。データカウンタ8が論理“0”の
ため、第1のスタートレジスタ6と一致がとれ、
第1のサーチフリツプフロツプはリセツトされ、
第1のデータフリツプフロツプ16がセツトされ
て、第1の側は、データ転送可能な状態となる。
このとき、周辺装置(図示せず)からデータレジ
スタ9にデータが与えられると、第1の転送信号
S3が論理“1”の状態にあるので、制御回路2
0によりセレクタ1から第1のアドレスカウンタ
2の出力が選択されて、記憶装置(図示せず)に
第1のアドレスカウンタ2の内容がアドレス信号
S5として送られ、その番地にデータ信号S6が
書込まれる。そのあと、第1のアドレスカウンタ
2の内容に値“1”が加算されて、第1のレング
スカウンタ4の内容に値“1”が減算されて、デ
ータカウンタ8の値“1”を加算する。データが
データレジスタ9に入る毎にこれが繰り返えさ
れ、第1のレジスタカウンタ4が値“0”になる
のを第1の零検出器12が検出して、第1のデー
タフリツプフロツプ16をリセツトするまで続け
られる。第1の零検出器12が零を検出する前に
データカウンタ8の値が“c”になれば第2のス
タートレジスタ7と一致がとられるので、第2の
サーチフリツプフロツプ15がリセツトされ、第
2のデータフリツプフロツプ17がセツトされ
て、第2の側もデータ転送可能状態となる。第1
の転送信号S3と第2の転送信号S4との両方が
ともにセツトされているので、制御回路20によ
り、まず、セレクタ1が第1のアドレスカウンタ
2の出力を選択して記憶装置に第1のアドレスカ
ウンタ2の内容をアドレス信号S5として送り、
その番地にデータ信号S6の内容が書込まれる。
次に、セレクタ1が第2のアドレスカウンタ3の
アドレスに選択され、記憶装置に第2のアドレス
カウンタ3の内容を信号S5として送り、その番
地にデータ信号S6の内容が書込まれる。このよ
うに第1のアドレスカウンタ2と第2のアドレス
カウンタ3で示される番地に、テータレジスタ9
の内容が書き込まれる。このあと、第1および第
2のアドレスカウンタの内容をそれぞれ値“1”
だけ加算し、第1および第2のレングスカウンタ
4および5の内容をそれぞれ値“1”だけ減算
し、データカウンタの値を値“1”だけ加算す
る。第2のレングスカウンタ5の内容が減算され
て値“0”になると、第2のデータフリツプフロ
ツプ17がリセツトされて終了する。この結果、
記憶装置のA番地からN個の記憶領域とB番地か
らM個の記憶領域とに同じデータブロツクの一部
または全部が格納されることになる。本実施例は
2組のみについて説明したが3組以上にも適用で
きることは言うまでもない。
The data counter 8 is set to an initial value of "0". Since the first and second search flip-flops 14 and 15 are set, the first and second comparison circuits 10 and 11 are inactivated. Since the data counter 8 is logic "0", it matches the first start register 6,
The first search flip-flop is reset;
The first data flip-flop 16 is set and the first side is ready for data transfer.
At this time, when data is given to the data register 9 from the peripheral device (not shown), the first transfer signal S3 is in the logic "1" state, so the control circuit 2
0, the output of the first address counter 2 is selected from the selector 1, the contents of the first address counter 2 are sent to a storage device (not shown) as an address signal S5, and a data signal S6 is written at that address. be included. After that, the value "1" is added to the contents of the first address counter 2, the value "1" is subtracted from the contents of the first length counter 4, and the value "1" of the data counter 8 is added. . This is repeated every time data enters the data register 9, and the first zero detector 12 detects that the first register counter 4 becomes the value "0", and the first data flip-flop This will continue until you reset 16. If the value of the data counter 8 becomes "c" before the first zero detector 12 detects zero, a match is made with the second start register 7, so the second search flip-flop 15 is reset. Then, the second data flip-flop 17 is set, and the second side also becomes ready for data transfer. 1st
Since both the transfer signal S3 and the second transfer signal S4 are set, the control circuit 20 first causes the selector 1 to select the output of the first address counter 2 and transfer the first address to the storage device. Send the contents of address counter 2 as address signal S5,
The contents of the data signal S6 are written to that address.
Next, the selector 1 selects the address of the second address counter 3, sends the contents of the second address counter 3 to the storage device as a signal S5, and writes the contents of the data signal S6 at that address. In this way, the data register 9 is placed at the address indicated by the first address counter 2 and the second address counter 3.
The contents of are written. After this, the contents of the first and second address counters are each set to the value “1”.
The contents of the first and second length counters 4 and 5 are each subtracted by the value "1", and the value of the data counter is incremented by the value "1". When the content of the second length counter 5 is subtracted to the value "0", the second data flip-flop 17 is reset and the process ends. As a result,
Part or all of the same data block is stored in N storage areas from address A and M storage areas from address B of the storage device. Although this embodiment has been described with respect to only two sets, it goes without saying that it can be applied to three or more sets.

本発明には同じデータブロツクの一部および全
部を記憶装置上の複数のエリアに格納することが
できるという効果がある。
The present invention has the advantage that part or all of the same data block can be stored in multiple areas on a storage device.

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

図は本発明の一実施例を示す図である。 図において、1……セレクタ、2,3……アド
レスカウンタ、4,5……レングスカウンタ、
6,7……スタートレジスタ、8……データカウ
ンタ、9……データレジスタ、10,11……比
較回路、12,13……零検出器、14,15…
…フリツプフロツプ、16,17……データフリ
ツプフロツプ、18,19……アンド回路、20
……制御回路、21……比較制御回路、S1,S
2……起動信号、S3,S4……転送信号、S5
……アドレス信号、S6……データ信号。
The figure shows an embodiment of the present invention. In the figure, 1...Selector, 2, 3...Address counter, 4, 5...Length counter,
6, 7... Start register, 8... Data counter, 9... Data register, 10, 11... Comparison circuit, 12, 13... Zero detector, 14, 15...
...Flip-flop, 16, 17... Data flip-flop, 18, 19... AND circuit, 20
...Control circuit, 21...Comparison control circuit, S1, S
2...Start signal, S3, S4...Transfer signal, S5
...address signal, S6...data signal.

Claims (1)

【特許請求の範囲】 1 周辺装置から記憶装置へのデータ転送を行な
うデータ転送装置において、 転送データを記憶する前記記憶装置のアドレス
を格納する複数のアドレス格納手段と、 これらのアドレス格納手段のそれぞれ対応して
前記周辺装置から転送が予定されるデータバイト
数を格納する転送予定数格納手段と、 前記外部から転送されたデータバイト数を計数
する計数手段と、 前記アドレス格納手段のそれぞれに対応して前
記記憶装置に対するデータ転送開始を示すために
前記周辺装置から転送される予め定められた数の
データバイト数を格納する転送開始データバイト
数格納手段と、 前記計数手段の計数結果と前記転送開始データ
バイト数格納手段のデータバイト数とを比較する
比較手段とを備え、 この比較手段により一致がとられたときに前記
記憶装置にデータ転送を行なうようにしたことを
特徴とするデータ転送装置。
[Scope of Claims] 1. A data transfer device that transfers data from a peripheral device to a storage device, comprising: a plurality of address storage means for storing addresses of the storage device that stores transferred data; and each of these address storage means. Transfer scheduled number storage means for storing the number of data bytes scheduled to be transferred from the peripheral device, counter means for counting the number of data bytes transferred from the external device, and corresponding to the address storage means, respectively. transfer start data byte number storage means for storing a predetermined number of data bytes transferred from the peripheral device to indicate the start of data transfer to the storage device; and a count result of the counting means and the start of transfer. 1. A data transfer device comprising: comparison means for comparing the number of data bytes in the data byte number storage means, and when a match is found by the comparison means, the data is transferred to the storage device.
JP4176479A 1979-04-06 1979-04-06 Data transfer unit Granted JPS55134428A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4176479A JPS55134428A (en) 1979-04-06 1979-04-06 Data transfer unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4176479A JPS55134428A (en) 1979-04-06 1979-04-06 Data transfer unit

Publications (2)

Publication Number Publication Date
JPS55134428A JPS55134428A (en) 1980-10-20
JPS6155137B2 true JPS6155137B2 (en) 1986-11-26

Family

ID=12617463

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4176479A Granted JPS55134428A (en) 1979-04-06 1979-04-06 Data transfer unit

Country Status (1)

Country Link
JP (1) JPS55134428A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6231462A (en) * 1985-08-03 1987-02-10 Fujitsu Ltd Data transfer control system

Also Published As

Publication number Publication date
JPS55134428A (en) 1980-10-20

Similar Documents

Publication Publication Date Title
JPS60142439A (en) Store buffer device
US3478325A (en) Delay line data transfer apparatus
US5201058A (en) Control system for transferring vector data without waiting for transfer end of the previous vector data
JPS6155137B2 (en)
JPS6155138B2 (en)
JPS58208982A (en) Store buffer
JP2692444B2 (en) Timer device
JPS6225798Y2 (en)
KR880000995B1 (en) An improved memory unit
JPH0241694Y2 (en)
JPS6153579A (en) Tester for function of logical circuit
JPS63288351A (en) Write/read-out circuit for memory block
JPS61198351A (en) Direct memory access control circuit
JPH01114961A (en) Directory memory access controller
JPH05341957A (en) Ring buffer circuit
JPS63187349A (en) Memory device
JPS62272333A (en) Tracer system
JPH0567035A (en) Data alignment system for dma transfer
JPS58114142A (en) Logic device
JPS5927993B2 (en) memory controller
JPH0258646B2 (en)
JPH02195464A (en) Multiplex dma transfer equipment
JPH02299345A (en) Line address scanning circuit
JPH01305450A (en) Data readout circuit
JPH02210579A (en) Coincidence collating method for digital information