module temp;
initial begin
`ifdef FULL_RATE
$display("I am in full rate");
`endif
`ifdef HALF_RATE or QURD_RATE
$display("I am in else part");
`endif
end
endmodule
Here I am passing define [FULL_RATE or HALF_RATE or QUAD_RATE] through command line argument.
Now above mentioned line
`ifdef HALF_RATE or QURD_RATE
giving us compilation error as below
– Compiling module temp
** Error: temp.sv(7): near “or”: syntax error, unexpected or
Our requirement :
when we pass HALF_RATE or QUAD_RATE same piece of code should get execute.