// Baseline/provisional/experimental Rx MAC, // ties to functionality in pbuf_writer.v // // 11-bit host_raddr for dpram addressing. // Packet memory appears to host as 16 bits wide, // so 4 kBytes overall. module base_rx_mac ( // Host side of Rx MAC memory input host_clk, input [10:0] host_raddr, output reg [15:0] host_rdata, // port to Rx MAC memory input rx_clk, input [7:0] rx_mac_d, input [11:0] rx_mac_a, input rx_mac_wen, // port to Rx MAC packet selector output rx_mac_accept, input [7:0] rx_mac_status_d, input rx_mac_status_s ); initial host_rdata=0; // Dual-port RAM localparam aw=11; reg [7:0] pack_mem_l[0:(1<