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

**URL:** <https://verificationacademy.com/forums/t/module-cannot-see-defines-defined-in-pkg-if-this-pkg-is-imported-inside-module-what-is-the-reason-for-it/40991>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, Package, module, package-inside-module\
**Created:** [November 9, 2022, 1:44pm UTC](https://verificationacademy.com/forums/t/module-cannot-see-defines-defined-in-pkg-if-this-pkg-is-imported-inside-module-what-is-the-reason-for-it/40991 "2022-11-09T13:44:45Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![cgales](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/c/ccd318/32.png) [@cgales](https://verificationacademy.com/forums/u/cgales)\
**Post date:** [November 9, 2022, 3:07pm UTC](https://verificationacademy.com/forums/t/module-cannot-see-defines-defined-in-pkg-if-this-pkg-is-imported-inside-module-what-is-the-reason-for-it/40991/4 "2022-11-09T15:07:10Z")

</div>

_In reply to [EleneSajaia](https://verificationacademy.com/forums/t/module-cannot-see-defines-defined-in-pkg-if-this-pkg-is-imported-inside-module-what-is-the-reason-for-it/40991/3):_

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.

---

_[View the full topic](https://verificationacademy.com/forums/t/module-cannot-see-defines-defined-in-pkg-if-this-pkg-is-imported-inside-module-what-is-the-reason-for-it/40991)._
