Results 1 to 5 of 5

Thread: How to include custom onchip memory block into the Linker section mappings ?

  1. #1
    Join Date
    Apr 2018
    Posts
    22
    Rep Power
    1

    Default How to include custom onchip memory block into the Linker section mappings ?

    Hello, I have a custom onchip memory (block memory) with a avalon slave interface. I want this to show up in the linker section mappings of eclipse SDK. So, that i will use this to load rodata,heap, stack (use it as code memory). I observed that on-chip memory has got attribute named "memory " and jtag-uart has got "printable" attribute. what additional things to do to my custom logic so that it can be seen in linker mapping section.

  2. #2
    Join Date
    May 2013
    Posts
    908
    Rep Power
    1

    Default Re: How to include custom onchip memory block into the Linker section mappings ?

    In the BSP editor, add it as a new section to the Nios memory map.

  3. #3
    Join Date
    Apr 2018
    Posts
    22
    Rep Power
    1

    Default Re: How to include custom onchip memory block into the Linker section mappings ?

    I tried it , but it says error something like- memory block withe the name "my custom logic" not found in sopc design. I explored the .IP file of onchip that taken from IP catalog and compared with .IP file of my custom logic. I can see there are certain .xml like lines in the ip file
    Like IsMemoryDevice =1 in alteration ocm and it is zero in my case. I am thinking in this direction.

  4. #4
    Daixiwen is offline Moderator **Forum Master**
    Join Date
    May 2008
    Location
    Norway
    Posts
    4,560
    Rep Power
    1

    Default Re: How to include custom onchip memory block into the Linker section mappings ?

    You need to edit your IP's *_hw.tcl file with a text editor. Find the section describing the Avalon Slave interface for your memory component, that should be like this:
    Code:
    # 
    # connection point iname
    # 
    add_interface iname avalon end
    (where iname is the name of your avalon interface)
    And add a parameter in the list:
    Code:
    set_interface_property iname isMemoryDevice true
    replacing iname with the name of your interface.
    Then regenerate the QSys project and recompile.
    Definition of a man-year: 730 people trying to finish the project before lunch

  5. #5
    Join Date
    Apr 2018
    Posts
    22
    Rep Power
    1

    Default Re: How to include custom onchip memory block into the Linker section mappings ?

    Quote Originally Posted by Daixiwen View Post
    You need to edit your IP's *_hw.tcl file with a text editor. Find the section describing the Avalon Slave interface for your memory component, that should be like this:
    Code:
    # 
    # connection point iname
    # 
    add_interface iname avalon end
    (where iname is the name of your avalon interface)
    And add a parameter in the list:
    Code:
    set_interface_property iname isMemoryDevice true
    replacing iname with the name of your interface.
    Then regenerate the QSys project and recompile.

    Hehe !!! Worked
    This is exactly what I want
    I can now select my peripheral in linker script pulldown menu. Trivial thing is ,In settings.html file attribute name is empty.
    Thank you

Similar Threads

  1. Please Help!!! .text linker section assignment in NIOS BSP Editor
    By knowfish in forum Quartus II and EDA Tools Discussion
    Replies: 1
    Last Post: August 26th, 2016, 01:31 AM
  2. Linker - scripting section mappings
    By dipling in forum Embedded Design Suite (EDS)
    Replies: 1
    Last Post: October 10th, 2014, 05:21 AM
  3. BSP creation from command line fails: Linker Section mapping problem
    By swisselk in forum General Discussion Forum
    Replies: 0
    Last Post: May 27th, 2012, 06:39 AM
  4. Linker : Restrict section sizes
    By JasonDiplomat in forum General Software Forum
    Replies: 3
    Last Post: May 16th, 2010, 11:52 PM
  5. onchip memory in MRAM block
    By eliben in forum General Discussion Forum
    Replies: 4
    Last Post: March 16th, 2006, 08:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •