"Range must be bounded by constant expression" - Error from a constraint block

In reply to Tudor Timi:

Yep, $display worked for me!
I used nested-for loop to print out the 2D contents. Probably that made the testbench slow, I believe.

I use Questa for running simulations. I will check if I can perform profiling there.