Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0221615B2 - - Google Patents
[go: Go Back, main page]

JPH0221615B2 - - Google Patents

Info

Publication number
JPH0221615B2
JPH0221615B2 JP20585183A JP20585183A JPH0221615B2 JP H0221615 B2 JPH0221615 B2 JP H0221615B2 JP 20585183 A JP20585183 A JP 20585183A JP 20585183 A JP20585183 A JP 20585183A JP H0221615 B2 JPH0221615 B2 JP H0221615B2
Authority
JP
Japan
Prior art keywords
banks
bank
data
exclusive
bits
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
JP20585183A
Other languages
Japanese (ja)
Other versions
JPS60100243A (en
Inventor
Akira Maeda
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.)
National Institute of Advanced Industrial Science and Technology AIST
Original Assignee
Agency of Industrial Science and Technology
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 Agency of Industrial Science and Technology filed Critical Agency of Industrial Science and Technology
Priority to JP20585183A priority Critical patent/JPS60100243A/en
Publication of JPS60100243A publication Critical patent/JPS60100243A/en
Publication of JPH0221615B2 publication Critical patent/JPH0221615B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/06Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication

Landscapes

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

Description

【発明の詳細な説明】[Detailed description of the invention]

〔発明の従来分野〕 本発明はメモリバンクに対するアクセス効率の
向上を図つたメモリバンク選択装置に関する。 〔発明の技術的背景とその問題点〕 大容量メモリを有する計算機システムにあつて
は、そのメモリ装置を複数のバンクに分け、デー
タの並列アクセスを可能ならしめて、その見掛上
のアクセス速度の高速化が図られている。そして
通常、上記複数のバンクのうちのどれを選択する
かは、メモリアドレス情報の下位ビツトデータが
利用されている。 例えばメモリ装置が第1図に示すように2m
(m=2、4台)のバンク1,2,3,4で構成
されている場合、データ処理装置5は第2図に示
すアドレス情報のうちの下位2ビツトを利用し、
(0,0)なるときにはバンク1を、(0,1)な
るときにはバンク2を、(1,0)なるときには
バンク3を、そして(1,1)なるときにはバン
ク4をそれぞれ選択するようにしている。このよ
うにして、例えばメモリ装置のアドレスを順次ア
クセスする場合等、バンク1をアクセスし、その
アクセス処理の途中にバンク2のアクセスを可能
ならしめて、そのアクセス速度の見掛上の高速化
を図つている。このアクセス制御方式は通常イン
ターリーブ方式と称され、アクセスアドレスが1
つ増加する毎に隣りのバンクが繰返し的にアクセ
スでき、等価的に同時に複数のバンクをアクセス
できると云う特徴がある。 ところが、データ処理装置5が扱うデータはメ
モリ装置の各アドレスに順に格納されるとは限ら
ず、例えば第3図に示す如き行列データを扱う場
合、(0)、(8)、(16)……のようにアクセス順
序を定めたいことがある。然し乍ら、上述した下
位2ビツトによるバンク選択では、この例では常
に連続して1つのバンクが選択されることにな
り、結果、先のアクセスが終了する迄、次のアク
セスを持たなければならなくなる。このような例
は、行列の積演算等でよく出現し、結局複数のバ
ンクを有効に利用してアクセスの高速化を図るこ
とができないと云う問題があつた。そして、これ
が為に計算処理の高速化を図ることもできないと
云う不具合があつた。 〔発明の目的〕 本発明はこのような事情を考慮してなされたも
ので、その目的とするところは、メモリアクセス
のアドレスパターンに拘らずにメモリバンクをラ
ンダムに選択してそのアクセス速度の高速化を図
り得るバンク選択の自由度の高いメモリバンク選
択装置を提供することにある。 〔発明の概要〕 本発明は、2m台(mは整数)のバンクからなる
メモリ装置に対するnビツト(nは整数)のアド
レス情報を用いて、前記2m台のバンクの内の1つ
を選択するためのメモリバンク選択装置におい
て、 前記アドレス情報のうち第(i+k・m)番目
のビツト位置(iは0,1,……,m−1の整
数;kは0,1,……,n/m−1の整数)のデ
ータ同志の排他的論理和を求めて第i番目の出力
データとする排他的論理和回路をm組設けてなる
排他的論理和回路群と、 この排他的論理和回路群から得られたm組の出
力データから前記2m台のバンクのうちの1つを選
択的に指定するためのデコーダとを具備したこと
を特徴とするものである。 〔発明の効果〕 かくして本発明によれば、2m台のメモリバンク
をアドレス情報の下位mビツトだけでなく、その
上位ビツトのデータをも考慮して、具体的にはm
ビツト異にするビツト位置のデータとの排他的論
理和をとることによつて求められたmビツトのデ
ータに従つて選択するので、メモリアクセスのア
ドレスパターンに殆んど影響されることなしにメ
モリバンクを略々ランダムに選択することが可能
となる。つまり全てのバンクにアクセスを分散さ
せることができ、この結果メモリアクセスの高速
化を図ることが可能となる等の効果が奏せられ
る。またその制御形態も簡易であり、実用的利点
が高い。 〔発明の実施例〕 以下、図面を参照して本発明の一実施例につき
説明する。 本発明はメモリ装置が2m台のバンクによつて構
成されるとき、上記メモリ装置に対するk・mビ
ツト(k,m:整数)のアドレス情報の相互にm
ビツト異なるビツト位置のデータをそれぞれ排他
的論理和処理し、それらの各論理和結果からなる
mビツトのデータを以つて前記2m台のバンクに対
する選択情報とするようにしたものである。即
ち、第4図に示されるアドレスデータの第0桁
(2゜ビツト位置)に対して、そのmビツト異なる
ビツト位置、第m桁、第2m桁……のデータを相
互に排他的論理和処理し、同様に第1桁、第m+
1桁、第2m+1桁……のデータを排他的論理和
処理し、更に第m−1桁、第2m−1桁、第3m−
1桁のデータを排他的論理和処理し、これらのm
組の排他的論理和処理結果からmビツトのデータ
を得るようにしたものである。このようにして得
られたmビツトのデータは、排他的論理和の性質
からして前記アドレスデータの下位mビツトおよ
びその上位ビツトデータに対応して得られること
になり、任意の1ビツトが変化してもこの排他論
理和の出力mビツトは変化し、その結果選択され
るバンクが変わるので1つのバンクが偏つて選ば
られることがない。 第5図はmが2、つまり2m=4台のバンクにて
メモリ装置を構成した場合における本実施例装置
の概略構成を示すものである。この場合、レジス
タ6に格納されたアドレスデータのm=2ビツト
異にするビツトデータをそれぞれ排他的論理和処
理する排他的論理和回路(EX−OR回路)7を
階層的に設け、これらのEX−OR回路7群の2
つの出力データをデコーダ8に入力し、メモリバ
ンク1,2,3,4を択一的に選択する選択信号
を得るように装置が構成される。 デコーダ8はEX−OR回路から得られた2ビ
ツトのデータを解読することにより容易に4種の
選択信号のうち一つを得ることができる。 このように構成すれば、連続したmビツトのデ
ータのうち、少なくとも1ビツトのデータが変化
することにより、mビツトの出力データ(排他的
論理和結果)のうちの少なくとも1ビツトの値が
変化し、結局同じバンクが連続して選択されるこ
とがなくなる。そして、このようなデータに従つ
て選択されたバンク1,2,3,4に対し、前記
レジスタ6に格納されたアドレス情報の下位mビ
ツトを除く上位ビツトのデータをアドレスとして
そのバンクをアクセスすれば異なるアドレス情報
で同じバンクの同じアドレスにアクセスすること
なく従来と同様なメモリアクセスを行うことが可
能となる。 ちなみに複数のアドレス情報の下位mビツトを
除く上位ビツトが異なる場合、上記複数のアドレ
ス情報で同じバンクを連続的にアクセスしたとし
ても、そのバンクに対するアドレスが異なるので
あるから同じアドレスを重複してアクセスするこ
とはない。また、下位mビツトを除く上位ビツト
が同じ場合には上位ビツトが同じであつても、下
位mビツトが必ず異なつているから、必ずバンク
に対するアドレスが各バンクに対してそれぞれ同
じであつても異なるバンクが選択されるので同じ
バンクをアクセスすることはない。従つて、異な
るアドレス情報で同じバンクの同じアドレスをア
クセスすることはない。 以上の議論では、下位のmビツトを除いたもの
をバンクのアドレスとしているが、mビツトが連
続しておれば、排他論理和の性質から必ずしも下
位mビツトである必要はなく、任意の位置の連続
したmビツトを除くデータをバンクのアドレスと
しても異なるアドレス情報で同じバンクの同じア
ドレスをアクセスしないことも明らかであろう。 次表はこのような制御によりアドレスビツトパ
ターンが連続的に変化した場合の、選択バンクを
示すものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory bank selection device that improves the efficiency of accessing memory banks. [Technical background of the invention and its problems] In a computer system having a large capacity memory, the memory device is divided into a plurality of banks to enable parallel data access, thereby increasing the apparent access speed. Efforts are being made to speed it up. Usually, the lower bit data of the memory address information is used to select which of the plurality of banks is selected. For example, when the memory device is composed of 2 m (m=2, 4) banks 1, 2, 3, and 4 as shown in FIG. 1, the data processing device 5 uses the address information shown in FIG. Using the lower 2 bits of
When it becomes (0, 0), bank 1 is selected, when it becomes (0, 1), bank 2 is selected, when it becomes (1, 0), bank 3 is selected, and when it becomes (1, 1), bank 4 is selected. There is. In this way, for example, when sequentially accessing the addresses of a memory device, it is possible to access bank 1 and access bank 2 during the access process, thereby increasing the apparent access speed. It's on. This access control method is usually called an interleave method, and the access address is
Each time the number of banks increases, adjacent banks can be accessed repeatedly, and a plurality of banks can equivalently be accessed at the same time. However, the data handled by the data processing device 5 is not necessarily stored in each address of the memory device in order. For example, when handling matrix data as shown in FIG. There are times when you want to determine the access order, such as... However, in the above-described bank selection using the lower two bits, one bank is always selected consecutively in this example, and as a result, the next access must be made until the previous access is completed. Such an example often appears in matrix multiplication operations, etc., and the problem is that it is not possible to effectively utilize a plurality of banks to speed up access. As a result, there was a problem in that it was not possible to speed up calculation processing. [Object of the Invention] The present invention has been made in consideration of the above circumstances, and its purpose is to randomly select a memory bank without regard to the memory access address pattern and to increase the access speed. An object of the present invention is to provide a memory bank selection device with a high degree of freedom in bank selection. [Summary of the Invention] The present invention uses n-bit (n is an integer) address information for a memory device consisting of 2 m banks (m is an integer) to address one of the 2 m banks. In the memory bank selection device for selection, the (i+k·m)th bit position of the address information (i is an integer of 0, 1, ..., m-1; k is an integer of 0, 1, ..., an exclusive OR circuit group comprising m sets of exclusive OR circuits that calculates the exclusive OR of data (an integer of n/m-1) and outputs it as the i-th output data; The present invention is characterized by comprising a decoder for selectively designating one of the 2 m banks from m sets of output data obtained from the sum circuit group. [Effects of the Invention] Thus, according to the present invention, 2 m memory banks can be arranged by taking into consideration not only the lower m bits of address information but also the data of the upper bits thereof.
Since the selection is made according to the m-bit data obtained by performing an exclusive OR with the data at the bit position where the bits are different, the memory access is almost unaffected by the memory access address pattern It becomes possible to select banks almost at random. In other words, accesses can be distributed to all banks, and as a result, effects such as speeding up memory access can be achieved. Moreover, its control form is simple and has high practical advantages. [Embodiment of the Invention] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. In the present invention, when a memory device is composed of 2 m banks, address information of k·m bits (k, m: integer) for the memory device can be mutually m
Data at different bit positions are subjected to exclusive OR processing, and the m-bit data obtained from the respective OR results is used as selection information for the 2 m banks. In other words, data at bit positions that differ by m bits from the 0th digit (2° bit position) of the address data shown in Figure 4, the m-th digit, the 2m-th digit, etc. Similarly, the first digit, m+
Exclusive OR processing is performed on the data of 1st digit, 2m+1 digit, etc., and then the m-1st digit, 2m-1st digit, 3m-th digit
Exclusive OR processing is performed on 1-digit data, and these m
m-bit data is obtained from the exclusive OR processing result of the set. Due to the nature of exclusive OR, the m-bit data obtained in this way is obtained corresponding to the lower m bits of the address data and its upper bit data, and any one bit changes. Even if the m bits output from this exclusive OR change, the bank to be selected changes as a result, so that one bank will not be selected unbiasedly. FIG. 5 shows a schematic configuration of the device of this embodiment when m is 2, that is, the memory device is configured with 2 m =4 banks. In this case, exclusive OR circuits (EX-OR circuits) 7 are provided hierarchically to perform exclusive OR processing on bit data that differs by m = 2 bits in the address data stored in the register 6, and these EX-OR circuits are provided hierarchically. -2 of 7 groups of OR circuits
The device is configured to input the two output data to the decoder 8 and obtain a selection signal for selectively selecting one of the memory banks 1, 2, 3, and 4. The decoder 8 can easily obtain one of the four selection signals by decoding the 2-bit data obtained from the EX-OR circuit. With this configuration, the value of at least one bit of the m-bit output data (exclusive OR result) changes due to a change in at least one bit of continuous m-bit data. , the same bank will not be selected consecutively. Then, banks 1, 2, 3, and 4 selected according to such data are accessed using the data of the upper bits excluding the lower m bits of the address information stored in the register 6 as an address. This makes it possible to perform memory accesses similar to conventional memory accesses without accessing the same address in the same bank using different address information. By the way, if the upper bits excluding the lower m bits of multiple address information are different, even if the same bank is accessed consecutively with the multiple address information, the addresses for that bank are different, so the same address will not be accessed twice. There's nothing to do. Furthermore, if the upper bits excluding the lower m bits are the same, the lower m bits are always different even if the upper bits are the same, so the addresses for banks are always different even if they are the same for each bank. Since the bank is selected, the same bank will not be accessed. Therefore, the same address in the same bank will not be accessed using different address information. In the above discussion, the address of the bank is the one excluding the lower m bits, but as long as the m bits are consecutive, it does not necessarily have to be the lower m bits due to the nature of exclusive OR, but can be at any position. It is also clear that even if data excluding consecutive m bits is used as a bank address, the same address in the same bank will not be accessed with different address information. The following table shows the banks selected when the address bit pattern changes continuously under such control.

【表】【table】

【表】【table】

Claims (1)

【特許請求の範囲】 1 2m台(mは整数)のバンクからなるメモリ装
置に対するnビツト(nは整数)のアドレス情報
を用いて、前記2m台のバンクの内の1つを選択す
るためのメモリバンク選択装置において、 前記アドレス情報のうち第(i+k・m)番目
のビツト位置(iは0,1,……,m−1の整
数;kは0,1,……,n/m−1の整数)のデ
ータ同志の排他的論理和を求めて第i番目の出力
データとする排他的論理和回路をm組設けてなる
排他的論理和回路群と、 この排他的論理和回路群から得られたm組の出
力データから前記2m台のバンクのうちの1つを選
択的に指定するためのデコーダとを具備したこと
を特徴とするメモリバンク選択装置。
[Claims] 1 Select one of the 2 m banks using n-bit (n is an integer) address information for a memory device consisting of 2 m banks (m is an integer). In the memory bank selection device for an exclusive OR circuit group comprising m sets of exclusive OR circuits that calculates an exclusive OR of data (an integer of m-1) and outputs it as i-th output data; and this exclusive OR circuit. A memory bank selection device comprising: a decoder for selectively specifying one of the 2 m banks from m sets of output data obtained from the group.
JP20585183A 1983-11-04 1983-11-04 Memory bank selection device Granted JPS60100243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20585183A JPS60100243A (en) 1983-11-04 1983-11-04 Memory bank selection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20585183A JPS60100243A (en) 1983-11-04 1983-11-04 Memory bank selection device

Publications (2)

Publication Number Publication Date
JPS60100243A JPS60100243A (en) 1985-06-04
JPH0221615B2 true JPH0221615B2 (en) 1990-05-15

Family

ID=16513756

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20585183A Granted JPS60100243A (en) 1983-11-04 1983-11-04 Memory bank selection device

Country Status (1)

Country Link
JP (1) JPS60100243A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6226200B2 (en) * 2014-10-23 2017-11-08 京セラドキュメントソリューションズ株式会社 Memory controller

Also Published As

Publication number Publication date
JPS60100243A (en) 1985-06-04

Similar Documents

Publication Publication Date Title
US3781812A (en) Addressing system responsive to a transfer vector for accessing a memory
JPS6126712B2 (en)
JPS6247786A (en) Exclusive memory for adjacent image processing
US4800535A (en) Interleaved memory addressing system and method using a parity signal
US4183464A (en) Hash-coding data storage apparatus with error suppression
JPH0531176B2 (en)
US3737871A (en) Stack register renamer
EP0367995B1 (en) Vector data transfer controller
JPH05282437A (en) Picture rotating circuit
US3659274A (en) Flow-through shifter
US3435420A (en) Contiguous bulk storage addressing
JPH0221615B2 (en)
JP3124852B2 (en) Data transfer circuit and address array
GB2123998A (en) Data memory arrangement
JPH0522238B2 (en)
JPH10116226A (en) Address array device of semiconductor storage device
US3244865A (en) Asynchronous binary computer system using ternary components
JPS6027967A (en) Block transfer control method for buffer storage device
JPS6168636A (en) Data processor
JP2548286B2 (en) Image data processor
JPS5862686A (en) Image memory unit
JPS6055591A (en) Access method of memory unit
JPH04178851A (en) information processing equipment
JP2906449B2 (en) Bitmap display control device
JPH0687259B2 (en) Image transposition method and device