Clock in top

hi
regarding uvm-vip:-
how can i control my clock in top module. like
if (cntrl_var==1)clock=0;
else
forever #10 clock=~clock;

i want to drive such kind of clock through driver. how can i do it, please suggest? i don’t want two clocks.i want to deal with one clock only.

In reply to Er. Tripathi:
https://verificationacademy.com/forums/uvm/how-generate-clock-driver