2012-06-06 22 views
1

ARM和DSP处理器如何协同工作,指令集是不同的,如何编写一个应该在DSP处理器上工作的代码,如FFT,视频处理等。它们之间如何互相切换?如果用一些示例进行解释,将会有所帮助。ARM和DSP处理器如何协同工作?

+0

这片/板您使用的? –

+0

我正在使用比格犬板,但这个问题本质上是一般性的 – kartik

回答

4

在为具有不同指令集(ISA)的芯片编写软件时,与使用相同ISA编写两个芯片的多核软件并无太大区别。你最终所要做的就是将软件编译到不同的ISA。就像两个相同类型的处理器一样,它们通常通过某种共享内存进行通信。所以DSP可能会向存储器写入一串字节。然后,CPU将轮询内存,直到它发现新数据,然后处理它。请注意,这就是PC上所有外设的工作原理。他们运行固件(嵌入式软件)并通过系统的共享主存储器进行通信。 (并使用中断)。

请注意,即使您为同一个ISA的两个芯片编写软件,引导序列通常也会有一个主处理器,它可以从从器件运行不同的代码。

4

一个软件用于帮助ARM和DSP中的两个不同的操作系统相互通信。在OMAP的情况下,它被称为dspbridge(或另一个更简单的称为DSPlink)。

3

查看用于在arm和dsp之间进行通信的Syslink。你可以读到更多在:

http://omappedia.org/wiki/Syslink_Project

enter image description here

1 Application calls RCM client object on local processor to request execution of a remote function. 
    2 RCM client object passes function request message to remote RCM server through local MessageQ. 
    3 Local MessageQ puts message in remote MessageQ's list of received messages. 
    4 Local MessageQ requests local Notify module to send notification to remote processor that a message has arrived. 
    5 Local Notify module notifies remote Notify module. 
    6 Remote Notify module tells Remote MessageQ object to check its list of received messages. 
    7 Remote MessageQ object gives remote RCM server the function request message it received. 
    8 Remote RCM Server calls remote function.