Forum Discussion
Altera_Forum
Honored Contributor
13 years agoDisclaimer: I am not great with Verilog.
Take a look at line 55 ( x <= sx; ). Should this (and the 7 lines below it) be happening on posedge clk? If yes, you have an end (on line 53) in the wrong place. If no, I'm not sure you can use the "if" construct. Take a second look and see if anything pops out at you. I hope this helps.