JPH01314353A - Information processor - Google Patents

Information processor

Info

Publication number
JPH01314353A
JPH01314353A JP63146306A JP14630688A JPH01314353A JP H01314353 A JPH01314353 A JP H01314353A JP 63146306 A JP63146306 A JP 63146306A JP 14630688 A JP14630688 A JP 14630688A JP H01314353 A JPH01314353 A JP H01314353A
Authority
JP
Japan
Prior art keywords
bank
address
memory
program
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.)
Granted
Application number
JP63146306A
Other languages
Japanese (ja)
Other versions
JPH0752408B2 (en
Inventor
Yutaka Kaneko
豊 金子
Tatsuyuki Ohama
大浜 辰之
Masami Tsukagoshi
塚越 正巳
Hideyuki Maehara
前原 英行
Masashi Hachiman
八幡 政志
Minoru Tada
多田 実
Noriyuki Aoki
青木 紀之
Chiaki Araki
荒木 千晶
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP63146306A priority Critical patent/JPH0752408B2/en
Priority to EP89105889A priority patent/EP0338317B1/en
Priority to DE68925376T priority patent/DE68925376T2/en
Priority to US07/334,498 priority patent/US5127096A/en
Priority to CN89103203A priority patent/CN1016652B/en
Priority to KR1019890005286A priority patent/KR920006615B1/en
Publication of JPH01314353A publication Critical patent/JPH01314353A/en
Publication of JPH0752408B2 publication Critical patent/JPH0752408B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PURPOSE:To select one of two bank and direct mapping systems by switching according to a user's purpose and to perform data processing by the best system by adapting the information processor to the two mapping systems without replacing a program memory itself. CONSTITUTION:When switches 11-13 are all placed on C sides, an address MA15 of a ROM 14 is fixed at '1', an address A14 is supplied from a CPU 1 to an address MA14, and the address A15 and a potential 0 are inputted to an address decoder 7. When the switches 11-13 are all placed on B sides, on the other hand, the outputs of bank registers 5 and 6 are supplied to the addresses MA15 and MA14 of the ROM 4 and the addresses A14 and A15 of the CPU 1 are inputted to the address decoder 7 as they are. Consequently, the information processor is adapted to the two bank and direct mapping systems without replacing the program memory itself and the user can select the best mapping system according to the purpose of use.

Description

【発明の詳細な説明】 (イ)産業上の利用分野 本発明は、パーソナルコンピュータ等の情報処理装置に
関し、特に、プログラムメモリのマツピング方式に係る
DETAILED DESCRIPTION OF THE INVENTION (A) Field of Industrial Application The present invention relates to an information processing device such as a personal computer, and particularly relates to a program memory mapping method.

(ロ)従来の技術 一般に、情報処理装置においては、プログラムメモリを
CPUのアドレス空間上にダイレクトにマツピングする
方式が最も広く用いられているが、プログラムを記憶す
るメモリ容量に制限がある場合は、特開昭62−120
543号公報に開示されているように、プログラムメモ
リを複数のメモリブロックで構成し、これら各メモリブ
ロックをCPUのアドレス空間に、同一アドレスをもつ
メモリバンクとしてマツピングするバンク方式が採用さ
れていた。
(b) Conventional technology In general, in information processing devices, the most widely used method is to map the program memory directly onto the address space of the CPU. However, if there is a limit to the memory capacity for storing programs, Japanese Patent Publication No. 1986-120
As disclosed in Japanese Patent Application No. 543, a bank system was adopted in which a program memory is configured with a plurality of memory blocks, and each of these memory blocks is mapped in the address space of the CPU as a memory bank having the same address.

(八〉発明が解決しようとする課題 例えば、CPUのアドレス空間において、プログラムメ
モリエリアに近接してオプションエリアが割り付けられ
ているとき、ユーザーがオプションソフトを搭載しよう
とする場合には、プログラムメモリエリアは予め定めら
れている領域に限定されてしまうため、該エリアを越え
る容量のブロダラムは、上記バンク方式でマツピングす
るしかない、一方、オプションソフトを搭載しない場合
には、そのエリアを拡張プログラムメモリエリアとして
用いることができ、従って、この場合、必ずしもバンク
方式を使用しなくても、通常のダイレクト方式のマツピ
ングが可能となる。
(8) Problems to be Solved by the Invention For example, when an option area is allocated close to the program memory area in the address space of the CPU, if the user wants to install optional software, the program memory area is limited to a predetermined area, so if the capacity exceeds the area, the only way to map it is by using the bank method described above.On the other hand, if the optional software is not installed, that area can be used as an extended program memory area. Therefore, in this case, normal direct method mapping is possible without necessarily using the bank method.

と゛ころが、バンク方式のプログラムでは、異なるバン
ク間のルーチンの処理にバンク切替を伴うため、同一内
容を処理するにも、ダイレクト方式とはプログラムが若
干異なり、且つ、処理速度も低下する。従って、オプシ
ョンソフトの有無に応じてマツピング方式を切替えるよ
うにすることが望ましいが、所定の処理内容のプログラ
ムを格納するプログラムメモリを1個のみ用いて、ノ飄
−ド的なマツピング切替のみを行っても、双方の方式に
対応することはできない。
However, in a bank-based program, routine processing between different banks involves bank switching, so even though the same content is processed, the program is slightly different from the direct-based program, and the processing speed is also reduced. Therefore, it is desirable to switch the mapping method depending on the presence or absence of optional software, but it is possible to switch the mapping method simply by using only one program memory that stores a program with predetermined processing content. However, it is not possible to support both methods.

(ニ)課題を解決するための手段 本発明は、複数のメモリブロックより成りバンクマツピ
ング方式に対応した所定の処理内容の第1プログラムを
格納した第1プログラムメモリと、ダイレクトマツピン
グ方式に対応した前記処理内容と略同一内容の第2プロ
グラムを格納した第2プログラムメモリとによって、プ
ログラムメモリを構成すると共に、前記第1プログラム
メモリの複数のメモリブロックをCPUのアドレス空間
上にメモリバンクとしてマツピングするか、もしくは、
前記第2プログラムメモリを前記CPUのアドレス空間
にダイレクトにマツピングするかを切替える切替手段を
設けて、上記課題を解決するものである。
(D) Means for Solving the Problems The present invention includes a first program memory that is made up of a plurality of memory blocks and stores a first program with predetermined processing content that is compatible with the bank mapping method, and a first program memory that is compatible with the direct mapping method. A second program memory is configured by a second program memory storing a second program having substantially the same content as the processing content, and the plurality of memory blocks of the first program memory are mapped as memory banks on the address space of the CPU. or,
The above problem is solved by providing a switching means for switching whether or not the second program memory is directly mapped to the address space of the CPU.

(*)作用 本発明では、プログラムメモリ自体の交換をすることな
く、バンク方式とダイレクト方式の2つのマツピング方
式に対応可能となり、ユーザーが用途に合わせていずれ
かの方式に切替えて最良の方式でデータ処理が行える。
(*) Effect The present invention enables support for two mapping methods, the bank method and the direct method, without replacing the program memory itself, allowing the user to switch to either method according to the application and find the best method. Can perform data processing.

(へ)実施例 第1図は、本発明の実施例の構成を示すブロック図であ
り、(1)は1Mバイトのアドレス空間を有するCPU
、(2)はアドレスバス、(3)はデータバス、(4)
は64にバイトの容量を有しBIOSプログラムを格納
したプログラムメモリとしてのROM、(5)及び(6
)はCPU(1)かラメモリバンクを指定するための2
ビツトのバンク指定データがセットされるバンクレジス
タ、(7)〜(9)はアドレスデコーダ、(10)はス
イッチ(11)(12)(13)より成りプログラムメ
モリ(4)をCPU(1)のアドレス空間上にマツピン
グする方式を、ダイレクト方式とバンク方式に切替える
切替回路である。
(f) Embodiment FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, and (1) is a CPU having an address space of 1M bytes.
, (2) is the address bus, (3) is the data bus, (4)
(5) and (6) have a capacity of 64 bytes and serve as program memory that stores the BIOS program.
) is 2 to specify CPU (1) or RAM memory bank.
The bank register (7) to (9) are address decoders, and (10) is composed of switches (11), (12), and (13), and the program memory (4) is connected to the CPU (1). This is a switching circuit that switches the mapping method on the address space between the direct method and the bank method.

アドレスデコーダ(7)は、具体的には、アドレスA+
s〜Ateが「CJで且つアドレスA1.及びAl1の
2人力が共にr□、のときのみROM(4)のデータの
読出しが可能となる、又、切替回路(10)のスイッチ
(11)には、B側にアドレスAI4が、C側に接地電
位rO」が接続されており、スイッチ(12)には、B
側にバンクレジスタ(5)の出力、C側に+V電位が、
スイッチ(13)には、B側にバンクレジスタ(6)の
出力、C側にアドレスA44が接続されている。モして
、スイッチ(12)及び(13)の出力が、各々、RO
M(4)の上位アドレスMAts及びMA、、とじて供
給されるように構成されている。
Specifically, the address decoder (7)
Only when s~Ate is "CJ" and both addresses A1 and A1 are r□, data in the ROM (4) can be read. The address AI4 is connected to the B side, and the ground potential rO is connected to the C side, and the switch (12) is connected to the address AI4.
The output of the bank register (5) is on the side, +V potential is on the C side,
The switch (13) is connected to the output of the bank register (6) on the B side and the address A44 on the C side. The outputs of switches (12) and (13) are respectively RO
The upper addresses MAts and MA of M(4) are configured to be supplied together.

ROM(4)は、第2図に示すように、各々が16にバ
イトの第1〜第4のメモリブロック(14)〜(17)
より成り、アドレス0OOOH〜7FFFHに、バンク
方式に対応した所定の処理内容の第1プログラムが格納
されており、アドレス8000H−FFFFHにダイレ
クト方式に対応した略凹−処理内容の第2プログラムが
格納されている。
The ROM (4) has first to fourth memory blocks (14) to (17) of 16 bytes each, as shown in FIG.
A first program with predetermined processing contents corresponding to the bank method is stored at addresses 0OOOH to 7FFFH, and a second program with approximately concave processing contents corresponding to the direct method is stored at addresses 8000H to FFFFH. ing.

尚、第1及び第2のプログラムは処理内容として略凹−
であるが、各方式に対応させるため、若干の違いがあり
、バンク方式の第1プログラムにはバンクを切替えるた
めのバンク切替制御プログラムが追加格納されている。
The processing contents of the first and second programs are approximately concave.
However, in order to correspond to each system, there are some differences, and the first program for the bank system additionally stores a bank switching control program for switching banks.

そして、この第1プログラムの具体的内容については、
本願出願人が先に出願した特願昭63−41535号に
詳細に開示し℃いるので同出願を参照されたい。
Regarding the specific content of this first program,
Please refer to Japanese Patent Application No. 63-41535, which was previously filed by the applicant of the present application, for detailed disclosure.

そこで、スイッチ(11)〜(13)を全てC側にする
と、ROM(4)(7)7ドL/ スM A 1m l
! ’ 14 ニ固定され、MA、、にはCPU(1)
からのアドレスAltが供給され、且つ、アドレスデコ
ーダ(7)にはアドレスA tsと電位rO」が入力さ
れる。従って、第3図に示すように、CPU(1)のア
ドレスAIl°がrO」であるアドレス空間C0000
H−C8000Hに、M A I−が「1」であるRO
M(4)の第3及び第4メモリブロツク(16)及びり
17)、即ち、第2プログラムがダイレクトにマツピン
グされる。
Therefore, when switches (11) to (13) are all set to the C side, ROM (4) (7) 7 do L/s MA 1 ml
! '14 Fixed, MA, CPU (1)
The address Alt is supplied from the address decoder (7), and the address Ats and the potential rO' are input to the address decoder (7). Therefore, as shown in FIG. 3, the address space C0000 where the address AIl° of CPU (1) is rO
In H-C8000H, RO whose M A I- is “1”
The third and fourth memory blocks (16) and 17) of M(4), ie, the second program, are directly mapped.

一方、スイッチ(11)〜(13)を全てB側にすると
、ROM(4)のアドレスM A Is及びMA、、に
は、各々、バンクレジスタ(5)及び(6)の出力が供
給きれ、且つ、アドレスデコーダ(7)にはCPU(1
)のアドレスA Ia及びA1.がそのまま入力される
。従って、第4図に示すように、CPU(1)のアドレ
スAI4及びAHが共に10」であるアドレス空間Co
 O00H−C3FFFFHに、ROM(4)の第1〜
第4の各メモリブロックがメモリバンクとしてマツピン
グされることとなる。
On the other hand, when switches (11) to (13) are all set to the B side, the outputs of bank registers (5) and (6) are fully supplied to addresses MA Is and MA of ROM (4), respectively. In addition, the address decoder (7) has a CPU (1
) addresses A Ia and A1. is input as is. Therefore, as shown in FIG. 4, address space Co where both addresses AI4 and AH of CPU (1) are 10''.
O00H-C3FFFFH, ROM (4) 1st to
Each fourth memory block will be mapped as a memory bank.

そして、本実施例では、電源投入時バンクレジスタ(5
)(6)は共に「1」に初期設定され、先ずメモリバン
ク3が選択されるので、このメモリバンク3のアドレス
Co O00Hにバンク1へのバンク切替命令を格納し
ておき、この命令によりメモリバンク1にバンクが切替
えられて、初期化ルーチンが実行されるようにしている
。以降、バンク0及び1としてマツピングされた第1プ
ログラムにより所定の処理が実行きれる。尚、電源投入
時、バンクレジスタ(5)(6)が共に「0」に初期設
定される場合は、先ず、メモリバンク0が選択されるの
で、メモリバンク0のアドレスcooo。
In this embodiment, when the power is turned on, the bank register (5
) and (6) are both initialized to "1" and memory bank 3 is selected first, so a bank switching command to bank 1 is stored in the address Co O00H of memory bank 3, and this command causes the memory to be switched. The bank is switched to bank 1 and the initialization routine is executed. Thereafter, predetermined processing can be executed using the first programs mapped as banks 0 and 1. Incidentally, when the bank registers (5) and (6) are both initialized to "0" when the power is turned on, memory bank 0 is selected first, so the address cooo of memory bank 0 is selected.

Hに初期化ルーチンを格納しておいても良い。An initialization routine may be stored in H.

ところで、実施例においては、第1及び第2のプログラ
ムを1個のROMICにて構成しているが、言うまでも
なく、各メモリブロック毎又は各プログラム毎等、複数
個のROMICを用いても良い。
By the way, in the embodiment, the first and second programs are configured by one ROMIC, but needless to say, a plurality of ROMICs may be used for each memory block or each program.

(ト)発明の効果 本発明に依れば、プログラムメモリ自体の交換をするこ
となく、バンク方式とダイレクト方式の2つのマツピン
グ方式に対応できるようになり、作業効率、メインテナ
ンス等の各面で向上が期待できる。又、切替手段の切替
えにより容易にマツピング方式が切替えられるので、ユ
ーザーがその用途に合わせて、最良のマツピング方式を
選択できる。
(G) Effects of the Invention According to the present invention, it becomes possible to support two mapping methods, the bank method and the direct method, without replacing the program memory itself, improving work efficiency, maintenance, etc. can be expected. Furthermore, since the mapping method can be easily switched by switching the switching means, the user can select the best mapping method according to the application.

【図面の簡単な説明】 第1図は本発明の実施例の構成を示すブロック図、第2
図は実施例におけるプログラムメモリの構成を示す図、
第3図は実施例におけるダイレクト方式のメモリマツプ
、第4図は実施例におけるバンク方式のメモリマツプで
ある。 (1)・・・CPtJ、(2)・・・アドレスバス、(
3)・・・データバス、 (4)・・・ROM、  (
5)(6)・・・バンクレジスタ、(7)(8)(9)
・・・アドレスデコーダ、(10)・・・切替回路、 
(11)(12)(13)・・・スイッチ。
[Brief Description of the Drawings] Fig. 1 is a block diagram showing the configuration of an embodiment of the present invention;
The figure shows the configuration of the program memory in the embodiment.
FIG. 3 is a memory map of the direct method in the embodiment, and FIG. 4 is a memory map of the bank method in the embodiment. (1)...CPtJ, (2)...address bus, (
3)...Data bus, (4)...ROM, (
5)(6)...Bank register, (7)(8)(9)
... address decoder, (10) ... switching circuit,
(11) (12) (13)...Switch.

Claims (1)

【特許請求の範囲】[Claims] (1)複数のメモリブロックより成りバンクマッピング
方式に対応した所定の処理内容の第1プログラムを格納
した第1プログラムメモリと、ダイレクトマツピング方
式に対応した前記処理内容と略同一内容の第2プログラ
ムを格納した第2プログラムメモリとによって、プログ
ラムメモリを構成すると共に、前記第1プログラムメモ
リの複数のメモリブロックをCPUのアドレス空間上に
メモリバンクとしてマツピングするか、もしくは、前記
第2プログラムメモリを前記CPUのアドレス空間にダ
イレクトにマッピングするかを切替える切替手段を備え
たことを特徴とする情報処理装置。
(1) A first program memory that is made up of a plurality of memory blocks and stores a first program with predetermined processing content that is compatible with the bank mapping method, and a second program that has substantially the same content as the processing content that is compatible with the direct mapping method. A second program memory storing a program memory constitutes a program memory, and a plurality of memory blocks of the first program memory are mapped as a memory bank on the address space of the CPU, or the second program memory is An information processing device comprising a switching means for switching between direct mapping to a CPU address space.
JP63146306A 1988-04-20 1988-06-14 Information processing equipment Expired - Lifetime JPH0752408B2 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP63146306A JPH0752408B2 (en) 1988-06-14 1988-06-14 Information processing equipment
EP89105889A EP0338317B1 (en) 1988-04-20 1989-04-04 Information processor operative both in direct mapping and in bank mapping and the method of switching the mapping schemes
DE68925376T DE68925376T2 (en) 1988-04-20 1989-04-04 Effective information processor and method for switching the mapping schemes in direct mapping and in banking mapping
US07/334,498 US5127096A (en) 1988-04-20 1989-04-07 Information processor operative both in direct mapping and in bank mapping, and the method of switching the mapping schemes
CN89103203A CN1016652B (en) 1988-04-20 1989-04-20 Information processing device and transduce switch method by way of directly mapping and way of acting of storage medium mapping
KR1019890005286A KR920006615B1 (en) 1988-04-20 1989-04-20 Method and apparatus having both the direct mapping and bank mapping schemes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63146306A JPH0752408B2 (en) 1988-06-14 1988-06-14 Information processing equipment

Publications (2)

Publication Number Publication Date
JPH01314353A true JPH01314353A (en) 1989-12-19
JPH0752408B2 JPH0752408B2 (en) 1995-06-05

Family

ID=15404691

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63146306A Expired - Lifetime JPH0752408B2 (en) 1988-04-20 1988-06-14 Information processing equipment

Country Status (1)

Country Link
JP (1) JPH0752408B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62287352A (en) * 1986-06-06 1987-12-14 Matsushita Electric Ind Co Ltd Electronic equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62287352A (en) * 1986-06-06 1987-12-14 Matsushita Electric Ind Co Ltd Electronic equipment

Also Published As

Publication number Publication date
JPH0752408B2 (en) 1995-06-05

Similar Documents

Publication Publication Date Title
JP3268310B2 (en) Memory management method
EP0979456B1 (en) Memory access protection
KR102309327B1 (en) Apparatus and method for configuring sets of interrupts
WO1996009584A2 (en) A microcontroller system for performing operations of multiple microcontrollers
JP2773471B2 (en) Information processing device
CN105408875A (en) Distributed procedure execution and file systems on a memory interface
ATE195027T1 (en) INPUT/OUTPUT DECODER DIRECTORY
JPH03171231A (en) Micro computer system
US6393498B1 (en) System for reducing processor workloads with memory remapping techniques
KR19990037571A (en) A data pointer for outputting an indirect addressing mode address in a single period and a method of providing the same
JPH01314353A (en) Information processor
JP2860655B2 (en) Parallel instruction execution type processor
KR920003845B1 (en) Rom region expansion system for users of pc
KR100336743B1 (en) Processing circuit for data
JPS59111557A (en) Address converting device
KR970059915A (en) Microprocessor interrupt handler
JPH01134546A (en) Arithmetic processor
JPH01219930A (en) Interrupt control circuit device for indirect address system
JPS60220442A (en) Memory access system
JPH01120628A (en) Data processor
JPH0310977B2 (en)
JPH01290052A (en) Cache memory
JPH05225108A (en) Multiple terminal input/output control system and its input/output control system
JPH03204029A (en) Information processor
JPH01318127A (en) System for switching memory bank