Forum Discussion
AnandRaj_S_Intel
Regular Contributor
7 years agoHi,
+define+<macro_name>[=<macro_text>]
I have used simple example
########################CODE##########################
module and_op (a, b, c);
output a;
input b, c;
`ifdef behavioral
wire a = b & c;
`else
or a1 (a,b,c);
`endif
endmodule
##########################CODE####################
vlog +define+behavioral -work work and_op.v
Let me know if this has helped resolve the issue you are facing or if you need any further assistance.
Best Regards,
Anand Raj Shankar
(This message was posted on behalf of Intel Corporation)