Commit 0325d86c authored by Ille, Ondrej, Ing.'s avatar Ille, Ondrej, Ing.

Merge branch '221-rx-buffer-unit-test-failure' into 'master'

Resolve "RX Buffer unit test failure"

Closes #221

See merge request !219
parents ded6c3b6 17c203ac
Pipeline #6271 failed with stages
in 62 minutes and 58 seconds
......@@ -875,9 +875,11 @@ begin
);
-- Memory written either on regular write or Extra timestamp write
RAM_write <= '1' when (write_raw_OK = '1' or write_extra_ts = '1')
else
'0';
RAM_write <= '1' when (write_raw_OK = '1' or
(write_extra_ts = '1' and data_overrun_int = '0' and
overrun_condition = false))
else
'0';
-- Write address is given by write pointer
RAM_write_address <= std_logic_vector(to_unsigned(
......
......@@ -466,6 +466,9 @@ architecture rx_buf_unit_test of CAN_test is
-- Check that word is exactly matching the word in in_mem at the
-- same position!
-------------------------------------------------------------------
info("Buffer output: " & to_hstring(buff_out));
info("Model output: " & to_hstring(in_mem(out_pointer)));
info("Word nr. :" & integer'image(i));
check(buff_out = in_mem(out_pointer),
"Buffer FUCKED UP, index: " & integer'image(out_pointer));
......
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