IMPORTANT NOTICE: Please be advised that the Verification Academy Forums will be offline for scheduled maintenance on Sunday, March 29th at 5:00 AM US/Pacific.
If pkg is imported inside module, the code inside `ifdef is not parsed during compilation.
when pkg is defined outside the module everything works fine. Do you know what can be reason for that?
package pkg_with_defines;
`define DATA
endpackage
module tb_top;
import pkg_with_defines::*;
´ifdef DATA
logic bit data;
endif
...
endmodule