Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

memory allocation functions in vhdl ?

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

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.