JPS6326744A - Memory bank switching circuit for microprocessor - Google Patents

Memory bank switching circuit for microprocessor

Info

Publication number
JPS6326744A
JPS6326744A JP17054286A JP17054286A JPS6326744A JP S6326744 A JPS6326744 A JP S6326744A JP 17054286 A JP17054286 A JP 17054286A JP 17054286 A JP17054286 A JP 17054286A JP S6326744 A JPS6326744 A JP S6326744A
Authority
JP
Japan
Prior art keywords
memory
memory bank
bank
instruction code
cpu
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
JP17054286A
Other languages
Japanese (ja)
Inventor
Fuyuki Kobayashi
小林 冬記
Shinpei Yamaguchi
真平 山口
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 JP17054286A priority Critical patent/JPS6326744A/en
Publication of JPS6326744A publication Critical patent/JPS6326744A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To switch memory banks at high speed by providing an instruction code detecting means separately from a central arithmetic processor to detect a specific instruction code which designates the switch of memory banks. CONSTITUTION:The data on an FF is read to a CPU 2 and a memory fetch signal is kept active. In such a case, the FF data is detected by a coincidence circuit 14 and the FF is set. As a result, a memory bank 4 is switched to a memory bank 6. Hereafter the data corresponding to the addresses designated by the CPU 2 are read out of the bank 6. When those data read out successively out of the bank 6 are equal to 01 at a time point, the bank 6 is switched to the bank 4.

Description

【発明の詳細な説明】 (技術分野) 本発明は、マイクロプロセッサにおけるメモリの容量を
拡大するために用いられるメモリバンクの切り換え回路
に関する。
DETAILED DESCRIPTION OF THE INVENTION (Technical Field) The present invention relates to a memory bank switching circuit used to expand memory capacity in a microprocessor.

(従来技術) マイクロプロセッサで使用できるメモリの容量は、基本
的に、そのマイクロプロセッサのアドレスバスの大きさ
によって定まる。例えば、アドレスバスが16本の場合
、マイクロプロセッサで使用できるメモリ容量は約64
にバイト(21″=65゜536ビノト)である。また
、アドレスバスが20本の場合、メモリ容量は約I M
バイト(2”=1゜048、576ビノト)である。こ
のようなアドレスバスの大きさによるメモリ容量の基本
的な制限にかかわらず、さらにメモリ容量を拡大するた
めに、メモリバンクの切り換え方式が従来から考えられ
ている。
(Prior Art) The memory capacity that can be used by a microprocessor is basically determined by the size of the address bus of the microprocessor. For example, if there are 16 address buses, the memory capacity that can be used by the microprocessor is approximately 64.
bytes (21″=65°536 bytes). Also, if there are 20 address buses, the memory capacity is approximately I M
bytes (2” = 1°048, 576 bits).Despite the basic limitation of memory capacity due to the size of the address bus, in order to further expand the memory capacity, a memory bank switching method has been developed. It has been considered for a long time.

このメモリバンク切り換え方式は、中央演算処理器(C
P U)からの共通のアドレスバス上に、複数のメモリ
バンクを配置するとともに、これらのメモリバンクのう
ちから所望のメモリバンクを選んでアクセスできるよう
にしたものである。以下に従来のメモリバンク切り換え
回路を第2図に従って説明する。
This memory bank switching method is based on the central processing
A plurality of memory banks are arranged on a common address bus from PU), and a desired memory bank can be selected and accessed from among these memory banks. A conventional memory bank switching circuit will be explained below with reference to FIG.

CPU2からの共通のアドレスバスAおよび共通のデー
タバスB上にアクセス可能な範囲内で互いに共通のアド
レス群が設定されている複数(第2図では2個)のメモ
リバンク4.6が配置されている。そして、メモリバン
ク4.6を切り換えるためメモリバンク切り換え回路は
、CPU2の入出力ボートに接続された第1デコーダ8
と、この第1デコーダ8とCPU2のデータバスBに接
続された第2デコーダ10と、この第2デコーダ10に
接続されたラッチ回路12とから構成されている。
A plurality of (two in FIG. 2) memory banks 4.6 are arranged on a common address bus A and a common data bus B from the CPU 2, each having a common address group within an accessible range. ing. In order to switch the memory bank 4.6, the memory bank switching circuit connects the first decoder 8 connected to the input/output port of the CPU 2.
, a second decoder 10 connected to the first decoder 8 and the data bus B of the CPU 2, and a latch circuit 12 connected to the second decoder 10.

このようなメモリバンク切り換え回路が必要とされるの
は次の理由による。CPtJ2が、例えば100番地を
アクセスしたとき、前記複数のメモリバンク4,6のい
ずれにも同じ100番地が存在するために、どのメモリ
バンクの100番地であるかを指定しなければ、誤った
メモリバンクにデータを書き込んでしまったり、各メモ
リバンクから読み出されたデータ同士が衝突するといっ
たトラブルが生じることになるからである。
The reason why such a memory bank switching circuit is required is as follows. For example, when CPtJ2 accesses address 100, since the same address 100 exists in each of the plurality of memory banks 4 and 6, if the address 100 is not specified in which memory bank, an incorrect memory will be accessed. This is because troubles such as data being written to a bank or data read from each memory bank colliding with each other may occur.

次に第2図に示した従来例のメモリバンク切り換え動作
を説明する。
Next, the memory bank switching operation of the conventional example shown in FIG. 2 will be explained.

まず、第1デコーダ8がCPU2の入出力ボートからメ
モリバンク切り換え指令信号を受は取ると、この第1デ
コーダ8はメモリバンク4.6を切り換えるためのポー
トを選んで、第2デコーダ10に信号を発してこれを起
動させる。そして、この状態において、第2デコーダ1
0にデータバスBを介してCPU2から例えばメモリパ
ンクロを指定するメモリバンク指定信号が入力されると
、第2デコーダlOは前記メモリバンク指定信号に対応
するメモリバンク選択信号をランチ回路12に出力する
。これによりランチ回路12は、そのメモリバンク選択
信号に対応するメモリパンクロのみを動作可能にする信
号を出力し、以後、新たなメモリバンク選択信号が与え
られるまで、その状態を保持する。したがって、この間
にアドレスバスAを介してCPIJ2から番地がアクセ
スされると、このときに選択されているメモリパンクロ
のみについて読み書きが行われる。
First, when the first decoder 8 receives a memory bank switching command signal from the input/output port of the CPU 2, the first decoder 8 selects a port for switching the memory bank 4.6 and sends a signal to the second decoder 10. Activate it by issuing the . In this state, the second decoder 1
When a memory bank designation signal specifying, for example, memory pan chromatization is input from the CPU 2 to 0 via the data bus B, the second decoder 10 outputs a memory bank selection signal corresponding to the memory bank designation signal to the launch circuit 12. . As a result, the launch circuit 12 outputs a signal that enables only the memory panchromator 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 CPIJ2 via address bus A during this time, reading and writing will be performed only for the memory panchrome selected at this time.

しかしながら、上述したような従来のメモリバンク切り
換え回路では、バンク切り換えを行うごとに、CPU2
の入出力ボートにバンクの情報を設定してからメモリに
対してアクセスしていかなければならないので、バンク
切り換えルこ相当の時間を要する。そのため、メモリバ
ンクの切り換え回数が多くなるにともなって、システム
の効率が低下するという問題点がある。
However, in the conventional memory bank switching circuit as described above, each time the bank is switched, the CPU 2
Since bank information must be set in the input/output port of the memory before accessing the memory, it takes a considerable amount of time to switch banks. Therefore, there is a problem in that the efficiency of the system decreases as the number of times memory banks are switched increases.

(発明の目的) 本発明は上記の事情に鑑みてなされたものであって、メ
モリバンクの切り換えを高速に行うことを目的としてい
る。
(Object of the Invention) The present invention has been made in view of the above circumstances, and an object of the present invention is to switch memory banks at high speed.

(発明の構成) 上記目的を達成するために、本発明は次のような+i成
を採っている。
(Structure of the Invention) In order to achieve the above object, the present invention adopts the following +i configuration.

即ち、本発明は、中央演算処理器(CP U)のアドレ
スバス上に配置されている複数のメモリバンクから所望
のメモリバンクを選択するメモリバンク切り換え回路で
あって、メモリバンクから読み出されたデータのうちか
らメモリバンクの切り換えを指定する特定の命令コード
を検出する命令コード検出手段を前記中央64算処理器
とは個別に備え、この命令コード検出手段の出力に基づ
き、前記複数のメモリバンクのうちから前記特定の命令
コードに対応したメモリバンクを選択することを特徴と
している。
That is, the present invention provides a memory bank switching circuit that selects a desired memory bank from a plurality of memory banks arranged on the address bus of a central processing unit (CPU), and Separately from the central 64 arithmetic processor, an instruction code detecting means for detecting a specific instruction code specifying switching of memory banks from data is provided, and based on the output of the instruction code detecting means, the plurality of memory banks are detected. The present invention is characterized in that a memory bank corresponding to the specific instruction code is selected from among the memory banks.

次に上述した本発明の詳細な説明する。Next, the above-mentioned invention will be explained in detail.

あるメモリバンクからメモリバンク切り換えを指定する
特定の命令コードを、cpuとは個別に設けられる命令
コード検出手段によって検出して、この検出手段の出力
に基づいてメモリバンクの切り換えを行っているから、
命令コードを一旦CPUに取り込んで、CPUの人出力
ポートにバンクの情報を設定してからメモリバンクの切
り換えを行っていた従来例と比較して、メモリバンクの
切り換えが高速に行われる。
A specific instruction code specifying memory bank switching from a certain memory bank is detected by an instruction code detection means provided separately from the CPU, and the memory bank is switched based on the output of this detection means.
Memory banks can be switched at high speed compared to the conventional example in which memory banks are switched after once an instruction code is loaded into the CPU and bank information is set in the CPU's human output port.

(実施例) 第1図は本発明の一実施つ1に係るマイクロブロセッサ
におけるメモリバンク切り換え回路のブロック図である
。同図において、第2図と同一部分は同一符号で示され
ている。本実施例の要部であるメモリバンク切り換え回
路は、データバスBに接続している二つの一敗回路14
.16と、これらの−敗回路14.16の出力をそれぞ
れ与えられるアンドゲートGl、G2と、前記アンドゲ
ートG1.G2の各出力をセット・リセット入力として
与えられるフリップフロップFFなどから構成されてい
る。そして、一致回路14.16およびアントゲ−)G
l、G2は、後述する説明から明らかとなるように、発
明の構成の欄で述べた命令コード検出手段に対応してい
る。以下、本実施例の動作を説明する。
(Embodiment) FIG. 1 is a block diagram of a memory bank switching circuit in a microprocessor according to one embodiment of the present invention. In this figure, the same parts as in FIG. 2 are designated by the same reference numerals. The memory bank switching circuit, which is the main part of this embodiment, consists of two one-failure circuits 14 connected to data bus B.
.. 16, AND gates Gl and G2 which are respectively supplied with the outputs of these negative circuits 14 and 16, and the AND gates G1. It consists of a flip-flop FF etc. to which each output of G2 is applied as a set/reset input. And match circuit 14.16 and antgame)G
1 and G2 correspond to the instruction code detection means described in the section of the configuration of the invention, as will become clear from the explanation to be given later. The operation of this embodiment will be explained below.

一致回路14は、例えば’FFJというコードがデータ
バス上に現れたときにアクティブになるよう予め設定さ
れている。また、−敗回路16は、例えば「01」とい
うコードが現れたときにアクティブになるように設定さ
れている。ここで、命令コード’FFJは、メモリパン
クロを選1尺するためのデータであって、メモリバンク
4の所定アドレスに書き込まれている。命令コード「0
1」は、メモリバンク4を選択するためのデータであっ
て、メモリパンクロの所定アドレスに書き込まれている
The matching circuit 14 is preset to become active when, for example, a code 'FFJ' appears on the data bus. Furthermore, the -defeat circuit 16 is set to become active when, for example, a code "01" appears. Here, the instruction code 'FFJ is data for selecting one size of memory panchromatic, and is written to a predetermined address of the memory bank 4. Instruction code “0”
1'' is data for selecting the memory bank 4, and is written at a predetermined address in the memory panchromatic memory.

いま、メモリバンク4がアクセスされているものとする
。CPU2はプログラムを実行するにあたって、命令を
メモリバンクから呼び出す。ごのとき、メモリバンク4
がアクセスされているから、メモリバンク4のデータが
順次にCPU2に読み込まれて処理される。このような
データの読み出し手順は、まず、アドレスバスA上でメ
モリのアドレスが指定されて、そのアドレスに対応した
ところからデータが読み出され、データバスBを通って
CPU2に取り込まれる。
Assume that memory bank 4 is currently being accessed. When executing a program, the CPU 2 calls instructions from a memory bank. Memory Bank 4
is being accessed, the data in the memory bank 4 is sequentially read into the CPU 2 and processed. In such a data read procedure, first, a memory address is specified on the address bus A, and data is read from the location corresponding to the address, and is taken into the CPU 2 through the data bus B.

一方、CPU2はデータバスBから読み込んだデータが
CPU2の命令コードであるか、または華なるデータで
あるかを示すコントロール信号(メモリフェッチ信号)
を所定のタイミングで出力する。例えば、メモリフェッ
チ信号は、読み込まれたデータが命令コードである場合
にr HJレベルに、読み込まれたデータが単なるデー
タである場合には’LJレベルになる。いま、CPU2
に読み込まれたデータが’FFJで、このときにメモリ
フェッチ信号がアクティブの期間(’HJレベル)にな
っていたとする。そうすると、一致回路14でデータr
FFJが検出されて、その検出信号はアンドゲートGl
を介してフリップフロップFFに与えられることによっ
て、フリップフロップFFがセットされる。その結果、
メモリパンクロの制御Lt子CにフリップフロップFF
のrH,レベル出力が、メモリバンク4の制4H52子
CにはインバータG3で反転された’LJレベルの出力
がそれぞれ与えられることにより、メモリバンク4から
メモリパンクロへ切り換えられる。
On the other hand, the CPU 2 receives a control signal (memory fetch signal) indicating whether the data read from the data bus B is an instruction code for the CPU 2 or basic data.
is output at a predetermined timing. For example, the memory fetch signal goes to the rHJ level when the read data is an instruction code, and goes to the 'LJ level when the read data is just data. Now CPU2
Assume that the data read in is 'FFJ' and the memory fetch signal is in an active period ('HJ level) at this time. Then, in the matching circuit 14, the data r
FFJ is detected and its detection signal is sent to the AND gate Gl.
The flip-flop FF is set by being applied to the flip-flop FF via the FF. the result,
Flip-flop FF for memory panchromatic control Lt child C
The rH and level outputs of the memory bank 4 are switched from the memory bank 4 to the memory panchromatic mode by providing the 'LJ level outputs inverted by the inverter G3 to the control 4H52 child C of the memory bank 4.

以後、CPU2によって指定されたアドレスに対応する
データはメモリパンクロから読み出されて、CPU2に
よって処理される。
Thereafter, data corresponding to the address specified by the CPU 2 is read from the memory panchromatic memory and processed by the CPU 2.

メモリパンクロから1頃次に読み出されたデータがある
時点で’OIJになっており、そのときのメモリフェッ
チ信号がアクティブであったとする。
Assume that the next data read out from the memory panchromatic recorder becomes 'OIJ' at a certain point in time, and the memory fetch signal is active at that time.

そうすると、データ「01ノを検出した一jkffl路
16の出力信号がアンドゲートG2を介してフリップフ
ロップFFに与えられ。フリップフロップFFはこの信
号によってリセットされる。その結果、メモリバンク4
の制御端子Cが’HJレヘルに、メモリパンクロの制御
端子Cが’LJレヘルになって、メモリパンクロからメ
モリバンク4に切り換えられる。
Then, the output signal of the 1jkffl path 16 that detected the data "01" is applied to the flip-flop FF via the AND gate G2. The flip-flop FF is reset by this signal. As a result, the memory bank 4
The control terminal C of the memory panchromat becomes 'HJ level, the control terminal C of the memory panchromatic becomes 'LJ level, and the memory panchromatic is switched to memory bank 4.

なお、上述の実施例では、二つのメモリバンクが備えら
れたマイクロプロセッサを例に取って説明したが、本発
明はこれに限られるものではなくメモリバンクは任音の
個数だけ備えられ得るものである。そして、この場合、
前記実施例で説明した一致回路などの命令コード検出手
段が各メモリバンクに対応して設けられるのは勿論であ
る。
In the above embodiment, a microprocessor equipped with two memory banks has been described as an example, but the present invention is not limited to this, and an arbitrary number of memory banks can be provided. be. And in this case,
Of course, an instruction code detection means such as the matching circuit described in the above embodiment is provided corresponding to each memory bank.

(発明の効果) 以上の説明から明らかなように、本発明シこ係るメモリ
バンク切り換え回路は、メモリバンクからデータバス上
に出力されたメモリバンク切りj桑えを指定する特定の
命令コードを、CPUとは個別に設けられる命令コード
検出手段によって検出して、この検出手段の出力に基づ
いてメモリバンクの切り換えを行っている。
(Effects of the Invention) As is clear from the above description, the memory bank switching circuit according to the present invention uses a specific instruction code output from the memory bank onto the data bus to designate the memory bank switching. The instruction code is detected by an instruction code detection means provided separately from the CPU, and memory banks are switched based on the output of this detection means.

したがって、本発明によれば、命令コードを一旦CPU
に取り込んでCPUの入出力ポートにバンクの情報を設
定し、デコーダを介してメモリバンクの切り換えを行っ
ていた従来例と比較して、メモリバンクの切り換えを高
速に行うことができる。
Therefore, according to the present invention, the instruction code is once sent to the CPU.
Memory banks can be switched at high speed compared to the conventional example in which bank information is read into the input/output port of the CPU, and memory banks are switched via a decoder.

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

第1図は本発明の一実施例に係るメモリバンク切り換え
回路のブロック図、第2図は従来例のメモリバンク切り
換え回路のブロック図である。 2・・・CPU、4.6・・・メモリバンク、14.1
6・・・−数回路、G1.G2・・・アンドゲート、F
F・・・フリップフロップや
FIG. 1 is a block diagram of a memory bank switching circuit according to an embodiment of the present invention, and FIG. 2 is a block diagram of a conventional memory bank switching circuit. 2...CPU, 4.6...Memory bank, 14.1
6...-Several circuits, G1. G2...and gate, F
F...Flip-flop

Claims (1)

【特許請求の範囲】[Claims] 中央演算処理器(CPU)のアドレスバス上に配置され
ている複数のメモリバンクから所望のメモリバンクを選
択するマイクロプロセッサにおけるメモリバンク切り換
え回路であって、メモリバンクから読み出されたデータ
のうちからメモリバンクの切り換えを指定する特定の命
令コードを検出する命令コード検出手段を前記中央演算
処理器とは個別に備え、この命令コード検出手段の出力
に基づき、前記複数のメモリバンクのうちから前記特定
の命令コードに対応したメモリバンクを選択することを
特徴とするマイクロプロセッサにおけるメモリバンク切
り換え回路。
A memory bank switching circuit in a microprocessor that selects a desired memory bank from a plurality of memory banks arranged on an address bus of a central processing unit (CPU), the circuit selecting a desired memory bank from among data read from the memory bank. Instruction code detection means for detecting a specific instruction code specifying switching of memory banks is provided separately from the central processing unit, and based on the output of the instruction code detection means, the specified instruction code is selected from among the plurality of memory banks. A memory bank switching circuit in a microprocessor, characterized in that it selects a memory bank corresponding to an instruction code.
JP17054286A 1986-07-18 1986-07-18 Memory bank switching circuit for microprocessor Pending JPS6326744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17054286A JPS6326744A (en) 1986-07-18 1986-07-18 Memory bank switching circuit for microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17054286A JPS6326744A (en) 1986-07-18 1986-07-18 Memory bank switching circuit for microprocessor

Publications (1)

Publication Number Publication Date
JPS6326744A true JPS6326744A (en) 1988-02-04

Family

ID=15906826

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17054286A Pending JPS6326744A (en) 1986-07-18 1986-07-18 Memory bank switching circuit for microprocessor

Country Status (1)

Country Link
JP (1) JPS6326744A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8145858B2 (en) 2009-07-09 2012-03-27 Kabushiki Kaisha Toshiba Interleave control device, interleave control method, and memory system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60204046A (en) * 1984-03-27 1985-10-15 Sharp Corp Memory extension circuit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60204046A (en) * 1984-03-27 1985-10-15 Sharp Corp Memory extension circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8145858B2 (en) 2009-07-09 2012-03-27 Kabushiki Kaisha Toshiba Interleave control device, interleave control method, and memory system

Similar Documents

Publication Publication Date Title
US4949241A (en) Microcomputer system including a master processor and a slave processor synchronized by three control lines
JPH02235156A (en) Information processor
US4095268A (en) System for stopping and restarting the operation of a data processor
JPS6319058A (en) Memory device
JPS6326744A (en) Memory bank switching circuit for microprocessor
JPS6136845A (en) Single-chip microcomputer
JP2600376B2 (en) Memory controller
JPS60195661A (en) Data processing system
JPH09311812A (en) Microcomputer
JPS6049952B2 (en) Busy control method of memory control device
JPH0731439Y2 (en) Static column DRAM access device
JPS6014435B2 (en) Storage device
JPS61161560A (en) Memory device
JPS6126701B2 (en)
JPH05334233A (en) Data transferring device
JPS61264436A (en) Data processing system
JPH09106359A (en) Semiconductor integrated circuit
JPS63187349A (en) Memory device
JPH02183342A (en) Interruption controller
JPS5942331B2 (en) Prosetsusasouchinoseigiohoshiki
JPS645342B2 (en)
JPH0438560A (en) Store data transfer system
JPS6269353A (en) Decentralized function type multi-processor system
JPH08161119A (en) Device access controller
JPS5836380B2 (en) Direct memory access method in multiprocessor systems