Skip to content
Snippets Groups Projects
Commit d58fa6c7 authored by Horia-Răzvan Enescu's avatar Horia-Răzvan Enescu
Browse files

Added more variation for f_or_s_i.

parent fe83c126
Branches axi4l
No related tags found
No related merge requests found
......@@ -59,8 +59,21 @@ module tb;
initial begin
#10000;
forever #(100 * ($random % (20 + 1)))
f_or_s_i = $random;
forever begin
f_or_s_i <= ~f_or_s_i;
if ($random % 10 < 4)
repeat (($random % 2) + 1)
@(posedge clock);
else
repeat (($random % 200) + 1)
@(posedge clock);
f_or_s_i <= ~f_or_s_i;
repeat (($random % 2000) + 1)
@(posedge clock);
end
end
initial
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment