JPS647436B2 - - Google Patents
Info
- Publication number
- JPS647436B2 JPS647436B2 JP22492282A JP22492282A JPS647436B2 JP S647436 B2 JPS647436 B2 JP S647436B2 JP 22492282 A JP22492282 A JP 22492282A JP 22492282 A JP22492282 A JP 22492282A JP S647436 B2 JPS647436 B2 JP S647436B2
- Authority
- JP
- Japan
- Prior art keywords
- signal
- read
- write
- circuit
- output
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
- 230000000630 rising effect Effects 0.000 claims description 11
- 238000010586 diagram Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000004069 differentiation Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C7/00—Arrangements for writing information into, or reading information out from, a digital store
Description
【発明の詳細な説明】
本発明は、それぞれの動作周波数が非同期であ
る2つのデジタル装置間のインタフエース回路に
関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an interface circuit between two digital devices whose respective operating frequencies are asynchronous.
この種のインタフエース回路は、記憶回路の書
込みと読出しが非同期で行なわれるから、読出し
アドレス信号が入力されてからセツトアツプタイ
ム内に読み出されると誤つたアドレスからデータ
が読み出される等という不都合を解決するため
に、従来のインタフエース回路は、書き込み可能
か、または読出し可能かを互いに知らせるための
フラグ信号を設け、書き込み側は書き込み終了後
に該フラグを上げ、読み出し側は、該フラグの立
つている時に読出しを行ない、読出し終了後に該
フラグを下げるようにしている。また書き込み側
は、上記フラグが上つている時は書き込みが禁止
され、読出し側はフラグの下つている時は読出し
が禁止されるという手法によつて情膜の授受が行
なわれる。従つて従来のインタフエース回路で
は、読み出し側がフラグの上つているのを認識し
て読み出し動作を終了した後でなければ、書き込
み側が次の書き込み動作ができない。また、読出
し側は、書き込み側がフラグの下つているのを認
識して書き込み動作を終了しなければ次の読出し
動作に入れないということが生ずる。すなわち、
互いに相手側の動作に左右されながら書き込みま
たは読出しを制御しなければならないという欠点
がある。 Since this type of interface circuit performs writing and reading of the memory circuit asynchronously, it solves the problem of data being read from the wrong address if it is read within the setup time after the read address signal is input. In order to do this, the conventional interface circuit provides a flag signal to inform each other whether writing is possible or reading is possible.The writing side raises the flag after writing is completed, and the reading side raises the flag when the flag is raised. The data is read out from time to time, and the flag is lowered after the readout is completed. Further, information is exchanged by a method in which writing is prohibited on the writing side when the flag is raised, and reading is prohibited on the reading side when the flag is lowered. Therefore, in the conventional interface circuit, the writing side cannot perform the next write operation until after the reading side recognizes that the flag has been raised and finishes the reading operation. Further, the reading side cannot start the next reading operation unless the writing side recognizes that the flag is lowered and finishes the write operation. That is,
A disadvantage is that writing or reading must be controlled depending on the operation of the other side.
本発明の目的は、上述の従来の欠点を解決し、
書き込み側と読み出し側が相手の動作に影響を受
けず、さらに読み出し側が常時読み出し動作を実
行できるインタフエース回路を提供することにあ
る。 The purpose of the present invention is to solve the above-mentioned conventional drawbacks and
To provide an interface circuit in which a write side and a read side are not affected by the operations of the other side, and furthermore, the read side can always execute read operations.
本発明は、ランダムアクセスメモリの書込みお
よび読出しを、書込みについては、書込みデータ
信号および書込みアドレス信号の変化点より一つ
前の変化点からセツトアツプタイム以上経過して
から書込み、読出しについては、読出しアドレス
が与えられてからセツトアツプタイム経過後に読
出しデータを出力するように制御することを特徴
とする。 In the present invention, writing and reading of random access memory are performed after a set-up time or more has elapsed from the change point immediately before the change point of the write data signal and the write address signal. It is characterized in that control is performed so that read data is output after a setup time has elapsed after an address is given.
すなわち、本発明のインタフエース回路は、書
き込みデータ信号およびアドレス信号を入力し書
込み信号の後縁によつてリタイミングして出力す
る第1のリタイミング回路と、前記書込み信号の
前縁でエツジパルスを発生する微分回路と、読出
し側制御信号によつて開閉され前記微分回路の出
力するエツジパルスを通過または遮断する第1の
ゲート回路と、該第1のゲート回路を通過した前
記エツジパルスによつてセツトされ前記書込み信
号とは非同期の読出し信号の後縁でリセツトされ
るフリツプフロツプと、該フリツプフロツプの出
力によつて開閉され前記読出し信号を通過させる
ことによつて前記読出し信号の前縁変化点のタイ
ミングが制御された書込みイネーブル信号として
出力する第2のゲート回路と、前記第1のリタイ
ミング回路の出力する書込みアドレス信号と読出
し側から入力された読出しアドレス信号とを入力
し前記第2のゲート回路の出力によつて択一的に
選択出力する選択回路と、該選択回路の出力をア
ドレス入力とし前記第1のリタイミング回路の出
力するデータ信号を前記第2のゲート回路の出力
する書込みイネーブル信号の前縁によつて書込む
ランダムアクセスメモリと、該ランダムアクセス
メモリの出力データを入力し前記読出し信号の後
縁によつてリタイミング出力する第2のリタイミ
ング回路とを備えたことを特徴とする。 That is, the interface circuit of the present invention includes a first retiming circuit that inputs a write data signal and an address signal, retimes and outputs the signal at the trailing edge of the write signal, and outputs an edge pulse at the leading edge of the write signal. A differential circuit that generates an edge pulse, a first gate circuit that is opened and closed by a read-side control signal to pass or block the edge pulse output from the differential circuit, and a first gate circuit that is set by the edge pulse that has passed through the first gate circuit. A flip-flop is reset at the trailing edge of the read signal asynchronous to the write signal, and the flip-flop is opened and closed by the output of the flip-flop to allow the read signal to pass, thereby controlling the timing of the leading edge change point of the read signal. a second gate circuit that outputs a write enable signal as a write enable signal; and a second gate circuit that receives a write address signal output from the first retiming circuit and a read address signal input from the read side; a selection circuit that selects and outputs the output selectively by the gate circuit; and a selection circuit that uses the output of the selection circuit as an address input and outputs the data signal output from the first retiming circuit before the write enable signal output from the second gate circuit. The present invention is characterized in that it includes a random access memory that writes data according to the edge, and a second retiming circuit that inputs output data of the random access memory and outputs the retiming circuit according to the trailing edge of the read signal.
次に、本発明について、図面を参照して詳細に
説明する。 Next, the present invention will be explained in detail with reference to the drawings.
第1図は、本発明の一実施例を示すブロツク図
である。すなわち、書き込み側から入力されるデ
ータ信号a1およびアドレス信号a2は、入力端子
1,2から第1のリタイミング回路7に入力さ
れ、入力端子3から入力する書込み信号bの後縁
によつてリタイミング出力される。第1のリタイ
ミング回路7は、複数個のデータ入力端子および
出力端子を有するDタイプエツジトリガのフリツ
プフロツプである。第1のリタイミング回路7の
出力するデータ信号c1はランダムアクセスメモリ
13のデータ入力DIに供給され、アドレス信号
c2は選択回路12を経由してランダムアクセスメ
モリ13のアドレス入力Aに供給される。選択回
路12には入力端子6から入力する読出しアドレ
ス信号iも入力されていて、選択回路12は上記
2つの入力を後述する書込みイネーブル信号jに
よつて択一的に選択出力する。 FIG. 1 is a block diagram showing one embodiment of the present invention. That is, data signal a1 and address signal a2 input from the write side are input to the first retiming circuit 7 from input terminals 1 and 2, and are determined by the trailing edge of write signal b input from input terminal 3. retiming output. The first retiming circuit 7 is a D-type edge triggered flip-flop having a plurality of data input terminals and output terminals. The data signal c1 output from the first retiming circuit 7 is supplied to the data input DI of the random access memory 13, and the address signal
c 2 is supplied to the address input A of the random access memory 13 via the selection circuit 12 . A read address signal i input from the input terminal 6 is also input to the selection circuit 12, and the selection circuit 12 selectively outputs the above two inputs in response to a write enable signal j, which will be described later.
一方、前記書込み信号bの前縁が微分回路8に
よつてエツジパルスdに変換されて第1のゲート
回路9に入力される。第1のゲート回路9は入力
端子4から入力する読出し側の制御信号eがロー
レベルのとき閉じられハイレベルのとき開かれる
NANDゲートである。第1のゲート回路9の出
力信号gによつてフリツプフロツプ10がセツト
され、入力端子5から入力する読出し信号fの前
縁でフリツプフロツプ10がリセツトされる。フ
リツプフロツプ10はデータ入力Dを接地し、セ
ツト入力Sに前記出力信号gを入力し、クロツク
入力Tに読出し信号fを入力させたDタイプフリ
ツプフロツプである。フリツプフロツプ10の反
転出力hおよび前記読出し信号fが第2のゲート
回路11に入力され、第2のゲート回路11の出
力信号は書込みイネーブル信号jとして前記選択
回路12およびランダムアクセスメモリ13に供
給される。第2のゲート回路11はNANDゲー
トで構成されている。ランダムアクセスメモリ1
3は、書込みイネーブル信号jの前縁(立上り)
で、選択回路12の出力する書込みアドレス信号
c2で指定されたアドレスにデータ信号c1を書き込
む。その後書込みイネーブル信号jがハイレベル
の期間中選択回路12は前記読出しアドレス信号
iを選択出力する。従つて、ランダムアクセスメ
モリ13の上記読出しアドレスから読出しデータ
信号lが出力されて第2のリタイミング回路14
に供給され、読出し信号fの後縁でリタイミング
されて、読出しデータ信号mが出力端子15へ出
力される。 On the other hand, the leading edge of the write signal b is converted into an edge pulse d by the differentiating circuit 8 and input to the first gate circuit 9. The first gate circuit 9 is closed when the read-side control signal e inputted from the input terminal 4 is at a low level, and opened when it is at a high level.
It is a NAND gate. The flip-flop 10 is set by the output signal g of the first gate circuit 9, and the flip-flop 10 is reset by the leading edge of the read signal f input from the input terminal 5. The flip-flop 10 is a D-type flip-flop whose data input D is grounded, the set input S receives the output signal g, and the clock input T receives the read signal f. The inverted output h of the flip-flop 10 and the read signal f are input to a second gate circuit 11, and the output signal of the second gate circuit 11 is supplied to the selection circuit 12 and the random access memory 13 as a write enable signal j. . The second gate circuit 11 is composed of a NAND gate. Random access memory 1
3 is the leading edge (rising edge) of write enable signal j
Then, the write address signal output from the selection circuit 12
Write data signal c1 to the address specified by c2 . Thereafter, while the write enable signal j is at a high level, the selection circuit 12 selectively outputs the read address signal i. Therefore, the read data signal l is outputted from the read address of the random access memory 13 and sent to the second retiming circuit 14.
The read data signal m is supplied to the output terminal 15 after being retimed at the trailing edge of the read signal f.
次に、本実施例の動作について第2図および第
3図のタイムチヤートを参照して説明する。第2
図は、書込み信号bの立下り(前縁)のタイミン
グが、読出し側制御信号eのローレベルの期間内
にある場合の動作を示すタイムチヤートであり、
第3図は書込み信号bの前縁が読出し側制御信号
eのハイレベルの期間内にある場合の動作を示す
タイムチヤートである。 Next, the operation of this embodiment will be explained with reference to the time charts of FIGS. 2 and 3. Second
The figure is a time chart showing the operation when the timing of the fall (leading edge) of the write signal b is within the low level period of the read side control signal e.
FIG. 3 is a time chart showing the operation when the leading edge of the write signal b is within the high level period of the read side control signal e.
先ず、第2図の場合について説明する。第2図
aに示すようなデータ信号aおよび同図bに示す
ような読出し信号bが第1のリタイミング回路7
に入力される。アドレス信号a2も上記データ信号
aと同様である。書込み信号bの後縁(立上り)
でデータ信号aがリタイミングされた同図cに示
すようなデータ信号cがメモリ13のデータ入力
DIに供給され、同様なアドレス信号a2(第1図参
照)が選択回路12に入力される。一方、前記書
込み信号bの前縁(立下り)が微分回路8によつ
て検出されて同図dに示すようなエツジパルスd
が出力される。しかし、同図eに示すように読出
し側制御信号eがローレベルであるから上記エツ
ジパルスdは第1のゲート回路9で阻止される。
従つて第1のゲート回路9の出力信号gは同図g
に示すようにハイレベルのままでありフリツプフ
ロツプ10はセツトされない。すなわちフリツプ
フロツプ10の反転出力hは同図hに示すように
ハイレベルのままである。従つて同図fに示すよ
うな読出し信号fは、そのまま第2のゲート回路
11で反転され同図jに示すような書込みイネー
ブル信号jが選択回路12およびランダムアクセ
スメモリ13に供給される。ランダムアクセスメ
モリ13は、データ入力DIに入力しているデー
タ信号cを書込みイネーブル信号jの前縁(立上
り)で書込みアドレスWに書き込む。書込みイネ
ーブル信号jの前縁はエツジパルスdのタイミン
グで立上る。そして書込みイネーブル信号jのハ
イレベルの期間中選択回路12は読出しアドレス
信号i(同図i参照)を選択出力し、メモリ13
の読出しアドレスRからデータが出力される。選
択回路12の出力するアドレス信号kは、同図k
に示すように書込みイネーブル信号jのローレベ
ルの期間中書込みアドレスWを、ハイレベルの期
間では読出しアドレスRを示す。メモリ13の読
出しデータ信号lは、同図lに示すように書込み
イネーブル信号jのハイレベルの期間中出力さ
れ、第2のリタイミング回路14によつてリタイ
ミングされて同図mに示すような読出し信号mが
出力端子15へ出力される。上記書込みイネーブ
ル信号jの前縁は、データ信号c等の変化点より
も前であり1つ前のデータ信号cの変化点よりも
セツトアツプタイム以上を経過した時点であるか
ら、メモリ13は正しいアドレスに正しいデータ
を書き込むことができる。また、第2のリタイミ
ング回路14は、メモリ13に読出しアドレス信
号が与えられてから、読出し信号fのローレベル
の期間だけ後でリタイミングするから、正しいア
ドレスから読出したデータを読出しデータ信号m
として出力することが可能である。なお、入力デ
ータ信号が第2図aにa′またはa″で示され、書込
み信号が同図bにb′またはb″で示されるように読
出し側制御信号eのローレベル期間中の端に近い
位置に前縁(立下り)を有する場合であつても微
分回路8の出力するエツジパルスd′,d″は同図d
に示すようになつて、第1のゲート回路9を通過
することができないから、書込みイネーブル信号
jの波形は前述の場合と同一である。従つて、書
込み信号bの前縁が読出し側制御信号eのローレ
ベルの期間内にある場合は、書込み側と読出し側
の動作は、相手を意識することなく非同期で可能
となる。 First, the case shown in FIG. 2 will be explained. A data signal a as shown in FIG. 2a and a read signal b as shown in FIG.
is input. Address signal a2 is also similar to data signal a. Trailing edge (rising edge) of write signal b
The data signal c shown in the figure c, in which the data signal a is retimed at
DI, and a similar address signal a 2 (see FIG. 1) is input to the selection circuit 12. On the other hand, the leading edge (falling edge) of the write signal b is detected by the differentiating circuit 8, and an edge pulse d as shown in FIG.
is output. However, as shown in the figure e, since the read side control signal e is at a low level, the edge pulse d is blocked by the first gate circuit 9.
Therefore, the output signal g of the first gate circuit 9 is
As shown in FIG. 3, the level remains high and the flip-flop 10 is not set. That is, the inverted output h of the flip-flop 10 remains at a high level as shown in h of the figure. Therefore, the read signal f as shown in FIG. The random access memory 13 writes the data signal c input to the data input DI to the write address W at the leading edge (rising edge) of the write enable signal j. The leading edge of write enable signal j rises at the timing of edge pulse d. Then, during the period when the write enable signal j is at a high level, the selection circuit 12 selects and outputs the read address signal i (see i in the same figure), and selects and outputs the read address signal i (see i in the same figure).
Data is output from read address R of . The address signal k output from the selection circuit 12 is shown in FIG.
As shown in FIG. 3, the write address W is shown during the period when the write enable signal j is at the low level, and the read address R is shown when the write enable signal j is at the high level. The read data signal l of the memory 13 is output during the period when the write enable signal j is at a high level, as shown in FIG. The read signal m is output to the output terminal 15. The leading edge of the write enable signal j is before the change point of the data signal c, etc., and is at a point where more than the setup time has elapsed from the previous change point of the data signal c, so the memory 13 is correct. Correct data can be written to the address. Furthermore, since the second retiming circuit 14 performs retiming only after the low level period of the read signal f after the read address signal is applied to the memory 13, the second retiming circuit 14 retimes the data read from the correct address using the read data signal m.
It is possible to output as . Note that the input data signal is indicated by a' or a'' in FIG. 2a, and the write signal is indicated by b' or b'' in FIG. Even if the leading edges (falling edges) are located close to each other, the edge pulses d' and d'' output by the differentiating circuit 8 are similar to d in the same figure.
Since the write enable signal j cannot pass through the first gate circuit 9, the waveform of the write enable signal j is the same as in the previous case. Therefore, when the leading edge of the write signal b is within the low level period of the read side control signal e, operations on the write side and the read side can be performed asynchronously without being aware of the other side.
次に、書込み信号bの前縁が、読出し側制御信
号eのハイレベルの期間内にある場合の動作につ
いて、第3図を参照して説明する。今第3図aに
示すような書込み側のデータ信号aが同図bに示
すような書込み信号bによつて第1のリタイミン
グ回路7でリタイミング出力された信号cは同図
cに示すように書込み信号bの後縁(立上り)で
変化する。第1のリタイミング回路7の出力する
アドレス信号c2(第1図参照)も同様である。書
込み信号bの前縁(立下り)で微分回路8から第
3図dに示すようなエツジパルスdが出力され
る。今第1のゲート回路9は読出し側制御信号e
(同図e参照)のハイレベルによつて開いている
から、第1のゲート回路9の出力信号gは同図g
に示すようなパルスとなる。該パルスによつてフ
リツプフロツプ10がセツトされ、読出し信号f
(同図f参照)の後縁(立上り)でフリツプフロ
ツプ10がリセツトされる。従つてフリツプフロ
ツプ10の反転出力hは同図hに示すようにな
る。反転出力hと読出し信号fとが第2のゲート
回路11で結合されて、同図jに示すような書込
みイネーブル信号jが得られる。該書込みイネー
ブル信号jのローレベルの期間中選択回路12は
第1のリタイミング回路7の出力する書込みアド
レス信号を選択出力してランダムアクセスメモリ
13のアドレス入力に供給している。そして、前
記書込みイネーブル信号jの前縁(立上り)でメ
モリ13はデータ信号cを書込みアドレスWに書
き込む。書込みイネーブル信号jのハイレベルの
期間中は選択回路12が読出しアドレス信号i
(同図i参照)を選択出力する。従つて選択回路
12の出力するアドレス信号kは同図kに示すよ
うになる。図中Wは書込みアドレス信号が選択さ
れたことを示し、Rは読出しアドレス信号を示
す。読出しアドレス信号iを選択中であつても同
図iに示す読出しアドレス信号iが入力されてい
ない期間はアドレス信号kは無出力である。読出
しアドレス信号iは、少くとも読出し信号fのロ
ーレベルの期間に相当する期間だけ与えられる。
そして、メモリ13のアドレスRから同図lに示
すような読出しデータ信号lが読出され、読出し
信号fの後縁(立上り)でリタイミングされて同
図mに示すような読出しデータ信号mが出力端子
15へ出力される。従つて、読出しデータmは、
メモリ13に読出しアドレス信号が与えられてか
らセツトアツプタイム経過後に出力されるから正
しいアドレスからの正しい読出しデータである。
第3図a,b,c,d,g,h,j,kにおい
て、それぞれa′,a″,c′,c″,d′,d″,g′,g″
,
h′,h″,j′,j″,k′,k″等で示された信号は、書
込み信号bの前縁が読出し側制御信号eのハイレ
ベルの期間の端の方にある場合の各部の信号を示
すものであるが、前述と同様に読出しアドレス信
号がメモリ13に与えられてからセツトアツプタ
イム経過後にリタイミング出力されることが理解
される。また、書込みイネーブル信号jの立上り
時点は、書込みアドレス信号および書込みデータ
信号の変化点より前であり1つ前の変化点からは
セツトアツプタイム以上を経過しているから、書
込み動作も正確に行なわれる。すなわち、書込み
イネーブル信号の立上りタイミングをデータ信号
c等の変化点より書込みイネーブル信号のローレ
ベルの期間だけ前に前生させることによりメモリ
13の書き換えに発生する誤りの危険を回避して
いる。 Next, the operation when the leading edge of the write signal b is within the high level period of the read side control signal e will be described with reference to FIG. The write-side data signal a shown in FIG. 3a is retimed by the first retiming circuit 7 in response to the write signal b shown in FIG. 3b, and the signal c is shown in FIG. 3c. It changes at the trailing edge (rising edge) of write signal b. The same applies to the address signal c 2 (see FIG. 1) output from the first retiming circuit 7. At the leading edge (falling edge) of the write signal b, the differentiating circuit 8 outputs an edge pulse d as shown in FIG. 3d. Now, the first gate circuit 9 receives the read-side control signal e.
(see e in the same figure), the output signal g of the first gate circuit 9 is open due to the high level of g in the same figure.
The pulse will be as shown in . The flip-flop 10 is set by this pulse, and the read signal f
The flip-flop 10 is reset at the trailing edge (rising edge) (see f in the figure). Therefore, the inverted output h of the flip-flop 10 becomes as shown in FIG. The inverted output h and the read signal f are combined by the second gate circuit 11 to obtain a write enable signal j as shown in FIG. While the write enable signal j is at a low level, the selection circuit 12 selects and outputs the write address signal output from the first retiming circuit 7 and supplies it to the address input of the random access memory 13. Then, the memory 13 writes the data signal c to the write address W at the leading edge (rising edge) of the write enable signal j. During the high level period of the write enable signal j, the selection circuit 12 selects the read address signal i.
(see i in the same figure) is selectively output. Therefore, the address signal k output from the selection circuit 12 becomes as shown in FIG. In the figure, W indicates that a write address signal is selected, and R indicates a read address signal. Even if read address signal i is being selected, address signal k is not output during a period when read address signal i is not input as shown in FIG. The read address signal i is applied for at least a period corresponding to the low level period of the read signal f.
Then, a read data signal l as shown in FIG. 1 is read from the address R of the memory 13, and retimed at the trailing edge (rising edge) of the read signal f, and a read data signal m as shown in FIG. It is output to terminal 15. Therefore, read data m is
Since the data is output after the setup time has elapsed after the read address signal is applied to the memory 13, it is the correct read data from the correct address.
In Figure 3 a, b, c, d, g, h, j, k, a', a'', c', c'', d', d'', g', g'', respectively.
,
The signals indicated by h', h'', j', j'', k', k'', etc. are the signals when the leading edge of the write signal b is toward the end of the high level period of the read side control signal e. Although the signals of each part are shown, it is understood that the read address signal is applied to the memory 13 and output at retiming after the setup time has elapsed, as described above.Also, the rising point of the write enable signal j is before the change point of the write address signal and write data signal, and more than the setup time has elapsed since the previous change point, so the write operation is also performed accurately.In other words, the write operation is performed accurately. The risk of errors occurring when rewriting the memory 13 is avoided by setting the timing earlier than the change point of the data signal c etc. by the period during which the write enable signal is at a low level.
従つて、書込み信号bのタイミングが、読出し
制御信号のどの位置にあつても第2図または第3
図によつて説明したように、正しい書込み動作お
よび正しい読出し動作がなされる。すなわち、書
込み側と読出し側が非同期であつても、互に相手
に制約されることなく書込みおよび読出しが可能
となる効果がある。 Therefore, no matter where the timing of the write signal b is in the read control signal,
Correct write operations and correct read operations are performed as illustrated. That is, even if the writing side and the reading side are asynchronous, there is an effect that writing and reading can be performed without being restricted by the other side.
以上のように、本発明においては、第1および
第2のゲート回路と、フリツプフロツプとを設け
て、書込み信号の前縁で発生するエツジパルスに
よつて前記フリツプフロツプをセツトし、読出し
信号の後縁によつて前記フリツプフロツプをリセ
ツトさせて、該フリツプフロツプの反転出力と前
記読出し信号とを第2のゲート回路で結合して書
込みイネーブル信号を発生させ、該書込みイネー
ブル信号によつてランダムアクセスメモリの書込
み動作点を与え、かつ、書込みアドレス信号と読
出しアドレス信号とを前記イネーブル信号によつ
て切替制御して前記ランダムアクセスメモリのア
ドレス入力に与えるように構成し、該ランダムア
クセス回路のデータ入力およびアドレス入力は前
記書込み信号の後縁で変化させ、また、該ランダ
ムアクセスメモリの読出しアドレスが与えられて
からセツトアツプタイムが経過した時点で読出し
信号の後縁でリタイミングして出力するようにし
たから、書込みアドレス信号が前記ランダムアク
セスメモリのアドレス入力およびデータ入力が変
化してからセツトアツプタイム以上経過した時点
で該メモリに書き込まれ、読出しアドレス信号が
与えられてからセツトアツプタイム経過後に読出
しデータをリタイミングして出力することができ
る。従つて、書込み側と読出し側は、互に相手の
動作を意識することなく、非同期で書込みまたは
読出し動作を行なうことができるという効果があ
る。本発明は、例えば書き込み側にマイクロプロ
セツサを想定し、読み出し側をそれとは無関係な
クロツク系で動作しているデジタル装置を想定し
ている。従つて、マイクロプロセツサ等による制
御系を必要とするデジタル装置への利用が多く考
えられ、適用範囲は大である。 As described above, in the present invention, first and second gate circuits and a flip-flop are provided, and the flip-flop is set by the edge pulse generated at the leading edge of the write signal, and the flip-flop is set at the trailing edge of the read signal. Therefore, the flip-flop is reset, the inverted output of the flip-flop and the read signal are combined by a second gate circuit to generate a write enable signal, and the write enable signal determines the write operation point of the random access memory. and a write address signal and a read address signal are switched and controlled by the enable signal and applied to the address input of the random access memory, and the data input and address input of the random access circuit are controlled by the enable signal. The write address is changed at the trailing edge of the write signal, and when the setup time has elapsed after the read address of the random access memory is given, it is retimed and output at the trailing edge of the read signal. A signal is written to the random access memory at least a set-up time after the address and data inputs of the random access memory change, and the read data is retimed after a set-up time has elapsed since the read address signal was applied. can be output. Therefore, there is an advantage that the writing side and the reading side can perform writing or reading operations asynchronously without each other being aware of the other's operation. The present invention assumes, for example, a digital device in which a microprocessor is used on the writing side, and the reading side is operated by an unrelated clock system. Therefore, it is likely to be used in many digital devices that require a control system using a microprocessor or the like, and the range of applications is wide.
第1図は本発明の一実施例を示すブロツク図、
第2図および第3図は上記実施例の動作を説明す
るための各部信号を示すタイムチヤートである。
図において、1〜6……入力端子、7……第1
のリタイミング回路、8……微分回路、9……第
1のゲート回路、10……フリツプフロツプ、1
1……第2のゲート回路、12……選択回路、1
3……ランダムアクセスメモリ、14……第2の
リタイミング回路、15……出力端子。
FIG. 1 is a block diagram showing one embodiment of the present invention;
FIGS. 2 and 3 are time charts showing signals of various parts for explaining the operation of the above embodiment. In the figure, 1 to 6... input terminal, 7... first
retiming circuit, 8...differentiation circuit, 9...first gate circuit, 10...flip-flop, 1
1... Second gate circuit, 12... Selection circuit, 1
3... Random access memory, 14... Second retiming circuit, 15... Output terminal.
Claims (1)
されその出力タイミングが書込み信号の立上がり
によつてリタイミングされて出力される第一のリ
タイミング回路7と、 読出し制御信号、読出し信号および読出しアド
レス信号を入力する手段4,5,6と、 上記書込みデータを書込みアドレスにしたがつ
て一時記憶し読出しアドレスにしたがつて記憶デ
ータを出力するランダムアクセスメモリ13と、 上記ランダムアクセスメモリの出力データを入
力し前記読出し信号の立上がりによつてリイミン
グ出力する第二のリタイミング回路14と を備えたインタフエース回路において、 入力された書込み信号の立下がりを検出する微
分回路8と、 この微分回路の出力を上記読出し制御信号が一
方の論理のときに出力する第1のゲート回路9
と、 この第1のゲート回路の出力によりセツトされ
上記読出し信号の立下がりでリセツトされるフリ
ツプフロツプ10と、 このフリツプフロツプの反転出力により開閉さ
れ上記読出し信号を通過させて読出し信号の立上
がり変化点を制御して上記ランダムアクセスメモ
リに書込みイネーブル信号として出力する第2の
ゲート回路11と この第2のゲート回路11の出力信号である書
込みイネーブル信号により書込みアドレス信号と
読出しアドレス信号とのいずれかを上記ランダム
アクセスメモリに選択出力する選択回路12と を備えたことを特徴とするインタフエース回路。[Claims] 1. A first retiming circuit 7 into which a write data signal and an address signal are input, whose output timing is retimed and outputted according to the rising edge of the write signal, and a read control signal, a read signal, and means 4, 5, 6 for inputting a read address signal; a random access memory 13 for temporarily storing the write data according to the write address and outputting the stored data according to the read address; and an output of the random access memory. An interface circuit comprising a second retiming circuit 14 that inputs data and outputs retiming according to the rising edge of the read signal, a differentiating circuit 8 that detects the falling edge of the input write signal, and this differentiating circuit. a first gate circuit 9 that outputs an output when the read control signal is in one logic;
and a flip-flop 10 which is set by the output of the first gate circuit and reset at the falling edge of the read signal; and a flip-flop 10 which is opened and closed by the inverted output of this flip-flop to allow the read signal to pass and control the rising edge change point of the read signal. a second gate circuit 11 which outputs the write enable signal to the random access memory as a write enable signal; An interface circuit characterized by comprising a selection circuit 12 for selectively outputting to an access memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57224922A JPS59116979A (en) | 1982-12-23 | 1982-12-23 | Interface circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57224922A JPS59116979A (en) | 1982-12-23 | 1982-12-23 | Interface circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS59116979A JPS59116979A (en) | 1984-07-06 |
| JPS647436B2 true JPS647436B2 (en) | 1989-02-08 |
Family
ID=16821267
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP57224922A Granted JPS59116979A (en) | 1982-12-23 | 1982-12-23 | Interface circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS59116979A (en) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5622277A (en) * | 1979-07-27 | 1981-03-02 | Fujitsu Ltd | Random access memory |
-
1982
- 1982-12-23 JP JP57224922A patent/JPS59116979A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS59116979A (en) | 1984-07-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0198673B1 (en) | Image memory | |
| JP2695535B2 (en) | Timer input control circuit and counter control circuit | |
| US3311891A (en) | Recirculating memory device with gated inputs | |
| JPS647436B2 (en) | ||
| JPH0395793A (en) | Arbiter circuit | |
| US5751644A (en) | Data transition detect write control | |
| JPS6059433A (en) | Buffer control circuit | |
| US4238834A (en) | Apparatus for coordinating real time transfer of data from a processor to a magnetic media device | |
| JP2788729B2 (en) | Control signal generation circuit | |
| JPS6349811B2 (en) | ||
| JPH04106793A (en) | Memory interface circuit | |
| JP2558335B2 (en) | Write control device for storage device | |
| JPH01202021A (en) | Writing timing signal generating circuit | |
| JPS6040120B2 (en) | semiconductor storage device | |
| SU487417A1 (en) | Memory device | |
| JPH05265701A (en) | FIFO memory | |
| JPH02206085A (en) | Data setting circuit | |
| JPH04319597A (en) | Initialization circuit for storage circuit | |
| JPH0221618B2 (en) | ||
| JPS63118845A (en) | Logical simulation system | |
| JPH0675902A (en) | Dma transfer circuit | |
| JPS6234254A (en) | Memory access controller | |
| JPH0432592B2 (en) | ||
| JPS6232513B2 (en) | ||
| JPH04326134A (en) | Tracing device |