JPS6081656A - Address converter - Google Patents

Address converter

Info

Publication number
JPS6081656A
JPS6081656A JP58188480A JP18848083A JPS6081656A JP S6081656 A JPS6081656 A JP S6081656A JP 58188480 A JP58188480 A JP 58188480A JP 18848083 A JP18848083 A JP 18848083A JP S6081656 A JPS6081656 A JP S6081656A
Authority
JP
Japan
Prior art keywords
address
signal
circuit
data
control
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
JP58188480A
Other languages
Japanese (ja)
Inventor
Shuichi Inose
修一 猪瀬
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP58188480A priority Critical patent/JPS6081656A/en
Publication of JPS6081656A publication Critical patent/JPS6081656A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Executing Machine-Instructions (AREA)
  • Memory System (AREA)

Abstract

PURPOSE:To form a part or the whole of a conversion table speedily by an address converting means by providing the address converting means with a control circuit, a counter circuit, etc. and outputting a control signal, a counted value signal, etc. to control address conversion. CONSTITUTION:In the initial state turning on a power supply to a CPU1, a reference table is formed in an RAM2, and even on the way of movement, the table is changed if necessary. Namely, a table is formed by a control signal, a counted value signal CN, etc. outputted from the control circuit 4, the counter circuit 9, etc. and the same data are written in the address of the RAM2. At the use of the table, a value addressed by an address signal US frm the CPU1 is applied as an address signal UA' of a main memory 3 as it is. Thus, the formation of the circuits 4, 9, etc. makes it possible to form a part or the whole of the address conversion table speedily and execute also initializing simultaneously.

Description

【発明の詳細な説明】 [技術分野] 本発明はメモリのアドレス変換装置に関する。[Detailed description of the invention] [Technical field] The present invention relates to a memory address translation device.

し従来技術] 近年、パーソナルコンピュータにおいても一度コンパイ
ルされたプログラムが主メモリの任意の場所で実行可能
である。これは相対番地でコンパイルされたプログラム
をその実行時にメモリの絶対番地に変換する構成をパー
ソナルコンピュータが有するからである。かかる構成が
パーソナルコンピュータの処理能力を一段と高め、メモ
リの使用効率を向上させたことはよく知られている。
[Prior Art] In recent years, even in personal computers, a program once compiled can be executed at any location in the main memory. This is because personal computers have a configuration that converts a program compiled with relative addresses into absolute memory addresses when the program is executed. It is well known that such a configuration further increases the processing power of personal computers and improves memory usage efficiency.

一般に処理能力の向上やメモリ使用効率の向上は、常に
技術的課題とされるところであるが、その中でメモリマ
ネジメントユニツ) (MMU)なるものが提供されて
いる。MMUはプロセッサのアドレスに相当するバス上
にあって主メモリの物理的空間をプロセッサに最適に割
り当てる働きをする。具体的にはアドレスバス上の上位
ビットの情報変換する手段によって構成されている。
In general, improving processing power and improving memory usage efficiency are always regarded as technical issues, and in this regard, a memory management unit (MMU) has been provided. The MMU is on a bus that corresponds to the address of the processor and functions to optimally allocate physical space in main memory to the processor. Specifically, it is constituted by means for converting information of upper bits on the address bus.

第1図はこのアドレス変換動作を説明するだめの概念図
である。説明を簡単にするため4ビツトのアドレスバス
構成として示した。図においてlはセントラルプロセッ
サ(CPU)であり、A0〜A3はCPU1側のアドレ
スバス上にあるアドレス信号を構成する。A3が最上位
ビットでありAoが最下位ビットである。2はランダム
アクセスメモリ(RAM)であり、アドレスとしての入
力信号a。+al とデータ出力信号dO、d、が示さ
れている。図示しないがRAM2にはCPtJlからの
制御で適当なデータつまり変換テーブルを書き込み可能
である。3は主メモリでありそのアドレスバス上のアド
レス信号はAo−A3 ′で構成されている。図からも
明らかな如くアドレスバスの上位2ビツトA。、A1は
CPUI側と主メモリ3側において共通であり、上位2
ビツトA 2 * A 3についてはRAM2で変換を
受けて主メモリ側の上位2ビットアドレス信号A2 ′
FIG. 1 is a conceptual diagram for explaining this address translation operation. In order to simplify the explanation, a 4-bit address bus configuration is shown. In the figure, l is a central processor (CPU), and A0 to A3 constitute address signals on the address bus on the CPU1 side. A3 is the most significant bit and Ao is the least significant bit. 2 is a random access memory (RAM) and receives an input signal a as an address. +al and data output signal dO,d, are shown. Although not shown, appropriate data, that is, a conversion table, can be written into the RAM 2 under control from CPtJl. 3 is a main memory, and the address signal on its address bus is composed of Ao-A3'. As is clear from the figure, the upper two bits A of the address bus. , A1 is common to the CPUI side and the main memory 3 side, and the upper 2
Bits A2 * A3 undergo conversion in RAM2 and become the upper 2-bit address signal A2' on the main memory side.
.

A3 ′として与えられるのである。つまりCPU側の
アドレス信号A。+ A I + A 2 + A3は
主メモリ側でアドレス信号AO+ A I + A2 
′。
It is given as A3'. In other words, it is address signal A on the CPU side. + A I + A 2 + A3 is the address signal AO + A I + A2 on the main memory side.
'.

A3 ′に変換される構成を示している。It shows the configuration converted to A3'.

第2図はRAM2に格納された変換テーブルの内容を示
す説明図である。また第3図は第2図のRAMを用いた
アドレス変換後の値ともとの値とを対比して示す説明図
である。以上からアドレス変換はRAM2の内容に従っ
て任意であり、アドレスデータをどのように変換するか
は処理目的に応じて、RAM2の内容を書き替えれば良
いことが解る。
FIG. 2 is an explanatory diagram showing the contents of the conversion table stored in the RAM 2. Further, FIG. 3 is an explanatory diagram showing a comparison between the value after address conversion using the RAM of FIG. 2 and the original value. From the above, it can be seen that the address conversion is arbitrary according to the contents of the RAM 2, and how the address data is converted can be determined by rewriting the contents of the RAM 2 depending on the processing purpose.

従来は、このようなRAMのテーブルの書き苔えをステ
ップ八イステップのプログラムの処理によって行ってい
た。従ってRAMテーブルの作成に長い時間を要し、プ
ロセッサ全体としての実時間の処理能力の向上が図れな
かった。
Conventionally, this kind of writing and clearing of the RAM table has been done by processing a step-by-step program. Therefore, it takes a long time to create a RAM table, making it impossible to improve the real-time processing capacity of the processor as a whole.

[目的] 本発明は上述従来技(ホiの欠点に鑑みて成されたもの
であってその目的とする所は、アドレス変換手段におい
て変換テーブルを高速で形成することの可能なアドレス
変換装置を提供することにある。
[Objective] The present invention has been made in view of the drawbacks of the above-mentioned conventional techniques (i. It is about providing.

本発明の他の目的は装置の電源役人時に、あるいは稼動
の途中において一挙に変換テーブルのイニシャライズを
行えるアドレス変換装置を提供することにある。
Another object of the present invention is to provide an address translation device that can initialize the translation table all at once when the device is powered on or during operation.

[実施例] 以上′、図面に従って本発明に係る一実施例のアドレス
変換装置を詳細に説明する。第4図は一実施例のアドレ
ス変換装置の構成を示すブロック図である。図において
第1図と同等の機能を有するものには同一の参照番号を
付した。CPU 1側から与えられる信号はデータバス
上のデータ信号りと、アドレス/ヘス上のアドレス信号
UA及びLAと、CPUのマシンサイクルのもとになる
クロック信号CLKと、CPUの動作モートあるいは特
足の命令の実行によって形成されるデコード信号e、−
e4である。ここでアドレス信号UAは上位ビットのグ
ループを指し、アドレス信号LAは下位ビットのグルー
プを指す。2はアドレス変換テーブルを記憶するRAM
、3はCPUIの主メモリである。更に、4は制御回路
であってデコード信号e1〜e4の伺れかが入力するこ
とによりクロック信号CLKに従って所定のコントロー
ル信号01〜C9を出力する。5〜8は八ツ27回路で
、3ステートの出力モードで動作して各出力線のワイヤ
ーFORを可能にしている。例えば八ツ27回路5につ
いて説明すると、バッファ回路5はコントロール信号C
2のレベルが1であるときに動作する。つまり入力アド
レス信号UAのレベル110に従って出力アドレス信号
UADのレベル110を出力する。また、コントロール
信号C2のレベルが0であるときは動作せずに出力アド
レス信号UADの回路がハイインピーダンスに保たれる
。9は3ステート出力のバッファを内蔵するカウンタ回
路であり、コントロール信号CIが0のときにはカウン
タが強制リセットされており、かつその計数値出力CN
の回路はハイインピーダンスに保たれる。また、コント
ロール信号C1が1になるとクロック信号CLKで計数
を開始すると同時に計数値信号CNを出力する。そして
カウンタの計数値が所定値になると0のレベルのキャリ
ー信号CAか出力されて、ANDゲート10の入力を消
勢し、計数動作を止める。11はセレクタ回路でその詳
細は第5図に示されている。ここでは説明の簡単のため
に4ビツトの回路構成として示した。セレクタ回路の一
方の入力がカウンタ回路9からの計数値出力CN、−C
N3である。また、もう一方の入力はデータバスからの
データ信号D2 、D3である。ここでデータ信号D3
は上位ビットに対応し、D2はその次の位のビットに対
応する。データ信号D 2 + D 3はコントロール
信号C4のパルスによってラッチ11、.112に夫々
セットされる。113はデータセレクタであり端子Aで
示される入力信号のグループと端子Bで示される入力信
号のグループの何れか一方をコントロール信号C5のレ
ベルによって選択して信号0゜〜03を出力する。実施
例ではコントロール信号C5のレベルがOのときに端子
Aのグループの入力信号を選択出力し、またレベルが1
のときに端子Bのグループの人力信号を選択出力する。
[Embodiment] In the above, an address translation device according to an embodiment of the present invention will be described in detail with reference to the drawings. FIG. 4 is a block diagram showing the configuration of an address translation device according to an embodiment. In the figure, parts having the same functions as those in FIG. 1 are given the same reference numerals. The signals given from the CPU 1 side are the data signal on the data bus, the address signals UA and LA on the address/hess, the clock signal CLK which is the source of the CPU machine cycle, and the CPU operating mode or special function. The decoded signal e, − formed by the execution of the instruction
It is e4. Here, address signal UA indicates a group of upper bits, and address signal LA indicates a group of lower bits. 2 is a RAM that stores the address translation table
, 3 is the main memory of the CPUI. Furthermore, 4 is a control circuit which outputs predetermined control signals 01-C9 in accordance with the clock signal CLK by inputting any of the decode signals e1-e4. 5 to 8 are 8/27 circuits that operate in a 3-state output mode to enable wire FOR of each output line. For example, to explain the 827 circuit 5, the buffer circuit 5 receives the control signal C.
It operates when the level of 2 is 1. In other words, the level 110 of the output address signal UAD is output in accordance with the level 110 of the input address signal UA. Furthermore, when the level of the control signal C2 is 0, it does not operate and the circuit for the output address signal UAD is kept at high impedance. 9 is a counter circuit incorporating a 3-state output buffer, and when the control signal CI is 0, the counter is forcibly reset, and its count value output CN
circuit is kept at high impedance. Further, when the control signal C1 becomes 1, counting is started using the clock signal CLK, and at the same time, the count value signal CN is output. When the count value of the counter reaches a predetermined value, a carry signal CA at a level of 0 is output, deactivating the input of the AND gate 10, and stopping the counting operation. 11 is a selector circuit whose details are shown in FIG. Here, for ease of explanation, a 4-bit circuit configuration is shown. One input of the selector circuit is the count value output CN, -C from the counter circuit 9.
It is N3. The other input is data signals D2 and D3 from the data bus. Here data signal D3
corresponds to the upper bit, and D2 corresponds to the next bit. Data signals D 2 + D 3 are transferred to latches 11, . . . by pulses of control signal C4. 112 respectively. A data selector 113 selects either the input signal group indicated by terminal A or the input signal group indicated by terminal B according to the level of control signal C5, and outputs signals 0° to 03. In the embodiment, when the level of the control signal C5 is O, the input signal of the terminal A group is selected and output, and when the level is 1, the input signal of the group of terminal A is selected and output.
When , the human input signal of the terminal B group is selected and output.

以上の構成において、以下に実施例の動作を説明する。In the above configuration, the operation of the embodiment will be described below.

先ずCPUIが通常のインストラクションの実行モード
にあるときはデコート信号e、のレベルが1であり、他
のデコード信号はOである。この状態下でコントロール
信号c2 、C7+C8、C9が共に1であり他のコン
トロール信号は0である。ここでコントロール信号C3
のレベル0はRAM2のチップセレクトを附勢する。ま
たコントロール信号C9のレベル1はRAM2へのデー
タ書き込みを阻止する。従ってCPUIの上位アドレス
信号UAは/人ツファ5を介してRAM2のアドレス人
力信号aとして与えられる。このときカウンタ回路9の
出力回路はハイインピータンスであるから何らアドレス
入力信号aに影響を与えない。RAM2はアドレス入力
信号aに対応するデータ信号dを出力する。このとき/
へツファ6の出力回路はハイインピーダンスであるから
何らデータ信号dに影響を与えない。従ってデータ信号
dはそのままパックァ8を介して主メモリの上位アドレ
ス信号UA′になる。一方CPUIの下位アドレス信号
LAはバッファ7を介してそのまま主メモリ3の下位ア
ドレス信号LAになる。このようにして通常のモードで
はインストラクションが実行されるCPU1からのアド
レス信号UA 、LAはそのうちの上位ピッl−U A
のみがRAM2の変換テーブルでUA′に変換された形
で主メモリ3をアクセスする。そしてRAM2に適当な
変換テーブルが形成されていればCPUIは正常に稼動
する。
First, when the CPUI is in the normal instruction execution mode, the level of the decode signal e is 1, and the other decode signals are O. Under this state, control signals c2, C7+C8, and C9 are all 1, and the other control signals are 0. Here, control signal C3
Level 0 of energizes the chip select of RAM2. Furthermore, the level 1 of the control signal C9 prevents data from being written into the RAM2. Therefore, the upper address signal UA of the CPUI is given as the address input signal a of the RAM 2 via the input buffer 5. At this time, since the output circuit of the counter circuit 9 is in high impedance, it does not affect the address input signal a in any way. RAM2 outputs a data signal d corresponding to the address input signal a. At this time/
Since the output circuit of the buffer 6 is of high impedance, it does not affect the data signal d in any way. Therefore, the data signal d passes through the packer 8 as it is and becomes the upper address signal UA' of the main memory. On the other hand, the lower address signal LA of the CPUI passes through the buffer 7 and becomes the lower address signal LA of the main memory 3 as it is. In this way, in the normal mode, the address signals UA and LA from the CPU 1 where instructions are executed are the upper pins l-UA.
The main memory 3 is accessed only in the form converted to UA' by the conversion table in the RAM 2. If an appropriate conversion table is formed in the RAM 2, the CPUI will operate normally.

さて、CPUIに電源を投入した初期状態ではRAM2
に最初の変換テーブルを書き込まなくてはならない。ま
た稼動の途中でも必要に応じてテーブルを変更しなくて
はならない。以下にこれらの動作を説明する。ここで説
明する第1の動作はCPUの出力するアドレス空間と主
メモリの物理的なアドレス空間が一致するような標準テ
ーブルの作成である。つまり、CPtJlか1番地を出
力すると主メモリ3の絶対1番地がアクセスされ、CP
UIが1000番地を出力すると主メモリ3の絶対10
00番地がアクセスされるようなテーブルの形成である
。標準テーブル作成命令の実行サイクルにおいてはデコ
ード信号e2にレベル1かケえられる。他のデコード信
号はOである。また、図示しないが、CPU本体に電源
が投入されたときはイニシャルリセット信号が出るが、
これが消勢されるときにハードウェア構成でデコード信
号e2が1(イ(勢されるようになっている。この状態
でコントロール信号C2、C7、C8は共に0であり、
バッファ5,7.8の出力回路はハイインピーダンスに
保たれる。またコントロール信号C5,C6は1になり
、セレクタ回路11の中のデータセレクタ113は端子
Bのグループの入力信号を選択出力し、7へツファ6は
前記選択出力された信号をRAM2のデータバスに導通
させる状態にある。更にコントロール信号C1のレベル
が1になるとカウンタ回路9の強制リセットが解ける。
Now, in the initial state when the power is turned on to the CPU, RAM2
The first translation table must be written to . Furthermore, the table must be changed as necessary even during operation. These operations will be explained below. The first operation described here is the creation of a standard table such that the address space output by the CPU matches the physical address space of the main memory. In other words, when CPtJl or address 1 is output, absolute address 1 of main memory 3 is accessed, and CP
When the UI outputs address 1000, the absolute 10 of main memory 3
This is the creation of a table in which address 00 is accessed. In the execution cycle of the standard table creation instruction, the decode signal e2 is set to level 1. The other decode signal is O. Although not shown, an initial reset signal is output when the power is turned on to the CPU main body.
When this is deactivated, the decode signal e2 is activated to 1 (i) in the hardware configuration. In this state, the control signals C2, C7, and C8 are all 0,
The output circuits of buffers 5, 7.8 are kept at high impedance. In addition, the control signals C5 and C6 become 1, the data selector 113 in the selector circuit 11 selects and outputs the input signal of the group of terminal B, and the buffer 6 to 7 transfers the selected and output signal to the data bus of RAM2. It is in a state of conduction. Furthermore, when the level of the control signal C1 becomes 1, the forced reset of the counter circuit 9 is released.

また同時に内蔵の/ヘラ2フ回路が動作して計数値信号
CNを出力する。この状態でカウンタ回路9はクロック
信号CLKによってOからカウントアツプする。このと
きバッファ5は計数値信号CNに何の影響も与えないか
ら信号CNはそのままの値でRAM2のアドレス入力と
なる。また同時に信号CNはセレクタ回路11の端子B
のグループに入力してそのまま選択出力される。そして
更にバッファ6を介してRAM2のデータバスに計数値
のデータ信号を与える。
At the same time, the built-in /Hera2f circuit operates and outputs the count signal CN. In this state, the counter circuit 9 counts up from O in response to the clock signal CLK. At this time, since the buffer 5 has no effect on the count value signal CN, the signal CN becomes the address input to the RAM 2 without changing its value. At the same time, the signal CN is connected to the terminal B of the selector circuit 11.
input into the group and output the selection as is. Further, a data signal of the count value is applied to the data bus of the RAM 2 via the buffer 6.

RAM2への書き込みのタイミングチャートは第6図に
示されている。ここではRAM2のアドレス入力信号a
がO〜3にカウントアツプしていくときの各所定のタイ
ミングにチップセレクト信号c3 (C3)のパルスレ
ベル0と書き込みイネーブル信号C9(WE)のパルス
レベル0が与えられて計数値のデータ信号の値0〜3が
順々に書き込まれてゆく状態が示されている。やがて計
数値か所定値に達するとキャリー信号CAの0レベルが
出力されてANDゲー)10の入力を消勢し、カウント
アツプを停止させる。この所定値はRAM2の容量と一
致させである。更にキャリー信号CAは制御回路4に入
力して書き込み動作の終Tを知らせ、制御回路4はCP
UIに実行終了のステータス信号Slを送り次の命令の
実行を可能にする。
A timing chart for writing to RAM2 is shown in FIG. Here, address input signal a of RAM2
When counting up from O to 3, the pulse level 0 of the chip select signal c3 (C3) and the pulse level 0 of the write enable signal C9 (WE) are applied to the data signal of the count value. A state in which values 0 to 3 are sequentially written is shown. When the count value eventually reaches a predetermined value, the 0 level of the carry signal CA is output, deactivating the input of the AND game 10, and stopping the count-up. This predetermined value is made to match the capacity of RAM2. Furthermore, the carry signal CA is input to the control circuit 4 to notify the end of the write operation T, and the control circuit 4 inputs the CP
A status signal Sl indicating completion of execution is sent to the UI to enable execution of the next instruction.

このようにして作成されたテーブルにはRAM2のアド
レスにそれと同一のデータが書き込まれている。従って
テーブルの使用時にばcPUのアドレス信号UAでアド
レスされたときにそのままの値を主メモリ3のアドレス
信号UA’として与える。特にCPU本体の初期状態に
は、又しばしば稼動の途中においてこのような標準テー
ブルを作成する利益がある。つまり、普通のプログラム
が普通に実行されるからである。また、従来技術におい
て述べた如くプログラムによるステップ八イステップ方
式で変換テーブルを作成するような装置に対しても上述
したデコード信号e2に基づく機能構成を附加するだけ
で大きな効果が得られる。それはどのような変換テーブ
ルが形成されていても必要があればマシンを瞬時に普通
のアドレッシング状態に戻せるからである。尚、実施例
についてプログラムによるRAM2の一部データの変更
を行なおうとするなら、第4図に示す如くCPUI側か
らのデータ/ヘス上にバッファ12を設けておき、所定
のコマンドの実行サイクルにバッファ12を附勢してR
AM2のアドレスUAにデータDを書き込み制御すれば
良い。またバッファ12を双方向性にして制御すればR
AM2の内容をCPUIに読み出すこともできる。
In the table created in this way, the same data is written at the address of RAM2. Therefore, when the table is used, the same value as addressed by the address signal UA of the cPU is given as the address signal UA' of the main memory 3. There is a benefit in creating such a standard table, especially in the initial state of the CPU itself, and often during operation. In other words, normal programs are executed normally. Further, as described in the prior art, great effects can be obtained by simply adding the above-described functional configuration based on the decode signal e2 to an apparatus that creates a conversion table in a step-by-step method using a program. This is because no matter what translation table is formed, the machine can instantly return to the normal addressing state if necessary. In addition, if it is intended to change some data in the RAM 2 by a program in the embodiment, a buffer 12 is provided on the data/head from the CPUI side as shown in FIG. Activate buffer 12 and press R
It is sufficient to control the writing of data D to the address UA of AM2. Also, if the buffer 12 is controlled bidirectionally, R
The contents of AM2 can also be read out to the CPUI.

次に説明する第2の動作はCPUの出力するアドレス空
間と主メモリの物理的なアドレス空間が一致しないよう
な場合の変換テーブルの作成である。変換テーブル作成
命令の実行サイクルにおいはデコード信号e3にレベル
lが与られる。他のデコード信号はOである。以後の動
作は上述した標準テーブル作成のときの動作と回しであ
るが、1つの違いはコントロール信号C5にレベル0が
与えられることである。従ってセレクタ回路11の中の
データセレクタ113は端子Aのグループの入力信号を
選択出力する。第5図において端子Aのグループの入力
信号をみると上位2ビツトはラッチt’t、、tt2の
出力であり下位の2ビツトはカウンタ回路9の計数値信
号CNO。
The second operation to be described next is the creation of a conversion table in the case where the address space output by the CPU and the physical address space of the main memory do not match. In the execution cycle of the conversion table creation command, level 1 is applied to the decode signal e3. The other decode signal is O. The subsequent operations are the same as those for creating the standard table described above, but one difference is that level 0 is given to the control signal C5. Therefore, the data selector 113 in the selector circuit 11 selectively outputs the input signal of the terminal A group. Looking at the input signals of the terminal A group in FIG. 5, the upper two bits are the outputs of the latches t't, tt2, and the lower two bits are the count value signal CNO of the counter circuit 9.

CN、である。従って上位2ビツトはテーブルの作成時
に所定値に固定される。例えばラッチ11、.112か
共にOの値を保持していればRAM2に作成される変換
テーブルの上位2ビツトのデータはアドレスが更新され
ていくにもかかわらず常にOである。このように作成さ
れた変換テーブルを使用すると、CPUのアドレス空間
と主メモリの物理的なアドレス空間との間では第7図に
示すような関係が生じる。つまり、CP’U l側のア
ドレス空間上位4ビツトがO−Fの値をとり得るときは
、主メモリ3側の物理的なアドレス空間の上位4ビツト
の値は常にO〜3である。このようにして、例えばCP
UI側のアドレスブロックA3についてコンパイルされ
たプログラムは、そのままで主メモリ側の物理的なブロ
ックM1にロードされて実行されるのである。
It is CN. Therefore, the upper two bits are fixed to a predetermined value when the table is created. For example, latches 11, . If both 112 and 112 hold the value O, the data of the upper two bits of the conversion table created in the RAM 2 will always be O even though the address is updated. When the conversion table created in this manner is used, a relationship as shown in FIG. 7 occurs between the CPU address space and the physical address space of the main memory. That is, when the upper 4 bits of the address space on the CPU'Ul side can take the value O-F, the value of the upper 4 bits of the physical address space on the main memory 3 side is always O-3. In this way, for example CP
The program compiled for address block A3 on the UI side is loaded as is into physical block M1 on the main memory side and executed.

どのメモリブロックに変換するかはCPUIによって容
易に設定される。CPUIは適当な時期にラッチ設定命
令の実行をする。ラッチ設定の命令が実行されるとデコ
ーダ信号e4にレベル1が与えられる。制御回路4は所
定のタイミングでコントロール信号C4のラッチパルス
を出力してCPU1のデータ信号のピッ)D3.D2を
夫々ラッチ11□ 、112にセットする。実施例では
ラッチの数を2個としたが、これに限るものではない。
Which memory block to convert to is easily set by the CPUI. The CPUI executes the latch setting command at an appropriate time. When the latch setting command is executed, level 1 is applied to the decoder signal e4. The control circuit 4 outputs the latch pulse of the control signal C4 at a predetermined timing, and controls the data signals of the CPU 1 (D3. Set D2 to latches 11□ and 112, respectively. Although the number of latches is two in the embodiment, it is not limited to this.

例えばラッチの数を4個とすれば第7図の主メモリ3に
ついて1/16の大きさのメモリブロックの何れか1つ
を選択できることになる。
For example, if the number of latches is four, any one of the memory blocks of 1/16 the size of the main memory 3 shown in FIG. 7 can be selected.

尚、このようなアドレス変換装置はCPUからのアドレ
ス信号を変換するのみでなく、I10機器からのアドレ
ス信号を変換する場合にも用い得る。また更にI10機
器にむけて送るアドレス信号の変換にも用い得るもので
ある。
Incidentally, such an address conversion device can be used not only to convert an address signal from a CPU, but also to convert an address signal from an I10 device. It can also be used to convert address signals sent to I10 devices.

[効果] 以上述べた如く本発明によれば、アドレス変換テーブル
の作成が極めて高速に行えるので実時間の処理において
も簡単で有効なメモリマネジメントが行える。しかも命
令の実行で変換テーブルを−・挙にイニシャライズする
機能は装置の電源投入時においても、あるいは稼動の途
中においても、有用である。
[Effects] As described above, according to the present invention, an address conversion table can be created extremely quickly, so that simple and effective memory management can be performed even in real-time processing. Furthermore, the ability to initialize the conversion table all at once by executing a command is useful both when the device is powered on or during operation.

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

第1図はアドレス変換動作を説明する概念図、第2図は
アドレス変換用RAMの内容を示す説明図、 第3図はアドレス変換後の値ともとの値とを対比して示
す説明図、 第4図は一実施例のアドレス変換装置の構成を示すブロ
ック図、 第5図はセレクタ回路の詳細を示す回路図、第6図はR
AMへの書き込みを示すタイミングチャート、 第7図はアドレス変換の一態様を示す説明図である。 ここで、1・・・セントラルプロセッサ、2・・・ラン
ダムアクセスメモリ、3・・・主メモリ、4・・・制御
回路、5〜8・・・バッファ回路、9・・・カウンタ回
路、lO・・・ANDゲート、11・・・セレクタ回路
である。 第1図 第2因 第5図 11 第6図 篇7図
FIG. 1 is a conceptual diagram explaining the address translation operation, FIG. 2 is an explanatory diagram showing the contents of address translation RAM, and FIG. 3 is an explanatory diagram showing a comparison between the value after address translation and the original value. FIG. 4 is a block diagram showing the configuration of an address translation device according to one embodiment, FIG. 5 is a circuit diagram showing details of the selector circuit, and FIG.
A timing chart showing writing to AM. FIG. 7 is an explanatory diagram showing one mode of address conversion. Here, 1... Central processor, 2... Random access memory, 3... Main memory, 4... Control circuit, 5-8... Buffer circuit, 9... Counter circuit, lO. . . . AND gate, 11 . . . selector circuit. Figure 1 Cause 2 Figure 5 Figure 11 Figure 6 Figure 7

Claims (2)

【特許請求の範囲】[Claims] (1)アドレス情報を変換するアドレス変換装置であっ
て、アドレス変換用テーブルを記憶する記憶手段と、該
記憶手段に対する変換用テーブル作成の際のデータ書込
み用のアドレス信号とデータ信号を共に与えるカウンタ
手段を備えることを特徴とするアドレス変換装置。
(1) An address conversion device that converts address information, including a storage unit that stores an address conversion table, and a counter that provides both an address signal and a data signal for writing data when creating the conversion table to the storage unit. An address translation device comprising: means.
(2)アドレス情報を変換するアドレス変換装置であっ
て、アドレス変換用テーブルを記憶する記憶手段と、該
記憶手段に対する変換用テーブル作成の際のデータ書込
み用のアドレス信号とデータ信号を共に与えるカウンタ
手段と、前記データ信号の一部又は全部のビットを設定
値で置き替える手段を備えることを特徴とするアドレス
変換装置。
(2) An address conversion device that converts address information, including a storage unit that stores an address conversion table, and a counter that provides both an address signal and a data signal for writing data to the storage unit when creating the conversion table. and means for replacing some or all bits of the data signal with a set value.
JP58188480A 1983-10-11 1983-10-11 Address converter Pending JPS6081656A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58188480A JPS6081656A (en) 1983-10-11 1983-10-11 Address converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58188480A JPS6081656A (en) 1983-10-11 1983-10-11 Address converter

Publications (1)

Publication Number Publication Date
JPS6081656A true JPS6081656A (en) 1985-05-09

Family

ID=16224464

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58188480A Pending JPS6081656A (en) 1983-10-11 1983-10-11 Address converter

Country Status (1)

Country Link
JP (1) JPS6081656A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01102671A (en) * 1987-10-15 1989-04-20 Fujitsu Ltd Record controller
US5333286A (en) * 1989-12-13 1994-07-26 Joseph Weinberger Two way copier monitoring system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01102671A (en) * 1987-10-15 1989-04-20 Fujitsu Ltd Record controller
US5333286A (en) * 1989-12-13 1994-07-26 Joseph Weinberger Two way copier monitoring system

Similar Documents

Publication Publication Date Title
US4158227A (en) Paged memory mapping with elimination of recurrent decoding
US5479625A (en) Ring systolic array system for synchronously performing matrix/neuron computation using data transferred through cyclic shift register connected in cascade of trays
JP2008217799A (en) Processing system and method for reading and restoring information in ram structure
US5339402A (en) System for connecting an IC memory card to a central processing unit of a computer
JPS62245461A (en) Allocating method for board slot number
US20020199137A1 (en) Microcontroller with debug support unit
EP0337385A2 (en) Cache memory controller associated with a microprocessor
EP0057096A2 (en) Information processing unit
JPS6081656A (en) Address converter
US4034345A (en) Microprogrammable computer data transfer architecture
JPH0159610B2 (en)
US5396611A (en) Microprocessor use in in-circuit emulator having function of discriminating user's space and in-circuit emulator space
US5423021A (en) Auxiliary control signal decode using high performance address lines
JPS6081655A (en) Address converter
JPH0795269B2 (en) Instruction code decoding device
JP3821911B2 (en) Memory initialization control method
JP3102754B2 (en) Information utilization circuit
KR960008245Y1 (en) Disabling circuit for chip without chinp selecting signals
JPH04115337A (en) Semiconductor integrated circuit
TW470880B (en) Device and method for accessing BIOS data
KR950003884B1 (en) Personal computer bus interface circuit
KR890003236Y1 (en) Write and read circuit of data
JPH05240923A (en) Digital pattern generator mounted with address conversion ram
TW408281B (en) Microcomputer
JPH03191450A (en) Defective chip substituting circuit for memory card