JPH11143767A - Memory switching processor and method therefor - Google Patents

Memory switching processor and method therefor

Info

Publication number
JPH11143767A
JPH11143767A JP9307115A JP30711597A JPH11143767A JP H11143767 A JPH11143767 A JP H11143767A JP 9307115 A JP9307115 A JP 9307115A JP 30711597 A JP30711597 A JP 30711597A JP H11143767 A JPH11143767 A JP H11143767A
Authority
JP
Japan
Prior art keywords
address
memory
memories
bank
generated
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
JP9307115A
Other languages
Japanese (ja)
Inventor
Toshiaki Aoki
鋭明 青木
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP9307115A priority Critical patent/JPH11143767A/en
Publication of JPH11143767A publication Critical patent/JPH11143767A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a memory switching processor for increasing a memory capacity for a computer circuit having a limited address space without necessitating plural memory chips. SOLUTION: This device is provided with a memory part 21 constituted of one memory chip in which plural memories are incorporated, and a second address is assigned to each memory as a physical address in the memory chip, and a memory switching control circuit 23 for selectively switching the plural memories by generating at least one of a selection signal and one part of the first address generated from an MPU 22 as one part of the second address to be applied to the plural memories in the memory part 21, adding one part of the second address to the first address for generating the second address, and applying it to the memory part 21.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、限られたアドレ
ス空間を有するコンピュータ回路において、メモリ容量
を増やすために、複数のメモリの切り替えを行なうメモ
リ切替処理装置及び方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory switching processing apparatus and method for switching a plurality of memories in a computer circuit having a limited address space in order to increase the memory capacity.

【0002】[0002]

【従来の技術】一般に、コンピュータ回路においては、
小型機器に実装されることが多いことから、装置自身の
小型化及び低価格化が求められるため、小規模のマイク
ロコンピュータが使用されている。そして、このマイク
ロコンピュータにおいては、技術の進歩とともにソフト
が複雑化するために、メモリ容量の増加が求められてい
る。ところが、このマイクロコンピュータでは、アドレ
ス空間が限られているため、同一のアドレス空間に複数
個のメモリチップ(IC:Integrated Circuit )を割り
当て、これらメモリチップの切り替えを行なうことで、
メモリ容量の増加を図っている。
2. Description of the Related Art Generally, in a computer circuit,
Since it is often mounted on a small device, it is required to reduce the size and cost of the device itself. Therefore, a small-scale microcomputer is used. In this microcomputer, an increase in memory capacity is required because software becomes more complicated as technology advances. However, in this microcomputer, since the address space is limited, a plurality of memory chips (ICs: Integrated Circuits) are assigned to the same address space, and these memory chips are switched.
The aim is to increase the memory capacity.

【0003】図4は、上記のように同一のアドレス空間
に割り当てられた複数個のメモリチップの切り替えを行
なうための従来のメモリ切替処理装置の構成の一例を示
している。
FIG. 4 shows an example of the configuration of a conventional memory switching processor for switching a plurality of memory chips allocated to the same address space as described above.

【0004】図4において、図中符号11〜14は例え
ば4個のメモリチップである。このうちの1つを共通メ
モリ11とし、その他をバンク1メモリ12、バンク2
メモリ13、バンク3メモリ14としている。これら共
通メモリ11、バンク1メモリ12、バンク2メモリ1
3及びバンク3メモリ14は、それぞれの容量に応じた
アドレス入力端を有している。ここで、共通メモリ11
は、例えば32kバイトであるので、15本のアドレス
(A14〜A0)入力端を有している。また、バンク1
メモリ12、バンク2メモリ13及びバンク3メモリ1
4は、例えば16kバイトであるので、14本のアドレ
ス(A13〜A0)入力端を有している。
[0004] In FIG. 4, reference numerals 11 to 14 denote, for example, four memory chips. One of them is a common memory 11, the other is a bank 1 memory 12, a bank 2
The memory 13 and the bank 3 memory 14 are used. These common memory 11, bank 1 memory 12, bank 2 memory 1
The third and bank 3 memories 14 have address input terminals corresponding to the respective capacities. Here, the common memory 11
Is 32 kbytes, for example, and thus has 15 address (A14 to A0) input terminals. Bank 1
Memory 12, bank 2 memory 13, and bank 3 memory 1
4 has, for example, 16 kbytes, and thus has 14 address (A13 to A0) input terminals.

【0005】また、共通メモリ11、バンク1メモリ1
2、バンク2メモリ13及びバンク3メモリ14は、そ
れぞれMPU(Micro Processing Unit) 15にアドレス
バス及びデータバスを介して接続されている。さらに、
共通メモリ11、バンク1メモリ12、バンク2メモリ
13及びバンク3メモリ14には、メモリ切替制御回路
16により、各々メモリ11〜14からデータを選択的
に読み出すためのチップセレクト信号が与えられてい
る。
A common memory 11, a bank 1 memory 1
2, the bank 2 memory 13 and the bank 3 memory 14 are connected to an MPU (Micro Processing Unit) 15 via an address bus and a data bus, respectively. further,
A chip select signal for selectively reading data from the memories 11 to 14 is given to the common memory 11, the bank 1 memory 12, the bank 2 memory 13, and the bank 3 memory 14 by the memory switching control circuit 16. .

【0006】図5は、アドレス空間における上記共通メ
モリ11、バンク1メモリ12、バンク2メモリ13及
びバンク3メモリ14の配置例を示している。すなわ
ち、共通メモリ11は、32kバイトである場合に、0
〜7FFFまでのアドレスを有しており、バンク1メモ
リ12、バンク2メモリ13及びバンク3メモリ14
は、32kバイトである場合に、不使用ブロックを含ん
でしまうと、それぞれ0〜3FFFまでのアドレスを有
することになる。そして、MPU15は、共通メモリ1
1に対して0〜7FFFまでのアドレスを割り当て、バ
ンク1メモリ12、バンク2メモリ13及びバンク3メ
モリ14に対して8000〜BFFFまでのアドレスを
割り当てている。
FIG. 5 shows an example of the arrangement of the common memory 11, the bank 1 memory 12, the bank 2 memory 13 and the bank 3 memory 14 in the address space. That is, when the common memory 11 is 32 Kbytes,
77FFF, bank 1 memory 12, bank 2 memory 13 and bank 3 memory 14
Is 32 kbytes, and if unused blocks are included, each has an address of 0 to 3FFF. Then, the MPU 15 controls the common memory 1
Addresses from 0 to 7FFF are assigned to 1 and addresses from 8000 to BFFF are assigned to the bank 1 memory 12, the bank 2 memory 13, and the bank 3 memory 14.

【0007】図6は、上記メモリ切替制御回路16の詳
細の一例を示している。図6において、メモリ切替制御
回路16は、MPU15から発生される16本のアドレ
ス信号(A15〜A0)のうち、2本の上位アドレス信
号(A15,A14)を取り込んでいる。これら上位ア
ドレス信号(A15,A14)は、AND回路16a〜
16cにそれぞれ供給される。そして、MPU15から
0〜3FFFのアドレスが発生されると、(A15,A
14)=(0,0)となり、AND回路16aの出力が
OR回路16eを介してチップセレクト信号として共通
メモリ11に供給される。また、MPU15から400
0〜7FFFのアドレスが発生されると、(A15,A
14)=(0,1)となり、AND回路16bの出力が
OR回路16eを介してチップセレクト信号として共通
メモリ11に供給される。
FIG. 6 shows an example of the memory switching control circuit 16 in detail. In FIG. 6, the memory switching control circuit 16 takes in two higher address signals (A15, A14) out of the 16 address signals (A15 to A0) generated from the MPU 15. These upper address signals (A15, A14) are supplied to AND circuits 16a to 16a.
16c. When the addresses of 0 to 3FFF are generated from the MPU 15, (A15, A
14) = (0,0), and the output of the AND circuit 16a is supplied to the common memory 11 as a chip select signal via the OR circuit 16e. Also, MPU 15 to 400
When addresses of 0 to 7FFF are generated, (A15, A15
14) = (0, 1), and the output of the AND circuit 16b is supplied to the common memory 11 as a chip select signal via the OR circuit 16e.

【0008】また、メモリ切替制御回路16において、
MPU15から8000〜BFFFのアドレスが発生さ
れると、(A15,A14)=(1,0)となり、AN
D回路16cの出力がAND回路16f〜16hの一方
の入力端に供給される。AND回路16f〜16hの他
方の入力端には、各バンクメモリを選択するためのバン
ク選択信号を発生させるバンク選択用出力ポート16i
の出力が供給される。
In the memory switching control circuit 16,
When the addresses of 8000 to BFFF are generated from the MPU 15, (A15, A14) = (1, 0), and AN
The output of the D circuit 16c is supplied to one input terminal of the AND circuits 16f to 16h. The other input terminals of the AND circuits 16f to 16h have bank selection output ports 16i for generating bank selection signals for selecting each bank memory.
Is supplied.

【0009】ここで、バンク1メモリ12を選択する場
合には、バンク選択用出力ポート16iからのバンク選
択信号がAND回路16fに供給されることで、AND
回路16fの出力がチップセレクト信号としてバンク1
メモリ12に供給される。また、バンク2メモリ13を
選択する場合には、バンク選択用出力ポート16iから
のバンク選択信号がAND回路16gに供給されること
で、AND回路16gの出力がチップセレクト信号とし
てバンク2メモリ13に供給される。さらに、バンク3
メモリ14を選択する場合には、バンク選択用出力ポー
ト16iからのバンク選択信号がAND回路16hに供
給されることで、AND回路16hの出力がチップセレ
クト信号としてバンク3メモリ14に供給される。
Here, when the bank 1 memory 12 is selected, the bank selection signal from the bank selection output port 16i is supplied to the AND circuit 16f, so that the AND operation is performed.
The output of the circuit 16f is used as a chip select signal in the bank 1
The data is supplied to the memory 12. When the bank 2 memory 13 is selected, the bank selection signal from the bank selection output port 16i is supplied to the AND circuit 16g, so that the output of the AND circuit 16g is output to the bank 2 memory 13 as a chip select signal. Supplied. In addition, Bank 3
When the memory 14 is selected, the bank selection signal from the bank selection output port 16i is supplied to the AND circuit 16h, so that the output of the AND circuit 16h is supplied to the bank 3 memory 14 as a chip select signal.

【0010】なお、上記共通メモリ11は、15本のア
ドレス信号(A14〜A0)を使用している。また、バ
ンク1メモリ12,バンク2メモリ13及びバンク3メ
モリ14は、最上位アドレスをLに固定するように設置
しており、メモリの前半分のアドレス空間を使用してい
る。
The common memory 11 uses 15 address signals (A14 to A0). The bank 1 memory 12, the bank 2 memory 13, and the bank 3 memory 14 are installed so that the highest address is fixed to L, and use the address space of the first half of the memory.

【0011】また、バンク1メモリ12,バンク2メモ
リ13及びバンク3メモリ14において、8000〜B
FFFのアドレスが選択されるときに、上位アドレス信
号(A15,A14)と前もって出力されたバンク選択
信号とのANDがとられるため、選ばれた1つの例えば
バンク1メモリ12の実際のアドレス0〜3FFFが、
MPU15からみると8000〜BFFFになったよう
に動作する。
In the bank 1 memory 12, the bank 2 memory 13, and the bank 3 memory 14, 8000 to B
When the address of the FFF is selected, the upper address signal (A15, A14) is ANDed with the previously output bank select signal, so that the actual address 0 of the selected one, for example, the bank 1 memory 12 is used. 3FFF is
The MPU 15 operates as if it were 8000 to BFFF.

【0012】次に、上記構成における動作を説明する。 (1)MPU15が共通メモリ11からプログラムを読
み出す。 (2)共通メモリ11から各々バンク1メモリ12,バ
ンク2メモリ13及びバンク3メモリ14にプログラム
がジャンプする際に、その前にMPU15がどのバンク
を選択するかの情報(D7〜D0)をソフトによりメモ
リ切替制御回路16に出力する。 (3)メモリ切替制御回路16では、情報(D7〜D
0)に基づいてバンク選択用出力ポート16iにより出
力されたバンク選択信号と上位アドレス信号(A15,
A14)とを用いて、バンク1メモリ12,バンク2メ
モリ13及びバンク3メモリ14のチップセレクト信号
(CS)を生成し、各メモリチップ11〜14に供給す
る。
Next, the operation of the above configuration will be described. (1) The MPU 15 reads a program from the common memory 11. (2) When the program jumps from the common memory 11 to the bank 1 memory 12, the bank 2 memory 13, and the bank 3 memory 14, respectively, the information (D7 to D0) indicating which bank is to be selected by the MPU 15 before the program jumps. Output to the memory switching control circuit 16. (3) In the memory switching control circuit 16, the information (D7 to D7)
0) based on the bank selection signal output from the bank selection output port 16i and the upper address signal (A15,
A14), a chip select signal (CS) for the bank 1 memory 12, the bank 2 memory 13, and the bank 3 memory 14 is generated and supplied to each of the memory chips 11 to 14.

【0013】ところで、上記のようにメモリ容量を増加
させる方式では、同一アドレス空間に複数のメモリチッ
プを使用することにより、部品実装・価格の面で不利と
なる場合がある。また、近時では、技術進歩が速いため
に、メモリの価格は容量に比例せず、容量が多くなって
も価格及び大きさ(部品実装面積)はわずかに増加する
程度である。さらに、技術進歩により少容量のメモリは
無くなる方向にあるため、上記方式では、メモリの一部
しか利用されずに利用効率が除々に悪くなる方向にあ
る。
By the way, the method of increasing the memory capacity as described above may be disadvantageous in terms of component mounting and cost by using a plurality of memory chips in the same address space. In recent years, due to rapid technological progress, the price of memory is not proportional to the capacity, and even if the capacity increases, the price and size (component mounting area) slightly increase. In addition, since small-capacity memories tend to disappear due to technological progress, in the above-described method, only a part of the memories is used, and the utilization efficiency gradually decreases.

【0014】[0014]

【発明が解決しようとする課題】以上のように、従来の
メモリ切替処理装置では、限られたアドレス空間を有す
るコンピュータ回路に対してメモリ容量を増やす場合
に、同一アドレス空間に複数のメモリチップを使用する
ため、部品実装・価格の面で不利になるという問題を有
している。
As described above, in the conventional memory switching processing device, when increasing the memory capacity of a computer circuit having a limited address space, a plurality of memory chips are placed in the same address space. There is a problem in that it is disadvantageous in terms of component mounting and price due to use.

【0015】この発明の目的は、複数のメモリチップを
必要とせずに、限られたアドレス空間を有するコンピュ
ータ回路に対してメモリ容量の増加を図り得るメモリ切
替処理装置及び方法を提供することにある。
An object of the present invention is to provide a memory switching processing apparatus and method capable of increasing a memory capacity of a computer circuit having a limited address space without requiring a plurality of memory chips. .

【0016】[0016]

【課題を解決するための手段】この発明に係るメモリ切
替処理装置は、予め決められたアドレス空間を有する装
置に適用されるものに着目し、データを格納し、アドレ
ス発生源から発生されるアドレス空間に対応した第1の
アドレスに基づいて少なくともデータを読み出し可能な
複数のメモリのうちの一部をアドレス空間内の同一アド
レス空間に配置し、第1のアドレスに応じて、複数のメ
モリを選択するための選択信号を各々メモリに与えるこ
とで、複数のメモリから選択的にデータの読み出しを行
なうように各々メモリを切り替えるメモリ切替処理装置
を対象にしている。
A memory switching processing device according to the present invention focuses on a device applied to a device having a predetermined address space, stores data, and stores an address generated from an address generation source. A part of a plurality of memories from which data can be read at least based on a first address corresponding to the space is arranged in the same address space in the address space, and a plurality of memories are selected according to the first address The present invention is directed to a memory switching processing device that switches memories so as to selectively read data from a plurality of memories by supplying selection signals to the memories.

【0017】そして、1個のメモリチップから成り、こ
のメモリチップに複数のメモリを内蔵し、各々メモリに
メモリチップにおける物理アドレスとしての第2のアド
レスを割り当てるメモリ部と、このメモリ部内の複数の
メモリに与えるべく選択信号及びアドレス発生源から発
生される第1のアドレスの一部のうち少なくとも一方を
第2のアドレスの一部に生成し、この第2のアドレスの
一部を第1のアドレスに加えて第2のアドレスに生成さ
せるようにしてメモリ部に与えることで、複数のメモリ
を選択的に切り替えるメモリ切替制御手段とを具備して
なることを特徴とする。
A memory section is composed of a single memory chip, a plurality of memories are built in the memory chip, and a second address is assigned to each memory as a physical address in the memory chip. At least one of a selection signal and a portion of a first address generated from an address generation source to be provided to a memory is generated as a portion of a second address, and the portion of the second address is converted to a first address. And a memory switching control means for selectively switching a plurality of memories by giving a second address to the memory unit.

【0018】この構成によれば、1個のメモリチップが
複数のメモリを内蔵し、各々メモリにメモリチップにお
ける物理アドレスとしての第2のアドレスを割り当てる
構成であることに着目されており、複数のメモリを選択
するための選択信号及びアドレス発生源から発生される
第1のアドレスの一部のうち少なくとも一方が第2のア
ドレスの一部に生成され、メモリチップに与えられるこ
とで、メモリチップ内でこの第2のアドレスの一部がア
ドレス発生源から発生される第1のアドレスに加えられ
て第2のアドレスが生成され、第2のアドレスに基づい
て、複数のメモリから選択的にデータの読み出しが行な
われる。
According to this configuration, it is noted that one memory chip incorporates a plurality of memories, and each memory is assigned a second address as a physical address in the memory chip. At least one of a selection signal for selecting a memory and a part of a first address generated from an address generation source is generated as a part of a second address, and is provided to the memory chip. In addition, a part of the second address is added to the first address generated from the address generation source to generate a second address, and based on the second address, data can be selectively output from a plurality of memories. Reading is performed.

【0019】この結果、複数のメモリを内蔵した1個の
メモリチップを用いて、このメモリチップ内で複数のメ
モリに対応する第2のアドレスに基づいてメモリ切替を
行なうことで、同一アドレス空間に複数のメモリチップ
を割り当てることなく、限られたアドレス空間を有する
コンピュータ回路に対してメモリ容量の増加を図ること
が可能となる。
As a result, by using one memory chip containing a plurality of memories and performing memory switching based on the second addresses corresponding to the plurality of memories in this memory chip, the same address space can be obtained. It is possible to increase the memory capacity of a computer circuit having a limited address space without allocating a plurality of memory chips.

【0020】この発明に係るメモリ切替処理方法は、予
め決められたアドレス空間を有する装置に用いられると
きに、データを格納し、アドレス発生源から発生される
アドレス空間に対応した第1のアドレスに基づいて少な
くともデータを読み出し可能な複数のメモリのうちの少
なくとも一部がアドレス空間内の同一アドレス空間に配
置されている状態で、第1のアドレスに応じて、複数の
メモリを選択するための選択信号を各々メモリに与える
ことで、複数のメモリから選択的にデータの読み出しを
行なうように各々メモリを切り替えるメモリ切替処理方
法を対象にしている。
The memory switching processing method according to the present invention, when used in an apparatus having a predetermined address space, stores data and stores the data in a first address corresponding to an address space generated from an address generation source. Selection for selecting a plurality of memories in accordance with a first address in a state where at least some of the plurality of memories from which data can be read based on the first address are arranged in the same address space in the address space The present invention is directed to a memory switching processing method in which a memory is switched so that signals are supplied to memories to selectively read data from a plurality of memories.

【0021】そして、1個のメモリチップから成り、こ
のメモリチップに複数のメモリを内蔵し、各々メモリに
当該メモリチップにおける物理アドレスとしての第2の
アドレスを割り当てるメモリ部を備えた場合に、このメ
モリ部内の複数のメモリに与えるべく選択信号及び第1
のアドレスの一部のうち少なくとも一方を第2のアドレ
スの一部に生成し、該第2のアドレスの一部を第1のア
ドレスに加えて第2のアドレスに生成させるようにして
メモリ部に与えることで、複数のメモリを選択的に切り
替えるようにしている。
When one memory chip is provided, a plurality of memories are built in the memory chip, and each memory is provided with a memory section for assigning a second address as a physical address in the memory chip. A selection signal and a first signal to be supplied to a plurality of memories in the memory unit;
At least one of a part of the second address is generated as a part of the second address, and a part of the second address is generated at the second address in addition to the first address. By giving it, a plurality of memories are selectively switched.

【0022】この方法によれば、複数のメモリを内蔵
し、各々メモリにメモリチップにおける物理アドレスと
しての第2のアドレスを割り当てる1個のメモリチップ
が用いられた場合に、複数のメモリを選択するための選
択信号及びアドレス発生源から発生される第1のアドレ
スの一部のうち少なくとも一方を第2のアドレスの一部
に生成して、メモリチップに与えることで、複数のメモ
リから選択的にデータの読み出しを行なうようにしてい
る。
According to this method, a plurality of memories are selected when one memory chip containing a plurality of memories and assigning a second address as a physical address in the memory chip to each memory is used. Signal and a first address generated from an address generation source are generated as a part of a second address and supplied to a memory chip, thereby selectively selecting from a plurality of memories. Data is read out.

【0023】このため、複数のメモリを内蔵した1個の
メモリチップを用いて、このメモリチップ内で複数のメ
モリに対応する第2のアドレスに基づいてメモリ切替を
行なうことで、限られたアドレス空間を有するコンピュ
ータ回路に対してメモリ容量の増加を図ることが可能と
なる。
Therefore, by using a single memory chip containing a plurality of memories and performing memory switching based on the second address corresponding to the plurality of memories in the memory chip, a limited address can be obtained. It is possible to increase the memory capacity of a computer circuit having space.

【0024】[0024]

【発明の実施の形態】以下、この発明の実施の形態につ
いて図面を参照して詳細に説明する。図1は、この発明
に係るメモリ切替処理装置の一実施の形態におけるブロ
ック構成を示している。ここでは、例えば8ビットのマ
イクロコンピュータ回路に適用されており、このマイク
ロコンピュータ回路は、通常アドレス信号を16ビット
有しており、このため、64kバイトのアドレス空間が
ある。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 shows a block configuration in an embodiment of a memory switching processing device according to the present invention. Here, the present invention is applied to, for example, an 8-bit microcomputer circuit. This microcomputer circuit usually has 16 bits of an address signal, and therefore has an address space of 64 Kbytes.

【0025】図1において、図中符号21はプログラム
及びデータ等を格納し、アドレスに基づいてプログラム
及びデータ等を読み出し可能な共通メモリ領域及び複数
のバンクメモリ領域を1個のメモリチップにより備える
メモリ部である。このメモリ部21は、合計80kバイ
ト(共通メモリ32k+バンクメモリ16k×3)を有
するメモリ容量を必要とするため、例えば128kバイ
トのメモリチップを使用している。そして、メモリ部2
1は、その共通メモリ領域と複数のバンクメモリ領域と
に対して、図2に示すように、それぞれにメモリにおけ
る物理アドレスであるメモリアドレスを割り当ててい
る。このとき、メモリ部21は、共通メモリ領域がメモ
リアドレスの先頭となるように、共通メモリ領域及び複
数のバンクメモリ領域を順に配置している。また、メモ
リ部21は、MPU22にデータバス及びアドレスバス
等を介して接続されている。
In FIG. 1, reference numeral 21 denotes a memory that stores a program, data, and the like, and has a common memory area and a plurality of bank memory areas that can read out the program, data, and the like based on an address by a single memory chip. Department. Since the memory unit 21 requires a memory capacity of a total of 80 kbytes (common memory 32 k + bank memory 16 k × 3), for example, a 128 kbyte memory chip is used. And the memory unit 2
1 assigns a memory address, which is a physical address in the memory, to the common memory area and the plurality of bank memory areas, as shown in FIG. At this time, the memory unit 21 arranges the common memory area and the plurality of bank memory areas in order such that the common memory area is at the head of the memory address. The memory unit 21 is connected to the MPU 22 via a data bus and an address bus.

【0026】ここで、メモリ部21は、17本(A17
〜A0)のアドレス入力端を有している。これら17本
のアドレスのうち15本のアドレス信号(A14〜A
0)は、MPU22から直接メモリ部21に与えられ
る。そして、残り2本のアドレス信号(A16,A1
5)は、メモリ切替制御回路23にて与えられる。メモ
リ切替制御回路23は、バンク選択信号とMPU22の
上位アドレス信号(A15,A14)とを使用して、メ
モリ部21の最上位のアドレス信号(A16,A15)
を生成し、メモリ部21に与えている。
Here, the memory unit 21 has 17 (A17
To A0). Of these 17 addresses, 15 address signals (A14 to A14)
0) is directly supplied from the MPU 22 to the memory unit 21. Then, the remaining two address signals (A16, A1
5) is given by the memory switching control circuit 23. The memory switching control circuit 23 uses the bank selection signal and the upper address signal (A15, A14) of the MPU 22 to output the highest address signal (A16, A15) of the memory unit 21.
Is generated and given to the memory unit 21.

【0027】すなわち、アドレス0〜7FFFが選択さ
れているとき、(A16,A15)=(0,0)、アド
レス8000〜BFFF、バンク1が選択されていると
き、(A16,A15)=(0,1)、アドレス800
0〜BFFF、バンク2が選択されているとき、(A1
6,A15)=(1,0)、アドレス8000〜BFF
F、バンク3が選択されているとき、(A16,A1
5)=(1,1)、となるようなアドレス信号A16,
A15を発生させることにより、1つのメモリ部21で
バンクの切り替えが可能となる。なお、コンピュータ回
路は、このメモリ部21以外の信号アクセス時にアクセ
ス信号がぶつからないように、0〜BFFFのアドレス
信号をメモリ部21に与えるようにしている。
That is, when addresses 0 to 7FFF are selected, (A16, A15) = (0, 0), and when addresses 8000 to BFFF and bank 1 are selected, (A16, A15) = (0, 0). , 1), address 800
0 to BFFF and bank 2 are selected, (A1
6, A15) = (1, 0), address 8000 to BFF
F, when bank 3 is selected, (A16, A1
5) = (1, 1), the address signal A16,
By generating A15, the bank can be switched in one memory unit 21. It should be noted that the computer circuit supplies address signals of 0 to BFFF to the memory unit 21 so that an access signal does not collide when a signal other than the memory unit 21 is accessed.

【0028】図3は、上記メモリ切替制御回路23の詳
細の一例を示している。図3において、メモリ切替制御
回路23は、MPU22から発生される16本のアドレ
ス信号(A15〜A0)のうち、2本の上位アドレス信
号(A15,A14)を取り込んでいる。これら上位ア
ドレス信号(A15,A14)は、AND回路23a〜
23cにそれぞれ供給される。そして、MPU22から
0〜3FFFのアドレスが発生されると、(A15,A
14)=(0,0)となり、AND回路23aの出力が
OR回路23d,23eを介してチップセレクト信号と
してメモリ部21に供給される。また、MPU22から
4000〜7FFFのアドレスが発生されると、(A1
5,A14)=(0,1)となり、AND回路23bの
出力がOR回路23d,23eを介してチップセレクト
信号としてメモリ部21に供給される。この場合、共通
メモリ領域が選択されている。
FIG. 3 shows an example of the memory switching control circuit 23 in detail. 3, the memory switching control circuit 23 takes in two higher address signals (A15, A14) out of 16 address signals (A15 to A0) generated from the MPU 22. These upper address signals (A15, A14) are supplied to AND circuits 23a to 23a.
23c. When the addresses of 0 to 3FFF are generated from the MPU 22, (A15, A
14) = (0,0), and the output of the AND circuit 23a is supplied to the memory unit 21 as a chip select signal via the OR circuits 23d and 23e. When addresses of 4000 to 7FFF are generated from the MPU 22, (A1
5, A14) = (0, 1), and the output of the AND circuit 23b is supplied to the memory unit 21 as a chip select signal via the OR circuits 23d and 23e. In this case, the common memory area has been selected.

【0029】また、メモリ切替制御回路23において、
MPU22から8000〜BFFFのアドレスが発生さ
れると、(A15,A14)=(1,0)となり、AN
D回路23cの出力がAND回路23f〜23hの一方
の入力端に供給される。AND回路23f〜23hの他
方の入力端には、各バンクメモリ領域を選択するための
バンク選択信号を発生させるバンク選択用出力ポート2
3iの出力が供給される。
In the memory switching control circuit 23,
When an address of 8000 to BFFF is generated from the MPU 22, (A15, A14) = (1, 0), and AN
The output of the D circuit 23c is supplied to one input terminal of the AND circuits 23f to 23h. The other input terminals of the AND circuits 23f to 23h have a bank selection output port 2 for generating a bank selection signal for selecting each bank memory area.
3i is provided.

【0030】ここで、8000〜BFFFのアドレスが
発生された状態で、バンク選択用出力ポート23iから
のバンク選択信号がAND回路23f〜23hに選択的
に供給されることで、AND回路23f〜23hの出力
がOR回路23j,23kを介して上位アドレス信号A
15,A16としてメモリ部21に供給される。メモリ
部21では、OR回路23j,23kの出力の有無を検
出することで、共通メモリ領域及び複数のバンクメモリ
領域を選択する。
Here, the bank selection signal from the bank selection output port 23i is selectively supplied to the AND circuits 23f to 23h in the state where the addresses of 8000 to BFFF are generated, so that the AND circuits 23f to 23h Output from the upper address signal A via OR circuits 23j and 23k.
15 and A16 are supplied to the memory unit 21. The memory unit 21 selects the common memory area and the plurality of bank memory areas by detecting the presence or absence of the output of the OR circuits 23j and 23k.

【0031】なお、上記メモリ切替制御回路23におい
て、MPU22から発生されるアドレス信号(A15〜
A0)は、メモリ部21以外の図示しないRAMにも与
えられており、バンク選択用出力ポート23iに与えれ
るチップセレクト信号(CS)も次に、メモリ部21に
おけるメモリ切り替えの動作を説明する。 (1)MPU22がメモリ部21の共通メモリ領域から
プログラムを読み出す。 (2)共通メモリ領域からバンクメモリ領域にプログラ
ムがジャンプする際に、その前にMPU22がどのバン
クメモリ領域を選択するかの情報(D7〜D0)をソフ
トによりメモリ切替制御回路23に出力する。 (3)メモリ切替制御回路23では、情報(D7〜D
0)に基づいてバンク選択用出力ポート23iにより出
力されたバンク選択信号と上位アドレス信号(A15,
A14)とを用いてメモリ部21に対する上位アドレス
信号(A16,A15)を生成し、メモリ部21に供給
する。
In the memory switching control circuit 23, an address signal (A15 to A15) generated from the MPU 22 is used.
A0) is also supplied to a RAM (not shown) other than the memory unit 21, and the chip select signal (CS) supplied to the bank selection output port 23i will be described next. (1) The MPU 22 reads a program from the common memory area of the memory unit 21. (2) Before the program jumps from the common memory area to the bank memory area, the MPU 22 outputs information (D7 to D0) indicating which bank memory area to select to the memory switching control circuit 23 by software. (3) In the memory switching control circuit 23, the information (D7 to D7)
0) based on the bank select signal output from the bank select output port 23i and the upper address signal (A15,
A14) and the upper address signals (A16, A15) for the memory unit 21 are generated and supplied to the memory unit 21.

【0032】したがって、上記実施の形態によれば、1
個のメモリチップから成るメモリ部21に共通メモリ領
域及び複数のバンクメモリ領域を備え、各々メモリにメ
モリアドレスを割り当てる構成に着目しており、メモリ
切替制御回路23にて複数のバンクメモリ領域を選択す
るためのバンク選択信号とMPU22から発生される上
位のアドレス信号(A15,A14)とを用いて上位の
メモリアドレス信号(A16,A15)を生成し、メモ
リ部21に与えている。すると、メモリ部21内でこの
上位のメモリアドレス信号(A16,A15)がMPU
22から与えられるアドレス信号(A14〜A0)に加
えられてメモリアドレスが生成され、このメモリアドレ
スに基づいて、共通メモリ領域及び複数のバンクメモリ
領域から選択的にデータが読み出される。
Therefore, according to the above embodiment, 1
The memory section 21 including a plurality of memory chips includes a common memory area and a plurality of bank memory areas, and focuses on a configuration in which memory addresses are assigned to respective memories. An upper memory address signal (A16, A15) is generated by using a bank selection signal for performing the operation and an upper address signal (A15, A14) generated from the MPU 22, and is provided to the memory unit 21. Then, in the memory unit 21, the higher memory address signals (A16, A15) are
A memory address is generated in addition to the address signal (A14 to A0) given from the memory 22, and data is selectively read from the common memory area and the plurality of bank memory areas based on the memory address.

【0033】このため、共通メモリ領域及び複数のバン
クメモリ領域を内蔵した1個のメモリチップであるメモ
リ部21を用いて、このメモリ部21内で共通メモリ領
域及び複数のバンクメモリ領域に対応するアドレスに基
づいてメモリ切替を行なうことで、同一アドレス空間に
複数のメモリチップを割り当てることなく、限られたア
ドレス空間を有するコンピュータ回路に対してメモリ容
量の増加を図ることが可能となる。
For this reason, the memory section 21 which is a single memory chip having a built-in common memory area and a plurality of bank memory areas is used to correspond to the common memory area and the plurality of bank memory areas in the memory section 21. By performing memory switching based on addresses, it is possible to increase the memory capacity of a computer circuit having a limited address space without allocating a plurality of memory chips to the same address space.

【0034】さらに、メモリ部21内で共通メモリ領域
及び複数のバンクメモリ領域の切り替えを行なうこと
で、部品実装及び価格の面でも有利となり、メモリに対
する利用効率も改善される。
Further, by switching between the common memory area and the plurality of bank memory areas in the memory section 21, it is advantageous in terms of component mounting and cost, and the utilization efficiency for the memory is improved.

【0035】なお、上記実施の形態において、メモリ部
21にROMを使用しているが、このメモリ部21の複
数のバンクメモリ領域に対してはRAM,入出力ポー
ト,あるいはこれらが混合された回路でも実施可能であ
る。また、メモリ部21には16kバイトおきに3つの
不使用ブロックを持っているが、メモリ切替制御回路2
3の構成を変えれば16kバイトのバンクメモリ領域を
6ブロックにすることもできるし、共通メモリ領域のブ
ロックとバンクメモリ領域のブロックの大きさを変える
こともできる。
In the above embodiment, a ROM is used for the memory unit 21. However, a RAM, an input / output port, or a circuit in which these are mixed are used for a plurality of bank memory areas of the memory unit 21. But it is possible. The memory unit 21 has three unused blocks every 16 kbytes.
By changing the configuration of No. 3, the 16-kbyte bank memory area can be changed to six blocks, and the size of the blocks of the common memory area and the blocks of the bank memory area can be changed.

【0036】また、メモリ切替制御回路23は、ソフト
でバンクを切り替える方法が一般的であるが、ハードで
切り替える方法も可能である。さらに、メモリ部21に
おいて、共通メモリ領域を持たず、すべてのメモリブロ
ックをバンクメモリ領域と考えることも可能である。す
なわち、MPU22のリセット時に必ず特定のバンクメ
モリ領域を選択してプログラムをスタートし、以後プロ
グラムの進行に応じて、バンクメモリ領域を切り替える
方法である。この場合、必ず同アドレス空間のバンクメ
モリ領域ではなく、別アドレスのバンクメモリ領域への
移動となる。
The memory switching control circuit 23 generally switches the bank by software, but it is also possible to switch the bank by hardware. Further, in the memory unit 21, it is possible to consider that all memory blocks do not have a common memory area and are all bank memory areas. In other words, a method in which a specific bank memory area is always selected when the MPU 22 is reset to start the program, and thereafter, the bank memory area is switched according to the progress of the program. In this case, the transfer is not necessarily to the bank memory area of the same address space, but to a bank memory area of another address.

【0037】なお、この発明は上記実施の形態に必ずし
も限定されるものではなく、この他その要旨を逸脱しな
い範囲で種々変形して実施できることはもちろんのこと
である。
It should be noted that the present invention is not necessarily limited to the above-described embodiment, and it goes without saying that various modifications can be made without departing from the scope of the invention.

【0038】[0038]

【発明の効果】以上詳述したようにこの発明によれば、
複数のメモリチップを必要とせずに、限られたアドレス
空間を有するコンピュータ回路に対してメモリ容量の増
加を図り得るメモリ切替処理装置及び方法を提供するこ
とができる。
As described in detail above, according to the present invention,
It is possible to provide a memory switching processing device and method capable of increasing a memory capacity for a computer circuit having a limited address space without requiring a plurality of memory chips.

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

【図1】この発明に係るメモリ切替処理装置及び方法の
一実施の形態を示すブロック構成図。
FIG. 1 is a block diagram showing an embodiment of a memory switching processing device and method according to the present invention.

【図2】同実施の形態における共通メモリ及び複数のバ
ンクメモリに対するアドレスの割り当てを説明するため
に示す図。
FIG. 2 is a view for explaining address assignment to a common memory and a plurality of bank memories in the embodiment;

【図3】同実施の形態におけるメモリ切替制御回路の一
例を示す回路構成図。
FIG. 3 is a circuit configuration diagram showing an example of a memory switching control circuit in the embodiment.

【図4】従来のメモリ切替処理装置を示すブロック構成
図。
FIG. 4 is a block diagram showing a conventional memory switching processing device.

【図5】同従来装置における共通メモリ及び複数のバン
クメモリに対するアドレスの割り当てを説明するために
示す図。
FIG. 5 is a view for explaining address assignment to a common memory and a plurality of bank memories in the conventional device.

【図6】同従来装置におけるメモリ切替制御回路の一例
を示す回路構成図。
FIG. 6 is a circuit diagram showing an example of a memory switching control circuit in the conventional device.

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

11…共通メモリ、 12…バンク1メモリ、 13…バンク2メモリ、 14…バンク3メモリ、 15,22…MPU、 16,23…メモリ切替制御回路、 21…メモリ部。 11: Common memory, 12: Bank 1 memory, 13: Bank 2 memory, 14: Bank 3 memory, 15, 22, MPU, 16, 23: Memory switching control circuit, 21: Memory unit.

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 予め決められたアドレス空間を有する装
置に適用されるものであって、データを格納し、アドレ
ス発生源から発生される前記アドレス空間に対応した第
1のアドレスに基づいて少なくとも前記データを読み出
し可能な複数のメモリを備え、これら複数のメモリのう
ちの少なくとも一部が前記アドレス空間内の同一アドレ
ス空間に配置されており、前記第1のアドレスに応じ
て、前記複数のメモリを選択するための選択信号を各々
メモリに与えることで、前記複数のメモリから選択的に
データの読み出しを行なうように各々メモリを切り替え
るメモリ切替処理装置において、 1個のメモリチップから成り、このメモリチップに前記
複数のメモリを内蔵し、各々メモリに当該メモリチップ
における物理アドレスとしての第2のアドレスを割り当
てるメモリ部と、 このメモリ部内の前記複数のメモリに与えるべく前記選
択信号及び前記第1のアドレスの一部のうち少なくとも
一方を前記第2のアドレスの一部に生成し、該第2のア
ドレスの一部を前記第1のアドレスに加えて前記第2の
アドレスを生成させるようにして前記メモリ部に与える
ことで、前記複数のメモリを選択的に切り替えるメモリ
切替制御手段とを具備してなることを特徴とするメモリ
切替処理装置。
1. Applicable to an apparatus having a predetermined address space, wherein data is stored and at least the address is generated based on a first address corresponding to the address space generated from an address generation source. A plurality of memories from which data can be read, at least a part of the plurality of memories is arranged in the same address space in the address space, and the plurality of memories are stored in accordance with the first address. A memory switching processing device for switching between memories so as to selectively read data from the plurality of memories by applying a selection signal for selection to each of the memories, comprising: a memory chip; And a second address as a physical address in the memory chip. And a memory for allocating at least one of the selection signal and a part of the first address to a part of the second address to be provided to the plurality of memories in the memory. Memory switching control means for selectively switching the plurality of memories by giving a part of the address to the memory unit so as to generate the second address in addition to the first address. A memory switching processing device, comprising:
【請求項2】 前記メモリ切替制御手段は、前記アドレ
ス発生源から発生される前記第1のアドレスが予め決め
られたビット数から成る場合に、前記第1のアドレスの
上位ビットの一部、もしくは該第1のアドレスの上位ビ
ットの一部と前記複数のメモリを選択するための情報と
を用いて、前記第2のアドレスの上位ビットの一部を生
成し、該第2のアドレスの上位ビットの一部を前記第1
のアドレスを形成する複数ビットに加えるようにして前
記メモリ部に与える手段を有してなることを特徴とする
請求項1記載のメモリ切替処理装置。
2. When the first address generated from the address generation source has a predetermined number of bits, the memory switching control means includes a part of upper bits of the first address, or Using a part of upper bits of the first address and information for selecting the plurality of memories, a part of upper bits of the second address is generated, and an upper bit of the second address is generated. Part of the first
2. The memory switching processing device according to claim 1, further comprising: means for adding the address to a plurality of bits forming the address to the memory unit.
【請求項3】 前記メモリ部は、複数のメモリのうち一
方が共通メモリであり、その他が複数のバンクメモリで
ある場合に、前記共通メモリが前記第2のアドレスの先
頭になるように、前記共通メモリ及び前記複数のバンク
メモリを順に配置してなることを特徴とする請求項1記
載のメモリ切替処理装置。
3. The memory unit according to claim 1, wherein one of the plurality of memories is a common memory and the other is a plurality of bank memories, such that the common memory is at the head of the second address. 2. The memory switching processing device according to claim 1, wherein a common memory and the plurality of bank memories are sequentially arranged.
【請求項4】 予め決められたアドレス空間を有する装
置において、データを格納し、アドレス発生源から発生
される前記アドレス空間に対応した第1のアドレスに基
づいて少なくとも前記データを読み出し可能な複数のメ
モリを用いた場合に、これら複数のメモリのうちの少な
くとも一部が前記アドレス空間内の同一アドレス空間に
配置されている状態で、前記第1のアドレスに応じて、
前記複数のメモリを選択するための選択信号を各々メモ
リに与えることで、前記複数のメモリから選択的にデー
タの読み出しを行なうように各々メモリを切り替えるメ
モリ切替処理方法において、 1個のメモリチップから成り、このメモリチップに前記
複数のメモリを内蔵し、各々メモリに当該メモリチップ
における物理アドレスとしての第2のアドレスを割り当
てるメモリ部を備えた場合に、 このメモリ部内の前記複数のメモリに与えるべく前記選
択信号及び前記第1のアドレスの一部のうち少なくとも
一方を前記第2のアドレスの一部に生成し、該第2のア
ドレスの一部を前記第1のアドレスに加えて前記第2の
アドレスを生成させるようにして前記メモリ部に与える
ことで、前記複数のメモリを選択的に切り替えるように
したことを特徴とするメモリ切替処理方法。
4. An apparatus having a predetermined address space, wherein a plurality of data can be stored and at least the data can be read out based on a first address corresponding to the address space generated from an address generation source. When a memory is used, at least a part of the plurality of memories is arranged in the same address space in the address space, and according to the first address,
A memory switching processing method for switching between memories so as to selectively read data from the plurality of memories by providing a selection signal for selecting the plurality of memories to each of the memories. In a case where the memory chip includes the plurality of memories and each of the memories includes a memory unit that allocates a second address as a physical address in the memory chip, the memory unit is provided with the plurality of memories. At least one of the selection signal and a part of the first address is generated as a part of the second address, and a part of the second address is added to the first address to generate the second address. By providing an address to the memory unit so as to generate an address, the plurality of memories are selectively switched. Memory switching processing method and butterflies.
【請求項5】 前記第1のアドレスが予め決められたビ
ット数から成るとき、 前記第1のアドレスの上位ビットの一部、もしくは該第
1のアドレスの上位ビットの一部と前記複数のメモリを
選択するための情報とを用いて、前記第2のアドレスの
上位ビットの一部を生成し、該第2のアドレスの上位ビ
ットの一部を前記第1のアドレスを形成する複数ビット
に加えるようにして前記メモリ部に与えるようにしたこ
とを特徴とする請求項4記載のメモリ切替処理方法。
5. When the first address has a predetermined number of bits, a part of upper bits of the first address or a part of upper bits of the first address and the plurality of memories And generating a part of upper bits of the second address using the information for selecting the first address and adding a part of upper bits of the second address to a plurality of bits forming the first address. 5. The memory switching processing method according to claim 4, wherein said memory switching processing is provided to said memory unit.
【請求項6】 前記メモリ部は、複数のメモリのうち一
方が共通メモリであり、その他が複数のバンクメモリで
ある場合に、前記共通メモリが前記第2のアドレスの先
頭になるように、前記共通メモリ及び前記複数のバンク
メモリを順に配置してなることを特徴とする請求項4記
載のメモリ切替処理方法。
6. The memory unit according to claim 1, wherein when one of the plurality of memories is a common memory and the other is a plurality of bank memories, the common memory is located at the head of the second address. 5. The method according to claim 4, wherein a common memory and the plurality of bank memories are sequentially arranged.
JP9307115A 1997-11-10 1997-11-10 Memory switching processor and method therefor Pending JPH11143767A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9307115A JPH11143767A (en) 1997-11-10 1997-11-10 Memory switching processor and method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9307115A JPH11143767A (en) 1997-11-10 1997-11-10 Memory switching processor and method therefor

Publications (1)

Publication Number Publication Date
JPH11143767A true JPH11143767A (en) 1999-05-28

Family

ID=17965216

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9307115A Pending JPH11143767A (en) 1997-11-10 1997-11-10 Memory switching processor and method therefor

Country Status (1)

Country Link
JP (1) JPH11143767A (en)

Similar Documents

Publication Publication Date Title
JP2007128633A (en) Semiconductor storage device and transmission/reception system having the same
US4870572A (en) Multi-processor system
US4718044A (en) Electronic apparatus having plural detachable memories
US5373467A (en) Solid state memory device capable of providing data signals on 2N data lines or N data lines
JPH11143767A (en) Memory switching processor and method therefor
JPH0628243A (en) Semiconductor integrated circuit
JPS6232516B2 (en)
US6289429B2 (en) Accessing multiple memories using address conversion among multiple addresses
JPS59148963A (en) Control system of storage device
JP3689927B2 (en) Image processing device
JP3315145B2 (en) Memory address allocation method for microprocessor system
JPH07334420A (en) Extended memory control circuit
JPS5952483A (en) Main storage device
KR850000710B1 (en) Memory bank system
JPH03232032A (en) Memory controller
JPH1165983A (en) Address space allocating system
JPH11149334A (en) Bus signal control circuit
JPH01226052A (en) Memory controller
JPS5856885B2 (en) Address control method
JP2004334256A (en) Data processing system and controller
JP2001155006A (en) Bus control circuit and microcomputer system using the same
KR20030039185A (en) Direct memory access controller
JPS60229152A (en) Memory device
JPS63257859A (en) Memory controller
JPH0611545A (en) Operation test circuit incorporated in ic chip