# ref argument default value

**URL:** <https://verificationacademy.com/forums/t/ref-argument-default-value/51585>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog\
**Created:** [March 19, 2026, 3:23pm UTC](https://verificationacademy.com/forums/t/ref-argument-default-value/51585 "2026-03-19T15:23:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amit\_9183](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/b5ac83/32.png) [@Amit\_9183](https://verificationacademy.com/forums/u/Amit_9183)\
**Post date:** [March 19, 2026, 3:23pm UTC](https://verificationacademy.com/forums/t/ref-argument-default-value/51585/1 "2026-03-19T15:23:27Z")

</div>

Can we assign default value to formal argument with ref direction ?

---

<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:** [March 19, 2026, 7:43pm UTC](https://verificationacademy.com/forums/t/ref-argument-default-value/51585/2 "2026-03-19T19:43:34Z")

</div>

No. It would not make any sense as a ref argument is not optional.

Default values are used for optional arguments, while the ref qualifier requires the argument to be provided as it links the arguments between the function and the function caller.
