- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I'm inexperienced with FPGA's. I want to implement a custom instruction, which calculates an SDRAM address and writes something into. I use NIOS II e and SDRAM controller IP. My questions are: 1. Is that possible? (I guess it is, but would be nice to hear a confirm from someone else ;)) 2. Whereto do I provide my result? To the SDRAM controller or the SDRAM itself? 3. Not sure it is conflict-free with data master Maybe someone have literature, i already read the altera custom instruction user guide and found nothing similar in this forum yet. Sorry, this questions may be stupid, but as i sad, I'm totaly beginner. Regards.Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I believe what you would like to do can be accomplished with a single new IP component which has two interfaces:
- A custom instruction slave connected to the NIOS
- An Avalon-MM Master connected to the SDRAM controller (or, any bridge you have in front of the SDRAM controller)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It may sound like a stupid question but why don't you want to use regular instructions to write to the memory? The CPU already has instructions to load and store values to/from the data memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I just trying out some things to get started. It maybe has totaly no sense but i want to figure out how things work.
Thanks for replys.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would start with a single cycle combinatorial custom instruction, maybe just add or byte reverse.
If you find your instruction on the RTL viewer you'll get a good idea of how it all works.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page