How to configure/access Cyclone V HPS EMAC counters.
I have a Cyclone V system where I use both EMAC0 and EMAC1 on the HPS. To test, my system is set up as a wire, essentially. Every packet that comes into EMAC0 is copied to EMAC1. Using wireshark I can demonstrate this and it's true. But when I look at the RX counters for EMAC0 (at address 0xff700XXX) I see very few frames/packets/bytes but thousands, if not millions, on EMAC1 (at address 0xff702XXX). And if I reverse the direction of my traffic, I see the RX counts on EMAC1 but little or no TX trafic on EMAC0.
Both are configured the same (the EMAC registers are configured the same related to MMC, DMA, etc.) so far as I can tell. I do see very infrequent counts (mostly when I ARP, it seems, but not when UDP/TCP packets fly by).
What can I do to get the EMAC0 counters working?