Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Zero Delay Feedback Filter

DSP related issues, mathematics, processing and techniques

Re: Zero Delay Feedback Filter

Postby tor » Sat Mar 29, 2014 7:46 pm

on way this could be easier to debug was if the wire that by the interpreter is considered the feedback/'one sample delay' was colored/marked different than the regular wires. atleast one could see the flow more clearly.
tor
 
Posts: 114
Joined: Fri Sep 24, 2010 5:54 pm

Re: Zero Delay Feedback Filter

Postby KG_is_back » Sat Mar 29, 2014 10:34 pm

tor wrote:on way this could be easier to debug was if the wire that by the interpreter is considered the feedback/'one sample delay' was colored/marked different than the regular wires. at least one could see the flow more clearly.

That is not possible because flowstone probably doesn't even know there is feedback.
the schematic is being rewritten into code that may not have to correspond with intuitive routing. You can check the code generated using Analyzer primitive (It's pretty though figuring out what is what). To some degree you can affect the code order with link order, but with DP streams that is very limited (as DP primitives can take only one variable to one input). We might force the right execution order by forcing empty streams (containing only bitwise zeroes) on the DP primitives. It will affect the performance in a negative way though.
It would all be much easier if we had more complete list of Assembly instructions (including SSE2 integer and double-precision instructions). The absence of many even basic instructions (for example unconditional jump - jmp;) in assembler is very awkward and annoying.
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Zero Delay Feedback Filter

Postby martinvicanek » Sun Mar 30, 2014 4:52 pm

A comparison of tor's DP filter with the SP code version shows that the outputs agree with a relative error of < 1e-5 (or < -100 dB), in most cases even 1e-6 which is close to the 24 bit resolution limit. So I am not sure if DP is really worth the trouble for this filter type (it may be well justified for the direct forms).

By the way, tor, the DP implementation of the allpass and shelving filters seems to be slightly incorrect (all others are OK).
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm

Re: Zero Delay Feedback Filter

Postby tor » Mon Mar 31, 2014 4:15 am

Sorry about the bad DP version, I found the error quite quickly. As always I tend to fiddle with FS when I'm tired. It is now fixed (i think).
ZDF Double Precision2.fsm
(213.29 KiB) Downloaded 1387 times
tor
 
Posts: 114
Joined: Fri Sep 24, 2010 5:54 pm

Re: Zero Delay Feedback Filter

Postby martinvicanek » Mon Mar 31, 2014 6:40 pm

Thanks tor, also for including the phase plot. It revealed a bug in the allpass filter that I posted on page 3 of this thread, :oops: now fixed there. Unfortunately that bug propagated into your design, so if you want to fix that it is
Allpass = Lowpass + Highpass - Bandpass2
(note the minus sign).
That makes two of us tired when posting, I guess. ;)
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm

Re: Zero Delay Feedback Filter

Postby tor » Mon Mar 31, 2014 7:11 pm

He he :D

*Edit: Luckily we are just humans ;)
tor
 
Posts: 114
Joined: Fri Sep 24, 2010 5:54 pm

Re: Zero Delay Feedback Filter

Postby tor » Mon Mar 31, 2014 11:38 pm

Now it would be great if we could sort out this OS DP version, here reduced to a simple LP to ease the confusion of to many wires. If we get this right we have all the best options awailable for our designs.
ZDF LP OS DP.fsm
(198.27 KiB) Downloaded 1374 times
tor
 
Posts: 114
Joined: Fri Sep 24, 2010 5:54 pm

Re: Zero Delay Feedback Filter

Postby KG_is_back » Sun Apr 13, 2014 2:11 am

Can a butterworth filter be implemented as ZDF?
KG_is_back
 
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: Zero Delay Feedback Filter

Postby tor » Sun Apr 13, 2014 4:29 am

I guess so, it is actually what is posted all over this thread. :)
tor
 
Posts: 114
Joined: Fri Sep 24, 2010 5:54 pm

Re: Zero Delay Feedback Filter

Postby martinvicanek » Sun Apr 13, 2014 10:40 am

A 2nd order Butteworth filter is simply one with Q=0.71. For higher orders use a cascade with different Qs and same cutoff frequencies. Here is a lowpass example.
Attachments
ButterworthLP.fsm
(26.21 KiB) Downloaded 1395 times
User avatar
martinvicanek
 
Posts: 1328
Joined: Sat Jun 22, 2013 8:28 pm

PreviousNext

Return to DSP

Who is online

Users browsing this forum: No registered users and 11 guests