JPH0426505B2 - - Google Patents

Info

Publication number
JPH0426505B2
JPH0426505B2 JP60279096A JP27909685A JPH0426505B2 JP H0426505 B2 JPH0426505 B2 JP H0426505B2 JP 60279096 A JP60279096 A JP 60279096A JP 27909685 A JP27909685 A JP 27909685A JP H0426505 B2 JPH0426505 B2 JP H0426505B2
Authority
JP
Japan
Prior art keywords
memory
switching
bank
data
controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired
Application number
JP60279096A
Other languages
Japanese (ja)
Other versions
JPS62139062A (en
Inventor
Takao Yamada
Yutaka Aoyama
Chiharu Oosawa
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
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom 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 Fuji Electric Co Ltd, Fuji Facom Corp filed Critical Fuji Electric Co Ltd
Priority to JP60279096A priority Critical patent/JPS62139062A/en
Publication of JPS62139062A publication Critical patent/JPS62139062A/en
Publication of JPH0426505B2 publication Critical patent/JPH0426505B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)
  • Information Transfer Systems (AREA)
  • Computer And Data Communications (AREA)
  • Memory System (AREA)
  • Control By Computers (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、複数のコントローラを伝送バスを
介して並設し、各コントローラにはコントローラ
数に応じて分割され自コントローラからはシステ
ムバスを介しまた他コントローラからは伝送バス
を介してそれぞれアクセスすることが可能な2バ
ンク構成のデユアルポートメモリと、該デユアル
ポートメモリのバンク切り換えを交互に行なう切
換回路と、この切換回路を制御する切換制御回路
とを設け、該デユアルポートメモリを介して複数
のコントローラ間でブロードキヤストのデータ交
換を行なうデータ交換方式に関する。
[Detailed Description of the Invention] [Field of Industrial Application] This invention provides a plurality of controllers that are arranged in parallel via a transmission bus, and each controller is divided according to the number of controllers and is connected to the controller via a system bus. In addition, there is a dual port memory with a two-bank configuration that can be accessed from other controllers via a transmission bus, a switching circuit that alternately switches banks of the dual port memory, and a switching control circuit that controls this switching circuit. The present invention relates to a data exchange method for performing broadcast data exchange between a plurality of controllers via the dual port memory.

〔従来の技術〕[Conventional technology]

従来、この種のデータ交換方式として、例えば
出願人が提案した以下の如き方式がある(特開昭
60−8970号公報)。第4図はかゝる方式を示す構
成図である。
Conventionally, as this type of data exchange system, there is, for example, the following system proposed by the applicant (Japanese Unexamined Patent Publication No.
60-8970). FIG. 4 is a block diagram showing such a system.

これは、プロセツサ(CPU)111、ROM1
12およびRAM113からなるコントロール回路
11と、2つのポート(バンク)7a,7bから
なるデユアルポートメモリ7と、その切換回路1
21,122と、切換制御回路13と、伝送バスを
含む伝送系14からなるコントローラを示し、こ
のコントローラ10は伝送系14の伝送バスを介
して図示されない他のコントローラ(以下、この
ことを単に伝送側または伝送系ともいう。)と並
列に接続され、これによつていわゆるマルチコン
トローラシステムが構成される。
This is processor (CPU) 11 1 , ROM1
1 2 and RAM 11 3 , a dual port memory 7 consisting of two ports (banks) 7a and 7b, and its switching circuit 1.
2 1 , 12 2 , a switching control circuit 13 , and a transmission system 14 including a transmission bus. (also simply referred to as the transmission side or transmission system), thereby configuring a so-called multi-controller system.

デユアルポートメモリ7の各バンク7a,7b
はコントローラの数に対応してそれぞれ複数のブ
ロツクB11〜B1N,B21〜B2Nに分割され、或るコ
ントローラにはB11とB21、別のコントローラに
はB12とB22、……の如く割り当てられる。この
コントローラ10と他のコントローラ(伝送系)
とのデータ交換は、このデユアルポートメモリ7
を介して行なわれる。例えば、ブロツクB11,
B21がコントローラ10と或る伝送系とのデータ
交換のために割り当てられるものとすると、ブロ
ツクB11がコントローラ10側に接続されてデー
タの受信(読出)を行なうときは、ブロツクB21
は伝送系に接続されてデータを送信(書込)する
一方、ブロツクB11が伝送系に接続されてデータ
送信(書込)を行なうときは、コントローラ10
がブロツクB21に接続されてデータ受信(読出)
を行なう。切換回路121,122はこれらバンク
における各ブロツクの切り換えを行ない、切換制
御回路13はその制御を行なう。
Each bank 7a, 7b of dual port memory 7
is divided into a plurality of blocks B 11 to B 1N , B 21 to B 2N corresponding to the number of controllers, B 11 and B 21 for one controller, B 12 and B 22 for another controller, etc. Assigned as follows. This controller 10 and other controllers (transmission system)
Data exchange with this dual port memory 7
It is done through. For example, block B 11 ,
Assuming that block B 21 is assigned for data exchange between the controller 10 and a certain transmission system, when block B 11 is connected to the controller 10 side and receives (reads) data, block B 21
is connected to the transmission system and transmits (writes) data, while when block B 11 is connected to the transmission system and transmits (writes) data, the controller 10
is connected to block B 21 to receive data (read)
Do this. The switching circuits 12 1 and 12 2 switch each block in these banks, and the switching control circuit 13 controls this.

第4図では切換回路121,122を接点にて示
し、切換制御回路13をブロツクで示している
が、具体的には第5図の如く構成される。こゝ
に、1はバンクの選択情報が格納されている、ビ
ツトメモリである。42はゲート、31,32,
33は反転ゲートであり、伝送系からのアクセス
かコントローラからのアクセスかによつて別々の
バンクが選択される。なお、7は2つのバンク
A,Bに分割されたデユアルポートメモリであ
る。
Although the switching circuits 12 1 and 12 2 are shown as contacts in FIG. 4, and the switching control circuit 13 is shown as a block, they are specifically constructed as shown in FIG. Here, 1 is a bit memory in which bank selection information is stored. 42 is the gate, 31, 32,
33 is an inverting gate, and different banks are selected depending on whether the access is from the transmission system or the controller. Note that 7 is a dual port memory divided into two banks A and B.

すなわち、コントローラ10または伝送系から
デユアルポートメモリ7をアクセスするときは、
そのアドレスに対応するブロツク番号が指定され
る。このブロツク番号はバンク選択情報格納ビツ
トメモリ1のアドレスとなり、バンク選択情報格
納ビツトメモリ1からブロツク毎のバンク選択情
報が出力される。この情報により、コントローラ
10側からのアクセスでは例えば反転ゲート32
を、また伝送系からのアクセスではゲート42を
それぞれ介してバンクAかBかを選択する。ま
た、バンクの切換えは各ブロツク毎に正常データ
受信時、または送信データ書込み終了時に出力さ
れる切換え指令によつて行なわれる。つまり、バ
ンク選択情報格納ビツトメモリ1の内容を反転ゲ
ート31により反転させて行なわれるが、これは
バンクをAからBまたはBからAへ切り換えるだ
けであるから、メモル1の内容をブロツク毎に反
転させるだけで充分ということになる。
That is, when accessing the dual port memory 7 from the controller 10 or the transmission system,
The block number corresponding to that address is designated. This block number becomes the address of the bank selection information storage bit memory 1, and bank selection information for each block is output from the bank selection information storage bit memory 1. With this information, when accessing from the controller 10 side, for example, the inversion gate 32
In addition, when accessing from the transmission system, bank A or bank B is selected through gates 42, respectively. Bank switching is performed for each block by a switching command that is output when normal data is received or when transmission data writing is completed. That is, the contents of the bank selection information storage bit memory 1 are inverted by the inversion gate 31, but since this only switches the bank from A to B or from B to A, the contents of the memory 1 are inverted for each block. That alone is sufficient.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

このように、受信データについてその受信デー
タブロツクの切換わるタイミングと、コントロー
ラ側のデータのアクセスのタイミングとが全く非
同期で行なわれるため、コントローラがアクセス
するデータの同期が保証されないという問題があ
る。つまり、例えば第6図の如く、コントローラ
がバンクAのデータをN−m語まで読み出した時
点でバンクが切り換えられると、これによりコン
トローラはバンクのBのデータを読み出すことに
なる。したがつて、N語で意味をもつデータにつ
いてN−mまではバンクAのデータ、それ以後の
データmはバンクBのデータということになつて
データの同一性または同期が保証されないという
問題がある。
In this way, the timing at which the received data blocks are switched for received data and the timing at which data is accessed by the controller are completely asynchronous, so there is a problem that synchronization of the data accessed by the controller is not guaranteed. That is, for example, as shown in FIG. 6, if the bank is switched at the time when the controller has read the data of bank A up to Nm words, the controller will read the data of bank B. Therefore, for data that has meaning in N words, data up to N-m is data in bank A, and subsequent data m is data in bank B, and there is a problem that data identity or synchronization is not guaranteed. .

したがつて、この発明は他コントローラから送
られてくるデータと、自コントローラがアクセス
するデータとの同一性を保証すことを目的とす
る。
Therefore, an object of the present invention is to guarantee the identity of data sent from other controllers and data accessed by the own controller.

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

メモリバンクを各ブロツク毎に選択するための
選択情報を格納する第1のメモリと、バンク切換
情報を格納する第2のメモリと、他コントローラ
からのデータを正常に受信したときのみ第1メモ
リの内容を第2メモリへ格納する第1のゲート手
段と、自コントローラからの切換指令により第2
メモリの内容を第1メモリに格納する第2のゲー
ト手段と、第1、第2メモリ出力の排他的論理和
をとる第3のゲート手段とを設ける。
There is a first memory that stores selection information for selecting memory banks for each block, a second memory that stores bank switching information, and a first memory that stores selection information for selecting memory banks for each block. The first gate means stores the contents in the second memory, and the second gate means stores the contents in the second memory.
A second gate means is provided for storing the contents of the memory in the first memory, and a third gate means is provided for taking an exclusive OR of the first and second memory outputs.

〔作 用〕[Effect]

バンク選択用のビツトメモリとゝもにバンク切
換用のビツトメモリを設けることによつて正常受
信したブロツク毎のデータをこのバンク切換用ビ
ツトメモリに登録し、さらに、コントローラから
の切換指令によりバンク切換用ビツトメモリの内
容を反転させてバンク選択用ビツトメモリに格納
することによつて、伝送データとシステム側がア
クセスするデータとの同期または同一性を確保す
るようにする。
By providing a bit memory for bank switching as well as a bit memory for bank selection, the normally received data for each block can be registered in this bank switching bit memory, and furthermore, the bank switching bit memory can be stored in response to a switching command from the controller. By inverting the contents and storing them in the bank selection bit memory, synchronization or identity between the transmitted data and the data accessed by the system side is ensured.

〔実施例〕〔Example〕

第1図はこの発明の実施例を示す構成図であ
る。同図からも明らかなように、これは第5図に
示されるものに対し、切換情報格納ビツトメモリ
2、ゲート41、排他的論理和(EOR)ゲート
5およびナンドゲート61,62等を付加して構
成される。
FIG. 1 is a block diagram showing an embodiment of the present invention. As is clear from the figure, this is constructed by adding switching information storage bit memory 2, gate 41, exclusive OR (EOR) gate 5, NAND gates 61, 62, etc. to the one shown in FIG. be done.

切換情報格納ビツトメモリ2は、各ブロツク毎
の切換情報を格納する。このとき、該メモリ2に
はバンク選択情報格納ビツトメモリ1の出力がゲ
ート41を介して与えられるが、このゲートは伝
送系からのデータが正常に受信されたときのみ開
かれるので、データが正常に受信される限りはメ
モリ2の内容はメモリ1の内容と一致している。
いま、簡単のためバンクA,Bの或るブロツクだ
けに着目すると、そのブロツクに対する選択情報
が“H”ならばメモリ1の内容は“H”であり、
このときメモリ2の内容はブロツク対応のデータ
が正常に受信されゝば“H”であり、正常に受信
されない場合は“L”である。
The switching information storage bit memory 2 stores switching information for each block. At this time, the output of the bank selection information storage bit memory 1 is applied to the memory 2 via the gate 41, but this gate is opened only when data from the transmission system is normally received. The contents of memory 2 match the contents of memory 1 as long as they are received.
Now, for the sake of simplicity, if we focus only on a certain block in banks A and B, if the selection information for that block is "H", the content of memory 1 is "H",
At this time, the content of the memory 2 is "H" if the data corresponding to the block is received normally, and is "L" if the data is not received normally.

一方、メモリ2の出力は反転ゲート31を介し
てメモリ1に与えられるが、この反転ゲート31
はコントローラからの切換指令によつて開かれる
ので、切換指令が与えられゝばメモリ2の内容を
反転させたものがメモリ1に与えられる。つま
り、メモリ2が“H”ならばメモリ1は“L”に
なる。EOR回路5はメモリ1とメモリ2の各出
力の論理和演算を行ない、両者が不一致のとき
“H”を出力する一方、一致したときは“L”を
出力してナンドゲート61,62を閉じてバンク
A,Bが切り換わらないようにする。
On the other hand, the output of memory 2 is given to memory 1 via an inverting gate 31;
is opened in response to a switching command from the controller, so when a switching command is given, the inverted contents of memory 2 are given to memory 1. That is, if memory 2 is "H", memory 1 is "L". The EOR circuit 5 performs an OR operation on each output of the memory 1 and the memory 2, and outputs "H" when they do not match, and outputs "L" when they match, closing the NAND gates 61 and 62. Prevent banks A and B from switching.

したがつて、データが正常に受信され、コント
ローラから切換指令が与えられると、メモリ2の
切換情報が反転されてメモリ1に与えられ、その
結果メモリ1とメモリ2の出力が不一致となるこ
とから、EORゲート5を介してナンドゲート6
1,62が開かれるので、メモリ1の内容により
第5図と同様にバンク切り換えが行なわれる。一
方、データが正常に受信されないときはメモリ1
の内容とメモリ2の内容とが一致することになる
ため、EORゲート5の出力は“L”となつてナ
ンドゲート61,62は開かれず、その結果バン
クの切り換えは行なわれない。
Therefore, when data is normally received and a switching command is given from the controller, the switching information in memory 2 is inverted and given to memory 1, and as a result, the outputs of memory 1 and memory 2 become inconsistent. , NAND gate 6 via EOR gate 5
1 and 62 are opened, bank switching is performed according to the contents of memory 1 in the same manner as in FIG. On the other hand, if data is not received normally, memory 1
Since the contents of the memory 2 match the contents of the memory 2, the output of the EOR gate 5 becomes "L" and the NAND gates 61 and 62 are not opened, so that no bank switching is performed.

第2図は受信異常時の動作を説明するための説
明図である。
FIG. 2 is an explanatory diagram for explaining the operation when reception is abnormal.

これは、同図イの如くデータB1を正常に受信
したが、データB2を受信したときに、受信異常
となつたゝめ切り換えが行なわれず、その結果ロ
の如くデータB1がシステム側で使用される場合
を示している。
This is because data B 1 was received normally as shown in A of the same figure, but when data B 2 was received, the reception became abnormal and switching was not performed, and as a result, data B 1 was transferred to the system side as shown in B. Indicates the case where it is used.

第3図は受信途中時の動作を説明するためのも
ので、この場合は同図イの如くデータ受信中であ
ることから切り換えが行なわれず、ロの如くデー
タB1がシステム側で使用される場合を示してい
る。
Figure 3 is for explaining the operation during reception. In this case, as shown in A of the figure, data is being received, so switching is not performed, and data B 1 is used on the system side as shown in B. It shows the case.

以上のように、第1図の如く構成することによ
り、システム(コントローラ)側から切換指令を
出さない限りは切り換えを行なわないようにする
とゝもに、切換指令が出ても受信異常ならば切り
換えができないようにしてデータの同一性を保証
するものである。
As described above, by configuring as shown in Figure 1, switching will not be performed unless a switching command is issued from the system (controller) side, and even if a switching command is issued, if reception is abnormal, switching will not occur. This guarantees the identity of the data.

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

この発明によれば、バンク制御用のメモリをバ
ンク選択情報格納用と切換情報格納用とに分けて
構成したことにより、バンクの切り換えタイミン
グをコントローラから指令することができ、伝送
データ(他コントローラから送られるデータ)と
システムがアクセスするデータとの同期(同一
性)を保証することが可能になる利点がもたらさ
れるものである。
According to this invention, by configuring the memory for bank control to be divided into memory for storing bank selection information and memory for storing switching information, the bank switching timing can be commanded from the controller, and transmission data (from other controllers) can be commanded. This provides the advantage of being able to guarantee synchronization (identity) between the data sent (data sent) and the data accessed by the system.

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

第1図はこの発明の実施例を示す構成図、第2
図は受信異常時の動作を説明するための説明図、
第3図は受信途中時の動作を説明するための説明
図、第4図はデータ交換方式の従来例を示す構成
図、第5図は第4図のデユアルポートメモリとそ
の切換回路および切換制御回路の具体例を示す構
成図、第6図は伝送データと自コントローラがア
クセスするデータとが非同期となる場合を説明す
るための説明図である。 符号説明、1……バンク選択情報格納ビツトメ
モリ、2……切換情報格納ビツトメモリ、31,
32,33……反転ゲート、41,42……ゲー
ト、5……EORゲート、61,62……ナンド
ゲート、7……デユアルポートメモリ、7a,7
b……ボート(バンク)、10……コントローラ、
11……コントロール回路、111……プロセツ
サ、112……ROM、113……RAM、121,
122……切換回路、13……切換制御回路、1
4……伝送系。
Fig. 1 is a configuration diagram showing an embodiment of this invention;
The figure is an explanatory diagram to explain the operation when reception is abnormal.
Fig. 3 is an explanatory diagram for explaining the operation during reception, Fig. 4 is a block diagram showing a conventional example of the data exchange method, and Fig. 5 is the dual port memory shown in Fig. 4, its switching circuit, and switching control. FIG. 6, a configuration diagram showing a specific example of the circuit, is an explanatory diagram for explaining a case where transmission data and data accessed by the own controller are asynchronous. Description of symbols: 1...Bank selection information storage bit memory, 2...Switching information storage bit memory, 31,
32, 33... Inversion gate, 41, 42... Gate, 5... EOR gate, 61, 62... NAND gate, 7... Dual port memory, 7a, 7
b...Boat (bank), 10...Controller,
11...control circuit, 111 ...processor, 112 ...ROM, 113 ...RAM, 121 ,
12 2 ...Switching circuit, 13...Switching control circuit, 1
4...Transmission system.

Claims (1)

【特許請求の範囲】 1 複数のコントローラを伝送バスを介して並設
し、各コントローラにはその数に応じてブロツク
分割され自コントローラからは内部のシステムバ
スを介し他コントローラからは前記伝送バスを介
してそれぞれアクセスすることが可能な2バンク
構成のデユアルポートメモリと、該デユアルポー
トメモリのバンクを交互に切り換えるための切換
回路と、該切換回路を制御する切換制御回路とを
それぞれ設け、該デユアルポートメモリを介して
複数のコントローラ間でデータを送,受信するデ
ータ交換方式において、 前記切換制御回路の各々に、 前記メモリバンクを各ブロツク毎に選択するた
めの選択情報を格納する第1のメモリと、 バンク切換情報を格納する第2のメモリと、 他コントローラからのデータを正常に受信した
ときのみ前記第1メモリの内容を第2メモリに格
納する第1のゲート手段と、 自コントローラからのバンク切換指令により前
記第2メモリの内容を第1メモリに格納する第2
のゲート手段と、 第1,第2メモリ出力を受けてバンク切換を有
効または無効にする第3のゲート手段と、 を設け、少なくとも他コントローラからのデータ
が正常に受信されかつ自コントローラからバンク
切換指令を発したときのみバンク切換を可能にし
てなることを特徴とするデータ交換方式。
[Scope of Claims] 1. A plurality of controllers are arranged in parallel via a transmission bus, and each controller is divided into blocks according to the number of controllers. A dual port memory having a two-bank configuration that can be accessed through a dual port memory, a switching circuit for alternately switching the banks of the dual port memory, and a switching control circuit for controlling the switching circuit are provided, respectively. In a data exchange method for transmitting and receiving data between a plurality of controllers via a port memory, each of the switching control circuits includes a first memory that stores selection information for selecting the memory bank for each block. a second memory for storing bank switching information; a first gate means for storing the contents of the first memory in a second memory only when data from another controller is normally received; A second memory for storing the contents of the second memory in the first memory according to a bank switching command.
and a third gate means for enabling or disabling bank switching in response to the first and second memory outputs. A data exchange method characterized in that bank switching is enabled only when a command is issued.
JP60279096A 1985-12-13 1985-12-13 Data switching system Granted JPS62139062A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60279096A JPS62139062A (en) 1985-12-13 1985-12-13 Data switching system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60279096A JPS62139062A (en) 1985-12-13 1985-12-13 Data switching system

Publications (2)

Publication Number Publication Date
JPS62139062A JPS62139062A (en) 1987-06-22
JPH0426505B2 true JPH0426505B2 (en) 1992-05-07

Family

ID=17606357

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60279096A Granted JPS62139062A (en) 1985-12-13 1985-12-13 Data switching system

Country Status (1)

Country Link
JP (1) JPS62139062A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8250312B2 (en) 2009-04-29 2012-08-21 Micron Technology, Inc. Configurable multi-port memory devices and methods

Also Published As

Publication number Publication date
JPS62139062A (en) 1987-06-22

Similar Documents

Publication Publication Date Title
JP2886856B2 (en) Redundant bus connection method
US6308244B1 (en) Information processing apparatus with improved multiple memory access and control
US4627035A (en) Switching circuit for memory devices
JPS62139062A (en) Data switching system
JPH0122653B2 (en)
JPS5814260A (en) Data transfer system
JPH0160864B2 (en)
JPS60123952A (en) Input-output controlling system
JPS63142455A (en) Semiconductor storage device
JPH024020B2 (en)
JPS593776B2 (en) Communication method in multi-microprocessor system
JPH0414438B2 (en)
JPS604498B2 (en) How to combine an electronic computer and a direct memory access device
JPH0664561B2 (en) Simultaneous writing circuit
JPH04291098A (en) Semiconductor memory
JPS63217444A (en) Multiple port memory
JPS58181134A (en) Data transfer circuit
JPS6216600B2 (en)
JPH11143820A (en) Data transferring system and bus circuit
JPS60247739A (en) Microprogram controller
JPS62145339A (en) Interleaved storage device
JPH02141851A (en) Register read-out circuit
JPS625451A (en) Memory circuit
JPH06337847A (en) Multiprocessor equipment
JPH02133851A (en) Communication controller

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term