JPS6376186A - Control circuit for dual port ram - Google Patents

Control circuit for dual port ram

Info

Publication number
JPS6376186A
JPS6376186A JP61221015A JP22101586A JPS6376186A JP S6376186 A JPS6376186 A JP S6376186A JP 61221015 A JP61221015 A JP 61221015A JP 22101586 A JP22101586 A JP 22101586A JP S6376186 A JPS6376186 A JP S6376186A
Authority
JP
Japan
Prior art keywords
reading
ram
waveform
address
circuit
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.)
Pending
Application number
JP61221015A
Other languages
Japanese (ja)
Inventor
Masao Murai
政夫 村井
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP61221015A priority Critical patent/JPS6376186A/en
Publication of JPS6376186A publication Critical patent/JPS6376186A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To eliminate the need for a complicated arbitrating circuit by completing a writing control in the sufficiently shorter time than a reading control, and removing the disturbance of the reading data due to the writing control operated at an arbitrary time with a smoothing means. CONSTITUTION:A waveform (e) of the shifting signal of data reading is added to a shifting signal input terminal 10 regardless of signals (a) and (b) of a writing control relation. By the front edge of the shifting signal waveform (e), a first counter 2 is counted up and the address information of the first counter 2 is added via an address switching circuit 4 as the reading address of a RAM 1. Since a part of an address (d) at the time of the writing control is mixed in a waveform (g) which is the address signal of the RAM 1, the data at the time of writing are mixed besides inherent reading data into a reading waveform (h) of the RAM 1. Since the part of the writing cycle is set sufficiently shorter than the reading cycle, the influence is removed by passing through an integrating circuit 8. As the result, a waveform (i) of the inherent reading data is given to an output terminal 9 of the RAM 1.

Description

【発明の詳細な説明】 「産業上の利用分野] 本発明は、ニポートRAMの制御回路に関し、特に、各
ポートからの同時アクセスを調停する調停回路を不要と
した二ポートRAMの制御回路に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Application Field] The present invention relates to a two-port RAM control circuit, and more particularly to a two-port RAM control circuit that eliminates the need for an arbitration circuit that arbitrates simultaneous accesses from each port.

[従来の技術] 従来、二ポートRAMの制御回路は、二つのポートから
のアドレス情報を切り替えるアドレス切替回路と、二つ
のポートからの同時アクセスを調停する調停回路から構
成されていた。そして、二つのポートから同時にアクセ
スが発生したときは、上記調停回路によりどちらかのポ
ートからのアクセスを待機させ、−ポートずつ分けてア
クセスを実行する制御を行なっていた。
[Prior Art] Conventionally, a control circuit for a two-port RAM has been comprised of an address switching circuit that switches address information from two ports, and an arbitration circuit that arbitrates simultaneous accesses from the two ports. When accesses occur from two ports at the same time, the arbitration circuit waits for accesses from either port, and performs control to execute accesses separately for each port.

[解決すべき問題点] 上述した従来の二ポートRAMの制御回路は、二つのポ
ートからの同時アクセスを調停する調停回路が非常に複
雑になるという問題点があった。
[Problems to be Solved] The conventional two-port RAM control circuit described above has a problem in that the arbitration circuit that arbitrates simultaneous accesses from two ports is extremely complex.

本発明は、上記問題点にかんがみてなされたもので、二
ポートRAMの制御回路において、簡易な構成により従
来の複雑な調停回路を不要とじた二ポートRAMの制御
回路の提供を目的とする。
The present invention has been made in view of the above problems, and it is an object of the present invention to provide a two-port RAM control circuit that has a simple configuration and eliminates the need for a conventional complicated arbitration circuit.

[問題点の解決手段、] 上記目的を達成するため、本発明の二ポートRAMの制
御回路は、読み出し専用ボートに平滑手段を備え、かつ
ライトサイクルをリードサイクルに比べて十分短くした
構成としである。
[Means for solving the problem] In order to achieve the above object, the control circuit of the two-port RAM of the present invention has a structure in which the read-only port is equipped with a smoothing means and the write cycle is sufficiently short compared to the read cycle. be.

[実施例] 以下、図面にもとづいて本発明の詳細な説明する。[Example] Hereinafter, the present invention will be explained in detail based on the drawings.

第1図は、本発明の一実施例に係る二ポートRAMの制
御回路の概略構成図を示す。なお、本実施例はFIFO
として動作する。
FIG. 1 shows a schematic configuration diagram of a control circuit for a two-port RAM according to an embodiment of the present invention. Note that this embodiment uses FIFO
operates as

同図において、1はデータを記憶するRAM、2は読み
出し専用ボートからのアドレス情報にもとづいてリード
アドレスを生成する第1のカウンタ、3は書き込み専用
ボートからのアドレス情報にもとづいてライトアドレス
を生成する第2のカウンタである。第1および第2のカ
ウンタ2,3のアドレス出力端子は、アドレス切替回路
4を経由してRAM1のアドレス入力端子に接続されて
いる。アドレス切替回路4は、通常、第1のカウンタ2
側に切り替えてあり、書き込み要求がある間だけ第2の
カウンタ3側に切り替える。
In the figure, 1 is a RAM that stores data, 2 is a first counter that generates a read address based on address information from a read-only boat, and 3 is a first counter that generates a write address based on address information from a write-only boat. This is the second counter. Address output terminals of the first and second counters 2 and 3 are connected to an address input terminal of the RAM 1 via an address switching circuit 4. The address switching circuit 4 normally switches between the first counter 2
It is switched to the second counter 3 side only while there is a write request.

5は書き込みデータの入力端子で、RAM1のデータ入
力端子に接続されている。また、6は書き込み制御信号
の入力端子で、第2のカウンタ3のカウントアツプ端子
、アドレス切替回路4の切替信号入力端子、およびタイ
ミング調整回路7の入力端子に接続されている。タイミ
ング調整回路7は、書き込み制御信号にもとづいてRA
M1のライトパルスを発生するもので、その出力端子は
RAM1のライ1へ端子に接続されている。
Reference numeral 5 denotes a write data input terminal, which is connected to the data input terminal of the RAM1. Reference numeral 6 designates an input terminal for a write control signal, which is connected to a count-up terminal of the second counter 3, a switching signal input terminal of the address switching circuit 4, and an input terminal of the timing adjustment circuit 7. The timing adjustment circuit 7 adjusts the RA based on the write control signal.
It generates a write pulse of M1, and its output terminal is connected to the write 1 terminal of RAM1.

8は積分回路で、RAMIから読み出されたデータはこ
の積分回路8を経由して読み出しデータ出力端子9へ出
力される。10はデータリードのシフト信号の入力端子
で、第1のカウンタ2のカウントアツプ端子番こ接続さ
れている。
Reference numeral 8 denotes an integrating circuit, and data read from the RAMI is outputted to a read data output terminal 9 via this integrating circuit 8. Reference numeral 10 denotes an input terminal for a data read shift signal, which is connected to the count-up terminal number of the first counter 2.

第2図は、第1図のニポートRAMの制御回路の動作波
形の一例を示す。第2図において、a〜iは第1図の各
部a〜iの波形を示す。
FIG. 2 shows an example of operating waveforms of the control circuit of the Nipport RAM shown in FIG. In FIG. 2, a to i indicate the waveforms of each part a to i in FIG.

上記構成において、データを書き込むには、書き込みデ
ータ波形aを打ち抜くように書き込み制御波形すを書き
込み制御信号入力端子6に加える。
In the above configuration, in order to write data, a write control waveform is applied to the write control signal input terminal 6 so as to punch out the write data waveform a.

この書き込み制御波形すの前エツジで第2のカウンタ3
をカウントアツプするとともに、アドレス切替回路4を
第2のカウンタ3側に切り替える。
At the front edge of this write control waveform, the second counter 3
At the same time, the address switching circuit 4 is switched to the second counter 3 side.

タイミング調整回路7は、第2のカウンタ3の出力波形
dが安定して一定時間経過した後に、ライトパルスCを
発生し、RAM1に加える。RAM1は、このライトパ
ルスCを受けて指定されたライトアドレスにデータを記
憶する。なお、アドレス切替回路4を第2のカウンタ3
側に切り替えている時間は、リードサイクルに比べて十
分短い時間である。
The timing adjustment circuit 7 generates a write pulse C and adds it to the RAM 1 after the output waveform d of the second counter 3 becomes stable and a certain period of time has elapsed. RAM1 receives this write pulse C and stores data at the designated write address. Note that the address switching circuit 4 is replaced by the second counter 3.
The time for switching to the side is sufficiently short compared to the read cycle.

一方、読み出しポートはこの書き込み制御の間を含め、
常に読み出しモードの状態のままにしておく。
On the other hand, the read port, including during this write control,
Always remain in read mode.

データリードのシフト信号の波形eは、書き込み制御関
係の信号a、bとは関係なくシフト信号入力端子10に
加える。そして、このシフト信号波形eの前エッチで第
1のカウンタ2をカウントアツプし、第1のカウンタ2
のアドレス情報をアドレス切替回路4を経由してRAM
1のリードアドレスとして加える。
The waveform e of the data read shift signal is applied to the shift signal input terminal 10 regardless of the write control related signals a and b. Then, the first counter 2 is counted up by the pre-etch of this shift signal waveform e, and the first counter 2 is counted up.
address information is transferred to the RAM via the address switching circuit 4.
Add as read address 1.

以上のような読み出し制御により、RAM1のアドレス
信号は波形gのようになる。ところで、この波形gには
書き込み制御時のアドレスdが一部混じっている。従っ
て、RAMIのリード波形りには本来のリードデータの
他にライト時のデータが混じってしまう。しかし、この
ライトサイクルの部分はリードサイクルに比べて十分短
く設定されているので、積分回路8を通すことによりそ
の影響は除去される。その結果、RAM1の出力端子9
には本来のリードデータの波形iが与えられる。
Due to the read control as described above, the address signal of the RAM 1 has a waveform g. By the way, this waveform g includes a part of the address d during write control. Therefore, in the RAMI read waveform, write data is mixed in with the original read data. However, since this write cycle portion is set to be sufficiently shorter than the read cycle, this influence is removed by passing the signal through the integrating circuit 8. As a result, output terminal 9 of RAM1
is given the original read data waveform i.

なお、本実施例では、書き込み制御時の影響を除去する
ための平滑手段として積分回路を用いているが、平均化
回路等を用いても同様の効果が得られる。
In this embodiment, an integrating circuit is used as a smoothing means to remove the influence during write control, but the same effect can be obtained by using an averaging circuit or the like.

[発明の効果] 以上説明したように本発明は、書き込み制御を読み出し
制御に比べて十分短い時間内で完了させ、かつ、任意の
時刻に行なう書き込み制御による読み出しデータの乱れ
を平滑手段で除去することにより、複雑な調停回路を不
要とする効果がある。
[Effects of the Invention] As explained above, the present invention allows write control to be completed in a sufficiently shorter time than read control, and uses a smoothing means to remove disturbances in read data due to write control performed at arbitrary times. This has the effect of eliminating the need for a complicated arbitration circuit.

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

第1図は本発明の一実施例に係る二ポートRAMの制御
回路のブロック図、第2図は第1図の回路の各部の波形
図である。 l:RAM   4ニアドレス切替回路8:積分回路
FIG. 1 is a block diagram of a control circuit of a two-port RAM according to an embodiment of the present invention, and FIG. 2 is a waveform diagram of each part of the circuit of FIG. l: RAM 4 Near address switching circuit 8: Integrating circuit

Claims (2)

【特許請求の範囲】[Claims] (1)書き込み専用ポートと読み出し専用ポートを有し
、各ポートからのアドレス情報をアドレス切替回路によ
り択一的に切り替えてRAMに供給する二ポートRAM
の制御回路において、読み出し専用ポートに平滑手段を
備え、かつライトサイクルをリードサイクルに比べて十
分短くしたことを特徴とする二ポートRAMの制御回路
(1) A two-port RAM that has a write-only port and a read-only port, and uses an address switching circuit to selectively switch address information from each port and supply it to the RAM.
1. A control circuit for a two-port RAM, characterized in that the read-only port is equipped with a smoothing means, and the write cycle is sufficiently shorter than the read cycle.
(2)前記平滑手段が、積分回路を有する特許請求の範
囲第1項記載の二ポートRAMの制御回路。
(2) A control circuit for a two-port RAM according to claim 1, wherein the smoothing means includes an integrating circuit.
JP61221015A 1986-09-19 1986-09-19 Control circuit for dual port ram Pending JPS6376186A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61221015A JPS6376186A (en) 1986-09-19 1986-09-19 Control circuit for dual port ram

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61221015A JPS6376186A (en) 1986-09-19 1986-09-19 Control circuit for dual port ram

Publications (1)

Publication Number Publication Date
JPS6376186A true JPS6376186A (en) 1988-04-06

Family

ID=16760141

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61221015A Pending JPS6376186A (en) 1986-09-19 1986-09-19 Control circuit for dual port ram

Country Status (1)

Country Link
JP (1) JPS6376186A (en)

Similar Documents

Publication Publication Date Title
JPH0651003A (en) Method and apparatus for measuring phase position
JPS6376186A (en) Control circuit for dual port ram
JPS6145839B2 (en)
JPS63215212A (en) Pulse circuit
SU1411755A2 (en) Device for shaping interrupt signals in program debugging
SU790224A1 (en) Pulse synchronizing device
JPH0750876B2 (en) Frame conversion circuit
JP2597729B2 (en) Microcomputer
JPS60107152A (en) Memory controller
SU1173549A1 (en) Level distributor
SU869034A1 (en) Pulse distributor
JPH01106148A (en) Multi-port memory device
JP2754654B2 (en) Microcomputer output control circuit
JPS63159425U (en)
JPH0270252U (en)
JPS5834979B2 (en) switch selection circuit
JPS60175144A (en) Method for setting up data in register
JPS6089763A (en) Period measuring device
JPH0478960A (en) Logical simulator unit time setting system
JPS63168758A (en) Multi-bus control system
JPH0214409A (en) Head changeover processing circuit
JPS6394713A (en) Selector circuit
JPH03102278A (en) Method of controlling nmr device in real time
JPH03212894A (en) Integrated circuit device
JPH01251897A (en) Time division switching circuit