i need to generate a clock that can be controlled by a signal driven by driver.
my scenerio is like >> whenever CS will go low the clock start toggling.
i have implented a clock generation inside interface like…
interface my_interface;
bit clk;
bit start_clk;
always
begin
if(start_clk) #5 clk =~clk;
end
endinterface
inside driver run phase i have assinged the value of start_clk like vif.start_clk=1’b1;
but its not working.