# \`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:** 23

<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:** [December 16, 2015, 3:31am UTC](https://verificationacademy.com/forums/t/define-macros-usage/27530/23 "2015-12-16T03:31:13Z")

</div>

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

```verilog
genvar i;
for (i=0; i<=31; i=i+1) begin: gen_force
initial
force top[i].zzz = 1'b1;
end

```

---

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