Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

verilog testbench file in emacs verilog mode

The testbench templates created by quartus-II (Processing->Start->Test Bench Template Writer) produce <filename>.vt files. When I try to open them in my emacs text editor, they do not open in verilog mode. Does anyone know if there is a way to:

1.) Change the default extension used by the Test Bench Template Writer to be something like, say, <filename>_tb.v

2.) Force emacs to open a <filename>.vt file in verilog mode

I've been changing the filenames manually, but this requires annoying extra steps every time I create a new test bench.

Thanks!