JPH01169629A - Rom patching system - Google Patents

Rom patching system

Info

Publication number
JPH01169629A
JPH01169629A JP62328827A JP32882787A JPH01169629A JP H01169629 A JPH01169629 A JP H01169629A JP 62328827 A JP62328827 A JP 62328827A JP 32882787 A JP32882787 A JP 32882787A JP H01169629 A JPH01169629 A JP H01169629A
Authority
JP
Japan
Prior art keywords
rom
address
program
ram
changed
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
JP62328827A
Other languages
Japanese (ja)
Inventor
Kiyozumi Tanigawa
清純 谷川
Nobumasa Oya
大屋 信正
Hiroshi Takizawa
滝沢 洋
Kenji Yamana
山名 健二
Ryosuke Hirose
広瀬 良介
Takahiro Yamamoto
山本 孝宏
Atsushi Suzuki
敦 鈴木
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 JP62328827A priority Critical patent/JPH01169629A/en
Publication of JPH01169629A publication Critical patent/JPH01169629A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

PURPOSE:To realize the change of a program without stopping a system and without preparing a new ROM by executing the program changed in a RAM while continuing the access action of the ROM due to the ROM access source. CONSTITUTION:When a program after the change to cope with the continuous condition can be prepared, the program after the change is stored into a RAM 13. The storing of the change program and the setting action of an address are executed during the action of the system, and in the access action from a ROM access source 10 after the setting, the address supplied to the address bus is coincident with the access set at a setting address detecting means 11, and then, a coincident output is given to a switching control means 14. The switching control means 14 executes the switching control, the action of a ROM 12 is prohibited by a control signal 141, the RAM 13 is operated by a control signal 142, and the program after the change in the RAM 13 is executed. Thus, when the program is to be changed, the program by the change contents can be executed without preparing the new ROM and without stopping the system.

Description

【発明の詳細な説明】 [概要] プログラムをROMに格納した情報処理システムにおけ
るROMの内容を一部変更するためのROMパッチ方式
に関し、 ROM中の一部のプログラム(データ)を変更したい時
に新たなROMを作成することなく、しかも変更内容が
確定したら直ちにシステムを停止することなく変更内容
によるプログラムの実行を可能にする情報処理システム
におけるROMパッチ方式を提供することを目的とし、 プログラムを格納したROMがROMアクセス源とバス
により接続した情報処理システムにおいて、該R,OM
内のプログラムを変更したいアドレスが設定され、バス
に設定アドレスが発生したことを検出する設定アドレス
検出手段と、前記バスに接続され、変更後のプログラム
を格納したRAMと、設定アドレス検出手段の検出出力
の発生に応じてROMに禁止信号を供給し、RAMに制
御信号を供給する切替制御手段とを設け、ROMアクセ
ス源によるROMのアクセス動作を継続しながらRAM
内の変更したプログラムを実行するよう構成する。
[Detailed Description of the Invention] [Summary] Regarding the ROM patch method for partially changing the contents of the ROM in an information processing system in which programs are stored in the ROM, it is necessary to use a new The purpose of this invention is to provide a ROM patching method for an information processing system that enables the execution of a program based on the changed contents without creating a new ROM and without stopping the system immediately after the changed contents are determined. In an information processing system in which a ROM is connected to a ROM access source by a bus, the R, OM
a set address detection means for detecting that an address at which a program in the program is to be changed is set and a set address is generated on the bus; a RAM connected to the bus that stores the changed program; and a set address detection means for detecting the set address. A switching control means is provided for supplying a prohibition signal to the ROM and a control signal to the RAM in response to the generation of the output, and a switching control means for supplying a prohibition signal to the ROM and a control signal to the RAM.
Configure to run the modified program in .

「産業上の利用分野] 本発明はプログラムをROMに格納した情報処理システ
ムにおけるROMの内容を一部変更するためのROMパ
ッチ方式に関する。
"Field of Industrial Application" The present invention relates to a ROM patch method for partially changing the contents of a ROM in an information processing system in which a program is stored in a ROM.

なお、本発明の名称の中の「パッチ(Patch) J
は、つぎ当て(衣類)、当て板、等と同様の意味で用い
る。
In addition, "Patch (Patch) J" in the name of the present invention
is used in the same sense as patch (clothing), patch plate, etc.

情報処理システムの技術において、O8(オペレーティ
ングシステム)等の制御プログラムや、アプリケーショ
ンプログラムの各種のプログラムは磁気ディスク等の補
助記憶装置に格納してシステムの立ち上げ時または必要
とする時にRAM(ランダムアクセスメモリ)で構成す
る主記憶装置にロートする方法が用いられるが、端末で
使用する小規模の情報処理システムの場合には設置場所
の環境に影響されず、立ち上げ時の処理の簡便さ(電源
オンで直くに動作する)等の関係でソフトウェア(O8
等の制御プログラムとアプリケーションプログラムを含
む)をROM (リードオンリイメモリ)に格納する方
法を用いる場合がある。
In information processing system technology, control programs such as O8 (operating system) and various application programs are stored in auxiliary storage devices such as magnetic disks and transferred to RAM (random access) when the system is started up or when needed. However, in the case of small-scale information processing systems used in terminals, it is not affected by the environment of the installation location, and it is easy to process at startup (power supply Software (O8 works immediately when turned on) etc.
(including control programs and application programs) may be stored in a ROM (read-only memory).

そのようなROMを主記憶(小容量の作業用RAMは当
然備える)として使用する情報処理システムを初めて設
置して試験した時または設置後の動作でエラーが発生し
た時に、プログラム(テーブルを含む)の一部を変更し
たい場合があるが、従来は情報処理システムの動作を停
止して、別の場所で作成した新しい内容のROMを元の
ROMと差し換えることにより対処していたが、そのた
めに多大な手間と時間をとられ、より効率的な方法が望
まれていた。
When you first install and test an information processing system that uses such ROM as main memory (of course a small working RAM is included), or when an error occurs during operation after installation, the program (including tables) There are times when you want to change a part of the information processing system, but traditionally this was handled by stopping the operation of the information processing system and replacing the original ROM with a ROM with new contents created elsewhere. It took a lot of time and effort, and a more efficient method was desired.

[従来の技術] 制御プログラム(O8)やアプリケーションプログラム
を格納したROMを備えた情報処理システムの例を挙げ
ると、中央計算機から離れた位置に設けられた端末装置
のシステムがあり、そのような端末装置は中央計算機と
通信路により接続され、端末周辺の情報を入力(または
収集)して中央計算機へ伝送し、中央計算機から送られ
たデータを出力する等の処理をプログラムにより実行す
る。
[Prior Art] An example of an information processing system equipped with a ROM that stores a control program (O8) and an application program is a terminal device system that is located away from a central computer. The device is connected to the central computer through a communication path, and executes processes such as inputting (or collecting) information around the terminal, transmitting it to the central computer, and outputting data sent from the central computer, using a program.

そのような端末装置として使用する情報処理システムを
設置した時に現場で動作試験を行い、予定したとおり動
作するか調べる。また、エラー発生時に現場で状況を観
察して原因を調べることは通常行われる。
When an information processing system used as such a terminal device is installed, an on-site operation test is conducted to check whether it operates as planned. Furthermore, when an error occurs, it is common practice to observe the situation on-site and investigate the cause.

そして、技術者による試験、調査の結果ROMのプログ
ラムを変更すれば良好に動作すると判断される場合や、
ROMのテーブルの数値を変更すれば対処することがで
きると推測できる場合がある。
As a result of tests and investigations by engineers, it may be determined that the ROM will work better if the program is changed, or
In some cases, it may be possible to assume that the problem can be solved by changing the numerical values in the ROM table.

このような場合を含めて従来はROMのデータを1ハイ
ドでも変更するにはROMを新規に作成して古いROM
と入れ換える必要がある。
Conventionally, in cases like this, to change even one bit of ROM data, create a new ROM and replace the old ROM.
It is necessary to replace it with .

すなわち、設置現場では対処できないので、ROMの製
造場に戻り、変更したプログラムによりROMライター
等を使ってROMを作成し、状況を再現するシステムを
組み立てた上で動作試験をして、良好に動作した時に元
の古いROMを新規なROMと交換するという手順を踏
んで行っていた。
In other words, since this cannot be done at the installation site, we go back to the ROM manufacturing site, create a ROM using a ROM writer, etc. with the modified program, assemble a system that reproduces the situation, perform an operation test, and confirm that it works well. At that time, I followed the procedure of replacing the original old ROM with a new ROM.

[発明が解決しようとする問題点コ 」二記した方法によれば、ROMの内容を一部変更する
にはROMを新たに作成する必要があり、そのための手
間と時間がかかり、その間サービスを停止せざるをえな
い場合もある(プログラムにハゲがある時)。また新規
なROMの完成までザービスを停止しない場合でもRO
Mを新規なものと交換する時にはシステムを停止する必
要がある等の問題があった。
According to the method described in Section 2 of ``Problems to be Solved by the Invention,'' it is necessary to create a new ROM in order to partially change the contents of the ROM, which takes time and effort, and the service is interrupted during that time. There are times when you have to stop (when there is a bald spot in the program). Also, even if the service is not stopped until the new ROM is completed, RO
There were problems such as the need to stop the system when replacing M with a new one.

本発明は、ROM中の一部のプログラム(データ)を変
更したい時に新たなROMを作成することなく、しかも
変更内容か確定したら直ちにシステムを停止することな
く変更内容によるプログラムの実行を可能にする情報処
理システムにおりるROMパッチ方弐を提供することを
目的とする。
The present invention makes it possible to execute a program according to the changed contents without having to create a new ROM when a part of the program (data) in the ROM is desired to be changed, and without stopping the system immediately after the changed contents are determined. The purpose of this paper is to provide a ROM patch method for information processing systems.

[問題点を解決するための手段] 本発明の原理的構成を第1図に示す。[Means for solving problems] The basic configuration of the present invention is shown in FIG.

第1図において、10はROMアクセス源、11ば設定
アドレス検出手段、12ばROM、13はRAM、14
は切替制御手段、101はアドレスバス、102はデー
タバスを表す。
In FIG. 1, 10 is a ROM access source, 11 is a set address detection means, 12 is a ROM, 13 is a RAM, and 14 is a
101 represents a switching control means, 101 represents an address bus, and 102 represents a data bus.

RAM13にはROM12の中の変更したいプログラム
に対する変更後のプログラムが格納され、その変更した
いプログラムが格納されているROM12のアドレスが
設定アドレス検出手段11に設定される。
The RAM 13 stores a program after changing the program to be changed in the ROM 12, and the address of the ROM 12 in which the program to be changed is stored is set in the set address detection means 11.

本発明はROM12の中の変更したいプログラムのアド
レスを設定アドレス検出手段11に設定し、ROMアク
セス源10による読み出し動作において、アドレスバス
に供給されたアドレスを設定アドレス検出手段11によ
り判別して、設定アドレスを検出すると切替制御手段1
4を駆動してROM12からの読み出し動作を禁止して
RAM13から変更後のプログラムを読め出すものであ
る。
In the present invention, the address of the program to be changed in the ROM 12 is set in the setting address detection means 11, and in the read operation by the ROM access source 10, the address supplied to the address bus is determined by the setting address detection means 11, and the setting address is set. When an address is detected, switching control means 1
4 to prohibit the reading operation from the ROM 12 and read the changed program from the RAM 13.

[作用] ROMアクアクセス動作0がアドレスバス101にアド
レスを供給してプログラムの読み出しを実行すると、通
常はROM12の対応するアドレスに格納されたプログ
ラム(テーブルも含む)データが読み出されてデータバ
ス102上に出力され、このデータバスの出力をROM
アクセス源10で受は取り処理が行われる。
[Function] When the ROM access operation 0 supplies an address to the address bus 101 to read a program, the program (including tables) data stored at the corresponding address in the ROM 12 is normally read out and transferred to the data bus. 102, and the output of this data bus is stored in the ROM.
The access source 10 performs receiving and receiving processing.

ROM12を用いて情報処理を実行している時に、エラ
ーが発生したり、その時々の状況に適した制御を行いた
い等の必要が生じて、それに対処する変更後のプログラ
ムが作成できた場合は、RAM13に変更後のプログラ
ムを格納する。
When executing information processing using the ROM 12, if an error occurs or a need arises to perform control appropriate to the situation at that time, and you are able to create a modified program to deal with it, , stores the modified program in the RAM 13.

これと同時に設定アドレス検出手段11に変更すべきプ
ログラムが格納されているROM12のアドレスを設定
する。
At the same time, the address of the ROM 12 in which the program to be changed is stored is set in the setting address detection means 11.

この変更プログラムの格納とアドレスの設定動作はシス
テムの動作中に行い、設定後にROMアクセス#i10
からのアクセス動作において、アドレスバスに供給され
たアドレスが設定アドレス検出手段11に設定したアド
レスと一致すると、−致出力が切替制御手段14に与え
られる。
This change program storage and address setting operation is performed while the system is operating, and after the setting, ROM access #i10
In the access operation from , when the address supplied to the address bus matches the address set in the set address detection means 11 , a -match output is given to the switching control means 14 .

切替制御手段14ばこれにより、切替制御を行い、制御
信号141により、ROM12の動作を禁止するととも
に、制御信号142により制御信号を発生してRAM1
3を動作させ、RAM13内の変更後のプログラムを実
行する。
The switching control means 14 performs switching control, prohibits the operation of the ROM 12 using the control signal 141, and generates a control signal using the control signal 142 to control the operation of the RAM 1.
3 and execute the modified program in the RAM 13.

[実施例コ 本発明の実施例構成の1.2を第2図および第3図に示
す。
[Embodiment 1.2 of the embodiment configuration of the present invention is shown in FIGS. 2 and 3.

初めに実施例構成の1を第2図を用いて説明する。First, a first example configuration will be explained using FIG. 2.

第2図の20は中央処理装置(CPUで表す)、21は
コンソール、22は設定アドレスレジスフ、23は比較
回路、24はROM、25はRAMを表す。
20 in FIG. 2 is a central processing unit (represented by CPU), 21 is a console, 22 is a setting address register, 23 is a comparison circuit, 24 is a ROM, and 25 is a RAM.

第2図に示す情報処理システムは例えば、各種の装置(
計測装置、制御装置等)の出力状態を表すデータを収集
したり、それらの装置へ制御デー夕を出力したりする機
能を持つ端末装置(図示しない入出力装置を備える)と
して使用され、通信線を介して中央の計算機システムと
接続することができる。
The information processing system shown in FIG. 2 includes, for example, various devices (
It is used as a terminal device (equipped with an input/output device (not shown)) that has the function of collecting data representing the output status of measuring devices, control devices, etc.) and outputting control data to those devices. It can be connected to a central computer system via.

この第2図のシステムの動作を説明すると、ROM24
に制御プログラムおよびアプリケーションプログラムが
格納され、CPU20からのアクセスによりアドレスが
アドレスバス202に供給されると、対応するアドレス
からプログラム等がデータバス201に読み出されてプ
ログラムを実行する。
To explain the operation of the system shown in FIG. 2, the ROM 24
Control programs and application programs are stored in the CPU 20, and when an address is supplied to the address bus 202 by access from the CPU 20, the program and the like are read from the corresponding address onto the data bus 201 and executed.

ROM24の内容を一部変更したい場合には、コンソー
ル21から設定アドレスレジスタ22を指定してその変
更したいプログラム(テーブル)が格納されたアドレス
(図の例では“X”)を、設定アドレスレジスタ22に
設定する。また、コンソール21から変更した新しいプ
ログラム(テーブル)の内容をRAM25内のROM2
4の格納アドレスXと同しアドレスXに格納する。
If you want to change some of the contents of the ROM 24, specify the setting address register 22 from the console 21 and input the address ("X" in the example shown) where the program (table) you want to change to the setting address register 22. Set to . Also, the contents of the new program (table) changed from the console 21 are stored in the ROM 2 in the RAM 25.
4 is stored at the same address X.

これにより、CPU20によるROM24のアクセスが
順次進み、比較回路23においてアドレスバス202上
のアドレス< X、 > と設定アドレスレジスフ22
のアドレス(x)とが−・致したことを検出すると、出
方231を発生ずる。この出方はそのままROM24の
禁止信号(インヒビソ1−:INHで表示)入力として
供給され、そのサイクルにおける動作を禁止する。なお
、INH信号はチップセレクト信号(口で表示)であっ
てもよい。
As a result, the CPU 20 sequentially accesses the ROM 24, and the comparison circuit 23 compares the address <X, > on the address bus 202 with the set address register 22.
When it is detected that the address (x) of ``-'' matches, the output 231 is generated. This output is directly supplied to the ROM 24 as an inhibition signal (inhibitor 1-: indicated by INH) input, inhibiting the operation in that cycle. Note that the INH signal may be a chip select signal (indicated by the mouth).

他方、比較回路23がらの一致出カ231は、ノア)回
路26で反転されてRAM25に禁止解除信号(I N
 Hで表す)として入力し、このRAM25をCPU2
0がらのアクセスに対し動作するよう駆動する。
On the other hand, the coincidence output 231 from the comparator circuit 23 is inverted by the NOR circuit 26 and sent to the RAM 25 as an inhibition release signal (IN
(represented by H), and this RAM25 is input as
Drive to operate for access from 0.

この時RΔM25はアドレスバス202からのアドレス
(X)を入力して読み出し駆動され、予めそのアドレス
に格納されていた変更後のデータを読め出してデータバ
ス201に出力する。
At this time, the RΔM 25 is driven to read by inputting the address (X) from the address bus 202, reads out the changed data previously stored at that address, and outputs it to the data bus 201.

CPU20からの次のアドレスが設定アドレスレジスタ
に格納されてない場合は、そのアドレスはROM24に
供給されて、対応するデータを読み出してデータバス2
01に出力される。
If the next address from the CPU 20 is not stored in the set address register, the address is supplied to the ROM 24, the corresponding data is read out, and the address is transferred to the data bus 2.
01.

このようにして、ROM24の一部のプログラム等のデ
ータを別に設けたRAM25により差し換えてパッチが
行われる。
In this way, patching is performed by replacing some data such as programs in the ROM 24 with the separately provided RAM 25.

設定アドレスレジスタ22には複数個のアドレスを設定
し、各設定アドレス毎にRAM25内の同じアドレスに
新しいデータを書き込んでおくことにより複数個のアド
レスにおりる書き換えを行うことができる。
By setting a plurality of addresses in the set address register 22 and writing new data to the same address in the RAM 25 for each set address, it is possible to perform rewriting at a plurality of addresses.

また、RAM25は、電源がオフになってもその内容を
保持する必要がある場合、例えば不揮発型のRAMとし
て使用されるEEPROM (Erectricall
y Erasable and Programmab
le Read OnlyMemory)を用いると確
実に内容を保持することができ、以下の他の実施例構成
でも同様である。
In addition, if the RAM 25 needs to retain its contents even when the power is turned off, the RAM 25 may be an EEPROM (Electrical
y Erasable and Programmable
The content can be reliably retained by using ``Read Only Memory'', and the same applies to the configurations of other embodiments described below.

この実施例構成の場合、ROM24とRAM25のアド
レスを1対1に対応させているので、ROM24内の変
更の可能性があるアドレス空間と同一ザイズのRAM2
5を用意する必要がある。
In the case of this embodiment configuration, since the addresses of the ROM 24 and the RAM 25 are in a one-to-one correspondence, the RAM 2 has the same size as the address space that may be changed in the ROM 24.
You need to prepare 5.

そして、ROM内のテーブルを変更する場合のように、
変更個所が限定(元のデータと同一の長さ)されている
場合は、簡単に変更を実行することができるが、プログ
ラム変更の場合には用意すべきRAMの容量が限定でき
ない(無駄なアドレス空間が生じる)ので不利である。
Then, like when changing a table in ROM,
If the changed part is limited (same length as the original data), the change can be easily executed, but when changing the program, the amount of RAM that should be prepared cannot be limited (useless addresses This is disadvantageous because it creates space.

第3図に本発明の実施例構成の2を示す。FIG. 3 shows a second embodiment of the configuration of the present invention.

第3図の30はCPU、31はコンソール、32は設定
命令レジスタ、33は設定アドレスレジスタ、34は比
較回路、35はROM、36はRAMを表す。
In FIG. 3, 30 is a CPU, 31 is a console, 32 is a setting command register, 33 is a setting address register, 34 is a comparison circuit, 35 is a ROM, and 36 is a RAM.

この第3図の構成の動作を説明すると、まず準備作業と
して、 ■コンソールより変更内容のプログラムをRAM36の
先頭アドレス(図の例では××)から書き込み、最後に
ROM35の復帰アドレス(△△十m=但しmは変更し
たハイ1−またはワード数)への、J U M P命令
を書き込む。
To explain the operation of the configuration shown in Fig. 3, first, as a preparatory work, ① write the changed program from the console starting from the top address of RAM 36 (XX in the example shown), and finally the return address of ROM 35 (△△10). Write a JUMP command to m=where m is the changed high 1- or the number of words).

■R八へ36の先頭(××)へのJUMP命令を設定命
令レジスタ32に書き込む。
(2) Write a JUMP command to the beginning (XX) of 36 to R8 into the setting command register 32;

■ROM35の変更ずべきプログラム(テーブル)の先
頭のアドレス(へへ)をコンソール31から設定アドレ
スレジスタ33に設定する。
(2) Set the start address (hehe) of the program (table) to be changed in the ROM 35 in the setting address register 33 from the console 31;

このような準備を行った後の動作を説明すると、CPU
30がプログラムをROM35から取り出ずためにアド
レスバス302にアドレスを出力して、順次プログラム
を読み出して実行を行う。
To explain the operation after making such preparations, the CPU
30 outputs an address to the address bus 302 in order to avoid taking out the program from the ROM 35, and sequentially reads and executes the program.

アドレスバス上のアドレスは比較回路34において設定
アドレスレジスタ33の設定アドレスと比較され、両7
1−レス(△△)が一致するとその一致出力によりRO
M35を禁止(反転CSで表示)すると同時に設定命令
レジスタ32の出力を有効にする信号○E (Outp
ut Enable)を供給する。
The address on the address bus is compared with the setting address of the setting address register 33 in the comparison circuit 34, and both 7
When 1-res (△△) matches, the match output causes RO
Signal ○E (Outp
ut Enable).

これにより、設定命令レジスタ32からデータバス30
1に上記のJUMP命令が出力され、CPU30ばこれ
を読み取って実行する。
This causes the data bus 30 to be transferred from the setting command register 32 to the
1, the above-mentioned JUMP instruction is output, and the CPU 30 reads and executes it.

すると、CPU30からはJUMP先のアドレス(RA
M36の先頭アドレス××)をアドレスバス302に出
力するので、RAM36はその先頭アドレスのプログラ
ム(変更プログラム)を読み出してデータバス301に
出力する。
Then, the CPU 30 sends the JUMP destination address (RA
Since the start address XX) of M36 is output to the address bus 302, the RAM 36 reads out the program (change program) at the start address and outputs it to the data bus 301.

この後、CPU30は順次RAM36のアドレスを指定
してアクセスし、RAM36からJUMP命令を読み出
すと、その命令に含まれたアドレス(ROM35への復
帰番地△へ十m)にジャンプして、以後はROM35の
アドレスに戻って処理を進める。
After this, the CPU 30 sequentially specifies and accesses the addresses of the RAM 36, reads the JUMP instruction from the RAM 36, jumps to the address included in that instruction (10 meters to the return address △ to the ROM 35), and thereafter uses the ROM 36 Return to the address and proceed with the process.

本実施例構成の2の場合、アドレス空間はROM35と
RAM36とは異なるよう割り当てを行うことにより、
一方が動作中は他方が動作することはない。
In the case of configuration 2 of this embodiment, by assigning the address space to be different for the ROM 35 and the RAM 36,
While one is operating, the other will not.

この第3図の実施例構成の2の構成は、第2図の構成に
比べると、変更したプログラムが格納されるRAM内の
アドレスを、ROMの変更前のプログラムのアドレスと
関係なく任意に設定することができる点、および変更前
と変更後のプログラムの長さ(ハイI・数またはワード
数)が変化することが自由にできる点に特徴がある。
Compared to the configuration shown in FIG. 2, the configuration 2 of the embodiment configuration shown in FIG. The feature is that the program length (high I number or number of words) before and after the change can be freely changed.

第3図の実施例構成の2の変形構成として、次のような
構成がある。
As a second modified configuration of the embodiment configuration shown in FIG. 3, there is the following configuration.

命令やテーブルの変更量が1アドレス単位(1ハイ1−
11ワードなど)の場合に限られるが、この場合は第3
図に示されたRAM36を不使用とし、設定命令レジス
タ32中に変更後の命令または変更後のテーブルデータ
そのものを書き込んでおく (コンソールから)。こう
すると、変更対象のアドレスが比較回路34により検出
されると、ROM35は禁止され、設定命令レジスタ3
2からデータバス301上に変更後の命令またはテーブ
ルデータが出力され、CPU30はその命令またはデー
タを受けとって実行する。
The amount of changes in instructions and tables is in units of one address (1 high, 1 -
11 words, etc.), but in this case, the third
The RAM 36 shown in the figure is made unused, and the changed instruction or the changed table data itself is written into the setting instruction register 32 (from the console). In this way, when the address to be changed is detected by the comparison circuit 34, the ROM 35 is inhibited and the setting instruction register 3
2 outputs the changed instruction or table data onto the data bus 301, and the CPU 30 receives and executes the instruction or data.

次に、第4図に示す本発明の具体的構成例について説明
する。
Next, a specific configuration example of the present invention shown in FIG. 4 will be described.

第4図において40はCPU、41ははコンソール、4
2は設定アドレスレジスタ、43は比較回路、44はR
OM、45はRAM、401は制御卸線、402はデー
タバス、403はAO〜Anのアドレス線からなるアド
レスバスを表す。
In Fig. 4, 40 is the CPU, 41 is the console, and 4 is the console.
2 is a setting address register, 43 is a comparison circuit, 44 is R
OM, 45 is a RAM, 401 is a control line, 402 is a data bus, and 403 is an address bus consisting of address lines AO to An.

なお、アドレスバスの最上位ビットAOはメモリ選択指
示に用いられ、“′1°′の時ROM44を指示し、“
′Oパの時RAM45を指示する。
Note that the most significant bit AO of the address bus is used to indicate memory selection, and indicates the ROM 44 at "'1°";
' Indicates RAM 45 when OP.

この第4図の構成は第2図の示す実施例構成の1と同様
の原理で動作を行い、初めにコンソール41から設定ア
ドレスレジスタ42を指定し、ROM44内の変更すべ
きプログラムのアドレスAO〜An(AOは′1′′)
の各ヒントを入力すると、制御線401の1つ(■・0
WR)が駆動されてアドレスデータが設定アトレスレジ
スフ42に設定される。
The configuration shown in FIG. 4 operates on the same principle as Embodiment 1 shown in FIG. An (AO is '1'')
When you enter each hint, one of the control lines 401 (■・0
WR) is driven and address data is set in the setting address register 42.

また、RAM4−5には、コンソール41からAOが“
0゛で他のAl〜AnがROM44の変更前のプログラ
ムのアドレスと同一のアドレスを指定して、新しいプロ
グラムの内容を書き込む。
Also, in RAM4-5, AO from the console 41 “
At 0'', the other Al to An specify the same address as the address of the program before the change in the ROM 44, and write the contents of the new program.

CPU40がアドレスバス403にアドレスを出力して
ROM44のプログラムを読み出す動作を行っている時
設定アドレスレジスタ42のアドレスとアドレスバス4
03のアドレスがヒツト毎にEOR回路431に人力し
て各ヒント毎の不一致を検出する。そして全EOR回路
の出力をNAND回路432に入力すると、NAND回
路432の出力は結局、両アトルスが一致すると“0゛
出力が発生し、不一致の場合は” 1 ”出力が発生す
る。
When the CPU 40 outputs an address to the address bus 403 and reads out a program from the ROM 44, the address of the setting address register 42 and the address bus 4
Address 03 is manually input to the EOR circuit 431 for each hit to detect inconsistency for each hint. Then, when the outputs of all the EOR circuits are input to the NAND circuit 432, the output of the NAND circuit 432 will eventually generate a "0" output when both atlases match, and a "1" output when they do not match.

その出力をアドレスバスのAOとNAND回路441で
アンドの反転をとると、A O−” 1 ”(ROM4
4を選択)かつ両アドレスが不一致の時だけ0”出力が
発生し、σ西信号が発生せず、ROM44の読み出しが
許可される。AO=“0” (RAM45を選択)また
は両アドレスが一致の時は、1”出力(C3信号)が発
生し、ROM 4.4の読み出しが禁止される。
When the output is ANDed with AO of the address bus and NAND circuit 441, AO-"1" (ROM4
4 is selected) and both addresses do not match, a 0" output is generated, the σ West signal is not generated, and reading of ROM44 is permitted.AO="0" (RAM45 is selected) or both addresses match. At this time, a 1'' output (C3 signal) is generated and reading of ROM 4.4 is prohibited.

他方、NAND回路432の出力はAND回路451に
供給され、アドレスバスのAOと共に入力され、結局ア
ドレスバスのAO−“’O”(RAM4.5を選択)の
場合、AND4.51の出力である面信号が0゛となっ
てRAM45が駆動される。AO−“1″ (ROM4
4を選択)かつ両アドレスが不一致の時は、“′1パ出
力が発生し、RAM45は駆動されない。AO−” 1
″ (ROM44を選択)かつ両アドレスが一致の時は
、” o ”出力が発生し、RAM45が駆動される。
On the other hand, the output of the NAND circuit 432 is supplied to the AND circuit 451 and is input together with the AO of the address bus, and in the case of AO of the address bus - "'O" (RAM4.5 is selected), it is the output of AND4.51. The surface signal becomes 0' and the RAM 45 is driven. AO-“1” (ROM4
4) and the two addresses do not match, "'1 output is generated and the RAM 45 is not driven.AO-" 1
'' (ROM 44 is selected) and when both addresses match, an "o" output is generated and the RAM 45 is driven.

これにより、両アドレスが一致した場合、ROM44の
対応アドレスA1〜nの内容は読み出されないで、RA
M45の同しアドレスA1〜Anの内容が読み出される
As a result, when both addresses match, the contents of the corresponding addresses A1 to An in the ROM 44 are not read out, and the RA
The contents of the same addresses A1 to An of M45 are read.

本発明の特徴を有効に利用した3つの適用例を以下の■
〜■に説明する。
Three application examples that effectively utilize the features of the present invention are shown below.
~■ will be explained.

■、情報処理システムのROM内に格納されたプログラ
ムのハゲを検出した場合: ROMを新規に作成しないで、変更内容が確定した時点
でRAMに格納し、ROMを入れ換えることなく直くに
対応できる。この場合、システムの設置場所や、使用条
件(ユーザ毎に異なる時)に応じたプログラム、テーブ
ルの変更を行うことができる。
(2) When a bald program stored in the ROM of an information processing system is detected: Instead of creating a new ROM, the changes are stored in the RAM as soon as they are finalized, and the problem can be dealt with immediately without replacing the ROM. In this case, programs and tables can be changed depending on the installation location of the system and usage conditions (which differ for each user).

■、情報処理システムのROMのハゲが発見できない時
に、システムの設置場所において動作条件を種々変えて
(例えば、収集データの転送速度を変える)動作させる
等の、テーブルを次々に変更する場合や、別の動作プロ
グラムを考えて試しに動作させて調査する場合: この場合、従来は全テストケース分のROMを作成した
後、システムを停止してROMの交換を行う必要があっ
たが、本発明を適用することにより設置場所で新しい調
査方法が必要になってもその場で次々に対処できる。
■When the bald ROM of the information processing system cannot be found, when the table is changed one after another, such as when the system is operated under various operating conditions (for example, changing the transfer speed of collected data), When investigating a different operating program by running it on a trial basis: In this case, conventionally it was necessary to create ROMs for all test cases, then stop the system and replace the ROMs. By applying this, even if a new investigation method is required at the installation site, it can be dealt with one after another on the spot.

■、具体的な適用例として、ROMに制御プログラムお
よびアプリケーションプログラムを格納した情報処理シ
ステムを、データを収集して上位局に伝送する収集局と
して使用する場合:この場合、従来は遠隔監視のデータ
送信の手順として、CDT (サイクリック・データ・
l・ランスミッション)方式があり、この方式では一定
の長さの周期内に多数の監視点のデータを順番に送信し
、その動作を繰り返すものである。例えば、n個の監視
点のデータP1〜Pnを、PL、  P2゜P3・・・
Pnの順に送信する。
■As a specific application example, when an information processing system that stores control programs and application programs in ROM is used as a collection station that collects data and transmits it to a higher-level station: In this case, conventionally, remote monitoring data As a transmission procedure, CDT (cyclic data
In this method, data from a large number of monitoring points is sequentially transmitted within a period of a fixed length, and the operation is repeated. For example, the data P1 to Pn of n monitoring points are PL, P2゜P3...
Transmit in order of Pn.

ところが、各周期内に送るデータがいつも同し監視点で
はない場合の伝送方式があり、それは、たとえばm個の
監視点のデータQ1〜Qmはm周期に1回送信ずれば十
分である場合(変化が少ない時)に用いられ、その時の
1周期のデータの構成は、次のような構成となり、 rPl、P2・−・Pn、QIJ その後の周期は次のような構成となる。
However, there is a transmission method in which the data sent within each period is not always from the same monitoring point. For example, if data Q1 to Qm from m monitoring points are sent once every m period, it is sufficient ( The data structure for one cycle at that time is as follows: rPl, P2...Pn, QIJ The subsequent cycles have the following structure.

rPl、P2 ・・・Pn、Q2J 以下順次Qだげが異なる監視点のデータが送信され一回
の送信でQのデータ送信か終了する。なお、このような
伝送方式を、いわゆる1−ザブコミ」と称することは当
業者に知られており、以下単にザブコミという。
rPl, P2 . . . Pn, Q2J From then on, data of monitoring points with different Q numbers are transmitted sequentially, and data transmission of Q is completed with one transmission. It is known to those skilled in the art that such a transmission method is referred to as a so-called 1-zabukomi, and hereinafter simply referred to as zabukomi.

このサブコミの伝送方式をROMのプログラムにより実
行している時に、監視対象のデータの変動(例えば気象
の変化や事故の発生等)や使用条件の変更等の発生によ
りサブコミのデータ構成を緊急に変える必要が発生する
。例えば、複数周期で一回送信した監視点のデータ(上
記のQl)を毎周期送信したい時や、監視点を増やした
い時等の場合がある。
While this subcomi transmission method is being executed by a ROM program, the data configuration of the subcomi must be urgently changed due to changes in the data to be monitored (for example, changes in the weather or the occurrence of an accident) or changes in usage conditions. The need arises. For example, there may be cases where it is desired to transmit the monitoring point data (Ql above) that was transmitted once in multiple cycles every cycle, or when it is desired to increase the number of monitoring points.

そのような場合は、本発明のROMパッチ方式により、
オペレータ(ユーザ)か運用現場でROM中のチーフル
(ザブコミの構成を定義したテーブル)をRAMを用い
て変更することにより直ちに対処することができ、しか
も変更した後光に戻すことも簡単にできる。
In such a case, the ROM patch method of the present invention can be used to
The operator (user) can immediately take action by changing the table in the ROM (a table that defines the configuration of the computer) using the RAM at the operation site, and it is also easy to return to the changed halo.

[発明の効果コ 上記したように本発明によれば、プログラムをROMに
格納した情報処理システムにおいて、プログラムの変更
をシステムを停止することなく、しかも新たなROMを
作成することなく実現することができ、変更のための作
業や、経費、時間を大幅に低減することができる。
[Effects of the Invention] As described above, according to the present invention, in an information processing system in which a program is stored in a ROM, it is possible to change the program without stopping the system and without creating a new ROM. This can significantly reduce the work, cost, and time required for changes.

また、ROM交換の必要がないのでシステムを停止する
ことなくプログラムの変更ができるのでザーヒスを低下
する事態をなくすことができる。
Furthermore, since there is no need to replace the ROM, programs can be changed without stopping the system, thereby eliminating the possibility of a drop in performance.

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

第1図は本発明の原理的構成を示す図、第2図は本発明
の実施例構成の1を示す図、第3図は本発明の実施例構
成の2を示す図、第4図は本発明の具体的構成例を示す
図である。 第1図中、 10 F ROMアクセス源 11:設定アドレス検出手段 1 2  :  ROM 1 3  :  RAM 14:切替制御手段 101ニアドレスバス 102:データバス
FIG. 1 is a diagram showing the basic configuration of the present invention, FIG. 2 is a diagram showing a first embodiment of the configuration of the present invention, FIG. 3 is a diagram showing a second embodiment of the configuration of the present invention, and FIG. FIG. 1 is a diagram showing a specific configuration example of the present invention. In FIG. 1, 10 F ROM access source 11: Setting address detection means 1 2: ROM 1 3: RAM 14: Switching control means 101 Near address bus 102: Data bus

Claims (1)

【特許請求の範囲】 1)プログラムを格納したROM(12)がROMアク
セス源(10)とバス(101、102)により接続し
た情報処理システムにおいて、 該ROM(12)内のプログラムを変更したいアドレス
が設定され、バス(101)に該設定アドレスが発生し
たことを検出する設定アドレス検出手段(11)と、 前記バス(101、102)に接続され、変更後のプロ
グラムを格納したRAM(13)と、 設定アドレス検出手段(11)の検出出力の発生に応じ
てROM(12)に禁止信号を供給し、RAM(13)
に制御信号を供給する切替制御手段(14)とを設け、
ROMアクセス源(10)によるROM(12)のアク
セス動作を継続しながらRAM(13)内の変更したプ
ログラムを実行することを特徴とする情報処理システム
におけるROMパッチ方式。 2)特許請求の範囲の第1項の記載において、前記切替
制御手段(14)からRAM(13)に供給される制御
信号は、RAM(13)を能動化する制御信号であるこ
とを特徴とする情報処理システムにおけるROMパッチ
方式。 3)特許請求の範囲の第1項の記載において、前記切替
制御手段(14)は、RAM(13)の特定のアドレス
へのジャンプ命令を出力し、該RAM(13)の変更プ
ログラムの最後にROM(12)へのジャンプ命令を格
納することを特徴とする情報処理システムにおけるRO
Mパッチ方式。 4)特許請求の範囲の第1項において、前記切替制御手
段(14)から出力される制御信号は予め設定した変更
後のデータであることを特徴とする情報処理システムに
おけるROMパッチ方式。
[Claims] 1) In an information processing system in which a ROM (12) storing a program is connected to a ROM access source (10) by a bus (101, 102), an address at which the program in the ROM (12) is desired to be changed; a set address detection means (11) for detecting that the set address has been set and the set address has occurred on the bus (101); and a RAM (13) connected to the bus (101, 102) and storing the changed program. In response to the generation of the detection output of the setting address detection means (11), a prohibition signal is supplied to the ROM (12), and the RAM (13)
and a switching control means (14) for supplying a control signal to the
A ROM patch method in an information processing system characterized in that a modified program in a RAM (13) is executed while a ROM (12) access operation by a ROM access source (10) is continued. 2) In the description of claim 1, the control signal supplied from the switching control means (14) to the RAM (13) is a control signal for activating the RAM (13). ROM patch method for information processing systems. 3) In the description of claim 1, the switching control means (14) outputs a jump instruction to a specific address of the RAM (13), and at the end of the change program of the RAM (13). RO in an information processing system characterized by storing a jump instruction to a ROM (12)
M patch method. 4) A ROM patch method in an information processing system according to claim 1, wherein the control signal output from the switching control means (14) is preset changed data.
JP62328827A 1987-12-25 1987-12-25 Rom patching system Pending JPH01169629A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62328827A JPH01169629A (en) 1987-12-25 1987-12-25 Rom patching system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62328827A JPH01169629A (en) 1987-12-25 1987-12-25 Rom patching system

Publications (1)

Publication Number Publication Date
JPH01169629A true JPH01169629A (en) 1989-07-04

Family

ID=18214526

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62328827A Pending JPH01169629A (en) 1987-12-25 1987-12-25 Rom patching system

Country Status (1)

Country Link
JP (1) JPH01169629A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06214780A (en) * 1992-12-14 1994-08-05 Carrier Corp Method and apparatus for readout of control program of cold storage
JP2011154505A (en) * 2010-01-27 2011-08-11 Seiko Epson Corp Arithmetic processing unit and arithmetic execution method
JP2015115074A (en) * 2013-12-09 2015-06-22 ディスペース デジタル シグナル プロセッシング アンド コントロール エンジニアリング ゲゼルシャフト ミット ベシュレンクテル ハフツングdspace digital signal processing and control engineering GmbH Method for modifying software in memory of electronic control device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58112142A (en) * 1981-12-25 1983-07-04 Toshiba Corp Program processor
JPS5945694A (en) * 1982-09-06 1984-03-14 Fujitsu Ltd Modification system for rom read information
JPS605535B2 (en) * 1980-11-25 1985-02-12 日本化学工業株式会社 Method for manufacturing inorganic vitreous foam
JPS6252635A (en) * 1985-08-31 1987-03-07 Fujitsu Ltd Data converting system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS605535B2 (en) * 1980-11-25 1985-02-12 日本化学工業株式会社 Method for manufacturing inorganic vitreous foam
JPS58112142A (en) * 1981-12-25 1983-07-04 Toshiba Corp Program processor
JPS5945694A (en) * 1982-09-06 1984-03-14 Fujitsu Ltd Modification system for rom read information
JPS6252635A (en) * 1985-08-31 1987-03-07 Fujitsu Ltd Data converting system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06214780A (en) * 1992-12-14 1994-08-05 Carrier Corp Method and apparatus for readout of control program of cold storage
JP2011154505A (en) * 2010-01-27 2011-08-11 Seiko Epson Corp Arithmetic processing unit and arithmetic execution method
JP2015115074A (en) * 2013-12-09 2015-06-22 ディスペース デジタル シグナル プロセッシング アンド コントロール エンジニアリング ゲゼルシャフト ミット ベシュレンクテル ハフツングdspace digital signal processing and control engineering GmbH Method for modifying software in memory of electronic control device

Similar Documents

Publication Publication Date Title
CN1316372C (en) Single step processing
CN100388234C (en) Method for monitoring internal memory varible rewrite based on finite-state-machine
CN102063367B (en) Off-line analysis method and device aiming at computer crash program
CN101751323A (en) Microprocessor chip emulator and breakpoint setting method
JPH01169629A (en) Rom patching system
JPH09330106A (en) Control system with backup function
JPH07248941A (en) Debug support device
JPH11342596A (en) Control computer for printing machine, especially sheet-feed offset printing machine
JP2001265620A (en) Program debugging system for rom
JPS5813932B2 (en) Storage device multiple use control method
JP3503504B2 (en) Debug processing system, computer and debug processing method
CN112015681B (en) IO port processing method, device, equipment and medium
JP3464417B2 (en) Test display method of screen data for control device
US20020032821A1 (en) Management of interruptions in a computer platform
JP4527419B2 (en) Program trace method and trace processing system
JPH07210421A (en) Debugging method in thread environment
KR100347006B1 (en) Partition of a memory used in an integrated control system
JP2003067036A (en) Controller simulation device and control system simulation device
JPS6238746B2 (en)
JPH1165884A (en) Microcomputer and debugging method therefor
JPH0736536A (en) Programmable controller
JPH08249296A (en) Multiprocessor system
JP2986997B2 (en) Data transfer device for elevator control board
JPH0221341A (en) Monitor device for program action of another device
JPS6227421B2 (en)