Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3137489B2 - Write access contention adjustment circuit - Google Patents
[go: Go Back, main page]

JP3137489B2 - Write access contention adjustment circuit - Google Patents

Write access contention adjustment circuit

Info

Publication number
JP3137489B2
JP3137489B2 JP05058171A JP5817193A JP3137489B2 JP 3137489 B2 JP3137489 B2 JP 3137489B2 JP 05058171 A JP05058171 A JP 05058171A JP 5817193 A JP5817193 A JP 5817193A JP 3137489 B2 JP3137489 B2 JP 3137489B2
Authority
JP
Japan
Prior art keywords
priority
enable signal
write enable
write
gate
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 - Fee Related
Application number
JP05058171A
Other languages
Japanese (ja)
Other versions
JPH06274407A (en
Inventor
重久 坂原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP05058171A priority Critical patent/JP3137489B2/en
Publication of JPH06274407A publication Critical patent/JPH06274407A/en
Application granted granted Critical
Publication of JP3137489B2 publication Critical patent/JP3137489B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明はライトアクセス競合調整
回路に関し、特に、優先順位を持った複数の装置よりの
ライトアクセス競合調整回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a write access contention adjusting circuit, and more particularly to a write access contention adjusting circuit for a plurality of devices having priority.

【0002】[0002]

【従来技術】複数例えば2台の装置間でデータの伝送を
行う場合、図5に示すように中間にレジスタ、あるいは
デュアルポートRAM等のデータ保持手段200を介在
させることが行われる。
2. Description of the Related Art When data is transmitted between a plurality of devices, for example, two devices, a data holding means 200 such as a register or a dual port RAM is interposed as shown in FIG.

【0003】すなわち、装置A(又はB)より一旦上記
データ保持手段200に伝送対象のデータを書き込ん
で、装置B(又はA)より該データを読み出しするよう
になっている。
That is, data to be transmitted is once written in the data holding means 200 from the device A (or B), and the data is read from the device B (or A).

【0004】この場合、上記データ保持手段200に対
して装置Aと装置Bより同時にデータの書き込みが出き
ないところから、装置Aと装置B間に優先順位を設け
て、優先側装置、例えば装置Aよりの書き込みが行われ
ているときには非優先側装置Bよりの書き込みができな
いように双方のライトイネーブル信号Wea,Webの競合
調整を行うライトアクセス競合回路100を設けること
が行われている。
In this case, since data cannot be simultaneously written from the device A and the device B to the data holding means 200, a priority is provided between the devices A and B, and a priority device, for example, a device A write access conflict circuit 100 that adjusts the conflict between the write enable signals Wea and Web so that the write from the non-priority device B cannot be performed when the write from A is being performed is provided.

【0005】図6は複数(この場合2つ)の装置間でデ
ータ伝送を行う場合の従来のライトアクセス競合調整回
路100を示すものである。優先側装置Aよりのライト
イネーブル信号Weaが“0”となると(優先側装置Aよ
りデータ保持手段200に対して書き込み要求があった
とき)、アンドゲート114の出力が“0”となり、こ
の“0”信号はデータ保持手段200を構成するフリッ
プフロップ200fのck端子に入力される。一方、上
記ライトイネーブル信号Weaが“0”になると、データ
保持手段200を構成するフリップフロップ200fの
D端子の前段に設けられたゲート105がONとなるの
で、上記D端子には優先側装置Aよりの入力データDin
aが入力されることになる。この状態で上記フリップフ
ロップ200fのck端子入力が立ち上がると、フリッ
プフロップ200fに入力データDinaがラッチされ
る。
FIG. 6 shows a conventional write access contention adjusting circuit 100 when data transmission is performed between a plurality of (two in this case) devices. When the write enable signal Wea from the priority-side device A becomes "0" (when a write request is issued from the priority-side device A to the data holding means 200), the output of the AND gate 114 becomes "0" and this " The 0 ″ signal is input to the ck terminal of the flip-flop 200f included in the data holding unit 200. On the other hand, when the write enable signal Wea becomes "0", the gate 105 provided at the preceding stage of the D terminal of the flip-flop 200f constituting the data holding means 200 is turned on. Input data Din
a will be input. When the ck terminal input of the flip-flop 200f rises in this state, the input data Dina is latched by the flip-flop 200f.

【0006】上記のように優先側装置Aが書き込み動作
を行っているときは、非優先側装置Bが出力するライト
イネーブル信号Webはアンドゲート114でマスクされ
てフリップフロップ200fのラッチ内容に影響を与え
ないようになっている。また、オアゲート113は優先
側のライトイネーブル信号Weaが“1”のときは非優先
側のライトイネーブル信号Webの変化を出力できるが、
上記ライトイネーブル信号Weaが“0”のときはライト
イネーブル信号Webに対してマスクをかけることにな
る。
As described above, when the priority-side device A is performing the write operation, the write enable signal Web output from the non-priority-side device B is masked by the AND gate 114 to affect the latch contents of the flip-flop 200f. Not to give. When the write enable signal Wea on the priority side is "1", the OR gate 113 can output a change in the write enable signal Web on the non-priority side.
When the write enable signal Wea is "0", the write enable signal Web is masked.

【0007】優先側装置Aが非書き込み状態のとき(ラ
イトイネーブル信号“1”)には、上記アンドゲート1
14は非優先側装置Bのライトイネーブル信号Webの状
態変化がフリップフロップ200fのck端子に入力さ
れる。また、オアゲート113のマスクが外れるのでラ
イトイネーブル信号Webの立ち上がりで非優先側装置B
のデータDinbがフリップフロップ200fにラッチさ
れることになる。
When the priority side device A is in the non-writing state (write enable signal "1"), the AND gate 1
In 14, a change in the state of the write enable signal Web of the non-priority device B is input to the ck terminal of the flip-flop 200 f. Since the mask of the OR gate 113 is removed, the non-priority device B
Is latched in the flip-flop 200f.

【0008】また、特開昭61−262850号公報に
は複数の処理要求に対して優先順位を設けておき、イン
ターフェイスに設けたテーブルに書き込まれた上記処理
要求の中、優先順位の高い処理要求から順に処理する技
術が開示されている。
In Japanese Patent Application Laid-Open No. 61-262850, priorities are set for a plurality of processing requests, and among the processing requests written in a table provided in the interface, a processing request having a higher priority is set. From the start to the end.

【0009】[0009]

【発明が解決しようとする課題】上記従来の回路におい
て図7(a),(b)に示すように、優先側装置Aと非
優先側装置Bのライトイネーブル信号Wea,Webが時間
的に重なる場合であって、非優先側装置Bのライトイネ
ーブル信号の立ち上がりが優先側装置Aのライトイネー
ブル信号より遅れる場合を考察する。
In the above conventional circuit, as shown in FIGS. 7A and 7B, the write enable signals Wea and Web of the priority side device A and the non-priority side device B temporally overlap. Consider a case where the rise of the write enable signal of the non-priority device B is later than the write enable signal of the priority device A.

【0010】優先側装置Aのライトイネーブル信号Wea
が時刻t1 に一旦“0”になった後、時刻t3 に立ち上
がっても、アンドゲート114の出力は非優先側装置B
のライトイネーブル信号Webが“0”である間“0”と
なり、その後の非優先側装置Bのライトイネーブル信号
Webの立ち上がりで“1”となる(図7(a),
(b),(f))。
The write enable signal Wea of the priority side device A
Once becomes “0” at time t 1 , and even if it rises at time t 3 , the output of the AND gate 114 does not
7 becomes "0" while the write enable signal Web is "0", and becomes "1" at the subsequent rise of the write enable signal Web of the non-priority device B (FIG. 7A,
(B), (f)).

【0011】優先側データDinaの通過するゲート10
5は時刻t1 〜t3 でONであるが(図7(g))、そ
れ以後はOFFとなり、ゲート106は時刻t3 〜t4
はONである(図7(e):時刻t2 〜t3 はオアゲー
ト113でマスクがかかっている)ので、フリップフロ
ップ200fにはck端子入力の立ち上がる時刻t4
図7(j)に示すように、非優先側装置BのデータB1
がラッチされることになる。
The gate 10 through which the priority side data Dina passes
While 5 is ON at time t 1 ~t 3 (FIG. 7 (g)), thereafter is turned OFF, the gate 106 at time t 3 ~t 4
Is ON: Since (FIG 7 (e) time t 2 ~t 3 rests are masked by the OR gate 113), shown in FIG. 7 (j) at time t 4 when the rising edge of ck pin input to the flip-flop 200f Thus, the data B1 of the non-priority device B
Will be latched.

【0012】従って、本来優先的にラッチされるべき優
先側装置Aのデータがデータ保持手段200にラッチで
きなくなり、不都合となる。そこで、例えばデータ保持
手段200に書き込まれたデータが自分が書き込んだデ
ータか否かをチェックするプログラムを各装置A,Bに
設けるようにしているが、ソフト量が大きくなることに
なる。
Therefore, the data of the priority-side device A, which should be latched preferentially, cannot be latched by the data holding means 200, which is inconvenient. Therefore, for example, a program for checking whether the data written in the data holding means 200 is the data written by the user is provided in each of the devices A and B, but the amount of software is increased.

【0013】また、上記特開昭61−262850号公
報に記載の技術では確実に優先順位の順序で処理でき
る。しかしながら、この技術は本来大型のシステムに適
用されるものであって、小さなシステムではコストデメ
リットが大きくなる欠点がある。
Further, the technique described in Japanese Patent Application Laid-Open No. 61-262850 can surely perform processing in the order of priority. However, this technique is originally applied to a large system, and there is a disadvantage that a small system has a large cost disadvantage.

【0014】本発明は上記従来の事情に鑑みて提案され
たものであって、小規模システムにおいて優先度の高い
外部装置からの書き込みが確実にできるようにしたライ
トアクセス競合調整回路を提供することを目的とするも
のである。
The present invention has been proposed in view of the above-mentioned conventional circumstances, and provides a write access conflict adjusting circuit which can reliably write data from a high-priority external device in a small-scale system. It is intended for.

【0015】[0015]

【課題を解決するための手段】本発明は上記目的を達成
するために以下の手段を採用している。すなわち、図1
に示すように、優先側装置Aと非優先側装置Bがデータ
保持手段200を介して相互にデータ伝送するときに、
上記優先側装置Aと非優先側装置Bよりのデータ保持手
段200への書き込み要求の競合を避けるために使用す
るライトアクセス競合調整回路において、優先側装置A
が書き込み要求状態のときには、該優先側装置Aのライ
トイネーブル信号Weaを優先して出力し、データ保持手
段200に入力するとともに、優先側装置Aが書き込み
非要求状態のときにのみ非優先側装置Bよりのライトイ
ネーブル信号Webを出力して、データ保持手段200に
入力する優先状態保持手段100と、上記優先側装置A
が書き込み要求状態のとき上記ライトイネーブル信号W
eaによって開いて優先側装置AよりのデータDinaを通
過させるゲート105と、上記非優先側装置Bが書き込
み要求状態であって、かつ、優先側装置Aが書き込み非
要求状態のときに開いて非優先側装置BよりのデータD
inb を通過させるゲート106とよりなる構成としたも
のである。
The present invention employs the following means to achieve the above object. That is, FIG.
As shown in, when the priority-side device A and the non-priority-side device B mutually transmit data via the data holding means 200,
In the write access contention adjustment circuit used to avoid contention between write requests from the priority side device A and the non-priority side device B to the data holding means 200, the priority side device A
Is in a write request state, the write enable signal Wea of the priority side device A is output with priority, and is input to the data holding means 200, and the non-priority side device A is only output when the priority side device A is in the write non-request state. B, and outputs the write enable signal Web from B to the data holding means 200.
Is in a write request state, the write enable signal W
a gate 105 that is opened by ea to pass data Dina from the priority side device A, and is opened and disabled when the non-priority side device B is in a write request state and the priority side device A is in a write non-request state. Data D from priority side device B
The gate 106 is configured to pass inb.

【0016】上記優先状態保持手段100の前段には優
先順位選択手段40aを設けられ、該優先順位選択手段
40aで上記優先状態保持手段100に入力されるべ
き、ライトイネーブル信号Wea, Webを選択する。ま
た、上記2つのゲート105, 106の前段にも優先順
位選択手段40bを設けられて、各ゲート105, 10
6を開閉制御するために、該号各ゲート105, 106
の制御端子に入力されるライトイネーブル信号Wea, W
ebを選択する構成とする。
Prior to the priority state holding means 100, a priority order selection means 40a is provided, and the priority order selection means 40a selects the write enable signals Wea, Web to be input to the priority state holding means 100. . Prior to the two gates 105 and 106, a priority order selecting means 40b is also provided.
In order to control the opening and closing of the gate 6, each gate 105, 106
Write enable signals Wea, W input to the control terminals of
eb is selected.

【0017】上記優先状態保持手段100は、優先側装
置Aのライトイネーブル信号Weaに基づいてその出力を
優先的に“1”とし、非優先側装置Bのライトイネーブ
ル信号Webに基づいて“0”の状態を出力するフリップ
フロップ200fと、上記フリップフロップ200fの
出力を一方の入力I1 とし、ライトイネーブル信号Web
を他方の入力I2 とするオアゲート103と、上記ライ
トイネーブル信号Weaを一方の入力I1 とし、上記オア
ゲート103の出力を他方の入力I2 とするアンドゲー
ト104 とよりなる構成とする。
The priority state holding means 100 sets its output to "1" preferentially based on the write enable signal Wea of the priority side device A, and "0" based on the write enable signal Web of the non-priority side device B. a flip-flop 200f for outputting a state, the output of the flip-flop 200f as one input I 1, the write enable signal Web
The OR gate 103 to the other input I 2, the write enable signal Wea as one input I 1, and become more configuration and AND gate 104 to the output of the OR gate 103 as the other input I 2.

【0018】[0018]

【作用】優先状態保持手段100は優先側装置Aの出力
するライトイネーブル信号Weaが“0”(書き込み要
求)となると、その状態を保持し、非優先側装置Bの出
力するライトイネーブル信号Webを通過しないようにす
る。優先側のライトイネーブル信号Weaが“1”(非書
き込み要求)になるときのみ非優先側装置Bのライトイ
ネーブル信号Webを通過させることが可能となる。
When the write enable signal Wea output from the priority side apparatus A becomes "0" (write request), the priority state holding means 100 holds the state and outputs the write enable signal Web output from the non-priority side apparatus B. Do not pass. Only when the write enable signal Wea on the priority side becomes “1” (non-write request), the write enable signal Web of the device B on the non-priority side can be passed.

【0019】優先状態保持手段100はセット付フリッ
プフロップ100fを備え、上記ライトイネーブル信号
Weaが“0”になることによってセットされ、信号
“1”を出力する。この信号“1”は後述のオアゲート
103を介してアンドゲート104の他方の入力I2
なっている。従って、該アンドゲート104の出力は該
アンドゲート104の一方の入力I1 である優先側ライ
トイネーブル信号Weaの状態がそのまま出力されること
になる。
The priority state holding means 100 includes a flip-flop 100f with a set, and is set when the write enable signal Wea becomes "0", and outputs a signal "1". This signal “1” is the other input I 2 of the AND gate 104 via the OR gate 103 described later. Accordingly, the output of the AND gate 104 outputs the state of the priority side write enable signal Wea, which is one input I1 of the AND gate 104, as it is.

【0020】上記ライトイネーブル信号Weaが“1”に
なると、上記アンドゲート104の一方の入力I1
“1”となる。このとき、フリップフロップ100fの
ck端子に非優先側のライトイネーブル信号Webの立ち
下がりが入力されると、そのQ出力は“0”となって、
オアゲート103とアンドゲート104の出力はライト
イネーブル信号Webの状態に支配されることになる。
[0020] When the write enable signal Wea becomes "1", one input I 1 of the AND gate 104 also becomes "1". At this time, when the falling edge of the non-priority-side write enable signal Web is input to the ck terminal of the flip-flop 100f, the Q output thereof becomes “0”,
The outputs of the OR gate 103 and AND gate 104 are governed by the state of the write enable signal Web.

【0021】上記のような優先状態保持手段100の出
力はデータ保持手段200のライトイネーブル信号とな
って、該データ保持手段200を構成するフリップフロ
ップ200fのck端子に入力される。また、該フリッ
プフロップ200fのD端子には、優先側装置Aのデー
タDinaがゲート105を介して、また非優先装置Bの
データDinbがゲート106を介して入力されている。
この2つのゲート105,106は、上記優先状態保持
手段100を通過するライトイネーブル信号Wea(又は
Web)に基づいて開くので、該データ保持手段200に
は常に適正なデータが保持されることになる。
The output of the priority state holding means 100 as described above becomes a write enable signal of the data holding means 200 and is input to the ck terminal of the flip-flop 200f constituting the data holding means 200. The data Dina of the priority-side device A is input to the D terminal of the flip-flop 200f through the gate 105, and the data Dinb of the non-priority device B is input to the D terminal through the gate 106.
Since these two gates 105 and 106 are opened based on the write enable signal Wea (or Web) passing through the priority state holding means 100, the data holding means 200 always holds proper data. .

【0022】[0022]

【実施例】図2は本発明の一実施例を示すブロック図で
ある。装置A及び装置B側のライトイネーブル信号We
a,Webは優先順位選択手段40aを構成するセレクタ
401,402に入力され、ここでセレクト信号Sel
によって優先順位が決定される。すなわち、セレクタ4
02で選択された側が優先となっており、以下セレクタ
402が装置A側のライトイネーブル信号Weaを選択
(“0”端子を選択)し、セレクタ401はライトイネ
ーブル信号Webを選択している場合、従って装置Aが優
先である場合について説明する。
FIG. 2 is a block diagram showing an embodiment of the present invention. Write enable signal We on device A and device B side
a and Web are input to selectors 401 and 402 constituting the priority order selecting means 40a, where the select signal Sel is inputted.
Determines the priority. That is, the selector 4
When the selector 402 selects the write enable signal Wea on the device A side (selects the “0” terminal) and the selector 401 selects the write enable signal Web, Therefore, the case where the device A has priority is described.

【0023】セレクタ402の出力、すなわち優先側ラ
イトイネーブル信号Weaは優先状態保持手段100を構
成するセット付フリップフロップ100fのセット端子
に入力され、上記ライトイネーブル信号Weaが立ち下が
る(時刻t1 :装置Bがデータ保持手段200に書き込
み要求を出す)と、該フリップフロップ100fの出力
Qを立ち上げるようにする(図3(a),(h))。こ
れによって、上記フリップフロップ100fの出力Q側
に設けられたオアゲート103の出力が“1”となっ
て、次段のアンドゲート104の他方の入力I2
“1”とする(図3(i))。尚、時刻t1 迄も上記非
優先側のライトイネーブル信号“1”(書き込み非要
求)によってオアゲート103の出力は“1”となって
いる。
The output of the selector 402, that is, the priority side write enable signal Wea is input to the set terminal of the flip-flop 100f with the set which constitutes the priority state holding means 100, and the write enable signal Wea falls (time t 1 : device). B issues a write request to the data holding means 200) and causes the output Q of the flip-flop 100f to rise (FIGS. 3A and 3H). Thus, the output of the OR gate 103 provided on the output Q side of the flip-flop 100f changes to "1", the other input I 2 of the next stage of the AND gate 104 to "1" (FIG. 3 (i )). The output of the time t 1 until even the non-priority side of the write enable signal "1" (write unsolicited) by OR gate 103 is "1".

【0024】上記優先側ライトイネーブル信号Weaはア
ンドゲート104の一方の入力I1となっており、これ
によって、アンドゲート104の出力は優先側のライト
イネーブル信号Weaの状態に支配されることになる。
[0024] The preferential write enable signal Wea is a one input I 1 of the AND gate 104, thereby, the output of AND gate 104 will be governed by the state of the write enable signal Wea of preferential .

【0025】上記セレクタ402の出力は優先順位選択
手段40bを構成するセレクタ403の“0”端子に、
またセレクタ404の“1”端子に入力される一方、上
記オアゲート103の出力はセレクタ403の“1”端
子に、またセレクタ404の“0”端子に入力される。
この例では各セレクタ403,404の“0”端子が選
択されており、これによってセレクタ403はセレクタ
402の出力(ライトイネーブル信号Wea)を通過させ
ることになり、セレクタ404はオアゲート103の出
力を通過させることになる。
The output of the selector 402 is connected to the "0" terminal of the selector 403 constituting the priority order selecting means 40b.
The output of the OR gate 103 is input to the “1” terminal of the selector 403 and the “0” terminal of the selector 404, while being input to the “1” terminal of the selector 404.
In this example, the “0” terminal of each of the selectors 403 and 404 is selected, whereby the selector 403 passes the output of the selector 402 (write enable signal Wea), and the selector 404 passes the output of the OR gate 103. Will be.

【0026】従って、上記のように時刻t1 でライトイ
ネーブル信号Weaが“0”となるとゲート105が閉
じ、ゲート106が開いて、装置A側のデータDina
(データD1 )をデータ保持手段200であるフリップ
フロップ200fのD端子に入力する(図3(a),
(l),(m))。
[0026] Thus, gate 105 is closed when the write enable signal Wea becomes "0" at time t 1, as described above, the gate 106 is open, the apparatus A side data Dina
(Data D 1 ) is input to the D terminal of a flip-flop 200f as the data holding means 200 (FIG. 3A,
(L), (m)).

【0027】この状態で優先側ライトイネーブル信号W
eaが立ち上がる(時刻t2 )と、フリップフロップ20
0fは優先側データDina(データD1 )をラッチする
ことになる(図3(n))。
In this state, the priority side write enable signal W
When ea rises (time t 2 ), the flip-flop 20
0f latches the priority side data Dina (data D 1 ) (FIG. 3 (n)).

【0028】この状態で非優先側装置Bよりリードイネ
ーブル信号Rebが読み出し要求状態“0”となる(時刻
2 ’)と、ゲート107が開いて上記データD1 が装
置B側に出力される(図3(o),(q))。
In this state, when the read enable signal Reb becomes the read request state “0” from the non-priority device B (time t 2 ′), the gate 107 opens and the data D 1 is output to the device B side. (FIGS. 3 (o), (q)).

【0029】優先側装置Aが書き込み要求を出していな
いとき(ライトイネーブル信号Weaが“1”のとき)
に、非優先側装置Bが書き込み要求を出したとき(時刻
3 〜t4 :ライトイネーブル信号Webが“0”となっ
たとき)は以下のようになる。
When the priority device A has not issued a write request (when the write enable signal Wea is "1")
, When the non-preferential device B issues a write request (time t 3 ~t 4: when the write enable signal Web has become "0") is as follows.

【0030】ライトイネーブル信号Webはセレクタ40
1を介してフリップフロップ100fのck端子に反転
して入力される。従って、フリップフロップ100fは
該ライトイネーブル信号Webの立ち下がり(時刻t3
でD端子に入力されている値“0”をラッチして、フリ
ップフロップ100fのQ出力を“0”とし、オアゲー
ト103のI1 入力を“0”とする(図3(b),
(h))。これによって、オアゲート103の出力はラ
イトイネーブル信号Webの状態に支配される(図3
(i))。また、アンドゲート104の一方の入力I1
は“1”となっている(ライトイネーブル信号Weaが
“1”のため)ので、該アンドゲート104の出力もラ
イトイネーブル信号Webの状態に支配される(図3
(k))。
The write enable signal Web is supplied to the selector 40
1 and is inverted and input to the ck terminal of the flip-flop 100f. Therefore, the flip-flop 100f causes the fall of the write enable signal Web (time t 3 ).
In latches the value "0" being input to the D terminal, and the Q output "0" of the flip-flop 100f, the I 1 input of the OR gate 103 to "0" and (FIG. 3 (b), the
(H)). As a result, the output of the OR gate 103 is governed by the state of the write enable signal Web (FIG. 3).
(I)). Also, one input I 1 of the AND gate 104
Is "1" (because the write enable signal Wea is "1"), the output of the AND gate 104 is also governed by the state of the write enable signal Web (FIG. 3).
(K)).

【0031】これによって、上記アンドゲート104の
出力がck端子に入力されているフリップフロップ20
0fはライトイネーブル信号Webが“0”の状態から立
ち上がるときにD端子の入力をラッチできる。
As a result, the output of the AND gate 104 is input to the flip-flop 20
0f can latch the input of the D terminal when the write enable signal Web rises from the state of “0”.

【0032】一方、上記ライトイネーブル信号Webが
“0”のとき(時刻t3 〜t4 )、セレクタ404の出
力(オアゲート103の出力)は“0”であり、セレク
タ403の出力(セレクタ402の出力)は“1”であ
るので、ゲート105がON、ゲート106がOFFと
なる。従って、上記フリップフロップ200fのD端子
には非優先側装置BのデータDinbが入力される。この
状態でライトイネーブル信号Webが立ち上がる(時刻t
4 )と同時にデータDinb(データC1)がフリップフ
ロップ200fにラッチされることになる(図3
(n))。
On the other hand, when the write enable signal Web is "0" (time t 3 ~t 4), (the output of the OR gate 103) the output of the selector 404 is "0", the output of the selector 403 (selector 402 Output) is “1”, so that the gate 105 is turned on and the gate 106 is turned off. Therefore, the data Dinb of the non-priority device B is input to the D terminal of the flip-flop 200f. In this state, the write enable signal Web rises (time t).
4 ) At the same time, the data Dinb (data C1) is latched by the flip-flop 200f (FIG. 3).
(N)).

【0033】従って、その後(時刻t4 ’)に優先側装
置Aが読み出し状態(リードイネーブル信号Reaが
“0”)となることによって、ゲート108が開いてフ
リップフロップ200fより優先側のバスに上記データ
C1が読み出されることになる(図3(p),
(r))。
Therefore, after that (time t 4 ′), the priority-side device A goes into the read state (the read enable signal Rea is “0”), and the gate 108 is opened, so that the priority-side device A is connected to the bus on the priority side with respect to the flip-flop 200f. The data C1 is read (FIG. 3 (p),
(R)).

【0034】上記例は優先側ライトイネーブル信号Wea
と、非優先側のライトイネーブル信号Webとが同時に発
生しない場合であるが、次に上記2つのライトイネーブ
ル信号Wea,Webが同時に発生する例を図4に基づいて
説明する。
In the above example, the priority side write enable signal Wea
And the write enable signal Web on the non-priority side are not generated at the same time. Next, an example in which the two write enable signals Wea and Web are generated simultaneously will be described with reference to FIG.

【0035】上記フリップフロップ100fのセット端
子に入力されている優先側ライトイネーブル信号Weaが
立ち下がる(時刻t1 )と、該フリップフロップ100
fの出力は立ち上がることになる(図4(a),
(h))。これによって、オアゲート103の出力が
“1”を継続することとなって(時刻t1 迄も非優先側
ライトイネーブル信号Webが“1”であるので、オアゲ
ート103の出力は“1”)、次段のアンドゲート10
4の他方の入力I2 を“1”とする。これによって、ア
ンドゲート104の出力は優先側ライトイネーブル信号
Weaの状態(入力I1 )に支配されることになる。
When the priority side write enable signal Wea input to the set terminal of the flip-flop 100f falls (time t 1 ), the flip-flop 100f is turned off.
The output of f rises (FIG. 4 (a),
(H)). Thus, the output of the OR gate 103 becomes possible to continue the "1" (since until the time t 1 is also non-preferential write enable signal Web is "1", the output of the OR gate 103 is "1"), the following Step andgate 10
The other input I2 of 4 is "1". As a result, the output of the AND gate 104 is governed by the state of the priority side write enable signal Wea (input I 1 ).

【0036】一方、セレクタ402の出力“0”がその
まま出力されるセレクタ403の出力によってゲート1
06が開かれ、オアゲート103の出力“1”がそのま
ま出力されるセレクタ404の出力によってゲート10
5が閉じられる。これによって、装置AよりのデータD
ina(データd1)をフリップフロップ200fのD端
子に入力する(図4(a),(e),(m))。
On the other hand, the output of the selector 403 from which the output "0" of the selector 402 is output as it is
06 is opened, and the output of the selector 404 from which the output “1” of the OR gate 103 is output as it is is output to the gate 10.
5 is closed. Thereby, the data D from the device A is obtained.
The ina (data d1) is input to the D terminal of the flip-flop 200f (FIGS. 4A, 4E, and 4M).

【0037】この状態でライトイネーブル信号Weaが立
ち上がる(時刻t3 )と、フリップフロップ200fは
上記装置AよりのデータDina(データd1)をラッチ
して出力する(図4(n))。
In this state, when the write enable signal Wea rises (time t 3 ), the flip-flop 200f latches and outputs the data Dina (data d1) from the device A (FIG. 4 (n)).

【0038】上記のようにライトイネーブル信号Weaが
書き込み要求状態“0”である間(時刻t1 〜t3 )に
非優先側ライトイネーブル信号Webが書き込み要求状態
“0”となった場合を考察する。
[0038] Consider the case where the write enable signal Wea as described above non-preferential write enable signal Web has become the write request state "0" while a write request state "0" (time t 1 ~t 3) I do.

【0039】まず、セレクタ401の出力は上記非優先
側ライトイネーブル信号Webが“0”の間(時刻t2
5 )“0”となる(図4(f))。また、該セレクタ
401の出力が反転されてck端子に入力されているフ
リップフロップ100fは上記ライトイネーブル信号W
ebが立ち下がると(時刻t2 )でそのD端子の値“0”
をラッチしようとするが、上記優先側ライトイネーブル
信号Weaの“0”がセット端子に入力されているので、
BR>フリップフロップ100fのQ端子は出力“1”を
保ったままとなる(図4(h))。従って、ライトイネ
ーブル信号Weaが“0”の間、オアゲート103の出力
は“1”を保つことになって、非優先側のライトイネー
ブル信号Webは該オアゲート103でマスクされ、ライ
トイネーブル信号Webの影響はフリップフロップ200
fには現れないことになる。
Firstly, the output of the selector 401 while (time t 2 ~ of the non-preferential write enable signal Web is "0"
t 5 ) “0” (FIG. 4F). The flip-flop 100f whose output from the selector 401 is inverted and input to the ck terminal is the write enable signal W
When eb falls (time t 2 ), the value of the D terminal is “0”
However, since “0” of the priority side write enable signal Wea is input to the set terminal,
BR> The Q terminal of the flip-flop 100f keeps the output "1" (FIG. 4 (h)). Therefore, while the write enable signal Wea is "0", the output of the OR gate 103 keeps "1", the non-priority side write enable signal Web is masked by the OR gate 103, and the influence of the write enable signal Web. Is the flip-flop 200
It will not appear in f.

【0040】従って、上記ライトイネーブル信号Weaが
立ち上がって後、時刻t4 に非優先側のリードイネーブ
ル信号Rebが“0”となると、ゲート107が開いて上
記データd1 を非優先側装置Bに読み出すことになる
(図4(q))。また、非優先側のライトイネーブル信
号Webが立ち上がるとき(時刻t5 )でもフリップフロ
ップ100fは状態変化を来さないので、時刻t6 に出
力される優先側のリードイネーブル信号Reaによっても
データd1 が装置Aに読み出されることになる(図4
(p),(r))。
[0040] Accordingly, after the rise of the write enable signal Wea, the non-priority side of the read enable signal Reb time t 4 becomes "0", the data d 1 gate 107 is open to the non-preferential device B It will be read out (FIG. 4 (q)). The non since preferential write enable signal when the Web rises (time t 5) even flip-flop 100f is not hexa state change, the data d 1 by the read enable signal Rea of preferential output at time t 6 Is read out to the device A (FIG. 4).
(P), (r)).

【0041】[0041]

【発明の効果】以上説明したように、本発明は優先側装
置がデータ保持手段に書き込み要求を出しているときに
は、その状態が保持されるようになっているので、優先
側の書き込み要求と非優先側の書き込み要求が重なって
も、非優先側のデータが書き込まれることが確実に防止
できる。従って、チェックソフトが不要で、コストメリ
ットが大きくなる。
As described above, according to the present invention, when the priority side device issues a write request to the data holding means, the state is held, so that the write request of the priority side is not Even if the write requests on the priority side overlap, the data on the non-priority side can be reliably prevented from being written. Therefore, no check software is required, and the cost merit increases.

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

【図1】本発明の原理図である。FIG. 1 is a principle diagram of the present invention.

【図2】本発明の実施例ブロック図である。FIG. 2 is a block diagram of an embodiment of the present invention.

【図3】本発明のタイムチャートである。FIG. 3 is a time chart of the present invention.

【図4】本発明のタイムチャートである。FIG. 4 is a time chart of the present invention.

【図5】本発明が適用されるシステム概念図である。FIG. 5 is a conceptual diagram of a system to which the present invention is applied.

【図6】従来例ブロック図である。FIG. 6 is a block diagram of a conventional example.

【図7】従来例タイムチャートである。FIG. 7 is a time chart of a conventional example.

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

40a,40b 優先順位選択手段 100 優先状態保持手段 103 オアゲート 104 アンドゲート 105,106 ゲート 200f フリップフロップ A 優先側装置 B 非優先側装置 Dina ,Dinb データ I1 ,I2 入力 Wea,Web ライトイネーブル信号40a, 40b priority selection unit 100 preferentially status holding unit 103 OR gate 104 AND gate 105, 106 gates 200f flip-flop A preferential device B non preferential apparatus Dina, Dinb data I 1, I 2 input Wea, Web write enable signal

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭47−45145(JP,A) 特開 昭57−41755(JP,A) 特開 平1−116742(JP,A) 特開 平3−167652(JP,A) 特開 昭62−293457(JP,A) 特開 昭63−268061(JP,A) 特開 昭61−262850(JP,A) 特開 昭59−114659(JP,A) 特開 昭62−173560(JP,A) 特開 平4−54543(JP,A) 特開 昭62−196744(JP,A) 特開 平4−17053(JP,A) 特開 昭64−99142(JP,A) 特開 昭60−159959(JP,A) 特開 昭59−226920(JP,A) 実開 昭61−51549(JP,U) (58)調査した分野(Int.Cl.7,DB名) G06F 12/00 - 12/06 G06F 13/16 - 13/18 ──────────────────────────────────────────────────続 き Continuation of front page (56) References JP-A-47-45145 (JP, A) JP-A-57-41755 (JP, A) JP-A-1-116742 (JP, A) JP-A-3- 167652 (JP, A) JP-A-62-293457 (JP, A) JP-A-63-268061 (JP, A) JP-A-61-262850 (JP, A) JP-A-59-114659 (JP, A) JP-A-62-173560 (JP, A) JP-A-4-54543 (JP, A) JP-A-62-196744 (JP, A) JP-A-4-17053 (JP, A) JP-A-64-99142 (JP, a) JP Akira 60-159959 (JP, a) JP Akira 59-226920 (JP, a) JitsuHiraku Akira 61-51549 (JP, U) (58 ) investigated the field (Int.Cl. 7 G06F 12/00-12/06 G06F 13/16-13/18

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 優先側装置(A)と非優先側装置(B)
がデータ保持手段(200)を介して相互にデータを伝
送するときに、上記優先側装置(A)と非優先側装置
(B)よりのデータ保持手段(200)への書き込み要
求の競合を避けるために使用するライトアクセス競合調
整回路において、 優先側装置(A)が書き込み要求状態のときは、該優先
側装置(A)のライトイネーブル信号(Wea)を優先
して出力し、データ保持手段(200)に入力するとと
もに、優先側装置(A)が書き込み非要求状態のときに
のみ非優先側装置(B)よりのライトイネーブル信号
(Web)を出力して、データ保持手段(200)に入
力する優先状態保持手段(100)と、 上記優先側装置(A)が書き込み要求状態のとき上記ラ
イトイネーブル信号(Wea)によって開いて優先側装
置(A)よりのデータ(Dina)を通過させるゲート
(105)と、 上記非優先側装置(B)が書き込み要求状態であって、
かつ、優先側装置(A)が書き込み非要求状態のときに
開いて非優先側装置(B)よりのデータ(Dina)を
通過させるゲート(106)と、 上記優先状態保持手段(100)が優先側装置(A)の
ライトイネーブル信号(Wea)に基づいてその出力を
優先的に”1”とし、非優先側装置(B)のライトイネ
ーブル信号(Web)に基づいて”0”の状態を出力す
るフリップフロップ(100f)と、 上記フリップフロップ(100f)の出力を一方の入力
(I1 )とし、ライトイネーブル信号(Web)を他方
の入力(I2 )とするオアゲート(103)と、 上記ライトイネーブル信号(Wea)を一方の入力(I
1 )とし、上記オアゲート(103)の出力を他方の入
力(I2 )とするアンドゲート(104)とを備えるこ
とを特徴としたライトアクセス競合調整回路。
1. A priority device (A) and a non-priority device (B)
Avoids contention between write requests to the data holding means (200) from the priority side device (A) and the non-priority side device (B) when transmitting data to each other via the data holding means (200). In the write access conflict adjusting circuit used for this purpose, when the priority side device (A) is in a write request state, the write enable signal (Wea) of the priority side device (A) is preferentially output, and the data holding means ( 200), and outputs a write enable signal (Web) from the non-priority side device (B) only when the priority side device (A) is in the non-write request state, and inputs the write enable signal (Web) to the data holding means (200). A priority state holding means (100) for opening the data by the write enable signal (Wea) when the priority side device (A) is in a write request state; Data and gate to pass (Dina) (105), the non-preferential device (B) is a write request state,
In addition, the gate (106) that opens when the priority side device (A) is in the write non-request state and allows the data (Dina) from the non-priority side device (B) to pass through, and the priority state holding means (100) has priority. The output is preferentially set to “1” based on the write enable signal (Wea) of the side device (A), and the state of “0” is output based on the write enable signal (Web) of the non-priority device (B). A flip-flop (100f) to perform the operation, an OR gate (103) using the output of the flip-flop (100f) as one input (I1) and the write enable signal (Web) as the other input (I2), and the write enable signal (Wea) to one input (I
1) and an AND gate (104) that uses the output of the OR gate (103) as the other input (I2).
【請求項2】 上記優先状態保持手段(100)の前段
に優先順位選択手段(40a)を設け、該優先順位選択
手段(40a)で上記優先状態保持手段(100)に入
力されるべき、ライトイネーブル信号(Wea),(W
eb)を選択するとともに、上記2つのゲート(10
5)、(106)の前段にも優先順位選択手段(40
b)を設けて、各ゲート(105)、(106)を開閉
制御するために、該各ゲート(105)、(106)の
制御端子に入力されるライトイネーブル信号(We
a),(Web)を選択する請求項1に記載のライトア
クイセス競合調整回路
2. A priority order selecting means (40a) is provided in front of the priority state holding means (100), and the priority order selecting means (40a) writes the data to be input to the priority state holding means (100). Enable signals (Wea), (W
eb) and the two gates (10
5), the priority selection means (40) before (106).
b) to control the opening and closing of the gates (105) and (106) in order to control the opening and closing of the gates (105) and (106).
2. The write access conflict adjusting circuit according to claim 1, wherein a) or (Web) is selected.
JP05058171A 1993-03-18 1993-03-18 Write access contention adjustment circuit Expired - Fee Related JP3137489B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05058171A JP3137489B2 (en) 1993-03-18 1993-03-18 Write access contention adjustment circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05058171A JP3137489B2 (en) 1993-03-18 1993-03-18 Write access contention adjustment circuit

Publications (2)

Publication Number Publication Date
JPH06274407A JPH06274407A (en) 1994-09-30
JP3137489B2 true JP3137489B2 (en) 2001-02-19

Family

ID=13076559

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05058171A Expired - Fee Related JP3137489B2 (en) 1993-03-18 1993-03-18 Write access contention adjustment circuit

Country Status (1)

Country Link
JP (1) JP3137489B2 (en)

Also Published As

Publication number Publication date
JPH06274407A (en) 1994-09-30

Similar Documents

Publication Publication Date Title
US5408627A (en) Configurable multiport memory interface
CS287491A3 (en) Dynamic bus bus decision making with permission of joint use of each cycle
JPH0683731A (en) Self-synchronous transfer control circuit
US6874049B1 (en) Semaphores with interrupt mechanism
US5692137A (en) Master oriented bus bridge
JP2551338B2 (en) Information processing device
JP3137489B2 (en) Write access contention adjustment circuit
US5938746A (en) System for prioritizing slave input register to receive data transmission via bi-directional data line from master
US4888685A (en) Data conflict prevention for processor with input/output device
JPH03668B2 (en)
KR100339653B1 (en) Apparatus for a control board in a switch
US6360286B1 (en) Sequential data transfer with common clock signal for receiver and sequential storage device and with slack register storing overflow item when set-up time is insufficient
US20060101173A1 (en) Pin sharing system
KR960001271B1 (en) Data path controller in the I / O processor of the TICOM system
JP2595808B2 (en) Memory device for distributed processing
JP4862593B2 (en) Data transfer apparatus and image forming apparatus
KR970007157Y1 (en) Interface device between the system bus and multiple parallel ports
JPH09212469A (en) Lock transfer control circuit
JP4174272B2 (en) Device controller
JPH02118837A (en) interrupt controller
JPH01198850A (en) Direction control system
KR910012874A (en) Snoop Interface Subunit
JPH03144739A (en) Data transfer control system for duplexed storage device
JPH04295944A (en) Arithmetic processor
JPS5846725B2 (en) Interrupt input control method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20001127

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

Free format text: PAYMENT UNTIL: 20071208

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20081208

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees