JP2000187641A - Information transmitting circuit - Google Patents

Information transmitting circuit

Info

Publication number
JP2000187641A
JP2000187641A JP10365355A JP36535598A JP2000187641A JP 2000187641 A JP2000187641 A JP 2000187641A JP 10365355 A JP10365355 A JP 10365355A JP 36535598 A JP36535598 A JP 36535598A JP 2000187641 A JP2000187641 A JP 2000187641A
Authority
JP
Japan
Prior art keywords
processor
data
signal
latch
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP10365355A
Other languages
Japanese (ja)
Inventor
Shigeru Komine
繁 小峯
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP10365355A priority Critical patent/JP2000187641A/en
Publication of JP2000187641A publication Critical patent/JP2000187641A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Information Transfer Systems (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an inter-controller information transmitting circuit simple in circuit configuration and without imposing any weight on a controller. SOLUTION: A register 2 and a latch 3 are provided between processors A and B for transmitting information. When a writing timing from the processor A to a register 2 competes with a reading timing from the processor B, a latch timing control circuit 4 holds the output of the latch 3 so that any illegal data can be prevented from being read by the processor B.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は複数のサブシステム
からなるシステムにおいて、あるサブシステムの制御部
から別のサブシステムの制御部に対して必要な情報を伝
達する情報伝達回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an information transmission circuit for transmitting necessary information from a control unit of one subsystem to a control unit of another subsystem in a system including a plurality of subsystems.

【0002】[0002]

【従来の技術】近年、電子装置やシステムの制御はマイ
クロプロセッサなどの制御装置を用いて行なわれる場合
がほとんどであるが、電子装置が複雑化するにつれ制御
も複雑化し、1つの装置内に複数のマイクロプロセッサ
を持つことも珍しくない。この場合、各プロセッサが全
く独立してそれぞれ無関係に動作する場合もあるが、一
般的には装置内のプロセッサがそれぞれ連携して制御を
行う。この場合、システムや装置を構成する各サブシス
テムの様々な設定情報や、プロセッサそれぞれのステー
タス情報、さらにプロセッサが連動して動作するための
コマンドなどをプロセッサ間で伝達する必要がある。
尚、この情報伝達の必要性は汎用のマイクロプロセッサ
の場合だけでなく、ハードウエアロジックで独自構成し
た制御回路間でも同様に成り立つが、以下の説明では、
ソフトウエアに基づいて動作し制御を行う汎用プロセッ
サを用いた場合について説明する。
2. Description of the Related Art In recent years, control of electronic devices and systems is mostly performed using a control device such as a microprocessor. However, as electronic devices become more complicated, control becomes more complicated, and a plurality of controls are provided in one device. It is not uncommon to have a microprocessor. In this case, the processors may operate completely independently of each other, but generally, the processors in the apparatus perform control in cooperation with each other. In this case, it is necessary to transmit various setting information of each subsystem constituting the system and the apparatus, status information of each processor, and commands for operating the processors in cooperation with each other.
In addition, the necessity of this information transmission is not limited to the case of a general-purpose microprocessor, but similarly holds between control circuits independently configured by hardware logic, but in the following description,
A case in which a general-purpose processor that operates and controls based on software is used will be described.

【0003】このプロセッサ間での情報伝達は、プロセ
ッサが直接通信を制御して情報伝達を行うことも不可能
ではないが、その場合プロセッサの処理能力がプロセッ
サ間通信にかなり割かれてしまい、本来の制御処理が出
来なくなる。よって通常は図7のように通信制御回路と
通信バッファメモリを設けてプロセッサの負荷を減らし
ている。
It is not impossible for the information transmission between the processors to directly control the communication by the processors to transmit the information. In this case, however, the processing capability of the processor is considerably devoted to the communication between the processors. Control processing cannot be performed. Therefore, normally, a communication control circuit and a communication buffer memory are provided as shown in FIG. 7 to reduce the load on the processor.

【0004】図7は、プロセッサAからプロセッサBへ
の情報を伝達する情報伝達回路の例で、データ送信側の
プロセッサAと受信側のプロセッサBの双方にバッファ
メモリ101及び通信制御回路102を設け、通信制御
回路Aと通信制御回路Bの間をシリアル転送等によりデ
ータを送る。
FIG. 7 shows an example of an information transmission circuit for transmitting information from the processor A to the processor B. A buffer memory 101 and a communication control circuit 102 are provided in both the processor A on the data transmission side and the processor B on the reception side. The data is transmitted between the communication control circuit A and the communication control circuit B by serial transfer or the like.

【0005】プロセッサAからプロセッサBにデータを
伝達する場合、まずプロセッサAがバッファメモリ10
1Aにデータを書き込む。それを通信制御回路102A
がシリアルデータとして順次通信制御回路102Bに送
る。通信制御回路102Bはこの通信制御回路102A
から受信したこのデータをバッファメモリ101Bに一
時的に保存する。そしてプロセッサBがバッファメモリ
101Bのデータを読み出すことにより、プロセッサA
からプロセッサBへの情報伝達を行なうことができる。
When transmitting data from the processor A to the processor B, first, the processor A
Write data to 1A. The communication control circuit 102A
Sequentially sends the serial data to the communication control circuit 102B. The communication control circuit 102B is a communication control circuit 102A.
Is temporarily stored in the buffer memory 101B. Then, the processor B reads the data in the buffer memory 101B, whereby the processor A
From the processor to the processor B.

【0006】しかしこのバッファメモリ101を設ける
構成の場合、そのバッファメモリ101の容量には限り
があるためバッファメモリ101がオーバーフローしな
いうちにプロセッサBは受信データを読み出す必要があ
る。その為、例えばバッファメモリ101Bに新規デー
タが書き込まれたことを制御回路102Bがプロセッサ
Bに割込み信号として通知し、プロセッサBは割込み処
理としてバッファメモリ101Bからデータを読み出す
方法が通常用いられている。
However, in the case where the buffer memory 101 is provided, the capacity of the buffer memory 101 is limited, so that the processor B must read the received data before the buffer memory 101 overflows. Therefore, for example, a method is generally used in which the control circuit 102B notifies the processor B that new data has been written to the buffer memory 101B as an interrupt signal, and the processor B reads data from the buffer memory 101B as interrupt processing.

【0007】また情報伝達の別の方式として、図8のよ
うにプロセッサAとプロセッサBの間にプロセッサA、
B双方から読み書き可能なデュアルポートメモリ、若し
くはプロセッサAから書込め、プロセッサBから読み出
せるレジスタ103を設ける構成がある。この構成の場
合、プロセッサAからの書き込みとプロセッサBからの
読み出しがほぼ同時だった場合、書込みによりデュアル
ポートメモリ又はレジスタ103のデータが変化しつつ
ある時点で読み出しを行ってしまう為、プロセッサBは
不正なデータを読み出してしまう。従ってプロセッサA
が書き込みを開始した後にプロセッサBが読み出しを行
なう場合、アクセスタイミング制御回路104がプロセ
ッサBにウエイト信号を出す。これにより、プロセッサ
Bの読み出しサイクルが引き伸ばされ、プロセッサAに
よる書込みが完了後にプロセッサBによる読み出しが行
われる。また逆にプロセッサBが読み出し中にプロセッ
サAが書込みを行おうとした場合、アクセスタイミング
制御回路104がプロセッサAにウエイト信号を出すこ
とにより、プロセッサBの読み出しが完了後にプロセッ
サAが書き込み動作を行うようにしている。
As another method of information transmission, as shown in FIG.
There is a configuration in which a dual-port memory readable and writable from both sides B or a register 103 that can be written from the processor A and read from the processor B is provided. In the case of this configuration, when the writing from the processor A and the reading from the processor B are almost simultaneously performed, the reading is performed at the time when the data of the dual port memory or the register 103 is changing due to the writing. Reads incorrect data. Therefore processor A
In the case where the processor B performs a read after the start of writing, the access timing control circuit 104 issues a wait signal to the processor B. As a result, the read cycle of the processor B is extended, and after the write by the processor A is completed, the read by the processor B is performed. Conversely, if the processor A attempts to write while the processor B is reading, the access timing control circuit 104 issues a wait signal to the processor A so that the processor A performs the writing operation after the reading of the processor B is completed. I have to.

【0008】[0008]

【発明が解決しようとする課題】これら従来の情報伝達
回路には以下の問題点がある。
These conventional information transmission circuits have the following problems.

【0009】まず図7に示した構成の場合では、通信の
ためにバッファメモリ101や通信制御回路102を必
要とし、回路規模が大きくなってしまう。又通信を行う
プロセッサ間では、割込などを用いてある程度同期して
動作することを必要とされる。従って、通信による割込
以外に装置の制御上必要な割込が別に設定されていた場
合、プロセッサは複数の割込みを処理する必要があり、
ソフトウェアの構成が複雑化してしまう。
First, in the case of the configuration shown in FIG. 7, a buffer memory 101 and a communication control circuit 102 are required for communication, and the circuit scale becomes large. In addition, it is necessary that processors that perform communication operate in synchronization to some extent using an interrupt or the like. Therefore, if an interrupt required for controlling the device other than the interrupt by communication is set separately, the processor needs to process a plurality of interrupts,
The software configuration becomes complicated.

【0010】また、図8のデュアルポートメモリ又はレ
ジスタ103を設け、プロセッサAによる書込みとプロ
セッサBによる読み出しの同時アクセスに対して片方の
プロセッサのアクセスタイミングにウエイトをかける構
成の場合、必要な回路規模は図7の構成よりも小さくな
る場合が多いものの、使用できるプロセッサはアクセス
タイミングにウエイトをかけられるタイプのものに限定
される。ウエイトをどの程度かけたら良いかは、アクセ
ス時に競合が起こるかどうかにより変動するが、プロセ
ッサによってはあらかじめ設定したクロック数でのウエ
イトしかかけることができず、この様なタイプのプロセ
ッサはこの構成には用いることが出来ない。
In the case where the dual port memory or the register 103 shown in FIG. 8 is provided and the access timing of one processor is waited for simultaneous access of writing by the processor A and reading by the processor B, a necessary circuit scale is required. Is often smaller than the configuration of FIG. 7, but the usable processor is limited to the type that can give a wait to the access timing. How much weight should be applied depends on whether or not contention occurs at the time of access.However, depending on the processor, only a predetermined number of clocks can be applied. Cannot be used.

【0011】また、ウエイトを制御するタイミング信号
は一般的にプロセッサのクロックに同期し、プロセッサ
個々に規定されたセットアップ時間やホールド時間を満
たす必要がある。しかしこの場合別個のクロックで動作
する2つのプロセッサの両方にそれぞれ同期したタイミ
ングのウエイト信号を生成する必要があるため、ウエイ
トタイミングを制御する回路の構成が複雑になる。
The timing signal for controlling the wait is generally required to synchronize with the clock of the processor and satisfy a setup time and a hold time specified for each processor. However, in this case, it is necessary to generate wait signals at timings synchronized with both of the two processors operating with separate clocks, so that the configuration of the circuit for controlling the wait timing is complicated.

【0012】上記問題点を鑑み、本発明は簡単な回路構
成で且つ制御装置にウエイトをかける必要の無い、制御
装置間の情報伝達回路を提供することを課題とする。
In view of the above problems, it is an object of the present invention to provide an information transmission circuit between control devices which has a simple circuit configuration and does not require weighting of the control devices.

【0013】[0013]

【課題を解決するための手段】本発明の情報伝達回路
は、複数の制御装置間での情報の伝達を行うことを前提
として、上記問題を解決するため、第1のデータ保持手
段、第2のデータ保持手段及び保持タイミング制御手段
を備える。
SUMMARY OF THE INVENTION An information transmission circuit according to the present invention is based on the premise that information is transmitted between a plurality of control devices. Data holding means and holding timing control means.

【0014】第1のデータ保持手段は、第1の制御装置
から書き込み可能で、該書込まれた値を出力する。
The first data holding means is writable from the first control device and outputs the written value.

【0015】第2のデータ保持手段は、上記第1のデー
タ保持手段の出力を入力とし、第2の制御装置に対し
て、上記入力に基づいて変化させて或は上記入力の変化
にかかわらずホールドして出力する。
The second data holding means receives the output of the first data holding means as an input, and changes the second control device based on the input or irrespective of the change of the input. Hold and output.

【0016】保持タイミング制御手段は、上記第2のデ
ータ保持手段の出力のホールド及びその解除の制御を行
う。この保持タイミング制御手段による制御は、例え
ば、上記第1の制御装置からの書込みと上記第2の制御
装置からの読み出しが共に要求された時点から、該読み
出しの要求が解除されるまでの期間以上、上記第2のデ
ータ保持手段に出力をホールドさせるものである。
The holding timing control means controls the hold of the output of the second data holding means and the release thereof. The control by the holding timing control means is performed, for example, for a period equal to or longer than the period from when the writing from the first control device and the reading from the second control device are both requested to when the request for the reading is canceled. , And the second data holding means holds the output.

【0017】又本発明は、上記第2の制御装置から書き
込み可能で、該書込まれた値を出力する第3のデータ保
持手段と、上記第3のデータ保持手段の出力を入力と
し、上記第1の制御装置に対して、上記入力に基づいて
変化させて或は上記入力の変化にかかわらずホールドし
て出力する第4のデータ保持手段とを更に備え、上記保
持タイミング制御手段は、上記第4のデータ保持手段の
出力のホールド及びその解除の制御をも行う様に構成す
ることも出来る。
Further, according to the present invention, there is provided a third data holding means which is writable from the second control device and outputs the written value, and an output of the third data holding means is provided as an input. A fourth data holding means for changing the first control device based on the input or holding and outputting the data irrespective of the change of the input, wherein the holding timing control means comprises: It is also possible to configure so as to control the hold of the output of the fourth data holding means and the release thereof.

【0018】本発明によれば、第1の制御装置が第1の
データ保持手段にデータを書込み中であっても、第2の
制御装置には第2のデータ保持手段がホールドした出力
が与えられるので、第2の制御装置が不正な情報を読み
出すことはない。
According to the present invention, even when the first control device is writing data to the first data holding means, the output held by the second data holding means is given to the second control device. Therefore, the second control device does not read illegal information.

【0019】[0019]

【発明の実施の形態】図1は本発明の実施形態における
情報伝達回路の構成図である。
FIG. 1 is a block diagram of an information transmission circuit according to an embodiment of the present invention.

【0020】図1の回路は、図8のレジスタを用いた場
合の回路構成に、レジスタ2の後段にラッチ3及びラッ
チ3の制御を行うラッチタイミング制御回路4が追加さ
れ、またプロセッサA及びBに対しウエイトをかけアク
セスのタイミング制御を行なうアクセスタイミング制御
回路104が無い。尚図1には、図8には示されていな
いデコーダ1、デコーダ6及びトライステートバッファ
5が図示されているが、図8ではこれらは概略を説明す
るために省略したものであり、本来図8及び図7におい
ても図1と同様に存在する。
In the circuit of FIG. 1, a latch 3 and a latch timing control circuit 4 for controlling the latch 3 are added after the register 2 to the circuit configuration using the register of FIG. There is no access timing control circuit 104 that waits for and controls access timing. FIG. 1 shows the decoder 1, the decoder 6, and the tri-state buffer 5, which are not shown in FIG. 8, but these are omitted in FIG. 8 and FIG. 7 as well as FIG.

【0021】プロセッサAからプロセッサBにデータを
伝達する場合、プロセッサAはプロセッサBへのデータ
転送用に設定された特定アドレスに対して伝送データを
書込む。プロセッサAのアドレス信号及びライト信号は
デコーダ1によってデコードされ、その結果プロセッサ
Aによる指定アドレスが上記特定アドレスであれば、ラ
イト信号をレジスタライト信号/WRとしてレジスタ2
に出力する。
When transmitting data from the processor A to the processor B, the processor A writes the transmission data to a specific address set for data transfer to the processor B. The address signal and the write signal of the processor A are decoded by the decoder 1, and as a result, if the address specified by the processor A is the specific address, the write signal is set to the register write signal / WR to the register 2
Output to

【0022】このプロセッサAからのライト信号/WR
は負論理の制御信号で、信号がLレベルからHレベルに
立ち上がる部分(以下、立ち上がりエッジと呼ぶ)はデ
ータの書込みタイミングを示すものである。レジスタ2
はこの/WR信号のエッジタイミングに基づいて、プロ
セッサAのデータバスからデータを取込む。尚ライト信
号WR及び後述するリード信号RDの前に付した“/”
は信号が負論理であることを示している。
Write signal / WR from processor A
Is a control signal of negative logic, and a portion where the signal rises from the L level to the H level (hereinafter, referred to as a rising edge) indicates a data write timing. Register 2
Captures data from the data bus of processor A based on the edge timing of the / WR signal. Note that "/" added before the write signal WR and a read signal RD described later.
Indicates that the signal is negative logic.

【0023】またプロセッサBはプロセッサAからのデ
ータを受取る際、プロセッサAからのデータ受取り用に
設定されている特定アドレスから伝送データを読み出
す。プロセッサBのアドレス信号及びリード信号はデコ
ーダ6によってデコードされ、プロセッサBによる指定
アドレスが上記特定アドレスであれば、リード信号をレ
ジスタリード信号/RDとしてラッチタイミング制御回
路4及びトライステートバッファ5に出力する。トライ
ステートバッファ5は、この/RD信号がLレベルの時
ラッチ3の出力をプロセッサBのデータバスに透過出力
し、またHレベルの時は、ハイインピーダンス状態とな
る。またラッチタイミング制御回路4は、このレジスタ
リード信号/RDに基づいてラッチ制御信号を生成し、
リード信号/RDの立ち上がりエッジのタイミングでデ
ータがプロセッサに取り込まれる様ラッチ3の出力のホ
ールドの制御を行う。
When receiving the data from the processor A, the processor B reads the transmission data from the specific address set for receiving the data from the processor A. The address signal and the read signal of the processor B are decoded by the decoder 6. If the address specified by the processor B is the specific address, the read signal is output to the latch timing control circuit 4 and the tri-state buffer 5 as a register read signal / RD. . The tristate buffer 5 transmits the output of the latch 3 to the data bus of the processor B when the / RD signal is at the L level, and enters a high impedance state when the / RD signal is at the H level. The latch timing control circuit 4 generates a latch control signal based on the register read signal / RD,
The output control of the latch 3 is controlled so that the data is taken into the processor at the timing of the rising edge of the read signal / RD.

【0024】プロセッサAからレジスタ2への書込みは
通常の書き込みであり、プロセッサBからの読み出し要
求の有無に関わらずレジスタ2へは正常に書込みが行わ
れる。しかし、このレジスタ2の出力をプロセッサBが
直接読み出した場合、たまたまライト信号の立ち上げタ
イミングとリード信号の立ち上げタイミング、すなわち
プロセッサAによるデータの書込みとプロセッサBによ
るデータの読み出しのタイミングがほぼ一致していた場
合、プロセッサBはデータを正しく読めないことが起こ
りうる。そこでレジスタ2の後段にラッチ3を設け、リ
ード信号/RDの立ち上がり前後、即ちプロセッサBに
よるデータ読み出し時は、たとえプロセッサAによる書
込みがあってもプロセッサBへの出力データが変化しな
いよう出力をホールドしている。
The writing from the processor A to the register 2 is a normal writing, and the writing to the register 2 is normally performed regardless of the presence or absence of the read request from the processor B. However, when the output of the register 2 is directly read by the processor B, the rising timing of the write signal and the rising timing of the read signal happen to occur, that is, the timing of the data writing by the processor A and the timing of the data reading by the processor B almost coincide. If so, the processor B may not be able to read the data correctly. Therefore, a latch 3 is provided at the subsequent stage of the register 2, and before and after the rising of the read signal / RD, that is, at the time of reading data by the processor B, holds the output so that the output data to the processor B does not change even if the data is written by the processor A. are doing.

【0025】このラッチ3の制御を行う制御信号を生成
する回路が図1内のラッチタイミング制御回路4であ
る。ラッチタイミング制御回路4の構成例を図2に示
す。
A circuit for generating a control signal for controlling the latch 3 is a latch timing control circuit 4 in FIG. FIG. 2 shows a configuration example of the latch timing control circuit 4.

【0026】ラッチタイミング制御回路4は、プロセッ
サAからのライト信号/WRと、プロセッサBからのリ
ード信号/RD、すなわち、プロセッサAによる書込み
とプロセッサBによる読み出しの競合を監視している。
The latch timing control circuit 4 monitors the write signal / WR from the processor A and the read signal / RD from the processor B, that is, the competition between the writing by the processor A and the reading by the processor B.

【0027】ライト信号/WRとリード信号/RDは論
理積11が取られ、/WRと/RDが両方ともにLレベ
ルすなわちイネーブルになったとき、SRフリップフロ
ップ14のセット入力SがHレベルになり、SRフリッ
プフロップ14がセットされる。その結果出力QがHレ
ベルとなり、これが論理反転ゲート15で反転され、ラ
ッチ制御信号としてLレベルが出力される。ラッチ3
は、ラッチ制御信号がLレベルの時、その入力データの
変化に関係なく出力データをホールドする。このラッチ
3の出力のホールドはプロセッサBがデータの取り込み
を完了して/RDを立ち上げるまで行ない、プロセッサ
BがプロセッサAによる書込みによって変化中のレジス
タ2の出力データを取り込まないようにする。
The logical product 11 is obtained between the write signal / WR and the read signal / RD. When both / WR and / RD are at L level, that is, enabled, the set input S of the SR flip-flop 14 becomes H level. , SR flip-flop 14 are set. As a result, the output Q becomes H level, which is inverted by the logic inversion gate 15, and the L level is output as the latch control signal. Latch 3
Holds output data irrespective of a change in the input data when the latch control signal is at the L level. The output of the latch 3 is held until the processor B completes the fetching of the data and raises / RD, so that the processor B does not fetch the changing output data of the register 2 by the writing by the processor A.

【0028】また/RD信号の立ち上がり直後の、プロ
セッサBがデータ読み出しを行っているデータホールド
時間中もラッチ3の出力データが変化してはならない。
拠って、/RD信号と、この/RD信号に遅延回路13
によりある程度の時間遅延を加えた信号の論理積12を
とり、これをSRフリップフロップ14のリセット入力
Rに加える。これにより/RD信号の立ち上がりから遅
延回路13による遅延時間分経過後、SRフリップフロ
ップ14はリセットされ、ラッチ制御信号はHレベルに
なり、ラッチ3のホールドは解除される。これにより、
/RD信号の立ち上がりから遅延時間後、ラッチ3は入
力データをそのまま出力する。この遅延回路13によっ
て/RD信号に加える遅延は、プロセッサBのデータホ
ールド時間を保証できれば良く、正確な遅延時間を要求
されないので、遅延回路13は、例えば論理反転ゲート
を偶数段挿入するなどして構成することが出来る。
Also, immediately after the rise of the / RD signal, the output data of the latch 3 must not change during the data hold time during which the processor B is reading data.
Therefore, the / RD signal and the delay circuit 13
The logical AND 12 of the signals after a certain time delay has been added, and this is applied to the reset input R of the SR flip-flop 14. As a result, after a lapse of the delay time by the delay circuit 13 from the rise of the / RD signal, the SR flip-flop 14 is reset, the latch control signal becomes H level, and the hold of the latch 3 is released. This allows
After a delay time from the rise of the / RD signal, the latch 3 outputs the input data as it is. The delay added to the / RD signal by the delay circuit 13 only needs to guarantee the data hold time of the processor B, and an accurate delay time is not required. Therefore, the delay circuit 13 inserts an even number of logical inversion gates, for example. Can be configured.

【0029】図1のレジスタ2は、いわゆるDタイプフ
リップフロップ回路をプロセッサAのデータバス幅、例
えば8ビット分集めて構成したものであり、レジスタ2
への入力としてプロセッサAからデータバス、クロック
信号及びこのレジスタへのライト信号/WRが接続され
ている。
The register 2 shown in FIG. 1 is constructed by collecting D-type flip-flop circuits for the data bus width of the processor A, for example, 8 bits.
A data bus, a clock signal, and a write signal / WR to this register are connected as inputs to the processor A.

【0030】ライト信号/WRはプロセッサAのアドレ
ス信号とライト信号をデコードした結果から出力される
負論理の信号で、はプロセッサAによるプロセッサBへ
の伝送データの書込み要求の発生を示す。レジスタ2へ
の書込みは、この/WR信号のエッジタイミングで行わ
れるもので、/WR信号がLレベルからHレベルに立ち
上がる立ち上がりエッジのタイミングに基づいてプロセ
ッサAからの入力データがレジスタ2に取り込まれ、こ
れがレジスタ2の出力データとなる。
The write signal / WR is a signal of negative logic output from the result of decoding the address signal and the write signal of the processor A, and indicates that the processor A has issued a request to write the transmission data to the processor B. Writing to the register 2 is performed at the edge timing of the / WR signal. Input data from the processor A is taken into the register 2 based on the rising edge timing at which the / WR signal rises from the L level to the H level. , Which is output data of the register 2.

【0031】レジスタ2の入出力信号の動作タイミング
を図3(a)に示す。レジスタ2はクロックの立ち上が
りエッジにより出力値が決定されるので、入力値を確定
するため立ち上がりエッジの前後では、セットアップ時
間及びホールド時間として入力データ値を変化させては
いけない時間帯が規定されている。また、出力データ
は、クロックの立ち上がりエッジから出力遅延時間以内
に出力データの変化が完了し、確定される。
FIG. 3A shows the operation timing of the input / output signal of the register 2. Since the output value of the register 2 is determined by the rising edge of the clock, before and after the rising edge to determine the input value, a time zone in which the input data value must not be changed is defined as a setup time and a hold time. . Further, the output data changes within the output data within the output delay time from the rising edge of the clock and is determined.

【0032】また、レジスタ2の後段にあるラッチ3
は、いわゆるDタイプトランスペアラントラッチをデー
タバス幅分集めて構成したものである。ラッチ3は、ラ
ッチ制御信号としてHレベル(ディスエーブル)が入力
されている時は、レジスタ2からの入力データを特定の
遅延を加えて透過出力するが、ラッチ制御信号がLレベ
ル(イネーブル)になると入力データが変化しても出力
値は変化せずホールドして出力する。
The latch 3 at the subsequent stage of the register 2
Is constructed by collecting so-called D-type transparent latches for the data bus width. When the H level (disable) is input as the latch control signal, the latch 3 transmits and outputs the input data from the register 2 with a specific delay, but the latch control signal changes to the L level (enable). Then, even if the input data changes, the output value does not change and is held and output.

【0033】ラッチの動作タイミングを図3(b)に示
す。図3(b)で、ラッチ3は制御信号の立ち下がりエ
ッジによりホールドされる出力データが決定するので、
立ち下がりエッジの前後は、セットアップ時間及びホー
ルド時間として入力データ値を変化させてはいけない時
間帯として規定されている。また、制御信号がHレベル
時の場合には、入力データが変化してから特定の遅延時
間以内に出力データが変化する。
FIG. 3B shows the operation timing of the latch. In FIG. 3B, since the latch 3 determines the output data to be held by the falling edge of the control signal,
Before and after the falling edge are defined as a time zone in which the input data value must not be changed as a setup time and a hold time. When the control signal is at the H level, the output data changes within a specific delay time after the input data changes.

【0034】この様に、図1の回路はプロセッサAから
の書込み信号/WRとプロセッサBからの読み出し信号
/RDが共にイネーブルとなった時点から、プロセッサ
Bによる読み出しが完了する時点まで、ラッチ3の出力
をホールドすることになる。この時の各信号の動作タイ
ミングを図4により説明する。尚同図では/WR信号と
/RD信号のイネーブルである期間がほぼ同じ長さとな
っているが、一方が短くもう一方が長くとも全く問題は
無い。
As described above, the circuit of FIG. 1 latches the latch 3 from the time when the write signal / WR from the processor A and the read signal / RD from the processor B are both enabled to the time when the reading by the processor B is completed. Will be held. The operation timing of each signal at this time will be described with reference to FIG. Although the period during which the / WR signal and the / RD signal are enabled has substantially the same length in the same figure, there is no problem if one is short and the other is long.

【0035】図4において、まず/WR信号と/RD信
号のイネーブルになるタイミング(各信号の立ち上がり
エッジ)が十分に離れている場合は、図4(a)の様に
ラッチ3はレジスタ2からの入力をそのまま透過出力
し、プロセッサBはレジスタ2のデータを/RD信号の
立ち上がりエッジのタイミングで正常に読み出せる。
In FIG. 4, first, when the enable timing of the / WR signal and the / RD signal (the rising edge of each signal) is sufficiently separated, the latch 3 is switched from the register 2 as shown in FIG. And the processor B can read the data of the register 2 normally at the timing of the rising edge of the / RD signal.

【0036】図4(b)の場合は、/RD信号が/WR
信号に先行し且つ共にLレベル、すなわちイネーブルと
なる期間がある場合であり、/RD信号の立ち上がりエ
ッジの前後出力が変化しないようラッチ3によってホー
ルドされているので、プロセッサBはデータを正常に読
み出せる。また図4(c)は/RD信号が/WR信号に
先行するが共にイネーブルとなる期間が無い場合で、こ
の場合はラッチ3によるデータのホールドは行われない
がプロセッサBは問題なくデータを読み出すことが出来
る。
In the case of FIG. 4B, the / RD signal is / WR
In this case, there is a period in which the signal is at the L level, that is, an enable state, and the output is held by the latch 3 so that the output before and after the rising edge of the / RD signal does not change. I can put it out. FIG. 4C shows a case where the / RD signal precedes the / WR signal but there is no period in which both are enabled. In this case, the data is not held by the latch 3 but the processor B reads the data without any problem. I can do it.

【0037】図4(d)は/WR信号が/RD信号に先
行し、共にイネーブルになる期間がある場合である。こ
の場合、/WR信号の立ち上がりエッジのタイミングで
レジスタ2は書き換えられるので、ラッチ3が無ければ
変化中のレジスタ2のデータをプロセッサBが読んでし
まうことになり正常に読めない。しかし本実施例ではプ
ロセッサBによる読み出しが完了するまでラッチ3が出
力データをホールドしているので、プロセッサBは正常
な読み出しが可能となる。また図4(e)は/WR信号
が/RD信号に先行するが共にイネーブルとなる期間が
無い場合である。この場合は、/WR信号と/RD信号
が共にイネーブルにならないことからラッチのホールド
は行われず、プロセッサBは/RD信号の立ち上がりの
タイミングで正常にデータを読み出せる。またこの図4
(e)に示した様に/WR信号の立ち上がり直後に/R
D信号が立ち下がる場合、ラッチ3の出力のホールドの
制御を/RD信号のみで行なった場合には、プロセッサ
Aによる書込みによって変化中のレジスタ2の出力デー
タをラッチ3の出力としてホールドしてしまいプロセッ
サBは正常なデータを読み出せない。よって本実施形態
のラッチタイミング制御回路4は、/WR信号と/RD
信号の両方の信号の変化に基づいてラッチ3のホールド
のタイミングを制御している。
FIG. 4D shows a case where the / WR signal precedes the / RD signal and there is a period in which both are enabled. In this case, since the register 2 is rewritten at the timing of the rising edge of the / WR signal, without the latch 3, the data of the register 2 being changed is read by the processor B and cannot be read normally. However, in this embodiment, since the latch 3 holds the output data until the reading by the processor B is completed, the processor B can perform the normal reading. FIG. 4E shows a case where the / WR signal precedes the / RD signal but there is no period during which both are enabled. In this case, since neither the / WR signal nor the / RD signal is enabled, the latch is not held, and the processor B can normally read data at the rising timing of the / RD signal. FIG. 4
As shown in (e), immediately after the / WR signal rises, / R
When the D signal falls and when the control of holding the output of the latch 3 is performed only by the / RD signal, the output data of the register 2 being changed by the writing by the processor A is held as the output of the latch 3. Processor B cannot read normal data. Therefore, the latch timing control circuit 4 of the present embodiment outputs the / WR signal and the / RD signal.
The timing of holding the latch 3 is controlled based on a change in both signals.

【0038】この様に本実施形態における情報伝達回路
では、ラッチタイミング制御回路4でラッチ3のホール
ドを制御することにより、プロセッサAからの書き込み
タイミングとプロセッサBからの読み出しタイミングが
どの様に競合した場合でも不正なデータを読み出してし
まうことはない。
As described above, in the information transmission circuit according to the present embodiment, the latch timing control circuit 4 controls the hold of the latch 3, so that the write timing from the processor A and the read timing from the processor B compete with each other. Even in such a case, there is no possibility of reading incorrect data.

【0039】また図1の構成では、レジスタを1つ備え
る構成として説明したが、伝達するデータの量に応じて
レジスタ及びラッチの数を増やすことも出来る。
Although the configuration of FIG. 1 has been described as including one register, the number of registers and latches can be increased according to the amount of data to be transmitted.

【0040】2組のレジスタ22及びラッチ23を設け
た場合の構成を図5に示す。この図5の構成の場合、プ
ロセッサA及びプロセッサBは、例えば異なる2つのパ
ラメータに対しそれぞれレジスタ22−1及び22−2
を割り当て、これらのレジスタ22をアドレス指定によ
り選択し、データの書込み又は読み出しを行う。
FIG. 5 shows a configuration in which two sets of registers 22 and latches 23 are provided. In the case of the configuration of FIG. 5, the processors A and B are, for example, registers 22-1 and 22-2 for two different parameters, respectively.
, And these registers 22 are selected by addressing to write or read data.

【0041】この図5の構成の場合、レジスタライト信
号/WR及びレジスタリード信号/RDにより、プロセ
ッサA及びプロセッサBからレジスタ22−1又は22
ー2のいずれか一方に対してアクセスがあった場合にラ
ッチ23−1及び23−2の両方の出力をホールドする
ように制御すれば良いので、ラッチタイミング制御回路
24は1つ設け、デコーダ21及び26からのデコード
結果の論理和27、28をとった信号をレジスタライト
信号/WR、レジスタリード信号/RDとして入力する
構成とすればよい。
In the configuration shown in FIG. 5, the processor A and the processor B transmit the register 22-1 or 22-2 by the register write signal / WR and the register read signal / RD.
-2, it is sufficient to control so as to hold both outputs of the latches 23-1 and 23-2 when one of them is accessed. Therefore, one latch timing control circuit 24 is provided. And 26, a signal obtained by taking a logical sum 27, 28 of the decoding results from registers 26 and 26 may be input as a register write signal / WR and a register read signal / RD.

【0042】以上の様に、レジスタ及びラッチの数を増
やすと、伝達するデータ量を増やすことが出来る。
As described above, when the number of registers and latches is increased, the amount of data to be transmitted can be increased.

【0043】また、実際のシステムでは制御装置をマス
ター側とスレーブ側に明確に分けており、一方向の情報
伝達ができれば十分な場合が多いので、これまでの説明
はプロセッサAからプロセッサBへの一方向の情報デー
タ伝達のみを考慮して説明してきた。しかし、本発明は
双方向のデータのやり取りが必要な場合にも対応するこ
とが出来る。この双方向性を実現するには、プロセッサ
AからBへ情報伝達する回路と、プロセッサBからAへ
情報伝達する回路とで、2系統伝達経路を設ければよ
い。図6は、この2系統の伝達回路をもつ双方向の情報
伝達を実現した情報伝達回路の例である。
Also, in an actual system, the control device is clearly divided into a master side and a slave side, and it is often sufficient to be able to transmit information in one direction. The description has been made in consideration of only one-way information data transmission. However, the present invention can cope with a case where bidirectional data exchange is required. In order to realize this bidirectionality, a circuit for transmitting information from the processor A to B and a circuit for transmitting information from the processor B to A may be provided with two transmission paths. FIG. 6 shows an example of an information transmission circuit that realizes bidirectional information transmission having these two transmission circuits.

【0044】この構成の場合、プロセッサAはプロセッ
サBへデータを送る場合、レジスタ32−1をアドレス
指定して、伝送データを書込む。またプロセッサBから
データを受取る場合には、レジスタ32−2をアドレス
指定して、データを読み出す。そして、プロセッサBが
プロセッサAへデータを送る場合には、レジスタ32−
2をアドレス指定する。ラッチタイミング制御回路34
はプロセッサA及びBから同一レジスタに対してのアク
セスが競合すると、ラッチ33−1又は33−2の出力
をホールドする。
In this configuration, when sending data to the processor B, the processor A writes the transmission data by addressing the register 32-1. When data is received from the processor B, the data is read by specifying the address of the register 32-2. When the processor B sends data to the processor A, the register 32-
Address 2 Latch timing control circuit 34
Holds the output of the latch 33-1 or 33-2 when the access from the processors A and B to the same register conflicts.

【0045】以上の様に、2系統の伝達回路を構成する
と、双方向の情報伝達を可能に出来る。
As described above, when two transmission circuits are configured, bidirectional information transmission can be performed.

【0046】[0046]

【発明の効果】以上のように本発明によれば、簡単な回
路構成で情報の伝達を行なうことが可能となる。またウ
エイトの設定を行えない制御装置や非同期で動作する制
御装置間でも、情報伝達を実現できる。
As described above, according to the present invention, information can be transmitted with a simple circuit configuration. Further, information can be transmitted between control devices that cannot set the weight and control devices that operate asynchronously.

【0047】また各制御装置では、情報伝送の為に割込
みを用いる必要がない。よって単純なソフトウエア構成
により、制御装置間の情報伝送を行うことが出来る。
In each control device, there is no need to use an interrupt for information transmission. Therefore, information transmission between control devices can be performed with a simple software configuration.

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

【図1】本実施形態に於ける制御装置間での情報伝達回
路の例を示す図である。
FIG. 1 is a diagram showing an example of an information transmission circuit between control devices in the present embodiment.

【図2】ラッチタイミング制御回路の構成例を示す図で
ある。
FIG. 2 is a diagram illustrating a configuration example of a latch timing control circuit;

【図3】(a)はレジスタの、(b)はラッチの入出力
信号の動作タイミングを示す図である。
3A is a diagram illustrating an operation timing of a register, and FIG. 3B is a diagram illustrating an operation timing of an input / output signal of a latch.

【図4】本実施形態におけるデータの読み出し及び書込
み時の動作タイミングを示す図である。
FIG. 4 is a diagram showing operation timings at the time of reading and writing data in the embodiment.

【図5】2組のレジスタ及びラッチを設けた場合の構成
例である。
FIG. 5 is a configuration example when two sets of registers and latches are provided.

【図6】双方向の情報伝達を実現した場合の情報伝達回
路の例である。
FIG. 6 is an example of an information transmission circuit when bidirectional information transmission is realized.

【図7】従来の制御装置間での情報伝達回路の構成例で
ある。
FIG. 7 is a configuration example of an information transmission circuit between conventional control devices.

【図8】従来の制御装置間での情報伝達回路の別構成例
である。
FIG. 8 is another example of the configuration of a conventional information transmission circuit between control devices.

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

1、6、21、26、31、36 デコーダ 2、22、32 レジスタ 3、23、33 ラッチ 4、24、34 ラッチタイミング制御回路 5、25、35 トライステートバッファ 1, 6, 21, 26, 31, 36 decoder 2, 22, 32 register 3, 23, 33 latch 4, 24, 34 latch timing control circuit 5, 25, 35 tri-state buffer

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数の制御装置間での情報の伝達を行う
情報伝達回路において第1の制御装置から書き込み可能
で、該書込まれた値を出力する第1のデータ保持手段
と、 前記第1のデータ保持手段の出力を入力とし、第2の制
御装置に対して、前記入力に基づいて変化させて或は前
記入力の変化にかかわらずホールドして出力する第2の
データ保持手段と、 前記第2のデータ保持手段の出力のホールド及びその解
除の制御を行う保持タイミング制御手段と、 を備えることを特徴とする情報伝達回路。
An information transmission circuit for transmitting information between a plurality of control devices, a first data holding unit that is writable from a first control device and outputs the written value; A second data holding unit that receives an output of the first data holding unit as an input, and changes the data based on the input or holds and outputs the data regardless of a change in the input to a second control device; An information transmission circuit, comprising: a holding timing control unit that controls hold of an output of the second data holding unit and control of release thereof.
【請求項2】 前記保持タイミング制御手段は、前記第
1の制御装置からの書込みと前記第2の制御装置からの
読み出しが共に要求された時点から、該読み出しの要求
が解除されるまでの期間以上、前記第2のデータ保持手
段に出力をホールドさせることを特徴とする請求項1記
載の情報伝達回路。
2. The holding timing control means according to claim 1, wherein a period from when the writing from the first control device and the reading from the second control device are both requested to when the request for the reading is canceled is performed. The information transmission circuit according to claim 1, wherein the output is held by the second data holding means.
【請求項3】 前記第2の制御装置から書き込み可能
で、該書込まれた値を出力する第3のデータ保持手段
と、前記第3のデータ保持手段の出力を入力とし、前記
第1の制御装置に対して、前記入力に基づいて変化させ
て或は前記入力の変化にかかわらずホールドして出力す
る第4のデータ保持手段とを更に備え、前記保持タイミ
ング制御手段は、前記第4のデータ保持手段の出力のホ
ールド及びその解除の制御をも行うことを特徴とする請
求項1又は2記載の情報伝達回路。
3. A third data holding means that is writable from the second control device and outputs the written value, and an output of the third data holding means is input to the first data holding means. A fourth data holding means for changing the input based on the input or holding and outputting the data irrespective of the change of the input, the holding timing control means comprising: 3. The information transmission circuit according to claim 1, further comprising controlling the hold of the output of the data holding means and the release thereof.
JP10365355A 1998-12-22 1998-12-22 Information transmitting circuit Withdrawn JP2000187641A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10365355A JP2000187641A (en) 1998-12-22 1998-12-22 Information transmitting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10365355A JP2000187641A (en) 1998-12-22 1998-12-22 Information transmitting circuit

Publications (1)

Publication Number Publication Date
JP2000187641A true JP2000187641A (en) 2000-07-04

Family

ID=18484061

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10365355A Withdrawn JP2000187641A (en) 1998-12-22 1998-12-22 Information transmitting circuit

Country Status (1)

Country Link
JP (1) JP2000187641A (en)

Similar Documents

Publication Publication Date Title
US7096296B2 (en) Supercharge message exchanger
US6161168A (en) Shared memory system
EP0166272B1 (en) Processor bus access
US4604689A (en) Bus repeater
US5119480A (en) Bus master interface circuit with transparent preemption of a data transfer operation
JPH01147647A (en) Data processor
EP0508634B1 (en) Memory access for data transfer within an I/O device
JPH0421053A (en) Asynchronous data transmission device
JP2539058B2 (en) Data processor
JPH07105146A (en) Common memory device
WO2008028101A1 (en) Method and apparatus for conditional broadcast of barrier operations
US5592685A (en) Synchronous/asynchronous partitioning of an asynchronous bus interface
US6487617B1 (en) Source-destination re-timed cooperative communication bus
US6504854B1 (en) Multiple frequency communications
US8799699B2 (en) Data processing system
KR100266963B1 (en) Method and apparatus for reducing latency rime on an interface by overlapping transmitted packets
JP2000187641A (en) Information transmitting circuit
JPH051504B2 (en)
JP3151832B2 (en) DMA controller
JP4182321B2 (en) Dual port memory system
JPH08180027A (en) Arbitration circuit
JP2003099397A (en) Data processing system
JPH02211571A (en) Information processor
JPS63201810A (en) Time system for information processing system
JPS63184859A (en) Shared memory transfer device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060307