Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

NIOS II IDE

Altera_Forum
Honored Contributor II
1,316 Views

I need information on where I can find the Macros which are to be used to access the registers in peripheral devices. Any help is appreciated

0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
381 Views

The IDE should be able to tell you where any header file is coming from, by clicking on the element in the right hand side column. 

 

However, there&#39;s also a simple convention that is used for all Avalon components. The header file, you&#39;re looking for is defined in the the <component_dir>/inc/<component_dir>.h file. 

 

The generated_all.mk file (in the system_description directory of your System Library) will tell you the specific paths to hunt down....though, like I say in the first statement, the IDE should be intelligent enough to figure this out for you....should being the operative word! 

 

Cheers, 

 

- slacker
0 Kudos
Altera_Forum
Honored Contributor II
381 Views

Thanks, I found all types of configurations I had done in that list on the right hand side.  

 

I want to use the on chip memory in my design. So,  

Do I just address the memory by looking at the address in the memory map? 

or 

do I have to look for some readymade function to write in that memory for me...  

 

Thanks a lot 

 

 

 

 

--- Quote Start ---  

originally posted by slacker@Jan 30 2007, 05:38 PM 

the ide should be able to tell you where any header file is coming from, by clicking on the element in the right hand side column. 

 

however, there&#39;s also a simple convention that is used for all avalon components.  the header file, you&#39;re looking for is defined in the the <component_dir>/inc/<component_dir>.h file. 

 

the generated_all.mk file (in the system_description directory of your system library) will tell you the specific paths to hunt down....though, like i say in the first statement, the ide should be intelligent enough to figure this out for you....should being the operative word! 

 

cheers, 

 

- slacker 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=21042) 

--- quote end ---  

 

--- Quote End ---  

0 Kudos
Altera_Forum
Honored Contributor II
381 Views

Yes, though if you want to locate one of the main linker sections (.rodata, .rwdata, .text) in that memory, you&#39;ll want to set those options in System Library Properties. 

 

Cheers, 

 

- slacker
0 Kudos
Reply