JPH0498435A - Shared memory controller for computer system - Google Patents

Shared memory controller for computer system

Info

Publication number
JPH0498435A
JPH0498435A JP21317490A JP21317490A JPH0498435A JP H0498435 A JPH0498435 A JP H0498435A JP 21317490 A JP21317490 A JP 21317490A JP 21317490 A JP21317490 A JP 21317490A JP H0498435 A JPH0498435 A JP H0498435A
Authority
JP
Japan
Prior art keywords
shared memory
signal
processor
pulse width
access
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
JP21317490A
Other languages
Japanese (ja)
Inventor
Shigeo Nanbu
南部 滋雄
Masanari Kaizuka
眞生 貝塚
Hisamichi Yanagawa
柳川 寿道
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.)
Toshiba Corp
Toshiba Electronic Device Solutions Corp
Original Assignee
Toshiba Corp
Toshiba Microelectronics 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 Toshiba Corp, Toshiba Microelectronics Corp filed Critical Toshiba Corp
Priority to JP21317490A priority Critical patent/JPH0498435A/en
Publication of JPH0498435A publication Critical patent/JPH0498435A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PURPOSE:To improve access speed to a shared memory by varying the access time to the shared memory while changing the pulse width of the read/write signal to the shared memory. CONSTITUTION:In a signal control part 11b, a pulse width selection signal PULW and a clock signal CLK finely adjusting the pulse width are applied from the outside, and the clock signal CLK can be changed within the prescribed frequency range. According to the processing speed of a dual port RAM 17 connected to this shared memory controller 11 and respective processors 14a and 14b, the pulse width of a write signal DPWR and a read signal DPRD to the dual port RAM17 is set to the optimum value. The pulse width of the write/read signal indicating the access processing time to the dual port RAM17 is adjusted to the slower access processing time. Thus, the waiting time of respective processors is almost eliminated, and the processing speed of the entire computer system is remarkably raised.

Description

【発明の詳細な説明】 [発明の目的〕 (産業上の利用分野) 本発明は一つの共有メモリを複数のプロセッサで共用す
る計算機システムに係わり、特に、各プロセッサの共有
メモリに対するアクセス動作を制御する計算機システム
の共有メモリ制御装置に関する。
[Detailed Description of the Invention] [Object of the Invention] (Industrial Application Field) The present invention relates to a computer system in which one shared memory is shared by a plurality of processors, and in particular, the present invention relates to a computer system in which one shared memory is shared by a plurality of processors. The present invention relates to a shared memory control device for a computer system.

(従来の技術) 例えば、関連した共通のデータを用いてそれぞれ個別の
プロセッサで情報処理する場合においては、共有メモリ
を設け、各プロセッサから必要に応じてその共有メモリ
をアクセスするようにしている。
(Prior Art) For example, when information is processed by individual processors using related common data, a shared memory is provided and each processor accesses the shared memory as necessary.

共有メモリを複数のプロセッサでアクセスする場合には
、各プロセッサから出力されたアクセス要求を共有メモ
リに取り次ぐとともにアクセス要求が競合した場合には
、各プロセッサのアクセス権を調整するための共有メモ
リ制御装置が必要になる。N3図は共有メモリ制御装置
が組込まれた計算機システムを示すブロック図である。
When shared memory is accessed by multiple processors, a shared memory control device is used to relay access requests output from each processor to the shared memory and to adjust the access rights of each processor in the event of conflicting access requests. is required. Diagram N3 is a block diagram showing a computer system incorporating a shared memory control device.

第1.第2のプロセッサla、lbはそれぞれアドレス
バス2a、2bおよびデータバス3a。
1st. The second processors la, lb have address buses 2a, 2b and data bus 3a, respectively.

3bを介して共有メモリ制御装置4に接続されている。It is connected to the shared memory control device 4 via 3b.

また、各プロセッサla、lbがら出力される書込信号
(WR)、読出信号(RD)、ロック信号(L OCK
)等の各制御信号が共有メモリ制御装M4へ入力され、
共有メモリ制御装置4がラヒジイ信号(BSYL、BS
YR)、割込信号(INTR)が各プロセッサla、l
bへ返信される。
In addition, the write signal (WR), read signal (RD), and lock signal (LOCK) output from each processor la and lb
) and the like are input to the shared memory control device M4,
The shared memory controller 4 sends the Lahiji signals (BSYL, BS
YR), interrupt signal (INTR) is sent to each processor la, l
Reply to b.

そして、共有メモリ制御装置4にアドレスバス5および
データバス6a、6bを介して共有メモリとしてのデュ
アルポートRAM7が接続されている。共有メモリ制御
装置4の出力端子から出力されたデュアルポートRAM
7に対する書込信号(DPWR)および読出信号(DP
RD)はデュアルポートRAM7の出力イネーブル端子
(OE)および書込イネーブル端子(WE)に入力され
るとともに各ゲート8.9a、9bを介してデュアルポ
ートRAM7のそれぞれのチップイネーブル端子(CE
I)へ印加される。また、アドレスバス5のバス・ハイ
・イネーブル信号(BHEL)はゲート9aに印加され
、アドレスバス5のアドレスAOはゲート9bに印加さ
れる。また、アドレスバス5の残りはデコーダ10へ入
力される。
A dual port RAM 7 as a shared memory is connected to the shared memory control device 4 via an address bus 5 and data buses 6a and 6b. Dual port RAM output from the output terminal of the shared memory control device 4
Write signal (DPWR) and read signal (DPWR) for
RD) is input to the output enable terminal (OE) and write enable terminal (WE) of the dual port RAM 7, and is also input to each chip enable terminal (CE) of the dual port RAM 7 via each gate 8.9a, 9b.
I). Further, the bus high enable signal (BHEL) of the address bus 5 is applied to the gate 9a, and the address AO of the address bus 5 is applied to the gate 9b. Further, the remainder of the address bus 5 is input to the decoder 10.

このデコーダ10には共有メモリ制御装置4から出力さ
れたアクセス要求信号(ACCESS>7)<印加され
ている。
An access request signal (ACCESS>7) outputted from the shared memory control device 4 is applied to the decoder 10.

このような共有メモリの制御装置4において、各プロセ
ッサla、lbから書込又は読出のアクセス要求が入力
すると、デコーダ10にアクセス要求信号を出力し、デ
ュアルポートRAM7を動作状態に制御し、アドレスお
よびデータを出力した状態で、書込信号(DPWR)又
は読出信号(DPRD)を出力する。すると、デュアル
ポートRAM7にデータが書込まれたりデュアルポー)
RAM7からデータが読出される。そして、デュアルポ
ートRAM7に対するアクセス結果はデータバス3a、
3b及びアドレスバス2a、2bを経由してアクセス要
求を出力したプロセッサla、lbに返信される。
In such a shared memory control device 4, when a write or read access request is input from each processor la, lb, an access request signal is output to the decoder 10, the dual port RAM 7 is controlled to be in an operating state, and the address and In the state in which data is output, a write signal (DPWR) or a read signal (DPRD) is output. Then, data is written to dual port RAM7 (dual port)
Data is read from RAM7. The access result to the dual port RAM 7 is the data bus 3a,
3b and address buses 2a and 2b to the processors la and lb that output the access request.

なお、一方のプロセッサのアクセス要求に対するアクセ
ス処理が終了してない時点で、他方のプロセッサからの
アクセス要求が発生すると、該当プロセッサに対してビ
ジィ信号を送出する。そして、先のアクセス処理が終了
した時点でビジィ信号を解除してレディ信号に変換する
Note that if an access request is generated from the other processor before the access processing for the access request from one processor is completed, a busy signal is sent to the corresponding processor. Then, when the previous access processing is completed, the busy signal is canceled and converted into a ready signal.

このような制御機能を有する共有メモリ制御装置を用い
ることによって、複数のプロセッサで一つの共有メモリ
を共用することか可能となる。
By using a shared memory control device having such a control function, it becomes possible for a plurality of processors to share one shared memory.

しかしながら、第3図に示すように構成された共有メモ
リ制御装置においてもまだ改良すべき次のような課題が
あった。
However, even in the shared memory control device configured as shown in FIG. 3, the following problems still need to be improved.

すなわち、計算機システム全体の処理速度を上昇させる
ためには、当然共有メモリとしてのデュアルポートRA
M7に対するアクセス処理時間の短縮か求められる。こ
のアクセス処理時間は■ 各プロセッサの処理速度の向
上 ■ 共有メモリ制御装置の処理速度の向上■ デュアル
ポートRAM自体の アクセス応答速度の向上 等に影響され、最終的に上記■〜■の各速度のうち最も
遅い速度で計算機システム全体の処理速度が定まる。し
たがって、上記■〜■の各速度を同程度に上昇させるの
か最も効率的に処理速度を上昇できる。上記■〜■の各
速度のうち、■は比較的処理速度の高いプロセッサが開
発されており、簡単に置き換えることができる。また、
■はデュアルポートRAMとして、第3図に示すように
、一般の複数のRAMと周辺回路とを組合わせて使用す
ることにより、比較的簡単に処理速度を向上できる。
In other words, in order to increase the processing speed of the entire computer system, it is natural to use dual port RA as shared memory.
It is desired to shorten the access processing time for M7. This access processing time is affected by ■ Improvements in the processing speed of each processor ■ Improvements in the processing speed of the shared memory control device ■ Improvements in the access response speed of the dual port RAM itself. The slowest of these determines the processing speed of the entire computer system. Therefore, the processing speed can be increased most efficiently by increasing each of the speeds (1) to (4) above to the same extent. Among the above-mentioned speeds (1) to (2), a processor with a relatively high processing speed has been developed and can be easily replaced. Also,
(2) is a dual-port RAM, and as shown in FIG. 3, processing speed can be relatively easily improved by using a combination of a plurality of general RAMs and peripheral circuits.

しかし、■の共有メモリ制御装置は、装置全体の小型軽
量化および低製造費化を図るために、一般に一つのIC
回路素子内に組込まれている。
However, in order to reduce the size and weight of the entire device and reduce manufacturing costs, the shared memory control device (2) generally uses a single IC.
embedded within the circuit element.

そして、このIC回路素子は既存のLSIやASIC(
特定用途向けIC)で構成されている。
This IC circuit element can be integrated into existing LSI or ASIC (
It consists of ICs for specific applications.

したがって、簡単に回路仕様を変更することは出来ない
Therefore, the circuit specifications cannot be easily changed.

よって、簡単に計算機システム全体の処理速度を上昇で
きない問題があった。
Therefore, there is a problem in that the processing speed of the entire computer system cannot be easily increased.

また、共有メモリ制御装置は各プロセッサから共有メモ
リに対するアクセス要求が出力されているか否かを一定
周期毎に検出するように構成されている。しかし、各プ
ロセッサから全く非同期でアクセス要求が出力される。
Further, the shared memory control device is configured to detect at regular intervals whether or not an access request to the shared memory is output from each processor. However, access requests are output from each processor completely asynchronously.

したがって、アクセス要求の有無をチエツクした直後に
アクセス要求が入力されると、このアクセス要求は次の
周期まで全く検出されないので、たとえその時点で共有
メモリに対するアクセス処理が実行されていなかったと
しても、はぼ1周期分アクセス要求が待たされることに
なる。
Therefore, if an access request is input immediately after checking the presence or absence of an access request, this access request will not be detected at all until the next cycle, even if no access processing is being executed to the shared memory at that time. The access request is made to wait for almost one period.

したがって、計算機システム全体の処理速度かさらに低
下する。
Therefore, the processing speed of the entire computer system is further reduced.

(発明が解決しようとする課311) このように従来の共有メモリ制御装置においては、簡単
に仕様変更ができないので、プロセッサおよび共有メモ
リが有する処理能力を最大限に発揮させることが出来な
かった。
(Problem 311 to be Solved by the Invention) As described above, in the conventional shared memory control device, the specifications cannot be easily changed, so that the processing capabilities of the processor and the shared memory cannot be maximized.

本発明はこのような事情に鑑みてなされたものであり、
共有メモリに対する読出・書込信号のパルス幅を外部か
ら可変可能にすることによって、共有メモリに対するア
クセス処理時間をプロセッサ及び共有メモリ自信のアク
セス応答速度に対応して設定可能となり、プロセッサ及
び共有メモリが有する処理能力を最大限に発揮させるこ
とができ、少ない費用で処理速度を大幅に上昇できる計
算機システムが得られる共有メモリ制御装置を提供する
ことを目的とする。
The present invention was made in view of these circumstances, and
By making the pulse width of the read/write signal for the shared memory variable externally, the access processing time for the shared memory can be set in accordance with the access response speed of the processor and the shared memory itself, and the processor and the shared memory are It is an object of the present invention to provide a shared memory control device that provides a computer system that can maximize its processing power and significantly increase processing speed at low cost.

[発明の構成] (課題を解決するための手段) 上記課題を解消するために本発明は、一つの共有メモリ
をアドレスバス及びデータバスを介して複数のプロセッ
サに接続した計算機システム内に組込まれ、各プロセッ
サから出力された共有メモリに対するアクセス要求を受
領して、共有メモリをアクセスすると共に、各プロセッ
サから出力されたアクセス要求が競合したとき共有メモ
リに対するアクセス権を調整する計算機システムの共有
メモリ制御装置において、 共有メモリに対する読出・書込信号のパルス幅を可変設
定するパルス幅可変設定手段と、共有メモリとデータバ
スおよびアドレスバスとの間に介挿され、各プロセッサ
から出力された書込データを一時ラッチしたのちに共有
メモリに書込むと共に、書込データのラッチ動作に応動
してレディ信号を書込データを送出したプロセッサへ返
iするデータラッチ手段と、アクセス権の調整処理を競
合が生じたタイミングで実行する非同期調整手段とを備
えたものである。
[Structure of the Invention] (Means for Solving the Problems) In order to solve the above problems, the present invention is incorporated into a computer system in which one shared memory is connected to a plurality of processors via an address bus and a data bus. , shared memory control for a computer system that receives access requests for shared memory output from each processor, accesses the shared memory, and adjusts access rights to the shared memory when access requests output from each processor conflict. In the device, a pulse width variable setting means for variably setting the pulse width of read/write signals for the shared memory, and a pulse width variable setting means inserted between the shared memory and the data bus and the address bus, and a pulse width variable setting means for variably setting the pulse width of the read/write signal to the shared memory, and a There is a conflict between the data latch means, which temporarily latches the data, writes it into the shared memory, and returns a ready signal to the processor that sent the write data in response to the write data latching operation, and the access right adjustment process. and an asynchronous adjustment means executed at the generated timing.

(作用) このように構成された計算機システムの共有メモリ制御
装置においては、共有メモリに対する続出・書込信号の
パルス幅を変更することによって、共有メモリに対する
アクセス時間を可変できる。したがって、このパルス幅
を共有メモリの応答速度から得られる最低時間に設定す
ることによって、共有メモリに対するアクセス速度を向
上できる。同様に各プロセッサの処理速度に対応したア
クセス時間を設定すればよい。
(Function) In the shared memory control device of the computer system configured as described above, the access time to the shared memory can be varied by changing the pulse width of the successive write/write signal to the shared memory. Therefore, by setting this pulse width to the minimum time obtained from the response speed of the shared memory, the access speed to the shared memory can be improved. Similarly, the access time may be set in accordance with the processing speed of each processor.

また、各プロセッサから出力された書込データはデータ
ラッチ手段にてラッチされると、即座に該当プロセッサ
に対してレディ信号が出力されるので、書込データを送
出したプロセッサは、書込データが実際に共有メモリに
書込まれたことを確認する前に、次の処理業務を開始で
きる。すなわち、書込終了を示すレディ信号の待ち時間
を短縮できる。
In addition, when the write data output from each processor is latched by the data latch means, a ready signal is immediately output to the corresponding processor, so the processor that sent the write data can check the write data. The next processing task can be started before confirming that it has actually been written to the shared memory. In other words, the waiting time for a ready signal indicating completion of writing can be reduced.

さらに、アクセス権の調整処理を競合が生じたタイミン
グで実行しているので、従来装置のように1周期分待つ
必要かない。
Furthermore, since the access right adjustment process is executed at the timing when a conflict occurs, there is no need to wait for one cycle as in conventional devices.

(実施例) 以下本発明の一実施例を図面を用いて説明する。(Example) An embodiment of the present invention will be described below with reference to the drawings.

第1図は実施例の共有メモリ制御装置の概略構成を示す
模式図である。この共有メモリ制御装置11は、大きく
別けてラッチ・セレクタ部11aと信号制御部11bと
で構成されている。これらは実際には1個のIC回路素
子内に組込まれている。そして、この共有メモリ11は
アドレスバス12a、12bおよびデータバス13a、
13bを介して第1.第2のプロセッサ14a、14b
に接続されている。また、別のアドレスバス15および
データバス16を介して共有メモリとしてのデュアルポ
ートRAM17に接続されている。
FIG. 1 is a schematic diagram showing a schematic configuration of a shared memory control device according to an embodiment. This shared memory control device 11 is roughly composed of a latch selector section 11a and a signal control section 11b. These are actually incorporated into one IC circuit element. This shared memory 11 includes address buses 12a, 12b, data bus 13a,
13b through the first. Second processor 14a, 14b
It is connected to the. It is also connected to a dual port RAM 17 as a shared memory via another address bus 15 and data bus 16.

第1.第2のプロセッサ14a、14bから入力された
16ビツトのアドレスはそれぞれアドレスセレクタ18
へ入力される。また、第1.第2のプロセッサ14a、
14bから入力されたバス・ハイ・イネーブル信号(B
HE)はアトセスセレクタ18に入力される。そして、
アドレスセレクタ18はいずれか一方から出力されたア
ドレスを選択してバス・ハイ・イネーブル信号(BHE
)と共にアドレスバス15を介してデュアルポートRA
M17へ送出する。
1st. The 16-bit addresses input from the second processors 14a and 14b are respectively input to the address selector 18.
is input to. Also, 1st. second processor 14a,
The bus high enable signal (B
HE) is input to the access selector 18. and,
The address selector 18 selects the address output from either one and outputs the bus high enable signal (BHE).
) via the address bus 15 with the dual port RA
Send to M17.

また、ラッチ・セレクタ部り1a内には、第1゜第2の
プロセッサ14a、14bにそれぞ対応する一対の書込
ラッチ回路19a、19bと、一対の読出ラッチ回路2
0a、20bと、データセレクタ21とが設けられてい
る。すなわち、第1゜第2のプロセッサ14a、14b
からデータバス13a、13bを介して入力された書込
データは書込ラッチ回路19a、19bに一旦ラッチさ
れたのちデータセレクタ21へ送出される。データセレ
ク、り21はいずれか一方から出力されたデータを選択
してデータバス16を介してデュアルポートRAM17
へ送出する。また、デュアルポー)RAM17からデー
タバス16を介して読出されたデータはデータセレクタ
21にていずれか一方のプロセッサか選択されて、選択
されたプロセッサ側の続出ラッチ回路20a、20bに
一旦ラッチされたのちデータバス13a、13bを介し
て選択された方のプロセッサ14a、14bへ送信され
る。
Furthermore, in the latch selector section 1a, there are a pair of write latch circuits 19a and 19b corresponding to the first and second processors 14a and 14b, respectively, and a pair of read latch circuits 2.
0a, 20b, and a data selector 21 are provided. That is, the first and second processors 14a, 14b
Write data input from the data buses 13a and 13b is once latched by the write latch circuits 19a and 19b, and then sent to the data selector 21. The data selector 21 selects the data output from either one and transfers it to the dual port RAM 17 via the data bus 16.
Send to. Further, the data read from the dual-port RAM 17 via the data bus 16 is selected by the data selector 21, and is once latched in the successive latch circuits 20a and 20b of the selected processor. It is then transmitted to the selected processor 14a, 14b via the data bus 13a, 13b.

このデータの書込過程において、各プロセッサ14a、
14bから入力されたデータが書込ラッチ回路19a、
19bにラッチされたタイミングで、該当プロセッサ1
4a、14bに対して書込終了を示すレディ信号を送出
する。よって、各プロセッサ14a、14bはこのレデ
ィ信号が入力されたタイミングで書込終了と判断して、
次の処理業務を開始できる状態に移行する。すなわち、
各プロセッサ14a、14bは実際にデータがデュアル
ポートRAMI 7に書込まれたことを確認する必要が
ない。
In this data writing process, each processor 14a,
The data input from 14b is sent to the write latch circuit 19a,
19b, the corresponding processor 1
A ready signal indicating completion of writing is sent to 4a and 14b. Therefore, each processor 14a, 14b determines that writing is completed at the timing when this ready signal is input, and
Move to a state where you can start the next processing task. That is,
Each processor 14a, 14b does not need to confirm that data has actually been written to the dual port RAMI 7.

また、第1.第2のプロセッサ14a、14bからこの
共有メモリ制御装置11の信号制御部11bに対して、
デュアルポートRAM17を指定した装置選択信号(D
PC5)、書込信号(WR)、読出信号(RD)、ロッ
ク信号(LOG)がそれぞれ専用の端子へ入力される。
Also, 1st. From the second processors 14a, 14b to the signal control unit 11b of the shared memory control device 11,
A device selection signal (D
PC5), a write signal (WR), a read signal (RD), and a lock signal (LOG) are input to dedicated terminals, respectively.

また、信号制御部11bからは、第1.第2のプロセッ
サ14a、14bに対して前述したとシイ信号(BUS
Y)を送出する。
Further, from the signal control unit 11b, the first. The above-mentioned signal (BUS) is transmitted to the second processors 14a and 14b.
Send Y).

また、共有メモリ制御装置11は信号制御部11bを介
してデュアルポートRAM17に対して書込信号(DP
WR)および読出信号(D P RD)を送出する。
The shared memory control device 11 also sends a write signal (DP) to the dual port RAM 17 via the signal control unit 11b.
WR) and a read signal (D P RD).

さらに、この信号制御部11 、bには外部からパルス
幅選択信号(PULW)およびパルス幅を微調整するた
めのクロック信号(CLK)が印加されている。そして
、この信号制御部11b内には、デュアルポートRAM
17に対する書込信号(DPWR)及び読出信号(DP
RD)のパルス幅としてそれぞれ2種類のパルス幅W 
w 、 W NおよびRw、RNが記録されている。そ
して、幅の広いパルス幅Ww 、 Rw 、はアクセス
応答速度が遅いデュアルポートRAMI 7に対応し、
幅の狭いパルス幅WN、RNはアクセス応答速度が早い
デュアルポートRAM17に対応する。そして、外部か
ら入力されるパルス幅選択信号(PULW)かH(1)
レベルの場合は、幅の広いパルス幅Wwが選択される。
Furthermore, a pulse width selection signal (PULW) and a clock signal (CLK) for finely adjusting the pulse width are applied to the signal control sections 11,b from the outside. In this signal control section 11b, there is a dual port RAM.
Write signal (DPWR) and read signal (DP
There are two types of pulse width W as the pulse width of RD).
w, W N and Rw, RN are recorded. The wide pulse widths Ww and Rw correspond to the dual port RAMI 7, which has a slow access response speed.
The narrow pulse widths WN and RN correspond to the dual port RAM 17 which has a fast access response speed. Then, whether the pulse width selection signal (PULW) input from the outside is H(1)
In the case of level, a wide pulse width Ww is selected.

また、パルス幅選択信号(PULW)がL(0)レベル
の場合は、幅の狭いパルス幅WNが選択される。なお、
各パルス幅Ww 、 Ws −Rw 、 RNは外部か
ら入力されるクロック信号(CLK)にて例えば10■
Sの範囲で微調整可能である。
Further, when the pulse width selection signal (PULW) is at L (0) level, a narrow pulse width WN is selected. In addition,
Each pulse width Ww, Ws-Rw, RN is determined by a clock signal (CLK) input from the outside, for example, 10 mm.
Fine adjustment is possible within the range of S.

上記各パルス幅Ww 、 WN 、 Rw 、 RNは
、例えば表1のように設定されている。
The above-mentioned pulse widths Ww, WN, Rw, and RN are set as shown in Table 1, for example.

表  1 なお、クロック信号(CLK)は各プロセッサ14a、
14bで使用されるクロックを分周器等で最適な値に分
周する事によって得られる。そしてこの実施例において
は、分周して8〜16MHzの周波散散範囲内で変更可
能である。
Table 1 Note that the clock signal (CLK) is transmitted to each processor 14a,
It is obtained by frequency-dividing the clock used in 14b to an optimal value using a frequency divider or the like. In this embodiment, the frequency can be divided and changed within the frequency dispersion range of 8 to 16 MHz.

すなわち、この共有メモリ制御装置11に接続されるデ
ュアルポー)RAMI 7および各プロセッサ14g、
14bの処理速度に応じて、デュアルポートRAM17
に対する書込信号(DPWR)および読出信号(DPR
D)のパルス幅を最適値に設定すればよい。
That is, the dual-port RAMI 7 and each processor 14g connected to this shared memory control device 11,
Dual port RAM 17 depending on the processing speed of 14b
Write signal (DPWR) and read signal (DPR) for
D) The pulse width may be set to an optimal value.

また、各プロセッサ14a、14bとデュアルポートR
AM17との間でアクセス処理時間に差がある場は、共
有メモリ制御装置11のデュアルポートRAM17に対
するアクセス処理時間を示す前記書込・読出信号のパル
ス幅を遅い方のアクセス処理時間に合わせる事により、
アクセス処理の信頼性を向上できる。
In addition, each processor 14a, 14b and dual port R
If there is a difference in access processing time between the dual port RAM 17 and the RAM 17, the pulse width of the write/read signal indicating the access processing time for the dual port RAM 17 of the shared memory control device 11 can be adjusted to match the slower access processing time. ,
The reliability of access processing can be improved.

次に、各プロセッサ14a、14bからデュアルポート
RAMI 7に対するアクセス要求が人力した場合の信
号制御部11bの動作を第2図のタイムチャートを用い
て説明する。
Next, the operation of the signal control section 11b when an access request to the dual port RAMI 7 is manually issued from each processor 14a, 14b will be explained using the time chart shown in FIG.

まず第1のプロセッサ14aからデュアルポー)RAM
17にデータを書込む場合は、アドレスかアドレス12
a  アドレスセレクタ18.アドレスバス15を介し
てデュアルポートRAM17に印加される。また、書込
データはデータバス13aを介して書込ラッチ回路19
aに一旦ラッチされたのちデータセレクタ21.データ
バス16を介してデュアルポートRAM17に印加され
る。そして、第1のプロセッサ14aから時刻t、にて
装置選択信号(CS I L)が入力され、時刻t2に
て書込信号(WRL)が入力される。
First, from the first processor 14a to the dual-port RAM
When writing data to address 17, write the address or address 12.
a Address selector 18. It is applied to the dual port RAM 17 via the address bus 15. Further, the write data is transmitted to the write latch circuit 19 via the data bus 13a.
Once latched in data selector 21.a. It is applied to the dual port RAM 17 via the data bus 16. Then, a device selection signal (CSI L) is inputted from the first processor 14a at time t, and a write signal (WRL) is inputted at time t2.

書込信号(WRL)入力に応動して、パルス幅Wを有す
る書込信号(DPWR)がデュアルポートRAM17へ
印加される。したがって、二〇書込信号(DPWR)の
継続期間(パルス幅W)内に書込データが指定されたア
ドレスに書込まれる。
In response to the write signal (WRL) input, a write signal (DPWR) having a pulse width W is applied to the dual port RAM 17. Therefore, write data is written to the designated address within the duration (pulse width W) of the 20 write signal (DPWR).

そして、書込信号(DPWR)が終了するタイミングで
第1のプロセッサ14aに対するビジィ信号(BSYL
)が解除される。また、第1のプロセッサ14aの書込
信号(WRL)か終了すると、この共有メモリ制御装置
11をビジィ状態にする。
Then, at the timing when the write signal (DPWR) ends, a busy signal (BSYL) is sent to the first processor 14a.
) is canceled. Further, when the write signal (WRL) of the first processor 14a is completed, this shared memory control device 11 is placed in a busy state.

すなわち、この共有メモリ制御装置11は外部からアク
セス要求が入力していない状態においては常時ビジィ状
態を維持する(ノーマリ・ウェイト)。
That is, this shared memory control device 11 always maintains a busy state (normally wait) when no access request is input from the outside.

次に、第2のプロセッサ14bが共有メモリ17のデー
タを読み出す場合には、アドレスがアドレス12b、ア
ドレスセレクタ18.アドレスバス15を介してデュア
ルポートRAM17に印加される。そして、第2のプロ
セッサ14bから時刻t3にて装置選択信号(CS I
 R)が入力され、時刻t4にて読出信号(RDR)が
入力される。読出信号(RD R)入力に応動して、パ
ルス幅Rを有する読出信号(DPRD)がデュアルポー
トRAMI 7へ印加される。したがって、この読出信
号(DPRD)の継続期間(パルス幅R)内にデータが
指定されたアドレスから読出される。
Next, when the second processor 14b reads data from the shared memory 17, the address is the address 12b, the address selector 18. It is applied to the dual port RAM 17 via the address bus 15. Then, at time t3, the second processor 14b sends a device selection signal (CSI
R) is input, and a read signal (RDR) is input at time t4. In response to the read signal (RDR) input, a read signal (DPRD) having a pulse width R is applied to the dual port RAMI 7. Therefore, data is read from the designated address within the duration (pulse width R) of this read signal (DPRD).

そして、読出されたデータは、データセレクタ21、読
出ラッチ回路2ob、データバス13bを介して第2の
プロセッサ14bへ入力される。
The read data is then input to the second processor 14b via the data selector 21, read latch circuit 2ob, and data bus 13b.

また、デュアルポートRAM17に対する書込信号(D
PWR)が終了するタイミングで第2のプロセッサ14
bに対するビジィ信号(B S YR)が解除される。
Also, a write signal (D
PWR) is completed, the second processor 14
The busy signal (B S YR) for b is released.

また、第2のプロセッサ14bの続出信号(RDR)が
終了すると、この共有メモリ制御装置11をビジィ状態
にする(ノーマリ・ウェイト)。
Furthermore, when the second processor 14b's successive signal (RDR) ends, the shared memory control device 11 is placed in a busy state (normally wait).

また、時刻t5で第2のプロセッサ14bからの書込信
号(WRR)が出力され、この書込処理が終了していな
い時刻t6にて第1のプロセッサ14gから読出信号(
RDL)が入力すると、競合状態となる。この場合、時
刻t5にてデュアルポートRAM17に対する書込信号
(DPWE)が出力され、この書込信号(DPWE)が
終了した時刻t7にて第2のプロセッサ14bに対する
ビジィ信号(BSYR)が解除されると共にデュアルポ
ートRAM17に対して読出信号(DPRD)が出力さ
れる。そして、この読出信号(DPRD)が終了した時
刻t8にて第1のプロセッサ14aに対するビジィ信号
(BSYL)が解除される。
Further, at time t5, the write signal (WRR) is output from the second processor 14b, and at time t6, when the write process has not yet been completed, the read signal (WRR) is output from the first processor 14g.
RDL) enters, a race condition occurs. In this case, the write signal (DPWE) for the dual port RAM 17 is output at time t5, and the busy signal (BSYR) for the second processor 14b is released at time t7 when this write signal (DPWE) ends. At the same time, a read signal (DPRD) is output to the dual port RAM 17. Then, at time t8 when this read signal (DPRD) ends, the busy signal (BSYL) for the first processor 14a is released.

このように、各プロセッサ14a、14bからデュアル
ポートRAM17に対する書込信号、読出信号で示され
るアクセス要求が入力すると、第2図に示すように、ア
クセス要求が生じた時点で、デュアルポートRAM17
に対して書込信号、読出信号を送出しているので、一定
周期毎に各プロセッサからのアクセス要求の有無を調べ
る従来装置に比較して、各プロセッサにとっては待ち時
間がほとんど無くなるので、計算機システム全体の処理
速度を大幅に上昇できる。
In this way, when an access request indicated by a write signal or a read signal to the dual port RAM 17 is input from each processor 14a, 14b, as shown in FIG.
Since write signals and read signals are sent to the computer system, there is almost no waiting time for each processor compared to conventional devices that check whether there is an access request from each processor at regular intervals. The overall processing speed can be significantly increased.

また、各プロセッサからのアクセス要求が競合した場合
においても、先に実行しているアクセス処理が終了する
タイミングで後からのアクセス要求に対するアクセス処
理を開始するので、後からアクセス要求を出力したプロ
セッサの待ち時間を最小限に短縮できる。
In addition, even if access requests from each processor conflict, the access processing for the later access request starts at the timing when the access processing being executed first ends, so the processor that outputs the access request later Waiting time can be reduced to a minimum.

[発明の効果] 以上説明したように、本発明の共有メモリ制御装置にお
いては、共有メモリに対する書込信号のパルス幅を外部
から任意の値に変更できるので、共有メモリおよび各プ
ロセッサに対応した最適アクセス処理速度を設定できる
。また、共有メモリに対する書込データを一旦ラッチし
て、ラッチされた時点で該当プロセッサに対してレディ
信号を出力しているので、プロセッサは共有メモリに対
する書込処理が完全に終了するまで待つ必要がない。さ
らに、各プロセッサから出力されたアクセス要求を、出
力されたタイミングで他のプロセッサとの競合の有無を
調べてその時点で調整を行って、即座に優先度の高いア
クセス要求に対するアクセス処理を実行する。したがっ
て、計算機システム全体の処理能率を大幅に向上できる
[Effects of the Invention] As explained above, in the shared memory control device of the present invention, the pulse width of the write signal to the shared memory can be externally changed to an arbitrary value, so that the pulse width of the write signal to the shared memory can be changed to an arbitrary value. Access processing speed can be set. In addition, the data written to the shared memory is latched once and a ready signal is output to the relevant processor at the moment it is latched, so the processor does not have to wait until the writing process to the shared memory is completely completed. do not have. Furthermore, the access requests output from each processor are checked to see if there is any conflict with other processors at the timing of the output, adjustments are made at that point, and access processing for high-priority access requests is immediately executed. . Therefore, the processing efficiency of the entire computer system can be significantly improved.

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

第1図は実施例の計算機システムの共有メモリ制御装置
の概略構成を示す模式図、第2図は同実施例装置の動作
を示すタイムチャート、第3図は従来の共有メモリ制御
装置を組込んだ計算機システム全体を示すブロック図で
ある。 11・・・共有メモリ制御装置、12a、12b。 15・・・アドレスバス、13a、13b、16・・・
データバス、14a・・・第1のプロセッサ、14b・
・・第2のプロセッサ、17・・デュアルポートRAM
。 19a、19b=−書込ラッチ回路、20a。 20b・・・読出ラッチ回路。
Fig. 1 is a schematic diagram showing the general configuration of the shared memory control device of the computer system of the embodiment, Fig. 2 is a time chart showing the operation of the same embodiment device, and Fig. 3 is a diagram showing the structure of the shared memory control device of the computer system of the embodiment. 1 is a block diagram showing the entire computer system. 11...Shared memory control device, 12a, 12b. 15...address bus, 13a, 13b, 16...
Data bus, 14a...first processor, 14b...
...Second processor, 17...Dual port RAM
. 19a, 19b=-write latch circuit, 20a. 20b...Read latch circuit.

Claims (1)

【特許請求の範囲】 一つの共有メモリをアドレスバス及びデータバスを介し
て複数のプロセッサに接続した計算機システム内に組込
まれ、前記各プロセッサから出力された前記共有メモリ
に対するアクセス要求を受領して、前記共有メモリをア
クセスすると共に、前記各プロセッサから出力されたア
クセス要求が競合したとき前記共有メモリに対するアク
セス権を調整する計算機システムの共有メモリ制御装置
において、 前記共有メモリに対する読出・書込信号のパルス幅を可
変設定するパルス幅可変設定手段と、前記共有メモリと
前記データバスおよびアドレスバスとの間に介挿され、
前記各プロセッサから出力された書込データを一時ラッ
チしたのちに前記共有メモリに書込むと共に、前記書込
データのラッチ動作に応動してレディ信号を書込データ
を送出したプロセッサへ返信するデータラッチ手段と、
前記アクセス権の調整処理を競合が生じたタイミングで
実行する非同期調整手段とを備えた計算機システムの共
有メモリ制御装置。
[Scope of Claims] A computer system that is incorporated in a computer system in which one shared memory is connected to a plurality of processors via an address bus and a data bus, and receives an access request for the shared memory output from each of the processors, A shared memory control device for a computer system that accesses the shared memory and adjusts access rights to the shared memory when access requests output from the respective processors conflict, comprising: pulses of read/write signals to the shared memory; pulse width variable setting means for variably setting the width; interposed between the shared memory and the data bus and the address bus;
A data latch that temporarily latches the write data output from each processor and then writes it into the shared memory, and in response to the latching operation of the write data, returns a ready signal to the processor that sent the write data. means and
A shared memory control device for a computer system, comprising: an asynchronous adjustment unit that executes the access right adjustment processing at a timing when a conflict occurs.
JP21317490A 1990-08-10 1990-08-10 Shared memory controller for computer system Pending JPH0498435A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21317490A JPH0498435A (en) 1990-08-10 1990-08-10 Shared memory controller for computer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21317490A JPH0498435A (en) 1990-08-10 1990-08-10 Shared memory controller for computer system

Publications (1)

Publication Number Publication Date
JPH0498435A true JPH0498435A (en) 1992-03-31

Family

ID=16634774

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21317490A Pending JPH0498435A (en) 1990-08-10 1990-08-10 Shared memory controller for computer system

Country Status (1)

Country Link
JP (1) JPH0498435A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0788054A2 (en) * 1996-01-31 1997-08-06 Kabushiki Kaisha Toshiba Memory controller and memory control system
JP2008117001A (en) * 2006-10-31 2008-05-22 Matsushita Electric Works Ltd Shared memory interface

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62203249A (en) * 1986-03-03 1987-09-07 Fujitsu Ltd Storage device
JPH0267655A (en) * 1988-09-01 1990-03-07 Mitsubishi Electric Corp Memory control circuit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62203249A (en) * 1986-03-03 1987-09-07 Fujitsu Ltd Storage device
JPH0267655A (en) * 1988-09-01 1990-03-07 Mitsubishi Electric Corp Memory control circuit

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0788054A2 (en) * 1996-01-31 1997-08-06 Kabushiki Kaisha Toshiba Memory controller and memory control system
EP0788054A3 (en) * 1996-01-31 2002-05-15 Kabushiki Kaisha Toshiba Memory controller and memory control system
JP2008117001A (en) * 2006-10-31 2008-05-22 Matsushita Electric Works Ltd Shared memory interface

Similar Documents

Publication Publication Date Title
US5463755A (en) High-performance, multi-bank global memory card for multiprocessor systems
US5359717A (en) Microprocessor arranged to access a non-multiplexed interface or a multiplexed peripheral interface
CA1304523C (en) Computer bus having page mode memory access
US20020194448A1 (en) Memory controller with interacting state machines
EP0242879B1 (en) Data processor with wait control allowing high speed access
JP3039557B2 (en) Storage device
US7062588B2 (en) Data processing device accessing a memory in response to a request made by an external bus master
US5748203A (en) Computer system architecture that incorporates display memory into system memory
JPH0498435A (en) Shared memory controller for computer system
US5446847A (en) Programmable system bus priority network
EP1156421B1 (en) CPU system with high-speed peripheral LSI circuit
JPH0343804A (en) Sequence controller
JP3606852B2 (en) Bus control system
JPH09311812A (en) Microcomputer
EP0818008B1 (en) Dynamic ram in a microprocessor system
JP2962431B2 (en) Programmable controller
JP2882202B2 (en) Multi-port access control circuit
KR100233100B1 (en) Time division accessing data communicaton device in multiple processor
JP2722908B2 (en) Single chip microcomputer
JPH0457145A (en) Multiprocessor system
JPH0142017B2 (en)
JPH11306076A (en) Common memory control device
JPH03191446A (en) Access request arbitration circuit
JPH02280244A (en) Memory control circuit
JPS61275954A (en) Memory access control system