diff --git a/rtl/axis_xgmii_tx_32.v b/rtl/axis_xgmii_tx_32.v index 3e9cc8762..cb5c5ae5d 100644 --- a/rtl/axis_xgmii_tx_32.v +++ b/rtl/axis_xgmii_tx_32.v @@ -203,17 +203,6 @@ function [2:0] keep2count; endcase endfunction -function [3:0] count2keep; - input [2:0] k; - case (k) - 3'd0: count2keep = 4'b0000; - 3'd1: count2keep = 4'b0001; - 3'd2: count2keep = 4'b0011; - 3'd3: count2keep = 4'b0111; - 3'd4: count2keep = 4'b1111; - endcase -endfunction - // Mask input data integer j; diff --git a/rtl/axis_xgmii_tx_64.v b/rtl/axis_xgmii_tx_64.v index 361e3900a..c78b5741f 100644 --- a/rtl/axis_xgmii_tx_64.v +++ b/rtl/axis_xgmii_tx_64.v @@ -280,21 +280,6 @@ function [3:0] keep2count; endcase endfunction -function [7:0] count2keep; - input [3:0] k; - case (k) - 4'd0: count2keep = 8'b00000000; - 4'd1: count2keep = 8'b00000001; - 4'd2: count2keep = 8'b00000011; - 4'd3: count2keep = 8'b00000111; - 4'd4: count2keep = 8'b00001111; - 4'd5: count2keep = 8'b00011111; - 4'd6: count2keep = 8'b00111111; - 4'd7: count2keep = 8'b01111111; - 4'd8: count2keep = 8'b11111111; - endcase -endfunction - // Mask input data integer j;