JPS6249459A - Memory bank switching system in microprocessor - Google Patents

Memory bank switching system in microprocessor

Info

Publication number
JPS6249459A
JPS6249459A JP19062585A JP19062585A JPS6249459A JP S6249459 A JPS6249459 A JP S6249459A JP 19062585 A JP19062585 A JP 19062585A JP 19062585 A JP19062585 A JP 19062585A JP S6249459 A JPS6249459 A JP S6249459A
Authority
JP
Japan
Prior art keywords
memory bank
address
memory
cpu
microprocessor
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
JP19062585A
Other languages
Japanese (ja)
Inventor
Haruki Ishimochi
春樹 石持
Fuyuki Kobayashi
小林 冬記
Mamoru Kawagishi
川岸 守
Masayuki Eto
正幸 江藤
Shinpei Yamaguchi
真平 山口
Kazutoshi Hatano
波多野 一敏
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP19062585A priority Critical patent/JPS6249459A/en
Publication of JPS6249459A publication Critical patent/JPS6249459A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain a memory bank switching mechanism using simple circuit configuration by making specific addresses different from each other correspond to plural memory banks and accessing a memory bank corresponding to the specific address automatically when a CPU accessed. CONSTITUTION:Specific addresses different from each other are allocated to correspond to plural memory banks 1-3 just as their naming. When a CPU accessed a specific address, a memory bank corresponding to the specific address is accessed automatically by a memory bank switching mechanism X. For instance, when the CPU accessed 0000 address, only the memory bank 1 is selected, and when the CPU accessed 0001 address, only the memory bank 2 is selected, and when the CPU accessed 0002, only the bank 3 is selected and kept in usable state respectively.

Description

【発明の詳細な説明】 (技術分野) 本発明は、マイクロプロセッサで使用できるメモリの容
量を拡大するためのひとつの手段であるところのマイク
ロプロセッサにおけるメモリバンクの切り換え方式に関
する。
DETAILED DESCRIPTION OF THE INVENTION (Technical Field) The present invention relates to a memory bank switching method in a microprocessor, which is one means for expanding the memory capacity that can be used in the microprocessor.

(従来技術) マイクロプロセッサで使用できるメモリの容量は、基本
的に、そのマイクロプロセッサにおけるアドレスバスの
大きさによって規定される。例えば、アドレスバスが1
6本の場合にはメモリ容量は約64にバイト (2”−
1=65.535)であり、また、アドレスバスが20
本の場合にはメモリ容量は約I Mハ() (2” −
1=1,048,575 ) T:ある。
(Prior Art) The memory capacity that can be used in a microprocessor is basically determined by the size of the address bus in the microprocessor. For example, if the address bus is 1
In the case of 6, the memory capacity is approximately 64 bytes (2”-
1=65.535), and the address bus is 20
In the case of a book, the memory capacity is approximately I Mha() (2” −
1=1,048,575) T: Yes.

而して、かかるアドレスバスの大きさによる基本的な制
限に拘わらずメモリ容量を拡大するために、上記したバ
ンク切り換えという方式が従来から考えられている。
Therefore, in order to expand the memory capacity despite the basic limitation due to the size of the address bus, the above-mentioned bank switching method has been considered.

このバンク切り換え方式というのは、CPUからの共通
のアドレスバス上に、アクセス可能な範囲内で互いに共
通のアドレス(番地)群が設定されている複数のメモリ
バンクを配置すると共に、それら複数のメモリバンクの
うちから所望のメモリバンクを選んでアクセスできるよ
うにしたものであり、従来は、第2図に示すように構成
されていた。
This bank switching method involves arranging multiple memory banks that have a common address group within an accessible range on a common address bus from the CPU, and also This allows a desired memory bank to be selected and accessed from among the banks, and conventionally, the configuration was as shown in FIG. 2.

即ち、CP Uからの共通のアドレスバスAおよび共通
のメモリバスB上に、アクセス可能な範囲内で互いに共
通のアドレス群(例えばφφφφ番地〜7 F F F
 H番地)が設定されている複数(この例では3個)の
メモリバンク■、■、■が配置されると共に、CPUの
入出力ボートに接続された第1デコーダiと、その第1
デコーダiおよび前記メモリバスBに接続された第2デ
コーダ11と、その第2デコーダ+1および前記複数の
メモリバンク■、■、■夫々の間に介装接続されたラッ
チ回路111とから成るメモリバンク切り換え機構が設
けられている。かかるメモリバンク切り換え機構が必要
な理由は、CPUが例えば1φφ番地をアクセスしたと
きに、前記複数のメモリバンク■、■。
That is, on the common address bus A and the common memory bus B from the CPU, a group of mutually common addresses (for example, addresses φφφφ to 7 FF F F
A plurality of (three in this example) memory banks ■, ■, ■ are arranged, and the first decoder i connected to the input/output port of the CPU and its first
A memory bank consisting of a second decoder 11 connected to the decoder i and the memory bus B, and a latch circuit 111 interposed between the second decoder +1 and each of the plurality of memory banks ■, ■, ■. A switching mechanism is provided. The reason why such a memory bank switching mechanism is necessary is that when the CPU accesses address 1φφ, for example, the memory banks 1 and 2 are switched.

■の何れにも夫々同じ1φφ番地が存在するために、ど
のメモリバンクの1φφ番地であるかを指定しないと、
誤った場所へデータを書き込んでしまったり、読み出し
たデータが衝突するといったトラブルが生じることにな
るからである。
Since the same 1φφ address exists in each of ■, unless you specify which memory bank the 1φφ address is,
This is because troubles such as data being written to the wrong location or data being read may conflict with each other may occur.

前記メモリバンク切り換え機構によるメモリバンクの切
り換え動作は次のようにして行われる。
The memory bank switching operation by the memory bank switching mechanism is performed as follows.

先ず、前記第1デコーダiがCPUの入出力ボートから
のメモリバンク切り換え指令信号を受けると、その第1
デコーダiはメモリバンクを切り換えるためのボートを
選んで、前記第2デコーダiiへ信号を発してこれを起
動させる。そして、その状態においてデータバスBを介
してCPUからメモリバンク指定信号(例えば■)が入
力されると、前記第2デコーダiiはそのメモリバンク
指定信号に対応するメモリバンク選択信号を前記ラッチ
回路111へ発する。すると、ランチ回路iilはその
メモリバンク選択信号に対応するメモリバンク■のみを
動作可能状態にする信号を発し、以後、新たなメモリバ
ンク選択信号が与えられるまでその状態を保持する。従
って、その間にアドレスバスAを介してCPUから番地
がアクセスされると、全てその選択されたメモリバンク
■のみについて読み書き動作が行われる。
First, when the first decoder i receives a memory bank switching command signal from the input/output board of the CPU, the first
Decoder i selects a port for switching memory banks and issues a signal to the second decoder ii to activate it. In this state, when a memory bank designation signal (for example, ■) is input from the CPU via the data bus B, the second decoder ii transmits a memory bank selection signal corresponding to the memory bank designation signal to the latch circuit 111. emit to. Then, the launch circuit iil issues a signal to enable only the memory bank (2) corresponding to the memory bank selection signal, and thereafter maintains this state until a new memory bank selection signal is applied. Therefore, if an address is accessed from the CPU via the address bus A during that time, a read/write operation is performed only for the selected memory bank (2).

しかしながら、上記従来構成のマイクロプロセッサにお
けるメモリバンクの切り換え方式においては、メモリバ
ンク切り換え機構を構成するに際して、CPUの人出力
ボートを使用しなければならず、また、デコーダを2個
使用しなければならないため、回路構成が複雑になると
いう欠点がある。
However, in the memory bank switching method in the conventionally configured microprocessor described above, when configuring the memory bank switching mechanism, the CPU's human output board must be used and two decoders must be used. Therefore, there is a drawback that the circuit configuration becomes complicated.

(発明の目的) 本発明は、上記実情に鑑みてなされたものであって、そ
の目的は、メモリ容量の拡大のためのメモリバンクの切
り換えを比較的面素な構成の回路で実現できるマイクロ
プロセッサにおけるメモリバンクの切り換え方式を提供
せんとすることにある。
(Object of the Invention) The present invention has been made in view of the above-mentioned circumstances, and its object is to provide a microprocessor capable of realizing memory bank switching for expanding memory capacity with a relatively simple circuit. An object of the present invention is to provide a method for switching memory banks in a computer.

(発明の構成) 上記目的を達成するために、本発明は、cpuからの共
通のアドレスバス上に配置され且つ互いに共通のアドレ
ス(番地)群が設定されている複数のメモリバンクのう
ちから所望のメモリバンクを選んでアクセスできるよう
に構成されているマイクロプロセッサにおけるメモリバ
ンクの切り換え方式において、前記複数のメモリバンク
夫々に互いに異なる特定のアドレス(番地)を対応させ
て割り当てておき、CPUが前記特定のアドレス(番地
)をアクセスしたときに、その特定のアドレス(番地)
に対応するメモリバンクが自動的にアクセスされるよう
に構成しである、という点に特徴がある。
(Structure of the Invention) In order to achieve the above-mentioned object, the present invention provides a method for selecting a desired memory bank from among a plurality of memory banks arranged on a common address bus from the CPU and set with a mutually common address group. In a memory bank switching method in a microprocessor configured to be able to select and access a memory bank, a specific address (address) different from each other is assigned to each of the plurality of memory banks, and the CPU selects and accesses the memory bank. When a specific address (house number) is accessed, that specific address (house number)
The feature is that the memory bank corresponding to the memory bank is configured to be accessed automatically.

(実施例) 以下、本発明に係るマイクロプロセッサにおけるメモリ
バンクの切り換え方式の一実施例を第1図に基いて説明
する。
(Embodiment) An embodiment of a memory bank switching method in a microprocessor according to the present invention will be described below with reference to FIG.

即ち、CPUからの共通のアドレスバスAおよび共通の
メモリバスB上に、アクセス可能な範囲内で互いに共通
のアドレス群(例えばφφφφ番地〜7FFFH番地)
が設定されている複数(この例では3個)のメモリバン
ク■、■、■を配置すると共に、それら複数のメモリバ
ンク■、■。
That is, on a common address bus A and a common memory bus B from the CPU, a group of mutually common addresses within an accessible range (for example, addresses φφφφ to 7FFFH)
A plurality of (three in this example) memory banks ■, ■, ■ are set, and these multiple memory banks ■, ■ are set.

■のうちから所望のメモリバンクを任意に選定してアク
セスするためのメモリバンク切り換え機構Xを設けであ
る。
(2) A memory bank switching mechanism X is provided for arbitrarily selecting and accessing a desired memory bank from among the memory banks.

そのメモリバンク切り換え機構Xは、前記アドレスバス
Aに接続されたひとつのアドレスデコーダIと、そのア
ドレスデコーダ■および前記複数のメモリバンク■、■
、■夫々の間に介装接続されたラッチ回路■とから成り
、そのラッチ回路HにはCPUからの出力指令信号線C
が入力されている。つまり、CPUは、アドレスバスA
ヘバスアクセス信号を発すると同時に、前記出力指令信
号線Cを介してラッチ回路■へ出力指令信号を発するよ
うに構成されているのである。
The memory bank switching mechanism X includes one address decoder I connected to the address bus A, its address decoder ■, and the plurality of memory banks ■, ■
, ■ a latch circuit connected interveningly between each, and the latch circuit H has an output command signal line C from the CPU.
is entered. In other words, the CPU uses the address bus A
At the same time as the bus access signal is issued, an output command signal is issued to the latch circuit (2) via the output command signal line C.

また、前記複数のメモリバンク■、■、■には、夫々、
恰もそのネーミングの如(、互いに異なる特定のアドレ
ス(番地)が対応するように割り当てられている。例え
ば、メモリバンク■についてはφφφφ番地、メモリバ
ンク■についてはφφφ1番地、メモリバンク■につい
てはφφφ2番地というように割り当てられ、各特定の
アドレス(番地)に対しては通常の読み書きを行わない
ようにされている。
In addition, each of the plurality of memory banks ■, ■, ■,
As the naming suggests, specific addresses (addresses) that are different from each other are assigned to correspond to each other.For example, memory bank ■ is assigned address φφφφ, memory bank ■ is address φφφ1, and memory bank ■ is address φφφ2. The addresses are allocated as follows, and normal reading and writing are not performed to each specific address.

そして、CPUが前記特定のアドレス(番地)をアクセ
スしたときには、前記メモリバンク切り換え機構Xによ
って、その特定のアドレス(番地)に対応するメモリバ
ンクが自動的にアクセスされるように構成されている。
When the CPU accesses the specific address, the memory bank switching mechanism X automatically accesses the memory bank corresponding to the specific address.

例えば、CPUがφφφφ番地をアクセスしたときには
メモリバンク■のみが、CPtJがφφφ1番地をアク
セスしたときにはメモリバンク■のみが、CPUがφφ
φ2番地をアクセスしたときにはメモリバンク■のみが
、夫々、選定されて使用可能な状態に保持される。
For example, when the CPU accesses the φφφφ address, only memory bank ■ is used; when CPtJ accesses the φφφ1 address, only memory bank ■ is used;
When address φ2 is accessed, only memory bank (2) is selected and kept in a usable state.

従って、例えばメモリバンク■の1φφ番地に対して読
み書き使用とする際には、CPUは、先ずメモリバンク
■に対応する特定のアドレス(番地)であるφφφ1番
地をアクセスすることにより、メモリバンク■を選択し
て使用可能な状態に保持し、しかる後1φφ番地をアク
セスする、という動作を行う。
Therefore, for example, when reading or writing to address 1φφ of memory bank ■, the CPU first accesses address φφφ1, which is a specific address (address) corresponding to memory bank ■, and then accesses memory bank ■. The operation of selecting and holding it in a usable state and then accessing the address 1φφ is performed.

即ち、いまCPLIが特定のアドレス(番地)のひとつ
であるφφφ1番地をアクセスしたとすると、そのメモ
リアクセス信号がアドレスバスAからメモリバンク切り
換え機構XにおけるアドレスデコーダIに入力されると
共に、前記出力指令信号線Cを介して出力指令信号がラ
ッチ回路■へ入力されるので、アドレスデコーダ■はそ
のφφφ1番地に対応するメモリバンク■を選択する信
号をラッチ回路■へ発し、ランチ回路■は、そのメモリ
バンク(■)選択信号を保持すると同時にメモリバンク
■へ出力してそのメモリバンク■のみを瞬時的に使用可
能な状態にする。そして、そのラッチ回路■は、新たな
メモリバンク選択信号が与えられるまで、そのメモリバ
ンク(■)選択信号を保持し続け、そして、その状態に
おいて、CPUからの例えば1φφ番地に対するメモリ
アクセス信号がアドレスバスAを介して出力され、かつ
、CPUからの出力指令信号が出力指令信号線Cを介し
てランチ回路■へ入力されると、ラッチ回路■はその保
持しているメモリバンク(■)選択信号を出力してメモ
リバンク■のみを再び瞬時的に使用可能な状態にするの
で、そのメモリバンク■の1φφ番地がアクセスされて
、それに対してメモリバスBを介しての読み書きがなさ
れるのである。
That is, if the CPLI accesses address φφφ1, which is one of the specific addresses, the memory access signal is input from the address bus A to the address decoder I in the memory bank switching mechanism X, and the output command Since the output command signal is input to the latch circuit ■ via the signal line C, the address decoder ■ issues a signal to the latch circuit ■ to select the memory bank ■ corresponding to the φφφ1 address, and the launch circuit ■ selects the memory bank ■ corresponding to the address φφφ1. The bank (■) selection signal is held and simultaneously output to the memory bank (■), making only that memory bank (■) available for use instantaneously. Then, the latch circuit (■) continues to hold the memory bank (■) selection signal until a new memory bank selection signal is applied, and in that state, the memory access signal from the CPU to address 1φφ, for example, When the output command signal from the CPU is output via the bus A and input to the launch circuit ■ via the output command signal line C, the latch circuit ■ outputs the memory bank (■) selection signal held by the latch circuit ■. Since only the memory bank (2) is outputted and instantaneously becomes usable again, the address 1φφ of the memory bank (2) is accessed and read/written to it via the memory bus B.

なお、前記ラッチ回路■が常にその保持しているメモリ
バンク選択信号を出力するように構成すれば、前記出力
指令信号線Cは省略することができる。
Note that if the latch circuit (2) is configured to always output the memory bank selection signal it holds, the output command signal line C can be omitted.

(発明の効果) 以上詳述したところから明らかなように、本発明に係る
マイクロプロセッサにおけるメモリバンクの切り換え方
式によれば、CPUからの共通のアドレスバス上に配置
され且つ互いに共通のアドレス(番地)群が設定されて
いる複数のメモリバンク夫々に互いに異なる特定のアド
レス(番地)を対応させて割り当てておき、CPUが前
記特定のアドレス(番地)をアクセスしたときに、その
特定のアドレス(番地)に対応するメモリバンクが自動
的にアクセスされるように構成しであることにより、従
来構成の場合のようにCPUの入出力ボートを使用せず
に、しかも、デコーダを1個使用するだけの簡易な回路
構成でメモリバンク切り換え機構を構成することができ
る、という優れた効果が発揮されるに至った。
(Effects of the Invention) As is clear from the detailed description above, according to the method of switching memory banks in a microprocessor according to the present invention, memory banks arranged on a common address bus from the CPU and having a common address (address) ) groups are set with different specific addresses (addresses), and when the CPU accesses the specific addresses (addresses), the specific addresses (addresses) are ) is configured so that the memory bank corresponding to The excellent effect of being able to configure a memory bank switching mechanism with a simple circuit configuration has been achieved.

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

第1図は本発明に係るマイクロプロセッサにおけるメモ
リバンクの切り換え方式の一実施例を示すブロック回路
構成図である。 また、第2図は従来構成のマイクロプロセッサにおける
メモリバンクの切り換え方式を示すブロック回路構成図
である。 A・・・・・・・・・アドレスバス、B・・・・・・・
・・メモリバス、C・・・・・・・・・メモリアクセス
信号線、X・・・・・・・・・メモリバンク切り換え機
構、■・・・・・・・・・アドレスデコーダ、■・・・
・・・・・・ランチ回路、■、■、■・・・・・・・・
・メモリバンク。
FIG. 1 is a block circuit diagram showing an embodiment of a memory bank switching method in a microprocessor according to the present invention. FIG. 2 is a block circuit diagram showing a memory bank switching method in a conventional microprocessor. A・・・・・・Address bus, B・・・・・・・・・
...Memory bus, C...Memory access signal line, X...Memory bank switching mechanism, ■...Address decoder, ■...・・・
・・・・・・Lunch circuit, ■, ■, ■・・・・・・・・・
・Memory bank.

Claims (1)

【特許請求の範囲】 CPUからの共通のアドレスバス上に配置され且つ互い
に共通のアドレス(番地)群が設定されている複数のメ
モリバンクのうちから所望のメモリバンクを選んでアク
セスできるように構成されているマイクロプロセッサに
おけるメモリバンクの切り換え方式であって、 前記複数のメモリバンク夫々に互いに異なる特定のアド
レス(番地)を対応させて割り当てておき、CPUが前
記特定のアドレス(番地)をアクセスしたときに、その
特定のアドレス(番地)に対応するメモリバンクが自動
的にアクセスされるように構成してあることを特徴とす
るマイクロプロセッサにおけるメモリバンクの切り換え
方式。
[Scope of Claims] A configuration in which a desired memory bank can be selected and accessed from among a plurality of memory banks that are arranged on a common address bus from the CPU and that have mutually set a common address group. This is a memory bank switching method in a microprocessor that has been developed, in which specific addresses (addresses) different from each other are assigned to each of the plurality of memory banks in correspondence with each other, and when the CPU accesses the specific addresses (addresses). 1. A memory bank switching method in a microprocessor, characterized in that the memory bank corresponding to a particular address is automatically accessed.
JP19062585A 1985-08-28 1985-08-28 Memory bank switching system in microprocessor Pending JPS6249459A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19062585A JPS6249459A (en) 1985-08-28 1985-08-28 Memory bank switching system in microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19062585A JPS6249459A (en) 1985-08-28 1985-08-28 Memory bank switching system in microprocessor

Publications (1)

Publication Number Publication Date
JPS6249459A true JPS6249459A (en) 1987-03-04

Family

ID=16261180

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19062585A Pending JPS6249459A (en) 1985-08-28 1985-08-28 Memory bank switching system in microprocessor

Country Status (1)

Country Link
JP (1) JPS6249459A (en)

Similar Documents

Publication Publication Date Title
JP2571067B2 (en) Bus master
JPH0719426B2 (en) Disk controller
KR100353448B1 (en) Apparatus and method for controlling shared memory
JPS6249459A (en) Memory bank switching system in microprocessor
JPH0562380B2 (en)
JPH05197619A (en) Memory control circuit for multi-cpu
JPS645341B2 (en)
JPS5987567A (en) Variable length data storage controlling system
JP2718661B2 (en) Dual port memory controller
JPH07334420A (en) Extended memory control circuit
JPH04167039A (en) Data write system
JP2636253B2 (en) Expansion bus method
JPS6211751B2 (en)
JPS5835655A (en) Memory device
JPS6217879Y2 (en)
JP2606824Y2 (en) Multiport memory device
JPH03204049A (en) Memory controller
JPH0368046A (en) Memory access system
JPH0259841A (en) Extension memory control system
JPH07325757A (en) Storage management device
JPS6126699B2 (en)
JPS6054055A (en) Storage device
JPS59180872A (en) Memory bank system
JPH0677239B2 (en) Memory access controller
JPS61221949A (en) Memory access device