The object at dereference depth 1 is being used before it was constructed/allocated. Please make sure that the object is allocated before using it

In reply to alexd555:

In reply to chr_sue:
Why not clk under block ? begin…end

What about this question ?

Thanks,
Alex