External editors can be used with BugHunter. If you use an external editor, make sure it is configured to detect when other programs externally modify a file. While simulating and debugging in BugHunter, you will want to use the internal editors to make quick fixes to the code so you can continue simulating. If your editor does not detect that you have modified a file, it may overwrite your fixes.
BugHunter also supports complete editing and debugging integration with the popular XEmacs text editor.
Enabling XEmacs Integration:
•Install XEmacs onto the computer that is running BugHunter. You will need XEmacs version 21.2 or later. |
•In BugHunter, select the Editor > Editor/Report Preferences menu option to open the Editor/Report Preferences dialog. •Check the Use XEmacs Editor checkbox. •Enter the path to the XEmacs editor in the XEmacs Path edit box, or click the Browse (...) button to locate the XEmacs files. •Click the OK button to enable XEmacs integration and close the Editor/Report Preferences dialog. |
For information on XEmacs, including installation information, see the official XEmacs website at http://www.xemacs.org/. All the files needed to install XEmacs are available by anonymous FTP from ftp.xemacs.org/.
Windows users will only need to install the basic XEmacs package. Unix users will also need to install two libraries, annotations and derived, available from ftp.xemacs.org/. Unix users will also need to make sure that global support for the XPM image format is installed before attempting to configure XEmacs. The most recent version of the global XPM support library can be obtained from ftp.x.org/contrib/libraries/. Consult your system administrator if you have any questions.
Using XEmacs with BugHunter
The XEmacs Integration feature allows you to control project functions and simulate the project from within XEmacs. The use of breakpoints in HDL files is also supported. For more information on breakpoints, see Section 2.4: Breakpoints.
To add an HDL file created in XEmacs to the active BugHunter project:
•Select the Syncad > Add to Project... menu option.
To run a BugHunter simulation from within XEmacs:
•Press the <F5> key. (This is identical to selecting Simulate > Run from BugHunter's Simulate menu.)
To single-step through a BugHunter simulation from within XEmacs:
•Press the <F10> key. (This is identical to selecting Simulate > Step Over from BugHunter's Simulate menu.)
To single-step through a BugHunter simulation from within XEmacs and send a trace statement to the verilog.log file:
•Press the <F11> key. (This is identical to selecting Simulate > Step Into from BugHunter's Simulate menu.)
Note that simulation from XEmacs can also be carried out by means of the XEmacs simulation bar located at the bottom of the XEmacs editor window. These buttons function identically to the buttons on the Simulation Button Bar in BugHunter.
To add or remove a breakpoint in XEmacs:
•Click in the margin of the XEmacs editor to the left of the line that the breakpoint should be added to or removed from.
OR
•Right-click in the margin of the XEmacs editor to the left of the line that the breakpoint should be added to or removed from.
•Select Insert/Remove Breakpoint from the context menu.
OR
•Place the cursor in the line that the breakpoint should be added to or removed from.
•Press the <F9> key.
To enable or disable a breakpoint in XEmacs:
•Right-click in the margin of the XEmacs editor next to the breakpoint that should be enabled or disabled.
•Select Enable/Disable Breakpoint from the context menu.
OR
•Place the cursor in the same line as the breakpoint that should be enabled or disabled.
•Press the <Ctrl> and <F9> keys.
An enabled breakpoint is represented by a red dot in the left margin, and a red circle represents a disabled breakpoint.