diff --git a/lib/emac/src/crc32.vhd b/lib/emac/src/crc32.vhd index 5a8cb22..c48cfb5 100644 --- a/lib/emac/src/crc32.vhd +++ b/lib/emac/src/crc32.vhd @@ -6,6 +6,10 @@ use std.textio.all; -- Imports the standard textio package. use work.utils_pkg.all; -- Imports the standard textio package. ENTITY crc32 IS + Generic + ( + crc32_init : unsigned(31 downto 0) := X"00000000" + ); Port ( rst : in STD_LOGIC; @@ -48,7 +52,7 @@ begin if rising_edge(clk) then crc32_vld <= not rst and din_vld; if rst = '1' then - crc0 <= (others => '0'); + crc0 <= crc32_init; elsif din_vld = '1' then crc0 <= crc2; end if;