title: How to use verilog $deposit with indexes
body: <p>How can <code>$deposit</code> be used when the path includes the index from the <code>generate</code> loop.  When I try:</p>
  
  <pre><code>for(int idx=0; idx&lt;`NUM_OF_ENGIES; idx++)
     $deposit(i_engines_array.engines_loop[i].engine_top.soft_reset_n, 1'b0);
  </code></pre>
  
  <p>I get the error:</p>
  
  <pre><code>Error-[STASKEC_IFAIDT] Illegal argument to $deposit task
  
    The first argument passed to $deposit task: path is illegal.
    Please pass net/reg/bitselect type to $deposit task and recompile.
  </code></pre>