JPS62226246A - Bank memory switching device of microcomputer - Google Patents

Bank memory switching device of microcomputer

Info

Publication number
JPS62226246A
JPS62226246A JP6716386A JP6716386A JPS62226246A JP S62226246 A JPS62226246 A JP S62226246A JP 6716386 A JP6716386 A JP 6716386A JP 6716386 A JP6716386 A JP 6716386A JP S62226246 A JPS62226246 A JP S62226246A
Authority
JP
Japan
Prior art keywords
bank
area
memory
address
latch circuit
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
JP6716386A
Other languages
Japanese (ja)
Inventor
Hiroshi Shirakawa
洋 白川
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 JP6716386A priority Critical patent/JPS62226246A/en
Publication of JPS62226246A publication Critical patent/JPS62226246A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To increase an overall arithmetic processing speed by setting the size of a bank area of a memory device at the value >=2 times as large as the area used by a group of data and, at the same time, setting the switching unit of the bank area at the value smaller than the size of the bank area. CONSTITUTION:The address area of a bank area of a memory device 11 is set a a size >=2 times as large as the address area used by a group of data which are written and read at a time. At the same time, the switching unit of the bank area is set at the value smaller than the size of the bank area. Then the address signals A13-A15 received from a CPU 12 are decoded by a decoder circuit 17 and therefore the address signals A12-A19 are sent from an address latch circuit 19 or 20. Thus the bank areas of different address areas are switched. As a result, both bank checking and switching frequencies can be decreased and the overall processing speed is increased with a bank switching device.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明はメモリ装置の一部領域をバンク領域としてこの
バンク領域に配設された各バンクメモリを切換使用する
マイクロコンピュータのバンクメモリ切換装置に関する
Detailed Description of the Invention [Objective of the Invention] (Industrial Application Field) The present invention provides a microcomputer that uses a part of a memory device as a bank area and switches between each bank memory arranged in this bank area. The present invention relates to a bank memory switching device.

(従来の技術) 一般にマイクロコンピュータにおいては、cpu <中
央処理装置)が指定できるメモリのアドレス領域にはC
PUの規模により一定の制限がある。例えば8ビツト構
成のCPtJにおいては64KBである。そしてこれ以
上のアドレスを指定する場合はメモリ装置の一部領域を
バンク領域としてこのバンク領域に複数個のバンクメモ
リを配設して、各バンクメモリを切換使用する。
(Prior Art) In general, in microcomputers, the memory address area that can be specified by the CPU (central processing unit) has C.
There are certain restrictions depending on the size of the PU. For example, in 8-bit configuration CPtJ, it is 64 KB. When specifying more addresses than this, a part of the memory device is set as a bank area, and a plurality of bank memories are arranged in this bank area, and each bank memory is used selectively.

第9図はこのようなバンクl111!が形成されたメモ
リ装置を示すものであり、図示するようにアドレスoo
oo〜4FFFまでの少旦の共通部1と、アドレス50
00−FFFFまでの複数のバンクメモリ2a〜2eと
で構成されている。そして、このメモリ装置3において
、第10図に示すようなプログラム4の命令5を読取り
実行する場合の!@理を考える。この場合、バンクメモ
リ2aには実行プログラムが記憶され、ベーシックプロ
グラムは2つのバンクメモリ2b、2Gに記憶されてい
る。また、バンクメモリ2dには第10図の命令5の計
算結果である変数Aが格納される。さらに、バンクメモ
リ2eには命令5を実行するときに用いる配列B(1)
が記憶されている。また、第10図のプログラム4は、
行番号6と命令5とこのプログラム4の行の終了を示す
キャリッジリターン(CR)記号7とで構成されている
。そして、命令5の内容は、バンクメモリ2eの配列B
〈1)を読出してこれに5を乗鐸して変数△を算出し、
その変数Aをバンクメモリ2dへ格納することを示す。
Figure 9 shows such a bank l111! This figure shows a memory device in which an address oo is formed as shown in the figure.
Common part 1 of the boy from oo to 4FFF and address 50
It is composed of a plurality of bank memories 2a to 2e from 00 to FFFF. In this memory device 3, when the instruction 5 of the program 4 as shown in FIG. 10 is read and executed! @Think about the theory. In this case, the execution program is stored in the bank memory 2a, and the basic program is stored in the two bank memories 2b and 2G. Further, a variable A, which is the calculation result of instruction 5 in FIG. 10, is stored in the bank memory 2d. Furthermore, the bank memory 2e contains an array B(1) used when executing instruction 5.
is memorized. Also, program 4 in Figure 10 is
It consists of a line number 6, an instruction 5, and a carriage return (CR) symbol 7 indicating the end of the line of this program 4. The contents of instruction 5 are array B of bank memory 2e.
Read out <1) and multiply it by 5 to calculate the variable △,
This indicates that the variable A is to be stored in the bank memory 2d.

次に、このプログラム4を実行する手順を説明する。す
なわち、行番号6を飛ばして、命令5の先頭の文字を読
取るが、その時処理の実行を一旦メモリ装M3の共通部
1へ移して、実行すべきバンクメモリをベーシックプロ
グラム2bへ切換えて文字を読取る。その後、実行をバ
ンクメモリ2aへ移して次の処理を実行する。なお、1
文字読む毎に、バンクメモリ2b内において、このプロ
グラム5が、バンクメモリ2bからバンクメモリ2Cへ
移るバンクエンドに達しているか否かを確認する。
Next, the procedure for executing this program 4 will be explained. That is, line number 6 is skipped and the first character of instruction 5 is read, but at that time the execution of the process is temporarily moved to the common section 1 of the memory device M3, the bank memory to be executed is switched to the basic program 2b, and the character is read. read Thereafter, the execution is transferred to the bank memory 2a to execute the next process. In addition, 1
Every time a character is read, it is checked in the bank memory 2b whether this program 5 has reached the bank end where it moves from the bank memory 2b to the bank memory 2C.

次に、この命令5が計算命令であることが確認されれる
と、答の変数Aのアドレスとバンクメモリとを記憶して
おき、配列B(1)のアドレスとバンクメモリとを算出
して、バンクモリを配列のバンクメモリ2eへ切換えた
後、配列データB(1)を読出す。次にその読出した配
列データB(1)に5を乗鐸して変数Yを算出し、先に
記憶されていた変数Yのアドレスとバンク2dを指定し
て、該当バンクメモリ2dの該当アドレスに変数Yの答
を自込む。以上でプログラム4の一つの命令5に対する
処理を終了する。
Next, when it is confirmed that this instruction 5 is a calculation instruction, the address of the answer variable A and the bank memory are stored, and the address and bank memory of the array B (1) are calculated. After switching the bank memory to the array bank memory 2e, array data B(1) is read out. Next, multiply the read array data B(1) by 5 to calculate the variable Y, specify the previously stored address of the variable Y and bank 2d, and set it to the corresponding address of the corresponding bank memory 2d. Enter the answer for variable Y. This completes the processing for one instruction 5 of the program 4.

しかしながら、上記のようなバンクメモリ切換制御にお
いては次のような問題があった。すなわち、前述したよ
うに、実行中のバンクメモリから、他のバンクメモリに
あるデータを読取ろうとしても直接読取ることはできな
いので、プログラムの実行を一旦共通部11\戻したの
ち、改めて必要とするバンクメモリへ実行を移し、デー
タを読取る。
However, the bank memory switching control described above has the following problems. That is, as mentioned above, even if you try to read data in another bank memory from the bank memory that is currently being executed, it is not possible to read it directly. Transfer execution to bank memory and read data.

そしてその後、もとのバンクメモリへ戻る必要がある。After that, it is necessary to return to the original bank memory.

すなわち、実行プログラムがそれぞれ一括して各バング
メモリに分散されていて、時々バンクメモリを切換える
のみであると、切換に要する時間はあまり問題とならな
いが、第9図に示したように他のバンクメモリに記憶さ
れているデータ(配列B)を処理する場合は、バンクメ
モリを須繁に切換える必要があるので、切換に要する時
間が増大して、全体の処理時間が増大する問題がある。
In other words, if the execution programs are distributed all at once in each bank memory and the bank memory is only switched occasionally, the time required for switching will not be a problem, but as shown in Figure 9, When processing the data (array B) stored in the memory, it is necessary to switch the bank memory to another bank memory, so there is a problem that the time required for switching increases and the overall processing time increases.

例えば第9図および第10図の例ではバンクメモリの切
換回数は往復を含めると約20回となる。
For example, in the examples shown in FIGS. 9 and 10, the number of times bank memories are switched is approximately 20 times, including round trips.

なお、第9図および第10図の例において、プログラム
4の1打金部をメモリ装置3の共通部1へ一旦移してか
ら実行をベーシックプログラムのバンクメモリ2bへ切
換えることによって、1文字毎のバンク切換を実行する
必要ないが、前述したバンクメモリ2bにおけるバンク
エンドのチェックはやはり1文字毎に実行する必要があ
る。
In the examples shown in FIGS. 9 and 10, by first moving the 1st part of the program 4 to the common part 1 of the memory device 3 and then switching the execution to the bank memory 2b of the basic program, Although it is not necessary to perform bank switching, the bank end check in the bank memory 2b described above still needs to be performed for each character.

(発明が解決しようとする問題点) このように従来のバンクメモリ切換制御においては、バ
ンク切換回数が増大するとともにプログラムの1文字毎
にバンクエンドをチェックする必要があり、全体の演算
処理速度が低下する問題があった。
(Problems to be Solved by the Invention) As described above, in conventional bank memory switching control, the number of bank switching increases and it is necessary to check the bank end for each character of the program, which reduces the overall calculation processing speed. There was a problem with the decline.

本発明はこのような事情に基づいてなされたものであり
、その目的とするところは、メモリ装置のバンク領域の
大きさを一部のデータが使用するv4域の2倍以上に設
定すると共に、バンク1liiEの切換中位をバンク領
域の大きさより小さくすることによって、バンクエンド
のチェック回数を低減できるとともにバンク切換回数を
減少でき、全体の演算処理速度を上昇できるマイクロコ
ンピュータのバンクメモリ切換装置を提供することにあ
る。
The present invention has been made based on these circumstances, and its purpose is to set the size of the bank area of the memory device to more than twice the v4 area used by some data, and to To provide a bank memory switching device for a microcomputer that can reduce the number of bank end checks, reduce the number of bank switches, and increase the overall arithmetic processing speed by making the switching middle of bank 1liiE smaller than the size of the bank area. It's about doing.

[発明の構成コ (問題点を解決するための手段) 本発明のマイクロコンピュータのバンクメモリ切換装置
においては、メモリ装置内のバンク領域のアドレスia
Rの大きさを一度に層込み読出し動作処理される一部の
データが使用するアドレス領域の2倍以上のアドレス1
mの大きさにするとともに、CPUからメモリ装置のバ
ンクfaliiE内のアドレスが指定されたとき、口の
アドレス信号の一部を各バンクメモリを指定するバンク
用アドレスラッチ回路から出力されるアドレス信号に切
換え、一群のデータが1つのバンク領域に格納されてい
ないと判断した際にバンク用アドレスラッチ回路のアド
レス信号によりバンクメモリを切換え、一群のデータを
1つのバンク領域内に格納するようにしたものである。
[Configuration of the Invention (Means for Solving Problems)] In the bank memory switching device for a microcomputer of the present invention, the address ia of the bank area in the memory device is
The size of R is layered at one time. Address 1 is more than twice the address area used by some data to be processed.
m, and when the CPU specifies an address in bank FALIIE of the memory device, a part of the address signal at the beginning is converted into an address signal output from the bank address latch circuit that specifies each bank memory. When it is determined that a group of data is not stored in one bank area, the bank memory is switched by the address signal of the bank address latch circuit, and the group of data is stored in one bank area. It is.

(作用) このように構成されたマイクロコンピュータのバンクメ
モリ切換装置であれば、メモリ装置内のバンク領域のア
ドレス領域の大きさは一度に書込み読出し動作処理され
る一部のデータが使用するアドレス領域の2g!i以上
に、かつバンク領域の切換単位がバンクfI4tii!
の大きさより小さく設定されているので、例えば切換単
位をバンク領域の大きさの1/2とすると、前記一群の
データの先頭アドレスを一つのバンクメモリ内の前半ア
ドレス位置に設定することによってこのデータの終了ア
ドレス位置をバンクメモリ内に入れることができる。し
たがって、バンクエンドをチェックする回数を低減でき
る。また、バンクfl(bli内のアドレスが指定され
たとき、このアドレス信号の一部が各バンクメモリを指
定するバンク用アドレスラッチ回路から出力されるアド
レス信号に切換えられる。
(Function) With the microcomputer bank memory switching device configured as described above, the size of the address area of the bank area in the memory device is the address area used by part of the data that is processed for write/read operations at one time. 2g! i or more, and the bank area switching unit is bank fI4tii!
For example, if the switching unit is set to 1/2 of the size of the bank area, by setting the start address of the group of data to the first half address position in one bank memory, this data The ending address location of can be placed into the bank memory. Therefore, the number of times the bank end is checked can be reduced. Further, when an address in bank fl(bli) is designated, a part of this address signal is switched to an address signal output from a bank address latch circuit that designates each bank memory.

すなわち、バンク用アドレスラッチ回路の指定するバン
クメモリへ処理実行が移動する。
That is, the processing execution is moved to the bank memory designated by the bank address latch circuit.

(実施例) 以下本発明の一実施例を図面を用いて説明する。(Example) An embodiment of the present invention will be described below with reference to the drawings.

第1図は実施例のマイクロコンピュータのバンクメモリ
切換装置を示すブロック図であり、第3図はこのバンク
メモリ切換装Uにおけるメモリ装置のメモリ構成図であ
る。第3図において、このメモリ装置11は、第1図に
示す8ビツト構成のCPU12に応用したものであり、
全部で64KBのアドレス指定領域を有している。そし
てこのメモリ装置11は、アドレスalj!ooo。
FIG. 1 is a block diagram showing a bank memory switching device for a microcomputer according to an embodiment, and FIG. 3 is a memory configuration diagram of a memory device in this bank memory switching device U. In FIG. 3, this memory device 11 is applied to the 8-bit CPU 12 shown in FIG.
It has a total addressable area of 64KB. And this memory device 11 has address alj! ooooo.

〜BFFFの48KBの共通部13と、coo。~BFFF's 48KB common part 13 and coo.

〜DFFFの8KBのバンク領域14と、EOOO〜F
FFFの8KBのバンク領域15とで構成されている。
~DFFF 8KB bank area 14 and EOOO~F
It is composed of an 8KB bank area 15 of FFF.

各バンク領域14.15にはそれぞれ複数のバンクメモ
リ14a〜14n、15a〜15nが配設されている。
A plurality of bank memories 14a to 14n and 15a to 15n are arranged in each bank area 14.15, respectively.

この結果、このメモリ装置11においては、各バンクメ
モリ14a〜14n、15a〜15nを含めると、最大
メモリ容量はIMBとなる。
As a result, in this memory device 11, including the bank memories 14a to 14n and 15a to 15n, the maximum memory capacity is IMB.

第1図において、前記CPU12から出力されるAO−
A15のアドレス信号のうち、AO〜A11はそのまま
メモリ装置11へ入力されている。そして、残りのA1
2〜A15のアドレス信号はゲート回路16へ入力され
る。このゲート回路16からメモリ@@11に対してA
12〜A19のアドレス信号を送出する。そして、デコ
ーダ回路17からLレベルの制御信号18が印加される
と、このゲート回路16は開成され、CPU12から送
出されたA12〜A15のアドレス信号をそのままメモ
リ装置11へ送出するとともに、A16〜A19を接地
する。また、デコーダ回路17からHレベルのil I
ll信号が入力されると、このゲート回路16は開放さ
れる。すなわち、メモリ装置11へ入力されるA12〜
A9のアドレス信号は前記2つのバンク領域14.15
に対応した2つのバンク用のアドレスラッチ回路19.
20のうらのいずれか一方のアドレスラッチ回路から出
力されるA12〜A19のアドレス信号が入力される。
In FIG. 1, the AO-
Of the address signals A15, AO to A11 are input to the memory device 11 as they are. And the remaining A1
Address signals 2 to A15 are input to the gate circuit 16. A from this gate circuit 16 to memory @@11
12 to A19 are sent out. When an L level control signal 18 is applied from the decoder circuit 17, this gate circuit 16 is opened and sends the address signals A12 to A15 sent from the CPU 12 to the memory device 11 as they are, and Ground. In addition, the decoder circuit 17 outputs an H level il I
When the ll signal is input, this gate circuit 16 is opened. That is, A12~ input to the memory device 11
The address signal of A9 is applied to the two bank areas 14 and 15.
Address latch circuit for two banks corresponding to 19.
Address signals A12 to A19 output from one of the address latch circuits of 20 are input.

CPU12から出力されるA13.A14゜A15のア
ドレス信号およびアドレスラッチ回路19.20の出力
を可能とするイネーブル(EN)信号はデコーダ回路1
7へ入力される。このデコーダ回路17は、第2図に示
すように、3入力端子を有するアンドゲート21と2個
のナントゲート22.23およびインバータ24とで構
成されており、最上位2桁のA15.A14のアドレス
信号およびEN信号がHレベルになると、アンドゲート
17から出力される制御信号18がHレベルとなり、ゲ
ート回路16は開放される。そして、A15.A14.
A13およびEN信号がHレベル、すなわち、CPU1
2が第3図のメモリ装置11のバンクll1j115の
内のアドレスを指定したときは、ナントゲート23から
アドレスラッチ回路20へ動作信号25を送出する。し
たがって、メモリ8111にはアドレスラッチ回路20
からA12〜A19のアドレス信号が送出される。すな
わち、バンクメモリ15a〜15nのうらこのアドレス
信号に対応したバンクメモリ15a〜15nが選択され
る。
A13. output from the CPU 12. The address signal of A14゜A15 and the enable (EN) signal that enables the output of the address latch circuits 19 and 20 are supplied to the decoder circuit 1.
7. As shown in FIG. 2, this decoder circuit 17 is composed of an AND gate 21 having three input terminals, two Nant gates 22, 23, and an inverter 24, and includes the two most significant digits A15. When the address signal and EN signal of A14 go high, the control signal 18 output from the AND gate 17 goes high, and the gate circuit 16 is opened. And A15. A14.
A13 and EN signals are at H level, that is, CPU1
2 specifies an address in bank ll1j115 of memory device 11 in FIG. Therefore, the address latch circuit 20 is included in the memory 8111.
Address signals A12 to A19 are sent from the address signals A12 to A19. That is, the bank memories 15a to 15n corresponding to the address signals at the back of the bank memories 15a to 15n are selected.

また、A15.A14.EN信号がHレベルでA13が
Lレベルのとき、すなわち、CPU12が第3図のメモ
リ製雪11のバンク領[14の内のアドレスを指定した
ときは、ナントゲート22からアドレスラッチ回路19
へ動作信号26を送出する。したがって、メモリ装置1
1にはアドレスラッチ回路19からA12〜A19のア
ドレス信号が送出される。すなわち、バンクメモリ14
a〜14nのうちこのアドレス信号に対応したバンクメ
モリ148〜14nが選択される。
Also, A15. A14. When the EN signal is at H level and A13 is at L level, that is, when the CPU 12 specifies an address in the bank area [14] of the memory snowmaking 11 shown in FIG.
The operation signal 26 is sent to. Therefore, memory device 1
1, address signals A12 to A19 are sent from the address latch circuit 19. That is, the bank memory 14
Among bank memories a to 14n, bank memories 148 to 14n corresponding to this address signal are selected.

このように構成されたバンクメモリ切換装置において、
前述した第10図のプログラム4を実行する場合を説明
する。この51合、実行プログラムはアドレス領域14
のバンクメモリ14aに格納され、ベーシックプログラ
ムはバンクメモリ14b、14cに記憶され、変数Aお
よび配列B(1)は異なるアドレス領hi15のバンク
メモリ15a。
In the bank memory switching device configured in this way,
The case where the program 4 shown in FIG. 10 mentioned above is executed will be explained. In this 51 case, the execution program is in address area 14.
The basic program is stored in the bank memory 14a of the bank memory 14a, the basic program is stored in the bank memories 14b and 14c, and the variable A and the array B(1) are stored in the bank memory 15a of a different address area hi15.

15bにそれぞれ格納されるとする。第4図(a>(b
)はそれぞれベーシックプログラムを記憶するメモリバ
ンク14b、14cの構成図である。
15b. Figure 4 (a>(b)
) are configuration diagrams of memory banks 14b and 14c that respectively store basic programs.

このような状態において、第10図のプログラム4を実
行する場合、最初の行番号6が、アドレス領域14のう
ちの前半のcoooからCFFFの間に存在する場合は
、このアドレス@域14゜15の大きさが前記1つのプ
ログラム4の1行の長さを実行するに要する領域、すな
わちこの命令5を読取るに必要とするメモリ領域の2倍
以上のmlを有しているので、この1行のプログラム4
の実行が終了するまでメモリエンドをチェックする必要
ない。一方、行番号6がDOOOからメモリエンドのD
FFFの間にある場合は、この行のプログラム4の実行
終了までに前記DFFFのメモリエンドに達してしまう
可能性がある。したがって、この場合行番号6がooo
o〜DFFFに存在すると確認されると、アドレスラッ
チ回路19にセットする値を1だけ増加すると、プログ
ラムの実行がバンクメモリ14cへ移るとともに、第4
図(b)に示すように行番号6がC000〜CFFFへ
入る。したがって、このプログラム4を1行実行する期
間は従来のように1文字毎にバンクエンドをチェックす
る必要ない。
In such a state, when executing the program 4 in FIG. 10, if the first line number 6 exists between cooo and CFFF in the first half of the address area 14, this address @ area 14゜15 The size of this line is more than twice the memory area required to execute the length of one line of the one program 4, that is, the memory area required to read this instruction 5. program 4
There is no need to check the memory end until the execution of On the other hand, line number 6 is from DOOO to D at the memory end.
If it is between FFF, there is a possibility that the memory end of DFFF will be reached by the time the execution of program 4 on this line ends. Therefore, in this case line number 6 is ooo
If it is confirmed that the program exists in the bank memory 14c, the value set in the address latch circuit 19 is increased by 1, and the execution of the program is transferred to the bank memory 14c.
As shown in Figure (b), line number 6 enters C000 to CFFF. Therefore, during the period when this program 4 is executed for one line, it is not necessary to check the bank end for each character as in the conventional case.

このように、バンク領域14のアドレス[の大ぎさをプ
ログラム4を111実行するに要する領域の2倍以上の
大きさとし、バンク領域の切換単位をバンク領域の大き
さより小さくすることによって、プログラム4を実行す
るにあたって、最初に行番号6のアドレス位置のみを1
回チェックツれば、プログラム4の実行中は−リバンク
エンドをチェックする必要ないので、このバンクメモリ
を用いた全体の演m処理速度を上昇できる。また、上記
チック動作もAO〜A15の全部のアドレス信号に亘っ
てチェックする必要なく、上位のA12〜A15の4桁
くビット)又は8桁(ビット)のみをチェックすればよ
い。
In this way, by making the size of the address [of the bank area 14] more than twice the area required to execute the program 4 111 times, and by making the switching unit of the bank area smaller than the size of the bank area, the program 4 can be executed. When executing, first set only the address position of line number 6 to 1.
If the program is checked twice, there is no need to check the -rebank end while the program 4 is being executed, so the overall processing speed using this bank memory can be increased. Furthermore, the tick operation does not need to be checked over all address signals AO to A15, but only the upper 4 digits (bits) or 8 digits (bits) of A12 to A15 need to be checked.

また、実施例においては、2つのバンク領域14.15
を設け、バンク領域15の各バンクメモリ158〜15
nに変数Aや配列B(1)を配置するようにしたので、
全体のバンク切換回数を低減でき、さらに演算処理速度
を上昇できる。
In addition, in the embodiment, two bank areas 14 and 15
are provided, and each bank memory 158 to 15 in the bank area 15
Since I placed variable A and array B (1) in n,
The total number of bank switching can be reduced, and the calculation processing speed can be further increased.

第5図および第6図は16ビツト構成のCPUを用いた
マイクロコンピュータに適用した他の実施例である。す
なわち、この実施例のメモリ製画31は、第5図に示す
ように、共通部32と4つの各バンク領域33.34.
35.36および他のメモリ領b137とで構成されて
いる。そして、バンク領域23の各バンクメモリにはそ
れぞれベーシックプログラムが記憶され、バンク領[3
4の各バンクメモリは前記変数や配列等のデータが記憶
され、バンク領域35は割込み処理用に使用する。この
ようにすれば、割込み発生時にバンク領域を何度も切換
える処理が不要となる。さらに、バンク領域26はDM
A (ダイレクト・メモリ・アクセス)時における上位
アドレス〈A16〜A19)を指定する場合に使用する
。また、他のメモリfj[37に実行中のメモリが格納
される。
FIGS. 5 and 6 show other embodiments applied to a microcomputer using a 16-bit CPU. That is, as shown in FIG. 5, the memory drawing 31 of this embodiment has a common portion 32 and four bank areas 33, 34 .
35, 36 and another memory area b137. A basic program is stored in each bank memory of the bank area 23, and a basic program is stored in each bank memory of the bank area 23.
Each bank memory 4 stores data such as the variables and arrays, and the bank area 35 is used for interrupt processing. This eliminates the need for switching bank areas many times when an interrupt occurs. Further, the bank area 26 is DM
Used to specify the upper address (A16 to A19) during A (direct memory access). Furthermore, the memory being executed is stored in another memory fj[37.

なお、各バンク領域33〜36の各バンクメモリの内容
は前記他のメモリ領1437の一部を示しており、同じ
メモリをその物理的位置のまま他のメモリ領15137
でアクセフすることも、各バンク領域33〜36の各バ
ンクメモリをアクセフすることも可能である。
Note that the contents of each bank memory in each bank area 33 to 36 represent a part of the other memory area 1437, and the same memory can be stored in the other memory area 15137 at its physical location.
It is also possible to access each bank memory in each bank area 33 to 36.

第6図において、16ビツト構成の℃PtJ38から出
力されるADO−ADl 1のアドレス信号はラッチ回
路39を介してそのままメモリ装置31へ入力される。
In FIG. 6, the address signal of ADO-ADl 1 output from the 16-bit ℃PtJ 38 is input to the memory device 31 as it is via the latch circuit 39.

なお、このラッチ回路39はCPU38から出力される
アドレス信号がデータ信号と時分割された状態で出力さ
れるためにアドレス信号のみを一部ラッチするラッチ回
路である。
Note that this latch circuit 39 is a latch circuit that partially latches only the address signal because the address signal output from the CPU 38 is output in a time-divided state with the data signal.

CPU38から出力されるA12〜A15゜A16〜A
19の各アドレス信号はラッチ回路40へ入力される。
A12~A15°A16~A output from CPU38
Each of the 19 address signals is input to the latch circuit 40.

このラッチ回路40はオアゲート41から出力される制
御信@42がHレベルになると、出力端が開放されて、
メモリ装置31に対するA12〜A15のアドレス信号
はバンク用アドレスラッチ回路43から供給され、A1
6〜A19のアドレス信号はバンク用アドレスラッチ回
路44から供給される。
When the control signal @42 outputted from the OR gate 41 becomes H level, the latch circuit 40 opens its output terminal.
Address signals A12 to A15 for the memory device 31 are supplied from a bank address latch circuit 43, and A1
Address signals 6 to A19 are supplied from the bank address latch circuit 44.

CPU38から出力されるADl3.ADl4のアドレ
ス信号はラッチ回路45を介してバンク用アドレスラッ
チ回路43.44へ入力される。
ADl3. output from the CPU 38. The address signal of ADl4 is inputted via the latch circuit 45 to the bank address latch circuits 43 and 44.

このラッチ回路45はCPU38からト(レベルのHL
DA信号46が入力されると出力端が開放される。
This latch circuit 45 is connected from the CPU 38 to
When the DA signal 46 is input, the output end is opened.

前記バンク用アドレスラッチ回路43はLレベルの制御
信号が入力されると、A13.A14の各アドレス信号
の組合せによりA12〜A15のアドレス信号をメモリ
装置31へ入力する。同様に、バンク用アドレスラッチ
回路44はLレベルの制卸信号が入力されるとA16〜
A19のアドレス信号をメモリ8131へ入力する。す
なわち、各バンク用アドレスラッチ回路43.44から
出力されるA12〜A19のアドレス信号によって、各
バンクメモリが選択される。
When the bank address latch circuit 43 receives an L level control signal, A13. Address signals A12 to A15 are input to the memory device 31 by a combination of address signals A14. Similarly, when the bank address latch circuit 44 receives an L level control signal, the bank address latch circuit 44
The address signal of A19 is input to the memory 8131. That is, each bank memory is selected by address signals A12 to A19 output from each bank address latch circuit 43,44.

また、C−PU38から出力されるHレベルのHLDA
信号46はインバータ47および前記オアゲート41を
介してラッチ回路40へ入力されるとともにノアゲート
48を介してバンク用アドレスラッチ回路44へ入力さ
れる。
In addition, the H level HLDA output from the C-PU38
The signal 46 is input to the latch circuit 40 via the inverter 47 and the OR gate 41, and is also input to the bank address latch circuit 44 via the NOR gate 48.

さらに、CPU38から出力されるADI 5゜A16
〜A19のアドレス信号およびEN信号はデコーダ回路
49へ入力される。このデコーダ回路49はHレベルの
EN信号入力期間中に入力された各アドレス信号の組合
せによって、H又はLレベルの切換信号50をラッチ回
路45を介して各ゲート41.48およびバンク用アド
レスラッチ回路43へ入力する。すなわち、Lレベルの
切換信号50が出力されるとラッチ回路40の出力端が
開放され、バンク用アドレスラッチ回路43゜44から
A12〜A19のアドレス信号が出力される。また)−
ILDA信@46がLレベル状態で切換信@50がHレ
ベルになると、逆にラッチ回路40からA12〜A19
のアドレス信号がメモリ装置31へ入力される。
Furthermore, the ADI 5° A16 output from the CPU 38
The address signals and EN signals of ~A19 are input to the decoder circuit 49. This decoder circuit 49 outputs an H or L level switching signal 50 to each gate 41, 48 and bank address latch circuit via a latch circuit 45 according to a combination of address signals input during an H level EN signal input period. 43. That is, when the L level switching signal 50 is output, the output terminal of the latch circuit 40 is opened, and address signals A12 to A19 are output from the bank address latch circuits 43 and 44. Also) −
When ILDA signal @46 is at L level and switching signal @50 is at H level, conversely, the latch circuit 40 outputs A12 to A19.
The address signal is input to the memory device 31.

また、DMA動作時のようにCPU38のHLDA端子
からHレベルのHLDA信号46が出力されると、バン
ク用アドレスラッチ回路44からA16〜A19のアド
レス信号が出力されるが、ラッチ回路40.45の出力
端は開放されるとともにバンク用アドレスラッチ回路4
3の出力端も開放される。したがって、DMA動作時に
は図示しないD M A III il1部からAO〜
A15のアドレス信号がメモリ装置31へ入力されると
ともにバンク用アドレスラッチ回路44からA16〜A
19のアドレス信号がメモリ装置31へ入力される。
Further, when the HLDA signal 46 at H level is output from the HLDA terminal of the CPU 38 as during DMA operation, address signals A16 to A19 are output from the bank address latch circuit 44, but the address signals A16 to A19 are output from the bank address latch circuit 44. The output terminal is opened and the bank address latch circuit 4
The output end of No. 3 is also opened. Therefore, during DMA operation, AO~
The address signal of A15 is input to the memory device 31, and the address signal of A16 to A is input from the bank address latch circuit 44.
19 address signals are input to the memory device 31.

このように構成されたマイクロコンピュータのバンクメ
モリ切換装置であっても、メモリ装置31のバンク領域
33におけるアドレス領域の大きさを第3図のバンクf
iljbl+ 14におけるアドレス領域の大きさに対
応するように設定することによって萌述の実IM例とほ
ぼ同様の効果を得ることが可能である。
Even in the microcomputer bank memory switching device configured in this way, the size of the address area in the bank area 33 of the memory device 31 is changed to the bank f in FIG.
By setting it to correspond to the size of the address area in iljbl+14, it is possible to obtain almost the same effect as Moe's actual IM example.

また、この実施例においては、メモリ装置31の各バン
ク領域33〜36のうち一つのバンク領域36をDMA
制!111用として、前述したようにDMA動作時にC
PU38からHレベルのHLDA信号46を出力してバ
ンク用アドレスラッチ回路44からバンク領域36の各
バンクメモリを指定する上位アドレスA16〜A19を
出力するようにしている。したがって、AO〜15しか
出力しないDMA用LSIを使用しても、A16〜A1
9をバンク用アドレスラッチ回路44から出力するので
、バンクメモリもDMAに利用することができる。
Further, in this embodiment, one bank area 36 out of each bank area 33 to 36 of the memory device 31 is used as a DMA.
Control! For 111, as mentioned above, C
The PU 38 outputs an H-level HLDA signal 46, and the bank address latch circuit 44 outputs upper addresses A16 to A19 specifying each bank memory in the bank area 36. Therefore, even if a DMA LSI that outputs only AO to 15 is used, A16 to A1
9 is output from the bank address latch circuit 44, the bank memory can also be used for DMA.

第7図および第8図は16ビツト構成のCPUを用いた
マイクロコンピュータに適用したさらに別の実施例であ
る。第5図および第6図の実施例と同一部分には同一符
号を付して重複する部分の説明を省略する。
FIGS. 7 and 8 show still another embodiment applied to a microcomputer using a 16-bit CPU. Components that are the same as those in the embodiment shown in FIGS. 5 and 6 are given the same reference numerals, and explanations of the overlapping parts will be omitted.

この実施例のメモリ装置31は、第7図に示すように、
第5図で示したバンク領域33〜36の他に、アドレス
領域5oooo〜BFFFFにさらに別のバンク領域5
1が形成され、バンク領域51にはBOからB7までの
8つのバンクメモリ518〜51hが配設されている。
The memory device 31 of this embodiment, as shown in FIG.
In addition to the bank areas 33 to 36 shown in FIG. 5, another bank area 5 is provided in address areas 5ooo to BFFFF.
1 is formed, and eight bank memories 518 to 51h from BO to B7 are arranged in the bank area 51.

そして、第8図において、52はメモリ装置31におけ
るバンク領域51の各バンクメモリ51a〜51hを取
出して示すものであり、このバンクメモリ52には、ラ
ッチ回路39.4C1lらAO−A17のアドレス信号
が入力され、バンク用アドレスラッチ回路53からA1
8.A19゜A20のアドレス信号が入力される。そし
て、ラッチ回路40から出力されるA18.A19のア
ドレス信号はインバータ54とアンドゲート55とから
なるデコーダ回路を介してバンクメモリ52のC8端子
へ入力される。ずなわら、このバンクメモリ52はラッ
チ回路40から出力されるA18のアドレス信号がLレ
ベルでかつ最上位のA19のアドレス信号がHレベルの
ときのみ書込読出動作可能となる。
In FIG. 8, reference numeral 52 indicates each bank memory 51a to 51h of the bank area 51 in the memory device 31, and this bank memory 52 receives address signals of the latch circuits 39.4C1l and AO-A17. is input, and A1 is input from the bank address latch circuit 53.
8. Address signals of A19° and A20 are input. Then, A18. which is output from the latch circuit 40. The address signal A19 is input to the C8 terminal of the bank memory 52 via a decoder circuit consisting of an inverter 54 and an AND gate 55. Of course, this bank memory 52 is capable of write/read operations only when the address signal A18 output from the latch circuit 40 is at L level and the address signal A19 at the highest level is at H level.

バンク用アドレスラッチ回路53にはラッチ回路45か
ら出力されたA13.A14のアドレス信号がそれぞれ
アンドゲート56.57を介して入力され、各アンドゲ
ート56,57の他方の入力端にはオアゲート41から
出力された制御信号42が入力されている。
The bank address latch circuit 53 receives A13.A13. output from the latch circuit 45. The address signals of A14 are inputted through AND gates 56 and 57, respectively, and the control signal 42 outputted from the OR gate 41 is inputted to the other input terminal of each AND gate 56 and 57.

このように構成されたバンクメモリ切換装置におイテ、
CPU38がメモリ装[3117)80000−B F
 F F Fのアドレス領域51内の一つのアドレスを
直接アクセスすると、最上位のA19のアドレス信号は
Hレベルとなり、次のAlBのアドレス信号はLレベル
となる。その結果、デコーダ回路49の切換信号50は
Hレベルとなり、ラッチ回路40へ入力される制御信号
42はLレベルになる。したがって、ラッチ回路40.
39からAO〜A17のアドレス信号がバンクメモリ5
2へ入力されるとともにこのバンクメモリ52は動作可
能状態になる。また、制御信号42がしレベルになると
、バンク用アドレスラッチ回路53へA13.A14の
アドレス信号は入力されないので、バンク用アドレスラ
ッチ回路53からA18〜A20のアドレス信号の予め
定められた4つの組合せのうち第0番目の組合せをバン
クメモリ52へ入力する。
When using the bank memory switching device configured in this way,
CPU38 is memory device [3117)80000-B F
When one address in the address area 51 of FFF is directly accessed, the address signal of the most significant A19 goes to H level, and the address signal of the next AlB goes to L level. As a result, the switching signal 50 of the decoder circuit 49 becomes H level, and the control signal 42 input to the latch circuit 40 becomes L level. Therefore, the latch circuit 40.
The address signals from 39 to AO to A17 are sent to the bank memory 5.
2, this bank memory 52 becomes operational. Further, when the control signal 42 becomes low level, the A13. Since the address signal A14 is not input, the 0th combination of the four predetermined combinations of address signals A18 to A20 is input from the bank address latch circuit 53 to the bank memory 52.

また、CPU38がバンク領域34のバンクメモリをア
クセフする状態では、前述と逆に制御信@42がHレベ
ルとなり、各バンク用アドレスラッチ回路43.44か
らアドレス信号が送出される。同時にバンク用アドレス
ラッチ回路53はCPU38からラッチ回路45を介し
て入力されたA13.A14のアドレス信号の組合せに
対応したA18〜A20のアドレス信号をバンクメモリ
52へ入力する。すなわち、バンクメモリ52を構成す
る8つのバンクメモリ51a〜51hから一つのバンク
メモリが選択される。
Further, when the CPU 38 accesses the bank memory in the bank area 34, the control signal @42 becomes H level, contrary to the above, and address signals are sent out from each bank address latch circuit 43, 44. At the same time, the bank address latch circuit 53 receives A13. Address signals A18 to A20 corresponding to the combination of address signals A14 are input to the bank memory 52. That is, one bank memory is selected from the eight bank memories 51a to 51h forming the bank memory 52.

このようにバンク領域33〜36の各バンクメモリをア
クセフする状態では、このバンクメモリ33〜36に対
応するバンクfWiii!51の各バンクメモリ51a
〜51i1が自動的にバンク切換されるので、プログラ
ム的にバンク切換することなしに複数のバンクメモリ5
1a〜51hをアクセフすることができる。
In this state where each bank memory in the bank areas 33 to 36 is accessed, the bank fWiii! corresponding to this bank memory 33 to 36 is accessed. 51 each bank memory 51a
~ 51i1 is automatically switched banks, so multiple bank memories 5
1a to 51h can be accessed.

[発明の効果コ 以上説明したように本発明によれば、メモリ装置のバン
ク領域の大きさを一部のデータが使用する領域の2倍以
上に設定するとともにバンク領域の切換単位をバンク領
域の大きさより小さくしている。したがって、バンクエ
ンドのチェック回数を低減できるとともにバンク切換回
数を減少でき、全体の演篩処理速度を上昇できる。
[Effects of the Invention] As explained above, according to the present invention, the size of the bank area of the memory device is set to be more than twice the area used by some data, and the bank area switching unit is set to the size of the bank area. It is smaller than the size. Therefore, the number of bank end checks can be reduced, the number of bank switches can be reduced, and the overall screening processing speed can be increased.

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

第1図乃至第4図は本発明の一実論例に係わるマイクロ
コンピュータのバンクメモリ切換装置を示す図であり、
第1図は全体を示すブロック構成図、第2図はデコーダ
回路を示す回路図、第3図はメモリ装置のメモリ配置図
、第4図はバンクメモリを示す図であり、第5図は本発
明の他の実施例のバンクメモリ切換装置のメモリ装置の
メモリ配置図、第6図は同実施例全体を示すブロック図
、第7図は本発明のさらに別の実施例のバンクメモリ切
換装置のメモリ装置のメモリ配置図、第8図は同実施例
全体を示すブロック図、第9図は従来装置におけるメモ
リ装置のメモリ配置図、第10図はプログラムを示す図
である。 11.31・・・メモリ装置、12.38・・・cpu
。 14.15,33,34.35.36・・・バンク領域
、16・・・ゲート回路、17.49・・・デコーダ回
路、19,20.43.44.53・・・バンク用アド
レスラッチ回路、39.40.45・・・ラッチ回路。 出願人代理人 弁理士 鈴江武彦 (a)                (b)第4図 叶 第 7 図 第9図 110  PRINT A  @ 第10図
1 to 4 are diagrams showing a bank memory switching device for a microcomputer according to a practical example of the present invention,
Fig. 1 is a block diagram showing the entire structure, Fig. 2 is a circuit diagram showing a decoder circuit, Fig. 3 is a memory layout diagram of the memory device, Fig. 4 is a diagram showing bank memory, and Fig. 5 is a diagram showing the main part. A memory layout diagram of a memory device of a bank memory switching device according to another embodiment of the invention, FIG. 6 is a block diagram showing the entire embodiment, and FIG. 7 is a diagram of a bank memory switching device according to still another embodiment of the invention. FIG. 8 is a block diagram showing the entire embodiment, FIG. 9 is a memory layout diagram of the memory device in a conventional device, and FIG. 10 is a diagram showing a program. 11.31...Memory device, 12.38...CPU
. 14.15, 33, 34.35.36...Bank area, 16...Gate circuit, 17.49...Decoder circuit, 19,20.43.44.53...Bank address latch circuit , 39.40.45...Latch circuit. Applicant's agent Patent attorney Takehiko Suzue (a) (b) Figure 4 Figure 7 Figure 9 Figure 110 PRINT A @ Figure 10

Claims (4)

【特許請求の範囲】[Claims] (1)メモリ装置の一部領域をバンク領域としてこのバ
ンク領域に配設された各バンクメモリを切換使用するマ
イクロコンピュータのバンクメモリ切換装置において、
前記バンク領域のアドレス領域の大きさを一度に書込み
読出し動作処理される一群のデータが使用するアドレス
領域の2倍以上のアドレス領域の大きさとし、CPUか
ら前記メモリ装置の前記バンク領域内のアドレスが指定
されたとき、このアドレス信号の一部を前記各バンクメ
モリを指定するバンク用アドレスラッチ回路から出力さ
れるアドレス信号に切換え、前記一群のデータが1つの
バンク領域に格納されていないと判断した際に前記バン
ク用アドレスラッチ回路のアドレス信号によりバンクメ
モリを切換え、前記一群のデータを1つのバンク領域内
に格納するようにしたことを特徴とするマイクロコンピ
ュータのバンクメモリ切換装置。
(1) In a bank memory switching device for a microcomputer that uses a partial area of a memory device as a bank area and switches between each bank memory arranged in this bank area,
The size of the address area of the bank area is set to be at least twice the size of the address area used by a group of data that is processed in a write/read operation at one time, and the address area in the bank area of the memory device is transmitted from the CPU to the address area. When specified, a part of this address signal is switched to an address signal output from a bank address latch circuit that specifies each bank memory, and it is determined that the group of data is not stored in one bank area. A bank memory switching device for a microcomputer, characterized in that the bank memory is switched by an address signal of the bank address latch circuit, and the group of data is stored in one bank area.
(2)前記メモリ装置内に複数のバンク領域を設けたこ
を特徴とする特許請求の範囲第(1)項記載のマイクロ
コンピュータのバンクメモリ切換装置。
(2) A bank memory switching device for a microcomputer according to claim (1), characterized in that a plurality of bank areas are provided in the memory device.
(3)前記複数のバンク領域のうちの一つのバンク領域
をダイレクト・メモリ・アクセス動作時におけるアドレ
ス指定用バンク領域としたことを特徴とする特許請求の
範囲第(2)項記載のマイクロコンピュータのバンクメ
モリ切換装置。
(3) The microcomputer according to claim (2), wherein one bank area of the plurality of bank areas is used as an addressing bank area during a direct memory access operation. Bank memory switching device.
(4)前記複数のバンク領域のうちの一つのバンク領域
を割込時専用バンク領域としたことを特徴とする特許請
求の範囲第(2)項記載のマイクロコンピュータのバン
クメモリ切換装置。
(4) The bank memory switching device for a microcomputer as set forth in claim (2), wherein one bank area of the plurality of bank areas is a bank area exclusively used for interrupts.
JP6716386A 1986-03-27 1986-03-27 Bank memory switching device of microcomputer Pending JPS62226246A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6716386A JPS62226246A (en) 1986-03-27 1986-03-27 Bank memory switching device of microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6716386A JPS62226246A (en) 1986-03-27 1986-03-27 Bank memory switching device of microcomputer

Publications (1)

Publication Number Publication Date
JPS62226246A true JPS62226246A (en) 1987-10-05

Family

ID=13336949

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6716386A Pending JPS62226246A (en) 1986-03-27 1986-03-27 Bank memory switching device of microcomputer

Country Status (1)

Country Link
JP (1) JPS62226246A (en)

Similar Documents

Publication Publication Date Title
US4291371A (en) I/O Request interrupt mechanism
US4382278A (en) Hierarchial memory system with microcommand memory and pointer register mapping virtual CPU registers in workspace cache #4 and main memory cache
US4005391A (en) Peripheral interrupt priority resolution in a micro program data processor having plural levels of subinstruction sets
JPH0248931B2 (en)
US4188662A (en) Address converter in a data processing apparatus
US4271467A (en) I/O Priority resolver
US3710349A (en) Data transferring circuit arrangement for transferring data between memories of a computer system
US4764896A (en) Microprocessor assisted memory to memory move apparatus
US4255786A (en) Multi-way vectored interrupt capability
US5127096A (en) Information processor operative both in direct mapping and in bank mapping, and the method of switching the mapping schemes
JPH0731626B2 (en) Electronic circuit for connecting a processor to a mass storage device
EP0110227A2 (en) Control memory organization
US3673575A (en) Microprogrammed common control unit with double format control words
KR950014554B1 (en) Data memory device
JPS62226246A (en) Bank memory switching device of microcomputer
JPS6055911B2 (en) main storage
EP0503498A2 (en) Single-chip microcomputer with program/data memory flag
JP2687679B2 (en) Program development equipment
JPS6113628B2 (en)
JPS6330658B2 (en)
JP3449749B2 (en) Information processing device
KR920003845B1 (en) Rom region expansion system for users of pc
JPS59106047A (en) Microcomputer
JPS6227825A (en) General-purpose high-speed processor
JP3058524B2 (en) Program control unit