[go: up one dir, main page]

JPH01102659A - Ram write/read arbitrating system - Google Patents

Ram write/read arbitrating system

Info

Publication number
JPH01102659A
JPH01102659A JP25997787A JP25997787A JPH01102659A JP H01102659 A JPH01102659 A JP H01102659A JP 25997787 A JP25997787 A JP 25997787A JP 25997787 A JP25997787 A JP 25997787A JP H01102659 A JPH01102659 A JP H01102659A
Authority
JP
Japan
Prior art keywords
data
ram
address
read
holding memory
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
JP25997787A
Other languages
Japanese (ja)
Inventor
Junichi Sato
純一 佐藤
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 JP25997787A priority Critical patent/JPH01102659A/en
Publication of JPH01102659A publication Critical patent/JPH01102659A/en
Pending legal-status Critical Current

Links

Abstract

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

Description

【発明の詳細な説明】 〔概要〕 マイクロコンピュータがRAMにデータを書き込むこと
によってシステムの動作を制御している時、運用中のシ
ステムに影響を与えることなく該RAMにデータの書き
込み/読み出しを可能とするRAM書き込み/読み出し
調停方式に関し、 RAM書き込み/読み出し調停方式を実施する回路の規
模縮小を目的とし、 入力する駆動アドレスに対応して該システム制御用デー
タを書き込み、読み出すRAMと、該RAMから読み出
したデータを第1のクロックにより一時記憶する第1の
データ保持メモリと、該RAMに書き込むデータ、又は
RAMから読み出したデータを一時記憶する第2のデー
タ保持メモリと、設定アドレスを一時記憶するアドレス
保持メモリと、該設定アドレスと駆動アドレスとを比較
する比較手段と、該第1のクロック、該第1のクロック
から生成した第2のクロック及び該比較手段の出力が所
定状態になった時に信号を該RAM及び第2のデータ保
持メモリに送出する書き込み/読み出し調停手段とを設
け、 該比較手段からアドレス一致による一致出力が送出され
た時、該一致出力送出時の駆動アドレスに対応するデー
タをRAMから読み出して該第1のデータ保持用メモリ
で保持させた後、該書き込み/読み出し調停手段からの
信号を用いて該第2のデータ保持メモリに保持されてい
たデータを該RAMに書き込み、又は該一致出力送出時
の駆動アドレスに対応するデータを該RAMから読み出
して該第2のデータ保持メモリに書き込む様に構成する
[Detailed Description of the Invention] [Summary] When a microcomputer controls the operation of a system by writing data to a RAM, data can be written to/read from the RAM without affecting the system in operation. Regarding the RAM write/read arbitration method, with the aim of reducing the scale of the circuit that implements the RAM write/read arbitration method, we have developed a RAM that writes and reads system control data corresponding to the input drive address, and a a first data holding memory that temporarily stores read data using a first clock; a second data holding memory that temporarily stores data to be written to the RAM or data read from the RAM; and a second data holding memory that temporarily stores a set address. an address holding memory, a comparing means for comparing the set address and the drive address, and when the first clock, a second clock generated from the first clock, and the output of the comparing means reach a predetermined state; write/read arbitration means for sending a signal to the RAM and a second data holding memory, and when a match output due to address matching is sent from the comparing means, data corresponding to the drive address at the time of sending the match output; is read from the RAM and held in the first data holding memory, and then the data held in the second data holding memory is written to the RAM using a signal from the write/read arbitration means; Alternatively, data corresponding to the drive address at the time of sending out the coincidence output is read from the RAM and written into the second data holding memory.

〔産業上の利用分野〕[Industrial application field]

マイクロコンピュータがRAMにデータを書き込む事に
よってシステムの動作を制御している時、運用中のシス
テムに影響を与えることなく該RAMにデータの書き込
み/読み出しを可能とするRAM書き込み/読み出し調
停方式に関するものである。
Related to a RAM write/read arbitration method that allows data to be written/read from RAM without affecting the system in operation when a microcomputer controls system operation by writing data to RAM. It is.

例えば、RAMにデータ1.データ2・・・と多数のデ
ータが書き込まれており、システムはタイムスロット1
ではデータ1を用いてシステムの動作を制御し、タイム
スロット2ではデータ2を用いてシステムの動作を制御
すると云う様にシステムがタイムスロットに依って別の
動作をする場合がある。
For example, data 1. A large number of data such as data 2... have been written, and the system is in time slot 1.
The system may perform different operations depending on the time slot, such as controlling the system operation using data 1 in time slot 2 and controlling system operation using data 2 in time slot 2.

今、RAMに書き込まれたデータの内9例えばデータ2
をデータ2′に書き替えてシステムを制御しなければな
らない場合、システムを動作させながらこれを行わなけ
ればならないが、この時、書き込み/読み出し調停動作
を行う回路の簡易化を図る必要がある。
Of the data currently written to RAM, 9, for example, data 2.
If it is necessary to control the system by rewriting the data 2' to data 2', this must be done while the system is operating, but at this time, it is necessary to simplify the circuit that performs the write/read arbitration operation.

〔従来の技術〕[Conventional technology]

第6図は従来例のブロック図、第7図は第6図の動作説
明図を示す。以下、RAM 6のアドレスA。
FIG. 6 is a block diagram of a conventional example, and FIG. 7 is an explanatory diagram of the operation of FIG. 6. Below is address A of RAM 6.

に書き込んだデータD、をデータ0.vに書き替えると
して、第7図を参照して第6図の動作を説明する。
The data D written to the data 0. 6 will be explained with reference to FIG. 7.

尚、第6図中のCLK−1はシステムクロック、 CL
K−2はシステムクロックに対して3例えば2周期だけ
位相が遅れたクロックである。
In addition, CLK-1 in Fig. 6 is the system clock, CL
K-2 is a clock whose phase is delayed by 3, for example, 2 periods, with respect to the system clock.

又、アドレス保持用のフリップフロップ(以下。In addition, there is a flip-flop for holding addresses (see below).

FFと省略する)3にはアドレスA@が保持され、デー
タ保持用FF5には書き替えデータ0口′が書き込まれ
ているとする。更に、RAMは上記の様に時分割された
各タイムスロットにおいてシステムの動作を制御するデ
ータを蓄えているので、このRAMを?IAP−RAM
と云う、 先ず、システムカウンタ(図示せず)からのアドレス^
5がセレクタ4を通ってMAP−RAM 6に加えられ
るので、ここからデータDsが読み出され。
It is assumed that address A@ is held in FF (abbreviated as FF) 3, and rewrite data 0' is written in data holding FF 5. Furthermore, since the RAM stores data that controls the operation of the system in each time-divided time slot as described above, what about this RAM? IAP-RAM
First, the address from the system counter (not shown)
5 is added to the MAP-RAM 6 through the selector 4, and the data Ds is read from there.

CLK−2でFF7に書き込まれるので、システムの動
作はFF7のデータD5によって制御される。
Since it is written to FF7 at CLK-2, the system operation is controlled by data D5 of FF7.

即ち、調停時期判定回路lは書き込みが終了した時期を
判定して、セレクタ4を駆動して点線の様にアドレス保
持用FPa側をセレクトするので、このFF3からのア
ドレス^8と書き込み時間判定回路2からのライトイネ
ーブル(書き込み可)信号とFF5に書き込まれたデー
タDIlfがMAP−RAM 6に加えられ第7図A8
に示す様にアドレスA8のデータD、がデータD8gに
書き替えられる。
That is, since the arbitration timing determination circuit 1 determines when writing is completed and drives the selector 4 to select the address holding FPa side as shown by the dotted line, the address ^8 from this FF3 and the write time determination circuit The write enable signal from 2 and the data DIlf written to FF5 are added to the MAP-RAM 6, and the data DIlf is added to the MAP-RAM 6.
As shown in the figure, data D at address A8 is rewritten to data D8g.

そして、書き替え終了と調停時期判定回路1が判定する
と、セレクタ4を元に戻してアドレスA6をMAP−R
AM 6に加えるので、アドレス^6からデータD6が
読み出され、システムはこのデータによって動作する。
When the arbitration timing determination circuit 1 determines that the rewriting is complete, the selector 4 is returned to its original state and the address A6 is set to MAP-R.
Since it is added to AM 6, data D6 is read from address ^6, and the system operates based on this data.

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

ここで、調停時期判定回路l、書き込み時期判定回路2
.セレクタ4が必要となるが、アドレスの切り替えが必
要となるので、アドレスが多い時には回路規模が大きく
なると云う問題点がある。
Here, arbitration timing determination circuit 1, write timing determination circuit 2
.. The selector 4 is required, but since it is necessary to switch addresses, there is a problem that the circuit scale increases when there are many addresses.

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

上記の問題点は第1図に示すRAM書き込み/読み出し
調停方式により解決される。
The above problems are solved by the RAM write/read arbitration system shown in FIG.

ここで、12は入力する駆動アドレスに対応して該シス
テム制御用データを書き込み、読み出すRAhで、11
は該RAMから読み出したデータを第1のクロックによ
り一時記憶する第1のデータ保持メモリであり、13は
該RAMに書き込むデータ、又はRAMから読み出した
データを一時記憶する第2のデータ保持メモリである。
Here, 12 is RAh for writing and reading out the system control data corresponding to the input drive address;
13 is a first data holding memory that temporarily stores data read from the RAM using the first clock, and 13 is a second data holding memory that temporarily stores data written to the RAM or data read from the RAM. be.

又、10は設定アドレスを一時記憶するアドレス保持メ
モリで、9は該設定アドレスと駆動アドレスとを比較す
る比較手段であり、8は該第1のクロック、該第1のク
ロックから生成した第2のクロック及び該比較手段の出
力が所定状態になった時に信号を該RAM及び第2のデ
ータ保持メモリに送出する書き込み/読み出し調停手段
である。
Further, 10 is an address holding memory for temporarily storing a set address, 9 is a comparing means for comparing the set address and the driving address, and 8 is a comparison means for comparing the set address and the drive address, and 8 is a second clock generated from the first clock. write/read arbitration means that sends a signal to the RAM and the second data holding memory when the clock of the memory and the output of the comparison means reach a predetermined state.

そして、これらを設けて、該比較手段からアドレス一致
による一致出力が送出された時、該一致出力送出時の駆
動アドレスに対応するデータをRAHから読み出して、
該第1のデータ保持用メモリで保持させた後、該書き込
み/読み出し調停手段からの信号を用いて該第2のデー
タ保持メモリに保持されていたデータを該RAMに書き
込み9又は該一致出力送出時の駆動アドレスに対応する
データを該RAMから読み出して該第2のデータ保持メ
モリに書き込む様にした。
Then, by providing these, when a match output due to address match is sent from the comparing means, data corresponding to the drive address at the time of sending out the match output is read from the RAH,
After being held in the first data holding memory, the data held in the second data holding memory is written to the RAM using a signal from the write/read arbitration means 9 or the coincidence output is sent. The data corresponding to the drive address at the time is read from the RAM and written into the second data holding memory.

〔作用〕[Effect]

本発明はRAMに書き込まれたデータを読み出してシス
テムを制御している際、運用中のシステムの動作に影響
を与えることなく RAMにデータを書き込むには、ア
ドレス保持メモリlOに書き込みアドレスを(以下、設
一定アドレスと云う)、第2のデータ保持メモリ13に
は書き込みデータをあらかじめ書き込んでそれぞれ保持
しておく。
When the present invention is reading data written to RAM and controlling the system, in order to write data to RAM without affecting the operation of the system in operation, the write address (hereinafter referred to as , a predetermined address), write data is written in advance into the second data holding memory 13 and held therein.

そして、比較手段9で駆動アドレスと設定アドレスとを
比較し、一致した時に一致出力を書き込み/読み出し調
停手段8に送出する様にすると共に、RAM 12から
データを読み出し、第1のクロックを用いて第1のデー
タ保持メモリにこのデータを一時保持させ、これを用い
てシステムの動作を制御する。
Then, the comparison means 9 compares the drive address and the set address, and when they match, a matching output is sent to the write/read arbitration means 8, and data is read from the RAM 12 using the first clock. This data is temporarily held in the first data holding memory and is used to control the operation of the system.

一方、書き込み/読み出し調停手段8から第1のクロッ
ク、第1のクロックから生成した第2のクロック及び一
致出力が所定の状態になった時、RAM 12と第2の
データ保持メモリ13にイネーブル信号を送出するので
、第2のデータ保持メモリ13に一時保持していたデー
タがRAMに書き込まれ。
On the other hand, when the first clock, the second clock generated from the first clock, and the coincidence output from the write/read arbitration means 8 reach a predetermined state, an enable signal is sent to the RAM 12 and the second data holding memory 13. , the data temporarily held in the second data holding memory 13 is written to the RAM.

次期の駆動アドレスの時に書き込まれたデータでシステ
ムが制御される。
The system is controlled by the data written at the next drive address.

又、RAMからデータを読み出す際には書き込み/読み
出し調停手段8からの一致出力によりイネーブル信号が
第2のデータ保持メモリ13に加えられるので、RAM
 12のデータが第2のデータ保持メモリ13に書き込
まれる。
Furthermore, when reading data from the RAM, an enable signal is applied to the second data holding memory 13 by the coincidence output from the write/read arbitration means 8, so that the RAM
12 data are written into the second data holding memory 13.

これらの場合、従来例のアドレスを切り替える為のセレ
クタの代わりに比較器を用いているので。
In these cases, a comparator is used instead of the selector used in the conventional example to switch addresses.

アドレスが多くなっても回路規模は小さくなる。Even if the number of addresses increases, the circuit scale becomes smaller.

又、RAMを複数使用する場合、比較器、第2のデータ
保持メモリ等を共通化することにより回路規模の縮小を
図っている。
Furthermore, when multiple RAMs are used, the circuit size is reduced by sharing a comparator, a second data holding memory, etc.

〔実施例〕〔Example〕

第2図は本発明を実施するためのブロック図、第3図は
第2図の動作説明図で、第3図(a)は書き込み動作の
動作説明図、第3図(b)は読み出し動作の動作説明図
を示す。又、第3図中の左側の符号は第2図中の同じ符
号の部分の波形を示す。
FIG. 2 is a block diagram for implementing the present invention, FIG. 3 is an explanatory diagram of the operation of FIG. 2, FIG. An explanatory diagram of the operation is shown. Further, the symbols on the left side of FIG. 3 indicate the waveforms of the portions with the same symbols in FIG.

ここで、NANDゲート81.82は書き込み/読み出
し調停手段8の構成部分、 FF 91.93.比較器
92゜94、インバータ95〜97は比較手段9の構成
部分、RAMアドレス保持用FFl0Iはアドレス保持
メモリ10の構成部分、データ保持用FF131.13
2は第2のデータ保持メモリ13の構成部分を示す。尚
、全図を通じて同一符号は同一対象物を示す。
Here, the NAND gates 81.82 are the constituent parts of the write/read arbitration means 8, and the FFs 91.93. Comparators 92°94 and inverters 95 to 97 are components of the comparison means 9, RAM address holding FF10I is a component of the address holding memory 10, and data holding FFs 131.13
2 indicates a component of the second data holding memory 13. Note that the same reference numerals indicate the same objects throughout the figures.

以下、アドレスA3でデータの書き込み/読み出しを行
う場合について第3図を参照して第2図の動作を説明す
る。ここで、第3図の■〜■に示す様にCLK−2はC
LK−1より% CLK遅れ、MAP−RAM駆動アド
レスはCLK−2の立下りに同期しているとする。尚、
文中の*QはQに対する反転したレベルを示すものとす
る。
The operation shown in FIG. 2 will be described below with reference to FIG. 3 when writing/reading data at address A3. Here, as shown in Figure 3, CLK-2 is C
It is assumed that the MAP-RAM drive address is delayed by % CLK from LK-1 and is synchronized with the falling edge of CLK-2. still,
*Q in the sentence indicates the inverted level of Q.

(1)  書き込み動作の場合(第3図(a)参照)。(1) In case of write operation (see Fig. 3(a)).

先ず、CPUよりデータ保持用FF 132に書き替え
るべきデータD3“を書き込み、アドレス保持用PF1
01にアドレスA、をセットしてラッチする。
First, the CPU writes data D3 to be rewritten to the data holding FF 132, and then writes the data D3 to be rewritten to the data holding FF 132.
Address A is set to 01 and latched.

次に、FF 14のプリセット*PR端子に負論理のパ
ルスを与えると、第3図(a)−■に示す様にFF−1
4のQ端子がHになり、このHがFF 91のD端子に
加えられるが、インバータ97によりCLK−2の立下
り点Cで第3図(a)−■に示す様にFF 91の本Q
端子がLになり、これが比較器92の*G端子に加えら
れて比較器が比較動作を開始する。
Next, when a negative logic pulse is applied to the preset *PR terminal of FF 14, FF-1
The Q terminal of FF 91 becomes H, and this H is applied to the D terminal of FF 91, but the inverter 97 turns the main of FF 91 at the falling point C of CLK-2 as shown in Fig. 3(a)-■. Q
The terminal becomes L, which is added to the *G terminal of the comparator 92, and the comparator starts a comparison operation.

即ち、第3図(a)−■のMAP−RA?l駆動アドレ
スはA3以外の時(例えば+ AI+ Ax  ・・)
比較器92の出力はHになっており、MAP−RAM 
121は第3図(a)−■に示す様にアドレスA+、A
xに対応するデータDI、 02を出力し、このデータ
はCLK−1で第3図(a)[相]に示す様にFFII
Iに書き込まれ、システムの制御に使用される。
That is, MAP-RA? of FIG. 3(a)-■? l When the drive address is other than A3 (e.g. +AI+Ax...)
The output of the comparator 92 is H, and the MAP-RAM
121 is the address A+, A as shown in Figure 3(a)-■
Outputs data DI, 02 corresponding to
I and is used to control the system.

尚、各データ中の交叉する斜線部分はデータが不定の部
分で、これはRAM2のアクセスタイムに依存し、約1
00〜150ns程度の時間である(第3図(al−■
参照)。
Note that the intersecting diagonal lines in each data are parts where the data is undefined, and this depends on the access time of RAM2 and takes about 1
The time is about 00 to 150 ns (Fig. 3 (al-■
reference).

そして、駆動アドレスがA3になると比較器92の出力
は第3図(al−■の右側に示す様にLになり、2つの
アドレスが一致したことを示す。この時、第3図(al
−■の右側り、に示す様にアドレスA、に対応するデー
タD:lが読み出されてFF 111に書き込まれ、シ
ステムを制御する為に使用される。
When the drive address becomes A3, the output of the comparator 92 becomes L as shown on the right side of FIG. 3 (al-■), indicating that the two addresses match.
As shown on the right side of -■, data D:l corresponding to address A is read out and written to the FF 111, and is used to control the system.

その後、CLK−1,CIJ−2がH1比較器の出力が
Lになった時にNANDゲート81から第3図(al−
■に示す様ニL カMAP−RAM 1210)* H
E端子とFF 132(7)アウトプットイネーブル(
宰01E)端子に加えられる。
After that, when the output of the H1 comparator becomes L, CLK-1 and CIJ-2 are output from the NAND gate 81 as shown in FIG.
As shown in ■L MAP-RAM 1210) *H
E terminal and FF 132 (7) output enable (
01E) added to the terminal.

そこで、MAP−RAMは書き込み可能、FF 132
は出力可能な状態になるので、第3図(a)−■に示す
FF内のデータDコ°がMAP−RAM 121のアド
レスA、に書き込まれる(第3図(a)−■の03′参
照)。
Therefore, MAP-RAM is writable, FF 132
is ready for output, so the data D code in the FF shown in FIG. 3(a)-■ is written to address A of the MAP-RAM 121 (03' in FIG. 3(a)-■). reference).

そして、次のアドレスA8の時にデータD3′が読み出
されてシステムの制御に用いられる。
Then, data D3' is read out at the next address A8 and used for system control.

尚、CPuは前記の様にFF 14にプリセットを加え
てQ端子がHになったことで書き込み調停動作が開始し
たことを知り、NANDゲート81からMAP−RAM
 121に対して出力されたライトイネーブル(*−E
)信号でFF 14のQ端子がLになり、このことによ
りCP[Iは書き込みが完了したことを知る。
In addition, the CPU knows that the write arbitration operation has started when the Q terminal becomes H after applying a preset to the FF 14 as described above, and transfers data from the NAND gate 81 to the MAP-RAM.
Write enable (*-E
) signal causes the Q terminal of FF 14 to become L, and from this, CP[I knows that the write has been completed.

この状態になるとCPUは次期書き込み操作をことが可
能である。
In this state, the CPU can perform the next write operation.

(2)  読み出し動作の場合(第3図中)参照)。(2) In the case of read operation (see Figure 3)).

(1)項の処理と同様にCPuはFF 16のプリセッ
ト宰PR端子に負論理のパルスを与えると第3図(b)
−〇に示す様にFF 16のQ端子がHになり、このH
がFF 93のD端子に加えられ、上記と同様にCLK
−2の立下りでFF 93の宰Q端子がHからしになり
Similarly to the process in section (1), CPU gives a negative logic pulse to the preset PR terminal of FF 16, as shown in Fig. 3(b).
- As shown in 〇, the Q terminal of FF 16 becomes H, and this H
is added to the D terminal of FF 93, and the CLK
At the falling edge of -2, the main Q terminal of FF 93 becomes H.

比較器94が動作を遡始し、アドレス保持用FF 10
1からのアドレスA3とMAP−RAM駆動アドレスが
一致すると第3図−[相]に示す様に比較器94からは
Lが出力されるが、インバータ96で反転されてNAN
Dゲート82に加えられる。
The comparator 94 starts the operation backward, and the address holding FF 10
When the address A3 from 1 and the MAP-RAM drive address match, the comparator 94 outputs L as shown in FIG.
It is added to D gate 82.

ここには第3図(b)−■、■に示すクロックも加えら
れており、3つの入力がHの時に第3図(b)−■に示
す様に、 FF 131に対するライトイネーブルパル
スがFF 131に加えられるので、 MAP−RAM
からのデータD、が書き込まれる。尚、MAP−RAM
からはMAP−RAM駆動アドレスに対応して第3図(
b)−[相]に示す様にデータが読み出されFF 11
1に加えられる。
The clocks shown in Figure 3(b)-■ and ■ are also added here, and when the three inputs are H, the write enable pulse for FF 131 is activated as shown in Figure 3(b)-■. 131, so MAP-RAM
Data D from is written. Furthermore, MAP-RAM
3 () corresponding to the MAP-RAM drive address.
b) - The data is read out as shown in [phase] and the FF 11
Added to 1.

又、3状態ゲ一ト回路15とFF 16は前記と同様に
cpuが読み出し調停動作の開始、終了を知るためのも
のである。
Further, the three-state gate circuit 15 and the FF 16 are used for the CPU to know the start and end of the read arbitration operation, as described above.

次に、第4図は別の実施例のブロック図、第5図は更に
別の実施例のブロック図を示す。
Next, FIG. 4 shows a block diagram of another embodiment, and FIG. 5 shows a block diagram of still another embodiment.

第4図は第2図に示す様にMAP−RAMを1個でなく
複数個121.122.123  ・・と設けると、こ
れに対応してMAP−RAMから読み出したデータを蓄
えるFF 111.112.113・・・とMAP−R
AMのデータを書き替える為のデータ、又は読み出した
データを蓄えるFF 131.132  ・・が必要と
なる。
FIG. 4 shows that when multiple MAP-RAMs 121, 122, 123, etc. are provided instead of one as shown in FIG. .113... and MAP-R
FFs 131, 132, etc. are required to store data for rewriting AM data or read data.

ここで、比較器92又は94で前記の様にRAMアドレ
ス保持用FF 101に設定されたアドレスとi^P−
RAM駆動アドレスとの一致をみているが、RAM識別
アドレス保持用FF 102.デコーダ103.104
゜ANDゲーグー05.106を設けてアドレスが一致
した時、 RAM識別アドレス保持用FF 102の出
力を解読して、どのMAP−RAMが選択されたかを出
力している。
Here, the comparator 92 or 94 compares the address set in the RAM address holding FF 101 with the i^P-
Although we are looking for a match with the RAM drive address, the RAM identification address holding FF 102. Decoder 103.104
゜AND game 05.106 is provided to decode the output of the RAM identification address holding FF 102 when the addresses match, and output which MAP-RAM has been selected.

尚、MAP−RAMを複数個使用する場合、第2図に示
すブロック図を複数個設ける必要がないので回路規模が
小さくなる。
Incidentally, when a plurality of MAP-RAMs are used, it is not necessary to provide a plurality of block diagrams shown in FIG. 2, so the circuit scale becomes smaller.

第5図は第4図のブロックに対してMAP−RAM駆動
用アドレスと書き替え、又は、読み出し用アドレスの一
致を検出する比較器95を共通化する為、NORゲート
96を使用してこれを実現した。
In FIG. 5, a NOR gate 96 is used to rewrite the block in FIG. 4 with a MAP-RAM drive address, or to unify the comparator 95 for detecting a match between read addresses. It was realized.

又、第4図に示す様にMAP−RAMに対応して書き替
え用データ、又は読み出し用データを保持するデータ保
持用FF131〜136を設けていたが、各MAP−R
AMに対応して双方向トランシーバ137.138゜1
39、139 ’を設ける。そして、このトランシーバ
は常時はA−8の方向にデータが流れる様になっている
が、ライトイネーブル(宰畦)信号が加えられた時だけ
B−Aの方向にデータが流れる様にする。
Furthermore, as shown in FIG. 4, data holding FFs 131 to 136 for holding rewriting data or reading data were provided corresponding to the MAP-RAM, but each MAP-R
Two-way transceiver 137.138°1 compatible with AM
39, 139' are provided. This transceiver normally allows data to flow in the direction of A-8, but allows data to flow in the direction of B-A only when a write enable signal is applied.

これにより、書き替えデータ保持用FF 132と読み
出しデータ保持用FF 131の2個OFFがあればよ
いので1回路規模が小さくなる。
As a result, it is only necessary to turn off two FFs, the FF 132 for holding rewritten data and the FF 131 for holding read data, thereby reducing the size of one circuit.

即ち、小規模の回路を用いてMAP−RAMの書き込み
/読み出し調停を行うことができる。
That is, MAP-RAM write/read arbitration can be performed using a small-scale circuit.

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

以上詳細に説明した様に本発明によれば小さな規模の回
路を用いてRAMの書き込み/読み出し調停を行うこと
ができると云う効果がある。
As described above in detail, the present invention has the advantage that RAM write/read arbitration can be performed using a small-scale circuit.

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

第1図は本発明の原理ブロック図、 第2図は本発明を実施するためのブロック図、第3図は
第2図の動作説明図、 第4図は第2図の別の実施例のブロック図、第5図は第
2図の更に別の実施例のブロック図、第6図は従来例の
ブロック図、 第7図は第6図の動作説明図を示す。 木お明8寅施IろTこののブロツ刀図
Fig. 1 is a block diagram of the principle of the present invention, Fig. 2 is a block diagram for implementing the present invention, Fig. 3 is an explanatory diagram of the operation of Fig. 2, and Fig. 4 is a diagram of another embodiment of Fig. 2. FIG. 5 is a block diagram of still another embodiment of FIG. 2, FIG. 6 is a block diagram of a conventional example, and FIG. 7 is an explanatory diagram of the operation of FIG. 6. Ki Oake 8 Torase IroT Konno's Brotsu Sword Illustration

Claims (1)

【特許請求の範囲】  1、コンピュータでシステムの動作を制御する際、 入力する駆動アドレスに対応して該システム制御用デー
タを書き込み、読み出すRAM(12)と、該RAMか
ら読み出したデータを第1のクロックにより一時記憶す
る第1のデータ保持メモリ(11)と、該RAMに書き
込むデータ、又はRAMから読み出したデータを一時記
憶する第2のデータ保持メモリ(13)と、 設定アドレスを一時記憶するアドレス保持メモリ(10
)と、該設定アドレスと駆動アドレスとを比較する比較
手段(9)と、該第1のクロック、該第1のクロックか
ら生成した第2のクロック及び該比較手段の出力が所定
状態になった時に信号を該RAM及び第2のデータ保持
メモリに送出する書き込み/読み出し調停手段(8)と
を設け、 該比較手段からアドレス一致による一致出力が送出され
た時、該一致出力送出時の駆動アドレスに対応するデー
タをRAMから読み出して、該第1のデータ保持用メモ
リ(11)で保持させた後、該書き込み/読み出し調停
手段(8)からの信号を用いて該第2のデータ保持メモ
リに保持されていたデータを該RAMに書き込み、又は
該一致出力送出時の駆動アドレスに対応するデータを該
RAMから読み出して該第2のデータ保持メモリに書き
込む様にしたことを特徴とするRAM書き込み/読み出
し調停方式。 2、該アドレス保持メモリを該アドレス保持メモリにR
AM識別用アドレス保持メモリとデコーダとを付加する
構成にしたことを特徴とする特許請求の範囲第1項記載
のRAM書き込み/読み出し調停方式。 3、該第2のデータ保持メモリを該第2のデータ保持メ
モリに該RAMと同数の双方向トランシーバを付加する
構成にしたことを特徴とする特許請求の範囲第1項記載
のRAM書き込み/読み出し調停方式。 4、該比較手段を共通の比較器に論理和回路を付加する
構成にしたことを特徴とする特許請求の範囲第1項記載
のRAM書き込み/読み出し調停方式。
[Claims] 1. When controlling the operation of a system with a computer, a RAM (12) in which system control data is written and read in accordance with an input drive address; a first data holding memory (11) that temporarily stores data written in the RAM or data read from the RAM; and a second data holding memory (13) that temporarily stores a setting address. Address holding memory (10
), a comparing means (9) for comparing the set address and the drive address, the first clock, a second clock generated from the first clock, and the output of the comparing means are in a predetermined state. write/read arbitration means (8) that sends a signal to the RAM and the second data holding memory at the same time; The data corresponding to is read from the RAM and held in the first data holding memory (11), and then stored in the second data holding memory using the signal from the write/read arbitration means (8). A RAM write/write device characterized in that held data is written to the RAM, or data corresponding to the drive address at the time of sending out the coincidence output is read from the RAM and written to the second data holding memory. Read arbitration method. 2. R the address holding memory to the address holding memory
2. A RAM write/read arbitration system according to claim 1, characterized in that an address holding memory for AM identification and a decoder are added. 3. RAM writing/reading according to claim 1, characterized in that the second data holding memory has a structure in which the same number of bidirectional transceivers as the RAM are added to the second data holding memory. Mediation method. 4. The RAM write/read arbitration system according to claim 1, wherein the comparing means has a configuration in which an OR circuit is added to a common comparator.
JP25997787A 1987-10-15 1987-10-15 Ram write/read arbitrating system Pending JPH01102659A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25997787A JPH01102659A (en) 1987-10-15 1987-10-15 Ram write/read arbitrating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25997787A JPH01102659A (en) 1987-10-15 1987-10-15 Ram write/read arbitrating system

Publications (1)

Publication Number Publication Date
JPH01102659A true JPH01102659A (en) 1989-04-20

Family

ID=17341561

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25997787A Pending JPH01102659A (en) 1987-10-15 1987-10-15 Ram write/read arbitrating system

Country Status (1)

Country Link
JP (1) JPH01102659A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02299333A (en) * 1989-05-12 1990-12-11 Nec Corp Memory access system for multiplex transmitter

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02299333A (en) * 1989-05-12 1990-12-11 Nec Corp Memory access system for multiplex transmitter

Similar Documents

Publication Publication Date Title
JPH0746507B2 (en) Dual port read / write memory
US3480917A (en) Arrangement for transferring between program sequences in a data processor
JPH01102659A (en) Ram write/read arbitrating system
US4888685A (en) Data conflict prevention for processor with input/output device
KR100227740B1 (en) A data access control device using dual-port memory
JPS5927334A (en) Direct memory access memory device
JPS6323581B2 (en)
JPH10302475A (en) Memory control device
KR900005306A (en) Computer system and method for setting recovery time
KR950001586B1 (en) Data-bus interface apparatus for 64bit and 32bit
JP2854301B2 (en) Memory access circuit
EP0644550B1 (en) Dram control Circuit
KR910006792B1 (en) Access memory expansion circuit of direcrt memory access controller
JPH03214275A (en) Semiconductor integrated circuit
JPH02208896A (en) Semiconductor memory circuit
JPH06214939A (en) Dma controller
JPH02136921A (en) Register access method
JPS61280194A (en) Retention memory control method
JPH0315918A (en) Computer device
JPS60189043A (en) processor
JPH02144753A (en) READY signal creation circuit
JPH03175543A (en) Data processor
JPS63188883A (en) Storage device
JPH04319597A (en) Initialization circuit for storage circuit
JPS6047626B2 (en) Data buffer control method