JPH03266141A - Microprocessor system - Google Patents
Microprocessor systemInfo
- Publication number
- JPH03266141A JPH03266141A JP2066552A JP6655290A JPH03266141A JP H03266141 A JPH03266141 A JP H03266141A JP 2066552 A JP2066552 A JP 2066552A JP 6655290 A JP6655290 A JP 6655290A JP H03266141 A JPH03266141 A JP H03266141A
- Authority
- JP
- Japan
- Prior art keywords
- main memory
- data
- signal
- memory
- address
- 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
- 238000012986 modification Methods 0.000 claims description 8
- 230000004048 modification Effects 0.000 claims description 8
- 230000003213 activating effect Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 4
- 238000000034 method Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000001143 conditioned effect Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明はマイクロプロセッサシステムに関する。[Detailed description of the invention] [Industrial application field] The present invention relates to microprocessor systems.
[従来の技術]
従来、マイクロプロセッサシステムのプログラムを記憶
している主メモリのROMに誤りが検出されたり、部分
的に修正を施そうとする場合は、修正の対策として2つ
の方法がとられていた。1つはROMを全部作り直して
そっくり交換する方法で、もう一つは修正の必要のある
部分の書替えデータを記憶させた第1の補助メモリのR
OMと、主メモリのROMの修正箇所のアドレスに修正
箇所であることを判別できるデータを記憶させた第2の
補助メモリのROMとを追加する方法である。[Prior Art] Conventionally, when an error is detected in the ROM of the main memory that stores the program of a microprocessor system, or when an attempt is made to make a partial correction, two methods have been taken as a countermeasure for the correction. was. One is to rebuild the entire ROM and replace it completely, and the other is to replace the ROM in the first auxiliary memory that stores the rewritten data for the part that needs to be corrected.
This is a method of adding a second auxiliary memory ROM and a second auxiliary memory ROM in which data that can be used to identify a modification location is stored at the address of the modification location in the main memory ROM.
[発明が解決しようとする課題〕
上述した従来の方法のうち、前者は、交換用のROMの
作成に大変手間がかかる上、誤の検知されたメモリを外
して良品のROMに交換することが場合によっては物理
的にも困難なので、また後者は、部品を追加するだけで
済む代りに、補助メモリのROMが複数個必要となるの
で、いずれもプログラムメモリの修正を経済的に行うこ
とができないという欠点がある。[Problems to be Solved by the Invention] Among the conventional methods described above, the former requires a lot of time and effort to create a replacement ROM, and it is difficult to remove a faulty memory and replace it with a good ROM. In some cases, it is physically difficult, and in the latter case, instead of just adding parts, multiple ROMs are required as auxiliary memory, so it is not possible to modify the program memory economically. There is a drawback.
本発明の目的は、1つの補助メモリのROMを追加する
のみで、マイクロプロセッサシステムのプログラムを記
憶しているROMの部分的修正が経済的に実現できるマ
イクロプロセッサシステムを提供することにある。SUMMARY OF THE INVENTION An object of the present invention is to provide a microprocessor system in which partial modification of a ROM storing a program of a microprocessor system can be realized economically by simply adding one auxiliary memory ROM.
〔課題を解決するための手段1
本発明のマイクロプロセッサシステムは、マイクロプロ
セッサと、
前記マイクロプロセッサにデータバスとβビ、ットのア
ドレスバスとによって接続され、部分的な要修正箇所の
あるプログラムが格納され、容量が2lバイトのROM
からなる主メモリと、総容量が2m″バイトで、2n個
の等容量のブロックに分割され、各ブロックごとに前記
主メモリの修正済みデータが格納され、前記アドレスバ
スの下位m−nビットを入力して各ブロック内のアドレ
スとし、読出したデータを前記データバスに出力するR
OMからなる補助メモリと、前記補助メモリの各ブロッ
クに対応し、当該ブロックに対応する前記主メモリの要
修正箇所の開始アドレスの上位9−m+nビットを指示
するデータが格納される2n個のレジスタと、前記アド
レスバスの上位9−m+nビットと前記各レジスタの出
力と前記主メモリをアクティブにする信号とを入力とし
、前記アドレスバスから入力したアドレスデータを前記
レジスタの出力と比較して、いずれかのレジスタの出力
と一致した場合には、前記主メモリをアクティブにする
信号を変換して前記補助メモリをアクティブにする信号
とし、一致したレジスタに対応するブロックを指すnビ
ットのアドレス信号とともに前記補助メモリに送り、比
較したとき一致する出力のレジスタがない場合は、前記
主メモリをアクティブにする信号をそのまま前記主メモ
リに送る比較回路とを有する。[Means for Solving the Problems 1] The microprocessor system of the present invention includes a microprocessor, and a program connected to the microprocessor by a data bus and a β-bit address bus, which has a portion that requires modification. is stored in a ROM with a capacity of 2L bytes.
The main memory has a total capacity of 2m'' bytes and is divided into 2n blocks of equal capacity, each block stores the modified data of the main memory, and the lower m-n bits of the address bus are stored in each block. R that is input as an address within each block and outputs the read data to the data bus.
an auxiliary memory consisting of an OM, and 2n registers corresponding to each block of the auxiliary memory and storing data indicating the upper 9-m+n bits of the start address of the portion to be modified in the main memory corresponding to the block; , the upper 9-m+n bits of the address bus, the output of each of the registers, and a signal for activating the main memory are input, and the address data input from the address bus is compared with the output of the register. If there is a match with the output of one of the registers, the signal that activates the main memory is converted into a signal that activates the auxiliary memory, and the signal that activates the main memory is converted into a signal that activates the auxiliary memory, and the signal is sent along with the n-bit address signal pointing to the block corresponding to the matched register. and a comparison circuit that sends a signal that activates the main memory to the main memory as it is if there is no register with a matching output when compared.
[作用]
マイクロプロセッサが主メモリのデータを読出すために
アドレスデータを出したとき、比較回路が該アドレスデ
ータの上位ビットを各レジスタに格納されているデータ
と比較して、一致しているものがある場合は、修正領域
であるとして該修正領域を含む補助メモリのブロックを
指定し主メモリをアクティブにする信号を補助メモリに
送るので、補助メモリからデータが読出され、一致する
ものがない場合は、修正不要の部分であるとしてアクテ
ィブ信号を主メモリに送るので、主メモリからデータが
読出されるー。[Operation] When the microprocessor outputs address data to read data from the main memory, a comparison circuit compares the upper bits of the address data with the data stored in each register and determines which ones match. If there is, the block of auxiliary memory that includes the modified area is designated as a modified area and a signal is sent to the auxiliary memory to activate the main memory, so if data is read from the auxiliary memory and there is no match. sends an active signal to the main memory because it is a part that does not require modification, so data is read from the main memory.
【実施例]
次に、本発明の実施例について図面を参照して説明する
。[Example] Next, an example of the present invention will be described with reference to the drawings.
第1図は本発明のマイクロプロセッサシステムの一実施
例のブロック図、第2図は比較回路6の詳細図である。FIG. 1 is a block diagram of an embodiment of the microprocessor system of the present invention, and FIG. 2 is a detailed diagram of the comparator circuit 6. In FIG.
本実施例のマイクロプロセッサシステムは、n=17、
m = 15、n=1の場合の例で、マイクロプロセッ
サ4と、!=17ビツトのアドレスバス8と、マイクロ
プロセッサ4のプログラムを記憶し、2 ’ = 2
”=128 Kバイトの容量でアドレス0AOOO(H
1〜0A02F (H)外1か所に要修正箇所をもつ主
メモリl (ROM)と、2 ” = 2m11′=
32にバイトの容量で、2m′=2’=2つに分割され
た16にバイトずつのブロック2A、2Bにそれぞれ主
メモリ1の修正されたプログラムを含み、アドレスバス
8の下位m−n=15−1=14ビツトのアドレスデー
タbを人力とする補助メモリ2 (ROM)と、補助メ
モリ2の各ブロック2A、2Bに対応・し、11−m+
n=17−15+1 =3ビットのアドレスデータがそ
れぞれに格納されているレジスタSA、5Bと、アドレ
スバス8の上位It−m+n=3ビットのアドレスデー
タCを各レジスタSA、5Bの出力i、にと比較して、
いずれか等しいものがある場合にはブロック2A、2B
のアドレスn=1ビツトの信号りと補助メモリ2のアク
ティブ信号gを補助メモリ2に、いずれも等しくない場
合には主メモリ1のアクティブ信号fのみを主メモリ1
に送る比較回路6とからなる。In the microprocessor system of this embodiment, n=17,
In the example where m = 15 and n = 1, microprocessor 4 and ! = 17-bit address bus 8 and the program of the microprocessor 4 are stored, 2' = 2
” = 128 Kbyte capacity and address 0AOOO(H
1 to 0A02F (H) Main memory l (ROM) with one location that requires modification, and 2" = 2m11' =
32 bytes in capacity, 2m' = 2' = divided into 2 16 byte blocks 2A, 2B each containing the modified program of the main memory 1, lower m-n = of the address bus 8; 15-1=11-m+
n = 17 - 15 + 1 = registers SA, 5B each storing 3 bits of address data, and upper It-m + n = 3 bits of address data C of address bus 8 are sent to the output i of each register SA, 5B. compared to
Blocks 2A and 2B if either one is equal
The address n=1 bit signal and the active signal g of the auxiliary memory 2 are sent to the auxiliary memory 2, and if they are not equal, only the active signal f of the main memory 1 is sent to the main memory 1.
and a comparator circuit 6 which sends data to.
次に、本実施例の動作について説明する。Next, the operation of this embodiment will be explained.
主メモリ1のアドレス0AOOO(H)〜0A02F
(H)のデータを修正する場合は、主メモリ1を16に
バイトずつの8ブロツクに分割した中の該要修正部分を
含むブロックが08000 (H)〜0BFFF (H
)であるから、補助メモリ2のブロック2Aには080
00 (H)〜0BFFF (H)の修正データを書込
んでおき、レジスタ5Aに修正の必要なブロックの先頭
アドレス08000 (旧の上位3ビツト 010 (
2mを格納する。他の修正部分についても同様にブロッ
ク2Bとレジスタ5Bに所要のデータを格納する。Main memory 1 address 0AOOO(H) ~ 0A02F
When modifying the data in (H), main memory 1 is divided into 8 blocks of 16 bytes each, and the block containing the part to be modified is 08000 (H) to 0BFFF (H
), therefore, block 2A of auxiliary memory 2 contains 080
Write the correction data from 00 (H) to 0BFFF (H) in advance, and write the start address of the block that needs correction to register 5A, 08000 (formerly the upper 3 bits 010 (
Stores 2m. Required data is similarly stored in block 2B and register 5B for other modified parts.
アドレスデータaがosooo (旧〜0BFFF (
H)の間を指示した場合は、比較回路6により、アクテ
ィブ信号eが補助メモリ2のアクティブ信号gに変換さ
れて補助メモリ2をアクティブにし、主メモリlはアク
ティブにはならない。切分回路7(第2図)は、各レジ
スタ5A、5Bに対応する補助メモリ2のブロック2A
、2Bを選択するようにアドレスhに0かlを出力する
もので、レジスタ5Aの出力1とアドレスデータCが一
致したとき、すなわちアドレスデータaが08000
fHl 〜0BFFF (Hlの間では、アドレスhに
は0が出力され、ブロック2Aが選択される。アドレス
データCとレジスタ5Bの出力kが一致したときは、ア
ドレスhはlとなりブロック2Bが選択される。Address data a is osooo (old ~ 0BFFF (
H), the comparator circuit 6 converts the active signal e into the active signal g of the auxiliary memory 2, making the auxiliary memory 2 active, and the main memory l does not become active. The dividing circuit 7 (FIG. 2) connects the block 2A of the auxiliary memory 2 corresponding to each register 5A, 5B.
, 2B is output to address h, and when output 1 of register 5A and address data C match, that is, address data a is 08000.
fHl ~ 0BFFF (Between Hl, 0 is output to address h and block 2A is selected. When address data C and the output k of register 5B match, address h becomes 1 and block 2B is selected. Ru.
また、アドレスデータCがレジスタ5A、5Bのいずれ
の出力i、にとも一致しないときは、アクティブ信号e
はアクティブ信号fに変換されて主メモリ1に送られ、
主メモリ1のデータが読出されることになる。したがっ
て、補助メモリ2にデータ領域を置換することにより主
メモリ1を交換することなく2ブロツクまでデータ修正
ができる。Furthermore, when address data C does not match with either output i of registers 5A or 5B, active signal e
is converted into an active signal f and sent to the main memory 1,
Data in main memory 1 will be read. Therefore, by replacing the data area with the auxiliary memory 2, it is possible to modify up to two blocks of data without replacing the main memory 1.
本実施例では、メモリの置換単位を2m−11=2 ”
= 16にバイトとして主メモリ1と補助メモリ2のデ
ータ領域を2’−”” =2 ” =8ブロックと2’
=2’=2ブロツクに設定したが、βに対してm、nを
変数とすることによってブロックの大きさや数を変化さ
せることができる。すなわち。In this embodiment, the memory replacement unit is 2m-11=2''
= Data area of main memory 1 and auxiliary memory 2 as 16 bytes 2' - "" = 2 '' = 8 blocks and 2'
=2'=2 blocks, but the size and number of blocks can be changed by using m and n as variables for β. Namely.
主メモリlの要修正部分の数とその大きさとによって、
対応させる補助メモリ2のブロックの数と大きさが求め
られ、補助メモリ2の必要容量が決定される。Depending on the number and size of parts of main memory l that need modification,
The number and size of the corresponding blocks of the auxiliary memory 2 are determined, and the required capacity of the auxiliary memory 2 is determined.
また、本実施例のようなマイクロプロセッサシステムは
、ゲートアレー、PAL等のICを用いることによって
極めて安価に実現できる。Further, a microprocessor system such as this embodiment can be realized at extremely low cost by using ICs such as gate arrays and PALs.
以上説明したように本発明は、條正済みのプログラムデ
ータが主メモリと補助メモリに共通に設定されるブロッ
ク単位で補助メモリに格納され、比較回路が主メモリに
送られるアドレスデータをレジスタに格納しているデー
タと比較して修正領域の場合は補助メモリをアクティブ
にするので、補助メモリを追加することによって主メモ
リを交換せずに主メモリの修正を行うことができ、しか
も追加するメモリの容量、個数は修正部分の大きさや数
に応じて最小限に押えることができる効果がある。As explained above, in the present invention, conditioned program data is stored in the auxiliary memory in blocks that are set commonly in the main memory and the auxiliary memory, and a comparison circuit stores address data to be sent to the main memory in a register. The auxiliary memory is activated when it is a modified area compared to the data being added, so by adding auxiliary memory, main memory can be modified without replacing the main memory. The capacity and number of parts can be kept to a minimum depending on the size and number of parts to be corrected.
第1図は本発明のマイクロプロセッサシステムの一実施
例のブロック、第2図は比較回路6の詳細図である。
1・・・主メモリ、
2・・・補助メモリ、
4・・・マイクロプロセッサ、
5A、5B−・・レジスタ、
6・・・比較回路、
7・・・切分回路。
8・・・アドレスバス。FIG. 1 is a block diagram of one embodiment of the microprocessor system of the present invention, and FIG. 2 is a detailed diagram of the comparator circuit 6. In FIG. DESCRIPTION OF SYMBOLS 1... Main memory, 2... Auxiliary memory, 4... Microprocessor, 5A, 5B-... Register, 6... Comparison circuit, 7... Cutting circuit. 8...Address bus.
Claims (1)
レスバスとによって接続され、部分的な要修正箇所のあ
るプログラムが格納され、容量が2^lバイトの、RO
Mからなる主メモリと、総容量が2^mバイトで、2^
n個の等容量のブロックに分割され、各ブロックごとに
前記主メモリの修正済みデータが格納され、前記アドレ
スバスの下位m−nビットを入力して各ブロック内のア
ドレスとし、読出したデータを前記データバスに出力す
る、ROMからなる補助メモリと、前記補助メモリの各
ブロックに対応し、当該ブロックに対応する前記主メモ
リの要修正箇所の開始アドレスの上位l−m+nビット
を指示するデータが格納される2^n個のレジスタと、
前記アドレスバスの上位l−m+nビットと前記各レジ
スタの出力と前記主メモリをアクティブにする信号とを
入力とし、前記アドレスバスから入力したアドレスデー
タを前記レジスタの出力と比較して、いずれかのレジス
タの出力と一致した場合には、前記主メモリをアクティ
ブにする信号を変換して前記補助メモリをアクティブに
する信号とし、一致したレジスタに対応するブロックを
指すnビットのアドレス信号と共に前記補助メモリに送
り、比較したとき一致する出力のレジスタがない場合は
、前記主メモリをアクティブにする信号をそのまま前記
主メモリに送る比較回路とを有するマイクロプロセッサ
システム。[Scope of Claims] 1. A microprocessor, which is connected to the microprocessor by a data bus and an l-bit address bus, stores a program that partially requires modification, and has a capacity of 2^l bytes; R.O.
The main memory consists of M and the total capacity is 2^m bytes, 2^
It is divided into n blocks of equal capacity, and the modified data of the main memory is stored in each block, and the lower m-n bits of the address bus are inputted as addresses within each block, and the read data is An auxiliary memory consisting of a ROM, which is output to the data bus, and data corresponding to each block of the auxiliary memory and indicating the upper l-m+n bits of the start address of the part to be modified in the main memory corresponding to the block. 2^n registers to be stored,
The upper l-m+n bits of the address bus, the output of each of the registers, and a signal for activating the main memory are input, and the address data input from the address bus is compared with the output of the register, and one of the registers is determined. If the output of the register matches, the signal that activates the main memory is converted into a signal that activates the auxiliary memory, and the signal that activates the auxiliary memory is converted into a signal that activates the auxiliary memory, and the signal is output to the auxiliary memory along with an n-bit address signal pointing to the block corresponding to the matched register. and a comparison circuit that sends a signal that activates the main memory to the main memory as it is if there is no register with a matching output when compared.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2066552A JPH03266141A (en) | 1990-03-16 | 1990-03-16 | Microprocessor system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2066552A JPH03266141A (en) | 1990-03-16 | 1990-03-16 | Microprocessor system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03266141A true JPH03266141A (en) | 1991-11-27 |
Family
ID=13319191
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2066552A Pending JPH03266141A (en) | 1990-03-16 | 1990-03-16 | Microprocessor system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03266141A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05334071A (en) * | 1992-05-28 | 1993-12-17 | Matsushita Electric Ind Co Ltd | One-chip microcomputer |
JP2004318886A (en) * | 2003-04-14 | 2004-11-11 | Arm Ltd | Data access request remapping system |
JP2005276065A (en) * | 2004-03-26 | 2005-10-06 | Denso Corp | Emulator |
-
1990
- 1990-03-16 JP JP2066552A patent/JPH03266141A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05334071A (en) * | 1992-05-28 | 1993-12-17 | Matsushita Electric Ind Co Ltd | One-chip microcomputer |
JP2004318886A (en) * | 2003-04-14 | 2004-11-11 | Arm Ltd | Data access request remapping system |
JP2005276065A (en) * | 2004-03-26 | 2005-10-06 | Denso Corp | Emulator |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100855979B1 (en) | Semiconductor memory device and parity data generation method for byte masking operation | |
US6604214B1 (en) | One-chip microcomputer capable of internally producing ECC data | |
JPH03266141A (en) | Microprocessor system | |
US20210326202A1 (en) | Non-volatile memory | |
US7664890B2 (en) | System control device | |
CN111383701B (en) | Redundancy error correction structure of OTP | |
JPH04162300A (en) | Semiconductor memory | |
JP2001127621A (en) | Read controller for counter and its control method | |
JPH0355918B2 (en) | ||
KR100216045B1 (en) | Bit arithmetic processing method and apparatus of programmable controller | |
JPS5945694A (en) | Modification system for rom read information | |
JPH0756640B2 (en) | Storage device | |
US20210232341A1 (en) | Method for Updating Stored Information and Apparatus | |
US6954889B2 (en) | Circuit for modifying stored data | |
JPH0816488A (en) | Electronic disk device | |
JPH03108043A (en) | Cache memory control system | |
JPH0226252B2 (en) | ||
JPH0398119A (en) | Storage device | |
JPH08221322A (en) | Device and method for controlling memory | |
JPH0855024A (en) | Instruction decoder circuit | |
JPH0323598A (en) | Rom device | |
JPS61158090A (en) | Memory storage method | |
JPH06250937A (en) | Method for memory control, memory control circuit with ecc function and information processor | |
JPH04312147A (en) | Main storage | |
JPH04274538A (en) | Cache memory controller |