GB2330428A - ROM program patching in an embedded microprocessor - Google Patents

ROM program patching in an embedded microprocessor Download PDF

Info

Publication number
GB2330428A
GB2330428A GB9720210A GB9720210A GB2330428A GB 2330428 A GB2330428 A GB 2330428A GB 9720210 A GB9720210 A GB 9720210A GB 9720210 A GB9720210 A GB 9720210A GB 2330428 A GB2330428 A GB 2330428A
Authority
GB
United Kingdom
Prior art keywords
repair
program
segment
output
faulty
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.)
Granted
Application number
GB9720210A
Other versions
GB2330428B (en
GB9720210D0 (en
Inventor
Rong-Fu Hsu
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.)
Winbond Electronics Corp
Original Assignee
Winbond Electronics 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 Winbond Electronics Corp filed Critical Winbond Electronics Corp
Priority to GB9720210A priority Critical patent/GB2330428B/en
Publication of GB9720210D0 publication Critical patent/GB9720210D0/en
Publication of GB2330428A publication Critical patent/GB2330428A/en
Application granted granted Critical
Publication of GB2330428B publication Critical patent/GB2330428B/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/32Address formation of the next instruction, e.g. by incrementing the instruction counter
    • G06F9/322Address formation of the next instruction, e.g. by incrementing the instruction counter for non-sequential address
    • G06F9/328Address formation of the next instruction, e.g. by incrementing the instruction counter for non-sequential address for runtime instruction patching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/66Updates of program code stored in read-only memory [ROM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/22Microcontrol or microprogram arrangements
    • G06F9/26Address formation of the next micro-instruction ; Microprogram storage or retrieval arrangements
    • G06F9/262Arrangements for next microinstruction selection
    • G06F9/268Microinstruction selection not based on processing results, e.g. interrupt, patch, first cycle store, diagnostic programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

Segments of ROM 60 found to contain program "bugs" may be replaced by substitute segments loaded into RAM 70 by an external CPU 80. When the contents of the program counter 40 equals one of the start addresses 10 of known faulty program segments, the multiplexer 50 deselects the program counter output and selects instead the start address of a corresponding program patch stored in RAM 70.

Description

APPARATUS FOR REPAIRING FAULTY PROGRAM SEGMENTS IN EMBEDDED MICROPROCESSOR SYSTEMS This invention relates to embedded microprocessor systems, and more particularly, to a program repairing apparatus for use on an embedded microprocessor system to repair any faulty program segments that are stored in a permanent data storage unit, such as a mask ROM (read-only memory) incorporated in the embedded microprocessor system.
2. Description of Related Art: Conventionally, microprocessor systems are constructed by manufacturing microprocessors, memory units, and UO (input/output) devices as individual units in separate IC devices and then mounting these IC devices on printed circuit boards (PCB).
With the advance in semiconductor technologies, however, today's microprocessor systems can be constructed all on a single semiconductor chip. Such a microprocessor system is usually referred to as an embedded microprocessor system.
FIG 1 is a schematic block diagram of the core microprocessor of a conventional embedded microprocessor system. As shown, the embedded microprocessor system includes a ROM (read-only memory) unit 800, a program counter 81, a decoding unit 82, an execution unit 83, and a control unit 84. The ROM unit 800 is used for permanent storage of routinely executed programs by the execution unit 83. The sequential output of the program counter 8 1 is used as access addresses to gain access to specific storage locations in the ROM unit 800 so as to read out the corresponding program codes from the same. The program codes from the ROM unit 800 are subsequently processed by the decoding unit 82 so as to convert it into suitable form that can be executed by the execution unit 83. During execution of the program, the execution unit 83 can change the output of the program counter 81 in response to various conditions so as to fetch certain special program routines located on specific addresses of the ROM unit 800. All of the foregoing actions are under control by the control unit 84. Detailed structures and functions of this embedded microprocessor system are all conventional so description thereof will not be further detailed.
The ROM unit in an embedded microprocessor system is usually realized by a mask ROM since the cost of mask ROMs are significantly cheaper than other kinds of nonvolatile memories. The program codes are permanently written into the mask ROM through the so-called mask programming process that requires to manufacture a mask layer first, then uses the mask layer in a semiconductor manufacturing process to complete the building of the program codes in the mask ROM. Once stored, the program codes can not be arbitrarily modified or updated unless another mask programming process is performed on the mask ROM. However, the use of the mask programming process to modify or update programs stored in the mask ROM is quite a laborious and time-consuming process to carry out. Finished products of embedded microprocessor systems may be discarded because the program codes stored in the mask ROM have bugs. There exists, therefore, a need for a program repairing apparatus which can repair any faulty program segments in the ROM unit of an embedded microprocessor system without the use of mask programming process.
SE LARY OF THE MVENTION It is therefore a primary objective of the present invention to provide a program repairing apparatus which is capable of repairing any faulty program segments that are stored in a mask ROM unit incorporated in an embedded microprocessor system without having to perform a further mask programrning process on the mask ROM unit.
It is another objective of the present invention to provide a program repairing apparatus which can easily repair any faulty program segments that are stored in a mask ROM unit incorporated in an embedded microprocessor system through the use of repair program segments stored in a REM unit.
In accordance with the foregoing and other objectives of the present invention, a program repairing apparatus is provided for use on an embedded microprocessor system to repair any faulty program segments that are stored in a permanent data storage unit incorporated in the embedded microprocessor system.
The program repairing apparatus of the invention includes the following constituent elements: (a) reloadable storage means, such as a RAM unit, for storing a corresponding number of repair program segments which are used respectively to repair the faulty program segments in the ROM unit; (b) a faulty-segment address table for registering the starting addresses of the faulty program segments in the ROM unit; (c) a repair-segment address table for registering the starting addresses of the repair program segments in the reloadable storage means; (d) a program counter for generating a sequential output of binary values serving as access addresses to the ROM unit and the reloadable storage means; (e) a comparison circuit for comparing the output of the program counter with each of the starting addresses of the faulty program segments registered in the faultysegment address table; if all comparison results are unequal, the comparison circuit generating a first selection control signal; otherwise, if one comparison result is equal, the comparison circuit generating a second selection control signal and a repair-segment selection signal, the repair-segment selection signal causing the repair-segment address table to output the starting address of the corresponding repair program segment needed to repair the current faulty program segment; and (f) a multiplexer having a first input end connected to receive the output of the program counter and a second input end connected to receive the output of the repairsegment address table, the multiplexer being coupled to the comparison circuit such that the appearance of the first selection control signal causes the multiplexer to select the output of the program counter as output while the appearance of the second selection control signal causes the multiplexer to select the output of the repair-segment address table as output; the output of the multiplexer being used as an access address to gain access to the ROM unit and the reloadable storage means.
Further, the foregoing comparison circuit includes the following constituent elements: (a) a plurality of digital comparators, each being used to compare one of the starting addresses of the faulty program segments registered in the faulty-segment address table with the current output of the program counter, the output of each digital comparator being at a first logic state if the comparison result is unequal and at a second logic state if equal; and (b) a logic-OR gate having a plurality of input ends connected respectively to receive the output of each of the digital comparators; wherein when the output of each of the digital comparators is at the first logic state, the output of the logic-OR gate represents the first selection control signal; whereas when the output of any one of the digital comparators is at the second logic state, the output of the logic-OR gate represents the second selection control signal.
With the program repairing apparatus of the invention, any program segments in the ROM unit that need to be corrected or updated can be repaired by using modified versions of the faulty program segments which are loaded in the RAM unit. Since these reloadable repair program segments can be arbitrarily modified at any time, the repair work on the faulty program segments in the ROM unit is easy and convenient to carry out. The embedded microprocessor system will therefore not suffer from shutdown due to any faulty program segments in the ROM unit. Moreover, these faulty program segments, if any, can be repaired easily simply by loading the repair program segments into the RAM unit, without having to replace the whole ROM unit with a new one that contains the correct programs.
BRIEF DESCRIPTION OF DRAWINGS The invention can be more fully understood by reading the following detailed description of the preferred embodiments, with reference made to the accompanying drawings, wherein: FIG. 1 is. a schematic block diagram of the core microprocessor of a conventional embedded microprocessor system; FIG. 2 is a schematic block diagram of an embedded microprocessor system which is provided with the program repairing apparatus according to the invention; FIG. 3A shows a more detailed block structure of the program repairing apparatus shown in FIG. 2; FIG. 3B is a schematic diagram used to depict how the invention can repair four faulty program segments stored in a ROM unit by the use of four repair program segments stored in a RAM unit; and FIG. 3C is a schematic diagram used to depict the operation of the program repairing apparatus of the invention when repairing one faulty program segment in the ROM unit shown in FIG. 3B with the corresponding repair program segment in the RAM unit.
DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS FIG. 2 is a schematic block diagram of an embedded microprocessor system which is provided with the program repairing apparatus according to the invention. In FIG. 2, the dashed box indicated by the reference numeral 5 indicates an embedded microprocessor system which is provided with the program repairing apparatus of the invention. As shown, the embedded microprocessor system 5 includes a faulty-segment address table 10, a comparison circuit 20, a repair-segment address table 30, a program counter 40, a multiplexer (MUX) 50, a ROM (read-only memory) unit 60, a RAM (random-access memory) unit 70, and a decodingtexecuting unit 75. Further, a CPU (central processing unit) 80 and an address decoder 90 is externally coupled to the embedded microprocessor system 5 for performing required data write-in respectively to the faulty-segment address table 10, the repair-segment address table 30, and the RAM unit 70, as will be described in full detail later in this section.
The ROM unit 60 is used for permanent storage of some routinely executed programs of the embedded microprocessor system, which is customarily a mask ROM.
The data stored in the ROM unit 60 can not be arbitrarily modified. The program codes stored in the ROM unit 60 are executed by the decoding/executing unit 75. Whenever any segments of the program codes stored in the ROM unit 60 are found to be faulty or need to be updated, they can be repaired by using the correct versions of program segments which can be loaded into the RSM unit 70 under control by the CPU 80.
Whenever the embedded microprocessor system finds that there are faulty program segments in the ROM unit 60, the starting address of each of these faulty program segments will be registered in the faulty-segment address table 10.
Correspondingly, the repair program segments that are used to repair these faulty program segments are loaded into the RAM unit 70; and the starting address of each of these repair program segments is registered in the repair-segment address table 30.
The CPU 80 can use the address decoder 90 and data bus 85 to perform the following three tasks: (1) storing the starting address of each of the faulty program segments in the ROM unit 60 into the faulty-segment address table 10; (2) loading the corresponding repair program segments of these faulty program segments into the RAM unit 70; and (3) storing the starting address of each of the repair program segments in the RAM unit 70 into the repair-segment address.table 30. In practice on an application system, these three tasks can be carried out by using a system controller, which is realized by the CPU 80 and address decoder 90, to perform an on-line programming of data respectively into the faulty-segment address table 10, the repair-segment address table 30, and the RAM unit 70.
The program counter 40 can generate a sequential output of binary values that are used as access addresses to gain access to specific locations in the ROM unit 60 and RAM unit 70 so as to fetch out the program codes stored therein for the decoding/executing unit 75 to execute.
The multiplexer 50 has two input ends II, 2 which are respectively connected to receive the output of the program counter 40 and the output of the repair-segment address table 30. Further, the multiplexer 50 is coupled to the comparison circuit 20 in such a manner that when the comparison circuit 20 outputs SELECT=O, the multiplexer 50 will select the input value at its input end II as its output (i.e., the output of the program counter 40); whereas when SELECT=1, the multiplexer 50 will select the input value at its input end I2 as its output (i.e., the starting address of a selected repair program segment from the repair-segment address table 30). The output of the multiplexer 50 is denoted by PC whose value serves an access address to the ROM unit 60 and RAM unit 70.
The following description will explain, with reference to FIGs. 3A through 3C, how the invention can repair a number of faulty program segments in the ROM unit 60 by using the corresponding repair program segments of these faulty program segments that are then loaded into the RAM unit 70. In this example, assume four faulty program segments are found in the ROM unit 60 which will be repaired by the use of four corresponding repair program segments. It will be understood, however, that the invention is not limited to the repairing of four faulty program segments and, broadly speaking, can be used to repair any number of faulty program segments in the ROM unit 60.
Referring first to FIG. 3B, in the following example, assume that in the ROM unit 60, there are found four faulty program segments, as respectively indicated by the reference numerals 61, 62, 63, 64. Further, assume that the starting addresses of these faulty program segments 61, 62, 63, 64 are respectively EPCI, EPC2, EPC3, and EPC4 These faulty program segments 61, 62, 63, 64 are to be repaired by using four repair program segments, as respectively indicated by the reference numerals 71, 72, 73, 74, that are then loaded into the RAM unit 70 under control by the CPU 80. Assume that the starting addresses of these repair program segments 71, 72, 73, 74 are respectively RPC1, RPC2, RPC3, and RPC4. These repair program segments 71, 72, 73, 74 are preferably loaded into a continuous section of the RAM unit 70.
In accordance with the invention, the repair work will be carried out in such a manner that whenever the embedded microprocessor system encounters any one of the faulty program segments in the ROM unit 60, the value of the access address PC will be changed to the starting address of the corresponding repair program segment in the RAM unit 70. For instance, if the current access address PC is EPCI, which is the starting address of the first faulty program segment, the access address PC will be changed immediately to RPCI. Similarly, if the current access address PC is EPC2, which is the starting address of the second faulty program segment, the access address PC will be changed irnmediately to RPC2; if the current access address PC is EPC3, which is the starting address of the third faulty program segment, the access address PC will be changed immediately to RPC3; if the current access address PC is EPC4, which is the starting address of the fourth faulty program segment, the access address PC will be changed immediately to RPC4. In this manner, the repair program segments 71, 72, 73, 74 stored in the RAM unit 70 can be used respectively to repair the faulty program segments 61, 62, 63, 64 in the ROM unit 60, allowing the embedded microprocessor system to run programs smoothly without causing shutdown to the system when any faulty program segments are encountered.
Referring next to FIG. 3A, when the embedded microprocessor system finds the existence of the four faulty program segments 61, 62, 63, 64 in the ROM unit 60, the CPU 80 will register the starting addresses EPC1, EPC2, EPC3, and EPC4 of these faulty program segments 61, 62, 63, 64 in the faulty-segment address table 10, as respectively indicated by the reference numerals 11, 12, 13, 14. Moreover, after the repair program segments 71, 72, 73, 74 are loaded into the RAM unit 70, the starting addresses RPC1, RPC2, RPC3, and RPC4 thereof will be registered in the repairsegment address table 30, as respectively indicated by the reference numerals 31, 32, 33, 34.
As shown in FIG. 3A, the comparison circuit 20 includes four digital comparators 21, 22, 23, 24 and a four-input logic-OR gate 25. The first digital comparator 21 compares EPC1 with the current output of the program counter 40 (i.e., the current access address) to thereby generate an output S1 = I, if the comparison result is equal, and Sol=0, if the comparison result is unequal. In a similar manner, the second digital comparator 22 compares EPC2 with the current output of the program counter 40 to thereby generate an output S2=1 if the comparison result is equal, and S2=0 if the comparison result is unequal; the third digital comparator 23 compares EPC3 with the current output of the program counter 40 to thereby generate an output S3=1 if the comparison result is equal, and 53=0 if the comparison result is unequal; and the fourth digital comparator 24 compares EPC4 with the current output of the program counter 40 to thereby generate an output 54=1 if the comparison result is equal, and 54=0 if the comparison result is unequal.
The conditions ofS1=l will cause the repair-segment address table 30 to put the starting address of the corresponding repair program segment (in this case, the starting address RPC1) onto the data bus 301 that is connected to the second input end 12 of the multiplexer 50; the conditions of 52=1 will cause the repair-segment address table 30 to put the value of RPC2 onto the data bus 301; the conditions of 53=1 will cause the repair-segment address table 30 to put the value of RPC3 onto the data bus 301; and the conditions of 54=1 will cause the repair-segment address table 30 to put the value of RPC4 onto the data bus 301; Meanwhile, the four-input logic-OR gate 25 takes 51, 52, SJ, and 54 as inputs to thereby generate a logic-OR output SELECT. It is clear that SELECT=O only when 51=52=53=54=0, and SELECT=I otherwise. As mentioned earlier, the condition of SELECT=O will cause the multiplexer 50 to select the input value at its input end Il as its output (i.e., the output of the program counter 40); whereas the condition of SELECT=1 will cause the multiplexer 50 to select the input value at its input end I2 as its output (i.e., the starting address of the corresponding repair program segment from the repairsegment address table 30).
In other words, during the execution of the programs from the ROM unit 60, when the output of the program counter 40 is exactly equal to any one of the address values EPC1, EPC2, EPC3, and EPC4 registered in the faulty-segment address table 10, it will cause the corresponding, digital comparator in the comparison circuit 20 to output a logic value of 1 that in turn causes SELECT=1 and the repair-segment address table 30 to put the starting address of the corresponding repair program segment on the data bus 301.
For instance, when the output of the program counter 40 is equal to EPCI, it will cause the first digital comparator 21 in the comparison circuit 20 to output 51=1, thereby causing SELECT=I and the repair-segment address table 30 to put RPC1 on the data bus 301. As mentioned earlier, the condition of 5ELECT=1 will cause the multiplexer 50 to select the input value at its input end I2 as its output, which is in this case the starting address RPC1 from the repair-segment address table 30. As a result, the access address PC will instead take on the starting address RPC1 to thereby gain access to the first repair program segment 71 in the RAM unit 70. As a result, the decodinglexecuting unit 75 will execute the first repair program segment 71 in the RAM unit 70 in place of the first faulty program segment 61 in the RO2vI unit 60.
Referring further to FIG. 3C, assume that the first faulty program segment 61 takes up n address locations in the ROM unit 60 and the first repair program segment 71 takes up m address locations in the RAM unit 70, where n, m are both integers. The ending address of the first faulty program segment 61 is therefore [EPCl+(n-l)]; and the ending address of the first repair program segment 71 is therefore []?PCl+(m-1)j. In accordance with one aspect of the invention, the last instruction stored in the ending address [RPCl+(m-1)] of the first repair program segment 71 should be an unconditional jump to the address of [EPC1+(n), i.e., the immediate next address to the ending address [EPCl+(n- l) of the first faulty program segment 61.
In a similar manner, the condition of the output of the program counter 40 being equal to EPC2 will cause the embedded microprocessor system to change the value of the access address PC from EPC2 to RPC2, allowing the decodinglexecuting unit 75 to execute the second repair program segment 72 in the RAM unit 70 in place of the second faulty program segment 62 in the ROM unit 60; the condition of the output of the program counter 40 being equal to EPC3 will cause the embedded microprocessor system to change the value of the access address PC from EPC3 to RPC3, allowing the decoding/executing unit 75 to execute the third repair program segment 73 in the RAM unit 70 in place of the third faulty program segment 63 in the ROM unit 60; and the condition of the output of the program counter 40 being equal to EPC4 will cause the embedded microprocessor system to change the value of the access address PC from EPC4 to RPC4, allowing the decoding/executing unit 75 to execute the fourth repair program segment 74 in the RAM unit 70 in place of the fourth faulty program segment 64 in the ROM unit 60.
In conclusion, any program segments in the ROM unit 60 that need to be corrected or updated can be repaired by using modified versions of the faulty program segments (i.e., the repair program segments) which are loaded in the RAM unit 70. Since these reloadable repair program segments can be arbitrarily modified at any time, the repair work on the faulty program segments in the ROM unit 60 is easy and convenient to carry out. The embedded microprocessor system will therefore not suffer from shutdown due to any faulty program segments in the ROM unit 60. Moreover, these faulty program segments, if any, can be repaired easily simply by loading the repair program segments into the RAM unit 70, without having to replace the whole ROM unit with a new one that contains the correct programs.
As disclosed in the foregoing, the embedded microprocessor system 5 includes the faulty-segment address table 10, the comparison circuit 20, the repair-segment address table 30, the program counter 40, the multiplexer 50, the ROM unit 60, the RAM unit 70, and the decoding/executing unit 75. It is apparent to those skilled in the art of microprocessor systems that additional functional units can be incorporated in the embedded microprocessor system without departing from the spirit of the invention.
The invention has been described using exemplary preferred embodiments. However, it is to be understood that the scope of the invention is not limited to the disclosed embodiments. On the contrary, it is intended to cover various modifications and similar arrangements. The scope of the claims, therefore, should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements.

Claims (15)

  1. CLAIMS I. A program repairing apparatus for use on an embedded microprocessor system having a ROM unit to repair a number of faulty program segments in said ROM unit, comprising: reloadable storage means for storing a corresponding number of repair program segments which are used respectively to repair the faulty program segments in said ROM unit; a faulty-segment address table for registering the starting addresses of the faulty program segments in said ROM unit; a repair-segment address table for registering the starting addresses of the repair program segments in said reloadable storage means; a program counter for generating a sequential output of binary values serving as access addresses to said ROM unit and said reloadable storage means; a comparison circuit for comparing the output of said program counter with each of the starting addresses of the faulty program segments registered in said faulty-segment address table; if all comparison results are unequal, said comparison circuit generating a first selection control signal; otherwise, if one comparison result is equal, said comparison circuit generating a second selection control signal and a repair-segment selection signal, said repair-segment selection signal causing said repair-segment address table to output the starting address of the corresponding repair program segment needed to repair the current faulty program segment; and a multiplexer having a first input end connected to receive the output of said program counter and a second input end connected to receive the output of said repairsegment address table, said multiplexer being coupled to said comparison circuit such that the appearance of said first selection control signal causes said multiplexer to select the output of said program counter as output while the appearance of said second selection control signal causes said multiplexer to select the output of said repair segment address table as output; the output of said multiplexer being used as an access address to gain access to said ROM unit and said reloadable storage means.
  2. 2. The apparatus of claim 1, wherein said comparison circuit includes: a plurality of digital comparators, each being used to compare one of said starting addresses of said faulty program segments registered in said faulty-segment address table with the current output of said program counter; the output of each digital comparator being at a first logic state if the comparison result is unequal and at a second logic state if equal; and a logic-OR gate having a plurality of input ends connected respectively to receive the output of each of said digital comparators; wherein when the output of each of said digital comparators is at the first logic state, he output of said logic-OR gate represents the first selection control signal; whereas when the output of any one of said digital comparators is at the second logic state, the output of said logic-OR gate represents the second selection control signal.
  3. 3. The apparatus of claim 2, wherein said digital comparators in said comparison circuit are devised in one-to-one correspondence to the starting addresses of the faulty program segments registered in said faulty-segment address table.
  4. 4. The apparatus of claim 1, wherein the starting addresses of the faulty program segments registered in said faulty-segment address table are in one-to-one correspondence to the starting addresses of the repair program segments registered in said repair-segment address table.
  5. 5. The apparatus of claim 1, wherein each of said repair program segments is loaded into a continuous sequence of addresses in said reloadable storage means.
  6. 6. The apparatus of claim 1, wherein each of said faulty program segments is stored in a continuous sequence of addresses in said ROM unit.
  7. 7. The apparatus of claim 1, wherein in the repair program segments loaded in said reloadable storage means, the last instruction stored in the ending address of each of the repair program segments is an unconditional jump to an address in said ROM unit that is immediate next to the ending address of the corresponding faulty program segment.
  8. 8. The apparatus of claim I, wherein the data stored in said faulty-segment address table, said repair-segment address table, and said reloadable storage means are written in by an on-line system controller.
  9. 9. A program repairing apparatus for use on an embedded microprocessor system having a ROM unit to repair at least one faulty program segment in said ROM unit, comprising: reloadable storage means for storing a repair program segment which is used to repair the faulty program segment in said ROM unit; a faulty-segment address table for registering the starting address of the faulty program segment in said ROM unit; a repair-segment address table for registering the starting address of the repair program segment in said reloadable storage means; a program counter for generating a sequential output of binary values serving as access addresses to said ROM unit and said reloadable storage means; a comparison circuit for comparing the output of said program counter with the starting address of the faulty program segment registered in said faulty-segment address table; if the comparison result is unequal, said comparison circuit generating a first selection control signal; otherwise, if equal, said comparison circuit generating a second selection control signal and a repair-segment selection signal, said repair-segment selection signal causing said repair-segment address table to output the starting address of the repair program segment; and a multiplexer having a first input end connected to receive the output of said program counter and a second input end connected to receive the output of said repair segment address table, said multiplexer being coupled to said comparison circuit such that the appearance of said first selection control signal causes said multiplexer to select the output of said program counter as output while the appearance of said second selection control signal causes said multiplexer to select the output of said repairsegment address table as output; the output of said multiplexer being used as an access address to gain access to said ROM unit and said reloadable storage means.
  10. 10. The apparatus of claim 9, wherein said comparison circuit includes a digital comparator, being used to compare said starting address of said faulty program segment registered in said faulty-segment address table with the current output of said program counter; the output of said digital comparator being at a first logic state if the comparison result is unequal and at a second logic state if equal; wherein the first logic state represents the first selection control signal; whereas the second logic state represents the second selection control signal.
  11. 11. The apparatus of claim 9, wherein said repair program segment is loaded into a continuous sequence of address in said reloadable storage means.
  12. 12. The apparatus of claim 9, wherein said faulty program segment is stored in a continuous sequence of address in said ROM unit.
  13. 13. The apparatus of claim 9, wherein in the repair program segment loaded in said reloadable storage means, the last instruction stored in the ending address of each of the repair program segment is an unconditional Jump to an address in said ROM unit that is immediate next to the ending address of the corresponding faulty program segment.
  14. 14. The apparatus of claim 9, wherein the data stored in said faulty-segment address table, said repair-segment address table, and said reloadable storage means are written in by an on-line system controller.
  15. 15. A program repairing apparatus substantially as hereinbefore described with reference to and/or as illustrated in any one of or any combination of Figs. 2 to 3C of the accompanying drawings.
GB9720210A 1997-09-23 1997-09-23 Apparatus for repairing faulty program segments in embedded microprocessor systems Expired - Fee Related GB2330428B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
GB9720210A GB2330428B (en) 1997-09-23 1997-09-23 Apparatus for repairing faulty program segments in embedded microprocessor systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
GB9720210A GB2330428B (en) 1997-09-23 1997-09-23 Apparatus for repairing faulty program segments in embedded microprocessor systems

Publications (3)

Publication Number Publication Date
GB9720210D0 GB9720210D0 (en) 1997-11-26
GB2330428A true GB2330428A (en) 1999-04-21
GB2330428B GB2330428B (en) 2000-05-24

Family

ID=10819510

Family Applications (1)

Application Number Title Priority Date Filing Date
GB9720210A Expired - Fee Related GB2330428B (en) 1997-09-23 1997-09-23 Apparatus for repairing faulty program segments in embedded microprocessor systems

Country Status (1)

Country Link
GB (1) GB2330428B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2373888A (en) * 2001-03-30 2002-10-02 Toshiba Res Europ Ltd Dynamic vector address allocation for a code patching scheme
WO2007118743A1 (en) 2006-04-11 2007-10-25 Robert Bosch Gmbh Enhancement of the functionality of production-model software in a controller
US8438558B1 (en) 2009-03-27 2013-05-07 Google Inc. System and method of updating programs and data

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1488271A (en) * 1973-12-27 1977-10-12 Cii Control store unit addressing device
GB2292470A (en) * 1994-08-19 1996-02-21 Advanced Risc Mach Ltd Rom patching
GB2293033A (en) * 1994-09-07 1996-03-13 Seikosha Kk Control circuit enabling program modification
US5701506A (en) * 1994-05-31 1997-12-23 Mitsubishi Denki Kabushiki Kaisha Microcomputer having ROM program which can be altered

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1488271A (en) * 1973-12-27 1977-10-12 Cii Control store unit addressing device
US5701506A (en) * 1994-05-31 1997-12-23 Mitsubishi Denki Kabushiki Kaisha Microcomputer having ROM program which can be altered
GB2292470A (en) * 1994-08-19 1996-02-21 Advanced Risc Mach Ltd Rom patching
GB2293033A (en) * 1994-09-07 1996-03-13 Seikosha Kk Control circuit enabling program modification

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2373888A (en) * 2001-03-30 2002-10-02 Toshiba Res Europ Ltd Dynamic vector address allocation for a code patching scheme
WO2007118743A1 (en) 2006-04-11 2007-10-25 Robert Bosch Gmbh Enhancement of the functionality of production-model software in a controller
US8438558B1 (en) 2009-03-27 2013-05-07 Google Inc. System and method of updating programs and data

Also Published As

Publication number Publication date
GB2330428B (en) 2000-05-24
GB9720210D0 (en) 1997-11-26

Similar Documents

Publication Publication Date Title
US5938774A (en) Apparatus for repairing faulty program segments in embedded microprocessor systems
US5212693A (en) Small programmable array to the on-chip control store for microcode correction
US4542453A (en) Program patching in microcomputer
US5357627A (en) Microcomputer having a program correction function
US4831517A (en) Branch and return on address instruction and methods and apparatus for implementing same in a digital data processing system
US6804772B2 (en) Dynamic field patchable microarchitecture
EP0127440A2 (en) Integrated circuit device incorporating a data processing unit and a ROM storing applications program therein
US20020124161A1 (en) Data processing system having redirecting circuitry and method therefor
WO2000049495A2 (en) Patching of a read only memory
US7051231B2 (en) Microprocessor system architecture to correct built-in ROM code
US4446517A (en) Microprogram memory with page addressing and address decode in memory
US5701506A (en) Microcomputer having ROM program which can be altered
US4754393A (en) Single-chip programmable controller
KR970011215B1 (en) Microcomputer
US5983000A (en) Apparatus for patching a control program in a processor
US6925522B2 (en) Device and method capable of changing codes of micro-controller
US20070174680A1 (en) Method for patching built-in code in read only memory
GB2330428A (en) ROM program patching in an embedded microprocessor
CN114047952B (en) Processor and method for single chip microcomputer, single chip microcomputer and storage medium
JPH0876990A (en) Control circuit for camera
KR20020029921A (en) Method and apparatus for modifying microinstructions in a static memory device
CN115954037A (en) Method, device and equipment for improving yield of efuse chip and storage medium
JP2005063311A (en) Patch method and patch application program for processor system
JPH05128882A (en) Data processing device
US6954889B2 (en) Circuit for modifying stored data

Legal Events

Date Code Title Description
PCNP Patent ceased through non-payment of renewal fee

Effective date: 20160923