Hi,
You can make Emacs start your simulator by putting this in .emacs (assuming you're using
verilog-mode):
(add-hook 'verilog-mode-hook
(lambda ()
(make-local-variable 'compile-command)
(setq compile-command "./trun --vcs +SST")))
Then I have
(global-set-key [f9] 'compile)
Whenever I hit F9 it will run the compile command. If I'm working on C
code that will be make. If I'm using verilog mode that will be "./trun --vcs +SST", e.g. a script to run my testbench and generate a signalscan dump file.