Altera_Forum
Honored Contributor
14 years agoVerilog Constants/Paremters accross Verilog Files?
Hi Guys,
I'm teaching myself verilog atm, (i've done small VHDL before). My question is: how can i define and share constants accross .v files? For instance in C: Say you want to define a constant "SIZE" to be value "5"; and you use this definition accross many files. To do so you put it in a .h file and# include that .h where needed. is there a verilog practice that does a similar thing? Some brief googling i couldn't see a way, so if there isn't what is best practice for that?