Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
18 years ago

NIOS II IDE

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

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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 ---

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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