The invention provides replacement operation code for specific defective lines of operation code contained in a rom often on an ASIC chip which code is used in a processor. rom memory constitutes the best use of chip space and is the most economical to manufacture of all of the various options. rom memory is not changeable after it is set in rom and, hence, if there is any change in the code (hereinafter sometimes faulty code) required after the code has been incorporated in the rom memory, such change cannot be made in the rom itself without replacing the entire rom. The present invention allows change in any specific lines of faulty contained in rom without replacing the entire rom, and provides for changing only the faulty lines of code. It also allows the new code to have the same, more, or fewer lines than the faulty code.
|
1. A method of fixing a faulty line or lines of operating code for delivery to a processor from a rom contained in a location of said rom designated by an address, said operating code being requested by said processor, comprising the steps of:
providing a ram having address locations, operating code locations associated with said address locations, and at least two flag bit locations associated with at least one of said address location;
identifying said line or lines of said faulty operating code in said rom;
writing and storing correct line or lines of code in said ram at said address location in ram for each location of said faulty code in rom starting at the first line of faulty code sequence and storing the address of said first line of faulty code in said ram,
setting a start flag at one flag bit location at said address of said correct code in said ram;
setting an end flag at said second flag bit location on the last line of correct code in said ram;
snooping said ram for an address indicated by said start flag and, when found, delivering said correct code to said processor in place of said faulty code from said rom until a line of code has an end bit flag; and
returning to said rom after said replacement code at said location of said detected end bit has been delivered.
11. An integrated circuit (I/C) chip having thereon a program for fixing a faulty line or lines of operating code for delivery to a processor from a rom on said I/C chip, said operating code contained in a location on said rom designated by an address, said operating code being requested by said processor, and a ram on said I/C chip having address locations, operating code locations associated with said address locations and at least two flag bit locations associated with at least one of said address locations; said program comprising;
identifying said line or lines of said faulty operating code in said rom;
writing and storing correct line or lines of code in said ram at said address location in ram for each location of said faulty code in rom starting at the first line of faulty code sequence and storing said address of said first line of faulty code in said ram,
setting a start flag at one flag bit location at said address of said correct code in said ram;
setting an end flag at said second flag bit location on the last line of correct code in said ram;
snooping said ram for an address indicated by said start flag and, when found, delivering said correct code to said processor in place of said faulty code from said rom until a line of code has an end bit flag; and
returning to said rom after said replacement code at said location of said detected end bit has been delivered.
2. The invention as defined in
3. The invention as defined in
4. The invention as defined in
5. The invention as defined in
6. The invention as defined in
7. The invention as defined in
8. The invention as defined in
9. The invention as defined in
10. The invention as defined in
12. The invention as defined in
13. The invention as defined in
14. The invention as defined in
15. The invention as defined in
16. The invention as defined in
17. The invention as defined in
18. The invention as defined in
19. The invention as defined in
20. The invention as defined in
|
The invention generally relates to replacement of faulty operating code in a ROM memory for a processor and, more particularly, to a RAM replacement for specific lines of faulty ROM code where the replacement code may contain the same, fewer or more than the number of lines of faulty code being replaced.
In integrated circuits, one requirement is for memory that contains “code” for a processor element. This memory can be read-only memory (ROM), random access memory (RAM), electrically erasable random access memory (EERAM), or other (generally larger) memory structures. ROM retains its memory after power-down since it is built during the IC build process. ROM cannot be changed after manufacture of the IC. EERAM can retain its information after power-down and usually takes a dedicated write sequence to change information within the EERAM. RAM cannot retain the information contained within it after power is removed from the IC. Thus, RAM must be loaded from another memory source at power-up.
The size of the memory is an important factor in the selection of the type of memory used. ROM is the smallest area for a given number of memory locations, followed by RAM and then EERAM and other (generally larger) memory structures. The ideal memory for processor code use is the ROM, except for the fact that one cannot change the information within the ROM after manufacture.
The processor code or software dictates the processor operation for the function used within the integrated circuit. Although design methodology flows are similar for hardware and software designs, software suffers from a much larger correct verification space. Thus, software code can sometimes contain errors at the time of production of the integrated circuit. This means that any code produced in ROM in a production IC may be “imperfect” but the use of ROM dictates “perfect” code.
Other solutions include the use EERAM and RAM (loaded from an off-chip memory) and other (generally larger) memory structures. These solutions allow the designer to change processor code after manufacture. Both of these solutions end up costing a much larger chip or board cost than the use of ROM memory.
One hybrid solution is to combine ROM with RAM. This hybrid solution has the ROM code branch or go check the RAM memory for a flag or new code. These checks are interspersed throughout the ROM code with sections that are containable in the amount of RAM available. An example of this is a branch to RAM jump table every 4K of Code. If an error is found in a particular block of ROM code, that section would contain a real jump to the new code in RAM and would bypass the code on the ROM. The problem with this hybrid solution is that the number of errors must be guessed at before hand during system design. The designer of the IC must determine how much RAM must be made available at the time of manufacture.
A second problem of this hybrid approach is that small errors still require the entire block to be replaced, which means that several small errors could require the entire ROM to need to be substituted by the RAM. If the replacement blocks are smaller, then more checking time as opposed to operating time is required These are just not practical.
The problem is how to replace random errors in ROM with a minimum of extra resources.
The invention is adapted to provide replacement operation code for specific defective lines of operation code contained in a ROM (read only memory) often on an ASIC (application specific integrated circuit) chip which code is for use in a processor. As indicated above, ROM memory constitutes the best use of chip space and is the most economical to manufacture of all of the various options. However, ROM memory is not changeable after it is set in ROM and, hence, if there is any change in the code (hereinafter sometimes referred to as faulty code) required after the code has been incorporated in the ROM memory, such change cannot be made in the ROM itself without replacing the entire ROM. The present invention allows change in any specific lines of faulty code contained in ROM without replacing the entire ROM, and provides for changing only the faulty lines of code. It also allows the new code to have the same, more or less, lines than the lines of faulty code.
Referring now to the drawings, and for the present to
A RAM 20 is provided having various fields including code which can be changed at will, as is well known in the art. This RAM is preferably configured as a cache RAM in that all TAG addresses are simultaneously searchable. The RAM 20 is loaded with the desired information from a source (not shown) off the chip 13. The purpose of the RAM 20 is to receive new code that is to replace any faulty code in ROM 12, together with the address of the faulty code to be replaced. Snoop logic 22 connects the address bus14 with RAM 20 providing for snooping of the RAM 20 to see if new lines of code have been provided to the RAM 20 for each address from which a fetch of code is requested by processor 10. Control logic 24 is provided to control where the code is to be fetched (from ROM 12 or RAM 20) by the processor 10, including control of the multiplexer 18. Various busses, such as bus 26 between the RAM 12 and control logic 24, bus 28 between the control logic 24 and snoop logic 22, bus 30 between snoop logic 22 and RAM 20, instruction bus 32 between RAM 20 and multiplexer 18, bus 34 between control logic 24 and multiplexer 18, and bus 36 from control logic 24 to processor 10 (if necessary) as will be described presently are provided.
The snoop logic 22 and control logic 24 operate to replace the faulty lines of code in the ROM 12 with the corrected lines of code in the RAM 20 in the following way: First, take the case of one line of faulty code being replaced by one line of corrected code. Using the example in
If the processor 10 is of the type that has cache memory in which the lines of code are stored, then after the code from the RAM 20 has been utilized, it is purged from the processor's cache memory to assure that the proper code is next utilized. This will become more apparent in the case wherein more or less lines of revised or corrected code are required to replace a given number of lines of faulty code. If, however, the processor is of the configuration that does not have a cache memory, a flush function is not used or, if present, is it ineffective.
Referring next to a situation wherein more than one line of code is required to replace a single line of code in the ROM 12, in this case it is necessary to “trick the processor” into “thinking” that only a single line of code is being replaced. In this case, when the snoop logic 22 detects that a line of code at address A345 from the ROM 12 is being replaced by detecting that the start flag 44 is active, the code at address A345 will be delivered from the RAM 20 rather than from the ROM 12. However, since the end flag 48 at address A345 is not active in RAM 20, i.e. is not set, then the instructions at section 42 at the following address A346 is delivered to the processor. Since the continue flag 46 is active at address A346, this will indicate that this address A346 is not the last address in this series, but rather another address with a line of code from section 42 of the RAM 20 will follow. Thus, the next line of code in section 42 from address A347 in the RAM 20 will be delivered to the processor 10 after the line of code at address A346 has been executed. However, the code in code section 42 of the RAM 20 is the last line of code in this sequence to be delivered to the processor, so the end flag 48 at address A347 is set, indicating that the processor is to get its next instruction from the ROM 12. To accomplish the return to the ROM 12 at the proper place following the corrected line of code with several lines of code from the RAM 20, the line of code at address A347 in the RAM 20 is a jump instruction for the processor to return to address A346 in the ROM 12, thus requiring the processor 10 to do a backward jump. Most present day processors 10 have this capability. The processor 10 continues until a new corrected code in RAM 20 is indicated by the start flag 44
The following represents sequences of various replacement codes in RAM 20 for defective operational codes in ROM 12. When the last code of the fix sequence is accessed, the “end” bit is recognized and the instructions from the RAM 20 are turned off. Thus, if the last code fetched from RAM 20 is a jump to address 3, then the next code fetched will be from address 3 in Rom 12, not from RAM 20. Thus, a sequence of more lines in replacement code than lines in defective code above would appear as an address sequence as follows:
Address
ROM
RAM
1
Mov
2
Sub
3
Mov
4
Add
5
Jump 3
3
Sub
4
Mov
5
Mov
Likewise, a code replacement code sequence that is shorter than the replacement sequence would use a jump or branch instruction to go to the next correct instruction in the ROM 12. An example of this is shown as:
ROM Incorrect
1
Mov
2
Add
3
Sub
4
Mov
5
Mov
ROM
RAM
Replacement Code
1
Mov
2a
Sub
2b
Jump 5
3
Sub
4
Mov
5
Mov
Which would then appear as:
1
Mov
2
Sub
3
Jump 5
5
Mov
In the case of a branch or jump within the fix code to another fix code location, the continue bit would stay on and the next code would then proceed from the RAM 20. In all cases where the number of lines of replacement code is different from (less or more) the defective code being replaced, the last line of the replacement code is a jump instruction.
In all of these cases, if the processor has a cache memory, the processor must flush its internal code cache so that a refetch of a fix opcode will not occur when returning to the original code sequence.
Patent | Priority | Assignee | Title |
9547489, | Mar 31 2014 | Qualcomm Incorporated | System and method for modifying a sequence of instructions in a read-only memory of a computing device |
9760367, | Aug 06 2010 | Robert Bosch GmbH | Method for reconfiguring software parameters in a microcontroller as well as a microcontroller and control unit |
Patent | Priority | Assignee | Title |
4028678, | Oct 16 1975 | Bell Telephone Laboratories, Incorporated | Memory patching circuit |
4028684, | Oct 16 1975 | Bell Telephone Laboratories, Incorporated | Memory patching circuit with repatching capability |
4769767, | Jan 03 1984 | NCR Corporation | Memory patching system |
5051897, | Mar 11 1988 | Mitsubishi Denki Kabushiki Kaisha | Single-chip microcomputer with memory patching capability |
5757690, | Apr 23 1997 | SAMSUNG ELECTRONICS CO , LTD | Embedded ROM with RAM valid bits for fetching ROM-code updates from external memory |
5970013, | Feb 26 1998 | AVAGO TECHNOLOGIES GENERAL IP SINGAPORE PTE LTD | Adaptive addressable circuit redundancy method and apparatus with broadcast write |
6011733, | Feb 26 1998 | AVAGO TECHNOLOGIES GENERAL IP SINGAPORE PTE LTD | Adaptive addressable circuit redundancy method and apparatus |
6073252, | Sep 25 1997 | SHENZHEN XINGUODU TECHNOLOGY CO , LTD | Data processing system with memory patching and method thereof |
6421283, | Sep 27 2000 | WASHINGTON SUB, INC ; Skyworks Solutions, Inc; ALPHA INDUSTRIES, INC | Trap and patch system for virtual replacement of defective volatile memory cells |
6438664, | Oct 27 1999 | Advanced Micro Devices, Inc. | Microcode patch device and method for patching microcode using match registers and patch routines |
6463549, | Sep 28 2000 | SHENZHEN XINGUODU TECHNOLOGY CO , LTD | DEVICE AND METHOD FOR PATCHING CODE RESIDING ON A READ ONLY MEMORY MODULE UTILIZING A RANDOM ACCESS MEMORY FOR STORING A SET OF FIELDS, EACH FIELD INDICATING VALIDITY OF CONTENT OF A GROUP, AND FOR RECEIVING AN ADDRESS OF A MEMORY PORTION OF THE READ ONLY MEMORY |
6530005, | Dec 30 1999 | Micronas GmbH | Circuit arrangement and method for creating and retrieving patch data from memory |
7051231, | Aug 05 2002 | Faraday Technology Corp. | Microprocessor system architecture to correct built-in ROM code |
7103736, | Aug 11 2003 | MEADLOCK, JAMES W, MEAD | System for repair of ROM programming errors or defects |
20020124161, | |||
20030084229, | |||
GB2292470, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Oct 20 2003 | GOODNOW, KENNETH J | International Business Machines Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 014633 | /0266 | |
Oct 23 2003 | International Business Machines Corporation | (assignment on the face of the patent) | / | |||
May 03 2011 | International Business Machines Corporation | Google Inc | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 026664 | /0866 | |
Sep 29 2017 | Google Inc | GOOGLE LLC | CHANGE OF NAME SEE DOCUMENT FOR DETAILS | 044127 | /0735 |
Date | Maintenance Fee Events |
Oct 24 2007 | ASPN: Payor Number Assigned. |
May 27 2011 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Jul 11 2012 | ASPN: Payor Number Assigned. |
Jul 11 2012 | RMPN: Payer Number De-assigned. |
May 27 2015 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
Jul 15 2019 | REM: Maintenance Fee Reminder Mailed. |
Dec 30 2019 | EXP: Patent Expired for Failure to Pay Maintenance Fees. |
Date | Maintenance Schedule |
Nov 27 2010 | 4 years fee payment window open |
May 27 2011 | 6 months grace period start (w surcharge) |
Nov 27 2011 | patent expiry (for year 4) |
Nov 27 2013 | 2 years to revive unintentionally abandoned end. (for year 4) |
Nov 27 2014 | 8 years fee payment window open |
May 27 2015 | 6 months grace period start (w surcharge) |
Nov 27 2015 | patent expiry (for year 8) |
Nov 27 2017 | 2 years to revive unintentionally abandoned end. (for year 8) |
Nov 27 2018 | 12 years fee payment window open |
May 27 2019 | 6 months grace period start (w surcharge) |
Nov 27 2019 | patent expiry (for year 12) |
Nov 27 2021 | 2 years to revive unintentionally abandoned end. (for year 12) |