Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20705 Discussions

memory allocation functions in vhdl ?

Altera_Forum
Honored Contributor II
1,445 Views

Hi.. 

 

I am new to vhdl. Currently I am trying to access ram in DE1 for my project.I need to efficiently allocate data in ram and simultaneously process it and then write it to a file. 

I think a function like malloc in C would serve my purpose.Are there any functions in vhdl like this ??Kindly help me. 

 

Thanks. 

Amit
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
692 Views

Is it a RAM shared between a VHDL component and a CPU? In that case you need to do the allocation on the software side with a malloc() call and then give the address to your vhdl component. 

If the RAM is only used by your VHDL component then allocation in the malloc() way doesn't exist and you'll have to do it yourself.
0 Kudos
Reply