Commit 736ef38a authored by Ille, Ondrej, Ing.'s avatar Ille, Ondrej, Ing.

test: Add ERR_CAPT feature test for control field.

parent 5a3bd078
Pipeline #14790 canceled with stages
in 44 minutes and 16 seconds
This diff is collapsed.
......@@ -2069,16 +2069,23 @@ package CANtestLib is
-- Wait until sample point (from Status Bus).
--
-- Arguments:
-- pc_dbg State to poll on.
-- skip_stuff_bits When true, bits which are destuffed are skipped, only
-- bits counted by protocol control are taken into account.
-- When false, also stuff bits are taken into account.
-- stat_bus Status bus signal
-- skip_stuff_bits Whether stuff bits should be skipped or accounted.
----------------------------------------------------------------------------
procedure CAN_wait_sample_point(
signal stat_bus : in std_logic_vector(511 downto 0);
constant skip_stuff_bits : in boolean := true
);
----------------------------------------------------------------------------
-- Wait until start of bit (Sync Seg), (from Status Bus).
--
-- Arguments:
-- pc_dbg State to poll on.
----------------------------------------------------------------------------
procedure CAN_wait_sync_seg(
signal stat_bus : in std_logic_vector(511 downto 0)
);
----------------------------------------------------------------------------
-- Initialize TXT Buffer memories
......@@ -2971,6 +2978,7 @@ package body CANtestLib is
signal ts_preset_val : out std_logic_vector(63 downto 0)
)is
begin
info ("Timestamp value to set: " & to_hstring(ts_value));
ts_preset_val <= ts_value;
wait for 0 ns;
......@@ -5055,6 +5063,19 @@ package body CANtestLib is
wait until stat_bus(STAT_RX_TRIGGER) = '1';
end if;
end procedure;
procedure CAN_wait_sync_seg(
signal stat_bus : in std_logic_vector(511 downto 0)
) is
begin
while true loop
wait until stat_bus(STAT_TX_TRIGGER);
wait for 1 ps;
if (stat_bus(STAT_TX_TRIGGER) = '1') then
return;
end if;
end loop;
end procedure;
procedure CAN_init_txtb_mems(
......
......@@ -61,6 +61,7 @@ feature:
device_id:
dlc_can20_8_64_bytes:
err_capt_arb_bit:
err_capt_ctrl_bit:
err_capt_ctrl_form:
err_capt_sof:
err_norm_fd:
......
......@@ -92,6 +92,7 @@ feature:
device_id:
dlc_can20_8_64_bytes:
err_capt_arb_bit:
err_capt_ctrl_bit:
err_capt_ctrl_form:
err_capt_sof:
err_norm_fd:
......
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