Skip to content
Snippets Groups Projects

corrected crc checksum calculation

Merged Reinier van der Walle requested to merge HPR-152 into master
6 files
+ 169
168
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -68,6 +68,8 @@
-- 2016-02-16 1.0 will Created
-- 2019-10-15 1.1 Will Kamp Added support for i_stream.keep, generics to
-- control bit reversal and CRC output XOR.
-- 2024-02-27 1.2 R vd Walle Removed byte swap when G_BIT_REVERSE_OUT =
-- (ASTRON) true, only perform bit swap, no byte swap.
-------------------------------------------------------------------------------
library ieee;
@@ -243,7 +245,7 @@ begin -- architecture rtl
v_xor_crc := v_rb_crc xor g_XOR_CRC_OUT;
if g_BIT_REVERSE_OUT then
o_crc <= byte_swap(bit_swap(v_xor_crc));
o_crc <= bit_swap(v_xor_crc);
else
o_crc <= v_xor_crc;
end if;
Loading