OpenCores
URL https://opencores.org/ocsvn/xge_mac/xge_mac/trunk

Subversion Repositories xge_mac

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /xge_mac
    from Rev 25 to Rev 26
    Reverse comparison

Rev 25 → Rev 26

/trunk/rtl/verilog/tx_dequeue.v
144,6 → 144,7
 
reg [63:0] txhfifo_rdata_d1;
 
reg [13:0] add_cnt;
reg [13:0] byte_cnt;
 
reg [31:0] crc32_d64;
712,7 → 713,8
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
crc_data = 32'hffffffff;
721,6 → 723,13
crc_data = crc32_d64;
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
 
always @(/*AS*/byte_cnt or curr_state_pad or txdfifo_rdata
893,17 → 902,8
end
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
 
frame_end <= next_txhfifo_wstatus[`TXSTATUS_EOP];

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.