Altera_Forum
Honored Contributor
14 years agoSOPC Component API
Hi all,
So, I've created my first-ever component (it's an adaptation of the VGA driver in AppNote333), and I'm trying to figure out how I integrate it so the Nios processor can actually address the DMA registers. The appnote was written a while ago, and talks about 'publishing' the component which seems to be how the headers etc. get exported out to a file the Nios can read, but I can't see where that option actually is in the Quartus2/SOPC application I have today. Indeed, I can see there is a cpu_sdk/inc directory that contains files that were automatically generated, and those files seem to be what I want. I just don't know how to make them. I also have a DMA controller in my project, but I'm not seeing any directory being made automatically that contains the 'altera_avalon_dma_regs.h' file, for example. So ideally I'd like to know 1) How do I get SOPC Builder or Quartus to create the cpu_sdk (or equivalent) directory ? 2) Where ought I put my own headers (or do they get generated automatically) for my vga component ? Cheers Simon