Jump to content
  • 0

Driving pattern generator with offline computed pattern


Mka

Question

Hi,

I'm confused by the descriptions of the pattern generator implemented in Digital Discovery and/or AD2.

So a few questions:

  1. Can I load an offline computed arbitray pattern (1 bit/cycle/pin, cycle time ~10ns)  which is then repeated forever on the digtal output pins in circles?
  2. What's the maximum pattern size? Is it 32k samples?
  3. Any hack to store the pattern into DDR3? The DRAM seems to have 2Gb so that a total pattern length of ~128M Samples should be possible. There should also be a ton of BW avaliable on the DDR3 to feed 16 bits@100MHz

Best regards,

  Michael

Link to comment
Share on other sites

Recommended Posts

Hi @JoeBeef

The Pattern Custom mode uses the limited FGPA BRAM (~512kbit) to store the samples. This has random access, so each signal can run independently (frequency, phase).
The Logic Analyzer Record (capture) and Play mode on Digital Discovery uses the large DDRAM (2Gbit). Here random access would highly limit the sample rate.

Link to comment
Share on other sites

Hi @JoeBeef

After repeating the test I notice the import is indeed limited to 10M....
In the earlier test, quickly looking at the values and expecting 11M... I have confused the frequency with number of samples with :(
I will push a software update next week.

image.png.3916eedfbef62864da0a1a7d6283304a.png

 

Link to comment
Share on other sites

Hi @Attila,

Yes I do have plenty of disk space. I tried splitting my pattern file(original 11M samples) in two files (9.0M and 2M samples) and did two separate imports and that worked fine showing me the actual samples, but it does not explained why it only showed 10M.

 

Regards,

Link to comment
Share on other sites

Hi @JoeBeef

The sample limitation in the application is 256M
The larger tabs/buffers, above 100k, are stored in on the disk. 10M samples are stored as 40MB.
Do you have sufficient disk space ?

Checking the number of samples requires copying the data to the Script which may be slow or run out of memory...
Logic.Tabs.value = 1 // or .text = "Tab 1" switch to first tab
print(Logic.Channels.DIN0.data.length) // see the data.length of any signal/bus/interpreter 

I will add to the next app version other way to check the number of samples.

Link to comment
Share on other sites

Hi @Attila,

Is there a sample size limitation per Tabs?.

I tried to import a file that have 11M  samples and at the end of the import the message is showing that I have 10M samples. All other imports that I have done are showing the correct number of samples.

Also, what would be the code to add to the script to display the number of samples in a tab?.

image.png.bed8e9be86b62f3043bdcd60fa057a83.png

 

Link to comment
Share on other sites

Hi @Attila,

That is working great, I was able to generate a pattern with 5M of points.

Now, I am controlling the Logic analyzer through a script, is there a way to validate in the script that a tab name is valid before launching the play ?

 

Regards,

Link to comment
Share on other sites

Hi Attila,

Finally figured it out with your last post, I can load all my data fine.

One thing I am not sure about. I noticed that all signals are synchronized with the play rate. 

Like if I want my data to switch before my clock signal, I would delay the clock or generate a pulse later in the cycle.

Is it possible to add delay between signals like it can be done in the Patterns Tool ?

 

Regards,

Link to comment
Share on other sites

Hi Attila,

I got myself a DigitalDiscovery and got to the point were i loaded some data. I configure the Play mode to use the data loaded but when I hit Play nothing is coming out!

Can you shed some light on how the data flows in the DD when you hit Play, do I need to also configure the Pattern tool for this IO, if so is it as custom type ?

I am a little confuse as where to go from there.

image.png.93a39a0a07c01c59674d150edc27ced7.png

Regards,

 

Link to comment
Share on other sites

Hi Attila,

Thanks for the info.

I downloaded the latest Beta version of Waveforms (3.13.6 64-bit), but never was able to get the Play mode, it's not in any option even after I imported some data in csv format.

I am definitly missing something...but what?

Also, with the Pattern Generator we have the capabilities to move signal around by changing the phase and delays, are we loosing that flexibility with the proposed approach.

Please let me know what I am doing wrong.

Regards,

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...