Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
10 years ago

Costas Loop oscillates in ModelSim while locks in MATLAB!

Hello again,

I have designed a Costas Loop in MATLAB and it simulates very well... locking and recovering the carrier.

Here are the results:

http://www.alteraforum.com/forum/attachment.php?attachmentid=10456&stc=1

I ported the design to FPGA in VHDL, and simulated in ModelSim... however, the loop has a kinda oscillating behaviour... take a look:

http://www.alteraforum.com/forum/attachment.php?attachmentid=10457&stc=1

This is the Loop Filter output:

http://www.alteraforum.com/forum/attachment.php?attachmentid=10458&stc=1

Why is it oscillating? Is it the loop filter?

46 Replies