DSPRelated.com
Forums

Hi how to calla assembly routine from C

Started by harsha sb sb March 28, 2005

Hi,

Thanks,

I would like to know how i can make a call to assembly routine from C program can you give some idea or any links or docs - ADSP21160

please

Thanks
Harsha S On Mon, 28 Mar 2005 Mike Rosing wrote :
>On Sun, 28 Mar 2005, harsha sb sb wrote:
>
> > I am working on the ADSP-21160 board, I have one PCIDSP board in which 3 ADSP-21160 are embedded,there is host communication to this processors via a PCI bus, so my input is comming through the PCI bus and is stored in the internal memory.
> > I have a memory SDRAM of 64MB.
> > 1. My question is how i can make this external memory 64MB as a shared memory to all the 3 processors,presently this SDRAM memory is mapped to 0x1800000 address.
> > 2. IS there any best method so that i can transfer my input the external memory. easilly becouse i have  the data of 60MB to operate.
>
>Hello Harsha,
>
>The problem with allowing all processors access to the same memory is bus
>contention.  You have to ensure that only one processor has the bus at a
>time.  You can do that by using the built in br (bus request) lines.  You
>can do it with a CPLD that prevents bus access by multiple devices using
>the ack line to insert wait states.  You could get really fancy and use
>dual ported ram and an fpga so each processor doesn't see the sdram as a
>bottle neck too, but that gets really expensive and time consuming.
>
>Look at the system architecture chapter in the 21160 manual.  It will give
>you lots of good ideas.
>
>Patience, persistence, truth,
>Dr. mike
>


On Mon, 29 Mar 2005, harsha sb sb wrote:

>I would like to know how i can make a call to assembly routine from C
>program can you give some idea or any links or docs - ADSP21160

Check out the ADI C Tools Manual. Also check out EE-120 on this page:
http://www.analog.com/processors/processors/sharc/technicalLibrary/

Patience, persistence, truth,
Dr. mike


Hi,

Can you tell what exactly function of the *.sm files(Shared memory files) like.
I am getting comnfused .
is this file is used to share the same exe file to all the processor onnected in parelle or anything else

Please can you give some documnet link of more detailed of shared memory file ..

thanks
Harsha S  On Tue, 29 Mar 2005 Mike Rosing wrote :
>
>On Mon, 29 Mar 2005, harsha sb sb wrote:
>
> >I would like to know how i can make a call to assembly routine from C
> >program can you give some idea or any links or docs - ADSP21160
>
>Check out the ADI C Tools Manual.  Also check out EE-120 on this page:
>http://www.analog.com/processors/processors/sharc/technicalLibrary/
>
>Patience, persistence, truth,
>Dr. mike ><*> To visit your group on the web, go to:
>    http://groups.yahoo.com/group/adsp/
>
><*> To unsubscribe from this group, send an email to:
>    a...@yahoogroups.com
>
><* >
>


It is described in the C/C++ Compiler and Library
Manual for SHARC DSPs, which you can download from
www.analog.com/dsp

Regards.

--- harsha sb sb <harsha_sb@hars...> wrote:
> Hi,
>
> Thanks,
>
> I would like to know how i can make a call to
> assembly routine from C program can you give some
> idea or any links or docs - ADSP21160


Jaime Andr Aranguren Cardona
jaime.aranguren@jaim...
jaime.aranguren@jaim...

__________________________________