malikkhaled
Junior Member level 1
- Joined
- Jan 14, 2010
- Messages
- 19
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- sweden
- Activity points
- 1,447
In my design i have a lot of constants, i want to save these constant in a file and use this file where ever i need it in different modules, but i am getting errors by doing so. anyone could help me here i just post my code.
file name: inc.v
in my module i just add it like
file name: inc.v
Code Verilog - [expand] 1 2 3 4 5 6 7 `default_nettype none `define k 8 `define k1 32 `define k1 64 `define k1 128 `define k1 256
in my module i just add it like
Code Verilog - [expand] 1`include inc.v