FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > DSP

DSP comp.dsp newsgroup, mailing list

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-19-2003, 07:14 PM
Edward Buckley
Guest
 
Posts: n/a
Default Memory allocation / External Memory?

Hello all,

I am currently writing an algorithm using the 6711DSK board in which I
attempt to allocate a 2D array. Unfortunately, it seems that I can't
allocate a very large array without malloc() returning NULL.
Presumably this is because I am not accessing the external memory.
This may be a silly question, but how exactly do I store and access
data in external memory? Is it just a question of increasing the heap
size?

Many thanks,

Edward Buckley.
Reply With Quote
  #2 (permalink)  
Old 07-21-2003, 01:22 PM
Vic
Guest
 
Posts: n/a
Default Re: Memory allocation / External Memory?

Hi,
I work with TMS..5402, have being writing only nobody answer.
5402 have 1 Mbytes addressable, 4 kB internal; all upper memory is
external, I use over .asm function with commands "reada/writa".

Cheers
Victor
Reply With Quote
  #3 (permalink)  
Old 07-22-2003, 02:04 AM
Jerry Avins
Guest
 
Posts: n/a
Default Re: Memory allocation / External Memory?

Vic wrote:
>
> Hi,
> I work with TMS..5402, have being writing only nobody answer.
> 5402 have 1 Mbytes addressable, 4 kB internal; all upper memory is
> external, I use over .asm function with commands "reada/writa".
>
> Cheers
> Victor


You make interesting and accurate statements. Do you have a question?

Jerry
--
Engineering is the art of making what you want from things you can get.
ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
Reply With Quote
  #4 (permalink)  
Old 07-22-2003, 03:10 AM
Randy Yates
Guest
 
Posts: n/a
Default Re: Memory allocation / External Memory?

Edward Buckley wrote:
>
> Hello all,
>
> I am currently writing an algorithm using the 6711DSK board in which I
> attempt to allocate a 2D array. Unfortunately, it seems that I can't
> allocate a very large array without malloc() returning NULL.
> Presumably this is because I am not accessing the external memory.
> This may be a silly question, but how exactly do I store and access
> data in external memory? Is it just a question of increasing the heap
> size?
>
> Many thanks,
>
> Edward Buckley.


Edward,

This is not a silly question at all. On the contrary, if the 67x tools
work similarly to the 54x/55x tools, then you're in for quite a
learning curve. Also caveat this advice since I've never done exactly this,
but I have done my fair share of hacking the relevent tool files in similar
ways.

The way I understand it, you have to do it in a linker command file. The .sysmem
section has to exist in at least one source file, then in the linker command
file point it into a defined memory section that points to your external
memory. Something like this:

*****************Begin Linker Command File***********************
-heap 08000h

MEMORY
{
HEAP_MEM : origin = 18000h, length = 08000h
}

SECTIONS
{
.sysmem : { } > HEAP_MEM
}
*****************End Linker Command File*************************

Note that you also have to specify the heap size with the "-heap"
directive.

Anyway, that's where I would start.
--
% Randy Yates % "...the answer lies within your soul
%% Fuquay-Varina, NC % 'cause no one knows which side
%%% 919-577-9882 % the coin will fall."
%%%% <[email protected]> % 'Big Wheels', *Out of the Blue*, ELO
http://home.earthlink.net/~yatesc
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory Allocation for ISE tools in Linux vaibhav FPGA 0 12-18-2008 11:34 AM
EDK + Modelsim simulation : Memory allocation failure Pasacco FPGA 4 11-23-2007 01:58 PM
Caching of external memory Rune Dahl Jorgensen FPGA 1 12-10-2006 02:01 PM
dynamic memory allocation NIOS J-Wing FPGA 1 01-05-2004 10:49 PM


All times are GMT +1. The time now is 04:30 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved