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.
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.