Module cannot see defines defined in pkg, if this pkg is imported inside module. What is the reason for it?

In reply to EleneSajaia:

You are likely compiling both files at the same time. In this case, the `define will carry over from the package file to the tb_top.sv.