JPH06314236A - Memory allocating method for memory cartridge - Google Patents
Memory allocating method for memory cartridgeInfo
- Publication number
- JPH06314236A JPH06314236A JP5393093A JP5393093A JPH06314236A JP H06314236 A JPH06314236 A JP H06314236A JP 5393093 A JP5393093 A JP 5393093A JP 5393093 A JP5393093 A JP 5393093A JP H06314236 A JPH06314236 A JP H06314236A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- bank
- area
- rom
- dictionary
- 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
Links
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、着脱可能なメモリカー
トリッジを有し、該メモリカートリッジのメモリをメモ
リバンクとして配置するシステムにおいて、カートリッ
ジ内のメモリを割り付ける方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for allocating memory in a cartridge in a system having a removable memory cartridge and arranging the memory of the memory cartridge as a memory bank.
【0002】[0002]
【従来の技術】実公昭59−37888号公報に開示さ
れているように、電子辞書等の電子機器においては、従
来より、メモリカートリッジを使用し、各メモリカート
リッジに各々言語の異なる辞書内容を記憶しておき、メ
モリカートリッジを交換することにより、複数種類の言
語に対応できるようにしていた。2. Description of the Related Art As disclosed in Japanese Utility Model Publication No. 59-37888, memory cartridges have been conventionally used in electronic devices such as electronic dictionaries, and each memory cartridge stores dictionary contents in different languages. In addition, by replacing the memory cartridge, it is possible to deal with a plurality of languages.
【0003】又、メモリ容量が大きく、CPUが直接ア
クセス可能なアドレス空間内にメモリが納まらないシス
テムでは、特開昭60−33644号公報に開示されて
いるように、メモリをバンクとして配置することによ
り、メモリ領域を拡張するようにしていた。Further, in a system having a large memory capacity and the memory cannot be accommodated in an address space which can be directly accessed by the CPU, by disposing the memory as a bank as disclosed in Japanese Patent Laid-Open No. 60-33644. , I was trying to expand the memory area.
【0004】[0004]
【発明が解決しようとする課題】例えば、電子辞書にお
いて、辞書メモリ容量が大きい場合は、従来のバンク切
換方式を用い、内部辞書メモリと同一のアドレス空間
に、メモリカートリッジのメモリをメモリバンクとして
配置することが考えられる。For example, when the dictionary memory has a large capacity in an electronic dictionary, the conventional bank switching method is used, and the memory of the memory cartridge is arranged as a memory bank in the same address space as the internal dictionary memory. It is possible to do it.
【0005】しかしながら、メモリカートリッジのメモ
リの一部に、プログラムや辞書種別等の各メモリカート
リッジの性質を表す識別情報等を記憶し、このプログラ
ムと電子辞書本体内のプログラムとでデータ処理を行っ
たり、上記識別情報を読出してデータ処理の実行ルーチ
ンを決定するシステムの場合、従来の如く、単にバンク
レジスタによってバンクを切換える方式では、メモリカ
ートリッジ内のプログラムや識別情報を参照しようとす
る度に、バンクレジスタに選択情報を設定してメモリバ
ンクの切換えを行わなければならず、非常に面倒であっ
た。However, a part of the memory of the memory cartridge stores identification information indicating the characteristics of each memory cartridge such as a program and dictionary type, and data processing is performed by this program and the program in the electronic dictionary body. In the case of a system in which the identification information is read to determine a data processing execution routine, the bank is simply switched by the bank register as in the conventional system, and the bank and the identification information are stored in the memory cartridge each time the reference is made. This was very troublesome because the selection information had to be set in the register to switch the memory bank.
【0006】[0006]
【課題を解決するための手段】本発明は、着脱可能なメ
モリカートリッジを電子機器に装着してなるシステムに
おいて、前記メモリカートリッジの第1メモリエリアに
メモリカートリッジの性質を表す識別情報もしくはプロ
グラムを記憶し、第2メモリエリアにデータ部分を記憶
すると共に、前記電子機器のアドレス空間の一部に設け
られたメモリバンク領域に前記第2メモリエリアをメモ
リバンクとして割り付け、前記第1メモリエリアを前記
メモリバンク領域以外の所定のアドレス空間に割り付け
るようにして、上記課題を解決するものである。According to the present invention, in a system in which a removable memory cartridge is mounted in an electronic device, identification information or a program indicating the nature of the memory cartridge is stored in a first memory area of the memory cartridge. Then, the data portion is stored in the second memory area, the second memory area is allocated as a memory bank to a memory bank area provided in a part of the address space of the electronic device, and the first memory area is stored in the memory. The above problem is solved by allocating to a predetermined address space other than the bank area.
【0007】[0007]
【作用】本発明では、メモリカートリッジのメモリの一
部の領域は、CPUが直接アクセス可能なメモリバンク
領域以外の所定のアドレス空間に割り付けられることと
なり、従って、この領域に記憶した上記プログラムや識
別情報を、バンク切換を行うことなく、これらプログラ
ムや識別情報を参照することが可能となる。According to the present invention, a part of the memory of the memory cartridge is allocated to a predetermined address space other than the memory bank area which can be directly accessed by the CPU. Therefore, the program and the identification information stored in this area are allocated. It is possible to refer to these programs and identification information without performing bank switching.
【0008】[0008]
【実施例】第1図は、本発明の実施例を含む電子辞書の
構成を示すブロック図であり、(1)はCPU、(2)
はA0〜A19の20ビットのアドレスバス、(3)はD0
〜D7のデータバス、(4)はプログラムを記憶した1
28KBのシステムROM、(5)は256KBのフォ
ントROM、(6)はRAM、(7)及び(8)は例え
ば英和辞書である内部辞書を構成する512KBの辞書
ROM1及び辞書ROM2、(9)はコネクタ(10)
によりアドレスバス、データバス、制御ラインが本体側
に接続される着脱自在なROMカードであり、例えば、
和英辞書を構成する512KBの辞書ROM3(11)
及び辞書ROM4(12)より成る。そして、辞書ROM
(7)(8)(11)(12)が順にメモリバンク0〜
3として、同一アドレス空間上に割り付けられる。DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a block diagram showing the configuration of an electronic dictionary including an embodiment of the present invention, (1) is a CPU, and (2)
Is a 20-bit address bus of A 0 to A 19 , and (3) is D 0
~ D 7 data bus, (4) stored program 1
28KB system ROM, (5) 256KB font ROM, (6) RAM, (7) and (8) are 512KB dictionary ROM1 and dictionary ROM2, (9) constituting an internal dictionary such as an English-Japanese dictionary. Connector (10)
Is a removable ROM card in which the address bus, data bus, and control line are connected to the main body side by, for example,
512KB dictionary ROM3 (11) that constitutes the Japanese-English dictionary
And a dictionary ROM 4 (12). And dictionary ROM
(7), (8), (11), and (12) are memory banks 0 to
3 is allocated in the same address space.
【0009】更に、(13)はメモリバンク選択回路で
あり、データバス(3)を介してバンク選択情報BK0
及びBK1が設定されるバンクレジスタ(14)と、バ
ンクレジスタ(14)の出力Q0及びQ1を各々入力端子
A及びBに入力し、バンク選択情報に応じた選択信号Y
0〜Y3を出力するバンク用デコーダ(15)と、アドレ
スA17,A18,A19を各々入力端子A,B,C,に入力
し、出力信号Y0〜Y7を発生するアドレスデコーダ(1
6)と、アドレスデコーダ(16)の出力信号Y0とア
ドレスA16を入力するANDゲート(17)と、AND
ゲート(17)の出力信号Pとバンク用デコーダ(1
5)の選択信号Y2とを入力するORゲート(18)
と、アドレスデコーダ(16)の出力信号Y1〜Y4を入
力し、出力がバンク用デコーダ(15)のG端子に接続
されたORゲート(19)とより成る。そして、バンク
用デコーダ(15)の選択信号Y0,Y1,Y3は、各
々、辞書ROM(7),(8),(12)のチップイネ
ーブル端子CEに、ANDゲート(20),(21),
(23)を介して接続されており、辞書ROM(11)
のチップイネーブル端子CEには、ORゲート(18)
の出力信号RがANDゲート(22)を介して接続され
ている。Further, (13) is a memory bank selection circuit, and bank selection information BK0 is provided via the data bus (3).
And BK1 are set, and the outputs Q 0 and Q 1 of the bank register (14) are input to the input terminals A and B, respectively, and the selection signal Y corresponding to the bank selection information is input.
And 0 to Y 3 bank decoder that outputs (15), address decoder enter the address A 17, A 18, A 19 each input terminal A, B, C, and generates an output signal Y 0 to Y 7 (1
6), an AND gate (17) for inputting the output signal Y 0 of the address decoder (16) and the address A 16 , and an AND
The output signal P of the gate (17) and the decoder for bank (1
OR gate (18) for inputting the selection signal Y 2 of 5)
And the output signals Y 1 to Y 4 of the address decoder (16), and the output of the OR gate (19) connected to the G terminal of the bank decoder (15). The selection signals Y 0 , Y 1 , and Y 3 of the bank decoder (15) are connected to the chip enable terminals CE of the dictionary ROMs (7), (8), and (12), respectively, with AND gates (20), (). 21),
Dictionary ROM (11) connected via (23)
The OR gate (18) is connected to the chip enable terminal CE of
Output signal R is connected via an AND gate (22).
【0010】尚、ANDゲート(20)(21)(2
2)(23)は、CPU(1)から読出信号RDが出力
されたときのみ、辞書ROMが選択されるようにするた
めのゲートである。The AND gates (20) (21) (2
2) (23) are gates for allowing the dictionary ROM to be selected only when the read signal RD is output from the CPU (1).
【0011】ところで、デコーダ(15)及び(16)
は、同一構成であって、入力端A,B,Cへの入力信号
が「000」のとき信号Y0が「1」、「100」のと
き信号Y1が「1」、……「111」のとき信号Y7が
「1」というように、入力信号に応じてY0〜Y7の1つ
が順次「1」となるように構成されており、又、G端子
に「1」の信号が入力されている間のみ出力を発生す
る。By the way, the decoders (15) and (16)
Have the same configuration, the signal Y 0 is “1” when the input signals to the input terminals A, B, and C are “000”, and the signal Y 1 is “1” when the signal is “100”. , The signal Y 7 is "1", one of Y 0 to Y 7 is sequentially set to "1" according to the input signal, and the signal "1" is applied to the G terminal. Generates output only while is input.
【0012】従って、本実施例では、アドレスA19,A
18,A17が、「001」〜「100」の範囲でのみバン
ク用デコーダ(15)は選択信号を出力し、その際、バ
ンク情報BK1,BK0が「00」であれば辞書ROM
(7)が選択され、「01」であれば辞書ROM
(8)、「10」であれば辞書ROM(11)、「1
1」であれば辞書ROM(12)が選択される。つま
り、辞書ROM(7)〜(12)は、第2図のメモリマ
ップに示すように、CPU(1)の同一のアドレス空間
20000H〜9FFFFHに、各々、バンク0,バン
ク1,バンク2,バンク3として割り付けられる。そし
て、アドレスA0〜A18で、各バンク内のアドレスが指
定される。尚、システムROM(4)、フォントROM
(5)、RAM(6)は、メモリバンク領域20000
H〜9FFFFH以外のアドレス空間に割り付けられて
いる。Therefore, in this embodiment, the addresses A 19 , A
The bank decoder (15) outputs a selection signal only when 18 and A 17 are in the range of "001" to "100". At this time, if the bank information BK1 and BK0 are "00", the dictionary ROM
(7) is selected and if it is "01", dictionary ROM
(8) If "10", dictionary ROM (11), "1"
If it is "1", the dictionary ROM (12) is selected. That is, as shown in the memory map of FIG. 2, the dictionary ROMs (7) to (12) are arranged in the same address space 20000H to 9FFFFH of the CPU (1) as bank 0, bank 1, bank 2 and bank 2, respectively. Allocated as 3. Then, the addresses in each bank are designated by the addresses A 0 to A 18 . System ROM (4), font ROM
(5) and RAM (6) are the memory bank area 20000
Allocated to an address space other than H to 9FFFFH.
【0013】ところで、本実施例では、アドレスデコー
ダ(16)とANDゲート(17)により、アドレスA16〜A19
の上位4ビットをデコードするアドレスデコーダが構成
されており、アドレスA19,A18,A17,A16が「00
01」のとき、ANDゲート(17)の出力信号Pが「1」
となり、これによりORゲート(18)の出力信号Rも
「1」となって、ROMカード(9)内のバンク2の辞
書ROM(11)が選択される。ここでCPU(1)の
アドレス空間上、アドレスA19,A18,A17,A16が
「0001」となるのは、メモリバンク領域以外の第2
図斜線で示す10000H〜1FFFFHのアドレス空
間であり、メモリバンク2の辞書ROM(11)のう
ち、アドレスA18,A17,A16が「001」で指定され
るメモリ領域は、第2図の斜線で示す90000H〜9
FFFFHである。By the way, in this embodiment, the addresses A 16 to A 19 are provided by the address decoder (16) and the AND gate (17).
An address decoder for decoding the upper 4 bits of the address is configured, and the addresses A 19 , A 18 , A 17 , and A 16 are "00".
01 ”, the output signal P of the AND gate (17) is“ 1 ”
Accordingly, the output signal R of the OR gate (18) also becomes "1", and the dictionary ROM (11) of the bank 2 in the ROM card (9) is selected. Here, in the address space of the CPU (1), the addresses A 19 , A 18 , A 17 , and A 16 become “0001” in the second area other than the memory bank area.
In the dictionary ROM (11) of the memory bank 2, which is the address space of 10000H to 1FFFFH indicated by the diagonal lines in FIG. 2, the memory area in which the addresses A 18 , A 17 , and A 16 are designated by “001” is shown in FIG. 90000H to 9 shown with diagonal lines
FFFFH.
【0014】つまり、ROMカード(9)の辞書ROM
(11)の90000H〜9FFFFHのメモリ領域
は、CPU(1)が直接アクセス可能なメモリバンク領
域以外の所定のアドレス空間10000H〜1FFFF
Hに割り付けられるのである。従って、バンクレジスタ
(14)の内容に関係なく、CPU(1)が所定のアドレス
10000H〜1FFFFHをアクセスすれば、ROM
カード(9)の辞書ROM(11)の90000H〜9
FFFFHをアクセスすることができる。従って、RO
Mカード(9)のこの領域に、プログラムや識別情報を
記憶しておけば、バンクレジスタ(14)への設定を行うこ
となく、これらプログラムや識別情報を読み出せ、制御
が簡単になる。That is, the dictionary ROM of the ROM card (9)
The memory area of 90000H to 9FFFFH in (11) is a predetermined address space 10000H to 1FFFF other than the memory bank area directly accessible by the CPU (1).
It is assigned to H. Therefore, the bank register
Regardless of the contents of (14), if the CPU (1) accesses a predetermined address 10000H to 1FFFFH, the ROM
90000H to 9 in the dictionary ROM (11) of the card (9)
FFFFH can be accessed. Therefore, RO
If programs and identification information are stored in this area of the M card (9), these programs and identification information can be read out without setting in the bank register (14), and control becomes simple.
【0015】例えば、外部プログラムとして、イニシャ
ルライズ用のサブルーチンとメイン処理プログラムを記
憶し、識別情報として、正しい辞書ROMか否かを示す
情報A、イニシャライズ用サブルーチンの有無を示す情
報B、メイン処理プログラムの有無を示す情報Cとを記
憶し、本体側のシステムROM(4)のシステムプログ
ラム内で、第3図のフローチャートで示す処理を実行し
ようとする場合、従来は、STEP−1,3,5,7,
9の前で、バンクレジスタ(14)に「10」を設し、更
に、STEP−2,4,6,8の前で、バンクレジスタ
(14)に「00」を設定しなければならなかったが、本実
施例では、これらの設定は全く不要となる。For example, as an external program, a subroutine for initializing and a main processing program are stored, and as identification information, information A indicating whether or not the dictionary ROM is correct, information B indicating presence / absence of a subroutine for initializing, a main processing program. When the processing shown in the flowchart of FIG. 3 is to be executed in the system program of the system ROM (4) on the main body side by storing the information C indicating the presence or absence of , 7,
Set "10" in the bank register (14) in front of 9, and in front of STEP-2, 4, 6, 8
Although "00" had to be set in (14), these settings are completely unnecessary in this embodiment.
【0016】[0016]
【発明の効果】本発明に依れば、メモリカートリッジの
うち、プログラムや種々の識別情報を記憶したメモリエ
リアは、CPUが直接アクセス可能なメモリバンク領域
以外の所定のアドレス空間に割り付けられるので、バン
ク切換を行うことなく読出すことが可能となり、高速な
処理を実現できるようになると共に、システムプログラ
ムを簡素化することができる。According to the present invention, in the memory cartridge, the memory area storing the program and various identification information is allocated to a predetermined address space other than the memory bank area directly accessible by the CPU. Reading can be performed without switching, high-speed processing can be realized, and the system program can be simplified.
【図1】本発明の実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.
【図2】本実施例におけるメモリマップである。FIG. 2 is a memory map in this embodiment.
【図3】システムプログラムの具体例を示すフローチャ
ートである。FIG. 3 is a flowchart showing a specific example of a system program.
(1) CPU (4) システムROM (7)(8)(11)(12) 辞書ROM (9) ROMカード (13) メモリバンク選択回路 (14) バンクレジスタ (15) デコーダ (16) アドレスデコーダ (17) ANDゲート (18) ORゲート (1) CPU (4) System ROM (7) (8) (11) (12) Dictionary ROM (9) ROM card (13) Memory bank selection circuit (14) Bank register (15) Decoder (16) Address decoder ( 17) AND gate (18) OR gate
Claims (1)
器に装着してなるシステムにおいて、前記メモリカート
リッジの第1メモリエリアにメモリカートリッジの性質
を表す識別情報もしくはプログラムを記憶し、第2メモ
リエリアにデータ部分を記憶すると共に、前記電子機器
のアドレス空間の一部に設けられたメモリバンク領域に
前記第2メモリエリアをメモリバンクとして割り付け、
前記第1メモリエリアを前記メモリバンク領域以外の所
定のアドレス空間に割り付けるようにしたことを特徴と
するメモリカートリッジのメモリ割付け方法。1. In a system in which a removable memory cartridge is mounted in an electronic device, identification information or a program representing the property of the memory cartridge is stored in a first memory area of the memory cartridge, and data is stored in a second memory area. Storing the portion and allocating the second memory area as a memory bank in a memory bank area provided in a part of the address space of the electronic device,
A memory allocation method for a memory cartridge, wherein the first memory area is allocated to a predetermined address space other than the memory bank area.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5393093A JPH06314236A (en) | 1993-03-15 | 1993-03-15 | Memory allocating method for memory cartridge |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5393093A JPH06314236A (en) | 1993-03-15 | 1993-03-15 | Memory allocating method for memory cartridge |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62045863A Division JPH061451B2 (en) | 1987-02-27 | 1987-02-27 | Memory allocation device for memory cartridge |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH06314236A true JPH06314236A (en) | 1994-11-08 |
Family
ID=12956457
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5393093A Pending JPH06314236A (en) | 1993-03-15 | 1993-03-15 | Memory allocating method for memory cartridge |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH06314236A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8479689B2 (en) | 2008-07-10 | 2013-07-09 | Heat-Timer Corporation | Optimizing multiple boiler plant systems with mixed condensing and non-condensing boilers |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS61104175A (en) * | 1984-10-26 | 1986-05-22 | Hokkaido Electric Power Co Inc:The | Pressure oil equipment |
-
1993
- 1993-03-15 JP JP5393093A patent/JPH06314236A/en active Pending
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS61104175A (en) * | 1984-10-26 | 1986-05-22 | Hokkaido Electric Power Co Inc:The | Pressure oil equipment |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8479689B2 (en) | 2008-07-10 | 2013-07-09 | Heat-Timer Corporation | Optimizing multiple boiler plant systems with mixed condensing and non-condensing boilers |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5966727A (en) | Combination flash memory and dram memory board interleave-bypass memory access method, and memory access device incorporating both the same | |
| EP0496288B1 (en) | Variable page size per entry translation look-aside buffer | |
| US5280599A (en) | Computer system with memory expansion function and expansion memory setting method | |
| JPS6355119B2 (en) | ||
| US6421765B1 (en) | Method and apparatus for selecting functional space in a low pin count memory device | |
| KR920006615B1 (en) | Method and apparatus having both the direct mapping and bank mapping schemes | |
| US4641277A (en) | System for detecting access to storage | |
| US8914602B2 (en) | Display controller having an embedded non-volatile memory divided into a program code block and a data block and method for updating parameters of the same | |
| US5345314A (en) | Laser beam printing system utilizing a plurality of cartridges | |
| JPH06314236A (en) | Memory allocating method for memory cartridge | |
| JPH061451B2 (en) | Memory allocation device for memory cartridge | |
| JP2540959B2 (en) | Information processing device | |
| US4858109A (en) | Program code fetch from data memory arrangement | |
| JP2597409B2 (en) | Microcomputer | |
| US5991212A (en) | Semi-conductor integrated circuit device having an external memory and a test method therefor | |
| US6430647B1 (en) | Data processing system for use in conjunction with a font card or the like | |
| JPS6329298B2 (en) | ||
| KR930009061B1 (en) | Memory access unit | |
| KR930003440B1 (en) | ROM Addressing Conversion Method and Circuit in Printer | |
| JPS6232832B2 (en) | ||
| JPH01310459A (en) | Memory control circuit | |
| JPH0713860A (en) | Information processing equipment | |
| JPS59184948A (en) | Variable structured microcomputer | |
| JPH05334506A (en) | Ic memory card | |
| US20080091889A1 (en) | Memory control apparatus |