JPH04280333A - Address extension system - Google Patents

Address extension system

Info

Publication number
JPH04280333A
JPH04280333A JP4328091A JP4328091A JPH04280333A JP H04280333 A JPH04280333 A JP H04280333A JP 4328091 A JP4328091 A JP 4328091A JP 4328091 A JP4328091 A JP 4328091A JP H04280333 A JPH04280333 A JP H04280333A
Authority
JP
Japan
Prior art keywords
address
space
register
microprocessor
address extension
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.)
Withdrawn
Application number
JP4328091A
Other languages
Japanese (ja)
Inventor
Kiminari Ogura
仁成 小椋
Kenichi Abo
憲一 阿保
Wataru Kikuchi
亘 菊池
Tatsuya Yamaguchi
達也 山口
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP4328091A priority Critical patent/JPH04280333A/en
Publication of JPH04280333A publication Critical patent/JPH04280333A/en
Withdrawn legal-status Critical Current

Links

Abstract

PURPOSE:To realize the extension of an address without adding hardware and to branch it into desired addresses on the address extension system of a microprocessor having a limited and peculiar address designation signal line. CONSTITUTION:The rewrite instructions 22 and 23 of an address extension register 12 are arranged in the fixed areas 20 and 21 of basic space 16 and extended space 17 in a memory 15.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、限られた固有のアドレ
ス指定信号線を有するマイクロプロセッサのアドレス拡
張方式に関する。近年、コンピュータシステムの巨大化
に伴い、プロセッサのアドレス空間の拡張がなされてい
るが、従来の、プロセッサを1チップに収めたマイクロ
プロセッサでは、元々持っていたアドレス線が指定可能
なアドレス空間を越えてメモリを拡張増設することは出
来なかった。
BACKGROUND OF THE INVENTION 1. Field of the Invention This invention relates to address extension schemes for microprocessors having a limited number of unique addressing signal lines. In recent years, as computer systems have become larger, the address space of processors has expanded, but in conventional microprocessors that house processors on a single chip, the address lines they originally had exceeded the address space that could be specified. It was not possible to expand the memory.

【0002】このため、マイクロプロセッサ内にアドレ
ス拡張用レジスタを設け、そのレジスタ値をそのまま外
部ピンに出力するように構成をとってアドレスを拡張す
る方式が採られてきた。
[0002] For this reason, a method has been adopted in which an address extension register is provided in a microprocessor and the register value is output as is to an external pin to extend the address.

【0003】0003

【従来の技術】従来のアドレス拡張方式としては、例え
ば、図6に示すようなものがある。図6において、1は
マイクロプロセッサであり、マイクロプロセッサ1内に
はプログラムカウンタ2が設けられ、プログラムカウン
タ2はメモリ3の基本空間4または拡張空間5のアドレ
スの指定を行う。
2. Description of the Related Art As a conventional address extension method, there is one shown in FIG. 6, for example. In FIG. 6, 1 is a microprocessor, and a program counter 2 is provided in the microprocessor 1, and the program counter 2 specifies the address of the basic space 4 or the extended space 5 of the memory 3.

【0004】6はマイクロプロセッサ1内に設けられた
アドレス拡張用レジスタであり、アドレス拡張用レジス
タ6に“0”をセットすると、インバータ7の出力は“
1”、ナンド回路8の出力は“0”となり、基本空間4
が選択され、アドレス拡張用レジスタ6に“1”をセッ
トすると、ナンド回路9の出力は“0”となり、拡張空
間5に切り換えられる。
Reference numeral 6 denotes an address extension register provided in the microprocessor 1. When the address extension register 6 is set to "0", the output of the inverter 7 becomes "0".
1”, the output of the NAND circuit 8 becomes “0”, and the basic space 4
is selected and "1" is set in the address expansion register 6, the output of the NAND circuit 9 becomes "0" and the expansion space 5 is switched.

【0005】しかしながら、このようなアドレス拡張方
式では、任意のアドレス上でアドレス拡張用レジスタ6
の値を変更すると、その瞬間に空間が切り換わってしま
うため、空間上で期待していないアドレスに分岐してし
まうという欠点があった。これを解決するために、メモ
リ空間の一部を共有メモリ部として使用して、アドレス
の切り換えを行う方式が提案されている(特開昭59−
60663号、参照)。
However, in such an address extension method, the address extension register 6 is
When the value of is changed, the space changes at that moment, which has the drawback of branching to an unexpected address in the space. In order to solve this problem, a method has been proposed in which a part of the memory space is used as a shared memory section and the addresses are switched (Japanese Patent Laid-Open No. 59-1989-1).
No. 60663, reference).

【0006】すなわち、このアドレス拡張方式は、限ら
れた固有の数のアドレスしか送出すことのできないマイ
クロ・プロセッサと、該アドレスの一部を重複して付与
した異なるメモリ装置と、上記メモリ装置の何れか1個
のみを動作させるための指定情報を設定するレジスタと
を具備し、上記レジスタに動作させるメモリ装置を指定
する情報を予め設定し、上記重複したアドレスが上記マ
イクロ・プロセッサにより送出されたとき、上記レジス
タに設定された指定情報によって指定された1個のメモ
リ装置のみが動作するようにしたものである。
In other words, this address extension method uses a microprocessor that can only send out a limited number of unique addresses, a different memory device to which some of the addresses are assigned redundantly, and a microprocessor that can send out only a limited number of unique addresses. a register for setting designation information for operating only one of the memory devices, information for designating the memory device to be operated is set in advance in the register, and the duplicate address is sent by the microprocessor. At this time, only one memory device designated by the designation information set in the register is operated.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、このア
ドレス拡張方式にあっては、共有メモリ部を設けるよう
にしているため、マイクロプロセッサ外部で共有アドレ
スを制御するハードウェアが必要となり、コストが上昇
するという問題点があった。本発明は、このような従来
の問題点に鑑みてなされたものであって、ハードウェア
の追加なしでアドレス拡張を実現することができ、かつ
、希望するアドレスに分岐することができるアドレス拡
張方式を提供することを目的としている。
[Problem to be Solved by the Invention] However, in this address extension method, since a shared memory section is provided, hardware for controlling the shared address is required outside the microprocessor, which increases costs. There was a problem. The present invention has been made in view of these conventional problems, and is an address extension method that can realize address extension without adding hardware and can branch to a desired address. is intended to provide.

【0008】[0008]

【課題を解決するための手段】図1は本発明の原理説明
図である。図1において、12は限られた固有のアドレ
ス指定信号線を有するマイクロプロセッサ11内に設け
られ、その値を変えることでメモリ15の基本空間16
と拡張空間17を切り換えて、アドレス空間を拡張する
アドレス拡張用レジスタ、22,23は前記各空間16
,17の固定領域20,21に配置される、前記アドレ
ス拡張用レジスタ12の書き換え命令である。
[Means for Solving the Problems] FIG. 1 is a diagram illustrating the principle of the present invention. In FIG. 1, reference numeral 12 is provided within the microprocessor 11 having a limited number of unique addressing signal lines, whose values can be changed to address the basic space 16 of the memory 15.
Address expansion registers 22 and 23 are used to expand the address space by switching between the expansion space 17 and the expansion space 17.
, 17 is a rewriting instruction for the address extension register 12 arranged in the fixed areas 20, 21 of .

【0009】[0009]

【作用】メモリの基本空間および拡張空間のそれぞれに
固定領域を設け、固定領域には、アドレス拡張用レジス
タの値を書き換える書き換え命令を配置し、アドレス拡
張用レジスタの値の書き換えにより、書き換え命令を実
行し、アドレス空間を切り換える。
[Operation] A fixed area is provided in each of the basic space and expansion space of the memory, and a rewrite instruction that rewrites the value of the address expansion register is placed in the fixed area. Execute and switch address spaces.

【0010】切り換えられた空間では分岐命令を実行す
ることにより、希望するアドレスに分岐する。このよう
に、ハードウェアの追加なしで、アドレス空間を拡張す
ることができ、かつ、希望するアドレスに分岐すること
ができる。
In the switched space, a branch instruction is executed to branch to a desired address. In this way, it is possible to expand the address space and branch to a desired address without adding any hardware.

【0011】[0011]

【実施例】以下、本発明の実施例を図面に基づいて説明
する。図2および図3は本発明の一実施例を示す図であ
る。図2において、11はマイクロプロセッサであり、
マイクロプロセッサ11内にはアドレス拡張用レジスタ
12が設けられている。
Embodiments Hereinafter, embodiments of the present invention will be explained based on the drawings. 2 and 3 are diagrams showing an embodiment of the present invention. In FIG. 2, 11 is a microprocessor;
An address extension register 12 is provided within the microprocessor 11 .

【0012】マイクロプロセッサ11の限られた固有の
アドレス線数は16本であり、また、アドレス拡張用レ
ジスタ12は1ビットであり、最上位の1ビットが空間
を切り換える。13はマイクロプロセッサ11のチップ
セレクト信号(CS)とアドレス拡張用レジスタ12の
出力がインバータ14を介して入力するナンド回路であ
り、ナンド回路13の“0”出力により、メモリ15の
基本空間16が選択される。
The limited number of unique address lines of the microprocessor 11 is 16, and the address extension register 12 has 1 bit, and the most significant 1 bit switches the space. 13 is a NAND circuit into which the chip select signal (CS) of the microprocessor 11 and the output of the address expansion register 12 are inputted via the inverter 14; the "0" output of the NAND circuit 13 causes the basic space 16 of the memory 15 to be selected.

【0013】18はマイクロプロセッサ11のチップセ
レクト信号(CS)とアドレス拡張用レジスタ12の出
力が入力するナンド回路であり、ナンド回路18の“0
”出力によりメモリ14の拡張空間17に切り換えられ
る。19はマイクロプロセッサ11内に設けられたプロ
グラムカウンタであり、プログラムカウンタ19は、基
本空間16または拡張空間17のアドレスの設定を行う
18 is a NAND circuit to which the chip select signal (CS) of the microprocessor 11 and the output of the address extension register 12 are input;
``The output switches to the extended space 17 of the memory 14. 19 is a program counter provided in the microprocessor 11, and the program counter 19 sets the address of the basic space 16 or extended space 17.

【0014】基本空間16および拡張空間17には固定
領域20,21がそれぞれ設けられ、固定領域20,2
1内には、アドレス拡張用レジスタ12の書き換え命令
22,23がそれぞれ配置されている。次に、動作を説
明する。アドレス拡張レジスタ12に“0”をセットす
ると、ナンド回路13の出力が“0”となり、基本空間
16が選択される。
Fixed areas 20 and 21 are provided in the basic space 16 and the expanded space 17, respectively.
1, rewrite instructions 22 and 23 for the address extension register 12 are arranged, respectively. Next, the operation will be explained. When "0" is set in the address extension register 12, the output of the NAND circuit 13 becomes "0" and the basic space 16 is selected.

【0015】ここで、基本空間16にある一般のプログ
ラムから拡張空間17への切り換えを考える。図3にお
いて、アドレスADRS00でアドレスADRS01へ
の分岐命令を実行し、アドレスADRS01ではアドレ
ス拡張用レジスタ12に“1”を書き込む命令を実行す
る。
Now, consider switching from a general program in the basic space 16 to the extended space 17. In FIG. 3, a branch instruction to address ADRS01 is executed at address ADRS00, and an instruction to write "1" to address extension register 12 is executed at address ADRS01.

【0016】これにより、基本空間16から拡張空間1
7への切り換えが行われ、拡張空間17内のアドレスA
DRS11に制御が移行される。アドレスADRS11
に格納されているアドレスADRS10への分岐命令を
実行し、拡張空間17内でのプログラムを実行する。こ
こで、拡張空間17から基本空間16に戻るには、アド
レスADRS11+1に分岐し、アドレスADRS11
+1でアドレス拡張用レジスタ12に“0”を書き込む
命令を実行し、基本空間16のアドレスADRS01+
1に戻り、アドレスADRS01+1でアドレスADR
S00+1へ分岐する分岐命令を実行する。そして、ア
ドレスADRS00+1に戻る。
[0016] As a result, from the basic space 16 to the extended space 1
7 is performed, and the address A in the extended space 17 is
Control is transferred to DRS11. Address ADRS11
A branch instruction to the address ADRS10 stored in is executed, and the program in the extended space 17 is executed. Here, to return from the extended space 17 to the basic space 16, branch to address ADRS11+1, and
+1 executes the instruction to write “0” to the address extension register 12, and the address ADRS01+ of the basic space 16 is executed.
Return to 1 and set address ADR at address ADRS01+1
Execute a branch instruction to branch to S00+1. Then, it returns to address ADRS00+1.

【0017】このように、アドレスの書き換え命令(2
2),(23)を実行することにより、希望するアドレ
スに分岐することができ、ハードウェアの追加なしでア
ドレス拡張を実現することができる。次に、図4および
図5は本発明の他の実施例を示す。図4において、31
はアドレス拡張用レジスタ12の書き換えを監視する書
き換え監視部であり、書き換え監視部31は、Dフリッ
プフロップ32とイクスクルーシブオア回路33を有し
ている。
In this way, the address rewriting instruction (2
By executing steps 2) and (23), it is possible to branch to a desired address, and address expansion can be achieved without adding hardware. Next, FIGS. 4 and 5 show another embodiment of the present invention. In FIG. 4, 31
is a rewriting monitoring section that monitors rewriting of the address extension register 12, and the rewriting monitoring section 31 includes a D flip-flop 32 and an exclusive OR circuit 33.

【0018】34は次の1命令については空間を切り換
えない、前の空間とする空間切り換え部であり、空間切
り換え部34は、4つのアンド回路35〜38と、2つ
のノア回路39,40を有している。また、図5に示す
ように、基本空間16および拡張空間17内には、アド
レス拡張用レジスタ12の書き換え命令41,42がそ
れぞれ配置され、これらの書き換え命令41,42の次
のアドレスには分岐命令43,44がそれぞれ配置され
ている。
Reference numeral 34 denotes a space switching section that does not switch the space for the next one instruction, but selects the previous space.The space switching section 34 switches four AND circuits 35 to 38 and two NOR circuits 39 and 40. have. Further, as shown in FIG. 5, in the basic space 16 and the expansion space 17, rewrite instructions 41 and 42 for the address expansion register 12 are arranged, respectively, and a branch is executed at the address next to these rewrite instructions 41 and 42. Instructions 43 and 44 are arranged respectively.

【0019】アドレス拡張用レジスタ12に“1”をセ
ットしているときはアンド回路35の出力が“1”とな
り、拡張空間17が選択され、次のサイクルでは、アン
ド回路37の出力が“1”となり、基本空間16が選択
される。ここで、アドレス拡張用レジスタ12の値“1
”から“0”に変更すると、アンド回路38の出力が“
1”となり、基本空間16が選択され、空間の切り換え
は行われない。そして、次のサイクルではアンド回路3
6の出力が“1”となり、基本空間16から拡張空間1
7に空間の切り換えが行われる。
When "1" is set in the address extension register 12, the output of the AND circuit 35 becomes "1", the extension space 17 is selected, and in the next cycle, the output of the AND circuit 37 becomes "1". ”, and basic space 16 is selected. Here, the value of address extension register 12 is “1”.
” to “0”, the output of the AND circuit 38 becomes “
1", the basic space 16 is selected, and no space switching is performed. Then, in the next cycle, the AND circuit 3
The output of 6 becomes “1”, and from the basic space 16 to the extended space 1
At 7, the space is switched.

【0020】本実施例においては、わずかなハードウェ
アの追加のみで、希望するアドレスに分岐することがで
き、かつ、アドレス空間の拡張を実現することができる
In this embodiment, it is possible to branch to a desired address and expand the address space with only a small addition of hardware.

【0021】[0021]

【発明の効果】以上説明してきたように、本発明によれ
ば、ハードウェアの追加なしに、または、わずかなハー
ドウェアの追加のみで、アドレス空間を拡張することが
でき、かつ、希望するアドレスに分岐することができる
Effects of the Invention As described above, according to the present invention, it is possible to expand the address space without adding any hardware or with only a small amount of hardware, and to obtain a desired address. can be branched into.

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

【図1】本発明の原理説明図[Fig. 1] Diagram explaining the principle of the present invention

【図2】本発明の一実施例を示す図[Fig. 2] A diagram showing an embodiment of the present invention.

【図3】アドレス空間の説明図[Figure 3] Explanatory diagram of address space

【図4】本発明の他の実施例を示す図FIG. 4 is a diagram showing another embodiment of the present invention.

【図5】アドレス空間の説明図[Figure 5] Explanatory diagram of address space

【図6】従来例を示す図[Figure 6] Diagram showing a conventional example

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

11:マイクロプロセッサ 12:アドレス拡張用レジスタ 13,18:ナンド回路 14:インバータ 15:メモリ 16:基本空間 17:拡張空間 19:プログラムカウンタ 20,21:固定領域 22,23:書き換え命令 31:書き換え監視部 32:Dフリップフロップ 33:イクスクルーシブオア回路 34:空間切り換え部 35〜38:アンド回路 39,40:ノア回路 41,42:書き換え命令 43,44:分岐命令 11: Microprocessor 12: Address extension register 13, 18: NAND circuit 14: Inverter 15: Memory 16: Basic space 17: Expansion space 19: Program counter 20, 21: Fixed area 22, 23: Rewrite instruction 31: Rewriting monitoring section 32: D flip-flop 33: Exclusive OR circuit 34: Space switching section 35-38: AND circuit 39, 40: Noah circuit 41, 42: Rewrite instruction 43, 44: Branch instruction

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】限られた固有のアドレス指定信号線を有す
るマイクロプロセッサ(11)内に設けたアドレス拡張
用レジスタ(12)の値を変えることでメモリ(15)
の基本空間(16)と拡張空間(17)を切り換えて、
アドレス空間を拡張するアドレス拡張方式において、前
記各空間(16),(17)の固定領域(20),(2
1)に前記アドレス拡張用レジスタ(12)の書き換え
命令(22),(23)を配置することを特徴とするア
ドレス拡張方式。
[Claim 1] By changing the value of an address extension register (12) provided in a microprocessor (11) having a limited unique addressing signal line, a memory (15) can be used.
Switch between the basic space (16) and extended space (17),
In the address expansion method for expanding the address space, the fixed areas (20) and (2) of each of the spaces (16) and (17) are
1) An address extension method characterized in that instructions (22) and (23) for rewriting the address extension register (12) are placed in the address extension register (12).
【請求項2】限られた固有のアドレス指定信号線を有す
るマイクロプロセッサ(11)内に設けたアドレス拡張
用レジスタ(12)の値を変えることでメモリ(15)
の基本空間(16)と拡張空間(17)を切り換えて、
アドレス空間を拡張するアドレス拡張方式において、前
記各空間(16),(17)内に前記アドレス拡張用レ
ジスタ(12)の書き換え命令(41),(42)と、
該書き換え命令(41),(42)の直後に分岐命令(
43),(44)を配置するとともに、前記アドレス拡
張用レジスタ(12)の書き換えの変化を監視する書き
換え監視部(31)と、書き換えた次のサイクルでは空
間の切り換えを行わないようにした空間切り換え部(3
4)を設けることを特徴とするアドレス拡張方式。
[Claim 2] By changing the value of an address expansion register (12) provided in a microprocessor (11) having a limited unique addressing signal line, the memory (15)
Switch between the basic space (16) and extended space (17),
In an address expansion method for expanding an address space, instructions (41), (42) for rewriting the address expansion register (12) are provided in each of the spaces (16), (17);
A branch instruction (
43) and (44), a rewrite monitoring unit (31) that monitors changes in rewriting of the address extension register (12), and a space that prevents space switching in the next cycle after rewriting. Switching part (3
4) An address extension method characterized by providing the following.
JP4328091A 1991-03-08 1991-03-08 Address extension system Withdrawn JPH04280333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4328091A JPH04280333A (en) 1991-03-08 1991-03-08 Address extension system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4328091A JPH04280333A (en) 1991-03-08 1991-03-08 Address extension system

Publications (1)

Publication Number Publication Date
JPH04280333A true JPH04280333A (en) 1992-10-06

Family

ID=12659398

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4328091A Withdrawn JPH04280333A (en) 1991-03-08 1991-03-08 Address extension system

Country Status (1)

Country Link
JP (1) JPH04280333A (en)

Similar Documents

Publication Publication Date Title
US6141713A (en) Bus arbitrator with a hierarchical control structure
JPH0612863A (en) Dual port dram
JPH11120115A (en) Pci bus interrput steering circuit
JPH04280333A (en) Address extension system
JPH033049A (en) Process controller single memory chip shadowing technique
JPS6148174B2 (en)
JP2918570B2 (en) Central processing unit
JP2000029508A (en) Programmable controller
JPH03201036A (en) Microcomputer
JP2573711B2 (en) Micro subroutine control method
JPS5999551A (en) Address generating circuit
JPH03214275A (en) Semiconductor integrated circuit
JPH0830466A (en) Multitask switching control method
JP2982129B2 (en) Micro program controller
JPS6214245A (en) One-chip microcomputer
JPH0243625A (en) Microprogram control device
JPH0512107A (en) Program execution system
JPS592938B2 (en) Memory workspace
JPH01236327A (en) Interruption mask control method
JPH0683986A (en) Single chip microcomputer
JPS631623B2 (en)
JPS63253458A (en) Address converting circuit
JPH04270430A (en) Address extending system
JPH04177439A (en) Single chip microcomputer
JPH0855477A (en) Memory device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19980514