DSPRelated.com
Forums
Online · Live + on demand
February 9-11, 2027
Price goes up Jan 1: register now to lock in today's rate
Register Now →

the performance of x86 processor and DSP

Started by jogging ●August 6, 2009
>What factors do one need to consider when selecting a processor >for a project?
Usually these are Performance/Power/Cost/Package/Peripheral Set. I would also add user-friendly design environment, a good customer support service, and your previous experience, of course. A cost of processor is very important in case of big production volumes. -- Alexander
>On Aug 7, 9:11=A0am, "steveu" <ste...@coppice.org> wrote: >> >On Thu, 6 Aug 2009 08:35:40 -0700 (PDT), jogging >> ><joggings...@gmail.com> wrote: >> >> >>can x86 processors replace DSPs? >> >> >I've done DSP in fixed point DSPs. =A0I've done DSP in floating point >> >DSPs. =A0I've done DSP in FPGAs. =A0I've done DSP in ASICs. =A0I've
done=
> DSP >> >in CPUs without FPUs. =A0I've done DSP in CPUs with FPUs. =A0And I've
do=
>ne >> >DSP in x86 processors with FPUs and SIMD instruction sets. >> >> Yeah, we all have sorry tales to tell about our lives. :-) >> >> >> >> >Doing DSP in x86 processors is an INCREDIBLE luxury. =A0It allows one
to
>> >implement "cool" stuff, instead of spending all one's time coming up >> >with workarounds for divides and transcendental functions or >> >optimizing single instructions out of loops. >> >> Its a luxury environment for experimenting with algorithms, exercising >> your design with test data, etc. However, when your code hits the real
ti=
>me >> environment its being built for, the x86 can be a total PITA. Its not
jus=
>t >> the timing effects of the OS. The massive dependency on cache for any
kin=
>d >> of decent performance can lead to some wacky results too. When you are >> developing control loops, and latency is a really big issue, can you >> usually just give up and move on. >> >> So, the x86 world is good for DSP, but its not without huge pitfalls. >> >> Steve > >Except control application, most applications are only soft real time.
So you're happy when your audio skips, or your video hiccups? Very tolerant fellow.
>Nowadays DSPs have cache too, and it is very important as far as >performance concerned.
If you program your x86 from the bare metal up the behaviour of your cache will probably be very similar to using a DSP chip. However, if you are programming like that, you might as well use a DSP chip. Most x86 DSP users are running their code on top of something like Windows or Linux. These systems do various things beside running your application. Some of those things trash the cache. The result is some cycles of your DSP applications take far longer than others. If you work hard you can minimise or possibly eliminate this kind of effect, by managing your machine's activities tightly. It does take real work, though. Regards, Steve
On 7 Aug, 11:22, jogging <joggings...@gmail.com> wrote:

> But you are not familiar with every computing platform, how can you > make > a better choice?
By paying attention to the people who have relevant experience. Read and contemplate Steve's posts in this thread. Rune
On Thu, 06 Aug 2009 20:11:53 -0500, "steveu" <steveu@coppice.org>
wrote:

>>I've done DSP in fixed point DSPs. I've done DSP in floating point >>DSPs. I've done DSP in FPGAs. I've done DSP in ASICs. I've done DSP >>in CPUs without FPUs. I've done DSP in CPUs with FPUs. And I've done >>DSP in x86 processors with FPUs and SIMD instruction sets. > >Yeah, we all have sorry tales to tell about our lives. :-)
I was also going to mention that I've done DSP by counting on my fingers, but thought that was over the top.
>Its a luxury environment for experimenting with algorithms, exercising >your design with test data, etc. However, when your code hits the real time >environment its being built for, the x86 can be a total PITA. Its not just >the timing effects of the OS. The massive dependency on cache for any kind >of decent performance can lead to some wacky results too. When you are >developing control loops, and latency is a really big issue, can you >usually just give up and move on.
There is a simple but brute-force solution. Use a faster processor. Nowadays the performance is just about doubling every generation, while the price remains about the same. If you're already in a situation so luxurious as to allow you to use an x86 in the first place, then you are likely also in a situation where you can upgrade your processor without anybody complaining about it. (The other half of the solution is to dedicate the processor to a single task. That is to say, "Do not play video games on the same computer that is controlling your nuclear reactor.")
>So, the x86 world is good for DSP, but its not without huge pitfalls.
That's why engineers will (hopefully) never become obsolete! Greg
On 7 Aug, 13:49, Greg Berchin <gberc...@comicast.net.invalid> wrote:
> On Thu, 06 Aug 2009 20:11:53 -0500, "steveu" <ste...@coppice.org> > wrote: > > >>I've done DSP in fixed point DSPs. &#4294967295;I've done DSP in floating point > >>DSPs. &#4294967295;I've done DSP in FPGAs. &#4294967295;I've done DSP in ASICs. &#4294967295;I've done DSP > >>in CPUs without FPUs. &#4294967295;I've done DSP in CPUs with FPUs. &#4294967295;And I've done > >>DSP in x86 processors with FPUs and SIMD instruction sets. > > >Yeah, we all have sorry tales to tell about our lives. :-) > > I was also going to mention that I've done DSP by counting on my > fingers, but thought that was over the top.
I don't think it would qualifty - they use the decimal number system. You cold of course go weird and use the babylonian dodecal system, but then the number representations would be piecewise continuous, not discrete. Rune

jogging wrote:

>>> can x86 processors replace DSPs? >> >>This stupid question comes to anybody's mind at one point of time. The >>answer is "it depends". >> > Hi, Vladimir > Can you share your experience when you encountered this stupid > question? > I think it is not possible for an engineer to learn every computing > platform. > But you are not familiar with every computing platform, how can you > make a better choice?
The strong points of x86 is that they are supported by the cheap off the shelf software, cheap off the shelf hardware and cheap off the street programmers. But those advantages naturally limit your choices to PC-compatible architecture and the desktop OS like Windows or Linux. The top of the line x86s are very inconvenient and demanding from the hardware standpoint, so rolling your own board is hardly an option. The industrial PCs aren't cheap. The I/O cards aren't cheap either. The idea of using a common x86 PC for the real time signal processing seems very attractive initially, and many people fall into this trap. Even if you managed to master the particular OS + drivers + software + hardware bundle, everything will change completely within a year or so. You will have to keep up with the continuous software and hardware changes. Also, the reliability of the common PC sucks. However there are the application areas (like IP multimedia servers, for example), which are traditionally covered by PC x86 solutions. Now return back to your cubicle. The x86 won't replace DSPs as they didn't replace the common microcontrollers before, although there is a significant penetration in some application areas. Vladimir Vassilevsky DSP and Mixed Signal Design Consultant http://www.abvolt.com
"Rune Allnor" <allnor@tele.ntnu.no> wrote in message 
news:754fada6-a095-4d87-b2e2-d514f87103ef@p36g2000vbn.googlegroups.com...
On 7 Aug, 13:49, Greg Berchin <gberc...@comicast.net.invalid> wrote:
> On Thu, 06 Aug 2009 20:11:53 -0500, "steveu" <ste...@coppice.org> > wrote: > > >>I've done DSP in fixed point DSPs. I've done DSP in floating point > >>DSPs. I've done DSP in FPGAs. I've done DSP in ASICs. I've done DSP > >>in CPUs without FPUs. I've done DSP in CPUs with FPUs. And I've done > >>DSP in x86 processors with FPUs and SIMD instruction sets. > > >Yeah, we all have sorry tales to tell about our lives. :-) > > I was also going to mention that I've done DSP by counting on my > fingers, but thought that was over the top.
I don't think it would qualifty - they use the decimal number system. You cold of course go weird and use the babylonian dodecal system, but then the number representations would be piecewise continuous, not discrete. Rune I disagree. The base used for numeric representation is not really an issue. Besides, there's the lovely pun that "digit" is a synonym for "finger" Best wishes, --Phil Martel
Vladimir Vassilevsky wrote:
> > > jogging wrote: > >>>> can x86 processors replace DSPs? >>> >>> This stupid question comes to anybody's mind at one point of time. The >>> answer is "it depends". >>> >> Hi, Vladimir >> Can you share your experience when you encountered this stupid >> question? >> I think it is not possible for an engineer to learn every computing >> platform. >> But you are not familiar with every computing platform, how can you >> make a better choice? > > The strong points of x86 is that they are supported by the cheap off the > shelf software, cheap off the shelf hardware and cheap off the street > programmers. But those advantages naturally limit your choices to > PC-compatible architecture and the desktop OS like Windows or Linux. > > The top of the line x86s are very inconvenient and demanding from the > hardware standpoint, so rolling your own board is hardly an option.
I know one case where a commercial Pentium board was used with proprietary software; no OS between it and the hardware. It worked well but was a mistake anyway. The design was decided on because it was believed that it would be replicated several times. Instead, it was a technically successful one-off.
> The industrial PCs aren't cheap. The I/O cards aren't cheap either. > > The idea of using a common x86 PC for the real time signal processing > seems very attractive initially, and many people fall into this trap. > Even if you managed to master the particular OS + drivers + software + > hardware bundle, everything will change completely within a year or so. > You will have to keep up with the continuous software and hardware > changes. Also, the reliability of the common PC sucks. > > However there are the application areas (like IP multimedia servers, for > example), which are traditionally covered by PC x86 solutions. > > Now return back to your cubicle. The x86 won't replace DSPs as they > didn't replace the common microcontrollers before, although there is a > significant penetration in some application areas.
I'm sure you realize that you were addressing a seasoned professional who makes his living doing DSP on x86 hardware. What gives with you? Jerry -- Engineering is the art of making what you want from things you can get. &#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;
On 7 Aug, 17:16, "Phil Martel" <pomar...@comcast.net> wrote:
> "Rune Allnor" <all...@tele.ntnu.no> wrote in message > > news:754fada6-a095-4d87-b2e2-d514f87103ef@p36g2000vbn.googlegroups.com... > On 7 Aug, 13:49, Greg Berchin <gberc...@comicast.net.invalid> wrote: > > > On Thu, 06 Aug 2009 20:11:53 -0500, "steveu" <ste...@coppice.org> > > wrote: > > > >>I've done DSP in fixed point DSPs. I've done DSP in floating point > > >>DSPs. I've done DSP in FPGAs. I've done DSP in ASICs. I've done DSP > > >>in CPUs without FPUs. I've done DSP in CPUs with FPUs. And I've done > > >>DSP in x86 processors with FPUs and SIMD instruction sets. > > > >Yeah, we all have sorry tales to tell about our lives. :-) > > > I was also going to mention that I've done DSP by counting on my > > fingers, but thought that was over the top. > > I don't think it would qualifty - they use the > decimal number system. You cold of course go weird > and use the babylonian dodecal system, but then the > number representations would be piecewise continuous, > not discrete. > > Rune > > I disagree. &#4294967295;The base used for numeric representation is not really an > issue. &#4294967295;Besides, there's the lovely pun that "digit" is a synonym for > "finger"
Why don't you check out the babylonian dodecal system? Maybe you find other puns? Rune
Rune Allnor wrote:

   ...

> I don't think it would qualifty - they use the > decimal number system. You cold of course go weird > and use the babylonian dodecal system, but then the
I assume that's a European version of duodecimal.
> number representations would be piecewise continuous, > not discrete.
Please amplify on or provide a link to the notion of a continuous rather than discrete number system. Jerry -- Engineering is the art of making what you want from things you can get. &#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;&#4294967295;