例程代码中,LOCAL_MAC_ADDRESS为MAC地址
udp_ip_protocol_stack udp_ip_protocol_stack
(
.LOCAL_PORT_NUM (16'hf000),
.LOCAL_IP_ADDRESS (32'hc0a80a01),
.LOCAL_MAC_ADDRESS (48'h000a35000102),
.ICMP_EN (1'b1),
.ARP_REPLY_EN (1'b1),
.ARP_REQUEST_EN (1'b1),
.ARP_TIMEOUT_VALUE (30'd20_000_000),
.ARP_RETRY_NUM (4'd2),
但如下代码也是在设置MAC地址,请问他们之间有什么区别?以哪个MAC地址为准?
CNFG_LO_ADDR : begin
$display("** Note: Configuring unicast address(low word)....");
start_access <= 1;
writenread <= 1;
addr <= CONFIG_UNI0_CTRL_ADD;
axi_wr_data <= 32'h040302DA;
axi_state <= CNFG_HI_ADDR;
end
CNFG_HI_ADDR : begin
$display("** Note: Configuring unicast address(high word)....");
start_access <= 1;
writenread <= 1;
addr <= CONFIG_UNI1_CTRL_ADD;
axi_wr_data <= 32'h0605;
axi_state <= CNFG_FILTER;
end |