JPH0449444A - Address allocating system for memory space - Google Patents

Address allocating system for memory space

Info

Publication number
JPH0449444A
JPH0449444A JP16018390A JP16018390A JPH0449444A JP H0449444 A JPH0449444 A JP H0449444A JP 16018390 A JP16018390 A JP 16018390A JP 16018390 A JP16018390 A JP 16018390A JP H0449444 A JPH0449444 A JP H0449444A
Authority
JP
Japan
Prior art keywords
address
register
memory
bank
pointer
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
JP16018390A
Other languages
Japanese (ja)
Inventor
Jiyunichi Ikuda
郁田 順一
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 JP16018390A priority Critical patent/JPH0449444A/en
Publication of JPH0449444A publication Critical patent/JPH0449444A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain address allocation having high programming efficiency by controlling a selection means by an output from a comparing means for comparing the contents of a reference register with that of a pointer to select a specific bank register. CONSTITUTION:When an address value 'addc' is stored in a CA register 17 for storing the upper limit address of a common memory area independent of memory banks 10 to 12, addresses in the common memory area independent of the banks 10 to 12 are '0' to 'addc'. An output signal 2 from a comparator 18 for comparing addresses 'add', 'addc' set up in the pointer 14 goes non-active when the 'add' is larger than the 'addc' and goes active when the 'add' is less than the 'addc'. The bank to be selected by the bank register 15 is specified and a multiplexer 16 is controlled by the value of the register 15 to select one of the banks 10 to 12. Consequently, address allocation having high programming efficiency can be attained.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はメモリ空間のアドレス割り付け方式に関し、特
にランダムアクセスメモリを内蔵したマイクロコンピュ
ータにおけるメモリ空間のアドレス割り付け方式に関す
る。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a memory space address allocation method, and more particularly to a memory space address allocation method in a microcomputer incorporating a random access memory.

〔従来の技術〕[Conventional technology]

従来のランダムアクセスメモリ(以下RAMと称す)空
間のアドレス割り付け方式を図面を用いて説明する。第
4図は従来のRAM空間のアドレス割り付け方式の一例
を示すもので、nビットで構成されるポインタ44と、
多数のメモリバンク40〜43と、バンクレジスタ45
と、選択回路46とを含んでいる。RAMはmビットで
1語の構成となっており(以下RAMmビットで構成さ
れる単位をワードと称する)、ポインタ44によって2
″ワ一ド分のアドレス指定を行うことができる。そして
2nワ一ド分のメモリ空間を1つの単位としてメモリバ
ンク40.41,42.・・・43と称する。バンクレ
ジスタ45はメモリバンク指定を行うためのレジス、夕
であり、バンクレジスタ45かにビット構成になってい
る場合、2に個のメモリバンクの指定が可能になるから
、2n+3ワ一ド分のアドレス指定を行うことができる
A conventional address allocation method for random access memory (hereinafter referred to as RAM) space will be explained using the drawings. FIG. 4 shows an example of a conventional RAM space address allocation method, in which a pointer 44 consisting of n bits,
A large number of memory banks 40 to 43 and a bank register 45
and a selection circuit 46. The RAM is composed of one word with m bits (hereinafter, a unit composed of m bits of RAM is referred to as a word), and the pointer 44
``One word's worth of addressing can be specified.The memory space of 2n words' worth of memory space is referred to as a memory bank 40, 41, 42,...43 as one unit.The bank register 45 is used to specify a memory bank. If the bank register 45 has a bit configuration, it is possible to specify 2 memory banks, so it is possible to specify addresses for 2n+3 words. .

この方式は、メモリバンクの概念を持たずに(n+k)
ビットのポインタのみでアドレス指定を行う方式と比べ
て指定できるアドレス空間の大きさは同一であるが、ハ
ードウェア構成面では有利である。すなわちポインタ4
4ヘアドレス情報を乗せるための信号線(以下バスと称
す)が第4図の構成をとればn本で十分なのに対し、メ
モリバンクを使用せず(n+k)ビットのポインタで構
成した場合、(n+k )本のバスを必要とする。n本
のバスで構成した場合は、1回の処理でアドレス情報を
ポインタに格納することができず、複数回の処理を必要
とし制御が複雑になってしまう。この差はアドレス空間
が大きくなる程顕著に現われる。
This method uses (n+k) without the concept of memory banks.
Compared to a method in which addresses are specified using only bit pointers, the size of the address space that can be specified is the same, but it is advantageous in terms of hardware configuration. i.e. pointer 4
If the configuration shown in Fig. 4 is adopted, n signal lines (hereinafter referred to as buses) for carrying address information are sufficient, but if a memory bank is not used and a pointer of (n + k) bits is configured, ( n+k) buses are required. When configured with n buses, address information cannot be stored in a pointer in one process, but requires multiple processes, making control complicated. This difference becomes more noticeable as the address space becomes larger.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のアドレス割り付け方式は、ハードウェア
構成面においては有利であるが、ソフトウェアの面から
は不利な点がいくつかある。特にソフトウェア開発時に
おいて、ソフトウェア設計者はどのメモリバンクを選択
しているのかを絶えず意識して設計しなければならず、
無用の混乱をきたすことが多い。例えばあるメモリバン
クを選択している際に他のメモリバンクのデータが一時
的に必要となった場合、−度メモリバンクを切り換えて
処理を行った後に再び元のメモリバンクに再設定しなけ
ればならず、プログラミング効率が悪い。
The conventional address allocation method described above is advantageous in terms of hardware configuration, but has several disadvantages in terms of software. Especially when developing software, software designers must constantly be aware of which memory bank to select.
This often causes unnecessary confusion. For example, if you temporarily need data from another memory bank while selecting a certain memory bank, you must switch memory banks several times, perform processing, and then reset to the original memory bank again. This results in poor programming efficiency.

また頻繁にメモリバンクを切り換えてRAMをアクセス
する様な動作をさせる場合には、メモリバンクを切り換
える処理だけでも時間がかかつてしまい動作効率も悪く
なってしまうという欠点がある。
Furthermore, when performing operations such as accessing RAM by frequently switching memory banks, there is a drawback that the process of switching memory banks alone takes time and operational efficiency deteriorates.

したがって本発明の目的はメモリバンクの構成を持ちつ
つプログラミング効率、動作効率のよいアドレス割り付
け方式を提供することにある。
Therefore, an object of the present invention is to provide an address allocation method that has a memory bank structure and is efficient in programming and operation.

〔課題を解決するための手段〕[Means to solve the problem]

本発明は、ランダムアクセスメモリのメモリ空間を複数
のメモリバンクに分割し、前記メモリバンクの一つを指
定する情報をバンクレジスタに保持させ、バンクレジス
タの保持情報が指定するメモリバンクを選択手段によっ
て選択し、メモリバンク内のアドレスを指定するための
ポインタの内容によって上に述べた選択されたメモリバ
ンク内のアドレスを指定するメモリ空間のアドレス割り
=6 付け方式において、特定のアドレスを指定する基準レジ
スタとこの基準レジスタの内容とポインタの内容とを比
較する比較手段とを備え、比較手段の出力によって選択
手段を制御して特定のバンクレジスタのみを選択せしめ
ることを特徴とするメモリ空間のアドレス割り付け方式
を提供する。
The present invention divides a memory space of a random access memory into a plurality of memory banks, causes a bank register to hold information specifying one of the memory banks, and selects a memory bank specified by the information held in the bank register by a selection means. Address allocation of the memory space that specifies the address in the selected memory bank described above by the contents of the pointer for specifying the address in the memory bank = 6 Criteria for specifying a specific address in the allocation method Address allocation in a memory space characterized by comprising a register and a comparison means for comparing the contents of the reference register with the contents of a pointer, and controlling the selection means by the output of the comparison means to select only a specific bank register. provide a method.

好ましくは、上記の特定のアドレスとして共通メモリ領
域の上限または下限のアドレスを基準レジスタに保持さ
せ、ポインタの内容が上限のアドレスよりも小さいとき
または下限のアドレスよりも大きいときに比較手段の出
力を発生させ、特定のメモリバンク内の上限のアドレス
未満のアドレスの領域または下限のアドレスより大きい
アドレスの領域を共通メモリ領域として用いる。
Preferably, the upper or lower limit address of the common memory area is held in the reference register as the specific address, and the output of the comparing means is set when the contents of the pointer are smaller than the upper limit address or larger than the lower limit address. An area of addresses less than the upper limit address or an area of addresses greater than the lower limit address in a specific memory bank is used as a common memory area.

さらに好ましくは、バンクレジスタの内容によってポイ
ンタの出力を変換し、予め定めたメモリバンク群のアド
レスを指定できるようにした制御手段を備える。
More preferably, a control means is provided which converts the output of the pointer according to the contents of the bank register and is capable of specifying an address of a predetermined group of memory banks.

本発明の他の態様においては、メモリ空間を多数のメモ
リバンクに分割したランダムアクセスメモリを内蔵する
マイクロコンピュータにおいて、メモリバンクを指定す
るための第1のレジスタと、第1のレジスタの内容によ
りメモリバンクを選択するための選択回路と、メモリバ
ンク内のアドレスを指定するためのポインタと、第1の
レジスタの内容により制御されポインタの出力を変換し
てメモリバンク内のアドレスを指定するアドレス変換回
路と、ポインタにより指定されるアドレスとは異なる特
定のアドレスを指定するための第2のレジスタと、ポイ
ンタにより指定されるアドレスと第2のレジスタにより
指定されるアドレスとの大小を比較し選択回路を制御す
るための比較器とを有するマイクロコンピュータが提供
される。
In another aspect of the present invention, in a microcomputer having a built-in random access memory in which a memory space is divided into a large number of memory banks, a first register for specifying a memory bank, and a memory according to the contents of the first register are provided. A selection circuit for selecting a bank, a pointer for specifying an address within the memory bank, and an address conversion circuit that is controlled by the contents of the first register and converts the output of the pointer to specify the address within the memory bank. and a second register for specifying a specific address different from the address specified by the pointer, and a selection circuit that compares the magnitude of the address specified by the pointer and the address specified by the second register. A microcomputer is provided having a comparator for controlling the method.

本発明によれは従来のメモリバンク切り換え型のアドレ
ス割り付け方式のハードウェア上の利点を損うことなく
、メモリバンクに依存しない共通のメモリ空間を任意に
設定することができる。例えばプログラム開発時に頻繁
にアクセスする様なデータはメモリバンクに依存しない
共通のメモリ空間に格納することによって、現在どのメ
モリバンクを選択していてもメモリバンクを切り換える
ことなく直ちにそのデータをアクセスすることができる
。またメモリバンクを切り換える回数も減るので、従来
と比べ動作効率も向上するという効果がある。
According to the present invention, a common memory space independent of memory banks can be arbitrarily set without impairing the hardware advantages of the conventional memory bank switching type address allocation method. For example, by storing data that is frequently accessed during program development in a common memory space that does not depend on memory banks, the data can be accessed immediately without switching memory banks, regardless of which memory bank is currently selected. I can do it. Furthermore, since the number of times memory banks are switched is reduced, operational efficiency is also improved compared to the conventional method.

〔実施例〕〔Example〕

次に本発明をその実施例について図面を参照して説明す
る。
Next, embodiments of the present invention will be described with reference to the drawings.

第1図を参照すると、本発明の第1の実施例は便宜上3
つだけ示したメモリバンク10,11゜12(一般には
多数のメモリバンクから構成される)と、メモリバンク
内のワードのアドレスをその出力信号1で指定するポイ
ンタ14とを含む。
Referring to FIG. 1, the first embodiment of the present invention is illustrated in FIG.
It includes a memory bank 10, 11, 12 (generally consisting of a number of memory banks), only one of which is shown, and a pointer 14 which specifies with its output signal 1 the address of a word within the memory bank.

ポインタ14に格納されたアドレス値すなわちその出力
信号1を以下では(add)と記述する。本発明てはメ
モリバンクに依存しない共通のメモリ領域の上限アドレ
スを格納するレジスタ17を設ける。以下これをCAレ
ジスタと称し、CAレジスタ17に格納されるアドレス
値を(addc)と記述する。CAレジスタ]7に値(
addc)を格納すると、メモリバンクに依存しない共
通のメモリ領域のアドレスは0番地から(addc)番
地までになる。本発明においては、さらに、ポインタ1
4に設定されるアドレス(add)とCAレジスタ17
内のアドレス(addc)との大小を比較する比較器1
8を設ける。比較器】8の出力信号2は、ポインタ14
に設定したアドレス値(add)がCAレジスタ17の
アドレス値(addc)以上の時に、ノンアクティブと
なり、(add)か(addc)未満のときアクティブ
となる。従来と同様にバンクレジスタ15が設けられて
どのメモリバンクを選択するかを指定し、マルチプレク
サ16がバンクレジスタ15の値て制御されてメモリバ
ンク10〜12の一つを選択する。本発明ではマルチプ
レクサ16は比較器18の出力信号2によっても制御さ
れ、出力信号2かノンアクティブの時は現状のままであ
るが、出力信号2がアクティブの時は強制的にメモリバ
ンク10を選択するよう構成されている。
The address value stored in the pointer 14, ie, its output signal 1, is hereinafter written as (add). In the present invention, a register 17 is provided to store the upper limit address of a common memory area independent of memory banks. Hereinafter, this will be referred to as a CA register, and the address value stored in the CA register 17 will be described as (addc). CA register] 7 has a value (
addc), the addresses of the common memory area independent of memory banks will be from address 0 to (addc). In the present invention, the pointer 1
Address (add) set to 4 and CA register 17
Comparator 1 that compares the size with the address (addc) in
8 will be provided. The output signal 2 of the comparator 8 is the pointer 14
When the address value (add) set in is equal to or greater than the address value (addc) of the CA register 17, it becomes inactive, and when it is less than (add) or (addc), it becomes active. As in the prior art, a bank register 15 is provided to specify which memory bank to select, and a multiplexer 16 is controlled by the value of the bank register 15 to select one of memory banks 10-12. In the present invention, the multiplexer 16 is also controlled by the output signal 2 of the comparator 18, and when the output signal 2 is inactive, it remains as it is, but when the output signal 2 is active, it forcibly selects the memory bank 10. is configured to do so.

次に第1図の動作を説明する。CAレジスタ17に共通
のメモリ領域の上限アドレス(addc>を設定した後
にポインタ14にアドレス(add)を設定するものと
する。またメモリバンクレジスタ15はメモリバンク1
1を選択しているものとする。まず比較器18が(ad
d)と(addc)の大小を判定し、その結果に従って
出力信号2をアクティブまたはノンアクティブにする。
Next, the operation shown in FIG. 1 will be explained. After setting the upper limit address (addc> of the common memory area in the CA register 17, the address (add) is set in the pointer 14. Furthermore, the memory bank register 15 is set in the memory bank 1.
It is assumed that 1 is selected. First, the comparator 18 (ad
The magnitude of d) and (addc) is determined, and the output signal 2 is made active or inactive according to the result.

ここで、(add)l ; (addc)であれば出力
信号2はノンアクティブであるから、マルチプレクサ1
6は現状のメモリバンクすなわちメモリバンク11を選
択している。従ってアクセスされるメモリはメモリバン
ク11の(add)番地である。一般には現時点で選択
されているメモリバンクの(add)番地を指すことに
なる。
Here, if (add)l; (addc), output signal 2 is inactive, so multiplexer 1
6 selects the current memory bank, that is, memory bank 11. Therefore, the memory to be accessed is address (add) of memory bank 11. Generally, it refers to the (add) address of the currently selected memory bank.

方、(add)< (addc)であれば、出力信号2
はアクティブになり、マルチプレクサ16は強制的にメ
モリバンク10を選択する。従ってアクセスされるメモ
リはメモリバンク10である。
On the other hand, if (add) < (addc), the output signal 2
becomes active, forcing multiplexer 16 to select memory bank 10. The memory accessed is therefore memory bank 10.

一般に(add)< (addc)の時は、バンクレジ
スタ15の値に依らず常にメモリバンク10を指すこと
になる。以上の動作なアドレスO番地から(addc)
番地までの領域が、メモリバンクに依存しない共通のメ
モリ領域と見なすことができることを示している。なお
CAレジスタ17に0を設定すれば、共通のメモリ領域
はなくなり従来と同じ構成に戻ることは言うまでもない
Generally, when (add)<(addc), it always points to the memory bank 10 regardless of the value of the bank register 15. From the above operation address O (addc)
This shows that the area up to the address can be regarded as a common memory area independent of memory banks. It goes without saying that if the CA register 17 is set to 0, there will be no common memory area and the configuration will return to the same as before.

なお、第1図の構成では、メモリバンク10以外の他の
メモリバンク11〜12内の0番地から(addc)番
地までの領域は、絶対にアクセスされることのない無駄
な領域になってしまう。この点をも解決したのが第2の
実施例である。
In the configuration shown in FIG. 1, the area from address 0 to address (addc) in memory banks 11 and 12 other than memory bank 10 becomes a wasted area that will never be accessed. . The second embodiment solves this problem as well.

第2図を参照すると、本発明の第2の実施例は基本的な
動作は第1の実施例と相違ないが第1図におけるメモリ
バンク11、メモリバンク12の0番地から(addc
)番地までの領域がそれぞれ別なメモリバンク23.メ
モリバンク24として使用可能になっている。特にこの
点について説明する。第2図においてメモリバンク10
、ポインタ14、比較器18、CAレジスタ17および
比較器18の出力信号2は第1図のものと同様である。
Referring to FIG. 2, the basic operation of the second embodiment of the present invention is the same as that of the first embodiment, but from address 0 of memory bank 11 and memory bank 12 in FIG.
) memory banks 23, each having a different area up to address. It can be used as a memory bank 24. This point will be explained in particular. In FIG. 2, memory bank 10
, pointer 14, comparator 18, CA register 17 and output signal 2 of comparator 18 are similar to those in FIG.

メモリバンク21.22は第1図のメモリバンク11.
12から上述のメモリバンク23゜24を除いた残余の
部分である。CAレジスタ17に共通のメモリ領域の上
限アドレス(addC)を設定した際、メモリバンク1
0以外の他のメモリバンクの0番地から(addc)番
地までの領域を新たな別のメモリバンク23.24とし
て使用するために、バンクレジスタ25およびマルチプ
レクサ26はこれらの新たなメモリバンク23.24を
選択できる様に、拡張しである。メモリバンク23.メ
モリバンク24はそれぞれメモリバンク21.メモリバ
ンク22のO番地から(addc)番地までの領域であ
る。
Memory banks 21.22 are memory banks 11.22 in FIG.
This is the remaining part from 12 except for the above-mentioned memory banks 23 and 24. When setting the upper limit address (addC) of the common memory area in the CA register 17, memory bank 1
In order to use the area from address 0 to address (addc) of other memory banks other than 0 as a new separate memory bank 23.24, the bank register 25 and the multiplexer 26 It has been expanded so that you can select. Memory bank 23. Each memory bank 24 has a memory bank 21 . This is the area from address O to address (addc) of the memory bank 22.

バンクレジスタ25が通常のメモリバンクすなわちメモ
リバンク10.メモリバンク21.メモリバンク22を
選択した時は制御回路29はその出力3をアクティブ、
出力4をノンアクティブとし、スイッチ31を閉じ、ス
イッチ33を開く様な構成になっている。この時は第1
図と同様の構成になり、動作も同じである。バンクレジ
スタ25がメモリバンク23またはメモリバンク24を
選択した時は制御回路29はその出力3をノンアクティ
ブとし出力4をアクティブとして、スイッチ31を開き
スイッチ33を閉じる。その結果変換回路30がアクテ
ィブとなり、ポインタ14の出力1はインバータ32に
より各ビットが反転し、メモリバンク23およびメモリ
バンク24は(addc)の各ビットを反転した値((
addc)と記述する)からメモリバンクの最終アドレ
スまでをメモリ領域として持つ新たなメモリバンクとし
て使用が可能になる。例えば、各々のメモリバンクがO
番地からFFFFH番地までの領域を持つとした時、ポ
インタ14にFFFFH番地を設定し、メモリバンク2
3が選択されていれば、実際にはメモリバンク21の0
番地をアクセスするが、コーザ側からはメモリバンク2
3のFFFFH番地をアクセスしていることになる。
Bank register 25 is a normal memory bank, i.e., memory bank 10. Memory bank 21. When the memory bank 22 is selected, the control circuit 29 activates its output 3.
The configuration is such that output 4 is made inactive, switch 31 is closed, and switch 33 is opened. At this time, the first
The configuration is similar to that shown in the figure, and the operation is also the same. When the bank register 25 selects the memory bank 23 or the memory bank 24, the control circuit 29 makes its output 3 inactive and its output 4 active, and opens the switch 31 and closes the switch 33. As a result, the conversion circuit 30 becomes active, each bit of the output 1 of the pointer 14 is inverted by the inverter 32, and the memory banks 23 and 24 are set to the value (((
addc) to the final address of the memory bank can be used as a new memory bank that has a memory area. For example, each memory bank
If the area is from address to FFFFH, set address FFFFH to pointer 14, and set memory bank 2 to memory bank 2.
If 3 is selected, 0 of memory bank 21 is actually selected.
The address is accessed, but from the Coza side, memory bank 2
This means that address 3 FFFFH is being accessed.

以上の実施例ては、CAレジスタ17に任意の値を設定
するものとしたが、共通のメモリ領域を固定で使用する
場合には、第1図または第2図におけるCAレジスタ1
7の値をICチップ上てマスクオプションにより固定す
ることが可能である。その場合の一例を第3図に示す。
In the above embodiment, an arbitrary value is set in the CA register 17, but if a common memory area is to be used in a fixed manner, the CA register 17 in FIG.
It is possible to fix the value of 7 by mask option on the IC chip. An example of that case is shown in FIG.

第3図においてCAレジスタ17の各ビットを一端が共
通接続され他端が接地36または電源電位37に接続さ
れた一対のヒユーズ34.35で構成し、共通のメモリ
領域の上限アドレスを1ビツトごとにヒユーズ34.3
5のいづれか一方を切断することで設定できる様にしで
ある。ヒユーズはたとえばポリクリスタル・シリコンで
構成してマスクによるレーザカットをする等の公知の方
法を用いればよい。この方法によれはチップに占める面
積を低減できるという利点かある。
In FIG. 3, each bit of the CA register 17 is configured with a pair of fuses 34 and 35, one end of which is connected in common and the other end connected to ground 36 or power supply potential 37, and the upper limit address of the common memory area is set bit by bit. Fuse 34.3
This can be set by cutting either one of 5. The fuse may be made of, for example, polycrystalline silicon, and a known method such as laser cutting using a mask may be used. This method has the advantage of reducing the area occupied by the chip.

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

以上説明した様に本発明は、メモリバンクに依存しない
共通のメモリ領域を任意に設定することができるため、
メモリバンク型のアドレス割り付け方式の利点を損うこ
となく、ソフトウェア開発時の負担を軽減し、更に実動
作時の処理効率をも高めることができるという効果があ
る。
As explained above, the present invention can arbitrarily set a common memory area that does not depend on memory banks.
This has the effect of reducing the burden during software development and further increasing the processing efficiency during actual operation without sacrificing the advantages of the memory bank type address allocation method.

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

第1図は本発明の第1の実施例を示す図、第2図は本発
明の第2の実施例を示す図、第3図はCAレジスタの構
成の一例を示す図、第4図は従来の技術を説明するため
の図である。 10.11 12,21 22 23 2440.41
.42.43・メモリバンク、4,44・・・ポインタ
、1・・・ポインタの出力信号、30・・アドレス変換
回路、18・・・比較器、17・・・共通メモリ領域の
上限アドレスを格納するレジスタ、2・・・比較器の出
力信号線、15,25.45・・・バンクレジスタ、1
6,26.46・・・マルチプレクサ、29・・・制御
回路、31.33・・・スイッチ、32・・・インバー
タ、3.4・・・制御信号、3435・・ヒユーズ、3
6・・接地電位、37・・・電源電位。 −一1− uJ
FIG. 1 shows a first embodiment of the present invention, FIG. 2 shows a second embodiment of the invention, FIG. 3 shows an example of the configuration of a CA register, and FIG. FIG. 2 is a diagram for explaining a conventional technique. 10.11 12,21 22 23 2440.41
.. 42.43・Memory bank, 4, 44...Pointer, 1...Pointer output signal, 30...Address conversion circuit, 18...Comparator, 17...Stores the upper limit address of the common memory area register, 2... Comparator output signal line, 15, 25.45... Bank register, 1
6, 26.46...Multiplexer, 29...Control circuit, 31.33...Switch, 32...Inverter, 3.4...Control signal, 3435...Fuse, 3
6...ground potential, 37...power supply potential. -11- uJ

Claims (1)

【特許請求の範囲】 1、ランダムアクセスメモリのメモリ空間を複数のメモ
リバンクに分割し、前記メモリバンクの一つを指定する
情報をバンクレジスタに保持させ、前記バンクレジスタ
の保持情報が指定するメモリバンクを選択手段によって
選択し、メモリバンク内のアドレスを指定するためのポ
インタの内容によって前記選択されたメモリバンク内の
アドレスを指定するメモリ空間のアドレス割り付け方式
において、特定のアドレスを指定する基準レジスタと該
基準レジスタの内容と前記ポインタの内容とを比較する
比較手段とを備え、前記比較手段の出力によって前記選
択手段を制御して特定のバンクレジスタのみを選択せし
めることを特徴とするメモリ空間のアドレス割り付け方
式。 2、前記特定のアドレスとして共通メモリ領域の上限ま
たは下限のアドレスを前記基準レジスタに保持させ、前
記ポインタの内容が前記上限のアドレスよりも小さいと
きまたは前記下限のアドレスよりも大きいときに前記比
較手段の出力を発生させ、前記特定のメモリバンク内の
前記上限のアドレス未満のアドレスの領域または前記下
限のアドレスより大きいアドレスの領域を共通メモリ領
域として用いることを特徴とする請求項1記載のメモリ
空間のアドレス割り付け方式。 3、前記バンクレジスタの内容によって前記ポインタの
出力を変換し、予め定めたメモリバンク群のアドレスを
指定できるようにした制御手段を備えたことを特徴とす
る請求項1記載のアドレス割ち付け方式。 4、メモリ空間をある単位毎に分割したランダムアクセ
スメモリを内蔵するマイクロコンピュータにおいて、前
記単位を指定するための第1のレジスタと、該第1のレ
ジスタの内容により前記単位を選択するための選択回路
と、前記単位内のアドレスを指定するためのポインタと
、前記第1のレジスタの内容により制御され前記ポイン
タの出力を変換し前記単位内のアドレスを指定するアド
レス変換回路と、前記ポインタにより指定されるアドレ
スとは異なる特定のアドレスを指定するための第2のレ
ジスタと、前記ポインタにより指定されるアドレスと前
記第2のレジスタにより指定されるアドレスとの大小を
比較し前記選択回路を制御する比較器とを有することを
特徴とするマイクロコンピュータ。
[Claims] 1. A memory space of a random access memory is divided into a plurality of memory banks, information specifying one of the memory banks is held in a bank register, and the memory specified by the information held in the bank register is A reference register for specifying a specific address in a memory space address allocation method in which a bank is selected by a selection means and the address within the selected memory bank is specified by the contents of a pointer for specifying an address within the memory bank. and a comparison means for comparing the contents of the reference register and the contents of the pointer, and the selection means is controlled by the output of the comparison means to select only a specific bank register. Address allocation method. 2. An upper or lower limit address of the common memory area is held in the reference register as the specific address, and when the contents of the pointer are smaller than the upper limit address or larger than the lower limit address, the comparing means 2. The memory space according to claim 1, wherein an area of addresses less than the upper limit address or an area of addresses greater than the lower limit address in the specific memory bank is used as a common memory area. address allocation method. 3. The address allocation method according to claim 1, further comprising a control means that converts the output of the pointer according to the contents of the bank register so as to specify an address of a predetermined group of memory banks. . 4. In a microcomputer incorporating a random access memory in which a memory space is divided into certain units, a first register for specifying the unit, and a selection for selecting the unit based on the contents of the first register. a pointer for specifying an address within the unit; an address conversion circuit that is controlled by the contents of the first register and converts the output of the pointer to specify an address within the unit; a second register for specifying a specific address different from the address specified by the pointer, and a comparison between the address specified by the pointer and the address specified by the second register to control the selection circuit; A microcomputer comprising a comparator.
JP16018390A 1990-06-19 1990-06-19 Address allocating system for memory space Pending JPH0449444A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16018390A JPH0449444A (en) 1990-06-19 1990-06-19 Address allocating system for memory space

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16018390A JPH0449444A (en) 1990-06-19 1990-06-19 Address allocating system for memory space

Publications (1)

Publication Number Publication Date
JPH0449444A true JPH0449444A (en) 1992-02-18

Family

ID=15709623

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16018390A Pending JPH0449444A (en) 1990-06-19 1990-06-19 Address allocating system for memory space

Country Status (1)

Country Link
JP (1) JPH0449444A (en)

Similar Documents

Publication Publication Date Title
JPS61139866A (en) Microprocessor
JPH0454652A (en) Microcomputer
US7114052B2 (en) Semiconductor memory device, a sector-address conversion circuit, an address-conversion method, and operation method of the semiconductor memory device
US6249837B1 (en) Memory with plurality of blocks each accessed selectively with either one of two operational modes to reduce current dissipation using values of register bits set by an instruction signal
KR100618858B1 (en) A semiconductor memory device capable of varying the number of banks to be refreshed when performing a refresh and a refresh method thereof
JPH0449444A (en) Address allocating system for memory space
US20020083291A1 (en) Nonvolatile semiconductor memory
US5347641A (en) Page register with a don&#39;t care function
US6772271B2 (en) Reduction of bank switching instructions in main memory of data processing apparatus having main memory and plural memory
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
JP2002163887A (en) Synchronous DRAM
JPH07334420A (en) Extended memory control circuit
KR920003845B1 (en) Rom region expansion system for users of pc
GB2282470A (en) Expanded memory management for multi-tasking environment.
JP2004145446A (en) Storage device and control method thereof
KR940003632B1 (en) Method and circuit extending memory space in micro-processor
JP3429880B2 (en) Memory device and memory access method
JPS6058493B2 (en) information processing equipment
JPH04177439A (en) Single chip microcomputer
JPH05334235A (en) Data transfer system
JPH03211641A (en) Address designation method for memory device
JPH0934776A (en) Device and method for processing information
JPH06337847A (en) Multiprocessor equipment
JPH03152796A (en) Ic memory
JPH01226051A (en) Memory controller