万兆以太网MAC设计(12)万兆UDP协议栈上板与主机网卡通信
UDP_10G_Stack#(
.P_SRC_MAC (P_SRC_MAC ),
.P_DST_MAC (P_DST_MAC ),
.P_SRC_IP_ADDR ({8'd192,8'd168,8'd100,8'd100} ),
.P_DST_IP_ADDR ({8'd192,8'd168,8'd100,8'd90}),
.P_SRC_UDP_PORT (16'h8080 ),
.P_DST_UDP_PORT (16'h8080 )
)UDP_10G_Stack_u0(
.i_xgmii_clk (w_xgmii_clk ),
.i_xgmii_rst (w_xgmii_rst || (!w_block_sync)),
.i_xgmii_rxd (w_xgmii_rxd ),
.i_xgmii_rxc (w_xgmii_rxc ),
.o_xgmii_txd (w_xgmii_txd ),
.o_xgmii_txc (w_xgmii_txc ),
.i_dynamic_src_mac (48'd0),
.i_dynamic_src_mac_valid (0),
.i_dynamic_dst_mac (48'd0),
.i_dynamic_dst_mac_valid (0),
.i_dymanic_src_port (0),
.i_dymanic_src_port_valid (0),
.i_dymanic_dst_port (0),
.i_dymanic_dst_port_valid (0),
.i_dynamic_src_ip (0),
.i_dynamic_src_ip_valid (0),
.i_dynamic_dst_ip (0),
.i_dynamic_dst_ip_valid (0),
.i_arp_active (0),
.i_arp_active_dst_ip (0),
/****user data****/
.m_axis_user_data (wm_axis_user_data ),
.m_axis_user_user (wm_axis_user_user ),
.m_axis_user_keep (wm_axis_user_keep ),
.m_axis_user_last (wm_axis_user_last ),
.m_axis_user_valid (wm_axis_user_valid ),
.s_axis_user_data (wm_axis_user_data ),
.s_axis_user_user (wm_axis_user_user ),
.s_axis_user_keep (wm_axis_user_keep ),
.s_axis_user_last (wm_axis_user_last ),
.s_axis_user_valid (wm_axis_user_valid ),
.s_axis_user_ready ( )
);