Commit 88483f3b authored by Ille, Ondrej, Ing.'s avatar Ille, Ondrej, Ing.
Browse files

Added 2% error chance to every stuff bit.

Test run with 2000 iterations, OK.
Stuff errors fired, bit stuffing passing.
parent 758ad264
......@@ -726,7 +726,7 @@ begin
-- Generate random stuff error;
rand_real_v(rand_st_err_ctr, tmp);
if (tmp > 1.0) then
if (tmp > 0.98) then
err_data <= '1';
wait until rising_edge(clk_sys) and (bd_trig = '1');
wait for 1 ns;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment