JPH02153453A - Asynchronous data transmission device - Google Patents

Asynchronous data transmission device

Info

Publication number
JPH02153453A
JPH02153453A JP30759788A JP30759788A JPH02153453A JP H02153453 A JPH02153453 A JP H02153453A JP 30759788 A JP30759788 A JP 30759788A JP 30759788 A JP30759788 A JP 30759788A JP H02153453 A JPH02153453 A JP H02153453A
Authority
JP
Japan
Prior art keywords
memory
system controller
data
write
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.)
Granted
Application number
JP30759788A
Other languages
Japanese (ja)
Other versions
JP2510261B2 (en
Inventor
Shin Takebe
武部 慎
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.)
Komatsu Ltd
Original Assignee
Komatsu 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 Komatsu Ltd filed Critical Komatsu Ltd
Priority to JP30759788A priority Critical patent/JP2510261B2/en
Publication of JPH02153453A publication Critical patent/JPH02153453A/en
Application granted granted Critical
Publication of JP2510261B2 publication Critical patent/JP2510261B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)
  • Control By Computers (AREA)
  • Communication Control (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、2つのシステムコントローラ間でデータを
非同期で伝送する場合に好適な非同期データ伝送装置に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an asynchronous data transmission device suitable for asynchronously transmitting data between two system controllers.

〔従来の技術〕[Conventional technology]

2つのシステムコントローラ間でデータ伝送を行なう場
合には、ハードウェアの同期および速lf調整等をとる
ために、これらコントローラ間には通常バッフ1装置が
設けられている。
When data is transmitted between two system controllers, a buffer 1 device is usually provided between these controllers in order to synchronize hardware and adjust speed lf.

従来装置においては、このバッフ1装置は1側設けられ
、一方のコントローラからのアクセスが他方のコントロ
ーラのアクセスに対°シ優先させることで、アクセスの
衝突に備えるようにしている。
In the conventional device, this buffer 1 device is provided on one side, and accesses from one controller are given priority over accesses from the other controller, thereby preparing for a collision of accesses.

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

しかし、かかる従来構成では、例えばシステムコントロ
ーラAからシステムコントローラBへのデータ転送を考
えコントローラAのライト要求がコントローラBのリー
ド要求に優先すると設定した場合、リードの途中にライ
ト要求がきたときには、リードの前後でデータが異なる
ことになり、コントローラBはコントローラAの同時刻
および同内容のデータを取り扱えないという問題が発生
する。
However, in such a conventional configuration, if a write request from controller A is set to have priority over a read request from controller B in consideration of data transfer from system controller A to system controller B, if a write request comes in the middle of a read, the read The data before and after will be different, and a problem arises in that controller B cannot handle data of controller A at the same time and with the same content.

このことは、システムコントローラAからシステムコン
トローラBへ1つのまとまったデータを転送する場合大
きな問題であり、正確なデータ転送をなし得なくなる。
This is a big problem when transferring one set of data from system controller A to system controller B, and it becomes impossible to perform accurate data transfer.

この発明はこのような事情に鑑みてなされたもので、2
つのシステムコントローラ間で正確かつ確実なデータ伝
送をなし得る非同期データ伝送装置を提供しようとする
ものである。
This invention was made in view of the above circumstances, and 2.
The present invention aims to provide an asynchronous data transmission device that can perform accurate and reliable data transmission between two system controllers.

(課題を解決するための手段〕 そこでこの発明では、第1のシステムコントローラから
この第1のシステムコントローラの非アクセス時間より
短いアクセス時間をもつ第2のシステムコントローラへ
データを伝送する非同期データ伝送装置において、 前記第1のシステムコントローラから出力されるデータ
を一時記憶する読み店き可能な第1のメモリと、前記第
1のシステムコントローラの出力データまたは前記第1
のメモリの一時記憶データが書込まれるとともに、この
肉込みデータを前記第2のシステムコントローラへ読出
す第2のメモリと、この第2のメモリに並列に備えられ
、前記第1のシステムコントローラの出力データまたは
前記第1のメモリの一時記憶データが書込まれるととも
に、この震込みデータを前記第2のシステムコントロー
ラへ読出す第3のメモリと、前記第1のシステムコント
ローラの1書込み周期に対応して第1のシステムコント
ローラの出力データを前記第2および第3のメモリのう
ちのいずれか一方のメモリと前記第1のメモリとに同時
に園込む第1の書込み制御と、この第1の書込み制御終
了後前記第1のメモリに塵込んだデータを前記第1の書
込み制御で書込んだ一方のメモリの他方に書込む第2の
肉込み制御とを行なう虐込み制御手段と、前記第2のシ
ステムコントローラの1読出し周期に対応して前記第2
および第3のメモリのうちのいずれか一方からデータを
読出して第2のシステムコントローラへ出力する読出し
制御手段とを具えるようにする。
(Means for Solving the Problems) Accordingly, the present invention provides an asynchronous data transmission device that transmits data from a first system controller to a second system controller having an access time shorter than the non-access time of the first system controller. A writable first memory that temporarily stores data output from the first system controller; and a readable first memory that temporarily stores data output from the first system controller;
A second memory is provided in parallel with the second memory, in which temporary storage data of the memory is written, and this fleshed-out data is read out to the second system controller. a third memory into which output data or temporary storage data of the first memory is written and which reads out the vibration data to the second system controller; and a third memory corresponding to one write cycle of the first system controller. a first write control for simultaneously writing output data of a first system controller into one of the second and third memories and the first memory; a second write-in control for writing the data written in the first memory after the control ends to the other memory written in the first write control; The second read cycle of the system controller of
and read control means for reading data from either one of the third memories and outputting it to the second system controller.

〔作用〕[Effect]

かかる構成では、転送するデータを保持するメモリを2
重化しく第2のメモリ、第3のメモリ)、かつデータを
送信する側の第1のシステムコントローラとこれら第2
.第3のメモリとの間に第1のメモリを配するとともに
、これら第2および第3のメモリに対して第1のシステ
ムコントローラからデータを書込むときは、時間をずら
せて2回に分けて書込みを行なう。すなわち、1回目の
甫込みのときは、前記第2および第3のメモリのうちの
いずれか一方と前記第1のメモリへデータを書込み、2
回目の書込みのときは前記第2゜第3のメモリのうちの
1回目に書込まなかったメモリへ前記第1のメモリのデ
ータを囚込むようにして、第2および第3のメモリに対
して同一のデータを書込む。また、これら第2および第
3のメモリからデータを読出す際には、第2のシステム
コントローラの読出し要求に応答して、第2および第3
のメモリのうちの書込みを行なっていない側のメモリか
らデータ読出しを行なう。
In such a configuration, two memories are used to hold the data to be transferred.
a second memory, a third memory), and a first system controller on the data transmitting side and these second
.. When the first memory is arranged between the first memory and the third memory, and the first system controller writes data to the second and third memories, the data is written in two times at different times. Write. That is, during the first transfer, data is written to one of the second and third memories and the first memory, and
At the time of writing, the data in the first memory is captured in the second and third memories that were not written in the first time, and the same data is written to the second and third memories. Write data. Furthermore, when reading data from these second and third memories, the second and third memories are read out in response to a read request from the second system controller.
Data is read from the memory on the side to which writing is not being performed.

(実施例〕 以下、この発明を添付図面に示す実施例にしたがって詳
述する。
(Example) This invention will be described in detail below according to an example shown in the accompanying drawings.

第1図はこの発明の一実施例の概念的構成を、第2図は
その計略構成例を示すものである。
FIG. 1 shows a conceptual structure of an embodiment of the present invention, and FIG. 2 shows an example of its schematic structure.

第1図および第2図において、システムコントローラA
、Bは例えば産業別域に備えられるものである。システ
ムコントローラ(以下コントローラと略す)Aはこの場
合産業機械自体を統轄管理するマスクコントローラで、
cpu、メモリ等を備えた通常のコンピュータ構成であ
る。またシステムコントローラBは産業別械各所に設置
したセンサやアクチュエータとデータの授受を行なうも
のである。
In Figures 1 and 2, system controller A
, B are provided for each industrial area, for example. In this case, the system controller (hereinafter referred to as controller) A is a mask controller that supervises and controls the industrial machine itself.
It has a normal computer configuration including a CPU, memory, etc. Further, the system controller B is used to exchange data with sensors and actuators installed in various industrial machines.

この第1図に示す構成は、コントローラAからコントロ
ーラBヘデータを伝送するための構成を示し、コントロ
ーラA、Bのメモリアクセス期間について言えば、コン
トローラAのメモリに対する非アクセス時間Tyへ(こ
の場合は非書込み時間)がコントローラBのメモリアク
セス期間TB  (この場合は読出し時間)より長いと
いうことが前提となっている。
The configuration shown in FIG. 1 shows a configuration for transmitting data from controller A to controller B. Regarding the memory access period of controllers A and B, the time period Ty when controller A does not access the memory (in this case, It is assumed that the non-write time) is longer than the memory access period TB of the controller B (in this case, the read time).

すなわち、正確に言えば、システムAの非アクセス時間
TN^ 〉後ライトに要する時間Td +システムBのアクセス時間TB となることが前提となっている。(TNA、 Td。
That is, to be more precise, it is assumed that system A's non-access time TN^ > time required for writing after write time Td + system B's access time TB. (TNA, Td.

TB>第3図参照)。TB>See Figure 3).

メモリ10はコントローラA、Bの双方からアクセス可
能な書込み/読出し自在のデュアルポートRAMであり
、この場合アドレスrADJの最上位ビットrALHJ
、又はrARHJをHかしかにすることで、メモリ領域
をH側およびL側に2分割するようになっており、これ
により特許請求の範囲中の第2及び第3のメモリを実現
している。コントローラA側からアクセスするときは。
The memory 10 is a write/read dual port RAM that can be accessed from both controllers A and B, and in this case, the most significant bit rALHJ of address rADJ
, or by changing rARHJ to H or H, the memory area is divided into two into H side and L side, thereby realizing the second and third memories in the scope of the claims. . When accessing from controller A side.

rALHJをH/LにすることでH/mal領域を選択
し、コントローラB側からアクセスするときはrARH
JをH/LにすることでH/LgJJ頒域を選択する。
Select the H/mal area by setting rALHJ to H/L, and when accessing from controller B side, use rARH
By setting J to H/L, select H/LgJJ distribution area.

すなわち、この場合メモリ1oは謂ゆる2重化された構
成であり、該メモリ10のH側領域、L(llli域に
は制tIIIロジック部30の後述するllillwJ
によってコントローラAの書込み周期毎に、結果的に全
く同一のデータが書込まれるようになっている。
That is, in this case, the memory 1o has a so-called duplex configuration, and the H side area and the L (
As a result, exactly the same data is written every write cycle of controller A.

なお、この場合は前述したようにコントローラAからコ
ントローラBへの一方向についてのみのデータ転送を問
題としているため、コントローラAは古込みのみを、コ
ントローラBは読出1のみを行なう。
In this case, as mentioned above, the problem is data transfer in only one direction from controller A to controller B, so controller A only performs old reading, and controller B only performs reading 1.

コントローラ八と、メモリ10との間にはバッファ回2
820が設けられている。バッファ回路20は、コント
ローラAからメモリ10へのデータ書込みのときにコン
トローラAの出力データDTおよびアドレスADを一時
記憶するとともに、その後制御ロジック30からの信号
にしたがって一時記憶したデータをメモリ10のH側領
域およびL [tll ffi域のいずれか一方に出力
するものであり、この場合は2つのFIFO20,25
(先入れ先出し回路: First in First
 out)を用いている。
There are two buffers between controller 8 and memory 10.
820 is provided. The buffer circuit 20 temporarily stores the output data DT and address AD of the controller A when data is written from the controller A to the memory 10, and thereafter writes the temporarily stored data to the H of the memory 10 in accordance with a signal from the control logic 30. It outputs to either the side area or the L [tll ffi area, and in this case, two FIFOs 20, 25
(First in first out circuit: First in First out circuit)
out) is used.

すなわち、FIFO20はコントローラAからのアドレ
スを記憶するもので、またF[FO25はコントローラ
からのデータ記憶するものである。
That is, the FIFO 20 stores addresses from the controller A, and the FIFO 25 stores data from the controller.

次に、制御ロジック部30の内部構成を説明する前に、
メモリ10およびFIFO20,25の信号入出力端子
について説明する。
Next, before explaining the internal configuration of the control logic unit 30,
The signal input/output terminals of the memory 10 and FIFOs 20 and 25 will be explained.

C8L:  メモリ10の左側(コントローラA側)か
らのチップセレクト、 C8R; WL ; R; ALH: ARH: AD : DT: WF ; EF ; メモリ10の右側(コントローラB 側)からのチップセレクト、 メモリ10のライトイネーブル信号 メモリ10のリードイネーブル信号 メモリ10の最上位アドレスビット であり、左側(コントローラA側) からメモリ10をH/L領域に2分 割するための信号 メモリ10の最上位アドレスビット であり、右側(コントローラB側) からメモリ10をH/L領域に2分 割するための信号 アドレス信号 データ FIFOのライトイネーブル信号 FIFOが出力するデータエンプテ ィフラグ:(FIFO内に記憶デー タがあるときはH,FIFOから記 憶データを全て読出した状態のとき はり、) FR;   FIFOのリードイネーブル信号IN: 
  FIFOのデータ入力端子OUT:  FIFOの
データ出力端子制御ロジック部30は、第1図に示すよ
うにコントローラA、BのコントロールバスCBに接続
され(具体的にはコントローラAからの書込み要求信@
WRとコントローラBの読出I7要求信号RDが入力さ
れる)、メモリ106よびFIFO20,25の書込み
/読出し制御を行なうものであり、第2図に示すように
複数の回路31〜45によって構成されている。制御ロ
ジック部30の複数の回路はフリップフロップや論理ゲ
ート等のハードウェアで全てその論理が構成されている
C8L: Chip select from the left side of memory 10 (controller A side), C8R; WL; R; ALH: ARH: AD: DT: WF; EF; Chip select from the right side of memory 10 (controller B side), Memory 10 This is the most significant address bit of the read enable signal memory 10 of the write enable signal memory 10, and is the most significant address bit of the signal memory 10 for dividing the memory 10 into H/L areas from the left side (controller A side). , from the right side (controller B side) Signal for dividing the memory 10 into H/L areas Address signal Data Write enable signal of FIFO Data empty flag output by FIFO: (H when there is stored data in FIFO, When all stored data has been read from the FIFO, ) FR; FIFO read enable signal IN:
FIFO data input terminal OUT: FIFO data output terminal control logic section 30 is connected to control buses CB of controllers A and B as shown in FIG.
WR and the read I7 request signal RD of the controller B), the memory 106 and the FIFOs 20 and 25 are subjected to write/read control, and as shown in FIG. There is. The logic of the plurality of circuits in the control logic section 30 is all configured by hardware such as flip-flops and logic gates.

以下、制御ロジック部30の各回路構成を説明する前に
、該制御ロジック部30によるメモリ10およびFIF
O20,25に対しての書込み/続出し制御の論理構成
について簡単に説明する。
Below, before explaining each circuit configuration of the control logic section 30, the memory 10 and the FIF by the control logic section 30 will be described.
The logical configuration of write/continue output control for O20 and O25 will be briefly explained.

■まず、メモリ10は、その書込み/読出しに関してL
側頭域のほうがト(側鎖域より優先順位が高く設定しで
ある。
■First, the memory 10 is L for writing/reading.
The temporal region has a higher priority than the side chain region.

■コントローラAから書込み要求信号WRが出力される
と、メモリ10に対して2回の塵込みを時間をずらせて
行なうことで、メモリ10のH側領域およびL側領域に
コントローラAの同一データを書込む。
■When the write request signal WR is output from the controller A, the same data from the controller A is written to the H side area and the L side area of the memory 10 by performing dusting on the memory 10 twice at different times. Write.

1回目の書込み(以下前ライトという)時には、メモリ
10のH側領域およびL 9J領域のいずれか一方とF
IFO25にデータを同時に書込むとともに、FIFO
20にアドレスを書込む。メモリ10のH/ L (I
IIJ 領域のいずれを選択するかについては、コント
ローラAのWR信号の送出量始時点でコントローラB側
の状態を判断し、コントローラBがメモリ10のH/L
gA域のいずれかを読み出しアクセスしているときは、
その逆側の領域に対して書込みを行ない、またコントロ
ーラBがメモリ10にアクセスしていない場合は優先側
のL側領域に対して書込みを行なう。
During the first write (hereinafter referred to as previous write), either one of the H side area and the L9J area of the memory 10 and the F
While simultaneously writing data to IFO25,
Write the address in 20. Memory 10 H/L (I
To select which of the IIJ areas, the state of the controller B side is determined at the start of the amount of WR signal output from the controller A, and the controller B selects the H/L of the memory 10.
When reading and accessing any of the gA areas,
Writing is performed to the area on the opposite side, and if controller B is not accessing the memory 10, writing is performed to the L side area on the priority side.

2回目の♂込み(以下後ライトという)時には、上述し
た前ライトのときにPIFO25に書込んだデータとF
IFO20に書込んだアドレスとを上記前ライト終了後
、即座にFIFO25,20から読出し、この読出しデ
ータをFIFO20から出力されるアドレスにしたがっ
てメモリ10の上記前ライト時に選択した領域と逆側の
H/L領域に書込む。
During the second write (hereinafter referred to as post-write), the data written to PIFO25 during the previous write mentioned above and the F
After the previous write is completed, the address written in the IFO 20 is immediately read from the FIFOs 25 and 20, and this read data is read out from the FIFO 25 and 20 according to the address output from the FIFO 20. Write to L area.

ただし、この後ライト開始時、FIFO25からのデー
タを書込むべき前記逆側の領域に対してコントローラB
がアクセスしているときは、このコントローラBのアク
セス終了まで待機し、該アクセス終了後即座に後ライト
を行なうようにする。
However, when starting writing after this, controller B
When the controller B is accessing, the controller B waits until the access ends, and immediately after-writes after the access ends.

■コントローラBから読出し要求RDが出力されると、
このRD信号の送出量始時点でコントローラA側の状態
を判断し、コントローラAがメモリ10のH/Lffi
域のいずれかを書込みアクセスしているときは、その逆
側の領域から読出しを行ない、またコントローラAがア
クセスしていない場合は優先側のL側領域から読出しを
行なう。
■When read request RD is output from controller B,
The state of the controller A side is determined at the start of the sending amount of this RD signal, and the controller A determines the H/Lffi of the memory 10.
When any of the areas is accessed for writing, reading is performed from the opposite area, and when controller A is not accessing, reading is performed from the priority L side area.

■相手側コントローラの状態を判断する際、例えばコン
トローラB側の状態はシステムクロックGKの立上がり
で判断し、コントローラA側の状態は同システムクロッ
クCKの立下がりで判断することで、同時刻における判
断を防止するようにしている。
■When determining the state of the other controller, for example, the state of controller B is determined by the rising edge of the system clock GK, and the state of controller A is determined by the falling edge of the same system clock CK, so that judgment can be made at the same time. We are trying to prevent this.

以上が制御ロジック部30の論理の概略であるが、以下
、第3図のタイムチャートにしたがって、第1図の栴成
の動作について簡単に説明する。
The above is an outline of the logic of the control logic unit 30. Hereinafter, the operation of the control logic unit 30 shown in FIG. 1 will be briefly explained according to the time chart shown in FIG.

第3図において、(a)はコントローラAからメモリ1
0への書込み状態を、(b)はコントローラBの読出し
状態を、(C)はコントローラAからFIFO20,2
5への書込み状態を、(d)は後ライトを示すものであ
り、各信号においては、Lが能動である。また、各信号
の上に付した0 0は、メモリ10のH/LiW域を示
す。
In Figure 3, (a) is from controller A to memory 1.
(b) shows the read state of controller B, (C) shows the state of writing to FIFO 20, 2 from controller A.
(d) shows the post-write state, and in each signal, L is active. Further, 0 0 added above each signal indicates the H/LiW area of the memory 10.

時刻tolcおいては、コントローラBがメモリ10の
L側fr4wlにアクセス中であるため、コントローラ
A側からのアクセス対象としてH側領域が選択され、こ
の結果、時刻t○〜時刻t2の期間にはコントローラA
のデータがメモリ10のH側領域に占き込まれ、かつコ
ントローラAのデータおよびアドレスがFIFO25,
20に占き込まれる、前ライト処理が行なわれる。なお
、時刻t1〜t3におけるコントローラBの読出し処理
において味、時刻t1においてメモリ1oのH側領域が
コントローラAに占拠されているため、コントローラB
のアクセス対象としてL側領域が選択されている。
At time tolc, since controller B is accessing the L side fr4wl of the memory 10, the H side area is selected as the access target from the controller A side, and as a result, during the period from time t○ to time t2, Controller A
data is allocated to the H side area of the memory 10, and the data and address of the controller A are stored in the FIFO 25,
Pre-write processing is performed at 20. Note that in the read processing of controller B from time t1 to t3, since the H side area of the memory 1o is occupied by controller A at time t1, controller B
The L side area is selected as the access target.

次に、コントローラへの前ライトが終了した時11 t
2においては、後ライトを行なおうとするL側領域はコ
ントローラBによって6随されている。
Next, when the previous write to the controller is completed, 11 t
In No. 2, the L-side area where the rear writing is to be performed is followed by controller B six times.

したがって、制御ロジック部30では、コントローラB
のアクセスが終了するまで待機し、該終了時点(時刻t
3)から後ライトを開始するa後ライトはTd時間要す
る。
Therefore, in the control logic unit 30, the controller B
Waits until the access of
The after-write starts from 3) a after-write takes time Td.

次に、時刻t4〜t5のコントローラBのアクセス期間
においては、メモリ10はH/L領域の双方が空きであ
るため、優先領域として設定されたし側領域が選択され
ている。
Next, during the access period of controller B from time t4 to time t5, since both the H and L areas of the memory 10 are empty, the left side area set as the priority area is selected.

また、その後の時刻t6におけるコントローラAのアク
セス開始時点においても、メモリ10はH/L領域の双
方が空きであるため、コントローラAG、を優先側のし
側領域に対して前ライトを行なう。勿論、これと同時に
、コント0−ラAのデータおよびアドレスがFIFO2
5,20に間過まれる。
Furthermore, since both the H and L areas of the memory 10 are empty at the subsequent time t6 when controller A starts accessing, controller AG performs pre-write to the priority side area. Of course, at the same time, the data and address of controllers 0-A are transferred to FIFO2.
5.20 was passed.

コントローラAの前ライトが終了した時刻t7において
は、後ライトを行なおうとするH側領域に対してコント
ローラBがアクセスしていない。
At time t7 when controller A's prewrite is completed, controller B is not accessing the H-side area to which postwrite is to be performed.

したがって、この場合は待時間なしに、時刻t7から直
ちに後ライトが行なわれている。なお、時刻t8におい
ては、メモリ10のHII ffi域に後ライトが行な
われているため、コントローラBの読出し対象としてL
側領域が選択されている。
Therefore, in this case, post-writing is performed immediately from time t7 without any waiting time. Note that at time t8, the HII ffi area of the memory 10 is being rewritten, so the controller B uses L as a read target.
The side area is selected.

次に、制御ロジック部30内の各回路構成を第2図にし
たがって説明する。なお、この第2図においては、シス
テムクロックCKが各所に入力されているが、要所のみ
その入力状態を示し、それ以外が省略している。
Next, each circuit configuration within the control logic section 30 will be explained with reference to FIG. In FIG. 2, the system clock CK is input to various places, but only important points show the input state, and other parts are omitted.

コントローラAの書込み要求信号WR(第4図(a))
は、前ライト区間発生回路31およびゲート32に入力
されている。なお、前述のシステムクロックGKのパル
ス周期は書込み要求信号WRのパルス幅より十分短いも
のである。
Write request signal WR of controller A (Fig. 4(a))
is input to the previous write section generating circuit 31 and the gate 32. Note that the pulse period of the system clock GK mentioned above is sufficiently shorter than the pulse width of the write request signal WR.

前ライト区間発生回路31は、ワンショットマルチバイ
ブレータ回路、フリップ70ツブ等で構成され、店込み
要求信号WRをシステムクロックGKの立下がりで取込
み、その後、L状態を所定時間TA保持するPPCW信
号を形!fc+、、、出力する(第4図(b))。この
PPCW信号番よ、その信号レベルがしのとき、コント
ローラAがライト中(すなわち前ライト中)、であるこ
とを示すフラグ信号である。
The previous write section generation circuit 31 is composed of a one-shot multivibrator circuit, a flip 70 tube, etc., and takes in the store request signal WR at the falling edge of the system clock GK, and then generates a PPCW signal that maintains the L state for a predetermined time TA. shape! fc+,... is output (Fig. 4(b)). This PPCW signal number is a flag signal indicating that controller A is in the process of writing (that is, in the previous write) when the signal level is 1.

ゲート32はPPCW信号を遅延回路50で所定時間遅
延された出力と上記WR信号との各反転出力が入力され
、そのナンド出力をFIFO20゜2ZのWF端子等に
入力する(第4図(C))。
The gate 32 receives the output of the PPCW signal delayed for a predetermined time by the delay circuit 50 and the inverted outputs of the WR signal, and inputs the NAND output to the WF terminal of the FIFO 20°2Z (Fig. 4(C)). ).

FIFO20,25GよWF端子への入力がLのとき、
コントローラAから出力されるアドレス信号およびデー
タ信号を該FIFO20,25の記憶エリアにそれぞれ
書込む。
When the input to the WF terminal of FIFO20, 25G is L,
Address signals and data signals output from controller A are written into the storage areas of the FIFOs 20 and 25, respectively.

前ライト終了検知回路33は、上記PPCW信号のLか
らHへの立上がりを検知することで前ライトの終了を示
すWRED信号を出力する。
The pre-write end detection circuit 33 outputs a WRED signal indicating the end of the pre-write by detecting the rising of the PPCW signal from L to H.

PFD生成回路34には、FIFO20からのEF信号
、WRE 0m号およびフィードバック信号が入力され
、その内部は複数の論理ゲート、フリップフロップ等で
構成されている。EF(信号第4図(h)は前述したよ
うに、FIFO20のエンプティフラグであり、前述し
た前ライト、後ライトが行なわれている間はH状態にあ
る。、PFD生成回路34は、WRED信号の立上がり
、すなわちppcw信号の立上がりで立下がり、EF信
号の立下がりで立上がるPFD信号を形成する。
The EF signal, WRE 0m, and feedback signal from the FIFO 20 are input to the PFD generation circuit 34, which is internally comprised of a plurality of logic gates, flip-flops, and the like. EF (as mentioned above, the signal (h) in FIG. 4 is the empty flag of the FIFO 20, and is in the H state while the above-mentioned front write and back write are being performed.) The PFD generation circuit 34 outputs the WRED signal. A PFD signal is formed that falls at the rising edge of the ppcw signal, that is, the rising edge of the ppcw signal, and rises at the falling edge of the EF signal.

すなわちPF[)信号は、前ライト終了時から後ライト
終了時までの間、Lになる。尚、このPFD信号、クロ
ックCKの立下がりでラッチされる。
That is, the PF[) signal becomes L from the end of the previous write to the end of the second write. Note that this PFD signal is latched at the falling edge of clock CK.

リード区間発生回路35は、フリップフロップであり、
コントローラBから出力される読出し要求信号RDをク
ロックの立上がりでラッチし、コントローラBのリード
区間信号C0RTを出力する(第4図(f))。このC
0RT信号はコントローラBがリード中の間、その出力
をLに保持している。このC0RT信号は、メモリ10
のC8R端子およびR端子に入力される。したがって、
C0RT@号がしになっている期間には、必ずメモリ1
0のH/L側領域のいずれかから記憶データが読出され
る。すなわち、読出しに関しては待時間は存在しない。
The lead section generation circuit 35 is a flip-flop,
The read request signal RD output from the controller B is latched at the rising edge of the clock, and the read period signal C0RT of the controller B is output (FIG. 4(f)). This C
The output of the 0RT signal is held at L while controller B is reading. This C0RT signal is
It is input to the C8R terminal and R terminal of. therefore,
Memory 1 is always
Storage data is read from either of the H/L side areas of 0. That is, there is no waiting time for reading.

読出しの際、H/L領域のいずれを選択するかは、シス
テムA側状態判断回路38から出力されるARH信号(
第4図(n))によって決定される。このシステムA側
状態判断回路38の論理構成は、後で詳述するが、その
概略を簡単に述べておく。すなわち、この判断回路38
決定され、その真理値表を下記第1表に示す。
At the time of reading, which of the H and L areas is selected is determined by the ARH signal (
4(n)). The logical configuration of this system A side state determination circuit 38 will be described in detail later, but its outline will be briefly described. That is, this judgment circuit 38
The truth table is shown in Table 1 below.

第1表 すなわち、信号A 10 Hは、ppcw信号がLに真
理値表は下記第2表のようになる。
In Table 1, for the signal A 10 H, when the ppcw signal is L, the truth table is as shown in Table 2 below.

第2表 C8L、Alt−1はC0RTがしに 立下がるときの状態 そして、ARH信号がHのときは、メモリ10のH側領
域が選択され、Lのときはメモリ10のL側鎖域が選択
される。
Table 2 C8L, Alt-1 shows the state when C0RT falls, and when the ARH signal is H, the H side area of the memory 10 is selected, and when it is L, the L side chain area of the memory 10 is selected. selected.

システムB側状態判断回路36は入力されるC0RT信
号およびARI−1@号の状態に基づきコントローラB
側のアクセス状態をPPCW信号がLに立下がる時点に
判断し、この判断に対応してコントローラA側がメモリ
1oのどちらの領域(H/LIt域)を選択するかを決
定し、その旨を示す信号A10Hを出力する(第4図(
J))。
The system B side state determination circuit 36 determines whether the controller B
The access state of the controller A side is determined at the time when the PPCW signal falls to L, and in response to this determination, the controller A side determines which area (H/LIt area) of the memory 1o to select, and indicates this. Outputs signal A10H (Fig. 4 (
J)).

C0RT、ARHはPPCWがしに 立下がるときの状態 すなわち、前述したように、メモリ10はL側鎖域が優
先となっており、このため、前ライト開始時にC0RT
信号がHlすなわちコントローラBが非アクセス中のと
き、A10H信号はメモリ10の優先領域(L領域)に
対応してしとなり、また前ライト開始時にC0RT信号
がLlすなわちコントローラBがアクセス中のときには
、A10H信号はAR)I信号の逆となり、コントロー
ラBがアクセス中の領域と逆の領域を選択する。
C0RT and ARH are in the state when PPCW falls, that is, as mentioned above, in memory 10, priority is given to the L side chain area, and therefore, C0RT and ARH are set at the start of the previous write.
When the signal is Hl, that is, controller B is not accessing, the A10H signal becomes low corresponding to the priority area (L area) of the memory 10, and when the C0RT signal is Ll, that is, controller B is accessing, at the start of the previous write, The A10H signal is the inverse of the AR)I signal and selects an area opposite to the area being accessed by controller B.

セレクタ37は、PPCW信号およびPFD信号の状態
に応じてAlOH信号およびその反転信号を切替えてA
LH信号として出力するものであり、その出力ALHに
は、PPCW信号がLのとき(前ライト中)は信号A1
0Hの非反転出力が選択され、PFD信号がしのとき(
前ライト終了時から後ライト終了時まで)は信号A10
Hの反転出力が選択され、さらにPPCW信号かつPF
n信号がHのときにはメモリ10の優先領域に対応して
Lffi選択される。すなわち、このセレクタ37によ
って後ライト時に前ライト時と逆側の領域を選択するよ
うにしている。このセレクタ37から出力されるALH
信号はメモリ10のH側領域およびL側鎖域を選択する
ALI(端子に入力される。
The selector 37 switches between the AlOH signal and its inverted signal according to the states of the PPCW signal and the PFD signal.
The output ALH includes the signal A1 when the PPCW signal is L (during front write).
When the non-inverted output of 0H is selected and the PFD signal is
(from the end of the front write to the end of the rear write) is signal A10.
The inverted output of H is selected, and the PPCW signal and PF
When the n signal is H, Lffi is selected corresponding to the priority area of the memory 10. In other words, the selector 37 is used to select an area on the opposite side to the area during the front write during the rear write. ALH output from this selector 37
The signal is input to the ALI (terminal) that selects the H side region and L side chain region of the memory 10.

後ライト待条件生成回路39は、FIFO20゜25か
らメモリ10に対する後ライトが、コントローラBのメ
モリ10に対するアクセスによってウェイトさせられる
条件の一部を生成するものであり、C0RT@号、AR
H@号およびAI Of(信号を入力信号として、PW
T@号を出力する(第4図(j))。PWT信号は下記
第3表に示すウェイト条件が成立したときしになる。
The after-write wait condition generation circuit 39 generates a part of the condition under which the after-write from the FIFO 20° 25 to the memory 10 is made to wait due to the controller B's access to the memory 10.
H@ and AI Of (signal as input signal, PW
The T@ number is output (Fig. 4 (j)). The PWT signal becomes active when the wait conditions shown in Table 3 below are satisfied.

第3表 すなわち、上表におてA10Hの反転信号は後ライトの
メモリ領域を表わしているため、A10日とARI−1
<コントローラB側のアクセス領域)とが一致したとき
であって、かつC0RT信号がLのとき(コントローラ
Bがアクセス中)に、後ライトを待たせる必要があると
して、PWT48@をLにする。
In Table 3, that is, in the above table, the inverted signal of A10H represents the rear write memory area, so A10 and ARI-1
<access area on the controller B side) and when the C0RT signal is L (controller B is accessing), it is necessary to make the post-write wait, and the PWT48@ is set to L.

このPWT信号はゲート40に入力され、PFD@号の
反転信号とのアンドがとられ、さらに反転された後PF
DE信号として出力される(第4図(k))。すなわち
、このゲート40によって、後ライト期間中にのみしに
なるPFDE信号が形成され、出力される。尚、このP
FDE信号もクロックGKの立下がりでラッチしている
This PWT signal is input to the gate 40, ANDed with the inverted signal of the PFD@ signal, and after being further inverted, the PF
It is output as a DE signal (FIG. 4(k)). That is, the gate 40 forms and outputs a PFDE signal that only occurs during the post-write period. Furthermore, this P
The FDE signal is also latched at the falling edge of clock GK.

このPFDE信@は、ゲート41,43.44に入力さ
れてりる。ゲート41では、PFDE信号の反転信号と
PPCW信号の反転信号とのノアをとり、そのノア出力
C8Lをメモリ10のC8L端子に入力する。すなわち
、ゲート41によって、前ライト時(PPCW)、!:
後ラうトvf(PFDE)にC8L信号はLとなり、こ
のときメモリ10を左側からチップセレクトするように
する。
This PFDE signal is input to gates 41, 43, and 44. The gate 41 takes the NOR between the inverted signal of the PFDE signal and the inverted signal of the PPCW signal, and inputs the NOR output C8L to the C8L terminal of the memory 10. That is, the gate 41 determines that during pre-write (PPCW), ! :
After writing vf (PFDE), the C8L signal becomes L, and at this time, chips in the memory 10 are selected from the left side.

C8L信号はシステムA側状態判断回路38にも入力さ
れている。A側状態判断回路38は、入力されるC8L
信号およびALH信号に基づきコントローラA側のアク
セス状態をC0RT信号がしに立下がる時点に判断し、
この判断に対応してコントローラB側がメモリ10のど
ちらの領域<H/L領域)を選択するかを決定し、その
選択結果を示す信号A RH信号を出力する(第4図(
n))。その真理値表は第2表に示した通りである。な
お、ARH信号は、A L H信号と同様、Hのときメ
モリ10のH側領域が選択され、Lのときメモリ10の
L側頭域が選択される。
The C8L signal is also input to the system A side state determination circuit 38. The A-side state determination circuit 38 receives the input C8L.
The access state on the controller A side is determined based on the signal and the ALH signal at the time when the C0RT signal falls;
In response to this determination, the controller B side determines which area of the memory 10 <H/L area) and outputs a signal ARH indicating the selection result (see FIG. 4).
n)). The truth table is shown in Table 2. Note that, like the A L H signal, when the ARH signal is H, the H side region of the memory 10 is selected, and when it is L, the L temporal region of the memory 10 is selected.

ゲート43.44にはパルス発生器42から若干位相の
ずれたパルス信号がそれぞれ入力されており、各ゲート
43.44の他方端子に入力されるPFDE信号によっ
て前記パルス信号の通過。
Pulse signals whose phases are slightly shifted from the pulse generator 42 are input to the gates 43 and 44, respectively, and the passage of the pulse signals is controlled by the PFDE signal input to the other terminal of each gate 43 and 44.

遮断が切替えられる。すなわち、PFDE信号がLのと
きに、各ゲート43.44からパルス発生器42からの
パルス出力が出力される。
Shutdown is toggled. That is, when the PFDE signal is L, the pulse output from the pulse generator 42 is output from each gate 43,44.

ゲート43を通過したパルス信号はFIFO20,25
のFR端子に入力される。したがって、FIFO20,
25からは前ライトのときに記憶したアドレスおよびデ
ータがPFDE信号がLになったときパルス発生器の出
力パルスにしたがって出力される。FIFO20から出
力されるアドレスはメモリ10のAD端子に入力され、
FIF025から出力されるデータにメモリ10のDT
端子に入力される。
The pulse signal passing through the gate 43 is sent to FIFOs 20 and 25.
is input to the FR terminal of. Therefore, FIFO20,
From 25, the address and data stored during the previous write are output in accordance with the output pulse of the pulse generator when the PFDE signal becomes L. The address output from the FIFO 20 is input to the AD terminal of the memory 10,
DT of memory 10 is applied to the data output from FIF025.
input to the terminal.

一方、ゲート44を通過したパルス信号はゲート45に
入力される。ゲート45では、ゲート32の出力とゲー
ト44の出力のノアをとって、メモリ10のWL端子に
入力する。すなわち、ゲート45は、前ライト中を示す
ゲート32の出力(PPCW信号がしである期間中のW
R倍信号前ライト中)と後ライト中を示すゲート44の
出力(PFDE信号がしてある期間中のパルス発生器の
出力)とのノアをとることで、前ライト、後ライトに必
要なパルス列をメモリ10のWL端子に入力する。
On the other hand, the pulse signal that has passed through the gate 44 is input to the gate 45. The gate 45 takes the NOR of the output of the gate 32 and the output of the gate 44 and inputs the result to the WL terminal of the memory 10. That is, the gate 45 outputs the output of the gate 32 (W during the period in which the PPCW signal is low) indicating that the previous write is in progress.
By taking the NOR between the R times signal (during front write) and the output of the gate 44 indicating that the back write is in progress (the output of the pulse generator during the period when the PFDE signal is on), the pulse train necessary for the front write and rear write is obtained. is input to the WL terminal of the memory 10.

なお、この場合、後ライトはハードウェア構成のFIF
O20,25からの出力制御であるため、前ライト< 
p p Q W)よりその長さ(PFDE)が極端に短
かくなって6す、このPFDE信号がLになっている期
間中に■π信号と同じ数のパルス信号が出力されるよう
パルス発生器42の出力パルス信号の周波数が決められ
ている。
In this case, the rear light is the FIF of the hardware configuration.
Since the output is controlled from O20, 25, the front light <
The length (PFDE) is extremely shorter than p p Q W), so pulses are generated so that the same number of pulse signals as the ■π signal are output during the period when this PFDE signal is L. The frequency of the output pulse signal of the device 42 is determined.

以上が制御ロジック部30の構成であり、以下第4図に
示すタイムチャートにしたがってその動作を説明する。
The above is the configuration of the control logic section 30, and its operation will be explained below with reference to the time chart shown in FIG.

時刻t1において、1発目のWR倍信号コントローラA
から出力される(第4図(a))。前ライト区間発生回
路31は、この1発目のWR倍信号し状態をクロックG
Kの立下がりでトリガし、その後所定時間TAの間この
し状態を保持する゛戸1戸ト32を介して出力され、こ
の信号はFIFO20,25のWF端子に入力されると
ともに、ゲート45を介してメモリ10のWL端子に入
力される(第4図(c)(e))、WF、WLはそれぞ
れライトイネーブル端子である。これと同時に(時刻t
1)PPCW信号はゲート41を介してメモリ1oのC
8L端子(第4図(d))ニ入力すれ、左側からのチッ
プセレクトが可能な状態となる。さらに、これと同時に
、システムB側状態判断回路36は、PPCW信号が立
下がった時点(時刻t1)におけるCORT信号および
ARH信号の状態に基づきコントローラB側の状態を判
断し、この判断結果に基づきメモリ10のH/L領域の
いずれを選択するかを示す信号を出力する。この場合は
、時刻t1においてCORT信号はH,ARH信号はし
てあるため、優先側のL側鎖域が選択されるようA10
H信号はLになる(第2表参照)。このAlOH信号は
セレクタ37を介してメモリ10のALH端子に入力さ
れる。この結果、PPCW信号がしてある時刻t1〜時
刻t7の期間中は、システムコントローラAのWR低信
号同期してコントローラAのデータがメモリ10のL側
鎖域に書込まれるとともに、コントローラAのアドレス
がF I FO20に書込まれ、さらにコントローラA
のデータがFIFO25に書込まれる、前ライト処理が
実行される。
At time t1, the first WR double signal controller A
(Fig. 4(a)). The previous write section generation circuit 31 generates this first WR multiplication signal and uses the state as a clock G.
It is triggered at the falling edge of K, and then is outputted via gate 32, which maintains this state for a predetermined period of time TA. WF and WL are input to the WL terminal of the memory 10 (FIGS. 4(c) and 4(e)), respectively, and are write enable terminals. At the same time (time t
1) The PPCW signal is passed through the gate 41 to the C of the memory 1o.
When the 8L terminal (FIG. 4(d)) is input, chip selection from the left side becomes possible. Furthermore, at the same time, the system B side state determination circuit 36 determines the state of the controller B side based on the states of the CORT signal and ARH signal at the time when the PPCW signal falls (time t1), and based on this determination result. A signal indicating which H/L area of the memory 10 is selected is output. In this case, since the CORT signal is H and the ARH signal is high at time t1, A10 is set so that the L side chain region on the priority side is selected.
The H signal becomes L (see Table 2). This AlOH signal is input to the ALH terminal of the memory 10 via the selector 37. As a result, during the period from time t1 to time t7 when the PPCW signal is active, the data of controller A is written to the L side chain area of the memory 10 in synchronization with the WR low signal of system controller A. The address is written to FI FO20, and then controller A
A pre-write process is executed in which data is written to the FIFO 25.

なお、この前ライト処理の期間中にも、コントローラB
のアクセス(読出し)は行なわれており、システムA側
状態判断回路38では、CORT信号の各立下がり時点
く時刻t2.t3.t4゜ts、te)でコントローラ
A側のアクセス状態を判定し、この判定結果に基づきコ
ントローラBがアクセスすべきメモリ10の領域を選定
している。この場合、前ライトの期間中に、コントロー
ラAはメモリ10のL側鎖域を選択しているため、この
前ライトの期間中におけるコントローラBのアクセス対
象は、A RH信号からも判るように、H側領域となる
(第1表参照)。
Note that during this pre-write process, controller B
is being accessed (read), and in the system A side state determination circuit 38, the time t2. t3. At t4°ts, te), the access state on the controller A side is determined, and based on this determination result, the area of the memory 10 to be accessed by the controller B is selected. In this case, since controller A has selected the L side chain area of the memory 10 during the previous write period, the access target of controller B during this previous write period is, as can be seen from the ARH signal, This is the H side region (see Table 1).

その後、前ライト処理が終了すると、これはPPCW信
号の立上がりとして曲ライト終了検出回路33で検出さ
れ、該回路33からWRED信号が出力される(時刻t
7)。
Thereafter, when the pre-write process is completed, this is detected as a rising edge of the PPCW signal by the song write end detection circuit 33, and the circuit 33 outputs the WRED signal (time t
7).

このWRED信号によって、PFD生成回路34から出
力されるPFD信号は、時刻t7で[に立下がる。セレ
クタ37は、前述したように、PFD信号がLの期間中
はAI OH信号の反転信号を出力するため、時刻t7
〜t9の期間中ALH信号はHとなる。
Due to this WRED signal, the PFD signal output from the PFD generation circuit 34 falls to [[] at time t7. As described above, the selector 37 outputs the inverted signal of the AI OH signal while the PFD signal is L, so at time t7
During the period from t9 to t9, the ALH signal becomes H.

また、この場合は、後ライトを行なおうとするメモリ1
0のH(IIIJ領域(A10)1)に対してコントロ
ーラBが読み出しアクセス中であるため待ち時間(Tc
 )が存在してる。このため、後ライト待条件生成回路
39およびゲート40の構成によって、待ち時間TCが
存在した後、後ライトが開始される。すなわち、時刻上
〇に、PFDEM号はQ ORT信号の立上がりによっ
てLに立下がり、その後の時刻t9にPFDE信号はE
F信号の立上がりに起因したPFD信号の立上がりによ
ってHに立上がる。この時刻t8〜t9の期間が後ライ
ト期間であり、この期間中FIFO20,25のFR端
子(リードイネーブル)には、PFDF信号によってパ
ルス発生器42の出力パルスが入力されるとともに(第
4図(d))、メモリ10のWL端子(ライトイネーブ
ル)に(よ同パルス光生器42の出力パルスが入力され
る。さらに、メモリ10のC8L端子もPFDEI号に
よってチップセレクト状態となっている。
Also, in this case, memory 1 to which the post-write is to be performed
The waiting time (Tc
) exists. Therefore, due to the configuration of the post-write waiting condition generation circuit 39 and the gate 40, the post-write is started after the waiting time TC exists. That is, at time 0, the PFDEM signal falls to L due to the rising edge of the QORT signal, and subsequently, at time t9, the PFDE signal becomes E
It rises to H due to the rise of the PFD signal due to the rise of the F signal. The period from time t8 to time t9 is the post-write period, and during this period, the output pulses of the pulse generator 42 are inputted to the FR terminals (read enable) of the FIFOs 20 and 25 by the PFDF signal (see FIG. 4). d)) The output pulse of the same pulse light generator 42 is input to the WL terminal (write enable) of the memory 10.Furthermore, the C8L terminal of the memory 10 is also in the chip select state by the PFDEI signal.

したがって、この時刻t8〜t9の期間中には、FIF
O20の出力、すなわち、前ライトのときコントローラ
Aから出力されたアドレス信号、がメモリ10のAD端
子に入力され、かつFIFO25の出力、すなわち、前
ライトのときコントローラAから出力されたデータがメ
モリ10のDT端子に入力され、さらにこのときALH
端子はHとなっているため、結果的にメモリ10のH(
Ill領域に前ライト時にコントローラAから出力され
たデータが書込まれることになる。そして、この後ライ
トの結果、メモリ10のL側鎖域とH側領域との記憶内
容は全く同一となる。尚、第6図に後ライト期間におけ
るPFDE、FR,WLの正確なタイムチャートの一例
を示す。
Therefore, during this period from time t8 to time t9, FIF
The output of the FIFO 25, that is, the address signal output from the controller A during the previous write, is input to the AD terminal of the memory 10, and the output of the FIFO 25, that is, the data output from the controller A during the previous write, is input to the memory 10. is input to the DT terminal of the
Since the terminal is set to H, the result is that the memory 10 is set to H (
The data output from controller A during the previous write will be written into the Ill area. As a result of subsequent writing, the stored contents of the L side chain area and the H side area of the memory 10 become exactly the same. Incidentally, FIG. 6 shows an example of an accurate time chart of PFDE, FR, and WL in the post-write period.

第5図は、コントローラAからのアクセス周期(PPC
W)とコントローラBからのアクセス周期(CORT)
に関する他の例を示すものであり、その基本的動作は第
4図に示したものと同じであるため、説明は省略する。
Figure 5 shows the access cycle (PPC) from controller A.
W) and access cycle from controller B (CORT)
4, and its basic operation is the same as that shown in FIG. 4, so the explanation will be omitted.

この第5図においても、若干の後ライトウェイト期間T
cが存在している。
In this figure 5 as well, after some light weight period T
c exists.

なお、上記実施例では、メモリ10は最上位ビットアド
レスによって2分割する場合を示したが、メモリの2重
化構成として、最上位ビット以外のビットでメモリを2
分割するようにしてもよく、さらに2つの異なるチップ
から成るメモリを用いるようにしてもよい。また、制御
ロジック部30の論理構成も、これらと同等の機能を達
成するものであれば他の任意の論理構成としてもよい。
In the above embodiment, the memory 10 is divided into two parts based on the most significant bit address, but as a memory duplication configuration, the memory 10 can be divided into two parts using bits other than the most significant bit.
It may also be divided, and furthermore, a memory made up of two different chips may be used. Further, the logical configuration of the control logic section 30 may be any other logical configuration as long as it achieves functions equivalent to these.

さらに、バッファ回路としてのFIFOの代わりに、通
常の7リツプフロツプの集合体を用いてもよい。
Furthermore, instead of a FIFO as a buffer circuit, an ordinary set of seven lip-flops may be used.

〔発明の効果ン 以上説明したように、この発明によれば、メモリアクセ
ス期間の異なるシステムコントローラ間のデータ伝送に
おいて、これらデータ伝送路間にメモリを2重化して配
し、これらメモリヘ一方のシステムコントローラからデ
ータを書込むときは、時間をずらせて2回にわけて書込
みを行なうとともに、他方のシステムコントローラから
、これらのメモリに読出しアクセスをするときは、使用
してない側のメモリからデータを読出すようにしたので
、データが各システムコントローラのアクセス周期の途
中で途切れるといったことがなくなり、これにより受信
側のシステムコントローラは送信側のコントローラの同
時刻および同内容のデータを受信でき、もってエラーの
ない正確なデータ伝送をなし得る。
[Effects of the Invention] As explained above, according to the present invention, in data transmission between system controllers having different memory access periods, memories are arranged in duplicate between these data transmission paths, and one system accesses these memories. When writing data from the controller, the writing is done in two steps at different times, and when reading access to these memories from the other system controller, the data is written from the memory on the side that is not being used. Since the data is read from the system controller, the data is not interrupted in the middle of the access cycle of each system controller.This allows the system controller on the receiving side to receive data at the same time and with the same content from the controller on the sending side, which prevents errors. Accurate data transmission can be achieved without

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

第1図はこの発明の一実施例を示すブロック図、第2図
は上記実施例装置の内部回路構成の詳細ブロック図、第
3図は上記実施例装置の作用を概念的に示すタイムチャ
ート、第4図乃至第6図はそれぞれ実施例装置のより詳
細な作用を説明するためのタイムチャートである。 A、B・・・システムコントローラ、10・・・メモリ
(デュアルポートメモリ)、20.25・・・バッファ
回路(FIFO)、30・・・制御ロジック部。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a detailed block diagram of the internal circuit configuration of the embodiment device, and FIG. 3 is a time chart conceptually showing the operation of the embodiment device. FIGS. 4 to 6 are time charts for explaining more detailed operations of the embodiment apparatus, respectively. A, B...System controller, 10...Memory (dual port memory), 20.25...Buffer circuit (FIFO), 30...Control logic section.

Claims (4)

【特許請求の範囲】[Claims] (1)第1のシステムコントローラからこの第1のシス
テムコントローラの非アクセス時間より短いアクセス時
間をもつ第2のシステムコントローラへデータを伝送す
る非同期データ伝送装置において、 前記第1のシステムコントローラから出力されるデータ
を一時記憶する読み書き可能な第1のメモリと、 前記第1のシステムコントローラの出力データまたは前
記第1のメモリの一時記憶データが書込まれるとともに
、この書込みデータを前記第2のシステムコントローラ
へ読出す第2のメモリと、この第2のメモリに並列に備
えられ、前記第1のシステムコントローラの出力データ
または前記第1のメモリの一時記憶データが書込まれる
とともに、この書込みデータを前記第2のシステムコン
トローラへ読出す第3のメモリと、 前記第1のシステムコントローラの1書込み周期に対応
して第1のシステムコントローラの出力データを前記第
2および第3のメモリのうちのいずれか一方のメモリと
前記第1のメモリとに同時に書込む第1の書込み制御と
、この第1の書込み制御終了後前記第1のメモリに書込
んだデータを前記第1の書込み制御で書込んだ第2また
は第3のメモリの他方に書込む第2の書込み制御とを行
なう書込み制御手段と、 前記第2のシステムコントローラの1読出し周期に対応
して前記第2および第3のメモリのうちのいずれか一方
からデータを読出して第2のシステムコントローラへ出
力する読出し制御手段とを具える非同期データ伝送装置
(1) In an asynchronous data transmission device that transmits data from a first system controller to a second system controller having an access time shorter than the non-access time of the first system controller, the data is output from the first system controller. a first memory that is readable and writable for temporarily storing data; and output data of the first system controller or temporary storage data of the first memory is written, and the written data is transmitted to the second system controller. A second memory is provided in parallel with the second memory for reading data to the first system controller, and output data of the first system controller or temporary storage data of the first memory is written, and the written data is written to the second memory. a third memory for reading out data to a second system controller; and a third memory for reading output data from the first system controller to one of the second and third memories in response to one write cycle of the first system controller. a first write control to simultaneously write to one memory and the first memory; and after the end of this first write control, the data written to the first memory is written by the first write control; write control means for performing second write control for writing to the other of the second or third memory; An asynchronous data transmission device comprising read control means for reading data from either one and outputting it to a second system controller.
(2)前記第2および第3のメモリは、前記第1および
第2のシステムコントローラからのアクセスに対して所
定の優先順位が予め設定され、前記書込み制御手段は、 前記第1のシステムコントローラからの書込み要求の開
始時点で第2のシステムコントローラによる第2および
第3のメモリへのアクセス状態を判定する第1の判定手
段と、 この第1の判定手段の出力および前記優先順位に基づき
前記第2および第3のメモリのうちの前記第2のシステ
ムコントローラがアクセスしていない側のメモリを選択
する第1の選択手段と、前記第1のシステムコントロー
ラからの書込み要求に応答して前記第1の選択手段の選
択結果に対応するメモリおよび前記第1のメモリへ第1
のシステムコントローラの出力データを同時に書込む前
記第1の書込み制御を行なう第1の書込み手段と、 前記第1の書込み制御終了時点で前記第2のシステムコ
ントローラによる第2および第3のメモリへのアクセス
状態を判定する第2の判定手段と、この第2の判定手段
の判定結果に応じて前記第1の選択手段が選択したメモ
リの他方のメモリへ前記第1のメモリの記憶データを書
込む第2の書込み制御を行なう第2の書込み手段と を具え、 前記読出し制御手段は、 前記第2のシステムコントローラからの読出し要求の開
始時点で前記第1のシステムコントローラまたは前記第
1のメモリからの書込みによる第2および第3のメモリ
へのアクセス状態を判定する第3の判定手段と、 この第3の判定手段の出力および前記優先順位に基づき
前記第2および第3のメモリのうちの前記第1のシステ
ムコントローラがアクセスしていない側のメモリを選択
する第2の選択手段と、前記第2のシステムコントロー
ラからの読出し要求に応答して前記第2の選択手段の選
択結果に対応するメモリから記憶データを読出し第2の
システムコントローラへ出力する読出し手段 とを具える請求項(1)記載の非同期データ伝送装置。
(2) The second and third memories have a predetermined priority set in advance with respect to access from the first and second system controllers, and the write control means receives access from the first system controller. a first determining means for determining the state of access to the second and third memories by the second system controller at the start of a write request; and based on the output of the first determining means and the priority order. a first selecting means for selecting a memory which is not accessed by the second system controller from among the second and third memories; A memory corresponding to the selection result of the selection means and a first memory to the first memory.
a first writing unit that performs the first write control to simultaneously write output data of the system controller; and a first write unit that performs the first write control to simultaneously write output data of the system controller; a second determining means for determining an access state; and writing data stored in the first memory into the other memory selected by the first selecting means in accordance with a determination result of the second determining means. a second write unit that performs a second write control, and the read control unit performs read control from the first system controller or the first memory at the start of a read request from the second system controller. a third determining means for determining the state of access to the second and third memories by writing; and a third determining means for determining the state of access to the second and third memories by writing; and a second selection means for selecting a memory not accessed by the first system controller, and a memory corresponding to the selection result of the second selection means in response to a read request from the second system controller. The asynchronous data transmission device according to claim 1, further comprising reading means for reading the stored data and outputting it to the second system controller.
(3)前記第2の書込み手段は、 前記第2の判定手段から前記第2および第3のメモリの
うちの前記第1のメモリの記憶データを書込むべきメモ
リへ前記第2のシステムコントローラがアクセス中であ
るとする判定結果が出力された場合、該第2のシステム
コントローラのアクセスが終了するまで前記第2の書込
み制御を待機させる待機手段を含むものである請求項(
2)記載の非同期データ伝送装置。
(3) The second writing means causes the second system controller to write data stored in the first memory of the second and third memories from the second determining means to a memory to which data is to be written. Claim 1, further comprising a standby means for causing the second write control to wait until the access by the second system controller is completed when a determination result indicating that the access is in progress is output.
2) The asynchronous data transmission device described above.
(4)前記第1および第2の判定手段は、その判定時点
が常に異なるよう構成されている請求項(2)記載の非
同期データ伝送装置。
(4) The asynchronous data transmission device according to claim (2), wherein the first and second determining means are configured such that their determining times are always different.
JP30759788A 1988-12-05 1988-12-05 Asynchronous data transmission device Expired - Lifetime JP2510261B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30759788A JP2510261B2 (en) 1988-12-05 1988-12-05 Asynchronous data transmission device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30759788A JP2510261B2 (en) 1988-12-05 1988-12-05 Asynchronous data transmission device

Publications (2)

Publication Number Publication Date
JPH02153453A true JPH02153453A (en) 1990-06-13
JP2510261B2 JP2510261B2 (en) 1996-06-26

Family

ID=17970973

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30759788A Expired - Lifetime JP2510261B2 (en) 1988-12-05 1988-12-05 Asynchronous data transmission device

Country Status (1)

Country Link
JP (1) JP2510261B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1991018346A1 (en) * 1990-05-14 1991-11-28 Kabushiki Kaisha Komatsu Seisakusho Device for transmitting a synchronous data
JPH04232504A (en) * 1990-12-28 1992-08-20 Komatsu Ltd data transmission equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5518103B2 (en) 2010-02-09 2014-06-11 三菱電機株式会社 Transmission control device and PLC including the transmission control device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1991018346A1 (en) * 1990-05-14 1991-11-28 Kabushiki Kaisha Komatsu Seisakusho Device for transmitting a synchronous data
JPH04232504A (en) * 1990-12-28 1992-08-20 Komatsu Ltd data transmission equipment

Also Published As

Publication number Publication date
JP2510261B2 (en) 1996-06-26

Similar Documents

Publication Publication Date Title
US6604179B2 (en) Reading a FIFO in dual clock domains
US5060145A (en) Memory access system for pipelined data paths to and from storage
US6459651B1 (en) Semiconductor memory device having data masking pin and memory system including the same
JP4077874B2 (en) Dynamic random access memory system
US4692859A (en) Multiple byte serial data transfer protocol
US5502822A (en) Asynchronous data transmission system
JP2000501536A (en) Memory controller unit that optimizes the timing of the memory control sequence between various memory segments
US5555209A (en) Circuit for latching data signals from DRAM memory
JP2010515197A (en) High-speed fanout system architecture and input / output circuit for non-volatile memory
US5930502A (en) Method for sharing a random-access memory between two asynchronous processors and electronic circuit for the implementation of this method
JPH0271344A (en) Micro-computer-system
US5253358A (en) Cache memory expansion and transparent interconnection
JPH02153453A (en) Asynchronous data transmission device
KR20040031155A (en) Memory control apparatus of performing data writing on address line
US5267199A (en) Apparatus for simultaneous write access to a single bit memory
JPH02153454A (en) Asynchronous data transmission device
US6282149B1 (en) Circuit and method for synchronized data banking
JP2510263B2 (en) Asynchronous data transmission device
JPH06161870A (en) Dual port ram circuit
EP0398191A2 (en) Quadruple word, multiplexed, paged mode and cache memory
JPH0256048A (en) Data transfer method and data buffer device
JPH0556598B2 (en)
JP2528930B2 (en) Semiconductor memory device
JPH06301631A (en) Memory control circuit
JP2625288B2 (en) Buffer memory access system