JPH02244350A - Main storage device access system - Google Patents

Main storage device access system

Info

Publication number
JPH02244350A
JPH02244350A JP6530289A JP6530289A JPH02244350A JP H02244350 A JPH02244350 A JP H02244350A JP 6530289 A JP6530289 A JP 6530289A JP 6530289 A JP6530289 A JP 6530289A JP H02244350 A JPH02244350 A JP H02244350A
Authority
JP
Japan
Prior art keywords
word
data
main memory
address
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.)
Pending
Application number
JP6530289A
Other languages
Japanese (ja)
Inventor
Masayuki Otaka
大鷹 正之
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP6530289A priority Critical patent/JPH02244350A/en
Publication of JPH02244350A publication Critical patent/JPH02244350A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline or look ahead
    • G06F9/3802Instruction prefetching
    • G06F9/3816Instruction alignment, e.g. cache line crossing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)

Abstract

PURPOSE:To improve the performance by omitting unnecessary memory access by reading and writing two words by a word select address generating circuit by one-word length at the same time when data extending across a word border is transferred in data transfer between a main storage device and a main storage access device. CONSTITUTION:The main storage device 14 reads out data in submemories from a w0-th in-word address of a word address w1 to an n-th in-word address and data in submemories from a 0-th in-word address of a word address w1+1 to a (w0-1)th in-word address at a time. Those read data m0, m1,...,mn, on the other hand, are transferred in a bus cycle to an in-word arrangement converting circuit 19 and rearranged into one-word-length data mw0,...,mn and m0,...,mw0-1, which are sent to the main storage access device 15. Writing is the same, but the in-word arrangement converting circuit 19 operates inversely of the reading operation. Consequently, a decrease in processing ability due to the bus wait time of the main storage access device is precluded.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は主記憶装置アクセス方式に関し、特に主記憶装
置内の番地付がワード単位よりも細かく、1ワード長デ
ータの主記憶装置上の配置がワード境界をまたがること
を許す主記憶装置アクセス方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a main memory access method, and in particular, addresses in the main memory are finer than word units, and the arrangement of 1-word length data on the main memory is This invention relates to a main memory access method that allows data to cross word boundaries.

〔従来の技術〕[Conventional technology]

従来、1ワード長データの主記憶装置上の配置がワード
境界をまたがることを許す主記憶装置は、第4図に示す
ように、アドレスバス3とデータバス4とを介して主記
憶アクセス装置2と接続され、アドレスバス3で指定の
、主記憶装置上のワ−ドデータをデータバス4にのせて
転送するようになっていて、記憶装置における1ワード
内がワード内アドレス0〜nで番地付られているが、主
記憶アクセス装置2からのメモリアクセス要求はワード
単位の読み書きしかできず、ワードアドレスがWl、ワ
ード内アドレスがwOから始まる1ワード長データをア
クセスする場合にはサブメモリアドレスバス8.9.1
0によりすべてのサブメモリ5,6.7のアドレスWl
にアクセスし、サブメモリデータバス11.12.13
を介してデータmO、ml 、m、の読み書きを行う、
このときにワード内アドレスwOがO以外であれば主記
憶アクセス装置2が判断し、ワードアドレスが次のwl
+lのワードについても同様にアクセスする0以上の2
ワードデータについて主記憶アクセス装置2内で合成し
、必要な1ワードデータに変換している。
Conventionally, a main memory device that allows the arrangement of 1-word length data on a main memory device to cross word boundaries has a main memory access device 2 via an address bus 3 and a data bus 4, as shown in FIG. The word data on the main memory device specified by the address bus 3 is transferred onto the data bus 4, and each word in the memory device is assigned addresses 0 to n within the word. However, memory access requests from the main memory access device 2 can only be read and written in word units, and when accessing 1-word length data starting from the word address Wl and the intra-word address wO, the submemory address bus is used. 8.9.1
Address Wl of all submemories 5, 6.7 by 0
access the submemory data bus 11.12.13
Read and write data mO, ml, m, via
At this time, if the intra-word address wO is other than O, the main memory access device 2 determines that the word address is the next wO.
+l word is accessed in the same way 0 or more 2
Word data is synthesized within the main memory access device 2 and converted into necessary one-word data.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、上述した従来の主記憶装置では、任意の
アドレスの1ワード長データしか読み/書きしない場合
でも、主記憶装置上の2ワード間にまたがって配置され
ている場合には必ず2回の主記憶アクセスサイクルを要
するという欠点がある。
However, in the conventional main memory device described above, even if only one word length data at a given address is read/written, if the data is located across two words on the main memory device, the main memory is always read/written twice. It has the disadvantage of requiring memory access cycles.

本発明は従来の上記実情に鑑みてなされたものであり、
従って本発明の目的は、主記憶装置と主記憶アクセス装
置との間のデータ転送時のバス専有時間を低減すること
でシステム全体の処理能力を向上させることを可能とす
る新規な主記憶装置アクセス方式を提供することにある
The present invention has been made in view of the above-mentioned conventional situation,
Therefore, an object of the present invention is to provide a new main memory access device that can improve the processing capacity of the entire system by reducing the bus exclusive time during data transfer between the main memory device and the main memory access device. The goal is to provide a method.

〔課題を解決するための手段〕[Means to solve the problem]

本発明の主記憶装置アクセス方式は、主記憶装置内の番
地付が主記憶装置と主記憶アクセス装置とのデータのや
りとりの単位であるワード単位よりも細かく、1ワード
長データの主記憶装置上の配置がワード境界をまたがる
ことを許す主記憶装置アクセス方式において、ワード内
アドレス単位毎に同時に読み書き可能なサブメモリと、
このサブメモリへのアクセスのためのアドレスデータを
生成する前記主記憶装置内に設けられたワード選択アド
レス生成回路と、前記サブメモリの入出力データをワー
ド内で順番を変換する前記主記憶アクセス装置内に設け
られたワード内配置変換回路とを含み、前記主記憶装置
と主記憶アクセス装置とのデータのやりとりでワード境
界にまたがるデータの転送時には前記ワード選択アドレ
ス生成回路により同時に2ワードにわたって1ワード長
分の読み/書きを行い、前記ワード内配置変換回路によ
りバス上の1ワード長分のデータを整列することで1ワ
ードデータの転送を1回の転送で完了することにより構
成される。
The main memory access method of the present invention is characterized in that the addressing within the main memory is finer than the unit of word, which is the unit of data exchange between the main memory and the main memory access device, and the main memory has 1-word length data. In a main memory access method that allows the arrangement of words to straddle word boundaries, a submemory that can be read and written simultaneously for each intra-word address unit;
a word selection address generation circuit provided in the main memory that generates address data for accessing this submemory, and the main memory access device that converts the order of input/output data of the submemory within a word. When data is transferred between the main memory device and the main memory access device and data is transferred across a word boundary, the word selection address generation circuit simultaneously converts one word over two words. It is constructed by performing reading/writing for a long length, and arranging the data for one word length on the bus by the intra-word arrangement conversion circuit, thereby completing the transfer of one word data in one transfer.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して具体的に
説明する。
Next, embodiments of the present invention will be specifically described with reference to the drawings.

第1図は本発明の一実施例を示すブロック構成図である
FIG. 1 is a block diagram showing one embodiment of the present invention.

第1図における実施例は、1ワード長データの主記憶装
置上での配置をワード境界にまたがることを許す主記憶
装置14が、アドレスバス16およびデータバス17を
介してそれぞれ主記憶アクセス装置15およびワード内
配置変換回路19に接続され、主記憶アクセス装置15
とワード内配置変換装置19とが接続された構成になっ
ている。主記憶装置14はn+1個のサブメモリ(Mo
 、Mt 、−M、)20.21.22とワード選択ア
ドレス生成回路18とから構成されている。サブメモリ
20,21.22へのアクセスはそれぞれサブメモリア
ドレスバス23,24.25とサブメモリデータバス2
6,27.28とに独立にアクセスされ、それぞれのア
クセスデータ値をm、)、ml 、・・・、mfiとす
る。ワード選択アドレス生成回路18はアドレスバス1
6中のワードアドレスを示すワード選択アドレスバス2
つとワード内アドレスを示すワード内選択アドレスバス
30とを入力として、ワードアドレスおよびワード内ア
ドレスのそれぞれの値w1およびW。から第2図の動作
衣に従ってアクセスすべきサブメモリとそのワード選択
アドレスとをサブメモリアドレスバス23,24.25
上に生成する。
In the embodiment shown in FIG. 1, a main memory device 14 that allows the arrangement of one-word length data on the main memory device across word boundaries is connected to a main memory access device 15 via an address bus 16 and a data bus 17, respectively. and the intra-word arrangement conversion circuit 19, and the main memory access device 15
and an intra-word rearrangement conversion device 19 are connected. The main memory device 14 has n+1 submemories (Mo
, Mt, -M,) 20.21.22 and a word selection address generation circuit 18. Access to the submemories 20, 21.22 is via submemory address buses 23, 24.25 and submemory data bus 2, respectively.
6, 27, and 28, and their respective access data values are denoted by m, ), ml, . . . , mfi. The word selection address generation circuit 18 is connected to the address bus 1
Word selection address bus 2 indicating the word address in 6
and the intra-word selection address bus 30 indicating the intra-word address, and the values w1 and W of the word address and the intra-word address, respectively. The sub-memory to be accessed and its word selection address according to the operation shown in FIG.
Generate above.

一方、ワード内配置変換回路19は、ワード内アドレス
を示すワード内選択アドレスバス31を入力として、ワ
ード内アドレスの値w□から第3図の動作表に従って、
データバス17のサブメモリデータバス26,27.2
8に対応するデータmO、ml 、meの順序を組替え
整列する。
On the other hand, the intra-word arrangement conversion circuit 19 inputs the intra-word selection address bus 31 indicating the intra-word address, and converts the intra-word address value w□ according to the operation table shown in FIG.
Sub-memory data bus 26, 27.2 of data bus 17
The order of data mO, ml, and me corresponding to No. 8 is rearranged and arranged.

そこで、主記憶装置14は従来方式と同様にアドレスバ
ス16で接続されている主記憶アクセス装置15からの
アクセス要求で、ワード選択アドレスバス29で示され
るワードアドレスW1番地内のワード内選択アドレスバ
ス30で示されるw□番地からの1ワード長データを読
出しする場合に、ワードアドレスW1のワード内アドレ
スがwO0番目らn番目までのサブメモリのデータとワ
ードアドレスW1+1のワード内アドレスが0番目から
w、)−1番目までのサブメモリのデータとを1度に読
出す、一方、読出されたこれらのデータm、)、ml 
、・・・、maはワード内配置変換回路19に1回のバ
スサイクルにより転送され、mwo+ ”・、 m、 
、 m(1、”’、 m、Q−1の順序の1ワード長デ
ータに並べかえられて、主記憶アクセス装置15へ送る
Therefore, in response to an access request from the main memory access device 15 connected to the address bus 16 as in the conventional system, the main memory device 14 uses the in-word selection address bus within the word address W1 indicated by the word selection address bus 29. When reading 1-word length data from the w□ address indicated by 30, the submemory data of the word address W1 from wO0th to the nth address and the word address W1+1 of the submemory data from the 0th to nth address. w, ) - the data of the sub-memory up to the first are read at once, while these read data m, ), ml
, . . . , ma is transferred to the intra-word arrangement conversion circuit 19 in one bus cycle, and mwo+ ”・, m,
, m(1,''', m, Q-1) and sends it to the main memory access device 15.

書込についても同様であるが、ワード内配置変換回路1
9は読出の逆の動作となる。
The same applies to writing, but the intra-word placement conversion circuit 1
9 is an operation opposite to reading.

本実施例においては、主記憶装置と主記憶アクセス装置
およびワード内配置変換回路との間のデータ転送が1ワ
ードについてみるとバス使用率が半減し、主記憶アクセ
ス装置のバス空き待ち時間による処理能力の低下を防ぐ
ことができる。
In this embodiment, when the data transfer between the main memory device, the main memory access device, and the intra-word layout conversion circuit is considered for one word, the bus usage rate is halved, and the bus usage rate is reduced by half due to the bus free waiting time of the main memory access device. This can prevent a decline in performance.

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

以上説明したように本発明によれば、主記憶アクセス装
置からの不要なメモリアクセスを省きバスサイクルを有
効に使うことにより、バス性能の向上ひいてはシステム
全体の性能向上を図ることができる。
As described above, according to the present invention, by eliminating unnecessary memory accesses from the main memory access device and effectively using bus cycles, it is possible to improve bus performance and, by extension, the performance of the entire system.

また本発明によれば、従来ソフトウェアによりメモリ使
用効率を悪くしてデータを意識的にワード境界となるよ
うな配置を行い、性能向上を図っていた方式に比較して
も性能上は変わらない等の効果が得られる。
Furthermore, according to the present invention, there is no difference in performance compared to the conventional method in which memory usage efficiency is reduced using software and data is intentionally arranged on word boundaries to improve performance. The effect of this can be obtained.

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

第1図は本発明の一実施例を示すブロック構成図、第2
図は第1図で示したワード選択アドレス生成回路の動作
表、第3図は第1図で示したワード内配置変換回路の動
作表、第4図は従来の主記憶装置の構成を示すブロック
図である。 1.14・・・主記憶装置、2,15・・・主記憶アク
セス装置、3.16・・・アドレスバス、4.17・・
・データバス、5,6,7,20.21.22・・・サ
ブメモリ、8,9.10.23,24.25・・・サブ
メモリアドレスバス、11,12,13,26゜27.
28・・・サブメモリデータバス、18・・・ワード選
択アドレス生成回路、19・・・ワード内配置変換回路
、29・・・ワード選択アドレスバス、30゜31・・
・ワード内選択アドレスバス。
FIG. 1 is a block diagram showing one embodiment of the present invention, and FIG.
The figure shows an operation table of the word selection address generation circuit shown in Fig. 1, Fig. 3 shows an operation table of the intra-word placement conversion circuit shown in Fig. 1, and Fig. 4 shows a block diagram showing the configuration of a conventional main memory device. It is a diagram. 1.14... Main memory device, 2,15... Main memory access device, 3.16... Address bus, 4.17...
・Data bus, 5, 6, 7, 20.21.22...Sub memory, 8, 9.10.23, 24.25...Sub memory address bus, 11, 12, 13, 26° 27.
28... Sub memory data bus, 18... Word selection address generation circuit, 19... Word placement conversion circuit, 29... Word selection address bus, 30°31...
- Intra-word selection address bus.

Claims (1)

【特許請求の範囲】[Claims]  主記憶装置内の番地付が主記憶装置と主記憶アクセス
装置とのデータのやりとりの単位であるワード単位より
も細かく、1ワード長データの主記憶装置上の配置がワ
ード境界をまたがることを許す主記憶装置アクセス方式
において、ワード内アドレス単位毎に同時に読み書き可
能なサブメモリと、このサブメモリへのアクセスのため
のアドレスデータを生成する前記主記憶装置内に設けら
れたワード選択アドレス生成回路と、前記サブメモリへ
の入出力データをワード内で順番を変換する前記主記憶
アクセス装置内に設けられたワード内配置変換回路とを
含み、前記主記憶装置と主記憶アクセス装置とのデータ
のやりとりでワード境界にまたがるデータの転送時には
前記ワード選択アドレス生成回路により同時に2ワード
にわたって1ワード長分の読み/書きを行い、前記ワー
ド内配置変換回路によりバス上の1ワード長分のデータ
を整列することで1ワードデータの転送を1回の転送で
完了することを特徴とする主記憶装置アクセス方式。
The addressing in the main memory is finer than the word unit, which is the unit of data exchange between the main memory and the main memory access device, and allows the arrangement of 1-word length data on the main memory to straddle word boundaries. In the main memory access method, a submemory that can be read and written simultaneously in each word address unit, and a word selection address generation circuit provided in the main memory that generates address data for accessing this submemory. , an intra-word layout conversion circuit provided in the main memory access device that converts the order of input/output data to the sub-memory within a word, and exchanges data between the main memory device and the main memory access device. When transferring data across word boundaries, the word selection address generation circuit simultaneously reads/writes one word length over two words, and the intraword arrangement conversion circuit aligns one word length data on the bus. A main memory access method characterized by completing the transfer of one word of data in one transfer.
JP6530289A 1989-03-17 1989-03-17 Main storage device access system Pending JPH02244350A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6530289A JPH02244350A (en) 1989-03-17 1989-03-17 Main storage device access system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6530289A JPH02244350A (en) 1989-03-17 1989-03-17 Main storage device access system

Publications (1)

Publication Number Publication Date
JPH02244350A true JPH02244350A (en) 1990-09-28

Family

ID=13282979

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6530289A Pending JPH02244350A (en) 1989-03-17 1989-03-17 Main storage device access system

Country Status (1)

Country Link
JP (1) JPH02244350A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5506978A (en) * 1992-05-18 1996-04-09 Mitsubishi Denki Kabushiki Kaisha Memory apparatus including a shift circuit for shifting a word select signal by a predetermined number of words

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5506978A (en) * 1992-05-18 1996-04-09 Mitsubishi Denki Kabushiki Kaisha Memory apparatus including a shift circuit for shifting a word select signal by a predetermined number of words

Similar Documents

Publication Publication Date Title
US7707328B2 (en) Memory access control circuit
KR19990007287A (en) Semiconductor integrated circuit, computer system, data processing apparatus and data processing method
JP2004536417A (en) Memory device for performing addressing with different burst order in read and write operations
CN108139989B (en) Computer device equipped with processing in memory and narrow access port
JP2007018222A (en) Memory access control circuit
JPH02244350A (en) Main storage device access system
JP3618249B2 (en) Data transfer device
JPH0546527A (en) Dual port memory circuit
JPS5841479A (en) Main storage device
JPH01181137A (en) Storage unit
JP2994917B2 (en) Storage system
JPS62241045A (en) Storage device
JPS62276663A (en) Program transfer method
JPS63251847A (en) Main storage device
JP2976443B2 (en) Information processing device that exchanges data via system bus
JPH0235551A (en) Address conversion system for channel device
JPS593665A (en) Multiaccessible memory system
JPS63305447A (en) Memory access control circuit
JPH04192058A (en) Data transfer storage device
JPH0322073A (en) Data transfer controller
JPS58166581A (en) Addressing system of memory
JPS61193245A (en) Memory control system
JPS61204751A (en) Controlling system for memory device
JPH04116750A (en) Dma memory transfer device
JPH03252854A (en) One bus control system by two processors