Jump to content


ext0_alloc() or alloc_shared() for co_memory usage on PLB Bus?


  • You cannot reply to this topic
1 reply to this topic

#1 yan_lin_aung

    Member

  • Members
  • PipPip
  • 9 posts

Posted 28 February 2008 - 08:12 AM

Hi

What is the difference between "extern void *ext0_alloc(size_t);" and "extern void *alloc_shared(size_t);"?
If I want to use co_memory for DMA transfer on the PLB bus, which function should I use and how to use it?
Thanks.


With regards

Yan Lin Aung

#2 RalphBodenner

    Advanced Member

  • Admin
  • PipPipPip
  • 348 posts

Posted 07 March 2008 - 10:14 AM

Both functions must be written by the Impulse C programmer, to define how the shared memory is allocated by the CPU. The functions are invoked automatically by co_memory_create() when running on the CPU target (MicroBlaze or PowerPC, for example).

Please see the section "Shared Memory Features" in the Help file for either Xilinx Platform Support Package (Help > Platform Support Package Help menu in CoDeveloper).

Regards,
Ralph
Ralph Bodenner
Impulse Accelerated Technologies, Inc.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users