【発明の詳細な説明】〔産業上の利用分野〕本発明は読出し専用メモリ(以下ROMという)のメモ
リ制御方式、特にROMに格納したユーザプログラムに
ミスが発生し場合のメモリ制御方式〔従来の技術〕従来、半導体気構回路などに内蔵されている記憶装置(
ROM)に格納されたユーザプログラムは、第2図に示
すようにプログラムカウンタ214によってアドレス信
号201を発生させROM215をアクセスし、指定さ
れたアドレスからユーザプログラムのコードデータを出
力し、その命令によって内部ゲート群216を制御し目
的の機能動作を行っていた。したがって上記のコードデ
ータにミスが発生した場合にはROMを作り直す必要が
あり、多大な時閉と費用がかかるという欠点がある。[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a memory control method for a read-only memory (hereinafter referred to as ROM), and particularly to a memory control method in the case where a mistake occurs in a user program stored in a ROM. Technology] Traditionally, memory devices (
As shown in FIG. 2, the user program stored in the ROM (ROM) generates an address signal 201 by the program counter 214, accesses the ROM 215, outputs the code data of the user program from the specified address, and executes internal operations according to the command. The gate group 216 was controlled to perform the desired functional operation. Therefore, if a mistake occurs in the above code data, it is necessary to recreate the ROM, which is disadvantageous in that it costs a lot of time and money.
本発明が解決しようとする問題点、換言すれば本発明の
目的は、コードデータの訂正部分を格納し必要に応じて
アクセスする手段を設けるようにして上記の欠点を改善
したメモリ制御方式を提供することにある。The problem to be solved by the present invention, in other words, the purpose of the present invention is to provide a memory control method that improves the above-mentioned drawbacks by providing means for storing the corrected portion of code data and accessing it as necessary. It's about doing.
本発明のメモリ制御方式は、読出し専用メモリと書換え
可能な第一のレジスタとを同時にアドレッシングするプ
ログラムカウンタと、前記プログラムカウンタの出力と
書き換え可能な第二のレジスタの出力とを比較する比較
回路と、前記比較回路の出力信号に従って前記読出し専
用メモリの出力を前記第一のレジスタの出力に切り換え
る切換回路とを有して構成される。The memory control method of the present invention includes a program counter that simultaneously addresses a read-only memory and a rewritable first register, and a comparison circuit that compares the output of the program counter with the output of a rewritable second register. , and a switching circuit that switches the output of the read-only memory to the output of the first register according to the output signal of the comparison circuit.
以下、本発明によるメモリ制御方式について図面を参照
して説明する。Hereinafter, a memory control method according to the present invention will be explained with reference to the drawings.
第1図は本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.
同図においてメモリ制御方式は汎用端子111からアド
レスを格納する第二のレジスタ115にアドレスを書き
込んだり、データを格納する第一のレジスタ116にデ
ータを書き込む、118はプログラムカウンタ、117
は第二のレジスタ115の出力とプログラムカウンタ1
18の出力を比較する比較器、119はユーザプログラ
ムを格納するROM、114はROM119の出力と第
一のレジスタ116の出力とを比較器117の出力によ
って切り換える切換回路、101は比較器117の出力
でありプログラムカウンタ118の出力と第二のレジス
タの出力とが一致したときに変化する信号線、120は
ゲート群である。In the figure, the memory control method writes an address from a general-purpose terminal 111 to a second register 115 that stores an address, writes data to a first register 116 that stores data, 118 is a program counter, and 117
is the output of the second register 115 and the program counter 1
119 is a ROM that stores a user program; 114 is a switching circuit that switches between the output of ROM 119 and the output of first register 116 according to the output of comparator 117; 101 is the output of comparator 117; A signal line 120, which changes when the output of the program counter 118 and the output of the second register match, is a gate group.
今、ユーザプログラムを格納したROM119のAB番
地のコードデータに不具合が発見された場合、まず汎用
端子111から第二のレジスタ115にABをセットし
、次に正しいコードデータを第一のレジスタ116にセ
ットし動作を開始する。このとき、プログラムカウンタ
118の出力つまりROMアドレスは順次変化し、プロ
グラムカウンタ118の出力でアドレッシングされたコ
ードデータをROM119から出力し切り換え回路11
4によってゲート群120に入力する。If a defect is found in the code data at address AB in the ROM 119 that stores the user program, first set AB in the second register 115 from the general-purpose terminal 111, and then set the correct code data in the first register 116. Set and start operation. At this time, the output of the program counter 118, that is, the ROM address, changes sequentially, and the code data addressed by the output of the program counter 118 is output from the ROM 119, and the switching circuit 11
4 to the gate group 120.
プログラムカウンタ118の出力がAB番地になると第
二のレジスタ115の出力とプログラムカウンタ118
の出力とが一致するので、比較器117の出力端子10
1が変化して切り換え回路114によって第一のレジス
タ116の出力つまり正しいコードデータをゲート群1
20に入力することができる。When the output of the program counter 118 reaches address AB, the output of the second register 115 and the program counter 118
Since the output of the comparator 117 matches the output of the
1 changes and the switching circuit 114 transfers the output of the first register 116, that is, the correct code data, to the gate group 1.
20 can be entered.
上記の実施例では単一アドレスについて説明したが、第
一のレジスタおよび第二のレジスタを複数個準備するこ
とによって複数アドレスについてもコードデータを変更
できる。またレジスタのかわりにランダムアクセスメモ
リ(RAM)を用いることも可能である。In the above embodiment, a single address has been described, but by preparing a plurality of first registers and second registers, code data can be changed for a plurality of addresses as well. It is also possible to use random access memory (RAM) instead of registers.
以上説明したように本発明のメモリ制御方式によれば、
コードデータミスによる再試作をする必要がなく、費用
を軽減し時間を短縮する効果がある。As explained above, according to the memory control method of the present invention,
There is no need for re-prototyping due to code data errors, which has the effect of reducing costs and time.
第1図は本発明の一実施例のメモリ制御方式のブロック
図、第2図は従来のメモリ制御方式の例を示すブロック
図である。114・・・切換え回路、115,116・・・レジス
タ、117・・・比較器、118・・・プログラムカウ
ンタ、119・・・ROM。FIG. 1 is a block diagram of a memory control method according to an embodiment of the present invention, and FIG. 2 is a block diagram showing an example of a conventional memory control method. 114...Switching circuit, 115, 116...Register, 117...Comparator, 118...Program counter, 119...ROM.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62259028AJPH01100800A (en) | 1987-10-13 | 1987-10-13 | Memory control system |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62259028AJPH01100800A (en) | 1987-10-13 | 1987-10-13 | Memory control system |
| Publication Number | Publication Date |
|---|---|
| JPH01100800Atrue JPH01100800A (en) | 1989-04-19 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62259028APendingJPH01100800A (en) | 1987-10-13 | 1987-10-13 | Memory control system |
| Country | Link |
|---|---|
| JP (1) | JPH01100800A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0621174U (en)* | 1992-03-27 | 1994-03-18 | 中島通信機工業株式会社 | Coaxial cable connector |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5613595A (en)* | 1979-07-13 | 1981-02-09 | Fuji Electric Co Ltd | Data selector |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5613595A (en)* | 1979-07-13 | 1981-02-09 | Fuji Electric Co Ltd | Data selector |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0621174U (en)* | 1992-03-27 | 1994-03-18 | 中島通信機工業株式会社 | Coaxial cable connector |
| Publication | Publication Date | Title |
|---|---|---|
| US5051897A (en) | Single-chip microcomputer with memory patching capability | |
| JPH0130161B2 (en) | ||
| US6530005B2 (en) | Circuit arrangement and method for creating and retrieving patch data from memory | |
| US5048019A (en) | Method of testing a read-only memory and device for performing the method | |
| JPH01100800A (en) | Memory control system | |
| JPS6041133A (en) | Correcting method of control program | |
| JPH06314190A (en) | Electronic device | |
| JPH0581145A (en) | Data writing circuit to EEPROM | |
| JPS58143500A (en) | Storage device available for interleaving | |
| JPH023197A (en) | Dual port memory | |
| JPH0398119A (en) | Storage device | |
| JPS63156231A (en) | Changing method for instruction in read-only memory | |
| JPH01134798A (en) | Memory controller | |
| JPH0423147A (en) | Bank switching method | |
| JPH03266141A (en) | Microprocessor system | |
| JPS59116862A (en) | Microcomputer | |
| JPS6346858B2 (en) | ||
| JPH05334099A (en) | Write circuit for state setting register | |
| JPH0713818B2 (en) | Microprocessor | |
| JPH0226252B2 (en) | ||
| JPS62219126A (en) | Program control method | |
| JPH02280231A (en) | Microprogram controller | |
| JPH06324952A (en) | Patrol control circuit for memory device | |
| JPS60169906A (en) | programmable controller | |
| JPH02136921A (en) | Register access method |