JPH01198850A - Direction control system - Google Patents

Direction control system

Info

Publication number
JPH01198850A
JPH01198850A JP2323888A JP2323888A JPH01198850A JP H01198850 A JPH01198850 A JP H01198850A JP 2323888 A JP2323888 A JP 2323888A JP 2323888 A JP2323888 A JP 2323888A JP H01198850 A JPH01198850 A JP H01198850A
Authority
JP
Japan
Prior art keywords
direction control
master device
bidirectional bus
control signal
delay
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.)
Granted
Application number
JP2323888A
Other languages
Japanese (ja)
Other versions
JPH0813042B2 (en
Inventor
Yoshio Kawai
川合 芳雄
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 JP2323888A priority Critical patent/JPH0813042B2/en
Publication of JPH01198850A publication Critical patent/JPH01198850A/en
Publication of JPH0813042B2 publication Critical patent/JPH0813042B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To prevent to decrease a reliability to latch reading-out data even when a distance to a farthest slave device is extended to 1/2 clock delay. CONSTITUTION:The direction control signal 1 of a 0 level to send reading-out data to a master device and generated in the master device 1 is one clock width and a timing is made the first one clock of a reading-out data area. The direction control in the master device 1 executes by passing a direction control signal through the double delay circuit 6 of the delaying quantity of a bidirectional bus 2 between the farthest slave devices 3 and the direction control in the farthest slave device 4 is executed without the use of the delay circuit. The direction control in other slave device 3 is executed through the delay circuit 7 of the double delaying quantity of a difference between the delaying quantity by the bidirectional bus 2 from the master device 1 and the delaying quantity by the bidirectional bus 2 between the master device and the farthest slave device 4. Thus, even when the distance to the farthest slave device 4 is extended to 1/2 clock width, the reliability of the latch can be increased.

Description

【発明の詳細な説明】 〔概 要〕 双方向性バスシステムの方向制御方式に関し、最遠のス
レーブ装置名の、双方向性バスの距離を1/2クロック
遅延と長くしても、読み出しデータをラッチする信顧性
が低下しない方向制御方式の提供を目的とし、 マスタ装置にて発する、読み出しデータをマスタ装置向
けにする方向制御信号の幅は1クロック幅でタイミング
は読み出しデータ領域の最初の1クロックとし、該マス
タ装置にての方向制御は、該方向制御信号を、最遠のス
レーブ装置間の該双方向性バスの遅延量の2倍の遅延回
路を通して行い、該最遠のスレーブ装置での方向f4御
は遅延回路を用いず行い、他のスレーブ装置での方向制
御は、該マスタ装置よりの該双方向性バスによる遅延量
と、該マスタ装置と該最遠のスレーブ装置間の該双方向
性バスによる遅延量との差の2倍の遅延量の遅延回路を
通して行うようにように構成する。
[Detailed Description of the Invention] [Summary] Regarding the direction control method of a bidirectional bus system, even if the distance of the bidirectional bus of the name of the farthest slave device is increased to 1/2 clock delay, the read data The purpose of this is to provide a direction control method that does not reduce the reliability of latching data.The width of the direction control signal, which directs the read data to the master device and is issued by the master device, is one clock width, and the timing is set at the beginning of the read data area. 1 clock, and the direction control in the master device is performed by passing the direction control signal through a delay circuit that is twice the delay amount of the bidirectional bus between the farthest slave devices. Direction f4 control is performed without using a delay circuit, and direction control in other slave devices is based on the amount of delay from the master device due to the bidirectional bus and between the master device and the farthest slave device. The configuration is such that the processing is performed through a delay circuit with a delay amount twice the difference from the delay amount due to the bidirectional bus.

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

本発明は、伝送装置の各部(スレーブ装置)に、CPU
を持つマスタ装置より、例えば、動作モードを設定した
り、又各部の状態を各部のメモリより読み出し、各部の
状態を監視する等を行う、双方向性バスシステムの方向
制御方式の改良に関する。
The present invention provides a CPU for each part (slave device) of a transmission device.
The present invention relates to an improvement in a direction control method for a bidirectional bus system, in which a master device having a master device sets an operating mode, reads out the status of each unit from the memory of each unit, and monitors the status of each unit.

〔従来の技術〕[Conventional technology]

以下従来例の双方向性バスシステムの方向制御方式を図
を用いて説明する。
The direction control method of a conventional bidirectional bus system will be explained below with reference to the drawings.

第4図は従来例の双方向性バスシステムのブロック図、
第5図、第6図は第4図の各部の方向制御信号及び各デ
ータのタイミング−を示すタイムチャートで、第5図は
方向制御信号の幅を1゜5クロック幅、第6図は方向制
御信号の幅を1クロック幅とした場合で、(A)はクロ
ック、 (B)は書込みサイクル、読み出しサイクルを
示し、(C)〜(1)は第4図のc w 3点に対応し
ており、(C)はマスタ装置1′が発する方向制御信号
のタイミング、(D)は(C)の方向制御信号が遅延し
たスレーブ装置3°での方向制御信号のタイミング、(
E)はスレーブ装置3゛での各データのタイミング、(
F)(I)はマスタ装置1゛の入口での各データのタイ
ミング、(G)は(C)の方向制御信号が遅延した最遠
のスレーブ装置4での方向制御信号のタイミング、(H
)は最遠のスレーブ装置4での各データのタイミングを
示す。
Figure 4 is a block diagram of a conventional bidirectional bus system.
Figures 5 and 6 are time charts showing the direction control signals of each part in Figure 4 and the timing of each data. When the width of the control signal is one clock width, (A) shows the clock, (B) shows the write cycle and read cycle, and (C) to (1) correspond to the three points cw in Fig. 4. (C) is the timing of the direction control signal issued by the master device 1', (D) is the timing of the direction control signal at the slave device 3° where the direction control signal in (C) is delayed, (
E) is the timing of each data in slave device 3, (
F) (I) is the timing of each data at the entrance of the master device 1, (G) is the timing of the direction control signal at the farthest slave device 4 where the direction control signal in (C) is delayed, (H
) indicates the timing of each data in the farthest slave device 4.

以下、双方向性バス2の遅延量と、制御信号線5の遅延
量は等しいとして説明する。
In the following description, it will be assumed that the delay amount of the bidirectional bus 2 and the delay amount of the control signal line 5 are equal.

第4図のマスタ装置1゛よりの双方向性バス2にスレー
ブ装置3゛、4が接続されており、スレーブ装置4は最
遠のスレーブ装置である。
Slave devices 3' and 4 are connected to the bidirectional bus 2 from the master device 1' in FIG. 4, with slave device 4 being the farthest slave device.

マスタ装置1゛より各スレーブ装置3゛、4への書込み
読み出しを行う為の書込みサイクル、読み出しサイクル
は、双方向性バスシステムでは、スループットが良く、
構成を簡単にする為に、第5図、第6図の(B)に示す
如く、4クロック幅で、書込み用アドレス及び読み出し
用アドレス領域は最初の1クロック幅、書込みデータ領
域は次の1クロック幅で、読み出しデータ領域は次の2
クロック幅を用いるようになっている。
In a bidirectional bus system, the write cycle and read cycle for writing and reading from the master device 1 to each slave device 3 and 4 have good throughput.
To simplify the configuration, as shown in FIGS. 5 and 6 (B), the width is 4 clocks, the write address and read address areas are the first 1 clock width, and the write data area is the next 1 clock width. The read data area is the following 2 clock widths.
The clock width is now used.

マスタ装置1゛のCPU8が、例えばスレーブ装置3゛
のメモリ14にデータを書き込む時は、第5図、第6図
(B)の書込みサイクルの、書込み用アドレス領域に、
スレーブ装置3′及びメモ1J14の書き込むべき位置
のアドレス及び書込みを示す符号を書込み、書込みデー
タ領域には書込みデータを書込み、双方向性バッファを
持つ双方向性バスインタフェース9に与え、又該双方向
性バスインタフェース9に与えられている方向制御信号
はルベルの優とし上記の書込み用アドレス及び書込みデ
ータを双方向性バス2に送信する。
For example, when the CPU 8 of the master device 1'' writes data to the memory 14 of the slave device 3'', it writes data in the write address area in the write cycle of FIGS. 5 and 6(B).
Write the address of the write position in the slave device 3' and the memo 1J14 and a code indicating the write, write the write data in the write data area, provide it to the bidirectional bus interface 9 having a bidirectional buffer, and write the write data in the write data area. The direction control signal applied to the bidirectional bus interface 9 is a control signal and transmits the write address and write data to the bidirectional bus 2.

この時、方向制御信号はルベルの侭であるので、バッフ
ァ10.制御信号線5を介しスレーブ装置3°、4に入
力する方向制御信号もルベルであり、夫々バッファ11
.15を介してオア回路13.16に送られる方向制御
信号もルベルの侭である。
At this time, since the direction control signal is at the level of the level, the buffer 10. The direction control signal input to the slave devices 3° and 4 via the control signal line 5 is also a level signal, and the buffer 11
.. The direction control signal sent via 15 to the OR circuit 13.16 is also a signal of the level.

書込み用アドレスはスレーブ装置3°宛であるので、方
向制御信号のルベルは、オア回路13を通しスレーブ装
置3゛の双方向性バッファを持つ双方向性バスインタフ
ェース12に与えられ、書込み用アドレス及び書込みデ
ータを取り込み、メモリ14の該当のアドレス位置にデ
ータを書き込む。
Since the write address is addressed to the slave device 3°, the level of the direction control signal is given to the bidirectional bus interface 12 having a bidirectional buffer of the slave device 3 through the OR circuit 13, and the write address and The write data is taken in and written to the corresponding address position in the memory 14.

又マスタ装置11’のCPU8が、スレーブ装置3゛の
メモリ14よりデータを読み出す時は、第5図、第6図
(B)の読み出しサイクルの読み出し用アドレス領域に
、スレーブ装置3゛及びメモ1J14の読み出すべき位
置のアドレス及び読み出しを示す符号を書込み、双方向
性バスインタフェース9に与え、又該双方向性バスイン
タフェース9に与えられている方向制御信号はルベルの
侭とし、上記の読み出し用アドレスを双方向性バス2に
送信する。
When the CPU 8 of the master device 11' reads data from the memory 14 of the slave device 3', the slave device 3' and the memory 1J14 are stored in the read address area of the read cycle shown in FIGS. 5 and 6 (B). Write the address of the position to be read out and a code indicating the readout, and give it to the bidirectional bus interface 9. Also, the direction control signal given to the bidirectional bus interface 9 is set to the left side of the label, and the above readout address is written. to the bidirectional bus 2.

すると、スレーブ装置3”では、読み出し用アドレスは
自装置宛であるので、方向制御信号のルベルをオア回路
13を通し、双方向性バッファを持つ双方向性バスイン
タフェース12に与え、読み出し用アドレスを取り込み
、メモリ14に与え、この読み出し用アドレスのデータ
を読み出す。
Then, in the slave device 3'', since the read address is addressed to the device itself, the direction control signal level is passed through the OR circuit 13 to the bidirectional bus interface 12 having a bidirectional buffer, and the read address is sent to the slave device 3''. The data is taken in and given to the memory 14, and the data at this read address is read out.

この読み出しデータを、双方向性バス2を介してマスタ
装置1゛に送らせ、双方向性バスインタフェース9にて
取り込んだ後ラッチしてCPU8が読み込む為に、マス
タ装置l゛では、第5図(C)に示す如(、読み出しデ
ータ領域の最初の1.5クロック幅がθレベルの、0レ
ベルの開方向をマスタ装置1゛向けにする方向制御信号
、又は第6図(C)に示す如く、読み出しデータ領域の
最初の1クロック幅がθレベルの、0レベルの開方向を
マスタ装置l゛向けにする方向制御信号を、双方向性バ
スインタフェース9に与えると共に、バッファlO及び
制御信号線5を介してスレーブ装置3゛、4に送る。
This read data is sent to the master device 1' via the bidirectional bus 2, fetched by the bidirectional bus interface 9, latched, and read by the CPU 8. As shown in (C), the first 1.5 clock width of the read data area is the θ level, and the direction control signal directs the open direction of the 0 level toward the master device 1, or as shown in FIG. 6(C). As shown, the first clock width of the read data area is θ level, and a direction control signal for directing the open direction of the 0 level toward the master device l is applied to the bidirectional bus interface 9, and the buffer lO and the control signal line 5 to the slave devices 3' and 4.

スレーブ装W3” 、4では、バッファ11.15を介
してこれを受信し、オア回路13.16に与える。
Slave devices W3'', 4 receive this via a buffer 11.15 and provide it to an OR circuit 13.16.

読み出し用アドレスはスレーブ装置3゛宛であるので1
、オア回路13にはルベルが与えられており、0レベル
の方向制御信号は双方向性バスインタフェース12に与
えられ、この0レベルの間、読み出しデータは双方向性
バス2を介してマスタ装置1゛に送られ、マスタ装置1
′の双方向性バスインタフェース9では、第5図(A)
に示すラッチ位置又は第6図(A)に示すラッチ位置に
てラッチし、このデータをCPU8が取り込む。
The read address is 1 because it is addressed to slave device 3.
, the OR circuit 13 is given a level, and a direction control signal of 0 level is given to the bidirectional bus interface 12. During this 0 level, the read data is sent to the master device 1 via the bidirectional bus 2. Master device 1
In the bidirectional bus interface 9 of ', FIG. 5(A)
It is latched at the latch position shown in FIG. 6 or the latch position shown in FIG. 6(A), and the CPU 8 takes in this data.

スレーブ装置4のメモリ18に書込みデータを書き込む
時及びメモリ18よりデータを読み出す時は、書込み用
アドレス、読み出し用アドレスをスレーブ装置4及びメ
モリ18の所望のアドレスとして、上記と同じ動作を行
う。
When writing data to the memory 18 of the slave device 4 and reading data from the memory 18, the same operation as described above is performed by setting the write address and the read address to desired addresses of the slave device 4 and the memory 18.

これ等の場合の、書込み用アドレス、書込みデータ、読
み出し用アドレス、読み出しデータの、スレーブ装置3
゛、4の入口、及びマスタ装置゛1゛の入口にてのタイ
ミングを示すと、双方向性バス2による遅延の為に、第
5図、第6図の(E)(H)(F)(1)に示す如くな
る。
In these cases, the write address, write data, read address, and read data of the slave device 3
5 and 6, due to the delay caused by the bidirectional bus 2. It becomes as shown in (1).

後で説明するが、第5図の場合は、スレーブ装W13゛
迄は1/8クロック遅延し、最遠のスレーブ装置4迄は
1/4クロック遅延するものとし、第6図の場合は、ス
レーブ装置3°迄は1/4クロック遅延し、最遠のスレ
ーブ装置4迄は1/2クロック遅延するものとして示し
であるので、Oレベルの方向制御信号は、スレーブ装置
3’、4には、第5図、第6図の(D)(G)に示す如
く遅れ、このタイミングで、読み出しデータがマスタ装
置l向けに送出され、マスタ装置1゛の入口での読み出
しデータのタイミングは第5図、第6図の(F)(1)
に示す如くなる。
As will be explained later, in the case of FIG. 5, there is a 1/8 clock delay up to the slave device W13', a 1/4 clock delay up to the farthest slave device 4, and in the case of FIG. The figure shows a 1/4 clock delay up to the slave device 3° and a 1/2 clock delay up to the farthest slave device 4, so the O level direction control signal is applied to the slave devices 3' and 4. , as shown in (D) and (G) of FIGS. 5 and 6. At this timing, the read data is sent to the master device 1, and the timing of the read data at the entrance of the master device 1 is delayed as shown in (D) and (G) of FIGS. Figure 6 (F) (1)
It becomes as shown in.

このことは、スレーブ装置が、マスタ装置1゛に非常に
近い所にあると、双方向性バス2による遅延はないので
、この場合の、マスタ装置l゛の入口での読み出しデー
タのタイミングは、第5図。
This means that if the slave device is located very close to the master device 1', there is no delay due to the bidirectional bus 2, so the timing of the read data at the entrance of the master device 1' in this case is Figure 5.

第6図の(B)の最近の読み出しデータの如(なり、ラ
ッチ位置にてラッチ出来る限界点であり、最遠のスレー
ブ装置4の読み出しデータのマスタ装置l゛の入口での
タイミングは、第5図、第6図の(B)の最遠の読み出
しデータの如く、次のサイクルぎりぎりの位置となり、
しかも第6図の場合は、読み出しデータをランチ出来る
限界となる。
As shown in the recent read data shown in FIG. As shown in the farthest read data in Figures 5 and 6 (B), the position is at the very edge of the next cycle,
Moreover, in the case of FIG. 6, there is a limit to which the read data can be launched.

即ち、読み出しデータの遅延は、0レベルの方向制御信
号の、制御信号線5による遅延と、読み出しデータの双
方向性バス2による遅延との和となるので、最遠のスレ
ーブ装置4迄の双方向性バス2の距離は、第5図の、θ
レベルの方向制御信号が1.5クロック幅の場合は、最
近のスレーブ装置の読み出しデータをラッチするラッチ
位置の関係もあり、l/4クロック分遅延の距離であり
、この場合は、読み出しデータが少し動いてもラッチ出
来信頼性は高いが、第6図の、θレベルの方向制御信号
が1クロック幅の場合は、1/2クロック分遅延迄距離
を長く出来るが、マスタ装置1′でのラッチ位置が限界
であり、読み出しデータが少し動くとラッチ出来なく信
頼性が低下する。
In other words, the delay of read data is the sum of the delay of the 0-level direction control signal due to the control signal line 5 and the delay of the read data due to the bidirectional bus 2, so that both up to the farthest slave device 4 The distance of the tropic bus 2 is θ in FIG.
If the level direction control signal is 1.5 clocks wide, there is a delay distance of 1/4 clock due to the latch position that latches the read data of the recent slave device, and in this case, the read data is delayed by 1/4 clock. Even if there is a slight movement, it can be latched and the reliability is high. However, if the θ level direction control signal is 1 clock width as shown in Fig. 6, the distance can be extended to a delay of 1/2 clock. The latch position is the limit, and if the read data moves slightly, it cannot be latched and reliability decreases.

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

上記従来の方向制御方式では、θレベルの方向制御信号
を1.5クロック幅とし、最遠のスレーブ装置4迄の、
双方向性バス2の距離を1/4クロック遅延とすると、
読み出しデータをラッチする信頼性は高いが距離が短い
問題点があり、0レベルの方向制御信号を1クロック幅
とし、最遠のスレーブ装置4迄の、双方向性バス2の距
離をl/2クロック遅延と長くすると、読み出しデータ
をラッチする信頼性が低下する問題点がある。
In the conventional direction control method described above, the θ level direction control signal has a width of 1.5 clocks, and the
If the distance of bidirectional bus 2 is 1/4 clock delay, then
Although the reliability of latching the read data is high, there is a problem with the short distance.The 0-level direction control signal is set to 1 clock width, and the distance of the bidirectional bus 2 to the farthest slave device 4 is l/2. If the clock delay is increased, there is a problem that the reliability of latching read data decreases.

本発明は、最遠のスレーブ装置4迄の、双方向性バス2
の距離を1/2クロック遅延と長くしても、読み出しデ
ータをラッチする信頼性が低下しない方向制御方式の提
供を目的としている。
The present invention provides bidirectional bus 2 up to the farthest slave device 4.
The object of the present invention is to provide a direction control method that does not reduce the reliability of latching read data even if the distance between the two directions is increased to 1/2 clock delay.

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

第1図は、本発明の原理図で、(A)は双方向性バスシ
ステムの構成を示すブロック図、(B)に書込みサイク
ル、読み出しサイクルを示し、(C)に読み出しデータ
をマスタ装置向けにするOレベルの方向制御信号を示す
FIG. 1 is a diagram showing the principle of the present invention, in which (A) is a block diagram showing the configuration of a bidirectional bus system, (B) shows a write cycle and a read cycle, and (C) shows the read data for the master device. This shows an O level direction control signal.

第1図(A)に示す如く、マスタ装置lよりの双方向性
バス2に複数のスレーブ装置3.4が接続され、該マス
タ装置1より各スレーブ装置3゜4への書込み読み出し
を行う為の書込みサイクル及び読み出しサイクルは共に
第1図(B)に示す如く、4クロック幅で、且つ書込み
用アドレス、読み出し用アドレス領域は共に最初の1ク
ロック幅、書込みデータ領域は次の1クロック幅、読み
出しデータ領域は次の2クロック幅を用いる。
As shown in FIG. 1(A), a plurality of slave devices 3.4 are connected to the bidirectional bus 2 from the master device 1, and the master device 1 reads and writes to each slave device 3.4. Both the write cycle and the read cycle are 4 clocks wide, as shown in FIG. The read data area uses the following two clock widths.

該マスタ装置1にての該双方向性バス2よりの読み出し
データ受信、各スレーブ装置3.4にての該双方向性バ
ス2への読み出しデータ送信の為の方向制御は、該マス
タ装置1にて発し、該複数のスレーブ装置3,4では、
該マスタ装置1と該複数のスレーブ装置3.4間の制御
信号線5を用い受信した方向制御信号を用いる。
Direction control for receiving read data from the bidirectional bus 2 at the master device 1 and transmitting read data to the bidirectional bus 2 at each slave device 3.4 is performed by the master device 1. and the plurality of slave devices 3 and 4,
A direction control signal received using the control signal line 5 between the master device 1 and the plurality of slave devices 3.4 is used.

第1図(A)に示す、該マスタ装置1にて発する、読み
出しデータをマスタ装置lの方向にするOレベルの方向
制御信号は第1図(C)に示す如く1クロック幅でタイ
ミングは読み出しデータ領域の最初の1クロックとする
。該マスタ装置1にての方向制御は、該方向制御信号を
、最遠のスレーブ装置4間の該双方向性バス2の遅延量
の2倍の、第1図(A)に示す遅延回路6を通して行い
、該最遠のスレーブ装置4での方向制御は遅延回路を用
いず行う。他のスレーブ装置3での方向制御は、該マス
タ装置1よりの該双方向性バス2による遅延量と、該マ
スタ装置1と該最遠のスレーブ装置4間の該双方向性バ
ス2による遅延量との差の2倍の遅延量の第1図(A)
に示す遅延回路7を通して行う。
As shown in FIG. 1(A), the O-level direction control signal, which directs the read data in the direction of the master device L, issued by the master device 1 has a width of 1 clock and the timing is read as shown in FIG. 1(C). This is the first clock of the data area. The direction control in the master device 1 is performed by transmitting the direction control signal to a delay circuit 6 shown in FIG. The direction control at the farthest slave device 4 is performed without using a delay circuit. Direction control in other slave devices 3 is determined by the amount of delay caused by the bidirectional bus 2 from the master device 1 and the delay caused by the bidirectional bus 2 between the master device 1 and the farthest slave device 4. Figure 1 (A) of the delay amount which is twice the difference between the amount and the amount of delay.
This is done through a delay circuit 7 shown in FIG.

〔作 用〕[For production]

本発明によれば、方向制御信号にて方向制御を行うのに
、マスタ装置1にて発する、読み出しデータをマスタ装
置向けにする0レベルの方向制御信号は1クロック幅で
、タイミングは読み出しデータ領域の最初の1クロック
°とし、該マスタ装置1にての方向制御は、該方向制御
信号を、最遠のスレーブ装置4間の該双方向性バス2の
遅延量の2倍の遅延回路6を通して行い、該最遠のスレ
ープ装置4での方向制御は遅延回路を用いず行い、他の
スレーブ装置3での方向制御は、該マスタ装置1よりの
該双方向性バス2による遅延量と、該マスタ装置1と該
最遠のスレーブ装置4間の該双方向性バス2による遅延
量との差の2倍の遅延量の遅延回路7を通して行うので
、マスタ装置lの入口での、全てのスレーブ装置からの
読み出しデータのタイミング及びマスタ装置lの読み出
しデータをランチするタイミングも、第1図(B)に示
す読み出しデータのタイミングとなる。
According to the present invention, when performing direction control using a direction control signal, the 0-level direction control signal issued by the master device 1 and directing read data to the master device has a width of 1 clock, and the timing is set in the read data area. The direction control in the master device 1 is performed by passing the direction control signal through a delay circuit 6 with twice the delay amount of the bidirectional bus 2 between the farthest slave devices 4. The direction control in the farthest slave device 4 is performed without using a delay circuit, and the direction control in the other slave devices 3 is based on the amount of delay from the master device 1 by the bidirectional bus 2 and the direction control in the farthest slave device 4. Since the delay circuit 7 has a delay amount twice the difference between the delay amount due to the bidirectional bus 2 between the master device 1 and the farthest slave device 4, all the slaves at the entrance of the master device 1 The timing of the read data from the device and the timing of launching the read data of the master device 1 are also the timing of the read data shown in FIG. 1(B).

このことは、最遠のスレーブ装置4迄の、第1図(C)
に示す0レベルの方向制御信号の、制御信号線5による
遅延と、読み出しデータの双方向性バス2によるマスタ
装置t迄の遅延の和が1クロック幅であるので、最遠の
スレーブ装置4迄の双方向性バス2の距離は!/2クロ
ック幅と長く出来、又マスタ装置1にての読み出しデー
タのラッチ位置は、第1図(B)に示す読み出しデータ
の真中にて行うことが出来るので、ラッチの信頼性を高
く出来る。
This means that up to the farthest slave device 4,
Since the sum of the delay of the 0-level direction control signal shown in the control signal line 5 and the delay of the read data to the master device t by the bidirectional bus 2 is one clock width, The distance of the two-way bus 2 is! /2 clock width can be achieved, and the latch position of the read data in the master device 1 can be performed in the middle of the read data shown in FIG. 1(B), so that the reliability of the latch can be increased.

〔実施例〕〔Example〕

以下本発明の1実施例に付き図に従って説明する。 An embodiment of the present invention will be described below with reference to the accompanying drawings.

第2図は本発明の実施例の双方向性バスシステムのブロ
ック図、第3図は第2図の各部の方向制御信号のタイミ
ングを示すタイムチャートで、(C)〜(G)は第2図
のc−g点に対応し、(A)はクロック、(B)は書込
みサイクル、読み出しサイクル、(C)は読み出しデー
タをマスタ装置1向けにする0レベルの方向制御信号の
タイミング、(D)は遅延回路6を通った方向制御信号
のタイミング、(E)はスレーブ装置3の入口での方向
制御信号のタイミング、(F)は遅延回路7を通った方
向制御信号のタイミング、(G)は最遠のスレーブ装置
4の入口での方向制御信号のタイミングを示す。
FIG. 2 is a block diagram of a bidirectional bus system according to an embodiment of the present invention, FIG. 3 is a time chart showing the timing of direction control signals of each part in FIG. Corresponding to points c-g in the figure, (A) is the clock, (B) is the write cycle, read cycle, (C) is the timing of the 0-level direction control signal for directing read data to the master device 1, (D ) is the timing of the direction control signal passing through the delay circuit 6, (E) is the timing of the direction control signal at the entrance of the slave device 3, (F) is the timing of the direction control signal passing through the delay circuit 7, (G) indicates the timing of the direction control signal at the entrance of the farthest slave device 4.

第2図では、読み出しデータをマスタ装置1向けにする
0レベルの、マスタ装置1が発する方向制御信号を、第
6図(C)に示す場合と同じく、第3図(C)に示す如
く、読み出しデータ領域の最初の1クロック幅とし、第
4図の場合と異なる点は、マスタ装置1には、最遠のス
レーブ装置4間の双方向性バス2の遅延量の2倍の遅延
回路6を設け、マスタ装置1での方向制御は遅延回路6
を通して行い、最遠のスレーブ装置4は従来と同じで、
他のスレーブ装置3は、マスタ装置1よりの該双方向性
バス2による遅延量と、該マスタ装置lと該最遠のスレ
ーブ装置4間の該双方向性バス2による遅延量との差の
2倍の遅延量の遅延回路7を設け、方向制御は遅延回路
7を通して行うようにした点である。
In FIG. 2, the 0-level direction control signal issued by the master device 1 for directing read data to the master device 1 is as shown in FIG. 3(C), as in the case shown in FIG. 6(C). The first clock width of the read data area is different from the case shown in FIG. A delay circuit 6 is provided for direction control in the master device 1.
The farthest slave device 4 is the same as before,
The other slave devices 3 calculate the difference between the amount of delay caused by the bidirectional bus 2 from the master device 1 and the amount of delay caused by the bidirectional bus 2 between the master device 1 and the farthest slave device 4. The difference is that a delay circuit 7 with twice the amount of delay is provided, and direction control is performed through the delay circuit 7.

従って、書込みサイクルの動作は、第4図の場合と同じ
であり、読み出しサイクルの時のタイミングが異なる。
Therefore, the operation of the write cycle is the same as in FIG. 4, but the timing during the read cycle is different.

この異なる点を中心にして、読み出しサイクルにおける
マスタ装置1での読み出しデータのランチについて第3
図を用いて説明する。
Focusing on this different point, we will discuss the launch of read data in the master device 1 in the read cycle in the third section.
This will be explained using figures.

第3図(C)の1クロック幅の、読み出しデータをマス
タ装置向けにするOレベルの方向制御信号を、マスタ装
置1では、最遠のスレーブ装置4間の双方向性バス2の
遅延量の2倍の遅延回路6を通して(D)に示す如く遅
延させて、双方向性バスインタフェース9に与え、又(
C)に示す0レベルの方向制御信号は、バッファ10.
制御信号線5.バッファ11.15を介して夫々スレー
ブ装置3.4に送られる。
The master device 1 transmits the 1-clock-width O-level direction control signal shown in FIG. It is delayed as shown in (D) through the double delay circuit 6, and is applied to the bidirectional bus interface 9, and (
The 0 level direction control signal shown in C) is sent to the buffer 10.
Control signal line5. They are sent to the respective slave devices 3.4 via buffers 11.15.

スレーブ装置3では、(E)に示す0レベルの方向制御
信号を、マスタ装置1よりの該双方向性バス2による遅
延量と、該マスタ装置1と該最遠のスレーブ装置4間の
該双方向性バス2による遅延量との差の2倍の遅延量の
遅延回路7を通して(F)に示す如く遅延させて、読み
出し用アドレスが自装置向けであれば、オア回路13を
介して双方向性バスインタフェース12に与え、読み出
しデータをマスタ装置1向けに送信する。
In the slave device 3, the 0-level direction control signal shown in (E) is transmitted based on the amount of delay from the master device 1 due to the bidirectional bus 2, and the amount of delay between the master device 1 and the farthest slave device 4. It is delayed as shown in (F) through the delay circuit 7 whose delay amount is twice the difference from the delay amount by the directional bus 2, and if the read address is for the own device, it is bidirectionally transmitted via the OR circuit 13. read data to the master device 1.

最遠のスレーブ装置4では(G)に示すOレベルの方向
制御信号をその侭、読み出し用アドレスが自装置向けで
あれば、オア回路16を介して双方向性バスインタフェ
ース17に与え、読み出しデータをマスタ装置1向けに
送信する。
The farthest slave device 4 then sends the O-level direction control signal shown in (G) to the bidirectional bus interface 17 via the OR circuit 16 if the read address is for its own device, and reads the read data. is sent to master device 1.

すると、マスタ装置1に非常に近いスレーブ装置及びマ
スタ装置1から1/2クロック遅延の最遠のスレーブ装
置4からの読み出しデータも、マスタ装fftの入口で
は、(B)に示す読み出しデータの位置になり、読み出
しデータの真中を(A)に示す如くラッチ位置とすれば
、最遠のスレーブ装置4迄の双方向性バッファ2の距離
を長く1/2クロック遅延としても読み出しデータをラ
ッチする信頼性を高く出来る。
Then, the read data from the slave device very close to the master device 1 and the farthest slave device 4 with a 1/2 clock delay from the master device 1 will also be at the read data position shown in (B) at the entrance of the master device fft. If the latch position is set at the center of the read data as shown in (A), the distance of the bidirectional buffer 2 to the farthest slave device 4 is increased and the read data can be reliably latched even with a 1/2 clock delay. You can improve your sexuality.

〔発明の効果〕〔Effect of the invention〕

以上詳細に説明せる如く本発明によれば、マスタ装置1
からの最遠のスレーブ装置4迄の双方向性バッファ2の
距離を長くl/2クロック遅延としても読み出しデータ
をラッチする信頼性を高く出来る効果がある。
As explained in detail above, according to the present invention, the master device 1
Even if the distance of the bidirectional buffer 2 from the slave device 4 to the farthest slave device 4 is increased by 1/2 clock delay, the reliability of latching the read data can be increased.

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

第1図は本発明の原理図、 第2図は本発明の実施例の双方向性バスシステムのブロ
ック図、 第3図は第2図の各部の方向制御信号のタイミングを示
すタイムチャート、 第4図は従来例の双方向性バスシステムのブロック図、 である。 図において、 1.1°はマスタ装置、 2は双方向性バス、 3.3’ 、4はスレーブ装置、 5は制御信号線、 6.7は遅延回路、 8はCPU。 9.12.17は双方向性バスインタフェース、10.
11.15はバッファ、 13.16はオア回路、 ″″″′   ′     ウ
FIG. 1 is a diagram of the principle of the present invention; FIG. 2 is a block diagram of a bidirectional bus system according to an embodiment of the present invention; FIG. 3 is a time chart showing the timing of direction control signals of each part in FIG. 2; FIG. 4 is a block diagram of a conventional bidirectional bus system. In the figure, 1.1° is a master device, 2 is a bidirectional bus, 3.3', 4 are slave devices, 5 is a control signal line, 6.7 is a delay circuit, and 8 is a CPU. 9.12.17 is a bidirectional bus interface; 10.
11.15 is the buffer, 13.16 is the OR circuit,

Claims (1)

【特許請求の範囲】 マスタ装置(1)よりの双方向性バス(2)に複数のス
レーブ装置(3、4)が接続され、該マスタ装置(1)
より各スレーブ装置(3、4)への書込み読み出しを行
う為の書込みサイクル及び読み出しサイクルは共に4ク
ロック幅で、且つ書込み用アドレス、読み出し用アドレ
ス領域は共に最初の1クロック幅、書込みデータ領域は
次の1クロック幅、読み出しデータ領域は次の2クロッ
ク幅を用い、該マスタ装置(1)にての、該双方向性バ
ス(2)よりの読み出しデータ受信、各スレーブ装置(
3、4)にての、該双方向性バス(2)への読み出しデ
ータ送信の為の方向制御は、該マスタ装置(1)にて発
し、該複数のスレーブ装置(3、4)では、該マスタ装
置(1)と該複数のスレーブ装置(3、4)間の制御信
号線(5)を用い受信した方向制御信号を用いる双方向
性バスシステムにおいて、 該マスタ装置(1)にて発する、読み出しデータをマス
タ装置向けにする方向制御信号の幅は1クロック幅でタ
イミングは読み出しデータ領域の最初の1クロックとし
、該マスタ装置(1)にての方向制御は、該方向制御信
号を、最遠のスレーブ装置(4)間の該双方向性バス(
2)の遅延量の2倍の遅延回路(6)を通して行い、該
最遠のスレーブ装置(4)での方向制御は遅延回路を用
いず行い、他のスレーブ装置(3)での方向制御は、該
マスタ装置(1)よりの該双方向性バス(2)による遅
延量と、該マスタ装置(1)と該最遠のスレーブ装置(
4)間の該双方向性バス(2)による遅延量との差の2
倍の遅延量の遅延回路(7)を通して行うようにしたこ
とを特徴とする方向制御方式。
[Claims] A plurality of slave devices (3, 4) are connected to a bidirectional bus (2) from a master device (1), and the master device (1)
Therefore, the write cycle and read cycle for writing and reading data to each slave device (3, 4) are both 4 clocks wide, and both the write address and read address area are 1 clock width at the beginning, and the write data area is 4 clocks wide. Using the next 1 clock width and the next 2 clock widths for the read data area, the master device (1) receives read data from the bidirectional bus (2), and each slave device (
3, 4), the directional control for the transmission of read data onto the bidirectional bus (2) is issued by the master device (1), and in the plurality of slave devices (3, 4): In a bidirectional bus system using a direction control signal received using a control signal line (5) between the master device (1) and the plurality of slave devices (3, 4), the master device (1) issues the direction control signal. The width of the direction control signal for directing the read data to the master device is one clock width and the timing is the first one clock of the read data area, and the direction control in the master device (1) is performed by using the direction control signal as follows. The bidirectional bus (
2) is performed through a delay circuit (6) with twice the delay amount, the direction control at the farthest slave device (4) is performed without using a delay circuit, and the direction control at the other slave device (3) is performed. , the amount of delay due to the bidirectional bus (2) from the master device (1), and the amount of delay between the master device (1) and the farthest slave device (
4) The difference between the amount of delay caused by the bidirectional bus (2) between
A direction control method characterized in that control is performed through a delay circuit (7) with double the amount of delay.
JP2323888A 1988-02-03 1988-02-03 Direction control method Expired - Lifetime JPH0813042B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2323888A JPH0813042B2 (en) 1988-02-03 1988-02-03 Direction control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2323888A JPH0813042B2 (en) 1988-02-03 1988-02-03 Direction control method

Publications (2)

Publication Number Publication Date
JPH01198850A true JPH01198850A (en) 1989-08-10
JPH0813042B2 JPH0813042B2 (en) 1996-02-07

Family

ID=12105027

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2323888A Expired - Lifetime JPH0813042B2 (en) 1988-02-03 1988-02-03 Direction control method

Country Status (1)

Country Link
JP (1) JPH0813042B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07264682A (en) * 1994-03-18 1995-10-13 Advantest Corp Control method and circuit for sending data in mechatronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07264682A (en) * 1994-03-18 1995-10-13 Advantest Corp Control method and circuit for sending data in mechatronic equipment

Also Published As

Publication number Publication date
JPH0813042B2 (en) 1996-02-07

Similar Documents

Publication Publication Date Title
JPH01198850A (en) Direction control system
JP2522412B2 (en) Communication method between programmable controller and input / output device
KR930004903B1 (en) Parallel data communication system and its method between processors by using data bus
RU1807495C (en) Process-to-process interface
KR100252084B1 (en) Method for writing/reading data and data access apparatus in multi-process system
KR100604569B1 (en) Apparatus for transceiving data between the processors and mobile terminal including the apparatus
JPH02211571A (en) Information processor
JPS6061859A (en) Data communication system of microcomputer
JPS6130300B2 (en)
JPH04267456A (en) Common bus system
KR960007835B1 (en) Common memory access device for multi-processor
JPH0656603B2 (en) Data processing system
KR101371506B1 (en) Method for dead-lock avoidance for 2-processor data communication system
JPH053018B2 (en)
JPS62256160A (en) Simultaneous access preventing system for interprocessor register
JPH0391191A (en) Multiport memory
JPH02278454A (en) Data transfer timing control system
JPH0370816B2 (en)
JPS6116115B2 (en)
JPH03144739A (en) Data transfer control system for duplexed storage device
JPH05298133A (en) Data transfer device
JPH02301851A (en) System bus accessing system
JPH01251156A (en) Dual port memory circuit
JPH04188350A (en) Memory circuit and decentralized processing system
JPS61264419A (en) Bus connection system using capacitance memory