Is it common to use ".vh"? I've only seen it in a couple
of places, whereas I've seen ".v" in lots of designs at
for example opencores.
/Andreas
For me it depends on what's in the file I'm including.
I hadn't seen the .vh convention, but I use .v when
there is behavioral code in the file, mostly to convice
the editor to properly format and keyword highlight, etc.
When the file is only `define etc. I usually use a .inc
(include) file extension. This helps recognize the
file as something that is not compilable by itself.
Mostly I try not to use `include if I can avoid it.
Regards,
Gabor
I have typically used .v
FYI, SystemVerilog supports packages that can be loaded with the
import keyword, much like a C++ namespace. Depending on which tools
you have access to, you may want to check that out.
Edmond
I've seen .vh used for Verilog header files, containing `defines, and
`included in other .v files.
David
> Mostly I try not to use `include if I can avoid it.
Ditto.
Petter
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?