JPS6230660B2 - - Google Patents

Info

Publication number
JPS6230660B2
JPS6230660B2 JP12554581A JP12554581A JPS6230660B2 JP S6230660 B2 JPS6230660 B2 JP S6230660B2 JP 12554581 A JP12554581 A JP 12554581A JP 12554581 A JP12554581 A JP 12554581A JP S6230660 B2 JPS6230660 B2 JP S6230660B2
Authority
JP
Japan
Prior art keywords
memory
address
microprocessor
space
data
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.)
Expired
Application number
JP12554581A
Other languages
Japanese (ja)
Other versions
JPS5827254A (en
Inventor
Akira Kato
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
Nippon Electric 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP12554581A priority Critical patent/JPS5827254A/en
Publication of JPS5827254A publication Critical patent/JPS5827254A/en
Publication of JPS6230660B2 publication Critical patent/JPS6230660B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/06Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication
    • G06F12/0615Address space extension
    • G06F12/0623Address space extension for memory modules

Description

【発明の詳細な説明】 本発明はマイクロプロセツサを含むデータ処理
装置に関し、特にマイクロプロセツサが直接アク
セスできるメモリアドレス空間より大きな容量の
メモリを持つデータ処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a data processing device including a microprocessor, and more particularly to a data processing device having a memory capacity larger than the memory address space that can be directly accessed by the microprocessor.

現在、マイクロプロセツサを含むデータ処理装
置の大半に半導体メモリが使われており、このメ
モリはマイクロプロセツサが出力するCPUアド
レス(プロセツサのアドレス出力ビツトにより設
定される)によりアクセスされて使われている。
一方、マイクロプロセツサのハードウエアでは、
CPUアドレスによつて直接アドレスすることが
できるメモリ容量には上限がある。例えば、16ビ
ツトアドレス端子をプロセツサが有している場合
は、64キロバイトのアドレス指定が可能である。
又、最近では半導体メモリのコスト低減及びマイ
クロプロセツサを含むデータ処理装置に要求され
る処理能力の増強及びソフトウエア技術の向上等
によつて、本来マイクロプロセツサの持つ上限の
メモリ容量をこえた容量のメモリを必要とするデ
ータ処理装置が要求されている。
Currently, most data processing devices including microprocessors use semiconductor memory, and this memory is accessed and used by the CPU address output by the microprocessor (set by the address output bits of the processor). There is.
On the other hand, in microprocessor hardware,
There is an upper limit to the amount of memory that can be directly addressed by a CPU address. For example, if the processor has a 16-bit address terminal, it is possible to specify addresses of 64 kilobytes.
In addition, recently, due to the reduction in the cost of semiconductor memory, the increased processing power required of data processing devices including microprocessors, and improvements in software technology, the original upper limit memory capacity of microprocessors has been exceeded. There is a need for data processing devices that require large amounts of memory.

従来、このようにマイクロプロセツサの持つ上
限のメモリ容量をこえた容量のメモリをシステム
中に要するデータ処理装置においては、そのメモ
リを複数のチツプ(以下、メモリバンクという)
に分けて、これらのうち任意のメモリバンクをマ
イクロプロセツサのアドレス空間がゆるすかぎり
において選択してマイクロプロセツサに接続して
使用するという手法がとられていた。
Conventionally, in data processing devices that require memory in a system that exceeds the upper limit memory capacity of a microprocessor, the memory is divided into multiple chips (hereinafter referred to as memory banks).
The method used was to select any memory bank among these, as long as the address space of the microprocessor allowed it, and connect it to the microprocessor for use.

このようなデータ処理装置として第1図に示す
ような構成が知られている。マイクロプロセツサ
1のデータバス2はプログラムメモリ4、メモリ
選択ポート5及びメモリバンク7,8,9,10
は夫々接続されている。又、アドレスバス3はプ
ログラムメモリ4、アドレスデコーダ6及びメモ
リバンク7,8,9,10に夫々接続されてい
る。
As such a data processing device, a configuration as shown in FIG. 1 is known. The data bus 2 of the microprocessor 1 has a program memory 4, a memory selection port 5, and memory banks 7, 8, 9, 10.
are connected to each other. Further, the address bus 3 is connected to a program memory 4, an address decoder 6, and memory banks 7, 8, 9, and 10, respectively.

第2図は第1図のシステムのメモリアドレスマ
ツプである。ここでマイクロプロセツサのアドレ
ス空間の容量を64キロバイトとする。プログラム
メモリ4はマイクロプロセツサ1のアドレス空間
のうちアドレス0000〜BFFFの空間を専有してい
る。よつてアドレスC000〜FFFFの空間がメモ
リバンク7,8,9,10に与えられたアドレス
空間となる。マイクロプロセツサ1はメモリバン
ク7,8,9,10のうちの一つを選択するため
の選択データを書き込み制御信号12を用いてメ
モリ選択ポート5に書き込む。書き込まれた選択
データは選択制御信号14となりチツプセレクト
ゲート11に入力される。一方、アドレスデコー
ダ6はメモリバンクに与えられたアドレス空間を
随時デコードし、マイクロプロセツサ1のアドレ
スがC000〜FFFFの空間を指し示した時のみア
ドレスデコード信号15が活性化される。この結
果、選択されたただ一つのメモリバンクのチツプ
セレクトがアクテイブとなり、マイクロプロセツ
サ1によりそのメモリアクセスが可能となる。従
つて、プログラムメモリ4とメモリバンクとは同
一アドレス空間上にあることができないため、各
メモリバンクの容量がその分制限されてしまうと
いう欠点があつた。更に、アクセスすべきプログ
ラムやデータが複数のメモリバンクにまたがつた
場合、例えばメモリバンクに格納されたプログラ
ムやデータが、メモリバンク7の後半アドレスか
らメモリバンク8の前半アドレスにまたがつてし
まつたような場合、データ参照のためにはその境
界においてメモリバンクの切り換えを繁雑に行な
わなければならないという欠点も有していた。
FIG. 2 is a memory address map for the system of FIG. Here, the capacity of the address space of the microprocessor is assumed to be 64 kilobytes. The program memory 4 exclusively occupies the address space of the microprocessor 1 from addresses 0000 to BFFF. Therefore, the space from addresses C000 to FFFF becomes the address space given to memory banks 7, 8, 9, and 10. Microprocessor 1 writes selection data for selecting one of memory banks 7, 8, 9, and 10 to memory selection port 5 using write control signal 12. The written selection data becomes a selection control signal 14 and is input to the chip select gate 11. On the other hand, the address decoder 6 decodes the address space given to the memory bank at any time, and the address decode signal 15 is activated only when the address of the microprocessor 1 points to the space from C000 to FFFF. As a result, the chip select of only one selected memory bank becomes active, and the microprocessor 1 can access the memory. Therefore, since the program memory 4 and the memory banks cannot be located in the same address space, there is a drawback that the capacity of each memory bank is limited accordingly. Furthermore, if the program or data to be accessed spans multiple memory banks, for example, the program or data stored in the memory bank may span from the second half address of memory bank 7 to the first half address of memory bank 8. In such a case, there is also the drawback that memory banks must be switched in a complicated manner at the boundary in order to refer to data.

本発明は上記欠点を改善するもので、プログラ
ムメモリの一部もしくは全部のアドレス空間と他
のメモリのアドレス空間とを共用させたデータ処
理装置を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention aims to improve the above-mentioned drawbacks, and aims to provide a data processing device in which a part or all of the address space of a program memory is shared with the address space of another memory.

本発明の他の目的は、共用したアドレスを用い
て当該アドレスでアクセス可能な容量以上のメモ
リ容量をアクセスするデータ処理装置を提供する
ことにある。
Another object of the present invention is to provide a data processing device that uses a shared address to access a memory capacity that is greater than the capacity that can be accessed by the address.

マイクロプロセツサと第1および第2のメモリ
とを有するデータ処理装置において、前記マイク
ロプロセツサが指定可能なアドレス空間の一部を
前記第1のメモリに割り当て、残りのアドレス空
間はその整数倍の空間を前記第2のメモリに割り
当てて、前記第1のメモリには前記マイクロプロ
セツサから直接アドレスを供給し、前記第2のメ
モリには前記残りのアドレス空間内のアドレスを
予め設定されたオフセツトアドレスで修飾したア
ドレスを供給する第1のモードと、前記第1のメ
モリに対するアクセスを禁止して、前記マイクロ
プロセツサが指定可能な前記アドレス空間のすべ
てを前記第2のメモリに割り当てる第2のモード
とを選択的に実行できるようにしたことを特徴と
する。
In a data processing device having a microprocessor and first and second memories, a part of the address space that can be specified by the microprocessor is allocated to the first memory, and the remaining address space is allocated to an integral multiple of the address space. allocating space in said second memory, said first memory being supplied with addresses directly from said microprocessor, and said second memory being supplied with addresses in said remaining address space in a preset off state; a first mode in which an address qualified with a set address is provided; and a second mode in which access to the first memory is prohibited and all of the address space that can be specified by the microprocessor is allocated to the second memory. The feature is that the mode can be selectively executed.

本発明の一実施例を以下に図面に基づいて詳細
に説明する。
An embodiment of the present invention will be described in detail below based on the drawings.

第3図に本発明の一実施例を示す機能ブロツク
図である。マイクロプロセツサ100からのデー
タバス110はプログラムメモリ140、オフセ
ツトアドレスレジスタ190、及びメモリブロツ
ク150に夫々接続されている。アドレスバス1
20はプログラムメモリ140、アドレスデコー
ダ180、アドレス修飾回路200、及びアドレ
スマルチプレクサ210に接続されている。プロ
グラムメモリ140にはそのアクセスを禁止させ
るためのプログラムメモリ禁止フリツプフロツプ
160が接続されている。通常の動作時のメモリ
マツプを第4図に示す。通常動作時においてプロ
グラムメモリ禁止フリツプフロツプ160はリセ
ツトされており、プログラムメモリが0000〜
BFFFのアドレス空間を占有している。一方、
C000〜FFFFのアドレス空間は、メモリブロツ
ク150に与えられたアドレス空間であるが、そ
の容量はメモリブロツク150の全容量よりも小
さい。アドレスデコーダ180は上記のアドレス
(C000〜FFFF)をデコードし、メモリ選択信号
240によつてマイクロプロセツサが上記アドレ
スを選択した時のみチツプセレクト信号240を
活性化する。マイクロプロセツサ100は所望の
オフセツトアドレスデータをオフセツトアドレス
レジスタ190に出力する。オフセツトアドレス
データはオフセツトアドレスバス250によつて
アドレス修飾回路200に入力される。一方、ア
ドレス修飾回路200にはCPUアドレスが入力
されており、ここでアドレスの修飾(例えば加
算)が行なわれる。修飾されたアドレス信号は実
効アドレス信号260としてメモリアドレスマル
チプレクサ210に入力される。メモリアドレス
マルチプレクサ210はマルチプレクサ制御フリ
ツプフロツプ170によつて制御されており、通
常動作時においてはB側の入力が選択されてい
る。この結果、オフセツトアドレスによつて修飾
されて作られた実効アドレスによりメモリブロツ
ク150はアドレスされる。メモリブロツク15
0には、連続した物理的アドレスが割り付られて
おり、マイクロプロセツサ100がオフセツトア
ドレスデータをオフセツトアドレスレジスタ19
0にセツトすることにより、上記実効アドレスが
変化しうる範囲(CPUアドレスがC000〜FFFF
まで変化した場合に変化しうる範囲)のメモリブ
ロツクを1つのメモリバンクとして選択されるこ
とになる。
FIG. 3 is a functional block diagram showing one embodiment of the present invention. Data bus 110 from microprocessor 100 is connected to program memory 140, offset address register 190, and memory block 150, respectively. address bus 1
20 is connected to a program memory 140, an address decoder 180, an address modification circuit 200, and an address multiplexer 210. A program memory inhibit flip-flop 160 is connected to the program memory 140 to inhibit access thereto. FIG. 4 shows the memory map during normal operation. During normal operation, the program memory inhibit flip-flop 160 is reset, and the program memory is set from 0000 to
Occupies BFFF address space. on the other hand,
The address space C000 to FFFF is an address space given to the memory block 150, but its capacity is smaller than the total capacity of the memory block 150. Address decoder 180 decodes the above address (C000-FFFF) and activates chip select signal 240 only when the microprocessor selects the above address according to memory selection signal 240. Microprocessor 100 outputs the desired offset address data to offset address register 190. Offset address data is input to address modification circuit 200 by offset address bus 250. On the other hand, the CPU address is input to the address modification circuit 200, and address modification (for example, addition) is performed here. The modified address signal is input to memory address multiplexer 210 as effective address signal 260. Memory address multiplexer 210 is controlled by multiplexer control flip-flop 170, and the B side input is selected during normal operation. As a result, memory block 150 is addressed by an effective address modified by the offset address. Memory block 15
Consecutive physical addresses are assigned to 0, and the microprocessor 100 stores the offset address data in the offset address register 19.
By setting it to 0, the range in which the above effective address can change (CPU address is C000 to FFFF
The memory blocks within the range that can change when the data changes to (the range that can change when the data changes) are selected as one memory bank.

次にメモリブロツク選択モード時の動作を説明
する。メモリブロツク選択モード時にはプログラ
ムメモリ禁止フリツプフロツプがセツトされ、プ
ログラムメモリ140のアクセスはすべて禁止さ
れる。又マルチプレクサ制御フリツプフロツプ1
70もセツトされ、メモリアドレスマルチプレク
サ210はA側入力を選択する。さらにアドレス
デコーダ180はプログラムメモリ禁止フリツプ
フロツプの出力により開放され、通常モード時に
禁止していたアドレス0000〜BFFFまでの空間に
おいてもメモリブロツク150を選択するように
なる。一方、メモリブロツク150に入力される
アドレス信号はCPUアドレスとなり、オフセツ
トアドレスデータによる修飾は行なわない方がよ
い。又、行なつてもよいが、行なわない方がアド
レスを有効に使用できる。このモード時のメモリ
マツプを第5図に示す。本モード時においてメモ
リブロツク150はすべてマイクロプロセツサ1
00の持つメモリアドレス空間内にあり、マイク
ロプロセツサはメモリバンクを切り換えるために
オフセツトアドレスデータを書き換えることな
く、メモリブロツク150内のプログラムを実行
したり又データを参照したりすることができる。
尚、通常モードとメモリブロツク選択モードとの
切り換えをプログラムで行なうことも可能であ
る。
Next, the operation in the memory block selection mode will be explained. In the memory block selection mode, a program memory inhibit flip-flop is set and all accesses to program memory 140 are inhibited. Also multiplexer controlled flip-flop 1
70 is also set, and memory address multiplexer 210 selects the A side input. Further, the address decoder 180 is opened by the output of the program memory inhibit flip-flop, and the memory block 150 is selected even in the space from addresses 0000 to BFFF, which was inhibited in the normal mode. On the other hand, the address signal input to the memory block 150 is a CPU address, and it is better not to modify it with offset address data. Also, although it may be done, addresses can be used more effectively if it is not done. The memory map in this mode is shown in FIG. In this mode, all memory blocks 150 are connected to the microprocessor 1.
00, and the microprocessor can execute programs in memory block 150 or refer to data without rewriting offset address data to switch memory banks.
It is also possible to switch between the normal mode and the memory block selection mode using a program.

本実施例によればメモリブロツクの中の任意の
番地を開始アドレスとして一連のエリアを1つの
メモリバンクとして選択することができるばかり
ではなく、モードを切り換えることにより複数個
あるいはすべてのメモリバンクを同時に選択する
ことが可能となる等の効果を有する。
According to this embodiment, it is not only possible to select a series of areas as one memory bank using an arbitrary address in a memory block as a starting address, but also to select multiple or all memory banks at the same time by switching the mode. This has the effect of making selection possible.

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

第1図は従来のデータ処理装置のブロツク図で
ある。第2図は従来のデータ処理装置のメモリア
ドレスマツプ図である。第3図は本発明の一実施
例を示す機能ブロツク図である。第4図、第5図
は本発明の一実施例におけるメモリアドレスマツ
プ図である。 1,100……マイクロプロセツサ、2,11
0……データバス、3,120……アドレスバ
ス、4,140……プログラムメモリ、5……メ
モリ選択ポート、6,180……アドレスデコー
ダ、7,8,9,10,150……メモリブロツ
ク、11……チツプセレクトゲート、12,13
0……制御信号、13,220……チツプセレク
ト信号、14……選択制御信号、15,240…
…デコード信号、160……プログラムメモリ禁
止フリツプフロツプ、170……マルチプレクサ
制御フリツプフロツプ、190……オフセツトア
ドレスレジスタ、200……アドレス修飾回路、
210……メモリアドレスマルチプレクサ、23
0……マルチプレクサ制御信号、250……オフ
セツトアドレス、260……実効アドレス、27
0……メモリアドレス。
FIG. 1 is a block diagram of a conventional data processing device. FIG. 2 is a memory address map diagram of a conventional data processing device. FIG. 3 is a functional block diagram showing one embodiment of the present invention. FIGS. 4 and 5 are memory address map diagrams in one embodiment of the present invention. 1,100...Microprocessor, 2,11
0...Data bus, 3,120...Address bus, 4,140...Program memory, 5...Memory selection port, 6,180...Address decoder, 7,8,9,10,150...Memory block , 11... Chip select gate, 12, 13
0... Control signal, 13,220... Chip select signal, 14... Selection control signal, 15,240...
...Decode signal, 160...Program memory inhibit flip-flop, 170...Multiplexer control flip-flop, 190...Offset address register, 200...Address modification circuit,
210...Memory address multiplexer, 23
0... Multiplexer control signal, 250... Offset address, 260... Effective address, 27
0...Memory address.

Claims (1)

【特許請求の範囲】[Claims] 1 マイクロプロセツサと第1および第2のメモ
リとを有するデータ処理装置において、前記マイ
クロプロセツサが指定可能なアドレス空間の一部
を前記第1のメモリに割り当て、残りのアドレス
空間はその整数倍の空間を前記第2のメモリに割
り当てて、前記第1のメモリには前記マイクロプ
ロセツサから直接アドレスを供給し、前記第2の
メモリには前記残りのアドレス空間内のアドレス
を予め設定されたオフセツトアドレスで修飾した
アドレスを供給する第1のモードと、前記第1の
メモリに対するアクセスを禁止して、前記マイク
ロプロセツサが指定可能な前記アドレス空間のす
べてを前記第2のメモリに割り当てる第2のモー
ドとを選択的に実行できるようにしたことを特徴
とするデータ処理装置。
1. In a data processing device having a microprocessor and first and second memories, a part of the address space that can be specified by the microprocessor is allocated to the first memory, and the remaining address space is an integral multiple thereof. space in the second memory, the first memory is supplied with addresses directly from the microprocessor, and the second memory is preset with addresses in the remaining address space. a first mode in which an address modified with an offset address is provided; and a second mode in which access to the first memory is prohibited and all of the address space that can be specified by the microprocessor is allocated to the second memory. A data processing device characterized in that it is capable of selectively executing the second mode.
JP12554581A 1981-08-11 1981-08-11 Data processing device Granted JPS5827254A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12554581A JPS5827254A (en) 1981-08-11 1981-08-11 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12554581A JPS5827254A (en) 1981-08-11 1981-08-11 Data processing device

Publications (2)

Publication Number Publication Date
JPS5827254A JPS5827254A (en) 1983-02-17
JPS6230660B2 true JPS6230660B2 (en) 1987-07-03

Family

ID=14912845

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12554581A Granted JPS5827254A (en) 1981-08-11 1981-08-11 Data processing device

Country Status (1)

Country Link
JP (1) JPS5827254A (en)

Also Published As

Publication number Publication date
JPS5827254A (en) 1983-02-17

Similar Documents

Publication Publication Date Title
JP3605205B2 (en) Data processing device and processing method
US6851036B1 (en) Method and apparatus for controlling external devices through address translation buffer
US5592652A (en) Single-chip microcomputer system having address space allocation hardware for different modes
CA2012318C (en) Microprocessor system having an extended address space
US4807119A (en) Memory address mapping mechanism
JPS6230660B2 (en)
JPS60189561A (en) Memory access control system
JPS59226958A (en) Memory device
JPS6232516B2 (en)
JPH05233834A (en) Single chip microcomputer
US6029210A (en) Memory initialization system selectively outputting a data between a normal data stored in the memory and a fixed value according to a registered access state
KR920003845B1 (en) Rom region expansion system for users of pc
JP4015867B2 (en) Address signal output device
JPH07334420A (en) Extended memory control circuit
JPS60245060A (en) Microcomputer device
KR930009061B1 (en) Memory access unit
KR0122740Y1 (en) Memory area selection circuit
KR920007778Y1 (en) Memory controller
KR900009212Y1 (en) Address control apparatus
JPH01226052A (en) Memory controller
JPS60159954A (en) Memory controlling system
JPH01224853A (en) Memory controller
JPH04255081A (en) Microcomputer
JPH04177439A (en) Single chip microcomputer
JPH07325757A (en) Storage management device