JPS60110065A - Dual port memory - Google Patents

Dual port memory

Info

Publication number
JPS60110065A
JPS60110065A JP21989783A JP21989783A JPS60110065A JP S60110065 A JPS60110065 A JP S60110065A JP 21989783 A JP21989783 A JP 21989783A JP 21989783 A JP21989783 A JP 21989783A JP S60110065 A JPS60110065 A JP S60110065A
Authority
JP
Japan
Prior art keywords
bit
bit system
access
port memory
system bus
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
JP21989783A
Other languages
Japanese (ja)
Inventor
Iwao Arimori
有森 巌
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP21989783A priority Critical patent/JPS60110065A/en
Publication of JPS60110065A publication Critical patent/JPS60110065A/en
Pending 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

Abstract

PURPOSE:To prevent a defect of data transmission between systems of different number of bits by prescribing a fixed time width during which the access is possible with a system and starting again the transfer of data in the next access mode in case the data transfer is not finished within said fixed time. CONSTITUTION:When an access request is given from a 16-bit system, a 16-bit system bus A is connected to a dual port memory D after the access is validated in a certain time width. Then the 16-bit data transmitted via the bus A is written to an address within the memory D designated by an address signal sent via the bus A. In case an access request is given from an 8-bit system in the same time width, an 8-bit system bus B permitted in the next time width is connected to the memory D via a buffer F.

Description

【発明の詳細な説明】 〔発明の技術分野〕 この発明はマイクロコンビーータ等において16ビツト
システム及び8ビツトシステムの双方からアクセス用能
なデュアルポートメモリ(dual portmemo
 ry )を有するデュアルポートメモリ装置に関する
ものである。
Detailed Description of the Invention [Technical Field of the Invention] The present invention provides a dual port memory (dual port memory) that can be accessed from both a 16-bit system and an 8-bit system in a microconverter, etc.
ry).

〔従来技術〕[Prior art]

従来この種の装置として第1図に示すものがめった。図
において囚は16ビツトマイクロコンピユータシステム
専用のバス(この明細1瞥では16ビツトシステムバス
という) 、(Blは8ビットマイクロコンピュータシ
ステム専用のバス(この明細書では8′ビツトシステム
バスという、l、(c)はアクセス裁定回路、(D)は
デュアルポートメモリである。デュアルポートメモ+3
 ff)lは調で構成される。
Conventionally, a device of this type is shown in FIG. 1. In the figure, Bl is a bus dedicated to a 16-bit microcomputer system (referred to as a 16-bit system bus in this specification), (Bl is a bus dedicated to an 8-bit microcomputer system (referred to as an 8'-bit system bus in this specification), (c) is the access arbitration circuit, (D) is the dual port memory.Dual port memory +3
ff) l is composed of keys.

16ビツトシステムのマイクロコンピュータ(図示せず
)及び8ピントシステムのマイクロコンピュータ(図示
せずンがデュアルポートメモ’J (D)にアクセスし
ようとするときは、それぞれ16ビツトシステムバス(
A)及び8ビツトシステムバス(B)を経てアクセス裁
定回路(Clヘアクセス要求を送る。アクセス裁定1p
1路(C1は、双方からのアクセス費求が競合しない時
はアクセス要求のあった方のシステムバスをプーアルボ
ートメモリ(D)に接続する。双方からのアクセス装〉
kが競合したときは、あらかじめ定める1・p先順位に
従って、いずれかのシステムへアクセス権を与える。但
し、従来の方法では、アクセス4介が与えられてアクセ
ス中であればそのアクセスを中断するような制御を行わ
ず、丑た、アクセス軸を<<tてアクセス中のシステム
はデータ転送が終了したとき、その終了を示すフラグを
システムバスを経てアクセス裁一定回路(C)を介し相
手方のシステムバスに送出した。
When a 16-bit system microcomputer (not shown) and an 8-pin system microcomputer (not shown) attempt to access the dual port memory 'J (D), they each use a 16-bit system bus (
Sends an access request to the access arbitration circuit (Cl) via A) and the 8-bit system bus (B).Access arbitration 1p
Route 1 (C1 connects the system bus that requested access to the pool port memory (D) when access fees from both sides do not conflict. Access device from both sides)
When k conflicts, access rights are given to one of the systems according to a predetermined 1·p priority order. However, in the conventional method, if the access axis is given and the access is in progress, control is not performed to interrupt the access, and if the access axis is When this happens, a flag indicating the end is sent to the other party's system bus via the access arbitration circuit (C) via the system bus.

たとえば、 16ビツトシステムのマイクロコンピュー
タから8ビツトシステムのマイクロコンピュータにデー
タを転送するときは、16ビツトシステムバス(A)を
経て16ビツト単位のデータをデュアルボートメそりに
書込み4、この書込みが終了したことを示すフラグを8
ビツトシステム(Blに送ると、8ビツトシステムのマ
イクロコンピュータはアクセス裁定回路(C1にアクセ
ス要求を出し、アクセス権を得た上で、デュアルポート
メモIJ (DJの内容を8ビット単位で読出す。
For example, when transferring data from a 16-bit system microcomputer to an 8-bit system microcomputer, 16-bit units of data are written to the dual port memory via the 16-bit system bus (A)4, and this writing is completed. 8 flags indicating that
When data is sent to the bit system (B1), the microcomputer of the 8-bit system issues an access request to the access arbitration circuit (C1), obtains access rights, and reads out the contents of the dual port memory IJ (DJ) in 8-bit units.

逆に8ビツトシステムから16ビツトシステムへデータ
を伝送する場合も類似の手順で実行できる。
Conversely, a similar procedure can be used to transmit data from an 8-bit system to a 16-bit system.

従来の装置は以上のように構成されているので次のよう
庁欠点があった。すなわち、1つのシステムからアクセ
ス要求を出しても他のシステムがアクセス中であればそ
の終了を待たなければアクセス出来ず、もしアクセス中
のシステムに事故が発生してアクセスが終了しなかった
とすnば、後からアクセス要求を出したシステムは待た
された′!!:まになる。
Since the conventional device is constructed as described above, it has the following drawbacks. In other words, even if an access request is issued from one system, if another system is currently accessing, the access cannot be accessed until the other system is accessed.If an accident occurs in the system being accessed and the access is not completed, n For example, a system that made an access request later was forced to wait! ! : Manaru.

また、16ビツトシステムから見れば、8ビツトシステ
ムからデュアルポートメモリD)に書込む8ビツトのデ
ータは半分のデータであって、16ビ・ソトシステムの
1個のデータを構成する1対の8ビツトのデータが、8
ビツトシステムからデュアルボートノモリQ))への2
回のアクセスによって、16ビツトシステムの1つのア
ドレスに対応する連続したアドレス位1ばに正確に書込
まれることが必要である。従って、もし8ビツトシステ
ムからのメモリ(1))へのv1込みと16ビツトシス
テムによるメモ1月D)からの耽出しのタイミングの制
御を誤ると、意味のないデータを伝送したことになり、
ソフトエラーによる伝送不良となる。
Also, from the perspective of a 16-bit system, the 8-bit data written from the 8-bit system to the dual port memory D) is half of the data, and the 8-bit data that is written from the 8-bit system to the dual port memory D) is half the data. Bit data is 8
2 from bit system to dual boat memory Q))
It is necessary that consecutive address locations corresponding to one address in a 16-bit system be written accurately by one access. Therefore, if the timing of loading v1 into memory (1)) from an 8-bit system and releasing it from memory (1) D) by a 16-bit system is incorrectly controlled, meaningless data will be transmitted.
Transmission failure due to soft error.

同45に’に、16ビツトシステムからデュアルポート
メモリ0に1込んで、これを8ビツトシステムから読出
す場合にも、ソフトエラーによる伝送不良が発生しイ(
Iる。
Similarly, when writing 1 to dual port memory 0 from a 16-bit system and reading it from an 8-bit system, a transmission failure due to a soft error occurs (
I.

〔発明の41:を安〕 この発明は上記のような従来のものの欠点を除去するた
めになされたもので、この発明ではアクセス裁定回路に
時分割切換機能を付加して1つのシステムがアクセスで
きる時間の幅を一定の時間幅に規矩し、その時間幅の間
にデータ転送が終了しない場合は、そのシステムがアク
セスできる時間幅の次の周期まで待ってデータ転送を再
開するようにし、1つのシステムがデュアルポートメモ
リ0にアクセスしたままの状態で停止して、他方のシス
テムからのアクセスを不可能にするという欠点を除去し
た。
[Invention No. 41] This invention was made to eliminate the drawbacks of the conventional ones as described above, and in this invention, a time division switching function is added to the access arbitration circuit so that one system can access the system. If the time width is restricted to a certain time width, and data transfer does not end within that time width, data transfer is resumed after waiting until the next cycle of the time width that the system can access. This eliminates the drawback that the system stops while accessing dual port memory 0, making access from the other system impossible.

また、8ビツトシステムとプーアルボートメモリ(Dl
との間に16ビツトの双方向ラッチバッファを付加して
、デュアルポートメモ’J (1))への入出力はこの
ランチバッファから16ビツト単位で行われ、8ビツト
システムとこのラッチバッファの間の入出力は8ビット
単位で何うようにしてソフトエラーによる伝送不良を防
止した。すなわち、8ビツトシステムからメモリ■)へ
書込むときは、最初の8ビツトは単にラッチバッファへ
書込むだけの動作とし、更に連続したアドレスの8ビツ
トを書込むときに、これをラッチバッファへ書込むと共
に、ランチバッファの16ビツトを1ワードとしてメモ
リ0〕)へ冴込むことにした。また8ビツトシステムが
メモIJ [D)を読出すときは、最初の8ビツトを読
出すときにこれに続く8ビツトと合せた16ビツトのデ
ータを酢r、出してラッチバ・ソファにセットして・そ
のうちの8ビツトを8ビツトシステム側に読出し、8ビ
ットシステムが次の8ビツトを読出すときは、メモリ0
〕)にアクセスすることなく、ラッチバッファから残り
の8ビツトを読出すようにしたものである。
It also supports an 8-bit system and pool memory (DL).
A 16-bit bidirectional latch buffer is added between the 8-bit system and this latch buffer, and input/output to the dual port memory 'J (1)) is performed in 16-bit units from this launch buffer. The input/output was done in 8-bit units to prevent transmission failures due to soft errors. In other words, when writing from an 8-bit system to memory (2), the first 8 bits are simply written to the latch buffer, and when writing 8 bits of consecutive addresses, they are written to the latch buffer. At the same time, I decided to fill the 16 bits of the launch buffer into memory 0 as one word. Also, when the 8-bit system reads the memo IJ [D], when reading the first 8 bits, extract the 16-bit data including the following 8 bits and set it in the latch bar sofa. - When 8 bits of these are read to the 8-bit system side and the 8-bit system reads the next 8 bits, memory 0 is read out.
) The remaining 8 bits are read from the latch buffer without accessing the latch buffer.

〔発明の実施y1」〕 以1この発明の実施例を口開について説明する。[Practice of the invention y1”] Embodiments of the present invention will now be described with regard to mouth opening.

第2図はこの発明の一冥加1例を示すブロック図で、第
1図と同一符号は同−又は相当部分を示し、Eはクロッ
ク発生器、Fは双方向の16ビツトラツチバンフアであ
る。第3図はクロック発生器に)からの出力電圧の経過
を示す動作タイム図であって、横軸は時間tで、Toは
切換の一周期、TAは16ビノトシステムのアクセスを
有効とする時間 TBは8ビツトシステムのアクセスを
有効とする時間であり、クロック発生器(E)の出力論
理は、たとえばT の間がrlJ、T の間が「0」と
する。
FIG. 2 is a block diagram showing one example of the addition of this invention, in which the same reference numerals as in FIG. 1 indicate the same or corresponding parts, E is a clock generator, and F is a bidirectional 16-bit latch buffer. . Fig. 3 is an operation time diagram showing the progress of the output voltage from the clock generator), where the horizontal axis is time t, To is one cycle of switching, and TA is valid access for the 16-bit system. The time TB is the time at which access of the 8-bit system is valid, and the output logic of the clock generator (E) is, for example, rlJ during T and ``0'' during T.

A B TAとTnの切換はT1. T2. i’3. T4 
で示すように周期的に循環して繰返される。クロック発
生器(fc)の出力によりアクセス裁定回路(C)は閏
・3図に示すとおりK(J)換えられるが、この切換は
常時行ってもよく、またアクセス裁定回路+C)におい
て16ビツトシステムからのアクセス要求と8ビツトシ
ステムからのアクセス要求とが競合したときだけ、第3
図に示す切換えを行ってもよい。
A B TA and Tn switching is T1. T2. i'3. T4
It is cycled and repeated periodically as shown in . The access arbiter (C) is switched by K (J) as shown in Figure 3 by the output of the clock generator (fc), but this switching can be done at any time, and the access arbiter +C) is used for 16-bit systems. Only when there is a conflict between an access request from the 8-bit system and an access request from the 8-bit system, the third
The switching shown in the figure may also be performed.

次に、16ビツトのデータを16ビツトシステムから8
ビツトシステムへ転送する場合を例にして第2図に示す
装置の動作を説明する。
Next, the 16-bit data is transferred from the 16-bit system to 8
The operation of the apparatus shown in FIG. 2 will be explained by taking as an example the case of transferring data to a bit system.

田・3図にT1で示す時間幅のすぐ前の時間幅の間に1
6ビツトシステムからのアクセス要求があったとすると
、このアクセス要求はT□で示す時間幅が来るまで待た
され、この時間幅が来て16ビツトシステムからのアク
セスが有効になると16ビツトシステムバス囚はプーア
ルポートメモIJ (D)に接続され、バス(A)で送
られるアドレス信号によって指定されたメモ’J (D
)内の番地にイくヌ(イ)で送られる16ビツトのデー
タ(仮にデータW16とするンが書込まれる。8ビツト
システムからT□で示す時間幅の間にメモ’J (D)
へのアクセス要求が出ているとすると、T2で示す時間
幅が来たときにそのアクセスが許可され、8ビツトシス
テムパヌfB)がバッファ田゛)を介してメモリ(Dl
に接続される。8ビツトシステムはデータW16の下位
の8ビツト(仮にデータ′W8Lとし、同様に上位の8
ビットをデータW8Hとする)を読出すべきアドレス信
号をバスtBlで送出すると、メモリ(ト))からはこ
のアドレス信号によって指定される番地とその次の番地
とに格納されているデータ、すなわちWaL+W8H=
 Wl a カ読出すレ、16ヒツトラツチバツフア(
ii”)に書込まれ、かつW8Lが8ビツトシステムに
フェッチ(fetch)される。次に8ビツトシステム
がW8Hを読出すべくアクセス要求を出すが、この時は
T3で示す時間幅になっていたとすれrJ′−このアク
セス要求はηで示す時間幅まで待たされて許可され、こ
の場合プーアルポートメモリ(Dlへのアクセスは必要
とせス、16ビノトラツチバツフア(F+からW8Hを
8ビツトシステムへ読出せばよ込。
1 during the time span immediately before the time span shown as T1 in Figure 3.
Assuming that there is an access request from a 6-bit system, this access request is waited until the time interval shown by T□ arrives, and when this time interval comes and the access from the 16-bit system becomes valid, the 16-bit system bus is freed. Memo 'J (D) connected to Pu'al port Memo IJ (D) and designated by the address signal sent on bus (A)
) The 16-bit data (temporarily data W16) sent to the address in ) is written. Memo 'J (D) is sent from the 8-bit system during the time period shown by T□.
Assuming that there is an access request to
connected to. In an 8-bit system, the lower 8 bits of data W16 (temporarily set as data 'W8L', and similarly the upper 8 bits are
When the address signal to read the bit (data W8H) is sent on the bus tBl, the data stored in the address specified by this address signal and the next address from the memory (g), that is, WaL+W8H =
Wl a to read out, 16 htl.
ii"), and W8L is fetched by the 8-bit system. Next, the 8-bit system issues an access request to read W8H, but at this time the time width shown by T3 has been reached. If rJ' - this access request is allowed after waiting for the time period shown by η, in this case access to the pool port memory (Dl is not required), but the 16-bit latch buffer (from F+ to W8H is connected to the 8-bit system If you read it, it will be read.

従ってT3で示す時間幅の間に16ビツトシステムから
データW16の位置に新しいデータを書込んでも差支え
ない。
Therefore, there is no problem in writing new data from the 16-bit system to the data W16 position during the time width indicated by T3.

8ビツトシステムからデュアルポートメモリ(I))K
畳込むとき、最初のデータWsLは16ビツトラツチバ
ツフア(li’)の下位8ピツ) K 書込むだけでメ
モIJ (DlにCL/クセスせず、次のデータw8I
、を書込むときバッフy (FlのWB、と合せてWB
 L+WB H=W、6としてプーアルポートメモリに
書込む。
Dual port memory (I) from 8-bit system
When convolving, the first data WsL is the lower 8 bits of the 16-bit reset buffer (li'))
, when writing buffer y (WB of Fl, WB
Write L+WB H=W, 6 to Pual port memory.

したがって、16ピツトデータの最初の半分の8ビツト
だけが書込まれた状態で16ビツトシステムにより読出
されてソフトエラーとなることはあり得ない。
Therefore, it is impossible that only the first half of 8 bits of 16-bit data are written and then read by a 16-bit system, resulting in a soft error.

なお、上記実施例では16ビツトシステムと8ビットシ
ステムとの間のデータ伝送について説明したが、この2
つのシステムにおけるデータのワード構成は32ビツト
でも64ビツトでもよく、ビット数には制限がない。
Note that in the above embodiment, data transmission between a 16-bit system and an 8-bit system was explained;
The data word structure in one system may be 32 bits or 64 bits, and there is no limit to the number of bits.

〔発明の効果〕〔Effect of the invention〕

以−ヒのようにこの発明によれば、ビット数の異なる2
つのシステム間のデータ伝送において、ソフトウェアエ
ラーによる伝送不良を防止することができる。
According to this invention, as shown in FIG.
In data transmission between two systems, transmission failures due to software errors can be prevented.

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

第1図は従来の装置を示すブロック図、第2図はこの発
明の一実施例を示すブロック図、第3図は第2図のクロ
ック発生器からの出力′電圧の経過を示す動作タイム図
である。 A・・・16ビツトシステムバス、B・・・8ビツトシ
ステムバス、C・・・アクセス裁定回路、D・・・デュ
アルポートメモリ、E・・・クロック発生機。F・・・
16ビツトラツチバツフア。 尚、各図中同一符号は同−又は相当部分を示す。 代理人 大 岩 増 雄 第1図 第2図 第3図
FIG. 1 is a block diagram showing a conventional device, FIG. 2 is a block diagram showing an embodiment of the present invention, and FIG. 3 is an operation time diagram showing the progress of the output voltage from the clock generator in FIG. 2. It is. A: 16-bit system bus, B: 8-bit system bus, C: access arbitration circuit, D: dual port memory, E: clock generator. F...
16 bits later. Note that the same reference numerals in each figure indicate the same or corresponding parts. Agent Masuo Oiwa Figure 1 Figure 2 Figure 3

Claims (1)

【特許請求の範囲】 16ビツトシステム及び8ビツトシステムの双方からア
クセス用能なデュアルポートメモリを有するデュアルポ
ートメモリ装置において、16ビツトシステムバスを経
てのアクセス要求及び8ビノトシステムバヌを経てのア
クセス要求を受付け、上記16ビツトシステムバス又は
上記8ビツトシステムバスのいずれかと上記デュアルポ
ートメモリとを接続するよう制御するアクセス裁定回路
と、 このアクセス裁定回路にタイミング信号を供給し、上凸
己アクセス裁定回路に上記16ビツトシステムからのア
クセス要求と上記8ビツトシステムからのアクセス要求
とが同時に存在する期間においては、」1記タイミング
信号に従って時分割循環的に」;iαHうヒ゛ノドシス
テムバスと上丙己8ビットシステムバスを切換えて上記
プーアルボートメモリに接続するよう制御するクロック
発生器と、上記8ビヴトシステムバスから上記デュアル
ポートメモリに入出力するデータが、1対の8ビ・ノド
信号を構成する16ピツト信号として上記デュアルポー
トメモリに入出力されるよう、上記8ビツトシステムバ
スに対する入出力データを一時記憶する16ビツトラツ
チバツフアとを1ifNえたことを特徴とするデュアル
ポートメモリ装置。
[Claims] In a dual-port memory device having a dual-port memory that can be accessed from both a 16-bit system and an 8-bit system, access requests via a 16-bit system bus and access requests via an 8-bit system bus are processed. an access arbitration circuit that accepts access requests and controls the connection between the dual port memory and either the 16-bit system bus or the 8-bit system bus; During a period when the arbiter circuit receives an access request from the 16-bit system and an access request from the 8-bit system at the same time, the iαH node system bus and the A clock generator controls the switching of the 8-bit system bus to connect it to the dual-port memory, and a pair of 8-bit signals is used to input and output data from the 8-bit system bus to the dual port memory. A dual port memory device comprising: a 1ifN 16-bit latch buffer for temporarily storing input/output data for the 8-bit system bus so as to be input/output to the dual port memory as 16-bit signals constituting the 8-bit system bus.
JP21989783A 1983-11-21 1983-11-21 Dual port memory Pending JPS60110065A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21989783A JPS60110065A (en) 1983-11-21 1983-11-21 Dual port memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21989783A JPS60110065A (en) 1983-11-21 1983-11-21 Dual port memory

Publications (1)

Publication Number Publication Date
JPS60110065A true JPS60110065A (en) 1985-06-15

Family

ID=16742746

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21989783A Pending JPS60110065A (en) 1983-11-21 1983-11-21 Dual port memory

Country Status (1)

Country Link
JP (1) JPS60110065A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS49131742A (en) * 1973-04-23 1974-12-17
JPS56166568A (en) * 1980-05-27 1981-12-21 Nec Corp Information processor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS49131742A (en) * 1973-04-23 1974-12-17
JPS56166568A (en) * 1980-05-27 1981-12-21 Nec Corp Information processor

Similar Documents

Publication Publication Date Title
JPS59111561A (en) Access controlling system of composite processor system
US4622630A (en) Data processing system having unique bus control protocol
KR950010529B1 (en) Memory sharing for communicaiton between processors
JP2591502B2 (en) Information processing system and its bus arbitration system
JPH0793274A (en) System and device for transferring data
US5408612A (en) Microprocessor system for selectively accessing a processor internal register when the processor has control of the bus and partial address identifying the register
JPS60110065A (en) Dual port memory
JPS61166647A (en) Accessing for reading out information microprocessor and addressable memory
JPH07271654A (en) Controller
JP2574821B2 (en) Direct memory access controller
JPS59195728A (en) Data processing device
JPS6059462A (en) Pipeline access memory of bi-directional data bus
JPH06231032A (en) Access controller
JPS6217879Y2 (en)
JP3219422B2 (en) Cache memory control method
JPS6174045A (en) Channel control system in multi-processor system
JPH07109599B2 (en) Information transfer device for processing system
JPH039453A (en) Data transfer controller
JPS5975354A (en) Processor device
JPH0330899B2 (en)
JPS59180774A (en) Memory accessing system
JPH08115293A (en) Information processor
JPS63201810A (en) Time system for information processing system
JPH02165242A (en) Access control system for memory controller
JPH036762A (en) Direct access method for image memory