METHOD FOR EXECUTING DEBUG COMMANDS
The present invention relates to a method for cycle accurate simulating the processing of a processor comprising the steps of: (a) receiving a source code containing at least one source command and at least one debug command; (b) reading at least one command from said source code and determining if said command is a source command or a debug command; (c) if said command is a source command: (I) interpreting said source command into machine readable command; and (II) storing said source command in an object code file; (d) if said command is a debug command: (I) appending an address to said debug command; and (II) storing said debug command in a debug file; (e) loading said object code file and said debug file into a cycle accurate simulator; and (f) executing at least one said debug command without promoting at least one component which keeps track of the processing cycle accuracy of said simulated processor.
1 . A method for cycle accurate simulating the processing of a processor comprising the steps of:
a. receiving a source code containing at least one source command and at least one debug command;
b. reading at least one command from said source code and determining if said command is a source command or a debug command;
c. if said command is a source command:
i. interpreting said source command into machine readable command; and
ii. storing said source command in an object code file;
d. if said command is a debug command:
i. appending an address to said debug command; and
ii. storing said debug command in a debug file;
e. loading said object code file and said debug file into a cycle accurate simulator; and
executing at least one said debug command without promoting at least one component which keeps track of the processing cycle accuracy of said simulated processor.
2 . A method according to claim 1 , where the source code is first compiled from a source program by a complier.
3 . A method according to claim 2 , where the compiler is programmed to compile debug commands from a source program into specifically set debug source code commands.
4 . A method according to claim 1 , where the debug commands are stored in a textual format.
5 . A method according to claim 1 , where the debug commands are stored in a binary format.
6 . A method for cycle accurate simulating the processing of a processor comprising the steps of:
a. receiving a source code containing at least one source command and at least one debug command;
b. reading at least one command from said source code and determining if said command is a source command or a debug command;
c. if said command is a source command:
i. interpreting said source command into machine readable command; and
ii. storing said source command in the source command section of an object code file;
d. if said command is a debug command:
i. appending an address to said debug command; and
ii. storing said debug command in the debug section of the object code file;
e. loading said object code file into a cycle accurate simulator; and
f. executing at least one said debug command without promoting at least one component which keeps track of the processing cycle accuracy of said simulated processor.