JPH08339328A - Bank memory switching circuit - Google Patents

Bank memory switching circuit

Info

Publication number
JPH08339328A
JPH08339328A JP14467795A JP14467795A JPH08339328A JP H08339328 A JPH08339328 A JP H08339328A JP 14467795 A JP14467795 A JP 14467795A JP 14467795 A JP14467795 A JP 14467795A JP H08339328 A JPH08339328 A JP H08339328A
Authority
JP
Japan
Prior art keywords
bank
bank memory
memory
switching circuit
program
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
JP14467795A
Other languages
Japanese (ja)
Inventor
Toshiyasu Honda
利泰 本田
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP14467795A priority Critical patent/JPH08339328A/en
Publication of JPH08339328A publication Critical patent/JPH08339328A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To enable every program to have an access to a bank memory with no intervention of a management program. CONSTITUTION: A bank memory switching circuit 10 is provided with a set bank writing register 11 which has a push-don stack structure of a multistage constitution that can set and cancel the working bank in both push-down and pop-up systems by a single command, and a bank memory connection part 12 which has the same structure as the conventional one and connects the bank memory set by the register 11 or cancels this connection.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、コンピュータシステム
のメモリ領域管理方式に関し、特にハードウェア割り込
み機能を有するマイクロプロセッサのバンクメモリ切換
回路の改良に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory area management system for a computer system, and more particularly to improvement of a bank memory switching circuit of a microprocessor having a hardware interrupt function.

【0002】[0002]

【従来の技術】コンピュータシステムのバンクメモリ方
式は、プログラムに対するメインメモリの大きさやアド
レスの連続性などの物理的制約を緩和するために開発さ
れたもので、メインメモリに格納される情報を1つのプ
ログラムまたはデータ集合などの論理的に意味のある単
位ごとにバンクとして分割して仮想アドレス空間に割り
当てておき、データの出し入れ時には、仮想アドレスを
実アドレスに変換して、共通のアドレス領域に呼び出す
バンクメモリを選択したバンクメモリに切換え、所要の
データの書き込み、読み出しを行なうものである。
2. Description of the Related Art The bank memory system of a computer system was developed in order to ease physical constraints such as the size of the main memory for programs and the continuity of addresses. A bank that is divided into banks for each logically meaningful unit such as a program or data set and assigned to a virtual address space, and when data is input or output, a virtual address is converted to a real address and called in a common address area. The memory is switched to the selected bank memory, and necessary data is written and read.

【0003】従来のバンクメモリ切換回路は、例えば図
3に示すように、複数のバンクメモリ3,4,5と、こ
れらのバンクメモリのいずれかを選択、指定するバンク
レジスタ6と、バンク切換えプログラム2aを含む共通
領域部および選択されたバンクメモリが切換えて格納さ
れるバンクメモリ部からなるメインメモリ2と、マイク
ロプロセッサ1とからなり、バンクメモリの切換え時に
は、管理プログラムの制御により、バンクメモリが切換
えられる。。
A conventional bank memory switching circuit, for example, as shown in FIG. 3, has a plurality of bank memories 3, 4, and 5, a bank register 6 for selecting and designating one of these bank memories, and a bank switching program. The main memory 2 is composed of a common area portion including 2a and a selected bank memory, and a microprocessor 1 and a bank memory portion. The bank memory is controlled by a management program when the bank memory is switched. Can be switched. .

【0004】しかし、この回路では、バンクメモリの切
換え中に優先度の高い割り込みがあると、バンクメモリ
のデータが破壊されてしまうことがある。
However, in this circuit, if there is a high priority interrupt during the switching of the bank memory, the data in the bank memory may be destroyed.

【0005】それを防止するために、例えば特開昭61
−150048号公報に開示されたバンクメモリ切換回
路は、図4に示すように、バンク切換え期間中の割り込
みを禁止する手段を設けている。すなわち、このバンク
メモリ切換回路は、切換え依頼のあったバンクメモリを
選択して切換える第1の切替手段と、切換えられたバン
クメモリにおけるプログラムスタック領域を配置する手
段と、スタック領域配置後切換え先バンクメモリに切換
える第2の切換手段の外に、第1と第2の切換え期間中
割込信号を禁止する手段を設け、バンクメモリの切換え
中に発生した割込信号を禁止している。割込信号禁止手
段は、割込信号を禁止し、バンクレジスタ書込信号を保
持するラッチ部と、これをクリアするデコーダとからな
る。
In order to prevent this, for example, Japanese Patent Laid-Open No. 61-61
The bank memory switching circuit disclosed in Japanese Patent Laid-Open No. -150048 is provided with a means for inhibiting an interrupt during a bank switching period, as shown in FIG. That is, this bank memory switching circuit includes first switching means for selecting and switching a bank memory for which switching has been requested, means for arranging a program stack area in the switched bank memory, and a switching destination bank after stack area allocation. In addition to the second switching means for switching to the memory, a means for inhibiting the interrupt signal during the first and second switching periods is provided to inhibit the interrupt signal generated during the switching of the bank memory. The interrupt signal prohibiting means includes a latch unit that prohibits the interrupt signal and holds the bank register write signal, and a decoder that clears the latch unit.

【0006】[0006]

【発明が解決しようとする課題】上述のように、従来の
バンクメモリ切換回路は、バンクメモリへのアクセス時
に管理プログラムを介するか、またはバンクメモリへの
アクセス中の割り込みを禁止するか、あるいは割り込み
処理中の任意のバンクメモリへのアクセスを禁止する必
要があるという問題点があった。
As described above, the conventional bank memory switching circuit prohibits an interrupt during the access to the bank memory via the management program or during the access to the bank memory, or interrupts. There is a problem that it is necessary to prohibit access to an arbitrary bank memory during processing.

【0007】本発明の目的は、上述の問題点を解消し、
管理プログラムの介在なしに各プログラムがバンクメモ
リに直接アクセスできるバンクメモリ切換回路を提供す
ることにある。
An object of the present invention is to solve the above-mentioned problems,
It is an object of the present invention to provide a bank memory switching circuit in which each program can directly access the bank memory without intervention of a management program.

【0008】[0008]

【課題を解決するための手段】本発明のバンクメモリ切
換回路は、バンク番号設定時には前回のバック番号が自
動的に保存され、新たに設定した番号のバンクメモリが
有効となり、解除時には保存されていた前回のバンク番
号が有効になる、すなわち、プッシュダウン・スタック
構造の設定バンク書込レジスタを有する。
In the bank memory switching circuit of the present invention, the previous back number is automatically saved when the bank number is set, the bank memory of the newly set number is valid, and is saved when it is released. The previous bank number becomes valid, that is, it has a set-bank write register having a pushdown stack structure.

【0009】また、設定バンク書込レジスタのスタック
段数は所要に応じて変更することができる。
Further, the number of stack stages of the set bank write register can be changed as required.

【0010】[0010]

【作用】設定バンク書込レジスタをプッシュダウン・ス
タック構造とすることにより、それぞれ1回のコマンド
でバンクメモリのバンク番号設定時には、前回のバック
番号が自動的に保存され、新に設定した番号のバンクメ
モリが有効となり、解除時には、保存されていた前回の
バンク番号が有効になる。
[Function] By setting the setting bank write register to the push-down stack structure, the previous back number is automatically saved when the bank number of the bank memory is set by one command each time, and the newly set number is stored. The bank memory becomes valid, and at the time of cancellation, the previously saved bank number becomes valid.

【0011】[0011]

【実施例】次に、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will now be described with reference to the drawings.

【0012】図1は本発明の1実施例のバンクメモリ切
換回路10のブロック図、図2は図1の実施例の動作例
を示す図である。
FIG. 1 is a block diagram of a bank memory switching circuit 10 according to one embodiment of the present invention, and FIG. 2 is a diagram showing an operation example of the embodiment of FIG.

【0013】本実施例のバンクメモリ切換回路10は、
各1回のコマンドにより、プッシュダウンおよびポップ
アップ方式で使用バンクの設定および解除ができるプッ
シュダウンスタック構造の設定バンク書込みレジスタ1
1と、設定バンク書込みレジスタ11により設定された
バンクメモリを接続または解除する従来と同様なバンク
メモリ接続部12とを有する。
The bank memory switching circuit 10 of this embodiment is
Setting bank write register 1 with push-down stack structure that can set and release used banks by push-down and pop-up methods with one command each
1 and a bank memory connection unit 12 similar to the conventional one which connects or disconnects the bank memory set by the setting bank write register 11.

【0014】次に、このメモリ切換回路10の動作例に
ついて説明する。
Next, an operation example of the memory switching circuit 10 will be described.

【0015】図2は、各プログラムが使用可能なバンク
メモリが予め決められている場合の例で、プログラム1
がバンクメモリAにアクセスして、設定バンク書込みレ
ジスタ11にバンク番号Aを設定して動作中に、ハード
ウェア割込みにより割込みプログラム2が開始される
と、プログラム1のバンク番号Aが自動的に保存される
とともに、割込みプログラム2の使用するバンク番号B
が設定される。
FIG. 2 shows an example in which a bank memory that can be used by each program is predetermined.
Accesses the bank memory A, sets the bank number A in the set bank write register 11, and when the interrupt program 2 is started by a hardware interrupt during operation, the bank number A of the program 1 is automatically saved. Bank number B used by interrupt program 2
Is set.

【0016】設定するスタックの深さに応じて図のよう
にn段の多重割り込みも可能であり、また、連続したプ
ログラム中でバンク番号を入れ子で設定することもでき
る。すなわち、割込みプログラム2の動作中にさらに次
のプログラム3が開始されると、前と同様に、割り込み
プログラム2のバンク番号Bがバンク番号Aの上に自動
的に保存されるとともに、次のプログラム3の使用する
バンク番号Cが新に設定される。
Multiple interrupts of n stages are possible according to the stack depth to be set, and bank numbers can be set by nesting in a continuous program. That is, when the next program 3 is further started during the operation of the interrupt program 2, the bank number B of the interrupt program 2 is automatically saved on the bank number A, and the next program 3 is started. The bank number C used by No. 3 is newly set.

【0017】バンク番号を設定してバンクメモリを使用
した各割込みプログラムが終了し、その時に有効となっ
ているバンク番号を解除すると、前回のバンク番号が有
効となり、復帰後は前のプログラムが以前の動作を継続
することができる。
When a bank number is set and each interrupt program that uses the bank memory ends, and the bank number that is valid at that time is released, the previous bank number becomes valid, and after restoration, the previous program remains the same. The operation of can be continued.

【0018】[0018]

【発明の効果】上述のように本発明は、設定バンク書込
レジスタをプッシュダウン・スタック構造とすることに
より、各プログラムが管理プログラムの介在なしに容易
な手順により直接にバンクメモリに高速にアクセスでき
る効果がある。
As described above, according to the present invention, since the setting bank write register has the push-down stack structure, each program can directly access the bank memory at high speed by an easy procedure without the intervention of the management program. There is an effect that can be done.

【0019】また、設定バンク書込レジスタのスタック
段数を変更可能とすることにより、バンク番号を入れ子
で設定して多重割込みを実施できる効果がある。
Further, by making the number of stack stages of the set bank write register changeable, there is an effect that a bank number can be nested and a multiple interrupt can be implemented.

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

【図1】本発明のバンクメモリ切換回路の1実施例のブ
ロック図である。
FIG. 1 is a block diagram of an embodiment of a bank memory switching circuit of the present invention.

【図2】図1の実施例の動作例を示す図である。FIG. 2 is a diagram showing an operation example of the embodiment of FIG.

【図3】従来のバンクメモリ切換回路の1例のブロック
図である。
FIG. 3 is a block diagram of an example of a conventional bank memory switching circuit.

【図4】従来のバンクメモリ切換回路の他の例のブロッ
ク図である。
FIG. 4 is a block diagram of another example of a conventional bank memory switching circuit.

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

1 マイクロプロセッサ 2 メインメモリ 3〜5 バンクメモリ 6 バンクレジスタ 10 メモリ切換回路 11 設定バンク書込みレジスタ 12 バンクメモリ接続部 1 Microprocessor 2 Main memory 3-5 Bank memory 6 Bank register 10 Memory switching circuit 11 Setting bank write register 12 Bank memory connection part

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 それぞれにバンク番号が設定され、設定
バンク書込レジスタによって切換えて共通のアドレス空
間が割り当てられる複数のバンクメモリと、ハードウェ
ア割込み機能とを有するコンピュータシステムのバンク
メモリ切換回路において、 設定バンク書込レジスタが、各バンク番号の設定時には
前回のバンク番号を保存して新たに設定された番号のバ
ンクメモリを有効とし、各バンク番号の解除時には保存
していた前回のバンク番号を有効とする、すなわち、プ
ッシュダウン・スタック構造を有することを特徴とする
バンクメモリ切換回路。
1. A bank memory switching circuit of a computer system having a plurality of bank memories each of which has a bank number set therein and which is switched by a set bank write register to be assigned a common address space, and a hardware interrupt function. The setting bank write register saves the previous bank number when setting each bank number and validates the newly set bank memory, and saves the previous bank number when releasing each bank number. That is, that is, a bank memory switching circuit having a pushdown stack structure.
【請求項2】 設定バンク書込レジスタのスタック段数
が所要に応じて変更可能である請求項1に記載のバンク
メモリ切換回路。
2. The bank memory switching circuit according to claim 1, wherein the number of stack stages of the set bank write register can be changed as required.
JP14467795A 1995-06-12 1995-06-12 Bank memory switching circuit Pending JPH08339328A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14467795A JPH08339328A (en) 1995-06-12 1995-06-12 Bank memory switching circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14467795A JPH08339328A (en) 1995-06-12 1995-06-12 Bank memory switching circuit

Publications (1)

Publication Number Publication Date
JPH08339328A true JPH08339328A (en) 1996-12-24

Family

ID=15367690

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14467795A Pending JPH08339328A (en) 1995-06-12 1995-06-12 Bank memory switching circuit

Country Status (1)

Country Link
JP (1) JPH08339328A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002215460A (en) * 2001-01-15 2002-08-02 Hitachi Kokusai Electric Inc Information terminal

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58158004A (en) * 1982-03-16 1983-09-20 Matsushita Electric Ind Co Ltd Amplifier circuit for recording sound

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58158004A (en) * 1982-03-16 1983-09-20 Matsushita Electric Ind Co Ltd Amplifier circuit for recording sound

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002215460A (en) * 2001-01-15 2002-08-02 Hitachi Kokusai Electric Inc Information terminal

Similar Documents

Publication Publication Date Title
JPH06309224A (en) Method for data page control and data processing system
JP2826028B2 (en) Distributed memory processor system
EP0533427B1 (en) Computer memory control system
JPH08339328A (en) Bank memory switching circuit
JPH05197619A (en) Memory control circuit for multi-cpu
EP0285309A2 (en) Memory protection apparatus for use in an electronic calculator
US6421825B2 (en) Register control apparatus and method thereof for allocating memory based on a count value
JP2941583B2 (en) Data processing device
US5933856A (en) System and method for processing of memory data and communication system comprising such system
JPS615348A (en) Information processor
Mendelson et al. The SDS SIGMA 7: a real-time time-sharing computer
KR0164769B1 (en) System program execution method
JPH0773094A (en) Memory initialization controller
JPH07105004A (en) Local variable access device
JPS6345669A (en) Multi-processor system
JPH036644A (en) Storage protection system
JPH0477930A (en) Microcomputer
JPS6269321A (en) Process switching system
JPH1055308A (en) Cache memory
JPH01140255A (en) Memory protecting method
JPH04305745A (en) Register file system
JPH0236012B2 (en)
JPS6198467A (en) Register arrangement
JPS6321157A (en) Printer controller
JPS6297047A (en) Input and output controller