Skip to content

Commit 3c1e333

Browse files
xmarus09jakubcabal
authored andcommitted
feat(nic): add an additional validation to the mcast flag to the MAC CHECK subcomponent of RX MAC
This prevents the BCAST and MCAST flags from being set simultaneously in the output (meta)data.
1 parent 83d50fc commit 3c1e333

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comp/nic/mac_lite/rx_mac_lite/comp/mac_check/mac_check.vhd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ begin
224224

225225
mac_cast_err_g : for r in 0 to REGIONS-1 generate
226226
-- Possible multicast error occurence
227-
s_multicast_err(r) <= not s_ext_mac_arr(r)(0);
227+
s_multicast_err(r) <= (not s_ext_mac_arr(r)(0)) or not s_broadcast_err(r);
228228
-- Possible broadcast error occurence
229229
s_broadcast_err(r) <= nand s_ext_mac_arr(r);
230230
end generate;

0 commit comments

Comments
 (0)