JPH0120453B2 - - Google Patents

Info

Publication number
JPH0120453B2
JPH0120453B2 JP16476182A JP16476182A JPH0120453B2 JP H0120453 B2 JPH0120453 B2 JP H0120453B2 JP 16476182 A JP16476182 A JP 16476182A JP 16476182 A JP16476182 A JP 16476182A JP H0120453 B2 JPH0120453 B2 JP H0120453B2
Authority
JP
Japan
Prior art keywords
arithmetic processing
access
circuit
bus
processing units
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
JP16476182A
Other languages
Japanese (ja)
Other versions
JPS5953958A (en
Inventor
Osamu Suzuki
Yoshitaka Oomori
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co Ltd
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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP16476182A priority Critical patent/JPS5953958A/en
Publication of JPS5953958A publication Critical patent/JPS5953958A/en
Publication of JPH0120453B2 publication Critical patent/JPH0120453B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling 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)

Description

【発明の詳細な説明】 本発明はメモリアクセス回路、特に2個の演算
処理装置の各々によつて同一メモリをアクセスす
るメモリアクセス回路に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a memory access circuit, and particularly to a memory access circuit in which each of two arithmetic processing units accesses the same memory.

近年の高速フアクシミリ装置に於いては、画信
号の高速処理を画るために、原稿から読取つた画
情報データをメモリに書込んで行きながら、この
メモリの既に書込みが終了した番地のデータを読
出して圧縮符号化等を行なつている。このように
メモリの書込みと読出しを並行して実行するに
は、通常、マイクロプロセツサ(以下、MPUと
略記する)等の演算処理装置を2個使用し、その
一方が書込みアクセスを実行している時に、他方
が読出しアクセスを行なうようにしていた。
In recent high-speed facsimile machines, in order to perform high-speed processing of image signals, while writing the image information data read from the original into the memory, the data at the address where writing has already been completed is read out from this memory. compression encoding, etc. To execute memory writes and reads in parallel in this way, two arithmetic processing units such as microprocessors (hereinafter abbreviated as MPUs) are usually used, and one of them executes the write access. When the other party is in the same state, the other party is allowed to perform read access.

すなわち、第1図はMPUを2個使用して上述
の如きアクセスを行なう従来のアクセス回路を示
しており、1,2は第1第2MPU、3はRAM
(ランダム・アクセス・メモリ)、4,5は上記第
1第2MPU1,2のアドレス・コントロールバス
AB1,AB2に夫々設けられた第1第2バスゲート
回路、6,7は同様に上記各MPUのデータバス
DB1,DB2に夫々設けられた第3第4のバスゲー
ト回路、8,9は第1第2MPUから前記各バス
AB1,AB2を通つて送られるアドレス信号を検知
して先の第1第3バスゲート回路4,6及び第2
第4バスゲート回路2,7を開くよう制御する第
1第2デコーダ回路、L1,L2は第1第2MPUが
夫々アクセス動作中であることを示す信号a,b
(アクセス時に何れも“1”となる)が出力され
る信号ラインである。なお、メモリのW/R(書
込み・読出し)制御信号等が通るコントロールバ
スは、本来、アドレスバスとは別のものである
が、ここでは便宜上その両者を一括して前述の如
くアドレス・コントロールバスと称している。
That is, FIG. 1 shows a conventional access circuit that performs the above-mentioned access using two MPUs, 1 and 2 are the first and second MPUs, and 3 is the RAM.
(Random access memory), 4 and 5 are address control buses of the first and second MPUs 1 and 2 above.
The first and second bus gate circuits provided in AB 1 and AB 2 respectively, and 6 and 7 are the data buses of each MPU mentioned above.
3rd and 4th bus gate circuits provided in DB 1 and DB 2 , respectively; 8 and 9 connect the first and second MPUs to the respective buses;
Detecting the address signal sent through AB 1 and AB 2 , the first and third bus gate circuits 4 and 6 and the second
The first and second decoder circuits control opening of the fourth bus gate circuits 2 and 7, and L1 and L2 are signals a and b indicating that the first and second MPUs are in access operation, respectively.
(all become "1" at the time of access) are output signal lines. Note that the control bus through which memory W/R (write/read) control signals, etc. pass is originally separate from the address bus, but for convenience, both are collectively referred to as the address/control bus as described above. It is called.

この第1図の動作は第2図A,Bに夫々示す第
1第2MPU1,2のプログラムフローチヤートか
ら明らかなように、例えば第1MPU1がRAM3
をアクセス(書込み又は読出し)する場合には、
アクセスに先立ち信号a,a=“1”を出力し、
そののち第2MPU2からの信号bをチエツクし、
b=“0”であることを確認したら、そのアクセ
スしようとする番地のアドレス信号及びW/R制
御信号をバスAB1に導出する。この時、第1デコ
ーダ回路8は上記アドレス信号を検知して第1第
3バスゲート回路4,6を開くので、RAM3の
上記番地の書込み又は読出しが行なわれ、その終
了後に先の信号aをa=“0”に戻すのである。
また第2MPU2によるアクセスの場合も同様であ
る。尚、第1MPU1と第2MPU2とが同時にアク
セスされた場合には、第1MPU1の処理が優先す
る。
As is clear from the program flowcharts of the first and second MPUs 1 and 2 shown in FIGS. 2A and 2B, the operation shown in FIG.
When accessing (writing or reading)
Prior to access, output signals a, a="1",
After that, check the signal b from the second MPU2,
After confirming that b="0", the address signal and W/R control signal of the address to be accessed are derived to the bus AB1 . At this time, the first decoder circuit 8 detects the address signal and opens the first and third bus gate circuits 4 and 6, so that writing or reading of the address in the RAM 3 is performed, and after that, the previous signal a is read. It returns a to "0".
The same applies to access by the second MPU2. Note that when the first MPU 1 and the second MPU 2 are accessed at the same time, the processing of the first MPU 1 takes priority.

ところで、斯る従来例では第1第2MPU1,2
ともそれぞれの処理を並行して進めることができ
るが、RAM3をアクセスする場合に他方がアク
セス中であるか否かを判断する必要があるため、
上記各MPUのプログラムが複雑になると共に、
メモリアクセスの際の一連の処理が終了するのに
時間が比較的長くかかると云う欠点がある。
By the way, in such a conventional example, the first and second MPUs 1 and 2
Both processes can proceed in parallel, but when accessing RAM3, it is necessary to determine whether the other is currently accessing.
As the programs for each of the above MPUs become more complex,
The disadvantage is that it takes a relatively long time to complete a series of processes during memory access.

そこで、本発明は斯る欠点を解消すべくなされ
たものであり、以下、その一実施例について説明
する。
Therefore, the present invention has been devised to eliminate such drawbacks, and one embodiment thereof will be described below.

第3図に示す本発明の実施例では第1図と同一
のものに同じ図番を付し異なる点についてのみ説
明すると、第1デコーダ8の出力によつて切換わ
る第1第2のバスセレクタ回路11,12を設
け、その第1バスセレクタ回路11をRAM3と
第1第2MPU1,2の各アドレス・コントロール
バスAB1,AB2との間に接続し、第2バスセレク
タ回路12をRAM3と上記第1第2MPUの各デ
ータバスDB1,DB2との間に接続すると共に、第
1第2デコーダ回路8,9の各出力を入力とする
アンドゲート13の出力でセツトされるRSフリ
ツプ・フロツプ14をアクセスオーバラツプ検出
回路として設け、その出力S,S=“1”が第
2MPU2に入力された時にこの第2MPUが前記
RAM3の同一番地を再度アクセスし、その後に
信号r,r=“1”を出力して上記フリツプ・フ
ロツプ14をリセツトするようになつている。
In the embodiment of the present invention shown in FIG. 3, the same parts as in FIG. Circuits 11 and 12 are provided, the first bus selector circuit 11 is connected between the RAM 3 and each address/control bus AB 1 and AB 2 of the first and second MPUs 1 and 2, and the second bus selector circuit 12 is connected between the RAM 3 and the address/control buses AB 1 and AB 2 of the first and second MPUs 1 and 2, respectively. The RS flip circuit is connected between the data buses DB 1 and DB 2 of the first and second MPUs and is set by the output of an AND gate 13 which receives the outputs of the first and second decoder circuits 8 and 9 as inputs. The flop 14 is provided as an access overlap detection circuit, and its output S, S="1" is the first
2When input to MPU2, this second MPU
The same address in the RAM 3 is accessed again, and then signals r, r="1" are outputted to reset the flip-flop 14.

斯る実施例に於いて、先ず第1MPU1がRAM
3をアクセス(書込み又は読出し)する時は、第
1MPU1からバスAB1を通つて出力されたアドレ
ス信号とW/R制御信号のうちアドレス信号を第
1デコーダ回路9が検知し、その検知出力CS1
(第5図参照)によつて第1第2バスセレクタ回
路11,12(この両回路は通常はバスAB2
DB2側に切換つている)を夫々バスAB1,DB1
に切換えることにより、そのアクセスが実行され
る。その際、この動作は、第4図Aに示す第
1MPU1のプログラムフローチヤートからも明ら
かなように、第2MPU2の動作とは全く関係なく
独立して行なわれる。次に第2MPU2がRAM3
をアクセス(書込み又は読出し)する時は、第1
第2バスセレクタ回路11,12は前述の如く
夫々バスAB1,AB2側に切換わつているので、そ
のアクセスが直ちに行なわれることになる。しか
し、その際、前述と同様に第2MPU2からのアド
レス信号を検知する第2デコーダ回路9の出力
CS2が先の第1デコーダ回路8の出力CS1とオー
バラツプするタイミングで出力(第5図参照)さ
れた時即ちRAM3が第1第2MPU1,2によつ
て略同時にアクセスされた時は、アンドゲート1
3の出力によつてセツトされたフリツプ・フロツ
プ14の出力S,S=“1”が第2MPU2に入力
される。それ故、この第2MPU2は、先のアクセ
スが正しく実行されなかつたと判断してRAM3
の前と同一番地を再度アクセスし、その後に上記
フリツプ・フロツプ14を信号rでリセツトする
(第5図参照)のである。この場合の第2MPU2
のプログラムフローチヤートが第4図Bに示され
ている。
In this embodiment, first, the first MPU 1 uses RAM.
When accessing (writing or reading) 3.
The first decoder circuit 9 detects the address signal among the address signal and W/R control signal outputted from the 1MPU 1 through the bus AB 1 , and outputs the detection output CS 1.
(see FIG. 5), the first and second bus selector circuits 11, 12 (both circuits normally connect buses AB 2 ,
The access is executed by switching the buses AB 1 and DB 1 to the buses AB 1 and DB 1, respectively. In this case, this operation is performed as shown in FIG. 4A.
As is clear from the program flowchart of the 1MPU 1, it is performed independently and completely unrelated to the operation of the 2nd MPU 2. Next, the second MPU2 is RAM3
When accessing (writing or reading)
Since the second bus selector circuits 11 and 12 have been switched to the buses AB 1 and AB 2 , respectively, as described above, the access is immediately performed. However, in this case, the output of the second decoder circuit 9 that detects the address signal from the second MPU 2 as described above
When CS 2 is output at a timing that overlaps with the output CS 1 of the first decoder circuit 8 (see FIG. 5), that is, when the RAM 3 is accessed by the first and second MPUs 1 and 2 almost simultaneously, the AND gate 1
The outputs S, S="1" of the flip-flop 14 set by the output of the second MPU 3 are input to the second MPU 2. Therefore, this second MPU2 determines that the previous access was not executed correctly and uses the RAM3.
The same address as before is accessed again, and then the flip-flop 14 is reset with the signal r (see FIG. 5). 2nd MPU2 in this case
A program flowchart is shown in FIG. 4B.

ここで、第1MPU1がRAM3を2回以上連続
してアクセスする場合でも、アドレス(信号)の
インクリメント、読出したデータの保存又は次に
書込むデータの準備、最終アドレスか否かの判断
等に若干の時間を要するので、第2MPU2がフリ
ツプ・フロツプ14の出力S,S=“1”を得た
場合は、同一番地の2回目のアクセスをその1回
目のアクセスの終了後直ちに(第5図参照)すれ
ば、2回目のアクセスは必ず正しく実行されるこ
となり、従つて、2回目のアクセス後に前記フリ
ツプ・フロツプ14を無条件にリセツトすればよ
い訳である。
Here, even if the first MPU 1 accesses the RAM 3 two or more times in succession, there will be some delays in incrementing the address (signal), saving the read data or preparing the next data to be written, and determining whether it is the final address or not. Therefore, when the second MPU 2 obtains the output S, S = "1" from the flip-flop 14, it accesses the same address a second time immediately after the first access (see Figure 5). ), the second access will definitely be executed correctly, and therefore, it is sufficient to unconditionally reset the flip-flop 14 after the second access.

なお、叙上の説明では第2MPU2による同一番
地の2回目のアクセスが正しく行なわれたか否か
のチエツクは、前述の理由によつて不要であると
したが、勿論行なうようにしてもよい。その場合
は、2回目のアクセスの前に前述のリセツト信号
rを出力すればよい訳であるが、ただしこの場合
には2回目のチエツクに要する時間だけ長く時間
がかかることになる。
In the above explanation, it is assumed that checking whether or not the second access to the same location was correctly performed by the second MPU 2 is unnecessary for the above-mentioned reason, but it may of course be performed. In that case, it is sufficient to output the above-mentioned reset signal r before the second access, but in this case, it will take as much time as the second check.

以上の如く本発明のメモリアクセス回路に依れ
ば、マイクロプロセツサ等の演算処理装置を2個
使用し、その各々によつて同一のメモリをアクセ
スする場合に、一方の演算処理装置は他方の演算
処理装置の動作に全く無関係にアクセスでき、ま
た、他方の演算処理装置もメモリをアクセスした
後にそのアクセスのオーバラツプを検出する回路
の出力をチエツクし、その検出出力がセツトされ
ておれば上記メモリの同一番地を再度アクセスす
ると共に、上記検出回路をリセツトするだけでよ
く、相手側の演算処理装置がアクセス中であるか
否かを全く判断する必要がない。それゆえ、2個
の演算処理装置の各々による高速アクセスが可能
となり、また、その各プログラムも非常に簡単に
組むことができるので、高速フアクシミリ装置等
に好適である。
As described above, according to the memory access circuit of the present invention, when two arithmetic processing units such as microprocessors are used and each of them accesses the same memory, one arithmetic processing unit can access the other arithmetic processing unit. It can be accessed completely independently of the operation of the arithmetic processing unit, and after the other arithmetic processing unit also accesses the memory, it checks the output of a circuit that detects overlap in the access, and if the detection output is set, the memory is accessed. It is only necessary to access the same address again and reset the detection circuit, and there is no need to judge whether or not the other party's arithmetic processing unit is accessing. Therefore, high-speed access by each of the two arithmetic processing units is possible, and each program can be assembled very easily, making it suitable for high-speed facsimile machines and the like.

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

第1図は従来のメモリアクセス回路を示すブロ
ツク図、第2図はこの場合のマイクロプロセツサ
のプログラムフローチヤートを示す図、第3図は
本発明の一実施例を示すブロツク図、第4図はそ
の場合のマイクロプロセツサのプログラムフロー
チヤートを示す図、第5図は第3図の各部のタイ
ムチヤートを示す図である。 1,2……第1第2マイクロプロセツサ、3…
…ランダムアクセスメモリ、8,9……第1第2
デコーダ回路、11,12……第1第2バスセレ
クタ回路、14……RSフリツプ・フロツプ(ア
クセスオーバラツプ検出回路)。
FIG. 1 is a block diagram showing a conventional memory access circuit, FIG. 2 is a diagram showing a program flowchart of a microprocessor in this case, FIG. 3 is a block diagram showing an embodiment of the present invention, and FIG. 5 is a diagram showing a program flowchart of the microprocessor in that case, and FIG. 5 is a diagram showing a time chart of each part of FIG. 3. 1, 2...first and second microprocessors, 3...
...Random access memory, 8, 9...1st 2nd
Decoder circuit, 11, 12...first and second bus selector circuit, 14...RS flip-flop (access overlap detection circuit).

Claims (1)

【特許請求の範囲】[Claims] 1 2個の演算処理装置と、この演算処理装置の
各々によつてアクセスされるメモリ回路と、この
メモリ回路を前記各演算処理装置のアドレスバス
及びデータバスにそれぞれ選択的に接続するバス
セレクタ回路と、前記各演算処理装置によるアク
セス時がオーバラツプした際にそれを検出してセ
ツトされる検出回路とを備え、前記バスセレクタ
回路は一方の演算処理装置によつて切換られ、前
記検出回路は検出出力を他方の演算処理装置に入
力し、この他方の演算処理装置は上記検出出力を
得ると前記メモリ回路の同一番地を再度アクセス
すると共に前記検出回路をリセツトするようにし
てなるメモリアクセス回路。
1. Two arithmetic processing units, a memory circuit accessed by each of the arithmetic processing units, and a bus selector circuit that selectively connects the memory circuit to the address bus and data bus of each of the arithmetic processing units. and a detection circuit that detects and sets when access times by the respective arithmetic processing units overlap, the bus selector circuit being switched by one of the arithmetic processing units, and the detection circuit detecting overlap. An output is input to another arithmetic processing unit, and when the other arithmetic processing unit obtains the detection output, it accesses the same location of the memory circuit again and resets the detection circuit.
JP16476182A 1982-09-20 1982-09-20 Memory access circuit Granted JPS5953958A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16476182A JPS5953958A (en) 1982-09-20 1982-09-20 Memory access circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16476182A JPS5953958A (en) 1982-09-20 1982-09-20 Memory access circuit

Publications (2)

Publication Number Publication Date
JPS5953958A JPS5953958A (en) 1984-03-28
JPH0120453B2 true JPH0120453B2 (en) 1989-04-17

Family

ID=15799421

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16476182A Granted JPS5953958A (en) 1982-09-20 1982-09-20 Memory access circuit

Country Status (1)

Country Link
JP (1) JPS5953958A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63107057U (en) * 1986-12-26 1988-07-11

Also Published As

Publication number Publication date
JPS5953958A (en) 1984-03-28

Similar Documents

Publication Publication Date Title
JPH0120453B2 (en)
JPS6125173B2 (en)
JPH03668B2 (en)
JPS646489B2 (en)
JPH09231122A (en) Processor system
JPS58114258A (en) Data processor
JPS59229662A (en) Common memory control circuit
JPS6349811B2 (en)
JP2539064B2 (en) Microprocessor
JP2634609B2 (en) Data transfer device
JPH0414438B2 (en)
JPS6167147A (en) Scan-in scan-out system of integrated circuit
JP2554423Y2 (en) Memory controller
JP2884620B2 (en) Digital image processing device
JP2716284B2 (en) Semiconductor integrated circuit
JP3219422B2 (en) Cache memory control method
JPH0474254A (en) Microprocessor diagnostic system
JPS6116094B2 (en)
JPH0554005A (en) Multiprocessor system
JPS63197260A (en) Memory device control system
JPS63168758A (en) Multi-bus control system
JPH04330549A (en) Controller
JPH0721078A (en) Computer system
JPH02171949A (en) Dma transfer system
JPH0656603B2 (en) Data processing system