My aim is to randomize a one bit variable on posedge of clock, such that value is 0 for 100 clocks and then 1 for one clock.
This is the code I have:
@(posedge pin_if.clk);
randomize(inject) with {
inject dist { 1'b0 := 100,
1'b1 := 1
};
It doesn't work as expected, what am I missing here?