JPH03113548A - Extension memory controller - Google Patents

Extension memory controller

Info

Publication number
JPH03113548A
JPH03113548A JP25125889A JP25125889A JPH03113548A JP H03113548 A JPH03113548 A JP H03113548A JP 25125889 A JP25125889 A JP 25125889A JP 25125889 A JP25125889 A JP 25125889A JP H03113548 A JPH03113548 A JP H03113548A
Authority
JP
Japan
Prior art keywords
memory
address
microprocessor circuit
circuit
access
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP25125889A
Other languages
Japanese (ja)
Inventor
Kazuya Kuriyama
和也 栗山
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric 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 Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP25125889A priority Critical patent/JPH03113548A/en
Publication of JPH03113548A publication Critical patent/JPH03113548A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To facilitate a multi-tasking operation and to protect a memory by providing an extension memory control circuit via another hardware to fetch the control instruction and the address information of a microprocessor circuit and giving these instruction and information to the extension memory. CONSTITUTION:The control instruction and the address information of a microprocessor circuit 1 are fetched and then given to an extension memory 3. That is, it is decide whether the address information inputted from the circuit 1 is used to give an access to the memory 3 or not. If so, a base address of an active page is read out of the access information to be inputted. Then an offset address set previously is added to the read base address and outputted. The propriety and the presence/absence of protection are checked for the output address information. Then a memory access is carried out. As a result, a multi- tasking operation is facilitated and the memory can be protected.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はコンピュータシステムに利用する。本発明はマ
イクロプロセッサ回路の実アドレス空間を越えた拡張メ
モリのアクセスとメモリ保護を行うことができ、拡張メ
モリ上でマルチクスキングを容易に実行することができ
る装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention is applied to a computer system. The present invention relates to an apparatus capable of accessing and protecting an extended memory beyond the real address space of a microprocessor circuit, and easily performing multi-sking on the extended memory.

〔概要〕〔overview〕

本発明はマイクロプロセッサ回路、主メモリ、および回
路メモリを備えた拡張メモリ制御装置において、 拡張メモリを制御する回路を別のハードウェアで設け、
マイクロプロセッサ回路の制御命令およびアドレス情報
を取込みこの拡張メモリにアドレス情報および制御命令
を与えることにより、拡張メモリを意識することなくア
プリケーションプログラムの開発ができ、マルチタスキ
ングを容易に行えるようにし、メモリ保護ができるよう
にしたものである。
The present invention provides an extended memory control device that includes a microprocessor circuit, a main memory, and a circuit memory, and provides a circuit for controlling the extended memory using separate hardware.
By taking control commands and address information from the microprocessor circuit and providing address information and control commands to this expanded memory, application programs can be developed without having to be aware of the expanded memory, and multitasking can be easily performed. It is designed to provide protection.

〔従来の技術〕[Conventional technology]

従来の拡張メモリ制御装置は、マイクロプロセッサ回路
と、このマイクロプロセッサ回路からアクセスされ読出
し出力がこのマイクロプロセッサ回路に取込まれる主メ
モリと、読出し出力がこのマイクロプロセッサ回路に取
込まれる拡張メモリとを備え、第6図に示すように拡張
メモリ3が複数の論理ページX、YSZに分割され、こ
れをマツピングするために主メモリ2上の特定のアドレ
ス範囲が物理ページフレーム5として対応付けられてい
た。物理ページフレーム5は16KBのページ4枚で構
成され、最大64KBの論理ページをアクセスすること
ができ、論理ページのアクセスや制御は拡張メモリマネ
ージャ(8MM: Expanded MemoryM
anager)を介して行われていた。
A conventional expansion memory controller includes a microprocessor circuit, a main memory that is accessed by the microprocessor circuit and whose read output is applied to the microprocessor circuit, and an expansion memory whose read output is applied to the microprocessor circuit. In preparation, the extended memory 3 is divided into a plurality of logical pages X and YSZ, as shown in FIG. 6, and in order to map these, a specific address range on the main memory 2 is associated as a physical page frame 5. . The physical page frame 5 is composed of four 16KB pages, and can access logical pages of up to 64KB. Access and control of logical pages is performed by an Expanded Memory Manager (8MM).
anager).

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述した従来技術では、マイクロプロセッサ回路を使用
して小規模なコンピュータシステムを構成する場合、マ
イクロプロセッサ回路にメモリ保護機能が無いことやア
ドレス空間が非常に狭いなどの問題があり、後者の場合
、メモリ拡張制御の一方法として拡張メモリ仕様(BM
S:Bxpanded MemorySpecif 1
cation)が一般的であるが、論理ページ上のプロ
グラム実行やデータアクセスが不便であり、十分な性能
が発揮できないなどリアルタイムマルチタスク応用には
不敵であり、下記の問題を有していた。
In the above-mentioned conventional technology, when configuring a small-scale computer system using a microprocessor circuit, there are problems such as the microprocessor circuit having no memory protection function and an extremely narrow address space. Extended memory specification (BM) is one method of memory expansion control.
S: Bxpanded Memory Specific 1
However, it is inconvenient to execute programs and access data on logical pages, and cannot achieve sufficient performance, making it unsuitable for real-time multitasking applications, and has the following problems.

■ 拡張メモリ上のデータ参照やプログラムを実行する
ための手続きを全てユーザプログラムで記述しなければ
ならず負担が大きい。
■ All the procedures for referencing data on extended memory and executing programs must be written in the user program, which is a heavy burden.

■ 従来の拡張メモリ、制御装置(例えば日本電気株式
会社製PC98/RA)では、拡張メモリ上のデータを
アクセスする場合、拡張メモリ上の論理ページが主メモ
リ上の物理ページにマツプあるいはアンマツプのたびに
16KBのデータ転送が行われリアルタイム処理には適
さない。
■ With conventional extended memory and control devices (for example, PC98/RA manufactured by NEC Corporation), when accessing data on extended memory, a logical page on the extended memory is mapped or unmapped to a physical page on main memory. 16KB of data is transferred each time, making it unsuitable for real-time processing.

■ 物理ページと論理ページの対応付は処理の時間がか
かりすぎる。例えば、前記PC98/RAでは6111
8.また拡張メモリ仕様(BMS)をハードウェアで実
現した場合には140μSと大幅に改善されるがリアル
タイム処理には負荷が大きすぎる。
■ Associating physical pages with logical pages takes too much processing time. For example, in the PC98/RA, 6111
8. Furthermore, if the extended memory specification (BMS) is realized by hardware, the time will be significantly improved to 140 μS, but the load will be too large for real-time processing.

■ 物理ページがマシンによっては必ずしも連続してい
るとはかぎらず、物理ページフレームが16KB単位と
狭いため、ページをまたがるデータのアクセスやプログ
ラムの実行が必ずしも保証されていない。
■ Physical pages are not necessarily consecutive depending on the machine, and physical page frames are as narrow as 16 KB, so data access or program execution across pages is not necessarily guaranteed.

■ 拡張メモリのメモリ保護機能がないためにマルチタ
スク環境で必要となるデータやプログラムのアクセス保
護ができない。
■ Since there is no memory protection function for extended memory, it is not possible to protect access to data and programs, which is necessary in a multitasking environment.

■ ページ切り換え中は割込みが禁止されるのでシステ
ム全体の性能としては好ましくない。
■ Interrupts are prohibited during page switching, which is unfavorable for overall system performance.

本発明はこのような問題を解決するもので、アドレス空
間が狭く、メモリ保護機能を持たないマイクロプロセッ
サ回路でコンピュータシステムを構成する場合、拡張メ
モリを意識することなくアプリケーションプログラムを
開発することができ、マルチタスキングを容易に行い、
メモリ保護ができる装置を提供することを目的とする。
The present invention solves these problems, and when a computer system is configured with a microprocessor circuit that has a narrow address space and does not have a memory protection function, it is possible to develop application programs without having to be aware of expanded memory. , multitasking with ease,
The purpose is to provide a device that can protect memory.

〔問題点を解決するための手段〕[Means for solving problems]

本発明は、マイクロプロセッサ回路と、このマイクロプ
ロセッサ回路からアクセスされ読出し出力がこのマイク
ロプロセッサ回路に取込まれる主メモリと、読出し出力
がこのマイクロプロセッサ回路に取込まれる拡張メモリ
とを備えた拡張メモリ制御装置において、前記マイクロ
プロセッサの制御命令およびアドレス情報を取込み前記
拡張メモリにアドレス情報および制御命令を与える拡張
メモリ制御回路を別のハードウェアにより設け、この拡
張メモリ制御回路は、前記マイクロプロセッサから入力
するアドレス情報が前記拡張メモリにアクセスすべきも
のであるかを判定する手段と、この判定する手段により
拡張メモリにアクセスすべきものであることが判定され
たときに前記入力するアドレス情報からアクティブペー
ジのベースアドレスを読出す手段と、この読出す手段か
ら与えられたベースアドレスにあらかじめ設定されたオ
フセットアドレスを加算する演算手段と、この演算手段
の出力アドレス情報の妥当性および保護設定の有無を検
査するアドレス検査手段とを備えたことを特徴とする。
The present invention provides an expansion memory comprising a microprocessor circuit, a main memory accessed by the microprocessor circuit and whose read output is taken into the microprocessor circuit, and an expansion memory whose read output is taken into the microprocessor circuit. In the control device, an extended memory control circuit that takes in control commands and address information from the microprocessor and provides address information and control commands to the extended memory is provided by separate hardware, and this extended memory control circuit receives input from the microprocessor. means for determining whether the address information to be input is one that should access the extended memory; and when the determining means determines that the address information to be input is one that should access the extended memory, the base of the active page is determined from the input address information. A means for reading an address, a calculation means for adding a preset offset address to a base address given by the reading means, and an address for checking the validity of the output address information of this calculation means and the presence or absence of protection settings. The invention is characterized by being equipped with an inspection means.

〔作用〕[Effect]

マイクロプロセッサ回路の制御命令およびアドレス情報
を取込み、拡張メモリにアドレス情報および制御命令を
与える。すなわち、マイクロプロセッサ回路から入力す
るアドレス情報が拡張メモリにアクセスすべきものであ
るか否かを判定し、拡張メモリにアクセスすべきもので
あることが判定されたときに、入力するアドレス情報か
らアクティブページのベースアドレスを読出す。この読
出されたベースアドレスにあらかじめ設定されたオフセ
ットアドレスを加算して出力し、この出力アドレス情報
の妥当性および保護設定の有無を検査し、メモリアクセ
スを実行する。
Captures control instructions and address information for the microprocessor circuit and provides address information and control instructions to expanded memory. That is, it is determined whether the address information input from the microprocessor circuit should access the extended memory or not, and when it is determined that the address information input from the microprocessor circuit is the one that should access the extended memory, the active page is determined from the input address information. Read base address. A preset offset address is added to this read base address and output, the validity of this output address information and the presence or absence of protection setting are checked, and memory access is executed.

これにより、リアルタイムオペレーティングシステムに
よるマルチタスキングが容易となり、メモリ保護ができ
るためにシステムの信頼性を向上させることができる。
This facilitates multitasking with real-time operating systems and improves system reliability due to memory protection.

またタスク切り換えを高速に行うことができ、上位マイ
クロプロセッサ回路への移行が容易になる。
Furthermore, task switching can be performed at high speed, making it easy to migrate to higher-level microprocessor circuits.

〔実施例〕〔Example〕

次に、本発明実施例を図面に基づいて説明する。 Next, embodiments of the present invention will be described based on the drawings.

第1図は本発明実施例の全体構成を示すブロック図、第
2図は本発明実施例の拡張メモリ制御回路4の構成を示
すブロック図、第3図は本発明実施例のソフトウェアの
構成を示す図である。
FIG. 1 is a block diagram showing the overall configuration of an embodiment of the present invention, FIG. 2 is a block diagram showing the configuration of the extended memory control circuit 4 of the embodiment of the present invention, and FIG. 3 is a block diagram showing the software configuration of the embodiment of the present invention. FIG.

本発明実施例拡張メモリ制御装置は、マイクロプロセッ
サ回路1と、このマイクロプロセッサ回路1からアクセ
スされ読出し出力がこのマイクロプロセッサ回路に取込
まれる主メモリ2と、読出し出力がこのマイクロプロセ
ッサ回路1に取込まれる拡張メモリ3とを備え、さらに
マイクロプロセッサ回路1の制御命令およびアドレス情
報を取込み拡張メモリ3にアドレス情報および制御命令
を与える拡張メモリ制御回路4を別のハードウェアによ
り設け、この拡張メモリ制御回路4は、前記マイクロプ
ロセッサから入力するアドレス情報が拡張メモリ3にア
クセスすべきものであるかを判定するアドレス判定手段
41と、このアドレス判定手段4Iにより拡張メモリ3
にアクセスすべきものであることが判定されたときに入
力するアドレス情報からアクティブページのベースアド
レスを読出す読出し手段42と、この読出し手段42か
ら与えられたベースアドレスにあらかじめ設定されたオ
フセットアドレスを加算する演算手段43と、この演算
手段43の出力アドレス情報の妥当性および保護設定の
有無を検査するアドレス検査手段44とを備える。
The extended memory control device according to the embodiment of the present invention includes a microprocessor circuit 1, a main memory 2 that is accessed from the microprocessor circuit 1 and whose read output is taken into the microprocessor circuit, and a main memory 2 whose read output is taken into the microprocessor circuit 1. Furthermore, an extended memory control circuit 4 which takes in control commands and address information from the microprocessor circuit 1 and provides address information and control commands to the extended memory 3 is provided by separate hardware, and this extended memory control circuit 4 is provided with separate hardware. The circuit 4 includes an address determining means 41 for determining whether address information input from the microprocessor should access the extended memory 3, and an address determining means 41 for determining whether the address information input from the microprocessor should access the extended memory 3.
A readout means 42 reads out the base address of the active page from address information input when it is determined that the active page should be accessed, and a preset offset address is added to the base address given from the readout means 42. and an address checking means 44 that checks the validity of the output address information of the calculation means 43 and the presence or absence of protection settings.

マイクロプロセッサ回路1は、アドレスバス20ビツト
、データバス16ビツトであり、アドレス空間の一部が
拡張メモリ制御回路4により拡張メモす3にマツピング
される。ページ切り換えは主メモリ2上にあるシステム
ソフトウェア(必ずしもオペレーディングシステムでな
くてもよい)からの人出力コマンドにより行われる。
The microprocessor circuit 1 has a 20-bit address bus and a 16-bit data bus, and a part of the address space is mapped to an extended memory 3 by an extended memory control circuit 4. Page switching is performed by a human output command from system software (not necessarily an operating system) residing in the main memory 2.

拡張メモリ制御回路は、マイクロプロセッサ回路1と主
メモリ2および拡張メモリ3の間に介在し、マイクロプ
ロセッサ回路1から出力される20ビツトアドレスをあ
らかじめシステムソフトウェアが設定した内部テーブル
を参照して拡張メモリ3上の32ビツトアドレスに変換
する。また同時にマイクロプロセッサ回路1から出力さ
れるメモリの読出しくMRD)および書き込み(MWR
)信号とあわせてアクセスプロテクションチエツクを行
い、またページ切り換えを高速(1コマンドで)で実行
する。
The expansion memory control circuit is interposed between the microprocessor circuit 1, the main memory 2, and the expansion memory 3, and controls the expansion memory by referring to an internal table set in advance by the system software using the 20-bit address output from the microprocessor circuit 1. 3 to a 32-bit address. At the same time, the memory read (MRD) and write (MWR) output from the microprocessor circuit 1
) signal, performs an access protection check, and performs page switching at high speed (with one command).

拡張メモリ3は最大4GB(32ビツト)までアドレッ
シング可能であり、マルチタスキングを効率よく行うた
め最大IMBのプログラムをローダにより複数置くこと
ができる。それぞれの論理ページは主メモリ2上のペー
ジフレームに対応しマ0 イクロプロセッサ回路1からは連続アドレス空間として
みなされる。
The extended memory 3 can be addressed up to 4 GB (32 bits), and a loader can store a plurality of programs of up to IMB in order to efficiently perform multitasking. Each logical page corresponds to a page frame on the main memory 2, and is viewed by the microprocessor circuit 1 as a continuous address space.

主メモリ2上には拡張メモリマツピングの切り換えを指
示するシステムソフトウェアが常駐する。
System software that instructs switching of extended memory mapping resides on the main memory 2.

必ずしもマルチタスクオペレーティングシステムは不用
で、簡単なファンクションキー割り込みからページを切
り換えてプログラムを実行するキーボード割り込みハン
ドラ程度であってもよい。
A multitasking operating system is not necessarily required; it may be a simple function key interrupt or a keyboard interrupt handler that switches pages and executes a program.

次に、このように構成された本発明実施例の拡張メモリ
制御回路4のアドレス変換方法について説明する。第4
図(a)、(b)、(C)は本発明実施例のアクティブ
ページレジスタ、ページフレーム管理レジスタ、および
拡張メモリ制御回路アドレス変換テーブルを示す図、第
5図は本発明実施例の処理の流れを示す流れ図であ−る
。第4図(C)のWPは書込み禁止を示し、アクセスレ
ベルはタスク間の保護を示し、例えばレベル1のタスク
がレベル0の領域をアクセスすることはできない。
Next, an address conversion method of the extended memory control circuit 4 according to the embodiment of the present invention configured as described above will be explained. Fourth
Figures (a), (b), and (C) are diagrams showing the active page register, page frame management register, and extended memory control circuit address conversion table of the embodiment of the present invention, and Fig. 5 shows the processing of the embodiment of the present invention. It is a flowchart showing the flow. WP in FIG. 4C indicates write protection, and the access level indicates protection between tasks; for example, a level 1 task cannot access a level 0 area.

まず、マイクロプロセッサ回路1が送信した20ビツト
のアドレスがページフレーム内(拡張メモリアクセス〉
のアドレスであるか否かをアドレス判定手段41がチエ
ツクし、もしページフレーム外であれば主メモリ2に対
し書込み(MMWR)または読出しくMMRD)のアク
セスを行う(ステップ■)。
First, the 20-bit address sent by microprocessor circuit 1 is stored in the page frame (extended memory access).
The address determining means 41 checks whether the address is outside the page frame, and if it is outside the page frame, accesses the main memory 2 for writing (MMWR) or reading (MMRD) (step 2).

拡張メモリ制御回路4が現在マツピング中のページNo
、を保持するアクティブページレジスタのページNo、
から拡張メモリ制御回路アドレス変換テーブルを参照し
、アドレス変換、プロテクションチエツクを行う。この
レジスタの内容は主メモリ2上のシステムプログラムに
より変更される(ステップ■)。
Page number that the extended memory control circuit 4 is currently mapping
, the page number of the active page register holding ,
Refers to the extended memory control circuit address conversion table from , and performs address conversion and protection check. The contents of this register are changed by the system program in the main memory 2 (step 2).

次いで、現在マツピング中のページNo、からページベ
ースアドレスが索引され(ステップ■)、マイクロプロ
セッサ回路1から与えられる20ビツトの主メモリ2上
の物理アドレスであるオフセットアドレスが拡張メモリ
3上のページ内オフセットアドレスとなる(ステップ■
)。
Next, the page base address is indexed from the page number currently being mapped (step ■), and the offset address, which is the 20-bit physical address on the main memory 2 given from the microprocessor circuit 1, is indexed from the page number on the extended memory 3. Becomes an offset address (step ■
).

マイクロプロセッサ回v@1から与えられた20ビツト
のアドレスとページベースアドレスを加算して拡張メモ
リ3上の32ビツト物理アドレスを生成する(ステップ
■)。ステップ■で生成した拡張メモリ3上の32ビツ
ト物理アドレスがアクティブページ内にあるか否かのチ
エツクを行い、範囲外のアドレスの場合にはマイクロプ
ロセッサ回路11ご対してバスエラー(BERR)を送
信する。
A 32-bit physical address on the extended memory 3 is generated by adding the 20-bit address given from the microprocessor circuit v@1 and the page base address (step 2). Checks whether the 32-bit physical address on the expansion memory 3 generated in step (3) is within the active page, and if the address is outside the range, sends a bus error (BERR) to the microprocessor circuit 11. do.

マイクロプロセッサ回路1から送信されたメモリ読出し
くMRD)信号とメモリ書き込み(MWR)信号から拡
張メモリ3へのアクセスが正当か否かのプロテクション
チエツクを行い、不当の場合にはマイクロプロセッサ回
路lに対してプロテクションエラー(PERR)を送信
しくステップ■)、正当の場合には拡張メモリ書込み(
EMWR)または拡張メモリ読出しくEMRD)信号を
送信してメモリアクセスを実行する(ステップ■)この
ように、拡張メモリ仕様で必要とした拡張メモリドライ
バの機能(ページ管理とプログラム実行)は、メモリマ
ネジメントコントローラ(MMC)とメモリ上のシステ
ムプログラムにより行われるために、ユーザは拡張メモ
リ3上のプログ3 ラムアドレスを意識したアプリケーションプログラムの
作成や実行が不要となり、また、メモリマネジメントコ
ントローラ(MMC)はマルチタスクを意識したセグメ
ント管理とメモリ保護機能を有することになる。
A protection check is performed to determine whether the access to the extended memory 3 is legal based on the memory read (MRD) and memory write (MWR) signals sent from the microprocessor circuit 1, and if it is illegal, a protection check is performed on the microprocessor circuit 1. Step ■) to send a protection error (PERR), and if it is valid, write extended memory (
Execute memory access by sending EMWR) or extended memory read (EMRD) signal (step ■) In this way, the functions of the extended memory driver (page management and program execution) required by the extended memory specifications are memory management. This is done by the controller (MMC) and the system program on the memory, so the user does not need to create or execute an application program that is aware of the program address on the extended memory 3. In addition, the memory management controller (MMC) It has task-aware segment management and memory protection functions.

メモリマネジメントコントローラ(MMC)が管理する
セグメントはVECTOR(割り込みベクタ領域) 、
DATA (データ領域)、C0DE(コード領域)、
5TACK(スタック領域)、C0MM0N (共有メ
モリ)があり、メモリ保護機能にはセグメント単位のア
クセス保護とアクセスレベルがある。
The segments managed by the memory management controller (MMC) are VECTOR (interrupt vector area),
DATA (data area), C0DE (code area),
There are 5TACK (stack area) and C0MM0N (shared memory), and memory protection functions include segment-based access protection and access level.

また、拡張メモリ3上の任意のアドレスをベースに最大
IMBの連続したメモリを1ページに割付け、マルチタ
スク環境では1ページに1タスクを割り付けることがで
きる。物理フレームは割り込みベクタやオペレーティン
グシステム領域を除く主メモリ2上のどの位置にも置く
ことが可能となり、拡張メモリ3上のページに対してア
クセスレベルやプロテクションを指定できるために、拡
4 張メモリ3上にプログラムをロードする際、コード部は
自動的に書き込み禁止にするなどの指定ができ、ページ
切り換えをハードウェアで実現しているために、タスク
切り換えを高速に実行することができる。
Furthermore, a maximum of IMB of continuous memory can be allocated to one page based on an arbitrary address on the extended memory 3, and one task can be allocated to one page in a multitasking environment. Physical frames can be placed anywhere in main memory 2 except for interrupt vectors and operating system areas, and access levels and protection can be specified for pages in extended memory 3. When loading a program onto the computer, the code section can be specified to be automatically write-protected, and since page switching is implemented in hardware, task switching can be performed quickly.

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

以上説明したように本発明によれば、最大IMBのプロ
グラムを複数常駐させ並行に動作させることができるた
めにリアルタイムオペレーティングシステムによるマル
チタスキングが容易となり、比較的大きなソフトウェア
を動作させるマルチタスクシステムにおいてはメモリ保
護が実現できるためにシステムの信頼性を向上させるこ
とができる。また、1ページに1タスクを対応させてペ
ージ切り換えをハードウェアにより行えることによって
リアルタイムオペレーティングシステムのスケジューラ
におけるタスク切り換えを高速に行うことができ、さら
に拡張メモリを意識したインタフェースをプログラミン
グの際に持ち込まないことからプロテクト機能や大きな
アドレス空間を有5 する上位マイクロプロセッサ回路への移行が容易になる
などの効果がある。
As explained above, according to the present invention, multiple programs of maximum IMB can be resident and run in parallel, which facilitates multitasking using a real-time operating system, and in a multitasking system that runs relatively large software. Since memory protection can be achieved, system reliability can be improved. In addition, by allowing one task to correspond to one page and performing page switching using hardware, task switching in the scheduler of a real-time operating system can be performed quickly, and furthermore, an interface that is aware of expanded memory is not introduced during programming. This has the effect of making it easier to migrate to higher-level microprocessor circuits that have protection functions and large address spaces.

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

第1図は本発明実施例の全体構成を示すブロック図。 第2図は本発明実施例の拡張メモリ制御回路の構成を示
すブロック図。 第3図は本発明実施例のソフトウェアの構成を示す図。 第4図(a)、(b)、(C)は本発明実施例のアクテ
ィブページレジスタ、ページフレーム管理レジスタ、お
よび拡張メモリ制御回路アドレス変換テーブルを示す図
。 第5図は本発明実施例の処理の流れを示す流れ図。 第6図は従来の拡張メモリ仕様を説明する図。 1・・・マイクロプロセッサ回路、2・・・主メモリ、
3・・・拡張メモリ、4・・・拡張メモリ制御回路、訃
・・物理ページフレーム、41・・・アドレス判定手段
、42・・・読出し手段、43・・・演算手段、44・
・・アドレス検査6 手段。
FIG. 1 is a block diagram showing the overall configuration of an embodiment of the present invention. FIG. 2 is a block diagram showing the configuration of an extended memory control circuit according to an embodiment of the present invention. FIG. 3 is a diagram showing the software configuration of the embodiment of the present invention. FIGS. 4A, 4B, and 4C are diagrams showing an active page register, a page frame management register, and an extended memory control circuit address conversion table according to an embodiment of the present invention. FIG. 5 is a flowchart showing the processing flow of the embodiment of the present invention. FIG. 6 is a diagram explaining the conventional expansion memory specifications. 1... Microprocessor circuit, 2... Main memory,
3... Expansion memory, 4... Expansion memory control circuit, 2... Physical page frame, 41... Address determination means, 42... Reading means, 43... Arithmetic means, 44.
...Address inspection 6 means.

Claims (1)

【特許請求の範囲】 1、マイクロプロセッサ回路(1)と、 このマイクロプロセッサ回路からアクセスされ読出し出
力がこのマイクロプロセッサ回路に取込まれる主メモリ
(2)と、 読出し出力がこのマイクロプロセッサ回路に取込まれる
拡張メモリ(3)と を備えた拡張メモリ制御装置において、 前記マイクロプロセッサ回路(1)の制御命令およびア
ドレス情報を取込み前記拡張メモリ(3)にアドレス情
報および制御命令を与える拡張メモリ制御回路(4)を
別のハードウェアにより設け、この拡張メモリ制御回路
(4)は、 前記マイクロプロセッサ回路(1)から入力するアドレ
ス情報が前記拡張メモリ(3)にアクセスすべきもので
あるかを判定する手段と、 この判定する手段により拡張メモリにアクセスすべきも
のであることが判定されたときに前記入力するアドレス
情報からアクティブページのベースアドレスを読出す手
段と、 この読出す手段から与えられたベースアドレスにあらか
じめ設定されたオフセットアドレスを加算する演算手段
と、 この演算手段の出力アドレス情報の妥当性および保護設
定の有無を検査するアドレス検査手段とを備えたことを
特徴とする拡張メモリ制御装置。
[Claims] 1. A microprocessor circuit (1), a main memory (2) that is accessed from the microprocessor circuit and whose readout output is taken into the microprocessor circuit, and a main memory (2) whose readout output is taken into the microprocessor circuit. an extended memory control device comprising an extended memory (3) in which the microprocessor circuit (1) is installed; (4) is provided by separate hardware, and this extended memory control circuit (4) determines whether the address information input from the microprocessor circuit (1) should access the extended memory (3). means for reading the base address of the active page from the input address information when it is determined by the determining means that the expanded memory should be accessed; and a base address given by the reading means. 1. An expansion memory control device comprising: arithmetic means for adding an offset address set in advance to .
JP25125889A 1989-09-27 1989-09-27 Extension memory controller Pending JPH03113548A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25125889A JPH03113548A (en) 1989-09-27 1989-09-27 Extension memory controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25125889A JPH03113548A (en) 1989-09-27 1989-09-27 Extension memory controller

Publications (1)

Publication Number Publication Date
JPH03113548A true JPH03113548A (en) 1991-05-14

Family

ID=17220100

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25125889A Pending JPH03113548A (en) 1989-09-27 1989-09-27 Extension memory controller

Country Status (1)

Country Link
JP (1) JPH03113548A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6766436B2 (en) 2001-06-05 2004-07-20 Hitachi, Ltd. Data processor having an address translation circuit
JP2008282415A (en) * 2008-06-30 2008-11-20 Sonix Technology Co Ltd Memory management system, and its management method
JP2011186545A (en) * 2010-03-04 2011-09-22 Nec Corp Memory database system, speed-up method and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6766436B2 (en) 2001-06-05 2004-07-20 Hitachi, Ltd. Data processor having an address translation circuit
JP2008282415A (en) * 2008-06-30 2008-11-20 Sonix Technology Co Ltd Memory management system, and its management method
JP2011186545A (en) * 2010-03-04 2011-09-22 Nec Corp Memory database system, speed-up method and program

Similar Documents

Publication Publication Date Title
CA1304166C (en) Software emulation of bank-switched memory using a virtual dos monitorand paged memory management
US4347565A (en) Address control system for software simulation
US5247639A (en) Microprocessor having cache bypass signal terminal
US5237669A (en) Memory management method
US4742450A (en) Method to share copy on write segment for mapped files
US4408274A (en) Memory protection system using capability registers
EP0979456B1 (en) Memory access protection
US5043878A (en) System with real-time checking of privilege levels and the system's state to allow access to internal resources of the system
TWI603223B (en) Memory protection circuit, processing unit, and memory protection method
US7043616B1 (en) Method of controlling access to model specific registers of a microprocessor
US20020046305A1 (en) Method for effective binary translation between different instruction sets using emulated supervisor flag and multiple page tables
JPH0619798A (en) Method and system for avoidance of loading of value of selector
JPS6248258B2 (en)
US5802598A (en) Data memory access control and method using fixed size memory sections that are sub-divided into a fixed number of variable size sub-sections
JP2974577B2 (en) Computer system
JPH07120318B2 (en) Apparatus and method for protecting main memory unit with access and defective logic signals
JPH03113548A (en) Extension memory controller
JP2568017B2 (en) Microprocessor and data processing system using the same
EP1901171A1 (en) Apparatus and method for handling interrupt disabled section and page pinning apparatus and method
KR100223096B1 (en) Method and apparatus for observing internal memory-mapped registers
JPH06332803A (en) Tlb control method in virtual computer system
EP0864983A2 (en) Computer system including memory adress management circuit for protecting memory from illegal writing
JP2535086B2 (en) Ring reduction logic device
JP2578182B2 (en) Data processing device and data processing system
JPH0652507B2 (en) Microcomputer development equipment