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

Subversion Repositories openarty

[/] [openarty/] [trunk/] [rtl/] [enetpackets.v] - Diff between revs 33 and 49

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 33 Rev 49
Line 198... Line 198...
        reg     [31:0]   rxmem   [0:((1<<MAW)-1)];
        reg     [31:0]   rxmem   [0:((1<<MAW)-1)];
 
 
        reg     [(MAW+1):0]      tx_len;
        reg     [(MAW+1):0]      tx_len;
 
 
`ifdef  RX_SYNCHRONOUS_WITH_WB_CLK
`ifdef  RX_SYNCHRONOUS_WITH_WB_CLK
 
        wire    rx_broadcast;
        wire    [(MAW+1):0]      rx_len;
        wire    [(MAW+1):0]      rx_len;
`else
`else
 
        (* ASYNC_REG = "TRUE" *) reg    rx_broadcast;
        (* ASYNC_REG = "TRUE" *) reg    [(MAW+1):0]      rx_len;
        (* ASYNC_REG = "TRUE" *) reg    [(MAW+1):0]      rx_len;
`endif
`endif
 
 
        reg     tx_cmd, tx_cancel;
        reg     tx_cmd, tx_cancel;
`ifdef  TX_SYNCHRONOUS_WITH_WB_CLK
`ifdef  TX_SYNCHRONOUS_WITH_WB_CLK
Line 301... Line 303...
        wire    [31:0]   w_tx_ctrl;
        wire    [31:0]   w_tx_ctrl;
        wire    [31:0]   w_rx_ctrl;
        wire    [31:0]   w_rx_ctrl;
        wire    [3:0]    w_maw;
        wire    [3:0]    w_maw;
 
 
        assign  w_maw = MAW+2; // Number of bits in the packet length field
        assign  w_maw = MAW+2; // Number of bits in the packet length field
        assign  w_rx_ctrl = { 4'h0, w_maw, {(24-19){1'b0}}, rx_crcerr, rx_err,
        assign  w_rx_ctrl = { 4'h0, w_maw, {(24-20){1'b0}},
 
                        (rx_valid)&&(rx_broadcast)&&(!rx_clear),
 
                        rx_crcerr, rx_err,
                        rx_miss, rx_busy, (rx_valid)&&(!rx_clear),
                        rx_miss, rx_busy, (rx_valid)&&(!rx_clear),
                        {(14-MAW-2){1'b0}}, rx_len };
                        {(14-MAW-2){1'b0}}, rx_len };
 
 
        assign  w_tx_ctrl = { 4'h0, w_maw, {(24-19){1'b0}},
        assign  w_tx_ctrl = { 4'h0, w_maw, {(24-19){1'b0}},
                        !config_hw_ip_check,
                        !config_hw_ip_check,
Line 681... Line 685...
 
 
`ifdef  RX_SYNCHRONOUS_WITH_WB_CLK
`ifdef  RX_SYNCHRONOUS_WITH_WB_CLK
        assign  rx_busy  = n_rx_busy;
        assign  rx_busy  = n_rx_busy;
        assign  rx_valid = n_rx_valid;
        assign  rx_valid = n_rx_valid;
        assign  rx_len   = n_rx_len;
        assign  rx_len   = n_rx_len;
 
        assign  rx_broadcast = n_rx_broadcast;
`else
`else
        reg     r_rx_busy, r_rx_valid;
        reg     r_rx_busy, r_rx_valid;
        always @(posedge i_wb_clk)
        always @(posedge i_wb_clk)
        begin
        begin
                r_rx_valid <= n_rx_valid;
                r_rx_valid <= n_rx_valid;
Line 692... Line 697...
 
 
                r_rx_busy <= n_rx_busy;
                r_rx_busy <= n_rx_busy;
                rx_busy <= r_rx_busy;
                rx_busy <= r_rx_busy;
 
 
                rx_len <= n_rx_len;
                rx_len <= n_rx_len;
 
                rx_broadcast <= n_rx_broadcast;
        end
        end
 
 
`endif
`endif
 
 
        reg     [3:0]    rx_err_pipe, rx_miss_pipe, rx_crc_pipe;
        reg     [3:0]    rx_err_pipe, rx_miss_pipe, rx_crc_pipe;

powered by: WebSVN 2.1.0

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