Unlock instant, AI-driven research and patent intelligence for your innovation.

Realize flexible and low-cost command replacement method and device

An instruction replacement, low-cost technology, applied in machine execution devices, program control design, instruments, etc., can solve the problem of wasting space to store the function entry address table, unable to support instruction replacement methods, etc., to achieve the effect of low cost

Active Publication Date: 2015-09-23
ACTIONS ZHUHAI MICROELECTRONICS CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But in the actual CPU chip, the probability of function writing error is very small, only a few function codes are wrong, so this instruction replacement method wastes a lot of space to store the function entry address table, and some current C language The compiler does not yet support this instruction substitution

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Realize flexible and low-cost command replacement method and device
  • Realize flexible and low-cost command replacement method and device
  • Realize flexible and low-cost command replacement method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] In order to make the purpose and advantages of the embodiments of the present invention more clear, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0034] Figure 4 It is a flow chart of the instruction replacement method of the instruction replacement device in the embodiment of the present invention, and the flow includes:

[0035] Step 401: Determine whether the instruction replacement condition is currently satisfied, if yes, replace the instruction opcode read from the current address on the address line, and then execute step 402; otherwise, execute step 403.

[0036] Step 402: Detect whether the instruction opcode read from the current address indicates a trap instruction, if yes, execute the replacement code in the preset address, and end the process; otherwise, execute step 403.

[0037] In the embodiment of the present invention, the trap instruction is a pre-set instruction t...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a device and a method for realizing instruct replacement. When a code instruct replacement condition is met currently, instruct operation codes read out from current addresses on an address line are replaced. For instructs only needing the replacement of the instruct replacement codes, coding and performance are continuously carried out subsequently. For instructs needing the replacement of more contents, when the instruct operation codes read out from the current addresses are detected to be indicative of trap instructs, replacement codes in preset address are performed so that the instruct replacement is indirectly realized. With the adoption of the device and the method for realizing instruct replacement, instructs fixed in a mask read-only memory (MASK ROM) of a CUP (central processing unit) can be flexibly replaced on the premise that the structure of the existing central processing unit CPU is not mainly changed and a compiler is not changed, and furthermore, the MASK ROM is not needed to be changed, and a function entry address list does not need to be constructed, therefore, the implementation cost is lower.

Description

technical field [0001] The invention relates to instruction replacement technology, in particular to a flexible and low-cost instruction replacement method and device. Background technique [0002] The process of executing instructions by the central processing unit (CPU, Computer Progress Unit) can be briefly described as the following process: the instruction fetching unit fetches instructions from the program space and transmits them to the decoding unit; the decoding unit performs decoding and transmits the decoding results to the execution unit; the execution unit executes the instruction. [0003] After the CPU chip is made, the instructions are solidified in the mask read-only memory (MASK ROM, Read Only Memory) of the CPU chip. Sometimes the above instructions need to be replaced. The prior art includes the following three instruction replacement methods: [0004] First, figure 1 It is a schematic diagram of the first instruction replacement method in the prior art...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/30G06F9/34
Inventor 彭洪汤江逊
Owner ACTIONS ZHUHAI MICROELECTRONICS CO LTD