- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I've added a user logic block with the NIOS2 core via tha Avalon bus. The Base Adress is 0x00940000 - 0x0097FFFF. There are two ports: 16 bit input and 16 bit output. How do I interface them by software? What are the adresses of the ports?Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
> What are the adresses of the ports?
There's no mmu involved. The addresses will be the same: 0x00940000 - 0x0097FFFF. --Scott- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PS:
for II/s and II/f cores, you may want to use bit-31 cache bypass, i.e. : 0x00940000 - 0x0097FFFF ==> 0x80940000 - 0x8097FFFF Also, if you plan on using ioremap_nocache() in your driver, you might want to check it's implementation. In the kernel version I'm using, ioremap_nocache() simply returns the physical pointer that's passed in -- which really isn't what you want (or expect) for II/s & II/f. I'm not sure if this was updated in the latest version. I patched ioremap_nocache to return the pointer with bit-31 set after invalidating the dcache region. --Scott
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