Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #389773 > unrolled thread
| Started by | Spehro Pefhany <speffSNIP@interlogDOTyou.knowwhat> |
|---|---|
| First post | 2015-12-16 13:30 -0500 |
| Last post | 2015-12-17 01:16 -0500 |
| Articles | 20 — 9 participants |
Back to article view | Back to sci.electronics.design
ARM Cortex M4 filter calculations Spehro Pefhany <speffSNIP@interlogDOTyou.knowwhat> - 2015-12-16 13:30 -0500
Re: ARM Cortex M4 filter calculations Lasse Langwadt Christensen <langwadt@fonz.dk> - 2015-12-16 10:43 -0800
Re: ARM Cortex M4 filter calculations rickman <gnuarm@gmail.com> - 2015-12-16 14:08 -0500
Re: ARM Cortex M4 filter calculations Tim Wescott <seemywebsite@myfooter.really> - 2015-12-16 15:17 -0600
Re: ARM Cortex M4 filter calculations rickman <gnuarm@gmail.com> - 2015-12-16 18:23 -0500
Re: ARM Cortex M4 filter calculations Tim Wescott <seemywebsite@myfooter.really> - 2015-12-17 13:11 -0600
Re: ARM Cortex M4 filter calculations rickman <gnuarm@gmail.com> - 2015-12-17 20:22 -0500
Re: ARM Cortex M4 filter calculations Tim Wescott <tim@seemywebsite.com> - 2015-12-17 20:50 -0600
Re: ARM Cortex M4 filter calculations rickman <gnuarm@gmail.com> - 2015-12-17 22:09 -0500
Re: ARM Cortex M4 filter calculations rickman <gnuarm@gmail.com> - 2015-12-16 14:10 -0500
Re: ARM Cortex M4 filter calculations Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2015-12-16 21:29 +0200
Re: ARM Cortex M4 filter calculations rickman <gnuarm@gmail.com> - 2015-12-16 14:49 -0500
Re: ARM Cortex M4 filter calculations krw <krw@nowhere.com> - 2015-12-16 22:06 -0500
Re: ARM Cortex M4 filter calculations David Brown <david.brown@hesbynett.no> - 2015-12-17 14:07 +0100
Re: ARM Cortex M4 filter calculations DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2015-12-17 08:32 -0500
Re: ARM Cortex M4 filter calculations DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2015-12-17 08:36 -0500
Re: ARM Cortex M4 filter calculations Lasse Langwadt Christensen <langwadt@fonz.dk> - 2015-12-17 10:08 -0800
Re: ARM Cortex M4 filter calculations krw <krw@nowhere.com> - 2015-12-17 12:53 -0500
Re: ARM Cortex M4 filter calculations Spehro Pefhany <speffSNIP@interlogDOTyou.knowwhat> - 2015-12-17 14:15 -0500
Re: ARM Cortex M4 filter calculations rickman <gnuarm@gmail.com> - 2015-12-17 01:16 -0500
| From | Spehro Pefhany <speffSNIP@interlogDOTyou.knowwhat> |
|---|---|
| Date | 2015-12-16 13:30 -0500 |
| Subject | ARM Cortex M4 filter calculations |
| Message-ID | <v1b37bpq69kk5evntk5nr7f7v7piqktj09@4ax.com> |
Hi, Any idea roughly what clock frequency I would be looking at in order to have an ARM Cortex M4 do IIR filter calculations? I need maybe 3E6 multiple/accumulates per second, so maybe capable of 10E6 per second with 100% usage. The M4 core offers a 32 bit multiply/64 bit accumulate in 1 cycle... This is to run four decimation filters in parallel. I don't want to use an FPGA. --sp -- Best regards, Spehro Pefhany Amazon link for AoE 3rd Edition: http://tinyurl.com/ntrpwu8 Microchip link for 2015 Masters in Phoenix: http://tinyurl.com/l7g2k48
[toc] | [next] | [standalone]
| From | Lasse Langwadt Christensen <langwadt@fonz.dk> |
|---|---|
| Date | 2015-12-16 10:43 -0800 |
| Message-ID | <1772b704-a184-487d-bfeb-4258b025ad01@googlegroups.com> |
| In reply to | #389773 |
Den onsdag den 16. december 2015 kl. 19.23.00 UTC+1 skrev Spehro Pefhany: > Hi, > > Any idea roughly what clock frequency I would be looking at in order > to have an ARM Cortex M4 do IIR filter calculations? I need maybe 3E6 > multiple/accumulates per second, so maybe capable of 10E6 per second > with 100% usage. > > The M4 core offers a 32 bit multiply/64 bit accumulate in 1 cycle... > > This is to run four decimation filters in parallel. I don't want to > use an FPGA. > filters are part of the CMSIS DSP library so there must be some performance numbers somewhere. why IIR for decimation? -Lasse
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2015-12-16 14:08 -0500 |
| Message-ID | <n4scna$1je$1@dont-email.me> |
| In reply to | #389773 |
On 12/16/2015 1:30 PM, Spehro Pefhany wrote: > Hi, > > Any idea roughly what clock frequency I would be looking at in order > to have an ARM Cortex M4 do IIR filter calculations? I need maybe 3E6 > multiple/accumulates per second, so maybe capable of 10E6 per second > with 100% usage. > > The M4 core offers a 32 bit multiply/64 bit accumulate in 1 cycle... > > This is to run four decimation filters in parallel. I don't want to > use an FPGA. You have given the performance numbers. What are you asking? Are you just looking for confirmation? If you want 10 MMACS with 1 clock per, a 100 MHz device should give you plenty of head room. They are not uncommon at this speed. You might want to run the code out of memory, but since this is likely a tight loop I expect cache performance would suffice. What else does this device need to do at the same time? Other than coding up a filter and running it, I can't think of a way to estimate performance beyond this. I know at a seminar once when the CM4 was just out they were touting the DSC (Digital Signal Controller) aspects of the design. They said it would approach 1 MMACS/MHz including the memory accesses. I don't know all the assumptions they made to get there. -- Rick
[toc] | [prev] | [next] | [standalone]
| From | Tim Wescott <seemywebsite@myfooter.really> |
|---|---|
| Date | 2015-12-16 15:17 -0600 |
| Message-ID | <mIqdndKDK_ZvSezLnZ2dnUU7-YXOydjZ@giganews.com> |
| In reply to | #389778 |
On Wed, 16 Dec 2015 14:08:46 -0500, rickman wrote: > On 12/16/2015 1:30 PM, Spehro Pefhany wrote: >> Hi, >> >> Any idea roughly what clock frequency I would be looking at in order to >> have an ARM Cortex M4 do IIR filter calculations? I need maybe 3E6 >> multiple/accumulates per second, so maybe capable of 10E6 per second >> with 100% usage. >> >> The M4 core offers a 32 bit multiply/64 bit accumulate in 1 cycle... >> >> This is to run four decimation filters in parallel. I don't want to use >> an FPGA. > < snip > > > Other than coding up a filter and running it, I can't think of a way to > estimate performance beyond this. That's what I'd do. I recently asked an optimization question on comp.arch.embedded and someone mentioned in passing that to get full performance from the M4 hardware you need to use lots of registers, because of pipelining. That was for plain old MAC-ing, not for IIR filters that are going to challenge the optimizer by needing the filter states from step n-1 to calculate the filter states for step n. Particularly if your filter is of low order you may find the most joy with (a) hand coding the thing, (b) doing batches of input samples if you can (to avoid lots of context switching), and (c) running more than one filter in parallel (to take advantage of the pipeline). If you're really lucky the compiler will understand the MAC process and do the optimization for you. I've got several M4 boards laying around, email me if you want me to do some prototyping and measuring for you. -- Tim Wescott Wescott Design Services http://www.wescottdesign.com
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2015-12-16 18:23 -0500 |
| Message-ID | <n4srl7$14l$1@dont-email.me> |
| In reply to | #389798 |
On 12/16/2015 4:17 PM, Tim Wescott wrote: > On Wed, 16 Dec 2015 14:08:46 -0500, rickman wrote: > >> On 12/16/2015 1:30 PM, Spehro Pefhany wrote: >>> Hi, >>> >>> Any idea roughly what clock frequency I would be looking at in order to >>> have an ARM Cortex M4 do IIR filter calculations? I need maybe 3E6 >>> multiple/accumulates per second, so maybe capable of 10E6 per second >>> with 100% usage. >>> >>> The M4 core offers a 32 bit multiply/64 bit accumulate in 1 cycle... >>> >>> This is to run four decimation filters in parallel. I don't want to use >>> an FPGA. >> > < snip > >> >> Other than coding up a filter and running it, I can't think of a way to >> estimate performance beyond this. > > That's what I'd do. > > I recently asked an optimization question on comp.arch.embedded and > someone mentioned in passing that to get full performance from the M4 > hardware you need to use lots of registers, because of pipelining. That > was for plain old MAC-ing, not for IIR filters that are going to > challenge the optimizer by needing the filter states from step n-1 to > calculate the filter states for step n. I remember that conversation and the guy saying you needed to use CPU registers to do pipelining was full of s***. Pipelining would be handled internally to the CPU if needed. I seem to recall the guy refused to look at a TRM for the ARM. > Particularly if your filter is of low order you may find the most joy > with (a) hand coding the thing, (b) doing batches of input samples if you > can (to avoid lots of context switching), and (c) running more than one > filter in parallel (to take advantage of the pipeline). If you're really > lucky the compiler will understand the MAC process and do the > optimization for you. > > I've got several M4 boards laying around, email me if you want me to do > some prototyping and measuring for you. The link I posted listed some good info on the whole thing including straight C code, "optimized" C code and hand coded assembly language. I believe the IIR filter didn't gain a lot by assembly while the IIR filter did, but don't take my word for it. My memory sucks these days. -- Rick
[toc] | [prev] | [next] | [standalone]
| From | Tim Wescott <seemywebsite@myfooter.really> |
|---|---|
| Date | 2015-12-17 13:11 -0600 |
| Message-ID | <8Y6dnQuxLc1Ple7LnZ2dnUVZ5v6dnZ2d@giganews.com> |
| In reply to | #389824 |
On Wed, 16 Dec 2015 18:23:40 -0500, rickman wrote: > On 12/16/2015 4:17 PM, Tim Wescott wrote: >> On Wed, 16 Dec 2015 14:08:46 -0500, rickman wrote: >> >>> On 12/16/2015 1:30 PM, Spehro Pefhany wrote: >>>> Hi, >>>> >>>> Any idea roughly what clock frequency I would be looking at in order >>>> to have an ARM Cortex M4 do IIR filter calculations? I need maybe 3E6 >>>> multiple/accumulates per second, so maybe capable of 10E6 per second >>>> with 100% usage. >>>> >>>> The M4 core offers a 32 bit multiply/64 bit accumulate in 1 cycle... >>>> >>>> This is to run four decimation filters in parallel. I don't want to >>>> use an FPGA. >>> >> < snip > >>> >>> Other than coding up a filter and running it, I can't think of a way >>> to estimate performance beyond this. >> >> That's what I'd do. >> >> I recently asked an optimization question on comp.arch.embedded and >> someone mentioned in passing that to get full performance from the M4 >> hardware you need to use lots of registers, because of pipelining. >> That was for plain old MAC-ing, not for IIR filters that are going to >> challenge the optimizer by needing the filter states from step n-1 to >> calculate the filter states for step n. > > I remember that conversation and the guy saying you needed to use CPU > registers to do pipelining was full of s***. Pipelining would be > handled internally to the CPU if needed. I seem to recall the guy > refused to look at a TRM for the ARM. > > >> Particularly if your filter is of low order you may find the most joy >> with (a) hand coding the thing, (b) doing batches of input samples if >> you can (to avoid lots of context switching), and (c) running more than >> one filter in parallel (to take advantage of the pipeline). If you're >> really lucky the compiler will understand the MAC process and do the >> optimization for you. >> >> I've got several M4 boards laying around, email me if you want me to do >> some prototyping and measuring for you. > > The link I posted listed some good info on the whole thing including > straight C code, "optimized" C code and hand coded assembly language. I > believe the IIR filter didn't gain a lot by assembly while the IIR > filter did, but don't take my word for it. My memory sucks these days. I think the first thing I'd do is just code the damned thing up in C with a gnu compiler, set it up to load into fast RAM (the ST parts, at least, have a section of RAM that has fast instruction-bus access), and benchmark. Then I'd go from there. -- Tim Wescott Wescott Design Services http://www.wescottdesign.com
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2015-12-17 20:22 -0500 |
| Message-ID | <n4vmvh$lp2$1@dont-email.me> |
| In reply to | #389922 |
On 12/17/2015 2:11 PM, Tim Wescott wrote: > On Wed, 16 Dec 2015 18:23:40 -0500, rickman wrote: > >> On 12/16/2015 4:17 PM, Tim Wescott wrote: >>> On Wed, 16 Dec 2015 14:08:46 -0500, rickman wrote: >>> >>>> On 12/16/2015 1:30 PM, Spehro Pefhany wrote: >>>>> Hi, >>>>> >>>>> Any idea roughly what clock frequency I would be looking at in order >>>>> to have an ARM Cortex M4 do IIR filter calculations? I need maybe 3E6 >>>>> multiple/accumulates per second, so maybe capable of 10E6 per second >>>>> with 100% usage. >>>>> >>>>> The M4 core offers a 32 bit multiply/64 bit accumulate in 1 cycle... >>>>> >>>>> This is to run four decimation filters in parallel. I don't want to >>>>> use an FPGA. >>>> >>> < snip > >>>> >>>> Other than coding up a filter and running it, I can't think of a way >>>> to estimate performance beyond this. >>> >>> That's what I'd do. >>> >>> I recently asked an optimization question on comp.arch.embedded and >>> someone mentioned in passing that to get full performance from the M4 >>> hardware you need to use lots of registers, because of pipelining. >>> That was for plain old MAC-ing, not for IIR filters that are going to >>> challenge the optimizer by needing the filter states from step n-1 to >>> calculate the filter states for step n. >> >> I remember that conversation and the guy saying you needed to use CPU >> registers to do pipelining was full of s***. Pipelining would be >> handled internally to the CPU if needed. I seem to recall the guy >> refused to look at a TRM for the ARM. >> >> >>> Particularly if your filter is of low order you may find the most joy >>> with (a) hand coding the thing, (b) doing batches of input samples if >>> you can (to avoid lots of context switching), and (c) running more than >>> one filter in parallel (to take advantage of the pipeline). If you're >>> really lucky the compiler will understand the MAC process and do the >>> optimization for you. >>> >>> I've got several M4 boards laying around, email me if you want me to do >>> some prototyping and measuring for you. >> >> The link I posted listed some good info on the whole thing including >> straight C code, "optimized" C code and hand coded assembly language. I >> believe the IIR filter didn't gain a lot by assembly while the IIR >> filter did, but don't take my word for it. My memory sucks these days. > > I think the first thing I'd do is just code the damned thing up in C with > a gnu compiler, set it up to load into fast RAM (the ST parts, at least, > have a section of RAM that has fast instruction-bus access), and > benchmark. > > Then I'd go from there. Why reinvent the wheel if you can start with the work of others? -- Rick
[toc] | [prev] | [next] | [standalone]
| From | Tim Wescott <tim@seemywebsite.com> |
|---|---|
| Date | 2015-12-17 20:50 -0600 |
| Message-ID | <_o2dnRk6MJoR6e7LnZ2dnUVZ5radnZ2d@giganews.com> |
| In reply to | #389968 |
On Thu, 17 Dec 2015 20:22:16 -0500, rickman wrote: > On 12/17/2015 2:11 PM, Tim Wescott wrote: >> On Wed, 16 Dec 2015 18:23:40 -0500, rickman wrote: >> >>> On 12/16/2015 4:17 PM, Tim Wescott wrote: >>>> On Wed, 16 Dec 2015 14:08:46 -0500, rickman wrote: >>>> >>>>> On 12/16/2015 1:30 PM, Spehro Pefhany wrote: >>>>>> Hi, >>>>>> >>>>>> Any idea roughly what clock frequency I would be looking at in >>>>>> order to have an ARM Cortex M4 do IIR filter calculations? I need >>>>>> maybe 3E6 multiple/accumulates per second, so maybe capable of 10E6 >>>>>> per second with 100% usage. >>>>>> >>>>>> The M4 core offers a 32 bit multiply/64 bit accumulate in 1 >>>>>> cycle... >>>>>> >>>>>> This is to run four decimation filters in parallel. I don't want to >>>>>> use an FPGA. >>>>> >>>> < snip > >>>>> >>>>> Other than coding up a filter and running it, I can't think of a way >>>>> to estimate performance beyond this. >>>> >>>> That's what I'd do. >>>> >>>> I recently asked an optimization question on comp.arch.embedded and >>>> someone mentioned in passing that to get full performance from the M4 >>>> hardware you need to use lots of registers, because of pipelining. >>>> That was for plain old MAC-ing, not for IIR filters that are going to >>>> challenge the optimizer by needing the filter states from step n-1 to >>>> calculate the filter states for step n. >>> >>> I remember that conversation and the guy saying you needed to use CPU >>> registers to do pipelining was full of s***. Pipelining would be >>> handled internally to the CPU if needed. I seem to recall the guy >>> refused to look at a TRM for the ARM. >>> >>> >>>> Particularly if your filter is of low order you may find the most joy >>>> with (a) hand coding the thing, (b) doing batches of input samples if >>>> you can (to avoid lots of context switching), and (c) running more >>>> than one filter in parallel (to take advantage of the pipeline). If >>>> you're really lucky the compiler will understand the MAC process and >>>> do the optimization for you. >>>> >>>> I've got several M4 boards laying around, email me if you want me to >>>> do some prototyping and measuring for you. >>> >>> The link I posted listed some good info on the whole thing including >>> straight C code, "optimized" C code and hand coded assembly language. >>> I believe the IIR filter didn't gain a lot by assembly while the IIR >>> filter did, but don't take my word for it. My memory sucks these >>> days. >> >> I think the first thing I'd do is just code the damned thing up in C >> with a gnu compiler, set it up to load into fast RAM (the ST parts, at >> least, have a section of RAM that has fast instruction-bus access), and >> benchmark. >> >> Then I'd go from there. > > Why reinvent the wheel if you can start with the work of others? IIR filter code seems to benefit greatly from being written for the purpose. And I generally don't trust code that comes from processor company apps engineers, having been burned by it before. -- www.wescottdesign.com
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2015-12-17 22:09 -0500 |
| Message-ID | <n4vt88$j6e$1@dont-email.me> |
| In reply to | #389973 |
On 12/17/2015 9:50 PM, Tim Wescott wrote: > On Thu, 17 Dec 2015 20:22:16 -0500, rickman wrote: > >> On 12/17/2015 2:11 PM, Tim Wescott wrote: >>> On Wed, 16 Dec 2015 18:23:40 -0500, rickman wrote: >>> >>>> On 12/16/2015 4:17 PM, Tim Wescott wrote: >>>>> On Wed, 16 Dec 2015 14:08:46 -0500, rickman wrote: >>>>> >>>>>> On 12/16/2015 1:30 PM, Spehro Pefhany wrote: >>>>>>> Hi, >>>>>>> >>>>>>> Any idea roughly what clock frequency I would be looking at in >>>>>>> order to have an ARM Cortex M4 do IIR filter calculations? I need >>>>>>> maybe 3E6 multiple/accumulates per second, so maybe capable of 10E6 >>>>>>> per second with 100% usage. >>>>>>> >>>>>>> The M4 core offers a 32 bit multiply/64 bit accumulate in 1 >>>>>>> cycle... >>>>>>> >>>>>>> This is to run four decimation filters in parallel. I don't want to >>>>>>> use an FPGA. >>>>>> >>>>> < snip > >>>>>> >>>>>> Other than coding up a filter and running it, I can't think of a way >>>>>> to estimate performance beyond this. >>>>> >>>>> That's what I'd do. >>>>> >>>>> I recently asked an optimization question on comp.arch.embedded and >>>>> someone mentioned in passing that to get full performance from the M4 >>>>> hardware you need to use lots of registers, because of pipelining. >>>>> That was for plain old MAC-ing, not for IIR filters that are going to >>>>> challenge the optimizer by needing the filter states from step n-1 to >>>>> calculate the filter states for step n. >>>> >>>> I remember that conversation and the guy saying you needed to use CPU >>>> registers to do pipelining was full of s***. Pipelining would be >>>> handled internally to the CPU if needed. I seem to recall the guy >>>> refused to look at a TRM for the ARM. >>>> >>>> >>>>> Particularly if your filter is of low order you may find the most joy >>>>> with (a) hand coding the thing, (b) doing batches of input samples if >>>>> you can (to avoid lots of context switching), and (c) running more >>>>> than one filter in parallel (to take advantage of the pipeline). If >>>>> you're really lucky the compiler will understand the MAC process and >>>>> do the optimization for you. >>>>> >>>>> I've got several M4 boards laying around, email me if you want me to >>>>> do some prototyping and measuring for you. >>>> >>>> The link I posted listed some good info on the whole thing including >>>> straight C code, "optimized" C code and hand coded assembly language. >>>> I believe the IIR filter didn't gain a lot by assembly while the IIR >>>> filter did, but don't take my word for it. My memory sucks these >>>> days. >>> >>> I think the first thing I'd do is just code the damned thing up in C >>> with a gnu compiler, set it up to load into fast RAM (the ST parts, at >>> least, have a section of RAM that has fast instruction-bus access), and >>> benchmark. >>> >>> Then I'd go from there. >> >> Why reinvent the wheel if you can start with the work of others? > > IIR filter code seems to benefit greatly from being written for the > purpose. And I generally don't trust code that comes from processor > company apps engineers, having been burned by it before. Reuse of code is not uncommon. I have had a lot of practice working with other's code. If you understand what it is doing I am comfortable with working with code supplied by a vendor... well, as I said, if I understand it. I remember trying to read Microsoft's idea of a serial port interface for Windows 3.1, iirc. It seemed to be a rather bizarre arrangement of back and forth for no apparent reason. I never tried to change any of it. I think we needed to control the enable for an RS-485 driver. But for IIR code, it is simple enough to read and understand, at least as a starting point. -- Rick
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2015-12-16 14:10 -0500 |
| Message-ID | <n4scpm$1je$2@dont-email.me> |
| In reply to | #389773 |
On 12/16/2015 1:30 PM, Spehro Pefhany wrote: > Hi, > > Any idea roughly what clock frequency I would be looking at in order > to have an ARM Cortex M4 do IIR filter calculations? I need maybe 3E6 > multiple/accumulates per second, so maybe capable of 10E6 per second > with 100% usage. > > The M4 core offers a 32 bit multiply/64 bit accumulate in 1 cycle... > > This is to run four decimation filters in parallel. I don't want to > use an FPGA. Why don't you ask this in the DSP group? I expect someone there has done something similar. Also, I think Joerge did a design using the CM4 for filtering not too long ago. -- Rick
[toc] | [prev] | [next] | [standalone]
| From | Tauno Voipio <tauno.voipio@notused.fi.invalid> |
|---|---|
| Date | 2015-12-16 21:29 +0200 |
| Message-ID | <n4sdur$6mb$1@dont-email.me> |
| In reply to | #389773 |
On 16.12.15 20:30, Spehro Pefhany wrote: > Hi, > > Any idea roughly what clock frequency I would be looking at in order > to have an ARM Cortex M4 do IIR filter calculations? I need maybe 3E6 > multiple/accumulates per second, so maybe capable of 10E6 per second > with 100% usage. > > The M4 core offers a 32 bit multiply/64 bit accumulate in 1 cycle... > > This is to run four decimation filters in parallel. I don't want to > use an FPGA. > > > --sp The classic approach is to combine the filter and decimation in a CIC (Cascaded Integrator-Comb) structure, so you do not need any multiplications at all. If the decimation is done in steps, the computing power requirement gets still smaller. For a M4, my guess is that you're going to use more of the CPU time hauling data points and coefficients than for the actual MAC's. -- -TV
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2015-12-16 14:49 -0500 |
| Message-ID | <n4sf31$bp0$1@dont-email.me> |
| In reply to | #389773 |
On 12/16/2015 1:30 PM, Spehro Pefhany wrote: > Hi, > > Any idea roughly what clock frequency I would be looking at in order > to have an ARM Cortex M4 do IIR filter calculations? I need maybe 3E6 > multiple/accumulates per second, so maybe capable of 10E6 per second > with 100% usage. > > The M4 core offers a 32 bit multiply/64 bit accumulate in 1 cycle... > > This is to run four decimation filters in parallel. I don't want to > use an FPGA. I did just a little digging and found this paper with examples. http://www.dspconcepts.com/sites/default/files/white-papers/2011%20AES%20-%20DSP%20vs%20Micro%20rev%202.pdf -- Rick
[toc] | [prev] | [next] | [standalone]
| From | krw <krw@nowhere.com> |
|---|---|
| Date | 2015-12-16 22:06 -0500 |
| Message-ID | <6k947ble9he022gks59m5usufjvv7n9848@4ax.com> |
| In reply to | #389773 |
On Wed, 16 Dec 2015 13:30:23 -0500, Spehro Pefhany <speffSNIP@interlogDOTyou.knowwhat> wrote: >Hi, > >Any idea roughly what clock frequency I would be looking at in order >to have an ARM Cortex M4 do IIR filter calculations? I need maybe 3E6 >multiple/accumulates per second, so maybe capable of 10E6 per second >with 100% usage. > >The M4 core offers a 32 bit multiply/64 bit accumulate in 1 cycle... > >This is to run four decimation filters in parallel. I don't want to >use an FPGA. > > Have you looked at an M7, instead? They're about the same price and come in the same sorts of packages.
[toc] | [prev] | [next] | [standalone]
| From | David Brown <david.brown@hesbynett.no> |
|---|---|
| Date | 2015-12-17 14:07 +0100 |
| Message-ID | <n4ubt0$cp2$3@dont-email.me> |
| In reply to | #389840 |
On 17/12/15 04:06, krw wrote: > On Wed, 16 Dec 2015 13:30:23 -0500, Spehro Pefhany > <speffSNIP@interlogDOTyou.knowwhat> wrote: > >> Hi, >> >> Any idea roughly what clock frequency I would be looking at in order >> to have an ARM Cortex M4 do IIR filter calculations? I need maybe 3E6 >> multiple/accumulates per second, so maybe capable of 10E6 per second >> with 100% usage. >> >> The M4 core offers a 32 bit multiply/64 bit accumulate in 1 cycle... >> >> This is to run four decimation filters in parallel. I don't want to >> use an FPGA. >> >> > Have you looked at an M7, instead? They're about the same price and > come in the same sorts of packages. > M7's are not very common yet - there are only a few that are actually available. But the core handles twice the instructions per clock, IIRC, and can run at a faster clock - it will definitely give a lot more headroom for operations like this.
[toc] | [prev] | [next] | [standalone]
| From | DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> |
|---|---|
| Date | 2015-12-17 08:32 -0500 |
| Message-ID | <0be57b9qnj0rgbm7d5jlufn7oqt8600uki@4ax.com> |
| In reply to | #389873 |
On Thu, 17 Dec 2015 14:07:03 +0100, David Brown <david.brown@hesbynett.no> Gave us: >On 17/12/15 04:06, krw wrote: >> On Wed, 16 Dec 2015 13:30:23 -0500, Spehro Pefhany >> <speffSNIP@interlogDOTyou.knowwhat> wrote: >> >>> Hi, >>> >>> Any idea roughly what clock frequency I would be looking at in order >>> to have an ARM Cortex M4 do IIR filter calculations? I need maybe 3E6 >>> multiple/accumulates per second, so maybe capable of 10E6 per second >>> with 100% usage. >>> >>> The M4 core offers a 32 bit multiply/64 bit accumulate in 1 cycle... >>> >>> This is to run four decimation filters in parallel. I don't want to >>> use an FPGA. >>> >>> >> Have you looked at an M7, instead? They're about the same price and >> come in the same sorts of packages. >> > >M7's are not very common yet - there are only a few that are actually >available. But the core handles twice the instructions per clock, IIRC, >and can run at a faster clock - it will definitely give a lot more >headroom for operations like this. The developer's dream platform (for the price). http://solid-run.com/marvell-armada-family/clearfog/
[toc] | [prev] | [next] | [standalone]
| From | DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> |
|---|---|
| Date | 2015-12-17 08:36 -0500 |
| Message-ID | <ihe57bps0et1chvhvrk4o5v63kh8tt20tq@4ax.com> |
| In reply to | #389874 |
On Thu, 17 Dec 2015 08:32:59 -0500, DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> Gave us: >On Thu, 17 Dec 2015 14:07:03 +0100, David Brown ><david.brown@hesbynett.no> Gave us: > >>On 17/12/15 04:06, krw wrote: >>> On Wed, 16 Dec 2015 13:30:23 -0500, Spehro Pefhany >>> <speffSNIP@interlogDOTyou.knowwhat> wrote: >>> >>>> Hi, >>>> >>>> Any idea roughly what clock frequency I would be looking at in order >>>> to have an ARM Cortex M4 do IIR filter calculations? I need maybe 3E6 >>>> multiple/accumulates per second, so maybe capable of 10E6 per second >>>> with 100% usage. >>>> >>>> The M4 core offers a 32 bit multiply/64 bit accumulate in 1 cycle... >>>> >>>> This is to run four decimation filters in parallel. I don't want to >>>> use an FPGA. >>>> >>>> >>> Have you looked at an M7, instead? They're about the same price and >>> come in the same sorts of packages. >>> >> >>M7's are not very common yet - there are only a few that are actually >>available. But the core handles twice the instructions per clock, IIRC, >>and can run at a faster clock - it will definitely give a lot more >>headroom for operations like this. > > The developer's dream platform (for the price). > >http://solid-run.com/marvell-armada-family/clearfog/ Don't like armada? Try freescale http://solid-run.com/freescale-imx6-family/imx6-som/imx6-som-specifications/
[toc] | [prev] | [next] | [standalone]
| From | Lasse Langwadt Christensen <langwadt@fonz.dk> |
|---|---|
| Date | 2015-12-17 10:08 -0800 |
| Message-ID | <2e1c348f-b0a9-4c05-b97c-4eb9f48c87f0@googlegroups.com> |
| In reply to | #389875 |
Den torsdag den 17. december 2015 kl. 14.36.23 UTC+1 skrev DecadentLinuxUserNumeroUno: > On Thu, 17 Dec 2015 08:32:59 -0500, DecadentLinuxUserNumeroUno > <DLU1@DecadentLinuxUser.org> Gave us: > > >On Thu, 17 Dec 2015 14:07:03 +0100, David Brown > ><david.brown@hesbynett.no> Gave us: > > > >>On 17/12/15 04:06, krw wrote: > >>> On Wed, 16 Dec 2015 13:30:23 -0500, Spehro Pefhany > >>> <speffSNIP@interlogDOTyou.knowwhat> wrote: > >>> > >>>> Hi, > >>>> > >>>> Any idea roughly what clock frequency I would be looking at in order > >>>> to have an ARM Cortex M4 do IIR filter calculations? I need maybe 3E6 > >>>> multiple/accumulates per second, so maybe capable of 10E6 per second > >>>> with 100% usage. > >>>> > >>>> The M4 core offers a 32 bit multiply/64 bit accumulate in 1 cycle... > >>>> > >>>> This is to run four decimation filters in parallel. I don't want to > >>>> use an FPGA. > >>>> > >>>> > >>> Have you looked at an M7, instead? They're about the same price and > >>> come in the same sorts of packages. > >>> > >> > >>M7's are not very common yet - there are only a few that are actually > >>available. But the core handles twice the instructions per clock, IIRC, > >>and can run at a faster clock - it will definitely give a lot more > >>headroom for operations like this. > > > > The developer's dream platform (for the price). > > > >http://solid-run.com/marvell-armada-family/clearfog/ > > Don't like armada? Try freescale > > http://solid-run.com/freescale-imx6-family/imx6-som/imx6-som-specifications/ how are those monster A9 in anyway relevant to a single micro like a cortex M4/M7 ? -Lasse
[toc] | [prev] | [next] | [standalone]
| From | krw <krw@nowhere.com> |
|---|---|
| Date | 2015-12-17 12:53 -0500 |
| Message-ID | <dht57blvqpmm414rvrpudcc3qpku9tbmtm@4ax.com> |
| In reply to | #389873 |
On Thu, 17 Dec 2015 14:07:03 +0100, David Brown <david.brown@hesbynett.no> wrote: >On 17/12/15 04:06, krw wrote: >> On Wed, 16 Dec 2015 13:30:23 -0500, Spehro Pefhany >> <speffSNIP@interlogDOTyou.knowwhat> wrote: >> >>> Hi, >>> >>> Any idea roughly what clock frequency I would be looking at in order >>> to have an ARM Cortex M4 do IIR filter calculations? I need maybe 3E6 >>> multiple/accumulates per second, so maybe capable of 10E6 per second >>> with 100% usage. >>> >>> The M4 core offers a 32 bit multiply/64 bit accumulate in 1 cycle... >>> >>> This is to run four decimation filters in parallel. I don't want to >>> use an FPGA. >>> >>> >> Have you looked at an M7, instead? They're about the same price and >> come in the same sorts of packages. >> > >M7's are not very common yet - there are only a few that are actually >available. But the core handles twice the instructions per clock, IIRC, >and can run at a faster clock - it will definitely give a lot more >headroom for operations like this. Perhaps not everyone is selling them yet but they are available (I've been using one for a year). Yes, they're much faster and more efficient when used for DSP applications. The cost is right there, too.
[toc] | [prev] | [next] | [standalone]
| From | Spehro Pefhany <speffSNIP@interlogDOTyou.knowwhat> |
|---|---|
| Date | 2015-12-17 14:15 -0500 |
| Message-ID | <rq167bl1nilsfg4risshq2kbt6749ilu7l@4ax.com> |
| In reply to | #389910 |
On Thu, 17 Dec 2015 12:53:21 -0500, krw <krw@nowhere.com> wrote: >On Thu, 17 Dec 2015 14:07:03 +0100, David Brown ><david.brown@hesbynett.no> wrote: > >>On 17/12/15 04:06, krw wrote: >>> On Wed, 16 Dec 2015 13:30:23 -0500, Spehro Pefhany >>> <speffSNIP@interlogDOTyou.knowwhat> wrote: >>> >>>> Hi, >>>> >>>> Any idea roughly what clock frequency I would be looking at in order >>>> to have an ARM Cortex M4 do IIR filter calculations? I need maybe 3E6 >>>> multiple/accumulates per second, so maybe capable of 10E6 per second >>>> with 100% usage. >>>> >>>> The M4 core offers a 32 bit multiply/64 bit accumulate in 1 cycle... >>>> >>>> This is to run four decimation filters in parallel. I don't want to >>>> use an FPGA. >>>> >>>> >>> Have you looked at an M7, instead? They're about the same price and >>> come in the same sorts of packages. >>> >> >>M7's are not very common yet - there are only a few that are actually >>available. But the core handles twice the instructions per clock, IIRC, >>and can run at a faster clock - it will definitely give a lot more >>headroom for operations like this. > >Perhaps not everyone is selling them yet but they are available (I've >been using one for a year). Yes, they're much faster and more >efficient when used for DSP applications. The cost is right there, >too. Looks pretty decent, thanks. - offerings from Atmel and ST, and not too needy a chip- non-BGA packages availalable etc. The $36 eval board from Atmel is nice too, not loaded up with all kinds of crap- just an Ethernet port, USB and headers. --sp -- Best regards, Spehro Pefhany Amazon link for AoE 3rd Edition: http://tinyurl.com/ntrpwu8 Microchip link for 2015 Masters in Phoenix: http://tinyurl.com/l7g2k48
[toc] | [prev] | [next] | [standalone]
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Date | 2015-12-17 01:16 -0500 |
| Message-ID | <n4tjqi$uga$1@dont-email.me> |
| In reply to | #389773 |
On 12/16/2015 1:30 PM, Spehro Pefhany wrote: > Hi, > > Any idea roughly what clock frequency I would be looking at in order > to have an ARM Cortex M4 do IIR filter calculations? I need maybe 3E6 > multiple/accumulates per second, so maybe capable of 10E6 per second > with 100% usage. > > The M4 core offers a 32 bit multiply/64 bit accumulate in 1 cycle... > > This is to run four decimation filters in parallel. I don't want to > use an FPGA. thought I'd cross-post this to get some cross-pollination. -- Rick
[toc] | [prev] | [standalone]
Back to top | Article view | sci.electronics.design
csiph-web