JPH0289284A - Arbitration circuit for 2-port memory - Google Patents

Arbitration circuit for 2-port memory

Info

Publication number
JPH0289284A
JPH0289284A JP63238866A JP23886688A JPH0289284A JP H0289284 A JPH0289284 A JP H0289284A JP 63238866 A JP63238866 A JP 63238866A JP 23886688 A JP23886688 A JP 23886688A JP H0289284 A JPH0289284 A JP H0289284A
Authority
JP
Japan
Prior art keywords
address
words
signal
port
arbitration
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
JP63238866A
Other languages
Japanese (ja)
Inventor
Takashi 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.)
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 JP63238866A priority Critical patent/JPH0289284A/en
Publication of JPH0289284A publication Critical patent/JPH0289284A/en
Pending legal-status Critical Current

Links

Landscapes

  • Static Random-Access Memory (AREA)

Abstract

PURPOSE:To surely inhibit simultaneous access to the same address by converting the high-order address signal of each address to an address signal for two words, holding the signal during the period of data access for two words and then applying the held output to a port arbitration part. CONSTITUTION:The title circuit is provided with address conversion parts 2a, 2b each of which converts a high-order address signal out of high-order and low-order address signals including two words for respective address buses formed correspondingly to respective ports of a memory into an address signal for the two words, address latch parts 3a, 3b respectively corresponding to respective address conversion parts 2a, 2b to hold the outputs of the conversion parts 2a, 2b and apply them to the port arbitration part and access detecting parts 4a, 4b prepared correspondingly to respective address conversion parts 2a, 2b to keep the corresponding address latch parts 3a, 3b at the holding state during the data access of two words based on the basis of the state of each address bus. Consequently, arbitration judgement corresponding to the address for two words can be executed and the arbitration can be surely executed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、二つのポートを有するメモリの各ボー)K対
するデータのアクセスを調停し、同一アドレスに対して
同時にデータのアクセスが行なわれるのを禁止する回路
に関するものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention arbitrates data access to each baud (K) of a memory having two ports, and prevents simultaneous data access to the same address. This relates to a circuit that prohibits

〔従来の技術〕[Conventional technology]

二つのポートを有するメモリの各ポートへ各々別個のデ
ータバスおよびアドレスバスを接iすると共に、これら
の各バス毎に各個別のプロセッサを備える場合、メモリ
の同一アドレスへ同時に各プロセッサよシデータのアク
セスが行なわれないものとするため、一般に調停回路が
用いられておシ、従来は、調停回路が1ワード分の8ビ
ツトからなるアドレス信号の比較を行ない、これにより
各アドレスバスからのアドレス信号が同一のとき、いず
れか一方のプロセッサに対してのみデータのアクセスを
許容するものとなっている。
If a two-port memory has separate data and address buses connected to each port, and a separate processor is provided for each of these buses, it is possible for each processor to access data at the same address in the memory at the same time. An arbitration circuit is generally used to ensure that the address signals from each address bus are not When they are the same, only one of the processors is allowed to access the data.

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

しかし、データバスが16ビツトでアシ、これによシ2
ワードを単位としてメモリへのアクセスを行なう場合に
は、アドレス信号も2ワードと対応して上位アドレス信
号および下位アドレス信号を調停回路が判断すべきとζ
ろ、調停回路が1ワード分のアドレス信号しか判断して
おらず、2ワードを単位とするデータ処理においては、
正確にデータ処理が行なえない欠点を生じている。
However, since the data bus is 16 bits,
When accessing memory in units of words, the arbitration circuit should determine the upper address signal and lower address signal in correspondence with two words.
However, the arbitration circuit only judges the address signal for one word, and in data processing in units of two words,
This has the drawback that accurate data processing cannot be performed.

〔課題を解決するための手段〕[Means to solve the problem]

前述の課題を解決するため、本発明はつぎの手段により
構成するものとなっている。
In order to solve the above-mentioned problems, the present invention is configured by the following means.

すなわち、メモリの各ポートと対応して設けた各アドレ
スバスの2ワード分を示す上位および下位アドレス信号
中の上位アドレス信号を2ワード分のアドレス信号へ変
換する各アドレスバス毎に設けたアドレス変換部と、こ
れらの各出力を各個に保持しポート調停部へ与える各ア
ドレス変換部毎に設けたアドレスラッチ部と、各アドレ
スバスの状態に基づき2ワード分のデータアクセスの間
対応するアドレスラッチ部を保持状態とする各アドレス
変換部毎に設は九アクセス検出部とを備えたものである
In other words, the address conversion provided for each address bus converts the upper address signal in the upper and lower address signals indicating 2 words of each address bus provided corresponding to each port of the memory into an address signal of 2 words. , an address latch section provided for each address conversion section that holds each of these outputs individually and supplies them to the port arbitration section, and an address latch section that corresponds to the address conversion section during two-word data access based on the state of each address bus. Each address conversion section that holds the address is provided with nine access detection sections.

〔作用〕[Effect]

し九がって、各アドレスバスから上位アドレス信号が与
えられると、これが2ワード分のアドレス信号へ変換さ
れ、これがデータアクセスの間はアドレスラッチ部によ
シ保持されており、これに基づいてポート調停部が調停
判断を行なうため、2ワード分のアドレスによる調停が
確実に行なわれる。
Therefore, when an upper address signal is applied from each address bus, this is converted into an address signal for two words, which is held in the address latch section during data access, and based on this, Since the port arbitration unit makes the arbitration decision, arbitration using two words worth of addresses is reliably performed.

〔実施例〕〔Example〕

以下、実施例を示す図によって本発明の詳細な説明する
Hereinafter, the present invention will be explained in detail with reference to figures showing examples.

第1図はブロック図、第2図は第1図における各部の状
態を示すタイミングチャートであり、第1図においては
、図上省略したメモリの各ポートおよび各個別のプロセ
ッサ(以下、CPU)と対応して設ケたアドレスバス1
aおよび1bの各々毎にアドレス変換部(以下、ADC
)2m、2bが設けてあり、これらは、データの2ワー
ド分を示す上位アドレス信号および下位アドレス信号中
の上位アドレス信号よシ、下位の1ビツトを削除し、2
ワード分のアドレス信号へ変換する機能を備えている。
FIG. 1 is a block diagram, and FIG. 2 is a timing chart showing the state of each part in FIG. 1. In FIG. Corresponding address bus 1
an address converter (hereinafter referred to as ADC) for each of a and 1b.
) 2m and 2b are provided, and these are the upper address signal and the lower address signal indicating two words of data, and the lower one bit is deleted, and
It has the function of converting into word address signals.

ADCZ& 、2bの各出力は、ADC2m、2b毎に
設けたアドレスランチ部(以下、ADf、)3m、3b
によシ各個に保持されるが、これらは、ADC28,2
b毎に設けたアクセス検出部(以下、ACD)4m、4
bによ多制御されており、ACD4m、4bは、アドレ
スバスla+lbの状態に基づき、メモリに対する2ワ
ード分のデータアクセス開始に応じてADL3m、3b
を保持状態とし、データアクセスの終了に応じてADL
3m、3bをクリアするため、いずれか一方のCPOK
よる2ワード分のデータアクセスの間のみAoL3m、
3bがAD02m、2bの出力を各個に保持するものと
なっている。
Each output of ADCZ&, 2b is connected to an address launch section (hereinafter referred to as ADf) 3m, 3b provided for each ADC2m, 2b.
These are held individually by ADC28,2.
Access detection unit (hereinafter referred to as ACD) provided for each b, 4m, 4
Based on the state of the address bus la+lb, the ACDs 4m and 4b are controlled by the ADLs 3m and 3b in response to the start of 2-word data access to the memory.
is held, and ADL is set in response to the end of data access.
CPOK on either one to clear 3m and 3b
AoL3m only during data access for 2 words due to
3b holds the outputs of AD02m and 2b individually.

この各保持出力は、ポート調停部(以下、PMD)5へ
与えられ、こ\において、ADL3a、3bの各保持出
力が同一であれば、各CPUへのデータアクセスを許容
する許容信号READY−AおよびREADY−B中の
いずれか一方のみを有効とし、メモリの同一アドレスに
対する同時アクセスを禁止するのに対し、各保持出力が
異っていれば、各許容信号READY−A、READY
−Bを各々有効とし、各CPUによる各個別のアドレス
へのアクセスを自在とする。
These holding outputs are given to a port arbitration unit (hereinafter referred to as PMD) 5, where if the holding outputs of ADLs 3a and 3b are the same, a permission signal READY-A is sent that allows data access to each CPU. Only one of READY-A and READY-B is valid, and simultaneous access to the same memory address is prohibited. However, if each holding output is different, each permission signal READY-A, READY-B is valid.
-B are respectively enabled, and each CPU can freely access each individual address.

したがって、第2図のとおシ、まず、アドレスバス11
へ上位アドレス信号N (a)が生じ、ついで下位アド
レス信号N + 1 (a)が生ずれば、上位アドレス
信号N(1)に応じADC2mが、各アドレス信号N、
N+1(a)によって示される2ワード分のアドレス信
号を送出すると共に、ACDJ&がこれをADL3mへ
保持させる一方、このときは、アドレスバス1bのアド
レス信号N(e)が生じておらず、ADL3bの内容は
クリア状態のため、PMD5が許容信号READY−A
(b)を有効とし、アドレスバス1b側のCPUによる
データのアクセスを行なわせる。
Therefore, as shown in FIG. 2, first, the address bus 11
When the upper address signal N (a) is generated and then the lower address signal N + 1 (a) is generated, the ADC 2m outputs each address signal N, according to the upper address signal N (1).
At the same time, ACDJ& causes the ADL3m to hold the two-word address signal indicated by N+1(a), but at this time, the address signal N(e) on the address bus 1b is not generated, and the address signal on the ADL3b is not generated. Since the contents are in the clear state, PMD5 sends the permission signal READY-A.
(b) is made valid and data access is performed by the CPU on the address bus 1b side.

また、上位アドレス信号N(&)よシも若干遅れてアド
レスバス1bにアドレス信号N(c)が生ずれば、これ
がADC2bKよシ2ワード分のアドレス信号となシ、
同様にADL3bによって保持されるため、PMD5の
各入力は同一となり、許容信号READY−B(d)を
無効のま\とし、アドレスバス1bllのCPUによる
アクセスを禁止する。
Also, if the address signal N(c) is generated on the address bus 1b with a slight delay from the upper address signal N(&), this will become the address signal for two words from the ADC 2bK.
Similarly, since it is held by the ADL 3b, each input of the PMD 5 becomes the same, the enable signal READY-B(d) remains invalid, and access by the CPU to the address bus 1bll is prohibited.

一方、下位アドレス信号N + 1 (a)の消滅に伴
ない、ACDJaがADL3mをクリアするため、PM
D5の各入力が不同となシ、今度は許容信号READY
−B(d)を有効とすることKよシ、アドレスバス1b
側のCPUによるアクセスがメモリのアドレスNに対し
て行なわれる。
On the other hand, as the lower address signal N + 1 (a) disappears, ACDJa clears ADL3m, so PM
If the inputs of D5 are not the same, now the enable signal READY
-B(d) must be enabled, address bus 1b
An access by the side CPU is made to address N in memory.

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

以上の説明によυ明らかなとおり本発明によれば、各ア
ドレスバスの上位アドレス信号を2ワード分のアドレス
信号へ変換し、これを2ワード分のデータアクセスの間
保持し、この保持出力をポート調停部へ与えるものとし
たことくよシ、2ワード分のアドレスに応じた調停判断
がなされ、メモリの各ポートを介する同一アドレスへの
同時アクセスが確実に禁止され、2ワードを単位とする
データ処理が正確となシ、2ポートメモリの調停におい
て顕著な効果が得られる。
As is clear from the above explanation, according to the present invention, the upper address signal of each address bus is converted into an address signal for two words, this is held during data access for two words, and this held output is The details given to the port arbitration unit are that arbitration decisions are made according to the addresses of two words, and simultaneous access to the same address via each port of the memory is reliably prohibited, and the unit is two words. If the data processing is accurate, a remarkable effect can be obtained in the arbitration of the two-port memory.

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

図は本発明の実施例を示し、第1図はブロック図、第2
図は第1図の各部における状態を示すタイミングチャー
トである。 1 B、lb @ * * 11アドレスバス、2 a
 r 2b @e・・アドレス変換部、3m、3b・・
・・アドレスラッチ部、4m、4b・・・Φアクセス検
出部、5・・・・ポート調停部。
The figures show embodiments of the present invention, with Figure 1 being a block diagram and Figure 2 being a block diagram.
The figure is a timing chart showing the states of each part in FIG. 1. 1 B, lb @ * * 11 address bus, 2 a
r 2b @e...address conversion section, 3m, 3b...
. . . Address latch section, 4m, 4b . . . Φ access detection section, 5. . . Port arbitration section.

Claims (1)

【特許請求の範囲】[Claims] 二つのポートを有するメモリの各ポートに対するデータ
のアクセスを調停する回路において、前記各ポートと対
応して設けた各アドレスバスの2ワード分を示す上位お
よび下位アドレス信号中の上位アドレス信号を2ワード
分のアドレス信号へ変換する前記各アドレスバス毎に設
けたアドレス変換部と、該各アドレス変換部の各出力を
各個に保持しポート調停部へ与える前記各アドレス変換
部毎に設けたアドレスラッチ部と、前記各アドレスバス
の状態に基づき2ワード分のデータアクセスの間対応す
る前記アドレスラッチ部を保持状態とする前記各アドレ
ス変換部毎に設けたアクセス検出部とを備えたことを特
徴とする2ポートメモリの調停回路。
In a circuit that arbitrates data access to each port of a memory having two ports, the upper address signal of the upper and lower address signals indicating 2 words of each address bus provided corresponding to each port is set to 2 words. an address converter provided for each of the address buses, which converts the address signal into an address signal; and an address latch part provided for each address converter, which individually holds each output of each address converter and supplies it to the port arbitration unit. and an access detection unit provided for each of the address conversion units, which holds the corresponding address latch unit in a holding state during two-word data access based on the state of each address bus. Arbitration circuit for 2-port memory.
JP63238866A 1988-09-26 1988-09-26 Arbitration circuit for 2-port memory Pending JPH0289284A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63238866A JPH0289284A (en) 1988-09-26 1988-09-26 Arbitration circuit for 2-port memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63238866A JPH0289284A (en) 1988-09-26 1988-09-26 Arbitration circuit for 2-port memory

Publications (1)

Publication Number Publication Date
JPH0289284A true JPH0289284A (en) 1990-03-29

Family

ID=17036423

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63238866A Pending JPH0289284A (en) 1988-09-26 1988-09-26 Arbitration circuit for 2-port memory

Country Status (1)

Country Link
JP (1) JPH0289284A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0321475A (en) * 1989-06-19 1991-01-30 Matsushita Electric Ind Co Ltd Image output device
US5568615A (en) * 1992-06-12 1996-10-22 The Dow Chemical Company Stealth interface for process control computers

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0321475A (en) * 1989-06-19 1991-01-30 Matsushita Electric Ind Co Ltd Image output device
US5568615A (en) * 1992-06-12 1996-10-22 The Dow Chemical Company Stealth interface for process control computers

Similar Documents

Publication Publication Date Title
US5455915A (en) Computer system with bridge circuitry having input/output multiplexers and third direct unidirectional path for data transfer between buses operating at different rates
JP2633331B2 (en) Microprocessor
JPH05204820A (en) Microcessor, processing system and bus interface
JPH09160866A (en) Bus interface logic system and synchronization method
JPH0289284A (en) Arbitration circuit for 2-port memory
JP2591502B2 (en) Information processing system and its bus arbitration system
JPH01305460A (en) Inter-processor communication system
JPS5864528A (en) Data transfer system of plural microprocessors
JPH04323755A (en) Dma device
JP2606477Y2 (en) Data processing device and input / output board
JP3415474B2 (en) Bus bridge arbitration method
JPH01109425A (en) Fifo memory
JPH0348305A (en) Robot control device
KR100217897B1 (en) Method for interfacing digital signal processor to can controller
JPH05204832A (en) Dma bus arbitration system
JPH07120329B2 (en) Bus controller
JPS63201742A (en) Address converter
JP2002024164A (en) Access controller
JPH04160458A (en) Dma controller peripheral circuit
JPH0434187B2 (en)
JPS6334653A (en) Memory accessing system for information processor
JPH01276241A (en) Multiple interrupting device
JPS58151662A (en) Computer system
JPH01276360A (en) Processor integrated circuit device
JPH01113848A (en) Access control system