Commit a4400ed9 authored by Ille, Ondrej, Ing.'s avatar Ille, Ondrej, Ing.

test: TXT Buffer hazard -> achieve coverage.

Re work of READY/ABORT commands. Added incrementing delay
between the commands. Functional coverage point was hit.
parent 448d7e30
Pipeline #6209 canceled with stages
in 23 seconds
......@@ -108,25 +108,33 @@ package body txt_buffer_hazard_feature is
begin
o.outcome := true;
-- Repeat test several times
for i in 1 to 50 loop
-- Generate CAN frame
CAN_generate_frame(rand_ctr, CAN_frame);
-- Wait till Integration phase is over
for i in 0 to 3000 loop
wait until rising_edge(mem_bus(1).clk_sys);
end loop;
-- Generate CAN frame
CAN_generate_frame(rand_ctr, CAN_frame);
-- Insert the frame for transmittion
CAN_insert_TX_frame(CAN_frame, 1, ID_1, mem_bus(1));
-- Insert the frame for transmittion
CAN_insert_TX_frame(CAN_frame, 1, ID_1, mem_bus(1));
-- Wait some random time before sending first command
wait_rand_cycles(rand_ctr, mem_bus(1).clk_sys, 0, 200);
-- Repeat test several times
for i in 1 to 200 loop
-- Give "Set ready" command to the buffer
send_TXT_buf_cmd(buf_set_ready, 1, ID_1, mem_bus(1));
-- Wait for some clock cycles before sending abort command.
for j in 0 to i loop
wait until rising_edge(mem_bus(1).clk_sys);
end loop;
-- Give "Set abort" command to the buffer
send_TXT_buf_cmd(buf_set_abort, 1, ID_1, mem_bus(1));
-- Wait for some clock cycles before reading buffer and controller state
for i in 0 to 600 loop
for i in 0 to 20 loop
wait until rising_edge(mem_bus(1).clk_sys);
end loop;
......
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