JPS62168247A - Memory bank switching system - Google Patents

Memory bank switching system

Info

Publication number
JPS62168247A
JPS62168247A JP956586A JP956586A JPS62168247A JP S62168247 A JPS62168247 A JP S62168247A JP 956586 A JP956586 A JP 956586A JP 956586 A JP956586 A JP 956586A JP S62168247 A JPS62168247 A JP S62168247A
Authority
JP
Japan
Prior art keywords
bank
memory
instruction
address
program memory
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
JP956586A
Other languages
Japanese (ja)
Inventor
Yoshirou Kou
紅 義朗
Keiichi Murakami
敬一 村上
Akira Shinami
章 司波
Isamu Yamada
勇 山田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP956586A priority Critical patent/JPS62168247A/en
Publication of JPS62168247A publication Critical patent/JPS62168247A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To branch the generated bank selection signals into the designated addresses by executing a branch instruction after providing a bank switching circuit only to an address bus of a program memory. CONSTITUTION:A branch instruction A whose branching destination is set at 'A' of a bank 0 of a program memory in case the programs execution of a bank 1 is needed while a CPU 1 is executing the program of the bank 0. When the instruction A is executed, the branch address 'A' is inputted to a bank switching circuit 13 through an address bus 7 for program memory. Thus a selection signal 19 is produced to the bank 1. Hereafter the bank 1 is enabled by the signal 19 at a time point when a branch instruction B is executed. Thus the branching is possible to the bank 1 with execution of the instruction B.

Description

【発明の詳細な説明】 〔概要〕 それぞれ複数個のバンクからなるプログラムメモリと、
データメモリのアドレスバスが分離している計算機シス
テムにおいて、ジャンプ・サブルーチン命令、又は分岐
命令が、指定したアドレスに分岐する機能を利用し、プ
ログラムメモリのアドレスバスにのみ、バンク切り替え
回路を設け、該分岐命令を実行することにより、バンク
を切り替える為のバンク・セレクト信号を発生させ、バ
ンクが切り替わった時点に、該命令の指定するアドレス
先に分岐できるようにしたものである。
[Detailed Description of the Invention] [Summary] A program memory each consisting of a plurality of banks;
In a computer system where the data memory address bus is separate, a jump subroutine instruction or a branch instruction branches to a specified address, and a bank switching circuit is provided only on the program memory address bus. By executing a branch instruction, a bank select signal for switching banks is generated, and when the bank is switched, a branch can be made to the address specified by the instruction.

〔産業上の利用分野〕[Industrial application field]

本発明は、それぞれ複数個のバンクからなるプログラム
メモリと、データメモリのアドレスバスが分離している
計算機システムにおけるメモリバンクの切り替え方式に
関する。
The present invention relates to a memory bank switching method in a computer system in which a program memory and a data memory each having a plurality of banks have separate address buses.

例えば、超音波診断装置等においては、生体からの画像
信号を読み取って実時間で画像処理をする必要があり、
高速性と2画像データを格納するメモリ量の確保が必須
条件となる。
For example, in ultrasonic diagnostic equipment, etc., it is necessary to read image signals from a living body and perform image processing in real time.
High speed and securing the amount of memory to store two image data are essential conditions.

一方、最近の計算機システムの性能向上に伴って、かか
る超音波診断装置の分野にも、マイクロコンピュータと
云った小型の計算機システムが使用されるようになって
いるが、命令アクセスと。
On the other hand, with the recent improvement in the performance of computer systems, small computer systems such as microcomputers have come to be used in the field of ultrasonic diagnostic equipment.

オペランドアクセスとを1つのバスで行う一般の計算機
システムでは、バスネックになって、当該超音波診断装
置に要求される処理能力が得られない問題があり、プロ
グラムメモリと、データメモリとのアドレスバス、デー
タバスを分離した計算機システムが使用され、このアド
レスバス、データバスに複数個のメモリバンクを接続し
、画像データを格納するのに必要なメモリ量を確保する
ようにしている。
In general computer systems where operand access and operand access are carried out on a single bus, there is a problem in that the processing capacity required for the ultrasound diagnostic equipment cannot be obtained due to a bus bottleneck. A computer system with separate data buses is used, and a plurality of memory banks are connected to the address bus and data bus to ensure the amount of memory necessary to store image data.

然して、小型の計算機システムでは、該メモリバンクを
切り替える為の特別な制御線が用意されていない為、例
えば、アドレスバスにバンク切り替え情報を送出し、該
情報をデコードした情報でバンクセレクト信号を生成す
る必要がある。
However, in small computer systems, there is no special control line for switching memory banks, so for example, bank switching information is sent to the address bus and a bank select signal is generated using the decoded information. There is a need to.

又、超音波診断装置で扱う画像データは、例えば、1に
一語/ライン程度の連続したメモリを必要とする為、数
バンクのメモリを、切れ目なく連続してアクセスできる
ことが要求される。
Furthermore, since image data handled by an ultrasonic diagnostic apparatus requires continuous memory of, for example, one word/line, it is required to be able to access several banks of memory continuously without interruption.

〔従来の技術と発明が解決しようとする問題点〕第4図
は、従来のメモリバンク切り替え方式を示した図である
[Prior art and problems to be solved by the invention] FIG. 4 is a diagram showing a conventional memory bank switching system.

一般に、プログラムメモリと、データメモリとが分離さ
れている計算機システムにおいては、プログラムメモリ
に対してデータを書き込むことは許されないが、データ
メモリに対して特定のアドレスに任意のデータを書き込
むことができることから、従来のメモリバンク切り替え
方式は、本図に示した如く、データメモリ用アドレスバ
ス5にデコーダ1)を設け、該バスに送出されてきた特
定のアドレスをデコードして、バンク切り替え回路13
を起動し、データバス3のデータから、特定のメモリバ
ンクを選択する為のバンク・セレクト信号19を生成し
ていた。
Generally, in computer systems where program memory and data memory are separated, it is not allowed to write data to the program memory, but it is possible to write arbitrary data to a specific address in the data memory. Therefore, in the conventional memory bank switching method, as shown in the figure, a decoder 1) is provided on the data memory address bus 5, and a specific address sent to the bus is decoded and the bank switching circuit 13
, and generates a bank select signal 19 for selecting a specific memory bank from the data on the data bus 3.

従って、従来方式においては、上記バンク切り替え回路
13を起動する為のデータメモリ用アドレスに対応する
データメモリ15の領域が、一般のデータ領域として使
用できない為、超音波診断装置の画像メモリのように連
続して使用するのに適さないと云う問題があった。
Therefore, in the conventional method, the area of the data memory 15 corresponding to the data memory address for activating the bank switching circuit 13 cannot be used as a general data area, so it cannot be used as a general data area. There was a problem that it was not suitable for continuous use.

本発明は上記従来の欠点に鑑み、プログラムメモリと、
データメモリのアドレスバスが分離している計算機シス
テムにおいて、プログラムメモリ用アドレスバスのみを
使用して、バンク切り替え回路を簡略化し、効率的なデ
ータメモリの使用を可能とする方法を提供することを目
的とするものである。
In view of the above-mentioned conventional drawbacks, the present invention provides a program memory,
The purpose of the present invention is to provide a method for simplifying the bank switching circuit and enabling efficient data memory use by using only the program memory address bus in a computer system where the data memory address bus is separate. That is.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は本発明の一実施例をブロック図で示した図であ
る。
FIG. 1 is a block diagram showing one embodiment of the present invention.

本発明においては、それぞれ複数個のバンクからなるプ
ログラムメモリ 17と、データメモリ 15のアドレ
スバスが分離している計算機システムにおいて、プログ
ラムメモリ用のアドレスバス7のみを使用して、プログ
ラムメモリ17と、データメモリ 15の上記バンク切
り替えを行う際、当該計算機システムの中央処理装置(
CPU) 1が、該プログラムメモリ17の任意のバン
クを選択できるアドレスを指定できる命令(例えば、分
岐命令)を発行、実行することにより、バンク・セレク
ト信号19を生成するバンク切り替え回路13を設け、
該バンク切り替え回路13において、上記分岐アドレス
をデコードして、バンク・セレクト信号を生成するよう
に構成する。
In the present invention, in a computer system in which address buses for a program memory 17 and a data memory 15 each consisting of a plurality of banks are separated, only the address bus 7 for the program memory is used to connect the program memory 17 and the data memory 15. When performing the above bank switching of data memory 15, the central processing unit of the computer system (
A bank switching circuit 13 is provided that generates a bank select signal 19 by the CPU (CPU) 1 issuing and executing an instruction (for example, a branch instruction) that can specify an address from which an arbitrary bank of the program memory 17 can be selected;
The bank switching circuit 13 is configured to decode the branch address and generate a bank select signal.

〔作用〕[Effect]

即ち、本発明によれば、それぞれ複数個のバンりからな
るプログラムメモリと、データメモリのアドレスバスが
分離している計算機システムにおいて、ジャンプ・サブ
ルーチン命令、又は分岐命令が、指定したアドレスに分
岐する機能を利用し、プログラムメモリのアドレスバス
にのみ、バンク切り替え回路を設け、該分岐命令を実行
することにより、バンクを切り替える為のバンク・セレ
クト信号を発生させ、バンクが切り替わった時点に、該
命令の指定するアドレス先に分岐できるようにしたもの
であるので、バンク切り替えの為の命令を実行しても、
データメモリの特定の領域を使用することがなく、デー
タメモリを連続して使用できる効果がある。
That is, according to the present invention, in a computer system in which a program memory and a data memory address bus each consisting of a plurality of blocks are separated, a jump subroutine instruction or a branch instruction branches to a specified address. By using this function, a bank switching circuit is provided only in the address bus of the program memory, and by executing the branch instruction, a bank select signal for switching banks is generated, and when the bank is switched, the instruction is Since it is possible to branch to the address specified by , even if an instruction to switch banks is executed,
This has the advantage that the data memory can be used continuously without using a specific area of the data memory.

〔実施例〕〔Example〕

以下本発明の実施例を図面によって詳述する。 Embodiments of the present invention will be described in detail below with reference to the drawings.

前述の第1図が本発明の一実施例を示した図であり、第
2図は本発明を実施した時のプログラムメモリのマツプ
図であり、第3図は本発明によるメモリバンク切り替え
動作のタイムチャート図であり、第1図におけるバンク
切り替え回路13.及びその関連機構が本発明を実施す
るのに必要な機能ブロックである。尚、企図を通して同
じ符号は同じ対象物を示している。
The above-mentioned FIG. 1 is a diagram showing an embodiment of the present invention, FIG. 2 is a map diagram of a program memory when the present invention is implemented, and FIG. 3 is a diagram showing a memory bank switching operation according to the present invention. 2 is a time chart diagram showing the bank switching circuit 13 in FIG. 1. and its related mechanisms are functional blocks necessary to implement the present invention. Note that the same reference numerals refer to the same objects throughout the plan.

先ず、プログラムメモリのバンク(0〜n) 17 ヲ
切り替える場合の動作を第1図、第2図、第3図によっ
て説明する。
First, the operation when switching the banks (0 to n) 17 of the program memory will be explained with reference to FIGS. 1, 2, and 3.

中央処理装置(CPU) 1がプログラムメモリのバン
クOのプログラムを実行中に、プログラムメモリのバン
ク1のプログラムを実行する必要が生じた時、分岐先が
バンク0の“A″である分岐命令Aを実行する。
When central processing unit (CPU) 1 is executing a program in bank O of program memory and it becomes necessary to execute a program in bank 1 of program memory, it issues a branch instruction A whose branch destination is "A" in bank 0. Execute.

当該分岐先IAIには別の分岐命令Bを用意しておき、
その分岐先をバンク1の任意のアドレス(例えば、O番
地)としておく。
Prepare another branch instruction B for the branch destination IAI,
The branch destination is set to an arbitrary address in bank 1 (for example, address O).

この状態で、上記分岐命令Aが実行されると、その分岐
アドレス°A゛が、プログラムメモリ用アドレスバス7
を通してバンク切り替え回路13に入力され、バンク1
に対するバンクセレクト信号19を生成する。
In this state, when the branch instruction A is executed, the branch address °A' is transferred to the program memory address bus 7.
is input to the bank switching circuit 13 through the bank 1
A bank select signal 19 is generated for.

従って、その以降において分岐命令Bが実行されると、
その時点においては、上記バンク・セレクト信号19に
よって、バンク■がイネーブルされているので、当該分
岐命令Bの実行によるバンク1への分岐を行うことがで
きる。
Therefore, when branch instruction B is executed after that,
At that point, the bank 2 is enabled by the bank select signal 19, so that the branch to bank 1 can be executed by executing the branch instruction B.

この時の動作をタイムチャートで示したものが、第3図
であって、中央処理装置(CPU) 1には命令フェッ
チレジスタ(rFR)と、命令実行レジスタ(IER)
 とがあり、この2つのレジスタの間は、図示の如く、
バイブライン的に動作しいる。
A time chart showing the operation at this time is shown in Fig. 3.The central processing unit (CPU) 1 has an instruction fetch register (rFR) and an instruction execution register (IER).
Between these two registers, as shown in the figure,
It works like a vibe line.

本図から明らかな如く、分岐命令Aが命令実行レジスタ
(IER)に設定され実行された時点で、バンク・セレ
クト信号が発行され、バンクの切り替えが行われること
になるので、該分岐命令Aの分岐先に用意されていた分
岐命令Bが、当該命令実行レジスタ(rER)に移され
た時には、バンク切り替えは完了しており、該分岐命令
Bの実行が保障されることになる。
As is clear from this figure, when branch instruction A is set in the instruction execution register (IER) and executed, a bank select signal is issued and banks are switched. When the branch instruction B prepared at the branch destination is moved to the instruction execution register (rER), bank switching has been completed and execution of the branch instruction B is guaranteed.

次に、データメモリバンク(0〜m)15の切り替え動
作を、上記と同じ図を使用して説明する。
Next, the switching operation of the data memory banks (0 to m) 15 will be explained using the same diagram as above.

データメモリバンクを切り替える場合には、上記分岐命
令への代わりに、ジャンプ・サブルーチン命令を用意す
る。
When switching data memory banks, a jump subroutine instruction is prepared instead of the branch instruction.

このジャンプ・サブルーチン命令は、該命令が指定する
分岐先の命令(例えば、無操作命令)を実行して、該ジ
ャンプ・サブルーチン命令の次の番地に戻る(具体的に
は、分岐先のアドレスをプログラムメモリ用アドレスバ
ス7に送出するだけで、実効的には分岐をしない)命令
である。
This jump subroutine instruction executes the branch destination instruction (for example, a no-operation instruction) specified by the instruction, and returns to the address next to the jump subroutine instruction (specifically, the branch destination address is This is an instruction that is only sent to the program memory address bus 7 and does not actually branch.

従って、該ジャンプ・サブルーチン命令の分岐先アドレ
スを、例えば、データメモリのバンク1を選択できるア
ドレスにしておくことにより、当該ジャンプ・サブルー
チン命令が実行されると、上記プログラムメモリ用アド
レスバス7に、該アドレスが送出され、バンク切り替え
回路13に入力される結果、データメモリのバンク1を
選択するバンク・セレクト信号19が生成されるように
機能する。
Therefore, by setting the branch destination address of the jump subroutine instruction to, for example, an address that can select bank 1 of the data memory, when the jump subroutine instruction is executed, the address bus 7 for program memory is As a result of the address being sent out and input to the bank switching circuit 13, a bank select signal 19 for selecting bank 1 of the data memory is generated.

以上の動作から明らかなように、本発明を実施すると、
プログラムメモリの各バンクに、本計算機システムに備
えられているプログラムメモリと。
As is clear from the above operation, when the present invention is implemented,
Each bank of program memory has program memory provided in this computer system.

データメモリのバンクの数(n+m)に対応して、該バ
ンクを選択する為のアドレス(n+m)を割り当ててお
く必要がある。
It is necessary to allocate an address (n+m) for selecting a bank corresponding to the number (n+m) of banks of the data memory.

本図で示したマツプ図では、連続した領域に割り当てら
れているが、本発明の主旨から考えると、必ずしも、連
続した領域を割り当てる必要はないことは明らかである
In the map shown in this figure, continuous areas are allocated, but considering the gist of the present invention, it is clear that continuous areas do not necessarily have to be allocated.

このように、本発明は、プログラムメモリの特定のアド
レスを指定できる命令、例えば、分岐命令を用いて、プ
ログラムメモリ用アドレスバスに、該分岐先のアドレス
を送出し、該アドレスをバンク切り替え回路でデコード
して、それぞれのアドレスに対応したバンク・セレクト
信号を生成するようにした所に特徴がある。
As described above, the present invention uses an instruction that can specify a specific address in a program memory, such as a branch instruction, to send the branch destination address to the program memory address bus, and send the address to the bank switching circuit. The feature is that it is decoded and a bank select signal corresponding to each address is generated.

〔発明の効果〕〔Effect of the invention〕

以上、詳細に説明したように、本発明のメモリバンク切
り替え方式は、それぞれ複数個のバンクからなるプログ
ラムメモリと、データメモリのアドレスバスが分離して
いる計算機システムにおいて、ジャンプ・サブルーチン
命令、又は分岐命令が、指定したアドレスに分岐する機
能を利用し、プログラムメモリのアドレスバスにのみ、
バンク切り替え回路を設け、該分岐命令を実行すること
により、バンクを切り替える為のバンク・セレクト信号
を発生させ、バンクが切り替わった時点に、該命令の指
定するアドレス先に分岐できるようにしたものであるの
で、バンク切り替えの為の命令を実行しても、データメ
モリの特定の領域を使用することがなく、データメモリ
を連続して使用できる効果がある。
As described above in detail, the memory bank switching method of the present invention is useful for jump/subroutine instructions or branching in computer systems in which program memory and data memory address buses each consisting of a plurality of banks are separated. Using the function that allows instructions to branch to a specified address, only the address bus of the program memory is used.
A bank switching circuit is provided, and by executing the branch instruction, a bank select signal is generated to switch the bank, and when the bank is switched, the branch can be made to the address specified by the instruction. Therefore, even if an instruction for bank switching is executed, a specific area of the data memory is not used, and the data memory can be used continuously.

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

第1図は本発明の一実施例をブロック図で示した図。 第2図は本発明を実施した時のプログラムメモリマツプ
図。 第3図は本発明によるメモリバンク切り替え動作のタイ
ムチャート図。 第4図は従来のメモリバンク切り替え方式を示した図。 である。 図面において、 1は中央処理装置(CPU)、3はデータバス。 5はデータメモリ用アドレスバス。 7はプログラムメモリ用アドレスバス。 1)はデコーダ、13はバンク切り替え回路。 15はデータメモリ、   17はプログラムメモリ。 19はバンク・セレクト信号。 をそれぞれ示す。
FIG. 1 is a block diagram showing an embodiment of the present invention. FIG. 2 is a program memory map diagram when the present invention is implemented. FIG. 3 is a time chart diagram of the memory bank switching operation according to the present invention. FIG. 4 is a diagram showing a conventional memory bank switching method. It is. In the drawing, 1 is a central processing unit (CPU) and 3 is a data bus. 5 is an address bus for data memory. 7 is an address bus for program memory. 1) is a decoder, and 13 is a bank switching circuit. 15 is data memory, 17 is program memory. 19 is a bank select signal. are shown respectively.

Claims (2)

【特許請求の範囲】[Claims] (1)それぞれ複数個のバンクからなるプログラムメモ
リ(17)と、データメモリ(15)のアドレスバスが
分離している計算機システムにおいて、プログラムメモ
リ用のアドレスバス(7)にバンク・セレクト信号(1
9)を生成する手段(13)を設けて、プログラムメモ
リ(17)と、データメモリ(15)の上記バンクの切
り替えを行うことを特徴とするメモリバンク切り替え方
式。
(1) In a computer system in which address buses for program memory (17) and data memory (15) each consisting of a plurality of banks are separated, a bank select signal (1) is sent to address bus (7) for program memory.
9) A memory bank switching method characterized in that a means (13) for generating the data is provided to switch between the banks of the program memory (17) and the data memory (15).
(2)上記プログラムメモリ用のアドレスバス(7)に
バンク・セレクト信号(19)を生成する手段(13)
を設けて、プログラムメモリ(17)と、データメモリ
(15)の上記バンク切り替えを行うのに、当該計算機
システムの中央処理装置(CPU)(1)が、該プログ
ラムメモリ(17)、又はデータメモリ(15)の任意
のバンクを選択するアドレスを指定する命令を発行、実
行することにより、上記バンク・セレクト信号(19)
を生成する手段(13)を付勢することを特徴とする特
許請求の範囲第1項に記載のメモリバンク切り替え方式
(2) means (13) for generating a bank select signal (19) on the address bus (7) for the program memory;
In order to perform the bank switching between the program memory (17) and the data memory (15), the central processing unit (CPU) (1) of the computer system is provided with a By issuing and executing an instruction specifying an address for selecting an arbitrary bank in (15), the bank select signal (19)
The memory bank switching system according to claim 1, characterized in that the means (13) for generating .
JP956586A 1986-01-20 1986-01-20 Memory bank switching system Pending JPS62168247A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP956586A JPS62168247A (en) 1986-01-20 1986-01-20 Memory bank switching system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP956586A JPS62168247A (en) 1986-01-20 1986-01-20 Memory bank switching system

Publications (1)

Publication Number Publication Date
JPS62168247A true JPS62168247A (en) 1987-07-24

Family

ID=11723815

Family Applications (1)

Application Number Title Priority Date Filing Date
JP956586A Pending JPS62168247A (en) 1986-01-20 1986-01-20 Memory bank switching system

Country Status (1)

Country Link
JP (1) JPS62168247A (en)

Similar Documents

Publication Publication Date Title
KR940015852A (en) Handler with long instruction word
KR900016866A (en) Data processing systems
KR970012203A (en) Data processing system for executing trace functions and their methods
KR100194850B1 (en) Digital signal processing unit
JPH04245324A (en) Arithmetic unit
JPS62168247A (en) Memory bank switching system
JPS5916071A (en) Parallel processing system
JPH06342397A (en) Circuit device for mapping of logical address space
SU834699A1 (en) Microprogramme-control device
JPS59112350A (en) Supervising and controlling system of program
JPS607295B2 (en) data processing equipment
JPH02281341A (en) Write data confirming method for debugging
JPS6240737B2 (en)
JPS6158042A (en) Microprogram control system
JPS62293372A (en) Master and slave processor
JPS5914050A (en) Memory controlling system
JPH04181328A (en) Information processor
JPH0285943A (en) Data processor
JPH02272628A (en) Cache memory device
JPS593641A (en) Microprogram controller
JPS59167764A (en) Memory access system
JPS61290546A (en) Tracing system for microprogram controller
JPS63307529A (en) Inter-arithmetic processing unit communication control system
JPS61173342A (en) Control memory branch system
JPH04128944A (en) Microprogram execution history information collector