JPH03182956A - Buffer memory sharing system - Google Patents
Buffer memory sharing systemInfo
- Publication number
- JPH03182956A JPH03182956A JP32055789A JP32055789A JPH03182956A JP H03182956 A JPH03182956 A JP H03182956A JP 32055789 A JP32055789 A JP 32055789A JP 32055789 A JP32055789 A JP 32055789A JP H03182956 A JPH03182956 A JP H03182956A
- Authority
- JP
- Japan
- Prior art keywords
- data
- data bus
- bit
- bit length
- bus bit
- 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
Landscapes
- Bus Control (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
本発明は、データバスビット長の異なる装置間において
、データバスビット長の小さい方(例1ワード:8ビッ
トまたは16ビツト等)の装置から、データバスビット
長の大きい方(1ワード:32ビツト等〉の装;d内の
メモリをリード/ライトする方式に関するものである。DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention provides a method for connecting devices with different data bus bit lengths, starting from the device with the smaller data bus bit length (e.g. 1 word: 8 bits or 16 bits, etc.). , the data bus bit length is larger (1 word: 32 bits, etc.);
(従来の技術)
第5図は従来のデータバスビット長の異なる装置間にお
けるメモリリード/ライト回路を示すブロック図である
。同図におい°C251は32ビツトデータバスプロセ
ツサ(以下、μPと略ず〉、52はμP51用のメイン
メモリ(以下、MMと略す〉であって1ワードが32ビ
ツト構成されている。53はデ−夕の32ビット→16
ビツト変換ラッヂ回路(以下、BUFAと略す)、54
はデータの16ビツト→32ビット変換ラッチ回路(以
下、BUFBと略す)、55はアドレス制御回路(以下
、ADDCNTと略す)、56はリード/ライト等の各
種バス制御回路(以下、C0NTと略す)、57は16
ビツトデータバスプロセツサ(以下、SμPと略す)、
58はSμP57用のメインメモリ(以下、SMMと略
す)であって1ワードが16ヒ゛ツト構成されている。(Prior Art) FIG. 5 is a block diagram showing a conventional memory read/write circuit between devices having different data bus bit lengths. In the figure, C251 is a 32-bit data bus processor (hereinafter abbreviated as μP), 52 is a main memory for μP51 (hereinafter abbreviated as MM), and one word is composed of 32 bits.53 is a device. -Evening 32 bits → 16
Bit conversion ludge circuit (hereinafter abbreviated as BUFA), 54
is a data 16-bit → 32-bit conversion latch circuit (hereinafter abbreviated as BUFB), 55 is an address control circuit (hereinafter abbreviated as ADDCNT), 56 is various bus control circuits such as read/write (hereinafter abbreviated as C0NT). , 57 is 16
Bit data bus processor (hereinafter abbreviated as SμP),
58 is a main memory (hereinafter abbreviated as SMM) for the SμP 57, and one word consists of 16 bits.
59はタイレフトメモリアクセス制御回路(以下、DM
ACと略す)である。59 is a tie left memory access control circuit (hereinafter referred to as DM).
(abbreviated as AC).
次に、従来の回路におけるSμP57からMM52をリ
ードする場合の動作について説明する。Next, the operation when reading the MM52 from the SμP57 in the conventional circuit will be described.
先ず、SμP57が常にMM52のアドレスを5MM5
8のアドレスとは別に管理している。SμP57のプロ
クラムモードの場合は、SμP57からADDCNT5
5にMM52のアドレスを書き込み、次にC0NT56
に起動をかけてC0NT56はMM52から32ビツト
データをBUFA53に読み込ませラッチさせる。Sμ
P57はラッチ完了報告を受けて、必要データ分を数回
(この場合は1回または2回)に分けて、B II F
A 53から読み取る。また、S LLP 57のI
IMAモードの時には、SμP57からDMAC59に
MM52のアlヘレスと、5MM58のアドレスなあら
かしめ設定しておいCから、DMAC59に起動をかけ
る。すると、DMAC59かC0NT56に起動をかけ
て、C0NT56がMM52から32ビツトデータをB
UFA53に3売み込みラッチさせる。DMAC59は
ラッチ完了報告を受けてからBUFA53から数回に分
けて連続的に読み出し、5MM58の該当アドレスに書
き込みを実施する。First, SμP57 always sets the address of MM52 to 5MM5.
It is managed separately from address 8. In the case of SμP57 program mode, ADDCNT5 from SμP57
Write the address of MM52 to 5, then C0NT56.
The C0NT56 loads the 32-bit data from the MM52 into the BUFA53 and latches it. Sμ
P57 receives the latch completion report, divides the necessary data into several times (in this case, once or twice), and
Read from A53. Also, I of S LLP 57
In the IMA mode, the address of MM52 and the address of 5MM58 are preliminarily set in the DMAC 59 from the SμP 57, and the DMAC 59 is activated from C. Then, DMAC59 or C0NT56 is activated, and C0NT56 transfers 32-bit data from MM52 to B.
Make UFA53 3 sales latch. After receiving the latch completion report, the DMAC 59 successively reads data from the BUFA 53 several times and writes data to the corresponding address of the 5MM 58.
また、SμP57からMM52へのライ)−動作及び5
MM58からMM52のDMAモートによる転送動作時
には、BLIFB54経由で同様の処理フローとなる。Also, write from SμP57 to MM52)-operation and 5
At the time of transfer operation by the DMA mote from MM58 to MM52, a similar processing flow occurs via BLIFB54.
(発明が解決しようとする課題)
しかしながら、上記構成の従来の装置では、以下のよう
な問題点かある。(Problems to be Solved by the Invention) However, the conventional device having the above configuration has the following problems.
1)SμP57がMM52と5MM58のアドレスを2
重管理する必要があり、SμP57のソフトウェアにお
ける処理能力低下になっている。1) SμP57 sets the address of MM52 and 5MM58 to 2
This requires heavy management, which reduces the processing power of the SμP57 software.
2)DMAモード転送時は、バースト転送なせさるを得
なくなり、SμP57側のバス占有率か高くなり、ラフ
1〜ウエアにおけるリアルタイム性が低下してしまう。2) During DMA mode transfer, burst transfer is unavoidable, the bus occupancy rate on the SμP57 side becomes high, and real-time performance in rough 1 to software is degraded.
3)SμP57側からMM52へのアクセスで、16ビ
ツト単イ立のブロクラムモードにおけるリート/ライト
動作、DMAモートによるリード/ライト動作の連続交
互アクセスか不可能である。3) When accessing the MM52 from the SμP57 side, continuous alternating access of read/write operations in 16-bit single bit blockram mode and read/write operations by DMA mote is impossible.
本発明はこれらの問題点を解決するためのもので、デー
タビット長の小さい方の装置から、データビット長の大
きい方の装置のメモリアクセス所要時間の高速、簡易化
を実現し、システムの処理能力の向上できるバッファメ
モリ共用方式を提供することを目的とする。The present invention is intended to solve these problems, and achieves faster and simpler memory access time from a device with a smaller data bit length to a device with a larger data bit length, and system processing. The purpose of this invention is to provide a buffer memory sharing method that can improve performance.
(課題を解決するための手段)
本発明は前記問題点を解決するために、データバスビッ
ト長の異なる装置間における、データバスビット長の小
さい装置のプロセッサ制御回路とデータバスビット長の
大きい装置のプロセッサ制御回路がバスで結合されてい
るシステムであって、データバスビット長の小さい装置
からデータバスビット長の大きい装置内のメモリをアク
セスするバッファメモリ共用方式において、各装訂双方
のバスの間に、データバスビット長の大きい装置側のバ
スをアクセスするためのハス制御手段と、アドレス検出
作成手段と、異なるデータバスビット長のデータ間の双
方向変換を行ない、かつ各々のデータを一時記憶する手
段と、データバスビット長の小さい装置側からのアクセ
スかDMAモードなのかブロクラムモードなのか検出す
るサイクル検出手段と、小さいデータバスビット長のデ
ータが大きいデータバスビット長のデータのどの位置の
データに相当するかを検出するバイト位置検出手段とを
設けたことに特徴かある。(Means for Solving the Problems) In order to solve the above problems, the present invention provides a processor control circuit for a device with a small data bus bit length and a device with a large data bus bit length between devices with different data bus bit lengths. In a system in which two processor control circuits are connected by a bus, and in a buffer memory sharing method in which a device with a small data bus bit length accesses the memory in a device with a large data bus bit length, In between, there is a bus control means for accessing the bus on the device side with a large data bus bit length, an address detection and creation means, and a bidirectional conversion between data of different data bus bit lengths, and temporary processing of each data. a cycle detection means for detecting whether the access is from a device with a small data bus bit length, DMA mode, or block RAM mode; The present invention is characterized by the provision of byte position detection means for detecting whether the data corresponds to the position data.
(作用)
本発明は上記の構成を有することにより、データバスビ
ット長の小さい装置からデータバスビット長の大きい装
置側のメモリを直接アドレッシングアクセスすることか
可能になり、アクセス時間が従来方式より高速になり、
更に、データバスビット長の小さい装置側からcPUモ
ードとDMAモートとて、それぞれ絶対アドレスの異な
ったメモリなり−1へ/ライト交互に又は連続的に行な
えるようにしたものであり、システムの処理能力を向上
させるものである。(Function) By having the above configuration, the present invention enables direct addressing access from a device with a small data bus bit length to the memory of a device with a large data bus bit length, and the access time is faster than that of the conventional method. become,
Furthermore, it is possible to write/write alternately or continuously to memories with different absolute addresses in cPU mode and DMA mode from the device side with a small data bus bit length, and the system processing It improves ability.
(実施例)
以下、本発明の一実施例について図面に基づいて説明す
る。(Example) Hereinafter, an example of the present invention will be described based on the drawings.
第1図は本発明の一実施例の回路を示すブロック図であ
る。同図において、第5図と同し参照符号は同し構成要
素を示す。異なる構成要素として、11は32ビツト装
置側のバスをアクセスするための制御回路(以下、Bt
lSCNTと略す)、12はアドレス検出作成回路(以
下、ADDC/Gど略す)、13は32ビツトデータ0
16ビツトデータの双方向変換機能及び−時記憶機能を
有する回路(以下、BUFMEMと略す)、14は16
ビツト装置側からのアクセスがDMAモートなのかプロ
グラムモードなのか検出する機能を有する回路(以下、
MODDETと略す)、15は16ビツトデータか32
ビツトデータのどの位置く32ビツトの内のLow側1
6ビツトか胴側16ビツト)のデータに相当するかとい
うのを検出する機能を有する回路(以下、BYTDET
と略す)である。FIG. 1 is a block diagram showing a circuit according to an embodiment of the present invention. In this figure, the same reference numerals as in FIG. 5 indicate the same components. As a different component, 11 is a control circuit (hereinafter referred to as Bt) for accessing the bus on the 32-bit device side.
(abbreviated as lSCNT), 12 is an address detection and creation circuit (hereinafter abbreviated as ADDC/G), and 13 is 32-bit data 0.
A circuit (hereinafter abbreviated as BUFMEM) having a bidirectional conversion function of 16-bit data and a time storage function, 14 is a 16
A circuit (hereinafter referred to as
(abbreviated as MODDET), 15 is 16 bit data or 32
Where in the bit data is the low side 1 of the 32 bits?
A circuit (hereinafter referred to as BYTDET) has a function to detect whether the data corresponds to 6 bits or 16 bits on the body
).
次に、本実施例の動作について説明する。Next, the operation of this embodiment will be explained.
先ず、SμP57か自己メモリである5MM58のメモ
リ空間のアドレス管理たけてMM52のアクセスかてき
るようにメモリ空間の割り付けを第2図のように設定す
る。初期設定時にMM52のXのアドレスと5MM58
のyの相対アドレスを認知することで、後はSμP57
はMM52にアクセスする場合も5MM58をアクセス
するつもりで動作すればよい。SμP57がyのアドレ
スを出力すると、ADDC/G12てはアドレスyがM
M52のアドレスXだということを検出し、yからXの
アドレスを作り出してMM52をアクセスする。First, the allocation of the memory space is set as shown in FIG. 2 so that the memory space of the SμP 57 or the 5MM 58, which is its own memory, can be accessed by managing the address of the memory space of the MM 52. At the time of initial setting, the X address of MM52 and 5MM58
By recognizing the relative address of y, the rest is SμP57
When accessing MM52, it is sufficient to operate as if accessing 5MM58. When SμP57 outputs address y, ADDC/G12 outputs address y as M.
It detects that it is address X of M52, creates address X from y, and accesses MM52.
今SμP57主導により、第3図に示すようにMM52
のデータを5MM58にDMA転送を行ないながら、プ
ログラムモードにてMM52のデータをリード/ライト
動作するとともに、自分配下の5MM58のデータなり
−1へ/ライトしながらプログラムが実行処理されてい
くものとする。第4図はこれらの処理の時間的4(e移
を示すタイムチャートである。Now, under the initiative of SμP57, MM52
It is assumed that the program is being executed while reading/writing the data of MM52 in the program mode while performing DMA transfer of the data of 5MM58 to 5MM58, and writing/writing the data of 5MM58 under itself to -1. . FIG. 4 is a time chart showing the temporal 4 (e transition) of these processes.
SμP57は時刻t。まては、プロクラムモートにて動
作しており、DMA動作が必要になったため、SμP5
7はMM52のアドレス(実際は5MM58のy+2α
)と5MM58のアドレスをDMAC59に設定して起
動をかける。すると時刻t1でDMA(:59が動作し
、BUSCNT11経由テMM52ノテ&(21!1)
ec)(DカBUFMEM13に取り込まれると共に5
MM58に■■のデータが転送される。次に、時刻t3
の時に次のDMA転送要求が出されるとDMAC59は
MM52をリードアクセスに入るが、BYTDETI5
、ADDC/G12とMODDET14により■■◎■
のデータがすてにBUFMEM13に書き込まれている
ことを検出し、DMAC59はBUFMEM13より◎
Oのデータを取り込んで5MM58に転送書き込みを行
なう。次に、時刻t5の時に次のDMA転送要求が出さ
れると、DMAC59はMM52をアクセスに入るが、
BYTDETI5. ADDC/G12とMODDET
14により末だ■[F]■■のデータがBUFMEM1
3に取り込まれていないことを検出する。MM52まて
アクセスにいき、BUFMEM13に■[F]◎■のデ
ータを取り込むと同時に[F][F]のデ−タを5MM
58に転送書き込まれる。また、時刻t7にDMA転送
要求が出されると、同様にBUFMEM13に書き込ま
れていることを検出し°r DMA(:59は11UF
MEM13よりデータを取り込み5MM58に◎0のデ
ータか転送書き込まれる。以後DMA転送においては、
同様の動作か繰り返される。また、時刻t2. t4.
t、、 t8においても、SμP57はプロクラムモ
ードにて、MM52のデータをリード/ライトすること
が可能であり、リード時においては、DMA転送と同様
に、BUFMEM13に取り込んだ後、MODDET1
4とBYTDETI5により、該当ビット位置のデータ
をSμP57の内部レジスタに直接取り込むことが可能
である。ライト時においては、BYTDETI 5とM
ODDET14により、32ビツト分データが蓄積され
たことを確認した後にライト動作に移るため、MM52
へのデータの誤書き込み、MM52まてのアクセス時間
の短縮を図ることができる。SμP57 is at time t. Well, since it is running in program mode and DMA operation is required, SμP5
7 is the address of MM52 (actually y+2α of 5MM58
) and the address of 5MM58 to DMAC59 and start up. Then, at time t1, DMA (:59 operates, and MM52 note & (21!1) via BUSCNT11
ec) (D is taken into BUFMEM13 and 5
■■ data is transferred to MM58. Next, time t3
When the next DMA transfer request is issued at the time of
, by ADDC/G12 and MODDET14■■◎■
It is detected that the data of has already been written to BUFMEM13, and DMAC59 writes it from BUFMEM13.
The data of O is taken in and transferred and written to 5MM58. Next, when the next DMA transfer request is issued at time t5, the DMAC 59 accesses the MM 52, but
BYTDETI5. ADDC/G12 and MODDET
Due to 14, the data of ■[F]■■ is BUFMEM1
It is detected that it is not incorporated into 3. Go to MM52 and access it, import the data of ■[F]◎■ into BUFMEM13 and at the same time import the data of [F] and [F] to 5MM.
It is transferred and written to 58. Also, when a DMA transfer request is issued at time t7, it detects that it has been written to BUFMEM13 in the same way, and transfers °r DMA (:59 is 11UF
Data is fetched from MEM13 and ◎0 data is transferred and written to 5MM58. From now on, in DMA transfer,
Similar actions are repeated. Also, time t2. t4.
Even at t, t8, the SμP57 can read/write the data of the MM52 in the program mode, and at the time of reading, similar to DMA transfer, after taking it into the BUFMEM13, the SμP57 can read/write the data of the MM52.
4 and BYTDETI5, it is possible to directly take in the data at the corresponding bit position into the internal register of the SμP57. When writing, BYTDETI 5 and M
After confirming that 32 bits worth of data has been accumulated by ODDET14, the write operation starts, so MM52
It is possible to reduce erroneous data writing to the MM 52 and shorten the access time to the MM 52.
なお、DMAライト動作においては、DMAリード動作
とほぼ同じため、詳細は省略することにする。Note that the DMA write operation is almost the same as the DMA read operation, so the details will be omitted.
0
(発明の効果)
以上詳細に説明したように、本発明によれば、DMA転
送においては高速化を図ることができ、SμPから見た
場合SμPのSMM用アドアドレスMMが直接アドレッ
シングてき、DMA動作とプログラムモート動作を混在
することができる。したかってSμP側の処理能力が非
常に向上することが期待てきる。0 (Effects of the Invention) As described in detail above, according to the present invention, it is possible to increase the speed of DMA transfer, and when seen from the SμP, the SMM address MM of the SμP directly addresses the DMA transfer. It is possible to mix operation and program mote operation. Therefore, it is expected that the processing capacity on the SμP side will be greatly improved.
第1図は本発明の一実施例の回路を示すブロック口、第
2図は第1図のMMとSMMのメモリ空間の割り付けを
示す図、第3図はMMのデータをSMMへDMA転送を
行なう様子を示す図、第4図は本実施例の動作を示すタ
イムチャート、第5図は従来のデータバスビット長の異
なる装置間におけるメモリリード/ライト■路を示すブ
ロック口である。
11・ ・ ・BUSCNT、 12・ ・
・ADDC/G。
13・ ・ ・ BUFMEM、 14◆
・ ・MODDET。
15・
◆ BYTDET。
51・
53・
55・
57◆
59・
・ ・ μP、
◆ ・ BUFA。
・ ・ ADDCNT。
・ ・ SμP、
・ ・DMAC0
52・
54・
56・
58◆
・MM。
・BUFB。
・ CON T。
・SMM 。Fig. 1 is a block diagram showing a circuit of an embodiment of the present invention, Fig. 2 is a diagram showing the allocation of memory spaces between the MM and SMM in Fig. 1, and Fig. 3 is a diagram showing the DMA transfer of MM data to the SMM. FIG. 4 is a time chart showing the operation of this embodiment, and FIG. 5 is a block diagram showing a memory read/write path between conventional devices having different data bus bit lengths. 11・ ・ BUSCNT, 12・ ・
・ADDC/G. 13・ ・ BUFMEM, 14◆
・・MODDET. 15. ◆ BYTDET. 51・ 53・ 55・ 57◆ 59・ ・ ・ μP, ◆ ・ BUFA.・ ・ ADDCNT.・ ・ SμP, ・ ・DMAC0 52・ 54・ 56・ 58◆ ・MM.・BUFB.・CONT.・SMM.
Claims (1)
スビット長の小さい装置のプロセッサ制御回路とデータ
バスビット長の大きい装置のプロセッサ制御回路がバス
で結合されているシステムであって、データバスビット
長の小さい装置からデータバスビット長の大きい装置内
のメモリをアクセスするバッファメモリ共用方式におい
て、前記各装置双方のバスの間に、 データバスビット長の大きい装置側のバスをアクセスす
るためのバス制御手段と、 アドレス検出作成手段と、 異なるデータバスビット長のデータ間の双方向変換を行
ない、かつ各々のデータを一時記憶する手段と、 データバスビット長の小さい装置側からのアクセスがD
MAモードなのかプログラムモードなのか検出するサイ
クル検出手段と、 小さいデータバスビット長のデータが大きいデータバス
ビット長のデータのどの位置のデータに相当するかを検
出するバイト位置検出手段とを設けたことを特徴とする
バッファメモリ共用方式。[Scope of Claims] A system in which a processor control circuit of a device with a small data bus bit length and a processor control circuit of a device with a large data bus bit length are connected by a bus between devices with different data bus bit lengths. In a buffer memory sharing method in which a device with a small data bus bit length accesses the memory in a device with a large data bus bit length, the bus of the device with a large data bus bit length is accessed between the buses of both devices. address detection and creation means; means for bidirectional conversion between data of different data bus bit lengths and temporary storage of each data; Access is D
A cycle detecting means for detecting whether the mode is MA mode or program mode, and a byte position detecting means for detecting which position of data of a small data bus bit length corresponds to data of a large data bus bit length are provided. A buffer memory sharing method characterized by:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP32055789A JPH03182956A (en) | 1989-12-12 | 1989-12-12 | Buffer memory sharing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP32055789A JPH03182956A (en) | 1989-12-12 | 1989-12-12 | Buffer memory sharing system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03182956A true JPH03182956A (en) | 1991-08-08 |
Family
ID=18122761
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP32055789A Pending JPH03182956A (en) | 1989-12-12 | 1989-12-12 | Buffer memory sharing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03182956A (en) |
-
1989
- 1989-12-12 JP JP32055789A patent/JPH03182956A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS6242396A (en) | Dynamic memory refresh and parity checking circuit | |
| US20020184454A1 (en) | Memory access device | |
| JPH03182956A (en) | Buffer memory sharing system | |
| US6483753B1 (en) | Endianess independent memory interface | |
| JPH0238968B2 (en) | ||
| SU1683039A1 (en) | Device for data processing for multiprocessor system | |
| US7395399B2 (en) | Control circuit to enable high data rate access to a DRAM with a plurality of areas | |
| JPH04112251A (en) | Microcomputer | |
| JPH0222748A (en) | Non-volatile memory control circuit | |
| JP2004013289A (en) | On-chip debugging method of microcontroller | |
| JPS59197946A (en) | Memory device | |
| JP2687416B2 (en) | Microprocessor with expansion port | |
| JPS61256458A (en) | Information transfer system | |
| JP2606477Y2 (en) | Data processing device and input / output board | |
| JP3322993B2 (en) | Information processing device | |
| JPS5841524B2 (en) | Input/output control method | |
| JPH04337851A (en) | Memory access system | |
| JPH04245346A (en) | Microcomputer system | |
| JPS63271652A (en) | Dma controller | |
| JPH0357055A (en) | Dma transfer control system | |
| JPS6215644A (en) | Cache memory control circuit | |
| JPH03214275A (en) | Semiconductor integrated circuit | |
| JPH03144740A (en) | Processor comparator and instruction feeder | |
| JPH02188856A (en) | Memory access circuit | |
| JPS6037062A (en) | Memory reading-out method |