ipv4: Default sr to all zeroes to squelch warnings

This commit is contained in:
Markus Koch 2022-10-31 17:02:37 +01:00
parent 172a11070b
commit 0d7981f801

View File

@ -43,7 +43,7 @@ begin
rx : block
constant BYTECOUNT_HEADER : integer := 20; -- Mandatory header fields
signal sr : byte_vector(0 to BYTECOUNT_HEADER - 1);
signal sr : byte_vector(0 to BYTECOUNT_HEADER - 1) := (others => x"00"); -- Init to zero to squelch metavalue warnings
alias sr_version is sr(0)(7 downto 4);
alias sr_ihl is sr(0)(3 downto 0);
alias sr_dscp is sr(1)(7 downto 2);