[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

JPH0962640A - Access control method for shared memory - Google Patents

Access control method for shared memory

Info

Publication number
JPH0962640A
JPH0962640A JP7233531A JP23353195A JPH0962640A JP H0962640 A JPH0962640 A JP H0962640A JP 7233531 A JP7233531 A JP 7233531A JP 23353195 A JP23353195 A JP 23353195A JP H0962640 A JPH0962640 A JP H0962640A
Authority
JP
Japan
Prior art keywords
shared memory
signal
processor
circuit
busy
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
JP7233531A
Other languages
Japanese (ja)
Inventor
Tsutomu Fukuda
力 福田
Takumi Washisawa
工 鷲沢
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric 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 Yaskawa Electric Corp filed Critical Yaskawa Electric Corp
Priority to JP7233531A priority Critical patent/JPH0962640A/en
Publication of JPH0962640A publication Critical patent/JPH0962640A/en
Pending legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide the method which efficiently use processors by eliminating the idle time of a bus cycle as to a system which performs data transfer between the processors through a shared memory. SOLUTION: This method is equipped with a shared memory circuit 102 which has the shared memory 103, a port arbitration process part 104, and a ready process part 105 outputting a BUSY signal 202, a BUSY control circuit 106 which detects the BUSY signal and an acquisition reservation interruption signal 203 from a processor 101 and outputs a/CS reservation signal 206, and an OR circuit 107 which ORs a /CS signal and the /CS reservation signal and outputs the result as a /CS signal to the shared memory 103. When the processor 101 receives an interruption pulse signal 201 as the result of access to the shared memory circuit 102, the state of access to the shared memory 102 is maintained if the BUSY signal from the shared memory circuit 102 is Low, but when the signal is High, the state of access to the circuit is interrupted and an acquisition reservation interruption signal is sent out to the BUSY control circuit 106.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、複数のCPUが共通の
メモリを使用するシステム、特にマルチプロセッサシス
テムにおける共有メモリのバスアクセス方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system in which a plurality of CPUs use a common memory, and more particularly to a shared memory bus access method in a multiprocessor system.

【0002】[0002]

【従来の技術】従来、マルチプロセッサシステムの共有
メモリのアクセス方法は、先着ポート側のプロセッサが
アクセスを行っている場合、ポートアービトレーション
機能が働いて後着ポート側のプロセッサは共有メモリへ
のアクセス権を獲得できず、共有メモリが開放されるま
でウェイト状態となる。すなわち、共有メモリ回路のレ
ディ機能部が出すBUSY信号により、先着ポート側の
プロセッサが処理を終えるまで後着ポート側のプロセッ
サは共有メモリに対するアクセスサイクルをウェイト状
態にしていた。図3はこの様子を説明する図で、共有メ
モリ獲得要求から獲得完了までのタイムチャートであ
る。まず、プロセッサが共有メモリに対してアクセスを
要求すると、共有メモリ回路102はアンサバック信号
である割り込みパルス信号201を出力する。次に、B
USY信号202を検査し、共有メモリは他プロセッサ
がまだ使用中であることを示すBUSY状態(Hレベ
ル)である場合プロセッサはウェイト状態となり、共有
メモリをアクセスできない間は遊休状態に入る。BUS
Y信号202がLレベルになるとプロセッサは活性し、
共有メモリのアクセスを開始する。
2. Description of the Related Art Conventionally, in a shared memory access method of a multiprocessor system, when a processor on a first-arrival port side is accessing, a port arbitration function works and a processor on a second-arrival port side has an access right to the shared memory. Cannot be acquired, and the wait state remains until the shared memory is released. That is, the BUSY signal issued by the ready function unit of the shared memory circuit causes the processor on the last-arrival port side to wait the access cycle to the shared memory until the processor on the first-arrival port side finishes processing. FIG. 3 is a diagram for explaining this situation, and is a time chart from the shared memory acquisition request to the acquisition completion. First, when the processor requests access to the shared memory, the shared memory circuit 102 outputs an interrupt pulse signal 201 which is an answerback signal. Then B
The USY signal 202 is checked, and if the shared memory is in the BUSY state (H level) indicating that another processor is still in use, the processor enters the wait state, and enters the idle state while the shared memory cannot be accessed. BUS
When the Y signal 202 becomes L level, the processor is activated,
Start shared memory access.

【0003】[0003]

【発明が解決しようとする課題】従来技術では、前述の
ようにプロセッサがウェイト状態にある間は何の処理も
行うことができない遊休時間となっていた。特に、高速
処理を要求されるコントローラ・システムにおいて、先
着ポート側のプロセッサが大量のデータ転送を行ってい
る場合、前記遊休時間が長くなると後着側のプロセッサ
の処理に影響を与えるという問題点があった。そこで、
本発明では、このバスサイクルの前記遊休時間をなく
し、メモリバスを有効に使用してプロセッサを効率よく
使用することを目的とする。
In the prior art, as described above, there was an idle time during which no processing could be performed while the processor was in the wait state. In particular, in a controller system that requires high-speed processing, when the processor on the first-arrival port side is transferring a large amount of data, there is a problem that if the idle time becomes long, the processing on the second-arrival processor is affected. there were. Therefore,
An object of the present invention is to eliminate the idle time of the bus cycle and effectively use the memory bus to efficiently use the processor.

【0004】[0004]

【問題を解決するための手段】上記課題を解決するた
め、本発明では、共有メモリ103と、ポートのアクセ
ス権を与えるポートアービトレーション処理部104
と、プロセッサをウェイト状態にさせるBUSY信号2
02を出力するレディ処理部105とを有する共有メモ
リ回路102と、BUSY信号202とプロセッサ10
1からの獲得予約割込信号203を検出して/CS予約
信号206を出力するBUSY制御回路106と、/C
S信号(チップセレクト信号)と前記/CS予約信号2
06との論理和を演算して共有メモリ回路102に/C
S信号として出力するOR回路107とを備え、プロセ
ッサ101が共有メモリ回路102にアクセスした結果
のアンサバック信号である割込パルス信号201を受信
したとき、共有メモリ回路102からのBUSY信号2
02がLowであれば、プロセッサ101の共有メモリ
回路102へのアクセス状態を継続させ、BUSY信号
202がHighであれば、プロセッサ101の共有メ
モリ回路102へのアクセス状態を中断させて、獲得予
約割込信号203をBUSY制御回路106に送出し、
前記BUSY制御回路106は前記OR回路を介して/
CS予約信号206を前記共有メモリ回路102に送出
することにより、プロセッサ101を共有メモリ103
に対してアクセスの予約状態にし、前記予約状態の間、
プロセッサ101は非共有メモリ108を使用して入出
力処理を実行するものである。
In order to solve the above-mentioned problems, according to the present invention, the shared memory 103 and the port arbitration processing unit 104 which gives the access right to the port are provided.
And a BUSY signal 2 that puts the processor in the wait state
Shared memory circuit 102 having ready processing section 105 for outputting 02, BUSY signal 202 and processor 10
A BUSY control circuit 106 which detects the acquisition reservation interrupt signal 203 from the 1 and outputs a / CS reservation signal 206;
S signal (chip select signal) and the / CS reservation signal 2
06 and the shared memory circuit 102 with / C
When the processor 101 receives an interrupt pulse signal 201 which is an answerback signal resulting from access to the shared memory circuit 102, the BUSY signal 2 from the shared memory circuit 102 is provided.
If 02 is Low, the access state to the shared memory circuit 102 of the processor 101 is continued, and if the BUSY signal 202 is High, the access state to the shared memory circuit 102 of the processor 101 is interrupted and the acquisition reservation allocation is performed. Send the embedded signal 203 to the BUSY control circuit 106,
The BUSY control circuit 106 is connected via the OR circuit
By sending the CS reservation signal 206 to the shared memory circuit 102, the processor 101 is made to operate in the shared memory 103.
Access to the reserved state, and during the reserved state,
The processor 101 uses the non-shared memory 108 to execute input / output processing.

【0005】[0005]

【作用】上記手段により、共有メモリアクセス時に後着
ポートのプロセッサはBUSY選択機能によりバスサイ
クルをウェイト状態にさせておくことなく、メモリバス
を有効に使用することができる。
According to the above means, the processor of the late arrival port can effectively use the memory bus at the time of accessing the shared memory without keeping the bus cycle in the wait state by the BUSY selection function.

【0006】[0006]

【実施例】以下、本発明の実施例を図に基づいて説明す
る。図1は本発明の実施例で、図において、100はマ
ルチプロセッサシステムにおける第1のプロセッサシス
テム、300はマルチプロセッサシステムにおける第2
のプロセッサシステム、101はプロセッサ(CP
U)、102は共有メモリ回路、103は共有メモリ、
104はポートアービトレーション処理部、105はレ
ディ処理部、106はBUSY制御回路、107はOR
回路、108は非共有メモリ(RAM)である。プロセ
ッサ101が共有メモリ回路102にアクセスしたと
き、共有メモリ回路102からアンサバック信号として
割込パルス信号201を受信するが、共有メモリ103
が既に他プロセッサに占有されている場合、プロセッサ
101が共有メモリ回路102に対してアクセスを待機
する方法について説明する。プロセッサ101(後着プ
ロセッサ)が共有メモリ回路102にアクセスを行う
と、共有メモリ103の使用状態を判断するポートアー
ビトレーション処理部104およびレディ処理部105
が働き、他プロセッサによる共有メモリ103の使用状
態を示すBUSY信号202を後着プロセッサ101に
出力する。プロセッサ101が割込パルス信号201を
受信したとき、BUSY信号202がHレベルのとき
は、共有メモリ103が他のプロセッサに占有されてB
USY状態であるため、獲得予約割込信号203をBU
SY制御回路106とOR回路107を介して共有メモ
リ回路102に出力し、アクセス状態の維持を継続す
る。このようにして、後着プロセッサ101は共有メモ
リ103に対してアクセス要求を継続して出力し、共有
メモリが空くのを待つことになる。プロセッサ101は
この間に非共有メモリ108をアクセスする等外部との
入出力処理を継続実行する。その後、他プロセッサが共
有メモリ103へのアクセスを終了するとBUSY信号
202がLowレベルになり、獲得完了割込信号204
を検出すると、前記獲得予約割込信号203を解除(L
owレベルにする)し、共有メモリ回路102へのアク
セス処理を実行する。図2は、本発明による共有メモリ
獲得要求から獲得完了までのタイムチャートである。ま
ず、後着プロセッサ(図1の例ではプロセッサシステム
100を構成するプロセッサ101)が共有メモリ回路
102に対してアクセスすると、共有メモリ回路102
はそのアンサバックとして割込パルス信号201を後着
プロセッサに対して出力する。次に、BUSY信号20
2を検査し、共有メモリは先着プロセッサがまだ使用中
であることを示すBUSY状態(Hレベル)である場
合、先着プロセッサは共有メモリを使用せず、獲得予約
割込信号203をHレベルにし、共有メモリをアクセス
できない間、非共有メモリをアクセスする等外部との入
出力処理を継続実行する。獲得完了割込信号204を検
出すると、前記獲得予約割込信号203をLowレベル
にした後、獲得要求時実行しなかった共有メモリのアク
セス処理を開始する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 shows an embodiment of the present invention, in which 100 is a first processor system in a multiprocessor system and 300 is a second processor system in the multiprocessor system.
Processor system, 101 is a processor (CP
U), 102 is a shared memory circuit, 103 is a shared memory,
104 is a port arbitration processing unit, 105 is a ready processing unit, 106 is a BUSY control circuit, and 107 is an OR.
The circuit, 108 is a non-shared memory (RAM). When the processor 101 accesses the shared memory circuit 102, the interrupt pulse signal 201 is received from the shared memory circuit 102 as an answerback signal.
A method in which the processor 101 waits for an access to the shared memory circuit 102 when is already occupied by another processor will be described. When the processor 101 (late arrival processor) accesses the shared memory circuit 102, the port arbitration processing unit 104 and the ready processing unit 105 that determine the usage state of the shared memory 103.
And outputs a BUSY signal 202 indicating the usage state of the shared memory 103 by the other processor to the last-arriving processor 101. When the processor 101 receives the interrupt pulse signal 201 and the BUSY signal 202 is at the H level, the shared memory 103 is occupied by another processor and B
Since it is in the USY state, the acquisition reservation interrupt signal 203 is BU
It outputs to the shared memory circuit 102 via the SY control circuit 106 and the OR circuit 107, and continues to maintain the access state. In this way, the late arrival processor 101 continuously outputs an access request to the shared memory 103 and waits for the shared memory to become empty. During this period, the processor 101 continuously executes input / output processing with the outside, such as accessing the non-shared memory 108. After that, when the other processor finishes the access to the shared memory 103, the BUSY signal 202 becomes Low level, and the acquisition completion interrupt signal 204
Is detected, the acquisition reservation interrupt signal 203 is released (L
Then, the access processing to the shared memory circuit 102 is executed. FIG. 2 is a time chart from a shared memory acquisition request to acquisition completion according to the present invention. First, when the last-arriving processor (the processor 101 configuring the processor system 100 in the example of FIG. 1) accesses the shared memory circuit 102, the shared memory circuit 102
Outputs an interrupt pulse signal 201 as an answerback to the late arrival processor. Next, the BUSY signal 20
If the shared memory is in a BUSY state (H level) indicating that the first arrival processor is still in use, the first arrival processor does not use the shared memory and sets the acquisition reservation interrupt signal 203 to the H level, While the shared memory cannot be accessed, I / O processing with the outside such as accessing the non-shared memory is continuously executed. When the acquisition completion interrupt signal 204 is detected, the acquisition reservation interrupt signal 203 is set to the low level, and then the access processing of the shared memory not executed at the acquisition request is started.

【0007】[0007]

【発明の効果】以上説明したように,本発明によれば、
共有メモリへのアクセス時に後着ポートのプロセッサの
バスサイクルをウェイト状態にすることなくメモリバス
を有効に使用でき、コントローラ・システムの処理の高
速化を得ることができる。
As described above, according to the present invention,
When accessing the shared memory, the memory bus can be effectively used without putting the bus cycle of the processor of the last arrival port in the wait state, and the processing speed of the controller system can be increased.

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

【図1】 本発明の具体的実施例を示すブロック図FIG. 1 is a block diagram showing a specific embodiment of the present invention.

【図2】 本発明のメモリアクセスのタイムチャートFIG. 2 is a time chart of memory access according to the present invention.

【図3】 従来技術のメモリアクセスのタイムチャートFIG. 3 is a time chart of memory access according to the related art.

【符号の説明】[Explanation of symbols]

100 第1のプロセッサシステム 101 プロセッサ(CPU) 102 共有メモリ回路 103 共有メモリ 104 ポートアービトレーション処理部 105 レディ処理部 106 BUSY制御回路 107 OR回路 108 非共有メモリ 300 第2のプロセッサシステム 100 first processor system 101 processor (CPU) 102 shared memory circuit 103 shared memory 104 port arbitration processing unit 105 ready processing unit 106 BUSY control circuit 107 OR circuit 108 non-shared memory 300 second processor system

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】共有メモリを介してプロセッサ間のデータ
転送を行うマルチプロセッサシステムの共有メモリのア
クセス制御方法において、 共有メモリ103と、ポートのアクセス権を与えるポー
トアービトレーション処理部104と、プロセッサをウ
ェイト状態にさせるBUSY信号202を出力するレデ
ィ処理部105とを有する共有メモリ回路102と、 BUSY信号202とプロセッサ101からの獲得予約
割込信号203を検出して/CS予約信号206を出力
するBUSY制御回路106と、 /CS信号と前記/CS予約信号206との論理和を演
算して共有メモリ回路102に/CS信号として出力す
るOR回路107とを備え、 プロセッサ101が共有メモリ回路102にアクセスし
た結果のアンサバック信号である割込パルス信号201
を受信したとき、共有メモリ回路102からのBUSY
信号202がLowであれば、プロセッサ101の共有
メモリ回路102へのアクセス状態を継続させ、 BUSY信号202がHighであれば、プロセッサ1
01の共有メモリ回路102へのアクセス状態を中断さ
せて、獲得予約割込信号203をBUSY制御回路10
6に送出し、前記BUSY制御回路106は前記OR回
路を介して/CS予約信号206を前記共有メモリ回路
102に送出することにより、プロセッサ101を共有
メモリ103に対してアクセスの予約状態にし、 前記予約状態の間、プロセッサ101は非共有メモリ1
08を使用して入出力処理を実行することを特徴とする
共有メモリのアクセス制御方法。
1. A shared memory access control method for a multiprocessor system for performing data transfer between processors via a shared memory, comprising: a shared memory 103; a port arbitration processing unit 104 for giving access right to a port; A shared memory circuit 102 having a ready processing unit 105 for outputting a BUSY signal 202 to bring it into a state, and a BUSY control for detecting a BUSY signal 202 and an acquisition reservation interrupt signal 203 from the processor 101 and outputting a / CS reservation signal 206. A circuit 106 and an OR circuit 107 for calculating a logical sum of the / CS signal and the / CS reservation signal 206 and outputting it to the shared memory circuit 102 as a / CS signal are provided, and the processor 101 accesses the shared memory circuit 102. The interrupt answer that is the resulting answerback signal Ruth signal 201
BUSY from the shared memory circuit 102 when
If the signal 202 is low, the processor 101 continues to access the shared memory circuit 102. If the BUSY signal 202 is high, the processor 1
01, the access state to the shared memory circuit 102 is interrupted, and the acquisition reservation interrupt signal 203 is sent to the BUSY control circuit 10.
6, and the BUSY control circuit 106 sends a / CS reservation signal 206 to the shared memory circuit 102 via the OR circuit to place the processor 101 in the reserved state for access to the shared memory 103. During the reserved state, the processor 101 uses the non-shared memory 1
A method for controlling access to a shared memory, characterized in that input / output processing is executed using 08.
JP7233531A 1995-08-18 1995-08-18 Access control method for shared memory Pending JPH0962640A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7233531A JPH0962640A (en) 1995-08-18 1995-08-18 Access control method for shared memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7233531A JPH0962640A (en) 1995-08-18 1995-08-18 Access control method for shared memory

Publications (1)

Publication Number Publication Date
JPH0962640A true JPH0962640A (en) 1997-03-07

Family

ID=16956511

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7233531A Pending JPH0962640A (en) 1995-08-18 1995-08-18 Access control method for shared memory

Country Status (1)

Country Link
JP (1) JPH0962640A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009064340A (en) * 2007-09-07 2009-03-26 Murata Mach Ltd Data transfer system
JPWO2007097006A1 (en) * 2006-02-24 2009-07-09 富士通株式会社 Packet transmission control apparatus and method
JP2016201100A (en) * 2015-04-13 2016-12-01 エルエス産電株式会社Lsis Co., Ltd. Access controlling method of dual port memory system
CN110010172A (en) * 2014-03-14 2019-07-12 东芝存储器株式会社 Semiconductor storage
CN117407356A (en) * 2023-12-14 2024-01-16 芯原科技(上海)有限公司 Inter-core communication method and device based on shared memory, storage medium and terminal

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2007097006A1 (en) * 2006-02-24 2009-07-09 富士通株式会社 Packet transmission control apparatus and method
US8090915B2 (en) 2006-02-24 2012-01-03 Fujitsu Limited Packet transmission control apparatus and method
JP4856695B2 (en) * 2006-02-24 2012-01-18 富士通株式会社 Data transfer device, data transfer system, and data transfer device control method
JP2009064340A (en) * 2007-09-07 2009-03-26 Murata Mach Ltd Data transfer system
CN110010172A (en) * 2014-03-14 2019-07-12 东芝存储器株式会社 Semiconductor storage
US11740794B2 (en) 2014-03-14 2023-08-29 Kioxia Corporation Semiconductor memory device including a control circuit and at least two memory cell arrays
CN110010172B (en) * 2014-03-14 2024-01-26 铠侠股份有限公司 Semiconductor memory device with a memory cell having a memory cell with a memory cell having a memory cell
JP2016201100A (en) * 2015-04-13 2016-12-01 エルエス産電株式会社Lsis Co., Ltd. Access controlling method of dual port memory system
US9766821B2 (en) 2015-04-13 2017-09-19 Lsis Co., Ltd. Access controlling method of dual port memory system
CN117407356A (en) * 2023-12-14 2024-01-16 芯原科技(上海)有限公司 Inter-core communication method and device based on shared memory, storage medium and terminal
CN117407356B (en) * 2023-12-14 2024-04-16 芯原科技(上海)有限公司 Inter-core communication method and device based on shared memory, storage medium and terminal

Similar Documents

Publication Publication Date Title
US5257356A (en) Method of reducing wasted bus bandwidth due to slow responding slaves in a multiprocessor computer system
US6282598B1 (en) PCI bus system wherein target latency information are transmitted along with a retry request
US5590299A (en) Multiprocessor system bus protocol for optimized accessing of interleaved storage modules
JPH09190406A (en) Direct memory access controller and transmission system using the same
JPH0962640A (en) Access control method for shared memory
JP2607073B2 (en) Arithmetic processing unit
JPH10320348A (en) Method and device for enabling cache streaming
JPS63286949A (en) Bus control system
JPH0830549A (en) Bus control device
JPH0666060B2 (en) Bus priority control method
KR100243868B1 (en) Arbiter logic in main computer system
JP2836591B2 (en) Inter-processor bus transmission method and inter-processor bus transmission system
JPH0156420B2 (en)
JPH1139266A (en) Multiprocessor device
JP3365419B2 (en) Bus arbitration method
JPH01316851A (en) Channel control system
JPH06250969A (en) Bus control method in multiprocessor system
JPS6373453A (en) Controlling system for common bus
JPH07334455A (en) Data transferring method through bus
JPH0281254A (en) Multi-processor controller
JPH09274601A (en) Bus control circuit
JPH08249266A (en) Data transfer circuit
JP2001331442A (en) System bus contention controller and system bus contention control system used for the same
JPH02224048A (en) Information processor
JPH0991246A (en) Bus control device and method