JPS59142658A - Shared memory control system - Google Patents
Shared memory control systemInfo
- Publication number
- JPS59142658A JPS59142658A JP1576583A JP1576583A JPS59142658A JP S59142658 A JPS59142658 A JP S59142658A JP 1576583 A JP1576583 A JP 1576583A JP 1576583 A JP1576583 A JP 1576583A JP S59142658 A JPS59142658 A JP S59142658A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- access
- time
- shared memory
- signal
- 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
Links
- 230000015654 memory Effects 0.000 title claims abstract description 49
- 230000006870 function Effects 0.000 claims abstract description 3
- 238000000034 method Methods 0.000 claims description 12
- 230000002457 bidirectional effect Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000003068 static effect Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 2
- 230000000630 rising effect Effects 0.000 description 2
- 102100023696 Histone-lysine N-methyltransferase SETDB1 Human genes 0.000 description 1
- 101710168120 Histone-lysine N-methyltransferase SETDB1 Proteins 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000020169 heat generation Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/16—Handling requests for interconnection or transfer for access to memory bus
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multi Processors (AREA)
Abstract
Description
【発明の詳細な説明】
本発明は、外部信号によりメモリーに対するアクセス時
間を延長させ得るウェイト(WAIT)機能を有スる2
台のコンビエータが1つのメモリーを共有する場合の共
有メモリー制御方式に関するものである。DETAILED DESCRIPTION OF THE INVENTION The present invention has a wait (WAIT) function that can extend memory access time using an external signal.
This invention relates to a shared memory control method when two combiators share one memory.
従来より、2つのコンビーータが同一のメモリーを共有
する場合がある。このような場合におけるメモリー制御
方式として次のような方式がある。Traditionally, two converters may share the same memory. The following methods are available as memory control methods in such cases.
■ 2つのコンビエータのアクセス時間よりも数倍早い
速度で、メモリーにつながるパスライン、コントロール
ツインをスイッチングし、タイムシェアリングでアクセ
スする方式。■ A time-sharing access method that switches the pass line and control twin connected to the memory at a speed several times faster than the access time of the two comviators.
■ 2つのコンビエータのうち、どちらか一方が一連の
メモリアクセスしている間は、他方のコンピュータがソ
フトウェアによる監視によシアクセスを見合わせる(一
方のコンビエータによるアクセスが完了するまで待機す
る)方式。■ While one of the two combinators is making a series of memory accesses, the other computer suspends the access due to software monitoring (it waits until the access by one comviator is completed).
しかしながら、■の方式では、ソフトウェア上での制限
は無いが、高速のメモリーを必要とし1、このようなメ
モリーは一般に集積度が低−ばかりか消費電力や発熱が
大きいといった欠点を有する。However, although the method (2) has no software limitations, it requires a high-speed memory (1), and such memories generally have the drawbacks of low integration, as well as high power consumption and heat generation.
また、■の方式においては、互いに1使用中1のステー
タスを監視し、かつ、バスツイン、コントロールツイン
の切替等の制御をソフトウェアが行う必要があるため、
ソフトウェア側の負担が大きくなυ、したがって処理速
度の低下をまねくといった欠点がある。In addition, in the method (■), it is necessary for software to monitor the status of one in use and to control switching between bus twins and control twins.
The drawback is that it imposes a heavy burden on the software, resulting in a decrease in processing speed.
本発明、の目的は、このような欠点を除去し、汎用のメ
モリー素子を使用し、2つのコンピュータが各々自分自
身で所有するメモリーのアクセスと同様に、何ら特別な
ソフトウェアを用意することなく、任意にリード、ライ
トアクセスが可能な共有メモリー制御方式を提供するこ
とにある。The object of the present invention is to eliminate such drawbacks, to use general-purpose memory devices, and to allow two computers to access their own memories without the need for any special software. The purpose is to provide a shared memory control method that allows arbitrary read and write access.
以下図面を用いて本発明の詳細な説明する。第1図は本
発明の方式を実施するための回路の実施例構成図である
。本回路ではインテル社の8ビツト構成の8085 系
マイクロコンビーータ(以下pp。The present invention will be described in detail below using the drawings. FIG. 1 is a block diagram of an embodiment of a circuit for implementing the method of the present invention. This circuit uses Intel's 8-bit 8085 series microcombinator (hereinafter referred to as pp).
と略す)を対象とした場合を例にとって示しておる。本
回路は、2組の)IPU システム10a、 10b
と、クロ、り発生部20と、共有メモリ一部30より構
成されている。This example shows the case where the target is This circuit consists of two sets of IPU systems 10a and 10b.
, a black and red generation section 20 , and a shared memory part 30 .
2組の)IPUシステム10aと20bは同一回路構成
である。IJPUシステム10aにおいて、11aは外
部信号によりアクセス時間を延長させ得るウェイト(W
AIT )機能を有する8085系の)IPU 、
12aはラッチである。ラッチ12aは、 pPU
llaより送出されるアドレスの下位バイトとデータを
ALEa(ADDRESSLATCHENABLE )
信号によυ分離するためのものである。13aはアドレ
スデコーダ(ADDRESS DECODER)で、上
位アドレスビットのデコード信号を得るためのもので、
共有メモリーをセレクトするセレクト信号5ELa(l
JPUシステム10bでは5ELb )を発生するもの
である。The two sets of IPU systems 10a and 20b have the same circuit configuration. In the IJPU system 10a, 11a is a weight (W) that can extend the access time by an external signal.
8085 series) IPU with AIT) function,
12a is a latch. The latch 12a is pPU
ALEa (ADDRESSLATCHENABLE) the lower byte and data of the address sent from lla.
This is for separating signals by υ. 13a is an address decoder (ADDRESS DECODER) for obtaining a decode signal of the upper address bits.
Select signal 5ELa (l
The JPU system 10b generates 5ELb).
クロ、り発生部2oは、2つのIJPUに共通使用する
クロック(CLOCK )信号を発生する部分でIC1
一方のμPU内部でこれを発生する場合には、他方にこ
の信号を加えることによυ、この回路を省略するととが
できる。The clock/return generator 2o is a part that generates a clock (CLOCK) signal commonly used by the two IJPUs, and is connected to IC1.
If this is generated within one μPU, this circuit can be omitted by adding this signal to the other μPU.
共有メモリ一部3oは、スタティックメモリー31ト、
シーケンスコントロール部32と、3ステートゲート3
3a、 33bと、双方向性3ステートゲート34a、
34b よ多構成される0スタテイツクメモリー31
は、共有メモリーの記憶素子本体でsb、記憶(5)
容量は任意に設定できるもやである。この共有メモリー
は、一般的表使用法によって使用されるようになってお
り、一般的な場合と同様にアドレス信号ADR8(その
ビット数はメモリー容量に依存する)、データ信号DA
TA (8085系の場合は8ビツト)、セレクト信号
SEL 、ライト信号WE (Write Enabl
e )、リード信号0E(Output Enable
)が入力される。The shared memory part 3o is static memory 31t,
Sequence control section 32 and 3-state gate 3
3a, 33b, and bidirectional three-state gate 34a,
34b 0 static memory 31 configured in many ways
is the storage element body of the shared memory, sb, storage (5).The capacity can be set arbitrarily. This shared memory is used in the general table usage, and as in the general case, the address signal ADR8 (the number of bits depends on the memory capacity), the data signal DA
TA (8 bits for 8085 series), select signal SEL, write signal WE (Write Enable
e), read signal 0E (Output Enable
) is input.
シーケンスコントロール部32は、2つのljPoll
m。The sequence control unit 32 has two ljPolls.
m.
11bからの共有メモリ一部に対するアクセスに対し、
記憶素子31への各々のバス14a、 15m、 14
b、 15bないし制御信号(SELa、 5ELb、
WEa、 WEb、 OEa、 OEb )を適宜に
切換えるための切換信号BEa、 BEb (BusE
nable)の発生、及び各IJPcに対するレディ信
号READYa、 RBADThの制御を行うものであ
る。For access to a part of the shared memory from 11b,
Each bus 14a, 15m, 14 to the storage element 31
b, 15b or control signal (SELa, 5ELb,
Switching signals BEa, BEb (BusE
It is used to control the generation of ready signals READYa and RBADTh for each IJPc.
なお、シーケンスコントロール部32には内部状態(0
〜S)を示すための内部状態カウンタが設けられていて
、各)IPtTからのSEI、信号がLOWのときにR
ESET L、+3EL信号とALE信号との論理積が
HIGHの状態でクロックの立上りからカウントを開始
するもので、)IPU内部の状態がTl、 T2. T
3と変(4)
るのに従いそれとは半りロック分だけ遅れてインクリメ
ントするようになっている。Note that the sequence control unit 32 has an internal state (0
~S) is provided, and when the SEI from each) IPtT, the R signal is LOW.
Counting starts from the rising edge of the clock when the AND of the ESET L, +3EL signal and the ALE signal is HIGH, and the internal state of the IPU is Tl, T2. T
3 (4), the increment is delayed by half a lock.
3ステートゲート33a、 33bは、シーケンスコン
トロール部32からの切換信号BEa、 BEbにより
バス上のデータ及び制御信号の開閉を行うものでめる。The three-state gates 33a and 33b open and close data and control signals on the bus in response to switching signals BEa and BEb from the sequence control section 32.
双方向性3ステートゲート34a、 34bは、データ
バス上でデータが双方向に流れるようにしたもので、各
1JpCからのREAD信号、、 WRITE 8号で
制御される。The bidirectional three-state gates 34a and 34b allow data to flow in both directions on the data bus, and are controlled by the READ signal and WRITE No. 8 from each 1JpC.
このような構成における動作を次に説明・する。The operation in such a configuration will be explained next.
まず、8085系のIJPHのメモリーアクセス動作に
ついて第2図及び第5図を参照して述べておく。ウェイ
トステート(WAIT 5TATE )0のと1!(第
2図のとき)に、READY信号が)JIG)1の状態
であれば、3クロツクで1アクセスが完了する。他方、
第3図に示すようなタイミングでREADY信号がLO
Wに下・がると、Ti、 T2間にI WAIT状態が
生じ、メモリーアクセス期間が1クロック周期引き伸ば
された状態となる。従って、IWAIT状態では4クロ
ツク12 WAIT状態では5クロ、りでシーケンスが
完了する。First, the memory access operation of the 8085-based IJPH will be described with reference to FIGS. 2 and 5. Wait state (WAIT 5TATE) 0 and 1! If the READY signal is (JIG) 1 (as shown in FIG. 2), one access is completed in three clocks. On the other hand,
The READY signal goes LO at the timing shown in Figure 3.
When the voltage drops to W, an I WAIT state occurs between Ti and T2, and the memory access period is extended by one clock cycle. Therefore, the sequence is completed in 4 clocks in the IWAIT state and 5 clocks in the WAIT state.
この場合、メモリーに対する情報はT2. T3期間で
総べて確定しており、メモリーのアクセスタイムtac
(アドレス、 READ信号が確定してからメモリー
出力データが確定するまでの時間)について、〜。+t
st≦T2 + T3/2
ここで、tstはIIPHのリードデータセ、ドアツブ
タイム(lJptyがデータを読み込む際に事前にデー
タケ確定させるために必要な時間)の条件を満足する性
能かめれば、T2 + T3 期間だけでメモリーア
クセスが可能でおる。本発明はこの点を巧みに利用した
ものである。In this case, the information for memory is T2. Everything is fixed in the T3 period, and the memory access time tac
Regarding (the time from when the address and READ signal are determined to when the memory output data is determined), ~. +t
st≦T2 + T3/2 Here, tst is T2 + if you take into account the performance that satisfies the conditions of IIPH's read data set and door turn time (the time required for lJpty to confirm data in advance when reading data). Memory access is possible only during the T3 period. The present invention takes advantage of this point.
さて、今2つの)IPUが同一クロ、りで動作している
ものとし、各々の共有メモリーに対すゐアクセスの場合
に生ずる状態は第4図ないし第9図の6通シである。こ
の中、アクセスが重なる場合(SELa、 5ELb
が重々る場合)としては第5図ないし第9図の5つの場
合がおる。ここで、共有メモリーに対するアクセスf
T2. T3に紋れば実際のアクセス重複は第6図、第
7図及び第8図の3つの場合となる。Now, assuming that two IPUs are operating on the same clock, the six states shown in FIGS. 4 to 9 occur when each accesses the shared memory. Among these, if the accesses overlap (SELa, 5ELb
There are five cases shown in Figs. 5 to 9. Here, access f to the shared memory
T2. When T3 is reached, actual access duplication occurs in three cases as shown in FIGS. 6, 7, and 8.
シーケンスコントロール部32は、カウンタの出力(5
TATE )が1でかつREADY信号がHIGHのと
きクロ、りの立下りでセットされ、カウンタの出力が3
のときクロ、りの立下りでリセットされるBEa。The sequence control section 32 controls the output of the counter (5
TATE) is 1 and the READY signal is HIGH, it is set at the falling edge of the clock, and the counter output is 3.
BEa is reset at the falling edge of BLACK and RI.
BEbを発生する。これにより、図からも明らかなよう
にBEa、 BBbが重複することはなくなる。Generate BEb. As a result, as is clear from the figure, BEa and BBb do not overlap.
一方、T2. T3におけるアクセス重複に対しては、
第6図及び第8図の場合はアクセスの遅れた方の)IP
Hに対し、また第7図の場合は予め決定された優先順位
(この場合は1JPU10aの方を高順位としている)
に従って低位のIJPUに対し、それぞれREADY信
号をLOWにして、WAITをかけ、アクセスを遅らせ
て衝突を回避させる。On the other hand, T2. For duplicate access at T3,
In the case of Figures 6 and 8, the IP address of the one whose access was delayed
H, and in the case of FIG. 7, the priority is determined in advance (in this case, 1JPU10a is given the higher priority).
Accordingly, each lower IJPU sets its READY signal to LOW and applies WAIT to delay access and avoid collision.
このREADY信号は、一方の)IPHの内部状態が0
から1に変わる直前に他方のμpUの状態が1であると
きは、その直後のクロ、りの立下シから次のクロックの
立下シまでの期間、また、一方のl’PUの内部状態が
0から1に変わる直前に他方の)’PUの状態が0であ
るときは、予め定められた低順位(7)
側の1JpUに対して直後のクロックの立下υがら2回
後のクロツタ立下りまでの期間同様にLOWになるよう
にそれぞれシーケンスコントロール部で制御され発生す
るようになっている。This READY signal indicates that the internal state of one of the IPHs is 0.
If the state of the other μpU is 1 just before it changes from 1 to 1, the period from the falling edge of the next clock to the falling edge of the next clock, and the internal state of one l'PU. If the state of the other )' PU is 0 immediately before the change from 0 to 1, the next clock fall υ two times later for 1JpU on the predetermined lower rank (7) side. These signals are generated under the control of the sequence control unit so that they are LOW in the same way as during the period up to the falling edge.
このような動作により、2つの1jPUは共有メモリー
に対し衝突することなく見掛上並行したアクセスをする
ことができる。With this operation, the two 1jPUs can apparently access the shared memory in parallel without conflicting.
なお、IPHの片方が8085系、他方が非同期確認屋
のコンピュータの場合には、後者の制御信号を8085
系のクロックで同期化することによシ、同様に上記アク
セス方式をとることができる。In addition, if one side of the IPH is an 8085-based computer and the other is an asynchronous checker's computer, the control signal of the latter is an 8085-based computer.
By synchronizing with the system clock, the above access method can be similarly adopted.
また、内部状態カウンタのカウント開始条件は、第9図
に示すようにALE信号の代pにSEL信号の立上多信
号を用いて得るようにすることもできる。Further, the count start condition of the internal state counter can also be obtained by using the rising edge signal of the SEL signal in place of the ALE signal p, as shown in FIG.
ただし、この場合、フェッチ(FETCH)サイクルで
のSEL信号発生を禁止するため、−PUがらのステー
タス信号So、 81 (図示せず)でゲートをかける
必要がある。However, in this case, in order to prohibit generation of the SEL signal in the fetch (FETCH) cycle, it is necessary to apply a gate with the status signal So, 81 (not shown) from -PU.
以上説明したように、本発明によれば、2つの1’PU
が何ら複雑なソフトウェアを介在することな(8)
く共有メモリーを各pPUが専用のメモリーをアクセス
する如くに比較的高速にアクセスすることができる。As explained above, according to the present invention, two 1'PU
The shared memory can be accessed at relatively high speed, just as each pPU accesses its own memory, without the intervention of any complicated software (8).
更に詳説すれば、2つの)IPHの共有メモリーに対す
る同時アクセスの制御は、1JPUのREADY信号の
操作によ〕純ハードウェアで行われるため、ソフトウェ
アに一切の制約を与えな−◎
また、メモリーアクセス時間の削減は1クロ。More specifically, since the control of simultaneous access to the shared memory of the two IPHs is performed purely by hardware by manipulating the READY signal of 1 JPU, no restrictions are placed on the software. The time reduction is 1 cro.
り弱(TIステート分)であるため、一般的なIJPU
の使用クロ、り周波数3 MHzでは、アクセス時間2
50 ns程度のごく一般的なメモリー素子が使用でき
るという効果がある。general IJPU
At a frequency of 3 MHz, the access time is 2
This has the advantage that a very common memory element with a duration of about 50 ns can be used.
第1図は本発明の方式を実施するための回路の構成図、
第2図及び第5図は8o85系のIPHのメモリーアク
セス動作を説明するための図、第4図な−し第9図は本
発明の詳細な説明するためのタイムチャートである。
11a、 llb −)IPU% 12a、 12b
−2yチー13m、 131y=アドレスデコーダ、2
0・・・クロック発生部、31・・・スタテイックメモ
リー、32・・・シーケンスコントロール部、33a、
33b−5ステートゲート、34a、 34b −双
方向性3ステートゲート。
Σ 2 ≦ U 程 乙 士 、) E−t=<
歯z 9 S Q 咥 く tFIG. 1 is a configuration diagram of a circuit for implementing the method of the present invention,
2 and 5 are diagrams for explaining the memory access operation of the 8o85 series IPH, and FIGS. 4 to 9 are time charts for explaining the present invention in detail. 11a, llb -) IPU% 12a, 12b
-2y chi 13m, 131y=address decoder, 2
0... Clock generation section, 31... Static memory, 32... Sequence control section, 33a,
33b - 5-state gate, 34a, 34b - bidirectional 3-state gate. Σ 2 ≦ U degree,) E−t=<
Tooth z 9 S Q mouth t
Claims (1)
させ得るWAIT機能を有する2台のコンビエータが1
つのメモリーを共有する場合の、共有メモリー制御方式
において、各々のコンビエータ開始点から、他方のコン
Jヒタの開始点までの、クロ、り数に応じて、後者のコ
ンビーータに必要なWAIT時間を発生させ、共有メモ
リーに対するアクセスを時間的にずらすことにより、メ
モリーに対する非同期アクセスを行うようにしたことを
特徴とする共有メモリー制御方式。Two combiators each have a WAIT function that can extend memory access time using an external signal.
In a shared memory control method when two memories are shared, the WAIT time required for the latter combiator is generated according to the number of crosses from the start point of each combiator to the start point of the other combiator. A shared memory control method characterized by performing asynchronous access to memory by temporally shifting access to the shared memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1576583A JPS59142658A (en) | 1983-02-02 | 1983-02-02 | Shared memory control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1576583A JPS59142658A (en) | 1983-02-02 | 1983-02-02 | Shared memory control system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS59142658A true JPS59142658A (en) | 1984-08-15 |
Family
ID=11897886
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1576583A Pending JPS59142658A (en) | 1983-02-02 | 1983-02-02 | Shared memory control system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS59142658A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0515878U (en) * | 1991-08-21 | 1993-03-02 | 道夫 坂井 | Chilled beer bottle for banquet |
-
1983
- 1983-02-02 JP JP1576583A patent/JPS59142658A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0515878U (en) * | 1991-08-21 | 1993-03-02 | 道夫 坂井 | Chilled beer bottle for banquet |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4499536A (en) | Signal transfer timing control using stored data relating to operating speeds of memory and processor | |
US5608881A (en) | Microcomputer system for accessing hierarchical buses | |
KR880001168B1 (en) | Digital signal processing system | |
KR0133236B1 (en) | Shared memory system and arbitration method and system | |
US5463756A (en) | Memory control unit and associated method for changing the number of wait states using both fixed and variable delay times based upon memory characteristics | |
JPS59142658A (en) | Shared memory control system | |
US4293926A (en) | Dynamic type semiconductor memory equipment | |
JP2618223B2 (en) | Single chip microcomputer | |
JPH0715800B2 (en) | Memory circuit | |
JPS6285343A (en) | Memory reading-out circuit | |
JPS6237737A (en) | Microprocessor circuit | |
JPH09311812A (en) | Microcomputer | |
JP2870812B2 (en) | Parallel processor | |
JPS5829194A (en) | information processing equipment | |
JP2645462B2 (en) | Data processing system | |
JPS62123526A (en) | Central processing unit for digital signal processor | |
JP2668215B2 (en) | Micro computer | |
RU2134442C1 (en) | Device for logic program control of electric drives, electronic switches, and alarms | |
JPS60116059A (en) | Bus controlling system | |
JPH0612313A (en) | Memory device | |
JP2570271B2 (en) | Semiconductor memory controller | |
JP2814543B2 (en) | Signal selection transmission circuit and its task processing method | |
JPH10171770A (en) | Multiprocessor system | |
JPH0467661B2 (en) | ||
JPH02153444A (en) | Memory control circuit |