JPH0454522Y2 - - Google Patents

Info

Publication number
JPH0454522Y2
JPH0454522Y2 JP4131887U JP4131887U JPH0454522Y2 JP H0454522 Y2 JPH0454522 Y2 JP H0454522Y2 JP 4131887 U JP4131887 U JP 4131887U JP 4131887 U JP4131887 U JP 4131887U JP H0454522 Y2 JPH0454522 Y2 JP H0454522Y2
Authority
JP
Japan
Prior art keywords
arithmetic processing
signal
output
memory
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.)
Expired
Application number
JP4131887U
Other languages
Japanese (ja)
Other versions
JPS63151054U (en
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 filed Critical
Priority to JP4131887U priority Critical patent/JPH0454522Y2/ja
Publication of JPS63151054U publication Critical patent/JPS63151054U/ja
Application granted granted Critical
Publication of JPH0454522Y2 publication Critical patent/JPH0454522Y2/ja
Expired legal-status Critical Current

Links

Landscapes

  • Multi Processors (AREA)

Description

【考案の詳細な説明】 〔産業上の利用分野〕 本考案はメモリアクセス回路に関し、特に複数
の演算処理装置(以下MPUという)の夫々によ
つて同一メモリをアクセスするメモリアクセス回
路に関するものである。
[Detailed description of the invention] [Industrial application field] The present invention relates to a memory access circuit, and particularly to a memory access circuit in which each of a plurality of arithmetic processing units (hereinafter referred to as MPU) accesses the same memory. .

〔従来技術〕[Prior art]

高速フアクシミリ装置においてはその機能の高
度化にともない2個のMPUを平行動作させて各
種制御を行つたおり、各MPUにより同一のメモ
リをアクセスしてデータの読出及び書込を行わせ
ている。
As the functions of high-speed facsimile devices become more sophisticated, two MPUs are operated in parallel to perform various controls, and each MPU accesses the same memory to read and write data.

第2図は特開昭59−53958号に示されているメ
モリアクセス回路のブロツク図である。MPU1
及びMPU2のアドレス信号はアドレスコントロ
ールバスAB1及びAB2を介してバスセレクタ
4に与えており、またMPU1,MPU2のアドレ
ス信号はデコーダ6及びデコーダ7に各別に与え
ている。バスセレクタ4の出力信号はメモリ3に
与えている。PMU1及びMPU2はデータバス
DB1,DB2によりバスセレクタ5を介してメ
モリ3にデータ信号を与え、メモリ3からデータ
信号を得るようになつている。
FIG. 2 is a block diagram of a memory access circuit shown in Japanese Patent Application Laid-Open No. 59-53958. MPU1
Address signals for MPU1 and MPU2 are applied to bus selector 4 via address control buses AB1 and AB2, and address signals for MPU1 and MPU2 are applied to decoder 6 and decoder 7, respectively. The output signal of the bus selector 4 is given to the memory 3. PMU1 and MPU2 are data buses
Data signals are given to the memory 3 via the bus selector 5 by DB1 and DB2, and data signals are obtained from the memory 3.

バスセレクタ4及びバスセレクタ5は主たる
MPU1のアドレス信号が入力されるデコーダ6
のチツプセレクト信号CS1によつてアドレスバ
スAB1又はAB2及びデータバスDB1又はDB
2の一方を選択するように切換えられ、MPU1
がアドレス信号を出力した場合にはアドレスコン
トロールバスAB1及びデータバスDB1を介し
てメモリをアクセスする。つまりMPU1が優先
的に動作する。デコーダ6のチツプセレクト信号
CS1及びMPU2のアドレス信号が与えられて出
力されるデコーダ7のチツプセレクト信号CS2
は夫々ANDゲート8に入力されていて、ANDゲ
ート8の出力信号はアクセスオーバラツプ検出回
路としてのフリツプフロツプ9のセツト端子ST
に与えられている。またMPU2はアクセス時点
で「1」の出力信号Rをフリツプフロツプ9のリ
セツト端子RSに与えている。フリツプフロツプ
9の出力端子Qから出力されるセツト出力Sは
MPU2に与えられている。
Bus selector 4 and bus selector 5 are the main
Decoder 6 to which the address signal of MPU1 is input
address bus AB1 or AB2 and data bus DB1 or DB by chip select signal CS1.
MPU1
When outputs an address signal, the memory is accessed via address control bus AB1 and data bus DB1. In other words, MPU1 operates preferentially. Chip select signal of decoder 6
Chip select signal CS2 of the decoder 7 which is outputted by the address signals of CS1 and MPU2
are input to AND gates 8, and the output signals of AND gates 8 are input to the set terminal ST of flip-flop 9, which serves as an access overlap detection circuit.
is given to. Furthermore, the MPU 2 provides an output signal R of "1" to the reset terminal RS of the flip-flop 9 at the time of access. The set output S output from the output terminal Q of the flip-flop 9 is
It is given to MPU2.

第3図及び第4図は第2図におけるMPU1及
びMPU2のアクセスに関する動作を示すフロー
チヤートである。
3 and 4 are flowcharts showing operations related to access by MPU1 and MPU2 in FIG. 2.

第3図はMPU1のアクセスに関する動作を示
し、主たるMPU1は前述した如くMPU2のアク
セスに優先してアクセス動作を行う。これに対し
第4図はMPU2のアクセス動作を示しており、
従たるMPU2はフリツプフロツプ9のセツト出
力Sが「1」か「0」かを判断する。そしてセツ
ト出力Sが「1」である場合はMPU2の出力信
号Rを「1」としてフリツプフロツプ9のリセツ
ト端子RSに与え、セツト出力Sを一旦「0」に
してから再度同じアドレスでメモリ回路3をアク
セスする動作を行う。
FIG. 3 shows the access operation of the MPU 1, and the main MPU 1 performs the access operation with priority over the access of the MPU 2, as described above. On the other hand, Figure 4 shows the access operation of MPU2,
The slave MPU 2 determines whether the set output S of the flip-flop 9 is "1" or "0". When the set output S is ``1'', the output signal R of the MPU 2 is set to ``1'' and is applied to the reset terminal RS of the flip-flop 9, and after the set output S is set to ``0'', the memory circuit 3 is reset at the same address. Perform the action to access.

〔考案が解決しようとする問題点〕[Problem that the invention attempts to solve]

前述の如く、従来のメモリアクセス回路はメモ
リをアクセスする場合に、従たるMPU2は主た
るMPU1がアクセス状態にあるか否かを繰返し
判断するため従たるMPU2に多くの負担がかか
ることになり、MPU1,2及びメモリ3を用い
ている装置全体の制御の高速性が損なわれるとい
う不都合がある。
As mentioned above, when accessing memory in the conventional memory access circuit, the secondary MPU 2 repeatedly judges whether or not the primary MPU 1 is in an access state, which places a large burden on the secondary MPU 2. , 2 and the memory 3, the high-speed control of the entire device is impaired.

本考案は前述した問題点に鑑み、メモリアクセ
ス時において一方のMPUにかかる負担を軽減し、
メモリ装置全体の制御を高速になし得るメモリア
クセス回路を提供することを目的とする。
In view of the above-mentioned problems, this invention reduces the burden on one MPU when accessing memory.
An object of the present invention is to provide a memory access circuit that can control the entire memory device at high speed.

〔問題点を解決するための手段〕 本考案に係るメモリアクセス回路は、複数の演
算処理装置で同一メモリをアクセスすべく構成し
ているメモリアクセス回路において、前記メモリ
をアクセスすべく夫々の前記演算処理装置が出力
する制御信号を各別に与えるデコーダと、この制
御信号が入力された場合に発せらる各デコーダ出
力をゲートを介して各別に与えるコード変換器
と、このコード変換器の出力及び特定の演算処理
装置に連なるゲート出力を入力とし、各演算処理
装置とメモリとの間のバスの選択制御を行うと共
にこの選択制御に関連するタイミングで内容を変
じる待機制御信号を発するタイミング発生回路
と、該待機制御信号と各演算処理装置が出力する
前記制御信号を与える前記デコーダ出力の夫々と
を入力とし、その出力を各演算処理装置の待機状
態制御端子へ与えている論理回路とを具備し、ま
た前記コード変換器出力を前記ゲートの開閉制御
信号としており、いずれかの演算処理装置がメモ
リをアクセスしている場合は他の演算処理装置に
係る前記ゲートを閉じると共に、タイミング発生
回路は、前記他の演算処理装置が前記制御信号を
発した場合に前記論理回路から該演算処理装置を
待機状態とすべき信号を発せしめ、また、前記特
定の演算処理装置を含む複数の演算処理装置が前
記制御信号を同時的に出力した場合は、前記特定
の演算処理装置のアクセスを優先させるべくなし
てあることを特徴とする。
[Means for Solving the Problems] The memory access circuit according to the present invention is configured such that a plurality of arithmetic processing units access the same memory. A decoder that separately provides control signals output by the processing device, a code converter that separately provides each decoder output via a gate when the control signal is input, and an output and identification code converter. a timing generation circuit which receives gate outputs connected to the arithmetic processing units as input, performs bus selection control between each arithmetic processing unit and the memory, and issues a standby control signal whose content changes at a timing related to this selection control; , comprising a logic circuit which receives the standby control signal and each of the decoder outputs that provide the control signals outputted by each arithmetic processing unit as inputs, and provides the output thereof to a standby state control terminal of each arithmetic processing unit. , the output of the code converter is used as an opening/closing control signal for the gate, and when any arithmetic processing unit is accessing the memory, the gate related to the other arithmetic processing unit is closed, and the timing generation circuit: When the other arithmetic processing device issues the control signal, the logic circuit issues a signal to put the arithmetic processing device into a standby state, and a plurality of arithmetic processing devices including the specific arithmetic processing device The present invention is characterized in that when the control signals are output simultaneously, priority is given to access by the specific arithmetic processing unit.

〔作用〕[Effect]

いずれかの演算処理装置がメモリをアクセスす
べく制御信号を発するとコード変換器出力によつ
て他の演算処理装置のゲートが閉じられ、またタ
イミング発生回路は制御信号を発した演算処理装
置側に選択制御する。これによつて先にアクセス
した演算処理装置の優先権が確保される。
When one of the arithmetic processing units issues a control signal to access the memory, the code converter output closes the gates of the other arithmetic processing units, and the timing generation circuit is connected to the arithmetic processing unit that issued the control signal. Control selection. This ensures priority for the arithmetic processing device that accessed first.

この間、他方の演算処理装置がメモリアクセス
のための制御信号を発した場合に、前記論理回路
出力によつて待機状態とされる。そしてアクセス
が終了するとこの待機が解かれ、前記他方の演算
処理装置のアクセスが行われる。複数の演算処理
装置から同時アクセスがあつた場合に前記特定の
演算処理装置のデコーダ出力がタイミング発生回
路に与えられ、これを受けてこの特定の演算処理
装置に対してバスを優先的に選択させる。
During this time, when the other arithmetic processing unit issues a control signal for memory access, it is put into a standby state by the output of the logic circuit. When the access is completed, this waiting state is released, and the other arithmetic processing unit is accessed. When there is simultaneous access from a plurality of arithmetic processing units, the decoder output of the specific arithmetic processing unit is given to a timing generation circuit, and in response to this, the bus is selected preferentially for this specific arithmetic processing unit. .

〔実施例〕 以下本考案をその実施例を示す図面によつて詳
述する。
[Embodiments] The present invention will be described in detail below with reference to drawings showing embodiments thereof.

第1図は本考案にかかるメモリアクセス回路の
ブロツク図である。第1,第2のMPU1,MPU
2はアドレスコントロールバスAB1,AB2及
びデータバスDB1,DB2によりメモリ3と接
続されており、MPU1,MPU2はメモリ3をア
クセスできるようになつている。データバスDB
1,DB2、アドレスバスAB1,AB2、メモリ
に対するチツプセレクト信号CS1,CS2、リー
ド信号RD1,RD2、ライト信号WR1,WR2
を出力するようになつている。MPU1のチツプ
セレクト信号CS1、リード信号RD1及びライト
信号WR1はデコーダ10に与えられている。
MPU2のチツプセレクト信号CS2、リード信号
RD2及びライト信号WR2はデコーダ14に与
えられている。MPU1,2はアドレスコントロ
ールバスAB1,AB2によりアドレス信号をバ
スセレクタ4を介してメモリ3に与えるようにし
ており、またデータ信号はデータバスDB1,
DB2によりバスセレクタ5を介してメモリ3と
MPU1,2との間で相互に与え得るようになつ
ている。MPU1はクロツク信号φを発生し、そ
のクロツク信号φをDフリツプクロツクからなる
ラツチ回路11,13のクロツク端子CKに与え、
インバータ201を介して反転クロツク信号を
タイミング発生回路18に与えている。デコーダ
10は入力されたチツプセレクト信号CS1とリ
ード信号RD1とがともに「1」である場合、又
はチツプセレクト信号CS1とライト信号WR1
とがともに「1」である場合に「1」の信号を出
力する。この信号はゲート20を介してラツチ回
路11の入力端子D及びNANDゲート17の一
側入力端子に与えられている。ラツチ回路11は
クロツク信号φが与えられた時点でゲート20か
らの信号をラツチして、そのラツチ信号Qを2ビ
ツトを4ビツトに変換するコード変換器12の一
方の入力端子A及びタイミング発生回路18に与
えるようになつている。デコーダ14は入力され
たチツプセレクト信号CS2とリード信号RD2と
がともに「1」である場合、又はチツプセレクト
信号CS2とライト信号WR2とがともに「1」
である場合に「1」の信号を出力する。この信号
はゲート21を介してラツチ回路13の入力端子
D及びNANDゲート19の一側入力端子に与え
られている。ラツチ回路13はクロツク信号φが
与えられた時点でゲート20からの信号をラツチ
して、そのラツチ信号を前記コード変換器12の
他方の入力端子Bに与えられている。コード変換
器12は例えば富士通(株)製のIC(74139)を使用
していて、ラツチ回路11,13から与えられた
信号a,bが (a,b)=(0,0)のとき(321
Y0)=(1,1,1,0) (a,b)=(1,0)のとき(321
Y0)=(1,1,0,1) (a,b)=(0,1)のとき(321
Y0)=(1,0,1,1) (a,b)=(1,1)のとき(321
Y0)=(0,1,1,1) として信号を出力する。このコード変換器12の
Y13出力はANDゲート15の両入力端子に与
えており、ANDゲート15の出力信号dは前記
ゲート21にその開閉信号として与えている。ま
1出力はANDゲート16の一方の入力端子に
与えている。
FIG. 1 is a block diagram of a memory access circuit according to the present invention. 1st, 2nd MPU1, MPU
2 are connected to the memory 3 by address control buses AB1, AB2 and data buses DB1, DB2, so that the MPU1, MPU2 can access the memory 3. data bus DB
1, DB2, address buses AB1, AB2, chip select signals CS1, CS2 for memory, read signals RD1, RD2, write signals WR1, WR2
is now output. Chip select signal CS1, read signal RD1 and write signal WR1 of MPU 1 are applied to decoder 10.
MPU2 chip select signal CS2, read signal
RD2 and write signal WR2 are provided to the decoder 14. The MPUs 1 and 2 use address control buses AB1 and AB2 to send address signals to the memory 3 via the bus selector 4, and data signals are sent to the data buses DB1 and DB2.
DB2 connects memory 3 via bus selector 5.
It is designed so that it can be mutually given between MPU1 and MPU2. The MPU 1 generates a clock signal φ and applies the clock signal φ to the clock terminals CK of latch circuits 11 and 13 consisting of D flip clocks.
An inverted clock signal is applied to the timing generation circuit 18 via an inverter 201. When the input chip select signal CS1 and read signal RD1 are both "1", or when the chip select signal CS1 and write signal WR1 are input, the decoder 10
When both are "1", a signal of "1" is output. This signal is applied to the input terminal D of the latch circuit 11 and one side input terminal of the NAND gate 17 via the gate 20. The latch circuit 11 latches the signal from the gate 20 when the clock signal φ is applied, and converts the latch signal Q from 2 bits to 4 bits. One input terminal A of the code converter 12 and a timing generation circuit It is now being given to 18 people. When the input chip select signal CS2 and read signal RD2 are both "1", or when the chip select signal CS2 and write signal WR2 are both "1", the decoder 14
If so, a signal of "1" is output. This signal is applied to the input terminal D of the latch circuit 13 and one side input terminal of the NAND gate 19 via the gate 21. The latch circuit 13 latches the signal from the gate 20 when the clock signal φ is applied, and the latch signal is applied to the other input terminal B of the code converter 12. The code converter 12 uses, for example, an IC (74139) manufactured by Fujitsu Ltd., and when the signals a and b given from the latch circuits 11 and 13 are (a, b) = (0, 0), ( 3 , 2 , 1 ,
Y 0 ) = (1, 1, 1, 0) When (a, b) = (1, 0) ( 3 , 2 , 1 ,
Y 0 ) = (1, 1, 0, 1) When (a, b) = (0, 1) ( 3 , 2 , 1 ,
Y 0 ) = (1, 0, 1, 1) When (a, b) = (1, 1) ( 3 , 2 . 1 ,
A signal is output as Y 0 )=(0,1,1,1). This code converter 12
The Y 1 and 3 outputs are given to both input terminals of an AND gate 15, and the output signal d of the AND gate 15 is given to the gate 21 as its opening/closing signal. Further, one output is given to one input terminal of the AND gate 16.

そしてANDゲート15の出力信号dが「1」
のときにはゲート21が開かれてデコーダ14の
出力信号をラツチ回路13に与え、「0」のとき
にはその出力信号を遮断する動作をする。またコ
ード変換器12の12出力はANDゲート16
の両入力端子に与えられており、2出力は前記
ゲート20にその開閉信号として与えられてい
る。ANDゲート16の出力信号は前記タイミン
グ発生回路18に与えている。そしてゲート20
2出力が「1」である出力信号cが与えられ
ると、ゲート20が開かれてデコーダ10の出力
信号が前記ラツチ回路11に与えられ、「0」の
ときにはその出力信号を遮断する動作をする。
And the output signal d of the AND gate 15 is "1"
When the signal is "0", the gate 21 is opened and the output signal of the decoder 14 is applied to the latch circuit 13, and when the signal is "0", the output signal is cut off. In addition, the 1 and 2 outputs of the code converter 12 are connected to the AND gate 16.
The two outputs are given to the gate 20 as opening/closing signals. The output signal of the AND gate 16 is applied to the timing generation circuit 18. and gate 20
When the output signal c whose output is " 1 " is applied to the gate 20, the gate 20 is opened and the output signal of the decoder 10 is applied to the latch circuit 11, and when the output signal is "0", the output signal is cut off. do.

タイミング発生回路18は入力信号aが「0」
であるとMPU2のアドレスコントロールバス
AB2及びデータバスDB2を選択すべくバスセ
レクタ4,5を制御し、入力信号aが「1」であ
るとアドレスコントロールバスAB1及びデータ
バスDB1を選択すべくバスセレクタ4,5を制
御するようになつている。また、タイミング発生
回路18がデータする待機信号ACK1,ACK2
は常時「1」であるがバスセレクタ4,5への制
御信号が削滅した時点、つまりメモリのアクセス
が終了した時点でクロツク信号φの1クロツク分
だけ「1」から「0」に反転するようになつてい
る。
The input signal a of the timing generation circuit 18 is "0".
Then, the MPU2 address control bus
Bus selectors 4 and 5 are controlled to select AB2 and data bus DB2, and when input signal a is "1", bus selectors 4 and 5 are controlled to select address control bus AB1 and data bus DB1. It's summery. In addition, the standby signals ACK1 and ACK2 dataed by the timing generation circuit 18 are
is always "1", but when the control signals to the bus selectors 4 and 5 are removed, that is, when the memory access is completed, it is inverted from "1" to "0" by one clock of the clock signal φ. It's becoming like that.

NANDゲート17はデコーダ10の出力信号
又は待機信号ACK1が「0」となつたとき「1」
のレデイ信号eをMPU1の待機信号入力端子に
与えるようになつている。一方NANDゲート1
9はデコーダ14の出力信号又は待機信号ACK
2が「0」となつたとき「1」のレデイ信号fを
MPU2の待機信号入力端子に与えるようになつ
ている。両MPU1,2はレデイ信号が「1」で
ある場合は演算処理を実行できるが、これが
「0」である場合は待機状態となる。
The NAND gate 17 becomes "1" when the output signal of the decoder 10 or the standby signal ACK1 becomes "0".
The ready signal e is applied to the standby signal input terminal of the MPU 1. On the other hand, NAND gate 1
9 is the output signal of the decoder 14 or the standby signal ACK
When 2 becomes "0", the ready signal f of "1" is sent.
It is designed to be applied to the standby signal input terminal of MPU2. Both MPUs 1 and 2 can execute arithmetic processing when the ready signal is "1", but are in a standby state when it is "0".

次にこのように構成したメモリアクセス回路の
動作を説明する。いま、MPU1がメモリ3のデ
ータを読出す場合は、チツプセレクト信号CS1
及びリード信号RD1を「1」とする一方、アド
レス信号を出力する。それによりデコーダ10の
出力は「1」となり、ラツチ回路11の出力信号
aはクロツク信号φの立上りで「1」となる。こ
の「1」の出力信号はコード変換器12の入力端
子A及びタイミング発生回路18に与えられる。
タイミング発生回路18はa=「1」であるから
バスセレクタ4,5を制御してアドレスコントロ
ールバスAB1及びデータバスDB1を選択して
メモリ3へのアクセスが行われる。
Next, the operation of the memory access circuit configured as described above will be explained. Now, when MPU1 reads data from memory 3, chip select signal CS1
and sets the read signal RD1 to "1" while outputting an address signal. As a result, the output of the decoder 10 becomes "1", and the output signal a of the latch circuit 11 becomes "1" at the rising edge of the clock signal φ. This output signal of "1" is applied to input terminal A of code converter 12 and timing generation circuit 18.
Since a=1, the timing generation circuit 18 controls the bus selectors 4 and 5 to select the address control bus AB1 and the data bus DB1 to access the memory 3.

一方、NANDゲート17が出力するレデイ信
号eは「0」となり、MPU1はアクセスの待機
状態となる。MPU2がアクセスしていないもの
とすると信号bは「0」であるから、その2
Y1出力は「1」,「0」となりANDゲート16の
出力は「0」である。同時にANDゲート15に
3出力「1」,「0」が与えられて出力信号d
は「0」となりゲート21を閉じる。この間、
MPU2がアクセスを行うとデコーダ14の出力
信号は「1」となり、その信号とともにタイミン
グ発生回路18の待機信号ACK2がNANDゲー
ト19に与えられてNANDゲート19の出力は
「0」となりMPU2は待機状態になる。ゲート2
1は閉じられているからデコーダ13出力は変化
しない。しかして、前述したMPU1のアクセス
が終了すると、メモリのアクセス終了時点でタイ
ミング発生回路18は待機信号ACK1を「0」
に反転する。そのためレデイ信号eは「1」とな
つてMPU1の待機状態を解消させる。これによ
りMPU1はチツプセレクト信号CS1及びリード
信号RD1を「0」にする。そうするとa=「0」
となりANDゲート15出力dが「0」となつて
ゲート21が開く。前述のようにMPU2がアク
セスして待機状態となつていた場合はこれによつ
てラツチ回路13出力bが「1」となりコード変
換器12出力が「0」となつてゲート20を閉
じる。このとき信号a=「0」であるからタイミ
ング発生回路18はバスセレクタ4,5を制御
し、MPU2によるメモリ3のアクセスを行わせ、
その後、ACK2を「0」としてレデイ信号f=
「1」としてMPU2の待機状態を解消させる。
On the other hand, the ready signal e output by the NAND gate 17 becomes "0", and the MPU 1 enters an access standby state. Assuming that MPU2 is not accessing, signal b is "0", so 2 ,
The Y1 outputs are "1" and "0", and the output of the AND gate 16 is "0". At the same time, three outputs "1" and "0" are given to the AND gate 15, and the output signal d
becomes "0" and the gate 21 is closed. During this time,
When the MPU2 accesses, the output signal of the decoder 14 becomes "1", and along with that signal, the standby signal ACK2 of the timing generation circuit 18 is given to the NAND gate 19, and the output of the NAND gate 19 becomes "0", and the MPU2 is in a standby state. become. gate 2
1 is closed, so the output of the decoder 13 does not change. When the above-mentioned MPU1 access ends, the timing generation circuit 18 sets the standby signal ACK1 to "0" at the end of the memory access.
to be reversed. Therefore, the ready signal e becomes "1" and the MPU 1 is released from the standby state. As a result, the MPU1 sets the chip select signal CS1 and read signal RD1 to "0". Then a=“0”
Then, the AND gate 15 output d becomes "0" and the gate 21 opens. As mentioned above, if the MPU 2 has accessed and is in the standby state, the output b of the latch circuit 13 becomes "1", the output of the code converter 12 becomes "0", and the gate 20 is closed. At this time, since the signal a is "0", the timing generation circuit 18 controls the bus selectors 4 and 5 to cause the MPU 2 to access the memory 3,
After that, set ACK2 to "0" and ready signal f=
Set it to "1" to release the MPU2 from the standby state.

而して上述したところ反対にMPU2が先にア
クセスした場合も同様の動作を行い、MPU2の
アクセスが優先される。
As described above, on the contrary, when MPU2 accesses first, the same operation is performed, and the access of MPU2 is given priority.

MPU1とMPU2とがメモリ3を同時にアクセ
スした場合には、デコーダ10及び14の出力信
号はともに「1」となり、ラツチ回路11,13
の各出力信号a,bはともに「1」となる。従つ
てコード変換器12の3出力は、「0」、2出力
は、「1」,「0」となりANDゲート15の出力信
号dが「0」となつてゲート21が閉じる。一方
ANDゲート16の出力信号は「1」となり、タ
イミング発生回路18はアドレスコントロールバ
スAB1及びデータバスDB1を選択するように
バスセレクタ4,5を制御する。つまり同時アク
セスの場合にはMPU1によるアクセスが優先す
る。なお、待機信号ACK1,ACK2による
MPU1,2の待機、待機解消動作は既に説明し
たと同様である。
When MPU1 and MPU2 access memory 3 at the same time, the output signals of decoders 10 and 14 are both "1", and latch circuits 11 and 13
The respective output signals a and b are both "1". Therefore, the three outputs of the code converter 12 are "0" and the two outputs are "1" and "0", and the output signal d of the AND gate 15 becomes "0", and the gate 21 is closed. on the other hand
The output signal of the AND gate 16 becomes "1", and the timing generation circuit 18 controls the bus selectors 4 and 5 to select the address control bus AB1 and the data bus DB1. In other words, in the case of simultaneous access, access by MPU 1 has priority. In addition, depending on the standby signals ACK1 and ACK2
The standby and standby cancellation operations of the MPUs 1 and 2 are the same as those already described.

なお本考案は3つ以上のMPUが1つのメモリ
にアクセスする場合にも同様に適用できる。
Note that the present invention can be similarly applied to cases where three or more MPUs access one memory.

〔効果〕〔effect〕

以上詳述した如く、本考案によればアクセスが
先行しているMPUのアクセスが優先し、また複
数のMPUが同時に同一のメモリ回路をアクセス
した場合は、特定のMPUのアクセスを優先する。
そしてMPUのアクセス中はMPUをアクセス待機
状態にして、待機状態が解消すると、自由にアク
セスが開始し得るから、アクセスするに先立つて
MPUはアクセス中か否かの判断を繰返し行う必
要がない。
As detailed above, according to the present invention, priority is given to the access of the MPU that is accessing first, and when multiple MPUs access the same memory circuit at the same time, priority is given to the access of a specific MPU.
While the MPU is being accessed, the MPU is placed in a standby state, and once the standby state is released, access can be started freely.
The MPU does not need to repeatedly judge whether or not it is being accessed.

したがつて、本考案のメモリアクセス回路では
遅れてアクセスする、或いは従たるMPUの負担
が軽減され、他のMPUのアクセスが終えると直
ちにそのアクセスができて高速化を実現すること
ができる優れた効果を奏する。
Therefore, the memory access circuit of the present invention is an excellent memory access circuit that performs delayed access or reduces the burden on subordinate MPUs, and can access the memory immediately after other MPUs have finished accessing it, thereby achieving faster speeds. be effective.

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

第1図は本考案に係るメモリアクセス回路のブ
ロツク図、第2図は従来のメモリアクセス回路の
ブロツク図、第3図及び第4図はアクセス内容を
示すフローチヤートである。 1,2……MPU(演算処理装置)、3……メモ
リ、4,5……バスセレクタ、10……デコー
ダ、11……ラツチ回路、12……コード変換
器、13……ラツチ回路、14……デコーダ、1
8……タイミング発生回路、AB1,AB2……
アドレスコントロールバス、DB1,DB2……
データバス。
FIG. 1 is a block diagram of a memory access circuit according to the present invention, FIG. 2 is a block diagram of a conventional memory access circuit, and FIGS. 3 and 4 are flowcharts showing access contents. 1, 2...MPU (processing unit), 3...Memory, 4, 5...Bus selector, 10...Decoder, 11...Latch circuit, 12...Code converter, 13...Latch circuit, 14 ...Decoder, 1
8... Timing generation circuit, AB1, AB2...
Address control bus, DB1, DB2...
data bus.

Claims (1)

【実用新案登録請求の範囲】 複数の演算処理装置で同一メモリをアクセスす
べく構成しているメモリアクセス回路において、 前記メモリをアクセスすべく夫々の前記演算処
理装置が出力する制御信号を格別に与えるデコー
ダと、この制御信号が入力された場合に発せらる
各デコーダ出力をゲートを介して各別に与えるコ
ード変換器と、このコード変換器の出力及び特定
の演算処理装置に連なるゲート出力を入力とし、
各演算処理装置とメモリとの間のバスの選択制御
を行うと共にこの選択制御に関連するタイミング
で内容を変じる待機制御信号を発するタイミング
発生回路と、該待機制御信号と各演算処理装置が
出力する前記制御信号を与える前記デコーダ出力
の夫々とを入力とし、その出力を各演算処理装置
の待機状態制御端子へ与えている論理回路とを具
備し、また前記コード変換器出力を前記ゲートの
開閉制御信号としており、 いずれかの演算処理装置がメモリをアクセスし
ている場合は他の演算処理装置に係る前記ゲート
を閉じると共に、 タイミング発生回路は、前記他の演算処理装置
が前記制御信号を発した場合に前記論理回路から
該演算処理装置を待機状態とすべき信号を発せし
め、また、前記特定の演算処理装置を含む複数の
演算処理装置が前記制御信号を同時的に出力した
場合は、前記特定の演算処理装置のアクセスを優
先させるべくなしてあることを特徴とするメモリ
アクセス回路。
[Claims for Utility Model Registration] In a memory access circuit configured to allow a plurality of arithmetic processing units to access the same memory, a control signal output by each of the arithmetic processing units to access the memory is specially provided. A decoder, a code converter that separately provides each decoder output via a gate when this control signal is input, and the output of this code converter and the gate output connected to a specific arithmetic processing unit as inputs. ,
A timing generation circuit that performs bus selection control between each arithmetic processing unit and memory and generates a standby control signal whose content changes at a timing related to this selection control, and outputs the standby control signal and each arithmetic processing unit. a logic circuit that receives each of the decoder outputs that provide the control signal to be input, and provides the output to a standby state control terminal of each arithmetic processing unit; The control signal is used as a control signal, and when one of the arithmetic processing units is accessing the memory, the gate related to the other arithmetic processing unit is closed, and the timing generation circuit causes the other arithmetic processing unit to generate the control signal. In this case, the logic circuit issues a signal to put the arithmetic processing device into a standby state, and when a plurality of arithmetic processing devices including the specific arithmetic processing device simultaneously output the control signal, A memory access circuit characterized in that the memory access circuit is configured to give priority to access by the specific arithmetic processing unit.
JP4131887U 1987-03-20 1987-03-20 Expired JPH0454522Y2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4131887U JPH0454522Y2 (en) 1987-03-20 1987-03-20

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4131887U JPH0454522Y2 (en) 1987-03-20 1987-03-20

Publications (2)

Publication Number Publication Date
JPS63151054U JPS63151054U (en) 1988-10-04
JPH0454522Y2 true JPH0454522Y2 (en) 1992-12-21

Family

ID=30856204

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4131887U Expired JPH0454522Y2 (en) 1987-03-20 1987-03-20

Country Status (1)

Country Link
JP (1) JPH0454522Y2 (en)

Also Published As

Publication number Publication date
JPS63151054U (en) 1988-10-04

Similar Documents

Publication Publication Date Title
JPH01147647A (en) Data processor
JPS6411981B2 (en)
JPH0454522Y2 (en)
JPS6024980B2 (en) microcomputer
JPS6137084Y2 (en)
JPH02103654A (en) Input-output device for operation controller
JPS6130300B2 (en)
JP3048762B2 (en) Semiconductor integrated circuit device
JP2634609B2 (en) Data transfer device
JPH0248916Y2 (en)
JPH01147648A (en) Data memory device
JP2000132451A (en) Memory control circuit
JPH01239664A (en) Common memory arbitration device
JPS6127785B2 (en)
JPS60169969A (en) Multiprocessor system
JP2619124B2 (en) Pipeline access memory
JPH07121429A (en) Dual port memory circuit
JPS5926415Y2 (en) Digital interface circuit
JPS6214866B2 (en)
JPS61267852A (en) Data bus conversion system
JPH0756860A (en) Multi-cpu system
JPH05135188A (en) Microcomputer
KR19990040389A (en) Bus device
JPH0120453B2 (en)
JPS6197759A (en) Memory control system