Re: Hey, what is all this 'off topic' posting?



On Sun, 04 Sep 2005 23:19:39 GMT, Joerg
<notthisjoergsch@xxxxxxxxxxxxxxxxxxxxx> wrote:

>Hello John,
>
>>>>I've been grinding out assembly code all week. There's nothing much to
>>>>say about that.
>
>That made me chuckle. Thinking about Forrest Gump ("That's all I have to
>say about that"). SCNR.
>
>>>Might I ask why you're using assembler
>>
>> Because it's fast, because I know exactly what's going on, and because
>> I like it.
>
>That's also why I often design stuff discrete. It takes out the not so
>documented habits of some chips, IOW the ones that marketing didn't like
>to see on the data sheet because it wouldn't look good. Like that LDO
>regulator that didn't like it when the source resistance got too high.
>
>> ... The customer called Friday and told me he would buy a bunch
>> more if only I can make it four times as fast as we'd planned for.
>
>I always thought we'd be immune from that once we start our own
>business. About 15 years ago I realized that wasn't so. "Oh, can you
>make those two functions run simultaneously?". Take deep breaths, open
>the window no matter how cold it is, don't let the face get too red,
>bite on the lips so no profanities come out and all that.

It's a 16-channel isolated DAC module, mainly intended to simulate
thermocouples, but capable of up to +-12.5 volts out. We used a 16-MHz
CPU running code out of a single 8-bit EPROM because we figured, how
fast can a temperature change? So now the customer wants it to operate
in voltage mode, fast.

So R. claims he can take over the DAC calibrations (one 16-bit signed
fractional multiply and one add, per channel) and the dac-load state
machine in the FPGA to save me lots of microseconds per channel and,
sure as hell, it works. He even claims 1/8 LSB rounding accuracy. The
18x18 multiplier in the FPGA has a prop delay of 6 ns!

Next, after tweaking the code as much as is decent, I'm going to copy
the critical loops from eprom into fast CPU-internal 16-bit RAM, and
run it there. It's easy to write pic (position-independent code) on a
68K.

I've asked a couple guys if it's feasible to relocate C-compiled code
like this, and they say it depends on the compiler but it's not really
obvious. In assembly, it's easy.

John


.



Relevant Pages

  • Re: Spartan-3 configuration -- peculiar problem
    ... >>>Thanks John, ... >> Does the INIT thing matter? ... >doesn't use the INIT pin either. ... >1) The fpga is complaining. ...
    (comp.arch.fpga)
  • Re: Spartan-3 configuration -- peculiar problem
    ... >>John Larkin wrote: ... > Does the INIT thing matter? ... I noticed that the Parallel Programmer 6 pin interface adaptor ... The fpga is complaining. ...
    (comp.arch.fpga)
  • Re: Changing addressing information from a custom filter
    ... I've figured it out with some help from John Bristowe. ... it seems that the WS-Addressing headers in a SOAP Envelope are not the ... channel is created before the pipeline of the filters is processed. ... The first one changes the SoapContext addressing information ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Re: Bush: one of the worst disasters to hit the U.S.
    ... I'd post something interesting about electronics, ... channel, 10 volts to the center-tap of a transformer. ... The LDO is really just a current limiter; ... John ...
    (sci.electronics.design)
  • Re: OT: Digital TV Converter Box Report
    ... On Mon, 15 Jun 2009, John A. Weeks III wrote: ... and the FCC entertained requests for channel changes. ... of the lower power and community TV stations, ...
    (misc.transport.road)