# \#macro

**URL:** https://verificationacademy.com/forums/tag/macro/7724.md

[Latest](https://verificationacademy.com/forums/latest.md) · [Categories](https://verificationacademy.com/forums/categories.md) · [Tags](https://verificationacademy.com/forums/tags.md)

---

## [Factory registration of 2-D array in UVM](https://verificationacademy.com/forums/t/factory-registration-of-2-d-array-in-uvm/47781)

<div class="topic-metadata">

**Author:** [@PD\_SAM](https://verificationacademy.com/forums/u/PD_SAM)\
**Replies:** 1\
**Last updated:** [July 5, 2024, 3:15pm UTC](https://verificationacademy.com/forums/t/factory-registration-of-2-d-array-in-uvm/47781 "2024-07-05T15:15:12Z")

</div>

How can i do Factory registration of 2-D or Multidimensional array in UVM? For an example, bit \[7:0\] mem1 \[0:15\]; bit \[15:0\] mem2 \[0:7\] \[0:1\]; Here how can i factory registration of mem1 and mem2?

---

## [Index resolution in a macro used in a generate block](https://verificationacademy.com/forums/t/index-resolution-in-a-macro-used-in-a-generate-block/39067)

<div class="topic-metadata">

**Author:** [@nex](https://verificationacademy.com/forums/u/nex)\
**Replies:** 3\
**Last updated:** [May 12, 2021, 3:33pm UTC](https://verificationacademy.com/forums/t/index-resolution-in-a-macro-used-in-a-generate-block/39067 "2021-05-12T15:33:16Z")

</div>

Hi, I have some issues trying to use a parametrized macro in a generate loop (I guess the issue would be the same in a for loop). I want to assign some internal signals of my design under test from my TestBench. Those …

---

## [Registration macros](https://verificationacademy.com/forums/t/registration-macros/38950)

<div class="topic-metadata">

**Author:** [@bachan21](https://verificationacademy.com/forums/u/bachan21)\
**Replies:** 1\
**Last updated:** [April 7, 2021, 4:57pm UTC](https://verificationacademy.com/forums/t/registration-macros/38950 "2021-04-07T16:57:02Z")

</div>

We use registration macros like following to register our classes \`uvm\_component\_utils() \`uvm\_object\_utils() But what exactly happens when compiler execute these pieces of codes?

---

## [Uvm\_object\_utils unexpected "SystemVerilog keyword 'typedef'"](https://verificationacademy.com/forums/t/uvm-object-utils-unexpected-systemverilog-keyword-typedef/38838)

<div class="topic-metadata">

**Author:** [@mreister](https://verificationacademy.com/forums/u/mreister)\
**Replies:** 4\
**Last updated:** [March 15, 2021, 11:03pm UTC](https://verificationacademy.com/forums/t/uvm-object-utils-unexpected-systemverilog-keyword-typedef/38838 "2021-03-15T23:03:23Z")

</div>

I am new to UVM and i am trying to use the uvm\_object\_utils macro in a class for a sequence item. Before using this macro included the uvm\_macros.svh header file and imported the uvm\_pkg like so: import uvm\_pkg::\*; \`i…
