Quantcast
Channel: Cadence Functional Verification Forum
Viewing all articles
Browse latest Browse all 1069

SV: How to name an unnamed block

$
0
0

If I create a variable in a for-loop:

    for(int i=0;i<N;i++) begin...

It creates and unnamed block.  If you $display("%m") in the block it is called "...unmblkX" where is an integer.

If I try to name the block (as allowed in Modelsim)

    for(int i=0;i<N;i++) begin : my_block...

The behavior does not change.  How can I name an unnamed block?


Viewing all articles
Browse latest Browse all 1069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>