Forum Discussion
Altera_Forum
Honored Contributor
17 years agoBuilding a Transfer Function using Simulink/DSPBuilder
Hello there, I am using FLEX10KE FPGA and I am trying to programa PLL simulator using DSP Builder blocks. I have already made a simulator using default Matlab blocks, but now I have to cre...
Altera_Forum
Honored Contributor
17 years agoHi Mutaza:
Your z-domain transfer function can be converted to a Biquad IIR filter. Using matlab you you can convert it using a SOS command.. (Don't know the exact command on the top of my head), that will give you the biquad filter coefficients. You can see what the hardware of a BiQuad filter looks like at: http://www.earlevel.com/digital%20audio/biquads.html It show's all the various forms, but Direct Form 1 is usually the easiest to build for fixed point calculations. I haven't used DSP builder for this type of task, but if they have an IIR Biquad filter that you can program the coefficients, you should be able to type in the SOS filter coefficients and be good. Pete