# Necessity of writing 'include "uvm\_macros.svh"

**URL:** <https://verificationacademy.com/forums/t/necessity-of-writing-include-uvm-macros-svh/34448>\
**Category:** UVM\
**Tags:** UVM, uvm\_macrossvh\
**Created:** [May 12, 2018, 11:07am UTC](https://verificationacademy.com/forums/t/necessity-of-writing-include-uvm-macros-svh/34448 "2018-05-12T11:07:39Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![EnRoute\_zt](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/e/b5e925/32.png) [@EnRoute\_zt](https://verificationacademy.com/forums/u/EnRoute_zt)\
**Post date:** [May 13, 2018, 2:33pm UTC](https://verificationacademy.com/forums/t/necessity-of-writing-include-uvm-macros-svh/34448/6 "2018-05-13T14:33:04Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/necessity-of-writing-include-uvm-macros-svh/34448/5):_

thanks, Dave and Chr\_sue, seems clearer to me.

In uvm\_pkg.sv file, code is written as below:

```verilog

`include "uvm_macros.svh"

(* mti_design_element_load_message = "uvm-1.2 Built-in" *)

package uvm_pkg;
...
endpackage

```

`include “uvm\_macros.svh” is written outside the package … endpackage. so the scope is defined by file? like uvm\_pkg.sv here

Tao

---

_[View the full topic](https://verificationacademy.com/forums/t/necessity-of-writing-include-uvm-macros-svh/34448)._
