mirror of
https://github.com/fpganinja/taxi.git
synced 2026-04-07 04:38:42 -07:00
zircon: Fix types
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user