Forum Discussion
Altera_Forum
Honored Contributor
12 years agoI don't think so there is any problem in your source code.I think problem is in your test bench. So please provide your test bench.
I found one typo error in your source line 271.It should be z = (res == 0) ? 1 : 0 instead of z = (res=0) ? 1 : 0.