URL
https://opencores.org/ocsvn/xge_mac/xge_mac/trunk
[/] [xge_mac/] [trunk/] [rtl/] [verilog/] [tx_dequeue.v] - Diff between revs 25 and 26
Show entire file |
Details |
Blame |
View Log
Rev 25 |
Rev 26 |
Line 142... |
Line 142... |
reg [63:32] xgxs_txd_barrel;
|
reg [63:32] xgxs_txd_barrel;
|
reg [7:4] xgxs_txc_barrel;
|
reg [7:4] xgxs_txc_barrel;
|
|
|
reg [63:0] txhfifo_rdata_d1;
|
reg [63:0] txhfifo_rdata_d1;
|
|
|
|
reg [13:0] add_cnt;
|
reg [13:0] byte_cnt;
|
reg [13:0] byte_cnt;
|
|
|
reg [31:0] crc32_d64;
|
reg [31:0] crc32_d64;
|
reg [31:0] crc32_d8;
|
reg [31:0] crc32_d8;
|
reg [31:0] crc32_tx;
|
reg [31:0] crc32_tx;
|
Line 710... |
Line 711... |
endcase
|
endcase
|
|
|
end
|
end
|
|
|
|
|
always @(/*AS*/crc32_d64 or txhfifo_wen or txhfifo_wstatus) begin
|
always @(/*AS*/crc32_d64 or next_txhfifo_wstatus or txhfifo_wen
|
|
or txhfifo_wstatus) begin
|
|
|
if (txhfifo_wen && txhfifo_wstatus[`TXSTATUS_SOP]) begin
|
if (txhfifo_wen && txhfifo_wstatus[`TXSTATUS_SOP]) begin
|
crc_data = 32'hffffffff;
|
crc_data = 32'hffffffff;
|
end
|
end
|
else begin
|
else begin
|
crc_data = crc32_d64;
|
crc_data = crc32_d64;
|
end
|
end
|
|
|
|
if (next_txhfifo_wstatus[`TXSTATUS_EOP] && next_txhfifo_wstatus[2:0] != 3'b0) begin
|
|
add_cnt = {11'b0, next_txhfifo_wstatus[2:0]};
|
|
end
|
|
else begin
|
|
add_cnt = 14'd8;
|
|
end
|
|
|
end
|
end
|
|
|
always @(/*AS*/byte_cnt or curr_state_pad or txdfifo_rdata
|
always @(/*AS*/byte_cnt or curr_state_pad or txdfifo_rdata
|
or txdfifo_rempty or txdfifo_ren_d1 or txdfifo_rstatus
|
or txdfifo_rempty or txdfifo_ren_d1 or txdfifo_rstatus
|
or txhfifo_walmost_full) begin
|
or txhfifo_walmost_full) begin
|
Line 891... |
Line 900... |
byte_cnt <= 14'd12;
|
byte_cnt <= 14'd12;
|
|
|
end
|
end
|
else begin
|
else begin
|
|
|
// if (next_txhfifo_wstatus[`TXSTATUS_EOP] && next_txhfifo_wstatus[2:0] != 3'b0) begin
|
byte_cnt <= byte_cnt + add_cnt;
|
|
|
// byte_cnt <= byte_cnt + {11'b0, next_txhfifo_wstatus[2:0]};
|
|
|
|
// end
|
|
// else begin
|
|
|
|
byte_cnt <= byte_cnt + 14'd8;
|
|
|
|
// end
|
|
|
|
end
|
end
|
|
|
frame_end <= next_txhfifo_wstatus[`TXSTATUS_EOP];
|
frame_end <= next_txhfifo_wstatus[`TXSTATUS_EOP];
|
|
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.