Appendix C
Tips & Trix
In this appendix we have collected a number of tips and trix that you might find useful.
• If you encounter some weird problems with the hardware you can try to turn the power
off to the FPGA system before configuring i t. We have had some problems with the
FPGA board which can be solved in this manner.
• You do not have to restart Modelsim or recompile all files to get new changes included in
the simulation. Just r ecompile the file you changed and type restart -f in Modelsim.
Now your new changes is included.
• If you use emacs you can compile your Verilog file from emacs.
M-x compile
vlog -work {work directory} +incdir+{include directory} {file}
• To log more signals than you want to display in the wave window you can use the log
command.
To log all signals under e.g. dafk_tb/dafk_top/cpu you can use
log -r dafk_tb/dafk_top/cpu/* .
• To make backspace work in µClinux when using Teraterm. Under Setup->Keyboard...
make sure that the check box for how the backspace key is sent is set.
• If you haven’t setup the backspace key to work correctly in µClinux, you can still use
some other standard unix key combinations: control-w will erase the previous word.
control-u will erase the entire line.
• If you find it hard to see if a signal is a 1 or a 0 in modelsim when many 1 bit signals are
next to each other in the wave window you might want to change the colors for 1 and 0
respectively. This can be done by using Tools -> Edit preferences.. menu selection on
the modelsim main window. In the window that opens up, select WaveWindows.
• If you use verilog-mode in emacs, you can press control-c control-d to go to another
module. (The default module name is taken from the location of the cursor in the buffer.)
• If you use the command show_dafk_window in modelsim you will get a window that
allows you to add a number of different signals to your modelsim window. You can look
at the file modelsim.tcl in the simulator directory to see how this is implemented.
You may also press the button named Show dafk window in the wave window to open
this window (the button is only visible if the wave window is removed from the main
modelsim window).
• If you use some of the virtual signals declared by us, make sure to use the restart script
restart-f.do instead of restarting Modelsim the normal way.
81
Kommentare zu diesen Handbüchern