mirror of
https://github.com/fpganinja/taxi.git
synced 2026-08-15 03:41:24 -07:00
eth: Reset match counts when transferring data
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
@@ -591,6 +591,10 @@ always_ff @(posedge clk) begin
|
||||
end
|
||||
|
||||
// ordered sets
|
||||
if (xgmii_rxc == 4'b0000) begin
|
||||
rx_os_match_reg <= '0;
|
||||
rx_idle_match_reg <= '0;
|
||||
end
|
||||
if (xgmii_rxc == 4'b1111) begin
|
||||
rx_os_match_reg <= '0;
|
||||
rx_idle_match_reg <= {rx_idle_match_reg[0], 1'b1};
|
||||
|
||||
@@ -650,6 +650,10 @@ always_ff @(posedge clk) begin
|
||||
end
|
||||
|
||||
// ordered sets
|
||||
if (xgmii_rxc == 8'b00000000) begin
|
||||
rx_os_match_reg <= '0;
|
||||
rx_idle_match_reg <= '0;
|
||||
end
|
||||
if (xgmii_rxc == 8'b11111111) begin
|
||||
rx_os_match_reg <= '0;
|
||||
rx_idle_match_reg <= {rx_idle_match_reg[0], 1'b1};
|
||||
|
||||
Reference in New Issue
Block a user