cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
blp4
Newbie
Newbie
1,965 Views
Registered: ‎10-11-2011

Need help for address allocation in a MicroBlaze project

i am using Virtex-5 XC5VFX70T for a MicroBlaze project,and i get some problems.

 i add a 256k bram  connected to LMB bus as follows

 

------------------------------------------------------------------------------------------------------
MEMORY
{
   ilmb_cntlr_dlmb_cntlr : ORIGIN = 0x00000050, LENGTH = 0x0003FFB0
}

-----------------------------------------------------------------------------------------------------

then,in my C code,a 2048x40 matrix is defined as follows

--------------------------------

Xfloat32 mat[2048][40];

--------------------------------

 

when i debug my program,i find that this matrix is allocated to an address 0xfffb2d20 which doesn't exist in the project.

Plz anyone help me solve this problem,thx.

 

 

 

0 Kudos
Reply
1 Reply
pafisep
Visitor
Visitor
1,959 Views
Registered: ‎01-14-2010

Can you write and read from the matrix?

If the answer is yes, the matrix is at that address, from the software perspective. 

 

If you are using Linux  ( not uCLinux ) you have the virtual memory support running...

 

See how virtual memory works on a textbook,.

 

My best regards

 

Paulo Ferreira

 

0 Kudos
Reply