JP2829043B2 - Method and circuit for determining transfer word number - Google Patents

Method and circuit for determining transfer word number

Info

Publication number
JP2829043B2
JP2829043B2 JP1206406A JP20640689A JP2829043B2 JP 2829043 B2 JP2829043 B2 JP 2829043B2 JP 1206406 A JP1206406 A JP 1206406A JP 20640689 A JP20640689 A JP 20640689A JP 2829043 B2 JP2829043 B2 JP 2829043B2
Authority
JP
Japan
Prior art keywords
word
transfer
byte
register
display value
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 - Lifetime
Application number
JP1206406A
Other languages
Japanese (ja)
Other versions
JPH0370238A (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.)
Fujitsu Ltd
Nippon Telegraph and Telephone Corp
Original Assignee
Fujitsu Ltd
Nippon Telegraph and Telephone 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 Fujitsu Ltd, Nippon Telegraph and Telephone Corp filed Critical Fujitsu Ltd
Priority to JP1206406A priority Critical patent/JP2829043B2/en
Publication of JPH0370238A publication Critical patent/JPH0370238A/en
Application granted granted Critical
Publication of JP2829043B2 publication Critical patent/JP2829043B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔目 次〕 概要 産業上の利用分野 従来の技術 従来の転送ワード数決定回路(第7図) 発明が解決しようとする課題 課題を解決するための手段 本発明の原理説明図(第1図) 作用 実施例 第1の発明の一実施例(第3図) 第2の発明の一実施例(第4図) 発明の効果 〔概 要〕 先頭バイトアドレス及び転送バイト数内の、そのビッ
ト構成から決まる数の転送ビットの各々、及び転送バイ
ト数内のワード数表示値を転送ワード数のセットに用い
る転送ワード数決定方法及びその回路に関し、 転送ワード数出力制御表示値、及びワード数表示値を用
いて回路素子数の削減の下での信号伝播遅延時間の短縮
化等を目的とし、 転送されるバイト数を有するコマンドワードに続い
て、または該コマンドワードと同時に転送されるデータ
の先頭バイトアドレスを有するアドレスワードを転送し
た後に、データのための所要数のワードを転送するデー
タ転送系において、受信したバイト数に含まれているワ
ード数表示値、該ワード数表示値+1及び前記ワード数
表示値+2を出力し、前記受信したバイト数及び先頭バ
イトアドレスに含まれている転送ワード数出力制御表示
値に応答して前記ワード数表示値、該ワード数表示値+
1及び前記ワード数表示値+2の内のいづれか1つを選
択する信号を出力し、該出力された信号で前記3つの値
の内の1つを選択し、選択された値を前記データ転送系
を介して受信されるワード数とするようにして構成し
た。
DETAILED DESCRIPTION OF THE INVENTION [Table of Contents] Overview Industrial application field Conventional technology Conventional transfer word number determination circuit (FIG. 7) Problems to be solved by the invention Means for solving the problem Principle of the present invention Explanatory drawing (FIG. 1) Action Embodiment One embodiment of the first invention (FIG. 3) One embodiment of the second invention (FIG. 4) Effects of the Invention [Outline] First byte address and number of transfer bytes , A transfer word number output control display value, which relates to a method for determining the number of transfer words and a circuit using the word number display value in the transfer byte number for each of the number of transfer bits determined by the bit configuration of the transfer word number. , And for the purpose of shortening the signal propagation delay time while reducing the number of circuit elements by using the word number display value, and following or simultaneously with the command word having the number of bytes to be transferred. Is In a data transfer system for transferring a required number of words for data after transferring an address word having a leading byte address of the data to be read, the word count value included in the received byte count, the word count display value +1 and the word number display value +2, and the word number display value and the word number display value + in response to the received byte number and the transfer word number output control display value included in the first byte address.
1 and a signal for selecting any one of the word number display value +2, selecting one of the three values with the output signal, and transmitting the selected value to the data transfer system. And the number of words received via the.

〔産業上の利用分野〕[Industrial applications]

本発明は、転送バイト数及び先頭バイドアドレス内の
転送ワード数出力制御判定値、及び転送バイト数内のワ
ード数表示値を転送ワード数のセットに用いる転送ワー
ド数決定方法及びその回路に関する。
The present invention relates to a transfer word number determination method and circuit for using a transfer byte number and a transfer word number output control value in a start byte address, and a word number display value in a transfer byte number for setting the transfer word number.

情報処理装置には、その同期データバスに複数のイン
タフェースモジュールが接続され、そのインタフェース
モジュールと中央処理装置との間で前記同期データバス
を介して複数種のデータを授受するようにしている。こ
れは、信号線数の削減のためである。或るサイクルにお
いては或るモジュールのためのデータの授受に前記同期
データバスが用いられ、他のサイクルにおいては前記同
期データバスは他のモジュールのためのデータの授受に
用いられる。これにより、前記同期データバスのスルー
プットの向上が図れる。
In the information processing apparatus, a plurality of interface modules are connected to the synchronous data bus, and a plurality of types of data are transmitted and received between the interface module and the central processing unit via the synchronous data bus. This is to reduce the number of signal lines. In one cycle, the synchronous data bus is used to transfer data for one module, and in another cycle, the synchronous data bus is used for transmitting and receiving data for another module. Thereby, the throughput of the synchronous data bus can be improved.

そのようなデータ転送において、受信バスインタフェ
ースモジュールで受信データの終了を知ることが必要に
なる。
In such data transfer, it is necessary for the receiving bus interface module to know the end of the received data.

この受信データの終了を知るために、データ転送開始
時に先ず、「先頭表示」をし(第5図の(1)のST参
照)、同時にデータバイト数情報“BCT"を含むコマンド
ワードを転送し、続いて先頭バイトアドレスのためのア
ドレスワード(第5図の(2)参照)の転送を行なう。
そして所要数のデータのためのデータワード(第5図の
(3),(4)、(5)参照)を順次に転送している。
データが、常にデータワードの最初のバイト挿入位置か
らデータバイトが入っているならば、受信データの転送
終了クロックサイクルを前記データバイト数情報から簡
単に決定することが出来るが、データが、データワード
の最初のバイト挿入位置からデータバイトが入っていな
い場合には(第6図参照)、前記先頭バイトアドレス及
びデータバイト数情報から簡単には受信データの転送終
了クロックサイクルの決定は出来ない。そこで、データ
が、データワードの最初のバイト挿入位置からデータバ
イトが入っていない場合でも前記先頭バイトアドレス及
びデータバイト数情報を用いて受信データの転送終了ク
ロックサイクルの決定を出来るようにした転送バイト数
決定回路が用いられている。
In order to know the end of the received data, at the start of data transfer, "head display" is first performed (refer to ST in (1) of FIG. 5), and at the same time, a command word including data byte number information "BCT" is transferred. Then, an address word (see (2) in FIG. 5) for the head byte address is transferred.
The data words for the required number of data (see (3), (4) and (5) in FIG. 5) are sequentially transferred.
If the data always contains data bytes from the first byte insertion position of the data word, the transfer end clock cycle of the received data can be easily determined from the data byte number information. If the data byte does not enter from the first byte insertion position (see FIG. 6), the transfer end clock cycle of the received data cannot be easily determined from the head byte address and the data byte number information. Therefore, even if the data does not include a data byte from the first byte insertion position of the data word, the transfer byte which can determine the transfer end clock cycle of the received data using the above-mentioned first byte address and the data byte number information. A number determination circuit is used.

〔従来の技術〕[Conventional technology]

その従来の転送バイト数決定回路は、第7図に示す構
成のものである。バイト数レジスタ2に前記同期データ
バスからのバイト数(ワード位置表示ビット及びバイト
位置表示ビット)がセットされ、アドレスレジスタ4に
前記同期データバスからのアドレス(ワード位置表示ビ
ット及びワード内バイト位置表示ビット)がセットされ
る。なお、バイト数レジスタ2及びアドレスレジスタ4
には、それぞれ8ビットのバイト数及び8ビットの先頭
バイトアドレスがセットされると仮定した例を示してい
る。又、ワードは4バイト構成としている。バイト数レ
ジスタ2及びアドレスレジスタ4からの各出力ビットが
そのビット桁位置を保存して加算回路20の被加算入力及
び加算入力へ入力される。又、加算回路20には、−1減
算入力がある。加算回路20からの出力値も又、アドレス
レジスタ4と同様、アドレスの内のワード位置表示ビッ
ト及びバイト位置表示ビットを表す。アドレスレジスタ
4のワード位置表示ビットからの加算回路20のワード位
置表示ビットの減算が減算回路22において行なわれる。
又、減算回路22には、+1加算入力がある。減算回路22
の出力が転送ワード数(転送回数)レジスタ6にセット
され、その値が前記受信データの転送終了のクロックサ
イクルを知るのに用いられる。
The conventional transfer byte number determination circuit has the configuration shown in FIG. The number of bytes (word position indicating bit and byte position indicating bit) from the synchronous data bus is set in the byte number register 2, and the address (word position indicating bit and byte position indicating word in word) from the synchronous data bus is set in the address register 4. Bit) is set. Note that the byte number register 2 and the address register 4
Shows an example in which an 8-bit byte number and an 8-bit head byte address are respectively set. The word has a 4-byte structure. Each output bit from the byte number register 2 and the address register 4 stores its bit digit position and is input to the addend input and the addition input of the adder circuit 20. The addition circuit 20 has a -1 subtraction input. Similarly to the address register 4, the output value from the adder circuit 20 also indicates the word position indicating bit and the byte position indicating bit in the address. The subtraction circuit 22 subtracts the word position indication bit of the adder 20 from the word position indication bit of the address register 4.
The subtraction circuit 22 has a +1 addition input. Subtraction circuit 22
Is set in the transfer word number (transfer count) register 6 and its value is used to know the clock cycle at the end of the transfer of the received data.

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

上述の説明から明らかなように、その信号は加算回路
20及び減算回路22を経て順次に伝播して初めて、転送回
路が得られる回路形式となっているため、信号伝送播遅
延時間が大きくなる。これは、データ転送サイクル時間
に制限を与える原因となる。又、前記転送回数を得るた
めの回路量も多くなる。
As is clear from the above description, the signal is
Since the transfer circuit is obtained only when the signal is sequentially propagated through the circuit 20 and the subtraction circuit 22, the signal transmission delay time increases. This causes a limitation on the data transfer cycle time. Further, the number of circuits for obtaining the number of transfers also increases.

本発明は、斯かる問題点に鑑みて創作されたもので、
回路素子数の削減の下で信号伝播遅延時間を小さくする
ことの出来る転送ワード数決定方法及びその回路を提供
することをその目的とする。
The present invention has been created in view of such problems,
It is an object of the present invention to provide a method for determining the number of transfer words that can reduce the signal propagation delay time while reducing the number of circuit elements, and a circuit therefor.

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

本発明は、第1図に示すように、先頭バイトアドレス
がワード内のいずれのバイト挿入位置を指す値に設定さ
れ、且つバイト数がどんな数に設定されていたとして
も、第1図の(A)、(B)、(C)及び(D)に例示
するように転送ワード数は(BCT)+(BCT)+1、又は
(BCT)+2のいずれかに決定し得ると言う知見に基づ
いて為されたものである。この第1図の(A)、
(B)、(C)及び(D)に示す関係を表にまとめたの
が下表である。なお、説明を簡単にするため、以下の説
明では1ワードは4バイトで構成されるものとする。
The present invention, as shown in FIG. 1, is applicable to the case where the first byte address is set to a value indicating any byte insertion position in a word, and the number of bytes is set to any number in FIG. As shown in A), (B), (C) and (D), based on the knowledge that the number of transfer words can be determined to be either (BCT) + (BCT) +1 or (BCT) +2. It was done. FIG. 1 (A),
The following table summarizes the relationships shown in (B), (C) and (D). For the sake of simplicity, in the following description, one word is composed of 4 bytes.

なお、(BCT)は、バイト数レジスタ内の下位2ビッ
トを除いた上位ビットで表される値(以下、ワード数表
示値と呼ぶ。)である。
Note that (BCT) is a value represented by upper bits excluding the lower two bits in the byte number register (hereinafter, referred to as a word number display value).

第1の発明は、転送されるバイト数を有するワードに
続いて、転送されるデータの先頭バイトアドレスを有す
るワードを転送した後に、データのための所要数のワー
ドを転送するデータ転送系において、先づ、受信したバ
イト数に含まれているワード数表示値、該ワード数表示
値+1及び前記ワード数表示値+2を出力する。前記受
信したバイト数及び先頭バイトアドレスに含まれている
転送ワード数出力制御判定値に応答して前記ワード数表
示値、該ワード数表示値+1及び前記ワード数表示値+
2の内のいづれか1つを選択する信号を出力する。そし
て、該出力された信号で前記3つの値の内の1つを選択
し、選択された値を前記データ転送系を介して受信され
るワード数として用いるようにして成る。第2の発明
は、第2図(その1)に示すように、データワード受信
に先立って受信されるコマンドワードのバイト数をセッ
トするバイト数レジスタ2と、前記コマンドワードに続
いて受信されるアドレスワードのアドレスをセットする
アドレスレジスタ4と、前記両レジスタ2、4にセット
された値から求められる転送データワード数をセットす
る転送ワード数レジスタ6とを有するデータ転送系に設
けられる転送ワード数決定回路において、前記バイト数
レジスタ2及びアドレスレジスタ4にセットされたバイ
ト数及び先頭バイトアドレスに含まれている転送ワード
数出力制御判定値に応答して前記バイト数レジスタ2の
ワード数表示値の出力制御のための第1の転送ワード出
力制御信号及び前記ワード数表示値+2の出力制御のた
めの第2の転送ワード出力制御信号を出力する判定回路
8と、前記バイト数レジスタ2のワード数表示値に1を
加算する第1の加算回路10と、前記バイト数レジスタ2
のワード数表示値に2を加算する第2の加算回路12と、
前記第1の転送ワード出力制御信号及び第2の転送ワー
ド出力制御信号に応答して前記ワード数表示値、前記ワ
ード数表示値+1、又は前記ワード数表示値+2の内の
いづれか1つを転送ワード数として前記転送ワード数レ
ジスタ6へ出力する選択回路14とを設けて構成される。
第3の発明は、第2図(その2)に示すように、データ
ワード受信に先立って受信されるコマンドワードのバイ
ト数をセットするバイト数レジスタ2と、前記コマンド
ワードに続いて受信されるアドレスワードのアドレスを
セットするアドレスレジスタ4と、前記両レジスタ2、
4にセットされた値から求められる転送データワード数
をセットする転送ワード数レジスタ6とを有するデータ
転送系に設けられる転送ワード数決定回路において、前
記バイト数レジスタ2及びアドレスレジスタ4にセット
されたバイト数及び先頭バイトアドレスに含まれている
転送ワード数出力制御判定値に応答して前記バイト数レ
ジスタ2のワード数表示値の出力制御のための第1の転
送ワード出力制御信号及び前記ワード数表示値+2の出
力制御のための第2の転送ワード出力制御信号を出力す
る判定回路8と、被加算入力に前記ワード数表示値を受
ける1個の加算回路16と、前記判定回路8から出力され
る両転送ワード出力制御信号に応じて0、1、又は2を
前記加算回路16の加算入力に出力する選択回路18とを設
けて構成される。
A first invention is a data transfer system for transferring a required number of words for data after transferring a word having a leading byte address of data to be transferred, following a word having a number of bytes to be transferred, First, a word number display value included in the received byte number, the word number display value + 1 and the word number display value + 2 are output. The word number display value, the word number display value + 1 and the word number display value + in response to the received byte number and the transfer word number output control determination value included in the first byte address.
A signal for selecting one of the two is output. Then, one of the three values is selected from the output signal, and the selected value is used as the number of words received via the data transfer system. According to a second aspect of the present invention, as shown in FIG. 2 (part 1), a byte number register 2 for setting the number of bytes of a command word received prior to data word reception, and a command word received following the command word. Number of transfer words provided in a data transfer system having an address register 4 for setting the address of an address word and a transfer word number register 6 for setting the number of transfer data words obtained from the values set in the registers 2 and 4 The determination circuit responds to the number of bytes set in the byte number register 2 and the address register 4 and the transfer word number output control determination value included in the first byte address, and displays the word number display value of the byte number register 2 in response to the determination value. A first transfer word output control signal for output control and a second transfer word output control signal for output control of the word number display value +2. A determination circuit 8 outputs a transfer word output control signals, a first adder circuit 10 for adding 1 to the number of words displayed value of the byte number register 2, the byte number register 2
A second adding circuit 12 for adding 2 to the word number display value of
In response to the first transfer word output control signal and the second transfer word output control signal, one of the word number display value, the word number display value + 1, or the word number display value + 2 is transferred. A selection circuit 14 for outputting the number of words to the transfer word number register 6;
According to a third aspect of the present invention, as shown in FIG. 2 (part 2), a byte number register 2 for setting the number of bytes of a command word received prior to data word reception, and a command word received following the command word. An address register 4 for setting the address of the address word;
In a transfer word number determination circuit provided in a data transfer system having a transfer word number register 6 for setting the number of transfer data words obtained from the value set to 4, the transfer word number is set in the byte number register 2 and the address register 4. A first transfer word output control signal for controlling output of a word number display value of the byte number register 2 in response to a byte number and a transfer word number output control value included in the first byte address, and the word number A determining circuit 8 for outputting a second transfer word output control signal for controlling the output of the display value +2, one adding circuit 16 receiving the word number display value at the input to be added, and an output from the determining circuit 8 And a selection circuit 18 for outputting 0, 1, or 2 to the addition input of the addition circuit 16 in accordance with both transfer word output control signals.

〔作 用〕(Operation)

データ転送系を介して受信されたバイト数はバイト数
レジスタ2にセットされ、先頭バイトアドレスはアドレ
スレジスタ4にセットされる。これら両レジスタ2、4
の転送ワード数出力制御判定値が判定回路8で用いられ
ててバイト数レジスタ2のワード数表示値の出力制御の
ための第1の転送ワード出力制御信号及び前記ワード数
表示値+2の出力制御のための第2の転送ワード出力制
御信号が判定回路8から出力される。この判定回路8
は、本発明におけるワード数表示値、該ワード数表示値
+1及び前記ワード数表示値+2の内のいづれか1つを
選択する信号を出力する手段の1つを示している。
The number of bytes received via the data transfer system is set in the byte number register 2, and the first byte address is set in the address register 4. These two registers 2, 4
The first transfer word output control signal for controlling the output of the word number display value of the byte number register 2 and the output control of the word number display value + 2 are used by the transfer word number output control determination value of Is output from the determination circuit 8 for the second transfer word output control signal. This judgment circuit 8
Indicates one of the means for outputting a signal for selecting one of the word number display value, the word number display value + 1 and the word number display value + 2 in the present invention.

これらの両転送ワード出力制御信号は、第2の発明に
おいては、バイト数レジスタ2のワード数表示値、加算
回路10のワード数表示値+1、又は加算回路12のワード
数表示値+2のいづれか1つを出力するのに選択回路14
で用いられる。又、第3の発明においては、加算回路16
の加算入力へ0、1、又は2を供給するのに選択回路16
で用いられる。
In the second invention, both of these transfer word output control signals are one of the word number display value of the byte number register 2, the word number display value of the adder circuit +1 or the word number display value of the adder circuit +2. Selector 14 to output one
Used in In the third aspect, the addition circuit 16
Selection circuit 16 to supply 0, 1, or 2 to the
Used in

このようにして、選択された値が転送ワード数として
転送ワード数レジスタ6にセットされ、転送終了のクロ
ックサイクルを知るのに用いられる。
In this way, the selected value is set in the transfer word number register 6 as the transfer word number, and is used to know the clock cycle at the end of the transfer.

〔実施例〕〔Example〕

第3図は第1の発明の一実施例を示す。この図におい
て、バイト数レジスタ2及びアドレスレジスタ4は、第
7図で説明したものと同じである。判定回路8はアドレ
スレジスタ4のバイト数表示ビット出力及びバイト数レ
ジスタ2のバイト数表示ビット出力を受けて転送ワード
数出力制御信号(以下転送回数ゲート信号という。)0W
及び2Wを出力する。転送回数ゲート信号0Wはアドレスレ
ジスタ4のバイト数表示バイト出力及びバイト数レジス
タ2のバイト数表示ビット出力を受けるナンド回路30か
ら出力される。転送回数ゲート信号2Wはアンド回路32か
ら出力される。アンド回路32は、アドレスレジスタ4の
バイト数表示ビット出力a及びバイト数レジスタ2のバ
イト数表示ビット出力cのオア回路34の出力、アドレス
レジスタ4のバイト数表示ビット出力b及びバイト数レ
ジスタ2のバイト数表示ビット出力dを受ける。ここ
で、各レジスタ2,4の下位2ビットが用いられ、それぞ
れのレジスタ2,4において、a,cがその下位ビットで、b,
dがその上位ビットである。加算回路10及び加算回路12
は、その被加算入力Aにバイト数レジスタ2のワード数
表示ビット出力を受ける一方、加算回路10の加算入力B
には1の値が入力され、又加算回路12の加算入力Bには
2の値が入力される。アンドゲート36、アンドゲート3
8、アンドゲート40は、それぞれアンドゲートで、その
被ゲート入力にはバイト数レジスタ2のワード数表示ビ
ット出力、加算回路10の出力、加算回路12の出力が、そ
れぞれ入力される。アンドゲート36のゲート制御入力に
は前記転送回数ゲート信号0Wが供給され、アンドゲート
38のゲート制御入力(反転アンド入力)には前記転送回
数ゲート信号0W及び前記転送回数ゲート信号2Wが供給さ
れ、そしてアンドゲート40のゲート制御入力には前記転
送回数ゲート信号2Wが供給される。アンドゲート36、ア
ンドゲート38及びアンドゲート40の出力はオア回路42を
経て転送ワード数(転送回数)レジスタ6へ入力され
る。アンドゲート36、アンドゲート38及びアンドゲート
40並びにオア回路42が第2図の選択回路14に対応する。
FIG. 3 shows an embodiment of the first invention. In this figure, the byte number register 2 and the address register 4 are the same as those described in FIG. The determination circuit 8 receives the byte number display bit output of the address register 4 and the byte number display bit output of the byte number register 2, and outputs a transfer word number output control signal (hereinafter referred to as a transfer number gate signal) 0W.
And 2W. The transfer number gate signal 0W is output from the NAND circuit 30 receiving the byte number display byte output of the address register 4 and the byte number display bit output of the byte number register 2. The transfer number gate signal 2W is output from the AND circuit 32. The AND circuit 32 outputs the output of the OR circuit 34 of the byte number display bit output a of the address register 4 and the byte number display bit output c of the byte number register 2, the byte number display bit output b of the address register 4 and the byte number display bit It receives the byte number indicating bit output d. Here, the lower two bits of each register 2 and 4 are used, and in each register 2 and 4, a and c are the lower bits and b and
d is the upper bit. Adder circuit 10 and adder circuit 12
Receives the word number indicating bit output of the byte number register 2 at its input A, and the addition input B of the adding circuit 10.
, A value of 2 is input to the addition input B of the addition circuit 12. AND gate 36, AND gate 3
8. The AND gate 40 is an AND gate, and its gated input receives the word number display bit output of the byte number register 2, the output of the adder circuit 10, and the output of the adder circuit 12, respectively. The transfer count gate signal 0W is supplied to the gate control input of the AND gate 36.
The transfer control gate signal 0W and the transfer control gate signal 2W are supplied to a gate control input (inverted AND input) of 38, and the transfer control gate signal 2W is supplied to the gate control input of the AND gate 40. The outputs of the AND gate 36, AND gate 38 and AND gate 40 are input to the transfer word number (transfer count) register 6 via the OR circuit 42. AND gate 36, AND gate 38 and AND gate
40 and the OR circuit 42 correspond to the selection circuit 14 in FIG.

この本発明回路の動作を以下に説明する。 The operation of the circuit of the present invention will be described below.

先頭バイトアドレスがワード内のいずれのバイト挿入
位置を指す値に設定され、且つバイト数BCTがどんな数
に設定されていたとしても、上述本発明原理説明におい
て述べたところから明らかなように、バイト数レジスタ
2のワード数表示ビット、これに1を足した値、又は前
記バイト数レジスタ2のワード数表示ビットに2を足し
た値のいずれかがそのデータ転送における転送回数を表
している。それらの値内のバイト数レジスタ2のワード
数表示ビットに1を足した値、若しくは前記バイト数レ
ジスタ2のワード数表示ビットに2を足した値は、加算
回路10、又は加算回路12から出力される。そして、前記
いずれかの値であるかをゲートさせる転送回数ゲート信
号0W、2Wは、それぞれバイト数レジスタ2にコマンドワ
ード内のバイト数がセットされ、続いて受信されるアド
レスワード内の先頭バイトアドレスがセットされる度毎
(つまり、データ転送開始時)に判定回路8のナンド回
路30、アンド回路32から出力される。
Regardless of the start byte address is set to a value indicating any byte insertion position in a word, and the number of bytes BCT is set to any number, as is clear from the above description of the principle of the present invention, Either the word number display bit of the number register 2, a value obtained by adding 1 thereto, or a value obtained by adding 2 to the word number display bit of the byte number register 2 represents the number of transfers in the data transfer. The value obtained by adding 1 to the word number indicating bit of the byte number register 2 or the value obtained by adding 2 to the word number indicating bit of the byte number register 2 is output from the adding circuit 10 or 12. Is done. The number-of-transfers gate signals 0W and 2W for gating whether the value is any of the above values are respectively set to the number of bytes in the command word in the byte number register 2, and the first byte address in the subsequently received address word is set. Is output from the NAND circuit 30 and the AND circuit 32 of the determination circuit 8 each time is set (ie, at the start of data transfer).

従って、データ転送が開始されると、選択されるべき
3つの転送回数候補値がアンドゲート36、アンドゲート
38、アンドゲート40の各被ゲート入力へ供給されると共
に、転送回数ゲート信号0W、2Wが判定回路8から出力さ
れる。その転送回数ゲート信号0W、2Wに応じて決まるバ
イト数レジスタ2、加算回路10、又は加算回路12からの
前記各転送回数候補値がアンドゲート36、アンドゲート
38、又はアンドゲート40を介して出力され、オア回路42
を介して転送ワード数(転送回数)レジスタ6へセット
されてデータ転送終了のクロックサイクルの決定(受信
情報の終了)に用いられる。
Therefore, when the data transfer is started, the three transfer count candidate values to be selected are the AND gate 36 and the AND gate 36.
38, while being supplied to each gated input of the AND gate 40, the transfer number gate signals 0W and 2W are output from the determination circuit 8. The transfer number candidate values from the byte number register 2, the adder circuit 10, or the adder circuit 12 determined according to the transfer number gate signals 0W and 2W are AND gates 36 and AND gates.
38, or output via an AND gate 40, and an OR circuit 42
And is set in the transfer word number (transfer count) register 6 via the control register and is used to determine a clock cycle for ending data transfer (end of received information).

前記転送回数のセットまで信号が伝播していかなけれ
ばならない回路数は少ないから、前記転送回数のセット
までに要する信号伝播遅延時間は短い。又、それらの回
路規模も小さい。
Since the number of circuits through which a signal must propagate to the set number of transfers is small, the signal propagation delay time required to set the number of transfers is short. Also, their circuit scale is small.

第4図は本発明の他の実施例を示す。この実施例にお
いては、加算器を1個とし、その加算器16から第3図の
実施例におけるバイト数レジスタ2のワード数表示ビッ
ト、これに1を足した値、又は前記バイト数レジスタ2
のワード数表示ビットに2を足した値を出力させるよう
にしたものである。そのために、アンドゲート44、アン
ドゲート46及びアンドゲート48、並びにオア回路50を設
け、オア回路50の出力を加算器16の加算入力へ供給す
る。加算器16の被加算入力にはバイト数レジスタ2のワ
ード数表示ビットを供給する。又、アンドゲート44、ア
ンドゲート46及びアンドゲート48の被ゲート入力には、
それぞれ0(2進表示で0,0)、1(2進表示で0,1)、
2(2進表示で1,0)が入力される。アンドゲート44の
ゲート制御入力には転送回数ゲート信号0Wが、アンドゲ
ート46の反転ゲート制御入力には転送回数ゲート信号0W
及び2Wが、そしてアンドゲート48のゲート制御入力には
転送回数ゲート信号2Wが供給される。アンドゲート44、
アンドゲート46及びアンドゲート48、並びにオア回路50
が第2図(その2)の選択回路18に対応する。その他の
構成要素であって、第3図内の構成要素と同一の構成要
素には、第3図内の構成要素に付された参照番号と同一
の参照番号を付してその説明は省略する。
FIG. 4 shows another embodiment of the present invention. In this embodiment, the number of adders is one, and the number of words indicating the number of words of the byte number register 2 in the embodiment of FIG.
And outputs a value obtained by adding 2 to the number-of-words indicating bit. For this purpose, the AND gate 44, the AND gate 46 and the AND gate 48, and the OR circuit 50 are provided, and the output of the OR circuit 50 is supplied to the addition input of the adder 16. The word number indicating bit of the byte number register 2 is supplied to the adder input of the adder 16. The gated inputs of the AND gate 44, AND gate 46 and AND gate 48 include:
0 (0,0 in binary notation), 1 (0,1 in binary notation),
2 (1,0 in binary notation) is input. The transfer count gate signal 0W is applied to the gate control input of the AND gate 44, and the transfer count gate signal 0W is applied to the inverted gate control input of the AND gate 46.
And 2W, and a gate control input of the AND gate 48 is supplied with a transfer count gate signal 2W. AND gate 44,
AND gate 46 and AND gate 48, and OR circuit 50
Correspond to the selection circuit 18 of FIG. 2 (part 2). The other components that are the same as those in FIG. 3 are given the same reference numerals as those of the components in FIG. 3, and descriptions thereof are omitted. .

この実施例における作用は、第3図に示す実施例と同
じであるが、第3図に示す実施例よりも回路量の削減が
図れる。
The operation of this embodiment is the same as that of the embodiment shown in FIG. 3, but the circuit amount can be reduced as compared with the embodiment shown in FIG.

なお、前記実施例におけるバイト数レジスタ2のワー
ド数表示ビット、これに1を足した値、又は前記バイト
数レジスタ2のワード数表示ビットに2を足した値を選
択するための回路構成をセレクタで代替する構成の下で
本発明を実施してもよい。又、高速なCPUの下で転送回
数ゲート情報の発生、前記バイト数レジスタ2のワード
数表示ビット、これに1を足した値,又は前記バイト数
レジスタ2のワード数表示ビットに2を足した値の出
力、及び前記転送回数ゲート情報に基づく前記3つの値
の選択をソフトウェアで為し、その結果を転送ワード数
(転送回数)レジスタ6にセットするようにしてもよ
い。
The circuit configuration for selecting the word number display bit of the byte number register 2 in the above embodiment, a value obtained by adding 1 thereto, or a value obtained by adding 2 to the word number display bit of the byte number register 2 is selected by a selector. The present invention may be carried out under an alternative configuration. Also, generation of transfer count gate information under a high-speed CPU, addition of 1 to the word number display bit of the byte number register 2, or addition of 2 to the word number display bit of the byte number register 2 The output of the value and the selection of the three values based on the transfer number gate information may be performed by software, and the result may be set in the transfer word number (transfer number) register 6.

以上の説明では、第5図のようにコマンドに続いて先
頭バイトアドレスが転送される場合の例であるが、それ
らが同時に転送される場合であっても本発明は同様に実
現される。又、4バイトを1ワードとして説明したが、
1ワードが8バイトでも、16バイト等であっても同様に
実現できる。
In the above description, an example is shown in which the leading byte address is transferred following the command as shown in FIG. 5, but the present invention is similarly realized even when these are transferred simultaneously. Also, although 4 bytes are described as 1 word,
The same can be realized whether one word is 8 bytes or 16 bytes.

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

以上述べたところから明らかなように本発明によれ
ば、転送回数のセットまで信号が伝播していかなければ
ならない回路数が少ない構成となっているから、前記転
送回数のセットまでに要する信号伝播遅延時間は短く、
又、それらの回路規模は小さい。
As is apparent from the above description, according to the present invention, since the number of circuits in which a signal must propagate to a set number of transfer times is small, the signal propagation required to set the number of transfer times is reduced. The delay time is short,
Also, their circuit scale is small.

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

第1図は本発明の原理説明図、 第2図は本発明の原理ブロック図、 第3図は第1の発明の一実施例を示す図、 第4図は第2の発明の実施例を示す図、 第5図は転送される各ワードのフオーマットを示す図、 第6図はミスアライメントでのデータ転送例を示す図、 第7図は従来の転送ワード数決定回路を示す図である。 第2図、第3図及び第4図において、 2はバイト数レジスタ、 4はアドレシレジスタ、 6は転送ワード数レジスタ、 8は判定回路、 10,12,16は加算回路、 14,18は選択回路である。 FIG. 1 is an explanatory view of the principle of the present invention, FIG. 2 is a block diagram of the principle of the present invention, FIG. 3 is a diagram showing one embodiment of the first invention, and FIG. 4 is an embodiment of the second invention. FIG. 5 is a diagram showing a format of each word to be transferred, FIG. 6 is a diagram showing an example of data transfer by misalignment, and FIG. 7 is a diagram showing a conventional transfer word number determining circuit. 2, 3 and 4, 2 is a byte number register, 4 is an address register, 6 is a transfer word number register, 8 is a decision circuit, 10, 12, and 16 are addition circuits, and 14, 18 are It is a selection circuit.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 岡崎 眞 神奈川県川崎市中原区上小田中1015番地 富士通株式会社内 (72)発明者 岡田 勝行 東京都千代田区内幸町1丁目1番6号 日本電信電話株式会社内 (58)調査した分野(Int.Cl.6,DB名) G06F 13/12──────────────────────────────────────────────────続 き Continuing from the front page (72) Inventor Makoto Okazaki 1015 Ueodanaka, Nakahara-ku, Kawasaki-shi, Kanagawa Prefecture Inside Fujitsu Limited (72) Inventor Katsuyuki Okada 1-1-6 Uchisaiwaicho, Chiyoda-ku, Tokyo Nippon Telegraph and Telephone Corporation In-company (58) Field surveyed (Int.Cl. 6 , DB name) G06F 13/12

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】転送されるバイト数を有するコマンドワー
ドに続いて、または該コマンドワードと同時に、転送さ
れるデータの先頭バイトアドレスを有するアドレスワー
ドを転送した後に、データのための所要数のワードを転
送するデータ転送系において、 受信したバイト数に含まれているワード数表示値、該ワ
ード数表示値+1及び前記ワード数表示値+2を出力
し、 前記受信したバイト数及び先頭バイトアドレスに含まれ
ている転送ワード数出力制御判定値に応じて前記ワード
数表示値、該ワード数表示値+1及び前記ワード数表示
値+2の内のいづれか1つを選択する信号を出力し、 該出力された信号で前記3つの値の内の1つを選択し、 選択された値を前記データ転送系を介して受信されるワ
ード数とすることを特徴とする転送ワード数決定方法。
Claims 1. A required number of words for data following a command word having the number of bytes to be transferred, or simultaneously with the command word, after transferring an address word having a leading byte address of the data to be transferred. In the data transfer system for transferring the number of words, the display value of the number of words included in the received number of bytes, the display value of the number of words +1 and the display value of the number of words +2 are output, and the received byte number and the head byte address are included. And outputting a signal for selecting one of the word number display value, the word number display value + 1 and the word number display value + 2 according to the transfer word number output control determination value. A transfer word, wherein one of the three values is selected by a signal, and the selected value is the number of words received via the data transfer system. How to determine the number of cards.
【請求項2】データワード受信に先立って受信されるコ
マンドワード内のバイト数をセットするバイト数レジス
タ(2)と、前記コマンドワードに続いて、または該コ
マンドワードと同時に受信されるアドレスワードのアド
レスをセットするアドレスレジスタ(4)と、前記両レ
ジスタ(2、4)にセットされた値から求められる転送
データワード数をセットする転送ワード数レジスタ
(6)とを有するデータ転送系に設けられる転送ワード
数決定回路において、 前記バイト数レジスタ(2)及びアドレスレジスタ
(4)にセットされたバイト数及び先頭バイトアドレス
に含まれている転送ワード数出力制御判定値に応答して
前記バイト数レジスタ(2)のワード数表示値の出力制
御のための第1の転送ワード数出力制御信号及び前記ワ
ード数表示値+2の出力制御のための第2の転送ワード
数出力制御信号を出力する判定回路(8)と、 前記バイト数レジスタ(2)のワード数表示値に1を加
算する第1の加算回路(10)と、 前記バイト数レジスタ(2)のワード数表示値に2を加
算する第2の加算回路(12)と、 前記第1の転送ワード出力制御信号及び第2の転送ワー
ド出力制御信号に応答して前記ワード数表示値、前記ワ
ード数表示値+1、又は前記ワード数表示値+2の内の
いづれか1つを転送ワード数として前記転送ワード数レ
ジスタ(6)へ出力する選択回路(14)とを設けたこと
を特徴とする転送ワード数決定回路。
2. A byte number register (2) for setting the number of bytes in a command word received prior to receiving a data word, and a byte number register (2) for receiving an address word received following the command word or simultaneously with the command word. The data transfer system includes an address register (4) for setting an address and a transfer word number register (6) for setting the number of transfer data words obtained from the values set in the registers (2, 4). In the transfer word number determining circuit, the number of bytes set in the byte number register (2) and the address register (4) and the number of transfer words output control determination value included in the head byte address are determined. A first transfer word number output control signal for controlling the output of the word number display value of (2) and the word; A determination circuit (8) for outputting a second transfer word number output control signal for output control of the number display value +2, and a first addition for adding 1 to the word number display value of the byte number register (2) A second adding circuit (12) for adding 2 to the word number display value of the byte number register (2); a first transfer word output control signal and a second transfer word output control A selection circuit for outputting to the transfer word number register (6) one of the word number display value, the word number display value + 1, or the word number display value + 2 as a transfer word number in response to a signal ( 14) A transfer word number determining circuit, characterized in that:
【請求項3】データワード受信に先立って受信されるコ
マンドワードのバイト数をセットするバイト数レジスタ
(2)と、前記コマンドワードに続いて、または該コマ
ンドワードと同時に受信されるアドレスワードのアドレ
スをセットするアドレスレジスタ(4)と、前記両レジ
スタ(2、4)にセットされた値から求められる転送デ
ータワード数をセットする転送ワード数レジスタ(6)
とを有するデータ転送系に設けられる転送ワード数決定
回路において、 前記バイト数レジスタ(2)及びアドレスレジスタ
(4)にセットされたバイト数及び先頭バイトアドレス
に含まれている転送ワード数出力制御判定値に応答して
前記バイト数レジスタ(2)のワード数表示値の出力制
御のための第1の転送ワード出力制御信号及び前記ワー
ド数表示値+2の出力制御のための第2の転送ワード出
力制御信号を出力する判定回路(8)と、 被加算入力に前記ワード数表示値を受け、加算結果を転
送ワードレジスタ(6)へ出力する1個の加算回路(1
6)と、 前記判定回路(8)から出力される両転送ワード出力制
御信号に応答して0、1、又は2を前記加算回路(16)
の加算入力に出力する選択回路(18)とを設けたことを
特徴とする転送ワード数決定回路。
3. A byte number register (2) for setting the number of bytes of a command word received prior to receiving a data word, and an address of an address word received following the command word or simultaneously with the command word. And a transfer word number register (6) for setting the number of transfer data words obtained from the values set in the two registers (2, 4).
A transfer word number determination circuit provided in a data transfer system having: a number of bytes set in the byte number register (2) and an address register (4); and a transfer word number output control determination included in a head byte address. A first transfer word output control signal for controlling the output of the word number display value of the byte number register (2) in response to the value, and a second transfer word output for controlling the output of the word number display value + 2 A judgment circuit (8) for outputting a control signal; and one addition circuit (1) for receiving the word number display value at the augmented input and outputting the addition result to the transfer word register (6)
6), and 0, 1, or 2 in response to both transfer word output control signals output from the determination circuit (8).
And a selection circuit (18) for outputting to the addition input of (1).
JP1206406A 1989-08-09 1989-08-09 Method and circuit for determining transfer word number Expired - Lifetime JP2829043B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1206406A JP2829043B2 (en) 1989-08-09 1989-08-09 Method and circuit for determining transfer word number

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1206406A JP2829043B2 (en) 1989-08-09 1989-08-09 Method and circuit for determining transfer word number

Publications (2)

Publication Number Publication Date
JPH0370238A JPH0370238A (en) 1991-03-26
JP2829043B2 true JP2829043B2 (en) 1998-11-25

Family

ID=16522836

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1206406A Expired - Lifetime JP2829043B2 (en) 1989-08-09 1989-08-09 Method and circuit for determining transfer word number

Country Status (1)

Country Link
JP (1) JP2829043B2 (en)

Also Published As

Publication number Publication date
JPH0370238A (en) 1991-03-26

Similar Documents

Publication Publication Date Title
EP0185676B1 (en) Data processor having dynamic bus sizing
US4777591A (en) Microprocessor with integrated CPU, RAM, timer, and bus arbiter for data communications systems
US4949291A (en) Apparatus and method for converting floating point data formats in a microprocessor
US20020120795A1 (en) Serial peripheral interface master device, a serial peripheral interface slave device and a serial peripheral interface
JP2565659B2 (en) Method and apparatus for providing accurate and complete communication between different bus architectures in an information handling system
EP0015319A2 (en) Digital input/analog drive positioning system
US4503511A (en) Computing system with multifunctional arithmetic logic unit in single integrated circuit
US4571675A (en) Microprocessor device with integrated auto-loaded timer
EP0150084B1 (en) Architecture for intelligent control of data communication adapters
JP2829043B2 (en) Method and circuit for determining transfer word number
US6377650B1 (en) Counter register monitor and update circuit for dual-clock system
US4751632A (en) Data processor having multiple cycle operand cycles
US5151995A (en) Method and apparatus for producing successive calculated results in a high-speed computer functional unit using low-speed VLSI components
JPS5952331A (en) Device address setting device
US6076098A (en) Adder for generating sum and sum plus one in parallel
JP2714015B2 (en) Logic circuit synthesizer
JP4134371B2 (en) I / O bus bridge device
US4330842A (en) Valid memory address pin elimination
JPS61255456A (en) Dma transferring system
USH1342H (en) Effectuating full duplex digital data transfer
JP3139011B2 (en) Fixed-point processor
KR100232494B1 (en) Apparatus for converting bit width
JPS59229659A (en) Data processing method
JP2575895B2 (en) Control signal switching device for integrated circuits
JP2747154B2 (en) I / O processor

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080918

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080918

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090918

Year of fee payment: 11

EXPY Cancellation because of completion of term