CN1293475C - 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
CN1293475C
CN1293475C CNB2004100231835A CN200410023183A CN1293475C CN 1293475 C CN1293475 C CN 1293475C CN B2004100231835 A CNB2004100231835 A CN B2004100231835A CN 200410023183 A CN200410023183 A CN 200410023183A CN 1293475 C CN1293475 C CN 1293475C
Authority
CN
China
Prior art keywords
port
instruction
circuit
emulation
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.)
Expired - Fee Related
Application number
CNB2004100231835A
Other languages
Chinese (zh)
Other versions
CN1570876A (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

The present invention discloses a method and an apparatus for realizing the simulation of an SCM by command replacement. The apparatus comprises a simulated CPU, an external program storage, a synchronous preprocessing storage, a command replacement and port rebuilding circuit, a simulated monitoring circuit and a simulated user board interface. The method for realizing the simulation of the SCM by the command replacement comprises the steps: when the command replacement and port rebuilding circuit monitors that the simulated CPU is about to execute I/O operation for a data bus line port or an address bus port, a command replacement circuit instantly uses other commands for carrying out replacement, and a rebuilt port is used for accomplishing the same I/O operation under the control of the command replacement and port rebuilding circuit. Because no special port for the simulation is required on the simulated CPU, and no special hardware circuit for the simulation is required on the simulated CPU, SCM types which can be simulated are increased, and the reality of the simulation is enhanced.

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
USER2:MOVC A , @A+PC; Obtain the value (being made as VALUE) of A, will remake port PX assignment simultaneously is VALUE
When carrying out MOVC A , @A+PC instruction, instruction is replaced and port weighs
Make circuit according to the address at this instruction place and the address of being tabled look-up, can
Calculate the value of A, down together)
MOV A, #VALUE; Recover the value of A
SJMP USER2-1; 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 of A
SETB EA
SJMP USER2-1; Return user program
15. for MOV PX, the DIRECT instruction, replace with following instruction:
JBC EA,REL3
USER3:MOVC A , @A+PC; Obtain the value (being made as VALUE1) of A
MOV A,DIRECT
MOVC A , @A+PC; Obtain the value (being made as VALUE2) of A, will remake port simultaneously
The PX assignment is VALUE2
MOV A, #VALUE1; Recover the value of A
SJMP USER3; Return user program
REL3:MOVC A , @A+PC; Obtain the value (being made as VALUE1) of A
MOV A,DIRECT
MOVC A , @A+PC; Obtain the value (being made as VALUE2) of A, will remake end simultaneously
Mouth PX assignment is VALUE2
MOV A, #VALUE1; Recover the value of A
SETB EA
SJMP USER3; Return user program
16., replace with following instruction for MOV PX , @R0 instruction:
JBC EA,REL4
USER4:MOVC A , @A+PC; Obtain the value (being made as VALUE1) of A
MOV A,@R0
MOVC A , @A+PC; Obtain the value (being made as VALUE2) of A, will remake end simultaneously
Mouth PX assignment is VALUE2
MOV A, #VALUE1; Recover the value of A
SJMP USER4-1; Return user program
REL4:MOVC A , @A+PC; Obtain the value (being made as VALUE1) of A
MOV A,@R0
MOVC A , @A+PC; Obtain the value (being made as VALUE2) of A, will remake end simultaneously
Mouth PX assignment is VALUE2
MOV A, #VALUE1; Recover the value of A
SETB EA
SJMP USER4-1; 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
MOV A,@R1
MOVC A , @A+PC; Obtain the value (being made as VALUE2) of A, will remake simultaneously
Port PX assignment is VALUE2
MOV A, #VALUE1; Recover the value of A
SJMP USER5-1; Return user program
REL5:MOVC A , @A+PC; Obtain the value (being made as VALUE1) of A
MOV A,@R1
MOVC A , @A+PC; Obtain the value (being made as VALUE2) of A, will remake simultaneously
Port PX assignment is VALUE2
MOV A, #VALUE1; Recover the value of A
SETB EA
SJMP USER5-1; 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 the value (being made as VALUE1) of A
MOV A,Ri
MOVC A , @A+PC; Obtain the value (being made as VALUE2) of A, simultaneously will
Remaking port PX assignment is VALUE2
MOV A, #VALUE1; Recover the value of A
SJMP USER60-1; Return user program
REL6:MOVC A , @A+PC; Obtain the value (being made as VALUE1) of A
MOV A,Ri
MOVC A , @A+PC; Obtain the value (being made as VALUE2) of A, simultaneously will
Remaking port PX assignment is VALUE2
MOV A, #VALUE1; Recover the value of A
SETB EA
SJMP USER60-1; 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, replace 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 make logical and, and assignment is to remaking port PX
MOV A, #VALUE; Recover the value of A
SJMP USER7-1; Return user program
REL7:MOVC A , @A+PC; Obtain the value (being made as VALUE) of A, remake port
PX and A make logical and, and assignment is to remaking port PX
MOV A, #VALUE; Recover the value of A
SETB EA
SJMP USER7-1; 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 make logical OR, and assignment is to remaking port
PX
MOV A, #VALUE; Recover the value of A
SJMP USER8-1; Return user program
REL8:MOVC A , @A+PC; Obtain the value (being made as VALUE) of A, remake port
PX and A make logical OR, and assignment is to remaking port
PX
MOV A, #VALUE; Recover the value of A
SETB EA
SJMP USER8-1; 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
USER9:MOVC A , @A+PC; Obtain the value (being made as VALUE) of A, remake port
PX and VALUE make the logic XOR, and assignment is remake
Port PX
MOV A, #VALUE; Recover the value of A
SJMP USER9-1; Return user program
REL9:MOVC A , @A+PC; Obtain the value (being made as VALUE) of A, remake port
PX and VALUE make the logic XOR, and assignment is remake
Port PX
MOV A, #VALUE; Recover the value of A
SETB EA
SJMP USER9-1; 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 the value (being made as VALUE1) of A
MOV 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 the value (being made as VALUE1) of A
MOV A, #VALUE2; Obtain the value (being made as VALUE2) that remakes port PX,
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 and remake
The value of port PX (being made as VALUE2)
MOV A,#VALUE2
PUSH ACC
MOV A, #VALUE1; Recover the value of A
SJMP USER11-1; Return user program
REL11:MOVC A , @A+PC; Obtain the value (being made as VALUE1) of A, obtain and remake end
The value (being made as VALUE2) of mouth PX
MOV A, #VALUE2; Return user program
PUSH ACC
MOV A, #VALUE1; Recover the value of A
SETB EA
SJMP USER11-1 returns user program
49., replace with following instruction for POP PX instruction:
JBC EA,REL12
USER12:MOVC A , @A+PC; Obtain the value (being made as VALUE1) of A
POP ACC
MOVC A , @A+PC; Obtain the value of A, and assignment is to remaking port PX
MOV A, #VALUE1; Recover the value of A
SJMP USER12-1; Return user program
REL12:MOVC A , @A+PC; Obtain the value (being made as VALUE1) of A
POP ACC
MOVC A , @A+PC; Obtain the value of A, and assignment is to remaking port PX
MOV A, #VALUE1; Recover the value of A
SETB EA
SJMP USER12-1; 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 (3)

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; Emulation monitoring and communication interface circuit are used for the ownership goal code storage to external program memory and synchronous pre-service storer; 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 CN1570876A (en) 2005-01-26
CN1293475C true 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)

Families Citing this family (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
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

Citations (2)

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

Patent Citations (2)

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

Also Published As

Publication number Publication date
CN1570876A (en) 2005-01-26

Similar Documents

Publication Publication Date Title
CN1153155C (en) Information processing device equipped with a coprocessor which efficiently uses register data in main processor
CN1253790C (en) Display device and driving method thereof
CN1120425C (en) Memory controller and memory control system
CN1932776A (en) Automatic operating method for interface test in embedded operating system
CN1239982C (en) Data processing system
CN101034988A (en) Network login authentication protection device and its using method
CN1734423A (en) Computer-readable program product, process and apparatus for installing device driver
CN1873625A (en) Method for automatic generating random excitation based on percentage of function coverage
CN1991798A (en) Semiconductor storage apparatus
CN1776621A (en) Program converting method
CN1765099A (en) Device and method for simulating communication system capable of easily controlling protocol message
CN1758222A (en) Program processing apparatus
CN1890624A (en) Electronic device, control method thereof, host device, and control method thereof
CN1723447A (en) Memory controller
CN1955956A (en) Method of graphic and XML file interexchange based on BPEL
CN1764928A (en) Multi-gradation monochromatic image display method, multi-gradation monochromatic image display device, computer, monochromatic display device, re-conversion adapter, and video card
CN1293475C (en) Method and device for implementing single-chip microcomputer simulation using instruction replacement
CN1770130A (en) Bus control device, arbitration device, integrated circuit device, bus control method, and arbitration method
CN1690956A (en) Programme projecting device and method
CN1498509A (en) Radiocommunication module for hosting and executing client software and matching process for implementing client driving software
CN1237731A (en) Data processing method, recording medium, and data processing apparatus
CN100337186C (en) Interface circuit, disc controller, disc driver and interface controlling method
CN1231440A (en) Data processing method, recording medium and dat aprocessor
CN1908951A (en) Electronic document having authentication function
CN1929603A (en) H.264 integer transformation accelerator

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20070103

Termination date: 20160512