- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi....i'm using a niosII processor and I wanna add a hardware block external to the processor and on the same FPGA that performs a general function (eg, Vector dot product). Should I interface it to the processor using the avalon bus or can i interface to a PIO block that's already interfaced to the avalon bus? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/unsure.gif
thnxLink Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi wesam,
> Should I interface it to the processor using the avalon bus or can i > interface to a PIO block that's already interfaced to the avalon bus? I started a design using a PIO for address, a PIO for control, and a PIO for data. I quickly changed my mind once I started writing the device driver code -- it was much more time-efficient (and MIPS efficient) to just write a simple avalon interface. Later, I decided I needed DMA support ... and it basically came "for free" since I already had the avalon interface. In general, if you're doing more than just twiddling a few bits, you should consider the avalon interface. One way or another, you'll end up writing the interface logic anyway-- whether it's in an HDL or in C ... but the HDL strategy comes with some built-in "freebies" ;-) Regards, --Scott- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thnx a lot,
so, are the 'Create New Component' and the 'Interface to User Logic' in SOPC implement an avalon interfaced device or just any general device? thnx- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The interface to user logic will create the avalon interface for your logic.
You'll have to select address width, data bus width, etc. as appropriate. Regards, --Scott- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I should be more clear ... sorry:
> The interface to user logic will create the avalon interface for your logic. The interface to user logic will export the avalon bus signals from thesystem module that your custom logic connects to. --Scott
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks a lot
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