- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Don't think so.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I mean the FPU. PSoC5 should be fast enough for alot of embedded processing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Despite the absense of a floating-point-unit the math.lib has all the routines to serve your needs. ARM CPU is fast enough to calculate things you want. If that is not enough, there is a sine/cosine calculator implemented by a user in a datapath which is calculating integer but VERY speedy. And if I'm not mistaken, Chris Kees implemented a square-root calculation in a datapath module, too.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HW FPU (Like Cortex M4) vs FP Library ( PSOC 3/5) on a fixed point machine -
1) FPU allows much higher dynamic range than many fixed point libraries, depending on machine.
2) Used in precision filters, Real Time convolution, precise pole/zeroe high order filters.......
3) Usually at least one, if not two, orders of magnitude faster than FP Library. single cycle vs 100's
of cycles in FP Library.
Use of FPU driven by specifications, performance criteria in design.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We normally tried to avoid using floating point calcuations by multipying the numbers by 1000 or more and scale it down after the calcuation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PSoCs are built for (analog) comfort, not for speed!
https://www.youtube.com/watch?v=GgTjuDh7dVA
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
100 DMIPS out of PSOC 5 not exactly slow.
Just a thought.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Compared to the GHz Arm implementations (with fpu) a psoc seems to be slow. But PSoCs are not dedicated to number-crunching or graphic applications but to connect to the outer world, gathering datata and fine-tune the signals on-chip.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I know Cypress mentioned 100DMIPS, but just wonder how it is measured/obtained with 80mhz clock?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PSOC5 is a cortex-M3 and as such it does not have a FPU (you can find FPU in some cortex-M4), also it is a microcontroller designed to interface with the real world. You won't see GHz clocks in any microcontroller lol and unlike the M4s it does not have DSP extensions.
You might want to try fixed-point instead of floating point. When I tried software floating point on a Cortex-m3 it used to take like 50 cicles to complete a multiplication, but varied based on the actual numbers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HL, DMIPS is not a direct f(clkrate), see measurement method here - en.wikipedia.org/wiki/Dhrystone
Insofar as the discussion of PSOC being slow, yes it will not keep up with a Ghz Quad Core DSP
with FPU. It will, however, destroy an 8051 of yore many times over. Either comparison is irrelevant.
The point of PSOC 5 at 100 DMIPS is, in its class , for its geometry, it is a fast competitive processor.
To think othwerwise is ludicrous.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is one thing I've learnt so far in my life:
When you want to double the speed of your processor wait for 2 years.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1. I think PSoC5 is not slow, it is fast enough for a lot of real life embedded application. Actually the PSoC3 is fast while comparing with other 8051 chips or PIC.
2. I use wiki alot, but my question is - how can PSoC5 With a single core at 80M clcok, can have 100DMIPS, as I think it take more than 1 cpu instruction to perform 1 DHRYSTONE cycle. Even the MAC hardware takes more than 1 cycle to perform a MAC operation. Assuming it use the MAC and the CPU to to 2 calculation in parallel. I would think 10DMIPS may be a correct number.
3. I just want to know how Cypress implement the SW to get 100DMIPS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
DMIPs is an artifical word expressing Drystones benchmark performance. this is defined as the number of iterations the benchmark perfomes within a second. It has nothing to do with the number of instructions per second the CPU performes. Follow Dana's link to the explanation.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi PSoCkers “Konbanwa”, Cheers for hard discussions.
Slow?, Fast?, Which is the unit? Every Day and Night.
Article owner was run away huh.
Anyway, comes up to me How Slow PSoC is.
That is in progress but I would be report the speed of PSoC5.
I'm trying real time FFT conversion for a example.
Very Nice, Even if that is Audio frequency but working well.
That's using floating point calculations without FPU.
Number of point is 512, Refresh time is 200ms now, No problem in practical use.
I should be concern about more fast algorithm, improvement.
How do you think.
The image shows spectrum of 10KHz wave.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the information.
I was thinking in the wrong direction.
"The DMIPS figure for a given machine is the relative speed a VAX 11/780 (a particular "1 MIPS" machine) "
So it is a number relative to a VAX 11 machine.
it jus means that PSoC5 in 100 time as fast as a VAX 11 runing the same test.
I learn something new today.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@PSoC73
512 fft in 200ms, not bad.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This might be of interest -
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You might find these interesting as well -
processors.wiki.ti.com/index.php/Efficient_FFT_Computation_of_Real_Input
www.coactionos.com/embedded-design/115-fft-on-the-arm-cortex-m3.html
en.wikipedia.org/wiki/Category:FFT_algorithms
And attachment.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
would MAC be useful?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The MAC is usefull. No MAC, No Degital filter
FIR or IIR filter is computation by MAC.
PsoC1 also have MAC too.
Device | Number of MAC |
Cy8C29x66 | 2 |
Cy8C27x43 | 1 |
Cy8C24x94 | 2 |
Cy8C24x23 | 1 |
Cy8C22x13 | 0 |
Cy8C21x34 | 0 |
Cy8C21x23 | 0 |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PSOC 4 has a 32 bit MAC.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I needed faster, decimal point mathematics on the PSoC 5 (faster than what float/double would offer), and so wrote a fixed point library for it.
I havn't quantified how much faster it is, but I do know it is much quicker than using a traditional float or doubles.
I have put it on GitHub is anyone is interested, you can download it from github.com/gbmhunter/Cpp-FixedPoint.
Note that I wrote it in C++ to take advantage of templating (to support any fixed-point integer/decimal ratio and operator overloading (so you can use +, -, *, /, e.t.c on floating point numbers and it all works magically) which makes the library much eaier to use than had it been written in C.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When you get the small text window clear your browser history, that
generally takes care of the problem.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Don't have this problem now. Shall try that if that happens again.