Forum Discussion
Altera_Forum
Honored Contributor
12 years ago --- Quote Start --- Hello Everyone, This is my first DSP Builder project and my first FPGA project. I have designed to the best of my knowledge a working costas loop in Simulink with ModelPrim blocks. The simulation in Simulink works the way I want. However when activating hardware generation I get a "Found insufficient delay attempting...". I have the feeling that this is related to the feedback loop in the model. If I remove the feedback it will generate. Is there an easy fix to make my loop work or should it be implemented differently without feedback ? (wouldn't be a Costas Loop anymore I guess). My second option would be to implement a squaring loop but I can't seem to find a way to divide my squared signal by two.... Any help would be appreciated. Attached is my model, sampled data of my signal and the Cos/Sine LUT. Thanks, Carl --- Quote End --- I assume you have used loop filter in which case I am surprised that you don't have delay through the filter(due to latency). Anyway you can add registers in the feedback loop to add further delay to that of loop filter. You can't have costas loop without the feedback loop.