In reply to Muthamizh:
Then line 32 is
reg clock=0;
It looks like this does not cause your error. It comes from an earlier error in your code.
What do you include in your env_pkg?