JPH02270047A - Memory bank control system for microprocessor - Google Patents

Memory bank control system for microprocessor

Info

Publication number
JPH02270047A
JPH02270047A JP9343589A JP9343589A JPH02270047A JP H02270047 A JPH02270047 A JP H02270047A JP 9343589 A JP9343589 A JP 9343589A JP 9343589 A JP9343589 A JP 9343589A JP H02270047 A JPH02270047 A JP H02270047A
Authority
JP
Japan
Prior art keywords
memory bank
area
memory
rom
microprocessor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9343589A
Other languages
Japanese (ja)
Inventor
Fumio Anekoji
史男 姉小路
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
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP9343589A priority Critical patent/JPH02270047A/en
Publication of JPH02270047A publication Critical patent/JPH02270047A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain a writing operation to a TAM area of a memory bank from a ROM area of another memory bank without carrying out a bank switching process of a program by carrying out the writing operation after switching the memory banks when the writing operation is detected by a ROM write detecting circuit. CONSTITUTION:For instance, a microprocessor 1 performs a writing operation in a ROM area of a #1 memory bank 8. In this case, a ROM write detecting circuit 2 detects a ROM write access and a memory bank control circuit 3 changes temporarily a memory bank control signal 6. Thus a #2 memory bank 9 is temporarily selected. Thus a writing operation is carried out to an address equal to that of the ROM area of the bank 8, i.e., a RAM area of the bank 9. As a result, a writing operation is attained to a RAM area of a memory bank from another memory bank without carrying out a bank switching process of a program.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はマイクロプロセッサのメモリ・バンク制御方式
に関し、特にROM領域とRAM領域を持つメモリ・バ
ンクをマイクロプロセッサが制御するマイクロプロセッ
サのメモリ・バンク制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a memory bank control method for a microprocessor, and particularly to a memory bank control method for a microprocessor in which a microprocessor controls a memory bank having a ROM area and a RAM area. Regarding control method.

〔従来の技術〕[Conventional technology]

従来、この種のマイクロプロセッサのメモリ・バンク制
御方式は、メモリ・バンク間でのデータの受渡しをする
場合、どちらのメモリ・バンクからでも参照できる共通
メモリバッファ領域を設けて、その共通メモリバッファ
領域に一度データを書込み、次にメモリ・バンクに切り
替えて、メモリ・バンクに処理を移してから共通メモリ
バッフア領域からメモリ・バンクの目的のRAMアドレ
スにデータを書込む処理を行う方式となっていた。
Conventionally, in the memory bank control method of this type of microprocessor, when data is transferred between memory banks, a common memory buffer area that can be referenced from either memory bank is provided, and the common memory buffer area is The method used was to write data once to the memory bank, then switch to the memory bank, transfer the processing to the memory bank, and then write data from the common memory buffer area to the target RAM address of the memory bank.

従って、プログラム上メモリ・バンクを切り替えずに、
一方のメモリ・バンクから他方のメモリ・バンク内のR
AM領域に書込む時は不可能な構成となっていた。
Therefore, without switching memory banks in the program,
R from one memory bank to the other memory bank
The configuration was impossible when writing to the AM area.

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

上述した従来のマイクロプロセッサのメモリ・バンク制
御方式は、メモリ・バンク間でのデータの受渡しを目的
とした共通メモリバッファ領域を設ける必要があるなめ
、共通メモリバッファ領域分だけそのメモリ・バンク内
のアドレス空間が減少してしまう欠点があり、メモリ・
バンク間でのデータの受渡し量が多くて共通メモリバッ
ファ領域を大きく採らなければならない場合には、さら
にメモリ・バンクの数を増やす等の対策が必要になる。
In the conventional microprocessor memory bank control method described above, it is necessary to provide a common memory buffer area for the purpose of transferring data between memory banks. The disadvantage is that the address space is reduced, and the memory
If the amount of data transferred between banks is large and a large common memory buffer area must be taken, measures such as increasing the number of memory banks will be required.

一方、共通メモリバッファ領域を小さく採りメモリ・バ
ンク内のアドレス空間の減少を抑えたとしても、メモリ
・バンクを切り替えずに他方のメモリ・バンク内のRA
M領域に書込む事は不可能な構成となっているので、メ
モリ・バンク間でのデータの受渡し量が多い場合には、
頻繁にプログラム上メモリ・バンクを切り替える必要が
あるため、メモリ・バンクを切り替えるための処理時間
が増大してしまうという欠点がある。
On the other hand, even if the common memory buffer area is made small and the address space in the memory bank is suppressed from decreasing, the RA in the other memory bank is
Since the configuration is such that it is impossible to write to the M area, if there is a large amount of data transferred between memory banks,
Since it is necessary to frequently switch memory banks in a program, there is a drawback that processing time for switching memory banks increases.

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

本発明のマイクロプロセッサのメモリ・バンク制御方式
はマイクロプロセッサが処理するプログラム上読出し操
作に対してバンク分けされた第1−及び第2のメモリ・
バンクのそれぞれに読出し専用記憶領域のROM領域と
読出し書込み可能記憶領域のRAM領域とを有し、前記
マイクロプロセッサが前記第1及び第2のメモリ・バン
クの内の一方のメモリ・バンクの前記ROM領域に書込
み操作を行うのを検出するROM書込み検出回路と、こ
のROM書込み検出回路が前記一方のメモリ・バンクの
ROM領域への書込み操作を検出すると他方のメモリ・
バンクの前記RAM領域に前記マイクロプロセッサが書
込み操作を行うように制御するメモリ・バンク制御回路
とを備えている。
The microprocessor memory bank control method of the present invention provides first and second memory banks divided into banks for program read operations processed by the microprocessor.
Each of the banks has a ROM area as a read-only storage area and a RAM area as a read-writable storage area, and the microprocessor has a ROM area in one of the first and second memory banks. A ROM write detection circuit detects a write operation to the area, and when this ROM write detection circuit detects a write operation to the ROM area of one memory bank, it detects a write operation to the ROM area of the other memory bank.
and a memory bank control circuit for controlling the microprocessor to perform a write operation in the RAM area of the bank.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

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

第1図において、本実施例はプログラム処理を実行する
マイクロプロセッサ1と、マイクロプロセッサ1にアド
レス・バス及びバス制御信号線4及びデータ・バス5を
介して接続するメモリ・バンク制御回路3と、#1メモ
リ・パンクロと、#2メモリ・バンク9と、アドレス・
バス及びバス制御信号線4を介して接続するROM書込
み検出回路2とを有して構成し、ROM書込み検出回路
2はアドレス・バス及びバス制御信号線4から#1メモ
リ・バンク8又は#2メモリ・バンク9のROM領域へ
の書込み操作を行うのを検出してROM書込み検出信号
7を送出し、メモリ・バンク制御回路3はROM書込み
検出信号7を受信するとメモリ・バンク制御信号6によ
って#1メモリ・バンク8又は#2メモリ・バンク9を
制御する。
In FIG. 1, this embodiment includes a microprocessor 1 that executes program processing, a memory bank control circuit 3 connected to the microprocessor 1 via an address bus and a bus control signal line 4, and a data bus 5. #1 memory panchromatic, #2 memory bank 9, address
The ROM write detection circuit 2 is configured to include a ROM write detection circuit 2 connected via a bus and a bus control signal line 4. The memory bank control circuit 3 detects the write operation to the ROM area of the memory bank 9 and sends out the ROM write detection signal 7. When the memory bank control circuit 3 receives the ROM write detection signal 7, the memory bank control circuit 3 outputs the signal # by the memory bank control signal 6. 1 memory bank 8 or #2 memory bank 9.

次に、本実施例の動作について説明する。Next, the operation of this embodiment will be explained.

通常、メモリ・バンク制御回路3はマイクロプロセッサ
1からのアドレス・バス及びバス制御信号線4及びデー
タ・バスラからの制御によってメモリ・バンク制御信号
6を出力し、#1メモリ・バンク8まなは#2メモリ・
バンク9のどちらか一方のメモリ・バンクを選択する。
Normally, the memory bank control circuit 3 outputs the memory bank control signal 6 under the control of the address bus and bus control signal line 4 from the microprocessor 1 and the data busler, and the memory bank control circuit 3 outputs the memory bank control signal 6, 2 memory
Select one of the memory banks in bank 9.

マイクロプロセッサ1は、アドレス・バス及びバス制御
信号4及びデータ・バスラによって前記選択された一方
のメモリ・バンクにアクセスする。
The microprocessor 1 accesses the selected one memory bank by the address bus, bus control signal 4 and data busler.

ROM書込み検出回路2はアドレス・バス及びバス制御
信号線4及びメモリ・バンク制御信号6を監視し、マイ
クロプロセッサ1からメモリ・バンクのROM領域に対
する書込みアクセスを検出した場合に、ROM書込み検
出信号7をメモリ・バンク制御回路3に出力する。
The ROM write detection circuit 2 monitors the address bus and bus control signal line 4 and the memory bank control signal 6, and when it detects a write access from the microprocessor 1 to the ROM area of the memory bank, it outputs a ROM write detection signal 7. is output to the memory bank control circuit 3.

メモリ・バンク制御回路3はROM書込み検出信号7を
受けると、メモリ・バンク制御信号6を一時的に変更し
、現在選択されていない他方のメモリ、バンクを選択す
る様に制御する。この為にこの書込みアクセスは反対側
のメモリ・バンクに対して行われる事となる。
When the memory bank control circuit 3 receives the ROM write detection signal 7, it temporarily changes the memory bank control signal 6 and controls the memory bank to select the other memory and bank that is not currently selected. Therefore, this write access will be performed to the opposite memory bank.

第2図(a)、(b)はそれぞれ第2図の中の#1.#
2メモリ・バンクのR,0M領域及びR,AM領域のア
ドレスマツプの一例を示す図である。
Figures 2(a) and (b) are #1 in Figure 2, respectively. #
FIG. 2 is a diagram showing an example of an address map of an R, 0M area and an R, AM area of two memory banks.

次に、第2図(a>、(b)に示すアドレスマツプを基
に本実施例の動作を説明する。
Next, the operation of this embodiment will be explained based on the address maps shown in FIGS. 2(a> and 2(b)).

#1メモリ・バンク8はアドレス0OOOH〜7FFF
HがROM領域、80008〜FFFFHがRAM領域
となっており、#2メモリ・バンク9はROM領域とR
AM領域のアドレスが#メモリ・バンク8と入れ替わっ
た構成となっている。
#1 memory bank 8 is address 0OOOH~7FFF
H is the ROM area, 80008 to FFFFH are the RAM area, and #2 memory bank 9 is the ROM area and R
The configuration is such that the address of the AM area is swapped with #memory bank 8.

ここで、例えば#1メモリ・パンクロのROM領域に対
してマイクロプロセッサ1が書込み操作を行った場合に
は、ROM書込み検出回路2によって上述のようにRO
M書込みアクセスが検出され、メモリ・バンク制御回路
3によってメモリバンク制御信号6を一時的に変更し、
#2メモリ・バンク9が一時的に選択される。
Here, for example, when the microprocessor 1 performs a write operation on the ROM area of #1 memory panchromatic, the ROM write detection circuit 2 detects the ROM area as described above.
M write access is detected and the memory bank control circuit 3 temporarily changes the memory bank control signal 6;
#2 memory bank 9 is temporarily selected.

従って、#メモリ・バンク8のROM領域と同一アドレ
ス、すなわち、#2メモリ・バンク9のRAM領域に対
して書込みが行われる。
Therefore, writing is performed to the same address as the ROM area of #memory bank 8, that is, the RAM area of #2 memory bank 9.

逆に、#2メモリ・バンク9のROM領域に対してマイ
クロプロセッサ1が書込み操作を行った場合では、前述
と同様にメモリ・バンク制御信号6が一時的に変更する
なめ、#1メモリ・バンク8が一時的に選択され、#1
メモリ・バンク8のRAM領域に対して書込みが行われ
る。
Conversely, when the microprocessor 1 performs a write operation on the ROM area of the #2 memory bank 9, the memory bank control signal 6 temporarily changes as described above, and the memory bank #1 8 is temporarily selected, #1
Writing is performed to the RAM area of memory bank 8.

尚、本実施例では#1メモリ・バンク8と#2メモリ・
バンク9とが対称のアドレスマツプとなっている例であ
るが対象でない場合でもメモリ・バンク制御回路3によ
りメモリ・バンクのアドレス・デコードを制御すること
により本実施例と同様なメモリ・バンク制御を行うこと
ができる。
In this embodiment, #1 memory bank 8 and #2 memory bank
This is an example in which the address map is symmetrical to bank 9, but even if it is not the target, memory bank control circuit 3 can control the address decoding of the memory bank in the same way as in this embodiment. It can be carried out.

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

以上説明したように本発明は、マイクロプロセッサが二
つのメモリ・バンクの一方のROM領域に書込み操作を
行ったことを検出するROM書込み検出回路と、この書
込み操作を検出した場合に他方のメモリ・バンズに切替
え、切替えたメモリ・バンク内のRAM領域に書込み操
作を行うように制御するメモリ・バンク制御回路とを有
することにより、プログラム上バンク切替え処理を行わ
ずに一方のメモリ・バンクのROM領域から他方メモリ
・バンク内のRAM領域に書込みを可能とすると共に、
従来のように共通メモリバッファ領域等を設けずにメモ
リ・バンク間のデータの受渡しを可能にできる効果があ
る。
As explained above, the present invention includes a ROM write detection circuit that detects when a microprocessor performs a write operation on the ROM area of one of two memory banks, and a ROM write detection circuit that detects when a microprocessor performs a write operation on the ROM area of one of two memory banks. By having a memory bank control circuit that controls switching to the RAM area in the switched memory bank and writing operations to the RAM area in the switched memory bank, the ROM area of one memory bank can be written without performing bank switching processing in the program. from the RAM area in the other memory bank, and
This has the effect of making it possible to transfer data between memory banks without providing a common memory buffer area or the like as in the prior art.

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

第1図は本発明の一実施例を示す機能ブロック図、第2
図(a)、(b)はそれぞれ第2図の中の#1.#2の
メモリ・バンクのROM領域及びRAM領域のアドレス
マツプの一例を示す図である。 1・・・マイクロプロセッサ、2・・・ROM書込み検
出回路、3・・・メモリ・バンク制御回路、4・、・ア
ドレス・バス及びバス制御信号線、5・・・データバス
、6・・・メモリ・バンク制御信号、7・・・ROM書
込み検出信号、8・・・#1メモリ・バンク、9・・・
#2メモリ・バンク。
Fig. 1 is a functional block diagram showing one embodiment of the present invention;
Figures (a) and (b) are #1 in Figure 2, respectively. 7 is a diagram showing an example of an address map of the ROM area and RAM area of memory bank #2. FIG. DESCRIPTION OF SYMBOLS 1... Microprocessor, 2... ROM write detection circuit, 3... Memory bank control circuit, 4... Address bus and bus control signal line, 5... Data bus, 6... Memory bank control signal, 7... ROM write detection signal, 8... #1 memory bank, 9...
#2 Memory bank.

Claims (1)

【特許請求の範囲】[Claims] マイクロプロセッサが処理するプログラム上読出し操作
に対してバンク分けされた第1及び第2のメモリ・バン
クのそれぞれに読出し専用記憶領域のROM領域と読出
し書込み可能記憶領域のRAM領域とを有し、前記マイ
クロプロセッサが前記第1及び第2のメモリ・バンクの
内の一方のメモリ・バンクの前記ROM領域に書込み操
作を行うのを検出するROM書込み検出回路と、このR
OM書込み検出回路が前記一方のメモリ・バンクのRO
M領域への書込み操作を検出すると他方のメモリ・バン
クの前記RAM領域に前記マイクロプロセッサが書込み
操作を行うように制御するメモリ・バンク制御回路とを
備え、前記プログラム内でのメモリ・バンク切替え処理
を行うことなく、前記第1又は第2のメモリバンクのR
AM領域に前記マイクロプロセッサがデータの書込みを
行うことを特徴とするマイクロプロセッサのメモリ・バ
ンク制御方式。
Each of the first and second memory banks divided into banks for program read operations processed by the microprocessor has a ROM area as a read-only storage area and a RAM area as a read/writable storage area; a ROM write detection circuit for detecting that a microprocessor performs a write operation on the ROM area of one of the first and second memory banks;
The OM write detection circuit is connected to the RO of the one memory bank.
a memory bank control circuit that controls the microprocessor to perform a write operation to the RAM area of the other memory bank when a write operation to the M area is detected, and memory bank switching processing within the program; R of the first or second memory bank without performing
A memory bank control method for a microprocessor, characterized in that the microprocessor writes data in an AM area.
JP9343589A 1989-04-12 1989-04-12 Memory bank control system for microprocessor Pending JPH02270047A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9343589A JPH02270047A (en) 1989-04-12 1989-04-12 Memory bank control system for microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9343589A JPH02270047A (en) 1989-04-12 1989-04-12 Memory bank control system for microprocessor

Publications (1)

Publication Number Publication Date
JPH02270047A true JPH02270047A (en) 1990-11-05

Family

ID=14082234

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9343589A Pending JPH02270047A (en) 1989-04-12 1989-04-12 Memory bank control system for microprocessor

Country Status (1)

Country Link
JP (1) JPH02270047A (en)

Similar Documents

Publication Publication Date Title
JPH02270047A (en) Memory bank control system for microprocessor
JPS5814260A (en) Data transfer system
JPH06342397A (en) Circuit device for mapping of logical address space
JPH01140253A (en) Bank memory switching control system
JPH03214250A (en) Memory control circuit
JPH0447350A (en) Main storage read/response control
JPH04256883A (en) Clutter map control method
JPH0410135A (en) High speed processing system for data
JPH01219930A (en) Interrupt control circuit device for indirect address system
JPS6341966A (en) Direct memory access transfer device
JPH01296303A (en) System for controlling data transfer of programmable controller
JPS628245A (en) Virtual memory system
JPH02121043A (en) Data processor
JPH03119438A (en) Microprocessor
JPS5957357A (en) Multiple access system of storage device
JPH04245333A (en) Information processor
JPH01304565A (en) Data exchange system
JPH03172921A (en) Electronic disk system
JPH0475160A (en) Data processor
JPH01261767A (en) Data communication system
JPS63245549A (en) Bus controller
JPS61259358A (en) Dma circuit
JPS61267147A (en) Data memory control device
JPS6226549A (en) Memory circuit
JPH0385658A (en) Data processor