FPGA Groups

FPGA Groups (http://www.fpgacentral.com/group/index.php)
-   FPGA (http://www.fpgacentral.com/group/forumdisplay.php?f=14)
-   -   Storing Variables into LMB Memory (http://www.fpgacentral.com/group/showthread.php?t=58383)

Marco T. 04-19-2006 04:44 PM

Storing Variables into LMB Memory
I would store some variables of my software into lmb memory.

I have added a section .lmb using "generate linker script" to the linker.

I have added the following lines to my software:

#define __lmb__ __attribute__((aligned(32),section(".lmb")))

Xuint16 __lmb__ acq_analog_matrix[32][16];
(a global variable)

The software is compiled without reporting errors, but when I load the code
into my system it doesn't function.

Instead it function correctly in this way:

Xuint16 acq_analog_matrix[32][16];

Why can't I store a matrix into lmb bram?

Many Thanks

All times are GMT +1. The time now is 06:31 AM.

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