Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #466971
| From | rickman <gnuarm@gmail.com> |
|---|---|
| Newsgroups | sci.electronics.design |
| Subject | Re: F to bits |
| Date | 2017-07-05 02:01 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <ojhv5e$25d$1@dont-email.me> (permalink) |
| References | (16 earlier) <cNs6B.86428$_F5.33559@fx40.am4> <60dd3527-3c2e-42f4-851e-c4f87b72cf7e@googlegroups.com> <Q1u6B.86429$_F5.85568@fx40.am4> <ojdsdi$pb9$1@dont-email.me> <Vgv6B.124552$Ft7.112897@fx33.am4> |
Tom Gardner wrote on 7/3/2017 1:36 PM: > On 03/07/17 17:50, rickman wrote: >> Tom Gardner wrote on 7/3/2017 12:12 PM: >>> On 03/07/17 16:24, edward.ming.lee@gmail.com wrote: >>>> On Monday, July 3, 2017 at 7:46:39 AM UTC-7, Tom Gardner wrote: >>>>> On 03/07/17 14:14, leongdentalsf@gmail.com wrote: >>>>>> On Monday, July 3, 2017 at 5:10:14 AM UTC-7, David Brown wrote: >>>>>>> On 03/07/17 13:23, edward.ming.lee@gmail.com wrote: >>>>>>>> On Monday, July 3, 2017 at 3:37:20 AM UTC-7, David Brown wrote: >>>>>>>>> On 03/07/17 06:52, John Miles, KE5FX wrote: >>>>>>>>>> On Sunday, July 2, 2017 at 7:56:19 PM UTC-7, rickman wrote: >>>>>>>>>>> You mean less or less, no? Clearly it won't reach 1 MIPS per >>>>>>>>>>> MHz if *any* instructions you use are more than one clock. I >>>>>>>>>>> found a large number of important instructions that are more >>>>>>>>>>> than 1 clock just as you would find with many MCUs. >>>>>>>>>> >>>>>>>>>> (Shrug) You'd have to take that up with Microchip's marketing >>>>>>>>>> department, I suppose. These parts have long been colloquially >>>>>>>>>> referred to as "1 MIPS per MHz." Usually this gets trotted out >>>>>>>>>> in flame wars between PIC advocates and AVR devotees. Now that >>>>>>>>>> the same company owns both architectures, and given how archaic >>>>>>>>>> they both are, it hardly seems worth arguing about. >>>>>>>>>> >>>>>>>>>> But... given that I've implemented a 3600 bps software modem (or >>>>>>>>>> at least the 'dem' half) on an ATmega128 without even resorting >>>>>>>>>> to assembly, I'm sure they can be used to measure the speed of >>>>>>>>>> pretty much any motor or generator to an adequate degree of both >>>>>>>>>> accuracy and precision. AVRs are great parts, much better than >>>>>>>>>> PICs. <g,d&r> >>>>>>>>>> >>>>>>>>> >>>>>>>>> I once made a 115 kbaud software UART on an AVR. But I admit to >>>>>>>>> using assembly :-) I have also seen application notes for >>>>>>>>> /software/ USB 1.0, 1.5 Mb/s, on an AVR. >>>>>>>>> >>>>>>>>> And we are talking here about measuring the frequency of a 60 Hz >>>>>>>>> clock with a 16 MHz microcontroller. 266,667 ticks per cycle. >>>>>>>>> Measure over four cycles for 1 ppm resolution. If you have good >>>>>>>>> enough analogue parts to give a clean signal, it can be handled in >>>>>>>>> an 8-bit hardware timer. It's peanuts. >>>>>>>> >>>>>>>> No, we are not. >>>>>>>> >>>>>>>> "Why do you think overloading will affect the frequency? It does not >>>>>>>> take much power for zero crossings. I beg it would not change the >>>>>>>> frequency at all. However, it will distort the wave form and make it >>>>>>>> more triangular than sinusoidal. In other words, you need to capture >>>>>>>> the exact waveform, not just oversampling it." >>>>>>>> >>>>>>> >>>>>>> If you need to look at the waveform accurately, and not just measure the >>>>>>> frequency, then I have misunderstood the problem. Yes, that requires a >>>>>>> good deal more effort. Whether it needs an FPGA or not depends on the >>>>>>> sample rates you need and what you are doing with the waveform - an AVR >>>>>>> is absolutely fine for measuring power, peaks, periods, etc., but not >>>>>>> for calculating harmonics. >>>>>> >>>>>> FPGA is absolutely essential for noise and distortion measurements. I >>>>>> studied line waveform with my handwired FPGA/SRAM/A2D board before. We >>>>>> needed single cycle capture, not just the average of many cycles. >>>>>> Perhaps 12 bits are good enough, but 16 bits are not too difficult to >>>>>> build. >>>>> >>>>> I'm not so sure of that anymore. >>>>> >>>>> I wonder whether the XMOS multicore devices might be sufficient; >>>>> they have several attributes helpful for DSP applications (MAC >>>>> operations, saturating arithmetic, many independent cores etc). >>>> >>>> Can they meet the burst sampling spec? Namely, initial sampling at 10us. >>>> When the signal exceed certain percentage of the expected sinusoidal >>>> value, sample at 100ns. Switching has to be done within 10us. >>> >>> XMOS devices aren't a replacement for FPGAs, but they are >>> encroaching into their territory in ways ARMs etc cannot. >>> They are distinctive tool in the toolbox. >>> >>> I would expect it can sample at 100ns, given that it >>> can implement a software 100Mb/s ethernet MAC. Whether it >>> can do sufficient processing as well is a different issue! >>> A lot would depend on what processing can be done within >>> one sampling period in one core, whether bursts can be >>> buffered for subsequent processing, and whether an >>> application can be partitioned across multiple cores. >>> >>> I'm not an XMOS expert and I don't understand your >>> application, but my understanding is... >>> >>> Each core is 100MIPs, and input instructions take 1 cycle. >>> If an input isn't available, the core simply stalls until >>> it is available. Maximum response time to multiple random >>> asynchronous events is <100ns, due to the event-driven ports, >>> interconnects, processor primitives, and language. Basically >>> the programming paradigm is simple, well developed over the >>> decades, and nice. >>> >>> There are no caches, nor interrupts to foul up worst-case >>> timing. The IDE will state the execution times, based on >>> a call-flow analysis of the object code. >>> >>> IO clocks can be up to 250MHz, and there are "FPGA-like" >>> i/o structures on each port (internal/external clocks, >>> SERDES, strobes, master-slave, ignore until equal/different, >>> do i/o on a specified clock cycle etc). >> >> Even if you can squeeze a design into an XMOS the question is, why? > > You can ask that about any technology, including > FPGAs; the answer never provides /general/ illumination. I don't follow your reasoning. If I don't have a reason to use a technology, I don't use it. I use FPGAs because they are best suited to the task, usually because they are the lowest price device with the shortest development time and the least risk of being able to meet the schedule and cost goals. Sometimes MCUs best meet those requirements. I am not able to picture situations where there is a compelling advantage to using the XMOS devices which will justify learning a new paradigm and language. Looking at the language it appears to treat parallelism in a fairly simplistic way. >> If the >> programming were simple, why do so few people use them? It can't be price >> alone. > > As with any technology, familiarity is an incentive > and unfamiliarity is a disincentive. > > >> I don't see the advantage of programming with language extensions that suit >> exactly one brand of processor. > > All technology implementations have specific "extensions", > in one form or another. Different FPGA families have many > characteristics that make it difficult to port a design > from one to another. With conventional processors, the > architecture and peripherals form the same impediments. You are talking about FPGA hardware features. I am talking about the programming language. Many of the features of various FPGAs are accommodated by the HDL tools in use. No special code needs to be written. The tools adapt the implementation to suit the target just like conventional MCU tools optimize for the device being used. > Single core processors are hitting a bottleneck; multicore > is inevitable. But current programming languages and > paradigms are poorly suited to multicore processors with > caches and shared memories. > > The XMOS environment (paradigm, language, hardware) > tackles those problems head on, with some success. > It is worth knowing about and exploring the advantages > and disadvantages, so that an appropriate technology > can be chosen in each case. You have acknowledged the XMOS devices suit a small niche in terms of suitability. I have said before I'm not sure it is worth learning the parts, tools and language to optimize for the small niche area where the XMOS parts are optimal unless a large proportion of your work is in that small niche. My work tends to be over a wider range. >> The XMOS may have a niche which is an >> improvement over some MCUs, but where exactly does it improve on the FPGAs >> available today? > > If FPGAs were so wonderful, everybody would be using > them :) They *are* widely used. I've already pointed out the issues that existed 20 years ago that constitute a myth creating a bias about FPGAs. They are held back because of what people *think* FPGAs are rather than what they are. That, and the fact that when the only tool you have is a hammer, every problem looks like a nail. As long as the problems can be solved by treating them as nails, there is not a lot of incentive to find a different tool. There is a lot of overlap where both MCUs and FPGAs do the job well, so MCU designers aren't inclined to learn FPGAs. Many FPGA designers are knowledgeable in using MCUs, so they well know the tradeoffs and can see where each fits or where both fit. > (But speed of testing design changes is, in some senses, > an advantage). -- Rick C
Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
F to bits David Lesher <wb8foz@panix.com> - 2017-07-02 03:13 +0000
Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-01 20:27 -0700
Re: F to bits David Lesher <wb8foz@panix.com> - 2017-07-02 05:21 +0000
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 07:36 -0700
Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-01 22:34 -0700
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 07:55 -0700
Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-02 11:44 -0400
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 08:51 -0700
Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-02 12:00 -0400
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 10:20 -0700
Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-02 13:52 -0400
Re: F to bits Neon John <no@never.com> - 2017-07-02 13:41 -0400
Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-02 11:22 -0700
Re: F to bits "John Miles, KE5FX" <jmiles@gmail.com> - 2017-07-02 12:55 -0700
Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-02 13:12 -0700
Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-02 13:27 -0700
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 14:18 -0700
Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-02 14:37 -0700
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 14:44 -0700
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 14:48 -0700
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 15:44 -0700
Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-02 16:23 -0700
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 16:26 -0700
Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-02 16:36 -0700
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 16:44 -0700
Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-02 17:13 -0700
Re: F to bits krw@notreal.com - 2017-07-02 19:53 -0400
Re: F to bits Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2017-07-03 10:30 +0300
Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-03 09:44 -0700
Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-03 09:50 -0700
Re: F to bits Jasen Betts <jasen@xnet.co.nz> - 2017-07-04 05:18 +0000
Re: F to bits Les Cargill <lcargill99@comcast.com> - 2017-07-03 00:44 -0500
Re: F to bits Les Cargill <lcargill99@comcast.com> - 2017-07-03 00:42 -0500
Re: F to bits Jasen Betts <jasen@xnet.co.nz> - 2017-07-04 05:11 +0000
Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-02 19:32 -0400
Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-02 16:40 -0700
Re: F to bits klaus.kragelund@gmail.com - 2017-07-02 16:45 -0700
Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-02 19:55 -0400
Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-02 17:07 -0700
Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-02 20:30 -0400
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 17:39 -0700
Re: F to bits klaus.kragelund@gmail.com - 2017-07-02 18:09 -0700
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 18:45 -0700
Re: F to bits "John Miles, KE5FX" <jmiles@gmail.com> - 2017-07-02 17:49 -0700
Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-02 22:56 -0400
Re: F to bits "John Miles, KE5FX" <jmiles@gmail.com> - 2017-07-02 21:52 -0700
Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-03 01:38 -0400
Re: F to bits David Brown <david.brown@hesbynett.no> - 2017-07-03 12:37 +0200
Re: F to bits edward.ming.lee@gmail.com - 2017-07-03 04:23 -0700
Re: F to bits David Brown <david.brown@hesbynett.no> - 2017-07-03 14:10 +0200
Re: F to bits leongdentalsf@gmail.com - 2017-07-03 06:14 -0700
Re: F to bits Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-07-03 15:46 +0100
Re: F to bits edward.ming.lee@gmail.com - 2017-07-03 08:24 -0700
Re: F to bits Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-07-03 17:12 +0100
Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-03 12:50 -0400
Re: F to bits Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-07-03 18:36 +0100
Re: F to bits rickman <gnuarm@gmail.com> - 2017-07-05 02:01 -0400
Re: F to bits Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-07-03 09:30 -0700
Re: F to bits Tom Gardner <spamjunk@blueyonder.co.uk> - 2017-07-03 12:32 +0100
Re: F to bits David Lesher <wb8foz@panix.com> - 2017-07-03 00:54 +0000
Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-02 18:14 -0700
Re: F to bits David Lesher <wb8foz@panix.com> - 2017-07-03 02:33 +0000
Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-02 21:29 -0700
Re: F to bits edward.ming.lee@gmail.com - 2017-07-02 22:46 -0700
Re: F to bits Les Cargill <lcargill99@comcast.com> - 2017-07-02 12:40 -0500
Re: F to bits Don Y <blockedofcourse@foo.invalid> - 2017-07-02 11:38 -0700
Re: F to bits Les Cargill <lcargill99@comcast.com> - 2017-07-03 00:51 -0500
csiph-web