Sign in

username:

password:



Not a member?

Search Comp.Arch.FPGA



Search tips

fpga by Keywords

Altera | ASIC | CPLD | Cyclone | DCM | DDR | DSP | Ethernet | ISE | JTAG | Linux | LVDS | Microblaze | ML310 | Modelsim | NIOS | OPB | PCI | Quartus | RocketIO | SDRAM | Spartan | Spartan3 | SRAM | Stratix | Verilog | VHDL | Virtex | Virtex-4 | Virtex-II | Xilinx | XST


Ads

See Also

DSPEmbedded SystemsElectronics

Comp.Arch.FPGA | NIOS II - Instantiating array on SDRAM

There are 2 messages in this thread.

You are currently looking at messages 0 to 2.

NIOS II - Instantiating array on SDRAM - zg - 2004-08-13 17:03:00

Hi group,

I am trying to develop a digital camera around the NIOS II using the
Stratix development board.
I need to instantiate a large buffer (2MW) in the SDRAM.
In my code I instantiated my array like this:

alt_u16 Image_Buffer[0x2000000] __attribute__ ((section (".sdram"));

The SOPC builder has an SDRAM of 4MX32bits, so I should have enough
space to instantiae the array.
When I am trying to compile I am getting a messege that my SDRAM is
full unless I am reducing the array size to like 20000.
All of my program and data are stored in different memories (ext sram
and internal sram).
Questions:
1. What is the limitations of the array size?
2. Am I doing the right thing in instantiating the array like this?

I will appreciate any help,
Zohar



Re: NIOS II - Instantiating array on SDRAM - Jeroen - 2004-08-13 20:42:00

"zg" <z...@hotmail.com> wrote in message
news:e...@posting.google.com...
> Hi group,
>
> I am trying to develop a digital camera around the NIOS II using the
> Stratix development board.
> I need to instantiate a large buffer (2MW) in the SDRAM.
> In my code I instantiated my array like this:
>
> alt_u16 Image_Buffer[0x2000000] __attribute__ ((section (".sdram"));
>
> The SOPC builder has an SDRAM of 4MX32bits, so I should have enough
> space to instantiae the array.
> When I am trying to compile I am getting a messege that my SDRAM is
> full unless I am reducing the array size to like 20000.
> All of my program and data are stored in different memories (ext sram
> and internal sram).
> Questions:
> 1. What is the limitations of the array size?
> 2. Am I doing the right thing in instantiating the array like this?
>
> I will appreciate any help,
> Zohar

0x2000000 is 20 megawords; 0x20000 is 2 megawords (4 megabytes,
4*1024*1024). You have one zero too much, that 16 times too much.

Jeroen


______________________________
Join the blogging team on FPGARelated.com and earn rewards! Details Here.