Altera_Forum
Honored Contributor
14 years agoNios II interface with pci-express
Hi,
I need to instantiate a NIOS II in an already designed FPGA using pci express communication. On the PC side, a driver is writing/reading registers in the FPGA through mapped memory. Now, I'd like to add a NIOS to the FPGA and be able to send commands ( Read / Write stuff ) from the PC. I have never instantiated a NIOS in an Altera chip so I'm wondering what are the possibilities to interface the NIOS with the pci express interface. I know there's the Avalon bus so maybe it's the key but I'm looking for some leads that I could read on. I thought about having the PC write in a custom IP / register through pci express. That write would trigger an interrupt on the NIOS ( or it could be pulled ). The NIOS would read what's in the register and execute what it needs to do. If the PC wants to read data, it would put a read command in a register. NIOS would see that read command and it could present the data to read on the pci express bus. I'm not sure how that's possible and if it's simple to implement. Thanks for any help!