JPH04142640A - Address converter - Google Patents

Address converter

Info

Publication number
JPH04142640A
JPH04142640A JP2267250A JP26725090A JPH04142640A JP H04142640 A JPH04142640 A JP H04142640A JP 2267250 A JP2267250 A JP 2267250A JP 26725090 A JP26725090 A JP 26725090A JP H04142640 A JPH04142640 A JP H04142640A
Authority
JP
Japan
Prior art keywords
address
page
logical address
logical
physical
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
JP2267250A
Other languages
Japanese (ja)
Inventor
Tadashi Kamata
忠 鎌田
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.)
Denso Corp
Original Assignee
NipponDenso Co Ltd
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 NipponDenso Co Ltd filed Critical NipponDenso Co Ltd
Priority to JP2267250A priority Critical patent/JPH04142640A/en
Publication of JPH04142640A publication Critical patent/JPH04142640A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To suppress the overhead for address conversion of an operation system by providing an address converter with the function that if a logical address to be input is the address of a page for an operation system a changeover means is controlled and a logical address is output as a physical address. CONSTITUTION:An arithmetic means M1 converts a logical address correspond ing to a logical address space having a plurality of pages including pages for operation system into a physical address corresponding to a physical address space. A changeover means M2 operates a logical address to be inputted and converts it to output it with or without the intervention of the arithmetic means M1. Further, a changeover control means M3 discriminates whether or not a logical address to be inputted is an address of the page for operation system, and if the logical address is the address of the page for operation system, the control changeover means M3 controls the changeover means M2 to output the logical address as a physical address without the intervention of the arithme tic means M1. With this, overhead for address conversion of address for opera tion system is suppressed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、論理アドレス空間から物理アドレス空間へ
のアドレス変換装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an address conversion device from a logical address space to a physical address space.

〔従来の技術〕[Conventional technology]

従来、マイクロコンピュータのアドレス変換は、ソフト
ウェアの生産性をよくするために、プログラムを作成す
る論理アドレス空間と、プログラムが実際に動作する物
理アドレス空間とを独立に用意し、それらを結びつける
方法として広く行われている。
Conventionally, address conversion for microcomputers has been widely used as a method to improve software productivity by separately preparing a logical address space in which programs are created and a physical address space in which the programs actually operate, and then linking them. It is being done.

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

ところが、近年ソフトウェアの大型化によりマイクロプ
ロセッサにおいてもオペレーションシステムを実装する
場合か増加してきており、論理アドレス空間にオペレー
ションシステム用ページを有する場合に、オペレーショ
ンシステムの高速動作の要求か高くなっている。
However, in recent years, with the increase in the size of software, the number of cases in which operating systems are implemented in microprocessors has increased, and when a page for an operating system is provided in a logical address space, there is an increasing demand for high-speed operation of the operating system.

この発明の目的は、オペレーションシステムのアドレス
変換のためのオーバヘッドを抑制できるアドレス変換装
置を提供することにある。
An object of the present invention is to provide an address translation device that can suppress overhead for address translation of an operating system.

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

この発明は、第1図に示すように、オペレーションシス
テム用ページを含む複数ページを有する論理アドレス空
間に対応する論理アドレスを、物理アドレス空間に対応
する物理アドレスに変換する演算手段Mlと、入力され
る前記論理アドレスを、前記演算手段M1を介して出力
するか、あるいは、演算手段Mlを介在させることなく
出力するかに切り換え可能な切換手段M2と、入力され
る前記論理アドレスがオペレーションシステム用ページ
でのアドレスか否かを判定して、オペレーションシステ
ム用ページでのアドレスであれば前記切換手段M2を制
御して当該論理アドレスを演算手段M1を介在させるこ
となく物理アドレスとして出力する切換制御手段M3と
を備えたアドレス変換装置をその要旨とするものである
As shown in FIG. 1, the present invention comprises arithmetic means Ml for converting a logical address corresponding to a logical address space having a plurality of pages including operating system pages into a physical address corresponding to a physical address space; a switching means M2 capable of switching between outputting the logical address via the arithmetic means M1 or outputting it without intervening the arithmetic means Ml; switching control means M3 that determines whether the address is an address for an operation system page, and if it is an address for an operating system page, controls the switching means M2 to output the logical address as a physical address without intervening the calculation means M1; The gist of the present invention is an address translation device equipped with the following.

〔作用〕[Effect]

切換制御手段M3は、入力される論理アドレスがオペレ
ーションシステム用ページでのアドレスか否かを判定し
て、オペレーションシステム用ページでのアドレスであ
れば切換手段M2を制御して当該論理アドレスを演算手
段M1を介在させることなく物理アドレスとして出力さ
せる。
The switching control means M3 determines whether the input logical address is an address for an operating system page, and if it is an address for an operating system page, it controls the switching means M2 to convert the logical address to a calculating means. To output as a physical address without intervening M1.

C実施例〕 以下、この発明を具体化した一実施例を図面に従って説
明する。
C Embodiment] An embodiment embodying the present invention will be described below with reference to the drawings.

第2図にはマイクロコンピュータの全体構成を示す。FIG. 2 shows the overall configuration of the microcomputer.

中央処理ユニット(以下、CPUという)1にはメモリ
マネージメントユニット(以下、MMUという)2が接
続されるとともに、MMU2にはメモリユニット(以下
、MEMという)3か接続されている。そして、CPU
Iがプログラムを実行する場合に、CPU 1は論理ア
ドレスをMMU2に送り、MMU2は物理アドレスへの
変換を行い、MEM3に送る。MEM3は物理アドレス
のの内容(命令コード)をCPU lに返送するように
なっている。
A memory management unit (hereinafter referred to as MMU) 2 is connected to a central processing unit (hereinafter referred to as CPU) 1, and a memory unit (hereinafter referred to as MEM) 3 is connected to MMU2. And the CPU
When I executes a program, CPU 1 sends a logical address to MMU2, which converts it into a physical address and sends it to MEM3. MEM3 is designed to return the contents (instruction code) of the physical address to CPU I.

第3図にはマイクロコンピュータの機能別構成を示す。FIG. 3 shows the functional configuration of the microcomputer.

論理アドレス空間4には第1〜第4ページPI。The logical address space 4 includes first to fourth pages PI.

P2.P3.P4が割り付けられ、第1ページPlがオ
ペレーションシステム用ページとなっている。又、物理
アドレス空間5には第1〜第4アドレス空間5a、5b
、5c、5dが設けられている。物理アドレス空間5の
各アドレス空間5a。
P2. P3. P4 is allocated, and the first page Pl is a page for the operating system. In addition, the physical address space 5 includes first to fourth address spaces 5a and 5b.
, 5c, and 5d are provided. Each address space 5a of the physical address space 5.

5b、5c、5dは論理アドレス空間4の各ページPI
、P2.P3.P4に対応するものである。
5b, 5c, 5d are each page PI of logical address space 4
, P2. P3. This corresponds to P4.

論理アドレス空間4の第2ページP2と物理アドレス空
間5の第2アドレス空間5bとは加算器6を介して接続
されている。又、論理アドレス空間4の第3ページP3
と物理アドレス空間5の第3アドレス空間5Cとは加算
器7を介して接続されている。さらに、論理アドレス空
間4の第4ページP4と物理アドレス空間5の第4アド
レス空間5dとは加算器8を介して接続されている。
The second page P2 of the logical address space 4 and the second address space 5b of the physical address space 5 are connected via an adder 6. Also, the third page P3 of the logical address space 4
and the third address space 5C of the physical address space 5 are connected via an adder 7. Furthermore, the fourth page P4 of the logical address space 4 and the fourth address space 5d of the physical address space 5 are connected via an adder 8.

又、論理アドレス空間4の第1ページPIと物理アドレ
ス空間5の第1アドレス空間5aとは直接接続されてい
る。
Further, the first page PI of the logical address space 4 and the first address space 5a of the physical address space 5 are directly connected.

ベース値記憶器9には論理アドレス空間4のアドレスか
ら物理アドレス空間5のアドレスに変換するためのベー
スアドレス値が記憶されており、各加算器6,7.8に
ベースアドレス値データを出力する。各加算器6. 7
. 8はこのベースアドレス値に論理アドレス空間4の
アドレス値を加算して物理アドレス空間5のアドレス値
に変換するようになっている。
The base value storage device 9 stores a base address value for converting an address in the logical address space 4 to an address in the physical address space 5, and outputs base address value data to each adder 6, 7.8. . Each adder6. 7
.. 8 adds the address value of the logical address space 4 to this base address value and converts it into the address value of the physical address space 5.

本実施例では、MMU2にて演算手段、切換手段及び切
換制御手段を構成し、又、CPUIにて切換制御手段の
一部を構・成している。
In this embodiment, the MMU 2 constitutes the calculation means, the switching means, and the switching control means, and the CPU constitutes a part of the switching control means.

次に、このように構成したマイクロコンピュータによる
アドレス変換動作を説明する。
Next, the address conversion operation by the microcomputer configured as described above will be explained.

CPUIがプログラムを実行する場合に、CPU1は、
ページ番号とページ内アドレスとからなる論理アドレス
をMMU2に送る。そして、MMU2は論理アドレスの
ページ番号が第1ページPl (オペレーションシステ
ム用ページ)であると判定すると、ページ内アドレスに
「0」拡張を行い上位ビットを付は加える。尚、このと
き、rQJ拡張の他にも、「1」拡張等であってもよい
When the CPUI executes a program, the CPU1
A logical address consisting of a page number and an address within the page is sent to the MMU2. When the MMU 2 determines that the page number of the logical address is the first page Pl (operation system page), it extends the intra-page address by "0" and adds an upper bit. Note that at this time, in addition to rQJ extension, "1" extension, etc. may be used.

又、MMU2は論理アドレスのページ番号が第2ページ
P2であると判定すると、加算器6においてページ内ア
ドレス値にベース値記憶器9のベースアドレス値を加算
して物理アドレスを生成する。さらに、MMU2は論理
アドレスのページ番号が第3ページP3であると判定す
ると、加算器7においてページ内アドレス値にベース値
記憶器9のベースアドレス値を加算して物理アドレスを
生成する。さらには、MMU2は論理アドレスのページ
・番号が第4ページP4であると判定すると、加算器8
においてページ内アドレス値にベース値記憶器90ベー
スアドレス値を加算して物理アドレスを生成する。
When the MMU 2 determines that the page number of the logical address is the second page P2, the adder 6 adds the base address value of the base value storage 9 to the intra-page address value to generate a physical address. Further, when the MMU 2 determines that the page number of the logical address is the third page P3, the adder 7 adds the base address value of the base value storage 9 to the intra-page address value to generate a physical address. Furthermore, when the MMU 2 determines that the page/number of the logical address is the fourth page P4, the adder 8
At , the base address value of the base value storage unit 90 is added to the in-page address value to generate a physical address.

そして、MMU2にて物理アドレスに変換された後は、
MEM3において、物理アドレスの内容(命令コード)
をCPU 1に返送する。その結果、CPU1のプログ
ラム実行が行われる。
Then, after being converted to a physical address by MMU2,
In MEM3, the contents of the physical address (instruction code)
is sent back to CPU 1. As a result, the CPU 1 executes the program.

このように本実施例では、MMU2は論理アドレスのペ
ージ番号が第1ページPi(オペレーションシステム用
ページ)であれば、そのページ内アドレス値を「0」拡
張して上位ビットを付は加えるだけの操作により特別な
処理サイクルを使用することなく物理アドレスに変換す
るようにした。
As described above, in this embodiment, if the page number of the logical address is the first page Pi (operation system page), the MMU 2 simply extends the address value within the page by "0" and adds the upper bit. The operation is now converted to a physical address without using a special processing cycle.

つまり、CPUIがオペレーションシステム用ページか
否かを示す論理アドレスを出力し、オペレーションシス
テム用ページであれば加算器を介在させることなく上位
ビットを付は加えるだけの処理により物理アドレスに変
換するようにした。
In other words, the CPU outputs a logical address indicating whether the page is for an operating system or not, and if it is a page for an operating system, it is converted into a physical address by simply adding and adding upper bits without using an adder. did.

その結果、論理アドレス空間4の第1ページPlに書か
れたプログラムの実行速度は、第2〜第4ページP2〜
P4に書かれたプログラムの実行速度より速くなり、オ
ペレーションシステムのアドレス変換のためのオーバヘ
ッドを抑制できることとなる。
As a result, the execution speed of the program written in the first page Pl of the logical address space 4 is the same as that of the second to fourth pages P2 to
The execution speed is faster than that of the program written in P4, and the overhead for address conversion of the operating system can be suppressed.

尚、この発明は上記実施例に限定されるものではな(、
例えば、上記実施例では論理アドレス空間に4つのペー
ジを設けたが、4つに限ることはない。又、オペレーシ
ョンシステム用ページも1つに限るものではない。
Note that this invention is not limited to the above embodiments (
For example, in the above embodiment, four pages are provided in the logical address space, but the number is not limited to four. Furthermore, the number of operating system pages is not limited to one.

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

以上詳述したようにこの発明によれば、オペレーション
システムのアドレス変換のためのオーバヘッドを抑制で
きる優れた効果を発揮する。
As described in detail above, the present invention provides an excellent effect of suppressing the overhead for address translation of the operating system.

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

第1図はクレーム対応図、第2図は実施例のマイクロコ
ンピュータの全体構成図、第3図はマイクロコンピュー
タの機能別の構成図である。 Mlは演算手段、M2は切換手段、M3は切換制御手段
。 特許出願人  日本電装  株式会社 代 理 人  弁理士 恩1)博宣(ほか1名)第2図 4ト+]−ド
FIG. 1 is a complaint correspondence diagram, FIG. 2 is an overall configuration diagram of a microcomputer according to an embodiment, and FIG. 3 is a functional configuration diagram of the microcomputer. Ml is an arithmetic means, M2 is a switching means, and M3 is a switching control means. Patent applicant: Nippondenso Co., Ltd. Agent: Patent attorney On 1) Hironobu (and 1 other person) Figure 2 4 t+]-d

Claims (1)

【特許請求の範囲】 1、オペレーションシステム用ページを含む複数ページ
を有する論理アドレス空間に対応する論理アドレスを、
物理アドレス空間に対応する物理アドレスに変換する演
算手段と、入力される前記論理アドレスを、前記演算手
段を介して出力するか、あるいは、演算手段を介在させ
ることなく出力するかに切り換え可能な切換手段と、 入力される前記論理アドレスがオペレーションシステム
用ページでのアドレスか否かを判定して、オペレーショ
ンシステム用ページでのアドレスであれば前記切換手段
を制御して当該論理アドレスを演算手段を介在させるこ
となく物理アドレスとして出力する切換制御手段と を備えたことを特徴とするアドレス変換装置。
[Claims] 1. A logical address corresponding to a logical address space having multiple pages including pages for an operating system,
A calculation means for converting into a physical address corresponding to a physical address space, and a switch capable of switching between outputting the input logical address via the calculation means or outputting it without intervening the calculation means. means for determining whether or not the inputted logical address is an address for an operating system page, and if it is an address for an operating system page, controlling the switching means to change the logical address through a calculating means; 1. An address translation device comprising: switching control means for outputting a physical address without changing the physical address.
JP2267250A 1990-10-03 1990-10-03 Address converter Pending JPH04142640A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2267250A JPH04142640A (en) 1990-10-03 1990-10-03 Address converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2267250A JPH04142640A (en) 1990-10-03 1990-10-03 Address converter

Publications (1)

Publication Number Publication Date
JPH04142640A true JPH04142640A (en) 1992-05-15

Family

ID=17442222

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2267250A Pending JPH04142640A (en) 1990-10-03 1990-10-03 Address converter

Country Status (1)

Country Link
JP (1) JPH04142640A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60205762A (en) * 1984-03-30 1985-10-17 Nec Corp Microprocessor

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60205762A (en) * 1984-03-30 1985-10-17 Nec Corp Microprocessor

Similar Documents

Publication Publication Date Title
US4777588A (en) General-purpose register file optimized for intraprocedural register allocation, procedure calls, and multitasking performance
JPH08278918A (en) System and method for execution of endian task
JPH0195347A (en) System for converting address
JPS5911921B2 (en) numerical control device
JPH04142640A (en) Address converter
JPS63271567A (en) Asymmetric closely-coupled multiprocessor system
JPH0744489A (en) Data transfer system
JP2504500B2 (en) Address translation device
JPH01120628A (en) Data processor
JPS61235962A (en) Address converting system in virtual machine system
JPS6338729B2 (en)
JPS62274351A (en) Address conversion system
JPH07141252A (en) Data processor
JPH033047A (en) Memory with arithmetic function
JPH02100154A (en) Address converter for virtual storage
JPS6226550A (en) Saving system to external storage device for program under execution
JPH03142546A (en) Address converting device
JPS6331816B2 (en)
JPH0528857B2 (en)
JPH039431A (en) Interruption processing system
JPH0380355A (en) Computer with dma transfer mechanism
JPH0474227A (en) Optimization system for machine word code
JPS6073759A (en) Address conversion buffer
JPS6242300B2 (en)
JPH01222328A (en) Data processing system