# Distributing task calls between SV implementations in "generate" blocks

**URL:** <https://verificationacademy.com/forums/t/distributing-task-calls-between-sv-implementations-in-generate-blocks/35774>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, task, generate, distributor\
**Created:** [February 22, 2019, 1:43am UTC](https://verificationacademy.com/forums/t/distributing-task-calls-between-sv-implementations-in-generate-blocks/35774 "2019-02-22T01:43:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [February 22, 2019, 7:35am UTC](https://verificationacademy.com/forums/t/distributing-task-calls-between-sv-implementations-in-generate-blocks/35774/2 "2019-02-22T07:35:42Z")

</div>

_In reply to [simonsabato](https://verificationacademy.com/forums/t/distributing-task-calls-between-sv-implementations-in-generate-blocks/35774):_

SystemVerilog requires all hierarchical references to be bound at elaboration. There would have to be optimization rules to skip the binding. This might be doable at some point in the future with a generate-if construct, but more difficult with a procedural-if construct.

A suggestion for you is creating two ram module wrappers, one wrapping each implementation, and using a Verilog **config** construct to select the ram on a per instance basis. See See section 33 of 1800-2017 LRM and this paper: [https://lcdm-eng.com/papers/snug01\_verilog2000.pdf](https://lcdm-eng.com/papers/snug01_verilog2000.pdf)

---

_[View the full topic](https://verificationacademy.com/forums/t/distributing-task-calls-between-sv-implementations-in-generate-blocks/35774)._
