Forum Discussion
Altera_Forum
Honored Contributor
15 years agoIt is possible to do so. As fvm (http://www.alteraforum.com/forum/member.php?u=3117) sad the `include statement could be used. To define a global constant you can use the `define statement into a separate verilog file and than include it where needed in your code. Here is an example:
included_file.v:
`ifndef INCLUDED_FILE
`define SIZE 8'd5
`endif
Best regards, VT