- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi,i had created a custom component "32-bit register" using sopc builder.I want to write a data into the register using NIOS-II SBT Eclipse.Can anyone tell me the entire c-code to perform writing of register using nios-ii sbt eclipse
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Something like that maybe?
#include <system.h>
# include <sys/alt_cache.h>
unsigned int *my_register = alt_remap_uncached((void*)MY_REGISTER_BASE);
*my_register = my_value
OF course replace MY_REGISTER_BASE with the actual base address value defined in system.h

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