Forum Discussion
Altera_Forum
Honored Contributor
12 years agoControlling HPS EMAC from FPGA Fabric (Nios II)
I would like to know if the Ethernet port (EMAC0) can be controlled by the NIOS in the FPGA Fabric. From the documentation it seems possible but it is not 100% clear that this HPS peripheral can be u...
Altera_Forum
Honored Contributor
12 years agoI don't know of anyone who has done that yet but the HPS was designed with that use case in mind. You'll want to make sure the interrupt line for the EMAC gets routed into the FPGA since Nios II should be servicing those interrupts and not the processors in the HPS block. To access the CSRs you'll want to put an address span expander (window bridge) between the Nios II core and the FPGA-to-HPS bridge so that you only expose a subset of the 4GB address space to the Nios II data master.