Switch sync_fifo to use Altera MegaFunction and simplify simulation-only RTL