# \`define macros usage

**URL:** <https://verificationacademy.com/forums/t/define-macros-usage/27530>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog\
**Created:** [September 9, 2011, 11:37pm UTC](https://verificationacademy.com/forums/t/define-macros-usage/27530 "2011-09-09T23:37:53Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [September 16, 2011, 12:58am UTC](https://verificationacademy.com/forums/t/define-macros-usage/27530/4 "2011-09-16T00:58:51Z")

</div>

_In reply to [vdadwal](https://verificationacademy.com/forums/t/define-macros-usage/27530/3):_

I prefer to use the term macro _argument_. A **parameter** is something else in Verilog.

In the macro, **R** by itself is the argument that gets substituted. `R` is not needed.

However, the argument **I** shows up twice in the body of the macro; first by itself, and then surrounded by `I`. The `` is a token separator used to build identifiers and strings. Without it, the bare argument **I** would disappear into an identifier duI\_clk\_x. You want the macro

`xyz(1,a)

to be replaced with

assign abc(_1_).clk = _a_.du_1_\_clk\_x;

---

_[View the full topic](https://verificationacademy.com/forums/t/define-macros-usage/27530)._
