JPH07253930A - Dynamic address conversion device - Google Patents

Dynamic address conversion device

Info

Publication number
JPH07253930A
JPH07253930A JP6069074A JP6907494A JPH07253930A JP H07253930 A JPH07253930 A JP H07253930A JP 6069074 A JP6069074 A JP 6069074A JP 6907494 A JP6907494 A JP 6907494A JP H07253930 A JPH07253930 A JP H07253930A
Authority
JP
Japan
Prior art keywords
address
memory
offset
processor
main
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.)
Granted
Application number
JP6069074A
Other languages
Japanese (ja)
Other versions
JP3391020B2 (en
Inventor
Yuugo Sunaga
祐悟 須長
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.)
Fuji Electric Co Ltd
Fuji Facom Corp
Original Assignee
Fuji Electric Co Ltd
Fuji Facom 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 Fuji Electric Co Ltd, Fuji Facom Corp filed Critical Fuji Electric Co Ltd
Priority to JP06907494A priority Critical patent/JP3391020B2/en
Publication of JPH07253930A publication Critical patent/JPH07253930A/en
Application granted granted Critical
Publication of JP3391020B2 publication Critical patent/JP3391020B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Memory System (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To increase the flexibility and degree of freedom of dynamic address conversion. CONSTITUTION:A processor 1 is connected to an OAM 2 and an adder 5 through an address bus 7 and to a memory 6 through a data bus 8 respectively. An ODM 3 and a processor 4 dedicated to conversion are connected between the OAM 2 and adder 5 in parallel through buses 9 and 10. The address bus 7 is connected to the address input terminal of the OAM 2 and the bus 9 is connected to the data output terminal. The bus 9 is connected to the address input terminal of the ODM 3 and the bus 10 is connected to the data output terminal. The address bus 7 and bus 10 are connected to the input side of the adder 5, and the address input terminal of the memory 6 is connected to the output side through an address bus 11. A conversion offset address OA is stored in the OAM 2 and an offset value OD is stored in the ODM 3; and the processor 4 dedicated to the conversion varies the OD in the ODM 3 at optional timing.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、マイクロプロセッサシ
ステムにおいて、プロセッサが出力した論理アドレス
を、実際にメモリをアクセスする物理アドレスに変換す
るダイナミックアドレス変換装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a dynamic address conversion device for converting a logical address output by a processor into a physical address for actually accessing a memory in a microprocessor system.

【0002】[0002]

【従来の技術】従来、マイクロプロセッサシステムにお
けるアドレス変換装置としては、一般にメモリ管理ユニ
ット(MMU)と呼ばれるものがある。このMMUはプ
ロセッサから出力されたアドレスに一定のオフセット値
を加算したり、アドレスのビット構成を一定の規則にし
たがって部分的に並べかえたり、メモリ空間をある大き
さのセグメントに分割して各セグメントごとに設定され
ているパラメータの値とプロセッサから出力されたアド
レスにもとづいて物理アドレスを算出したりする。それ
により、メモリの管理や、プログラム効率の向上、メモ
リ空間の効率的運用、論理または仮想メモリ空間の拡張
等が実現される。
2. Description of the Related Art Conventionally, an address translation device in a microprocessor system is generally called a memory management unit (MMU). This MMU adds a constant offset value to the address output from the processor, partially rearranges the bit configuration of the address according to a certain rule, divides the memory space into segments of a certain size, and The physical address is calculated based on the value of the parameter set in and the address output from the processor. This realizes memory management, improvement of program efficiency, efficient operation of memory space, expansion of logical or virtual memory space, and the like.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、このM
MUにおけるアドレス変換は、一定の規則やオフセット
の設定値にしたがって行われるが、それらの規則やオフ
セットの設定値は、回路の構成によって得られる一意的
なものであったり、あるいは、初期設定時に定義された
静的(スタティック)なパラメータであることが多い。
そのため、従来の変換装置では、任意の大きさのデータ
ブロックに対し任意のタイミングでパラメータや規則を
変更したり、ブロックの連続性等を割り付けたりするこ
とができず、融通性に欠けるという問題があった。本発
明は上記問題点を解決するためになされたもので、その
目的とするところは、任意のタイミングでアドレス変換
のための規則やパラメータを変更したり、ブロックの連
続性等を割り付けることができ、変換の自由度のある融
通性にすぐれたダイナミックアドレス変換装置を提供す
ることにある。
However, this M
The address conversion in the MU is performed according to certain rules and offset setting values. These rules and offset setting values are unique values obtained by the circuit configuration, or defined at the time of initial setting. It is often a static parameter that has been set.
Therefore, in the conventional conversion device, it is not possible to change parameters and rules for arbitrary-sized data blocks at arbitrary timing, or to assign continuity of blocks, etc., and there is a problem of lacking flexibility. there were. The present invention has been made in order to solve the above problems, and its purpose is to change rules and parameters for address translation at arbitrary timing, and to assign block continuity and the like. , And to provide a dynamic address translation device which is highly flexible and flexible in translation.

【0004】[0004]

【課題を解決するための手段】上記目的を達成するため
に、第1の発明は、主プロセッサのアドレスバスに接続
され、主プロセッサから出力される論理アドレスの連続
して取り扱われる領域ごとに付された領域番号が論理ア
ドレスに対応して格納されている領域番号テーブルメモ
リと、領域番号テーブルメモリのデータ出力端にアドレ
ス入力端が接続され、主プロセッサから出力される論理
アドレスとアクセス先の主メモリの物理アドレスとのオ
フセット値が領域番号に対応して書き込まれるオフセッ
トメモリと、オフセットメモリとバス接続され、オフセ
ットメモリの格納値を書換える変換専用プロセッサと、
主プロセッサのアドレスバスおよびオフセットメモリの
データ出力端が入力側に接続され、出力側が主メモリの
アドレス入力端に接続された加算器とを備えたことを特
徴とする。
In order to achieve the above object, a first aspect of the present invention is provided for each area where a logical address output from the main processor is connected continuously and is connected to an address bus of the main processor. Area number table memory in which the specified area number is stored corresponding to the logical address, and the address input terminal is connected to the data output terminal of the area number table memory, and the logical address output from the main processor and the main address of the access destination are connected. An offset memory in which an offset value with the physical address of the memory is written corresponding to the area number, and a conversion-dedicated processor that is bus-connected to the offset memory and rewrites the stored value in the offset memory,
An address bus of the main processor and a data output terminal of the offset memory are connected to an input side, and an output side is connected to an address input terminal of the main memory.

【0005】第2の発明は、第1の発明において、オフ
セットメモリに格納されているオフセット値を変換専用
プロセッサにより任意のタイミングで書き換える手段を
備えたことを特徴とする。
A second invention is characterized in that, in the first invention, there is provided means for rewriting the offset value stored in the offset memory by the conversion dedicated processor at an arbitrary timing.

【0006】第3の発明は、第1または第2の発明にお
いて、オフセットメモリに格納されているオフセット値
を変換専用プロセッサにより書き換えて、論理アドレス
に対応する主メモリの物理アドレスのブロックサイズを
任意に変更する手段を備えたことを特徴とする。
According to a third aspect of the present invention, in the first or second aspect of the invention, the offset value stored in the offset memory is rewritten by the conversion-dedicated processor to arbitrarily set the block size of the physical address of the main memory corresponding to the logical address. It is characterized by having a means for changing to.

【0007】第4の発明は、第1または第2の発明にお
いて、オフセットメモリに格納されているオフセット値
を変換専用プロセッサにより書き換えて、主メモリ上に
分散している物理アドレスのブロックを論理アドレス上
連続した配置に再構成する手段を備えたことを特徴とす
る。
According to a fourth aspect of the invention, in the first or second aspect of the invention, the offset value stored in the offset memory is rewritten by the conversion-dedicated processor, and the blocks of physical addresses distributed in the main memory are logical addresses. It is characterized in that it is provided with a means for reconfiguring an upper continuous arrangement.

【0008】第5の発明は、第1または第2の発明にお
いて、オフセットメモリに格納されているオフセット値
を変換専用プロセッサにより書き換えて、論理アドレス
上連続している領域が対応する主メモリ上のブロックを
分散配置する手段を備えたことを特徴とする。
According to a fifth aspect of the invention, in the first or second aspect of the invention, the offset value stored in the offset memory is rewritten by the conversion-dedicated processor so that areas continuous in the logical address correspond to the main memory. It is characterized by comprising means for arranging blocks in a distributed manner.

【0009】第6の発明は、第1または第2の発明にお
いて、オフセットメモリに格納されているオフセット値
を変換専用プロセッサにより書き換えて、主メモリ上の
任意のブロックへのアクセスを制限する手段を備えたこ
とを特徴とする。
According to a sixth aspect of the invention, in the first or second aspect of the invention, there is provided means for limiting the access to an arbitrary block on the main memory by rewriting the offset value stored in the offset memory by the conversion-dedicated processor. It is characterized by having.

【0010】第7の発明は、第1または第2の発明にお
いて、オフセットメモリに格納されているオフセット値
を変換専用プロセッサにより0に書き換えて、主プロセ
ッサの出力する論理アドレスと主メモリ上の物理アドレ
スを一致させる手段を備えたことを特徴とする。
In a seventh aspect based on the first or second aspect, the offset value stored in the offset memory is rewritten to 0 by the conversion-dedicated processor, and the logical address output by the main processor and the physical address on the main memory are output. It is characterized in that a means for matching the addresses is provided.

【0011】[0011]

【作用】第1の発明においては、主プロセッサのアドレ
スバスに領域番号テーブルメモリが接続され、メモリに
は主プロセッサから出力される論理アドレスの連続して
取り扱われる領域ごとに付された領域番号が論理アドレ
スに対応して格納されている。領域番号テーブルメモリ
のデータ出力端にオフセットメモリのアドレス入力端が
接続され、そこには主プロセッサから出力される論理ア
ドレスとアクセス先の主メモリの物理アドレスとのオフ
セット値が領域番号に対応して書き込まれる。
According to the first aspect of the present invention, the area number table memory is connected to the address bus of the main processor, and the area number assigned to each area where the logical addresses output from the main processor are continuously handled is stored in the memory. It is stored corresponding to the logical address. The address input terminal of the offset memory is connected to the data output terminal of the area number table memory, and the offset value between the logical address output from the main processor and the physical address of the main memory of the access destination corresponds to the area number. Written.

【0012】オフセットメモリとバス接続された変換専
用プロセッサにより、オフセットメモリの格納値が書換
えられる。主プロセッサのアドレスバスおよびオフセッ
トメモリのデータ出力端が加算器の入力側に接続され、
加算器の出力側が主メモリのアドレス入力端に接続され
る。それにより、主プロセッサから出力された論理アド
レスにオフセットメモリの格納値が加算されて、主メモ
リ上の物理アドレスに変換される。
The value stored in the offset memory is rewritten by the conversion-dedicated processor bus-connected to the offset memory. The address bus of the main processor and the data output of the offset memory are connected to the input side of the adder,
The output side of the adder is connected to the address input terminal of the main memory. As a result, the value stored in the offset memory is added to the logical address output from the main processor and converted into a physical address on the main memory.

【0013】第2の発明においては、オフセットメモリ
に格納されているオフセット値が変換専用プロセッサに
より任意のタイミングで書き換えられる。
In the second invention, the offset value stored in the offset memory is rewritten by the conversion-dedicated processor at an arbitrary timing.

【0014】第3の発明においては、オフセットメモリ
に格納されているオフセット値が変換専用プロセッサに
より書き換えられることにより、論理アドレスに対応し
て主メモリ上の物理アドレスにより指定されるブロック
サイズが任意に変更される。
In the third invention, the offset value stored in the offset memory is rewritten by the conversion-dedicated processor, so that the block size designated by the physical address on the main memory corresponding to the logical address is arbitrarily set. Be changed.

【0015】第4の発明においては、オフセットメモリ
に格納されているオフセット値が変換専用プロセッサに
より書き換えられることにより、主メモリ上に分散して
いる物理アドレスのブロックが論理アドレス上連続した
配置に再構成される。
In the fourth invention, the offset value stored in the offset memory is rewritten by the conversion-dedicated processor, so that blocks of physical addresses distributed in the main memory are re-arranged in a continuous logical address arrangement. Composed.

【0016】第5の発明においては、オフセットメモリ
に格納されているオフセット値が変換専用プロセッサに
より書き換えられることにより、論理アドレス上連続し
ている領域が対応する主メモリ上のブロックが分散配置
される。
In the fifth aspect of the invention, the offset value stored in the offset memory is rewritten by the conversion-dedicated processor, so that blocks in the main memory corresponding to areas continuous in logical address are distributed. .

【0017】第6の発明においては、オフセットメモリ
に格納されているオフセット値が変換専用プロセッサに
より書き換えられることにより、主メモリ上の任意のブ
ロックへのアクセスが制限される。
In the sixth aspect of the invention, the offset value stored in the offset memory is rewritten by the conversion-dedicated processor, so that access to any block in the main memory is restricted.

【0018】第7の発明においては、オフセットメモリ
に格納されているオフセット値が変換専用プロセッサに
より0に書き換えられることにより、主プロセッサの出
力する論理アドレスと主メモリ上の物理アドレスが一致
する。
In the seventh invention, the offset value stored in the offset memory is rewritten to 0 by the conversion-dedicated processor, so that the logical address output from the main processor and the physical address on the main memory match.

【0019】[0019]

【実施例】以下、図に沿って本発明の実施例を説明す
る。図1は第1の発明に係る実施例の概略構成を示すブ
ロック図である。図において、1はメインのプロセッサ
であり、アドレスバス7を介して変換オフセットアドレ
ス格納メモリ(OAM)2および加算器5と接続され、
また、プロセッサ1はデータバス8を介してメモリ6と
接続されている。OAM2と加算器5との間には変換オ
フセットデータ格納メモリ(ODM)3および変換専用
プロセッサ4がバス9,10を介して並列に接続されて
いる。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a schematic configuration of an embodiment according to the first invention. In the figure, 1 is a main processor, which is connected to a conversion offset address storage memory (OAM) 2 and an adder 5 via an address bus 7,
The processor 1 is also connected to the memory 6 via the data bus 8. A conversion offset data storage memory (ODM) 3 and a conversion dedicated processor 4 are connected in parallel between the OAM 2 and the adder 5 via buses 9 and 10.

【0020】領域番号テーブルメモリであるところのO
AM2は、そのアドレス入力端(図示せず)にアドレス
バス7が接続され、データ出力端(図示せず)にバス9
が接続されている。オフセットメモリであるところのO
DM3は、そのアドレス入力端(図示せず)にバス9が
接続され、データ出力端(図示せず)にバス10が接続
されている。加算器5は入力側にアドレスバス7とバス
10が接続され、出力側にアドレスバス11が接続され
ている。アドレスバス11はメモリ6のアドレス入力端
に接続されている。
O in the area number table memory
The AM2 has an address input terminal (not shown) connected to the address bus 7 and a data output terminal (not shown) connected to the bus 9.
Are connected. O as an offset memory
The DM3 has an address input end (not shown) connected to the bus 9 and a data output end (not shown) connected to the bus 10. The adder 5 has an input side connected to the address buses 7 and 10 and an output side connected to the address bus 11. The address bus 11 is connected to the address input terminal of the memory 6.

【0021】次に動作について説明する。最初に初期設
定として、変換専用プロセッサ4がプロセッサ1の論理
アドレス定義をOAM2に書き込む。具体的には、プロ
セッサ1の論理アドレスマップにおいて連続して扱われ
る最小領域ごとに同一の番号を付して、その番号を論理
アドレスに対応させてOAM2に書き込む。つまり、論
理アドレスと領域番号との対応を表した領域番号テーブ
ルが作成される。次いで、変換専用プロセッサ4はプロ
セッサ1の論理アドレス定義領域の各先頭アドレス(論
理アドレス)と、メモリ6の対応する領域の先頭アドレ
ス(物理アドレス)との差分(オフセット値OD)を算
出し、領域番号とオフセット値ODとの対応を表したテ
ーブルを作成し、ODM3へ格納して初期設定を終了す
る。
Next, the operation will be described. First, as an initial setting, the conversion-dedicated processor 4 writes the logical address definition of the processor 1 in the OAM 2. Specifically, the same number is assigned to each of the smallest areas that are continuously treated in the logical address map of the processor 1, and the number is written in the OAM 2 in association with the logical address. That is, the area number table showing the correspondence between the logical address and the area number is created. Next, the conversion-dedicated processor 4 calculates the difference (offset value OD) between each start address (logical address) of the logical address definition area of the processor 1 and the start address (physical address) of the corresponding area of the memory 6, and the area A table showing the correspondence between the numbers and the offset values OD is created, stored in the ODM 3, and the initialization is completed.

【0022】次に、プロセッサ1が作動し、メモリアク
セス時にアドレスバス7に論理アドレスLAを出力す
る。論理アドレスLAはOAM2および加算器5に入力
される。OAM2は論理アドレスLAに対応する領域番
号であるところの変換オフセットアドレスOAを出力
し、バス9を介してODM3へ入力する。ODM3は、
OAに対応するオフセット値ODを出力し、バス10を
介して加算器5へ入力する。加算器5は論理アドレスL
Aとオフセット値ODを加算して物理アドレスPAと
し、アドレスバス11へ出力する。その結果、PAがメ
モリ6に入力されて、メモリ6がアクセスされる。な
お、変換専用プロセッサ4はプロセッサ1の動作と並行
して、任意のタイミングでOAM2のOAおよびODM
3のODを書換えることが可能であり、それにより、動
的なアドレス変換が可能になる。
Next, the processor 1 operates and outputs the logical address LA to the address bus 7 at the time of memory access. The logical address LA is input to the OAM 2 and the adder 5. The OAM2 outputs the converted offset address OA which is the area number corresponding to the logical address LA, and inputs it to the ODM3 via the bus 9. ODM3 is
The offset value OD corresponding to OA is output and input to the adder 5 via the bus 10. The adder 5 has a logical address L
A and the offset value OD are added to form a physical address PA, which is output to the address bus 11. As a result, PA is input to the memory 6 and the memory 6 is accessed. In addition, the conversion-dedicated processor 4 operates in parallel with the operation of the processor 1 at an arbitrary timing in the OA and ODM of the OAM 2.
It is possible to rewrite the OD of 3, which enables dynamic address translation.

【0023】図2は図1の実施例における実際の動作を
示す説明図である。図において、プロセッサ1は自分の
論理アドレス空間を2つの領域に分割して領域A、領域
Bとし、領域Aの範囲を0000h〜1fffh、領域
Bの範囲を3000h〜4fffhと設定する。それに
より、OAM2にはアドレスごとにに領域を区別するた
めの変換オフセットアドレスOAが書き込まれる。図示
例では、領域Aに0010hが、領域Bに0020hが
書き込まれる。
FIG. 2 is an explanatory diagram showing an actual operation in the embodiment of FIG. In the figure, the processor 1 divides its own logical address space into two areas, area A and area B, and sets the area A range to 0000h to 1fffh and the area B range to 3000h to 4fffh. As a result, the conversion offset address OA for discriminating the area for each address is written in the OAM2. In the illustrated example, 0010h is written in the area A and 0020h is written in the area B.

【0024】次に、論理アドレスの領域A,Bと、対応
するメモリ6上の物理アドレス領域とのオフセット値O
Dが変換専用プロセッサ4により算出され、ODM3上
にOAに対応して書き込まれる。図示例では、領域Aを
指す0010hに6000hが、領域Bを指す0020
hに1000hが書き込まれる。これは、領域Aが物理
アドレス上の6000h〜7fffhに対応し、同じく
領域Bが4000h〜5fffhに対応することであ
る。
Next, the offset value O between the logical address areas A and B and the corresponding physical address area on the memory 6
D is calculated by the conversion-dedicated processor 4 and written in the ODM 3 in correspondence with OA. In the illustrated example, 0010h indicating the area A is 6000h, and 6000h indicates the area B.
1000h is written in h. This means that the area A corresponds to 6000h to 7fffh on the physical address and the area B corresponds to 4000h to 5fffh.

【0025】ここでプロセッサ1が論理アドレスLAと
して4000hを出力すると、それは領域Bであるから
OAM2からはOAとして0020hが出力される。次
に、ODM3からはODとして1000hが出力され
る。その結果、加算器5では、LAの4000hにOD
の1000hが加算されてPAとして5000hが出力
され、メモリ6上のアドレス5000hがアクセスされ
る。
Here, when the processor 1 outputs 4000h as the logical address LA, since it is the area B, the OAM 2 outputs 0020h as OA. Next, ODM3 outputs 1000h as OD. As a result, in the adder 5, OD is reached at 4000 h of LA.
1000h is added to output 5000h as PA, and the address 5000h on the memory 6 is accessed.

【0026】次に第2の発明の実施例について説明す
る。図2において、例えば、領域Aのオフセット値OD
が、変換専用プロセッサ4により6000hから100
0hに変更されたとすると、実際にアクセスされるメモ
リ6上の領域Aの物理アドレスPAはそれまでの600
0h〜7fffhから1000h〜2fffhへと切り
替えられる。これはプロセッサ1が出力する論理アドレ
ス領域Aを変更することなく、実際にアクセスされるメ
モリ6上の物理アドレスPAのみが変更されることであ
る。しかも、この切替えは任意のタイミングで実行する
ことができる。
Next, an embodiment of the second invention will be described. In FIG. 2, for example, the offset value OD of the area A
However, the conversion-dedicated processor 4 causes the conversion from 6000h to 100
If it is changed to 0h, the physical address PA of the area A on the memory 6 that is actually accessed is 600 before that.
It is switched from 0h to 7fffh to 1000h to 2fffh. This means that only the physical address PA on the memory 6 that is actually accessed is changed without changing the logical address area A output by the processor 1. Moreover, this switching can be executed at any timing.

【0027】次に第3の発明の実施例について説明す
る。図2において、変換専用プロセッサ4によりプロセ
ッサ1がアクセスする論理アドレス領域の範囲を任意の
大きさに設定することができ、また再設定することもで
きる。したがって、アドレス変換を行う領域(セグメン
ト)の大きさを可変かつ自由に設定または変更すること
が可能となる。
Next, an embodiment of the third invention will be described. In FIG. 2, the conversion-dedicated processor 4 can set the range of the logical address area accessed by the processor 1 to an arbitrary size, or can set it again. Therefore, the size of the area (segment) in which the address conversion is performed can be variably and freely set or changed.

【0028】次に第4の発明の実施例について説明す
る。図2において、例えば、物理アドレス2000h〜
27ffhと、3800h〜3fffhにある2つの別
々のデータブロックに、オフセット値としてそれぞれ1
000h,2000hを割り当てた場合、これら別々の
物理アドレスにある2つの領域が、プロセッサ1から見
て論理アドレス1000h〜1fffhの領域にある連
続した1つのデータブロックとしてアクセスされる。こ
のようにして、物理的に分散配置された複数でかつ任意
のアドレスにあるデータブロックの論理的な収集、再構
成を行うことが可能となる。
Next, an embodiment of the fourth invention will be described. In FIG. 2, for example, physical addresses 2000h to
1 as an offset value for each of two separate data blocks at 27ffh and 3800h to 3fffh
When 000h and 2000h are allocated, the two areas at these different physical addresses are accessed as one continuous data block in the area of the logical addresses 1000h to 1fffh when viewed from the processor 1. In this way, it is possible to logically collect and reconfigure a plurality of physically distributed data blocks at arbitrary addresses.

【0029】次に第5の発明の実施例について説明す
る。これは前述の実施例とは反対に、論理アドレス10
00h〜1fffhの領域にある連続した1つのデータ
ブロックをアドレス変換の対象として2つに分け、それ
らのオフセット値ODとして、例えば論理アドレス10
00h〜17ffhに4000h、1800h〜1ff
fhに1000hを割り当てることにより、これらを物
理アドレス5000h〜57ffhと、2800h〜2
fffhの別々の領域に物理的に分散配置することが可
能となる。
Next, an embodiment of the fifth invention will be described. This is contrary to the previous embodiment, the logical address 10
One continuous data block in the area of 00h to 1fffh is divided into two as a target of address conversion, and the offset value OD thereof is, for example, the logical address 10
4000h to 1800h to 1ff for 00h to 17ffh
By assigning 1000h to fh, these are assigned physical addresses 5000h to 57ffh and 2800h to 2ff.
It is possible to physically disperse and arrange in different areas of fffh.

【0030】次に第6の発明の実施例について説明す
る。図1において、オフセット値ODの算出およびOD
M3への書込みは変換専用プロセッサ4により行われ
る。したがって、算出されるオフセット値ODの範囲に
変換専用プロセッサ4が制限を設けることにより、プロ
セッサ1から見て機能的にはアクセス可能であっても、
ソフトウェアでアクセスがプロテクトされた領域をメモ
リ6上に持つことができる。しかも、そのプロテクトさ
れる領域をダイナミックに変更することが可能である。
Next, an embodiment of the sixth invention will be described. In FIG. 1, calculation of offset value OD and OD
Writing to M3 is performed by the conversion-dedicated processor 4. Therefore, even if the conversion-dedicated processor 4 places a limit on the range of the calculated offset value OD and is functionally accessible from the viewpoint of the processor 1,
The memory 6 can have an area whose access is protected by software. Moreover, it is possible to dynamically change the protected area.

【0031】次に第7の発明の実施例について説明す
る。図1において、変換専用プロセッサ4がある領域の
オフセット値ODを0、すなわちオフセットなしの状態
に設定すると、プロセッサ1からその領域へのアクセス
は、アドレス変換装置を経由するものの論理アドレスと
物理アドレスが等価となる。しかもその等価とする領域
をダイナミックに変更することが可能である。
Next, an embodiment of the seventh invention will be described. In FIG. 1, if the translation processor 4 sets the offset value OD of a certain area to 0, that is, no offset, the processor 1 accesses the area by the logical address and physical address though the address translator. Is equivalent. Moreover, it is possible to dynamically change the equivalent area.

【0032】これら実施例で述べたように、本発明のダ
イナミックアドレス変換装置では、変換専用プロセッサ
4が、アドレスを変換する規則やパラメータを、自由に
変更したり任意のタイミングで変化させたりすることが
できることにより、任意の大きさのデータブロックに対
して、任意のタイミングでパラメータや規則、ブロック
の連続性等を割り付けることができ、融通性に富んだ、
変換の自由度の高いアドレス変換を行うことができる。
As described in these embodiments, in the dynamic address translation device of the present invention, the translation dedicated processor 4 can freely change the rules or parameters for translating addresses or change them at any timing. By being able to do, it is possible to allocate parameters, rules, block continuity, etc. to data blocks of arbitrary size at arbitrary timing, and it is very flexible.
It is possible to perform address translation with a high degree of freedom of translation.

【0033】また、任意のタイミング、任意の大きさの
データブロックについて、変換を行う範囲を制限した
り、変換をしないように設定することができることによ
り、プロセッサ1に対して、自由な管理機能と高度な柔
軟性を有する論理アドレス空間を提供することができ
る。さらには、これらのダイナミックアドレス変換装置
を、伝送データバッファにおけるデータ処理に適用する
と、これまでブロック転送によるデータ群のコピー等で
行っていた分散配置/収集、結合等の処理を、数回のオ
フセット切替えを行うだけで非常に高速かつ容易に行う
ことができるようになる。
Further, with respect to a data block having an arbitrary timing and an arbitrary size, it is possible to limit the conversion range or set not to perform the conversion, so that the processor 1 has a free management function. It is possible to provide a logical address space with a high degree of flexibility. Furthermore, when these dynamic address translators are applied to the data processing in the transmission data buffer, the processing such as distributed arrangement / collection and combination, which has been performed in the past by copying the data group by block transfer, can be offset several times. Only by switching, it becomes possible to carry out very quickly and easily.

【0034】[0034]

【発明の効果】以上述べたように第1の発明によれば、
主プロセッサから出力される論理アドレスをその連続し
て取り扱われる領域ごとに領域番号を付し、その番号ご
とのオフセット値を変換専用プロセッサにより書換え可
能にしたことにより、アドレス変換がダイナミックとな
る。また、第2の発明によれば任意のタイミングでオフ
セット値が書き換えられ、第3の発明によれば論理アド
レスに対応する主メモリの物理アドレスのブロックサイ
ズが任意に変更され、第4の発明によれば主メモリ上に
分散している物理アドレスのブロックが論理アドレス上
の連続した配置に再構成され、第5の発明によれば論理
アドレス上連続している領域の対応する主メモリ上のブ
ロックが分散配置され、第6の発明によれば主メモリ上
の任意のブロックへのアクセスが制限され、第7の発明
によればオフセット値を0に書き換えて主プロセッサの
出力する論理アドレスと主メモリ上の物理アドレスとが
一致される。
As described above, according to the first invention,
A logical address output from the main processor is assigned an area number for each area that is continuously handled, and the offset value for each number is rewritable by the conversion-dedicated processor, whereby the address conversion becomes dynamic. Further, according to the second invention, the offset value is rewritten at an arbitrary timing, and according to the third invention, the block size of the physical address of the main memory corresponding to the logical address is arbitrarily changed. According to the fifth aspect, blocks of physical addresses distributed in the main memory are reconfigured into a continuous arrangement on the logical address, and according to the fifth invention, blocks on the main memory corresponding to areas continuous on the logical address. According to the sixth invention, access to an arbitrary block on the main memory is restricted, and according to the seventh invention, the offset value is rewritten to 0 and the logical address output by the main processor and the main memory. The physical address above is matched.

【0035】それにより、主プロセッサの出力した論理
アドレスを主メモリ上の物理アドレスへ変換する際の規
則やパラメータを任意のタイミングで変更することが可
能となり、ブロックサイズの変更、ブロックの連続性等
の割り付けや、ブロックの分散/収集、結合、プロテク
ト等の処理が容易かつ高速に実行可能となり、アドレス
変換の融通性、柔軟性および自由度が増す。
As a result, it becomes possible to change the rules and parameters for converting the logical address output from the main processor into the physical address on the main memory at any timing, such as changing the block size and continuity of blocks. Allocation, block distribution / collection, combination, protection, etc. can be executed easily and at high speed, which increases flexibility, flexibility, and flexibility of address conversion.

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

【図1】本発明に係る実施例の概略構成を示すブロック
図である。
FIG. 1 is a block diagram showing a schematic configuration of an embodiment according to the present invention.

【図2】図1の実施例における実際の動作を示す説明図
である。
FIG. 2 is an explanatory diagram showing an actual operation in the embodiment of FIG.

【符号の説明】[Explanation of symbols]

1 プロセッサ 2 変換オフセットアドレス格納メモリ(OAM) 3 変換オフセットデータ格納メモリ(ODM) 4 変換専用プロセッサ 5 加算器 6 メモリ 7 アドレスバス 8 データバス 9,10 バス 11 アドレスバス 1 Processor 2 Conversion Offset Address Storage Memory (OAM) 3 Conversion Offset Data Storage Memory (ODM) 4 Conversion Dedicated Processor 5 Adder 6 Memory 7 Address Bus 8 Data Bus 9, 10 Bus 11 Address Bus

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 主プロセッサのアドレスバスに接続さ
れ、主プロセッサから出力される論理アドレスの連続し
て取り扱われる領域ごとに付された領域番号が論理アド
レスに対応して格納されている領域番号テーブルメモリ
と、 領域番号テーブルメモリのデータ出力端にアドレス入力
端が接続され、主プロセッサから出力される論理アドレ
スとアクセス先の主メモリの物理アドレスとのオフセッ
ト値が領域番号に対応して書き込まれるオフセットメモ
リと、 オフセットメモリとバス接続され、オフセットメモリの
格納値を書換える変換専用プロセッサと、 主プロセッサのアドレスバスおよびオフセットメモリの
データ出力端が入力側に接続され、出力側が主メモリの
アドレス入力端に接続された加算器と、 を備えたことを特徴とするダイナミックアドレス変換装
置。
1. An area number table which is connected to an address bus of a main processor, and stores area numbers assigned to areas of a logical address output from the main processor that are continuously treated in correspondence with the logical addresses. The address input end is connected to the data output end of the memory and the area number table memory, and the offset value between the logical address output from the main processor and the physical address of the main memory of the access destination is written corresponding to the area number. The memory and the offset memory are bus-connected, and the conversion-dedicated processor that rewrites the stored value of the offset memory, the address bus of the main processor and the data output of the offset memory are connected to the input side, and the output side is the address input of the main memory A dynamics characterized by having an adder connected to Click the address conversion apparatus.
【請求項2】 請求項1記載のダイナミックアドレス変
換装置において、オフセットメモリに格納されているオ
フセット値を変換専用プロセッサにより任意のタイミン
グで書き換える手段を備えたことを特徴とするダイナミ
ックアドレス変換装置。
2. The dynamic address translation device according to claim 1, further comprising means for rewriting the offset value stored in the offset memory by the translation dedicated processor at an arbitrary timing.
【請求項3】 請求項1または2記載のダイナミックア
ドレス変換装置において、オフセットメモリに格納され
ているオフセット値を変換専用プロセッサにより書き換
えて、論理アドレスに対応する主メモリの物理アドレス
のブロックサイズを任意に変更する手段を備えたことを
特徴とするダイナミックアドレス変換装置。
3. The dynamic address translation device according to claim 1, wherein the offset value stored in the offset memory is rewritten by the translation dedicated processor, and the block size of the physical address of the main memory corresponding to the logical address is arbitrarily set. A dynamic address translation device comprising means for changing to.
【請求項4】 請求項1または2記載のダイナミックア
ドレス変換装置において、オフセットメモリに格納され
ているオフセット値を変換専用プロセッサにより書き換
えて、主メモリ上に分散している物理アドレスのブロッ
クを論理アドレス上連続した配置に再構成する手段を備
えたことを特徴とするダイナミックアドレス変換装置。
4. The dynamic address translation device according to claim 1, wherein the offset value stored in the offset memory is rewritten by a dedicated translation processor, and blocks of physical addresses distributed in the main memory are logical addresses. A dynamic address translation device comprising means for reconfiguring an upper continuous arrangement.
【請求項5】 請求項1または2記載のダイナミックア
ドレス変換装置において、オフセットメモリに格納され
ているオフセット値を変換専用プロセッサにより書き換
えて、論理アドレス上連続している領域が対応する主メ
モリ上のブロックを分散配置する手段を備えたことを特
徴とするダイナミックアドレス変換装置。
5. The dynamic address translation device according to claim 1 or 2, wherein the offset value stored in the offset memory is rewritten by the translation dedicated processor, and a continuous area on the logical address corresponds to the main memory. A dynamic address translation device comprising means for arranging blocks in a distributed manner.
【請求項6】 請求項1または2記載のダイナミックア
ドレス変換装置において、オフセットメモリに格納され
ているオフセット値を変換専用プロセッサにより書き換
えて、主メモリ上の任意のブロックへのアクセスを制限
する手段を備えたことを特徴とするダイナミックアドレ
ス変換装置。
6. The dynamic address translation device according to claim 1, further comprising means for rewriting the offset value stored in the offset memory by a translation processor to limit access to an arbitrary block on the main memory. A dynamic address translation device characterized by being provided.
【請求項7】 請求項1または2記載のダイナミックア
ドレス変換装置において、オフセットメモリに格納され
ているオフセット値を変換専用プロセッサにより0に書
き換えて、主プロセッサの出力する論理アドレスと主メ
モリ上の物理アドレスを一致させる手段を備えたことを
特徴とするダイナミックアドレス変換装置。
7. The dynamic address translation device according to claim 1, wherein the offset value stored in the offset memory is rewritten to 0 by the translation dedicated processor, and the logical address output from the main processor and the physical address on the main memory are output. A dynamic address translation device comprising means for matching addresses.
JP06907494A 1994-03-14 1994-03-14 Dynamic address translator Expired - Fee Related JP3391020B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP06907494A JP3391020B2 (en) 1994-03-14 1994-03-14 Dynamic address translator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP06907494A JP3391020B2 (en) 1994-03-14 1994-03-14 Dynamic address translator

Publications (2)

Publication Number Publication Date
JPH07253930A true JPH07253930A (en) 1995-10-03
JP3391020B2 JP3391020B2 (en) 2003-03-31

Family

ID=13392075

Family Applications (1)

Application Number Title Priority Date Filing Date
JP06907494A Expired - Fee Related JP3391020B2 (en) 1994-03-14 1994-03-14 Dynamic address translator

Country Status (1)

Country Link
JP (1) JP3391020B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012194819A (en) * 2011-03-17 2012-10-11 Mitsubishi Electric Corp Program switching circuit and electronic apparatus
JP5428862B2 (en) * 2007-12-06 2014-02-26 日本電気株式会社 Address generating apparatus and method for array processor, and array processor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5428862B2 (en) * 2007-12-06 2014-02-26 日本電気株式会社 Address generating apparatus and method for array processor, and array processor
JP2012194819A (en) * 2011-03-17 2012-10-11 Mitsubishi Electric Corp Program switching circuit and electronic apparatus

Also Published As

Publication number Publication date
JP3391020B2 (en) 2003-03-31

Similar Documents

Publication Publication Date Title
JP2625385B2 (en) Multiprocessor system
JP3687990B2 (en) Memory access mechanism
US4980822A (en) Multiprocessing system having nodes containing a processor and an associated memory module with dynamically allocated local/global storage in the memory modules
US4835734A (en) Address translation apparatus
US3854126A (en) Circuit for converting virtual addresses into physical addresses
US5860144A (en) Addressing method and system for providing access of a very large size physical memory buffer to a number of processes
JPS6027964A (en) Memory access control circuit
US5652853A (en) Multi-zone relocation facility computer memory system
US5684974A (en) Method and apparatus for controlling reconfiguration of storage-device memory areas
Bensoussan et al. The Multics virtual memory
JPH0330897B2 (en)
JPH04246745A (en) Memory access system
CN110058946B (en) Equipment virtualization method, device, equipment and storage medium
JPH0658649B2 (en) Area management method in virtual memory device
CA2075305C (en) Method and means for addressing a very large memory
US6625673B1 (en) Method for assigning addresses to input/output devices
JP3391020B2 (en) Dynamic address translator
CN112596913A (en) Method and device for improving performance of transparent large page of memory, user equipment and storage medium
CN114968847A (en) Data processor
GB2221066A (en) Address translation for I/O controller
JPH04288643A (en) Memory mapping system for multi-processor system
JPH05290000A (en) Parallel computer and data exchange control device
JP5958195B2 (en) Virtual memory management system, virtual memory management apparatus, virtual memory initialization method, and virtual memory initialization program
WO1991010204A1 (en) Image processing apparatus having disk storage resembling ram memory
JPH04344549A (en) Page allocation method in computer system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20021218

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080124

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090124

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090124

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100124

Year of fee payment: 7

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313117

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100124

Year of fee payment: 7

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees