0

How would you generate clock jitter in a testbench?

I have seen these two ways, but I am not sure if they are the best ways:

always #(period/2+random(-jitter/2,jitter/2) ) clk = ~clk;  always #(period/2+dist_uniform(seed,-jitter,jitter)) clk = ~clk;
Asked question