Forum Discussion
Altera_Forum
Honored Contributor
10 years agoYour case(counter[15:0]) statement only covers 256 out of 65536 possibilities. I'm sure that's not what you intended.
Have you simulated this? I suspect not. I can see immediately what's wrong having done so and that your 'duty_cycle' value never 'appears' to change. It does change, but it always ends up at the same value for 65280/65536 of the time. (65280 = 65536-256) Cheers, Alex