Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and the Ugly). -- Matt Welsh


devel / comp.arch.fpga / Re: Wide frequency range, arbitrary waveform DDS

SubjectAuthor
* Wide frequency range, arbitrary waveform DDSStef
+* Re: Wide frequency range, arbitrary waveform DDSgnuarm.del...@gmail.com
|`* Re: Wide frequency range, arbitrary waveform DDSStef
| `* Re: Wide frequency range, arbitrary waveform DDSgnuarm.del...@gmail.com
|  +- Re: Wide frequency range, arbitrary waveform DDSgnuarm.del...@gmail.com
|  `* Re: Wide frequency range, arbitrary waveform DDSStef
|   `- Re: Wide frequency range, arbitrary waveform DDSgnuarm.del...@gmail.com
`* Re: Wide frequency range, arbitrary waveform DDSantispam
 +- Re: Wide frequency range, arbitrary waveform DDSgnuarm.del...@gmail.com
 `* Re: Wide frequency range, arbitrary waveform DDSStef
  `* Re: Wide frequency range, arbitrary waveform DDSgnuarm.del...@gmail.com
   `* Re: Wide frequency range, arbitrary waveform DDSStef
    +* Re: Wide frequency range, arbitrary waveform DDSgnuarm.del...@gmail.com
    |`* Re: Wide frequency range, arbitrary waveform DDSStef
    | +- Re: Wide frequency range, arbitrary waveform DDSRichard Damon
    | `* Re: Wide frequency range, arbitrary waveform DDSgnuarm.del...@gmail.com
    |  `* Re: Wide frequency range, arbitrary waveform DDSStef
    |   `* Re: Wide frequency range, arbitrary waveform DDSgnuarm.del...@gmail.com
    |    `* Re: Wide frequency range, arbitrary waveform DDSStef
    |     `* Re: Wide frequency range, arbitrary waveform DDSgnuarm.del...@gmail.com
    |      `* Re: Wide frequency range, arbitrary waveform DDSStef
    |       `- Re: Wide frequency range, arbitrary waveform DDSgnuarm.del...@gmail.com
    `- Re: Wide frequency range, arbitrary waveform DDSgnuarm.del...@gmail.com

1
Wide frequency range, arbitrary waveform DDS

<nnd$14eac489$5ab7230c@c29d2e0012419321>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=306&group=comp.arch.fpga#306

  copy link   Newsgroups: comp.arch.embedded comp.arch.fpga
Newsgroups: comp.arch.embedded,comp.arch.fpga
From: me...@this.is.invalid (Stef)
Subject: Wide frequency range, arbitrary waveform DDS
Mail-Copies-To: nobody
User-Agent: slrn/1.0.3 (Linux)
Message-ID: <nnd$14eac489$5ab7230c@c29d2e0012419321>
Organization: Newsxs
Date: Tue, 16 Aug 2022 17:37:34 +0200
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.uzoreto.com!feeder.usenetexpress.com!tr1.eu1.usenetexpress.com!94.232.112.244.MISMATCH!feed.abavia.com!abe004.abavia.com!abp001.abavia.com!news.newsxs.nl!not-for-mail
Lines: 29
Injection-Date: Tue, 16 Aug 2022 17:37:34 +0200
Injection-Info: news.newsxs.nl; mail-complaints-to="abuse@newsxs.nl"
 by: Stef - Tue, 16 Aug 2022 15:37 UTC

To generate frequencies from approximately 0.5 mHz to 12 MHz with a DDS
a minimum clock of >24, say 25 MHz, is required. To be able to go down
to 0.5 mHz, a phase accumulator of at least 36 bits is required. This
will give sub mHz resolution over the entire range. Nice for the low
frequencies, but not of much use for MHz frequencies (in this
application).

Is there any objection to using a smaller phase accumulator and a clock
pre-scaler to generate the lower frequencies?

I see Analog Devices has DDS chips up to 48 bits, so 36 bits would not
be a problem (except for cost maybe).

But al of the DDS chips I find from Analog seem only to implement a
fixed sine table/function. Do DDS chips exist that allow downloading an
arbitrary lookup table with 2^10 - 2^16 entries of 10 - 16 bit each?

If no such standard chips exist, I expect I need to implement the DDS
in an FPGA. Using a smaller accumulator would probably save some space
in the FPGA. Or am I just optoimizing prematurely?

--
Stef

Baker's First Law of Federal Geometry:
A block grant is a solid mass of money surrounded on all sides by
governors.

Re: Wide frequency range, arbitrary waveform DDS

<02aa01f9-020c-489f-bede-5ea13fa6cf86n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=307&group=comp.arch.fpga#307

  copy link   Newsgroups: comp.arch.fpga
X-Received: by 2002:a05:620a:2548:b0:6b6:113d:34fd with SMTP id s8-20020a05620a254800b006b6113d34fdmr16493027qko.132.1660700568436;
Tue, 16 Aug 2022 18:42:48 -0700 (PDT)
X-Received: by 2002:a05:6808:1250:b0:33b:159a:9ce5 with SMTP id
o16-20020a056808125000b0033b159a9ce5mr526516oiv.191.1660700568054; Tue, 16
Aug 2022 18:42:48 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.arch.fpga
Date: Tue, 16 Aug 2022 18:42:47 -0700 (PDT)
In-Reply-To: <nnd$14eac489$5ab7230c@c29d2e0012419321>
Injection-Info: google-groups.googlegroups.com; posting-host=65.207.89.54; posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 65.207.89.54
References: <nnd$14eac489$5ab7230c@c29d2e0012419321>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <02aa01f9-020c-489f-bede-5ea13fa6cf86n@googlegroups.com>
Subject: Re: Wide frequency range, arbitrary waveform DDS
From: gnuarm.d...@gmail.com (gnuarm.del...@gmail.com)
Injection-Date: Wed, 17 Aug 2022 01:42:48 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 82
 by: gnuarm.del...@gmail. - Wed, 17 Aug 2022 01:42 UTC

On Tuesday, August 16, 2022 at 11:37:41 AM UTC-4, Stef wrote:
> To generate frequencies from approximately 0.5 mHz to 12 MHz with a DDS
> a minimum clock of >24, say 25 MHz, is required. To be able to go down
> to 0.5 mHz, a phase accumulator of at least 36 bits is required. This
> will give sub mHz resolution over the entire range. Nice for the low
> frequencies, but not of much use for MHz frequencies (in this
> application).
>
> Is there any objection to using a smaller phase accumulator and a clock
> pre-scaler to generate the lower frequencies?

There is a STRONG objection to shortening the phase word. It will cause problems with close in spurs (which can't be filtered) and reduces your resolution. See below.

Instead of a pre-scaler, use a post divider. A pre-scaler on the clock to the DDS requires the analog filter to be adjusted to suit.

> I see Analog Devices has DDS chips up to 48 bits, so 36 bits would not
> be a problem (except for cost maybe).
>
> But al of the DDS chips I find from Analog seem only to implement a
> fixed sine table/function. Do DDS chips exist that allow downloading an
> arbitrary lookup table with 2^10 - 2^16 entries of 10 - 16 bit each?

If you are looking to generate a non-sine waveform, it is not needed, or useful.

> If no such standard chips exist, I expect I need to implement the DDS
> in an FPGA. Using a smaller accumulator would probably save some space
> in the FPGA. Or am I just optoimizing prematurely?

Do you work at Highland Technology?

I've posted about an appropriate solution more than once in s.e.d. Here is a fair summary...

A DDS should be designed to generate a top frequency over a 2:1 range. This is easy stuff, with good accuracy and very low jitter if properly designed, use of a LONG phase word and a good filter after the DAC. It is important to NOT shorten the phase word as that introduces spurs close to the frequency being generated, which can not be filtered out. This is because the truncation of the phase word creates discontinuities which show up as close in spurs. Keep the phase word long and round the sine output to suit a 16 bit DAC. This generates harmonics which are much easier to filter.

You don't need to use a single large table for the sine. sin(a+b) = sin(a)cos(b) + cos(a)sin(b), where a is the msbs of the phase word and b is the lsbs. Use appropriately sized tables for sin(a), cos(b) and a single table for the product cos(a)sin(b). This is practical if (a) and (b) are each truncated a bit. Because sin(b) is always small, this term is always small and does not need to be calculated with full resolution on a and b. This product table also does not require the full word width. Three table lookups, one multiply and one add.

A programmable divider then divides the top frequency by 2**N by counting up to a settable value.

The top frequency can clock a final FF buffer register of your favorite technology to provide the actual pulse output with an appropriate jitter.

The settings of these two units can both be changed on a single clock cycle by writing to a buffer register and updating the actual operational registers simultaneously on a cue. The DDS will continue from the present phase, so will produce one top frequency clock pulse that is an intermediate period. The programmable divider will continue from the current count, either triggering right away, or continuing to count from the present value. Either way it will produce one output pulse that is within the range of the two settings, the prior setting and the new setting.

Does this make sense? Feel free to drop my name with your boss.

--

Rick C.

- Get 1,000 miles of free Supercharging
- Tesla referral code - https://ts.la/richard11209

Re: Wide frequency range, arbitrary waveform DDS

<nnd$42759b1e$2d58e9cc@1a3f81b092437643>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=308&group=comp.arch.fpga#308

  copy link   Newsgroups: comp.arch.fpga
Newsgroups: comp.arch.fpga
From: me...@this.is.invalid (Stef)
Subject: Re: Wide frequency range, arbitrary waveform DDS
References: <nnd$14eac489$5ab7230c@c29d2e0012419321> <02aa01f9-020c-489f-bede-5ea13fa6cf86n@googlegroups.com>
Mail-Copies-To: nobody
User-Agent: slrn/1.0.3 (Linux)
Message-ID: <nnd$42759b1e$2d58e9cc@1a3f81b092437643>
Organization: Newsxs
Date: Wed, 17 Aug 2022 13:36:36 +0200
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!94.232.112.244.MISMATCH!feed.abavia.com!abe004.abavia.com!abp003.abavia.com!news.newsxs.nl!not-for-mail
Lines: 82
Injection-Date: Wed, 17 Aug 2022 13:36:36 +0200
Injection-Info: news.newsxs.nl; mail-complaints-to="abuse@newsxs.nl"
 by: Stef - Wed, 17 Aug 2022 11:36 UTC

On 2022-08-17 gnuarm.del...@gmail.com wrote in comp.arch.fpga:
> On Tuesday, August 16, 2022 at 11:37:41 AM UTC-4, Stef wrote:
>> To generate frequencies from approximately 0.5 mHz to 12 MHz with a DDS
>> a minimum clock of >24, say 25 MHz, is required. To be able to go down
>> to 0.5 mHz, a phase accumulator of at least 36 bits is required. This
>> will give sub mHz resolution over the entire range. Nice for the low
>> frequencies, but not of much use for MHz frequencies (in this
>> application).
>>
>> Is there any objection to using a smaller phase accumulator and a clock
>> pre-scaler to generate the lower frequencies?
>
> There is a STRONG objection to shortening the phase word. It will cause problems with close in spurs (which can't be filtered) and reduces your resolution. See below.
>
> Instead of a pre-scaler, use a post divider. A pre-scaler on the clock to the DDS requires the analog filter to be adjusted to suit.
>

Ah yes, changing the clock would require adjustment of the output
filter. Not something you would want to do.

How would you post-divide the (arbitrary waveform) output? Or do you
mean something else with the post-divide?

>
>> I see Analog Devices has DDS chips up to 48 bits, so 36 bits would not
>> be a problem (except for cost maybe).
>>
>> But al of the DDS chips I find from Analog seem only to implement a
>> fixed sine table/function. Do DDS chips exist that allow downloading an
>> arbitrary lookup table with 2^10 - 2^16 entries of 10 - 16 bit each?
>
> If you are looking to generate a non-sine waveform, it is not needed, or useful.

Could you explain this? How would I generate an arbitrary waveform
without using a table?

>> If no such standard chips exist, I expect I need to implement the DDS
>> in an FPGA. Using a smaller accumulator would probably save some space
>> in the FPGA. Or am I just optoimizing prematurely?
>
> Do you work at Highland Technology?

No, I do not.

> I've posted about an appropriate solution more than once in s.e.d. Here is a fair summary...
>

I don't read there, so missed that. But are you now talking about an
appropriate solution for a specific Highland Technology problem, or a
general solution?

> A DDS should be designed to generate a top frequency over a 2:1 range. This is easy stuff, with good accuracy and very low jitter if properly designed, use of a LONG phase word and a good filter after the DAC. It is important to NOT shorten the phase word as that introduces spurs close to the frequency being generated, which can not be filtered out. This is because the truncation of the phase word creates discontinuities which show up as close in spurs. Keep the phase word long and round the sine output to suit a 16 bit DAC. This generates harmonics which are much easier to filter.
>
> You don't need to use a single large table for the sine. sin(a+b) = sin(a)cos(b) + cos(a)sin(b), where a is the msbs of the phase word and b is the lsbs. Use appropriately sized tables for sin(a), cos(b) and a single table for the product cos(a)sin(b). This is practical if (a) and (b) are each truncated a bit. Because sin(b) is always small, this term is always small and does not need to be calculated with full resolution on a and b. This product table also does not require the full word width. Three table lookups, one multiply and one add.
>
> A programmable divider then divides the top frequency by 2**N by counting up to a settable value.
>
> The top frequency can clock a final FF buffer register of your favorite technology to provide the actual pulse output with an appropriate jitter.
>
> The settings of these two units can both be changed on a single clock cycle by writing to a buffer register and updating the actual operational registers simultaneously on a cue. The DDS will continue from the present phase, so will produce one top frequency clock pulse that is an intermediate period. The programmable divider will continue from the current count, either triggering right away, or continuing to count from the present value. Either way it will produce one output pulse that is within the range of the two settings, the prior setting and the new setting.
>
> Does this make sense?

Not really. I don't need just a sin(a+b) signal, I need to implement
arbitrary (not realy arbitrary, but various rather complex) waveforms. I
don't see how your solution will do this, unless I totally misunderstood
it.

> Feel free to drop my name with your boss.

I can do that, but I doubt it it will ring a bell, even with your full
name. I believe we live on different continents, so I don't think we
have ever met.

--
Stef

A sinking ship gathers no moss.
-- Donald Kaul

Re: Wide frequency range, arbitrary waveform DDS

<tdjemt$1dft$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=309&group=comp.arch.fpga#309

  copy link   Newsgroups: comp.arch.embedded comp.arch.fpga
Path: i2pn2.org!i2pn.org!aioe.org!NZ87pNe1TKxNDknVl4tZhw.user.46.165.242.91.POSTED!not-for-mail
From: antis...@math.uni.wroc.pl
Newsgroups: comp.arch.embedded,comp.arch.fpga
Subject: Re: Wide frequency range, arbitrary waveform DDS
Date: Wed, 17 Aug 2022 19:14:37 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <tdjemt$1dft$1@gioia.aioe.org>
References: <nnd$14eac489$5ab7230c@c29d2e0012419321>
Injection-Info: gioia.aioe.org; logging-data="46589"; posting-host="NZ87pNe1TKxNDknVl4tZhw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: tin/2.4.5-20201224 ("Glen Albyn") (Linux/5.10.0-9-amd64 (x86_64))
Cancel-Lock: sha1:aBrVayC8qZBfA0gxaYZVqGTy554=
X-Notice: Filtered by postfilter v. 0.9.2
 by: antis...@math.uni.wroc.pl - Wed, 17 Aug 2022 19:14 UTC

In comp.arch.embedded Stef <me@this.is.invalid> wrote:
> To generate frequencies from approximately 0.5 mHz to 12 MHz with a DDS
> a minimum clock of >24, say 25 MHz, is required. To be able to go down
> to 0.5 mHz, a phase accumulator of at least 36 bits is required. This
> will give sub mHz resolution over the entire range. Nice for the low
> frequencies, but not of much use for MHz frequencies (in this
> application).
>
> Is there any objection to using a smaller phase accumulator and a clock
> pre-scaler to generate the lower frequencies?

Well, your frequency will be less accurate. To see this let me
derive formula for DDS. Let t be DAC clock, T be period of desired
signal and assume that we have N samples at uniformly distributed
points. At n-th tick of DAC clock real time is nt. In the
scale of desired signal this corresponds to nt/T. To get
position within period we drop integer part of this, that is
take frac(nt/T). Then we need to round to closest sample point.
Actually instead of rounding we can multiply by N, add 0.5 as
bias and take integer part. So, sample index is:

[N frac(nt/T) + 0.5]

where [ ] denotes integer part. Assuming that N is power of 2,
say 2^m and all arthmetic is in fixed point binary frac above
is equvalent to dropping high bits, leaving only m bits before
binary point. Integer part means dropping bits after bianary
points. So formula simplified to

[nNt/T + 0.5] = [n*a + b]

where a = Nt/T and b = 0.5 is time shift. Note that taking

phi_n = n*a + b

we have phi_{n+1} = (n+1)*a + b = a + phi_n so single addition
is enough to adjust phase. What is effect of using smaller
number of bits to represent phase phi_n? Well, b needs only
1 bit, so if Nt/T fits into k bits with k bigger than m + 1,
then calculation using k bits gives exactly the same result
as calculation using infinite precision. In other words,
using k bits we get exact result but possibly for wrong
frequency.

In general acceptable frequency error depends on application.
But since good analog components are more expensive than
digital ones, simple heuristic says that resuluting of
phase accumulator should not degrade accuracy of
oscilator. Assuming few ppm quartz oscilator as source
of DAC clock, this means that we need about 20 significant
bits in parameter a. OTOH, at moderate freqences we do not
want to make big jumps, so parameter a should have m or more
zero bits at start. With m = 10 we arrive at 30 bits. Add
some margin for users that want slightly better results and
we arrive at 36 bits. In fact, if you want 0.5 mHz without
divisor on DAC clock you will have about 35 zero bits
at start of paramter a, so 55 bits phase accumultor would
be more appropriate. However, in in few hundreds Hertz
range and below pre-divisor on DAC clock seem quite
appropriate, so 36 bits + pre-divisor should be OK.

> I see Analog Devices has DDS chips up to 48 bits, so 36 bits would not
> be a problem (except for cost maybe).
>
> But al of the DDS chips I find from Analog seem only to implement a
> fixed sine table/function. Do DDS chips exist that allow downloading an
> arbitrary lookup table with 2^10 - 2^16 entries of 10 - 16 bit each?
>
> If no such standard chips exist, I expect I need to implement the DDS
> in an FPGA. Using a smaller accumulator would probably save some space
> in the FPGA. Or am I just optoimizing prematurely?

If you go for 25 MHz DAC clock your DDS should be doable using
sufficiently fast processor. My rough guesstimate is that
to produce single sample (addjust phase accumulator, extract
bits and copy value) you need about 10 machine instructions,
so 250 MIPS processor should be fast enough to generate
samples. You probably need a DMA channel to transmit them
to DAC. I am not aware of processor with fast enough DAC,
but I think that there are processors capable of driving
external DAC at that speed.

OTOH with 12 MHz signal and 25 MHz DAC clock you essentially
are limited to sinusoidal signals, to have more variety
you need more samples per period, so either lower signal
frequency or higher DAC clock. So you may end up with
much higher DAC freqency and censequenty be forced to
use FPGA.

As I wrote earler, skimming bits on phase accumulator seems
unwise, it is at most one instruction in critical loop
in CPU realization and has _much_ smaller impact on
FPGA (think about size of your tables, single counter
is tiny compared to that).

--
Waldek Hebisch

Re: Wide frequency range, arbitrary waveform DDS

<e6b26c64-59e1-43e5-aa59-914ef240ec7fn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=311&group=comp.arch.fpga#311

  copy link   Newsgroups: comp.arch.fpga
X-Received: by 2002:ac8:5889:0:b0:344:57e5:dc54 with SMTP id t9-20020ac85889000000b0034457e5dc54mr943525qta.465.1660789207371;
Wed, 17 Aug 2022 19:20:07 -0700 (PDT)
X-Received: by 2002:a05:6830:2789:b0:636:950c:1b42 with SMTP id
x9-20020a056830278900b00636950c1b42mr408027otu.310.1660789206859; Wed, 17 Aug
2022 19:20:06 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.arch.fpga
Date: Wed, 17 Aug 2022 19:20:06 -0700 (PDT)
In-Reply-To: <nnd$42759b1e$2d58e9cc@1a3f81b092437643>
Injection-Info: google-groups.googlegroups.com; posting-host=2605:ba00:5118:846:6447:fbf1:7f4c:bbc5;
posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 2605:ba00:5118:846:6447:fbf1:7f4c:bbc5
References: <nnd$14eac489$5ab7230c@c29d2e0012419321> <02aa01f9-020c-489f-bede-5ea13fa6cf86n@googlegroups.com>
<nnd$42759b1e$2d58e9cc@1a3f81b092437643>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e6b26c64-59e1-43e5-aa59-914ef240ec7fn@googlegroups.com>
Subject: Re: Wide frequency range, arbitrary waveform DDS
From: gnuarm.d...@gmail.com (gnuarm.del...@gmail.com)
Injection-Date: Thu, 18 Aug 2022 02:20:07 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 7310
 by: gnuarm.del...@gmail. - Thu, 18 Aug 2022 02:20 UTC

On Wednesday, August 17, 2022 at 7:36:42 AM UTC-4, Stef wrote:
> On 2022-08-17 gnuarm.del...@gmail.com wrote in comp.arch.fpga:
> > On Tuesday, August 16, 2022 at 11:37:41 AM UTC-4, Stef wrote:
> >> To generate frequencies from approximately 0.5 mHz to 12 MHz with a DDS
> >> a minimum clock of >24, say 25 MHz, is required. To be able to go down
> >> to 0.5 mHz, a phase accumulator of at least 36 bits is required. This
> >> will give sub mHz resolution over the entire range. Nice for the low
> >> frequencies, but not of much use for MHz frequencies (in this
> >> application).
> >>
> >> Is there any objection to using a smaller phase accumulator and a clock
> >> pre-scaler to generate the lower frequencies?
> >
> > There is a STRONG objection to shortening the phase word. It will cause problems with close in spurs (which can't be filtered) and reduces your resolution. See below.
> >
> > Instead of a pre-scaler, use a post divider. A pre-scaler on the clock to the DDS requires the analog filter to be adjusted to suit.
> >
> Ah yes, changing the clock would require adjustment of the output
> filter. Not something you would want to do.
>
> How would you post-divide the (arbitrary waveform) output? Or do you
> mean something else with the post-divide?
> >
> >> I see Analog Devices has DDS chips up to 48 bits, so 36 bits would not
> >> be a problem (except for cost maybe).
> >>
> >> But al of the DDS chips I find from Analog seem only to implement a
> >> fixed sine table/function. Do DDS chips exist that allow downloading an
> >> arbitrary lookup table with 2^10 - 2^16 entries of 10 - 16 bit each?
> >
> > If you are looking to generate a non-sine waveform, it is not needed, or useful.
> Could you explain this? How would I generate an arbitrary waveform
> without using a table?

It's not without a table, but not one huge table, 2^n length where n is the number of phase bits. I described the process below.

> >> If no such standard chips exist, I expect I need to implement the DDS
> >> in an FPGA. Using a smaller accumulator would probably save some space
> >> in the FPGA. Or am I just optoimizing prematurely?
> >
> > Do you work at Highland Technology?
> No, I do not.

Ok, someone there was inquiring about the exact same thing and often has one of his people enquire about such problems here when they potentially involve FPGAs. Sorry I mistook you for that.

> > I've posted about an appropriate solution more than once in s.e.d. Here is a fair summary...
> >
> I don't read there, so missed that. But are you now talking about an
> appropriate solution for a specific Highland Technology problem, or a
> general solution?

The DDS is general. A single sine table is fine if you have the memory for it. But you can do very well with numerical methods and much smaller tables as well.

> > A DDS should be designed to generate a top frequency over a 2:1 range. This is easy stuff, with good accuracy and very low jitter if properly designed, use of a LONG phase word and a good filter after the DAC. It is important to NOT shorten the phase word as that introduces spurs close to the frequency being generated, which can not be filtered out. This is because the truncation of the phase word creates discontinuities which show up as close in spurs. Keep the phase word long and round the sine output to suit a 16 bit DAC. This generates harmonics which are much easier to filter.
> >
> > You don't need to use a single large table for the sine. sin(a+b) = sin(a)cos(b) + cos(a)sin(b), where a is the msbs of the phase word and b is the lsbs. Use appropriately sized tables for sin(a), cos(b) and a single table for the product cos(a)sin(b). This is practical if (a) and (b) are each truncated a bit. Because sin(b) is always small, this term is always small and does not need to be calculated with full resolution on a and b. This product table also does not require the full word width. Three table lookups, one multiply and one add.
> >
> > A programmable divider then divides the top frequency by 2**N by counting up to a settable value.
> >
> > The top frequency can clock a final FF buffer register of your favorite technology to provide the actual pulse output with an appropriate jitter.
> >
> > The settings of these two units can both be changed on a single clock cycle by writing to a buffer register and updating the actual operational registers simultaneously on a cue. The DDS will continue from the present phase, so will produce one top frequency clock pulse that is an intermediate period. The programmable divider will continue from the current count, either triggering right away, or continuing to count from the present value. Either way it will produce one output pulse that is within the range of the two settings, the prior setting and the new setting.
> >
> > Does this make sense?
> Not really. I don't need just a sin(a+b) signal, I need to implement
> arbitrary (not realy arbitrary, but various rather complex) waveforms. I
> don't see how your solution will do this, unless I totally misunderstood
> it.

Ok, if you need an AWG, then you need a large memory. Your original post didn't seem to mention that. It only talked about sine waves.

> > Feel free to drop my name with your boss.
> I can do that, but I doubt it it will ring a bell, even with your full
> name. I believe we live on different continents, so I don't think we
> have ever met.

Sorry, I was mistaken thinking you worked at Highland Tech.

--

Rick C.

+ Get 1,000 miles of free Supercharging
+ Tesla referral code - https://ts.la/richard11209

Re: Wide frequency range, arbitrary waveform DDS

<5893ac8e-65c6-483d-8267-8bff611037d8n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=312&group=comp.arch.fpga#312

  copy link   Newsgroups: comp.arch.fpga
X-Received: by 2002:a05:622a:11d2:b0:343:67a1:85e8 with SMTP id n18-20020a05622a11d200b0034367a185e8mr975256qtk.11.1660789508154;
Wed, 17 Aug 2022 19:25:08 -0700 (PDT)
X-Received: by 2002:a05:6870:478a:b0:11c:2234:c5ae with SMTP id
c10-20020a056870478a00b0011c2234c5aemr391751oaq.119.1660789507720; Wed, 17
Aug 2022 19:25:07 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.arch.fpga
Date: Wed, 17 Aug 2022 19:25:07 -0700 (PDT)
In-Reply-To: <tdjemt$1dft$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2605:ba00:5118:846:6447:fbf1:7f4c:bbc5;
posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 2605:ba00:5118:846:6447:fbf1:7f4c:bbc5
References: <nnd$14eac489$5ab7230c@c29d2e0012419321> <tdjemt$1dft$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5893ac8e-65c6-483d-8267-8bff611037d8n@googlegroups.com>
Subject: Re: Wide frequency range, arbitrary waveform DDS
From: gnuarm.d...@gmail.com (gnuarm.del...@gmail.com)
Injection-Date: Thu, 18 Aug 2022 02:25:08 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 6996
 by: gnuarm.del...@gmail. - Thu, 18 Aug 2022 02:25 UTC

On Wednesday, August 17, 2022 at 3:14:44 PM UTC-4, anti...@math.uni.wroc.pl wrote:
> In comp.arch.embedded Stef <m...@this.is.invalid> wrote:
> > To generate frequencies from approximately 0.5 mHz to 12 MHz with a DDS
> > a minimum clock of >24, say 25 MHz, is required. To be able to go down
> > to 0.5 mHz, a phase accumulator of at least 36 bits is required. This
> > will give sub mHz resolution over the entire range. Nice for the low
> > frequencies, but not of much use for MHz frequencies (in this
> > application).
> >
> > Is there any objection to using a smaller phase accumulator and a clock
> > pre-scaler to generate the lower frequencies?
> Well, your frequency will be less accurate. To see this let me
> derive formula for DDS. Let t be DAC clock, T be period of desired
> signal and assume that we have N samples at uniformly distributed
> points. At n-th tick of DAC clock real time is nt. In the
> scale of desired signal this corresponds to nt/T. To get
> position within period we drop integer part of this, that is
> take frac(nt/T). Then we need to round to closest sample point.
> Actually instead of rounding we can multiply by N, add 0.5 as
> bias and take integer part. So, sample index is:
>
> [N frac(nt/T) + 0.5]
>
> where [ ] denotes integer part. Assuming that N is power of 2,
> say 2^m and all arthmetic is in fixed point binary frac above
> is equvalent to dropping high bits, leaving only m bits before
> binary point. Integer part means dropping bits after bianary
> points. So formula simplified to
>
> [nNt/T + 0.5] = [n*a + b]
>
> where a = Nt/T and b = 0.5 is time shift. Note that taking
>
> phi_n = n*a + b
>
> we have phi_{n+1} = (n+1)*a + b = a + phi_n so single addition
> is enough to adjust phase. What is effect of using smaller
> number of bits to represent phase phi_n? Well, b needs only
> 1 bit, so if Nt/T fits into k bits with k bigger than m + 1,
> then calculation using k bits gives exactly the same result
> as calculation using infinite precision. In other words,
> using k bits we get exact result but possibly for wrong
> frequency.
>
> In general acceptable frequency error depends on application.
> But since good analog components are more expensive than
> digital ones, simple heuristic says that resuluting of
> phase accumulator should not degrade accuracy of
> oscilator. Assuming few ppm quartz oscilator as source
> of DAC clock, this means that we need about 20 significant
> bits in parameter a. OTOH, at moderate freqences we do not
> want to make big jumps, so parameter a should have m or more
> zero bits at start. With m = 10 we arrive at 30 bits. Add
> some margin for users that want slightly better results and
> we arrive at 36 bits. In fact, if you want 0.5 mHz without
> divisor on DAC clock you will have about 35 zero bits
> at start of paramter a, so 55 bits phase accumultor would
> be more appropriate. However, in in few hundreds Hertz
> range and below pre-divisor on DAC clock seem quite
> appropriate, so 36 bits + pre-divisor should be OK.
> > I see Analog Devices has DDS chips up to 48 bits, so 36 bits would not
> > be a problem (except for cost maybe).
> >
> > But al of the DDS chips I find from Analog seem only to implement a
> > fixed sine table/function. Do DDS chips exist that allow downloading an
> > arbitrary lookup table with 2^10 - 2^16 entries of 10 - 16 bit each?
> >
> > If no such standard chips exist, I expect I need to implement the DDS
> > in an FPGA. Using a smaller accumulator would probably save some space
> > in the FPGA. Or am I just optoimizing prematurely?
> If you go for 25 MHz DAC clock your DDS should be doable using
> sufficiently fast processor. My rough guesstimate is that
> to produce single sample (addjust phase accumulator, extract
> bits and copy value) you need about 10 machine instructions,
> so 250 MIPS processor should be fast enough to generate
> samples. You probably need a DMA channel to transmit them
> to DAC. I am not aware of processor with fast enough DAC,
> but I think that there are processors capable of driving
> external DAC at that speed.
>
> OTOH with 12 MHz signal and 25 MHz DAC clock you essentially
> are limited to sinusoidal signals, to have more variety
> you need more samples per period, so either lower signal
> frequency or higher DAC clock. So you may end up with
> much higher DAC freqency and censequenty be forced to
> use FPGA.
>
> As I wrote earler, skimming bits on phase accumulator seems
> unwise, it is at most one instruction in critical loop
> in CPU realization and has _much_ smaller impact on
> FPGA (think about size of your tables, single counter
> is tiny compared to that).

In sine generation, it is often used in applications where spurs need to be minimized. A filter is good for a sine wave, but is limited on removing close in spurs. Truncation of the phase word (even just as an input to the sine generator) creates spurs close to the fundamental. It essentially creates phase discontinuities that manifest as close in spurs. These are virtually unfilterable. If jitter or close in spurs are not important, then shortening the phase word has other obvious limitations that can be evaluated readily.

--

Rick C.

-- Get 1,000 miles of free Supercharging
-- Tesla referral code - https://ts.la/richard11209

Re: Wide frequency range, arbitrary waveform DDS

<aaee3410-5d85-4cf2-baee-d19a694bb5cen@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=313&group=comp.arch.fpga#313

  copy link   Newsgroups: comp.arch.fpga
X-Received: by 2002:a05:622a:306:b0:343:416d:76ae with SMTP id q6-20020a05622a030600b00343416d76aemr956924qtw.337.1660789591988;
Wed, 17 Aug 2022 19:26:31 -0700 (PDT)
X-Received: by 2002:aca:6088:0:b0:343:75a6:d6a3 with SMTP id
u130-20020aca6088000000b0034375a6d6a3mr442391oib.92.1660789591623; Wed, 17
Aug 2022 19:26:31 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.arch.fpga
Date: Wed, 17 Aug 2022 19:26:31 -0700 (PDT)
In-Reply-To: <e6b26c64-59e1-43e5-aa59-914ef240ec7fn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2605:ba00:5118:846:6447:fbf1:7f4c:bbc5;
posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 2605:ba00:5118:846:6447:fbf1:7f4c:bbc5
References: <nnd$14eac489$5ab7230c@c29d2e0012419321> <02aa01f9-020c-489f-bede-5ea13fa6cf86n@googlegroups.com>
<nnd$42759b1e$2d58e9cc@1a3f81b092437643> <e6b26c64-59e1-43e5-aa59-914ef240ec7fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <aaee3410-5d85-4cf2-baee-d19a694bb5cen@googlegroups.com>
Subject: Re: Wide frequency range, arbitrary waveform DDS
From: gnuarm.d...@gmail.com (gnuarm.del...@gmail.com)
Injection-Date: Thu, 18 Aug 2022 02:26:31 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 7729
 by: gnuarm.del...@gmail. - Thu, 18 Aug 2022 02:26 UTC

On Wednesday, August 17, 2022 at 10:20:09 PM UTC-4, gnuarm.del...@gmail.com wrote:
> On Wednesday, August 17, 2022 at 7:36:42 AM UTC-4, Stef wrote:
> > On 2022-08-17 gnuarm.del...@gmail.com wrote in comp.arch.fpga:
> > > On Tuesday, August 16, 2022 at 11:37:41 AM UTC-4, Stef wrote:
> > >> To generate frequencies from approximately 0.5 mHz to 12 MHz with a DDS
> > >> a minimum clock of >24, say 25 MHz, is required. To be able to go down
> > >> to 0.5 mHz, a phase accumulator of at least 36 bits is required. This
> > >> will give sub mHz resolution over the entire range. Nice for the low
> > >> frequencies, but not of much use for MHz frequencies (in this
> > >> application).
> > >>
> > >> Is there any objection to using a smaller phase accumulator and a clock
> > >> pre-scaler to generate the lower frequencies?
> > >
> > > There is a STRONG objection to shortening the phase word. It will cause problems with close in spurs (which can't be filtered) and reduces your resolution. See below.
> > >
> > > Instead of a pre-scaler, use a post divider. A pre-scaler on the clock to the DDS requires the analog filter to be adjusted to suit.
> > >
> > Ah yes, changing the clock would require adjustment of the output
> > filter. Not something you would want to do.
> >
> > How would you post-divide the (arbitrary waveform) output? Or do you
> > mean something else with the post-divide?
> > >
> > >> I see Analog Devices has DDS chips up to 48 bits, so 36 bits would not
> > >> be a problem (except for cost maybe).
> > >>
> > >> But al of the DDS chips I find from Analog seem only to implement a
> > >> fixed sine table/function. Do DDS chips exist that allow downloading an
> > >> arbitrary lookup table with 2^10 - 2^16 entries of 10 - 16 bit each?
> > >
> > > If you are looking to generate a non-sine waveform, it is not needed, or useful.
> > Could you explain this? How would I generate an arbitrary waveform
> > without using a table?
> It's not without a table, but not one huge table, 2^n length where n is the number of phase bits. I described the process below.

Opps, to correct myself... 2^(n-2) length table if you take advantage of the folding properties of the sine function.

> > >> If no such standard chips exist, I expect I need to implement the DDS
> > >> in an FPGA. Using a smaller accumulator would probably save some space
> > >> in the FPGA. Or am I just optoimizing prematurely?
> > >
> > > Do you work at Highland Technology?
> > No, I do not.
> Ok, someone there was inquiring about the exact same thing and often has one of his people enquire about such problems here when they potentially involve FPGAs. Sorry I mistook you for that.
> > > I've posted about an appropriate solution more than once in s.e.d. Here is a fair summary...
> > >
> > I don't read there, so missed that. But are you now talking about an
> > appropriate solution for a specific Highland Technology problem, or a
> > general solution?
> The DDS is general. A single sine table is fine if you have the memory for it. But you can do very well with numerical methods and much smaller tables as well.
> > > A DDS should be designed to generate a top frequency over a 2:1 range.. This is easy stuff, with good accuracy and very low jitter if properly designed, use of a LONG phase word and a good filter after the DAC. It is important to NOT shorten the phase word as that introduces spurs close to the frequency being generated, which can not be filtered out. This is because the truncation of the phase word creates discontinuities which show up as close in spurs. Keep the phase word long and round the sine output to suit a 16 bit DAC. This generates harmonics which are much easier to filter.
> > >
> > > You don't need to use a single large table for the sine. sin(a+b) = sin(a)cos(b) + cos(a)sin(b), where a is the msbs of the phase word and b is the lsbs. Use appropriately sized tables for sin(a), cos(b) and a single table for the product cos(a)sin(b). This is practical if (a) and (b) are each truncated a bit. Because sin(b) is always small, this term is always small and does not need to be calculated with full resolution on a and b. This product table also does not require the full word width. Three table lookups, one multiply and one add.
> > >
> > > A programmable divider then divides the top frequency by 2**N by counting up to a settable value.
> > >
> > > The top frequency can clock a final FF buffer register of your favorite technology to provide the actual pulse output with an appropriate jitter..
> > >
> > > The settings of these two units can both be changed on a single clock cycle by writing to a buffer register and updating the actual operational registers simultaneously on a cue. The DDS will continue from the present phase, so will produce one top frequency clock pulse that is an intermediate period. The programmable divider will continue from the current count, either triggering right away, or continuing to count from the present value. Either way it will produce one output pulse that is within the range of the two settings, the prior setting and the new setting.
> > >
> > > Does this make sense?
> > Not really. I don't need just a sin(a+b) signal, I need to implement
> > arbitrary (not realy arbitrary, but various rather complex) waveforms. I
> > don't see how your solution will do this, unless I totally misunderstood
> > it.
> Ok, if you need an AWG, then you need a large memory. Your original post didn't seem to mention that. It only talked about sine waves.
> > > Feel free to drop my name with your boss.
> > I can do that, but I doubt it it will ring a bell, even with your full
> > name. I believe we live on different continents, so I don't think we
> > have ever met.
> Sorry, I was mistaken thinking you worked at Highland Tech.

--

Rick C.

-+ Get 1,000 miles of free Supercharging
-+ Tesla referral code - https://ts.la/richard11209

Re: Wide frequency range, arbitrary waveform DDS

<nnd$3290a642$51a445aa@83f55c0d6939847a>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=314&group=comp.arch.fpga#314

  copy link   Newsgroups: comp.arch.embedded comp.arch.fpga
Newsgroups: comp.arch.embedded,comp.arch.fpga
From: me...@this.is.invalid (Stef)
Subject: Re: Wide frequency range, arbitrary waveform DDS
References: <nnd$14eac489$5ab7230c@c29d2e0012419321> <tdjemt$1dft$1@gioia.aioe.org>
Mail-Copies-To: nobody
User-Agent: slrn/1.0.3 (Linux)
Message-ID: <nnd$3290a642$51a445aa@83f55c0d6939847a>
Organization: Newsxs
Date: Thu, 18 Aug 2022 10:21:44 +0200
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!feeder.usenetexpress.com!tr1.eu1.usenetexpress.com!feeder1.feed.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe004.abavia.com!abp002.abavia.com!news.newsxs.nl!not-for-mail
Lines: 76
Injection-Date: Thu, 18 Aug 2022 10:21:44 +0200
Injection-Info: news.newsxs.nl; mail-complaints-to="abuse@newsxs.nl"
X-Received-Bytes: 3972
 by: Stef - Thu, 18 Aug 2022 08:21 UTC

On 2022-08-17 antispam@math.uni.wroc.pl wrote in comp.arch.embedded:
> In comp.arch.embedded Stef <me@this.is.invalid> wrote:
>> To generate frequencies from approximately 0.5 mHz to 12 MHz with a DDS
>> a minimum clock of >24, say 25 MHz, is required. To be able to go down
>> to 0.5 mHz, a phase accumulator of at least 36 bits is required. This
>> will give sub mHz resolution over the entire range. Nice for the low
>> frequencies, but not of much use for MHz frequencies (in this
>> application).
>>
>> Is there any objection to using a smaller phase accumulator and a clock
>> pre-scaler to generate the lower frequencies?
>
> Well, your frequency will be less accurate. To see this let me
> derive formula for DDS.

<snip detailed DDS math>

>>
>> If no such standard chips exist, I expect I need to implement the DDS
>> in an FPGA. Using a smaller accumulator would probably save some space
>> in the FPGA. Or am I just optoimizing prematurely?
>
> If you go for 25 MHz DAC clock your DDS should be doable using
> sufficiently fast processor. My rough guesstimate is that
> to produce single sample (addjust phase accumulator, extract
> bits and copy value) you need about 10 machine instructions,
> so 250 MIPS processor should be fast enough to generate
> samples. You probably need a DMA channel to transmit them
> to DAC. I am not aware of processor with fast enough DAC,
> but I think that there are processors capable of driving
> external DAC at that speed.

That is assuming the processor has not much else to do and that only a
single DDS channel is required. Both will not be true in the possible
application, I'm affraid. The additional DDS channels can be a bit
slower, so it may still be doable.

> OTOH with 12 MHz signal and 25 MHz DAC clock you essentially
> are limited to sinusoidal signals, to have more variety
> you need more samples per period, so either lower signal
> frequency or higher DAC clock. So you may end up with
> much higher DAC freqency and censequenty be forced to
> use FPGA.

Yes, this is understood. Read the 10 MHz as bandwidth, not as the max
frequency at which a complex waveform should be generated. So the
waveform will degrade to a sine when sped up to 10 MHz.

> As I wrote earler, skimming bits on phase accumulator seems
> unwise, it is at most one instruction in critical loop
> in CPU realization and has _much_ smaller impact on
> FPGA (think about size of your tables, single counter
> is tiny compared to that).

FPGA have memory blocks to hold such tables. A simple ripple counter
will indeed take a tiny amount of logic, a synchronous counter will take
more, certainly at 55 bits. But I think you need an adder if you want
variable accumulator steps and not only +1. Keeping the adder small
enough to fit in something like a 48-bit DSP slice will probably save
space.

The above is probably quite Xilinx specific, as that is the last FPGA I
have experience with. And even that was a while ago.

But again, I may be worrying too much about space already. When it comes
to it, I should first implement the 'best' solution. And then probably
find that this uses less than 10% of my FPGA. :-)

--
Stef

Don't shout for help at night. You might wake your neighbors.
-- Stanislaw J. Lem, "Unkempt Thoughts"

Re: Wide frequency range, arbitrary waveform DDS

<nnd$476a777a$2a4e0b56@bd3b0152eb38563d>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=315&group=comp.arch.fpga#315

  copy link   Newsgroups: comp.arch.fpga
Newsgroups: comp.arch.fpga
From: me...@this.is.invalid (Stef)
Subject: Re: Wide frequency range, arbitrary waveform DDS
References: <nnd$14eac489$5ab7230c@c29d2e0012419321> <02aa01f9-020c-489f-bede-5ea13fa6cf86n@googlegroups.com> <nnd$42759b1e$2d58e9cc@1a3f81b092437643> <e6b26c64-59e1-43e5-aa59-914ef240ec7fn@googlegroups.com>
Mail-Copies-To: nobody
User-Agent: slrn/1.0.3 (Linux)
Message-ID: <nnd$476a777a$2a4e0b56@bd3b0152eb38563d>
Organization: Newsxs
Date: Thu, 18 Aug 2022 10:36:52 +0200
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!feeder.usenetexpress.com!tr1.eu1.usenetexpress.com!94.232.112.244.MISMATCH!feed.abavia.com!abe004.abavia.com!abp001.abavia.com!news.newsxs.nl!not-for-mail
Lines: 70
Injection-Date: Thu, 18 Aug 2022 10:36:52 +0200
Injection-Info: news.newsxs.nl; mail-complaints-to="abuse@newsxs.nl"
 by: Stef - Thu, 18 Aug 2022 08:36 UTC

On 2022-08-18 gnuarm.del...@gmail.com wrote in comp.arch.fpga:
> On Wednesday, August 17, 2022 at 7:36:42 AM UTC-4, Stef wrote:
>> On 2022-08-17 gnuarm.del...@gmail.com wrote in comp.arch.fpga:
>> > On Tuesday, August 16, 2022 at 11:37:41 AM UTC-4, Stef wrote:

<snip>

>> >> But al of the DDS chips I find from Analog seem only to implement a
>> >> fixed sine table/function. Do DDS chips exist that allow downloading an
>> >> arbitrary lookup table with 2^10 - 2^16 entries of 10 - 16 bit each?

'Hidden' AWG hint.

>> > If you are looking to generate a non-sine waveform, it is not needed, or useful.
>> Could you explain this? How would I generate an arbitrary waveform
>> without using a table?
>
> It's not without a table, but not one huge table, 2^n length where n is the number of phase bits. I described the process below.
>
>
>> >> If no such standard chips exist, I expect I need to implement the DDS
>> >> in an FPGA. Using a smaller accumulator would probably save some space
>> >> in the FPGA. Or am I just optoimizing prematurely?
>> >
>> > Do you work at Highland Technology?
>> No, I do not.
>
> Ok, someone there was inquiring about the exact same thing and often has one of his people enquire about such problems here when they potentially involve FPGAs. Sorry I mistook you for that.

I suspected something like this was the case, no problem. :-)

>
>> > I've posted about an appropriate solution more than once in s.e.d. Here is a fair summary...
>> >
>> I don't read there, so missed that. But are you now talking about an
>> appropriate solution for a specific Highland Technology problem, or a
>> general solution?
>
> The DDS is general. A single sine table is fine if you have the memory for it. But you can do very well with numerical methods and much smaller tables as well.

Yes DDS is general. But your method seemed to be aimed specifically at a
certain problem. But if I understand you correctly, the method you
describe is a general solution to generate sine waves without large
tables?

<snip>

> Ok, if you need an AWG, then you need a large memory. Your original post didn't seem to mention that. It only talked about sine waves.

Re-reading my original post, I see that was a bit hidden in the text and
may not have been clear to a reader not familiar with the application.
Sorry about that.

>
>> > Feel free to drop my name with your boss.
>> I can do that, but I doubt it it will ring a bell, even with your full
>> name. I believe we live on different continents, so I don't think we
>> have ever met.
>
> Sorry, I was mistaken thinking you worked at Highland Tech.

I thought you might have. ;-)

--
Stef

Hey, I had to let awk be better at *something*... :-)
-- Larry Wall in <1991Nov7.200504.25280@netlabs.com>1

Re: Wide frequency range, arbitrary waveform DDS

<f3fe89f4-f6b1-41f9-b8b7-afd1a22eb7b1n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=316&group=comp.arch.fpga#316

  copy link   Newsgroups: comp.arch.fpga
X-Received: by 2002:ae9:ed91:0:b0:6bb:29c0:8b0c with SMTP id c139-20020ae9ed91000000b006bb29c08b0cmr3275118qkg.676.1660850733796;
Thu, 18 Aug 2022 12:25:33 -0700 (PDT)
X-Received: by 2002:a05:6870:73ce:b0:118:8dc9:90fe with SMTP id
a14-20020a05687073ce00b001188dc990femr4902880oan.250.1660850733428; Thu, 18
Aug 2022 12:25:33 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.arch.fpga
Date: Thu, 18 Aug 2022 12:25:33 -0700 (PDT)
In-Reply-To: <nnd$3290a642$51a445aa@83f55c0d6939847a>
Injection-Info: google-groups.googlegroups.com; posting-host=2605:ba00:5118:846:cc5d:3b66:1452:ef55;
posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 2605:ba00:5118:846:cc5d:3b66:1452:ef55
References: <nnd$14eac489$5ab7230c@c29d2e0012419321> <tdjemt$1dft$1@gioia.aioe.org>
<nnd$3290a642$51a445aa@83f55c0d6939847a>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f3fe89f4-f6b1-41f9-b8b7-afd1a22eb7b1n@googlegroups.com>
Subject: Re: Wide frequency range, arbitrary waveform DDS
From: gnuarm.d...@gmail.com (gnuarm.del...@gmail.com)
Injection-Date: Thu, 18 Aug 2022 19:25:33 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 5745
 by: gnuarm.del...@gmail. - Thu, 18 Aug 2022 19:25 UTC

On Thursday, August 18, 2022 at 4:21:50 AM UTC-4, Stef wrote:
> On 2022-08-17 anti...@math.uni.wroc.pl wrote in comp.arch.embedded:
> > In comp.arch.embedded Stef <m...@this.is.invalid> wrote:
> >> To generate frequencies from approximately 0.5 mHz to 12 MHz with a DDS
> >> a minimum clock of >24, say 25 MHz, is required. To be able to go down
> >> to 0.5 mHz, a phase accumulator of at least 36 bits is required. This
> >> will give sub mHz resolution over the entire range. Nice for the low
> >> frequencies, but not of much use for MHz frequencies (in this
> >> application).
> >>
> >> Is there any objection to using a smaller phase accumulator and a clock
> >> pre-scaler to generate the lower frequencies?
> >
> > Well, your frequency will be less accurate. To see this let me
> > derive formula for DDS.
> <snip detailed DDS math>
> >>
> >> If no such standard chips exist, I expect I need to implement the DDS
> >> in an FPGA. Using a smaller accumulator would probably save some space
> >> in the FPGA. Or am I just optoimizing prematurely?
> >
> > If you go for 25 MHz DAC clock your DDS should be doable using
> > sufficiently fast processor. My rough guesstimate is that
> > to produce single sample (addjust phase accumulator, extract
> > bits and copy value) you need about 10 machine instructions,
> > so 250 MIPS processor should be fast enough to generate
> > samples. You probably need a DMA channel to transmit them
> > to DAC. I am not aware of processor with fast enough DAC,
> > but I think that there are processors capable of driving
> > external DAC at that speed.
> That is assuming the processor has not much else to do and that only a
> single DDS channel is required. Both will not be true in the possible
> application, I'm affraid. The additional DDS channels can be a bit
> slower, so it may still be doable.

You keep calling it a DDS, which apparently is correct in that it can be used generically. But conventionally this refers to generating a sine wave. The term, AWG (Arbitrary Waveform Generator) is more commonly used for what you are doing.

> > OTOH with 12 MHz signal and 25 MHz DAC clock you essentially
> > are limited to sinusoidal signals, to have more variety
> > you need more samples per period, so either lower signal
> > frequency or higher DAC clock. So you may end up with
> > much higher DAC freqency and censequenty be forced to
> > use FPGA.
> Yes, this is understood. Read the 10 MHz as bandwidth, not as the max
> frequency at which a complex waveform should be generated. So the
> waveform will degrade to a sine when sped up to 10 MHz.
> > As I wrote earler, skimming bits on phase accumulator seems
> > unwise, it is at most one instruction in critical loop
> > in CPU realization and has _much_ smaller impact on
> > FPGA (think about size of your tables, single counter
> > is tiny compared to that).
> FPGA have memory blocks to hold such tables. A simple ripple counter
> will indeed take a tiny amount of logic, a synchronous counter will take
> more, certainly at 55 bits. But I think you need an adder if you want
> variable accumulator steps and not only +1. Keeping the adder small
> enough to fit in something like a 48-bit DSP slice will probably save
> space.

Ripple or synchronous would be the same, 1 FF and 1 LUT per bit. That's assuming an FPGA that supports addition in the LUT/FF cell, which most do. Even if your increment is +1, that uses the same logic because it's still 1 LUT. Of course, if you have other inputs, such as an enable or add/sub

> The above is probably quite Xilinx specific, as that is the last FPGA I
> have experience with. And even that was a while ago.
>
> But again, I may be worrying too much about space already. When it comes
> to it, I should first implement the 'best' solution. And then probably
> find that this uses less than 10% of my FPGA. :-)

Yes, unless you have *a lot* going on in the FPGA, you won't need to worry about a 55 bit counter, running at 50 MHz. It won't be significant in your greater design.

--

Rick C.

+- Get 1,000 miles of free Supercharging
+- Tesla referral code - https://ts.la/richard11209

Re: Wide frequency range, arbitrary waveform DDS

<bae22428-4f67-408c-be77-b36071ee337an@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=317&group=comp.arch.fpga#317

  copy link   Newsgroups: comp.arch.fpga
X-Received: by 2002:a05:620a:4248:b0:6a8:3259:6a76 with SMTP id w8-20020a05620a424800b006a832596a76mr3319444qko.175.1660851119587;
Thu, 18 Aug 2022 12:31:59 -0700 (PDT)
X-Received: by 2002:a05:6870:b52c:b0:10e:4488:6cf2 with SMTP id
v44-20020a056870b52c00b0010e44886cf2mr2209078oap.58.1660851119123; Thu, 18
Aug 2022 12:31:59 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.arch.fpga
Date: Thu, 18 Aug 2022 12:31:58 -0700 (PDT)
In-Reply-To: <nnd$476a777a$2a4e0b56@bd3b0152eb38563d>
Injection-Info: google-groups.googlegroups.com; posting-host=2605:ba00:5118:846:cc5d:3b66:1452:ef55;
posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 2605:ba00:5118:846:cc5d:3b66:1452:ef55
References: <nnd$14eac489$5ab7230c@c29d2e0012419321> <02aa01f9-020c-489f-bede-5ea13fa6cf86n@googlegroups.com>
<nnd$42759b1e$2d58e9cc@1a3f81b092437643> <e6b26c64-59e1-43e5-aa59-914ef240ec7fn@googlegroups.com>
<nnd$476a777a$2a4e0b56@bd3b0152eb38563d>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bae22428-4f67-408c-be77-b36071ee337an@googlegroups.com>
Subject: Re: Wide frequency range, arbitrary waveform DDS
From: gnuarm.d...@gmail.com (gnuarm.del...@gmail.com)
Injection-Date: Thu, 18 Aug 2022 19:31:59 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4812
 by: gnuarm.del...@gmail. - Thu, 18 Aug 2022 19:31 UTC

On Thursday, August 18, 2022 at 4:37:03 AM UTC-4, Stef wrote:
> On 2022-08-18 gnuarm.del...@gmail.com wrote in comp.arch.fpga:
> > On Wednesday, August 17, 2022 at 7:36:42 AM UTC-4, Stef wrote:
> >> On 2022-08-17 gnuarm.del...@gmail.com wrote in comp.arch.fpga:
> >> > On Tuesday, August 16, 2022 at 11:37:41 AM UTC-4, Stef wrote:
> <snip>
> >> >> But al of the DDS chips I find from Analog seem only to implement a
> >> >> fixed sine table/function. Do DDS chips exist that allow downloading an
> >> >> arbitrary lookup table with 2^10 - 2^16 entries of 10 - 16 bit each?
> 'Hidden' AWG hint.
> >> > If you are looking to generate a non-sine waveform, it is not needed, or useful.
> >> Could you explain this? How would I generate an arbitrary waveform
> >> without using a table?
> >
> > It's not without a table, but not one huge table, 2^n length where n is the number of phase bits. I described the process below.
> >
> >
> >> >> If no such standard chips exist, I expect I need to implement the DDS
> >> >> in an FPGA. Using a smaller accumulator would probably save some space
> >> >> in the FPGA. Or am I just optoimizing prematurely?
> >> >
> >> > Do you work at Highland Technology?
> >> No, I do not.
> >
> > Ok, someone there was inquiring about the exact same thing and often has one of his people enquire about such problems here when they potentially involve FPGAs. Sorry I mistook you for that.
> I suspected something like this was the case, no problem. :-)
> >
> >> > I've posted about an appropriate solution more than once in s.e.d. Here is a fair summary...
> >> >
> >> I don't read there, so missed that. But are you now talking about an
> >> appropriate solution for a specific Highland Technology problem, or a
> >> general solution?
> >
> > The DDS is general. A single sine table is fine if you have the memory for it. But you can do very well with numerical methods and much smaller tables as well.
> Yes DDS is general. But your method seemed to be aimed specifically at a
> certain problem. But if I understand you correctly, the method you
> describe is a general solution to generate sine waves without large
> tables?

Yes, only sine waves. If you need an AGW, you need a large table, unless the waveform can be described mathematically in ways that can be synthesized in logic. Like combinations of sawtooth, triangle, sine, pulses, etc. That can be done with counters and added together.

> > Ok, if you need an AWG, then you need a large memory. Your original post didn't seem to mention that. It only talked about sine waves.
> Re-reading my original post, I see that was a bit hidden in the text and
> may not have been clear to a reader not familiar with the application.
> Sorry about that.

You can combine the table with logic to produce a "sparse" waveform. Such as a burst of arbitrary data, followed by no signal or some base signal that can be easily synthesized, followed by another burst of arbitrary data. There's no limit to the combinations you might think of to suit a given problem.

--

Rick C.

++ Get 1,000 miles of free Supercharging
++ Tesla referral code - https://ts.la/richard11209

Re: Wide frequency range, arbitrary waveform DDS

<nnd$48f4ac20$25a51a81@393071a02c245bbe>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=318&group=comp.arch.fpga#318

  copy link   Newsgroups: comp.arch.fpga
Newsgroups: comp.arch.fpga
From: me...@this.is.invalid (Stef)
Subject: Re: Wide frequency range, arbitrary waveform DDS
References: <nnd$14eac489$5ab7230c@c29d2e0012419321>
<tdjemt$1dft$1@gioia.aioe.org> <nnd$3290a642$51a445aa@83f55c0d6939847a>
<f3fe89f4-f6b1-41f9-b8b7-afd1a22eb7b1n@googlegroups.com>
Mail-Copies-To: nobody
User-Agent: slrn/1.0.3 (Linux)
Message-ID: <nnd$48f4ac20$25a51a81@393071a02c245bbe>
Organization: Newsxs
Date: Fri, 19 Aug 2022 11:13:05 +0200
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe004.abavia.com!abp001.abavia.com!news.newsxs.nl!not-for-mail
Lines: 28
Injection-Date: Fri, 19 Aug 2022 11:13:05 +0200
Injection-Info: news.newsxs.nl; mail-complaints-to="abuse@newsxs.nl"
X-Received-Bytes: 2023
 by: Stef - Fri, 19 Aug 2022 09:13 UTC

On 2022-08-18 gnuarm.del...@gmail.com wrote in comp.arch.fpga:

> You keep calling it a DDS, which apparently is correct in that it can be used generically. But conventionally this refers to generating a sine wave. The term, AWG (Arbitrary Waveform Generator) is more commonly used for what you are doing.

To me, the core of the DDS is the clock/phase accumulator/control word.
The phase output of this can be fed to any phase to amplitude conversion
you like. Complete DDS chips often include sine (table), sawtooth
(direct phase to DAC) and pulse (MSB of phase).

Although not an authoritive source, wikipedia agrees with this
interpretation.
https://en.wikipedia.org/wiki/Direct_digital_synthesis

AWG, to me, just means you can generate any waveform. But not how you
set the frequency of this waveform. It can be fixed or just use divide
by 2 stages on the clock, or wathever.

But this is all just personal interpretations, I think we both
understand what the other means right now. Maybe we should call it an
DDS AWG generator to cover everything. ;-)

--
Stef

The party adjourned to a hot tub, yes. Fully clothed, I might add.
-- IBM employee, testifying in California State Supreme Court

Re: Wide frequency range, arbitrary waveform DDS

<c44b752e-0f92-43c9-b8d6-8293dd279fcfn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=319&group=comp.arch.fpga#319

  copy link   Newsgroups: comp.arch.fpga
X-Received: by 2002:a05:622a:15ce:b0:343:6a12:39c with SMTP id d14-20020a05622a15ce00b003436a12039cmr5715883qty.676.1660901927025;
Fri, 19 Aug 2022 02:38:47 -0700 (PDT)
X-Received: by 2002:a4a:c317:0:b0:44a:e9df:3038 with SMTP id
c23-20020a4ac317000000b0044ae9df3038mr2164788ooq.16.1660901926753; Fri, 19
Aug 2022 02:38:46 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.arch.fpga
Date: Fri, 19 Aug 2022 02:38:46 -0700 (PDT)
In-Reply-To: <nnd$48f4ac20$25a51a81@393071a02c245bbe>
Injection-Info: google-groups.googlegroups.com; posting-host=2605:ba00:5118:846:5cb:6599:c908:e629;
posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 2605:ba00:5118:846:5cb:6599:c908:e629
References: <nnd$14eac489$5ab7230c@c29d2e0012419321> <tdjemt$1dft$1@gioia.aioe.org>
<nnd$3290a642$51a445aa@83f55c0d6939847a> <f3fe89f4-f6b1-41f9-b8b7-afd1a22eb7b1n@googlegroups.com>
<nnd$48f4ac20$25a51a81@393071a02c245bbe>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c44b752e-0f92-43c9-b8d6-8293dd279fcfn@googlegroups.com>
Subject: Re: Wide frequency range, arbitrary waveform DDS
From: gnuarm.d...@gmail.com (gnuarm.del...@gmail.com)
Injection-Date: Fri, 19 Aug 2022 09:38:47 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 3004
 by: gnuarm.del...@gmail. - Fri, 19 Aug 2022 09:38 UTC

On Friday, August 19, 2022 at 5:13:11 AM UTC-4, Stef wrote:
> On 2022-08-18 gnuarm.del...@gmail.com wrote in comp.arch.fpga:
> > You keep calling it a DDS, which apparently is correct in that it can be used generically. But conventionally this refers to generating a sine wave. The term, AWG (Arbitrary Waveform Generator) is more commonly used for what you are doing.
> To me, the core of the DDS is the clock/phase accumulator/control word.
> The phase output of this can be fed to any phase to amplitude conversion
> you like. Complete DDS chips often include sine (table), sawtooth
> (direct phase to DAC) and pulse (MSB of phase).
>
> Although not an authoritive source, wikipedia agrees with this
> interpretation.
> https://en.wikipedia.org/wiki/Direct_digital_synthesis
>
> AWG, to me, just means you can generate any waveform. But not how you
> set the frequency of this waveform. It can be fixed or just use divide
> by 2 stages on the clock, or wathever.
>
> But this is all just personal interpretations, I think we both
> understand what the other means right now. Maybe we should call it an
> DDS AWG generator to cover everything. ;-)

Sorry, I didn't mean to make a big deal of the nomenclature. So what are you trying to do that isn't obvious, given a phase accumulator and a lookup table?

The frequency is normally set by the increment on the phase accumulator. But maybe that doesn't work so well for an AWG? What sort of waveforms are you interested in generating?

--

Rick C.

--- Get 1,000 miles of free Supercharging
--- Tesla referral code - https://ts.la/richard11209

Re: Wide frequency range, arbitrary waveform DDS

<7c1813c0-209a-4ffc-bd19-37a5277ca7ccn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=320&group=comp.arch.fpga#320

  copy link   Newsgroups: comp.arch.fpga
X-Received: by 2002:a05:620a:1a15:b0:6a9:3829:b6e with SMTP id bk21-20020a05620a1a1500b006a938290b6emr4656161qkb.756.1660902022117;
Fri, 19 Aug 2022 02:40:22 -0700 (PDT)
X-Received: by 2002:a05:6808:1596:b0:344:9136:8b1d with SMTP id
t22-20020a056808159600b0034491368b1dmr5323726oiw.250.1660902021770; Fri, 19
Aug 2022 02:40:21 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.arch.fpga
Date: Fri, 19 Aug 2022 02:40:21 -0700 (PDT)
In-Reply-To: <nnd$48f4ac20$25a51a81@393071a02c245bbe>
Injection-Info: google-groups.googlegroups.com; posting-host=2605:ba00:5118:846:5cb:6599:c908:e629;
posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 2605:ba00:5118:846:5cb:6599:c908:e629
References: <nnd$14eac489$5ab7230c@c29d2e0012419321> <tdjemt$1dft$1@gioia.aioe.org>
<nnd$3290a642$51a445aa@83f55c0d6939847a> <f3fe89f4-f6b1-41f9-b8b7-afd1a22eb7b1n@googlegroups.com>
<nnd$48f4ac20$25a51a81@393071a02c245bbe>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7c1813c0-209a-4ffc-bd19-37a5277ca7ccn@googlegroups.com>
Subject: Re: Wide frequency range, arbitrary waveform DDS
From: gnuarm.d...@gmail.com (gnuarm.del...@gmail.com)
Injection-Date: Fri, 19 Aug 2022 09:40:22 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2874
 by: gnuarm.del...@gmail. - Fri, 19 Aug 2022 09:40 UTC

On Friday, August 19, 2022 at 5:13:11 AM UTC-4, Stef wrote:
> On 2022-08-18 gnuarm.del...@gmail.com wrote in comp.arch.fpga:
> > You keep calling it a DDS, which apparently is correct in that it can be used generically. But conventionally this refers to generating a sine wave. The term, AWG (Arbitrary Waveform Generator) is more commonly used for what you are doing.
> To me, the core of the DDS is the clock/phase accumulator/control word.
> The phase output of this can be fed to any phase to amplitude conversion
> you like. Complete DDS chips often include sine (table), sawtooth
> (direct phase to DAC) and pulse (MSB of phase).
>
> Although not an authoritive source, wikipedia agrees with this
> interpretation.
> https://en.wikipedia.org/wiki/Direct_digital_synthesis
>
> AWG, to me, just means you can generate any waveform. But not how you
> set the frequency of this waveform. It can be fixed or just use divide
> by 2 stages on the clock, or wathever.
>
> But this is all just personal interpretations, I think we both
> understand what the other means right now. Maybe we should call it an
> DDS AWG generator to cover everything. ;-)

I suppose to control the sample rate of the AGW, you could use a DDS with a clock output. The DDS would give a wide range of frequency with high resolution. What range of sample rate are you interested in?

--

Rick C.

--+ Get 1,000 miles of free Supercharging
--+ Tesla referral code - https://ts.la/richard11209

Re: Wide frequency range, arbitrary waveform DDS

<nnd$7c5a6062$3cf67e0f@507c1b353e1350f4>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=321&group=comp.arch.fpga#321

  copy link   Newsgroups: comp.arch.fpga
Newsgroups: comp.arch.fpga
From: me...@this.is.invalid (Stef)
Subject: Re: Wide frequency range, arbitrary waveform DDS
References: <nnd$14eac489$5ab7230c@c29d2e0012419321> <tdjemt$1dft$1@gioia.aioe.org> <nnd$3290a642$51a445aa@83f55c0d6939847a> <f3fe89f4-f6b1-41f9-b8b7-afd1a22eb7b1n@googlegroups.com> <nnd$48f4ac20$25a51a81@393071a02c245bbe> <c44b752e-0f92-43c9-b8d6-8293dd279fcfn@googlegroups.com>
Mail-Copies-To: nobody
User-Agent: slrn/1.0.3 (Linux)
Message-ID: <nnd$7c5a6062$3cf67e0f@507c1b353e1350f4>
Organization: Newsxs
Date: Fri, 19 Aug 2022 12:45:47 +0200
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!tr1.eu1.usenetexpress.com!94.232.112.245.MISMATCH!feed.abavia.com!abe005.abavia.com!abp001.abavia.com!news.newsxs.nl!not-for-mail
Lines: 42
Injection-Date: Fri, 19 Aug 2022 12:45:47 +0200
Injection-Info: news.newsxs.nl; mail-complaints-to="abuse@newsxs.nl"
 by: Stef - Fri, 19 Aug 2022 10:45 UTC

On 2022-08-19 gnuarm.del...@gmail.com wrote in comp.arch.fpga:
> On Friday, August 19, 2022 at 5:13:11 AM UTC-4, Stef wrote:
>> On 2022-08-18 gnuarm.del...@gmail.com wrote in comp.arch.fpga:
>> > You keep calling it a DDS, which apparently is correct in that it can be used generically. But conventionally this refers to generating a sine wave. The term, AWG (Arbitrary Waveform Generator) is more commonly used for what you are doing.
>> To me, the core of the DDS is the clock/phase accumulator/control word.
>> The phase output of this can be fed to any phase to amplitude conversion
>> you like. Complete DDS chips often include sine (table), sawtooth
>> (direct phase to DAC) and pulse (MSB of phase).
>>
>> Although not an authoritive source, wikipedia agrees with this
>> interpretation.
>> https://en.wikipedia.org/wiki/Direct_digital_synthesis
>>
>> AWG, to me, just means you can generate any waveform. But not how you
>> set the frequency of this waveform. It can be fixed or just use divide
>> by 2 stages on the clock, or wathever.
>>
>> But this is all just personal interpretations, I think we both
>> understand what the other means right now. Maybe we should call it an
>> DDS AWG generator to cover everything. ;-)
>
> Sorry, I didn't mean to make a big deal of the nomenclature. So what are you trying to do that isn't obvious, given a phase accumulator and a lookup table?
>
I think it is obvious. Phase accumulator points to LUT, but LUT isn't a
sine table but sommething else.

> The frequency is normally set by the increment on the phase accumulator. But maybe that doesn't work so well for an AWG? What sort of waveforms are you interested in generating?
>
This is the DDS part (as I interpret it) and this is what I intend to
do. I see no reason why this would not work for AWG. Except when you get
to higher frequencies, you start losing your waveform, until it degrades
to a sine at FS/2 (providing the output filter is correct).

For now, I need to accomodate 'anything you can draw'. So a full phase
to amplitude LUT is required. Length and width TBD.

--
Stef

Don't read any sky-writing for the next two weeks.

Re: Wide frequency range, arbitrary waveform DDS

<HkNLK.74564$8f2.33817@fx38.iad>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=322&group=comp.arch.fpga#322

  copy link   Newsgroups: comp.arch.fpga
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx38.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.12.0
Subject: Re: Wide frequency range, arbitrary waveform DDS
Content-Language: en-US
Newsgroups: comp.arch.fpga
References: <nnd$14eac489$5ab7230c@c29d2e0012419321>
<tdjemt$1dft$1@gioia.aioe.org> <nnd$3290a642$51a445aa@83f55c0d6939847a>
<f3fe89f4-f6b1-41f9-b8b7-afd1a22eb7b1n@googlegroups.com>
<nnd$48f4ac20$25a51a81@393071a02c245bbe>
<c44b752e-0f92-43c9-b8d6-8293dd279fcfn@googlegroups.com>
<nnd$7c5a6062$3cf67e0f@507c1b353e1350f4>
From: Rich...@Damon-Family.org (Richard Damon)
In-Reply-To: <nnd$7c5a6062$3cf67e0f@507c1b353e1350f4>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 46
Message-ID: <HkNLK.74564$8f2.33817@fx38.iad>
X-Complaints-To: abuse@easynews.com
Organization: Forte - www.forteinc.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Fri, 19 Aug 2022 10:43:49 -0400
X-Received-Bytes: 3751
 by: Richard Damon - Fri, 19 Aug 2022 14:43 UTC

On 8/19/22 6:45 AM, Stef wrote:
> On 2022-08-19 gnuarm.del...@gmail.com wrote in comp.arch.fpga:
>> On Friday, August 19, 2022 at 5:13:11 AM UTC-4, Stef wrote:
>>> On 2022-08-18 gnuarm.del...@gmail.com wrote in comp.arch.fpga:
>>>> You keep calling it a DDS, which apparently is correct in that it can be used generically. But conventionally this refers to generating a sine wave. The term, AWG (Arbitrary Waveform Generator) is more commonly used for what you are doing.
>>> To me, the core of the DDS is the clock/phase accumulator/control word.
>>> The phase output of this can be fed to any phase to amplitude conversion
>>> you like. Complete DDS chips often include sine (table), sawtooth
>>> (direct phase to DAC) and pulse (MSB of phase).
>>>
>>> Although not an authoritive source, wikipedia agrees with this
>>> interpretation.
>>> https://en.wikipedia.org/wiki/Direct_digital_synthesis
>>>
>>> AWG, to me, just means you can generate any waveform. But not how you
>>> set the frequency of this waveform. It can be fixed or just use divide
>>> by 2 stages on the clock, or wathever.
>>>
>>> But this is all just personal interpretations, I think we both
>>> understand what the other means right now. Maybe we should call it an
>>> DDS AWG generator to cover everything. ;-)
>>
>> Sorry, I didn't mean to make a big deal of the nomenclature. So what are you trying to do that isn't obvious, given a phase accumulator and a lookup table?
>>
> I think it is obvious. Phase accumulator points to LUT, but LUT isn't a
> sine table but sommething else.
>
>> The frequency is normally set by the increment on the phase accumulator. But maybe that doesn't work so well for an AWG? What sort of waveforms are you interested in generating?
>>
> This is the DDS part (as I interpret it) and this is what I intend to
> do. I see no reason why this would not work for AWG. Except when you get
> to higher frequencies, you start losing your waveform, until it degrades
> to a sine at FS/2 (providing the output filter is correct).
>
> For now, I need to accomodate 'anything you can draw'. So a full phase
> to amplitude LUT is required. Length and width TBD.
>
>

Normally for a Arbitrary Waveform, the phase increment is limited to no
more that one LUT entry per clock cycle, and if there aren't an integral
number of increments per phase increment of one LUT entry, you want
there to be a moderate number to avoid "distortion" of the waveform.

And you need to decide how the "Arbitrary" waveform is shaped between
points, normally either step held or lineally interpreted.

Re: Wide frequency range, arbitrary waveform DDS

<00987721-ad26-4e3b-926e-3412056c32f5n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=323&group=comp.arch.fpga#323

  copy link   Newsgroups: comp.arch.fpga
X-Received: by 2002:a05:620a:270e:b0:6b4:8425:d03c with SMTP id b14-20020a05620a270e00b006b48425d03cmr7156376qkp.732.1660966667121;
Fri, 19 Aug 2022 20:37:47 -0700 (PDT)
X-Received: by 2002:a05:6808:1294:b0:344:a101:39f6 with SMTP id
a20-20020a056808129400b00344a10139f6mr4789302oiw.119.1660966666763; Fri, 19
Aug 2022 20:37:46 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.arch.fpga
Date: Fri, 19 Aug 2022 20:37:46 -0700 (PDT)
In-Reply-To: <nnd$7c5a6062$3cf67e0f@507c1b353e1350f4>
Injection-Info: google-groups.googlegroups.com; posting-host=2605:ba00:5118:846:817c:ab1b:8ddd:a52;
posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 2605:ba00:5118:846:817c:ab1b:8ddd:a52
References: <nnd$14eac489$5ab7230c@c29d2e0012419321> <tdjemt$1dft$1@gioia.aioe.org>
<nnd$3290a642$51a445aa@83f55c0d6939847a> <f3fe89f4-f6b1-41f9-b8b7-afd1a22eb7b1n@googlegroups.com>
<nnd$48f4ac20$25a51a81@393071a02c245bbe> <c44b752e-0f92-43c9-b8d6-8293dd279fcfn@googlegroups.com>
<nnd$7c5a6062$3cf67e0f@507c1b353e1350f4>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <00987721-ad26-4e3b-926e-3412056c32f5n@googlegroups.com>
Subject: Re: Wide frequency range, arbitrary waveform DDS
From: gnuarm.d...@gmail.com (gnuarm.del...@gmail.com)
Injection-Date: Sat, 20 Aug 2022 03:37:47 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 52
 by: gnuarm.del...@gmail. - Sat, 20 Aug 2022 03:37 UTC

On Friday, August 19, 2022 at 6:45:53 AM UTC-4, Stef wrote:
> On 2022-08-19 gnuarm.del...@gmail.com wrote in comp.arch.fpga:
> > On Friday, August 19, 2022 at 5:13:11 AM UTC-4, Stef wrote:
> >> On 2022-08-18 gnuarm.del...@gmail.com wrote in comp.arch.fpga:
> >> > You keep calling it a DDS, which apparently is correct in that it can be used generically. But conventionally this refers to generating a sine wave. The term, AWG (Arbitrary Waveform Generator) is more commonly used for what you are doing.
> >> To me, the core of the DDS is the clock/phase accumulator/control word.
> >> The phase output of this can be fed to any phase to amplitude conversion
> >> you like. Complete DDS chips often include sine (table), sawtooth
> >> (direct phase to DAC) and pulse (MSB of phase).
> >>
> >> Although not an authoritive source, wikipedia agrees with this
> >> interpretation.
> >> https://en.wikipedia.org/wiki/Direct_digital_synthesis
> >>
> >> AWG, to me, just means you can generate any waveform. But not how you
> >> set the frequency of this waveform. It can be fixed or just use divide
> >> by 2 stages on the clock, or wathever.
> >>
> >> But this is all just personal interpretations, I think we both
> >> understand what the other means right now. Maybe we should call it an
> >> DDS AWG generator to cover everything. ;-)
> >
> > Sorry, I didn't mean to make a big deal of the nomenclature. So what are you trying to do that isn't obvious, given a phase accumulator and a lookup table?
> >
> I think it is obvious. Phase accumulator points to LUT, but LUT isn't a
> sine table but sommething else.

Yes, it is obvious. That's why I'm asking what you are looking for from this discussion.

> > The frequency is normally set by the increment on the phase accumulator. But maybe that doesn't work so well for an AWG? What sort of waveforms are you interested in generating?
> >
> This is the DDS part (as I interpret it) and this is what I intend to
> do. I see no reason why this would not work for AWG. Except when you get
> to higher frequencies, you start losing your waveform, until it degrades
> to a sine at FS/2 (providing the output filter is correct).

I'm not following what you are saying about your filter. It only needs to filter artifacts above the Nyquist rate of fs/2. It would not need to distort your waveform.

> For now, I need to accomodate 'anything you can draw'. So a full phase
> to amplitude LUT is required. Length and width TBD.

Yes, if you want "anything you can draw", you need the LUT. But many waveforms can be constructed from simple shapes which can be generated digitally. The LUT won't be able to use the folding techniques that work for sine waves.

I don't know what your requirements are, but you can buy low cost AWG board level products and small box level products.

--

Rick C.

-+- Get 1,000 miles of free Supercharging
-+- Tesla referral code - https://ts.la/richard11209

Re: Wide frequency range, arbitrary waveform DDS

<nnd$3b23819c$14395202@616e59ba35389d01>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=324&group=comp.arch.fpga#324

  copy link   Newsgroups: comp.arch.fpga
Newsgroups: comp.arch.fpga
From: me...@this.is.invalid (Stef)
Subject: Re: Wide frequency range, arbitrary waveform DDS
References: <nnd$14eac489$5ab7230c@c29d2e0012419321>
<tdjemt$1dft$1@gioia.aioe.org> <nnd$3290a642$51a445aa@83f55c0d6939847a>
<f3fe89f4-f6b1-41f9-b8b7-afd1a22eb7b1n@googlegroups.com>
<nnd$48f4ac20$25a51a81@393071a02c245bbe>
<c44b752e-0f92-43c9-b8d6-8293dd279fcfn@googlegroups.com>
<nnd$7c5a6062$3cf67e0f@507c1b353e1350f4>
<00987721-ad26-4e3b-926e-3412056c32f5n@googlegroups.com>
Mail-Copies-To: nobody
User-Agent: slrn/1.0.3 (Linux)
Message-ID: <nnd$3b23819c$14395202@616e59ba35389d01>
Organization: Newsxs
Date: Mon, 22 Aug 2022 10:24:36 +0200
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe006.abavia.com!abp002.abavia.com!news.newsxs.nl!not-for-mail
Lines: 44
Injection-Date: Mon, 22 Aug 2022 10:24:36 +0200
Injection-Info: news.newsxs.nl; mail-complaints-to="abuse@newsxs.nl"
X-Received-Bytes: 2400
 by: Stef - Mon, 22 Aug 2022 08:24 UTC

On 2022-08-20 gnuarm.del...@gmail.com wrote in comp.arch.fpga:
> On Friday, August 19, 2022 at 6:45:53 AM UTC-4, Stef wrote:

....

>> I think it is obvious. Phase accumulator points to LUT, but LUT isn't a
>> sine table but sommething else.
>
> Yes, it is obvious. That's why I'm asking what you are looking for from this discussion.

In my original post, I had 2 questions

1) Are there objections to using a prescaler and a shorter phase
accumulator for generating frequencies over a wide range?

This has been discussed. Conclusions is that you should keep the
accumulator as long as possible for best performance.

2) Are the complete DDS chips available that have a downloadable LUT,
instead of the standard sine table?

If such chips are available, I may not have to develop a custom
(FPGA/CPU/DSP) solution. This question has not been answered and I have
found non myself sofar.

....

> I don't know what your requirements are, but you can buy low cost AWG board level products and small box level products.

At this time there are only general requirements (AWG, 12MHz BW, ...).
If the project continues, this will be detailed further.

Do you have an example of such a board level product? If it can do what
will be required, it is certainly an option.

--
Stef

If everything seems to be going well, you have obviously overlooked something.

Re: Wide frequency range, arbitrary waveform DDS

<20d1aece-6698-430a-8c50-6f8126287fafn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=325&group=comp.arch.fpga#325

  copy link   Newsgroups: comp.arch.fpga
X-Received: by 2002:a05:620a:1925:b0:6bb:8781:e356 with SMTP id bj37-20020a05620a192500b006bb8781e356mr14229080qkb.627.1661198662197;
Mon, 22 Aug 2022 13:04:22 -0700 (PDT)
X-Received: by 2002:a05:6820:12a:b0:44b:157d:b400 with SMTP id
i10-20020a056820012a00b0044b157db400mr4283171ood.74.1661198661858; Mon, 22
Aug 2022 13:04:21 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.arch.fpga
Date: Mon, 22 Aug 2022 13:04:21 -0700 (PDT)
In-Reply-To: <nnd$3b23819c$14395202@616e59ba35389d01>
Injection-Info: google-groups.googlegroups.com; posting-host=2605:ba00:5118:846:5961:deae:ce4a:3f6d;
posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 2605:ba00:5118:846:5961:deae:ce4a:3f6d
References: <nnd$14eac489$5ab7230c@c29d2e0012419321> <tdjemt$1dft$1@gioia.aioe.org>
<nnd$3290a642$51a445aa@83f55c0d6939847a> <f3fe89f4-f6b1-41f9-b8b7-afd1a22eb7b1n@googlegroups.com>
<nnd$48f4ac20$25a51a81@393071a02c245bbe> <c44b752e-0f92-43c9-b8d6-8293dd279fcfn@googlegroups.com>
<nnd$7c5a6062$3cf67e0f@507c1b353e1350f4> <00987721-ad26-4e3b-926e-3412056c32f5n@googlegroups.com>
<nnd$3b23819c$14395202@616e59ba35389d01>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <20d1aece-6698-430a-8c50-6f8126287fafn@googlegroups.com>
Subject: Re: Wide frequency range, arbitrary waveform DDS
From: gnuarm.d...@gmail.com (gnuarm.del...@gmail.com)
Injection-Date: Mon, 22 Aug 2022 20:04:22 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3933
 by: gnuarm.del...@gmail. - Mon, 22 Aug 2022 20:04 UTC

On Monday, August 22, 2022 at 4:24:41 AM UTC-4, Stef wrote:
> On 2022-08-20 gnuarm.del...@gmail.com wrote in comp.arch.fpga:
> > On Friday, August 19, 2022 at 6:45:53 AM UTC-4, Stef wrote:
> ...
> >> I think it is obvious. Phase accumulator points to LUT, but LUT isn't a
> >> sine table but sommething else.
> >
> > Yes, it is obvious. That's why I'm asking what you are looking for from this discussion.
> In my original post, I had 2 questions
>
> 1) Are there objections to using a prescaler and a shorter phase
> accumulator for generating frequencies over a wide range?
>
> This has been discussed. Conclusions is that you should keep the
> accumulator as long as possible for best performance.

If any of that is from my comments, I retract them. I was thinking of a typical DDS generating a sine wave.

You only need the clock rate to suit the waveform you are generating, such as Nyquist considerations. Your memory is finite, so you have a fundamental trade off between clock rate and duration of the AWG pattern. I don't know your real requirements, so I can't advise you about how to optimize this.. It will depend on your particular problem.

> 2) Are the complete DDS chips available that have a downloadable LUT,
> instead of the standard sine table?
>
> If such chips are available, I may not have to develop a custom
> (FPGA/CPU/DSP) solution. This question has not been answered and I have
> found non myself sofar.

Yeah, I've never used DDS chips, so I couldn't say. As I've mentioned, there are many AWG products at other levels of integration, modules and boards. eBay abounds with them.

> > I don't know what your requirements are, but you can buy low cost AWG board level products and small box level products.
> At this time there are only general requirements (AWG, 12MHz BW, ...).
> If the project continues, this will be detailed further.
>
> Do you have an example of such a board level product? If it can do what
> will be required, it is certainly an option.

Try punching AWG into eBay or one of the other sites.

--

Rick C.

-++ Get 1,000 miles of free Supercharging
-++ Tesla referral code - https://ts.la/richard11209

Re: Wide frequency range, arbitrary waveform DDS

<nnd$18261812$113c3804@3647750e3eec5e4b>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=326&group=comp.arch.fpga#326

  copy link   Newsgroups: comp.arch.fpga
Newsgroups: comp.arch.fpga
From: me...@this.is.invalid (Stef)
Subject: Re: Wide frequency range, arbitrary waveform DDS
References: <nnd$14eac489$5ab7230c@c29d2e0012419321> <tdjemt$1dft$1@gioia.aioe.org> <nnd$3290a642$51a445aa@83f55c0d6939847a> <f3fe89f4-f6b1-41f9-b8b7-afd1a22eb7b1n@googlegroups.com> <nnd$48f4ac20$25a51a81@393071a02c245bbe> <c44b752e-0f92-43c9-b8d6-8293dd279fcfn@googlegroups.com> <nnd$7c5a6062$3cf67e0f@507c1b353e1350f4> <00987721-ad26-4e3b-926e-3412056c32f5n@googlegroups.com> <nnd$3b23819c$14395202@616e59ba35389d01> <20d1aece-6698-430a-8c50-6f8126287fafn@googlegroups.com>
Mail-Copies-To: nobody
User-Agent: slrn/1.0.3 (Linux)
Message-ID: <nnd$18261812$113c3804@3647750e3eec5e4b>
Organization: Newsxs
Date: Tue, 23 Aug 2022 16:59:43 +0200
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!94.232.112.244.MISMATCH!feed.abavia.com!abe004.abavia.com!abp002.abavia.com!news.newsxs.nl!not-for-mail
Lines: 67
Injection-Date: Tue, 23 Aug 2022 16:59:43 +0200
Injection-Info: news.newsxs.nl; mail-complaints-to="abuse@newsxs.nl"
 by: Stef - Tue, 23 Aug 2022 14:59 UTC

On 2022-08-22 gnuarm.del...@gmail.com wrote in comp.arch.fpga:
> On Monday, August 22, 2022 at 4:24:41 AM UTC-4, Stef wrote:
>> On 2022-08-20 gnuarm.del...@gmail.com wrote in comp.arch.fpga:
>> > On Friday, August 19, 2022 at 6:45:53 AM UTC-4, Stef wrote:
>> ...
>> >> I think it is obvious. Phase accumulator points to LUT, but LUT isn't a
>> >> sine table but sommething else.
>> >
>> > Yes, it is obvious. That's why I'm asking what you are looking for from this discussion.
>> In my original post, I had 2 questions
>>
>> 1) Are there objections to using a prescaler and a shorter phase
>> accumulator for generating frequencies over a wide range?
>>
>> This has been discussed. Conclusions is that you should keep the
>> accumulator as long as possible for best performance.
>
> If any of that is from my comments, I retract them. I was thinking of a typical DDS generating a sine wave.

Most of those comments (and of Waldek) will also apply to AWG in some
way, so no need to retract. Also the output filter argument is one
against switching sample frequency. Ofcourse I can keep the pre-scaler
option in mind, but I don't think it should be the initial approach.
Only an optimization when really necessary (speed, size, etc).

> You only need the clock rate to suit the waveform you are generating, such as Nyquist considerations. Your memory is finite, so you have a fundamental trade off between clock rate and duration of the AWG pattern. I don't know your real requirements, so I can't advise you about how to optimize this. It will depend on your particular problem.
>
>
>> 2) Are the complete DDS chips available that have a downloadable LUT,
>> instead of the standard sine table?
>>
>> If such chips are available, I may not have to develop a custom
>> (FPGA/CPU/DSP) solution. This question has not been answered and I have
>> found non myself sofar.
>
> Yeah, I've never used DDS chips, so I couldn't say. As I've mentioned, there are many AWG products at other levels of integration, modules and boards. eBay abounds with them.
>
>
>> > I don't know what your requirements are, but you can buy low cost AWG board level products and small box level products.
>> At this time there are only general requirements (AWG, 12MHz BW, ...).
>> If the project continues, this will be detailed further.
>>
>> Do you have an example of such a board level product? If it can do what
>> will be required, it is certainly an option.
>
> Try punching AWG into eBay or one of the other sites.

Searching on AWG alone will find you a lot of wire. ;-)
With "arbitrary waveform generator", I get a lot of complete bench top
generators. And a number of (usually the same) cheap bare board units
like this one:
https://www.ebay.com/itm/221506533974?mkcid=16&mkevt=1&mkrid=711-127632-2357-0&ssspo=MRtVGD4USYW&sssrc=2047675&ssuid=&widget_ver=artemis&media=COPY

This one is 8-bit 256 sample 100 kSPS. Not enough on every parameter and
it seems most of these modules have similar specs.

But this is the kind of board level product you meant? I hoped for
someting that can be placed on a board. Looks like I need to implement
something myself if this project continues.

--
Stef

Just type 'mv * /dev/null'.

Re: Wide frequency range, arbitrary waveform DDS

<eeb6ec0f-f544-41dd-946e-a87097fe3c04n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=327&group=comp.arch.fpga#327

  copy link   Newsgroups: comp.arch.fpga
X-Received: by 2002:ac8:57ce:0:b0:344:ad3e:cb16 with SMTP id w14-20020ac857ce000000b00344ad3ecb16mr12969593qta.214.1661271844192;
Tue, 23 Aug 2022 09:24:04 -0700 (PDT)
X-Received: by 2002:a05:6808:ec5:b0:337:ac3c:550c with SMTP id
q5-20020a0568080ec500b00337ac3c550cmr1819204oiv.262.1661271843778; Tue, 23
Aug 2022 09:24:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.arch.fpga
Date: Tue, 23 Aug 2022 09:24:03 -0700 (PDT)
In-Reply-To: <nnd$18261812$113c3804@3647750e3eec5e4b>
Injection-Info: google-groups.googlegroups.com; posting-host=2605:ba00:5118:846:75a9:d386:7062:d2af;
posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 2605:ba00:5118:846:75a9:d386:7062:d2af
References: <nnd$14eac489$5ab7230c@c29d2e0012419321> <tdjemt$1dft$1@gioia.aioe.org>
<nnd$3290a642$51a445aa@83f55c0d6939847a> <f3fe89f4-f6b1-41f9-b8b7-afd1a22eb7b1n@googlegroups.com>
<nnd$48f4ac20$25a51a81@393071a02c245bbe> <c44b752e-0f92-43c9-b8d6-8293dd279fcfn@googlegroups.com>
<nnd$7c5a6062$3cf67e0f@507c1b353e1350f4> <00987721-ad26-4e3b-926e-3412056c32f5n@googlegroups.com>
<nnd$3b23819c$14395202@616e59ba35389d01> <20d1aece-6698-430a-8c50-6f8126287fafn@googlegroups.com>
<nnd$18261812$113c3804@3647750e3eec5e4b>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <eeb6ec0f-f544-41dd-946e-a87097fe3c04n@googlegroups.com>
Subject: Re: Wide frequency range, arbitrary waveform DDS
From: gnuarm.d...@gmail.com (gnuarm.del...@gmail.com)
Injection-Date: Tue, 23 Aug 2022 16:24:04 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 5978
 by: gnuarm.del...@gmail. - Tue, 23 Aug 2022 16:24 UTC

On Tuesday, August 23, 2022 at 10:59:51 AM UTC-4, Stef wrote:
> On 2022-08-22 gnuarm.del...@gmail.com wrote in comp.arch.fpga:
> > On Monday, August 22, 2022 at 4:24:41 AM UTC-4, Stef wrote:
> >> On 2022-08-20 gnuarm.del...@gmail.com wrote in comp.arch.fpga:
> >> > On Friday, August 19, 2022 at 6:45:53 AM UTC-4, Stef wrote:
> >> ...
> >> >> I think it is obvious. Phase accumulator points to LUT, but LUT isn't a
> >> >> sine table but sommething else.
> >> >
> >> > Yes, it is obvious. That's why I'm asking what you are looking for from this discussion.
> >> In my original post, I had 2 questions
> >>
> >> 1) Are there objections to using a prescaler and a shorter phase
> >> accumulator for generating frequencies over a wide range?
> >>
> >> This has been discussed. Conclusions is that you should keep the
> >> accumulator as long as possible for best performance.
> >
> > If any of that is from my comments, I retract them. I was thinking of a typical DDS generating a sine wave.
> Most of those comments (and of Waldek) will also apply to AWG in some
> way, so no need to retract. Also the output filter argument is one
> against switching sample frequency. Ofcourse I can keep the pre-scaler
> option in mind, but I don't think it should be the initial approach.
> Only an optimization when really necessary (speed, size, etc).
> > You only need the clock rate to suit the waveform you are generating, such as Nyquist considerations. Your memory is finite, so you have a fundamental trade off between clock rate and duration of the AWG pattern. I don't know your real requirements, so I can't advise you about how to optimize this. It will depend on your particular problem.
> >
> >
> >> 2) Are the complete DDS chips available that have a downloadable LUT,
> >> instead of the standard sine table?
> >>
> >> If such chips are available, I may not have to develop a custom
> >> (FPGA/CPU/DSP) solution. This question has not been answered and I have
> >> found non myself sofar.
> >
> > Yeah, I've never used DDS chips, so I couldn't say. As I've mentioned, there are many AWG products at other levels of integration, modules and boards. eBay abounds with them.
> >
> >
> >> > I don't know what your requirements are, but you can buy low cost AWG board level products and small box level products.
> >> At this time there are only general requirements (AWG, 12MHz BW, ...).
> >> If the project continues, this will be detailed further.
> >>
> >> Do you have an example of such a board level product? If it can do what
> >> will be required, it is certainly an option.
> >
> > Try punching AWG into eBay or one of the other sites.
> Searching on AWG alone will find you a lot of wire. ;-)
> With "arbitrary waveform generator", I get a lot of complete bench top
> generators. And a number of (usually the same) cheap bare board units
> like this one:
> https://www.ebay.com/itm/221506533974?mkcid=16&mkevt=1&mkrid=711-127632-2357-0&ssspo=MRtVGD4USYW&sssrc=2047675&ssuid=&widget_ver=artemis&media=COPY
>
> This one is 8-bit 256 sample 100 kSPS. Not enough on every parameter and
> it seems most of these modules have similar specs.
>
> But this is the kind of board level product you meant? I hoped for
> someting that can be placed on a board. Looks like I need to implement
> something myself if this project continues.

There are products out there that do exactly what you want. I found Bitscope, for example, which seems to have a board level product, but their web site is so goofy I can't find actual specs on it. The control panel example they show only provides standard waveforms, not arbitrary. So I'm not sure it is an AWG.

http://bitscope.com/product/BS05/

You might need to contact them.

How many do you need? Is it worth the effort to roll your own? How are you going to provide a waveform input/definition?

--

Rick C.

+-- Get 1,000 miles of free Supercharging
+-- Tesla referral code - https://ts.la/richard11209

Re: Wide frequency range, arbitrary waveform DDS

<nnd$58d455e9$056c3df3@73123d2fec620740>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=328&group=comp.arch.fpga#328

  copy link   Newsgroups: comp.arch.fpga
Newsgroups: comp.arch.fpga
From: me...@this.is.invalid (Stef)
Subject: Re: Wide frequency range, arbitrary waveform DDS
References: <nnd$14eac489$5ab7230c@c29d2e0012419321>
<tdjemt$1dft$1@gioia.aioe.org> <nnd$3290a642$51a445aa@83f55c0d6939847a>
<f3fe89f4-f6b1-41f9-b8b7-afd1a22eb7b1n@googlegroups.com>
<nnd$48f4ac20$25a51a81@393071a02c245bbe>
<c44b752e-0f92-43c9-b8d6-8293dd279fcfn@googlegroups.com>
<nnd$7c5a6062$3cf67e0f@507c1b353e1350f4>
<00987721-ad26-4e3b-926e-3412056c32f5n@googlegroups.com>
<nnd$3b23819c$14395202@616e59ba35389d01>
<20d1aece-6698-430a-8c50-6f8126287fafn@googlegroups.com>
<nnd$18261812$113c3804@3647750e3eec5e4b>
<eeb6ec0f-f544-41dd-946e-a87097fe3c04n@googlegroups.com>
Mail-Copies-To: nobody
User-Agent: slrn/1.0.3 (Linux)
Message-ID: <nnd$58d455e9$056c3df3@73123d2fec620740>
Organization: Newsxs
Date: Tue, 23 Aug 2022 18:47:29 +0200
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feed.abavia.com!abe005.abavia.com!abp002.abavia.com!news.newsxs.nl!not-for-mail
Lines: 33
Injection-Date: Tue, 23 Aug 2022 18:47:29 +0200
Injection-Info: news.newsxs.nl; mail-complaints-to="abuse@newsxs.nl"
X-Received-Bytes: 2653
 by: Stef - Tue, 23 Aug 2022 16:47 UTC

On 2022-08-23 gnuarm.del...@gmail.com wrote in comp.arch.fpga:

....

> There are products out there that do exactly what you want. I found Bitscope, for example, which seems to have a board level product, but their web site is so goofy I can't find actual specs on it. The control panel example they show only provides standard waveforms, not arbitrary. So I'm not sure it is an AWG.
>
> http://bitscope.com/product/BS05/
>
> You might need to contact them.

Indeed a bit goofy, found no specs either. They say arbitrary but only
show standard and distorted standard waveforms. Also no indication how
to get truly arbitrary data in.

> How many do you need? Is it worth the effort to roll your own? How are you going to provide a waveform input/definition?
>

Number is still unknown (to me), but it is for a commercial product. So
just sticking in some fancy boards will not be an option. There will be
more generators and signal operations and a lot of other stuff, so it
will be custom board(s) and controllers etc. anyway. And then you have
things like form factor and design and more. The AWG bit may in the end
be the simplest problem to solve.

Getting the data in is another thing completely and that will probably
involve PC programs and cloud connections. Not my first choice, but
understandable from our customer and end user points of view.

--
Stef

Windows - From the people who brought you EDLIN!

Re: Wide frequency range, arbitrary waveform DDS

<fce084c7-8ad4-4297-a7b9-5005f8a25a73n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=329&group=comp.arch.fpga#329

  copy link   Newsgroups: comp.arch.fpga
X-Received: by 2002:a05:620a:40d4:b0:6bb:11fc:120f with SMTP id g20-20020a05620a40d400b006bb11fc120fmr18370837qko.659.1661298726154;
Tue, 23 Aug 2022 16:52:06 -0700 (PDT)
X-Received: by 2002:a05:6820:1a0d:b0:44b:f59:8354 with SMTP id
bq13-20020a0568201a0d00b0044b0f598354mr6538459oob.92.1661298725815; Tue, 23
Aug 2022 16:52:05 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.arch.fpga
Date: Tue, 23 Aug 2022 16:52:05 -0700 (PDT)
In-Reply-To: <nnd$58d455e9$056c3df3@73123d2fec620740>
Injection-Info: google-groups.googlegroups.com; posting-host=2605:ba00:5118:846:75a9:d386:7062:d2af;
posting-account=I-_H_woAAAA9zzro6crtEpUAyIvzd19b
NNTP-Posting-Host: 2605:ba00:5118:846:75a9:d386:7062:d2af
References: <nnd$14eac489$5ab7230c@c29d2e0012419321> <tdjemt$1dft$1@gioia.aioe.org>
<nnd$3290a642$51a445aa@83f55c0d6939847a> <f3fe89f4-f6b1-41f9-b8b7-afd1a22eb7b1n@googlegroups.com>
<nnd$48f4ac20$25a51a81@393071a02c245bbe> <c44b752e-0f92-43c9-b8d6-8293dd279fcfn@googlegroups.com>
<nnd$7c5a6062$3cf67e0f@507c1b353e1350f4> <00987721-ad26-4e3b-926e-3412056c32f5n@googlegroups.com>
<nnd$3b23819c$14395202@616e59ba35389d01> <20d1aece-6698-430a-8c50-6f8126287fafn@googlegroups.com>
<nnd$18261812$113c3804@3647750e3eec5e4b> <eeb6ec0f-f544-41dd-946e-a87097fe3c04n@googlegroups.com>
<nnd$58d455e9$056c3df3@73123d2fec620740>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fce084c7-8ad4-4297-a7b9-5005f8a25a73n@googlegroups.com>
Subject: Re: Wide frequency range, arbitrary waveform DDS
From: gnuarm.d...@gmail.com (gnuarm.del...@gmail.com)
Injection-Date: Tue, 23 Aug 2022 23:52:06 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3778
 by: gnuarm.del...@gmail. - Tue, 23 Aug 2022 23:52 UTC

On Tuesday, August 23, 2022 at 12:47:35 PM UTC-4, Stef wrote:
> On 2022-08-23 gnuarm.del...@gmail.com wrote in comp.arch.fpga:
>
> ...
> > There are products out there that do exactly what you want. I found Bitscope, for example, which seems to have a board level product, but their web site is so goofy I can't find actual specs on it. The control panel example they show only provides standard waveforms, not arbitrary. So I'm not sure it is an AWG.
> >
> > http://bitscope.com/product/BS05/
> >
> > You might need to contact them.
> Indeed a bit goofy, found no specs either. They say arbitrary but only
> show standard and distorted standard waveforms. Also no indication how
> to get truly arbitrary data in.
> > How many do you need? Is it worth the effort to roll your own? How are you going to provide a waveform input/definition?
> >
> Number is still unknown (to me), but it is for a commercial product. So
> just sticking in some fancy boards will not be an option. There will be
> more generators and signal operations and a lot of other stuff, so it
> will be custom board(s) and controllers etc. anyway. And then you have
> things like form factor and design and more. The AWG bit may in the end
> be the simplest problem to solve.
>
> Getting the data in is another thing completely and that will probably
> involve PC programs and cloud connections. Not my first choice, but
> understandable from our customer and end user points of view.

lf you want to provide a very large memory, you can attach an SDRAM to an FPGA and have literally GBs of RAM at very high sample rates with low cost. If the rest of the design does not require a large FPGA, you can do this is a small FPGA for less money than the memory chip.

--

Rick C.

+-+ Get 1,000 miles of free Supercharging
+-+ Tesla referral code - https://ts.la/richard11209


devel / comp.arch.fpga / Re: Wide frequency range, arbitrary waveform DDS

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor