JPH02196332A - Information processor - Google Patents

Information processor

Info

Publication number
JPH02196332A
JPH02196332A JP1685389A JP1685389A JPH02196332A JP H02196332 A JPH02196332 A JP H02196332A JP 1685389 A JP1685389 A JP 1685389A JP 1685389 A JP1685389 A JP 1685389A JP H02196332 A JPH02196332 A JP H02196332A
Authority
JP
Japan
Prior art keywords
address
csrom
storage means
information
patch
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
JP1685389A
Other languages
Japanese (ja)
Inventor
Seiji Baba
馬場 清司
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 JP1685389A priority Critical patent/JPH02196332A/en
Publication of JPH02196332A publication Critical patent/JPH02196332A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To perform the patching jobs without changing the CSROM itself even in the case the firmware instruction stored in the CSROM has a defect or a function is changed by replacing the address to the CSROM with the output of a patch RAM having the same number of words as the CSROM. CONSTITUTION:A patch RAM 4 has the same number of a words as a CSROM 2, and '1' is written into a word of the RAM 4 corresponding to the address of the CSROM 2 to be patched in the case a partial patch is required for the defect of the CSROM 2. Furthermore a pacthed firmware instruction is stored in a word of a CSRAM 3 which is shown by an address where the most signifi cant bit of the address of the CSROM 2 is replaced with '1'. Thus the firmware instruction stored in the CSRAM 3 can be sent to a CPU 1 in place of the firmware instruction stored in the CSROM 2. Then the firmware instruction stored in the CSROM 2 can be patched.

Description

【発明の詳細な説明】 舷」dト野 本発明は情報処理装置に関し、特にファームウェア制御
の情報処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an information processing device, and particularly to a firmware-controlled information processing device.

従来技術 従来、この種の情報処理装置においてはファームウェア
命令の格納されている制御記憶はROM(Read 0
nly MeIIlory)テあルコトカ多カッタ。ソ
ノため、そのROMに格納されたファームウェア命令に
不具合があったり、機能変更が必要な場合には、ROM
自体を交換するというバッチ(Patcl+)方法しか
なかった。
BACKGROUND TECHNOLOGY Conventionally, in this type of information processing device, a control memory in which firmware instructions are stored is a ROM (Read 0
nly MeIIlory) Teal Kotka Ta Katta. Therefore, if there is a problem with the firmware instructions stored in the ROM or a function change is required, the ROM
There was only a batch (Patcl+) method of replacing the unit itself.

従って、ROMに格納されたファームウェア命令を変更
するためのROM交換に費用がかかるという欠点があっ
た。特にユーザへの出荷後の情報処理装置のメンテナン
スには多大なコストを費やすという欠点があった。
Therefore, there is a drawback that it is expensive to replace the ROM in order to change the firmware instructions stored in the ROM. In particular, there has been a drawback that a large amount of cost is spent on maintenance of the information processing apparatus after it has been shipped to the user.

発明の目的 本発明の目的は、ROM自体を交換せずにファームウェ
ア命令の不具合等に対処することかできる情報処理装置
を提供することである。
OBJECTS OF THE INVENTION An object of the present invention is to provide an information processing device that can deal with problems with firmware instructions without replacing the ROM itself.

発明の構成 本発明による情報処理装置は、ファームウェアが予め格
納されている複数の領域を有する第1の記憶手段と、前
記第1の記憶手段の複数の領域の夫々に対応して設けら
れ、かつその領域が有効か無効かを示すフラグ情報を格
納する格納手段と、第2の記憶手段と、上位装置からの
アドレス情報に応じてアクセスすべき前記第1の記憶手
段の領域に対応するフラグ情報が無効を示したとき前記
アドレス情報の一部を該フラグ情報で置換した情報を用
いて前記第2の記憶手段へのアドレス情報を発生する手
段とを有し、このアドレス情報により指定される前記第
2の記憶手段の記憶領域を前記第1の記憶手段の無効領
域の代わりとして使用するようにしたことを特徴とする
Structure of the Invention An information processing device according to the present invention includes a first storage means having a plurality of areas in which firmware is stored in advance, and a first storage means provided corresponding to each of the plurality of areas of the first storage means, and A storage means for storing flag information indicating whether the area is valid or invalid, a second storage means, and flag information corresponding to an area of the first storage means to be accessed according to address information from a host device. means for generating address information for the second storage means using information obtained by replacing a part of the address information with the flag information when the address information indicates that the address information is invalid; The present invention is characterized in that the storage area of the second storage means is used in place of the invalid area of the first storage means.

実施例 以下、図面を用いて本発明の詳細な説明する。Example Hereinafter, the present invention will be explained in detail using the drawings.

第1図は本発明による情報処理装置の一実施例の構成を
示すブロック図である。図において、1はCPU、2は
CS ROM (Control Storage R
OM) 、 3 はCS  RAM (Control
  5toraqe  RへN)  、 4はパッチ用
のパッチRAM、5はC5RAMのアドレスを保持する
レジスタ、6はC5ROMのアドレスを保持するレジス
タ、7はレジスタ5とレジスタ6とのどちらかを選択す
るセレクタである。
FIG. 1 is a block diagram showing the configuration of an embodiment of an information processing apparatus according to the present invention. In the figure, 1 is a CPU, 2 is a CS ROM (Control Storage R
OM), 3 is CS RAM (Control
5 toraque R N), 4 is a patch RAM for patching, 5 is a register that holds the address of C5RAM, 6 is a register that holds the address of C5ROM, and 7 is a selector that selects either register 5 or register 6. be.

また、図において8はC5ROM2とC8RAM3ヘア
ドレスを送るアドレスバス、9はCPU1からC8RA
M3に対するアドレスを出力するアドレスバス、10は
CPU1からC5ROM2に対するアドレスを出力する
アドレスバス、11はCPU1への命令パス、12はC
5ROM2またはC8RAM3からファームウェア命令
を出力するパスである。
Also, in the figure, 8 is an address bus that sends addresses to C5ROM2 and C8RAM3, and 9 is a bus that sends addresses from CPU1 to C8RA.
Address bus that outputs the address for M3, 10 is an address bus that outputs the address from CPU1 to C5ROM2, 11 is an instruction path to CPU1, 12 is C
This is a path for outputting firmware instructions from 5ROM2 or C8RAM3.

C5ROM2及びC5RAM3は制御記憶であり、第2
図に示されているように連続したメモリ空間を構成して
いる。なお、第2図は本発明の一実方也例における制御
記憶のアドレスマツプである。
C5ROM2 and C5RAM3 are control memories, and the second
As shown in the figure, it constitutes a continuous memory space. Incidentally, FIG. 2 is an address map of control storage in one practical example of the present invention.

ハツチRAM4はC8ROM2と同じワード数を持ち、
1ワードが1ビツトの補助記憶である。
Hatsuchi RAM4 has the same number of words as C8ROM2,
One word is one bit of auxiliary memory.

このパッチRAM4の初期値は全ワード「0」とする。The initial value of this patch RAM 4 is assumed to be "0" for all words.

これは、C5ROM2に対しパッチすべきアドレスが1
つも存在しないことを示している。
This means that the address to be patched to C5ROM2 is 1.
It shows that it does not always exist.

セレクタ7はCPUIがパス9に対してアドレスを出力
した場合にはレジスタ5を、パス1oに対してアドレス
を出方しな場合にはレジスタ、6を選択するように動作
するものである。
The selector 7 operates to select register 5 when the CPUI outputs an address to path 9, and selects register 6 when the CPU does not output an address to path 1o.

かかる構成において初期状態では、cPUlがらパス9
を介してC5RAM3に対して出力されなアドレスは、
レジスタ5に保持され、セレクタ7においてレジスタ5
の出力が選択されることによって、パス8を経由して制
御記憶へ送られる。
In such a configuration, in the initial state, the path 9 is
The address that is not output to C5RAM3 via
is held in register 5, and is held in register 5 by selector 7.
The output of is selected and sent to the control storage via path 8.

一方、cpu、1がらパス1oを介し”(csR。On the other hand, from CPU 1 through path 1o (csR.

M2に対して出方されたアドレスは、パッチRAM4に
入力される。パッチRAM4の入力アドレスの最上位ビ
ットはパッチR,AM4の出力1ビツトと置換された後
レジスタ6に保持され、セレクタ7においてレジスタ6
の出方が選択されることによりアドレスが制御記憶へ送
られる。
The address issued to M2 is input to patch RAM4. The most significant bit of the input address of patch RAM 4 is replaced with 1 bit output from patch R and AM 4, and then held in register 6.
The address is sent to the control memory by selecting the appearance of the address.

次に、C5ROM2の不具合等のため、その一部に対し
てパッチを行う場合について説明する。
Next, a case will be described in which a part of the C5ROM2 is patched due to a defect or the like.

この場合、パッチを行うべきC8ROM2のアドレスに
対応するパッチRAMd内のワードに「1」を書込む。
In this case, "1" is written in the word in the patch RAMd corresponding to the address of the C8ROM2 to be patched.

さらに、そのC5ROM2のアドレスの最上位ビットを
「1」に置換したアドレスによって示されるC S R
AM B内のワードにパッチ後のファームウェア命令を
格納する。第2図を参照すると、このC3RO,Mにつ
いてのパッチ用のエリアは、図中のC5RAM上の破線
の部分(A)になる。
Furthermore, the CSR indicated by the address with the most significant bit of the C5ROM2 address replaced with "1"
Store the patched firmware instructions in the word in AMB. Referring to FIG. 2, the patch area for C3RO,M is the broken line portion (A) on C5RAM in the figure.

再び、CPUIよりそのアドレスが出力された場合には
パッチRAM4の対応するワードが「1」であるため、
そのアドレスの最上位ピッ1へが「1」に置換され、C
5ROM2に対するアドレスがC8RAM3に対するア
ドレスへと変換された後、パス8を介して制御記憶へ出
力される。すると、制御記憶からはC8ROM2のファ
ームウェア命令に代わってパッチ後のファームウェア命
令がC3,RA M 3から出力される。
Again, when the address is output from the CPUI, the corresponding word in the patch RAM 4 is "1", so
The topmost pin 1 of that address is replaced with "1", and C
After the address for 5ROM2 is converted into an address for C8RAM3, it is output via path 8 to the control store. Then, from the control memory, the patched firmware instructions are output from C3 and RAM 3 instead of the firmware instructions in C8ROM2.

以上の動作により、C5ROM2内のファームウェア命
令の代わりにCS RAM B内のファームウェア命令
をCPUIへ送ることができ、C5ROM内に格納され
たファームウェア命令のパッチを行うことが可能となる
のである。
Through the above operations, the firmware instructions in the CS RAM B can be sent to the CPUI instead of the firmware instructions in the C5ROM2, making it possible to patch the firmware instructions stored in the C5ROM.

なお、本実施例においてはアドレスの変換を行う際、ア
ドレスの最上位ビットを置換することによって行ってい
るが、それに限らす、他のビットに対して行っても同様
の効果が得られることは明らかである。つまり、アドレ
スの一部を置換すれば′良いのである。
Note that in this embodiment, address conversion is performed by replacing the most significant bit of the address; however, the same effect can be obtained by converting other bits. it is obvious. In other words, all you have to do is replace part of the address.

発明の詳細 な説明したように本発明は−CS R,OMと同しワー
ド数を持つパッチRAMを設け、このパッチRAMの出
力によってC5ROMに対するアドレスを置換すること
により、C5ROMに格納されたファームウェア命令に
不具合があったり、機能変更があった場合でも、そのC
5ROM自体を交換せずにパッチを行うことができ、R
OMの交換に関する費用を削滋することができるという
効果がある。
DETAILED DESCRIPTION OF THE INVENTION As described above, the present invention provides a patch RAM having the same number of words as the CSR, OM, and replaces the address for the C5ROM with the output of this patch RAM, thereby updating firmware instructions stored in the C5ROM. Even if there is a problem with the C or there is a change in the function, the
5ROM itself can be patched without replacing it, and R
This has the effect of reducing costs related to OM replacement.

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

第1図は本発明の実施例による情報処理装置の構成を示
すブロック図、第2図は第1図の制御記憶のメモリマツ
プである。 主要部分の符号の説明 1・・・・・・CPU 2・・・・・・C5ROM 3・・・・・・C8RAM 4・・・・・・パッチRAM 5.6・・・・・・レジスタ 7・・・・・・セレクタ
FIG. 1 is a block diagram showing the configuration of an information processing apparatus according to an embodiment of the present invention, and FIG. 2 is a memory map of the control storage shown in FIG. Explanation of symbols of main parts 1...CPU 2...C5ROM 3...C8RAM 4...Patch RAM 5.6...Register 7 ······selector

Claims (1)

【特許請求の範囲】[Claims] (1)ファームウェアが予め格納されている複数の領域
を有する第1の記憶手段と、前記第1の記憶手段の複数
の領域の夫々に対応して設けられ、かつその領域が有効
か無効かを示すフラグ情報を格納する格納手段と、第2
の記憶手段と、上位装置からのアドレス情報に応じてア
クセスすべき前記第1の記憶手段の領域に対応するフラ
グ情報が無効を示したとき前記アドレス情報の一部を該
フラグ情報で置換した情報を用いて前記第2の記憶手段
へのアドレス情報を発生する手段とを有し、このアドレ
ス情報により指定される前記第2の記憶手段の記憶領域
を前記第1の記憶手段の無効領域の代わりとして使用す
るようにしたことを特徴とする情報処理装置。
(1) A first storage means having a plurality of areas in which firmware is pre-stored, and a first storage means provided corresponding to each of the plurality of areas of the first storage means, and a memory device for determining whether the area is valid or invalid. a storage means for storing flag information indicating the flag information;
storage means, and information in which a part of the address information is replaced with flag information when flag information corresponding to an area of the first storage means to be accessed according to address information from a host device indicates invalidity. means for generating address information for the second storage means using the address information, and a storage area of the second storage means designated by this address information in place of an invalid area of the first storage means. An information processing device characterized in that it is used as an information processing device.
JP1685389A 1989-01-26 1989-01-26 Information processor Pending JPH02196332A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1685389A JPH02196332A (en) 1989-01-26 1989-01-26 Information processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1685389A JPH02196332A (en) 1989-01-26 1989-01-26 Information processor

Publications (1)

Publication Number Publication Date
JPH02196332A true JPH02196332A (en) 1990-08-02

Family

ID=11927775

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1685389A Pending JPH02196332A (en) 1989-01-26 1989-01-26 Information processor

Country Status (1)

Country Link
JP (1) JPH02196332A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE4420404B4 (en) * 1993-06-11 2007-12-06 Pentax Corp. Method for controlling the operation of an electronically controlled camera

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE4420404B4 (en) * 1993-06-11 2007-12-06 Pentax Corp. Method for controlling the operation of an electronically controlled camera

Similar Documents

Publication Publication Date Title
US4426682A (en) Fast cache flush mechanism
EP0030463B1 (en) Buffer memory control system
US4827400A (en) Segment descriptor present bit recycle and detect logic for a memory management unit
JPH02196332A (en) Information processor
JP2001134486A (en) Microprocessor and storage device
KR100517765B1 (en) Cache memory and control method thereof
JPH0192851A (en) Switching device for address space
JP4828879B2 (en) Cash system
JP3480957B2 (en) Memory programming equipment
JPH05189352A (en) I/o address translation system
JPH0784886A (en) Method and unit for cache memory control
JP2540959B2 (en) Information processing device
JP2003196087A (en) Memory addressing system of microcontroller and page mapping device
JP2005173817A (en) Eprom built in microcomputer
JPH06180993A (en) Programming device for memory
JPH05127979A (en) Memory address space extending device
JP3071717B2 (en) Parity bit writing method
JPH1040165A (en) Data read method and read buffer
JP3074984B2 (en) Memory management device
JP2509981B2 (en) Virtual storage controller
JPH03141444A (en) Data processor
KR20200116471A (en) Address conversion of data processing device
JP2006343803A (en) Cache memory
JPH02156352A (en) Cache memory
JPH1055304A (en) Central arithmetic processor