Altera_Forum
Honored Contributor
13 years agoTerASIC DE2-115 and Custom FPGA Component
Good morning,
Am relatively new to FPGA development and am working through RTFM issues. Please bear with any dumb questions. I've been successful at getting the DE2-115 up and have exercised all of the peripherals using the NIOS OS. I need to develop some custom FPGA code around the NIOS but don't quite understand how to integrate the custom code with the NIOS. The custom VHDL needs to monitor the HSMC and GPIO ports and write to a block of FPGA memory when a specific event occurs. I can manage almost all of this. However, I have four integration questions: 1) (New VHDL Developer Question) - How do I specify a base address for the FPGA memory as part of my code so that I can memory map it to the processor? 2) How do I actually go about "connecting" it to the processor. Do I need to create a custom component in SOPC builder? Or is there a "better" way? 3) Do I need to arbitrate between my custom code and the processor accessing this memory (I'm guessing I do)? 4) How do I connect my custom FPGA to a NIOS interrupt. Not trying to get someone to write the code. However, I've not been successful at finding a tutorial or examples that deal with this topic. Any help is greatly appreciated. ME