Reputation: 1
How to define a constant value for addition in verilog,
for example if I define a value A=64'h000000000000001;
use it later for addition how should I define in verilog.
Upvotes: -2
Views: 3964
Reputation: 42723
In SystemVerilog, it's reccomended that you put all constants in a global package, and import the package where needed
package globals;
parameter A=64'h000000000000001;
endpackage
Upvotes: 2