CN1570876A - Method and device for implementing single-chip microcomputer simulation using instruction replacement - Google Patents

Method and device for implementing single-chip microcomputer simulation using instruction replacement Download PDF

Info

Publication number
CN1570876A
CN1570876A CN 200410023183 CN200410023183A CN1570876A CN 1570876 A CN1570876 A CN 1570876A CN 200410023183 CN200410023183 CN 200410023183 CN 200410023183 A CN200410023183 A CN 200410023183A CN 1570876 A CN1570876 A CN 1570876A
Authority
CN
China
Prior art keywords
port
instruction
emulation
circuit
value
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
CN 200410023183
Other languages
Chinese (zh)
Other versions
CN1293475C (en
Inventor
曾菊阳
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.)
Changsha Chrysanthemum Microelectronics Co Ltd
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CNB2004100231835A priority Critical patent/CN1293475C/en
Publication of CN1570876A publication Critical patent/CN1570876A/en
Application granted granted Critical
Publication of CN1293475C publication Critical patent/CN1293475C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

This invention discloses a kind of method and apparatus that can realize Single Chip Micyoco simulation by command replacement. The apparatus comprises simulating CPU, external program storage and synchronous preprocessing storage, command replacement and port reproduction circuit, simulation monitoring circuit, user-board simulation interface. The method is: when the command replacement and port reproduction circuit monitors that the simulating CPU will execute the import or export operation to data bus port or address bus port, the command replacement circuit replaces it with the other command immediately. And under the control of prot reproduction circuit, the reproduction port finishes the same import or export operation.

Description

Replace method and the device thereof of realizing one-chip machine simulation with instruction
Technical field
The present invention is mainly concerned with the one-chip machine simulation field, refers in particular to a kind of method and device thereof of realizing one-chip machine simulation of replacing with instruction.
Background technology
Along with development of computer, the single-chip microcomputer kind that each single-chip microcomputer manufacturer produces is more and more, and internal resource is more and more abundanter.Use these single-chip microcomputers for developing better, need the support of simulator.Present domestic one-chip machine simulation device mainly adopts Bondout emulation technology and HOOKS emulation technology.Adopt the Bondout emulation technology to produce simulator, need use dedicated emulated chip, dedicated emulated chip is on the basis of standard chips, added the port and the hardware circuit that are used for emulation, it does not take the input/output port (I/O) of standard chips, but emulation bus is drawn with special-purpose I/O pin, it does not take the family resource, the authenticity of emulation is good, but it can only the simulation standard chip, and is can the emulation chip kind few; Adopt the HOOKS emulation technology to produce simulator, need obtain the mandate of Philips company, and emulation CPU must contain the hardware circuit of supporting the HOOKS technology, after the single-chip microcomputer that contains the HOOKS technology enters the HOOKS simulation status, address data bus mouth P0, the P2 mouth is with timesharing ground output/input bus and P0, the value of P2 port, emulator with hardware circuit with multiplexing P0, the P2 mouth expands to independently emulation bus and user P0, the P2 mouth, most of Philips 51 series monolithics of its energy emulation, but just can not realize that to a lot of single-chip microcomputers of not supporting the HOOKS technology emulation or emulation are untrue, energy emulation chip kind is less.
Summary of the invention
The technical problem to be solved in the present invention is: at the technical matters of prior art existence, provide that a kind of applicability is strong, the authenticity of the emulation that can be applicable to all kinds of single-chip microcomputers, emulation is high replaces method and the device thereof of realizing one-chip machine simulation with instruction, solve the user and address bus mouth, data bus mouth are used as input/output port (I/O) use and but can not get required result, but also the problem that program is run chaotically.
In order to solve the problems of the technologies described above, the solution that the present invention proposes is: a kind of method that realizes one-chip machine simulation of replacing with instruction, its step for utilize earlier emulation monitoring and communication interface circuit with the ownership goal code storage to external program memory with synchronously in the pre-service storer, start emulation CPU by the emulation supervisory circuit then and begin to carry out program in the external program memory, it is characterized in that: replace with port when instruction and remake circuit monitoring when emulation CPU is about to read the operational code of new instruction, judge according to the operand of synchronous pre-service storer whether this new instruction is the I/O instruction, when the result when being, the instruction replacement circuit is replaced with other instruction immediately, and under port remakes circuit control, finish identical input-output operation by remaking port.
A kind of device with instruction replacement realization one-chip machine simulation is provided, it is characterized in that described device comprises emulation CPU, external program memory, pre-service storer, instruction synchronously replaced and port remakes circuit, emulation monitoring and communication interface circuit, user's plate emulation interface; Described emulation CPU refers to that control line, address data bus mouth, address bus mouth and instruction are replaced and remakes the link to each other line data of going forward side by side of circuit with port and exchange by getting; Described external program memory is replaced by data line, read-write control line, address wire and instruction and is remake the link to each other line data of going forward side by side of circuit with port and exchange; User's plate emulation interface is connected with other port that remakes port and emulation CPU that port remakes the circuit generation, and described other port is meant that emulation CPU goes up all of the port except that address bus mouth, address data bus mouth.
Described device downloads to external program memory and synchronous pre-service storer by emulation monitoring and communication interface circuit with the ownership goal code; The address wire of pre-service storer is identical with external program memory synchronously, and the pre-service storer is used to store the operand of each bar instruction except that operational code synchronously; Start emulation CPU by the emulation supervisory circuit and begin to carry out program in the external program memory; Instruction is replaced with port and is remake circuit monitoring when emulation CPU is about to read the operational code of new instruction, judge that according to the operand of synchronous pre-service memory stores whether this new instruction is the instruction of data bus mouth or address bus mouth being carried out input and output, if, replace with other instruction immediately by the instruction replacement circuit, and remake at port under the control of circuit, finish identical input-output operation by remaking port.
Because the present invention had not both required that emulation CPU had the port of the emulation of being specifically designed to, do not require the hardware circuit that itself has the emulation of being specifically designed to yet, therefore but the present invention just is to have increased the single-chip microcomputer kind of emulation with respect to the advantage of prior art, has improved the authenticity of emulation.
Description of drawings
Fig. 1 is the schematic flow sheet of the inventive method;
Fig. 2 is the synoptic diagram of apparatus of the present invention;
Fig. 3 is the example schematic of apparatus of the present invention;
Fig. 4 be in the order set of 51 series monolithics with P0, the relevant instruction synoptic diagram of P2 mouth.
Embodiment
Embodiment: following will be that example is described in further details the present invention in conjunction with the accompanying drawings with emulation 51 series monolithics.
As shown in Figure 1, the present invention downloads to external program memory and synchronous pre-service storer by emulation monitoring and communication interface circuit with the ownership goal code.The address wire of pre-service storer is identical with external program memory synchronously, and the pre-service storer is used to store the operand of each bar instruction except that operational code synchronously.Start emulation CPU by the emulation supervisory circuit and begin to carry out program in the external program memory.Instruction is replaced with port and is remake circuit monitoring when emulation CPU is about to read the operational code of new instruction, judge that according to the operand of synchronous pre-service memory stores whether this new instruction is the instruction of data bus mouth or address bus mouth being carried out input and output (I/O), if, replace with other instruction immediately by the instruction replacement circuit, and remake at port under the control of circuit, finish identical input and output (I/O) operation by remaking port.
Emulation CPU only requires to have data bus mouth, the address bus mouth that is used to move external program and get the finger control line, but emulation CPU itself can not have the port or the hardware circuit of the emulation of being specifically designed to.
The device with instruction replacement realization one-chip machine simulation as shown in Figures 2 and 3 comprises a kind of with instructing the device of replacing the realization one-chip machine simulation, and described device comprises that emulation CPU, external program memory, synchronous pre-service storer, instruction replacement remake circuit, emulation monitoring and communication interface circuit, user's plate emulation interface with port; Described emulation CPU refers to that control line, address data bus mouth, address bus mouth and instruction are replaced and remakes the link to each other line data of going forward side by side of circuit with port and exchange by getting; Described external program memory is replaced by data line, read-write control line, address wire and instruction and is remake the link to each other line data of going forward side by side of circuit with port and exchange; User's plate emulation interface is connected with other port that remakes port and emulation CPU that port remakes the circuit generation, and described other port is meant that emulation CPU goes up all of the port except that address bus mouth, address data bus mouth.
As shown in Figure 4, in the order set of 51 series monolithics, the instruction relevant with P0, P2 mouth has 50, wherein PX represents P0 or P2 mouth, PX.X represents one of P0.0, P0.1, P0.2, P0.3, P0.4, P0.5, P0.6, P0.7, P2.0, P2.1, P2.2, P2.3, P2.4, P2.5, P2.6, P2.7, and Ri represents one of R0, R1, R2, R3, R4, R5, R6, R7.
To be described in detail the instruction replacement process of each bar instruction among Fig. 4 below:
1. instruct for SETB PX.X:
Replace with following instruction:
MOV A, 0E0H; Putting simultaneously and remaking port PX.X is 1
2. instruct for CLR PX.X:
Replace with following instruction:
MOV A, 0E0H; Putting simultaneously and remaking port PX.X is 0
3. instruct for CPL PX.X:
Replace with following instruction:
MOV A, 0E0H; To remake port PX.X negate simultaneously
4. for MOV PX.X, C instructs:
Replace with following instruction:
JBC EA, REL1; Putting and remaking port PX.X is 1
USER1:JC USER1-1; C turned back to user program at 1 o'clock
SJMP USER1-1; Putting and remaking port PX.X is 0, turns back to user program
REL1:JC USER1-1; C turned back to user program at 1 o'clock
SETB EA; Putting and remaking port PX.X is 0
SJMP USER1-1; Turn back to user program
5. for MOV C, PX.X instructs:
If PX.X is 1, replace with following instruction:
SETB 0D7H
If PX.X is 0, replace with following instruction:
CLR 0D7H
6. for ANL C, PX.X instructs:
If PX.X is 1, replace with following instruction:
MOV A,0E0H
If PX.X is 0, replace with following instruction:
CLR 0D7H
7. for ANL C ,/PX.X instructs:
If PX.X is 1, replace with following instruction:
CLR 0D7H
If PX.X is 0, replace with following instruction:
MOV A,0E0H
8. for ORL C, PX.X instructs:
If PX.X is 1, replace with following instruction:
SETB 0D7H
If PX.X is 0, replace with following instruction:
MOV A,0E0H
9. for ORL C ,/PX.X instructs:
If PX.X is 1, replace with following instruction:
MOV A,0E0H
If PX.X is 0, replace with following instruction:
SETB 0D7H
10. for JBC PX.X, REL instructs:
If PX.X is 1, replace with following instruction:
SJMP 01H; Putting simultaneously and remaking port PX.X is 0
If PX.X is 0, replace with following instruction:
SJMP REL+1
11. for JB PX.X, the REL instruction:
If PX.X is 1, replace with following instruction:
SJMP 01H
If PX.X is 0, replace with following instruction:
SJMP REL+1
12. for JNB PX.X, the REL instruction:
If PX.X is 0, replace with following instruction:
SJMP REL+1
If PX.X is 1, replace with following instruction:
SJMP 01
13. for MOV PX, the #DATA instruction, replace with following instruction:
MOV 0E0H, 0E0H; To remake port PX assignment simultaneously is DATA
14. for MOV PX, the A instruction, replace with following instruction:
JBC EA, REL2<!--SIPO<DP n=" 5 "〉--〉<dp n=" d5 "/USER2:MOVC A , @A+PC; Obtain the value (being made as VALUE) of A, will remake port PX assignment simultaneously is VALUE; Carry out MOVC A, during the @A+PC instruction, instruction is replaced and port remakes circuit according to the address at this instruction place and the address of being tabled look-up, can calculate the value of A, MOV A down together), #VALUE; Recover the value SJMP USER2-1 of A; Return user program REL2:MOVC A , @A+PC; Obtain the value (being made as VALUE) of A, will remake port PX assignment simultaneously is VALUE MOV A, #VALUE; Recover the value SETB EA SJMP USER2-1 of A; Return user program
15. for MOV PX, the DIRECT instruction, replace with following instruction:
JBC EA, REL3 USER3:MOVC A , @A+PC; Obtain value (being made as VALUE1) the MOV A of A, DIRECT MOVC A , @A+PC; Obtain the value (being made as VALUE2) of A, will remake port PX assignment simultaneously is VALUE2 MOV A, #VALUE1; Recover the value SJMP USER3 of A; Return user program REL3:MOVC A , @A+PC; Obtain value (being made as VALUE1) the MOV A of A, DIRECT MOVC A , @A+PC; Obtain the value (being made as VALUE2) of A, will remake simultaneously end<!--SIPO<DP n=" 6 "〉--〉<dp n=" d6 "/a mouthful PX assignment is VALUE2 MOV A, #VALUE1; Recover the value SETB EA SJMP USER3 of A; Return user program
16., replace with following instruction for MOV PX , @R0 instruction:
JBC EA, REL4 USER4:MOVC A , @A+PC; Obtain value (being made as VALUE1) the MOV A , @R0 MOVC A , @A+PC of A; Obtain the value (being made as VALUE2) of A, will remake port PX assignment simultaneously is VALUE2 MOV A, #VALUE1; Recover the value SJMP USER4-1 of A; Return user program REL4:MOVC A , @A+PC; Obtain value (being made as VALUE1) the MOV A , @R0 MOVC A , @A+PC of A; Obtain the value (being made as VALUE2) of A, will remake port PX assignment simultaneously is VALUE2 MOV A, #VALUE1; Recover the value SETB EA SJMP USER4-1 of A; Return user program
17., replace with following instruction for MOV PX , @R1 instruction:
JBC EA, REL5 USER5:MOVC A , @A+PC; Obtain the value (being made as VALUE1) of A<!--SIPO<DP n=" 7 "〉--〉<dp n=" d7 "/MOV A , @R1 MOVC A , @A+PC; Obtain the value (being made as VALUE2) of A, will remake port PX assignment simultaneously is VALUE2 MOV A, #VALUE1; Recover the value SJMP USER5-1 of A; Return user program REL5:MOVC A , @A+PC; Obtain value (being made as VALUE1) the MOV A , @R1 MOVC A , @A+PC of A; Obtain the value (being made as VALUE2) of A, will remake port PX assignment simultaneously is VALUE2 MOV A, #VALUE1; Recover the value SETB EA SJMP USER5-1 of A; Return user program
18. for MOV A, the PX instruction, replace with following instruction:
MOV A, #VALUE; Obtain the value (being made as VALUE) that remakes port PX
19. for MOV DIRECT, the PX instruction, replace with following instruction:
MOV DIRECT, #VALUE; Obtain the value (being made as VALUE) that remakes port PX
20. for MOV @R0, the PX instruction, replace with following instruction:
MOV @R0, #VALUE; Obtain the value (being made as VALUE) that remakes port PX
21. for MOV @R1, the PX instruction, replace with following instruction:
MOV @R1, #VALUE; Obtain the value (being made as VALUE) that remakes port PX
22. for MOV P0, the P2 instruction, replace with following instruction:
MOV 0E0H, 0E0H; Obtain the value that remakes port P2, and assignment is to remaking port P0
23. for MOVX @DPTR, the A instruction, replace with following instruction:
MOVX @DPTR, A; With address data bus with remake port and be communicated with, finish write operation
24., replace with following instruction for MOVX A , @DPTR instruction:
MOVX A , @DPTR; With address data bus with remake port and be communicated with, finish read operation
25., replace with following instruction for MOVX A , @R0 instruction:
MOVX A , @R0; With address data bus with remake port and be communicated with, finish read operation
26., replace with following instruction for MOVX A , @R1 instruction:
MOVX A , @R1; With address data bus with remake port and be communicated with, finish read operation
27. for MOVX @R0, the A instruction, replace with following instruction:
MOVX @R0, A; With address data bus with remake port and be communicated with, finish write operation
28. for MOVX @R1, the A instruction, replace with following instruction:
MOVX @R1, A; With address data bus with remake port and be communicated with, finish write operation
29. for MOV Ri, the PX instruction, replace with following instruction:
MOV Ri, #VALUE; Obtain the value (being made as VALUE) that remakes port PX
30. for MOV PX, the Ri instruction, replace with following instruction:
JBC EA, REL6 USER60:MOVC A , @A+PC; Obtain value (being made as VALUE1) the MOV A of A, Ri MOVC A , @A+PC; Obtain the value (being made as VALUE2) of A, will remake port PX assignment simultaneously is VALUE2 MOV A, #VALUE1; Recover the value SJMP USER60-1 of A; Return user program REL6:MOVC A , @A+PC; Obtain value (being made as VALUE1) the MOV A of A, Ri MOVC A , @A+PC; Obtain the value (being made as VALUE2) of A, will remake port PX assignment simultaneously is VALUE2 MOV A, #VALUE1; Recover the value SETB EA SJMP USER60-1 of A; Return user program
31. for DJNZ PX, the REL instruction, replace with following instruction:
If remake port PX is 01H, with as the replacement that gives an order:
SJMP 01; Putting simultaneously and remaking port PXX is 00H
If remake port PX, with as giving an order replacement for 01H:
SJMP REL+1; The value that will remake port PXX simultaneously subtracts 1
32. for CJNE A, PX, the REL instruction, replace with following instruction:
CJNE A, #VALUE, REL; Obtain the value (being made as VALUE) that remakes port PX
33. for ADD A, the PX instruction, replace with following instruction:
ADD A, #VALUE; Obtain the value (being made as VALUE) that remakes port PX
34. for ADDC A, the PX instruction is replaced with following instruction;
ADDC A, #VALUE; Obtain the value (being made as VALUE) that remakes port PX
35. for SUBB A, the PX instruction, replace with following instruction:
SUBB A, #VALUE; Obtain the value (being made as VALUE) that remakes port PX
36. for ANL PX, the #DATA instruction, replace with following instruction:
MOV 0E0H, 0E0H; The value and the DATA that remake port PX make logical and
37. for ORL PX, the #DATA instruction, replace with following instruction:
MOV 0E0H, 0E0H; The value and the DATA that remake port PX make logical OR
38. for ANL A, the PX instruction, replace with following instruction:
ANL A, #VALUE; Obtain the value (being made as VALUE) that remakes port PX
39. for ANL PX, the A instruction, replace with following instruction:
JBC EA, REL7 USER7:MOVC A , @A+PC; Obtain the value (being made as VALUE) of A, remake port PX and A and make logical and, and assignment is to remaking port PX MOV A, #VALUE; Recover the value SJMP USER7-1 of A; Return user program REL7:MOVC A , @A+PC; Obtain the value (being made as VALUE) of A, remake port<!--SIPO<DP n=" 11 "〉--〉<dp n=" d11 "/PX and A make logical and, and assignment is given and remake port PX MOV A, #VALUE; Recover the value SETB EA SJMP USER7-1 of A; Return user program
40. for ORL A, the PX instruction, replace with following instruction:
ORL A, #VALUE; Obtain the value (being made as VALUE) that remakes port PX
41. for ORL PX, the A instruction, replace with following instruction:
JBC EA, REL8 USER8:MOVC A , @A+PC; Obtain the value (being made as VALUE) of A, remake port PX and A and make logical OR, and assignment is to remaking port PX MOV A, #VALUE; Recover the value SJMP USER8-1 of A; Return user program REL8:MOVC A , @A+PC; Obtain the value (being made as VALUE) of A, remake port PX and A and make logical OR, and assignment is to remaking port PX MOV A, #VALUE; Recover the value SETB EA SJMP USER8-1 of A; Return user program
42. for XRL A, the PX instruction, replace with following instruction:
XRL A, #VALUE; Obtain the value (being made as VALUE) that remakes port PX
43. for XRL PX, the A instruction, replace with following instruction:
JBC EA, REL9<!--SIPO<DP n=" 12 "〉--〉<dp n=" d12 "/USER9:MOVC A , @A+PC; Obtain the value (being made as VALUE) of A, remake port PX and VALUE and make the logic XOR, and assignment is to remaking port PX MOV A, #VALUE; Recover the value SJMP USER9-1 of A; Return user program REL9:MOVC A , @A+PC; Obtain the value (being made as VALUE) of A, remake port PX and VALUE and make the logic XOR, and assignment is to remaking port PX MOV A, #VALUE; Recover the value SETB EA SJMP USER9-1 of A; Return user program
44. for XRL PX, the #DATA instruction, replace with following instruction:
MOV 0E0H, 0E0H; Remake after the value of port PX and DATA make the logic XOR
Compose to give and remake port PX
45. for XCH A, the PX instruction, replace with following instruction:
JBC EA, REL10 USER10:MOVC A , @A+PC; Obtain value (being made as VALUE1) the MOV A of A, #VALUE2; Obtain the value (being made as VALUE2) that remakes port PX, and the VALUE1 assignment given remake port PX SJMP USER10-1; Return user program REL10:MOVC A , @A+PC; Obtain value (being made as VALUE1) the MOV A of A, #VALUE2; Obtain the value (being made as VALUE2) that remakes port PX,<!--SIPO<DP n=" 13 "〉--〉<dp n=" d13 "/and the VALUE1 assignment given remake port PX SETB EA SJMP USER10-1; Return user program
46., replace with following instruction for DEC PX instruction:
MOV A, 0E0H; The value that remakes port PX is subtracted 1 back assignment to remaking port PX
47., replace with following instruction for INC PX instruction:
MOV A, 0E0H; The value that remakes port PX is added 1 back assignment to remaking port PX
48., replace with following instruction for PUSH PX instruction:
JBC EA, REL11 USER11:MOVC A , @A+PC; Obtain the value (being made as VALUE1) of A, obtain value (being made as VALUE2) the MOV A that remakes port PX, #VALUE2 PUSH ACC MOV A, #VALUE1; Recover the value SJMP USER11-1 of A; Return user program REL11:MOVC A , @A+PC; Obtain the value (being made as VALUE1) of A, obtain value (being made as VALUE2) the MOV A that remakes port PX, #VALUE2; Return user program PUSH ACC MOV A, #VALUE1; The value SETB EA of recovery A<!--SIPO<DP n=" 14 "〉--〉<dp n=" d14 "/SJMP USER11-1; Return user program
49., replace with following instruction for POP PX instruction:
JBC EA, REL12 USER12:MOVC A , @A+PC; Obtain value (being made as VALUE1) the POP ACC MOVC A , @A+PC of A; Obtain the value of A, and assignment is to remaking port PX MOV A, #VALUE1; Recover the value SJMP USER12-1 of A; Return user program REL12:MOVC A , @A+PC; Obtain value (being made as VALUE1) the POP ACC MOVC A , @A+PC of A; Obtain the value of A, and assignment is to remaking port PX MOV A, #VALUE1; Recover the value SETB EA SJMP USER12-1 of A; Return user program
50. for MOV P2, the P0 instruction, replace with following instruction:
MOV 0E0H, 0E0H; Obtain the value that remakes port P0, and assignment is to remaking port P2

Claims (4)

1, a kind of method that realizes one-chip machine simulation of replacing with instruction, its step for utilize earlier emulation monitoring and communication interface circuit with the ownership goal code storage to external program memory with synchronously in the pre-service storer, start emulation CPU by the emulation supervisory circuit then and begin to carry out program in the external program memory, it is characterized in that: replace with port when instruction and remake circuit monitoring when emulation CPU is about to read the operational code of new instruction, judge according to the operand of synchronous pre-service storer whether this new instruction is input and output instruction, when the result when being, the instruction replacement circuit is replaced with other instructions immediately, and under port remakes circuit control, finish identical input-output operation by remaking port.
2, according to claim 1, it is characterized in that: described emulation CPU only requires to have address data bus mouth, the address bus mouth that is used to move external program and get the finger control line.
3, a kind of device with instruction replacement realization one-chip machine simulation is characterized in that: described device comprises emulation CPU, external program memory, pre-service storer, instruction synchronously replaced and port remakes circuit, emulation monitoring and communication interface circuit, user's plate emulation interface; Described emulation CPU refers to that control line, address data bus mouth, address bus mouth and instruction are replaced and remakes the link to each other line data of going forward side by side of circuit with port and exchange by getting; Described external program memory is replaced by data line, read-write control line, address wire and instruction and is remake the link to each other line data of going forward side by side of circuit with port and exchange; User's plate emulation interface is connected with other port that remakes port and emulation CPU that port remakes the circuit generation, and described other port is meant that emulation CPU goes up all of the port except that address bus mouth, address data bus mouth.
4, according to claim 3 with instructing the device of replacing the realization one-chip machine simulation, it is characterized in that: described device arrives external program memory and synchronous pre-service storer by emulation monitoring and communication interface circuit with the ownership goal code storage; The address wire of pre-service storer is identical with external program memory synchronously, and the pre-service storer is used to store the operand of each bar instruction except that operational code synchronously; Start emulation CPU by the emulation supervisory circuit and begin to carry out program in the external program memory; Instruction is replaced with port and is remake circuit monitoring when emulation CPU is about to read the operational code of new instruction, judge that according to the operand of synchronous pre-service memory stores whether this new instruction is the instruction of data bus mouth or address bus mouth being carried out input and output, if, replace with other instruction immediately by the instruction replacement circuit, and remake at port under the control of circuit, finish identical input-output operation by remaking port.
CNB2004100231835A 2004-05-12 2004-05-12 Method and device for implementing single-chip microcomputer simulation using instruction replacement Expired - Fee Related CN1293475C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100231835A CN1293475C (en) 2004-05-12 2004-05-12 Method and device for implementing single-chip microcomputer simulation using instruction replacement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100231835A CN1293475C (en) 2004-05-12 2004-05-12 Method and device for implementing single-chip microcomputer simulation using instruction replacement

Publications (2)

Publication Number Publication Date
CN1570876A true CN1570876A (en) 2005-01-26
CN1293475C CN1293475C (en) 2007-01-03

Family

ID=34480274

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100231835A Expired - Fee Related CN1293475C (en) 2004-05-12 2004-05-12 Method and device for implementing single-chip microcomputer simulation using instruction replacement

Country Status (1)

Country Link
CN (1) CN1293475C (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100369010C (en) * 2005-04-01 2008-02-13 北京同方微电子有限公司 Hardware breakpoint circuit for intelligent card simulative debugging system
CN101551788A (en) * 2009-05-19 2009-10-07 威盛电子股份有限公司 Computer system, data interchange set and data interchange process
CN103488566A (en) * 2013-09-24 2014-01-01 上海无线电设备研究所 Method for rapidly achieving solidification falling welding of satellite-borne software program at low risk

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU6491400A (en) * 1999-10-22 2001-05-08 Mentor Graphics Corporation An emulation system having a efficient emulation signal routing architecture
CN2560040Y (en) * 2002-08-01 2003-07-09 安徽省菲特科技股份有限公司 SCSI slave controller

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100369010C (en) * 2005-04-01 2008-02-13 北京同方微电子有限公司 Hardware breakpoint circuit for intelligent card simulative debugging system
CN101551788A (en) * 2009-05-19 2009-10-07 威盛电子股份有限公司 Computer system, data interchange set and data interchange process
CN101551788B (en) * 2009-05-19 2013-06-26 威盛电子股份有限公司 Computer system, data interchange set and data interchange process
CN103488566A (en) * 2013-09-24 2014-01-01 上海无线电设备研究所 Method for rapidly achieving solidification falling welding of satellite-borne software program at low risk

Also Published As

Publication number Publication date
CN1293475C (en) 2007-01-03

Similar Documents

Publication Publication Date Title
CN1292360C (en) Device and method for implementing automatically reading and writing internal integrated circuit equipment
CN100346285C (en) Processor chip, storage control system and method
CN1521625A (en) Fault-tolerant computer system, re-synchronization method thereof and re-synchronization program thereof
CN101030186A (en) Interface circuit, system device using the interface circuit, and data interface method
CN1725177A (en) Built-in equipment integrated development system and using method thereof
CN1121014C (en) Eight-bit microcontroller having a RISC architecture
CN1737779A (en) Method and system for expanding peripherals
CN1480840A (en) Information processor, information processing method, computer readble memory medium
CN1551592A (en) Data transmission control device, electronic device and data transmission control method
CN1758213A (en) Heterogeneous parallel multithread processor (HPMT) with shared contents
CN1804799A (en) SCM online loading and updating method and system
CN1866221A (en) Software interface testing method and apparatus
CN1641568A (en) Firmware automatic configuration system and method for substrate management controller
CN1904853A (en) Embedded software loading debugging method and system thereof
CN101038572A (en) Data transfer device and data transfer system
CN1517868A (en) Information processing device, method and program
CN1272704C (en) Low-power acting controller and program optimization device
CN1570876A (en) Method and device for implementing single-chip microcomputer simulation using instruction replacement
CN1896966A (en) Computer testing method
CN1525323A (en) Processor and compiler for creating program for the processor
CN1940860A (en) Adjustment for multiple micro-controller system task
CN100337204C (en) Online software updating method
CN1924761A (en) Data processing apparatus, program, recording medium, and content playback apparatus
CN101030152A (en) Operation controller and controlling method based on pseudo-clock mode
CN1300395A (en) Processor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: CHANGSHA JUYANG MICRO-ELECTRONICS CO., LTD.

Free format text: FORMER OWNER: ZENG JUYANG

Effective date: 20100701

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 410008 ROOM 304, BUILDING 4, CHANGZHENG GARDEN, SHUYUAN ROAD, CHANGSHA CITY, HUNAN PROVINCE TO: 410004 2-22-A, NANGUOJIAYUAN, 1 SECTION OF FURONG SOUTH ROAD, TIANXIN DISTRICT, CHANGSHA CITY, HUNAN PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20100701

Address after: 410004 Hunan province Changsha City Furong South Road South Jiayuan 2-22-A

Patentee after: Changsha chrysanthemum Microelectronics Co., Ltd.

Address before: 304, room 4, 410008 Long March garden, College Road, Hunan, Changsha

Patentee before: Zeng Juyang

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070103

Termination date: 20160512

CF01 Termination of patent right due to non-payment of annual fee