zircon: Fix types

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich
2026-02-27 17:16:04 -08:00
parent aee0483835
commit f8d2c26663

View File

@@ -276,11 +276,12 @@ end else begin
end end
// handle ethertype // handle ethertype
logic [4:0] eth_type_state; state_t eth_type_state;
logic [31:0] eth_type_flags; logic [31:0] eth_type_flags;
always_comb begin always_comb begin
eth_type_flags = '0; eth_type_flags = '0;
eth_type_state = STATE_FINISH_1;
if (pkt_data_be[15:0] == ETHERTYPE_VLAN_S) begin if (pkt_data_be[15:0] == ETHERTYPE_VLAN_S) begin
// S-tag // S-tag
eth_type_state = STATE_VLAN_1; eth_type_state = STATE_VLAN_1;
@@ -303,11 +304,12 @@ always_comb begin
end end
// handle next header // handle next header
logic [4:0] next_hdr_state; state_t next_hdr_state;
logic [31:0] next_hdr_flags; logic [31:0] next_hdr_flags;
always_comb begin always_comb begin
next_hdr_flags = '0; next_hdr_flags = '0;
next_hdr_state = STATE_FINISH_1;
case (next_hdr_reg) case (next_hdr_reg)
PROTO_IPV6_HOPOPT: begin PROTO_IPV6_HOPOPT: begin
next_hdr_flags[FLG_L3_OPT_PRSNT] = 1'b1; next_hdr_flags[FLG_L3_OPT_PRSNT] = 1'b1;