JPH0764849A - Shared memory controller for processor - Google Patents
Shared memory controller for processorInfo
- Publication number
- JPH0764849A JPH0764849A JP21326093A JP21326093A JPH0764849A JP H0764849 A JPH0764849 A JP H0764849A JP 21326093 A JP21326093 A JP 21326093A JP 21326093 A JP21326093 A JP 21326093A JP H0764849 A JPH0764849 A JP H0764849A
- Authority
- JP
- Japan
- Prior art keywords
- shared memory
- mpu
- control device
- mpus
- memory control
- 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.)
- Withdrawn
Links
Landscapes
- Multi Processors (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明はプロセッサの共有メモリ
制御装置に関し、特に複数のマイクロプロセッサユニッ
ト(MPU)から共有メモリにアクセスする際に、共有
メモリの使用優先順位を制御することによって、効率的
なメモリの共用化を可能としたプロセッサの共有メモリ
制御装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a shared memory control device for a processor, and more particularly, to efficiently use the shared memory by controlling the use priority of the shared memory when accessing the shared memory from a plurality of microprocessor units (MPUs). The present invention relates to a shared memory control device of a processor capable of sharing various memories.
【0002】[0002]
【従来の技術】一般に複数のMPUが同一の資源である
共有メモリ(例えばデュアルポートRAM)において、
少なくとも書込み段階においてMPU2,3が同時に同
一アドレスにアクセスした場合の競合を避けるために各
MPUに適当な優先度を与えて共有メモリの使用割当を
行う、いわゆるアービトレーション(arbitrat
ion)が行われる。一方複数のMPUに使用優先権を
与える手法として先着優先方式と優先度の高いMPUに
使用権を優先して与える固定優先方式とがある。先着優
先方式では先着のMPUが共有メモリを占有して他のM
PUは待機信号により待ち受け状態になる。2. Description of the Related Art Generally, in a shared memory (for example, dual port RAM) in which a plurality of MPUs are the same resource,
In order to avoid contention when the MPUs 2 and 3 simultaneously access the same address at least in the write stage, each MPU is given an appropriate priority and shared memory is allocated for use, so-called arbitration.
Ion) is performed. On the other hand, as a method of giving a usage priority right to a plurality of MPUs, there are a first-come-first-served method and a fixed priority method in which a usage right is given priority to an MPU having a high priority. In the first-come-first-served system, the first-arrival MPU occupies the shared memory and other M
The PU enters the standby state by the standby signal.
【0003】従来の先着優先方式を採用した共有メモリ
制御装置としては、図2に示すように、2つのMPU
2,3内に待機回路8,9を備えており、先着のMPU
が共有メモリ制御装置11を介して共有メモリ4を使用
する。共有メモリ制御装置11は後述するチップセレク
ト回路5,6と、ビジイ発生回路7とを備えている。こ
の従来例の動作はMPU2が使用要求信号6Aをチップ
セレクト回路6に出力すると、共有メモリ4を占有して
少なくとも共有メモリに対して書込み動作を開始する。
一方共有メモリ制御装置11に備えられたビジイ発生回
路7は共有メモリ4使用中のビジイ信号7AをMPU3
の待機回路8に送り、MPU3をMPU2の書込みが終
了するまで待機させる。また、逆にMPU3が使用要求
信号5Aをチップセレクト回路5に送ると、MPU2に
ビジイ信号7Bを送り待機させ終了した後に共有メモリ
4を占有して書込み動作等を行っていた。また、デュア
ルポートRAMを用いた場合には、読み出し動作は両方
のMPUが同時アクセス可能である。しかし一方の書込
み動作が終了して待機信号が解除されて直ちに他のMP
Uが書き込みを開始すると、読出しデータが途中で変化
する可能性があるので、待機信号リセット後所定時間を
経過した後に出力データの読出しを行う必要があった。As shown in FIG. 2, a shared memory control device adopting the conventional first-come-first-served system has two MPUs.
Standby circuits 8 and 9 are provided in 2 and 3, and the first-arrival MPU
Uses the shared memory 4 via the shared memory control device 11. The shared memory control device 11 includes chip select circuits 5 and 6 and a busy generation circuit 7, which will be described later. In the operation of this conventional example, when the MPU 2 outputs the use request signal 6A to the chip select circuit 6, the shared memory 4 is occupied and at least the write operation to the shared memory is started.
On the other hand, the busy generation circuit 7 provided in the shared memory control device 11 sends the busy signal 7A during use of the shared memory 4 to the MPU3.
And waits until the writing of MPU2 is completed. On the other hand, when the MPU 3 sends the use request signal 5A to the chip select circuit 5, the busy signal 7B is sent to the MPU 2 to wait, and then the shared memory 4 is occupied to perform the write operation or the like. Further, when the dual port RAM is used, the read operation can be simultaneously accessed by both MPUs. However, when one write operation is completed and the standby signal is released, another MP
When U starts writing, the read data may change in the middle, so it is necessary to read the output data after a predetermined time has elapsed after the standby signal was reset.
【0004】[0004]
【発明が解決しようとする課題】この従来の共有メモリ
制御装置は両方のMPUがともに待機回路を必要とする
欠点がある。また、待機回路が書込み完了を意味する待
機信号をリセットして他方のMPUが書込み開始するタ
イミング情報がないので、特にデュアルポートRAMの
ように読出しが同時に行われる場合に読出しのタイミン
グが不適格となる欠点もある。This conventional shared memory control device has the drawback that both MPUs both require a standby circuit. Further, since there is no timing information for the standby circuit to reset the standby signal indicating the completion of writing and the other MPU starts writing, the read timing is unsuitable especially when reading is performed simultaneously like the dual port RAM. There is also a drawback.
【0005】[0005]
【課題を解決するための手段】本発明のプロセッサの共
有メモリ制御装置は少なくとも2台のマイクロプロセッ
サユニット(MPU)と、前記MPUから送られる使用
要求信号を受信するチップセレクト回路ならびに一方の
MPUが書込み動作中に待機信号を他方のMPUに送出
するビジイ発生回路を備えた共有メモリ制御装置と、こ
の共有メモリ制御装置を介して前記MPUが共有して記
憶情報を書込み及び読出しを行う共有メモリとを有する
プロセッサの共有メモリ制御装置において、前記共有メ
モリ制御装置が前記MPUのいずれか一方の書込み終了
までの時間を計数し前記書込み終了までの時間に所定の
余ゆう時間を加算した計数時間情報を他方のMPUに対
して送出するアクセス時間カウンタを備えている。A shared memory control device for a processor according to the present invention comprises at least two microprocessor units (MPU), a chip select circuit for receiving a use request signal sent from the MPU, and one MPU. A shared memory control device provided with a busy generation circuit for sending a standby signal to the other MPU during a write operation, and a shared memory for writing and reading storage information shared by the MPU via the shared memory control device. In the shared memory control device of the processor having, the shared memory control device counts the time until the end of writing one of the MPUs, and count time information obtained by adding a predetermined extra time to the time until the end of writing. An access time counter for sending to the other MPU is provided.
【0006】[0006]
【実施例】次に本発明について図面を参照して説明す
る。The present invention will be described below with reference to the drawings.
【0007】図1は本発明の一実施例のブロック図であ
る。FIG. 1 is a block diagram of an embodiment of the present invention.
【0008】図1において図2の従来例と同一の符号は
同一の構成と機能を有する。すなわち図1の実施例は共
有メモリ制御装置10にいずれか一方のMPUの書込み
時間を計数するアクセス時間カウンタ1を備え、他方の
MPUが待機回路を削除して構成される。In FIG. 1, the same reference numerals as those in the conventional example of FIG. 2 have the same configuration and function. That is, in the embodiment of FIG. 1, the shared memory control device 10 is provided with the access time counter 1 for counting the write time of one of the MPUs, and the other MPU is configured by deleting the standby circuit.
【0009】図1に示すアクセス時間カウンタ1はMP
U3の書込み時間の計数を行うとともに、この書込み時
間の終了後に所定時間(読出し時間のマージン)をプラ
スして計数信号1AをMPU3に送り、読出し可能を認
知させる。また、MPU2にもMPU3の書込みが終了
しMPU2の書込み可能を意味する計数信号1Aを送
る。The access time counter 1 shown in FIG.
The writing time of U3 is counted, and after the writing time ends, a predetermined time (reading time margin) is added and the count signal 1A is sent to the MPU3 to recognize the readability. Further, the count signal 1A indicating that the writing of MPU3 is completed and the writing of MPU2 is possible is also sent to MPU2.
【0010】次に本実施例が固定優先方式として動作す
る場合を説明する。共有メモリ制御装置10に対しMP
U3から使用要求信号5Aが入力されると、チップセレ
クト回路5を経由してアクセス時間カウンタ1がカウン
トを始め計数信号1BをMPU3へ出力し書込みを始め
る。その後、MPU2から使用要求信号6Aが入力され
るとアクセス時間カウンタ8は計数を止め、使用要求信
号5Aのアクセス時間を保持する。これは使用要求信号
6Aの入力により継続していたアクセス時間が消滅する
為で有る。そして、固定優先順位の高いMPU2の使用
要求信号6Aを有効にして計数信号1Aを出力し、同時
にMPU3に対し、ビジイ発生回路7よりビジイ信号7
Aを出力する。MPU2からの書込みのアクセスが終了
すると使用要求信号6Aの入力により消滅したアクセス
時間をビジイ信号7Aに付加する。MPU3は一時停止
により延長されていた動作を継続する。Next, a case where this embodiment operates as a fixed priority system will be described. MP for shared memory controller 10
When the use request signal 5A is input from U3, the access time counter 1 starts counting via the chip select circuit 5 and outputs the count signal 1B to the MPU 3 to start writing. After that, when the usage request signal 6A is input from the MPU 2, the access time counter 8 stops counting and holds the access time of the usage request signal 5A. This is because the continuous access time disappears due to the input of the use request signal 6A. Then, the usage request signal 6A of the MPU 2 having a higher fixed priority is enabled and the count signal 1A is output, and at the same time, the busy signal 7 is sent from the busy generation circuit 7 to the MPU 3.
Output A. When the write access from the MPU 2 is completed, the access time disappeared by the input of the use request signal 6A is added to the busy signal 7A. The MPU 3 continues the operation extended by the temporary stop.
【0011】[0011]
【発明の効果】以上説明したように本発明は、アクセス
時間カウンタを備えることにより、2つのMPUの優先
順位を固定化することによって待機機能の有るMPUと
待機機能の無いMPUとの間で共有したメモリへの同時
アクセスができる効果がある。As described above, according to the present invention, by providing the access time counter, the priority order of two MPUs is fixed and shared between the MPU having the standby function and the MPU having no standby function. This has the effect of enabling simultaneous access to the specified memory.
【0012】[0012]
【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of the present invention.
【図2】従来例のブロック図である。FIG. 2 is a block diagram of a conventional example.
1 アクセス時間カウンタ 2 MPU(マスタ) 3 MPU(スレーブ) 4 共有メモリ 5,6 チップセレクト回路 7 ビジイ発生回路 8 待機回路 10 共有メモリ制御装置 1 Access time counter 2 MPU (master) 3 MPU (slave) 4 Shared memory 5,6 Chip select circuit 7 Busy generation circuit 8 Standby circuit 10 Shared memory control device
Claims (3)
ニット(MPU)と、前記MPUから送られる使用要求
信号を受信するチップセレクト回路ならびに一方のMP
Uが書込み動作中に待機信号を他方のMPUに送出する
ビジイ発生回路を備えた共有メモリ制御装置と、この共
有メモリ制御装置を介して前記MPUが共有して記憶情
報を書込み及び読出しを行う共有メモリとを有するプロ
セッサの共有メモリ制御装置において、 前記共有メモリ制御装置が前記MPUのいずれか一方の
書込み終了までの時間を計数し前記書込み終了までの時
間に所定の余ゆう時間を加算した計数時間情報を他方の
MPUに対して送出するアクセス時間カウンタを備えて
いることを特徴とするプロセッサの共有メモリ制御装
置。1. At least two microprocessor units (MPU), a chip select circuit for receiving a use request signal sent from the MPU, and one MP
A shared memory control device provided with a busy generation circuit that sends a standby signal to the other MPU during a write operation by the U, and a shared memory device that writes and reads stored information shared by the MPU via the shared memory control device In a shared memory control device of a processor having a memory, the shared memory control device counts a time until the end of writing of one of the MPUs, and a count time obtained by adding a predetermined free time to the time until the end of writing. A shared memory control device for a processor, comprising an access time counter for sending information to the other MPU.
の待機信号を受信する待機回路を備え、待機回路を備え
ていない前記MPUの他方に対して前記共有メモリの使
用優先権を与えることを特徴とする請求項1記載のプロ
セッサの共有メモリ制御装置。2. One of the MPUs is provided with a standby circuit for receiving a standby signal of the busy generation circuit, and the use priority of the shared memory is given to the other of the MPUs not provided with the standby circuit. A shared memory control device for a processor according to claim 1.
であることを特徴とする請求項1および2記載のプロセ
ッサの共有メモリ制御装置。3. The shared memory is a dual port RAM
3. The shared memory control device for a processor according to claim 1, wherein:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP21326093A JPH0764849A (en) | 1993-08-30 | 1993-08-30 | Shared memory controller for processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP21326093A JPH0764849A (en) | 1993-08-30 | 1993-08-30 | Shared memory controller for processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0764849A true JPH0764849A (en) | 1995-03-10 |
Family
ID=16636154
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP21326093A Withdrawn JPH0764849A (en) | 1993-08-30 | 1993-08-30 | Shared memory controller for processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0764849A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001134542A (en) * | 1999-08-31 | 2001-05-18 | Koninkl Philips Electronics Nv | Array of processors sharing collective memory |
JP2012194737A (en) * | 2011-03-16 | 2012-10-11 | Fujitsu Ltd | Data processing device, system, and operation method of data processing device |
-
1993
- 1993-08-30 JP JP21326093A patent/JPH0764849A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001134542A (en) * | 1999-08-31 | 2001-05-18 | Koninkl Philips Electronics Nv | Array of processors sharing collective memory |
JP2012194737A (en) * | 2011-03-16 | 2012-10-11 | Fujitsu Ltd | Data processing device, system, and operation method of data processing device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4096572A (en) | Computer system with a memory access arbitrator | |
US7725621B2 (en) | Semiconductor device and data transfer method | |
KR20060028705A (en) | Readdressable Virtual DMA Control and Status Registers | |
JPH04363746A (en) | Microcomputer system having dma function | |
JPH0764849A (en) | Shared memory controller for processor | |
JP2587586B2 (en) | Data transfer method | |
WO1985003372A1 (en) | Data transmitting/receiving system for transmitting data to and from auxiliary memory device | |
JP2004078396A (en) | Memory device | |
US20070094460A1 (en) | DRAM control circuit | |
JP3266610B2 (en) | DMA transfer method | |
JPH05282244A (en) | Information processor | |
JPH09311812A (en) | Microcomputer | |
JP2533923B2 (en) | Storage controller | |
JPH07319840A (en) | Multi-cpu device | |
JPH05173936A (en) | Data transfer processing device | |
JP3270149B2 (en) | Data transfer device | |
JPH0370816B2 (en) | ||
JPH0214741B2 (en) | ||
JPS63191398A (en) | Information processor | |
JPS635456A (en) | Microprocessor system | |
JPH06332846A (en) | Bus repeater | |
JPH01315857A (en) | Shared memory access system | |
JPH0440549A (en) | Information processor | |
JPS62107492A (en) | Memory control method | |
JPH04359353A (en) | Bus controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20001031 |