JPH05134921A - Memory space expanding system - Google Patents

Memory space expanding system

Info

Publication number
JPH05134921A
JPH05134921A JP3324099A JP32409991A JPH05134921A JP H05134921 A JPH05134921 A JP H05134921A JP 3324099 A JP3324099 A JP 3324099A JP 32409991 A JP32409991 A JP 32409991A JP H05134921 A JPH05134921 A JP H05134921A
Authority
JP
Japan
Prior art keywords
memory
instruction
microprocessor
data
memory bank
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
JP3324099A
Other languages
Japanese (ja)
Inventor
Hiroshi Sakakibara
浩 榊原
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 JP3324099A priority Critical patent/JPH05134921A/en
Publication of JPH05134921A publication Critical patent/JPH05134921A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a memory space expanding system which can expand a memory space without requiring the control carried out by the software of a microprocessor. CONSTITUTION:The status signal 5 of a microprocessor 1 is decoded by a decoder 2 and an instruction memory selection signal 6 and a data memory selection signal 7 are produced. Then the spaces of an instruction memory 3 and a data memory 4 are generated in the same size as the address space of the microprocessor 1.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、マイクロプロセッサと
メモリで構成されるシステムに係り、特にメモリ空間の
拡張方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a system composed of a microprocessor and a memory, and more particularly to a system for expanding a memory space.

【0002】[0002]

【従来の技術】従来のメモリ空間の拡張方式を図面を参
照して説明する。図4は従来の技術を説明するブロック
図である。マイクロプロセッサ1のデータバス9はメモ
リバンク切り替えレジスタ22に接続され、アドレスバ
ス8はアドレスデコーダ24に接続される。アドレスデ
コーダ24から出力されるレジスタ選択信号25はメモ
リバンク切り替えレジスタ22に接続される。メモリバ
ンク切り替えレジスタ22の出力であるメモリバンク選
択信号26はメモリバンク23を構成する各メモリのチ
ップセレクトに接続する。
2. Description of the Related Art A conventional memory space expansion method will be described with reference to the drawings. FIG. 4 is a block diagram illustrating a conventional technique. The data bus 9 of the microprocessor 1 is connected to the memory bank switching register 22, and the address bus 8 is connected to the address decoder 24. The register selection signal 25 output from the address decoder 24 is connected to the memory bank switching register 22. The memory bank selection signal 26 output from the memory bank switching register 22 is connected to the chip select of each memory constituting the memory bank 23.

【0003】次に動作について説明する。マイクロプロ
セッサ1はI/O命令の実行によりアドレスバス8にメ
モリバンク切り替えレジスタ22を選択するアドレスを
出力し、アドレスデコーダ24はアドレスデコードによ
りメモリバンク切り替えレジスタ22を選択するレジス
タ選択信号25を出力する。続いてマイクロプロセッサ
1はデータバス9にメモリバンク23のうちどれを選択
するかの情報をのせ、その情報をメモリバンク切り替え
レジスタ22に書き込む。メモリバンク切り替えレジス
タ22は書き込まれた情報に従いメモリバンク選択信号
26を活性化することにより、選択されたメモリバンク
23を活性化する。
Next, the operation will be described. The microprocessor 1 outputs an address for selecting the memory bank switching register 22 to the address bus 8 by executing the I / O instruction, and the address decoder 24 outputs a register selection signal 25 for selecting the memory bank switching register 22 by address decoding. .. Subsequently, the microprocessor 1 puts information on which one of the memory banks 23 is selected on the data bus 9 and writes the information in the memory bank switching register 22. The memory bank switching register 22 activates the selected memory bank 23 by activating the memory bank selection signal 26 according to the written information.

【0004】以上示した手順によりメモリバンクの選択
が完了し、以降のマイクロプロセッサ1のメモリアクセ
スは、活性化されたメモリバンク23に対して固定的に
行われる。このように、それぞれのバンクをマイクロプ
ロセッサのアドレス空間に重複してマッピングすること
によりメモリ空間が拡張される。
The memory bank selection is completed by the procedure described above, and the subsequent memory access of the microprocessor 1 is fixedly performed to the activated memory bank 23. In this way, the memory space is expanded by overlappingly mapping each bank in the address space of the microprocessor.

【0005】[0005]

【発明が解決しようとする課題】上述した如く、メモリ
バンクによる従来のメモリ空間の拡張方式では、メモリ
空間を拡張する際、マイクロプロセッサ1で実行される
ソフトウェアがメモリバンク23の制御を行わねばなら
ないという問題点があった。
As described above, in the conventional memory space expansion method using the memory bank, the software executed by the microprocessor 1 must control the memory bank 23 when the memory space is expanded. There was a problem.

【0006】本発明は、上述した点に鑑みてなされたも
ので、マイクロプロセッサのソフトウェアによる制御な
しでメモリ空間を拡張することができるメモリ空間の拡
張方式を提供することを目的する。
The present invention has been made in view of the above points, and an object of the present invention is to provide a memory space expansion system capable of expanding a memory space without control by software of a microprocessor.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に、本発明に係るメモリ空間の拡張方式は、マイクロプ
ロセッサのステータス信号により、マイクロプロセッサ
のメモリ制御信号から命令メモリ制御信号とデータメモ
リ制御信号とを生成し、その命令メモリ制御信号とデー
タメモリ制御信号により命令メモリとデータメモリを個
別に制御する。
In order to achieve the above object, the memory space expansion method according to the present invention is based on a status signal of a microprocessor, from a memory control signal of the microprocessor to an instruction memory control signal and a data memory control. Signal is generated, and the instruction memory and the data memory are individually controlled by the instruction memory control signal and the data memory control signal.

【0008】[0008]

【作用】本発明においては、マイクロプロセッサのステ
ータス信号により、マイクロプロセッサのメモリ制御信
号から命令メモリ制御信号とデータメモリ制御信号とを
生成し、その命令メモリ制御信号とデータメモリ制御信
号により命令メモリとデータメモリを個別に制御するこ
とにより、マイクロプロセッサのアドレス空間と同一の
大きさをもつ命令メモリ空間とデータメモリ空間を生成
する。
According to the present invention, an instruction memory control signal and a data memory control signal are generated from a memory control signal of the microprocessor according to a status signal of the microprocessor, and an instruction memory is generated by the instruction memory control signal and the data memory control signal. By controlling the data memory individually, an instruction memory space and a data memory space having the same size as the address space of the microprocessor are generated.

【0009】[0009]

【実施例】【Example】

実施例1 次に本発明について図面を参照して説明する。図1は本
発明の一実施例のブロック図である。マイクロプロセッ
サ1の命令アクセスとデータアクセスの情報を含むステ
ータス信号5がデコーダ2に入力される。デコーダ2の
出力である命令メモリ選択信号6は命令メモリ3のチッ
プセレクトに、また、データメモリ選択信号7はデータ
メモリ4のチップセレクトに接続される。
Embodiment 1 Next, the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of an embodiment of the present invention. A status signal 5 including instruction access and data access information of the microprocessor 1 is input to the decoder 2. The instruction memory selection signal 6 output from the decoder 2 is connected to the chip select of the instruction memory 3, and the data memory selection signal 7 is connected to the chip select of the data memory 4.

【0010】次に動作について説明する。マイクロプロ
セッサ1のバスサイクルが起動されると同時にステータ
ス信号5からバスサイクルが命令フェッチサイクルかデ
ータアクセスサイクルかの情報が出力され、デコーダ2
に入力される。バスサイクルが命令フェッチサイクルで
あった場合、デコーダ2は、命令メモリ選択信号6を活
性化し命令メモリ3を活性化する。引き続きマイクロプ
ロセッサ1は命令メモリ3から命令をフェッチする。他
方、バスサイクルがデータアクセスサイクルであった場
合、デコーダ2は、データメモリ選択信号7を活性化し
データメモリ4を活性化する。引き続きマイクロプロセ
ッサ1はデータメモリ4に対しデータアクセスを行う。
Next, the operation will be described. At the same time that the bus cycle of the microprocessor 1 is activated, the status signal 5 outputs information indicating whether the bus cycle is an instruction fetch cycle or a data access cycle.
Entered in. When the bus cycle is the instruction fetch cycle, the decoder 2 activates the instruction memory selection signal 6 and activates the instruction memory 3. Subsequently, the microprocessor 1 fetches an instruction from the instruction memory 3. On the other hand, when the bus cycle is the data access cycle, the decoder 2 activates the data memory selection signal 7 and activates the data memory 4. Subsequently, the microprocessor 1 makes a data access to the data memory 4.

【0011】この結果、命令メモリ3とデータメモリ4
がマイクロプロセッサ1のアドレス空間に重複してマッ
ピングされるため、命令メモリ3とデータメモリ4をあ
わせて、メモリ空間がマイクロプロセッサ1のアドレス
空間の2倍に拡張される。
As a result, the instruction memory 3 and the data memory 4
Are redundantly mapped in the address space of the microprocessor 1, so that the memory space including the instruction memory 3 and the data memory 4 is doubled to the address space of the microprocessor 1.

【0012】実施例2 また、図2は本発明の他の実施例を示すブロック図であ
る。マイクロプロセッサ1の命令アクセスとデータアク
セスの情報を含むステータス信号5とアドレス8がデコ
ーダ10に入力される。デコーダ10の出力であるメモ
リバンク選択信号11は各メモリバンク12のチップセ
レクトに接続される。
Embodiment 2 FIG. 2 is a block diagram showing another embodiment of the present invention. The status signal 5 and the address 8 including the instruction access and data access information of the microprocessor 1 are input to the decoder 10. The memory bank selection signal 11 output from the decoder 10 is connected to the chip select of each memory bank 12.

【0013】次に動作について説明する。マイクロプロ
セッサ1のバスサイクルが起動されると同時にステータ
ス信号5からバスサイクルが命令フェッチサイクルかデ
ータアクセスサイクルかの情報が出力されるとともにア
ドレス情報が出力され、デコーダ10に入力される。デ
コーダ10はそれらの情報をもとにいずれかのメモリバ
ンク12を選択し、引き続きマイクロプロセッサ1は選
択されたメモリバンク12に対して、命令フェッチまた
はデータアクセスを行う。この場合、同一メモリバンク
12に命令メモリ領域とデータメモリを持つことがで
き、この場合、命令メモリをRAM化できる点で実施例
1に勝っている(以下に実現方法を補足として示す)。
Next, the operation will be described. At the same time that the bus cycle of the microprocessor 1 is activated, the status signal 5 outputs information indicating whether the bus cycle is an instruction fetch cycle or a data access cycle and address information is output to the decoder 10. The decoder 10 selects one of the memory banks 12 on the basis of the information, and the microprocessor 1 subsequently performs instruction fetch or data access to the selected memory bank 12. In this case, the same memory bank 12 can have an instruction memory area and a data memory, and in this case, it is superior to the first embodiment in that the instruction memory can be a RAM (the method of implementation will be shown as a supplement below).

【0014】図3に命令メモリをRAM化したシステム
のブロック図を示す。メモリバンクはメモリバンクα2
1とメモリバンクβ20により構成され、それぞれのメ
モリバンクはROM13とRAM27により構成され
る。ROM13に内蔵されたブートローダの命令転送プ
ログラムの命令領域14をメモリバンクβ20に、デー
タ領域15をメモリバンクα21に配置し、データ転送
プログラムの命令領域15をメモリバンクα21に、デ
ータ領域16をメモリバンクβ20に配置する。
FIG. 3 shows a block diagram of a system in which the instruction memory is a RAM. Memory bank is memory bank α2
1 and a memory bank β20, and each memory bank includes a ROM 13 and a RAM 27. The instruction area 14 of the instruction transfer program of the boot loader built into the ROM 13 is arranged in the memory bank β20, the data area 15 is arranged in the memory bank α21, the instruction area 15 of the data transfer program is arranged in the memory bank α21, and the data area 16 is arranged in the memory bank α21. Place at β20.

【0015】次に動作について説明する。マイクロプロ
セッサのリセット後、まずメモリバンクβ20上の命令
転送命令により2次記憶からメモリバンクα21の命令
領域19に命令をロードし、つぎにメモリバンクの属性
(命令/データ)を切り替え、メモリバンクα21上の
データ転送命令により2次記憶からメモリバンクβ20
のデータ領域18にデータを転送する。この様な手法を
とることにより命令メモリもRAM化できる。
Next, the operation will be described. After resetting the microprocessor, first, an instruction is transferred from the secondary storage to the instruction area 19 of the memory bank α21 by an instruction transfer instruction on the memory bank β20, and then the attribute (instruction / data) of the memory bank is switched to the memory bank α21 From the secondary storage to the memory bank β20 by the above data transfer instruction.
The data is transferred to the data area 18 of. By using such a method, the instruction memory can also be made into RAM.

【0016】[0016]

【発明の効果】以上説明したように、本発明は、マイク
ロプロセッサのステータス信号に基づき命令メモリとデ
ータメモリを個別に制御することにより、メモリ空間を
マイクロプロセッサのアドレス空間の2倍の大きさまで
ソフトウェアによる制御なしに拡張できるという効果を
奏する。
As described above, according to the present invention, by individually controlling the instruction memory and the data memory based on the status signal of the microprocessor, the memory space can be software up to twice the size of the address space of the microprocessor. The effect is that it can be expanded without control by.

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

【図1】本発明の実施例1のブロック図である。FIG. 1 is a block diagram of a first embodiment of the present invention.

【図2】本発明の実施例2のブロック図である。FIG. 2 is a block diagram of a second embodiment of the present invention.

【図3】実施例2の捕捉説明のブロック図である。FIG. 3 is a block diagram of capturing explanation of the second embodiment.

【図4】従来例のブロック図である。FIG. 4 is a block diagram of a conventional example.

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

1 マイクロプロセッサ 2 デコーダ 3 命令メモリ 4 データ・メモリ 5 ステータス信号 6 命令メモリ選択信号 7 データ・メモリ選択信号 8 アドレス・バス 9 データ・バス 10 デコーダ 11 メモリ・バンク選択信号 12 メモリ・バンク 13 ROM 14 命令転送プログラムの命令領域 15 命令転送プログラムのデータ領域 16 データ転送プログラムのデータ領域 17 データ転送プログラムの命令領域 18 データ領域 19 命令領域 20 メモリ・バンクβ 21 メモリ・バンクα 22 メモリ・バンク切り替えレジスタ 23 メモリ・バンク 24 アドレス・デコーダ 25 レジスタ選択信号 26 メモリ・バンク選択信号 27 RAM 1 Microprocessor 2 Decoder 3 Instruction Memory 4 Data Memory 5 Status Signal 6 Instruction Memory Selection Signal 7 Data Memory Selection Signal 8 Address Bus 9 Data Bus 10 Decoder 11 Memory Bank Selection Signal 12 Memory Bank 13 ROM 14 Instruction Instruction area of transfer program 15 Data area of instruction transfer program 16 Data area of data transfer program 17 Instruction area of data transfer program 18 Data area 19 Instruction area 20 Memory bank β 21 Memory bank α 22 Memory bank switching register 23 Memory・ Bank 24 Address decoder 25 Register selection signal 26 Memory bank selection signal 27 RAM

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 マイクロプロセッサのステータス信号に
より、マイクロプロセッサのメモリ制御信号から命令メ
モリ制御信号とデータメモリ制御信号とを生成し、その
命令メモリ制御信号とデータメモリ制御信号により命令
メモリとデータメモリを個別に制御し、マイクロプロセ
ッサのアドレス空間と同一の大きさをもつ命令メモリ空
間とデータメモリ空間を生成することを特徴とするメモ
リ空間の拡張方式。
1. A status signal of the microprocessor generates an instruction memory control signal and a data memory control signal from the memory control signal of the microprocessor, and the instruction memory control signal and the data memory control signal generate the instruction memory and the data memory. A memory space expansion method characterized by generating individually an instruction memory space and a data memory space having the same size as the address space of a microprocessor.
JP3324099A 1991-11-13 1991-11-13 Memory space expanding system Pending JPH05134921A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3324099A JPH05134921A (en) 1991-11-13 1991-11-13 Memory space expanding system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3324099A JPH05134921A (en) 1991-11-13 1991-11-13 Memory space expanding system

Publications (1)

Publication Number Publication Date
JPH05134921A true JPH05134921A (en) 1993-06-01

Family

ID=18162151

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3324099A Pending JPH05134921A (en) 1991-11-13 1991-11-13 Memory space expanding system

Country Status (1)

Country Link
JP (1) JPH05134921A (en)

Similar Documents

Publication Publication Date Title
JPH03201031A (en) Information processor
JPH05134921A (en) Memory space expanding system
JPH0713869A (en) Data processing system with dynamic address converting function
JPH0612253A (en) Microcomputer
JPS60204046A (en) Memory extension circuit
JPH0535472A (en) Microcomputer
JP2982129B2 (en) Micro program controller
JPH0512107A (en) Program execution system
JP3088956B2 (en) Arithmetic unit
JP2000029508A (en) Programmable controller
JPH01269140A (en) Memory extending circuit
JP2985244B2 (en) Information processing device
JPH0830466A (en) Multitask switching control method
JPH0221331A (en) Program control system for microcomputer
JPS60215247A (en) Arithmetic processor
JPS62297954A (en) Memory control system
JPH0364903B2 (en)
JPS60129837A (en) Signal processing operation processor
JPH05189015A (en) Programmable controller
JPH04280333A (en) Address extension system
JPH05127979A (en) Memory address space extending device
JPS62147545A (en) Processing system for transfer instruction of information processor
JPH02148221A (en) Microcontroller
JPH02249028A (en) Micro program controller
JP2003006043A (en) Compatible processing circuit and data processor

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20040618