Commit 1930c584 authored by Ille, Ondrej, Ing.'s avatar Ille, Ondrej, Ing.

test: Account for stuff bits in measuring length of Error frame!

If first detected bit is stuff bit, then we also must account it.
Otherwise, we force value recessive for one bit longer!!!
parent 79fb0ced
Pipeline #15831 failed with stages
in 18 minutes and 36 seconds
......@@ -167,7 +167,7 @@ package body error_rules_a_feature is
wait until iout(2).can_tx = DOMINANT;
force_bus_level(RECESSIVE, so.bl_force, so.bl_inject);
CAN_wait_sample_point(iout(2).stat_bus);
CAN_wait_sample_point(iout(2).stat_bus, false);
wait for 35 ns; -- To account for all pipeline stages delay!
get_controller_status(status, ID_2, mem_bus(2));
......@@ -180,10 +180,10 @@ package body error_rules_a_feature is
get_controller_status(status, ID_1, mem_bus(1));
end loop;
-- Now force the bus low for 10 bit times
-- Now force the bus low for 16 bit times
force_bus_level(RECESSIVE, so.bl_force, so.bl_inject);
for i in 0 to 15 loop
CAN_wait_sample_point(iout(1).stat_bus);
CAN_wait_sample_point(iout(1).stat_bus, false);
end loop;
wait for 20 ns;
release_bus_level(so.bl_force);
......
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