I am reading through a code written by a colleague, could someone please help me understand what it is supposed to be doing?
I don’t know what the intent of this code is, there are no helpful comments.
bit inject;
forever begin
@(posedge clk);
randomize(inject) with { inject dist { 1'b1 := 0,
1'b0 := 100
};
if ( inject)
<error injection code here>
end
The test is expected to be injecting errors, but it is not. And the root cause lies in this code.
Thanks