- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have a VIP chain pieced together in SOPC Builder. We'd like to change the settings for the VIP blocks via an external (to the FPGA) SPI master. I am confused on how to do this. Can I do this directly from SPI bus to the VIP? Or do I need to instantiate a Nios? There are two different "SPI" devices in SOPC: An Avalon-ST SPI and a SPI (3 Wire Serial). I'm not sure which one to use or do I need both?
Ideally I'd like to just install a SPI block between the outside world and the VIP blocks and hopefully these get memory mapped somehow - is this doable? I'd rather not add a Nios because of the learning curve/time. But if this is how it has to be done then so be it. Any help would be appreciated. Thanks.Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You have a few options:
1 - Use SoPC Builder. Create an Avalon MM Master component that will take in your SPI commands and convert them to avalon reads and writes to write to your components. You could also do the SPI decoding outside SoPC builder and just export an Avalon MM Master port outside SoPC builder that you can read/write. 2 - Don't use SoPC builder. If you're not using a NIOS, you can certainly use the VIP without SoPC builder. Then you just come up with your own scheme for reading/writing the avalon slave ports on the various components. This would be my first choice in your case. 3 - Use a NIOS. In your case, this would be my last choice. Jake- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There a SPI to Avalon-MM component (http://www.altera.com/literature/hb/nios2/qts_qii55011.pdf). It sounds like this would work perfectly...no?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yeah it looks like it'll work. I didn't even know that one existed.
Jake- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the advice guys. I'm piecing it together outside of SOPC Builder now. I'll see how that goes.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page