JPH01269140A - Memory extending circuit - Google Patents

Memory extending circuit

Info

Publication number
JPH01269140A
JPH01269140A JP9766088A JP9766088A JPH01269140A JP H01269140 A JPH01269140 A JP H01269140A JP 9766088 A JP9766088 A JP 9766088A JP 9766088 A JP9766088 A JP 9766088A JP H01269140 A JPH01269140 A JP H01269140A
Authority
JP
Japan
Prior art keywords
bank
processor
period
memory
instruction
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
JP9766088A
Other languages
Japanese (ja)
Inventor
Takayoshi So
宗 孝義
Tomihiro Furukawa
古川 富裕
Makoto Etani
惠谷 誠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
NEC Engineering Ltd
Original Assignee
NEC Corp
NEC Engineering Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp, NEC Engineering Ltd filed Critical NEC Corp
Priority to JP9766088A priority Critical patent/JPH01269140A/en
Publication of JPH01269140A publication Critical patent/JPH01269140A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To extend a memory area by automatically selecting a memory bank, in which a program is present, during the instruction fetching action period of a processor and selecting a memory bank corresponding to bank selecting data sent by a processor beforehand during the period except it. CONSTITUTION:When a register 2 holds bank selecting data sent from a processor 1 and a processor 1 executes an action to fetch the instruction in a program, a period signal generating part 3 detects the instruction fetching action period and a bank selecting part 4 selects a memory bank to store the program. During the period except the instruction fetching action period, a memory bank corresponding to the contents of the register to hold the bank selecting data sent from the processor beforehand is selected by the bank selecting part 4. Thus, a memory area to store data, etc., independently from the size of the program can be secured and the memory area can be extended.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、プロセッサの持つアドレスバスのビット数で
決定されるサイズ以上のメモリ領域を、前記プロセッサ
からアクセス可能とするメモリ拡張回路に関するもので
ある。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a memory expansion circuit that allows a processor to access a memory area larger than the number of bits of an address bus of the processor. be.

〔従来の技術〕[Conventional technology]

MPU等のプロセッサがアクセス可能なメモリ領域のサ
イズは、−aにはそのプロセッサの持つアドレスバスの
ビット数によって決定される0例えば16ビツトのアド
レスバスを持つプロセッサであれば2′6=65536
番地のメモリ領域を扱うことができる。
The size of the memory area that can be accessed by a processor such as an MPU is determined by the number of bits of the address bus that the processor has. For example, for a processor with a 16-bit address bus, 2'6 = 65536.
Can handle memory areas of addresses.

しかし、大量のプログラムやデータを扱う装置において
は、プロセッサが通常板えるメモリ領域だけでは、プロ
グラムやデータが納まりきれないと言う様な問題が生ず
る。そのためにメモリ領域の拡張機能が必要となる。通
常、この様な機能を実現する方式としては、バンク切替
方式が知られている。
However, in devices that handle large amounts of programs and data, a problem arises in that the memory area normally available to the processor cannot accommodate the programs and data. For this purpose, a memory area expansion function is required. A bank switching method is generally known as a method for realizing such a function.

このバンク切替方式によるメモリ拡張回路では、プロセ
ッサから見て同一のアドレス空間に設けられた複数のメ
モリ領域(一つのメモリ領域をバンクという)の何れか
一つを、プロセッサから事前に送出されるバンク選択デ
ータにより選択しておくものであり、プロセンサにとっ
てはプロセッサ自身の扱えるメモリ領域内でアクセスし
ているように見えるが、実際には同一のアドレス空間に
複数のバンクがあるため、増設したバンクの個数分だけ
メモリ領域が拡張されたものとなる。
In a memory expansion circuit using this bank switching method, any one of a plurality of memory areas (one memory area is called a bank) provided in the same address space as seen from the processor is transferred to a bank that is sent out in advance from the processor. It is selected based on the selection data, and it appears to the processor that the access is within the memory area that the processor itself can handle, but in reality there are multiple banks in the same address space, so the added bank The memory area is expanded by the number of objects.

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

ところで、−Cにメモリ領域に格納すべき内容にはプロ
グラムとそれ以外のデータ等とがあるが、従来のバンク
切替方式によるメモリ拡張回路はプロセッサからのバン
ク選択データで一意に決定されるバンクを、次のバンク
選択データがプロセッサより送出されるまで、常に選択
する構成となっているので、プログラムを各バンクに共
通に格納しておくか、あるいはプログラムはバンク切替
の対象としない基本バンクに格納し基本バンクが占める
アドレス空間外のアドレス空間に切替対象とする複数の
バンクを設けておく必要があった。このため、プログラ
ムのサイズが大きくなればなる程、拡張できるメモリ領
域のサイズが制限され、特にプロセッサが通常扱えるメ
モリ領域すべてのサイズをプログラム格納の為に必要と
する場合には、メモリ領域の拡張は不可能となる。
By the way, the contents that should be stored in the memory area of -C include programs and other data, but the memory expansion circuit using the conventional bank switching method stores only the bank that is uniquely determined by the bank selection data from the processor. Since the configuration is such that the selection is always made until the next bank selection data is sent from the processor, the program should be stored in common in each bank, or the program should be stored in a basic bank that is not subject to bank switching. However, it was necessary to provide a plurality of banks to be switched in an address space other than the address space occupied by the basic bank. For this reason, the larger the program size, the more limited the size of the memory area that can be expanded.Especially when the entire memory area that the processor can normally handle is required to store the program, expanding the memory area becomes more difficult. becomes impossible.

本発明の目的は、そのような場合にもメモリ領域の拡張
が可能なメモリ拡張回路を提供することにある。
An object of the present invention is to provide a memory expansion circuit that can expand the memory area even in such a case.

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

本発明のメモリ拡張回路は、上記の目的を達成するため
に、プロセッサからのバンク選択データを保持するレジ
スタと、前記プロセッサの命令フェッチ動作期間を検出
し、その期間を示す信号を生成する期間信号生成部と、
この期間信号生成部からの信号に基づき、前記プロセッ
サの命令フェッチ動作期間中はプログラムの格納された
メモリバンクを選択し、それ以外の期間は前記レジスタ
に保持されたバンク選択データに対応するメモリバンク
を選択するバンク選択部とで構成される。
In order to achieve the above object, the memory expansion circuit of the present invention includes a register that holds bank selection data from a processor, and a period signal that detects an instruction fetch operation period of the processor and generates a signal indicating the period. A generation section,
Based on the signal from the period signal generator, the memory bank in which the program is stored is selected during the instruction fetch operation period of the processor, and the memory bank corresponding to the bank selection data held in the register is selected during other periods. It consists of a bank selection section that selects a bank.

〔作用〕[Effect]

本発明のメモリ拡張回路においては、プロセッサから送
出されたバンク選択データをレジスタが保持し、プロセ
ッサがプログラム中の命令をフェッチする動作を行うと
、期間信号生成部がその命令フェッチ動作期間を検出し
、バンク選択部がプログラムの格納されたメモリバンク
を選択する。
In the memory expansion circuit of the present invention, the register holds the bank selection data sent from the processor, and when the processor performs an operation to fetch an instruction in the program, the period signal generation section detects the instruction fetch operation period. , a bank selection section selects a memory bank in which a program is stored.

また、命令フェッチ動作期間以外の期間は、プロセッサ
から事前に送出されたバンク選択データを保持するレジ
スタの内容に対応するメモリバンクをバンク選択部が選
択する。
Furthermore, during a period other than the instruction fetch operation period, the bank selection section selects a memory bank corresponding to the contents of a register that holds bank selection data sent in advance from the processor.

〔実施例) 次に本発明の実施例について図面を参照して詳細に説明
する。
[Example] Next, an example of the present invention will be described in detail with reference to the drawings.

本発明にかかるメモリ拡張回路を適用したプロセッサシ
ステムの構成例を示す第1図において、1は、アドレス
信号と命令フェッチ信号M1と読込信号MRDと書込信
号10Wと、その他各種の一信号とを出力あるいは入力
するプロセッサであり、上記のアドレス信号はプロセッ
サ1がプログラムを実行する際にアドレスバス11へ出
力される信号、命令フェッチ信号M1はプロセッサlが
命令(命令コード)を読込むタイミングを示す信号、書
込信号10Wはプロセッサ1がレジスタ等ヘデータを書
込むタイミングを示す信号である。これらの各信号はプ
ロセッサ1の内部で原クロツク信号Φと同期して出力さ
れる。また、2は、プロセッサ1のプログラム動作によ
ってデータバス9に出力されたバンク選択データを、書
込信号10Wのタイミングに従って内部に保持するレジ
スタである。3は、原クロツク信号Φと、プロセッサl
から出力される命令フェッチ信号M1と、後述する命令
デコーダ7からのタイミング制御信号TCとに基づき、
プロセッサ1の命令フェッチ動作期間中“0”となるフ
ェッチ期間信号ACを生成するフェッチ期間信号発生器
である。4は、フェッチ期間信号発生器3より出力され
るフェッチ期間信号ACが“0”を示す期間中、すなわ
ちプロセッサ1の命令フェッチ動作期間中は、プログラ
ムの格納された後述するメモリバンク6−1に対応する
バンク選択データを自ら生成してバンク選択データバス
10に出力し、その他の期間中は、レジスタ2に保持さ
れたバンク選択データをバンク選択データバス10に出
力するバンク選択データ発生器である。5は、バンク選
択データ発生器4からバンク選択データバス10へ出力
されたバンク選択データをデコードすることにより、バ
ンク選択信号C3,−C3nの何れか1つをイネーブル
(“O”の状態)にするバンク選択データデコーダであ
る。6−1〜6−nは、それぞれ第1〜第nのバンクを
構成するメモリバンクである0本実施例では、第1のバ
ンクを構成するメモリバンク6−1にプロセッサ1で実
行させるプログラムを格納し、他のバンクを構成するメ
モリバンク6−2〜6−nにデータ等を格納している。
In FIG. 1 showing a configuration example of a processor system to which a memory expansion circuit according to the present invention is applied, 1 indicates an address signal, an instruction fetch signal M1, a read signal MRD, a write signal 10W, and other various signals. It is a processor that outputs or inputs, the above address signal is a signal output to address bus 11 when processor 1 executes a program, and instruction fetch signal M1 indicates the timing at which processor 1 reads an instruction (instruction code). The write signal 10W is a signal indicating the timing at which the processor 1 writes data to a register or the like. Each of these signals is output within the processor 1 in synchronization with the original clock signal Φ. A register 2 internally holds bank selection data output to the data bus 9 by the program operation of the processor 1 in accordance with the timing of the write signal 10W. 3 is the original clock signal Φ and the processor l.
Based on the instruction fetch signal M1 output from the instruction decoder 7 and the timing control signal TC from the instruction decoder 7, which will be described later,
This is a fetch period signal generator that generates a fetch period signal AC that becomes "0" during an instruction fetch operation period of the processor 1. 4 is a memory bank 6-1 in which a program is stored, which will be described later, during a period in which a fetch period signal AC outputted from the fetch period signal generator 3 indicates "0", that is, during an instruction fetch operation period of the processor 1. It is a bank selection data generator that generates the corresponding bank selection data by itself and outputs it to the bank selection data bus 10, and outputs the bank selection data held in the register 2 to the bank selection data bus 10 during other periods. . 5 enables one of the bank selection signals C3 and -C3n (state "O") by decoding the bank selection data output from the bank selection data generator 4 to the bank selection data bus 10. This is a bank selection data decoder. 6-1 to 6-n are memory banks constituting the first to nth banks, respectively. In this embodiment, a program to be executed by the processor 1 is stored in the memory bank 6-1 constituting the first bank. Data and the like are stored in memory banks 6-2 to 6-n that constitute other banks.

なお、各メモリバンク6−1〜6−nは、例えば64K
Bの容量を持つ、7は、命令フェッチ信号Mlのタイミ
ングに従ってデータバス9上の内容(命令を構成する先
頭の命令要素)を取込み、これを解析してフェッチ期間
信号発生器3が命令フェッチ動作期間中フェッチ期間信
号ACを“O”にする為に必要とするタイミング制御信
号TCを生成し、フェッチ期間信号発生器3に送出する
命令デコーダである。8は、原クロツク信号Φを発生す
る原クロツタ発振器である。
Note that each memory bank 6-1 to 6-n has a memory capacity of 64K, for example.
7, which has a capacity of This is an instruction decoder that generates a timing control signal TC required to set the fetch period signal AC to "O" during the period, and sends it to the fetch period signal generator 3. 8 is an original clock oscillator that generates an original clock signal Φ.

第2図は第1図の各部の波形を示す動作タイミングチャ
ートであり、プロセッサ1が、期間1゜にメモリバンク
6−1のアドレスA!1から一つの命令要素C8で構成
される命令をフェッチし、次の期間t8でメモリバンク
6−2のプロセッサ1から見て上記命令要素C1と同一
のアドレスA!。
FIG. 2 is an operation timing chart showing the waveforms of each part in FIG. 1 to an instruction consisting of one instruction element C8, and in the next period t8, as seen from the processor 1 of the memory bank 6-2, the address A! is the same as the instruction element C1! .

からデータD1を読出し、次の期間t3+”4にメモリ
バンク6−1のアドレスA 、、A 23から二つの命
令要素cz−+、cz−tで構成される命令をフェッチ
し、次の期間t、でメモリバンク6−2のアドレスバス
、からデータD8を読出すときのものである。また、第
3図はそのときにプロセッサ1のアクセス対象となるメ
モリバンクの遷移を示す。
The data D1 is read from the memory bank 6-1 during the next period t3+"4, and an instruction consisting of two instruction elements cz-+ and cz-t is fetched from the address A23 of the memory bank 6-1. , when data D8 is read from the address bus of memory bank 6-2. FIG. 3 shows the transition of the memory bank to be accessed by processor 1 at that time.

以下、第2図に示す例に沿って本実施例の動作を説明す
る。
The operation of this embodiment will be described below with reference to the example shown in FIG.

(1)命令フェッチ動作期間t。(1) Instruction fetch operation period t.

プロセッサ1は、メモリバンク6−2のデータを処理す
るに先立って、第2図の破線で示すように、メモリバン
ク6−2に対応するバンク選択データS8をデータバス
9に送出すると共に書込信号10Wを所定時間“O”と
することにより、レジスタ2にバンク選択データS、を
保持させておく。
Before processing the data in the memory bank 6-2, the processor 1 sends and writes bank selection data S8 corresponding to the memory bank 6-2 to the data bus 9, as shown by the broken line in FIG. By keeping the signal 10W at "O" for a predetermined period of time, the bank selection data S is held in the register 2.

プロセッサ1は、命令フェッチ動作期間1.に入ると、
第2図に示すように命令フェッチ信号M1を所定時間“
0”にすると共に、フェッチする命令のアドレス(プロ
セッサアドレス)A意+をアドレスバス11へ出力する
。プロセッサ1により命令フェッチ信号M1が“O”に
されると、フェッチ期間信号発生器3は第2図に示すよ
うに直ちにフェッチ期間信号ACを“θ″にする。
Processor 1 performs instruction fetch operation period 1. When you enter,
As shown in FIG. 2, the instruction fetch signal M1 is
0" and outputs the address (processor address) of the instruction to be fetched (processor address) to the address bus 11. When the instruction fetch signal M1 is set to "O" by the processor 1, the fetch period signal generator 3 As shown in FIG. 2, the fetch period signal AC is immediately set to "θ".

フェッチ期間信号ACが“0”にされると、バンク選択
データ発生器4はレジスタ2に保持されているバンク選
択データS2にかかわらず、フェッチ期間信号ACが“
O”となっている期間中、プログラムの格納されたメモ
リバンク6−1に対応するバンク選択データS1を第2
図に示すようにバンク選択データバス10を介してバン
ク選択データデコーダ5に出力する。
When the fetch period signal AC is set to "0", the bank selection data generator 4 sets the fetch period signal AC to "0" regardless of the bank selection data S2 held in the register 2.
During the period in which the program is stored, the bank selection data S1 corresponding to the memory bank 6-1 in which the program is stored is transferred to the second
As shown in the figure, the bank selection data is output to the bank selection data decoder 5 via the bank selection data bus 10.

バンク選択データデコーダ5はこのバンク選択データS
lをデコードすることにより、メモリバンク6−1に対
するバンク選択信号C8Iのみをイネーブル(“0″の
状B)とする、これにより、メモリバンク6−1〜6−
nのうちメモリバンク6−1のみが有効となる。
The bank selection data decoder 5 receives this bank selection data S.
By decoding 1, only the bank selection signal C8I for the memory bank 6-1 is enabled (state B of "0").
Only memory bank 6-1 among memory banks 6-1 becomes valid.

メモリバンク6−1には、プロセッサ1からアドレスバ
ス11に出力されたアドレスAllが加えられているの
で、バンク選択信号C81が“0″となり、読込信号M
RDが加わることにより、アドレスA□に記憶されてい
る命令要素C1がデータバス9に読み出される。
Since the address All output from the processor 1 to the address bus 11 is added to the memory bank 6-1, the bank selection signal C81 becomes "0" and the read signal M
With the addition of RD, the instruction element C1 stored at address A□ is read onto data bus 9.

データバス9に出力された命令要素C1は、プロセッサ
1と命令デコーダ7へ加えられる。命令デコーダ7はプ
ロセッサ1より出力されている命令フェッチ信号M1の
タイミングでこの命令要素C3を取込み、その内容を解
読することにより、今回の命令が幾つの命令要素で構成
されるものかを判断し、その必要命令数に合致するタイ
ミング制御信号TC,をフェッチ期間信号発生器3へ出
力する。
The instruction element C1 output to the data bus 9 is applied to the processor 1 and instruction decoder 7. The instruction decoder 7 takes in this instruction element C3 at the timing of the instruction fetch signal M1 output from the processor 1, and determines how many instruction elements the current instruction consists of by decoding its contents. , and outputs a timing control signal TC, matching the required number of instructions, to the fetch period signal generator 3.

フェッチ期間信号発生器3は、命令デコーダ7より出力
されるタイミング制御信号TC,をプロセッサ1より出
力される命令フェッチ信号M1が有効10″)となって
いる間に取込み、命令フェッチ信号M1が有効でなくな
った時点すなわち′l”となった時点からタイミング制
御信号TC。
The fetch period signal generator 3 takes in the timing control signal TC output from the instruction decoder 7 while the instruction fetch signal M1 output from the processor 1 is valid (10''), and the instruction fetch signal M1 is valid. From the time when the timing control signal TC becomes ``l'', that is, the timing control signal TC becomes ``l''.

で示される期間だけ原クロツク信号Φと同期して第2図
に示すようにフェッチ期間信号ACの“0”状態を保持
する。バンク選択データ発生器4は前述したようにフェ
ッチ期間信号ACが“0″となっている間、プログラム
の格納されているメモリバンク6−1に対応するバンク
選択データS1をバンク選択データバス10に出力する
ので、期間L1の間は、メモリバンク6−1が選択され
ることになる。そして、フェッチ期間信号ACが無効(
“1”の状態)となった時点で、バンク選択データ発生
器4は第2図に示すように、レジスタ2から出力されて
いるメモリバンク6−2を指示するバンク選択データS
8をバンク選択データバス10に出力することになる。
As shown in FIG. 2, the fetch period signal AC is kept in the "0" state in synchronization with the original clock signal Φ for a period indicated by . As described above, the bank selection data generator 4 sends the bank selection data S1 corresponding to the memory bank 6-1 in which the program is stored to the bank selection data bus 10 while the fetch period signal AC is "0". Since the memory bank 6-1 is output, the memory bank 6-1 is selected during the period L1. Then, the fetch period signal AC is invalid (
As shown in FIG.
8 will be output to the bank selection data bus 10.

また、メモリバンク6−1よりデータバス9を介してプ
ロセッサ1へ送られた命令要素C1は、プロセッサlよ
り出力される読込信号MRDに同期してプロセッサ1に
読込まれ、その命令要素C1で構成される命令によって
プログラム動作を開始する。
Further, the instruction element C1 sent from the memory bank 6-1 to the processor 1 via the data bus 9 is read into the processor 1 in synchronization with the read signal MRD output from the processor l, and is configured with the instruction element C1. The program operation is started by the command given.

(1)データ読込動作期間も。(1) Also the data reading operation period.

次に、プロセッサ1に読込まれた命令要素C1で構成さ
れる命令によってプログラム動作が開始されると、プロ
セッサ1は期間も!に示す動作に移る。゛ここでは、命
令要素C1で構成される命令によるプログラム動作がメ
モリバンク6−2のアドレスA8.(前述のプログラム
アドレスと同じ)のデータD1を読出すものを想定して
いるので、期間t、では先ず、プロセッサ1はアドレス
バス11へ読込みを行うアドレスA□を出力する。
Next, when a program operation is started by the instruction composed of the instruction element C1 read into the processor 1, the processor 1 starts the period! Proceed to the operation shown in .゛Here, a program operation based on an instruction composed of instruction element C1 is executed at address A8. of memory bank 6-2. Since it is assumed that the data D1 (same as the aforementioned program address) is to be read, the processor 1 first outputs the read address A□ to the address bus 11 in the period t.

前述したように期間り、へ移った時点で、バンク選択デ
ータバス10にはバンク選択データ発生器4からメモリ
バンク6−2を選択するためのバンク選択データS8が
出力されているので、このバンク選択データS!がバン
ク選択データデコーダ5によりデコードされることによ
り、第2図に示すようにメモリバンク6−2に対するバ
ンク選択信号C32のみがイネーブルにされる。従って
、プロセッサ1が第2図に示すように読込信号MRDを
出力すると、メモリバンク6−2のみが動作することに
なる。
As mentioned above, at the time when the period moves to , the bank selection data S8 for selecting the memory bank 6-2 has been output from the bank selection data generator 4 to the bank selection data bus 10, so this bank Selection data S! is decoded by bank selection data decoder 5, so that only bank selection signal C32 for memory bank 6-2 is enabled as shown in FIG. Therefore, when processor 1 outputs read signal MRD as shown in FIG. 2, only memory bank 6-2 operates.

メモリバンク6−2は、プロセッサ1よりアドレスバス
11へ出力されているアドレスA!1と読込信号MRD
およびバンク選択信号C32とによって、アドレスAz
+に記憶されているデータD。
The memory bank 6-2 receives the address A! which is output from the processor 1 to the address bus 11. 1 and read signal MRD
and bank selection signal C32, the address Az
Data D stored in +.

を第2図に示すようにデータバス9へ出力する。is output to the data bus 9 as shown in FIG.

この期間t2ではプロセッサ1より出力される命令フェ
ッチ信号M1は1″となっているので、命令デコーダ7
およびフェッチ期間信号発生器3は動作せず、データD
、がプロセッサ1に読込まれる動作だけが行われる。
During this period t2, the instruction fetch signal M1 output from the processor 1 is 1'', so the instruction decoder 7
And the fetch period signal generator 3 does not operate, and the data D
, is read into processor 1.

(3)命令フェッチ動作期間t3+’4次に、期間t、
に示すように再び命令フェッチ動作が行われた場合に於
いては、期間t1と全く同様に動作し、メモリバンク6
−1よりデータバス9へ出力された命令要素Cl−1が
プロセッサ1へ読込まれ、その命令要素C2−1の持つ
プログラム動作が行われる。しかし、今は、命令要素C
2−1だけでは一つの命令を構成せず、その次のもう一
つの命令要素C8−2が必要である場合を想定している
ので、次のような動作が行われる。
(3) Instruction fetch operation period t3+'4 Next, period t,
When the instruction fetch operation is performed again as shown in FIG.
The instruction element Cl-1 output from -1 to the data bus 9 is read into the processor 1, and the program operation of the instruction element C2-1 is performed. However, now the command element C
Since it is assumed that 2-1 alone does not constitute one instruction and another instruction element C8-2 is required, the following operation is performed.

期間t、においてメモリバンク6−1が、バンク選択デ
ータデコーダ5の出力するバンク選択信号C81とプロ
セッサ1よりアドレスバス11へ出力されるアドレスΔ
22とプロセッサ1の出力する読込信号MRDとによっ
てデータバス9へ命令要素C!−8を出力すると、命令
デコーダ7はこの命令要素C8−9を解析し、二つの要
素を必要とする命令の型である旨を認識する。そして、
それに合致したタイミング制御信号TC,をフェッチ期
間信号発生器3へ出力する。命令デコーダ7より出力さ
れるタイミング制御信号TO8を入力したフェッチ期間
信号発生器3は、原クロック信号φと同期して第2図に
示すように期間t、から期間L4にまたがってフェッチ
期間信号ACを“0″に保持し続ける。このため期間t
4においてもメモリバンク6−1が続けて選択されるこ
となり、メモリバンク6−1におけるプロセッサ1によ
りアドレスバス11に出力されたアドレスA。に記憶さ
れている命令要素C!−1がアクセスされ、プロセッサ
1はこの命令要素C1−8を二つ目の命令要素として読
込み且つ認識することになる。
During period t, the memory bank 6-1 receives the bank selection signal C81 output from the bank selection data decoder 5 and the address Δ output from the processor 1 to the address bus 11.
22 and the read signal MRD output from the processor 1, the instruction element C! is sent to the data bus 9. When -8 is output, the instruction decoder 7 analyzes this instruction element C8-9 and recognizes that it is an instruction type that requires two elements. and,
A timing control signal TC that matches this is output to the fetch period signal generator 3. The fetch period signal generator 3, which receives the timing control signal TO8 outputted from the instruction decoder 7, generates a fetch period signal AC over a period t to a period L4 in synchronization with the original clock signal φ, as shown in FIG. continues to be held at “0”. Therefore, the period t
4, the memory bank 6-1 continues to be selected, and the address A is output to the address bus 11 by the processor 1 in the memory bank 6-1. Command element C! stored in C! -1 is accessed, and the processor 1 reads and recognizes this instruction element C1-8 as the second instruction element.

(4)データ読込動作期間t。(4) Data reading operation period t.

プロセッサ1に読込まれた命令要素Cz −+ + C
! −gで構成される命令によってプログラム動作が開
始されて期間1.に示す動作に移る0期間t、に示す動
作は期間t2に示す動作と全く同じであり、メモリバン
ク6−2のアドレスA+44に記憶されているデータD
、がデータバス9を介してプロセッサ1に読込まれるも
のである。
Instruction element Cz −+ + C read into processor 1
! The program operation is started by an instruction consisting of -g, and period 1. The operation shown in the 0 period t, which is the same as the operation shown in the period t2, is that the data D stored at address A+44 of the memory bank 6-2
, are read into the processor 1 via the data bus 9.

以上のようにプロセッサ1は命令フェッチ動作。As described above, processor 1 performs an instruction fetch operation.

このフェッチした命令に従う動作のサイクルを繰返し、
メモリ拡張回路もこれに合わせて、プログラムの格納さ
れたメモリ6−1を選択する動作と、プロセッサ1から
バンク選択データで指定された他のメモリを選択する動
作との繰返しを行う、なお以上は、メモリからの読込み
動作を中心に説明を行ったが、メモリへの書込みが発生
した場合でも同様な動作が行われる。
Repeat the cycle of operations according to this fetched instruction,
In accordance with this, the memory expansion circuit also repeats the operation of selecting the memory 6-1 in which the program is stored and the operation of selecting another memory specified by the bank selection data from the processor 1. , the explanation has focused on the read operation from the memory, but the same operation is performed even when writing to the memory occurs.

以上本発明の実施例について説明したが、本発明は以上
の実施例にのみ限定されずその他各種の付加変更が可能
である0例えば、アドレスバス11のアドレスをバンク
選択データデコーダ5に加え、メモリバンク6−1〜6
−nを構成するメモリチップのチップ選択信号とバンク
選択信号C3゜〜C311とをバンク選択データデコー
ダ5において生成するようにしても良い。
Although the embodiments of the present invention have been described above, the present invention is not limited to the above embodiments, and various other additions and changes are possible.For example, the address of the address bus 11 is added to the bank selection data decoder 5, Bank 6-1~6
The bank selection data decoder 5 may generate the chip selection signal of the memory chip composing the memory chip -n and the bank selection signals C3° to C311.

[発明の効果〕 以上説明したように、本発明によれば、プロセッサの命
令フェッチ動作期間中はプログラムの存在するメモリバ
ンクが自動的に選択され、それ以外の期間中はプロセッ
サが事前に送出したバンク選択データに対応するメモリ
バンクが選択されるので、プログラムのサイズと独立に
データ等を格納するメモリ領域を確保でき、特にプログ
ラムのサイズがプロセッサの持つアドレスバスのビット
幅で決定されるメモリ領域のサイズに等しい場合でも、
メモリ領域の拡張が可能となる。また、命令フェッチ動
作期間中の検出、プログラムの存在するメモリバンクと
他のメモリバンクとのバンク切替がプロセッサと独立に
動作するメモリ拡張回路自身で行われるので、プログラ
ムの負荷の増大やプロセッサのオーバーヘッド時間の増
大を招来することもない。
[Effects of the Invention] As explained above, according to the present invention, the memory bank in which the program exists is automatically selected during the instruction fetch operation period of the processor, and the memory bank in which the program exists is automatically selected during the instruction fetch operation period of the processor. Since the memory bank corresponding to the bank selection data is selected, a memory area for storing data etc. can be secured independent of the program size, especially a memory area where the program size is determined by the bit width of the address bus of the processor. even if it is equal to the size of
Memory area can be expanded. In addition, since detection during instruction fetch operations and bank switching between the memory bank where the program resides and other memory banks are performed by the memory expansion circuit itself, which operates independently of the processor, there is an increase in program load and processor overhead. It does not result in an increase in time.

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

第1図は本発明の一実施例のブロック図、第2図は第1
図に示す装置の動作タイミングチャートおよび、 第3図はアクセス対象となるメモリバンクの遷移を示す
図である。 図において、 1・・・プロセッサ 2・・・レジスタ 3・・・フェッチ期間信号発生器 4・・・バンク選択データ発生器 5・・・バンク選択データデコーダ 6−1〜6−n・・・メモリバンク 7・・・命令デコーダ 8・・・原クロツク発振器 9・・・データバス 10・・・バンク選択データバス 11・・・アドレスバス AC・・・フェッチ期間信号 TC・・・タイミング制御信号 CS、〜C3n・・・バンク選択信号
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is a block diagram of an embodiment of the present invention.
The operation timing chart of the device shown in the figure and FIG. 3 are diagrams showing the transition of memory banks to be accessed. In the figure, 1...Processor 2...Register 3...Fetch period signal generator 4...Bank selection data generator 5...Bank selection data decoder 6-1 to 6-n...Memory Bank 7... Instruction decoder 8... Original clock oscillator 9... Data bus 10... Bank selection data bus 11... Address bus AC... Fetch period signal TC... Timing control signal CS, ~C3n...bank selection signal

Claims (1)

【特許請求の範囲】 プロセッサからのバンク選択データを保持するレジスタ
と、 前記プロセッサの命令フェッチ動作期間を検出し、その
期間を示す信号を生成する期間信号生成部と、 該期間信号生成部からの信号に基づき、前記プロセッサ
の命令フェッチ動作期間中はプログラムの格納されたメ
モリバンクを選択し、それ以外の期間は前記レジスタに
保持されたバンク選択データに対応するメモリバンクを
選択するバンク選択部とを具備したことを特徴とするメ
モリ拡張回路。
[Scope of Claims] A register that holds bank selection data from a processor; a period signal generation unit that detects an instruction fetch operation period of the processor and generates a signal indicating the period; and a register that stores bank selection data from the period signal generation unit. a bank selection unit that selects a memory bank in which a program is stored during an instruction fetch operation period of the processor based on the signal, and selects a memory bank corresponding to bank selection data held in the register during other periods; A memory expansion circuit characterized by comprising:
JP9766088A 1988-04-20 1988-04-20 Memory extending circuit Pending JPH01269140A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9766088A JPH01269140A (en) 1988-04-20 1988-04-20 Memory extending circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9766088A JPH01269140A (en) 1988-04-20 1988-04-20 Memory extending circuit

Publications (1)

Publication Number Publication Date
JPH01269140A true JPH01269140A (en) 1989-10-26

Family

ID=14198218

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9766088A Pending JPH01269140A (en) 1988-04-20 1988-04-20 Memory extending circuit

Country Status (1)

Country Link
JP (1) JPH01269140A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6033644A (en) * 1983-08-05 1985-02-21 Nippon Sheet Glass Co Ltd Memory bank switching method and its device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6033644A (en) * 1983-08-05 1985-02-21 Nippon Sheet Glass Co Ltd Memory bank switching method and its device

Similar Documents

Publication Publication Date Title
US7376783B2 (en) Processor system using synchronous dynamic memory
JPH01269140A (en) Memory extending circuit
KR20000003404A (en) Micro controller for accessing an external memory
JP2000187983A (en) Memory device
JP3045731B2 (en) Sequence control method
JPS61253559A (en) Microprocessor
JP3866259B2 (en) Processor
JPS62143139A (en) Microprogram controller
JPH05197612A (en) Data access circuit
JPH0512107A (en) Program execution system
JPH06187307A (en) Coprocessor
JPH1049437A (en) Dynamic ram controller
JPH05151076A (en) Memory address extension control system
JPH05189015A (en) Programmable controller
JPS6375852A (en) Memory access system
JPH05210569A (en) Memory controller
JPH0354665A (en) Vector processor
JPH0314145A (en) Memory access circuit
JPH02126347A (en) Memory access system
JPH07319753A (en) Multiplex system for bus cycle
JPH05135571A (en) Memory controller
KR19980025617A (en) Address space expansion method and device
JPH0277934A (en) Line buffer memory
JPH05189014A (en) Programmable controller
JPH03142536A (en) Diagnostic system for storage