I have used this as an example: viewtopic.php?f=10&t=10728&start=41martinvicanek wrote:Here is a three line recursive quadrature oscillator. .....I am attaching an OSM with optimized ASM
- Code: Select all
streamin k1; // -tan(omega/2/SR)
streamin k2; // sin(omega/SR)
streamout x; // sin(omega*t)
streamout y; // cos(omega*t)
float tmp;
stage(0)
{
x = 0;
y = 1;
}
stage(2)
{
tmp = y + k1*x;
x = x + k2*tmp;
y = tmp + k1*x;
}
Not sure if this is your latest version; I am confused by this whole thread anyway.

















